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
?

597

0.004988662131519274

(pattern support = 11 / 35)(pattern violations = 1 / 45)(overlap = 5.00 / 7.00)

  • closure/319/build/src//com/google/javascript/jscomp/FunctionInjector.java#canInlineReferenceToFunction(NodeTraversal, Node, Node, Set, FunctionInjector$InliningMode, boolean, boolean)
  • closure/319/build/src//com/google/javascript/jscomp/NameAnalyzer#createNameInformation(NodeTraversal, Node, Node)
  • closure/319/build/src//com/google/javascript/jscomp/NameAnalyzer.java#access$200(NameAnalyzer, NodeTraversal, Node, Node)
  • closure/319/build/src//com/google/javascript/jscomp/InlineFunctions.java#visit(NodeTraversal, Node, Node)
  • closure/319/build/src//com/google/javascript/jscomp/NameAnalyzer.java#visit(NodeTraversal, Node, Node)

11

?

1286

0.002633311389071758

(pattern support = 12 / 35)(pattern violations = 1 / 93)(overlap = 5.00 / 7.00)

  • closure/319/build/src//com/google/javascript/jscomp/RemoveUnusedVars.java#traverseAndRemoveUnusedReferences(Node)
  • closure/319/build/src//com/google/javascript/jscomp/RemoveUnusedVars.java#access$200(RemoveUnusedVars, Node, Node, Scope)
  • closure/319/build/src//com/google/javascript/jscomp/RemoveUnusedVars#traverseNode(Node, Node, Scope)
  • closure/319/build/src//com/google/javascript/jscomp/RemoveUnusedVars.java#apply()

12

?

1303

0.002633311389071758

(pattern support = 12 / 35)(pattern violations = 1 / 93)(overlap = 5.00 / 7.00)

  • closure/319/build/src//com/google/javascript/jscomp/RemoveUnusedVars.java#traverseAndRemoveUnusedReferences(Node)
  • closure/319/build/src//com/google/javascript/jscomp/RemoveUnusedVars.java#access$200(RemoveUnusedVars, Node, Node, Scope)
  • closure/319/build/src//com/google/javascript/jscomp/RemoveUnusedVars#traverseNode(Node, Node, Scope)
  • closure/319/build/src//com/google/javascript/jscomp/RemoveUnusedVars.java#apply()

12

?

1304

0.002633311389071758

(pattern support = 12 / 35)(pattern violations = 1 / 93)(overlap = 5.00 / 7.00)

  • closure/319/build/src//com/google/javascript/jscomp/RemoveUnusedVars.java#traverseAndRemoveUnusedReferences(Node)
  • closure/319/build/src//com/google/javascript/jscomp/RemoveUnusedVars.java#access$200(RemoveUnusedVars, Node, Node, Scope)
  • closure/319/build/src//com/google/javascript/jscomp/RemoveUnusedVars#traverseNode(Node, Node, Scope)
  • closure/319/build/src//com/google/javascript/jscomp/RemoveUnusedVars.java#apply()

12

?

3276

0.0011574074074074073

(pattern support = 35 / 35)(pattern violations = 1 / 648)(overlap = 12.00 / 16.00)

  • closure/319/build/src//com/google/javascript/jscomp/CollapseVariableDeclarations.java#process(Node, Node)
  • closure/319/build/src//com/google/javascript/jscomp/CollapseProperties.java#process(Node, Node)
  • closure/319/build/src//com/google/javascript/jscomp/SourceMap2.java#traverse(SourceMap2$MappingVisitor)
  • closure/319/build/src//com/google/javascript/jscomp/CheckGlobalNames.java#checkDescendantNames(GlobalNamespace$Name, boolean)
  • closure/319/build/src//com/google/javascript/jscomp/TypedScopeCreator.java#resolveStubDeclarations()

35

?

3279

0.0011574074074074073

(pattern support = 35 / 35)(pattern violations = 1 / 648)(overlap = 12.00 / 16.00)

  • closure/319/build/src//com/google/javascript/jscomp/CollapseVariableDeclarations.java#process(Node, Node)
  • closure/319/build/src//com/google/javascript/jscomp/CollapseProperties.java#process(Node, Node)
  • closure/319/build/src//com/google/javascript/jscomp/SourceMap2.java#traverse(SourceMap2$MappingVisitor)
  • closure/319/build/src//com/google/javascript/jscomp/CheckGlobalNames.java#checkDescendantNames(GlobalNamespace$Name, boolean)
  • closure/319/build/src//com/google/javascript/jscomp/TypedScopeCreator.java#resolveStubDeclarations()

35

?

4023

0.0008665966386554621

