7

What do 10k, 6k, 1k and 210 mean in this eclipse Luna code completion popup. It appeared when I was trying to override a method from a custom class in a custom class.

enter image description here

Artjom B.
  • 61,146
  • 24
  • 125
  • 222
Mahesha999
  • 22,693
  • 29
  • 116
  • 189
  • I have a feeling it would probably be decided to go to Programmer's Exchange only because it is a question about Eclipse's output, and nothing to do with Java exactly – Ascalonian Mar 06 '15 at 16:41
  • 6
    Questions about software development tools are on-topic for StackOverflow – greg-449 Mar 06 '15 at 16:41
  • 1
    Yup, on-topic. See http://stackoverflow.com/help/on-topic – yshavit Mar 06 '15 at 16:42
  • 1
    What exact build are you using? I'm using 4.4.1 and I don't see that. – Necreaux Mar 06 '15 at 16:47
  • This could also come from a installed feature. I suppose thats a calculated count of uses in your workspace or something similar – Matthias H Mar 06 '15 at 16:56
  • If I had to take a guess -- and this is only a guess -- I'd guess it's the number of times each method has been overridden in your code. Tons of classes override `toString`, fewer override `hashCode`. We don't see the number for `equals`, but I'd guess it's also 6k. `clone` and `finalize` get overridden less often. – yshavit Mar 06 '15 at 16:56
  • ok I dont think its number of times each method has been overridden in my code since my codebase is exceedingly small – Mahesha999 Mar 06 '15 at 18:28

3 Answers3

3

That is a certain plugin at work, either Code Recommenders or something similar.

Basically, it's (crowd sourced) information that tells you how often or likely a certain method is called or overridden.

Flo
  • 2,738
  • 1
  • 16
  • 12
  • yess I guess now. I think its either Codetrails Connect Hippie Completion plugin or Eclipse Code Recommenders Snipmatch plugin that I recently installed in eclipse, just wish that they could have shown some on hover tooltip explaining what it is – Mahesha999 Mar 06 '15 at 20:50
0

AFAIK, The greater the number to the right of a method, the greater the probability that you'll use that method in that context, as calculated by some weird algorithm.

0

These numbers come from our Codetrails Connect Hippie Completion.

It shows how often developers call or override methods and suggests them in order of frequency. In this case, Object.equals() was overridden about 10.000 times, while Object.hashCode() was overridden about 6.000 times.

The data comes from users of Codetrails Connect who decided to share their code completion events with us. We then aggregate those events and provide the resulting information back to our users.

You can adjust the way these numbers are shown at Preferences > Codetrails Connect > Hippie - Relevance Indicator Settings. Instead of the default "Heatmap", you can elect to show absolute, unrounded numbers with "Simple (m/n)" or show the relative "Percentage" for proposals.

Johannes Dorn
  • 1,307
  • 1
  • 16
  • 34