Review

Misuse Details

Details about the known misuse from the MUBench dataset.

Potential Hits

Findings of the detector that identify an anomaly in the same file and method as the known misuse.

Hit Rank Confidence Confidence String Pattern Examples Pattern Support Pattern Violation Target Environment Mapping
?

105

0.011469534050179211

(pattern support = 14 / 31)(pattern violations = 1 / 35)(overlap = 8.00 / 9.00)

  • closure/319/build/src//com/google/javascript/jscomp/TypeValidator.java#expectCanAssignTo(NodeTraversal, Node, JSType, JSType, String)
  • closure/319/build/src//com/google/javascript/jscomp/TypeValidator.java#expectCanAssignToPropertyOf(NodeTraversal, Node, JSType, JSType, Node, String)
  • closure/319/build/src//com/google/javascript/jscomp/TypeValidator.java#expectCanOverride(NodeTraversal, Node, JSType, JSType, String, JSType)
  • closure/319/build/src//com/google/javascript/jscomp/TypeValidator.java#expectSuperType(NodeTraversal, Node, ObjectType, ObjectType)
  • closure/319/build/src//com/google/javascript/jscomp/TypeValidator#registerMismatch(JSType, JSType)

14

?

201

0.009216589861751152

(pattern support = 14 / 31)(pattern violations = 1 / 35)(overlap = 5.00 / 7.00)

  • closure/319/build/src//com/google/javascript/jscomp/TypeValidator.java#expectCanAssignTo(NodeTraversal, Node, JSType, JSType, String)
  • closure/319/build/src//com/google/javascript/jscomp/TypeValidator.java#expectCanAssignToPropertyOf(NodeTraversal, Node, JSType, JSType, Node, String)
  • closure/319/build/src//com/google/javascript/jscomp/TypeValidator.java#expectCanOverride(NodeTraversal, Node, JSType, JSType, String, JSType)
  • closure/319/build/src//com/google/javascript/jscomp/TypeValidator.java#expectSuperType(NodeTraversal, Node, ObjectType, ObjectType)
  • closure/319/build/src//com/google/javascript/jscomp/TypeValidator#registerMismatch(JSType, JSType)

14

?

271

0.0075901328273244775

(pattern support = 18 / 31)(pattern violations = 1 / 51)(overlap = 12.00 / 18.00)

  • closure/319/build/src//com/google/javascript/jscomp/CrossModuleCodeMotion.java#maybeProcessDeclaration(NodeTraversal, Node, Node, CrossModuleCodeMotion$NamedInfo)
  • closure/319/build/src//com/google/javascript/jscomp/NameAnalyzer.java#access$1100(NameAnalyzer, Node)
  • closure/319/build/src//com/google/javascript/jscomp/SideEffectsAnalysis.java#nodeHasAncestor(Node, Node)
  • closure/319/build/src//com/google/javascript/jscomp/ExpressionDecomposer.java#moveExpression(Node)
  • closure/319/build/src//com/google/javascript/jscomp/NameAnalyzer.java#visit(NodeTraversal, Node, Node)

18

?

272

0.0075901328273244775

(pattern support = 18 / 31)(pattern violations = 1 / 51)(overlap = 12.00 / 18.00)

  • closure/319/build/src//com/google/javascript/jscomp/CrossModuleCodeMotion.java#maybeProcessDeclaration(NodeTraversal, Node, Node, CrossModuleCodeMotion$NamedInfo)
  • closure/319/build/src//com/google/javascript/jscomp/NameAnalyzer.java#access$1100(NameAnalyzer, Node)
  • closure/319/build/src//com/google/javascript/jscomp/SideEffectsAnalysis.java#nodeHasAncestor(Node, Node)
  • closure/319/build/src//com/google/javascript/jscomp/ExpressionDecomposer.java#moveExpression(Node)
  • closure/319/build/src//com/google/javascript/jscomp/NameAnalyzer.java#visit(NodeTraversal, Node, Node)

18

?

3653

0.0009967379485320768

(pattern support = 11 / 31)(pattern violations = 1 / 267)(overlap = 3.00 / 4.00)

  • closure/319/build/src//com/google/javascript/jscomp/ExternExportsPass.java#appendExtern(String, Node)
  • closure/319/build/src//com/google/javascript/jscomp/InlineSimpleMethods#allDefinitionsEquivalent(Collection)
  • closure/319/build/src//com/google/javascript/jscomp/InlineSimpleMethods.java#access$000(InlineSimpleMethods, Collection)
  • closure/319/build/src//com/google/javascript/jscomp/InlineSimpleMethods.java#visit(NodeTraversal, Node, Node, String)
  • closure/319/build/src//com/google/javascript/jscomp/TightenTypes.java#process(Node, Node)