(pattern support = 11 / 35)(pattern violations = 1 / 272)(overlap = 3.00 / 4.00)

  • closure/319/build/src//com/google/javascript/jscomp/InlineSimpleMethods#allDefinitionsEquivalent(Collection)
  • closure/319/build/src//com/google/javascript/jscomp/ExternExportsPass$Export#computePathPrefixes(String)
  • closure/319/build/src//com/google/javascript/jscomp/InlineSimpleMethods.java#visit(NodeTraversal, Node, Node, String)
  • closure/319/build/src//com/google/javascript/jscomp/ExternExportsPass.java#getExportedPath()
  • closure/319/build/src//com/google/javascript/jscomp/NameAnalyzer.java#replaceTopLevelExpressionWithRhs(Node, Node)

11

?

5665

0.0006162464985994398

(pattern support = 11 / 35)(pattern violations = 1 / 153)(overlap = 3.00 / 10.00)

  • closure/319/build/src//com/google/javascript/jscomp/PeepholeRemoveDeadCode.java#tryOptimizeDefaultCase(Node)
  • closure/319/build/src//com/google/javascript/jscomp/JsMessageVisitor.java#visit(NodeTraversal, Node, Node)
  • closure/319/build/src//com/google/javascript/jscomp/DevirtualizePrototypeMethods.java#rewriteDefinitionIfEligible(DefinitionSite, SimpleDefinitionFinder)
  • closure/319/build/src//com/google/javascript/jscomp/PeepholeRemoveDeadCode.java#isUselessCase(Node, Node)
  • closure/319/build/src//com/google/javascript/jscomp/JsMessageVisitor.java#extractMessageFromVariable(JsMessage$Builder, Node, Node, Node)

11

?

8332

0.0004186289900575615

(pattern support = 10 / 35)(pattern violations = 1 / 585)(overlap = 12.00 / 14.00)

  • closure/319/build/src//com/google/javascript/jscomp/NodeUtil.java#mayBeString(Node)
  • closure/319/build/src//com/google/javascript/jscomp/PeepholeFoldConstants.java#tryFoldKnownStringMethods(Node)
  • closure/319/build/src//com/google/javascript/jscomp/ChainableReverseAbstractInterpreter.java#caseTopType(JSType)
  • closure/319/build/src//com/google/javascript/jscomp/ChainableReverseAbstractInterpreter.java#access$000(ChainableReverseAbstractInterpreter, String)
  • closure/319/build/src//com/google/javascript/jscomp/ClosureCodingConvention#typeofClassDefiningName(Node)

10

?

8661

0.00038374324088609804

(pattern support = 10 / 35)(pattern violations = 1 / 585)(overlap = 11.00 / 14.00)

  • closure/319/build/src//com/google/javascript/jscomp/NodeUtil.java#mayBeString(Node)
  • closure/319/build/src//com/google/javascript/jscomp/PeepholeFoldConstants.java#tryFoldKnownStringMethods(Node)
  • closure/319/build/src//com/google/javascript/jscomp/ChainableReverseAbstractInterpreter.java#caseTopType(JSType)
  • closure/319/build/src//com/google/javascript/jscomp/ChainableReverseAbstractInterpreter.java#access$000(ChainableReverseAbstractInterpreter, String)
  • closure/319/build/src//com/google/javascript/jscomp/ClosureCodingConvention#typeofClassDefiningName(Node)

10

?

8667

0.00038374324088609804

(pattern support = 10 / 35)(pattern violations = 1 / 585)(overlap = 11.00 / 14.00)

  • closure/319/build/src//com/google/javascript/jscomp/NodeUtil.java#mayBeString(Node)
  • closure/319/build/src//com/google/javascript/jscomp/PeepholeFoldConstants.java#tryFoldKnownStringMethods(Node)
  • closure/319/build/src//com/google/javascript/jscomp/ChainableReverseAbstractInterpreter.java#caseTopType(JSType)
  • closure/319/build/src//com/google/javascript/jscomp/ChainableReverseAbstractInterpreter.java#access$000(ChainableReverseAbstractInterpreter, String)
  • closure/319/build/src//com/google/javascript/jscomp/ClosureCodingConvention#typeofClassDefiningName(Node)

10

?

9143

0.0003108003108003108

(pattern support = 10 / 35)(pattern violations = 1 / 585)(overlap = 7.00 / 11.00)

  • closure/319/build/src//com/google/javascript/jscomp/NodeUtil.java#mayBeString(Node)
  • closure/319/build/src//com/google/javascript/jscomp/PeepholeFoldConstants.java#tryFoldKnownStringMethods(Node)
  • closure/319/build/src//com/google/javascript/jscomp/ChainableReverseAbstractInterpreter.java#caseTopType(JSType)
  • closure/319/build/src//com/google/javascript/jscomp/ChainableReverseAbstractInterpreter.java#access$000(ChainableReverseAbstractInterpreter, String)
  • closure/319/build/src//com/google/javascript/jscomp/ClosureCodingConvention#typeofClassDefiningName(Node)

