id stringlengths 7 14 | test_class dict | test_case dict | focal_class dict | focal_method dict | repository dict |
|---|---|---|---|---|---|
95448925_3 | {
"fields": [
{
"declarator": "REBASE = false",
"modifier": "private static final",
"original_string": "private static final boolean REBASE = false;",
"type": "boolean",
"var_name": "REBASE"
},
{
"declarator": "AVSC = new Schema.Parser().parse(\n \"{\\\"names... | {
"body": "@Test\n public void runTestWithSingleShardColumn() throws IOException\n {\n runTest(AVRO, AVRO_X, false, newSparkVerifier(Collections.singletonList(\"k2\"))\n .withMaxGroupSize(2));\n }",
"class_method_signature": "SparkVerifierTest.runTestWithSingleShardColumn()",
"const... | {
"fields": [
{
"declarator": "LOGGER = LoggerFactory.getLogger(SparkVerifier.class)",
"modifier": "private static final",
"original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(SparkVerifier.class);",
"type": "Logger",
"var_name": "LOGGER"
},
{
... | {
"body": "public SparkVerifier withMaxGroupSize(int maxGroupSize)\n {\n this.maxGroupSize = maxGroupSize;\n return this;\n }",
"class_method_signature": "SparkVerifier.withMaxGroupSize(int maxGroupSize)",
"constructor": false,
"full_signature": "public SparkVerifier withMaxGroupSize(int max... | {
"created": null,
"fork": null,
"fork_count": 12,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 95448925,
"size": 2106,
"stargazer_count": 36,
"stars": null,
"updates": null,
"url": "https://github.com/goldmansachs/tablasco"
} |
95448925_17 | {
"fields": [],
"file": "tablasco-junit/src/test/java/com/gs/tablasco/results/parser/ExpectedResultsParserTest.java",
"identifier": "ExpectedResultsParserTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testParse()\n {\n File expected = new File(TableTestUtils.getExpectedDirectory(), ExpectedResultsParserTest.class.getSimpleName() + \".txt\");\n\n ExpectedResults results = new ExpectedResultsParser(new FileSystemExpectedResultsLoader(), expected).parse();\n\n ... | {
"fields": [
{
"declarator": "SECTION_IDENTIFIER = \"Section\"",
"modifier": "static final",
"original_string": "static final String SECTION_IDENTIFIER = \"Section\";",
"type": "String",
"var_name": "SECTION_IDENTIFIER"
},
{
"declarator": "METADATA_IDENTIFIER = \"Metad... | {
"body": "public ExpectedResults parse()\n {\n this.results = new ExpectedResults();\n try (InputStream inputStream = this.loader.load(this.file))\n {\n BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream, StandardCharsets.UTF_8));\n parse(reader... | {
"created": null,
"fork": null,
"fork_count": 12,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 95448925,
"size": 2106,
"stargazer_count": 36,
"stars": null,
"updates": null,
"url": "https://github.com/goldmansachs/tablasco"
} |
95448925_40 | {
"fields": [],
"file": "tablasco-junit/src/test/java/com/gs/tablasco/verify/indexmap/TimeBoundPartialMatcherTest.java",
"identifier": "TimeBoundPartialMatcherTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test(expected = IndexOutOfBoundsException.class)\n public void matchingExceptionPropagates()\n {\n PartialMatcher dyingMatcher = (allMissingRows, allSurplusRows, matchedColumns) -> Collections.singletonList(\"foo\").get(2);\n new TimeBoundPartialMatcher(dyingMatcher, Long.MAX_VALUE).ma... | {
"fields": [
{
"declarator": "LOGGER = LoggerFactory.getLogger(TimeBoundPartialMatcher.class)",
"modifier": "private static final",
"original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(TimeBoundPartialMatcher.class);",
"type": "Logger",
"var_name": "LOGGE... | {
"body": "@Override\n public void match(final List<UnmatchedIndexMap> allMissingRows, final List<UnmatchedIndexMap> allSurplusRows, final List<IndexMap> matchedColumns)\n {\n LOGGER.debug(\"Starting partial match\");\n ExecutorService executorService = Executors.newSingleThreadExecutor();\n ... | {
"created": null,
"fork": null,
"fork_count": 12,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 95448925,
"size": 2106,
"stargazer_count": 36,
"stars": null,
"updates": null,
"url": "https://github.com/goldmansachs/tablasco"
} |
95448925_37 | {
"fields": [
{
"declarator": "unmatched = new UnmatchedIndexMap(0, 0)",
"modifier": "private",
"original_string": "private UnmatchedIndexMap unmatched = new UnmatchedIndexMap(0, 0);",
"type": "UnmatchedIndexMap",
"var_name": "unmatched"
},
{
"declarator": "unmatched1 =... | {
"body": "@Test(expected = IllegalArgumentException.class)\n public void testAddPartialMatchFailsIfSelf()\n {\n this.unmatched.addMatch(2, this.unmatched);\n }",
"class_method_signature": "UnmatchedIndexMapTest.testAddPartialMatchFailsIfSelf()",
"constructor": false,
"full_signature": "@Test(ex... | {
"fields": [
{
"declarator": "partialMatches",
"modifier": "private",
"original_string": "private SortedSet<Match> partialMatches;",
"type": "SortedSet<Match>",
"var_name": "partialMatches"
},
{
"declarator": "bestMutualMatch",
"modifier": "private",
"origi... | {
"body": "public void addMatch(int matchScore, UnmatchedIndexMap match)\n {\n if (this.equals(match))\n {\n throw new IllegalArgumentException(\"Cannot add this as partial match\");\n }\n if (this.partialMatches == null)\n {\n this.partialMatches = new Tree... | {
"created": null,
"fork": null,
"fork_count": 12,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 95448925,
"size": 2106,
"stargazer_count": 36,
"stars": null,
"updates": null,
"url": "https://github.com/goldmansachs/tablasco"
} |
95448925_21 | {
"fields": [
{
"declarator": "tolerance = 0.1d",
"modifier": "private final",
"original_string": "private final double tolerance = 0.1d;",
"type": "double",
"var_name": "tolerance"
},
{
"declarator": "varianceThreshold = 5.0d",
"modifier": "private final",
... | {
"body": "@Test\n public void testCompareNumbersWithinTolerance()\n {\n Assert.assertTrue(\"Results match expected. Actual(20.0) and Expected(20.09) within Tolerance range(0.1).\",this.toleranceCellComparator.compare(new Double(20.0), new Double(20.09)));\n Assert.assertTrue(\"Results match expec... | {
"fields": [
{
"declarator": "formatter",
"modifier": "private final",
"original_string": "private final CellFormatter formatter;",
"type": "CellFormatter",
"var_name": "formatter"
}
],
"file": "tablasco-junit/src/main/java/com/gs/tablasco/verify/CellComparator.java",
"ide... | {
"body": "protected abstract boolean compare(Object actual, Object expected);",
"class_method_signature": "CellComparator.compare(Object actual, Object expected)",
"constructor": false,
"full_signature": "protected abstract boolean compare(Object actual, Object expected)",
"identifier": "compare",
"invocat... | {
"created": null,
"fork": null,
"fork_count": 12,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 95448925,
"size": 2106,
"stargazer_count": 36,
"stars": null,
"updates": null,
"url": "https://github.com/goldmansachs/tablasco"
} |
189191730_3 | {
"fields": [],
"file": "licensescout-maven-utils/src/test/java/org/aposin/licensescout/maven/utils/NexusArtifactUrlBuilderTest.java",
"identifier": "NexusArtifactUrlBuilderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testBuildWithoutClassifier() {\n final IArtifactUrlBuilder artifactUrlBuilder = new NexusArtifactUrlBuilder();\n final String artifactBaseUrl = \"http://server/repo/\";\n final LSArtifact artifact = new LSArtifact(\"group.id\", \"artifactId\", \"version\", \"\");... | {
"fields": [],
"file": "licensescout-maven-utils/src/main/java/org/aposin/licensescout/maven/utils/NexusArtifactUrlBuilder.java",
"identifier": "NexusArtifactUrlBuilder",
"interfaces": "implements IArtifactUrlBuilder",
"methods": [
{
"class_method_signature": "NexusArtifactUrlBuilder.buildArtifactU... | {
"body": "@Override\n public String buildArtifactUrl(final String artifactBaseUrl, final LSArtifact artifact, final String type) {\n final StringBuilder url = new StringBuilder(artifactBaseUrl);\n String groupId = artifact.getGroupId();\n String artifactId = artifact.getArtifactId();\n ... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_51 | {
"fields": [],
"file": "licensescout-core/src/test/java/org/aposin/licensescout/configuration/BuildInfoTest.java",
"identifier": "BuildInfoTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testBuildInfo() {\n final String name = \"NAME\";\n final String version = \"VERSION\";\n final String date = \"DATE\";\n final String buildUrl = \"BUILDURL\";\n final String licenseReportCsvUrl = \"licenseReportCsvUrl\";\n final String licen... | {
"fields": [
{
"declarator": "name",
"modifier": "private final",
"original_string": "private final String name;",
"type": "String",
"var_name": "name"
},
{
"declarator": "version",
"modifier": "private final",
"original_string": "private final String versi... | {
"body": "public BuildInfo(final String name, final String version, final String date, final String buildUrl,\n final String licenseReportCsvUrl, final String licenseReportHtmlUrl, final String licenseReportTxtUrl) {\n this.name = name;\n this.version = version;\n this.date = date;\n ... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_47 | {
"fields": [],
"file": "licensescout-core/src/test/java/org/aposin/licensescout/archive/ArchiveIdentifierMessageDigestTest.java",
"identifier": "ArchiveIdentifierMessageDigestTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testEqualsDifferentArchiveType() {\n final ArchiveIdentifierMessageDigest ai1 = new ArchiveIdentifierMessageDigest(ArchiveType.JAVA, \"abc\",\n new LSMessageDigest(new byte[] { 1 }));\n final ArchiveIdentifierMessageDigest ai2 = new ArchiveIdentifierMessa... | {
"fields": [
{
"declarator": "messageDigest",
"modifier": "private final",
"original_string": "private final LSMessageDigest messageDigest;",
"type": "LSMessageDigest",
"var_name": "messageDigest"
}
],
"file": "licensescout-core/src/main/java/org/aposin/licensescout/archive/... | {
"body": "@Override\n public boolean equals(Object obj) {\n if (this == obj) {\n return true;\n }\n if (!super.equals(obj)) {\n return false;\n }\n if (getClass() != obj.getClass()) {\n return false;\n }\n ArchiveIdentifierMessageDi... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_10 | {
"fields": [],
"file": "licensescout-core/src/test/java/org/aposin/licensescout/archive/ArchiveIdentifierVersionTest.java",
"identifier": "ArchiveIdentifierVersionTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testHashCodeDifferentArchiveType() {\n final ArchiveIdentifierVersion ai1 = new ArchiveIdentifierVersion(ArchiveType.JAVA, \"abc\", \"1.0\");\n final ArchiveIdentifierVersion ai2 = new ArchiveIdentifierVersion(ArchiveType.JAVASCRIPT, \"abc\", \"1.0\");\n Assert.a... | {
"fields": [
{
"declarator": "version",
"modifier": "private final",
"original_string": "private final String version;",
"type": "String",
"var_name": "version"
}
],
"file": "licensescout-core/src/main/java/org/aposin/licensescout/archive/ArchiveIdentifierVersion.java",
"i... | {
"body": "@Override\n public int hashCode() {\n return Objects.hash(super.hashCode(), getVersion());\n }",
"class_method_signature": "ArchiveIdentifierVersion.hashCode()",
"constructor": false,
"full_signature": "@Override public int hashCode()",
"identifier": "hashCode",
"invocations": [
... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_67 | {
"fields": [],
"file": "licensescout-core/src/test/java/org/aposin/licensescout/model/LSMessageDigestTest.java",
"identifier": "LSMessageDigestTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testEqualsDifferentObjectsEmpty() {\n final LSMessageDigest md1 = createMessageDigestEmpty();\n final LSMessageDigest md2 = createMessageDigestEmpty();\n Assert.assertTrue(\"message digest\", md1.equals(md2));\n }",
"class_method_signature": "LSMessageDigest... | {
"fields": [
{
"declarator": "bytes",
"modifier": "private final",
"original_string": "private final byte[] bytes;",
"type": "byte[]",
"var_name": "bytes"
}
],
"file": "licensescout-core/src/main/java/org/aposin/licensescout/model/LSMessageDigest.java",
"identifier": "LSMe... | {
"body": "@Override\n public boolean equals(Object obj) {\n if (this == obj) {\n return true;\n }\n if (obj == null) {\n return false;\n }\n if (getClass() != obj.getClass()) {\n return false;\n }\n LSMessageDigest other = (LSMessag... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_30 | {
"fields": [],
"file": "licensescout-core/src/test/java/org/aposin/licensescout/archive/ArchiveIdentifierPatternTest.java",
"identifier": "ArchiveIdentifierPatternTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testEqualsObject() {\n final ArchiveIdentifierPattern ai1 = new ArchiveIdentifierPattern(ArchiveType.JAVA,\n PatternType.PATTERN_ON_FILENAME, \"abc\");\n final Object ai2 = new Object();\n Assert.assertFalse(\"equals()\", ai1.equals(ai2));\n }",... | {
"fields": [
{
"declarator": "patternType",
"modifier": "private final",
"original_string": "private final PatternType patternType;",
"type": "PatternType",
"var_name": "patternType"
},
{
"declarator": "pattern",
"modifier": "private final",
"original_strin... | {
"body": "@Override\n public boolean equals(Object obj) {\n if (this == obj) {\n return true;\n }\n if (!super.equals(obj)) {\n return false;\n }\n if (getClass() != obj.getClass()) {\n return false;\n }\n ArchiveIdentifierPattern o... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_26 | {
"fields": [],
"file": "licensescout-core/src/test/java/org/aposin/licensescout/archive/ArchiveIdentifierPatternTest.java",
"identifier": "ArchiveIdentifierPatternTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testHashCodeDifferentRegex() {\n final ArchiveIdentifierPattern ai1 = new ArchiveIdentifierPattern(ArchiveType.JAVA,\n PatternType.PATTERN_ON_FILENAME, \"abc\");\n final ArchiveIdentifierPattern ai2 = new ArchiveIdentifierPattern(ArchiveType.JAVA,\n ... | {
"fields": [
{
"declarator": "patternType",
"modifier": "private final",
"original_string": "private final PatternType patternType;",
"type": "PatternType",
"var_name": "patternType"
},
{
"declarator": "pattern",
"modifier": "private final",
"original_strin... | {
"body": "@Override\n public int hashCode() {\n final int prime = 31;\n int result = super.hashCode();\n result = prime * result + Objects.hash(pattern.pattern(), patternType);\n return result;\n }",
"class_method_signature": "ArchiveIdentifierPattern.hashCode()",
"constructor":... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_71 | {
"fields": [],
"file": "licensescout-core/src/test/java/org/aposin/licensescout/model/LSMessageDigestTest.java",
"identifier": "LSMessageDigestTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testEqualsDifferentObjectsSameContent() {\n final LSMessageDigest md1 = createMessageDigestA();\n final LSMessageDigest md2 = createMessageDigestA();\n Assert.assertTrue(\"message digest\", md1.equals(md2));\n }",
"class_method_signature": "LSMessageDigestTe... | {
"fields": [
{
"declarator": "bytes",
"modifier": "private final",
"original_string": "private final byte[] bytes;",
"type": "byte[]",
"var_name": "bytes"
}
],
"file": "licensescout-core/src/main/java/org/aposin/licensescout/model/LSMessageDigest.java",
"identifier": "LSMe... | {
"body": "@Override\n public boolean equals(Object obj) {\n if (this == obj) {\n return true;\n }\n if (obj == null) {\n return false;\n }\n if (getClass() != obj.getClass()) {\n return false;\n }\n LSMessageDigest other = (LSMessag... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_70 | {
"fields": [],
"file": "licensescout-core/src/test/java/org/aposin/licensescout/model/LSMessageDigestTest.java",
"identifier": "LSMessageDigestTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testEqualsDifferentObjectsDifferentContent() {\n final LSMessageDigest md1 = createMessageDigestA();\n final LSMessageDigest md2 = createMessageDigestB();\n Assert.assertFalse(\"message digest\", md1.equals(md2));\n }",
"class_method_signature": "LSMessageDi... | {
"fields": [
{
"declarator": "bytes",
"modifier": "private final",
"original_string": "private final byte[] bytes;",
"type": "byte[]",
"var_name": "bytes"
}
],
"file": "licensescout-core/src/main/java/org/aposin/licensescout/model/LSMessageDigest.java",
"identifier": "LSMe... | {
"body": "@Override\n public boolean equals(Object obj) {\n if (this == obj) {\n return true;\n }\n if (obj == null) {\n return false;\n }\n if (getClass() != obj.getClass()) {\n return false;\n }\n LSMessageDigest other = (LSMessag... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_27 | {
"fields": [],
"file": "licensescout-core/src/test/java/org/aposin/licensescout/archive/ArchiveIdentifierPatternTest.java",
"identifier": "ArchiveIdentifierPatternTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testEqualsSame() {\n final ArchiveIdentifierPattern ai1 = new ArchiveIdentifierPattern(ArchiveType.JAVA,\n PatternType.PATTERN_ON_FILENAME, \"abc\");\n final ArchiveIdentifierPattern ai2 = ai1;\n Assert.assertTrue(\"equals()\", ai1.equals(ai2));\n ... | {
"fields": [
{
"declarator": "patternType",
"modifier": "private final",
"original_string": "private final PatternType patternType;",
"type": "PatternType",
"var_name": "patternType"
},
{
"declarator": "pattern",
"modifier": "private final",
"original_strin... | {
"body": "@Override\n public boolean equals(Object obj) {\n if (this == obj) {\n return true;\n }\n if (!super.equals(obj)) {\n return false;\n }\n if (getClass() != obj.getClass()) {\n return false;\n }\n ArchiveIdentifierPattern o... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_31 | {
"fields": [],
"file": "licensescout-core/src/test/java/org/aposin/licensescout/archive/ArchiveIdentifierPatternTest.java",
"identifier": "ArchiveIdentifierPatternTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testEqualsArchiveIdentifier() {\n final ArchiveIdentifierPattern ai1 = new ArchiveIdentifierPattern(ArchiveType.JAVA,\n PatternType.PATTERN_ON_FILENAME, \"abc\");\n final ArchiveIdentifier ai2 = new ArchiveIdentifier(ArchiveType.JAVA, NameMatchingType.PAT... | {
"fields": [
{
"declarator": "patternType",
"modifier": "private final",
"original_string": "private final PatternType patternType;",
"type": "PatternType",
"var_name": "patternType"
},
{
"declarator": "pattern",
"modifier": "private final",
"original_strin... | {
"body": "@Override\n public boolean equals(Object obj) {\n if (this == obj) {\n return true;\n }\n if (!super.equals(obj)) {\n return false;\n }\n if (getClass() != obj.getClass()) {\n return false;\n }\n ArchiveIdentifierPattern o... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_66 | {
"fields": [],
"file": "licensescout-core/src/test/java/org/aposin/licensescout/model/LSMessageDigestTest.java",
"identifier": "LSMessageDigestTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testEqualsSameObjectEmpty() {\n final LSMessageDigest md1 = createMessageDigestEmpty();\n Assert.assertTrue(\"message digest\", md1.equals(md1));\n }",
"class_method_signature": "LSMessageDigestTest.testEqualsSameObjectEmpty()",
"constructor": false,
"full_sign... | {
"fields": [
{
"declarator": "bytes",
"modifier": "private final",
"original_string": "private final byte[] bytes;",
"type": "byte[]",
"var_name": "bytes"
}
],
"file": "licensescout-core/src/main/java/org/aposin/licensescout/model/LSMessageDigest.java",
"identifier": "LSMe... | {
"body": "@Override\n public boolean equals(Object obj) {\n if (this == obj) {\n return true;\n }\n if (obj == null) {\n return false;\n }\n if (getClass() != obj.getClass()) {\n return false;\n }\n LSMessageDigest other = (LSMessag... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_11 | {
"fields": [],
"file": "licensescout-core/src/test/java/org/aposin/licensescout/archive/ArchiveIdentifierVersionTest.java",
"identifier": "ArchiveIdentifierVersionTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testHashCodeDifferentName() {\n final ArchiveIdentifierVersion ai1 = new ArchiveIdentifierVersion(ArchiveType.JAVA, \"abc\", \"1.0\");\n final ArchiveIdentifierVersion ai2 = new ArchiveIdentifierVersion(ArchiveType.JAVA, \"def\", \"1.0\");\n Assert.assertNotEqual... | {
"fields": [
{
"declarator": "version",
"modifier": "private final",
"original_string": "private final String version;",
"type": "String",
"var_name": "version"
}
],
"file": "licensescout-core/src/main/java/org/aposin/licensescout/archive/ArchiveIdentifierVersion.java",
"i... | {
"body": "@Override\n public int hashCode() {\n return Objects.hash(super.hashCode(), getVersion());\n }",
"class_method_signature": "ArchiveIdentifierVersion.hashCode()",
"constructor": false,
"full_signature": "@Override public int hashCode()",
"identifier": "hashCode",
"invocations": [
... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_46 | {
"fields": [],
"file": "licensescout-core/src/test/java/org/aposin/licensescout/archive/ArchiveIdentifierMessageDigestTest.java",
"identifier": "ArchiveIdentifierMessageDigestTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testEqualsArchiveIdentifier() {\n final ArchiveIdentifierMessageDigest ai1 = new ArchiveIdentifierMessageDigest(ArchiveType.JAVA, \"abc\",\n new LSMessageDigest(new byte[] { 1 }));\n final ArchiveIdentifier ai2 = new ArchiveIdentifier(ArchiveType.JAVA, Na... | {
"fields": [
{
"declarator": "messageDigest",
"modifier": "private final",
"original_string": "private final LSMessageDigest messageDigest;",
"type": "LSMessageDigest",
"var_name": "messageDigest"
}
],
"file": "licensescout-core/src/main/java/org/aposin/licensescout/archive/... | {
"body": "@Override\n public boolean equals(Object obj) {\n if (this == obj) {\n return true;\n }\n if (!super.equals(obj)) {\n return false;\n }\n if (getClass() != obj.getClass()) {\n return false;\n }\n ArchiveIdentifierMessageDi... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_2 | {
"fields": [],
"file": "licensescout-maven-utils/src/test/java/org/aposin/licensescout/maven/utils/ConfigurationHelperTest.java",
"identifier": "ConfigurationHelperTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test(expected = MojoExecutionException.class)\n public void testGetExecutionDatabaseConfigurationServerIdNotFound() throws Exception {\n final Settings settings = createSettings();\n final DatabaseConfiguration databaseConfiguration = new DatabaseConfiguration(\"jdbcUrl\", \"serverId_noex... | {
"fields": [
{
"declarator": "NEXUS_ARTIFACT_URL_BUILDER = new NexusArtifactUrlBuilder()",
"modifier": "private static final",
"original_string": "private static final IArtifactUrlBuilder NEXUS_ARTIFACT_URL_BUILDER = new NexusArtifactUrlBuilder();",
"type": "IArtifactUrlBuilder",
"v... | {
"body": "public static ExecutionDatabaseConfiguration getExecutionDatabaseConfiguration(final DatabaseConfiguration databaseConfiguration,\n final Settings settings,\n ... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_50 | {
"fields": [],
"file": "licensescout-core/src/test/java/org/aposin/licensescout/archive/ArchiveIdentifierMessageDigestTest.java",
"identifier": "ArchiveIdentifierMessageDigestTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testEqualsDifferentNameAndMessageDigest() {\n final ArchiveIdentifierMessageDigest ai1 = new ArchiveIdentifierMessageDigest(ArchiveType.JAVA, \"abc\",\n new LSMessageDigest(new byte[] { 1 }));\n final ArchiveIdentifierMessageDigest ai2 = new ArchiveIdenti... | {
"fields": [
{
"declarator": "messageDigest",
"modifier": "private final",
"original_string": "private final LSMessageDigest messageDigest;",
"type": "LSMessageDigest",
"var_name": "messageDigest"
}
],
"file": "licensescout-core/src/main/java/org/aposin/licensescout/archive/... | {
"body": "@Override\n public boolean equals(Object obj) {\n if (this == obj) {\n return true;\n }\n if (!super.equals(obj)) {\n return false;\n }\n if (getClass() != obj.getClass()) {\n return false;\n }\n ArchiveIdentifierMessageDi... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_61 | {
"fields": [
{
"declarator": "MESSAGE_DIGEST_STRING = \"83A2CA29DBAA80C0D6B6369448D0EDC0ACF30CA6E35C86F1E4C43A4915179F0D\"",
"modifier": "private static final",
"original_string": "private static final String MESSAGE_DIGEST_STRING = \"83A2CA29DBAA80C0D6B6369448D0EDC0ACF30CA6E35C86F1E4C43A491517... | {
"body": "@Test\n public void testGetBytes() {\n Assert.assertArrayEquals(\"byte array\", MESSAGE_DIGEST_BYTE_ARRAY,\n MiscUtil.getLSMessageDigestFromHexString(MESSAGE_DIGEST_STRING).getBytes());\n }",
"class_method_signature": "MiscUtilTest.testGetBytes()",
"constructor": false,
"f... | {
"fields": [],
"file": "licensescout-core/src/main/java/org/aposin/licensescout/util/MiscUtil.java",
"identifier": "MiscUtil",
"interfaces": "",
"methods": [
{
"class_method_signature": "MiscUtil.MiscUtil()",
"constructor": true,
"full_signature": "private MiscUtil()",
"identifie... | {
"body": "public static final LSMessageDigest getLSMessageDigestFromHexString(final String str) {\n return new LSMessageDigest(getByteArrayFromHexString(str));\n }",
"class_method_signature": "MiscUtil.getLSMessageDigestFromHexString(final String str)",
"constructor": false,
"full_signature": "public... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_36 | {
"fields": [],
"file": "licensescout-core/src/test/java/org/aposin/licensescout/archive/ArchiveIdentifierMessageDigestTest.java",
"identifier": "ArchiveIdentifierMessageDigestTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testConstructor2AndGetMessageDigest() {\n final ArchiveIdentifierMessageDigest ai1 = new ArchiveIdentifierMessageDigest(ArchiveType.JAVA, \"abc\", \"05\");\n Assert.assertEquals(\"getMessage()\", new LSMessageDigest(new byte[] { 5 }), ai1.getMessageDigest());\n }",
... | {
"fields": [
{
"declarator": "messageDigest",
"modifier": "private final",
"original_string": "private final LSMessageDigest messageDigest;",
"type": "LSMessageDigest",
"var_name": "messageDigest"
}
],
"file": "licensescout-core/src/main/java/org/aposin/licensescout/archive/... | {
"body": "public final LSMessageDigest getMessageDigest() {\n return messageDigest;\n }",
"class_method_signature": "ArchiveIdentifierMessageDigest.getMessageDigest()",
"constructor": false,
"full_signature": "public final LSMessageDigest getMessageDigest()",
"identifier": "getMessageDigest",
"in... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_20 | {
"fields": [],
"file": "licensescout-core/src/test/java/org/aposin/licensescout/archive/ArchiveIdentifierVersionTest.java",
"identifier": "ArchiveIdentifierVersionTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testEqualsDifferentVersion() {\n final ArchiveIdentifierVersion ai1 = new ArchiveIdentifierVersion(ArchiveType.JAVA, \"abc\", \"1.0\");\n final ArchiveIdentifierVersion ai2 = new ArchiveIdentifierVersion(ArchiveType.JAVA, \"abc\", \"2.0\");\n Assert.assertFalse(\... | {
"fields": [
{
"declarator": "version",
"modifier": "private final",
"original_string": "private final String version;",
"type": "String",
"var_name": "version"
}
],
"file": "licensescout-core/src/main/java/org/aposin/licensescout/archive/ArchiveIdentifierVersion.java",
"i... | {
"body": "@Override\n public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (!(o instanceof ArchiveIdentifierVersion)) {\n return false;\n }\n if (!super.equals(o)) {\n return false;\n }\n ArchiveIdentifierVer... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_9 | {
"fields": [],
"file": "licensescout-core/src/test/java/org/aposin/licensescout/archive/ArchiveIdentifierVersionTest.java",
"identifier": "ArchiveIdentifierVersionTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testHashCodeSame() {\n final ArchiveIdentifierVersion ai1 = new ArchiveIdentifierVersion(ArchiveType.JAVA, \"abc\", \"1.0\");\n final ArchiveIdentifierVersion ai2 = new ArchiveIdentifierVersion(ArchiveType.JAVA, \"abc\", \"1.0\");\n Assert.assertEquals(\"hashCode... | {
"fields": [
{
"declarator": "version",
"modifier": "private final",
"original_string": "private final String version;",
"type": "String",
"var_name": "version"
}
],
"file": "licensescout-core/src/main/java/org/aposin/licensescout/archive/ArchiveIdentifierVersion.java",
"i... | {
"body": "@Override\n public int hashCode() {\n return Objects.hash(super.hashCode(), getVersion());\n }",
"class_method_signature": "ArchiveIdentifierVersion.hashCode()",
"constructor": false,
"full_signature": "@Override public int hashCode()",
"identifier": "hashCode",
"invocations": [
... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_5 | {
"fields": [],
"file": "licensescout-maven-utils/src/test/java/org/aposin/licensescout/maven/utils/ArtifactHelperTest.java",
"identifier": "ArtifactHelperTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test(expected = NullPointerException.class)\n public void testGetArtifactFileNullArguments() throws Exception {\n ArtifactHelper.getArtifactFile(null, null);\n }",
"class_method_signature": "ArtifactHelperTest.testGetArtifactFileNullArguments()",
"constructor": false,
"full_signature": ... | {
"fields": [],
"file": "licensescout-maven-utils/src/main/java/org/aposin/licensescout/maven/utils/ArtifactHelper.java",
"identifier": "ArtifactHelper",
"interfaces": "",
"methods": [
{
"class_method_signature": "ArtifactHelper.ArtifactHelper()",
"constructor": true,
"full_signature": "... | {
"body": "public static File getArtifactFile(final IRepositoryParameters repositoryParameters,\n final ArtifactItem artifactItem)\n throws MojoExecutionException {\n final Artifact artifact = resolve(repositoryParameters, artifactItem);\n if (artifact !=... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_57 | {
"fields": [],
"file": "licensescout-core/src/test/java/org/aposin/licensescout/util/JsonUtilTest.java",
"identifier": "JsonUtilTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void getNPMAuthorTest() throws Exception {\n File packageFile = getFileFromClasspath(\"package.json\");\n Author actual = JsonUtil.getNPMAuthor(packageFile);\n Assert.assertEquals(\"Name\", actual.getName());\n Assert.assertEquals(\"test@test.com\", actual.getE... | {
"fields": [],
"file": "licensescout-core/src/main/java/org/aposin/licensescout/util/JsonUtil.java",
"identifier": "JsonUtil",
"interfaces": "",
"methods": [
{
"class_method_signature": "JsonUtil.JsonUtil()",
"constructor": true,
"full_signature": "private JsonUtil()",
"identifie... | {
"body": "public static Author getNPMAuthor(final File file) throws IOException {\n final JSONObject obj = readJsconFile(file);\n final JSONObject authorObject = obj.optJSONObject(\"author\");\n if (authorObject != null) {\n String name = authorObject.optString(\"name\");\n ... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_41 | {
"fields": [],
"file": "licensescout-core/src/test/java/org/aposin/licensescout/archive/ArchiveIdentifierMessageDigestTest.java",
"identifier": "ArchiveIdentifierMessageDigestTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testHashCodeDifferentMessageDigest() {\n final ArchiveIdentifierMessageDigest ai1 = new ArchiveIdentifierMessageDigest(ArchiveType.JAVA, \"abc\",\n new LSMessageDigest(new byte[] { 1 }));\n final ArchiveIdentifierMessageDigest ai2 = new ArchiveIdentifierM... | {
"fields": [
{
"declarator": "messageDigest",
"modifier": "private final",
"original_string": "private final LSMessageDigest messageDigest;",
"type": "LSMessageDigest",
"var_name": "messageDigest"
}
],
"file": "licensescout-core/src/main/java/org/aposin/licensescout/archive/... | {
"body": "@Override\n public int hashCode() {\n final int prime = 31;\n int result = super.hashCode();\n result = prime * result + Objects.hash(messageDigest);\n return result;\n }",
"class_method_signature": "ArchiveIdentifierMessageDigest.hashCode()",
"constructor": false,
"... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_16 | {
"fields": [],
"file": "licensescout-core/src/test/java/org/aposin/licensescout/archive/ArchiveIdentifierVersionTest.java",
"identifier": "ArchiveIdentifierVersionTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testEqualsObject() {\n final ArchiveIdentifierVersion ai1 = new ArchiveIdentifierVersion(ArchiveType.JAVA, \"abc\", \"1.0\");\n final Object ai2 = new Object();\n Assert.assertFalse(\"equals()\", ai1.equals(ai2));\n }",
"class_method_signature": "ArchiveIden... | {
"fields": [
{
"declarator": "version",
"modifier": "private final",
"original_string": "private final String version;",
"type": "String",
"var_name": "version"
}
],
"file": "licensescout-core/src/main/java/org/aposin/licensescout/archive/ArchiveIdentifierVersion.java",
"i... | {
"body": "@Override\n public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (!(o instanceof ArchiveIdentifierVersion)) {\n return false;\n }\n if (!super.equals(o)) {\n return false;\n }\n ArchiveIdentifierVer... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_17 | {
"fields": [],
"file": "licensescout-core/src/test/java/org/aposin/licensescout/archive/ArchiveIdentifierVersionTest.java",
"identifier": "ArchiveIdentifierVersionTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testEqualsArchiveIdentifier() {\n final ArchiveIdentifierVersion ai1 = new ArchiveIdentifierVersion(ArchiveType.JAVA, \"abc\", \"1.0\");\n final ArchiveIdentifier ai2 = new ArchiveIdentifier(ArchiveType.JAVA, NameMatchingType.PATTERN, \"abc\") {\n // EMPTY\n ... | {
"fields": [
{
"declarator": "version",
"modifier": "private final",
"original_string": "private final String version;",
"type": "String",
"var_name": "version"
}
],
"file": "licensescout-core/src/main/java/org/aposin/licensescout/archive/ArchiveIdentifierVersion.java",
"i... | {
"body": "@Override\n public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (!(o instanceof ArchiveIdentifierVersion)) {\n return false;\n }\n if (!super.equals(o)) {\n return false;\n }\n ArchiveIdentifierVer... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_40 | {
"fields": [],
"file": "licensescout-core/src/test/java/org/aposin/licensescout/archive/ArchiveIdentifierMessageDigestTest.java",
"identifier": "ArchiveIdentifierMessageDigestTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testHashCodeDifferentName() {\n final ArchiveIdentifierMessageDigest ai1 = new ArchiveIdentifierMessageDigest(ArchiveType.JAVA, \"abc\",\n new LSMessageDigest(new byte[] { 1 }));\n final ArchiveIdentifierMessageDigest ai2 = new ArchiveIdentifierMessageDig... | {
"fields": [
{
"declarator": "messageDigest",
"modifier": "private final",
"original_string": "private final LSMessageDigest messageDigest;",
"type": "LSMessageDigest",
"var_name": "messageDigest"
}
],
"file": "licensescout-core/src/main/java/org/aposin/licensescout/archive/... | {
"body": "@Override\n public int hashCode() {\n final int prime = 31;\n int result = super.hashCode();\n result = prime * result + Objects.hash(messageDigest);\n return result;\n }",
"class_method_signature": "ArchiveIdentifierMessageDigest.hashCode()",
"constructor": false,
"... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_4 | {
"fields": [],
"file": "licensescout-maven-utils/src/test/java/org/aposin/licensescout/maven/utils/NexusArtifactUrlBuilderTest.java",
"identifier": "NexusArtifactUrlBuilderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testBuildWithClassifier() {\n final IArtifactUrlBuilder artifactUrlBuilder = new NexusArtifactUrlBuilder();\n final String artifactBaseUrl = \"http://server/repo/\";\n final LSArtifact artifact = new LSArtifact(\"group.id\", \"artifactId\", \"version\", \"classif... | {
"fields": [],
"file": "licensescout-maven-utils/src/main/java/org/aposin/licensescout/maven/utils/NexusArtifactUrlBuilder.java",
"identifier": "NexusArtifactUrlBuilder",
"interfaces": "implements IArtifactUrlBuilder",
"methods": [
{
"class_method_signature": "NexusArtifactUrlBuilder.buildArtifactU... | {
"body": "@Override\n public String buildArtifactUrl(final String artifactBaseUrl, final LSArtifact artifact, final String type) {\n final StringBuilder url = new StringBuilder(artifactBaseUrl);\n String groupId = artifact.getGroupId();\n String artifactId = artifact.getArtifactId();\n ... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_56 | {
"fields": [],
"file": "licensescout-core/src/test/java/org/aposin/licensescout/util/JsonUtilTest.java",
"identifier": "JsonUtilTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void getNPMArchiveVendorNameTest() throws Exception {\n File packageFile = getFileFromClasspath(\"package.json\");\n String actual = JsonUtil.getNPMArchiveVendorName(packageFile);\n Assert.assertEquals(\"\", actual);\n }",
"class_method_signature": "JsonUtilTest.... | {
"fields": [],
"file": "licensescout-core/src/main/java/org/aposin/licensescout/util/JsonUtil.java",
"identifier": "JsonUtil",
"interfaces": "",
"methods": [
{
"class_method_signature": "JsonUtil.JsonUtil()",
"constructor": true,
"full_signature": "private JsonUtil()",
"identifie... | {
"body": "public static String getNPMArchiveVendorName(final File file) throws IOException {\n final JSONObject obj = readJsconFile(file);\n return obj.optString(\"vendor\");\n }",
"class_method_signature": "JsonUtil.getNPMArchiveVendorName(final File file)",
"constructor": false,
"full_signat... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_8 | {
"fields": [],
"file": "licensescout-core/src/test/java/org/aposin/licensescout/archive/ArchiveIdentifierVersionTest.java",
"identifier": "ArchiveIdentifierVersionTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testToString() {\n final ArchiveIdentifierVersion ai = new ArchiveIdentifierVersion(ArchiveType.JAVA, \"abc\", \"1.0\");\n Assert.assertNotNull(\"toString()\", ai.toString());\n }",
"class_method_signature": "ArchiveIdentifierVersionTest.testToString()",
"constru... | {
"fields": [
{
"declarator": "version",
"modifier": "private final",
"original_string": "private final String version;",
"type": "String",
"var_name": "version"
}
],
"file": "licensescout-core/src/main/java/org/aposin/licensescout/archive/ArchiveIdentifierVersion.java",
"i... | {
"body": "@Override\n public String toString() {\n return \"ArchiveIdentifierVersion [archiveType=\" + getArchiveType() + \", nameMatchingType=\"\n + getNameMatchingType() + \", name=\" + getName() + \", version=\" + version + \"]\";\n }",
"class_method_signature": "ArchiveIdentifierVer... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_76 | {
"fields": [],
"file": "licensescout-report-maven-plugin/src/test/java/org/aposin/licensescout/report/mojo/AbstractReportMojoTest.java",
"identifier": "AbstractReportMojoTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testGetArchiveType() throws Exception {\n final AbstractReportMojo reportMojo = createMojo();\n Assert.assertEquals(\"wrong type returned by getArchiveType()\", getExpectedArchiveType(),\n reportMojo.getArchiveType());\n }",
"class_method_signature":... | {
"fields": [
{
"declarator": "scanDirectory",
"modifier": "@Parameter(property = \"scanDirectory\", required = false)\n private",
"original_string": "@Parameter(property = \"scanDirectory\", required = false)\n private File scanDirectory;",
"type": "File",
"var_name": "scanDir... | {
"body": "protected abstract ArchiveType getArchiveType();",
"class_method_signature": "AbstractReportMojo.getArchiveType()",
"constructor": false,
"full_signature": "protected abstract ArchiveType getArchiveType()",
"identifier": "getArchiveType",
"invocations": [],
"modifiers": "protected abstract",
... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_21 | {
"fields": [],
"file": "licensescout-core/src/test/java/org/aposin/licensescout/archive/ArchiveIdentifierVersionTest.java",
"identifier": "ArchiveIdentifierVersionTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testEqualsDifferentNameAndVersion() {\n final ArchiveIdentifierVersion ai1 = new ArchiveIdentifierVersion(ArchiveType.JAVA, \"abc\", \"1.0\");\n final ArchiveIdentifierVersion ai2 = new ArchiveIdentifierVersion(ArchiveType.JAVA, \"def\", \"2.0\");\n Assert.assert... | {
"fields": [
{
"declarator": "version",
"modifier": "private final",
"original_string": "private final String version;",
"type": "String",
"var_name": "version"
}
],
"file": "licensescout-core/src/main/java/org/aposin/licensescout/archive/ArchiveIdentifierVersion.java",
"i... | {
"body": "@Override\n public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (!(o instanceof ArchiveIdentifierVersion)) {\n return false;\n }\n if (!super.equals(o)) {\n return false;\n }\n ArchiveIdentifierVer... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_37 | {
"fields": [],
"file": "licensescout-core/src/test/java/org/aposin/licensescout/archive/ArchiveIdentifierMessageDigestTest.java",
"identifier": "ArchiveIdentifierMessageDigestTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testToString() {\n final ArchiveIdentifierMessageDigest ai = new ArchiveIdentifierMessageDigest(ArchiveType.JAVA, \"abc\",\n new LSMessageDigest(new byte[] { 1 }));\n Assert.assertNotNull(\"toString()\", ai.toString());\n }",
"class_method_signature"... | {
"fields": [
{
"declarator": "messageDigest",
"modifier": "private final",
"original_string": "private final LSMessageDigest messageDigest;",
"type": "LSMessageDigest",
"var_name": "messageDigest"
}
],
"file": "licensescout-core/src/main/java/org/aposin/licensescout/archive/... | {
"body": "@Override\n public String toString() {\n return \"ArchiveIdentifierMessageDigest [archiveType=\" + getArchiveType() + \", nameMatchingType=\"\n + getNameMatchingType() + \", name=\" + getName() + \", messageDigest=\" + messageDigest + \"]\";\n }",
"class_method_signature": "Ar... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_60 | {
"fields": [
{
"declarator": "MESSAGE_DIGEST_STRING = \"83A2CA29DBAA80C0D6B6369448D0EDC0ACF30CA6E35C86F1E4C43A4915179F0D\"",
"modifier": "private static final",
"original_string": "private static final String MESSAGE_DIGEST_STRING = \"83A2CA29DBAA80C0D6B6369448D0EDC0ACF30CA6E35C86F1E4C43A491517... | {
"body": "@Test\n public void testGetHexString() {\n Assert.assertEquals(\"hex string\", MESSAGE_DIGEST_STRING, MiscUtil.getHexString(MESSAGE_DIGEST_BYTE_ARRAY));\n }",
"class_method_signature": "MiscUtilTest.testGetHexString()",
"constructor": false,
"full_signature": "@Test public void testGetHe... | {
"fields": [],
"file": "licensescout-core/src/main/java/org/aposin/licensescout/util/MiscUtil.java",
"identifier": "MiscUtil",
"interfaces": "",
"methods": [
{
"class_method_signature": "MiscUtil.MiscUtil()",
"constructor": true,
"full_signature": "private MiscUtil()",
"identifie... | {
"body": "public static final String getHexString(final byte[] bytes) {\n return DatatypeConverter.printHexBinary(bytes);\n\n }",
"class_method_signature": "MiscUtil.getHexString(final byte[] bytes)",
"constructor": false,
"full_signature": "public static final String getHexString(final byte[] bytes)... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_18 | {
"fields": [],
"file": "licensescout-core/src/test/java/org/aposin/licensescout/archive/ArchiveIdentifierVersionTest.java",
"identifier": "ArchiveIdentifierVersionTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testEqualsDifferentArchiveType() {\n final ArchiveIdentifierVersion ai1 = new ArchiveIdentifierVersion(ArchiveType.JAVA, \"abc\", \"1.0\");\n final ArchiveIdentifierVersion ai2 = new ArchiveIdentifierVersion(ArchiveType.JAVASCRIPT, \"abc\", \"1.0\");\n Assert.ass... | {
"fields": [
{
"declarator": "version",
"modifier": "private final",
"original_string": "private final String version;",
"type": "String",
"var_name": "version"
}
],
"file": "licensescout-core/src/main/java/org/aposin/licensescout/archive/ArchiveIdentifierVersion.java",
"i... | {
"body": "@Override\n public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (!(o instanceof ArchiveIdentifierVersion)) {\n return false;\n }\n if (!super.equals(o)) {\n return false;\n }\n ArchiveIdentifierVer... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_59 | {
"fields": [
{
"declarator": "MESSAGE_DIGEST_STRING = \"83A2CA29DBAA80C0D6B6369448D0EDC0ACF30CA6E35C86F1E4C43A4915179F0D\"",
"modifier": "private static final",
"original_string": "private static final String MESSAGE_DIGEST_STRING = \"83A2CA29DBAA80C0D6B6369448D0EDC0ACF30CA6E35C86F1E4C43A491517... | {
"body": "@Test\n public void testGetByteArrayFromHexString() {\n Assert.assertArrayEquals(\"byte array\", MESSAGE_DIGEST_BYTE_ARRAY,\n MiscUtil.getByteArrayFromHexString(MESSAGE_DIGEST_STRING));\n }",
"class_method_signature": "MiscUtilTest.testGetByteArrayFromHexString()",
"construc... | {
"fields": [],
"file": "licensescout-core/src/main/java/org/aposin/licensescout/util/MiscUtil.java",
"identifier": "MiscUtil",
"interfaces": "",
"methods": [
{
"class_method_signature": "MiscUtil.MiscUtil()",
"constructor": true,
"full_signature": "private MiscUtil()",
"identifie... | {
"body": "public static final byte[] getByteArrayFromHexString(final String str) {\n return DatatypeConverter.parseHexBinary(str);\n }",
"class_method_signature": "MiscUtil.getByteArrayFromHexString(final String str)",
"constructor": false,
"full_signature": "public static final byte[] getByteArrayFr... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_75 | {
"fields": [],
"file": "licensescout-core/src/test/java/org/aposin/licensescout/execution/ScanLocationTest.java",
"identifier": "ScanLocationTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testToLogStringFileListEmpty() throws Exception {\n final ScanLocation scanLocation = new ScanLocation(new ArrayList<>());\n final String result = scanLocation.toLogString();\n Assert.assertNotNull(\"toLogString()\", result);\n }",
"class_method_signature": ... | {
"fields": [
{
"declarator": "scanDirectory",
"modifier": "private final",
"original_string": "private final File scanDirectory;",
"type": "File",
"var_name": "scanDirectory"
},
{
"declarator": "scanFiles",
"modifier": "private final",
"original_string": "p... | {
"body": "public String toLogString() {\n if (scanFiles != null) {\n return scanFiles.toString();\n } else if (scanDirectory != null) {\n return scanDirectory.getAbsolutePath();\n } else {\n return \"<not configured>\";\n }\n }",
"class_method_signatu... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_22 | {
"fields": [],
"file": "licensescout-core/src/test/java/org/aposin/licensescout/archive/ArchiveIdentifierPatternTest.java",
"identifier": "ArchiveIdentifierPatternTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testToString() {\n final ArchiveIdentifierPattern ai = new ArchiveIdentifierPattern(ArchiveType.JAVA,\n PatternType.PATTERN_ON_FILENAME, \"abc\");\n Assert.assertNotNull(\"toString()\", ai.toString());\n }",
"class_method_signature": "ArchiveIdentifi... | {
"fields": [
{
"declarator": "patternType",
"modifier": "private final",
"original_string": "private final PatternType patternType;",
"type": "PatternType",
"var_name": "patternType"
},
{
"declarator": "pattern",
"modifier": "private final",
"original_strin... | {
"body": "@Override\n public String toString() {\n return \"ArchiveIdentifierPattern [archiveType=\" + getArchiveType() + \", nameMatchingType=\"\n + getNameMatchingType() + \", name=\" + getName() + \", patternType=\" + patternType + \", pattern=\"\n + pattern + \"]\";\n }... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_34 | {
"fields": [],
"file": "licensescout-core/src/test/java/org/aposin/licensescout/archive/ArchiveIdentifierPatternTest.java",
"identifier": "ArchiveIdentifierPatternTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testEqualsDifferentRegex() {\n final ArchiveIdentifierPattern ai1 = new ArchiveIdentifierPattern(ArchiveType.JAVA,\n PatternType.PATTERN_ON_FILENAME, \"abc\");\n final ArchiveIdentifierPattern ai2 = new ArchiveIdentifierPattern(ArchiveType.JAVA,\n ... | {
"fields": [
{
"declarator": "patternType",
"modifier": "private final",
"original_string": "private final PatternType patternType;",
"type": "PatternType",
"var_name": "patternType"
},
{
"declarator": "pattern",
"modifier": "private final",
"original_strin... | {
"body": "@Override\n public boolean equals(Object obj) {\n if (this == obj) {\n return true;\n }\n if (!super.equals(obj)) {\n return false;\n }\n if (getClass() != obj.getClass()) {\n return false;\n }\n ArchiveIdentifierPattern o... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_63 | {
"fields": [
{
"declarator": "archiveType",
"modifier": "private final",
"original_string": "private final ArchiveType archiveType;",
"type": "ArchiveType",
"var_name": "archiveType"
},
{
"declarator": "expectedFinderClass",
"modifier": "private final",
"or... | {
"body": "@Test\n public void testCreateFinder() throws Exception {\n final ExecutionParameters executionParameters = new ExecutionParameters();\n executionParameters.setArchiveType(archiveType);\n executionParameters.setLsLog(TestUtil.createTestLog());\n executionParameters.setNpmExcl... | {
"fields": [
{
"declarator": "INSTANCE = new FinderFactory()",
"modifier": "private static final",
"original_string": "private static final FinderFactory INSTANCE = new FinderFactory();",
"type": "FinderFactory",
"var_name": "INSTANCE"
}
],
"file": "licensescout-core/src/mai... | {
"body": "public AbstractFinder createFinder(final ExecutionParameters executionParameters,\n final LicenseStoreData licenseStoreData, final FinderParameters finderParameters)\n throws LicenseScoutExecutionException {\n final AbstractFinder finder;\n if ... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_14 | {
"fields": [],
"file": "licensescout-core/src/test/java/org/aposin/licensescout/archive/ArchiveIdentifierVersionTest.java",
"identifier": "ArchiveIdentifierVersionTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testEqualsIdentical() {\n final ArchiveIdentifierVersion ai1 = new ArchiveIdentifierVersion(ArchiveType.JAVA, \"abc\", \"1.0\");\n final ArchiveIdentifierVersion ai2 = new ArchiveIdentifierVersion(ArchiveType.JAVA, \"abc\", \"1.0\");\n Assert.assertTrue(\"equals(... | {
"fields": [
{
"declarator": "version",
"modifier": "private final",
"original_string": "private final String version;",
"type": "String",
"var_name": "version"
}
],
"file": "licensescout-core/src/main/java/org/aposin/licensescout/archive/ArchiveIdentifierVersion.java",
"i... | {
"body": "@Override\n public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (!(o instanceof ArchiveIdentifierVersion)) {\n return false;\n }\n if (!super.equals(o)) {\n return false;\n }\n ArchiveIdentifierVer... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_43 | {
"fields": [],
"file": "licensescout-core/src/test/java/org/aposin/licensescout/archive/ArchiveIdentifierMessageDigestTest.java",
"identifier": "ArchiveIdentifierMessageDigestTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testEqualsIdentical() {\n final ArchiveIdentifierMessageDigest ai1 = new ArchiveIdentifierMessageDigest(ArchiveType.JAVA, \"abc\",\n new LSMessageDigest(new byte[] { 1 }));\n final ArchiveIdentifierMessageDigest ai2 = new ArchiveIdentifierMessageDigest(Ar... | {
"fields": [
{
"declarator": "messageDigest",
"modifier": "private final",
"original_string": "private final LSMessageDigest messageDigest;",
"type": "LSMessageDigest",
"var_name": "messageDigest"
}
],
"file": "licensescout-core/src/main/java/org/aposin/licensescout/archive/... | {
"body": "@Override\n public boolean equals(Object obj) {\n if (this == obj) {\n return true;\n }\n if (!super.equals(obj)) {\n return false;\n }\n if (getClass() != obj.getClass()) {\n return false;\n }\n ArchiveIdentifierMessageDi... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_55 | {
"fields": [],
"file": "licensescout-core/src/test/java/org/aposin/licensescout/util/JsonUtilTest.java",
"identifier": "JsonUtilTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void getNPMArchiveLicenseNameWithMultipleLicensesTest() throws Exception {\n File packageFile = getFileFromClasspath(\"package-multiple-licenses.json\");\n String actual = JsonUtil.getNPMArchiveLicenseName(packageFile);\n Assert.assertEquals(\"MIT\", actual);\n }",... | {
"fields": [],
"file": "licensescout-core/src/main/java/org/aposin/licensescout/util/JsonUtil.java",
"identifier": "JsonUtil",
"interfaces": "",
"methods": [
{
"class_method_signature": "JsonUtil.JsonUtil()",
"constructor": true,
"full_signature": "private JsonUtil()",
"identifie... | {
"body": "public static String getNPMArchiveLicenseName(final File file) throws IOException {\n final JSONObject obj = readJsconFile(file);\n final JSONArray licensesArray = obj.optJSONArray(\"licenses\");\n if (licensesArray != null) {\n final Iterator<Object> iter = licensesArray.it... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_7 | {
"fields": [],
"file": "licensescout-maven-plugin/src/test/java/org/aposin/licensescout/mojo/AbstractScanMojoTest.java",
"identifier": "AbstractScanMojoTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testGetArchiveType() throws Exception {\n final AbstractScanMojo scanMojo = createMojo();\n Assert.assertEquals(\"wrong type returned by getArchiveType()\", getExpectedArchiveType(),\n scanMojo.getArchiveType());\n }",
"class_method_signature": "Abst... | {
"fields": [
{
"declarator": "scanDirectory",
"modifier": "@Parameter(property = \"scanDirectory\", required = false)\n private",
"original_string": "@Parameter(property = \"scanDirectory\", required = false)\n private File scanDirectory;",
"type": "File",
"var_name": "scanDir... | {
"body": "protected abstract ArchiveType getArchiveType();",
"class_method_signature": "AbstractScanMojo.getArchiveType()",
"constructor": false,
"full_signature": "protected abstract ArchiveType getArchiveType()",
"identifier": "getArchiveType",
"invocations": [],
"modifiers": "protected abstract",
"p... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_38 | {
"fields": [],
"file": "licensescout-core/src/test/java/org/aposin/licensescout/archive/ArchiveIdentifierMessageDigestTest.java",
"identifier": "ArchiveIdentifierMessageDigestTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testHashCodeSame() {\n final ArchiveIdentifierMessageDigest ai1 = new ArchiveIdentifierMessageDigest(ArchiveType.JAVA, \"abc\",\n new LSMessageDigest(new byte[] { 1 }));\n final ArchiveIdentifierMessageDigest ai2 = new ArchiveIdentifierMessageDigest(Archi... | {
"fields": [
{
"declarator": "messageDigest",
"modifier": "private final",
"original_string": "private final LSMessageDigest messageDigest;",
"type": "LSMessageDigest",
"var_name": "messageDigest"
}
],
"file": "licensescout-core/src/main/java/org/aposin/licensescout/archive/... | {
"body": "@Override\n public int hashCode() {\n final int prime = 31;\n int result = super.hashCode();\n result = prime * result + Objects.hash(messageDigest);\n return result;\n }",
"class_method_signature": "ArchiveIdentifierMessageDigest.hashCode()",
"constructor": false,
"... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_39 | {
"fields": [],
"file": "licensescout-core/src/test/java/org/aposin/licensescout/archive/ArchiveIdentifierMessageDigestTest.java",
"identifier": "ArchiveIdentifierMessageDigestTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testHashCodeDifferentArchiveType() {\n final ArchiveIdentifierMessageDigest ai1 = new ArchiveIdentifierMessageDigest(ArchiveType.JAVA, \"abc\",\n new LSMessageDigest(new byte[] { 1 }));\n final ArchiveIdentifierMessageDigest ai2 = new ArchiveIdentifierMes... | {
"fields": [
{
"declarator": "messageDigest",
"modifier": "private final",
"original_string": "private final LSMessageDigest messageDigest;",
"type": "LSMessageDigest",
"var_name": "messageDigest"
}
],
"file": "licensescout-core/src/main/java/org/aposin/licensescout/archive/... | {
"body": "@Override\n public int hashCode() {\n final int prime = 31;\n int result = super.hashCode();\n result = prime * result + Objects.hash(messageDigest);\n return result;\n }",
"class_method_signature": "ArchiveIdentifierMessageDigest.hashCode()",
"constructor": false,
"... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_54 | {
"fields": [],
"file": "licensescout-core/src/test/java/org/aposin/licensescout/util/JsonUtilTest.java",
"identifier": "JsonUtilTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void getNPMArchiveLicenseNameWithNoLicenseTest() throws Exception {\n File packageFile = getFileFromClasspath(\"package-no-license.json\");\n String actual = JsonUtil.getNPMArchiveLicenseName(packageFile);\n Assert.assertEquals(\"\", actual);\n }",
"class_method_... | {
"fields": [],
"file": "licensescout-core/src/main/java/org/aposin/licensescout/util/JsonUtil.java",
"identifier": "JsonUtil",
"interfaces": "",
"methods": [
{
"class_method_signature": "JsonUtil.JsonUtil()",
"constructor": true,
"full_signature": "private JsonUtil()",
"identifie... | {
"body": "public static String getNPMArchiveLicenseName(final File file) throws IOException {\n final JSONObject obj = readJsconFile(file);\n final JSONArray licensesArray = obj.optJSONArray(\"licenses\");\n if (licensesArray != null) {\n final Iterator<Object> iter = licensesArray.it... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_6 | {
"fields": [],
"file": "licensescout-maven-utils/src/test/java/org/aposin/licensescout/maven/utils/ArtifactServerUtilHelperTest.java",
"identifier": "ArtifactServerUtilHelperTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testCreateAndSetArtifactServerUtil() {\n final ExecutionParameters executionParameters = new ExecutionParameters();\n final String serverBaseUrl = \"file:src/test/resources/ArtifactServerUtilTest/repo1/\";\n executionParameters.setNexusCentralBaseUrl(serverBaseUr... | {
"fields": [],
"file": "licensescout-maven-utils/src/main/java/org/aposin/licensescout/maven/utils/ArtifactServerUtilHelper.java",
"identifier": "ArtifactServerUtilHelper",
"interfaces": "",
"methods": [
{
"class_method_signature": "ArtifactServerUtilHelper.ArtifactServerUtilHelper()",
"const... | {
"body": "public static void createAndSetArtifactServerUtil(final ExecutionParameters executionParameters) {\n executionParameters.setArtifactServerUtil(new ArtifactServerUtil(executionParameters.getNexusCentralBaseUrl(),\n executionParameters.getConnectTimeout(), executionParameters.getLsLog()... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_42 | {
"fields": [],
"file": "licensescout-core/src/test/java/org/aposin/licensescout/archive/ArchiveIdentifierMessageDigestTest.java",
"identifier": "ArchiveIdentifierMessageDigestTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testEqualsSame() {\n final ArchiveIdentifierMessageDigest ai1 = new ArchiveIdentifierMessageDigest(ArchiveType.JAVA, \"abc\",\n new LSMessageDigest(new byte[] { 1 }));\n final ArchiveIdentifierMessageDigest ai2 = ai1;\n Assert.assertTrue(\"equals()... | {
"fields": [
{
"declarator": "messageDigest",
"modifier": "private final",
"original_string": "private final LSMessageDigest messageDigest;",
"type": "LSMessageDigest",
"var_name": "messageDigest"
}
],
"file": "licensescout-core/src/main/java/org/aposin/licensescout/archive/... | {
"body": "@Override\n public boolean equals(Object obj) {\n if (this == obj) {\n return true;\n }\n if (!super.equals(obj)) {\n return false;\n }\n if (getClass() != obj.getClass()) {\n return false;\n }\n ArchiveIdentifierMessageDi... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_15 | {
"fields": [],
"file": "licensescout-core/src/test/java/org/aposin/licensescout/archive/ArchiveIdentifierVersionTest.java",
"identifier": "ArchiveIdentifierVersionTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testEqualsNull() {\n final ArchiveIdentifierVersion ai1 = new ArchiveIdentifierVersion(ArchiveType.JAVA, \"abc\", \"1.0\");\n final ArchiveIdentifierVersion ai2 = null;\n Assert.assertFalse(\"equals()\", ai1.equals(ai2));\n }",
"class_method_signature": "Arc... | {
"fields": [
{
"declarator": "version",
"modifier": "private final",
"original_string": "private final String version;",
"type": "String",
"var_name": "version"
}
],
"file": "licensescout-core/src/main/java/org/aposin/licensescout/archive/ArchiveIdentifierVersion.java",
"i... | {
"body": "@Override\n public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (!(o instanceof ArchiveIdentifierVersion)) {\n return false;\n }\n if (!super.equals(o)) {\n return false;\n }\n ArchiveIdentifierVer... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_62 | {
"fields": [
{
"declarator": "MESSAGE_DIGEST_STRING = \"83A2CA29DBAA80C0D6B6369448D0EDC0ACF30CA6E35C86F1E4C43A4915179F0D\"",
"modifier": "private static final",
"original_string": "private static final String MESSAGE_DIGEST_STRING = \"83A2CA29DBAA80C0D6B6369448D0EDC0ACF30CA6E35C86F1E4C43A491517... | {
"body": "@Test\n public void testCreateDirectoryIfNotExists() throws Exception {\n final File directory = new File(\"target/testdir\");\n directory.delete();\n final ILSLog log = TestUtil.createTestLog();\n MiscUtil.createDirectoryIfNotExists(directory, log);\n Assert.assertEqu... | {
"fields": [],
"file": "licensescout-core/src/main/java/org/aposin/licensescout/util/MiscUtil.java",
"identifier": "MiscUtil",
"interfaces": "",
"methods": [
{
"class_method_signature": "MiscUtil.MiscUtil()",
"constructor": true,
"full_signature": "private MiscUtil()",
"identifie... | {
"body": "public static void createDirectoryIfNotExists(final File directory, final ILSLog log) {\n if (!directory.exists()) {\n directory.mkdirs();\n log.info(\"created directory \" + directory.getAbsoluteFile());\n }\n }",
"class_method_signature": "MiscUtil.createDirectory... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_35 | {
"fields": [],
"file": "licensescout-core/src/test/java/org/aposin/licensescout/archive/ArchiveIdentifierPatternTest.java",
"identifier": "ArchiveIdentifierPatternTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testEqualsDifferentPatternTypeAndRegex() {\n final ArchiveIdentifierPattern ai1 = new ArchiveIdentifierPattern(ArchiveType.JAVA,\n PatternType.PATTERN_ON_FILENAME, \"abc\");\n final ArchiveIdentifierPattern ai2 = new ArchiveIdentifierPattern(ArchiveType.J... | {
"fields": [
{
"declarator": "patternType",
"modifier": "private final",
"original_string": "private final PatternType patternType;",
"type": "PatternType",
"var_name": "patternType"
},
{
"declarator": "pattern",
"modifier": "private final",
"original_strin... | {
"body": "@Override\n public boolean equals(Object obj) {\n if (this == obj) {\n return true;\n }\n if (!super.equals(obj)) {\n return false;\n }\n if (getClass() != obj.getClass()) {\n return false;\n }\n ArchiveIdentifierPattern o... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_23 | {
"fields": [],
"file": "licensescout-core/src/test/java/org/aposin/licensescout/archive/ArchiveIdentifierPatternTest.java",
"identifier": "ArchiveIdentifierPatternTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testHashCodeSame() {\n final ArchiveIdentifierPattern ai1 = new ArchiveIdentifierPattern(ArchiveType.JAVA,\n PatternType.PATTERN_ON_FILENAME, \"abc\");\n final ArchiveIdentifierPattern ai2 = new ArchiveIdentifierPattern(ArchiveType.JAVA,\n ... | {
"fields": [
{
"declarator": "patternType",
"modifier": "private final",
"original_string": "private final PatternType patternType;",
"type": "PatternType",
"var_name": "patternType"
},
{
"declarator": "pattern",
"modifier": "private final",
"original_strin... | {
"body": "@Override\n public int hashCode() {\n final int prime = 31;\n int result = super.hashCode();\n result = prime * result + Objects.hash(pattern.pattern(), patternType);\n return result;\n }",
"class_method_signature": "ArchiveIdentifierPattern.hashCode()",
"constructor":... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_74 | {
"fields": [],
"file": "licensescout-core/src/test/java/org/aposin/licensescout/execution/ScanLocationTest.java",
"identifier": "ScanLocationTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testToLogStringDirectory() throws Exception {\n final ScanLocation scanLocation = new ScanLocation(new File(\".\"));\n final String result = scanLocation.toLogString();\n Assert.assertNotNull(\"toLogString()\", result);\n }",
"class_method_signature": "ScanL... | {
"fields": [
{
"declarator": "scanDirectory",
"modifier": "private final",
"original_string": "private final File scanDirectory;",
"type": "File",
"var_name": "scanDirectory"
},
{
"declarator": "scanFiles",
"modifier": "private final",
"original_string": "p... | {
"body": "public String toLogString() {\n if (scanFiles != null) {\n return scanFiles.toString();\n } else if (scanDirectory != null) {\n return scanDirectory.getAbsolutePath();\n } else {\n return \"<not configured>\";\n }\n }",
"class_method_signatu... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_58 | {
"fields": [],
"file": "licensescout-core/src/test/java/org/aposin/licensescout/util/JsonUtilTest.java",
"identifier": "JsonUtilTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void getNPMAuthorNullTest() throws Exception {\n File packageFile = getFileFromClasspath(\"package-no-license.json\");\n Author actual = JsonUtil.getNPMAuthor(packageFile);\n Assert.assertEquals(null, actual);\n }",
"class_method_signature": "JsonUtilTest.getNPMA... | {
"fields": [],
"file": "licensescout-core/src/main/java/org/aposin/licensescout/util/JsonUtil.java",
"identifier": "JsonUtil",
"interfaces": "",
"methods": [
{
"class_method_signature": "JsonUtil.JsonUtil()",
"constructor": true,
"full_signature": "private JsonUtil()",
"identifie... | {
"body": "public static Author getNPMAuthor(final File file) throws IOException {\n final JSONObject obj = readJsconFile(file);\n final JSONObject authorObject = obj.optJSONObject(\"author\");\n if (authorObject != null) {\n String name = authorObject.optString(\"name\");\n ... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_19 | {
"fields": [],
"file": "licensescout-core/src/test/java/org/aposin/licensescout/archive/ArchiveIdentifierVersionTest.java",
"identifier": "ArchiveIdentifierVersionTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testEqualsDifferentName() {\n final ArchiveIdentifierVersion ai1 = new ArchiveIdentifierVersion(ArchiveType.JAVA, \"abc\", \"1.0\");\n final ArchiveIdentifierVersion ai2 = new ArchiveIdentifierVersion(ArchiveType.JAVA, \"def\", \"1.0\");\n Assert.assertFalse(\"eq... | {
"fields": [
{
"declarator": "version",
"modifier": "private final",
"original_string": "private final String version;",
"type": "String",
"var_name": "version"
}
],
"file": "licensescout-core/src/main/java/org/aposin/licensescout/archive/ArchiveIdentifierVersion.java",
"i... | {
"body": "@Override\n public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (!(o instanceof ArchiveIdentifierVersion)) {\n return false;\n }\n if (!super.equals(o)) {\n return false;\n }\n ArchiveIdentifierVer... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_12 | {
"fields": [],
"file": "licensescout-core/src/test/java/org/aposin/licensescout/archive/ArchiveIdentifierVersionTest.java",
"identifier": "ArchiveIdentifierVersionTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testHashCodeDifferentVersion() {\n final ArchiveIdentifierVersion ai1 = new ArchiveIdentifierVersion(ArchiveType.JAVA, \"abc\", \"1.0\");\n final ArchiveIdentifierVersion ai2 = new ArchiveIdentifierVersion(ArchiveType.JAVA, \"abc\", \"2.0\");\n Assert.assertNotEq... | {
"fields": [
{
"declarator": "version",
"modifier": "private final",
"original_string": "private final String version;",
"type": "String",
"var_name": "version"
}
],
"file": "licensescout-core/src/main/java/org/aposin/licensescout/archive/ArchiveIdentifierVersion.java",
"i... | {
"body": "@Override\n public int hashCode() {\n return Objects.hash(super.hashCode(), getVersion());\n }",
"class_method_signature": "ArchiveIdentifierVersion.hashCode()",
"constructor": false,
"full_signature": "@Override public int hashCode()",
"identifier": "hashCode",
"invocations": [
... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_45 | {
"fields": [],
"file": "licensescout-core/src/test/java/org/aposin/licensescout/archive/ArchiveIdentifierMessageDigestTest.java",
"identifier": "ArchiveIdentifierMessageDigestTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testEqualsObject() {\n final ArchiveIdentifierMessageDigest ai1 = new ArchiveIdentifierMessageDigest(ArchiveType.JAVA, \"abc\",\n new LSMessageDigest(new byte[] { 1 }));\n final Object ai2 = new Object();\n Assert.assertFalse(\"equals()\", ai1.equa... | {
"fields": [
{
"declarator": "messageDigest",
"modifier": "private final",
"original_string": "private final LSMessageDigest messageDigest;",
"type": "LSMessageDigest",
"var_name": "messageDigest"
}
],
"file": "licensescout-core/src/main/java/org/aposin/licensescout/archive/... | {
"body": "@Override\n public boolean equals(Object obj) {\n if (this == obj) {\n return true;\n }\n if (!super.equals(obj)) {\n return false;\n }\n if (getClass() != obj.getClass()) {\n return false;\n }\n ArchiveIdentifierMessageDi... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_53 | {
"fields": [],
"file": "licensescout-core/src/test/java/org/aposin/licensescout/util/JsonUtilTest.java",
"identifier": "JsonUtilTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void getNPMArchiveLicenseNameWithSingleLicenseTest() throws Exception {\n File packageFile = getFileFromClasspath(\"package.json\");\n String actual = JsonUtil.getNPMArchiveLicenseName(packageFile);\n Assert.assertEquals(\"ISC\", actual);\n }",
"class_method_sign... | {
"fields": [],
"file": "licensescout-core/src/main/java/org/aposin/licensescout/util/JsonUtil.java",
"identifier": "JsonUtil",
"interfaces": "",
"methods": [
{
"class_method_signature": "JsonUtil.JsonUtil()",
"constructor": true,
"full_signature": "private JsonUtil()",
"identifie... | {
"body": "public static String getNPMArchiveLicenseName(final File file) throws IOException {\n final JSONObject obj = readJsconFile(file);\n final JSONArray licensesArray = obj.optJSONArray(\"licenses\");\n if (licensesArray != null) {\n final Iterator<Object> iter = licensesArray.it... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_1 | {
"fields": [],
"file": "licensescout-maven-utils/src/test/java/org/aposin/licensescout/maven/utils/ConfigurationHelperTest.java",
"identifier": "ConfigurationHelperTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testGetExecutionDatabaseConfigurationNull() throws Exception {\n final Settings settings = createSettings();\n final DatabaseConfiguration databaseConfiguration = null;\n final ExecutionDatabaseConfiguration executionDatabaseConfiguration = ConfigurationHelper\n ... | {
"fields": [
{
"declarator": "NEXUS_ARTIFACT_URL_BUILDER = new NexusArtifactUrlBuilder()",
"modifier": "private static final",
"original_string": "private static final IArtifactUrlBuilder NEXUS_ARTIFACT_URL_BUILDER = new NexusArtifactUrlBuilder();",
"type": "IArtifactUrlBuilder",
"v... | {
"body": "public static ExecutionDatabaseConfiguration getExecutionDatabaseConfiguration(final DatabaseConfiguration databaseConfiguration,\n final Settings settings,\n ... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_28 | {
"fields": [],
"file": "licensescout-core/src/test/java/org/aposin/licensescout/archive/ArchiveIdentifierPatternTest.java",
"identifier": "ArchiveIdentifierPatternTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testEqualsIdentical() {\n final ArchiveIdentifierPattern ai1 = new ArchiveIdentifierPattern(ArchiveType.JAVA,\n PatternType.PATTERN_ON_FILENAME, \"abc\");\n final ArchiveIdentifierPattern ai2 = new ArchiveIdentifierPattern(ArchiveType.JAVA,\n ... | {
"fields": [
{
"declarator": "patternType",
"modifier": "private final",
"original_string": "private final PatternType patternType;",
"type": "PatternType",
"var_name": "patternType"
},
{
"declarator": "pattern",
"modifier": "private final",
"original_strin... | {
"body": "@Override\n public boolean equals(Object obj) {\n if (this == obj) {\n return true;\n }\n if (!super.equals(obj)) {\n return false;\n }\n if (getClass() != obj.getClass()) {\n return false;\n }\n ArchiveIdentifierPattern o... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_69 | {
"fields": [],
"file": "licensescout-core/src/test/java/org/aposin/licensescout/model/LSMessageDigestTest.java",
"identifier": "LSMessageDigestTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testEqualsNull() {\n final LSMessageDigest md1 = createMessageDigestA();\n final Object md2 = null;\n Assert.assertFalse(\"message digest\", md1.equals(md2));\n }",
"class_method_signature": "LSMessageDigestTest.testEqualsNull()",
"constructor": false,
"... | {
"fields": [
{
"declarator": "bytes",
"modifier": "private final",
"original_string": "private final byte[] bytes;",
"type": "byte[]",
"var_name": "bytes"
}
],
"file": "licensescout-core/src/main/java/org/aposin/licensescout/model/LSMessageDigest.java",
"identifier": "LSMe... | {
"body": "@Override\n public boolean equals(Object obj) {\n if (this == obj) {\n return true;\n }\n if (obj == null) {\n return false;\n }\n if (getClass() != obj.getClass()) {\n return false;\n }\n LSMessageDigest other = (LSMessag... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_49 | {
"fields": [],
"file": "licensescout-core/src/test/java/org/aposin/licensescout/archive/ArchiveIdentifierMessageDigestTest.java",
"identifier": "ArchiveIdentifierMessageDigestTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testEqualsDifferentMessageDigest() {\n final ArchiveIdentifierMessageDigest ai1 = new ArchiveIdentifierMessageDigest(ArchiveType.JAVA, \"abc\",\n new LSMessageDigest(new byte[] { 1 }));\n final ArchiveIdentifierMessageDigest ai2 = new ArchiveIdentifierMes... | {
"fields": [
{
"declarator": "messageDigest",
"modifier": "private final",
"original_string": "private final LSMessageDigest messageDigest;",
"type": "LSMessageDigest",
"var_name": "messageDigest"
}
],
"file": "licensescout-core/src/main/java/org/aposin/licensescout/archive/... | {
"body": "@Override\n public boolean equals(Object obj) {\n if (this == obj) {\n return true;\n }\n if (!super.equals(obj)) {\n return false;\n }\n if (getClass() != obj.getClass()) {\n return false;\n }\n ArchiveIdentifierMessageDi... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_73 | {
"fields": [],
"file": "licensescout-core/src/test/java/org/aposin/licensescout/execution/ScanLocationTest.java",
"identifier": "ScanLocationTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testToStringFileListEmpty() throws Exception {\n final ScanLocation scanLocation = new ScanLocation(new ArrayList<>());\n final String result = scanLocation.toString();\n Assert.assertNotNull(\"toString()\", result);\n }",
"class_method_signature": "ScanLoca... | {
"fields": [
{
"declarator": "scanDirectory",
"modifier": "private final",
"original_string": "private final File scanDirectory;",
"type": "File",
"var_name": "scanDirectory"
},
{
"declarator": "scanFiles",
"modifier": "private final",
"original_string": "p... | {
"body": "@Override\n public String toString() {\n return \"ScanLocation [scanDirectory=\" + scanDirectory + \", scanFiles=\" + scanFiles + \"]\";\n }",
"class_method_signature": "ScanLocation.toString()",
"constructor": false,
"full_signature": "@Override public String toString()",
"identifier"... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_24 | {
"fields": [],
"file": "licensescout-core/src/test/java/org/aposin/licensescout/archive/ArchiveIdentifierPatternTest.java",
"identifier": "ArchiveIdentifierPatternTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testHashCodeDifferentArchiveType() {\n final ArchiveIdentifierPattern ai1 = new ArchiveIdentifierPattern(ArchiveType.JAVA,\n PatternType.PATTERN_ON_FILENAME, \"abc\");\n final ArchiveIdentifierPattern ai2 = new ArchiveIdentifierPattern(ArchiveType.JAVASCR... | {
"fields": [
{
"declarator": "patternType",
"modifier": "private final",
"original_string": "private final PatternType patternType;",
"type": "PatternType",
"var_name": "patternType"
},
{
"declarator": "pattern",
"modifier": "private final",
"original_strin... | {
"body": "@Override\n public int hashCode() {\n final int prime = 31;\n int result = super.hashCode();\n result = prime * result + Objects.hash(pattern.pattern(), patternType);\n return result;\n }",
"class_method_signature": "ArchiveIdentifierPattern.hashCode()",
"constructor":... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_32 | {
"fields": [],
"file": "licensescout-core/src/test/java/org/aposin/licensescout/archive/ArchiveIdentifierPatternTest.java",
"identifier": "ArchiveIdentifierPatternTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testEqualsDifferentArchiveType() {\n final ArchiveIdentifierPattern ai1 = new ArchiveIdentifierPattern(ArchiveType.JAVA,\n PatternType.PATTERN_ON_FILENAME, \"abc\");\n final ArchiveIdentifierPattern ai2 = new ArchiveIdentifierPattern(ArchiveType.JAVASCRIP... | {
"fields": [
{
"declarator": "patternType",
"modifier": "private final",
"original_string": "private final PatternType patternType;",
"type": "PatternType",
"var_name": "patternType"
},
{
"declarator": "pattern",
"modifier": "private final",
"original_strin... | {
"body": "@Override\n public boolean equals(Object obj) {\n if (this == obj) {\n return true;\n }\n if (!super.equals(obj)) {\n return false;\n }\n if (getClass() != obj.getClass()) {\n return false;\n }\n ArchiveIdentifierPattern o... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_65 | {
"fields": [],
"file": "licensescout-core/src/test/java/org/aposin/licensescout/model/LSMessageDigestTest.java",
"identifier": "LSMessageDigestTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testGetBytes() {\n byte[] bytes = new byte[] { -1, 0 };\n final LSMessageDigest md = new LSMessageDigest(bytes);\n Assert.assertArrayEquals(\"message digest bytes\", bytes, md.getBytes());\n }",
"class_method_signature": "LSMessageDigestTest.testGetBytes()",... | {
"fields": [
{
"declarator": "bytes",
"modifier": "private final",
"original_string": "private final byte[] bytes;",
"type": "byte[]",
"var_name": "bytes"
}
],
"file": "licensescout-core/src/main/java/org/aposin/licensescout/model/LSMessageDigest.java",
"identifier": "LSMe... | {
"body": "public final byte[] getBytes() {\n return bytes;\n }",
"class_method_signature": "LSMessageDigest.getBytes()",
"constructor": false,
"full_signature": "public final byte[] getBytes()",
"identifier": "getBytes",
"invocations": [],
"modifiers": "public final",
"parameters": "()",
"r... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_64 | {
"fields": [
{
"declarator": "DRIVER_CLASS = org.h2.Driver.class.getName()",
"modifier": "private static final",
"original_string": "private static final String DRIVER_CLASS = org.h2.Driver.class.getName();",
"type": "String",
"var_name": "DRIVER_CLASS"
},
{
"declarato... | {
"body": "@Test\n public void testWriteDatabase() throws Exception {\n\n final ILSLog log = TestUtil.createJavaUtilGlobalLog();\n final LicenseStoreData licenseStoreData = TestUtil.readLicenseStoreData(log);\n final BuildInfo buildInfo = createBuildInformation();\n final List<Archive> ... | {
"fields": [],
"file": "licensescout-core/src/main/java/org/aposin/licensescout/database/DatabaseWriter.java",
"identifier": "DatabaseWriter",
"interfaces": "",
"methods": [
{
"class_method_signature": "DatabaseWriter.DatabaseWriter()",
"constructor": true,
"full_signature": "private D... | {
"body": "public static void writeToDatabase(final BuildInfo buildInfo, final List<Archive> archives,\n final ExecutionDatabaseConfiguration databaseConfiguration, final ILSLog log) {\n // for debugging\n if (log.isDebugEnabled()) {\n DatabaseUtil.dumpDr... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_33 | {
"fields": [],
"file": "licensescout-core/src/test/java/org/aposin/licensescout/archive/ArchiveIdentifierPatternTest.java",
"identifier": "ArchiveIdentifierPatternTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testEqualsDifferentPatternType() {\n final ArchiveIdentifierPattern ai1 = new ArchiveIdentifierPattern(ArchiveType.JAVA,\n PatternType.PATTERN_ON_FILENAME, \"abc\");\n final ArchiveIdentifierPattern ai2 = new ArchiveIdentifierPattern(ArchiveType.JAVA, Pat... | {
"fields": [
{
"declarator": "patternType",
"modifier": "private final",
"original_string": "private final PatternType patternType;",
"type": "PatternType",
"var_name": "patternType"
},
{
"declarator": "pattern",
"modifier": "private final",
"original_strin... | {
"body": "@Override\n public boolean equals(Object obj) {\n if (this == obj) {\n return true;\n }\n if (!super.equals(obj)) {\n return false;\n }\n if (getClass() != obj.getClass()) {\n return false;\n }\n ArchiveIdentifierPattern o... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_25 | {
"fields": [],
"file": "licensescout-core/src/test/java/org/aposin/licensescout/archive/ArchiveIdentifierPatternTest.java",
"identifier": "ArchiveIdentifierPatternTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testHashCodeDifferentPatternType() {\n final ArchiveIdentifierPattern ai1 = new ArchiveIdentifierPattern(ArchiveType.JAVA,\n PatternType.PATTERN_ON_FILENAME, \"abc\");\n final ArchiveIdentifierPattern ai2 = new ArchiveIdentifierPattern(ArchiveType.JAVA, P... | {
"fields": [
{
"declarator": "patternType",
"modifier": "private final",
"original_string": "private final PatternType patternType;",
"type": "PatternType",
"var_name": "patternType"
},
{
"declarator": "pattern",
"modifier": "private final",
"original_strin... | {
"body": "@Override\n public int hashCode() {\n final int prime = 31;\n int result = super.hashCode();\n result = prime * result + Objects.hash(pattern.pattern(), patternType);\n return result;\n }",
"class_method_signature": "ArchiveIdentifierPattern.hashCode()",
"constructor":... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_72 | {
"fields": [],
"file": "licensescout-core/src/test/java/org/aposin/licensescout/execution/ScanLocationTest.java",
"identifier": "ScanLocationTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testToStringDirectory() throws Exception {\n final ScanLocation scanLocation = new ScanLocation(new File(\".\"));\n final String result = scanLocation.toString();\n Assert.assertNotNull(\"toString()\", result);\n }",
"class_method_signature": "ScanLocationTe... | {
"fields": [
{
"declarator": "scanDirectory",
"modifier": "private final",
"original_string": "private final File scanDirectory;",
"type": "File",
"var_name": "scanDirectory"
},
{
"declarator": "scanFiles",
"modifier": "private final",
"original_string": "p... | {
"body": "@Override\n public String toString() {\n return \"ScanLocation [scanDirectory=\" + scanDirectory + \", scanFiles=\" + scanFiles + \"]\";\n }",
"class_method_signature": "ScanLocation.toString()",
"constructor": false,
"full_signature": "@Override public String toString()",
"identifier"... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_48 | {
"fields": [],
"file": "licensescout-core/src/test/java/org/aposin/licensescout/archive/ArchiveIdentifierMessageDigestTest.java",
"identifier": "ArchiveIdentifierMessageDigestTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testEqualsDifferentName() {\n final ArchiveIdentifierMessageDigest ai1 = new ArchiveIdentifierMessageDigest(ArchiveType.JAVA, \"abc\",\n new LSMessageDigest(new byte[] { 1 }));\n final ArchiveIdentifierMessageDigest ai2 = new ArchiveIdentifierMessageDiges... | {
"fields": [
{
"declarator": "messageDigest",
"modifier": "private final",
"original_string": "private final LSMessageDigest messageDigest;",
"type": "LSMessageDigest",
"var_name": "messageDigest"
}
],
"file": "licensescout-core/src/main/java/org/aposin/licensescout/archive/... | {
"body": "@Override\n public boolean equals(Object obj) {\n if (this == obj) {\n return true;\n }\n if (!super.equals(obj)) {\n return false;\n }\n if (getClass() != obj.getClass()) {\n return false;\n }\n ArchiveIdentifierMessageDi... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_68 | {
"fields": [],
"file": "licensescout-core/src/test/java/org/aposin/licensescout/model/LSMessageDigestTest.java",
"identifier": "LSMessageDigestTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testEqualsDifferentTypes() {\n final LSMessageDigest md1 = createMessageDigestA();\n final Object md2 = new Object();\n Assert.assertFalse(\"message digest\", md1.equals(md2));\n Assert.assertFalse(\"message digest\", md2.equals(md1));\n }",
"class_me... | {
"fields": [
{
"declarator": "bytes",
"modifier": "private final",
"original_string": "private final byte[] bytes;",
"type": "byte[]",
"var_name": "bytes"
}
],
"file": "licensescout-core/src/main/java/org/aposin/licensescout/model/LSMessageDigest.java",
"identifier": "LSMe... | {
"body": "@Override\n public boolean equals(Object obj) {\n if (this == obj) {\n return true;\n }\n if (obj == null) {\n return false;\n }\n if (getClass() != obj.getClass()) {\n return false;\n }\n LSMessageDigest other = (LSMessag... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_29 | {
"fields": [],
"file": "licensescout-core/src/test/java/org/aposin/licensescout/archive/ArchiveIdentifierPatternTest.java",
"identifier": "ArchiveIdentifierPatternTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testEqualsNull() {\n final ArchiveIdentifierPattern ai1 = new ArchiveIdentifierPattern(ArchiveType.JAVA,\n PatternType.PATTERN_ON_FILENAME, \"abc\");\n final ArchiveIdentifierPattern ai2 = null;\n Assert.assertFalse(\"equals()\", ai1.equals(ai2));\... | {
"fields": [
{
"declarator": "patternType",
"modifier": "private final",
"original_string": "private final PatternType patternType;",
"type": "PatternType",
"var_name": "patternType"
},
{
"declarator": "pattern",
"modifier": "private final",
"original_strin... | {
"body": "@Override\n public boolean equals(Object obj) {\n if (this == obj) {\n return true;\n }\n if (!super.equals(obj)) {\n return false;\n }\n if (getClass() != obj.getClass()) {\n return false;\n }\n ArchiveIdentifierPattern o... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_52 | {
"fields": [],
"file": "licensescout-core/src/test/java/org/aposin/licensescout/util/JsonUtilTest.java",
"identifier": "JsonUtilTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void getNPMArchiveDescriptionTest() throws Exception {\n File packageFile = getFileFromClasspath(\"package.json\");\n ArchiveIdentifierVersion actual = JsonUtil.getNPMArchiveDescription(packageFile);\n Assert.assertEquals(\"test-project\", actual.getName());\n ... | {
"fields": [],
"file": "licensescout-core/src/main/java/org/aposin/licensescout/util/JsonUtil.java",
"identifier": "JsonUtil",
"interfaces": "",
"methods": [
{
"class_method_signature": "JsonUtil.JsonUtil()",
"constructor": true,
"full_signature": "private JsonUtil()",
"identifie... | {
"body": "public static ArchiveIdentifierVersion getNPMArchiveDescription(final File file) throws IOException {\n final JSONObject obj = readJsconFile(file);\n final String name = obj.getString(\"name\");\n final String version = obj.getString(\"version\");\n return new ArchiveIdentifierV... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_0 | {
"fields": [],
"file": "licensescout-maven-utils/src/test/java/org/aposin/licensescout/maven/utils/ConfigurationHelperTest.java",
"identifier": "ConfigurationHelperTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testGetExecutionDatabaseConfigurationSuccess() throws Exception {\n final Settings settings = createSettings();\n final DatabaseConfiguration databaseConfiguration = new DatabaseConfiguration(\"jdbcUrl\", \"serverId\");\n final ExecutionDatabaseConfiguration exec... | {
"fields": [
{
"declarator": "NEXUS_ARTIFACT_URL_BUILDER = new NexusArtifactUrlBuilder()",
"modifier": "private static final",
"original_string": "private static final IArtifactUrlBuilder NEXUS_ARTIFACT_URL_BUILDER = new NexusArtifactUrlBuilder();",
"type": "IArtifactUrlBuilder",
"v... | {
"body": "public static ExecutionDatabaseConfiguration getExecutionDatabaseConfiguration(final DatabaseConfiguration databaseConfiguration,\n final Settings settings,\n ... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_44 | {
"fields": [],
"file": "licensescout-core/src/test/java/org/aposin/licensescout/archive/ArchiveIdentifierMessageDigestTest.java",
"identifier": "ArchiveIdentifierMessageDigestTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testEqualsNull() {\n final ArchiveIdentifierMessageDigest ai1 = new ArchiveIdentifierMessageDigest(ArchiveType.JAVA, \"abc\",\n new LSMessageDigest(new byte[] { 1 }));\n final ArchiveIdentifierMessageDigest ai2 = null;\n Assert.assertFalse(\"equals... | {
"fields": [
{
"declarator": "messageDigest",
"modifier": "private final",
"original_string": "private final LSMessageDigest messageDigest;",
"type": "LSMessageDigest",
"var_name": "messageDigest"
}
],
"file": "licensescout-core/src/main/java/org/aposin/licensescout/archive/... | {
"body": "@Override\n public boolean equals(Object obj) {\n if (this == obj) {\n return true;\n }\n if (!super.equals(obj)) {\n return false;\n }\n if (getClass() != obj.getClass()) {\n return false;\n }\n ArchiveIdentifierMessageDi... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
189191730_13 | {
"fields": [],
"file": "licensescout-core/src/test/java/org/aposin/licensescout/archive/ArchiveIdentifierVersionTest.java",
"identifier": "ArchiveIdentifierVersionTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testEqualsSame() {\n final ArchiveIdentifierVersion ai1 = new ArchiveIdentifierVersion(ArchiveType.JAVA, \"abc\", \"1.0\");\n final ArchiveIdentifierVersion ai2 = ai1;\n Assert.assertTrue(\"equals()\", ai1.equals(ai2));\n }",
"class_method_signature": "Archi... | {
"fields": [
{
"declarator": "version",
"modifier": "private final",
"original_string": "private final String version;",
"type": "String",
"var_name": "version"
}
],
"file": "licensescout-core/src/main/java/org/aposin/licensescout/archive/ArchiveIdentifierVersion.java",
"i... | {
"body": "@Override\n public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (!(o instanceof ArchiveIdentifierVersion)) {\n return false;\n }\n if (!super.equals(o)) {\n return false;\n }\n ArchiveIdentifierVer... | {
"created": null,
"fork": null,
"fork_count": 21,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 189191730,
"size": 3213,
"stargazer_count": 21,
"stars": null,
"updates": null,
"url": "https://github.com/aposin/LicenseScout"
} |
2316136_30 | {
"fields": [
{
"declarator": "PRODUCT_XMI_FILE = \"src/test/resources/products.xmi\"",
"modifier": "private static",
"original_string": "private static String PRODUCT_XMI_FILE = \"src/test/resources/products.xmi\";",
"type": "String",
"var_name": "PRODUCT_XMI_FILE"
}
],
"fil... | {
"body": "@Test\n public void testEqualsLogically() throws Exception {\n AnnotationType left = mock( AnnotationType.class, Mockito.CALLS_REAL_METHODS );\n\n doReturn( \"Hello, my name is...\" ).when( left ).getName();\n\n AnnotationType right = mock( AnnotationType.class );\n doReturn( \"Hello, my name ... | {
"fields": [
{
"declarator": "OLAP_CUBES_PROPERTY = \"olap_cubes\"",
"modifier": "protected static final",
"original_string": "protected static final String OLAP_CUBES_PROPERTY = \"olap_cubes\";",
"type": "String",
"var_name": "OLAP_CUBES_PROPERTY"
},
{
"declarator": "... | {
"body": "public boolean equalsLogically( AnnotationType obj ) {\n\n if ( obj == null || obj.getClass() != getClass() ) {\n return false;\n }\n\n EqualsBuilder eq = new EqualsBuilder();\n\n // by default just see if the name is the same\n String thatName = obj.getName() == null ? null : obj.getNa... | {
"created": null,
"fork": null,
"fork_count": 87,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 2316136,
"size": 3720,
"stargazer_count": 38,
"stars": null,
"updates": null,
"url": "https://github.com/pentaho/modeler"
} |
2316136_67 | {
"fields": [],
"file": "core/src/test/java/org/pentaho/agilebi/modeler/models/annotations/CreateAttributeTest.java",
"identifier": "CreateAttributeTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void equalsLogically_differentHierarchy() throws Exception {\n CreateAttribute left = buildCreateAttributeAnnotations( \"sales\", \"sales\", \"Money\", null, null, false );\n CreateAttribute right = buildCreateAttributeAnnotations( \"Sales\", \"Sales\", \"Sales\", null, null, false );... | {
"fields": [
{
"declarator": "serialVersionUID = 5169827225345800226L",
"modifier": "private static final",
"original_string": "private static final long serialVersionUID = 5169827225345800226L;",
"type": "long",
"var_name": "serialVersionUID"
},
{
"declarator": "MDI_G... | {
"body": "@Override\n public boolean equalsLogically( AnnotationType obj ) {\n if ( obj == null || obj.getClass() != getClass() ) {\n return false;\n }\n CreateAttribute that = (CreateAttribute) obj;\n\n EqualsBuilder eq = new EqualsBuilder();\n\n // by default just see if the name is the same\n... | {
"created": null,
"fork": null,
"fork_count": 87,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 2316136,
"size": 3720,
"stargazer_count": 38,
"stars": null,
"updates": null,
"url": "https://github.com/pentaho/modeler"
} |
2316136_71 | {
"fields": [],
"file": "core/src/test/java/org/pentaho/agilebi/modeler/models/annotations/BlankAnnotationTest.java",
"identifier": "BlankAnnotationTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testBlankAnnotationAlwaysSuccess() throws Exception {\n BlankAnnotation blankAnnotation = new BlankAnnotation();\n assertTrue( blankAnnotation.apply( null ) );\n assertTrue( blankAnnotation.apply( null, null ) );\n }",
"class_method_signature": "BlankAnnotationTest.testBlan... | {
"fields": [
{
"declarator": "field",
"modifier": "private",
"original_string": "private String field;",
"type": "String",
"var_name": "field"
}
],
"file": "core/src/main/java/org/pentaho/agilebi/modeler/models/annotations/BlankAnnotation.java",
"identifier": "BlankAnnotat... | {
"body": "@Override\n public boolean apply( ModelerWorkspace workspace, IMetaStore metaStore )\n throws ModelerException {\n return true;\n }",
"class_method_signature": "BlankAnnotation.apply( ModelerWorkspace workspace, IMetaStore metaStore )",
"constructor": false,
"full_signature": "@Override publi... | {
"created": null,
"fork": null,
"fork_count": 87,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 2316136,
"size": 3720,
"stargazer_count": 38,
"stars": null,
"updates": null,
"url": "https://github.com/pentaho/modeler"
} |
2316136_26 | {
"fields": [
{
"declarator": "PRODUCT_XMI_FILE = \"src/test/resources/products.xmi\"",
"modifier": "private static",
"original_string": "private static String PRODUCT_XMI_FILE = \"src/test/resources/products.xmi\";",
"type": "String",
"var_name": "PRODUCT_XMI_FILE"
}
],
"fil... | {
"body": "@Test\n public void testGetModelPropertyValueByName() throws Exception {\n\n CreateAttribute createAttribute = new CreateAttribute();\n createAttribute.setModelPropertyByName( \"Time Forma...\", \"xxxxx\" );\n assertNull( createAttribute.getModelPropertyValueByName( \"Time Forma...\" ) ); // does... | {
"fields": [
{
"declarator": "OLAP_CUBES_PROPERTY = \"olap_cubes\"",
"modifier": "protected static final",
"original_string": "protected static final String OLAP_CUBES_PROPERTY = \"olap_cubes\";",
"type": "String",
"var_name": "OLAP_CUBES_PROPERTY"
},
{
"declarator": "... | {
"body": "public Object getModelPropertyValueByName( String name ) throws Exception {\n\n List<Field> fields = findAllFields( new ArrayList<Field>(), this.getClass() );\n for ( Field f : fields ) {\n if ( f.isAnnotationPresent( ModelProperty.class ) ) {\n ModelProperty mp = f.getAnnotation( ModelPr... | {
"created": null,
"fork": null,
"fork_count": 87,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 2316136,
"size": 3720,
"stargazer_count": 38,
"stars": null,
"updates": null,
"url": "https://github.com/pentaho/modeler"
} |
2316136_51 | {
"fields": [
{
"declarator": "TEST_FILE_PATH = \"src/test/resources/products.with.calc.measures.mondrian.xml\"",
"modifier": "private static final",
"original_string": "private static final String TEST_FILE_PATH = \"src/test/resources/products.with.calc.measures.mondrian.xml\";",
"type": ... | {
"body": "@Test( expected = ModelerException.class )\n public void testUpdateCalculatedMemberInvalidCalculatedMemberSourceName() throws ModelerException {\n boolean result = true;\n\n Assert.assertTrue( schemaDocument != null );\n\n MondrianDef.CalculatedMember calculatedMember = getMockCalculatedMember();... | {
"fields": [
{
"declarator": "MSG_CLASS = MondrianSchemaHandler.class",
"modifier": "protected static final",
"original_string": "protected static final Class<?> MSG_CLASS = MondrianSchemaHandler.class;",
"type": "Class<?>",
"var_name": "MSG_CLASS"
},
{
"declarator": "... | {
"body": "public boolean updateCalculatedMember( String cubeName, String calculatedMemberName,\n MondrianDef.CalculatedMember updatedCalculatedMember ) throws ModelerException {\n if ( StringUtils.isBlank( calculatedMemberName ) ) {\n throw new ModelerException(\n ... | {
"created": null,
"fork": null,
"fork_count": 87,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 2316136,
"size": 3720,
"stargazer_count": 38,
"stars": null,
"updates": null,
"url": "https://github.com/pentaho/modeler"
} |
2316136_10 | {
"fields": [
{
"declarator": "workspace",
"modifier": "protected",
"original_string": "protected ModelerWorkspace workspace;",
"type": "ModelerWorkspace",
"var_name": "workspace"
},
{
"declarator": "LOCALE = \"en-US\"",
"modifier": "private static final",
"... | {
"body": "@Test\n public void testUpConvertLegacyModel() throws Exception {\n XmiParser parser = new XmiParser();\n Domain d = parser.parseXmi( new FileInputStream( \"src/test/resources/products.xmi\" ) );\n LogicalModel model = d.getLogicalModels().get( 0 );\n\n assertEquals( 1, model.getLogicalTables(... | {
"fields": [
{
"declarator": "serialVersionUID = 2058731810283858276L",
"modifier": "private static final",
"original_string": "private static final long serialVersionUID = 2058731810283858276L;",
"type": "long",
"var_name": "serialVersionUID"
},
{
"declarator": "avail... | {
"body": "protected boolean upConvertLegacyModel() {\n double version = ModelerConversionUtil.upConvertDomain( domain );\n if ( version < Double.parseDouble( BaseModelerWorkspaceHelper.AGILE_BI_VERSION ) ) {\n return true;\n }\n return false;\n }",
"class_method_signature": "ModelerWorkspace.upCo... | {
"created": null,
"fork": null,
"fork_count": 87,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 2316136,
"size": 3720,
"stargazer_count": 38,
"stars": null,
"updates": null,
"url": "https://github.com/pentaho/modeler"
} |
2316136_47 | {
"fields": [
{
"declarator": "TEST_FILE_PATH = \"src/test/resources/products.with.calc.measures.mondrian.xml\"",
"modifier": "private static final",
"original_string": "private static final String TEST_FILE_PATH = \"src/test/resources/products.with.calc.measures.mondrian.xml\";",
"type": ... | {
"body": "@Test\n public void testUpdateCalculatedMemberMissingProperties() throws ModelerException {\n boolean result = true;\n\n Assert.assertTrue( schemaDocument != null );\n\n MondrianDef.CalculatedMember calculatedMember = getMockCalculatedMember();\n calculatedMember.name = \"\";\n calculatedMe... | {
"fields": [
{
"declarator": "MSG_CLASS = MondrianSchemaHandler.class",
"modifier": "protected static final",
"original_string": "protected static final Class<?> MSG_CLASS = MondrianSchemaHandler.class;",
"type": "Class<?>",
"var_name": "MSG_CLASS"
},
{
"declarator": "... | {
"body": "public boolean updateCalculatedMember( String cubeName, String calculatedMemberName,\n MondrianDef.CalculatedMember updatedCalculatedMember ) throws ModelerException {\n if ( StringUtils.isBlank( calculatedMemberName ) ) {\n throw new ModelerException(\n ... | {
"created": null,
"fork": null,
"fork_count": 87,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 2316136,
"size": 3720,
"stargazer_count": 38,
"stars": null,
"updates": null,
"url": "https://github.com/pentaho/modeler"
} |
2316136_84 | {
"fields": [],
"file": "core/src/test/java/org/pentaho/agilebi/modeler/models/annotations/CreateDimensionKeyTest.java",
"identifier": "CreateDimensionKeyTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testApplyIsAlwaysTrue() throws Exception {\n assertEquals( true, new CreateDimensionKey().apply( null, null ) );\n }",
"class_method_signature": "CreateDimensionKeyTest.testApplyIsAlwaysTrue()",
"constructor": false,
"full_signature": "@Test public void testApplyIsAlwaysTrue(... | {
"fields": [
{
"declarator": "serialVersionUID = 1L",
"modifier": "private static final",
"original_string": "private static final long serialVersionUID = 1L;",
"type": "long",
"var_name": "serialVersionUID"
},
{
"declarator": "NAME_ID = \"name\"",
"modifier": "p... | {
"body": "@Override\n public boolean apply( ModelerWorkspace workspace, final IMetaStore metaStore ) throws ModelerException {\n // nothing to do at apply time. Will be used when a corresponding LinkDimension is specified\n return true;\n }",
"class_method_signature": "CreateDimensionKey.apply( ModelerWor... | {
"created": null,
"fork": null,
"fork_count": 87,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 2316136,
"size": 3720,
"stargazer_count": 38,
"stars": null,
"updates": null,
"url": "https://github.com/pentaho/modeler"
} |
2316136_6 | {
"fields": [
{
"declarator": "props = null",
"modifier": "private static",
"original_string": "private static Properties props = null;",
"type": "Properties",
"var_name": "props"
},
{
"declarator": "LOCALE = \"en_US\"",
"modifier": "private static final",
"... | {
"body": "@Test\n public void testMatchingAliasToRole_prefixedPhysicalColumn() throws Exception {\n\n GeoContext geo = GeoContextFactory.create( config );\n\n IPhysicalColumn mockStateCol = createMock( IPhysicalColumn.class );\n expect( mockStateCol.getId() ).andReturn( \"pc__STATE\" ).anyTimes();\n exp... | {
"fields": [
{
"declarator": "serialVersionUID = 7328118800436710452L",
"modifier": "private static final",
"original_string": "private static final long serialVersionUID = 7328118800436710452L;",
"type": "long",
"var_name": "serialVersionUID"
},
{
"declarator": "GEO_P... | {
"body": "public GeoRole matchFieldToGeoRole( AvailableField field ) {\n for ( GeoRole role : this ) {\n if ( role.evaluate( field.getPhysicalColumn().getId() ) ) {\n return role;\n } else if ( field.getPhysicalColumn().getId().startsWith( \"pc__\" ) ) {\n // sql data sources prefix the co... | {
"created": null,
"fork": null,
"fork_count": 87,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 2316136,
"size": 3720,
"stargazer_count": 38,
"stars": null,
"updates": null,
"url": "https://github.com/pentaho/modeler"
} |
2316136_7 | {
"fields": [
{
"declarator": "props = null",
"modifier": "private static",
"original_string": "private static Properties props = null;",
"type": "Properties",
"var_name": "props"
},
{
"declarator": "LOCALE = \"en_US\"",
"modifier": "private static final",
"... | {
"body": "@Test\n public void testDetermineLocationField() throws Exception {\n\n List<IAvailableItem> items = new ArrayList<IAvailableItem>();\n\n // mock object init...\n IPhysicalTable mockTable1 = createMock( IPhysicalTable.class );\n List<IPhysicalColumn> cols1 = new ArrayList<IPhysicalColumn>();\n... | {
"fields": [
{
"declarator": "serialVersionUID = 7328118800436710452L",
"modifier": "private static final",
"original_string": "private static final long serialVersionUID = 7328118800436710452L;",
"type": "long",
"var_name": "serialVersionUID"
},
{
"declarator": "GEO_P... | {
"body": "protected AvailableField determineLocationField( AvailableTable table, LocationRole locationRole, int latColIndex,\n int lonColIndex, String locale ) {\n AvailableField locationField = null;\n int count = table.getAvailableFields().size();\n\n // if the lat&longs where detected with a prefix,... | {
"created": null,
"fork": null,
"fork_count": 87,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 2316136,
"size": 3720,
"stargazer_count": 38,
"stars": null,
"updates": null,
"url": "https://github.com/pentaho/modeler"
} |
2316136_85 | {
"fields": [
{
"declarator": "PRODUCT_XMI_FILE = \"src/test/resources/products.xmi\"",
"modifier": "private static",
"original_string": "private static String PRODUCT_XMI_FILE = \"src/test/resources/products.xmi\";",
"type": "String",
"var_name": "PRODUCT_XMI_FILE"
},
{
... | {
"body": "@Test\n public void testValidate() throws Exception {\n\n CreateMeasure createMeasure = new CreateMeasure();\n\n try {\n createMeasure.validate();\n } catch ( ModelerException me ) {\n assertNotNull( me );\n }\n\n createMeasure.setName( \"name\" );\n createMeasure.setField( \"f... | {
"fields": [
{
"declarator": "serialVersionUID = -2487305952482463126L",
"modifier": "private static final",
"original_string": "private static final long serialVersionUID = -2487305952482463126L;",
"type": "long",
"var_name": "serialVersionUID"
},
{
"declarator": "NAM... | {
"body": "@Override\n public void validate() throws ModelerException {\n\n if ( StringUtils.isBlank( getField() )\n && ( StringUtils.isBlank( getLevel() ) || StringUtils.isBlank( getCube() ) )\n && ( StringUtils.isBlank( getMeasure() ) || StringUtils.isBlank( getCube() ) ) ) {\n throw new Mode... | {
"created": null,
"fork": null,
"fork_count": 87,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 2316136,
"size": 3720,
"stargazer_count": 38,
"stars": null,
"updates": null,
"url": "https://github.com/pentaho/modeler"
} |
2316136_46 | {
"fields": [
{
"declarator": "TEST_FILE_PATH = \"src/test/resources/products.with.calc.measures.mondrian.xml\"",
"modifier": "private static final",
"original_string": "private static final String TEST_FILE_PATH = \"src/test/resources/products.with.calc.measures.mondrian.xml\";",
"type": ... | {
"body": "@Test\n public void testUpdateCalculatedMember() throws ModelerException {\n boolean result = true;\n\n Assert.assertTrue( schemaDocument != null );\n\n MondrianDef.CalculatedMember calculatedMember = getMockCalculatedMember();\n\n MondrianSchemaHandler mondrianSchemaHandler = new MondrianSche... | {
"fields": [
{
"declarator": "MSG_CLASS = MondrianSchemaHandler.class",
"modifier": "protected static final",
"original_string": "protected static final Class<?> MSG_CLASS = MondrianSchemaHandler.class;",
"type": "Class<?>",
"var_name": "MSG_CLASS"
},
{
"declarator": "... | {
"body": "public boolean updateCalculatedMember( String cubeName, String calculatedMemberName,\n MondrianDef.CalculatedMember updatedCalculatedMember ) throws ModelerException {\n if ( StringUtils.isBlank( calculatedMemberName ) ) {\n throw new ModelerException(\n ... | {
"created": null,
"fork": null,
"fork_count": 87,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 2316136,
"size": 3720,
"stargazer_count": 38,
"stars": null,
"updates": null,
"url": "https://github.com/pentaho/modeler"
} |
2316136_11 | {
"fields": [
{
"declarator": "workspace",
"modifier": "protected",
"original_string": "protected ModelerWorkspace workspace;",
"type": "ModelerWorkspace",
"var_name": "workspace"
},
{
"declarator": "LOCALE = \"en-US\"",
"modifier": "private static final",
"... | {
"body": "@Test\n public void testMondrianExportAfterUpConvertOfModel() throws Exception {\n XmiParser parser = new XmiParser();\n Domain d = parser.parseXmi( new FileInputStream( \"src/test/resources/products.xmi\" ) );\n workspace.setDomain( d );\n LogicalModel model = d.getLogicalModels().get( 1 );\n... | {
"fields": [
{
"declarator": "serialVersionUID = 2058731810283858276L",
"modifier": "private static final",
"original_string": "private static final long serialVersionUID = 2058731810283858276L;",
"type": "long",
"var_name": "serialVersionUID"
},
{
"declarator": "avail... | {
"body": "public void setDomain( Domain d ) {\n setDomain( d, true );\n }",
"class_method_signature": "ModelerWorkspace.setDomain( Domain d )",
"constructor": false,
"full_signature": "public void setDomain( Domain d )",
"identifier": "setDomain",
"invocations": [
"setDomain"
],
"modifiers": "p... | {
"created": null,
"fork": null,
"fork_count": 87,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 2316136,
"size": 3720,
"stargazer_count": 38,
"stars": null,
"updates": null,
"url": "https://github.com/pentaho/modeler"
} |
2316136_50 | {
"fields": [
{
"declarator": "TEST_FILE_PATH = \"src/test/resources/products.with.calc.measures.mondrian.xml\"",
"modifier": "private static final",
"original_string": "private static final String TEST_FILE_PATH = \"src/test/resources/products.with.calc.measures.mondrian.xml\";",
"type": ... | {
"body": "@Test\n public void testUpdateCalculatedMemberEmptyMemberProperties() throws ModelerException {\n boolean result = true;\n\n Assert.assertTrue( schemaDocument != null );\n\n MondrianDef.CalculatedMember calculatedMember = getMockCalculatedMember();\n\n MondrianSchemaHandler mondrianSchemaHandl... | {
"fields": [
{
"declarator": "MSG_CLASS = MondrianSchemaHandler.class",
"modifier": "protected static final",
"original_string": "protected static final Class<?> MSG_CLASS = MondrianSchemaHandler.class;",
"type": "Class<?>",
"var_name": "MSG_CLASS"
},
{
"declarator": "... | {
"body": "public boolean updateCalculatedMember( String cubeName, String calculatedMemberName,\n MondrianDef.CalculatedMember updatedCalculatedMember ) throws ModelerException {\n if ( StringUtils.isBlank( calculatedMemberName ) ) {\n throw new ModelerException(\n ... | {
"created": null,
"fork": null,
"fork_count": 87,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 2316136,
"size": 3720,
"stargazer_count": 38,
"stars": null,
"updates": null,
"url": "https://github.com/pentaho/modeler"
} |
2316136_27 | {
"fields": [
{
"declarator": "PRODUCT_XMI_FILE = \"src/test/resources/products.xmi\"",
"modifier": "private static",
"original_string": "private static String PRODUCT_XMI_FILE = \"src/test/resources/products.xmi\";",
"type": "String",
"var_name": "PRODUCT_XMI_FILE"
}
],
"fil... | {
"body": "@Test\n public void testGetModelPropertyNameClassType() throws Exception {\n\n CreateAttribute createAttribute = new CreateAttribute();\n\n assertEquals( createAttribute.getModelPropertyNameClassType( \"Time Source Forma..\" ), null );\n assertEquals( createAttribute.getModelPropertyNameClassType... | {
"fields": [
{
"declarator": "OLAP_CUBES_PROPERTY = \"olap_cubes\"",
"modifier": "protected static final",
"original_string": "protected static final String OLAP_CUBES_PROPERTY = \"olap_cubes\";",
"type": "String",
"var_name": "OLAP_CUBES_PROPERTY"
},
{
"declarator": "... | {
"body": "public Class getModelPropertyNameClassType( String name ) {\n List<Field> fields = findAllFields( new ArrayList<Field>(), this.getClass() );\n for ( Field f : fields ) {\n if ( f.isAnnotationPresent( ModelProperty.class ) ) {\n ModelProperty mp = f.getAnnotation( ModelProperty.class );\n ... | {
"created": null,
"fork": null,
"fork_count": 87,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 2316136,
"size": 3720,
"stargazer_count": 38,
"stars": null,
"updates": null,
"url": "https://github.com/pentaho/modeler"
} |
2316136_70 | {
"fields": [],
"file": "core/src/test/java/org/pentaho/agilebi/modeler/models/annotations/BlankAnnotationTest.java",
"identifier": "BlankAnnotationTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testBlankTypeIsNotNull() throws Exception {\n BlankAnnotation blankAnnotation = new BlankAnnotation();\n assertEquals( ModelAnnotation.Type.BLANK, blankAnnotation.getType() );\n }",
"class_method_signature": "BlankAnnotationTest.testBlankTypeIsNotNull()",
"constructor": fals... | {
"fields": [
{
"declarator": "field",
"modifier": "private",
"original_string": "private String field;",
"type": "String",
"var_name": "field"
}
],
"file": "core/src/main/java/org/pentaho/agilebi/modeler/models/annotations/BlankAnnotation.java",
"identifier": "BlankAnnotat... | {
"body": "@Override\n public ModelAnnotation.Type getType() {\n return ModelAnnotation.Type.BLANK;\n }",
"class_method_signature": "BlankAnnotation.getType()",
"constructor": false,
"full_signature": "@Override public ModelAnnotation.Type getType()",
"identifier": "getType",
"invocations": [],
"modi... | {
"created": null,
"fork": null,
"fork_count": 87,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 2316136,
"size": 3720,
"stargazer_count": 38,
"stars": null,
"updates": null,
"url": "https://github.com/pentaho/modeler"
} |
2316136_66 | {
"fields": [],
"file": "core/src/test/java/org/pentaho/agilebi/modeler/models/annotations/CreateAttributeTest.java",
"identifier": "CreateAttributeTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void equalsLogically_differentDimension() throws Exception {\n CreateAttribute left = buildCreateAttributeAnnotations( \"sales\", \"Money\", \"sales\", null, null, false );\n CreateAttribute right = buildCreateAttributeAnnotations( \"Sales\", \"Sales\", \"Sales\", null, null, false );... | {
"fields": [
{
"declarator": "serialVersionUID = 5169827225345800226L",
"modifier": "private static final",
"original_string": "private static final long serialVersionUID = 5169827225345800226L;",
"type": "long",
"var_name": "serialVersionUID"
},
{
"declarator": "MDI_G... | {
"body": "@Override\n public boolean equalsLogically( AnnotationType obj ) {\n if ( obj == null || obj.getClass() != getClass() ) {\n return false;\n }\n CreateAttribute that = (CreateAttribute) obj;\n\n EqualsBuilder eq = new EqualsBuilder();\n\n // by default just see if the name is the same\n... | {
"created": null,
"fork": null,
"fork_count": 87,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 2316136,
"size": 3720,
"stargazer_count": 38,
"stars": null,
"updates": null,
"url": "https://github.com/pentaho/modeler"
} |
2316136_31 | {
"fields": [
{
"declarator": "TEST_FILE_PATH = \"src/test/resources/products.with.calc.measures.mondrian.xml\"",
"modifier": "private static final",
"original_string": "private static final String TEST_FILE_PATH = \"src/test/resources/products.with.calc.measures.mondrian.xml\";",
"type": ... | {
"body": "@Test\n public void testAddMeasure() {\n Assert.assertTrue( schemaDocument != null );\n\n MondrianDef.Measure measure = new MondrianDef.Measure();\n measure.name = TEST_MEASURE_NAME;\n measure.aggregator = TEST_AGG_TYPE;\n measure.column = TEST_COLUMN;\n measure.formatString = TEST_NUM_D... | {
"fields": [
{
"declarator": "MSG_CLASS = MondrianSchemaHandler.class",
"modifier": "protected static final",
"original_string": "protected static final Class<?> MSG_CLASS = MondrianSchemaHandler.class;",
"type": "Class<?>",
"var_name": "MSG_CLASS"
},
{
"declarator": "... | {
"body": "public void addMeasure( String cubeName, MondrianDef.Measure measure ) throws ModelerException {\n try {\n XPathFactory xPathFactory = XPathFactory.newInstance();\n XPath xPath = xPathFactory.newXPath();\n StringBuffer xPathExpr = new StringBuffer();\n\n String cubeXPathPart = CUBE_X... | {
"created": null,
"fork": null,
"fork_count": 87,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 2316136,
"size": 3720,
"stargazer_count": 38,
"stars": null,
"updates": null,
"url": "https://github.com/pentaho/modeler"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.