Tabnine Logo
QualifiedTypeNameHistory.getNormalizedPosition
Code IndexAdd Tabnine to your IDE (free)

How to use
getNormalizedPosition
method
in
org.eclipse.jdt.internal.corext.util.QualifiedTypeNameHistory

Best Java code snippets using org.eclipse.jdt.internal.corext.util.QualifiedTypeNameHistory.getNormalizedPosition (Showing top 6 results out of 315)

origin: org.eclipse.jdt/org.eclipse.jdt.ui

public static int getBoost(String fullyQualifiedTypeName, int min, int max) {
  float position= getDefault().getNormalizedPosition(fullyQualifiedTypeName);
  int dist= max - min;
  return Math.round(position * dist) + min;
}
origin: org.eclipse/org.eclipse.jdt.ui

public static int getBoost(String fullyQualifiedTypeName, int min, int max) {
  float position= getDefault().getNormalizedPosition(fullyQualifiedTypeName);
  int dist= max - min;
  return Math.round(position * dist) + min;
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

public static int getBoost(String fullyQualifiedTypeName, int min, int max) {
  float position= getDefault().getNormalizedPosition(fullyQualifiedTypeName);
  int dist= max - min;
  return Math.round(position * dist) + min;
}
origin: org.eclipse/org.eclipse.jdt.ui

protected int computeRelevance() {
  /*
   * There are two histories: the RHS history remembers types used for the current expected
   * type (left hand side), while the type history remembers recently used types in general).
   * 
   * The presence of an RHS ranking is a much more precise sign for relevance as it proves the
   * subtype relationship between the proposed type and the expected type.
   * 
   * The "recently used" factor (of either the RHS or general history) is less important, it should
   * not override other relevance factors such as if the type is already imported etc.
   */
  float rhsHistoryRank= fInvocationContext.getHistoryRelevance(getQualifiedTypeName());
  float typeHistoryRank= QualifiedTypeNameHistory.getDefault().getNormalizedPosition(getQualifiedTypeName());
  int recencyBoost= Math.round((rhsHistoryRank + typeHistoryRank) * 5);
  int rhsBoost= rhsHistoryRank > 0.0f ? 50 : 0;
  int baseRelevance= super.computeRelevance();
  
  return baseRelevance +  rhsBoost + recencyBoost;
}

origin: org.eclipse.jdt/org.eclipse.jdt.ui

@Override
protected int computeRelevance() {
  /*
   * There are two histories: the RHS history remembers types used for the current expected
   * type (left hand side), while the type history remembers recently used types in general).
   *
   * The presence of an RHS ranking is a much more precise sign for relevance as it proves the
   * subtype relationship between the proposed type and the expected type.
   *
   * The "recently used" factor (of either the RHS or general history) is less important, it should
   * not override other relevance factors such as if the type is already imported etc.
   */
  float rhsHistoryRank= fInvocationContext.getHistoryRelevance(getQualifiedTypeName());
  float typeHistoryRank= QualifiedTypeNameHistory.getDefault().getNormalizedPosition(getQualifiedTypeName());
  int recencyBoost= Math.round((rhsHistoryRank + typeHistoryRank) * 5);
  int rhsBoost= rhsHistoryRank > 0.0f ? 50 : 0;
  int baseRelevance= super.computeRelevance();
  return baseRelevance +  rhsBoost + recencyBoost;
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

@Override
protected int computeRelevance() {
  /*
   * There are two histories: the RHS history remembers types used for the current expected
   * type (left hand side), while the type history remembers recently used types in general).
   *
   * The presence of an RHS ranking is a much more precise sign for relevance as it proves the
   * subtype relationship between the proposed type and the expected type.
   *
   * The "recently used" factor (of either the RHS or general history) is less important, it should
   * not override other relevance factors such as if the type is already imported etc.
   */
  float rhsHistoryRank= fInvocationContext.getHistoryRelevance(getQualifiedTypeName());
  float typeHistoryRank= QualifiedTypeNameHistory.getDefault().getNormalizedPosition(getQualifiedTypeName());
  int recencyBoost= Math.round((rhsHistoryRank + typeHistoryRank) * 5);
  int rhsBoost= rhsHistoryRank > 0.0f ? 50 : 0;
  int baseRelevance= super.computeRelevance();
  return baseRelevance +  rhsBoost + recencyBoost;
}
org.eclipse.jdt.internal.corext.utilQualifiedTypeNameHistorygetNormalizedPosition

Popular methods of QualifiedTypeNameHistory

  • getBoost
  • getDefault
  • remember
  • <init>
  • accessed
  • load
  • save

Popular in Java

  • Reactive rest calls using spring rest template
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getSystemService (Context)
  • getApplicationContext (Context)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now