10

?

9151

0.0003108003108003108

(pattern support = 10 / 35)(pattern violations = 1 / 585)(overlap = 7.00 / 11.00)

  • closure/319/build/src//com/google/javascript/jscomp/NodeUtil.java#mayBeString(Node)
  • closure/319/build/src//com/google/javascript/jscomp/PeepholeFoldConstants.java#tryFoldKnownStringMethods(Node)
  • closure/319/build/src//com/google/javascript/jscomp/ChainableReverseAbstractInterpreter.java#caseTopType(JSType)
  • closure/319/build/src//com/google/javascript/jscomp/ChainableReverseAbstractInterpreter.java#access$000(ChainableReverseAbstractInterpreter, String)
  • closure/319/build/src//com/google/javascript/jscomp/ClosureCodingConvention#typeofClassDefiningName(Node)

10

?

9300

0.0002999887504218592

(pattern support = 16 / 35)(pattern violations = 1 / 1039)(overlap = 15.00 / 22.00)

  • closure/319/build/src//com/google/javascript/jscomp/TypeValidator.java#expectAnyObject(NodeTraversal, Node, JSType, String)
  • closure/319/build/src//com/google/javascript/rhino/jstype/StringType.java#testForEquality(JSType)
  • closure/319/build/src//com/google/javascript/jscomp/TypeInference.java#isAddedAsNumber(JSType)
  • closure/319/build/src//com/google/javascript/jscomp/TypeValidator.java#expectSwitchMatchesCase(NodeTraversal, Node, JSType, JSType)
  • closure/319/build/src//com/google/javascript/jscomp/TypeInference.java#newBooleanOutcomePair(JSType, FlowScope)

16

?

10078

0.00028375380488056544

(pattern support = 11 / 35)(pattern violations = 1 / 923)(overlap = 5.00 / 6.00)

  • closure/319/build/src//com/google/javascript/jscomp/AnonymousFunctionNamingCallback.java#visit(NodeTraversal, Node, Node)
  • closure/319/build/src//com/google/javascript/jscomp/CollapseAnonymousFunctions.java#isRecursiveFunction(Node)
  • closure/319/build/src//com/google/javascript/jscomp/VarCheck.java#visit(NodeTraversal, Node, Node)
  • closure/319/build/src//com/google/javascript/jscomp/Normalize.java#visit(NodeTraversal, Node, Node)
  • closure/319/build/src//com/google/javascript/jscomp/SyntacticScopeCreator#scanRoot(Node, Scope)

11

?

13275

0.00019924287706714482

(pattern support = 18 / 35)(pattern violations = 1 / 2151)(overlap = 5.00 / 6.00)

  • closure/319/build/src//com/google/javascript/jscomp/TypedScopeCreator.java#visit(NodeTraversal, Node, Node)
  • closure/319/build/src//com/google/javascript/jscomp/CheckProvides.java#visit(NodeTraversal, Node, Node)
  • closure/319/build/src//com/google/javascript/jscomp/ClosureCodeRemoval.java#<init>(ClosureCodeRemoval, Node, Node, NodeTraversal)
  • closure/319/build/src//com/google/javascript/rhino/Node.java#isQualifiedName()
  • closure/319/build/src//com/google/javascript/jscomp/ClosureCodeRemoval.java#visit(NodeTraversal, Node, Node)

18

?

14829

0.00009425781397277833

(pattern support = 10 / 35)(pattern violations = 1 / 1263)(overlap = 5.00 / 12.00)

  • closure/319/build/src//com/google/javascript/jscomp/MustBeReachingVariableDef.java#addToDefIfLocal(String, Node, Node, MustBeReachingVariableDef$MustDef)
  • closure/319/build/src//com/google/javascript/jscomp/AmbiguateProperties.java#<init>(AmbiguateProperties, Collection)
  • closure/319/build/src//com/google/javascript/jscomp/NameAnalyzer.java#access$1300(NameAnalyzer, String, String)
  • closure/319/build/src//com/google/javascript/jscomp/ReplaceIdGenerators.java#<init>(AbstractCompiler, Set)
  • closure/319/build/src//com/google/javascript/jscomp/Compiler.java#initInputsByNameMap()

10

?

14830

0.00009425781397277833

(pattern support = 10 / 35)(pattern violations = 1 / 1263)(overlap = 5.00 / 12.00)

  • closure/319/build/src//com/google/javascript/jscomp/MustBeReachingVariableDef.java#addToDefIfLocal(String, Node, Node, MustBeReachingVariableDef$MustDef)
  • closure/319/build/src//com/google/javascript/jscomp/AmbiguateProperties.java#<init>(AmbiguateProperties, Collection)
  • closure/319/build/src//com/google/javascript/jscomp/NameAnalyzer.java#access$1300(NameAnalyzer, String, String)
  • closure/319/build/src//com/google/javascript/jscomp/ReplaceIdGenerators.java#<init>(AbstractCompiler, Set)
  • closure/319/build/src//com/google/javascript/jscomp/Compiler.java#initInputsByNameMap()