11

?

3654

0.0009967379485320768

(pattern support = 11 / 31)(pattern violations = 1 / 267)(overlap = 3.00 / 4.00)

  • closure/319/build/src//com/google/javascript/jscomp/ExternExportsPass.java#appendExtern(String, Node)
  • closure/319/build/src//com/google/javascript/jscomp/InlineSimpleMethods#allDefinitionsEquivalent(Collection)
  • closure/319/build/src//com/google/javascript/jscomp/InlineSimpleMethods.java#access$000(InlineSimpleMethods, Collection)
  • closure/319/build/src//com/google/javascript/jscomp/InlineSimpleMethods.java#visit(NodeTraversal, Node, Node, String)
  • closure/319/build/src//com/google/javascript/jscomp/TightenTypes.java#process(Node, Node)

11

?

3655

0.0009967379485320768

(pattern support = 11 / 31)(pattern violations = 1 / 267)(overlap = 3.00 / 4.00)

  • closure/319/build/src//com/google/javascript/jscomp/ExternExportsPass.java#appendExtern(String, Node)
  • closure/319/build/src//com/google/javascript/jscomp/InlineSimpleMethods#allDefinitionsEquivalent(Collection)
  • closure/319/build/src//com/google/javascript/jscomp/InlineSimpleMethods.java#access$000(InlineSimpleMethods, Collection)
  • closure/319/build/src//com/google/javascript/jscomp/InlineSimpleMethods.java#visit(NodeTraversal, Node, Node, String)
  • closure/319/build/src//com/google/javascript/jscomp/TightenTypes.java#process(Node, Node)

11

?

3656

0.0009967379485320768

(pattern support = 11 / 31)(pattern violations = 1 / 267)(overlap = 3.00 / 4.00)

  • closure/319/build/src//com/google/javascript/jscomp/ExternExportsPass.java#appendExtern(String, Node)
  • closure/319/build/src//com/google/javascript/jscomp/InlineSimpleMethods#allDefinitionsEquivalent(Collection)
  • closure/319/build/src//com/google/javascript/jscomp/InlineSimpleMethods.java#access$000(InlineSimpleMethods, Collection)
  • closure/319/build/src//com/google/javascript/jscomp/InlineSimpleMethods.java#visit(NodeTraversal, Node, Node, String)
  • closure/319/build/src//com/google/javascript/jscomp/TightenTypes.java#process(Node, Node)

11

?

5637

0.0005197325110010048

(pattern support = 18 / 31)(pattern violations = 1 / 931)(overlap = 5.00 / 6.00)

  • closure/319/build/src//com/google/javascript/jscomp/NodeUtil.java#isReferenceName(Node)
  • closure/319/build/src//com/google/javascript/jscomp/CrossModuleCodeMotion.java#visit(NodeTraversal, Node, Node)
  • closure/319/build/src//com/google/javascript/jscomp/SimpleDefinitionFinder.java#isSimpleFunctionDeclaration(Node)
  • closure/319/build/src//com/google/javascript/jscomp/MakeDeclaredNamesUnique.java#visit(NodeTraversal, Node, Node)
  • closure/319/build/src//com/google/javascript/jscomp/SyntacticScopeCreator.java#createScope(Node, Scope)

18

?

12277

0.0002041649652919559

(pattern support = 10 / 31)(pattern violations = 1 / 1264)(overlap = 16.00 / 20.00)

  • closure/319/build/src//com/google/javascript/jscomp/ControlFlowAnalysis.java#process(Node, Node)
  • closure/319/build/src//com/google/javascript/jscomp/NameAnalyzer#recordAlias(String, String)
  • closure/319/build/src//com/google/javascript/jscomp/MustBeReachingVariableDef.java#addToDefIfLocal(String, Node, Node, MustBeReachingVariableDef$MustDef)
  • closure/319/build/src//com/google/javascript/jscomp/deps/SortedDependencies.java#<init>(List)
  • closure/319/build/src//com/google/javascript/jscomp/NameAnalyzer.java#visit(NodeTraversal, Node, Node)

10

?

16398

0.0001272808732486152

(pattern support = 10 / 31)(pattern violations = 1 / 2112)(overlap = 5.00 / 6.00)

  • closure/319/build/src//com/google/javascript/jscomp/RemoveUnusedVars.java#removeUnreferencedVars()
  • closure/319/build/src//com/google/javascript/jscomp/RemoveUnusedVars.java#<init>(Node, Node, boolean)
  • closure/319/build/src//com/google/javascript/jscomp/UnfoldCompoundAssignments.java#visit(NodeTraversal, Node, Node)
  • closure/319/build/src//com/google/javascript/jscomp/InlineSimpleMethods.java#visit(NodeTraversal, Node, Node, String)
  • closure/319/build/src//com/google/javascript/jscomp/ExpressionDecomposer.java#isSafeAssign(Node, boolean)

