id
stringlengths
7
14
test_class
dict
test_case
dict
focal_class
dict
focal_method
dict
repository
dict
113425021_106
{ "fields": [], "file": "HyMD/util/src/test/java/de/hpi/is/md/util/LazyArrayTest.java", "identifier": "LazyArrayTest", "interfaces": "", "superclass": "extends LazyMapTest" }
{ "body": "@Test(expected = IndexOutOfBoundsException.class)\n\tpublic void testGetElementOutOfBounds() {\n\t\tLazyMap<Integer, String> array = create(() -> null, 3);\n\t\tarray.get(4);\n\t\tfail();\n\t}", "class_method_signature": "LazyArrayTest.testGetElementOutOfBounds()", "constructor": false, "full_signatu...
{ "fields": [ { "declarator": "serialVersionUID = -5993169624858742922L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -5993169624858742922L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "ele...
{ "body": "@Deprecated\n\t@Override\n\tpublic Optional<T> get(Integer key) {\n\t\tint k = key.intValue();\n\t\treturn get(k);\n\t}", "class_method_signature": "LazyArray.get(Integer key)", "constructor": false, "full_signature": "@Deprecated @Override public Optional<T> get(Integer key)", "identifier": "get",...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_26
{ "fields": [ { "declarator": "fixture = new PruningGraphFixture()", "modifier": "", "original_string": "PruningGraphFixture fixture = new PruningGraphFixture();", "type": "PruningGraphFixture", "var_name": "fixture" } ], "file": "ducc/ducc_algorithm_helper/src/test/java/de/m...
{ "body": "@Test\n public void testAddReplicatedAdd() {\n //Setup\n PruningGraph graph = new PruningGraph(5, 10, true);\n\n ColumnCombinationBitset actualColumnCombinationAC = fixture.columnCombinationAC;\n\n ColumnCombinationBitset expectedKeyA = fixture.columnCombinationA;\n ColumnCombinationBitset ...
{ "fields": [ { "declarator": "OVERFLOW_THRESHOLD", "modifier": "protected final", "original_string": "protected final int OVERFLOW_THRESHOLD;", "type": "int", "var_name": "OVERFLOW_THRESHOLD" }, { "declarator": "containsPositiveFeature", "modifier": "protected fi...
{ "body": "public void add(ColumnCombinationBitset columnCombination) {\n int initialKeyLength = 1;\n for (int i = 0; i < columnCombination.getNSubsetColumnCombinations(initialKeyLength).size();\n i++) {\n this.addToKey(columnCombination.getNSubsetColumnCombinations(initialKeyLength).get(i),\n ...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_151
{ "fields": [], "file": "HyMD/hybrid/src/test/java/de/hpi/is/md/hybrid/LatticeHelperTest.java", "identifier": "LatticeHelperTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void testCreate() {\n\t\tint columnPairs = 4;\n\t\tLattice lattice = LatticeHelper.createLattice(new Cardinality(columnPairs));\n\t\tassertThat(lattice.getDepth()).isEqualTo(0);\n\t\tassertThat(lattice.getLevel(0)).hasSize(1);\n\t\tassertThat(lattice.containsMdOrGeneralization(\n\t\t\tnew M...
{ "fields": [], "file": "HyMD/hybrid/src/main/java/de/hpi/is/md/hybrid/LatticeHelper.java", "identifier": "LatticeHelper", "interfaces": "", "methods": [ { "class_method_signature": "LatticeHelper.createLattice(LevelFunction levelFunction)", "constructor": false, "full_signature": "stati...
{ "body": "static Lattice createLattice(LevelFunction levelFunction) {\n\t\tint columnPairs = levelFunction.size();\n\t\tLattice lattice = new LatticeImpl(levelFunction);\n\t\tMDSite lhs = new MDSiteImpl(columnPairs);\n\t\tfor (int rhsAttr = 0; rhsAttr < columnPairs; rhsAttr++) {\n\t\t\tMD md = createMD(lhs, rhsAttr)...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_3
{ "fields": [ { "declarator": "SAMPLE_SIZE = 10", "modifier": "public static final", "original_string": "public static final int SAMPLE_SIZE = 10;", "type": "int", "var_name": "SAMPLE_SIZE" }, { "declarator": "rb = new RelationalInputBuilder(\"testTable\")", "modi...
{ "body": "@Test\n public void testHashCache() throws Exception {\n rb.setHeader(\"col1\").addRow(\"a\").addRow(\"a\");\n HashedColumnStore cs = createColumnStore(rb.build().generateNewCopy());\n ColumnIterator rows = cs.getRows();\n\n assertThat(rows.hasNext(), is(true));\n long...
{ "fields": [ { "declarator": "columnFiles", "modifier": "private final", "original_string": "private final File[] columnFiles;", "type": "File[]", "var_name": "columnFiles" }, { "declarator": "isReuseColumnFiles", "modifier": "private final", "original_stri...
{ "body": "public ColumnIterator getRows(SimpleColumnCombination activeColumns) {\n FileInputStream[] in = new FileInputStream[activeColumns.getColumns().length];\n int i = 0;\n for (int col : activeColumns.getColumns()) {\n try {\n in[i++] = new FileInputStream(columnFi...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_203
{ "fields": [ { "declarator": "folder = new TemporaryFolder()", "modifier": "@Rule\n\tpublic final", "original_string": "@Rule\n\tpublic final TemporaryFolder folder = new TemporaryFolder();", "type": "TemporaryFolder", "var_name": "folder" } ], "file": "HyMD/core/src/test/ja...
{ "body": "@Test\n\tpublic void test() throws IOException {\n\t\tFile file = folder.newFile();\n\t\ttry (FileResultWriter<String> resultWriter = new FileResultWriter<>(file)) {\n\t\t\tresultWriter.receiveResult(\"foo\");\n\t\t\tresultWriter.receiveResult(\"bar\");\n\t\t}\n\t\ttry (BufferedReader in = new BufferedRead...
{ "fields": [ { "declarator": "out", "modifier": "@NonNull\n\tprivate final", "original_string": "@NonNull\n\tprivate final PrintWriter out;", "type": "PrintWriter", "var_name": "out" } ], "file": "HyMD/core/src/main/java/de/hpi/is/md/impl/result/FileResultWriter.java", "id...
{ "body": "@Override\n\tpublic void receiveResult(T result) {\n\t\tout.println(result);\n\t\tout.flush();\n\t}", "class_method_signature": "FileResultWriter.receiveResult(T result)", "constructor": false, "full_signature": "@Override public void receiveResult(T result)", "identifier": "receiveResult", "invo...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_192
{ "fields": [ { "declarator": "supportedFactory", "modifier": "@Mock\n\tprivate", "original_string": "@Mock\n\tprivate Factory supportedFactory;", "type": "Factory", "var_name": "supportedFactory" }, { "declarator": "notSupportedFactory", "modifier": "@Mock\n\tpri...
{ "body": "@Test\n\tpublic void testSupported() {\n\t\tFactory factory = createFactory();\n\t\tassertThat(factory.create(new LhsResult(Mockito.mock(MDSite.class), 10)))\n\t\t\t.isInstanceOf(SupportedStrategy.class);\n\t}", "class_method_signature": "SupportBasedFactoryTest.testSupported()", "constructor": false, ...
{ "fields": [ { "declarator": "minSupport", "modifier": "private final", "original_string": "private final long minSupport;", "type": "long", "var_name": "minSupport" }, { "declarator": "supportedFactory", "modifier": "@NonNull\n\tprivate final", "original_s...
{ "body": "@Override\n\tpublic AnalyzeStrategy create(LhsResult lhsResult) {\n\t\tif (isSupported(lhsResult)) {\n\t\t\treturn supportedFactory.create(lhsResult);\n\t\t}\n\t\treturn notSupportedFactory.create(lhsResult);\n\t}", "class_method_signature": "SupportBasedFactory.create(LhsResult lhsResult)", "construct...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_184
{ "fields": [ { "declarator": "validator", "modifier": "@Mock\n\tprivate", "original_string": "@Mock\n\tprivate BatchValidator validator;", "type": "BatchValidator", "var_name": "validator" }, { "declarator": "analyzer", "modifier": "@Mock\n\tprivate", "orig...
{ "body": "@Test\n\tpublic void test() {\n\t\tCandidateProcessor processor = createProcessor();\n\t\tCollection<Candidate> candidates = Collections.singletonList(Mockito.mock(Candidate.class));\n\t\tAnalyzeTask task = Mockito.mock(AnalyzeTask.class);\n\t\tCollection<AnalyzeTask> results = Collections\n\t\t\t.singleto...
{ "fields": [ { "declarator": "analyzer", "modifier": "@NonNull\n\tprivate final", "original_string": "@NonNull\n\tprivate final Analyzer analyzer;", "type": "Analyzer", "var_name": "analyzer" }, { "declarator": "validator", "modifier": "@NonNull\n\tprivate final"...
{ "body": "Statistics validateAndAnalyze(Collection<Candidate> candidates) {\n\t\tlog.debug(\"Will perform {} validations\", Integer.valueOf(candidates.size()));\n\t\tIterable<AnalyzeTask> results = validator.validate(candidates);\n\t\tresults.forEach(violationHandler::addViolations);\n\t\treturn analyzer.analyze(res...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_242
{ "fields": [], "file": "CFDFinder/src/test/java/de/metanome/algorithms/cfdfinder/utils/LhsUtilsTest.java", "identifier": "LhsUtilsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testGenerateLhsSupersetsDoesNotReturnAnythingIfAllAttributesAreAlreadyThere() {\n List<BitSet> results = LhsUtils.generateLhsSupersets(generateLhs(64, new int[] {\n 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, ...
{ "fields": [], "file": "CFDFinder/src/main/java/de/metanome/algorithms/cfdfinder/utils/LhsUtils.java", "identifier": "LhsUtils", "interfaces": "", "methods": [ { "class_method_signature": "LhsUtils.addSubsetsTo(FDTreeElement.InternalFunctionalDependency fd, Collection<FDTreeElement.InternalFunction...
{ "body": "public static List<BitSet> generateLhsSupersets(BitSet lhs, int numAttributes) {\n List<BitSet> results = new LinkedList<>();\n for (int i = 0; i < numAttributes; i += 1) {\n if (!lhs.get(i)) {\n BitSet superset = (BitSet) lhs.clone();\n superset.set(i...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_215
{ "fields": [ { "declarator": "algorithm", "modifier": "protected", "original_string": "protected Fun algorithm;", "type": "Fun", "var_name": "algorithm" } ], "file": "fun/fun_for_metanome/src/test/java/de/uni_potsdam/hpi/metanome/algorithms/fun/FunTest.java", "identifier":...
{ "body": "@Test \n\tpublic void testSetConfigurationValueStringRelationalInputGenerator() {\n\t\t// Setup\n\t\t// Expected values\n\t\tRelationalInputGenerator expectedInputGenerator = mock(RelationalInputGenerator.class);\n\t\t\n\t\t// Execute functionality\n algorithm.setRelationalInputConfigurationValue(Fu...
{ "fields": [ { "declarator": "INPUT_FILE_TAG = \"Relational Input\"", "modifier": "protected static final", "original_string": "protected static final String INPUT_FILE_TAG = \"Relational Input\";", "type": "String", "var_name": "INPUT_FILE_TAG" }, { "declarator": "inp...
{ "body": "@Override\n public void setRelationalInputConfigurationValue(String identifier, RelationalInputGenerator... values) {\n if (identifier.equals(INPUT_FILE_TAG)) {\n this.inputGenerator = values[0];\n }\n }", "class_method_signature": "Fun.setRelationalInputConfigurationValue(...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_235
{ "fields": [], "file": "CFDFinder/src/test/java/de/metanome/algorithms/cfdfinder/result/ResultTreeTest.java", "identifier": "ResultTreeTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testInsertNotPossibleForNonDescendants() {\n Result node = mockResult(mockFD(new int[]{0, 4, 7, 9}, 3));\n Result child = mockResult(mockFD(new int[]{4, 7, 9}, 3));\n Result offendingResult = mockResult(mockFD(new int[] {5, 7}, 3));\n\n ResultTree tree = n...
{ "fields": [ { "declarator": "node", "modifier": "private", "original_string": "private Result node;", "type": "Result", "var_name": "node" }, { "declarator": "children", "modifier": "private", "original_string": "private List<ResultTree> children;", ...
{ "body": "public boolean insert(Result result) {\n ResultTree parent = getInsertPosition(result);\n if (parent != null) {\n parent.getChildren().add(new ResultTree(result));\n return true;\n }\n return false;\n }", "class_method_signature": "ResultTree.insert(Re...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_84
{ "fields": [ { "declarator": "ANNOTATED = \"annotated\"", "modifier": "private static final", "original_string": "private static final String ANNOTATED = \"annotated\";", "type": "String", "var_name": "ANNOTATED" }, { "declarator": "NOT_ANNOTATED = \"notAnnotated\"", ...
{ "body": "@Test\n\tpublic void testGetInaccessible()\n\t\tthrows NoSuchFieldException {\n\t\tHelperClass obj = new HelperClass();\n\t\tField field = HelperClass.class.getDeclaredField(INACCESSIBLE);\n\t\tboolean inaccessible = true;\n\t\tobj.setInaccessible(inaccessible);\n\t\tassertThat(obj.getInaccessible()).isEqu...
{ "fields": [], "file": "HyMD/util/src/main/java/de/hpi/is/md/util/ReflectionUtils.java", "identifier": "ReflectionUtils", "interfaces": "", "methods": [ { "class_method_signature": "ReflectionUtils.accessible(A accessibleObject)", "constructor": false, "full_signature": "public static M...
{ "body": "@SuppressWarnings(\"unchecked\")\n\tpublic static <T> Optional<T> get(Field field, Object obj) {\n\t\ttry {\n\t\t\tT value = (T) field.get(obj);\n\t\t\treturn Optional.ofNullable(value);\n\t\t} catch (Exception e) {\n\t\t\treturn Optional.empty();\n\t\t}\n\t}", "class_method_signature": "ReflectionUtils....
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_92
{ "fields": [], "file": "HyMD/util/src/test/java/de/hpi/is/md/util/CastUtilsTest.java", "identifier": "CastUtilsTest", "interfaces": "", "superclass": "" }
{ "body": "@SuppressWarnings(\"unused\")\n\t@Test(expected = ClassCastException.class)\n\tpublic void testFailedCast() {\n\t\tObject obj = \"1\";\n\t\tInteger ignored = CastUtils.<Integer>as(obj);\n\t\tfail();\n\t}", "class_method_signature": "CastUtilsTest.testFailedCast()", "constructor": false, "full_signatu...
{ "fields": [], "file": "HyMD/util/src/main/java/de/hpi/is/md/util/CastUtils.java", "identifier": "CastUtils", "interfaces": "", "methods": [ { "class_method_signature": "CastUtils.as(Object obj)", "constructor": false, "full_signature": "public static T as(Object obj)", "identifie...
{ "body": "public static <T> T as(Object obj) {\n\t\treturn (T) obj;\n\t}", "class_method_signature": "CastUtils.as(Object obj)", "constructor": false, "full_signature": "public static T as(Object obj)", "identifier": "as", "invocations": [], "modifiers": "public static", "parameters": "(Object obj)", ...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_126
{ "fields": [], "file": "HyMD/util/src/test/java/de/hpi/is/md/util/IteratorUtilsTest.java", "identifier": "IteratorUtilsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void testNext() {\n\t\tList<Integer> list = Collections.singletonList(1);\n\t\tIterator<Integer> it = list.iterator();\n\t\tassertThat(IteratorUtils.next(it)).hasValue(1);\n\t\tassertThat(IteratorUtils.next(it)).isEmpty();\n\t}", "class_method_signature": "IteratorUtilsTest.testNext()", ...
{ "fields": [], "file": "HyMD/util/src/main/java/de/hpi/is/md/util/IteratorUtils.java", "identifier": "IteratorUtils", "interfaces": "", "methods": [ { "class_method_signature": "IteratorUtils.next(Iterator<T> it)", "constructor": false, "full_signature": "public static Optional<T> next(...
{ "body": "public static <T> Optional<T> next(Iterator<T> it) {\n\t\tif (it.hasNext()) {\n\t\t\tT entry = it.next();\n\t\t\treturn Optional.of(entry);\n\t\t}\n\t\treturn Optional.empty();\n\t}", "class_method_signature": "IteratorUtils.next(Iterator<T> it)", "constructor": false, "full_signature": "public stati...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_51
{ "fields": [], "file": "hydra/src/test/java/de/hpi/naumann/dc/helpers/ParserHelperTest.java", "identifier": "ParserHelperTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void testIsDouble() {\n\t\tassertTrue(ParserHelper.isDouble(\"1.0\"));\n\t\tassertFalse(ParserHelper.isDouble(\"Z2\"));\n\t}", "class_method_signature": "ParserHelperTest.testIsDouble()", "constructor": false, "full_signature": "@Test public void testIsDouble()", "identifier": "test...
{ "fields": [ { "declarator": "doublePattern", "modifier": "private final static", "original_string": "private final static Predicate<String> doublePattern;", "type": "Predicate<String>", "var_name": "doublePattern" } ], "file": "hydra/src/main/java/de/hpi/naumann/dc/helpers/...
{ "body": "public static boolean isDouble(String s) {\n\t\t// return false;\n\t\treturn s != null && doublePattern.test(s);\n\t}", "class_method_signature": "ParserHelper.isDouble(String s)", "constructor": false, "full_signature": "public static boolean isDouble(String s)", "identifier": "isDouble", "invoc...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_171
{ "fields": [], "file": "HyMD/hybrid/src/test/java/de/hpi/is/md/hybrid/impl/sampling/StatisticsTest.java", "identifier": "StatisticsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void testCount() {\n\t\tStatistics statistics = new Statistics();\n\t\tassertThat(statistics.getCount()).isEqualTo(0);\n\t\tstatistics.count();\n\t\tassertThat(statistics.getCount()).isEqualTo(1);\n\t}", "class_method_signature": "StatisticsTest.testCount()", "constructor": false, "fu...
{ "fields": [ { "declarator": "processed = 0", "modifier": "private", "original_string": "private int processed = 0;", "type": "int", "var_name": "processed" }, { "declarator": "count = 0", "modifier": "private", "original_string": "private int count = 0;", ...
{ "body": "void count() {\n\t\tcount++;\n\t}", "class_method_signature": "Statistics.count()", "constructor": false, "full_signature": " void count()", "identifier": "count", "invocations": [], "modifiers": "", "parameters": "()", "return": "void", "signature": "void count()", "testcase": false }
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_167
{ "fields": [ { "declarator": "col2", "modifier": "@Mock\n\tprivate", "original_string": "@Mock\n\tprivate PreprocessedColumnPair col2;", "type": "PreprocessedColumnPair", "var_name": "col2" }, { "declarator": "col1", "modifier": "@Mock\n\tprivate", "origina...
{ "body": "@Test\n\tpublic void testMultiple() {\n\t\tCollection<int[]> left = ImmutableList.<int[]>builder()\n\t\t\t.add(new int[]{0, 0})\n\t\t\t.build();\n\t\twhen(leftRecords.iterator()).thenReturn(left.iterator());\n\t\tSampler sampler = createSampler();\n\t\tdoReturn(Double.valueOf(1.0)).when(col1).getSimilarity...
{ "fields": [ { "declarator": "left", "modifier": "@NonNull\n\tprivate final", "original_string": "@NonNull\n\tprivate final Iterator<int[]> left;", "type": "Iterator<int[]>", "var_name": "left" }, { "declarator": "right", "modifier": "@NonNull\n\tprivate final", ...
{ "body": "@Timed\n\t@Override\n\tpublic Optional<Set<SimilaritySet>> sample() {\n\t\treturn IteratorUtils.next(left)\n\t\t\t.map(this::sample);\n\t}", "class_method_signature": "SamplerImpl.sample()", "constructor": false, "full_signature": "@Timed @Override public Optional<Set<SimilaritySet>> sample()", "id...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_188
{ "fields": [ { "declarator": "latticeMD", "modifier": "@Mock\n\tprivate", "original_string": "@Mock\n\tprivate LatticeMD latticeMD;", "type": "LatticeMD", "var_name": "latticeMD" } ], "file": "HyMD/hybrid/src/test/java/de/hpi/is/md/hybrid/impl/level/minimizing/CandidateBuild...
{ "body": "@Test\n\tpublic void testInvalid() {\n\t\tCandidateBuilder builder = new CandidateBuilder(0.7, new SimpleMinimizer());\n\t\tint columnPairs = 4;\n\t\twhen(latticeMD.getLhs()).thenReturn(new MDSiteImpl(columnPairs));\n\t\twhen(latticeMD.getRhs()).thenReturn(new MDSiteImpl(columnPairs).set(0, 0.6).set(1, 0.7...
{ "fields": [ { "declarator": "minThreshold", "modifier": "private final", "original_string": "private final double minThreshold;", "type": "double", "var_name": "minThreshold" }, { "declarator": "minimizer", "modifier": "@NonNull\n\tprivate final", "origina...
{ "body": "Collection<Candidate> toCandidates(Iterable<LatticeMD> latticeMDs) {\n\t\tCollection<IntermediateCandidate> preCandidates = toIntermediateCandidates(latticeMDs);\n\t\tCollection<Candidate> candidates = minimizer.toCandidates(preCandidates);\n\t\tcandidates.forEach(this::addToValidated);\n\t\treturn candida...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_10
{ "fields": [ { "declarator": "TABLE = 0", "modifier": "private static final", "original_string": "private static final int TABLE = 0;", "type": "int", "var_name": "TABLE" }, { "declarator": "gen = new CandidateGenerator()", "modifier": "", "original_string"...
{ "body": "@Test\n public void testCreateCombinedCandidatesTrinary() throws Exception {\n List<SimpleInd> inds = Arrays.asList(\n SimpleInd.left(TABLE, 0, 1).right(TABLE, 3, 4),\n SimpleInd.left(TABLE, 1, 2).right(TABLE, 4, 5),\n SimpleInd.left(TABLE, 0, 2).right...
{ "fields": [], "file": "FAIDA/FAIDAAlgorithm/src/main/java/de/hpi/mpss2015n/approxind/utils/CandidateGenerator.java", "identifier": "CandidateGenerator", "interfaces": "", "methods": [ { "class_method_signature": "CandidateGenerator.createCombinedCandidates(List<SimpleInd> inds, boolean isCombineNu...
{ "body": "public List<SimpleInd> createCombinedCandidates(List<SimpleInd> inds, boolean isCombineNull, AbstractColumnStore[] stores) {\n Map<SimpleColumnCombination, SimpleColumnCombination> columnCombinations = new HashMap<>();\n\n // Check that we are not merging NULL columns if this is not desired (...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_130
{ "fields": [], "file": "HyMD/util/src/test/java/de/hpi/is/md/util/CollectionUtilsTest.java", "identifier": "CollectionUtilsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void testAsSet() {\n\t\tIntSet set = mutableSingleton(1);\n\t\tassertThat(set).hasSize(1);\n\t\tassertThat(set).contains(1);\n\t\tset.add(2);\n\t\tassertThat(set).hasSize(2);\n\t\tassertThat(set).contains(1, 2);\n\t}", "class_method_signature": "CollectionUtilsTest.testAsSet()", "constr...
{ "fields": [ { "declarator": "CLUSTER_COMPARATOR = Comparator\n\t\t.comparingInt(Collection::size)", "modifier": "private static final", "original_string": "private static final Comparator<IntCollection> CLUSTER_COMPARATOR = Comparator\n\t\t.comparingInt(Collection::size);", "type": "Comp...
{ "body": "public static IntSet mutableSingleton(int i) {\n\t\tIntSet set = new IntOpenHashSet();\n\t\tset.add(i);\n\t\treturn set;\n\t}", "class_method_signature": "CollectionUtils.mutableSingleton(int i)", "constructor": false, "full_signature": "public static IntSet mutableSingleton(int i)", "identifier": ...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_47
{ "fields": [ { "declarator": "algorithm", "modifier": "", "original_string": "FdMine algorithm;", "type": "FdMine", "var_name": "algorithm" } ], "file": "fdmine/fdmine_algorithm/src/test/java/de/uni_potsdam/hpi/metanome/algorithms/fdmine/FdMineTest.java", "identifier": "Fd...
{ "body": "@Test\n public void testExecute() throws AlgorithmExecutionException {\n //Setup\n AlgorithmTestFixture fixture = new AlgorithmTestFixture();\n algorithm.setRelationalInputConfigurationValue(FdMine.INPUT_FILE_TAG, fixture.getInputGenerator());\n algorithm.setResultReceiver(fi...
{ "fields": [ { "declarator": "INPUT_FILE_TAG = \"Relational Input\"", "modifier": "protected static final", "original_string": "protected static final String INPUT_FILE_TAG = \"Relational Input\";", "type": "String", "var_name": "INPUT_FILE_TAG" }, { "declarator": "inp...
{ "body": "@Override\n public void execute() throws InputGenerationException, InputIterationException, CouldNotReceiveResultException, AlgorithmConfigurationException, ColumnNameMismatchException {\n RelationalInput input = inputGenerator.generateNewCopy();\n\n relationName = input.relationName();\n ...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_212
{ "fields": [], "file": "HyMD/demo/src/test/java/de/hpi/is/md/jcommander/JCommanderRunnerTest.java", "identifier": "JCommanderRunnerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void testRunWithoutRequired() {\n\t\tTestApplication app = new TestApplication();\n\t\tJCommanderRunner runner = createRunner(app);\n\t\trunner.run();\n\t\tassertThat(app.ran).isFalse();\n\t}", "class_method_signature": "JCommanderRunnerTest.testRunWithoutRequired()", "constructor": fal...
{ "fields": [ { "declarator": "app", "modifier": "@NonNull\n\tprivate final", "original_string": "@NonNull\n\tprivate final Application app;", "type": "Application", "var_name": "app" }, { "declarator": "jc", "modifier": "@NonNull\n\tprivate final", "origina...
{ "body": "public void run(String... args) {\n\t\tboolean success = parse(args);\n\t\tif (!success || needsHelp()) {\n\t\t\tprintUsage();\n\t\t\treturn;\n\t\t}\n\t\tapp.run();\n\t}", "class_method_signature": "JCommanderRunner.run(String... args)", "constructor": false, "full_signature": "public void run(String...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_245
{ "fields": [], "file": "CFDFinder/src/test/java/de/metanome/algorithms/cfdfinder/expansion/ConstantPatternExpansionStrategyTest.java", "identifier": "ConstantPatternExpansionStrategyTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testNullPatternGenerationAllSet() {\n ConstantPatternExpansionStrategy out = new ConstantPatternExpansionStrategy(new int[][] {});\n Pattern nullPattern = out.generateNullPattern(createAttributes(7, new int[] {0, 1, 2, 3, 4, 5, 6}));\n PatternEntry[] patternEntri...
{ "fields": [], "file": "CFDFinder/src/main/java/de/metanome/algorithms/cfdfinder/expansion/ConstantPatternExpansionStrategy.java", "identifier": "ConstantPatternExpansionStrategy", "interfaces": "", "methods": [ { "class_method_signature": "ConstantPatternExpansionStrategy.ConstantPatternExpansionS...
{ "body": "@Override\n public Pattern generateNullPattern(BitSet attributes) {\n Map<Integer, PatternEntry> allVariables = new HashMap<>();\n for (int i = attributes.nextSetBit(0); i >= 0; i = attributes.nextSetBit(i + 1)) {\n allVariables.put(Integer.valueOf(i), new VariablePatternEntry()...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_183
{ "fields": [ { "declarator": "validator", "modifier": "@Mock\n\tprivate", "original_string": "@Mock\n\tprivate Validator validator;", "type": "Validator", "var_name": "validator" }, { "declarator": "lowerer", "modifier": "@Mock\n\tprivate", "original_string...
{ "body": "@Test\n\tpublic void test() {\n\t\tint columnPairs = 4;\n\t\tCollection<Rhs> rhs = Arrays\n\t\t\t.asList(Rhs.builder().rhsAttr(0).threshold(1.0).lowerBound(0.0).build(),\n\t\t\t\tRhs.builder().rhsAttr(1).threshold(1.0).lowerBound(0.0).build());\n\t\tMDSite lhs = new MDSiteImpl(columnPairs);\n\t\tRhsResult ...
{ "fields": [ { "declarator": "validator", "modifier": "@NonNull\n\tprivate final", "original_string": "@NonNull\n\tprivate final Validator validator;", "type": "Validator", "var_name": "validator" }, { "declarator": "lhs", "modifier": "@NonNull\n\tprivate final",...
{ "body": "AnalyzeTask validate() {\n\t\tValidationResult results = validator.validate(lhs, rhs);\n\t\treturn new AnalyzeTask(results, lowerer);\n\t}", "class_method_signature": "ValidationTask.validate()", "constructor": false, "full_signature": " AnalyzeTask validate()", "identifier": "validate", "invocat...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_195
{ "fields": [], "file": "HyMD/hybrid/src/test/java/de/hpi/is/md/hybrid/impl/level/StatisticsTest.java", "identifier": "StatisticsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void testAdd() {\n\t\tStatistics statistics = new Statistics();\n\t\tstatistics.found();\n\t\tstatistics.invalid();\n\t\tstatistics.newDeduced();\n\t\tStatistics toAdd = new Statistics();\n\t\ttoAdd.found();\n\t\ttoAdd.found();\n\t\ttoAdd.invalid();\n\t\ttoAdd.validated();\n\t\ttoAdd.groupe...
{ "fields": [ { "declarator": "invalid = 0", "modifier": "private", "original_string": "private int invalid = 0;", "type": "int", "var_name": "invalid" }, { "declarator": "notSupported = 0", "modifier": "private", "original_string": "private int notSupported...
{ "body": "public void add(Statistics statistics) {\n\t\tthis.invalid += statistics.invalid;\n\t\tthis.notSupported += statistics.notSupported;\n\t\tthis.newDeduced += statistics.newDeduced;\n\t\tthis.found += statistics.found;\n\t\tthis.validated += statistics.validated;\n\t\tthis.groupedValidations += statistics.gr...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_204
{ "fields": [ { "declarator": "folder = new TemporaryFolder()", "modifier": "@Rule\n\tpublic final", "original_string": "@Rule\n\tpublic final TemporaryFolder folder = new TemporaryFolder();", "type": "TemporaryFolder", "var_name": "folder" } ], "file": "HyMD/core/src/test/ja...
{ "body": "@Test\n\tpublic void testWriteNull() throws IOException {\n\t\tFile file = folder.newFile();\n\t\ttry (FileResultWriter<String> resultWriter = new FileResultWriter<>(file)) {\n\t\t\tresultWriter.receiveResult(null);\n\t\t}\n\t\ttry (BufferedReader in = new BufferedReader(new FileReader(file))) {\n\t\t\tass...
{ "fields": [ { "declarator": "out", "modifier": "@NonNull\n\tprivate final", "original_string": "@NonNull\n\tprivate final PrintWriter out;", "type": "PrintWriter", "var_name": "out" } ], "file": "HyMD/core/src/main/java/de/hpi/is/md/impl/result/FileResultWriter.java", "id...
{ "body": "@Override\n\tpublic void receiveResult(T result) {\n\t\tout.println(result);\n\t\tout.flush();\n\t}", "class_method_signature": "FileResultWriter.receiveResult(T result)", "constructor": false, "full_signature": "@Override public void receiveResult(T result)", "identifier": "receiveResult", "invo...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_4
{ "fields": [ { "declarator": "SAMPLE_SIZE = 10", "modifier": "public static final", "original_string": "public static final int SAMPLE_SIZE = 10;", "type": "int", "var_name": "SAMPLE_SIZE" }, { "declarator": "rb = new RelationalInputBuilder(\"testTable\")", "modi...
{ "body": "@Test\n public void testGetLongRows() throws Exception {\n int count = 500_000;\n rb.setHeader(\"long_col\");\n for (int i = 0; i < count; i++) {\n rb.addRow(Integer.toString(i));\n }\n HashedColumnStore cs = createColumnStore(rb.build().generateNewCopy());\...
{ "fields": [ { "declarator": "columnFiles", "modifier": "private final", "original_string": "private final File[] columnFiles;", "type": "File[]", "var_name": "columnFiles" }, { "declarator": "isReuseColumnFiles", "modifier": "private final", "original_stri...
{ "body": "public ColumnIterator getRows(SimpleColumnCombination activeColumns) {\n FileInputStream[] in = new FileInputStream[activeColumns.getColumns().length];\n int i = 0;\n for (int col : activeColumns.getColumns()) {\n try {\n in[i++] = new FileInputStream(columnFi...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_21
{ "fields": [ { "declarator": "TABLE = 0", "modifier": "private static final", "original_string": "private static final int TABLE = 0;", "type": "int", "var_name": "TABLE" }, { "declarator": "algo", "modifier": "", "original_string": "FAIDACore algo;", ...
{ "body": "@Test\n public void testExecuteWdcPlanets2Col() throws Exception {\n algo = new FAIDACore(Arity.N_ARY, new IdentityRowSampler(), t, sampleGoal);\n RelationalInputGenerator[] inputs = new RelationalInputGenerator[1];\n String[] header = {\"Exaltation\", \"Fall\"};\n String tab...
{ "fields": [ { "declarator": "logger = LoggerFactory.getLogger(getClass())", "modifier": "private final", "original_string": "private final Logger logger = LoggerFactory.getLogger(getClass());", "type": "Logger", "var_name": "logger" }, { "declarator": "detectNary", ...
{ "body": "public List<SimpleInd> execute(RelationalInputGenerator[] fileInputGenerators,\n InclusionDependencyResultReceiver resultReceiver)\n throws InputGenerationException, InputIterationException, AlgorithmConfigurationException {\n\n // Probably for row scalab...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_156
{ "fields": [ { "declarator": "lattice", "modifier": "@Mock\n\tprivate", "original_string": "@Mock\n\tprivate Lattice lattice;", "type": "Lattice", "var_name": "lattice" }, { "declarator": "notSupported", "modifier": "@Mock\n\tprivate", "original_string": "@...
{ "body": "@Test\n\tpublic void testAddSupported() {\n\t\tFullLattice fullLattice = new FullLattice(lattice, notSupported);\n\t\tint columnPairs = 4;\n\t\tMDSite lhs = new MDSiteImpl(columnPairs).set(0, 0.5);\n\t\twhen(Boolean.valueOf(notSupported.containsMdOrGeneralization(lhs))).thenReturn(Boolean.FALSE);\n\t\tMD m...
{ "fields": [ { "declarator": "lattice", "modifier": "@NonNull\n\tprivate final", "original_string": "@NonNull\n\tprivate final Lattice lattice;", "type": "Lattice", "var_name": "lattice" }, { "declarator": "notSupported", "modifier": "@NonNull\n\tprivate final", ...
{ "body": "public Optional<LatticeMD> addIfMinimalAndSupported(MD md) {\n\t\tMDSite lhs = md.getLhs();\n\t\tif (notSupported.containsMdOrGeneralization(lhs)) {\n\t\t\treturn Optional.empty();\n\t\t}\n\t\treturn lattice.addIfMinimal(md);\n\t}", "class_method_signature": "FullLattice.addIfMinimalAndSupported(MD md)",...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_228
{ "fields": [], "file": "fun/fun_algorithm_helper/src/test/java/de/uni_potsdam/hpi/metanome/ma2013n2/algorithm_helper/data_structures/HoleFinderTest.java", "identifier": "HoleFinderTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testUpdateAllOther() {\n HoleFinder finder = new HoleFinder(5);\n\n ColumnCombinationBitset firstCombi = new ColumnCombinationBitset(1, 3, 4);\n finder.update(firstCombi);\n\n ColumnCombinationBitset nextCombi = new ColumnCombinationBitset(2, 3, 4);\n ...
{ "fields": [ { "declarator": "complementarySet", "modifier": "protected", "original_string": "protected Set<ColumnCombinationBitset> complementarySet;", "type": "Set<ColumnCombinationBitset>", "var_name": "complementarySet" }, { "declarator": "allBitsSet", "modif...
{ "body": "public void update(ColumnCombinationBitset maximalNegative) {\n ColumnCombinationBitset singleComplementMaxNegative = this.allBitsSet.minus(maximalNegative);\n\n if (this.complementarySet.size() == 0) {\n for (ColumnCombinationBitset combination : singleComplementMaxNegative.getCon...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_76
{ "fields": [], "file": "HyMD/util/src/test/java/de/hpi/is/md/util/OptionalDoubleTest.java", "identifier": "OptionalDoubleTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void testOf() {\n\t\tassertThat(OptionalDouble.of(2.0).boxed()).hasValue(2.0);\n\t}", "class_method_signature": "OptionalDoubleTest.testOf()", "constructor": false, "full_signature": "@Test public void testOf()", "identifier": "testOf", "invocations": [ "hasValue", "assert...
{ "fields": [ { "declarator": "EMPTY = new OptionalDouble()", "modifier": "private static final", "original_string": "private static final OptionalDouble EMPTY = new OptionalDouble();", "type": "OptionalDouble", "var_name": "EMPTY" }, { "declarator": "optional", "...
{ "body": "public static OptionalDouble of(double value) {\n\t\treturn new OptionalDouble(value);\n\t}", "class_method_signature": "OptionalDouble.of(double value)", "constructor": false, "full_signature": "public static OptionalDouble of(double value)", "identifier": "of", "invocations": [], "modifiers":...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_99
{ "fields": [], "file": "HyMD/util/src/test/java/de/hpi/is/md/util/OptionalsTest.java", "identifier": "OptionalsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void testOfCollection() {\n\t\tAssert.assertThat(Optionals.of(Arrays.asList(1, 2)), isPresentAnd(hasSize(2)));\n\t\tAssert.assertThat(Optionals.of(Arrays.asList(1, 2)), isPresentAnd(hasItems(1, 2)));\n\t}", "class_method_signature": "OptionalsTest.testOfCollection()", "constructor": fal...
{ "fields": [], "file": "HyMD/util/src/main/java/de/hpi/is/md/util/Optionals.java", "identifier": "Optionals", "interfaces": "", "methods": [ { "class_method_signature": "Optionals.of(Collection<T> collection)", "constructor": false, "full_signature": "public static Optional<Collection<T...
{ "body": "public static <T> Optional<Collection<T>> of(Collection<T> collection) {\n\t\treturn collection.isEmpty() ? Optional.empty() : Optional.of(collection);\n\t}", "class_method_signature": "Optionals.of(Collection<T> collection)", "constructor": false, "full_signature": "public static Optional<Collection...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_101
{ "fields": [], "file": "HyMD/util/src/test/java/de/hpi/is/md/util/OptionalsTest.java", "identifier": "OptionalsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void testStream() {\n\t\tassertThat(Optionals.stream(Optional.of(\"foo\")).count()).isEqualTo(1L);\n\t\tassertThat(Optionals.stream(Optional.of(\"foo\")).findFirst()).hasValue(\"foo\");\n\t}", "class_method_signature": "OptionalsTest.testStream()", "constructor": false, "full_signatur...
{ "fields": [], "file": "HyMD/util/src/main/java/de/hpi/is/md/util/Optionals.java", "identifier": "Optionals", "interfaces": "", "methods": [ { "class_method_signature": "Optionals.of(Collection<T> collection)", "constructor": false, "full_signature": "public static Optional<Collection<T...
{ "body": "public static <T> Stream<T> stream(Optional<T> optional) {\n\t\treturn optional.map(Stream::of)\n\t\t\t.orElseGet(Stream::empty);\n\t}", "class_method_signature": "Optionals.stream(Optional<T> optional)", "constructor": false, "full_signature": "public static Stream<T> stream(Optional<T> optional)", ...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_60
{ "fields": [ { "declarator": "csvFileFixture", "modifier": "protected", "original_string": "protected TestCsvFileFixture csvFileFixture;", "type": "TestCsvFileFixture", "var_name": "csvFileFixture" }, { "declarator": "testFile", "modifier": "protected", "or...
{ "body": "@Test\n public void testCreatePartitionFromLongtypeCustomComparator() {\n // Setup\n final Comparator<Long> longComparator = new Comparator<Long>() {\n @Override\n public int compare(final Long first, final Long second) {\n // inverse natural ordering\n return ComparisonChain...
{ "fields": [], "file": "ORDER/src/main/java/de/metanome/algorithms/order/sorting/partitions/SortedPartitionCreator.java", "identifier": "SortedPartitionCreator", "interfaces": "", "methods": [ { "class_method_signature": "SortedPartitionCreator.createPartition(final List<RowIndexedValue> data,\n ...
{ "body": "public static SortedPartition createPartition(final List<RowIndexedValue> data,\n final Datatype type) {\n final Comparator<RowIndexedValue> indexedComparator = type.getIndexedComparator();\n\n if (indexedComparator == null) {\n throw new IllegalStateException(\"Comparator could not be crea...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_117
{ "fields": [ { "declarator": "HASH_FUNCTION = Hashing.goodFastHash(10)", "modifier": "private static final", "original_string": "private static final HashFunction HASH_FUNCTION = Hashing.goodFastHash(10);", "type": "HashFunction", "var_name": "HASH_FUNCTION" } ], "file": "Hy...
{ "body": "@Test\n\tpublic void testPutInt() {\n\t\tassertThat(Hasher.of(HASH_FUNCTION).putInt(0).putInt(1).hash())\n\t\t\t.isEqualTo(HASH_FUNCTION.newHasher().putInt(0).putInt(1).hash());\n\t}", "class_method_signature": "HasherTest.testPutInt()", "constructor": false, "full_signature": "@Test public void test...
{ "fields": [ { "declarator": "hasher", "modifier": "private final", "original_string": "private final com.google.common.hash.Hasher hasher;", "type": "com.google.common.hash.Hasher", "var_name": "hasher" } ], "file": "HyMD/util/src/main/java/de/hpi/is/md/util/Hasher.java", ...
{ "body": "public Hasher putInt(int i) {\n\t\thasher.putInt(i);\n\t\treturn this;\n\t}", "class_method_signature": "Hasher.putInt(int i)", "constructor": false, "full_signature": "public Hasher putInt(int i)", "identifier": "putInt", "invocations": [ "putInt" ], "modifiers": "public", "parameters"...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_37
{ "fields": [ { "declarator": "ducc", "modifier": "protected", "original_string": "protected Ducc ducc;", "type": "Ducc", "var_name": "ducc" } ], "file": "ducc/ducc_for_metanome/src/test/java/de/metanome/algorithms/ducc/DuccTest.java", "identifier": "DuccTest", "interface...
{ "body": "@Test\n public void testGetConfigurationRequirements() {\n ConfigurationRequirementRelationalInput\n expectedSpecification1 =\n new ConfigurationRequirementRelationalInput(Ducc.INPUT_HANDLE);\n\n ConfigurationRequirementBoolean\n expectedSpecification2 =\n new Configurati...
{ "fields": [ { "declarator": "INPUT_HANDLE = \"Relational Input\"", "modifier": "protected static final", "original_string": "protected static final String INPUT_HANDLE = \"Relational Input\";", "type": "String", "var_name": "INPUT_HANDLE" }, { "declarator": "NULL_EQUA...
{ "body": "@Override\n public ArrayList<ConfigurationRequirement<?>> getConfigurationRequirements() {\n ArrayList<ConfigurationRequirement<?>> spec = new ArrayList<>();\n ConfigurationRequirementRelationalInput input = new ConfigurationRequirementRelationalInput(INPUT_HANDLE);\n spec.add(input);\n\n Conf...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_140
{ "fields": [ { "declarator": "A = Column.of(\"a\", String.class)", "modifier": "private static final", "original_string": "private static final Column<String> A = Column.of(\"a\", String.class);", "type": "Column<String>", "var_name": "A" }, { "declarator": "B = Column...
{ "body": "@Test\n\tpublic void testWrongType() {\n\t\tRow row = createRow();\n\t\tColumn<String> wrongB = Column.of(\"b\", String.class);\n\t\tassertThat(row.get(wrongB)).isEmpty();\n\t}", "class_method_signature": "RowImplTest.testWrongType()", "constructor": false, "full_signature": "@Test public void testWr...
{ "fields": [ { "declarator": "values", "modifier": "private final", "original_string": "private final BetterMap<Column<?>, Object> values;", "type": "BetterMap<Column<?>, Object>", "var_name": "values" } ], "file": "HyMD/db/src/main/java/de/hpi/is/md/relational/RowImpl.java"...
{ "body": "@Override\n\tpublic <T> Optional<T> get(Column<T> column) {\n\t\treturn values.get(column)\n\t\t\t.map(CastUtils::as);\n\t}", "class_method_signature": "RowImpl.get(Column<T> column)", "constructor": false, "full_signature": "@Override public Optional<T> get(Column<T> column)", "identifier": "get",...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_137
{ "fields": [], "file": "HyMD/util/src/test/java/de/hpi/is/md/util/CollectionUtilsTest.java", "identifier": "CollectionUtilsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void testMerge() {\n\t\tIntSet set1 = mutableSingleton(1);\n\t\tIntSet set2 = mutableSingleton(2);\n\t\tIntSet merged = merge(set1, set2);\n\t\tassertThat(merged).hasSize(2);\n\t\tassertThat(merged).contains(1, 2);\n\t\tset1.add(3);\n\t\tassertThat(set1).hasSize(3);\n\t\tassertThat(set1).co...
{ "fields": [ { "declarator": "CLUSTER_COMPARATOR = Comparator\n\t\t.comparingInt(Collection::size)", "modifier": "private static final", "original_string": "private static final Comparator<IntCollection> CLUSTER_COMPARATOR = Comparator\n\t\t.comparingInt(Collection::size);", "type": "Comp...
{ "body": "public static IntSet merge(IntSet left, IntCollection right) {\n\t\tleft.addAll(right);\n\t\treturn left;\n\t}", "class_method_signature": "CollectionUtils.merge(IntSet left, IntCollection right)", "constructor": false, "full_signature": "public static IntSet merge(IntSet left, IntCollection right)",...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_40
{ "fields": [ { "declarator": "ducc", "modifier": "protected", "original_string": "protected Ducc ducc;", "type": "Ducc", "var_name": "ducc" } ], "file": "ducc/ducc_for_metanome/src/test/java/de/metanome/algorithms/ducc/DuccTest.java", "identifier": "DuccTest", "interface...
{ "body": "@Test\n public void testSetConfigurationValueStringSimpleRelationalInputGeneratorFail()\n throws AlgorithmConfigurationException {\n RelationalInputGenerator expectedInputGenerator = mock(RelationalInputGenerator.class);\n try {\n ducc.setRelationalInputConfigurationValue(\"wrong identifie...
{ "fields": [ { "declarator": "INPUT_HANDLE = \"Relational Input\"", "modifier": "protected static final", "original_string": "protected static final String INPUT_HANDLE = \"Relational Input\";", "type": "String", "var_name": "INPUT_HANDLE" }, { "declarator": "NULL_EQUA...
{ "body": "@Override\n public void setRelationalInputConfigurationValue(String identifier, RelationalInputGenerator... values)\n throws AlgorithmConfigurationException {\n if (identifier.equals(INPUT_HANDLE)) {\n inputGenerator = values[0];\n } else {\n throw new AlgorithmConfigurationException(...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_160
{ "fields": [ { "declarator": "lattice", "modifier": "@Mock\n\tprivate", "original_string": "@Mock\n\tprivate Lattice lattice;", "type": "Lattice", "var_name": "lattice" }, { "declarator": "notSupported", "modifier": "@Mock\n\tprivate", "original_string": "@...
{ "body": "@Test\n\tpublic void testMarkNotSupported() {\n\t\tFullLattice fullLattice = new FullLattice(lattice, notSupported);\n\t\tint columnPairs = 4;\n\t\tMDSite lhs = new MDSiteImpl(columnPairs).set(0, 0.5);\n\t\tfullLattice.markNotSupported(lhs);\n\t\tverify(notSupported).addIfMinimal(lhs);\n\t}", "class_meth...
{ "fields": [ { "declarator": "lattice", "modifier": "@NonNull\n\tprivate final", "original_string": "@NonNull\n\tprivate final Lattice lattice;", "type": "Lattice", "var_name": "lattice" }, { "declarator": "notSupported", "modifier": "@NonNull\n\tprivate final", ...
{ "body": "public void markNotSupported(MDSite lhs) {\n\t\tnotSupported.addIfMinimal(lhs);\n\t}", "class_method_signature": "FullLattice.markNotSupported(MDSite lhs)", "constructor": false, "full_signature": "public void markNotSupported(MDSite lhs)", "identifier": "markNotSupported", "invocations": [ "...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_17
{ "fields": [ { "declarator": "TABLE = 0", "modifier": "private static final", "original_string": "private static final int TABLE = 0;", "type": "int", "var_name": "TABLE" }, { "declarator": "algo", "modifier": "", "original_string": "FAIDACore algo;", ...
{ "body": "@Ignore\n @Test\n public void testExecute() throws Exception {\n algo = new FAIDACore(Arity.UNARY, new IdentityRowSampler(), t, sampleGoal);\n RelationalInputGenerator[] inputs = new RelationalInputGenerator[1];\n String[] header = {\"c0\", \"c1\", \"c2\"};\n String tableN...
{ "fields": [ { "declarator": "logger = LoggerFactory.getLogger(getClass())", "modifier": "private final", "original_string": "private final Logger logger = LoggerFactory.getLogger(getClass());", "type": "Logger", "var_name": "logger" }, { "declarator": "detectNary", ...
{ "body": "public List<SimpleInd> execute(RelationalInputGenerator[] fileInputGenerators,\n InclusionDependencyResultReceiver resultReceiver)\n throws InputGenerationException, InputIterationException, AlgorithmConfigurationException {\n\n // Probably for row scalab...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_249
{ "fields": [], "file": "DVSuperLogLog/src/test/java/de/metanome/algorithms/dvsuperloglog/DVSuperLogLogTest.java", "identifier": "DVSuperLogLogTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testGetConfigurationRequirements() {\n }", "class_method_signature": "DVSuperLogLogTest.testGetConfigurationRequirements()", "constructor": false, "full_signature": "@Test public void testGetConfigurationRequirements()", "identifier": "testGetConfigurationRequirements", "inv...
{ "fields": [], "file": "DVSuperLogLog/src/main/java/de/metanome/algorithms/dvsuperloglog/DVSuperLogLog.java", "identifier": "DVSuperLogLog", "interfaces": "implements BasicStatisticsAlgorithm, RelationalInputParameterAlgorithm, StringParameterAlgorithm", "methods": [ { "class_method_signature": "DV...
{ "body": "@Override\n\tpublic ArrayList<ConfigurationRequirement<?>> getConfigurationRequirements() {\n\t\tArrayList<ConfigurationRequirement<?>> conf = new ArrayList<>();\n\t\tconf.add(new ConfigurationRequirementRelationalInput(DVSuperLogLog.Identifier.INPUT_GENERATOR.name()));\n\t\tConfigurationRequirementString ...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_176
{ "fields": [ { "declarator": "A = Column.of(\"a\", String.class)", "modifier": "private static final", "original_string": "private static final Column<String> A = Column.of(\"a\", String.class);", "type": "Column<String>", "var_name": "A" }, { "declarator": "B = Column...
{ "body": "@Test\n\tpublic void testIndexOf() {\n\t\tmock();\n\t\tCompressedRelation compressed = compress();\n\t\tassertThat(compressed.indexOf(A)).isEqualTo(0);\n\t\tassertThat(compressed.indexOf(B)).isEqualTo(1);\n\t}", "class_method_signature": "CompressorTest.testIndexOf()", "constructor": false, "full_sig...
{ "fields": [ { "declarator": "columnCompressors", "modifier": "@NonNull\n\tprivate final", "original_string": "@NonNull\n\tprivate final Collection<ColumnCompressor<?>> columnCompressors;", "type": "Collection<ColumnCompressor<?>>", "var_name": "columnCompressors" }, { ...
{ "body": "CompressedRelation compress(Iterable<Row> input) {\n\t\tinput.forEach(this::add);\n\t\treturn toRelation();\n\t}", "class_method_signature": "Compressor.compress(Iterable<Row> input)", "constructor": false, "full_signature": " CompressedRelation compress(Iterable<Row> input)", "identifier": "compre...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_199
{ "fields": [], "file": "HyMD/hybrid/src/test/java/de/hpi/is/md/hybrid/impl/level/StatisticsTest.java", "identifier": "StatisticsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void testNewDeduced() {\n\t\tStatistics statistics = new Statistics();\n\t\tassertThat(statistics.getNewDeduced()).isEqualTo(0);\n\t\tstatistics.newDeduced();\n\t\tassertThat(statistics.getNewDeduced()).isEqualTo(1);\n\t}", "class_method_signature": "StatisticsTest.testNewDeduced()", "c...
{ "fields": [ { "declarator": "invalid = 0", "modifier": "private", "original_string": "private int invalid = 0;", "type": "int", "var_name": "invalid" }, { "declarator": "notSupported = 0", "modifier": "private", "original_string": "private int notSupported...
{ "body": "public void newDeduced() {\n\t\tnewDeduced++;\n\t}", "class_method_signature": "Statistics.newDeduced()", "constructor": false, "full_signature": "public void newDeduced()", "identifier": "newDeduced", "invocations": [], "modifiers": "public", "parameters": "()", "return": "void", "signat...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_121
{ "fields": [ { "declarator": "metaData", "modifier": "@Mock\n\tprivate", "original_string": "@Mock\n\tprivate ResultSetMetaData metaData;", "type": "ResultSetMetaData", "var_name": "metaData" } ], "file": "HyMD/util/src/test/java/de/hpi/is/md/util/JdbcUtilsTest.java", "ide...
{ "body": "@Test\n\tpublic void testGetColumnClass() throws SQLException {\n\t\tString notExistingClassName = \"foo.bar.MyClass\";\n\t\tdoReturn(String.class.getName()).when(metaData).getColumnClassName(0);\n\t\tdoReturn(notExistingClassName).when(metaData).getColumnClassName(1);\n\t\tassertThat(JdbcUtils.getColumnCl...
{ "fields": [], "file": "HyMD/util/src/main/java/de/hpi/is/md/util/JdbcUtils.java", "identifier": "JdbcUtils", "interfaces": "", "methods": [ { "class_method_signature": "JdbcUtils.getColumnClass(ResultSetMetaData metaData, int column)", "constructor": false, "full_signature": "public st...
{ "body": "public static Optional<Class<?>> getColumnClass(ResultSetMetaData metaData, int column)\n\t\tthrows SQLException {\n\t\tString className = metaData.getColumnClassName(column);\n\t\ttry {\n\t\t\tClass<?> clazz = Class.forName(className);\n\t\t\treturn Optional.of(clazz);\n\t\t} catch (ClassNotFoundException...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_8
{ "fields": [ { "declarator": "SAMPLE_SIZE = 10", "modifier": "public static final", "original_string": "public static final int SAMPLE_SIZE = 10;", "type": "int", "var_name": "SAMPLE_SIZE" }, { "declarator": "rb = new RelationalInputBuilder(\"testTable\")", "modi...
{ "body": "@Test\n public void testGetLongRows() throws Exception {\n int count = 500_000;\n rb.setHeader(\"long_col\");\n for (int i = 0; i < count; i++) {\n rb.addRow(Integer.toString(i));\n }\n VirtualColumnStore cs = createColumnStore(rb.build());\n ColumnIt...
{ "fields": [ { "declarator": "inputGenerator", "modifier": "private final", "original_string": "private final RelationalInputGenerator inputGenerator;", "type": "RelationalInputGenerator", "var_name": "inputGenerator" }, { "declarator": "isCloseConnectionsRigorously", ...
{ "body": "public ColumnIterator getRows(SimpleColumnCombination activeColumns) {\n this.initHashCaches();\n\n try {\n return new VirtualColumnStore.ColumnIterator(this.inputGenerator.generateNewCopy(), activeColumns);\n } catch (Exception e) {\n throw new RuntimeException(e...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_56
{ "fields": [], "file": "DVMinCount/src/test/java/de/metanome/algorithms/dvmincount/DVMinCountTest.java", "identifier": "DVMinCountTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testExecute() {\n }", "class_method_signature": "DVMinCountTest.testExecute()", "constructor": false, "full_signature": "@Test public void testExecute()", "identifier": "testExecute", "invocations": [], "modifiers": "@Test public", "parameters": "()", "return": "void",...
{ "fields": [], "file": "DVMinCount/src/main/java/de/metanome/algorithms/dvmincount/DVMinCount.java", "identifier": "DVMinCount", "interfaces": "implements BasicStatisticsAlgorithm, RelationalInputParameterAlgorithm, StringParameterAlgorithm", "methods": [ { "class_method_signature": "DVMinCount.get...
{ "body": "@Override\n\tpublic void execute() throws AlgorithmExecutionException {\n\t\tsuper.execute();\n\t}", "class_method_signature": "DVMinCount.execute()", "constructor": false, "full_signature": "@Override public void execute()", "identifier": "execute", "invocations": [ "execute" ], "modifie...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_208
{ "fields": [ { "declarator": "A = Column.of(\"a\", Integer.class)", "modifier": "private static final", "original_string": "private static final Column<Integer> A = Column.of(\"a\", Integer.class);", "type": "Column<Integer>", "var_name": "A" }, { "declarator": "B = Co...
{ "body": "@Test\n\tpublic void testSingleRelation() {\n\t\tSchemaMapper schemaMapper = new TypeSchemaMapper();\n\t\tList<Column<?>> columns = Arrays.asList(A, B, C);\n\t\tSchema schema = Schema.of(columns);\n\t\twhen(relation.getSchema()).thenReturn(schema);\n\t\tCollection<ColumnPair<?>> mapping = schemaMapper.crea...
{ "fields": [], "file": "HyMD/mapping/src/main/java/de/hpi/is/md/mapping/impl/TypeSchemaMapper.java", "identifier": "TypeSchemaMapper", "interfaces": "implements SchemaMapper", "methods": [ { "class_method_signature": "TypeSchemaMapper.create(Iterable<Column<?>> columns1,\n\t\tIterable<Column<?>> co...
{ "body": "private static Collection<ColumnPair<?>> create(Iterable<Column<?>> columns1,\n\t\tIterable<Column<?>> columns2) {\n\t\treturn StreamUtils.seq(columns1).crossJoin(columns2)\n\t\t\t.map(t -> t.map(SchemaMapperHelper::toPair))\n\t\t\t.flatMap(Optionals::stream)\n\t\t\t.collect(Collectors.toList());\n\t}", ...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_95
{ "fields": [], "file": "HyMD/util/src/test/java/de/hpi/is/md/util/ObjectUtilsTest.java", "identifier": "ObjectUtilsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void testBothNull() {\n\t\tassertThat(ObjectUtils.bothNull(null, null)).isTrue();\n\t\tassertThat(ObjectUtils.bothNull(\"\", null)).isFalse();\n\t\tassertThat(ObjectUtils.bothNull(null, \"\")).isFalse();\n\t\tassertThat(ObjectUtils.bothNull(\"\", \"\")).isFalse();\n\t}", "class_method_sig...
{ "fields": [], "file": "HyMD/util/src/main/java/de/hpi/is/md/util/ObjectUtils.java", "identifier": "ObjectUtils", "interfaces": "", "methods": [ { "class_method_signature": "ObjectUtils.bothNull(Object obj1, Object obj2)", "constructor": false, "full_signature": "public static boolean b...
{ "body": "public static boolean bothNull(Object obj1, Object obj2) {\n\t\treturn obj1 == null && obj2 == null;\n\t}", "class_method_signature": "ObjectUtils.bothNull(Object obj1, Object obj2)", "constructor": false, "full_signature": "public static boolean bothNull(Object obj1, Object obj2)", "identifier": "...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_83
{ "fields": [ { "declarator": "ANNOTATED = \"annotated\"", "modifier": "private static final", "original_string": "private static final String ANNOTATED = \"annotated\";", "type": "String", "var_name": "ANNOTATED" }, { "declarator": "NOT_ANNOTATED = \"notAnnotated\"", ...
{ "body": "@Test\n\tpublic void testGetDefaultValueNoDefault() {\n\t\tassertThat(ReflectionUtils.getDefaultValue(HelperAnnotation.class, \"noDefault\")).isEmpty();\n\t}", "class_method_signature": "ReflectionUtilsTest.testGetDefaultValueNoDefault()", "constructor": false, "full_signature": "@Test public void te...
{ "fields": [], "file": "HyMD/util/src/main/java/de/hpi/is/md/util/ReflectionUtils.java", "identifier": "ReflectionUtils", "interfaces": "", "methods": [ { "class_method_signature": "ReflectionUtils.accessible(A accessibleObject)", "constructor": false, "full_signature": "public static M...
{ "body": "public static <T> Optional<T> getDefaultValue(Class<? extends Annotation> annotation,\n\t\tString property) {\n\t\ttry {\n\t\t\tObject defaultValue = annotation.getDeclaredMethod(property).getDefaultValue();\n\t\t\treturn Optional.ofNullable(defaultValue)\n\t\t\t\t.map(CastUtils::as);\n\t\t} catch (NoSuchM...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_232
{ "fields": [], "file": "MvdDet/src/test/java/de/metanome/algorithms/mvddet/MvDDetectorTest.java", "identifier": "MvDDetectorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testGetConfigurationRequirements() {\n }", "class_method_signature": "MvDDetectorTest.testGetConfigurationRequirements()", "constructor": false, "full_signature": "@Test public void testGetConfigurationRequirements()", "identifier": "testGetConfigurationRequirements", "invoc...
{ "fields": [ { "declarator": "algorithmConfig = new MvDAlgorithmConfig()", "modifier": "private", "original_string": "private MvDAlgorithmConfig algorithmConfig = new MvDAlgorithmConfig();", "type": "MvDAlgorithmConfig", "var_name": "algorithmConfig" } ], "file": "MvdDet/src...
{ "body": "@Override\n\tpublic ArrayList<ConfigurationRequirement<?>> getConfigurationRequirements() { // Tells Metanome which and how many parameters the algorithm needs\n\t\tArrayList<ConfigurationRequirement<?>> conf = new ArrayList<>();\n\t\tconf.add(new ConfigurationRequirementRelationalInput(MvDDetector.Identif...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_233
{ "fields": [], "file": "MvdDet/src/test/java/de/metanome/algorithms/mvddet/MvDDetectorTest.java", "identifier": "MvDDetectorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testExecute() {\n }", "class_method_signature": "MvDDetectorTest.testExecute()", "constructor": false, "full_signature": "@Test public void testExecute()", "identifier": "testExecute", "invocations": [], "modifiers": "@Test public", "parameters": "()", "return": "void"...
{ "fields": [ { "declarator": "algorithmConfig = new MvDAlgorithmConfig()", "modifier": "private", "original_string": "private MvDAlgorithmConfig algorithmConfig = new MvDAlgorithmConfig();", "type": "MvDAlgorithmConfig", "var_name": "algorithmConfig" } ], "file": "MvdDet/src...
{ "body": "@Override\n\tpublic void execute() throws AlgorithmExecutionException {\n\t\tsuper.algorithmConfig = this.algorithmConfig;\n\t\tsuper.execute();\n\t}", "class_method_signature": "MvDDetector.execute()", "constructor": false, "full_signature": "@Override public void execute()", "identifier": "execut...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_82
{ "fields": [ { "declarator": "ANNOTATED = \"annotated\"", "modifier": "private static final", "original_string": "private static final String ANNOTATED = \"annotated\";", "type": "String", "var_name": "ANNOTATED" }, { "declarator": "NOT_ANNOTATED = \"notAnnotated\"", ...
{ "body": "@Test\n\tpublic void testGetDefaultValueMissing() {\n\t\tassertThat(ReflectionUtils.getDefaultValue(HelperAnnotation.class, \"missing\")).isEmpty();\n\t}", "class_method_signature": "ReflectionUtilsTest.testGetDefaultValueMissing()", "constructor": false, "full_signature": "@Test public void testGetD...
{ "fields": [], "file": "HyMD/util/src/main/java/de/hpi/is/md/util/ReflectionUtils.java", "identifier": "ReflectionUtils", "interfaces": "", "methods": [ { "class_method_signature": "ReflectionUtils.accessible(A accessibleObject)", "constructor": false, "full_signature": "public static M...
{ "body": "public static <T> Optional<T> getDefaultValue(Class<? extends Annotation> annotation,\n\t\tString property) {\n\t\ttry {\n\t\t\tObject defaultValue = annotation.getDeclaredMethod(property).getDefaultValue();\n\t\t\treturn Optional.ofNullable(defaultValue)\n\t\t\t\t.map(CastUtils::as);\n\t\t} catch (NoSuchM...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_94
{ "fields": [], "file": "HyMD/util/src/test/java/de/hpi/is/md/util/UnorderedPairTest.java", "identifier": "UnorderedPairTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void testNotEquals() {\n\t\tassertThat(UnorderedPair.of(1, 2)).isNotEqualTo(UnorderedPair.of(1, 3));\n\t}", "class_method_signature": "UnorderedPairTest.testNotEquals()", "constructor": false, "full_signature": "@Test public void testNotEquals()", "identifier": "testNotEquals", "i...
{ "fields": [ { "declarator": "pair", "modifier": "@NonNull\n\tprivate final", "original_string": "@NonNull\n\tprivate final Set<T> pair;", "type": "Set<T>", "var_name": "pair" } ], "file": "HyMD/util/src/main/java/de/hpi/is/md/util/UnorderedPair.java", "identifier": "Unord...
{ "body": "public static <T> UnorderedPair<T> of(T value1, T value2) {\n\t\tSet<T> set = ImmutableSet.of(value1, value2);\n\t\treturn new UnorderedPair<>(set);\n\t}", "class_method_signature": "UnorderedPair.of(T value1, T value2)", "constructor": false, "full_signature": "public static UnorderedPair<T> of(T va...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_209
{ "fields": [ { "declarator": "A = Column.of(\"a\", Integer.class)", "modifier": "private static final", "original_string": "private static final Column<Integer> A = Column.of(\"a\", Integer.class);", "type": "Column<Integer>", "var_name": "A" }, { "declarator": "B = Co...
{ "body": "@Test\n\tpublic void testTwoRelations() {\n\t\tSchemaMapper schemaMapper = new TypeSchemaMapper();\n\t\tList<Column<?>> columns = Arrays.asList(A, B, C);\n\t\tSchema schema = Schema.of(columns);\n\t\twhen(relation.getSchema()).thenReturn(schema);\n\t\tCollection<ColumnPair<?>> mapping = schemaMapper.create...
{ "fields": [], "file": "HyMD/mapping/src/main/java/de/hpi/is/md/mapping/impl/TypeSchemaMapper.java", "identifier": "TypeSchemaMapper", "interfaces": "implements SchemaMapper", "methods": [ { "class_method_signature": "TypeSchemaMapper.create(Iterable<Column<?>> columns1,\n\t\tIterable<Column<?>> co...
{ "body": "private static Collection<ColumnPair<?>> create(Iterable<Column<?>> columns1,\n\t\tIterable<Column<?>> columns2) {\n\t\treturn StreamUtils.seq(columns1).crossJoin(columns2)\n\t\t\t.map(t -> t.map(SchemaMapperHelper::toPair))\n\t\t\t.flatMap(Optionals::stream)\n\t\t\t.collect(Collectors.toList());\n\t}", ...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_120
{ "fields": [ { "declarator": "HASH_FUNCTION = Hashing.goodFastHash(10)", "modifier": "private static final", "original_string": "private static final HashFunction HASH_FUNCTION = Hashing.goodFastHash(10);", "type": "HashFunction", "var_name": "HASH_FUNCTION" } ], "file": "Hy...
{ "body": "@Test\n\tpublic void testPutUnencodedChars() {\n\t\tassertThat(Hasher.of(HASH_FUNCTION)\n\t\t\t\t.putUnencodedChars(\"foo\")\n\t\t\t\t.putUnencodedChars(\"bar\")\n\t\t\t.hash()).isEqualTo(\n\t\t\tHASH_FUNCTION.newHasher().putUnencodedChars(\"foo\").putUnencodedChars(\"bar\").hash());\n\t}", "class_method...
{ "fields": [ { "declarator": "hasher", "modifier": "private final", "original_string": "private final com.google.common.hash.Hasher hasher;", "type": "com.google.common.hash.Hasher", "var_name": "hasher" } ], "file": "HyMD/util/src/main/java/de/hpi/is/md/util/Hasher.java", ...
{ "body": "public Hasher putUnencodedChars(CharSequence charSequence) {\n\t\tOptional.ofNullable(charSequence)\n\t\t\t.ifPresent(hasher::putUnencodedChars);\n\t\treturn this;\n\t}", "class_method_signature": "Hasher.putUnencodedChars(CharSequence charSequence)", "constructor": false, "full_signature": "public H...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_57
{ "fields": [], "file": "DVFM/src/test/java/de/metanome/algorithms/dvfm/DVFMTest.java", "identifier": "DVFMTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testGetConfigurationRequirements() {\n }", "class_method_signature": "DVFMTest.testGetConfigurationRequirements()", "constructor": false, "full_signature": "@Test public void testGetConfigurationRequirements()", "identifier": "testGetConfigurationRequirements", "invocations"...
{ "fields": [], "file": "DVFM/src/main/java/de/metanome/algorithms/dvfm/DVFM.java", "identifier": "DVFM", "interfaces": "implements BasicStatisticsAlgorithm, RelationalInputParameterAlgorithm, StringParameterAlgorithm", "methods": [ { "class_method_signature": "DVFM.getConfigurationRequirements()", ...
{ "body": "@Override\n\tpublic ArrayList<ConfigurationRequirement<?>> getConfigurationRequirements() {\n\t\tArrayList<ConfigurationRequirement<?>> conf = new ArrayList<>();\n\t\tconf.add(new ConfigurationRequirementRelationalInput(DVFM.Identifier.INPUT_GENERATOR.name()));\n\t\tConfigurationRequirementString inputstan...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_9
{ "fields": [ { "declarator": "TABLE = 0", "modifier": "private static final", "original_string": "private static final int TABLE = 0;", "type": "int", "var_name": "TABLE" }, { "declarator": "gen = new CandidateGenerator()", "modifier": "", "original_string"...
{ "body": "@Test\n public void testCreateCombinedCandidatesBinary() throws Exception {\n List<SimpleInd> candidates = gen.createCombinedCandidates(Arrays.asList(\n SimpleInd.left(TABLE, 0).right(TABLE, 3),\n SimpleInd.left(TABLE, 1).right(TABLE, 4)\n ), true, null);\n\n ...
{ "fields": [], "file": "FAIDA/FAIDAAlgorithm/src/main/java/de/hpi/mpss2015n/approxind/utils/CandidateGenerator.java", "identifier": "CandidateGenerator", "interfaces": "", "methods": [ { "class_method_signature": "CandidateGenerator.createCombinedCandidates(List<SimpleInd> inds, boolean isCombineNu...
{ "body": "public List<SimpleInd> createCombinedCandidates(List<SimpleInd> inds, boolean isCombineNull, AbstractColumnStore[] stores) {\n Map<SimpleColumnCombination, SimpleColumnCombination> columnCombinations = new HashMap<>();\n\n // Check that we are not merging NULL columns if this is not desired (...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_177
{ "fields": [ { "declarator": "A = Column.of(\"a\", String.class)", "modifier": "private static final", "original_string": "private static final Column<String> A = Column.of(\"a\", String.class);", "type": "Column<String>", "var_name": "A" }, { "declarator": "B = Column...
{ "body": "@Test(expected = RuntimeException.class)\n\tpublic void testInputCloseException() throws InputCloseException {\n\t\tdoThrow(InputCloseException.class).when(input).close();\n\t\tmock();\n\t\tcompress();\n\t\tfail();\n\t}", "class_method_signature": "CompressorTest.testInputCloseException()", "constructo...
{ "fields": [ { "declarator": "columnCompressors", "modifier": "@NonNull\n\tprivate final", "original_string": "@NonNull\n\tprivate final Collection<ColumnCompressor<?>> columnCompressors;", "type": "Collection<ColumnCompressor<?>>", "var_name": "columnCompressors" }, { ...
{ "body": "CompressedRelation compress(Iterable<Row> input) {\n\t\tinput.forEach(this::add);\n\t\treturn toRelation();\n\t}", "class_method_signature": "Compressor.compress(Iterable<Row> input)", "constructor": false, "full_signature": " CompressedRelation compress(Iterable<Row> input)", "identifier": "compre...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_198
{ "fields": [], "file": "HyMD/hybrid/src/test/java/de/hpi/is/md/hybrid/impl/level/StatisticsTest.java", "identifier": "StatisticsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void testInvalid() {\n\t\tStatistics statistics = new Statistics();\n\t\tassertThat(statistics.getInvalid()).isEqualTo(0);\n\t\tstatistics.invalid();\n\t\tassertThat(statistics.getInvalid()).isEqualTo(1);\n\t}", "class_method_signature": "StatisticsTest.testInvalid()", "constructor": fa...
{ "fields": [ { "declarator": "invalid = 0", "modifier": "private", "original_string": "private int invalid = 0;", "type": "int", "var_name": "invalid" }, { "declarator": "notSupported = 0", "modifier": "private", "original_string": "private int notSupported...
{ "body": "public void invalid() {\n\t\tinvalid++;\n\t}", "class_method_signature": "Statistics.invalid()", "constructor": false, "full_signature": "public void invalid()", "identifier": "invalid", "invocations": [], "modifiers": "public", "parameters": "()", "return": "void", "signature": "void inv...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_248
{ "fields": [], "file": "CFDFinder/src/test/java/de/metanome/algorithms/cfdfinder/expansion/ConstantPatternExpansionStrategyTest.java", "identifier": "ConstantPatternExpansionStrategyTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testGetChildPatternsFromExistingPatternWithNoVariables() {\n int[][] values = new int[][] {\n new int[] {0, 1, 2},\n new int[] {0, 1, 2}\n };\n Pattern pattern = new Pattern(createAttributeMap(new int[] {0, 1, 2}));\n\n List<I...
{ "fields": [], "file": "CFDFinder/src/main/java/de/metanome/algorithms/cfdfinder/expansion/ConstantPatternExpansionStrategy.java", "identifier": "ConstantPatternExpansionStrategy", "interfaces": "", "methods": [ { "class_method_signature": "ConstantPatternExpansionStrategy.ConstantPatternExpansionS...
{ "body": "@Override\n public List<Pattern> getChildPatterns(Pattern currentPattern) {\n List<Pattern> result = new LinkedList<>();\n for (IntArrayList cluster : currentPattern.getCover()) {\n result.addAll(getChildPatterns(currentPattern, cluster));\n }\n return result;\n ...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_161
{ "fields": [ { "declarator": "latticeMd", "modifier": "@Mock\n\tprivate", "original_string": "@Mock\n\tprivate LatticeMD latticeMd;", "type": "LatticeMD", "var_name": "latticeMd" }, { "declarator": "lhs", "modifier": "@Mock\n\tprivate", "original_string": "...
{ "body": "@Test\n\tpublic void testMinimal() {\n\t\tint rhsAttr = 0;\n\t\tdouble threshold = 0.1;\n\t\tThresholdLowerer task = new ThresholdLowerer(latticeMd);\n\t\twhen(Boolean.valueOf(latticeMd.wouldBeMinimal(new MDElementImpl(rhsAttr, threshold)))).thenReturn(Boolean.TRUE);\n\t\twhen(latticeMd.getLhs()).thenRetur...
{ "fields": [ { "declarator": "latticeMd", "modifier": "@NonNull\n\tprivate final", "original_string": "@NonNull\n\tprivate final LatticeMD latticeMd;", "type": "LatticeMD", "var_name": "latticeMd" } ], "file": "HyMD/hybrid/src/main/java/de/hpi/is/md/hybrid/impl/infer/Thresho...
{ "body": "public void lowerThreshold(int rhsAttr, double threshold) {\n\t\tMDElement rhs = new MDElementImpl(rhsAttr, threshold);\n\t\tlowerThreshold(rhs);\n\t}", "class_method_signature": "ThresholdLowerer.lowerThreshold(int rhsAttr, double threshold)", "constructor": false, "full_signature": "public void low...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_16
{ "fields": [ { "declarator": "TABLE = 0", "modifier": "private static final", "original_string": "private static final int TABLE = 0;", "type": "int", "var_name": "TABLE" }, { "declarator": "algo", "modifier": "", "original_string": "FAIDACore algo;", ...
{ "body": "@Ignore\n @Test\n public void testExecuteSingleLine() throws Exception {\n algo = new FAIDACore(Arity.UNARY, new IdentityRowSampler(), t, sampleGoal);\n RelationalInputGenerator[] inputs = new RelationalInputGenerator[1];\n String[] header = {\"c0\", \"c1\", \"c2\"};\n Str...
{ "fields": [ { "declarator": "logger = LoggerFactory.getLogger(getClass())", "modifier": "private final", "original_string": "private final Logger logger = LoggerFactory.getLogger(getClass());", "type": "Logger", "var_name": "logger" }, { "declarator": "detectNary", ...
{ "body": "public List<SimpleInd> execute(RelationalInputGenerator[] fileInputGenerators,\n InclusionDependencyResultReceiver resultReceiver)\n throws InputGenerationException, InputIterationException, AlgorithmConfigurationException {\n\n // Probably for row scalab...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_136
{ "fields": [], "file": "HyMD/util/src/test/java/de/hpi/is/md/util/CollectionUtilsTest.java", "identifier": "CollectionUtilsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void testIntersectionOfEmpty() {\n\t\tassertThat(CollectionUtils.intersection(Collections.emptyList())).isEmpty();\n\t}", "class_method_signature": "CollectionUtilsTest.testIntersectionOfEmpty()", "constructor": false, "full_signature": "@Test public void testIntersectionOfEmpty()", ...
{ "fields": [ { "declarator": "CLUSTER_COMPARATOR = Comparator\n\t\t.comparingInt(Collection::size)", "modifier": "private static final", "original_string": "private static final Comparator<IntCollection> CLUSTER_COMPARATOR = Comparator\n\t\t.comparingInt(Collection::size);", "type": "Comp...
{ "body": "public static Optional<IntCollection> intersection(Collection<IntCollection> clusters) {\n\t\t//shrink result as early as possible\n\t\tList<IntCollection> sorted = sort(clusters, CLUSTER_COMPARATOR);\n\t\treturn createIntersector(sorted).map(HeadAndTailIntersector::intersect);\n\t}", "class_method_signa...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_41
{ "fields": [ { "declarator": "ducc", "modifier": "protected", "original_string": "protected Ducc ducc;", "type": "Ducc", "var_name": "ducc" } ], "file": "ducc/ducc_for_metanome/src/test/java/de/metanome/algorithms/ducc/DuccTest.java", "identifier": "DuccTest", "interface...
{ "body": "@Test\n public void testExecute()\n throws AlgorithmExecutionException, NoSuchFieldException, SecurityException,\n IllegalArgumentException, IllegalAccessException {\n //Setup\n AlgorithmTestFixture fixture = new AlgorithmTestFixture();\n ducc.setRelationalInputConfigurationValue...
{ "fields": [ { "declarator": "INPUT_HANDLE = \"Relational Input\"", "modifier": "protected static final", "original_string": "protected static final String INPUT_HANDLE = \"Relational Input\";", "type": "String", "var_name": "INPUT_HANDLE" }, { "declarator": "NULL_EQUA...
{ "body": "@Override\n public void execute() throws AlgorithmExecutionException {\n RelationalInput input;\n\n input = inputGenerator.generateNewCopy();\n\n PLIBuilder pliBuilder = new PLIBuilder(input, this.nullEqualsNull);\n List<PositionListIndex> plis = pliBuilder.getPLIList();\n\n DuccAlgorithm\n...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_36
{ "fields": [ { "declarator": "fixture", "modifier": "protected", "original_string": "protected UccGraphTraverserFixture fixture;", "type": "UccGraphTraverserFixture", "var_name": "fixture" } ], "file": "ducc/ducc_algorithm/src/test/java/de/metanome/algorithms/ducc/UccGraphTr...
{ "body": "@Test\n public void testTraverseGraph() throws CouldNotReceiveResultException, ColumnNameMismatchException {\n // Setup\n List<PositionListIndex> pliList = fixture.getPLIList();\n LinkedList<String> columnNames = new LinkedList<>();\n Integer i;\n for (i = 0; i < pliList.size(); i++) {\n ...
{ "fields": [ { "declarator": "resultReceiver", "modifier": "protected", "original_string": "protected UniqueColumnCombinationResultReceiver resultReceiver;", "type": "UniqueColumnCombinationResultReceiver", "var_name": "resultReceiver" }, { "declarator": "relationName"...
{ "body": "public void init(List<PositionListIndex> basePLIs,\n UniqueColumnCombinationResultReceiver resultReceiver, String relationName,\n List<String> columnNames) throws CouldNotReceiveResultException, ColumnNameMismatchException {\n this.resultReceiver = resultReceiver;\n ...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_141
{ "fields": [], "file": "HyMD/db/src/test/java/de/hpi/is/md/relational/ColumnPairTest.java", "identifier": "ColumnPairTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void test() {\n\t\tColumn<Integer> left = Column.of(\"a\", Integer.class);\n\t\tColumn<Integer> right = Column.of(\"a\", Integer.class);\n\t\tColumnPair<Integer> pair = new ColumnPair<>(left, right);\n\t\tassertThat(pair.getType()).isEqualTo(Integer.class);\n\t\tassertThat(pair.getType()).i...
{ "fields": [ { "declarator": "serialVersionUID = 8470259831636852058L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = 8470259831636852058L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "left"...
{ "body": "public Class<T> getType() {\n\t\treturn left.getType();\n\t}", "class_method_signature": "ColumnPair.getType()", "constructor": false, "full_signature": "public Class<T> getType()", "identifier": "getType", "invocations": [ "getType" ], "modifiers": "public", "parameters": "()", "retu...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_61
{ "fields": [ { "declarator": "csvFileFixture", "modifier": "protected", "original_string": "protected TestCsvFileFixture csvFileFixture;", "type": "TestCsvFileFixture", "var_name": "csvFileFixture" }, { "declarator": "testFile", "modifier": "protected", "or...
{ "body": "@Test\n public void testCreatePartitionGenericDate() {\n // Setup\n final Datatype type = new DatatypeDate(null);\n // Expected values\n final ArrayList<SortedPartition> expectedSortedPartitions = new ArrayList<>();\n final SortedPartition firstSortedPartition = new SortedPartition(this.num...
{ "fields": [], "file": "ORDER/src/main/java/de/metanome/algorithms/order/sorting/partitions/SortedPartitionCreator.java", "identifier": "SortedPartitionCreator", "interfaces": "", "methods": [ { "class_method_signature": "SortedPartitionCreator.createPartition(final List<RowIndexedValue> data,\n ...
{ "body": "public static SortedPartition createPartition(final List<RowIndexedValue> data,\n final Datatype type) {\n final Comparator<RowIndexedValue> indexedComparator = type.getIndexedComparator();\n\n if (indexedComparator == null) {\n throw new IllegalStateException(\"Comparator could not be crea...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_116
{ "fields": [ { "declarator": "HASH_FUNCTION = Hashing.goodFastHash(10)", "modifier": "private static final", "original_string": "private static final HashFunction HASH_FUNCTION = Hashing.goodFastHash(10);", "type": "HashFunction", "var_name": "HASH_FUNCTION" } ], "file": "Hy...
{ "body": "@Test\n\tpublic void testPutFloat() {\n\t\tassertThat(Hasher.of(HASH_FUNCTION).putFloat(0.0f).putFloat(1.0f).hash())\n\t\t\t.isEqualTo(HASH_FUNCTION.newHasher().putFloat(0.0f).putFloat(1.0f).hash());\n\t}", "class_method_signature": "HasherTest.testPutFloat()", "constructor": false, "full_signature":...
{ "fields": [ { "declarator": "hasher", "modifier": "private final", "original_string": "private final com.google.common.hash.Hasher hasher;", "type": "com.google.common.hash.Hasher", "var_name": "hasher" } ], "file": "HyMD/util/src/main/java/de/hpi/is/md/util/Hasher.java", ...
{ "body": "public Hasher putFloat(float f) {\n\t\thasher.putFloat(f);\n\t\treturn this;\n\t}", "class_method_signature": "Hasher.putFloat(float f)", "constructor": false, "full_signature": "public Hasher putFloat(float f)", "identifier": "putFloat", "invocations": [ "putFloat" ], "modifiers": "publi...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_77
{ "fields": [], "file": "HyMD/util/src/test/java/de/hpi/is/md/util/OptionalDoubleTest.java", "identifier": "OptionalDoubleTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void testOfNullable() {\n\t\tassertThat(OptionalDouble.ofNullable(null).boxed()).isEmpty();\n\t\tassertThat(OptionalDouble.ofNullable(1.0).boxed()).hasValue(1.0);\n\t}", "class_method_signature": "OptionalDoubleTest.testOfNullable()", "constructor": false, "full_signature": "@Test pub...
{ "fields": [ { "declarator": "EMPTY = new OptionalDouble()", "modifier": "private static final", "original_string": "private static final OptionalDouble EMPTY = new OptionalDouble();", "type": "OptionalDouble", "var_name": "EMPTY" }, { "declarator": "optional", "...
{ "body": "public static OptionalDouble ofNullable(Double value) {\n\t\treturn value == null ? empty() : of(value.doubleValue());\n\t}", "class_method_signature": "OptionalDouble.ofNullable(Double value)", "constructor": false, "full_signature": "public static OptionalDouble ofNullable(Double value)", "identi...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_98
{ "fields": [], "file": "HyMD/util/src/test/java/de/hpi/is/md/util/OptionalsTest.java", "identifier": "OptionalsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void testEmptyStream() {\n\t\tassertThat(Optionals.stream(Optional.empty()).count()).isEqualTo(0L);\n\t}", "class_method_signature": "OptionalsTest.testEmptyStream()", "constructor": false, "full_signature": "@Test public void testEmptyStream()", "identifier": "testEmptyStream", "...
{ "fields": [], "file": "HyMD/util/src/main/java/de/hpi/is/md/util/Optionals.java", "identifier": "Optionals", "interfaces": "", "methods": [ { "class_method_signature": "Optionals.of(Collection<T> collection)", "constructor": false, "full_signature": "public static Optional<Collection<T...
{ "body": "public static <T> Stream<T> stream(Optional<T> optional) {\n\t\treturn optional.map(Stream::of)\n\t\t\t.orElseGet(Stream::empty);\n\t}", "class_method_signature": "Optionals.stream(Optional<T> optional)", "constructor": false, "full_signature": "public static Stream<T> stream(Optional<T> optional)", ...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_100
{ "fields": [], "file": "HyMD/util/src/test/java/de/hpi/is/md/util/OptionalsTest.java", "identifier": "OptionalsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void testOfEmptyCollection() {\n\t\tassertThat(Optionals.of(Collections.emptyList())).isEmpty();\n\t}", "class_method_signature": "OptionalsTest.testOfEmptyCollection()", "constructor": false, "full_signature": "@Test public void testOfEmptyCollection()", "identifier": "testOfEmptyC...
{ "fields": [], "file": "HyMD/util/src/main/java/de/hpi/is/md/util/Optionals.java", "identifier": "Optionals", "interfaces": "", "methods": [ { "class_method_signature": "Optionals.of(Collection<T> collection)", "constructor": false, "full_signature": "public static Optional<Collection<T...
{ "body": "public static <T> Optional<Collection<T>> of(Collection<T> collection) {\n\t\treturn collection.isEmpty() ? Optional.empty() : Optional.of(collection);\n\t}", "class_method_signature": "Optionals.of(Collection<T> collection)", "constructor": false, "full_signature": "public static Optional<Collection...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_229
{ "fields": [], "file": "fun/fun_algorithm/src/test/java/de/uni_potsdam/hpi/metanome/algorithms/fun/FunAlgorithmTest.java", "identifier": "FunAlgorithmTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void testGenerateCandidate() {\n\t\t// Setup\n\t\tFixtureCandidateGeneration fixture = new FixtureCandidateGeneration();\n\t\tList<FunQuadruple> l2 = fixture.getL2();\n\t\tFunAlgorithm fun = fixture.getFunAlgorithmMockedAddPliGenerate();\n\t\t\n\t\t// Execute functionality\n\t\t// Check res...
{ "fields": [ { "declarator": "plis", "modifier": "protected", "original_string": "protected Map<ColumnCombinationBitset, PositionListIndex> plis;", "type": "Map<ColumnCombinationBitset, PositionListIndex>", "var_name": "plis" }, { "declarator": "rDash", "modifier...
{ "body": "protected LinkedList<FunQuadruple> generateCandidates(List<FunQuadruple> lk) {\n\n // what about keys (last statement in set expression from paper)\n\n LinkedList<FunQuadruple> lkPlus1 = new LinkedList<>();\n if (lk.isEmpty()) {\n return lkPlus1;\n }\n Set<Colu...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_20
{ "fields": [ { "declarator": "TABLE = 0", "modifier": "private static final", "original_string": "private static final int TABLE = 0;", "type": "int", "var_name": "TABLE" }, { "declarator": "algo", "modifier": "", "original_string": "FAIDACore algo;", ...
{ "body": "@Test\n public void testExecuteWdcPlanets() throws Exception {\n algo = new FAIDACore(Arity.N_ARY, new IdentityRowSampler(), t, sampleGoal);\n RelationalInputGenerator[] inputs = new RelationalInputGenerator[1];\n String[] header = {\"Domicile\", \"Detriment\", \"Exaltation\", \"Fal...
{ "fields": [ { "declarator": "logger = LoggerFactory.getLogger(getClass())", "modifier": "private final", "original_string": "private final Logger logger = LoggerFactory.getLogger(getClass());", "type": "Logger", "var_name": "logger" }, { "declarator": "detectNary", ...
{ "body": "public List<SimpleInd> execute(RelationalInputGenerator[] fileInputGenerators,\n InclusionDependencyResultReceiver resultReceiver)\n throws InputGenerationException, InputIterationException, AlgorithmConfigurationException {\n\n // Probably for row scalab...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_157
{ "fields": [ { "declarator": "lattice", "modifier": "@Mock\n\tprivate", "original_string": "@Mock\n\tprivate Lattice lattice;", "type": "Lattice", "var_name": "lattice" }, { "declarator": "notSupported", "modifier": "@Mock\n\tprivate", "original_string": "@...
{ "body": "@Test\n\tpublic void testFindViolated() {\n\t\tFullLattice fullLattice = new FullLattice(lattice, notSupported);\n\t\tLatticeMD latticeMD = Mockito.mock(LatticeMD.class);\n\t\tSimilaritySet similaritySet = Mockito.mock(SimilaritySet.class);\n\t\twhen(lattice.findViolated(similaritySet)).thenReturn(Collecti...
{ "fields": [ { "declarator": "lattice", "modifier": "@NonNull\n\tprivate final", "original_string": "@NonNull\n\tprivate final Lattice lattice;", "type": "Lattice", "var_name": "lattice" }, { "declarator": "notSupported", "modifier": "@NonNull\n\tprivate final", ...
{ "body": "public Collection<LatticeMD> findViolated(SimilaritySet similaritySet) {\n\t\treturn lattice.findViolated(similaritySet);\n\t}", "class_method_signature": "FullLattice.findViolated(SimilaritySet similaritySet)", "constructor": false, "full_signature": "public Collection<LatticeMD> findViolated(Simila...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_5
{ "fields": [ { "declarator": "SAMPLE_SIZE = 10", "modifier": "public static final", "original_string": "public static final int SAMPLE_SIZE = 10;", "type": "int", "var_name": "SAMPLE_SIZE" }, { "declarator": "rb = new RelationalInputBuilder(\"testTable\")", "modi...
{ "body": "@Test\n public void testGetRows() throws Exception {\n rb.setHeader(\"col1\", \"col2\", \"col3\")\n .addRow(\"a\", \"a\", \"b\")\n .addRow(\"1\", \"2\", \"2\");\n VirtualColumnStore cs = createColumnStore(rb.build());\n ColumnIterator rows = cs.getRows(...
{ "fields": [ { "declarator": "inputGenerator", "modifier": "private final", "original_string": "private final RelationalInputGenerator inputGenerator;", "type": "RelationalInputGenerator", "var_name": "inputGenerator" }, { "declarator": "isCloseConnectionsRigorously", ...
{ "body": "public ColumnIterator getRows(SimpleColumnCombination activeColumns) {\n this.initHashCaches();\n\n try {\n return new VirtualColumnStore.ColumnIterator(this.inputGenerator.generateNewCopy(), activeColumns);\n } catch (Exception e) {\n throw new RuntimeException(e...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_205
{ "fields": [], "file": "HyMD/core/src/test/java/de/hpi/is/md/impl/threshold/MultiThresholdProviderTest.java", "identifier": "MultiThresholdProviderTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void testGetNext() {\n\t\tList<DoubleSet> similarities = Arrays\n\t\t\t.asList(new DoubleOpenHashSet(Sets.newHashSet(Double.valueOf(0.7), Double.valueOf(0.6))),\n\t\t\t\tnew DoubleOpenHashSet(Sets.newHashSet(Double.valueOf(0.8))));\n\t\tThresholdProvider provider = create(similarities);\n\t...
{ "fields": [ { "declarator": "providers", "modifier": "@NonNull\n\tprivate final", "original_string": "@NonNull\n\tprivate final SingleThresholdProvider[] providers;", "type": "SingleThresholdProvider[]", "var_name": "providers" } ], "file": "HyMD/core/src/main/java/de/hpi/i...
{ "body": "@Override\n\tpublic OptionalDouble getNext(int attr, double threshold) {\n\t\tcheckElementIndex(attr, providers.length);\n\t\treturn providers[attr].getNext(threshold);\n\t}", "class_method_signature": "MultiThresholdProvider.getNext(int attr, double threshold)", "constructor": false, "full_signature...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_194
{ "fields": [], "file": "HyMD/hybrid/src/test/java/de/hpi/is/md/hybrid/impl/level/ViolationHandlerTest.java", "identifier": "ViolationHandlerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void testEmpty() {\n\t\tViolationHandler violationHandler = new ViolationHandler();\n\t\tassertThat(violationHandler.pollViolations()).isEmpty();\n\t}", "class_method_signature": "ViolationHandlerTest.testEmpty()", "constructor": false, "full_signature": "@Test public void testEmpty()...
{ "fields": [ { "declarator": "violations = new PollSet<>()", "modifier": "private final", "original_string": "private final PollCollection<IntArrayPair> violations = new PollSet<>();", "type": "PollCollection<IntArrayPair>", "var_name": "violations" } ], "file": "HyMD/hybrid...
{ "body": "Collection<IntArrayPair> pollViolations() {\n\t\treturn violations.poll();\n\t}", "class_method_signature": "ViolationHandler.pollViolations()", "constructor": false, "full_signature": " Collection<IntArrayPair> pollViolations()", "identifier": "pollViolations", "invocations": [ "poll" ], ...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_252
{ "fields": [], "file": "DVHyperLogLog/src/test/java/de/metanome/algorithms/dvhyperloglog/DVHyperLogLogTest.java", "identifier": "DVHyperLogLogTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testExecute() {\n }", "class_method_signature": "DVHyperLogLogTest.testExecute()", "constructor": false, "full_signature": "@Test public void testExecute()", "identifier": "testExecute", "invocations": [], "modifiers": "@Test public", "parameters": "()", "return": "voi...
{ "fields": [], "file": "DVHyperLogLog/src/main/java/de/metanome/algorithms/dvhyperloglog/DVHyperLogLog.java", "identifier": "DVHyperLogLog", "interfaces": "implements BasicStatisticsAlgorithm, RelationalInputParameterAlgorithm, StringParameterAlgorithm", "methods": [ { "class_method_signature": "DV...
{ "body": "@Override\n\tpublic void execute() throws AlgorithmExecutionException {\n\t\tsuper.execute();\n\t}", "class_method_signature": "DVHyperLogLog.execute()", "constructor": false, "full_signature": "@Override public void execute()", "identifier": "execute", "invocations": [ "execute" ], "modi...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_182
{ "fields": [ { "declarator": "A = Column.of(\"a\", Integer.class)", "modifier": "private static final", "original_string": "private static final Column<Integer> A = Column.of(\"a\", Integer.class);", "type": "Column<Integer>", "var_name": "A" }, { "declarator": "B = Co...
{ "body": "@Test\n\tpublic void testGetSimilarity() {\n\t\tList<PreprocessedColumnPair> columnPairs = create();\n\t\tPreprocessedColumnPair ab = columnPairs.get(0);\n\t\tassertThat(ab.getSimilarity(new int[]{4}, new int[]{5, 0})).isEqualTo(0.8);\n\t\tassertThat(ab.getSimilarity(new int[]{4}, new int[]{8, 0})).isEqual...
{ "fields": [ { "declarator": "serialVersionUID = -4122856934192664031L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -4122856934192664031L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "lef...
{ "body": "@Override\n\tpublic double getSimilarity(int leftValue, int rightValue) {\n\t\treturn similarityIndex.getSimilarity(leftValue, rightValue);\n\t}", "class_method_signature": "PreprocessedColumnPairImpl.getSimilarity(int leftValue, int rightValue)", "constructor": false, "full_signature": "@Override pu...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_244
{ "fields": [], "file": "CFDFinder/src/test/java/de/metanome/algorithms/cfdfinder/expansion/ConstantPatternExpansionStrategyTest.java", "identifier": "ConstantPatternExpansionStrategyTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testNullPatternGenerationSubset() {\n ConstantPatternExpansionStrategy out = new ConstantPatternExpansionStrategy(new int[][] {});\n Pattern nullPattern = out.generateNullPattern(createAttributes(5, new int[] {2, 4}));\n PatternEntry[] patternEntries = nullPatter...
{ "fields": [], "file": "CFDFinder/src/main/java/de/metanome/algorithms/cfdfinder/expansion/ConstantPatternExpansionStrategy.java", "identifier": "ConstantPatternExpansionStrategy", "interfaces": "", "methods": [ { "class_method_signature": "ConstantPatternExpansionStrategy.ConstantPatternExpansionS...
{ "body": "@Override\n public Pattern generateNullPattern(BitSet attributes) {\n Map<Integer, PatternEntry> allVariables = new HashMap<>();\n for (int i = attributes.nextSetBit(0); i >= 0; i = attributes.nextSetBit(i + 1)) {\n allVariables.put(Integer.valueOf(i), new VariablePatternEntry()...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
113425021_213
{ "fields": [ { "declarator": "fdtree", "modifier": "private", "original_string": "private FDTree fdtree;", "type": "FDTree", "var_name": "fdtree" } ], "file": "tane/tane_algorithm_helper/src/test/java/de/metanome/algorithms/tane/algorithm_helper/FDTreeTest.java", "identifi...
{ "body": "@Test\n public void testContainsSpezialization() {\n FDTree fdtree = new FDTree(5);\n BitSet lhs = new BitSet();\n lhs.set(1);\n lhs.set(3);\n lhs.set(5);\n fdtree.addFunctionalDependency(lhs, 4);\n lhs.clear(1);\n lhs.set(2);\n fdtree.addFu...
{ "fields": [], "file": "tane/tane_algorithm_helper/src/main/java/de/metanome/algorithms/tane/algorithm_helper/FDTree.java", "identifier": "FDTree", "interfaces": "", "methods": [ { "class_method_signature": "FDTree.FDTree(int maxAttributeNumber)", "constructor": true, "full_signature": ...
{ "body": "public void addFunctionalDependency(BitSet lhs, int a) {\n FDTreeElement fdTreeEl;\n //update root vertex\n FDTreeElement currentNode = this;\n currentNode.addRhsAttribute(a);\n\n for (int i = lhs.nextSetBit(0); i >= 0; i = lhs.nextSetBit(i + 1)) {\n\n if (curr...
{ "created": null, "fork": null, "fork_count": 9, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 113425021, "size": 1701, "stargazer_count": 25, "stars": null, "updates": null, "url": "https://github.com/HPI-Information-Systems/metanome-algorithms" }
2088736_559
{ "fields": [ { "declarator": "configuration", "modifier": "@Mock\n private", "original_string": "@Mock\n private Configuration configuration;", "type": "Configuration", "var_name": "configuration" }, { "declarator": "webDriver", "modifier": "@Mock(extraInte...
{ "body": "@Test\n public void shouldCreateScreenshotFromDriverWithConfiguration() throws IOException {\n mockScreenshotFromWebDriver();\n initializeDestinationFile();\n when(configuration.getScreenshotPath()).thenReturn(destinationFile.getParent());\n\n screenshotPersister.persistScree...
{ "fields": [ { "declarator": "LOGGER = LoggerFactory.getLogger(FluentDriverScreenshotPersister.class)", "modifier": "private static final", "original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(FluentDriverScreenshotPersister.class);", "type": "Logger", ...
{ "body": "public void persistScreenshot(String fileName) {\n try {\n File destFile;\n if (configuration.getScreenshotPath() == null) {\n destFile = new File(fileName);\n } else {\n destFile = Paths.get(configuration.getScreenshotPath(), fileName)....
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_109
{ "fields": [ { "declarator": "fluentList", "modifier": "@Mock\n private", "original_string": "@Mock\n private FluentList<FluentWebElement> fluentList;", "type": "FluentList<FluentWebElement>", "var_name": "fluentList" }, { "declarator": "listAssert", "modif...
{ "body": "@Test\n public void testHasSizeGreaterThanOrEqualToOk() {\n when(fluentList.count()).thenReturn(7);\n listAssert.hasSize().greaterThanOrEqualTo(7);\n listAssert.hasSize().greaterThanOrEqualTo(6);\n }", "class_method_signature": "FluentListAssertTest.testHasSizeGreaterThanOrEqua...
{ "fields": [], "file": "fluentlenium-assertj/src/main/java/org/fluentlenium/assertj/custom/FluentListAssert.java", "identifier": "FluentListAssert", "interfaces": "implements ListStateAssert, ListAttributeAssert", "methods": [ { "class_method_signature": "FluentListAssert.FluentListAssert(FluentLis...
{ "body": "@Override\n public FluentListAssert hasSize(int expectedSize) {\n int actualSize = actual.count();\n if (actualSize != expectedSize) {\n failWithMessage(\"Expected size: \" + expectedSize + \". Actual size: \" + actualSize + \".\");\n }\n return this;\n }", "c...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_220
{ "fields": [], "file": "fluentlenium-core/src/test/java/org/fluentlenium/configuration/ConfigurationFactoryProviderTest.java", "identifier": "ConfigurationFactoryProviderTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testCustomConfiguration() {\n Configuration configuration = ConfigurationFactoryProvider.newConfiguration(CustomContainer.class);\n assertThat(configuration).isExactlyInstanceOf(ProgrammaticConfiguration.class);\n }", "class_method_signature": "ConfigurationFactory...
{ "fields": [ { "declarator": "BOOTSTRAP_FACTORY = new DefaultConfigurationFactory()", "modifier": "private static final", "original_string": "private static final ConfigurationFactory BOOTSTRAP_FACTORY = new DefaultConfigurationFactory();", "type": "ConfigurationFactory", "var_name"...
{ "body": "public static Configuration newConfiguration(Class<?> container) {\n ConfigurationFactory configurationFactory = getConfigurationFactory(container);\n Configuration configuration = configurationFactory.newConfiguration(container, new ConfigurationDefaults());\n\n if (configuration.getC...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_26
{ "fields": [ { "declarator": "element", "modifier": "@Mock\n private", "original_string": "@Mock\n private FluentWebElement element;", "type": "FluentWebElement", "var_name": "element" }, { "declarator": "elementAssert", "modifier": "private", "origin...
{ "body": "@Test\n public void testHasValueKo() {\n when(element.value()).thenReturn(\"other value\");\n assertThatAssertionErrorIsThrownBy(() -> elementAssert.hasValue(\"some value\"))\n .hasMessage(\"The element does not have the value: some value. Actual value found : other value\")...
{ "fields": [], "file": "fluentlenium-assertj/src/main/java/org/fluentlenium/assertj/custom/FluentWebElementAssert.java", "identifier": "FluentWebElementAssert", "interfaces": "implements ElementStateAssert, ElementAttributeAssert", "methods": [ { "class_method_signature": "FluentWebElementAssert.Fl...
{ "body": "@Override\n public FluentWebElementAssert hasValue(String value) {\n String actualValue = actual.value();\n if (!actualValue.equals(value)) {\n failWithMessage(\"The element does not have the value: \" + value\n + \". Actual value found : \" + actualValue);\n ...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_365
{ "fields": [], "file": "fluentlenium-core/src/test/java/org/fluentlenium/core/conditions/StringConditionsImplTest.java", "identifier": "StringConditionsImplTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void shouldReturnFalseForMatchesStringIfTargetStringIsNull() {\n StringConditions stringConditions = new StringConditionsImpl(null);\n\n assertThat(stringConditions.matches(\"magical\")).isFalse();\n }", "class_method_signature": "StringConditionsImplTest.shouldReturnFa...
{ "fields": [], "file": "fluentlenium-core/src/main/java/org/fluentlenium/core/conditions/StringConditionsImpl.java", "identifier": "StringConditionsImpl", "interfaces": "implements StringConditions", "methods": [ { "class_method_signature": "StringConditionsImpl.StringConditionsImpl(String string)"...
{ "body": "@Override\n public boolean matches(String regex) {\n return verify(input -> {\n if (input == null) {\n return false;\n }\n return input.matches(regex);\n });\n }", "class_method_signature": "StringConditionsImpl.matches(String regex)", ...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_627
{ "fields": [ { "declarator": "element", "modifier": "@Mock\n private", "original_string": "@Mock\n private LocatableElement element;", "type": "LocatableElement", "var_name": "element" }, { "declarator": "driver", "modifier": "@Mock\n private", "or...
{ "body": "@Test\n public void testEl() {\n WebElement findElement = mock(WebElement.class);\n\n when(element.findElements(By.cssSelector(\".test\"))).thenReturn(Collections.singletonList(findElement));\n\n assertThat(fluentElement.el(\".test\").now().getElement()).isEqualTo(findElement);\n ...
{ "fields": [ { "declarator": "search", "modifier": "private final", "original_string": "private final Search search;", "type": "Search", "var_name": "search" }, { "declarator": "dom", "modifier": "private final", "original_string": "private final Dom dom;",...
{ "body": "@Override\n public FluentWebElement el(WebElement rawElement) {\n return search.el(rawElement);\n }", "class_method_signature": "FluentWebElement.el(WebElement rawElement)", "constructor": false, "full_signature": "@Override public FluentWebElement el(WebElement rawElement)", "identifi...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_277
{ "fields": [ { "declarator": "componentsManager", "modifier": "@Mock\n private", "original_string": "@Mock\n private ComponentsManager componentsManager;", "type": "ComponentsManager", "var_name": "componentsManager" }, { "declarator": "validator", "modifie...
{ "body": "@Test\n public void shouldReturnTrueIfFieldIsListOfElement() throws NoSuchFieldException {\n Field listOfFluentWebElementField = getField(\"listOfWebElements\");\n\n assertThat(FluentElementInjectionSupportValidator.isListOfWebElement(listOfFluentWebElementField)).isTrue();\n }", "cla...
{ "fields": [ { "declarator": "componentsManager", "modifier": "private final", "original_string": "private final ComponentsManager componentsManager;", "type": "ComponentsManager", "var_name": "componentsManager" } ], "file": "fluentlenium-core/src/main/java/org/fluentlenium...
{ "body": "static boolean isListOfWebElement(Field field) {\n return isFieldListOf(field, WebElement.class::isAssignableFrom);\n }", "class_method_signature": "FluentElementInjectionSupportValidator.isListOfWebElement(Field field)", "constructor": false, "full_signature": "static boolean isListOfWebEl...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_298
{ "fields": [ { "declarator": "LOAD_EVENT_END_SCRIPT = \"return window.performance.timing.loadEventEnd;\"", "modifier": "private static final", "original_string": "private static final String LOAD_EVENT_END_SCRIPT = \"return window.performance.timing.loadEventEnd;\";", "type": "String", ...
{ "body": "@Test\n public void shouldGetEventValueInTimeUnit() {\n when(((JavascriptExecutor) driver).executeScript(LOAD_EVENT_END_SCRIPT)).thenReturn(60000L);\n when(((JavascriptExecutor) driver).executeScript(NAVIGATION_START_SCRIPT)).thenReturn(45900L);\n\n assertThat(performanceTiming.getE...
{ "fields": [ { "declarator": "PERFORMANCE_TIMING_SCRIPT = \"return window.performance.timing;\"", "modifier": "private static final", "original_string": "private static final String PERFORMANCE_TIMING_SCRIPT = \"return window.performance.timing;\";", "type": "String", "var_name": "P...
{ "body": "@Override\n public long getEventValue(PerformanceTimingEvent event) {\n checkArgument(event, \"The event should not be null.\");\n return timePassedUntil(execute(scriptFor(event)));\n }", "class_method_signature": "DefaultPerformanceTiming.getEventValue(PerformanceTimingEvent event)",...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_332
{ "fields": [ { "declarator": "element", "modifier": "@Mock\n private", "original_string": "@Mock\n private WebElement element;", "type": "WebElement", "var_name": "element" } ], "file": "fluentlenium-core/src/test/java/org/fluentlenium/core/proxy/ElementInstanceLocator...
{ "body": "@Test\n public void testWithMockElement() {\n ElementInstanceLocator locator = new ElementInstanceLocator(element);\n\n Assertions.assertThat(locator.findElement()).isSameAs(element);\n Assertions.assertThat(locator.findElements()).containsExactly(element);\n\n Assertions.ass...
{ "fields": [], "file": "fluentlenium-core/src/main/java/org/fluentlenium/core/proxy/ElementInstanceLocator.java", "identifier": "ElementInstanceLocator", "interfaces": "implements WrapsElement", "methods": [ { "class_method_signature": "ElementInstanceLocator.ElementInstanceLocator(WebElement eleme...
{ "body": "@Override\n public WebElement getWrappedElement() {\n return findElement();\n }", "class_method_signature": "ElementInstanceLocator.getWrappedElement()", "constructor": false, "full_signature": "@Override public WebElement getWrappedElement()", "identifier": "getWrappedElement", "inv...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_71
{ "fields": [ { "declarator": "element", "modifier": "@Mock\n private", "original_string": "@Mock\n private FluentWebElement element;", "type": "FluentWebElement", "var_name": "element" }, { "declarator": "fluentPage", "modifier": "@Mock\n private", ...
{ "body": "@Test\n public void hasTitleOk() {\n String title = \"title\";\n doReturn(title).when(driver).getTitle();\n pageAssert.hasTitle(title);\n }", "class_method_signature": "PageAssertTest.hasTitleOk()", "constructor": false, "full_signature": "@Test public void hasTitleOk()", ...
{ "fields": [], "file": "fluentlenium-assertj/src/main/java/org/fluentlenium/assertj/custom/PageAssert.java", "identifier": "PageAssert", "interfaces": "implements PageStateAssert", "methods": [ { "class_method_signature": "PageAssert.PageAssert(FluentPage actual)", "constructor": true, ...
{ "body": "@Override\n public PageAssert hasTitle(String title) {\n try {\n String pageTitle = actual.getDriver().getTitle();\n if (!pageTitle.equals(title)) {\n failWithMessage(\"Current page title is \" + pageTitle + \". Expected \" + title);\n }\n } ...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_518
{ "fields": [ { "declarator": "configuration", "modifier": "@Mock\n private", "original_string": "@Mock\n private Configuration configuration;", "type": "Configuration", "var_name": "configuration" }, { "declarator": "fluentControl", "modifier": "@Mock\n ...
{ "body": "@Test\n public void shouldConfigureAtMost() {\n when(configuration.getAwaitAtMost()).thenReturn(2L);\n when(configuration.getAwaitPollingEvery()).thenReturn(null);\n Duration defaultSeleniumInterval = Duration.ofMillis(500L);\n\n FluentWait fluentWait = fluentDriverWait.await...
{ "fields": [ { "declarator": "configuration", "modifier": "private final", "original_string": "private final Configuration configuration;", "type": "Configuration", "var_name": "configuration" } ], "file": "fluentlenium-core/src/main/java/org/fluentlenium/core/FluentDriverWa...
{ "body": "public FluentWait await(FluentControl control) {\n FluentWait fluentWait = new FluentWait(control);\n configureWithAwaitAtMost(fluentWait);\n configureWithPollingEvery(fluentWait);\n return fluentWait;\n }", "class_method_signature": "FluentDriverWait.await(FluentControl co...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_148
{ "fields": [ { "declarator": "retriever", "modifier": "private", "original_string": "private CapabilitiesConfigurationPropertyRetriever retriever;", "type": "CapabilitiesConfigurationPropertyRetriever", "var_name": "retriever" } ], "file": "fluentlenium-core/src/test/java/or...
{ "body": "@Test\n public void capabilitiesURL() {\n URL capabilitiesURLJSEnabled = getClass().getResource(\"/org/fluentlenium/configuration/capabilities.json\");\n DesiredCapabilities capabilitiesJSEnabled = new DesiredCapabilities();\n capabilitiesJSEnabled.setJavascriptEnabled(true);\n\n ...
{ "fields": [ { "declarator": "jsonConverter = new Json()", "modifier": "private final", "original_string": "private final Json jsonConverter = new Json();", "type": "Json", "var_name": "jsonConverter" } ], "file": "fluentlenium-core/src/main/java/org/fluentlenium/configurati...
{ "body": "Capabilities getCapabilitiesProperty(String capabilities, ConfigurationProperties globalConfiguration) {\n String property = readCapabilitiesFromUrl(capabilities);\n return Optional.ofNullable(createCapabilitiesFromFactory(property, globalConfiguration))\n .orElseGet(() -> conv...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_261
{ "fields": [ { "declarator": "componentsManager", "modifier": "@Mock\n private", "original_string": "@Mock\n private ComponentsManager componentsManager;", "type": "ComponentsManager", "var_name": "componentsManager" }, { "declarator": "validator", "modifie...
{ "body": "@Test\n public void shouldReturnTrueWhenFieldIsListOfComponent() throws NoSuchFieldException {\n when(componentsManager.isComponentClass(TestComponent.class)).thenReturn(true);\n Field listOfComponentsField = getField(\"listOfComponents\");\n\n assertThat(validator.isListOfComponent...
{ "fields": [ { "declarator": "componentsManager", "modifier": "private final", "original_string": "private final ComponentsManager componentsManager;", "type": "ComponentsManager", "var_name": "componentsManager" } ], "file": "fluentlenium-core/src/main/java/org/fluentlenium...
{ "body": "boolean isListOfComponent(Field field) {\n //Don't replace the predicate with a method reference\n return isFieldListOf(field, genericType -> componentsManager.isComponentClass(genericType));\n }", "class_method_signature": "FluentElementInjectionSupportValidator.isListOfComponent(Field ...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_631
{ "fields": [ { "declarator": "element", "modifier": "@Mock\n private", "original_string": "@Mock\n private LocatableElement element;", "type": "LocatableElement", "var_name": "element" }, { "declarator": "driver", "modifier": "@Mock\n private", "or...
{ "body": "@Test\n public void testFillSelect() {\n when(element.getTagName()).thenReturn(\"select\");\n WebElement valueElement = mock(WebElement.class);\n when(element.findElements(any(By.class))).thenReturn(Collections.singletonList(valueElement));\n\n fluentElement.fillSelect().with...
{ "fields": [ { "declarator": "search", "modifier": "private final", "original_string": "private final Search search;", "type": "Search", "var_name": "search" }, { "declarator": "dom", "modifier": "private final", "original_string": "private final Dom dom;",...
{ "body": "@Override\n public FillSelect<FluentWebElement> fillSelect() {\n return new FillSelect<>(this);\n }", "class_method_signature": "FluentWebElement.fillSelect()", "constructor": false, "full_signature": "@Override public FillSelect<FluentWebElement> fillSelect()", "identifier": "fillSele...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_88
{ "fields": [ { "declarator": "fluentList", "modifier": "@Mock\n private", "original_string": "@Mock\n private FluentList<FluentWebElement> fluentList;", "type": "FluentList<FluentWebElement>", "var_name": "fluentList" }, { "declarator": "listAssert", "modif...
{ "body": "@Test\n public void testHasTextContainingOk() {\n when(fluentList.texts()).thenReturn(singletonList(\"some text to contain\"));\n listAssert.hasTextContaining(\"some text\");\n }", "class_method_signature": "FluentListAssertTest.testHasTextContainingOk()", "constructor": false, "f...
{ "fields": [], "file": "fluentlenium-assertj/src/main/java/org/fluentlenium/assertj/custom/FluentListAssert.java", "identifier": "FluentListAssert", "interfaces": "implements ListStateAssert, ListAttributeAssert", "methods": [ { "class_method_signature": "FluentListAssert.FluentListAssert(FluentLis...
{ "body": "@Override\n public FluentListAssert hasTextContaining(String textToFind) {\n List<String> actualTexts = requiresNonEmpty(actual.texts());\n if (actualTexts.stream().noneMatch(text -> text.contains(textToFind))) {\n failWithMessage(\"No selected elements contains text: \" + textT...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_67
{ "fields": [ { "declarator": "element", "modifier": "@Mock\n private", "original_string": "@Mock\n private FluentWebElement element;", "type": "FluentWebElement", "var_name": "element" }, { "declarator": "fluentPage", "modifier": "@Mock\n private", ...
{ "body": "@Test\n public void hasElementDisplayedOk() {\n when(element.displayed()).thenReturn(true);\n pageAssert.hasElementDisplayed(element);\n }", "class_method_signature": "PageAssertTest.hasElementDisplayedOk()", "constructor": false, "full_signature": "@Test public void hasElementDis...
{ "fields": [], "file": "fluentlenium-assertj/src/main/java/org/fluentlenium/assertj/custom/PageAssert.java", "identifier": "PageAssert", "interfaces": "implements PageStateAssert", "methods": [ { "class_method_signature": "PageAssert.PageAssert(FluentPage actual)", "constructor": true, ...
{ "body": "@Override\n public PageAssert hasElementDisplayed(FluentWebElement element) {\n if (!element.displayed()) {\n failWithMessage(\"Element \" + element.toString() + \" is not displayed on current page\");\n }\n return this;\n }", "class_method_signature": "PageAssert.ha...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_324
{ "fields": [ { "declarator": "element", "modifier": "@Mock\n private", "original_string": "@Mock\n private WebElement element;", "type": "WebElement", "var_name": "element" }, { "declarator": "locator", "modifier": "@Mock\n private", "original_stri...
{ "body": "@Test\n public void testFailingConstructorHook() {\n List<HookDefinition<?>> hookDefinitions = new ArrayList<>();\n\n hookDefinitions.add(new HookDefinition<>(FailingConstructorHook.class));\n\n Assertions\n .assertThatThrownBy(() -> hookChainBuilder.build(() -> eleme...
{ "fields": [ { "declarator": "control", "modifier": "private final", "original_string": "private final FluentControl control;", "type": "FluentControl", "var_name": "control" }, { "declarator": "instantiator", "modifier": "private final", "original_string":...
{ "body": "@Override\n public List<FluentHook> build(Supplier<WebElement> elementSupplier, Supplier<ElementLocator> locator,\n Supplier<String> toStringSupplier, List<HookDefinition<?>> hooks) {\n List<FluentHook> chain = new ArrayList<>();\n\n Supplier<WebElement> currentSupplier = elemen...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_236
{ "fields": [], "file": "fluentlenium-core/src/test/java/org/fluentlenium/utils/UrlUtilsTest.java", "identifier": "UrlUtilsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testBaseUrlDefinedUrlNull() {\n String test = UrlUtils.concat(\"http://fluentlenium.com/path/\", null);\n Assertions.assertThat(test).isEqualTo(\"http://fluentlenium.com/path/\");\n }", "class_method_signature": "UrlUtilsTest.testBaseUrlDefinedUrlNull()", "constr...
{ "fields": [ { "declarator": "PATH_SEPARATOR = \"/\"", "modifier": "private static final", "original_string": "private static final String PATH_SEPARATOR = \"/\";", "type": "String", "var_name": "PATH_SEPARATOR" }, { "declarator": "HTTP = \"http\"", "modifier": "...
{ "body": "public static String concat(String baseUriSpec, String uriSpec) { // NOPMD CyclomaticComplexity NPathComplexity\n if (baseUriSpec != null && !baseUriSpec.endsWith(PATH_SEPARATOR)) {\n baseUriSpec = baseUriSpec + PATH_SEPARATOR;\n }\n URI baseUri = uriFromSpec(baseUriSpec);\n...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...
2088736_373
{ "fields": [ { "declarator": "webElement", "modifier": "@Mock\n private", "original_string": "@Mock\n private WebElement webElement;", "type": "WebElement", "var_name": "webElement" }, { "declarator": "webDriver", "modifier": "@Mock\n private", "or...
{ "body": "@Test\n public void isDisplayed() {\n assertThat(conditions.displayed()).isFalse();\n\n when(webElement.isDisplayed()).thenReturn(true);\n\n assertThat(conditions.displayed()).isTrue();\n }", "class_method_signature": "WebElementConditionsTest.isDisplayed()", "constructor": f...
{ "fields": [], "file": "fluentlenium-core/src/main/java/org/fluentlenium/core/conditions/WebElementConditions.java", "identifier": "WebElementConditions", "interfaces": "implements FluentConditions", "methods": [ { "class_method_signature": "WebElementConditions.WebElementConditions(FluentWebElemen...
{ "body": "@Override\n public boolean displayed() {\n return verify(FluentWebElement::displayed);\n }", "class_method_signature": "WebElementConditions.displayed()", "constructor": false, "full_signature": "@Override public boolean displayed()", "identifier": "displayed", "invocations": [ "...
{ "created": "7/22/2011 1:26:37 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2088736, "size": null, "stargazer_count": null, "stars": 723, "updates": "2020-01-25T15:44:19+00:00", "url": "https://github.com/FluentLenium/Flue...