10

?

16243

0.00007590305661608992

(pattern support = 10 / 35)(pattern violations = 1 / 3422)(overlap = 10.00 / 11.00)

  • closure/319/build/src//com/google/javascript/jscomp/PrepareAst.java#annotateFunctions(Node, Node)
  • closure/319/build/src//com/google/javascript/jscomp/Normalize.java#visit(NodeTraversal, Node, Node)
  • closure/319/build/src//com/google/javascript/jscomp/NodeUtil.java#checkForStateChangeHelper(Node, boolean, AbstractCompiler)
  • closure/319/build/src//com/google/javascript/jscomp/DefinitionsRemover.java#isDefinitionNode(Node)
  • closure/319/build/src//com/google/javascript/jscomp/NodeUtil.java#isEmptyFunctionExpression(Node)

10

?

17000

0.00007415858528237307

(pattern support = 13 / 35)(pattern violations = 1 / 3506)(overlap = 7.00 / 10.00)

  • closure/319/build/src//com/google/javascript/jscomp/GatherSideEffectSubexpressionsCallback.java#keepSimplifiedShortCircuitExpression(Node)
  • closure/319/build/src//com/google/javascript/jscomp/GatherSideEffectSubexpressionsCallback.java#keepSimplifiedHookExpression(Node, boolean, boolean)
  • closure/319/build/src//com/google/javascript/jscomp/ObjectPropertyStringPreprocess.java#visit(NodeTraversal, Node, Node)
  • closure/319/build/src//com/google/javascript/jscomp/GatherSideEffectSubexpressionsCallback.java#processShortCircuitExpression(Node)
  • closure/319/build/src//com/google/javascript/jscomp/GatherSideEffectSubexpressionsCallback.java#processHook(Node)

13

?

18884

0.00006951685783802573

(pattern support = 10 / 35)(pattern violations = 1 / 3425)(overlap = 5.00 / 6.00)

  • closure/319/build/src//com/google/javascript/jscomp/JsMessageVisitor.java#visit(NodeTraversal, Node, Node)
  • closure/319/build/src//com/google/javascript/jscomp/AliasKeywords.java#visit(NodeTraversal, Node, Node)
  • closure/319/build/src//com/google/javascript/jscomp/JsMessageVisitor.java#extractFromReturnDescendant(JsMessage$Builder, Node)
  • closure/319/build/src//com/google/javascript/jscomp/AliasKeywords$FindAliasableNodes#visitNameNode(Node)
  • closure/319/build/src//com/google/javascript/jscomp/JsMessageVisitor.java#extractMessageFromVariable(JsMessage$Builder, Node, Node, Node)

10

?

19006

0.00006951685783802573

(pattern support = 10 / 35)(pattern violations = 1 / 3425)(overlap = 5.00 / 6.00)

  • closure/319/build/src//com/google/javascript/jscomp/JsMessageVisitor.java#visit(NodeTraversal, Node, Node)
  • closure/319/build/src//com/google/javascript/jscomp/AliasKeywords.java#visit(NodeTraversal, Node, Node)
  • closure/319/build/src//com/google/javascript/jscomp/JsMessageVisitor.java#extractFromReturnDescendant(JsMessage$Builder, Node)
  • closure/319/build/src//com/google/javascript/jscomp/AliasKeywords$FindAliasableNodes#visitNameNode(Node)
  • closure/319/build/src//com/google/javascript/jscomp/JsMessageVisitor.java#extractMessageFromVariable(JsMessage$Builder, Node, Node, Node)

10

?

19061

0.00006951685783802573

(pattern support = 10 / 35)(pattern violations = 1 / 3425)(overlap = 5.00 / 6.00)

  • closure/319/build/src//com/google/javascript/jscomp/JsMessageVisitor.java#visit(NodeTraversal, Node, Node)
  • closure/319/build/src//com/google/javascript/jscomp/AliasKeywords.java#visit(NodeTraversal, Node, Node)
  • closure/319/build/src//com/google/javascript/jscomp/JsMessageVisitor.java#extractFromReturnDescendant(JsMessage$Builder, Node)
  • closure/319/build/src//com/google/javascript/jscomp/AliasKeywords$FindAliasableNodes#visitNameNode(Node)
  • closure/319/build/src//com/google/javascript/jscomp/JsMessageVisitor.java#extractMessageFromVariable(JsMessage$Builder, Node, Node, Node)

10