This repository was archived by the owner on Mar 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
This repository was archived by the owner on Mar 8, 2024. It is now read-only.
Index out of bounds in generalised node comparator #1
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't working
Description
The following exception was thrown while running Schaapi on 800 users of version 2.6 of the commons-lang library:
2019-02-08 21:25:15,029 [main] ERROR o.c.s.miningpipeline.MiningPipeline [MiningPipeline.kt:85] - A critical error occurred during the mining process causing it to be aborted.
java.lang.IndexOutOfBoundsException: Index: 2, Size: 2
at java.util.ArrayList.rangeCheck(ArrayList.java:657) ~[na:1.8.0_201]
at java.util.ArrayList.get(ArrayList.java:433) ~[na:1.8.0_201]
at org.cafejojo.schaapi.models.libraryusagegraph.jimple.GeneralizedNodeComparator.generalizedValuesAreEqual(GeneralizedNodeComparator.kt:57) ~[schaapi.jar:na]
at org.cafejojo.schaapi.models.libraryusagegraph.jimple.GeneralizedNodeComparator.satisfies(GeneralizedNodeComparator.kt:26) ~[schaapi.jar:na]
at org.cafejojo.schaapi.models.libraryusagegraph.jimple.GeneralizedNodeComparator.satisfies(GeneralizedNodeComparator.kt:14) ~[schaapi.jar:na]
at org.cafejojo.schaapi.models.NodeSequenceUtil.sequenceContainsSubSequence(NodeSequenceUtil.kt:18) ~[schaapi.jar:na]
at org.cafejojo.schaapi.miningpipeline.patterndetector.ccspan.CCSpan.calculateSupport(CCSpan.kt:99) ~[schaapi.jar:na]
at org.cafejojo.schaapi.miningpipeline.patterndetector.ccspan.CCSpan.checkSupportOfSubSequence(CCSpan.kt:79) ~[schaapi.jar:na]
at org.cafejojo.schaapi.miningpipeline.patterndetector.ccspan.CCSpan.findAllContiguousSequencesOfLength(CCSpan.kt:73) ~[schaapi.jar:na]
at org.cafejojo.schaapi.miningpipeline.patterndetector.ccspan.CCSpan.findFrequentPatterns$ccspan_pattern_detector(CCSpan.kt:47) ~[schaapi.jar:na]
at org.cafejojo.schaapi.miningpipeline.patterndetector.ccspan.CCSpanPatternDetector.findPatterns(CCSpanPatternDetector.kt:19) ~[schaapi.jar:na]
at org.cafejojo.schaapi.miningpipeline.MiningPipeline.run(MiningPipeline.kt:70) ~[schaapi.jar:na]
at org.cafejojo.schaapi.GitHubMiningCommandLineInterface.run(GitHubMiningCommandLineInterface.kt:69) [schaapi.jar:na]
at org.cafejojo.schaapi.CommandLineInterface.run(CommandLineInterface.kt:77) [schaapi.jar:na]
at org.cafejojo.schaapi.CommandLineInterfaceKt$main$flavors$2.invoke(CommandLineInterface.kt:24) [schaapi.jar:na]
at org.cafejojo.schaapi.CommandLineInterfaceKt$main$flavors$2.invoke(CommandLineInterface.kt) [schaapi.jar:na]
at org.cafejojo.schaapi.CommandLineInterfaceKt.main(CommandLineInterface.kt:37) [schaapi.jar:na]
at org.cafejojo.schaapi.DekkerSuperDuperCliKt.main(DekkerSuperDuperCli.kt:49) [schaapi.jar:na]
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working