Examples of Correlation


Examples of com.google.gwt.dev.jjs.Correlation

public abstract class AbstractMember implements Member {
  private final String jsName;
  private final String sourceLocation;

  public AbstractMember(SourceInfo info) {
    Correlation nameCorrelation = info.getPrimaryCorrelation(Axis.JS_NAME);
    if (nameCorrelation != null) {
      jsName = nameCorrelation.getName().getShortIdent();
    } else {
      jsName = null;
    }
    sourceLocation = info.getFileName();
  }
View Full Code Here

Examples of com.google.gwt.dev.jjs.Correlation

          origins.add(new OriginImpl(c.getOrigin()));
        }
      }

      String literalType = null;
      Correlation literalCorrelation = info.getPrimaryCorrelation(Axis.LITERAL);
      if (literalCorrelation != null) {
        literalType = literalCorrelation.getLiteral().getDescription();
      }

      theStory = new StoryImpl(storyCache.size(), members, origins,
          literalType, fragment, length);
      storyCache.put(info, theStory);
View Full Code Here

Examples of com.google.gwt.dev.jjs.Correlation

          origins.add(new OriginImpl(c.getOrigin()));
        }
      }

      String literalType = null;
      Correlation literalCorrelation = info.getPrimaryCorrelation(Axis.LITERAL);
      if (literalCorrelation != null) {
        literalType = literalCorrelation.getLiteral().getDescription();
      }

      theStory = new StoryImpl(storyCache.size(), members, origins,
          literalType, fragment, length);
      storyCache.put(info, theStory);
View Full Code Here

Examples of com.google.gwt.dev.jjs.Correlation

    if (!(sourceInfo instanceof SourceInfoCorrelation)) {
      return null;
    }

    Correlation correlation = ((SourceInfoCorrelation) sourceInfo).getPrimaryCorrelation();
    if (correlation == null) {
      return null;
    }

    // Conserve space by not recording the package name. The sourcemap already contains the full
    // path of the Java file (in the "sources" field), which is usually enough to identify
    // the package. (The name may be a synthetic method name.)
    return correlation.getIdent();
  }
View Full Code Here

Examples of com.google.gwt.dev.jjs.Correlation

          members.add(m);
        }
      }

      String literalType = null;
      Correlation literalCorrelation = info.getCorrelation(Axis.LITERAL);
      if (literalCorrelation != null) {
        literalType = literalCorrelation.getLiteral().getDescription();
      }

      theStory = new StoryImpl(storyCache.size(), members, literalType, fragment, length);
      storyCache.put(info, theStory);
    } else {
View Full Code Here

Examples of com.google.gwt.dev.jjs.Correlation

          members.add(m);
        }
      }

      String literalType = null;
      Correlation literalCorrelation = info.getCorrelation(Axis.LITERAL);
      if (literalCorrelation != null) {
        literalType = literalCorrelation.getLiteral().getDescription();
      }

      theStory = new StoryImpl(storyCache.size(), members, literalType,
          fragment, length);
      storyCache.put(info, theStory);
View Full Code Here

Examples of com.google.gwt.dev.jjs.Correlation

  protected String getJavaName(SourceInfo sourceInfo) {
    // We can discard Unknown or not-so-valid (eg. com.google.gwt.dev.js.ast.JsProgram)
    // sourceInfo
    String rangeName = null;
    if (sourceInfo instanceof SourceInfoCorrelation) {
      Correlation correlation = ((SourceInfoCorrelation) sourceInfo).getPrimaryCorrelation();
      if (correlation != null) {
        // We can reduce name sizes by removing the left part corresponding to the
        // package name, eg. com.google.gwt.client. Because this is already in the file name.
        // This name includes static/synth method names
        rangeName = correlation.getIdent();
      }
    }
    return rangeName;
  }
View Full Code Here

Examples of com.google.gwt.dev.jjs.Correlation

          members.add(m);
        }
      }

      String literalType = null;
      Correlation literalCorrelation = info.getCorrelation(Axis.LITERAL);
      if (literalCorrelation != null) {
        literalType = literalCorrelation.getLiteral().getDescription();
      }

      theStory = new StoryImpl(storyCache.size(), members, literalType, fragment, length);
      storyCache.put(info, theStory);
    } else {
View Full Code Here

Examples of com.google.gwt.dev.jjs.Correlation

          origins.add(new OriginImpl(c.getOrigin()));
        }
      }

      String literalType = null;
      Correlation literalCorrelation = info.getPrimaryCorrelation(Axis.LITERAL);
      if (literalCorrelation != null) {
        literalType = literalCorrelation.getLiteral().getDescription();
      }

      theStory = new StoryImpl(storyCache.size(), members, origins,
          literalType, fragment, length);
      storyCache.put(info, theStory);
View Full Code Here

Examples of net.sf.collabreview.core.toolbox.Correlation

    resultString += names + "\n" + scoreString + "\n";
  }

  private void computeGlobalCorrelation() {
    setStatusInfo("computing one-shot correlations");
    Correlation globalResults = correlateQualityPredictions(listArtifacts(), collabReview.getReputationMetricManager());
    globalResults.sortByX();
    resultString += String.format(Locale.US, "One-shot Pearson r=%.2f, one-shot Spearman rho=%.2f\n", globalResults.getPearsonCorrelation(), globalResults.getSpearmanCorrelation());
    String assessedValues = "";
    String predictedValues = "";
    for (Correlation.RowData data : globalResults.listRowData()) {
      assessedValues += String.format(Locale.US, "%6.2f,", data.getX());
      predictedValues += String.format(Locale.US, "%6.2f,", data.getY());
    }
    resultString += "Assessed values:  " + assessedValues + "\n";
    resultString += "Predicted values: " + predictedValues + "\n";
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.