10

?

16399

0.0001272808732486152

(pattern support = 10 / 31)(pattern violations = 1 / 2112)(overlap = 5.00 / 6.00)

  • closure/319/build/src//com/google/javascript/jscomp/RemoveUnusedVars.java#removeUnreferencedVars()
  • closure/319/build/src//com/google/javascript/jscomp/RemoveUnusedVars.java#<init>(Node, Node, boolean)
  • closure/319/build/src//com/google/javascript/jscomp/UnfoldCompoundAssignments.java#visit(NodeTraversal, Node, Node)
  • closure/319/build/src//com/google/javascript/jscomp/InlineSimpleMethods.java#visit(NodeTraversal, Node, Node, String)
  • closure/319/build/src//com/google/javascript/jscomp/ExpressionDecomposer.java#isSafeAssign(Node, boolean)

10

?

18738

0.00006153183503315027

(pattern support = 10 / 31)(pattern violations = 1 / 1165)(overlap = 10.00 / 45.00)

  • closure/319/build/src//com/google/javascript/rhino/jstype/StringType.java#testForEquality(JSType)
  • closure/319/build/src//com/google/javascript/rhino/jstype/UnionType.java#getRestrictedUnion(JSType)
  • closure/319/build/src//com/google/javascript/rhino/jstype/UnionType.java#meet(JSType)
  • closure/319/build/src//com/google/javascript/rhino/jstype/VoidType.java#testForEquality(JSType)
  • closure/319/build/src//com/google/javascript/jscomp/CheckAccessControls.java#checkPropertyVisibility(NodeTraversal, Node, Node)

10

?

19869

0.000027613477586140246

(pattern support = 11 / 31)(pattern violations = 1 / 1947)(overlap = 5.00 / 33.00)

  • closure/319/build/src//com/google/javascript/jscomp/CollapseProperties.java#flattenPrefixes(String, GlobalNamespace$Name, int)
  • closure/319/build/src//com/google/javascript/jscomp/CollapseProperties.java#process(Node, Node)
  • closure/319/build/src//com/google/javascript/jscomp/CollapseProperties.java#flattenReferencesTo(GlobalNamespace$Name, String)
  • closure/319/build/src//com/google/javascript/jscomp/CollapseProperties.java#flattenReferencesToCollapsibleDescendantNames(GlobalNamespace$Name, String)

11

?

19870

0.000027613477586140246

(pattern support = 11 / 31)(pattern violations = 1 / 1947)(overlap = 5.00 / 33.00)

  • closure/319/build/src//com/google/javascript/jscomp/CollapseProperties.java#flattenPrefixes(String, GlobalNamespace$Name, int)
  • closure/319/build/src//com/google/javascript/jscomp/CollapseProperties.java#process(Node, Node)
  • closure/319/build/src//com/google/javascript/jscomp/CollapseProperties.java#flattenReferencesTo(GlobalNamespace$Name, String)
  • closure/319/build/src//com/google/javascript/jscomp/CollapseProperties.java#flattenReferencesToCollapsibleDescendantNames(GlobalNamespace$Name, String)

11

?

19871

0.000027613477586140246

(pattern support = 11 / 31)(pattern violations = 1 / 1947)(overlap = 5.00 / 33.00)

  • closure/319/build/src//com/google/javascript/jscomp/CollapseProperties.java#flattenPrefixes(String, GlobalNamespace$Name, int)
  • closure/319/build/src//com/google/javascript/jscomp/CollapseProperties.java#process(Node, Node)
  • closure/319/build/src//com/google/javascript/jscomp/CollapseProperties.java#flattenReferencesTo(GlobalNamespace$Name, String)
  • closure/319/build/src//com/google/javascript/jscomp/CollapseProperties.java#flattenReferencesToCollapsibleDescendantNames(GlobalNamespace$Name, String)

11

?

19872

0.000027613477586140246

(pattern support = 11 / 31)(pattern violations = 1 / 1947)(overlap = 5.00 / 33.00)

  • closure/319/build/src//com/google/javascript/jscomp/CollapseProperties.java#flattenPrefixes(String, GlobalNamespace$Name, int)
  • closure/319/build/src//com/google/javascript/jscomp/CollapseProperties.java#process(Node, Node)
  • closure/319/build/src//com/google/javascript/jscomp/CollapseProperties.java#flattenReferencesTo(GlobalNamespace$Name, String)
  • closure/319/build/src//com/google/javascript/jscomp/CollapseProperties.java#flattenReferencesToCollapsibleDescendantNames(GlobalNamespace$Name, String)

11