id
stringlengths
7
14
test_class
dict
test_case
dict
focal_class
dict
focal_method
dict
repository
dict
17034809_23
{ "fields": [ { "declarator": "generatedFile", "modifier": "private", "original_string": "private File generatedFile;", "type": "File", "var_name": "generatedFile" } ], "file": "components/writers/src/test/java/org/datacleaner/extension/output/CreateExcelSpreadsheetAnalyzerTe...
{ "body": "@Test\n public void testValidateSheetName() throws Exception {\n final CreateExcelSpreadsheetAnalyzer analyzer = new CreateExcelSpreadsheetAnalyzer();\n analyzer.sheetName = \"foo\";\n analyzer.validate();\n\n analyzer.sheetName = \"foo.bar\";\n try {\n anal...
{ "fields": [ { "declarator": "PROPERTY_FILE = \"File\"", "modifier": "public static final", "original_string": "public static final String PROPERTY_FILE = \"File\";", "type": "String", "var_name": "PROPERTY_FILE" }, { "declarator": "PROPERTY_SHEET_NAME = \"Sheet name\"...
{ "body": "@Validate\n public void validate() {\n sheetName = sheetName.trim();\n\n if (sheetName.length() > SHEET_NAME_MAX_LENGTH) {\n throw new IllegalStateException(\"Sheet name must be maximum \" + SHEET_NAME_MAX_LENGTH + \" characters long\");\n }\n\n for (final char c :...
{ "created": null, "fork": null, "fork_count": 131, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 17034809, "size": 170383, "stargazer_count": 346, "stars": null, "updates": null, "url": "https://github.com/datacleaner/DataCleaner" }
17034809_58
{ "fields": [ { "declarator": "_transformer", "modifier": "private", "original_string": "private RemoveSubstringTransformer _transformer;", "type": "RemoveSubstringTransformer", "var_name": "_transformer" }, { "declarator": "_inputRow", "modifier": "private", ...
{ "body": "@Test\n public void testTransformSimpleNonRemoval() {\n final String[] result =\n _transformer.transform(new MockInputRow().put(_transformer.baseColumn, \"nothing of interest here\"));\n Assert.assertEquals(1, result.length);\n Assert.assertEquals(\"nothing of interes...
{ "fields": [ { "declarator": "baseColumn", "modifier": "@Configured(\"Base text column\")\n @Description(\"Column containing the text to subtract from\")", "original_string": "@Configured(\"Base text column\")\n @Description(\"Column containing the text to subtract from\")\n InputColum...
{ "body": "@Override\n public String[] transform(final InputRow inputRow) {\n String subtractedString = inputRow.getValue(baseColumn);\n for (final InputColumn<?> inputColumn : substringColumns) {\n final Object value = inputRow.getValue(inputColumn);\n if (value instanceof List...
{ "created": null, "fork": null, "fork_count": 131, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 17034809, "size": 170383, "stargazer_count": 346, "stars": null, "updates": null, "url": "https://github.com/datacleaner/DataCleaner" }
17034809_19
{ "fields": [ { "declarator": "analyzer", "modifier": "private", "original_string": "private CreateCsvFileAnalyzer analyzer;", "type": "CreateCsvFileAnalyzer", "var_name": "analyzer" } ], "file": "components/writers/src/test/java/org/datacleaner/extension/output/CreateCsvFile...
{ "body": "@Test\n public void testSortNumerical() throws Exception {\n analyzer = new CreateCsvFileAnalyzer();\n\n final InputColumn<String> testColumn = new MockInputColumn<>(\"TestColumn\");\n final InputColumn<Integer> idColumn = new MockInputColumn<>(\"IdToSort\", Integer.class);\n\n ...
{ "fields": [ { "declarator": "PROPERTY_FILE = \"File\"", "modifier": "public static final", "original_string": "public static final String PROPERTY_FILE = \"File\";", "type": "String", "var_name": "PROPERTY_FILE" }, { "declarator": "PROPERTY_OVERWRITE_FILE_IF_EXISTS = ...
{ "body": "@Initialize\n public void initTempFile() throws Exception {\n if (_targetResource == null) {\n if (columnToBeSortedOn != null) {\n tempFile = File.createTempFile(\"csv_file_analyzer\", \".csv\");\n _targetResource = new FileResource(tempFile);\n ...
{ "created": null, "fork": null, "fork_count": 131, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 17034809, "size": 170383, "stargazer_count": 346, "stars": null, "updates": null, "url": "https://github.com/datacleaner/DataCleaner" }
17034809_36
{ "fields": [ { "declarator": "dateValue = createDate()", "modifier": "private final", "original_string": "private final Date dateValue = createDate();", "type": "Date", "var_name": "dateValue" } ], "file": "components/writers/src/test/java/org/datacleaner/beans/writers/TypeC...
{ "body": "@Test(expected = IllegalArgumentException.class)\n public void shouldThrowForIntegerAndBooleanColumn() {\n final Column booleanColumn = new MutableColumn(\"foo\", ColumnType.BOOLEAN);\n TypeConverter.convertType(42, booleanColumn);\n\n }", "class_method_signature": "TypeConverterTest....
{ "fields": [], "file": "components/writers/src/main/java/org/datacleaner/beans/writers/TypeConverter.java", "identifier": "TypeConverter", "interfaces": "", "methods": [ { "class_method_signature": "TypeConverter.convertType(final Object value, final Column targetColumn)", "constructor": fals...
{ "body": "static Object convertType(final Object value, final Column targetColumn) throws IllegalArgumentException {\n if (value == null) {\n return null;\n }\n Object result = value;\n final ColumnType type = targetColumn.getType();\n if (type.isLiteral()) {\n ...
{ "created": null, "fork": null, "fork_count": 131, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 17034809, "size": 170383, "stargazer_count": 346, "stars": null, "updates": null, "url": "https://github.com/datacleaner/DataCleaner" }
17034809_61
{ "fields": [ { "declarator": "_transformer", "modifier": "private", "original_string": "private RemoveSubstringTransformer _transformer;", "type": "RemoveSubstringTransformer", "var_name": "_transformer" }, { "declarator": "_inputRow", "modifier": "private", ...
{ "body": "@Test\n public void testTransformWholeWords() {\n _transformer.wholeWordsOnly = true;\n final String[] result = _transformer.transform(_inputRow);\n Assert.assertEquals(1, result.length);\n Assert.assertEquals(\"hello goodbye, , , , c, , \", result[0]);\n }", "class_meth...
{ "fields": [ { "declarator": "baseColumn", "modifier": "@Configured(\"Base text column\")\n @Description(\"Column containing the text to subtract from\")", "original_string": "@Configured(\"Base text column\")\n @Description(\"Column containing the text to subtract from\")\n InputColum...
{ "body": "@Override\n public String[] transform(final InputRow inputRow) {\n String subtractedString = inputRow.getValue(baseColumn);\n for (final InputColumn<?> inputColumn : substringColumns) {\n final Object value = inputRow.getValue(inputColumn);\n if (value instanceof List...
{ "created": null, "fork": null, "fork_count": 131, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 17034809, "size": 170383, "stargazer_count": 346, "stars": null, "updates": null, "url": "https://github.com/datacleaner/DataCleaner" }
17034809_77
{ "fields": [], "file": "engine/core/src/test/java/org/datacleaner/extensions/CompoundClassloaderTest.java", "identifier": "CompoundClassloaderTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void shouldresolve() throws ClassNotFoundException {\n final ClassLoader globalParent = ClassLoaderUtils.getParentClassLoader();\n final File[] jarFiles = new File[] { new File(\"src/test/resources/FooBarPlugin.jar\") };\n\n final ClassLoader c1 = ClassLoaderUtils.cre...
{ "fields": [ { "declarator": "loaders", "modifier": "private", "original_string": "private Collection<ClassLoader> loaders;", "type": "Collection<ClassLoader>", "var_name": "loaders" } ], "file": "engine/core/src/main/java/org/datacleaner/extensions/CompoundClassLoader.java"...
{ "body": "@Override\n public Class<?> loadClass(final String name) throws ClassNotFoundException {\n return this.loadClass(name, false);\n }", "class_method_signature": "CompoundClassLoader.loadClass(final String name)", "constructor": false, "full_signature": "@Override public Class<?> loadClass(...
{ "created": null, "fork": null, "fork_count": 131, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 17034809, "size": 170383, "stargazer_count": 346, "stars": null, "updates": null, "url": "https://github.com/datacleaner/DataCleaner" }
17034809_20
{ "fields": [ { "declarator": "analyzer", "modifier": "private", "original_string": "private CreateCsvFileAnalyzer analyzer;", "type": "CreateCsvFileAnalyzer", "var_name": "analyzer" } ], "file": "components/writers/src/test/java/org/datacleaner/extension/output/CreateCsvFile...
{ "body": "@Test\n public void testSortLexicographic() throws Exception {\n final CreateCsvFileAnalyzer analyzer = new CreateCsvFileAnalyzer();\n\n final InputColumn<String> testColumn = new MockInputColumn<>(\"TestColumn\");\n final InputColumn<String> idColumn = new MockInputColumn<>(\"IdToS...
{ "fields": [ { "declarator": "PROPERTY_FILE = \"File\"", "modifier": "public static final", "original_string": "public static final String PROPERTY_FILE = \"File\";", "type": "String", "var_name": "PROPERTY_FILE" }, { "declarator": "PROPERTY_OVERWRITE_FILE_IF_EXISTS = ...
{ "body": "@Initialize\n public void initTempFile() throws Exception {\n if (_targetResource == null) {\n if (columnToBeSortedOn != null) {\n tempFile = File.createTempFile(\"csv_file_analyzer\", \".csv\");\n _targetResource = new FileResource(tempFile);\n ...
{ "created": null, "fork": null, "fork_count": 131, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 17034809, "size": 170383, "stargazer_count": 346, "stars": null, "updates": null, "url": "https://github.com/datacleaner/DataCleaner" }
17034809_82
{ "fields": [ { "declarator": "PASSWORD_ENCODED = \"enc:00em6E9KEO9FG42CH0yrVQ==\"", "modifier": "private static final", "original_string": "private static final String PASSWORD_ENCODED = \"enc:00em6E9KEO9FG42CH0yrVQ==\";", "type": "String", "var_name": "PASSWORD_ENCODED" }, ...
{ "body": "@Test\n public void testExternalizeCsvDatastore() throws Exception {\n final CsvDatastore ds = new CsvDatastore(\"foo\", \"foo.txt\");\n ds.setDescription(\"bar\");\n\n final Element elem = configurationWriter.toElement(ds, \"baz.txt\");\n\n final String str = transform(elem)...
{ "fields": [ { "declarator": "_document", "modifier": "private final", "original_string": "private final Document _document;", "type": "Document", "var_name": "_document" } ], "file": "engine/xml-config/src/main/java/org/datacleaner/configuration/DomConfigurationWriter.java"...
{ "body": "private Element toElement(final RegexStringPattern sp) {\n final Element elem = getDocument().createElement(\"regex-pattern\");\n elem.setAttribute(\"name\", sp.getName());\n if (!Strings.isNullOrEmpty(sp.getDescription())) {\n elem.setAttribute(\"description\", sp.getDescri...
{ "created": null, "fork": null, "fork_count": 131, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 17034809, "size": 170383, "stargazer_count": 346, "stars": null, "updates": null, "url": "https://github.com/datacleaner/DataCleaner" }
17034809_0
{ "fields": [], "file": "desktop/api/src/test/java/org/datacleaner/widgets/table/DCTableCellRendererTest.java", "identifier": "DCTableCellRendererTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testRenderClob() throws Exception {\n final Clob clob = new SerialClob(\"foo bar baz\".toCharArray());\n\n // assert that the toString() method is not \"foo bar baz\" because that\n // could be a potential implementation detail that would disturb the\n // ...
{ "fields": [ { "declarator": "logger = LoggerFactory.getLogger(DCTableCellRenderer.class)", "modifier": "private static final", "original_string": "private static final Logger logger = LoggerFactory.getLogger(DCTableCellRenderer.class);", "type": "Logger", "var_name": "logger" }...
{ "body": "@Override\n public Component getTableCellRendererComponent(final JTable table, Object value, final boolean isSelected,\n final boolean hasFocus, final int row, final int column) {\n logger.debug(\"getTableCellRendererComponent({},{})\", row, column);\n\n if (value != null && val...
{ "created": null, "fork": null, "fork_count": 131, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 17034809, "size": 170383, "stargazer_count": 346, "stars": null, "updates": null, "url": "https://github.com/datacleaner/DataCleaner" }
17034809_57
{ "fields": [ { "declarator": "_transformer", "modifier": "private", "original_string": "private RemoveSubstringTransformer _transformer;", "type": "RemoveSubstringTransformer", "var_name": "_transformer" }, { "declarator": "_inputRow", "modifier": "private", ...
{ "body": "@Test\n public void testTransformSimpleCaseSensitiveNonMatch() {\n final String[] result =\n _transformer.transform(new MockInputRow().put(_transformer.baseColumn, \"GOOD BYE CASE SENSITIVE GUY\"));\n Assert.assertEquals(1, result.length);\n Assert.assertEquals(\"GOOD...
{ "fields": [ { "declarator": "baseColumn", "modifier": "@Configured(\"Base text column\")\n @Description(\"Column containing the text to subtract from\")", "original_string": "@Configured(\"Base text column\")\n @Description(\"Column containing the text to subtract from\")\n InputColum...
{ "body": "@Override\n public String[] transform(final InputRow inputRow) {\n String subtractedString = inputRow.getValue(baseColumn);\n for (final InputColumn<?> inputColumn : substringColumns) {\n final Object value = inputRow.getValue(inputColumn);\n if (value instanceof List...
{ "created": null, "fork": null, "fork_count": 131, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 17034809, "size": 170383, "stargazer_count": 346, "stars": null, "updates": null, "url": "https://github.com/datacleaner/DataCleaner" }
17034809_16
{ "fields": [ { "declarator": "col = new MockInputColumn<>(\"Job title\")", "modifier": "private final", "original_string": "private final InputColumn<String> col = new MockInputColumn<>(\"Job title\");", "type": "InputColumn<String>", "var_name": "col" }, { "declarator...
{ "body": "@Test\n public void testWordBoundarySplitting() throws Throwable {\n transformer._removedMatchesType = RemovedMatchesType.STRING;\n\n assertEquals(\"\", transformer.transform(\"\")[0]);\n assertEquals(\"\", transformer.transform(\"\")[1]);\n\n assertEquals(\"., Software Engin...
{ "fields": [ { "declarator": "PROPERTY_DICTIONARY = \"Dictionary\"", "modifier": "public static final", "original_string": "public static final String PROPERTY_DICTIONARY = \"Dictionary\";", "type": "String", "var_name": "PROPERTY_DICTIONARY" }, { "declarator": "PROPER...
{ "body": "@Override\n public Object[] transform(final InputRow inputRow) {\n final String value = inputRow.getValue(_column);\n return transform(value);\n }", "class_method_signature": "RemoveDictionaryMatchesTransformer.transform(final InputRow inputRow)", "constructor": false, "full_signa...
{ "created": null, "fork": null, "fork_count": 131, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 17034809, "size": 170383, "stargazer_count": 346, "stars": null, "updates": null, "url": "https://github.com/datacleaner/DataCleaner" }
17034809_41
{ "fields": [ { "declarator": "expectedException = ExpectedException.none()", "modifier": "@Rule\n public final", "original_string": "@Rule\n public final ExpectedException expectedException = ExpectedException.none();", "type": "ExpectedException", "var_name": "expectedExcepti...
{ "body": "@Test\n public void testGetOutputDataType() throws Exception {\n final MockInputColumn<?> numberCol1 = new MockInputColumn<>(\"num1\", Number.class);\n final MockInputColumn<?> numberCol2 = new MockInputColumn<>(\"num1\", Number.class);\n final MockInputColumn<?> integerCol1 = new M...
{ "fields": [ { "declarator": "_inputColumnNames", "modifier": "private final", "original_string": "private final String[] _inputColumnNames;", "type": "String[]", "var_name": "_inputColumnNames" }, { "declarator": "_inputColumns", "modifier": "private final", ...
{ "body": "public Class<?> getOutputDataType() {\n Class<?> candidate = null;\n for (final InputColumn<?> inputColumn : _inputColumns) {\n final Class<?> dataType = inputColumn.getDataType();\n if (candidate == null) {\n candidate = dataType;\n } else if (...
{ "created": null, "fork": null, "fork_count": 131, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 17034809, "size": 170383, "stargazer_count": 346, "stars": null, "updates": null, "url": "https://github.com/datacleaner/DataCleaner" }
17034809_40
{ "fields": [], "file": "components/machine-learning/src/test/java/org/datacleaner/components/machinelearning/impl/VectorNGramFeatureModifierBuilderTest.java", "identifier": "VectorNGramFeatureModifierBuilderTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testBuild() {\n final VectorNGramFeatureModifierBuilder builder = new VectorNGramFeatureModifierBuilder(3);\n builder.addRecordValue(\"s-o s-h-o-r-t i-s i-g-n-o-r-e-d\");\n assertEquals(\"\", toString(builder));\n builder.addRecordValue(\"Hello world\");\n...
{ "fields": [ { "declarator": "gramLength", "modifier": "private final", "original_string": "private final int gramLength;", "type": "int", "var_name": "gramLength" }, { "declarator": "grams", "modifier": "private final", "original_string": "private final Mu...
{ "body": "@Override\n public MLFeatureModifier build() {\n return new VectorNGramFeatureModifier(gramLength, getGrams());\n }", "class_method_signature": "VectorNGramFeatureModifierBuilder.build()", "constructor": false, "full_signature": "@Override public MLFeatureModifier build()", "identifier...
{ "created": null, "fork": null, "fork_count": 131, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 17034809, "size": 170383, "stargazer_count": 346, "stars": null, "updates": null, "url": "https://github.com/datacleaner/DataCleaner" }
17034809_17
{ "fields": [ { "declarator": "col = new MockInputColumn<>(\"Job title\")", "modifier": "private final", "original_string": "private final InputColumn<String> col = new MockInputColumn<>(\"Job title\");", "type": "InputColumn<String>", "var_name": "col" }, { "declarator...
{ "body": "@Test\n public void testJobTitleScenarioRemovedMatchesAsString() throws Throwable {\n\n transformer._removedMatchesType = RemovedMatchesType.STRING;\n\n assertEquals(\"\", transformer.transform(\"\")[0]);\n assertEquals(\"\", transformer.transform(\"\")[1]);\n\n assertEquals(...
{ "fields": [ { "declarator": "PROPERTY_DICTIONARY = \"Dictionary\"", "modifier": "public static final", "original_string": "public static final String PROPERTY_DICTIONARY = \"Dictionary\";", "type": "String", "var_name": "PROPERTY_DICTIONARY" }, { "declarator": "PROPER...
{ "body": "@Override\n public Object[] transform(final InputRow inputRow) {\n final String value = inputRow.getValue(_column);\n return transform(value);\n }", "class_method_signature": "RemoveDictionaryMatchesTransformer.transform(final InputRow inputRow)", "constructor": false, "full_signa...
{ "created": null, "fork": null, "fork_count": 131, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 17034809, "size": 170383, "stargazer_count": 346, "stars": null, "updates": null, "url": "https://github.com/datacleaner/DataCleaner" }
17034809_56
{ "fields": [ { "declarator": "_transformer", "modifier": "private", "original_string": "private RemoveSubstringTransformer _transformer;", "type": "RemoveSubstringTransformer", "var_name": "_transformer" }, { "declarator": "_inputRow", "modifier": "private", ...
{ "body": "@Test\n public void testTransformSimpleRemoval() {\n final String[] result = _transformer.transform(_inputRow);\n Assert.assertEquals(1, result.length);\n Assert.assertEquals(\"hello good, , , , c, , flse\", result[0]);\n }", "class_method_signature": "RemoveSubstringTransforme...
{ "fields": [ { "declarator": "baseColumn", "modifier": "@Configured(\"Base text column\")\n @Description(\"Column containing the text to subtract from\")", "original_string": "@Configured(\"Base text column\")\n @Description(\"Column containing the text to subtract from\")\n InputColum...
{ "body": "@Override\n public String[] transform(final InputRow inputRow) {\n String subtractedString = inputRow.getValue(baseColumn);\n for (final InputColumn<?> inputColumn : substringColumns) {\n final Object value = inputRow.getValue(inputColumn);\n if (value instanceof List...
{ "created": null, "fork": null, "fork_count": 131, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 17034809, "size": 170383, "stargazer_count": 346, "stars": null, "updates": null, "url": "https://github.com/datacleaner/DataCleaner" }
17034809_1
{ "fields": [], "file": "desktop/api/src/test/java/org/datacleaner/widgets/table/DCTableCellRendererTest.java", "identifier": "DCTableCellRendererTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testRenderIcon() throws Exception {\n final Image image = new BufferedImage(10, 10, BufferedImage.TYPE_INT_RGB);\n final Icon icon = new ImageIcon(image);\n\n final DCTableCellRenderer renderer = new DCTableCellRenderer(null);\n final Component component =...
{ "fields": [ { "declarator": "logger = LoggerFactory.getLogger(DCTableCellRenderer.class)", "modifier": "private static final", "original_string": "private static final Logger logger = LoggerFactory.getLogger(DCTableCellRenderer.class);", "type": "Logger", "var_name": "logger" }...
{ "body": "@Override\n public Component getTableCellRendererComponent(final JTable table, Object value, final boolean isSelected,\n final boolean hasFocus, final int row, final int column) {\n logger.debug(\"getTableCellRendererComponent({},{})\", row, column);\n\n if (value != null && val...
{ "created": null, "fork": null, "fork_count": 131, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 17034809, "size": 170383, "stargazer_count": 346, "stars": null, "updates": null, "url": "https://github.com/datacleaner/DataCleaner" }
17034809_83
{ "fields": [ { "declarator": "PASSWORD_ENCODED = \"enc:00em6E9KEO9FG42CH0yrVQ==\"", "modifier": "private static final", "original_string": "private static final String PASSWORD_ENCODED = \"enc:00em6E9KEO9FG42CH0yrVQ==\";", "type": "String", "var_name": "PASSWORD_ENCODED" }, ...
{ "body": "@Test\n public void testExternalizeExcelDatastore() throws Exception {\n final ExcelDatastore ds = new ExcelDatastore(\"foo\", new FileResource(\"foo.txt\"), \"foo.txt\");\n ds.setDescription(\"bar\");\n\n final Element elem = configurationWriter.toElement(ds, \"baz.txt\");\n\n ...
{ "fields": [ { "declarator": "_document", "modifier": "private final", "original_string": "private final Document _document;", "type": "Document", "var_name": "_document" } ], "file": "engine/xml-config/src/main/java/org/datacleaner/configuration/DomConfigurationWriter.java"...
{ "body": "private Element toElement(final RegexStringPattern sp) {\n final Element elem = getDocument().createElement(\"regex-pattern\");\n elem.setAttribute(\"name\", sp.getName());\n if (!Strings.isNullOrEmpty(sp.getDescription())) {\n elem.setAttribute(\"description\", sp.getDescri...
{ "created": null, "fork": null, "fork_count": 131, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 17034809, "size": 170383, "stargazer_count": 346, "stars": null, "updates": null, "url": "https://github.com/datacleaner/DataCleaner" }
17034809_21
{ "fields": [ { "declarator": "analyzer", "modifier": "private", "original_string": "private CreateCsvFileAnalyzer analyzer;", "type": "CreateCsvFileAnalyzer", "var_name": "analyzer" } ], "file": "components/writers/src/test/java/org/datacleaner/extension/output/CreateCsvFile...
{ "body": "@Test\n public void testSortLexicographicCaseSensitivity() throws Exception {\n final CreateCsvFileAnalyzer analyzer = new CreateCsvFileAnalyzer();\n\n final InputColumn<String> sortColumn = new MockInputColumn<>(\"SortColumn\");\n final InputColumn<String> someColumn = new MockInpu...
{ "fields": [ { "declarator": "PROPERTY_FILE = \"File\"", "modifier": "public static final", "original_string": "public static final String PROPERTY_FILE = \"File\";", "type": "String", "var_name": "PROPERTY_FILE" }, { "declarator": "PROPERTY_OVERWRITE_FILE_IF_EXISTS = ...
{ "body": "@Initialize\n public void initTempFile() throws Exception {\n if (_targetResource == null) {\n if (columnToBeSortedOn != null) {\n tempFile = File.createTempFile(\"csv_file_analyzer\", \".csv\");\n _targetResource = new FileResource(tempFile);\n ...
{ "created": null, "fork": null, "fork_count": 131, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 17034809, "size": 170383, "stargazer_count": 346, "stars": null, "updates": null, "url": "https://github.com/datacleaner/DataCleaner" }
17034809_76
{ "fields": [ { "declarator": "dp", "modifier": "", "original_string": "CompositeDescriptorProvider dp;", "type": "CompositeDescriptorProvider", "var_name": "dp" }, { "declarator": "ad1", "modifier": "", "original_string": "AnalyzerDescriptor<?> ad1;", ...
{ "body": "@Test\n public void testGetAnalyzerDescriptorByClass() {\n Assert.assertEquals(ad1, dp.getAnalyzerDescriptorForClass(AnalyzerMock.class));\n Assert.assertEquals(ad2, dp.getAnalyzerDescriptorForClass(\n AnnotationBasedAnalyzerComponentDescriptorTest.OneMoreMockAnalyzer.class)...
{ "fields": [ { "declarator": "delegates", "modifier": "private final", "original_string": "private final List<DescriptorProvider> delegates;", "type": "List<DescriptorProvider>", "var_name": "delegates" }, { "declarator": "activeListeners", "modifier": "private f...
{ "body": "@Override\n public <A extends Analyzer<?>> AnalyzerDescriptor<A> getAnalyzerDescriptorForClass(final Class<A> analyzerClass) {\n for (final DescriptorProvider provider : delegates) {\n final AnalyzerDescriptor<A> descriptor = provider.getAnalyzerDescriptorForClass(analyzerClass);\n ...
{ "created": null, "fork": null, "fork_count": 131, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 17034809, "size": 170383, "stargazer_count": 346, "stars": null, "updates": null, "url": "https://github.com/datacleaner/DataCleaner" }
17034809_60
{ "fields": [ { "declarator": "_transformer", "modifier": "private", "original_string": "private RemoveSubstringTransformer _transformer;", "type": "RemoveSubstringTransformer", "var_name": "_transformer" }, { "declarator": "_inputRow", "modifier": "private", ...
{ "body": "@Test\n public void testTransformNullReplacementColumn() {\n final String[] result = _transformer.transform(new MockInputRow().put(_transformer.baseColumn, \"foo\"));\n Assert.assertEquals(1, result.length);\n Assert.assertEquals(\"foo\", result[0]);\n }", "class_method_signatu...
{ "fields": [ { "declarator": "baseColumn", "modifier": "@Configured(\"Base text column\")\n @Description(\"Column containing the text to subtract from\")", "original_string": "@Configured(\"Base text column\")\n @Description(\"Column containing the text to subtract from\")\n InputColum...
{ "body": "@Override\n public String[] transform(final InputRow inputRow) {\n String subtractedString = inputRow.getValue(baseColumn);\n for (final InputColumn<?> inputColumn : substringColumns) {\n final Object value = inputRow.getValue(inputColumn);\n if (value instanceof List...
{ "created": null, "fork": null, "fork_count": 131, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 17034809, "size": 170383, "stargazer_count": 346, "stars": null, "updates": null, "url": "https://github.com/datacleaner/DataCleaner" }
17034809_37
{ "fields": [ { "declarator": "dateValue = createDate()", "modifier": "private final", "original_string": "private final Date dateValue = createDate();", "type": "Date", "var_name": "dateValue" } ], "file": "components/writers/src/test/java/org/datacleaner/beans/writers/TypeC...
{ "body": "@Test(expected = IllegalArgumentException.class)\n public void shouldThrowForDoubleAndBooleanColumn() {\n final Column booleanColumn = new MutableColumn(\"foo\", ColumnType.BOOLEAN);\n TypeConverter.convertType(42.3d, booleanColumn);\n\n }", "class_method_signature": "TypeConverterTes...
{ "fields": [], "file": "components/writers/src/main/java/org/datacleaner/beans/writers/TypeConverter.java", "identifier": "TypeConverter", "interfaces": "", "methods": [ { "class_method_signature": "TypeConverter.convertType(final Object value, final Column targetColumn)", "constructor": fals...
{ "body": "static Object convertType(final Object value, final Column targetColumn) throws IllegalArgumentException {\n if (value == null) {\n return null;\n }\n Object result = value;\n final ColumnType type = targetColumn.getType();\n if (type.isLiteral()) {\n ...
{ "created": null, "fork": null, "fork_count": 131, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 17034809, "size": 170383, "stargazer_count": 346, "stars": null, "updates": null, "url": "https://github.com/datacleaner/DataCleaner" }
17034809_84
{ "fields": [ { "declarator": "PASSWORD_ENCODED = \"enc:00em6E9KEO9FG42CH0yrVQ==\"", "modifier": "private static final", "original_string": "private static final String PASSWORD_ENCODED = \"enc:00em6E9KEO9FG42CH0yrVQ==\";", "type": "String", "var_name": "PASSWORD_ENCODED" }, ...
{ "body": "@Test\n public void testExternalizeDynamoDatastore() throws Exception {\n final DynamoDbDatastore ds = new DynamoDbDatastore(\"my dyno\", \"west\", \"key\", \"secret\", null); \n ds.setDescription(\"bar\");\n\n final Element elem = configurationWriter.toElement(ds);\n\n final...
{ "fields": [ { "declarator": "_document", "modifier": "private final", "original_string": "private final Document _document;", "type": "Document", "var_name": "_document" } ], "file": "engine/xml-config/src/main/java/org/datacleaner/configuration/DomConfigurationWriter.java"...
{ "body": "private Element toElement(final RegexStringPattern sp) {\n final Element elem = getDocument().createElement(\"regex-pattern\");\n elem.setAttribute(\"name\", sp.getName());\n if (!Strings.isNullOrEmpty(sp.getDescription())) {\n elem.setAttribute(\"description\", sp.getDescri...
{ "created": null, "fork": null, "fork_count": 131, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 17034809, "size": 170383, "stargazer_count": 346, "stars": null, "updates": null, "url": "https://github.com/datacleaner/DataCleaner" }
17034809_6
{ "fields": [ { "declarator": "logger = LoggerFactory.getLogger(OpenAnalysisJobAsTemplateDialogTest.class)", "modifier": "private static final", "original_string": "private static final Logger logger = LoggerFactory.getLogger(OpenAnalysisJobAsTemplateDialogTest.class);", "type": "Logger", ...
{ "body": "@Test\n public void testRefreshOpenButtonVisibility() throws Exception {\n if (!GraphicsEnvironment.isHeadless()) {\n getDialog().refreshOpenButtonVisibility();\n }\n }", "class_method_signature": "OpenAnalysisJobAsTemplateDialogTest.testRefreshOpenButtonVisibility()", "c...
{ "fields": [ { "declarator": "serialVersionUID = 1L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = 1L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "logger = LoggerFactory.getLogger(OpenAnal...
{ "body": "public void refreshOpenButtonVisibility() {\n if (_datastore == null) { // no datastore selected\n _openButton.setEnabled(false);\n return;\n }\n\n for (final List<SourceColumnComboBox> comboBoxes : _sourceColumnComboBoxes.values()) {\n for (final Sourc...
{ "created": null, "fork": null, "fork_count": 131, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 17034809, "size": 170383, "stargazer_count": 346, "stars": null, "updates": null, "url": "https://github.com/datacleaner/DataCleaner" }
17034809_51
{ "fields": [ { "declarator": "_textCaseTransformer", "modifier": "private", "original_string": "private TextCaseTransformer _textCaseTransformer;", "type": "TextCaseTransformer", "var_name": "_textCaseTransformer" }, { "declarator": "_nameColumn", "modifier": "pr...
{ "body": "@Test\n public void testCapitalizeSentences() {\n final TextCaseTransformer transformer = new TextCaseTransformer();\n transformer.mode = TextCaseTransformer.TransformationMode.CAPITALIZE_SENTENCES;\n\n assertEquals(\"Hello world. Foo bar! Foo\", transformer.transform(\"hello World....
{ "fields": [ { "declarator": "VALUE_PROPERTY = \"Value\"", "modifier": "public static final", "original_string": "public static final String VALUE_PROPERTY = \"Value\";", "type": "String", "var_name": "VALUE_PROPERTY" }, { "declarator": "MODE_PROPERTY = \"Mode\"", ...
{ "body": "@Override\n public String[] transform(final InputRow row) {\n final String value = row.getValue(valueColumn);\n final String[] result = new String[1];\n result[0] = transform(value);\n return result;\n }", "class_method_signature": "TextCaseTransformer.transform(final In...
{ "created": null, "fork": null, "fork_count": 131, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 17034809, "size": 170383, "stargazer_count": 346, "stars": null, "updates": null, "url": "https://github.com/datacleaner/DataCleaner" }
17034809_10
{ "fields": [ { "declarator": "logger = LoggerFactory.getLogger(OpenAnalysisJobAsTemplateDialogTest.class)", "modifier": "private static final", "original_string": "private static final Logger logger = LoggerFactory.getLogger(OpenAnalysisJobAsTemplateDialogTest.class);", "type": "Logger", ...
{ "body": "@Test\n public void testGetDialogContent() throws Exception {\n if (!GraphicsEnvironment.isHeadless()) {\n assertTrue(getDialog().getDialogContent() instanceof JScrollPane);\n }\n }", "class_method_signature": "OpenAnalysisJobAsTemplateDialogTest.testGetDialogContent()", ...
{ "fields": [ { "declarator": "serialVersionUID = 1L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = 1L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "logger = LoggerFactory.getLogger(OpenAnal...
{ "body": "@Override\n protected JComponent getDialogContent() {\n return new DialogContentMaker().make();\n }", "class_method_signature": "OpenAnalysisJobAsTemplateDialog.getDialogContent()", "constructor": false, "full_signature": "@Override protected JComponent getDialogContent()", "identifier...
{ "created": null, "fork": null, "fork_count": 131, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 17034809, "size": 170383, "stargazer_count": 346, "stars": null, "updates": null, "url": "https://github.com/datacleaner/DataCleaner" }
17034809_47
{ "fields": [ { "declarator": "_textCaseTransformer", "modifier": "private", "original_string": "private TextCaseTransformer _textCaseTransformer;", "type": "TextCaseTransformer", "var_name": "_textCaseTransformer" }, { "declarator": "_nameColumn", "modifier": "pr...
{ "body": "@Test\n public void testCapitalizeEveryWord() {\n _textCaseTransformer.mode = TransformationMode.CAPITALIZE_WORDS;\n putData(\"Klaus-Dieter\");\n final String[] result = _textCaseTransformer.transform(_inputRow);\n assertNotNull(result);\n assertEquals(\"Klaus-Dieter\"...
{ "fields": [ { "declarator": "VALUE_PROPERTY = \"Value\"", "modifier": "public static final", "original_string": "public static final String VALUE_PROPERTY = \"Value\";", "type": "String", "var_name": "VALUE_PROPERTY" }, { "declarator": "MODE_PROPERTY = \"Mode\"", ...
{ "body": "@Override\n public String[] transform(final InputRow row) {\n final String value = row.getValue(valueColumn);\n final String[] result = new String[1];\n result[0] = transform(value);\n return result;\n }", "class_method_signature": "TextCaseTransformer.transform(final In...
{ "created": null, "fork": null, "fork_count": 131, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 17034809, "size": 170383, "stargazer_count": 346, "stars": null, "updates": null, "url": "https://github.com/datacleaner/DataCleaner" }
17034809_30
{ "fields": [], "file": "components/writers/src/test/java/org/datacleaner/beans/writers/WriteDataResultHtmlRendererTest.java", "identifier": "WriteDataResultHtmlRendererTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testRendering() {\n final WriteDataResult result = new WriteDataResultImpl(2, 3, \"datastore\", \"schema\", \"table\");\n final WriteDataResultHtmlRenderer renderer = new WriteDataResultHtmlRenderer();\n final HtmlFragment htmlFragment = renderer.render(result);\...
{ "fields": [ { "declarator": "_configuration", "modifier": "@Inject", "original_string": "@Inject\n DataCleanerConfiguration _configuration;", "type": "DataCleanerConfiguration", "var_name": "_configuration" } ], "file": "components/writers/src/main/java/org/datacleaner/b...
{ "body": "@Override\n public HtmlFragment render(final WriteDataResult r) {\n final int inserts = r.getWrittenRowCount();\n final int updates = r.getUpdatesCount();\n final int errors = r.getErrorRowCount();\n final int total = inserts + updates + errors;\n final Datastore datas...
{ "created": null, "fork": null, "fork_count": 131, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 17034809, "size": 170383, "stargazer_count": 346, "stars": null, "updates": null, "url": "https://github.com/datacleaner/DataCleaner" }
17034809_88
{ "fields": [ { "declarator": "PASSWORD_ENCODED = \"enc:00em6E9KEO9FG42CH0yrVQ==\"", "modifier": "private static final", "original_string": "private static final String PASSWORD_ENCODED = \"enc:00em6E9KEO9FG42CH0yrVQ==\";", "type": "String", "var_name": "PASSWORD_ENCODED" }, ...
{ "body": "@Test\n public void testExternalizeSalesforceDatastoreWithPassword() throws Exception {\n final Datastore ds1 = new SalesforceDatastore(\"name\", \"username\", \"password\", \"securityToken\");\n\n final Element externalized = configurationWriter.externalize(ds1);\n assertEquals(\"<...
{ "fields": [ { "declarator": "_document", "modifier": "private final", "original_string": "private final Document _document;", "type": "Document", "var_name": "_document" } ], "file": "engine/xml-config/src/main/java/org/datacleaner/configuration/DomConfigurationWriter.java"...
{ "body": "public Element externalize(final ServerInformation serverInformation) throws UnsupportedOperationException {\n if (serverInformation == null) {\n throw new IllegalArgumentException(\"ServerInformation cannot be null\");\n }\n\n final Element elem;\n\n if (serverInform...
{ "created": null, "fork": null, "fork_count": 131, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 17034809, "size": 170383, "stargazer_count": 346, "stars": null, "updates": null, "url": "https://github.com/datacleaner/DataCleaner" }
17034809_67
{ "fields": [], "file": "components/basic-analyzers/src/test/java/org/datacleaner/beans/BooleanAnalyzerReducerTest.java", "identifier": "BooleanAnalyzerReducerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void test() throws Throwable {\n final AnalysisJobBuilder jobBuilder = getAnalysisJobBuilder();\n final AnalysisJobBuilder jobBuilder1 = getAnalysisJobBuilder();\n final AnalysisJobBuilder jobBuilder2 = getAnalysisJobBuilder();\n final AnalysisJobBuilder jobBui...
{ "fields": [ { "declarator": "frequentValueCombinationComparator =\n (o1, o2) -> {\n\n Number result = CrosstabReducerHelper.subtract(o2.getValue(), o1.getValue());\n if (result.intValue() == 0) {\n result = o2.getKey().compareTo(o1.getKey());\n ...
{ "body": "@Override\n public BooleanAnalyzerResult reduce(final Collection<? extends BooleanAnalyzerResult> partialResults) {\n if (partialResults.isEmpty()) {\n return null;\n }\n\n // Create the dimensions\n final List<CrosstabDimension> columnStatisticCrosstabDimensions =...
{ "created": null, "fork": null, "fork_count": 131, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 17034809, "size": 170383, "stargazer_count": 346, "stars": null, "updates": null, "url": "https://github.com/datacleaner/DataCleaner" }
17034809_71
{ "fields": [ { "declarator": "configuration = new DataCleanerConfigurationImpl()", "modifier": "private final", "original_string": "private final DataCleanerConfiguration configuration = new DataCleanerConfigurationImpl();", "type": "DataCleanerConfiguration", "var_name": "configura...
{ "body": "@Test\n public void testParse() throws Exception {\n final ResourceConverter resourceConverter = new ResourceConverter(configuration);\n assertEquals(\"url\", resourceConverter.parseStructure(\"url://foobar\").getScheme());\n assertEquals(\"foobar\", resourceConverter.parseStructure...
{ "fields": [ { "declarator": "DEFAULT_DEFAULT_SCHEME = FileResourceTypeHandler.DEFAULT_SCHEME", "modifier": "@Deprecated\n public static final", "original_string": "@Deprecated\n public static final String DEFAULT_DEFAULT_SCHEME = FileResourceTypeHandler.DEFAULT_SCHEME;", "type": "S...
{ "body": "public ResourceStructure parseStructure(final String str) {\n final Matcher matcher = RESOURCE_PATTERN.matcher(str);\n if (!matcher.find()) {\n logger.info(\"Did not find any scheme definition in resource path: {}. Using default scheme: {}.\", str,\n _defaultSche...
{ "created": null, "fork": null, "fork_count": 131, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 17034809, "size": 170383, "stargazer_count": 346, "stars": null, "updates": null, "url": "https://github.com/datacleaner/DataCleaner" }
17034809_26
{ "fields": [ { "declarator": "generatedFile", "modifier": "private", "original_string": "private File generatedFile;", "type": "File", "var_name": "generatedFile" } ], "file": "components/writers/src/test/java/org/datacleaner/extension/output/CreateExcelSpreadsheetAnalyzerTe...
{ "body": "@Test\n public void testSortNumerical() throws Exception {\n final String filename = \"target/exceltest-sortnumerical.xlsx\";\n\n final CreateExcelSpreadsheetAnalyzer analyzer = new CreateExcelSpreadsheetAnalyzer();\n\n final InputColumn<String> testColumn = new MockInputColumn<>(\"...
{ "fields": [ { "declarator": "PROPERTY_FILE = \"File\"", "modifier": "public static final", "original_string": "public static final String PROPERTY_FILE = \"File\";", "type": "String", "var_name": "PROPERTY_FILE" }, { "declarator": "PROPERTY_SHEET_NAME = \"Sheet name\"...
{ "body": "@Validate\n public void validate() {\n sheetName = sheetName.trim();\n\n if (sheetName.length() > SHEET_NAME_MAX_LENGTH) {\n throw new IllegalStateException(\"Sheet name must be maximum \" + SHEET_NAME_MAX_LENGTH + \" characters long\");\n }\n\n for (final char c :...
{ "created": null, "fork": null, "fork_count": 131, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 17034809, "size": 170383, "stargazer_count": 346, "stars": null, "updates": null, "url": "https://github.com/datacleaner/DataCleaner" }
17034809_27
{ "fields": [ { "declarator": "generatedFile", "modifier": "private", "original_string": "private File generatedFile;", "type": "File", "var_name": "generatedFile" } ], "file": "components/writers/src/test/java/org/datacleaner/extension/output/CreateExcelSpreadsheetAnalyzerTe...
{ "body": "@Test\n public void testSortLexicographic() throws Exception {\n final String filename = \"target/exceltest-sortlexicographic.xlsx\";\n\n final CreateExcelSpreadsheetAnalyzer analyzer = new CreateExcelSpreadsheetAnalyzer();\n\n final InputColumn<String> testColumn = new MockInputCol...
{ "fields": [ { "declarator": "PROPERTY_FILE = \"File\"", "modifier": "public static final", "original_string": "public static final String PROPERTY_FILE = \"File\";", "type": "String", "var_name": "PROPERTY_FILE" }, { "declarator": "PROPERTY_SHEET_NAME = \"Sheet name\"...
{ "body": "@Validate\n public void validate() {\n sheetName = sheetName.trim();\n\n if (sheetName.length() > SHEET_NAME_MAX_LENGTH) {\n throw new IllegalStateException(\"Sheet name must be maximum \" + SHEET_NAME_MAX_LENGTH + \" characters long\");\n }\n\n for (final char c :...
{ "created": null, "fork": null, "fork_count": 131, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 17034809, "size": 170383, "stargazer_count": 346, "stars": null, "updates": null, "url": "https://github.com/datacleaner/DataCleaner" }
17034809_70
{ "fields": [ { "declarator": "_transformer = new ResolveHostnameTransformer()", "modifier": "private final", "original_string": "private final ResolveHostnameTransformer _transformer = new ResolveHostnameTransformer();", "type": "ResolveHostnameTransformer", "var_name": "_transforme...
{ "body": "@Test\n public void testGetOutputColumns() throws Exception {\n assertEquals(\"OutputColumns[host (ip address)]\", _transformer.getOutputColumns().toString());\n }", "class_method_signature": "ResolveHostnameTransformerTest.testGetOutputColumns()", "constructor": false, "full_signature":...
{ "fields": [ { "declarator": "logger = LoggerFactory.getLogger(ResolveHostnameTransformer.class)", "modifier": "private static final", "original_string": "private static final Logger logger = LoggerFactory.getLogger(ResolveHostnameTransformer.class);", "type": "Logger", "var_name": ...
{ "body": "@Override\n public OutputColumns getOutputColumns() {\n return new OutputColumns(String.class, hostnameColumn.getName() + \" (ip address)\");\n }", "class_method_signature": "ResolveHostnameTransformer.getOutputColumns()", "constructor": false, "full_signature": "@Override public OutputC...
{ "created": null, "fork": null, "fork_count": 131, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 17034809, "size": 170383, "stargazer_count": 346, "stars": null, "updates": null, "url": "https://github.com/datacleaner/DataCleaner" }
17034809_89
{ "fields": [ { "declarator": "PASSWORD_ENCODED = \"enc:00em6E9KEO9FG42CH0yrVQ==\"", "modifier": "private static final", "original_string": "private static final String PASSWORD_ENCODED = \"enc:00em6E9KEO9FG42CH0yrVQ==\";", "type": "String", "var_name": "PASSWORD_ENCODED" }, ...
{ "body": "@Test\n public void testExternalizeJsonDatastore() throws Exception {\n final JsonDatastore jsonDatastore = new JsonDatastore(\"my Json\", new FileResource(\"c:/test/json.json\"));\n jsonDatastore.setDescription(\"My Json datastore\");\n final Element elem = configurationWriter.toEl...
{ "fields": [ { "declarator": "_document", "modifier": "private final", "original_string": "private final Document _document;", "type": "Document", "var_name": "_document" } ], "file": "engine/xml-config/src/main/java/org/datacleaner/configuration/DomConfigurationWriter.java"...
{ "body": "private Element toElement(final RegexStringPattern sp) {\n final Element elem = getDocument().createElement(\"regex-pattern\");\n elem.setAttribute(\"name\", sp.getName());\n if (!Strings.isNullOrEmpty(sp.getDescription())) {\n elem.setAttribute(\"description\", sp.getDescri...
{ "created": null, "fork": null, "fork_count": 131, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 17034809, "size": 170383, "stargazer_count": 346, "stars": null, "updates": null, "url": "https://github.com/datacleaner/DataCleaner" }
17034809_66
{ "fields": [ { "declarator": "input = new MockInputColumn<>(\"input\")", "modifier": "private final", "original_string": "private final InputColumn<String> input = new MockInputColumn<>(\"input\");", "type": "InputColumn<String>", "var_name": "input" } ], "file": "components...
{ "body": "@Test(expected = IllegalArgumentException.class)\n public void testRecursiveReplacement() throws Exception {\n final PlainSearchReplaceTransformer transformer = createTransformer();\n transformer.replacements.put(\"foo\", \"foo bar foo\");\n transformer.validate();\n }", "class...
{ "fields": [ { "declarator": "REPLACEMENTS_PROPERTY_NAME = \"Replacements\"", "modifier": "private static final", "original_string": "private static final String REPLACEMENTS_PROPERTY_NAME = \"Replacements\";", "type": "String", "var_name": "REPLACEMENTS_PROPERTY_NAME" }, { ...
{ "body": "@Validate\n public void validate() {\n for (final Entry<String, String> entry : replacements.entrySet()) {\n final String searchString = entry.getKey();\n if (Strings.isNullOrEmpty(searchString)) {\n throw new IllegalArgumentException(\"Search string cannot be...
{ "created": null, "fork": null, "fork_count": 131, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 17034809, "size": 170383, "stargazer_count": 346, "stars": null, "updates": null, "url": "https://github.com/datacleaner/DataCleaner" }
17034809_31
{ "fields": [ { "declarator": "dateValue = createDate()", "modifier": "private final", "original_string": "private final Date dateValue = createDate();", "type": "Date", "var_name": "dateValue" } ], "file": "components/writers/src/test/java/org/datacleaner/beans/writers/TypeC...
{ "body": "@Test\n public void shouldReturnAStringTypeForLiteralColumn() {\n final Column literalColumn = new MutableColumn(\"foo\", ColumnType.CHAR);\n\n Object result = TypeConverter.convertType(\"bla\", literalColumn);\n assertTrue(result instanceof String);\n assertEquals(\"bla\", r...
{ "fields": [], "file": "components/writers/src/main/java/org/datacleaner/beans/writers/TypeConverter.java", "identifier": "TypeConverter", "interfaces": "", "methods": [ { "class_method_signature": "TypeConverter.convertType(final Object value, final Column targetColumn)", "constructor": fals...
{ "body": "static Object convertType(final Object value, final Column targetColumn) throws IllegalArgumentException {\n if (value == null) {\n return null;\n }\n Object result = value;\n final ColumnType type = targetColumn.getType();\n if (type.isLiteral()) {\n ...
{ "created": null, "fork": null, "fork_count": 131, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 17034809, "size": 170383, "stargazer_count": 346, "stars": null, "updates": null, "url": "https://github.com/datacleaner/DataCleaner" }
17034809_46
{ "fields": [ { "declarator": "INPUT = \"This is the input value...\"", "modifier": "private static final", "original_string": "private static final String INPUT = \"This is the input value...\";", "type": "String", "var_name": "INPUT" }, { "declarator": "_column", ...
{ "body": "@Test\n public void testGetOutputColumns() throws Exception {\n final HashTransformer transformer = new HashTransformer(new InputColumn[] { _column },\n HashTransformer.Algorithm.SHA_512);\n assertEquals(2, transformer.getOutputColumns().getColumnCount());\n assertEqu...
{ "fields": [ { "declarator": "_columns", "modifier": "@Configured", "original_string": "@Configured\n InputColumn<?>[] _columns;", "type": "InputColumn<?>[]", "var_name": "_columns" }, { "declarator": "_algorithm", "modifier": "@Configured", "original_st...
{ "body": "@Override\n public OutputColumns getOutputColumns() {\n final StringJoiner joiner = new StringJoiner(\", \");\n\n for (InputColumn<?> column : _columns) {\n joiner.add(column.getName());\n }\n\n return new OutputColumns(String.class, \"Hash of \" + joiner.toString(...
{ "created": null, "fork": null, "fork_count": 131, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 17034809, "size": 170383, "stargazer_count": 346, "stars": null, "updates": null, "url": "https://github.com/datacleaner/DataCleaner" }
17034809_11
{ "fields": [ { "declarator": "logger = LoggerFactory.getLogger(OpenAnalysisJobAsTemplateDialogTest.class)", "modifier": "private static final", "original_string": "private static final Logger logger = LoggerFactory.getLogger(OpenAnalysisJobAsTemplateDialogTest.class);", "type": "Logger", ...
{ "body": "@Test\n public void testGetWindowTitle() throws Exception {\n if (!GraphicsEnvironment.isHeadless()) {\n assertEquals(\"Open analysis job as template\", getDialog().getWindowTitle());\n }\n }", "class_method_signature": "OpenAnalysisJobAsTemplateDialogTest.testGetWindowTitl...
{ "fields": [ { "declarator": "serialVersionUID = 1L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = 1L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "logger = LoggerFactory.getLogger(OpenAnal...
{ "body": "@Override\n public String getWindowTitle() {\n return \"Open analysis job as template\";\n }", "class_method_signature": "OpenAnalysisJobAsTemplateDialog.getWindowTitle()", "constructor": false, "full_signature": "@Override public String getWindowTitle()", "identifier": "getWindowTitle...
{ "created": null, "fork": null, "fork_count": 131, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 17034809, "size": 170383, "stargazer_count": 346, "stars": null, "updates": null, "url": "https://github.com/datacleaner/DataCleaner" }
17034809_50
{ "fields": [ { "declarator": "_textCaseTransformer", "modifier": "private", "original_string": "private TextCaseTransformer _textCaseTransformer;", "type": "TextCaseTransformer", "var_name": "_textCaseTransformer" }, { "declarator": "_nameColumn", "modifier": "pr...
{ "body": "@Test\n public void testCapitalizeSentances() {\n _textCaseTransformer.mode = TransformationMode.CAPITALIZE_SENTENCES;\n final String result = _textCaseTransformer.transform(\"i have a good day.\");\n assertEquals(\"I have a good day.\", result);\n }", "class_method_signature":...
{ "fields": [ { "declarator": "VALUE_PROPERTY = \"Value\"", "modifier": "public static final", "original_string": "public static final String VALUE_PROPERTY = \"Value\";", "type": "String", "var_name": "VALUE_PROPERTY" }, { "declarator": "MODE_PROPERTY = \"Mode\"", ...
{ "body": "@Override\n public String[] transform(final InputRow row) {\n final String value = row.getValue(valueColumn);\n final String[] result = new String[1];\n result[0] = transform(value);\n return result;\n }", "class_method_signature": "TextCaseTransformer.transform(final In...
{ "created": null, "fork": null, "fork_count": 131, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 17034809, "size": 170383, "stargazer_count": 346, "stars": null, "updates": null, "url": "https://github.com/datacleaner/DataCleaner" }
17034809_7
{ "fields": [ { "declarator": "logger = LoggerFactory.getLogger(OpenAnalysisJobAsTemplateDialogTest.class)", "modifier": "private static final", "original_string": "private static final Logger logger = LoggerFactory.getLogger(OpenAnalysisJobAsTemplateDialogTest.class);", "type": "Logger", ...
{ "body": "@Test\n public void testGetSourceColumnMapping() throws Exception {\n if (!GraphicsEnvironment.isHeadless()) {\n assertTrue(getDialog().getSourceColumnMapping() instanceof SourceColumnMapping);\n }\n }", "class_method_signature": "OpenAnalysisJobAsTemplateDialogTest.testGet...
{ "fields": [ { "declarator": "serialVersionUID = 1L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = 1L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "logger = LoggerFactory.getLogger(OpenAnal...
{ "body": "public SourceColumnMapping getSourceColumnMapping() {\n for (final List<SourceColumnComboBox> comboBoxes : _sourceColumnComboBoxes.values()) {\n for (final SourceColumnComboBox comboBox : comboBoxes) {\n _sourceColumnMapping.setColumn(comboBox.getName(), comboBox.getSelecte...
{ "created": null, "fork": null, "fork_count": 131, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 17034809, "size": 170383, "stargazer_count": 346, "stars": null, "updates": null, "url": "https://github.com/datacleaner/DataCleaner" }
17034809_85
{ "fields": [ { "declarator": "PASSWORD_ENCODED = \"enc:00em6E9KEO9FG42CH0yrVQ==\"", "modifier": "private static final", "original_string": "private static final String PASSWORD_ENCODED = \"enc:00em6E9KEO9FG42CH0yrVQ==\";", "type": "String", "var_name": "PASSWORD_ENCODED" }, ...
{ "body": "@Test\n public void testExternalizeJdbcDatastoreWithPassword() throws Exception {\n final Datastore ds1 = new JdbcDatastore(\"name\", \"jdbcUrl\", \"driverClass\", \"username\", \"password\", true,\n new TableType[] { TableType.ALIAS }, \"catalogName\");\n\n final Element ex...
{ "fields": [ { "declarator": "_document", "modifier": "private final", "original_string": "private final Document _document;", "type": "Document", "var_name": "_document" } ], "file": "engine/xml-config/src/main/java/org/datacleaner/configuration/DomConfigurationWriter.java"...
{ "body": "public Element externalize(final ServerInformation serverInformation) throws UnsupportedOperationException {\n if (serverInformation == null) {\n throw new IllegalArgumentException(\"ServerInformation cannot be null\");\n }\n\n final Element elem;\n\n if (serverInform...
{ "created": null, "fork": null, "fork_count": 131, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 17034809, "size": 170383, "stargazer_count": 346, "stars": null, "updates": null, "url": "https://github.com/datacleaner/DataCleaner" }
58760260_15
{ "fields": [ { "declarator": "utils = new Utils()", "modifier": "private", "original_string": "private Utils utils = new Utils();", "type": "Utils", "var_name": "utils" }, { "declarator": "book", "modifier": "", "original_string": "Book book;", "type"...
{ "body": "@Test\n public void setDescription() throws Exception {\n book.setDescription(\"newDescription\");\n assertEquals(\"newDescription\", book.getDescription());\n }", "class_method_signature": "BookTest.setDescription()", "constructor": false, "full_signature": "@Test public void set...
{ "fields": [ { "declarator": "title", "modifier": "@NotNull\n @Size(min = 3, max = 225)\n private", "original_string": "@NotNull\n @Size(min = 3, max = 225)\n private String title;", "type": "String", "var_name": "title" }, { "declarator": "author", "...
{ "body": "public void setDescription(String description) {\n this.description = description;\n }", "class_method_signature": "Book.setDescription(String description)", "constructor": false, "full_signature": "public void setDescription(String description)", "identifier": "setDescription", "invoca...
{ "created": null, "fork": null, "fork_count": 2, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 58760260, "size": 7292, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/nirgn975/Book4You" }
58760260_19
{ "fields": [ { "declarator": "utils = new Utils()", "modifier": "private", "original_string": "private Utils utils = new Utils();", "type": "Utils", "var_name": "utils" }, { "declarator": "book", "modifier": "", "original_string": "Book book;", "type"...
{ "body": "@Test\n public void setInventory() throws Exception {\n assertEquals(1, book.getInventory());\n book.setInventory(3);\n assertEquals(3, book.getInventory());\n }", "class_method_signature": "BookTest.setInventory()", "constructor": false, "full_signature": "@Test public voi...
{ "fields": [ { "declarator": "title", "modifier": "@NotNull\n @Size(min = 3, max = 225)\n private", "original_string": "@NotNull\n @Size(min = 3, max = 225)\n private String title;", "type": "String", "var_name": "title" }, { "declarator": "author", "...
{ "body": "public void setInventory(int inventory) {\n this.inventory = inventory;\n }", "class_method_signature": "Book.setInventory(int inventory)", "constructor": false, "full_signature": "public void setInventory(int inventory)", "identifier": "setInventory", "invocations": [], "modifiers": ...
{ "created": null, "fork": null, "fork_count": 2, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 58760260, "size": 7292, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/nirgn975/Book4You" }
58760260_1
{ "fields": [ { "declarator": "utils = new Utils()", "modifier": "private", "original_string": "private Utils utils = new Utils();", "type": "Utils", "var_name": "utils" }, { "declarator": "user", "modifier": "", "original_string": "User user;", "type"...
{ "body": "@Test\n public void setFirstName() throws Exception {\n user.setFirstName(\"newFirstName\");\n admin.setFirstName(\"newFirstName\");\n assertEquals(\"newFirstName\", user.getFirstName());\n assertEquals(\"newFirstName\", admin.getFirstName());\n }", "class_method_signatu...
{ "fields": [ { "declarator": "PASSWORD_ENCODER = new BCryptPasswordEncoder()", "modifier": "public static final", "original_string": "public static final PasswordEncoder PASSWORD_ENCODER = new BCryptPasswordEncoder();", "type": "PasswordEncoder", "var_name": "PASSWORD_ENCODER" }...
{ "body": "public void setFirstName(String firstName) {\n this.firstName = firstName;\n }", "class_method_signature": "User.setFirstName(String firstName)", "constructor": false, "full_signature": "public void setFirstName(String firstName)", "identifier": "setFirstName", "invocations": [], "mod...
{ "created": null, "fork": null, "fork_count": 2, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 58760260, "size": 7292, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/nirgn975/Book4You" }
58760260_23
{ "fields": [ { "declarator": "utils = new Utils()", "modifier": "private", "original_string": "private Utils utils = new Utils();", "type": "Utils", "var_name": "utils" }, { "declarator": "category", "modifier": "", "original_string": "Category category;", ...
{ "body": "@Test\n public void addBook() throws Exception {\n category.addBook(new Book(\"Title3\", \"Author3\", \"Description3\", 30, utils.Image2ByteArray(\"images/ElonMusk.jpg\"), 1));\n assertEquals(3, category.getBooks().size());\n }", "class_method_signature": "CategoryTest.addBook()", "...
{ "fields": [ { "declarator": "name", "modifier": "@NotNull\n @Size(min = 2, max = 25)\n private", "original_string": "@NotNull\n @Size(min = 2, max = 25)\n private String name;", "type": "String", "var_name": "name" }, { "declarator": "books", "modifi...
{ "body": "public void addBook(Book book) {\n book.setCategory(this);\n books.add(book);\n }", "class_method_signature": "Category.addBook(Book book)", "constructor": false, "full_signature": "public void addBook(Book book)", "identifier": "addBook", "invocations": [ "setCategory", ...
{ "created": null, "fork": null, "fork_count": 2, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 58760260, "size": 7292, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/nirgn975/Book4You" }
58760260_22
{ "fields": [ { "declarator": "utils = new Utils()", "modifier": "private", "original_string": "private Utils utils = new Utils();", "type": "Utils", "var_name": "utils" }, { "declarator": "category", "modifier": "", "original_string": "Category category;", ...
{ "body": "@Test\n public void getNumBooks() throws Exception {\n assertEquals(2, category.getBooks().size());\n }", "class_method_signature": "CategoryTest.getNumBooks()", "constructor": false, "full_signature": "@Test public void getNumBooks()", "identifier": "getNumBooks", "invocations": [ ...
{ "fields": [ { "declarator": "name", "modifier": "@NotNull\n @Size(min = 2, max = 25)\n private", "original_string": "@NotNull\n @Size(min = 2, max = 25)\n private String name;", "type": "String", "var_name": "name" }, { "declarator": "books", "modifi...
{ "body": "public List<Book> getBooks() { return books; }", "class_method_signature": "Category.getBooks()", "constructor": false, "full_signature": "public List<Book> getBooks()", "identifier": "getBooks", "invocations": [], "modifiers": "public", "parameters": "()", "return": "List<Book>", "signat...
{ "created": null, "fork": null, "fork_count": 2, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 58760260, "size": 7292, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/nirgn975/Book4You" }
58760260_18
{ "fields": [ { "declarator": "utils = new Utils()", "modifier": "private", "original_string": "private Utils utils = new Utils();", "type": "Utils", "var_name": "utils" }, { "declarator": "book", "modifier": "", "original_string": "Book book;", "type"...
{ "body": "@Test\n public void getInventory() throws Exception {\n assertEquals(1, book.getInventory());\n }", "class_method_signature": "BookTest.getInventory()", "constructor": false, "full_signature": "@Test public void getInventory()", "identifier": "getInventory", "invocations": [ "ass...
{ "fields": [ { "declarator": "title", "modifier": "@NotNull\n @Size(min = 3, max = 225)\n private", "original_string": "@NotNull\n @Size(min = 3, max = 225)\n private String title;", "type": "String", "var_name": "title" }, { "declarator": "author", "...
{ "body": "public int getInventory() {\n return inventory;\n }", "class_method_signature": "Book.getInventory()", "constructor": false, "full_signature": "public int getInventory()", "identifier": "getInventory", "invocations": [], "modifiers": "public", "parameters": "()", "return": "int", ...
{ "created": null, "fork": null, "fork_count": 2, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 58760260, "size": 7292, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/nirgn975/Book4You" }
58760260_0
{ "fields": [ { "declarator": "utils = new Utils()", "modifier": "private", "original_string": "private Utils utils = new Utils();", "type": "Utils", "var_name": "utils" }, { "declarator": "user", "modifier": "", "original_string": "User user;", "type"...
{ "body": "@Test\n public void getFirstName() throws Exception {\n assertEquals(\"nir\", user.getFirstName());\n assertEquals(\"ishay\", admin.getFirstName());\n }", "class_method_signature": "UserTest.getFirstName()", "constructor": false, "full_signature": "@Test public void getFirstName()...
{ "fields": [ { "declarator": "PASSWORD_ENCODER = new BCryptPasswordEncoder()", "modifier": "public static final", "original_string": "public static final PasswordEncoder PASSWORD_ENCODER = new BCryptPasswordEncoder();", "type": "PasswordEncoder", "var_name": "PASSWORD_ENCODER" }...
{ "body": "public String getFirstName() {\n return firstName;\n }", "class_method_signature": "User.getFirstName()", "constructor": false, "full_signature": "public String getFirstName()", "identifier": "getFirstName", "invocations": [], "modifiers": "public", "parameters": "()", "return": "...
{ "created": null, "fork": null, "fork_count": 2, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 58760260, "size": 7292, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/nirgn975/Book4You" }
58760260_14
{ "fields": [ { "declarator": "utils = new Utils()", "modifier": "private", "original_string": "private Utils utils = new Utils();", "type": "Utils", "var_name": "utils" }, { "declarator": "book", "modifier": "", "original_string": "Book book;", "type"...
{ "body": "@Test\n public void getDescription() throws Exception {\n assertEquals(\"Description\", book.getDescription());\n }", "class_method_signature": "BookTest.getDescription()", "constructor": false, "full_signature": "@Test public void getDescription()", "identifier": "getDescription", "...
{ "fields": [ { "declarator": "title", "modifier": "@NotNull\n @Size(min = 3, max = 225)\n private", "original_string": "@NotNull\n @Size(min = 3, max = 225)\n private String title;", "type": "String", "var_name": "title" }, { "declarator": "author", "...
{ "body": "public String getDescription() {\n return description;\n }", "class_method_signature": "Book.getDescription()", "constructor": false, "full_signature": "public String getDescription()", "identifier": "getDescription", "invocations": [], "modifiers": "public", "parameters": "()", "...
{ "created": null, "fork": null, "fork_count": 2, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 58760260, "size": 7292, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/nirgn975/Book4You" }
58760260_7
{ "fields": [ { "declarator": "utils = new Utils()", "modifier": "private", "original_string": "private Utils utils = new Utils();", "type": "Utils", "var_name": "utils" }, { "declarator": "user", "modifier": "", "original_string": "User user;", "type"...
{ "body": "@Test\n public void getRoles() throws Exception {\n assertArrayEquals(new String[] {\"ROLE_USER\"}, user.getRoles());\n assertArrayEquals(new String[] {\"ROLE_USER\", \"ROLE_ADMIN\"}, admin.getRoles());\n }", "class_method_signature": "UserTest.getRoles()", "constructor": false, "...
{ "fields": [ { "declarator": "PASSWORD_ENCODER = new BCryptPasswordEncoder()", "modifier": "public static final", "original_string": "public static final PasswordEncoder PASSWORD_ENCODER = new BCryptPasswordEncoder();", "type": "PasswordEncoder", "var_name": "PASSWORD_ENCODER" }...
{ "body": "public String[] getRoles() {\n return roles;\n }", "class_method_signature": "User.getRoles()", "constructor": false, "full_signature": "public String[] getRoles()", "identifier": "getRoles", "invocations": [], "modifiers": "public", "parameters": "()", "return": "String[]", "si...
{ "created": null, "fork": null, "fork_count": 2, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 58760260, "size": 7292, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/nirgn975/Book4You" }
58760260_13
{ "fields": [ { "declarator": "utils = new Utils()", "modifier": "private", "original_string": "private Utils utils = new Utils();", "type": "Utils", "var_name": "utils" }, { "declarator": "book", "modifier": "", "original_string": "Book book;", "type"...
{ "body": "@Test\n public void setAuthor() throws Exception {\n book.setAuthor(\"newAuthor\");\n assertEquals(\"newAuthor\", book.getAuthor());\n }", "class_method_signature": "BookTest.setAuthor()", "constructor": false, "full_signature": "@Test public void setAuthor()", "identifier": "se...
{ "fields": [ { "declarator": "title", "modifier": "@NotNull\n @Size(min = 3, max = 225)\n private", "original_string": "@NotNull\n @Size(min = 3, max = 225)\n private String title;", "type": "String", "var_name": "title" }, { "declarator": "author", "...
{ "body": "public void setAuthor(String author) {\n this.author = author;\n }", "class_method_signature": "Book.setAuthor(String author)", "constructor": false, "full_signature": "public void setAuthor(String author)", "identifier": "setAuthor", "invocations": [], "modifiers": "public", "param...
{ "created": null, "fork": null, "fork_count": 2, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 58760260, "size": 7292, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/nirgn975/Book4You" }
58760260_12
{ "fields": [ { "declarator": "utils = new Utils()", "modifier": "private", "original_string": "private Utils utils = new Utils();", "type": "Utils", "var_name": "utils" }, { "declarator": "book", "modifier": "", "original_string": "Book book;", "type"...
{ "body": "@Test\n public void getAuthor() throws Exception {\n assertEquals(\"Author\", book.getAuthor());\n }", "class_method_signature": "BookTest.getAuthor()", "constructor": false, "full_signature": "@Test public void getAuthor()", "identifier": "getAuthor", "invocations": [ "assertEqu...
{ "fields": [ { "declarator": "title", "modifier": "@NotNull\n @Size(min = 3, max = 225)\n private", "original_string": "@NotNull\n @Size(min = 3, max = 225)\n private String title;", "type": "String", "var_name": "title" }, { "declarator": "author", "...
{ "body": "public String getAuthor() {\n return author;\n }", "class_method_signature": "Book.getAuthor()", "constructor": false, "full_signature": "public String getAuthor()", "identifier": "getAuthor", "invocations": [], "modifiers": "public", "parameters": "()", "return": "String", "sig...
{ "created": null, "fork": null, "fork_count": 2, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 58760260, "size": 7292, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/nirgn975/Book4You" }
58760260_6
{ "fields": [ { "declarator": "utils = new Utils()", "modifier": "private", "original_string": "private Utils utils = new Utils();", "type": "Utils", "var_name": "utils" }, { "declarator": "user", "modifier": "", "original_string": "User user;", "type"...
{ "body": "@Test\n public void getPassword() throws Exception {\n assertNotEquals(\"password\", user.getPassword());\n assertNotEquals(\"pass\", admin.getPassword());\n }", "class_method_signature": "UserTest.getPassword()", "constructor": false, "full_signature": "@Test public void getPassw...
{ "fields": [ { "declarator": "PASSWORD_ENCODER = new BCryptPasswordEncoder()", "modifier": "public static final", "original_string": "public static final PasswordEncoder PASSWORD_ENCODER = new BCryptPasswordEncoder();", "type": "PasswordEncoder", "var_name": "PASSWORD_ENCODER" }...
{ "body": "public String getPassword() {\n return password;\n }", "class_method_signature": "User.getPassword()", "constructor": false, "full_signature": "public String getPassword()", "identifier": "getPassword", "invocations": [], "modifiers": "public", "parameters": "()", "return": "Strin...
{ "created": null, "fork": null, "fork_count": 2, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 58760260, "size": 7292, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/nirgn975/Book4You" }
58760260_5
{ "fields": [ { "declarator": "utils = new Utils()", "modifier": "private", "original_string": "private Utils utils = new Utils();", "type": "Utils", "var_name": "utils" }, { "declarator": "user", "modifier": "", "original_string": "User user;", "type"...
{ "body": "@Test\n public void setUsername() throws Exception {\n user.setUsername(\"newUsername\");\n admin.setUsername(\"newUsername\");\n assertEquals(\"newUsername\", user.getUsername());\n assertEquals(\"newUsername\", admin.getUsername());\n }", "class_method_signature": "Use...
{ "fields": [ { "declarator": "PASSWORD_ENCODER = new BCryptPasswordEncoder()", "modifier": "public static final", "original_string": "public static final PasswordEncoder PASSWORD_ENCODER = new BCryptPasswordEncoder();", "type": "PasswordEncoder", "var_name": "PASSWORD_ENCODER" }...
{ "body": "public void setUsername(String username) {\n this.username = username;\n }", "class_method_signature": "User.setUsername(String username)", "constructor": false, "full_signature": "public void setUsername(String username)", "identifier": "setUsername", "invocations": [], "modifiers": ...
{ "created": null, "fork": null, "fork_count": 2, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 58760260, "size": 7292, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/nirgn975/Book4You" }
58760260_9
{ "fields": [ { "declarator": "utils = new Utils()", "modifier": "private", "original_string": "private Utils utils = new Utils();", "type": "Utils", "var_name": "utils" }, { "declarator": "user", "modifier": "", "original_string": "User user;", "type"...
{ "body": "@Test\n public void removeBookFromWishList() throws Exception {\n user.addBookToWishList(firstBook);\n user.removeBookFromWishList(firstBook);\n\n assertEquals(new ArrayList<>(), user.getWishList());\n }", "class_method_signature": "UserTest.removeBookFromWishList()", "constr...
{ "fields": [ { "declarator": "PASSWORD_ENCODER = new BCryptPasswordEncoder()", "modifier": "public static final", "original_string": "public static final PasswordEncoder PASSWORD_ENCODER = new BCryptPasswordEncoder();", "type": "PasswordEncoder", "var_name": "PASSWORD_ENCODER" }...
{ "body": "public void removeBookFromWishList(Book book) {\n this.wishList.remove(book);\n }", "class_method_signature": "User.removeBookFromWishList(Book book)", "constructor": false, "full_signature": "public void removeBookFromWishList(Book book)", "identifier": "removeBookFromWishList", "invoc...
{ "created": null, "fork": null, "fork_count": 2, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 58760260, "size": 7292, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/nirgn975/Book4You" }
58760260_11
{ "fields": [ { "declarator": "utils = new Utils()", "modifier": "private", "original_string": "private Utils utils = new Utils();", "type": "Utils", "var_name": "utils" }, { "declarator": "book", "modifier": "", "original_string": "Book book;", "type"...
{ "body": "@Test\n public void setTitle() throws Exception {\n book.setTitle(\"newTitle\");\n assertEquals(\"newTitle\", book.getTitle());\n }", "class_method_signature": "BookTest.setTitle()", "constructor": false, "full_signature": "@Test public void setTitle()", "identifier": "setTitle"...
{ "fields": [ { "declarator": "title", "modifier": "@NotNull\n @Size(min = 3, max = 225)\n private", "original_string": "@NotNull\n @Size(min = 3, max = 225)\n private String title;", "type": "String", "var_name": "title" }, { "declarator": "author", "...
{ "body": "public void setTitle(String title) {\n this.title = title;\n }", "class_method_signature": "Book.setTitle(String title)", "constructor": false, "full_signature": "public void setTitle(String title)", "identifier": "setTitle", "invocations": [], "modifiers": "public", "parameters": "...
{ "created": null, "fork": null, "fork_count": 2, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 58760260, "size": 7292, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/nirgn975/Book4You" }
58760260_8
{ "fields": [ { "declarator": "utils = new Utils()", "modifier": "private", "original_string": "private Utils utils = new Utils();", "type": "Utils", "var_name": "utils" }, { "declarator": "user", "modifier": "", "original_string": "User user;", "type"...
{ "body": "@Test\n public void setRoles() throws Exception {\n user.setRoles(new String[] {\"ROLE_USER\", \"ROLE_ADMIN\"});\n admin.setRoles(new String[] {\"ROLE_USER\"});\n assertArrayEquals(new String[] {\"ROLE_USER\"}, admin.getRoles());\n assertArrayEquals(new String[] {\"ROLE_USER\...
{ "fields": [ { "declarator": "PASSWORD_ENCODER = new BCryptPasswordEncoder()", "modifier": "public static final", "original_string": "public static final PasswordEncoder PASSWORD_ENCODER = new BCryptPasswordEncoder();", "type": "PasswordEncoder", "var_name": "PASSWORD_ENCODER" }...
{ "body": "public void setRoles(String[] roles) {\n this.roles = roles;\n }", "class_method_signature": "User.setRoles(String[] roles)", "constructor": false, "full_signature": "public void setRoles(String[] roles)", "identifier": "setRoles", "invocations": [], "modifiers": "public", "paramete...
{ "created": null, "fork": null, "fork_count": 2, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 58760260, "size": 7292, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/nirgn975/Book4You" }
58760260_10
{ "fields": [ { "declarator": "utils = new Utils()", "modifier": "private", "original_string": "private Utils utils = new Utils();", "type": "Utils", "var_name": "utils" }, { "declarator": "book", "modifier": "", "original_string": "Book book;", "type"...
{ "body": "@Test\n public void getTitle() throws Exception {\n assertEquals(\"Title\", book.getTitle());\n }", "class_method_signature": "BookTest.getTitle()", "constructor": false, "full_signature": "@Test public void getTitle()", "identifier": "getTitle", "invocations": [ "assertEquals", ...
{ "fields": [ { "declarator": "title", "modifier": "@NotNull\n @Size(min = 3, max = 225)\n private", "original_string": "@NotNull\n @Size(min = 3, max = 225)\n private String title;", "type": "String", "var_name": "title" }, { "declarator": "author", "...
{ "body": "public String getTitle() {\n return title;\n }", "class_method_signature": "Book.getTitle()", "constructor": false, "full_signature": "public String getTitle()", "identifier": "getTitle", "invocations": [], "modifiers": "public", "parameters": "()", "return": "String", "signatur...
{ "created": null, "fork": null, "fork_count": 2, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 58760260, "size": 7292, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/nirgn975/Book4You" }
58760260_4
{ "fields": [ { "declarator": "utils = new Utils()", "modifier": "private", "original_string": "private Utils utils = new Utils();", "type": "Utils", "var_name": "utils" }, { "declarator": "user", "modifier": "", "original_string": "User user;", "type"...
{ "body": "@Test\n public void getUsername() throws Exception {\n assertEquals(\"nirgn\", user.getUsername());\n assertEquals(\"ishayr\", admin.getUsername());\n }", "class_method_signature": "UserTest.getUsername()", "constructor": false, "full_signature": "@Test public void getUsername()",...
{ "fields": [ { "declarator": "PASSWORD_ENCODER = new BCryptPasswordEncoder()", "modifier": "public static final", "original_string": "public static final PasswordEncoder PASSWORD_ENCODER = new BCryptPasswordEncoder();", "type": "PasswordEncoder", "var_name": "PASSWORD_ENCODER" }...
{ "body": "public String getUsername() {\n return username;\n }", "class_method_signature": "User.getUsername()", "constructor": false, "full_signature": "public String getUsername()", "identifier": "getUsername", "invocations": [], "modifiers": "public", "parameters": "()", "return": "Strin...
{ "created": null, "fork": null, "fork_count": 2, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 58760260, "size": 7292, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/nirgn975/Book4You" }
58760260_17
{ "fields": [ { "declarator": "utils = new Utils()", "modifier": "private", "original_string": "private Utils utils = new Utils();", "type": "Utils", "var_name": "utils" }, { "declarator": "book", "modifier": "", "original_string": "Book book;", "type"...
{ "body": "@Test\n public void setPrice() throws Exception {\n book.setPrice(20);\n assertEquals(20, book.getPrice());\n }", "class_method_signature": "BookTest.setPrice()", "constructor": false, "full_signature": "@Test public void setPrice()", "identifier": "setPrice", "invocations": [...
{ "fields": [ { "declarator": "title", "modifier": "@NotNull\n @Size(min = 3, max = 225)\n private", "original_string": "@NotNull\n @Size(min = 3, max = 225)\n private String title;", "type": "String", "var_name": "title" }, { "declarator": "author", "...
{ "body": "public void setPrice(int price) {\n this.price = price;\n }", "class_method_signature": "Book.setPrice(int price)", "constructor": false, "full_signature": "public void setPrice(int price)", "identifier": "setPrice", "invocations": [], "modifiers": "public", "parameters": "(int pric...
{ "created": null, "fork": null, "fork_count": 2, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 58760260, "size": 7292, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/nirgn975/Book4You" }
58760260_21
{ "fields": [ { "declarator": "utils = new Utils()", "modifier": "private", "original_string": "private Utils utils = new Utils();", "type": "Utils", "var_name": "utils" }, { "declarator": "category", "modifier": "", "original_string": "Category category;", ...
{ "body": "@Test\n public void setName() throws Exception {\n category.setName(\"categoryName\");\n assertEquals(\"categoryName\", category.getName());\n }", "class_method_signature": "CategoryTest.setName()", "constructor": false, "full_signature": "@Test public void setName()", "identifi...
{ "fields": [ { "declarator": "name", "modifier": "@NotNull\n @Size(min = 2, max = 25)\n private", "original_string": "@NotNull\n @Size(min = 2, max = 25)\n private String name;", "type": "String", "var_name": "name" }, { "declarator": "books", "modifi...
{ "body": "public void setName(String name) {\n this.name = name;\n }", "class_method_signature": "Category.setName(String name)", "constructor": false, "full_signature": "public void setName(String name)", "identifier": "setName", "invocations": [], "modifiers": "public", "parameters": "(Stri...
{ "created": null, "fork": null, "fork_count": 2, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 58760260, "size": 7292, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/nirgn975/Book4You" }
58760260_3
{ "fields": [ { "declarator": "utils = new Utils()", "modifier": "private", "original_string": "private Utils utils = new Utils();", "type": "Utils", "var_name": "utils" }, { "declarator": "user", "modifier": "", "original_string": "User user;", "type"...
{ "body": "@Test\n public void setLastName() throws Exception {\n user.setLastName(\"newLastName\");\n admin.setLastName(\"newLastName\");\n assertEquals(\"newLastName\", user.getLastName());\n assertEquals(\"newLastName\", admin.getLastName());\n }", "class_method_signature": "Use...
{ "fields": [ { "declarator": "PASSWORD_ENCODER = new BCryptPasswordEncoder()", "modifier": "public static final", "original_string": "public static final PasswordEncoder PASSWORD_ENCODER = new BCryptPasswordEncoder();", "type": "PasswordEncoder", "var_name": "PASSWORD_ENCODER" }...
{ "body": "public void setLastName(String lastName) {\n this.lastName = lastName;\n }", "class_method_signature": "User.setLastName(String lastName)", "constructor": false, "full_signature": "public void setLastName(String lastName)", "identifier": "setLastName", "invocations": [], "modifiers": ...
{ "created": null, "fork": null, "fork_count": 2, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 58760260, "size": 7292, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/nirgn975/Book4You" }
58760260_2
{ "fields": [ { "declarator": "utils = new Utils()", "modifier": "private", "original_string": "private Utils utils = new Utils();", "type": "Utils", "var_name": "utils" }, { "declarator": "user", "modifier": "", "original_string": "User user;", "type"...
{ "body": "@Test\n public void getLastName() throws Exception {\n assertEquals(\"galon\", user.getLastName());\n assertEquals(\"rabi\", admin.getLastName());\n }", "class_method_signature": "UserTest.getLastName()", "constructor": false, "full_signature": "@Test public void getLastName()", ...
{ "fields": [ { "declarator": "PASSWORD_ENCODER = new BCryptPasswordEncoder()", "modifier": "public static final", "original_string": "public static final PasswordEncoder PASSWORD_ENCODER = new BCryptPasswordEncoder();", "type": "PasswordEncoder", "var_name": "PASSWORD_ENCODER" }...
{ "body": "public String getLastName() {\n return lastName;\n }", "class_method_signature": "User.getLastName()", "constructor": false, "full_signature": "public String getLastName()", "identifier": "getLastName", "invocations": [], "modifiers": "public", "parameters": "()", "return": "Strin...
{ "created": null, "fork": null, "fork_count": 2, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 58760260, "size": 7292, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/nirgn975/Book4You" }
58760260_20
{ "fields": [ { "declarator": "utils = new Utils()", "modifier": "private", "original_string": "private Utils utils = new Utils();", "type": "Utils", "var_name": "utils" }, { "declarator": "category", "modifier": "", "original_string": "Category category;", ...
{ "body": "@Test\n public void getName() throws Exception {\n assertEquals(\"הפופולאריים\", category.getName());\n }", "class_method_signature": "CategoryTest.getName()", "constructor": false, "full_signature": "@Test public void getName()", "identifier": "getName", "invocations": [ "assert...
{ "fields": [ { "declarator": "name", "modifier": "@NotNull\n @Size(min = 2, max = 25)\n private", "original_string": "@NotNull\n @Size(min = 2, max = 25)\n private String name;", "type": "String", "var_name": "name" }, { "declarator": "books", "modifi...
{ "body": "public String getName() {\n return name;\n }", "class_method_signature": "Category.getName()", "constructor": false, "full_signature": "public String getName()", "identifier": "getName", "invocations": [], "modifiers": "public", "parameters": "()", "return": "String", "signature...
{ "created": null, "fork": null, "fork_count": 2, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 58760260, "size": 7292, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/nirgn975/Book4You" }
58760260_16
{ "fields": [ { "declarator": "utils = new Utils()", "modifier": "private", "original_string": "private Utils utils = new Utils();", "type": "Utils", "var_name": "utils" }, { "declarator": "book", "modifier": "", "original_string": "Book book;", "type"...
{ "body": "@Test\n public void getPrice() throws Exception {\n assertEquals(10, book.getPrice());\n }", "class_method_signature": "BookTest.getPrice()", "constructor": false, "full_signature": "@Test public void getPrice()", "identifier": "getPrice", "invocations": [ "assertEquals", "ge...
{ "fields": [ { "declarator": "title", "modifier": "@NotNull\n @Size(min = 3, max = 225)\n private", "original_string": "@NotNull\n @Size(min = 3, max = 225)\n private String title;", "type": "String", "var_name": "title" }, { "declarator": "author", "...
{ "body": "public int getPrice() {\n return price;\n }", "class_method_signature": "Book.getPrice()", "constructor": false, "full_signature": "public int getPrice()", "identifier": "getPrice", "invocations": [], "modifiers": "public", "parameters": "()", "return": "int", "signature": "int ...
{ "created": null, "fork": null, "fork_count": 2, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 58760260, "size": 7292, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/nirgn975/Book4You" }
1810705_117
{ "fields": [ { "declarator": "viewResolver", "modifier": "private", "original_string": "private LiteDeviceDelegatingViewResolver viewResolver;", "type": "LiteDeviceDelegatingViewResolver", "var_name": "viewResolver" }, { "declarator": "delegateViewResolver", "mod...
{ "body": "@Test\n\tpublic void resolveViewNameNormalDeviceNoSitePreferenceNormalSuffix() throws Exception {\n\t\tdevice.setDeviceType(DeviceType.NORMAL);\n\t\trequest.setAttribute(DeviceUtils.CURRENT_DEVICE_ATTRIBUTE, device);\n\t\tviewResolver.setNormalSuffix(\".norm\");\n\t\treplayMocks(viewName + \".norm\");\n\t}...
{ "fields": [ { "declarator": "normalPrefix = \"\"", "modifier": "private", "original_string": "private String normalPrefix = \"\";", "type": "String", "var_name": "normalPrefix" }, { "declarator": "mobilePrefix = \"\"", "modifier": "private", "original_stri...
{ "body": "public void setNormalSuffix(String normalSuffix) {\n\t\tthis.normalSuffix = (normalSuffix != null ? normalSuffix : \"\");\n\t}", "class_method_signature": "LiteDeviceDelegatingViewResolver.setNormalSuffix(String normalSuffix)", "constructor": false, "full_signature": "public void setNormalSuffix(Stri...
{ "created": null, "fork": null, "fork_count": 114, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1810705, "size": 5135, "stargazer_count": 174, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-mobile" }
1810705_83
{ "fields": [ { "declarator": "viewResolver", "modifier": "private", "original_string": "private LiteDeviceDelegatingViewResolver viewResolver;", "type": "LiteDeviceDelegatingViewResolver", "var_name": "viewResolver" }, { "declarator": "delegateViewResolver", "mod...
{ "body": "@Test\n\tpublic void resolveViewNameNormalDeviceNormalPrefixRedirectToAbsoluteUrlFTP() throws Exception {\n\t\tthis.viewName = \"redirect:ftp://spring.io\";\n\t\tdevice.setDeviceType(DeviceType.NORMAL);\n\t\trequest.setAttribute(DeviceUtils.CURRENT_DEVICE_ATTRIBUTE, device);\n\t\tviewResolver.setNormalPref...
{ "fields": [ { "declarator": "normalPrefix = \"\"", "modifier": "private", "original_string": "private String normalPrefix = \"\";", "type": "String", "var_name": "normalPrefix" }, { "declarator": "mobilePrefix = \"\"", "modifier": "private", "original_stri...
{ "body": "public void setNormalPrefix(String normalPrefix) {\n\t\tthis.normalPrefix = (normalPrefix != null ? normalPrefix : \"\");\n\t}", "class_method_signature": "LiteDeviceDelegatingViewResolver.setNormalPrefix(String normalPrefix)", "constructor": false, "full_signature": "public void setNormalPrefix(Stri...
{ "created": null, "fork": null, "fork_count": 114, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1810705, "size": 5135, "stargazer_count": 174, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-mobile" }
1810705_140
{ "fields": [ { "declarator": "viewResolver", "modifier": "private", "original_string": "private LiteDeviceDelegatingViewResolver viewResolver;", "type": "LiteDeviceDelegatingViewResolver", "var_name": "viewResolver" }, { "declarator": "delegateViewResolver", "mod...
{ "body": "@Test\n\tpublic void resolveViewNameComplexPath() throws Exception {\n\t\tviewResolver.setNormalPrefix(\"/vi/e/w/s/\");\n\t\treplayMocks(\"/vi/e/w/s/\" + viewName);\n\t}", "class_method_signature": "LiteDeviceDelegatingViewResolverTest.resolveViewNameComplexPath()", "constructor": false, "full_signat...
{ "fields": [ { "declarator": "normalPrefix = \"\"", "modifier": "private", "original_string": "private String normalPrefix = \"\";", "type": "String", "var_name": "normalPrefix" }, { "declarator": "mobilePrefix = \"\"", "modifier": "private", "original_stri...
{ "body": "public void setNormalPrefix(String normalPrefix) {\n\t\tthis.normalPrefix = (normalPrefix != null ? normalPrefix : \"\");\n\t}", "class_method_signature": "LiteDeviceDelegatingViewResolver.setNormalPrefix(String normalPrefix)", "constructor": false, "full_signature": "public void setNormalPrefix(Stri...
{ "created": null, "fork": null, "fork_count": 114, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1810705, "size": 5135, "stargazer_count": 174, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-mobile" }
1810705_95
{ "fields": [ { "declarator": "viewResolver", "modifier": "private", "original_string": "private LiteDeviceDelegatingViewResolver viewResolver;", "type": "LiteDeviceDelegatingViewResolver", "var_name": "viewResolver" }, { "declarator": "delegateViewResolver", "mod...
{ "body": "@Test\n\tpublic void resolveViewNameMobileDeviceMobilePrefixForward() throws Exception {\n\t\tthis.viewName = \"forward:about\";\n\t\tdevice.setDeviceType(DeviceType.MOBILE);\n\t\trequest.setAttribute(DeviceUtils.CURRENT_DEVICE_ATTRIBUTE, device);\n\t\tviewResolver.setMobilePrefix(\"mobile/\");\n\t\treplay...
{ "fields": [ { "declarator": "normalPrefix = \"\"", "modifier": "private", "original_string": "private String normalPrefix = \"\";", "type": "String", "var_name": "normalPrefix" }, { "declarator": "mobilePrefix = \"\"", "modifier": "private", "original_stri...
{ "body": "public void setMobilePrefix(String mobilePrefix) {\n\t\tthis.mobilePrefix = (mobilePrefix != null ? mobilePrefix : \"\");\n\t}", "class_method_signature": "LiteDeviceDelegatingViewResolver.setMobilePrefix(String mobilePrefix)", "constructor": false, "full_signature": "public void setMobilePrefix(Stri...
{ "created": null, "fork": null, "fork_count": 114, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1810705, "size": 5135, "stargazer_count": 174, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-mobile" }
1810705_156
{ "fields": [ { "declarator": "sitePreferenceHandler", "modifier": "private", "original_string": "private StandardSitePreferenceHandler sitePreferenceHandler;", "type": "StandardSitePreferenceHandler", "var_name": "sitePreferenceHandler" }, { "declarator": "request = ne...
{ "body": "@Test\n\tpublic void defaultSitePreferenceNormalDevice() throws Exception {\n\t\trequest.setAttribute(DeviceUtils.CURRENT_DEVICE_ATTRIBUTE, new StubDevice(DeviceType.NORMAL));\n\t\tassertEquals(SitePreference.NORMAL, sitePreferenceHandler.handleSitePreference(request, response));\n\t\tassertEquals(SitePref...
{ "fields": [ { "declarator": "sitePreferenceRepository", "modifier": "private final", "original_string": "private final SitePreferenceRepository sitePreferenceRepository;", "type": "SitePreferenceRepository", "var_name": "sitePreferenceRepository" }, { "declarator": "S...
{ "body": "public SitePreference handleSitePreference(HttpServletRequest request, HttpServletResponse response) {\n\t\tSitePreference preference = getSitePreferenceQueryParameter(request);\n\t\tif (preference != null) {\n\t\t\tsitePreferenceRepository.saveSitePreference(preference, request, response);\n\t\t} else {\n...
{ "created": null, "fork": null, "fork_count": 114, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1810705, "size": 5135, "stargazer_count": 174, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-mobile" }
1810705_101
{ "fields": [ { "declarator": "viewResolver", "modifier": "private", "original_string": "private LiteDeviceDelegatingViewResolver viewResolver;", "type": "LiteDeviceDelegatingViewResolver", "var_name": "viewResolver" }, { "declarator": "delegateViewResolver", "mod...
{ "body": "@Test\n\tpublic void resolveViewNameTabletDeviceTabletPrefixRedirectToEmpty() throws Exception {\n\t\tthis.viewName = \"redirect:\";\n\t\tdevice.setDeviceType(DeviceType.TABLET);\n\t\trequest.setAttribute(DeviceUtils.CURRENT_DEVICE_ATTRIBUTE, device);\n\t\tviewResolver.setTabletPrefix(\"tablet/\");\n\t\tre...
{ "fields": [ { "declarator": "normalPrefix = \"\"", "modifier": "private", "original_string": "private String normalPrefix = \"\";", "type": "String", "var_name": "normalPrefix" }, { "declarator": "mobilePrefix = \"\"", "modifier": "private", "original_stri...
{ "body": "public void setTabletPrefix(String tabletPrefix) {\n\t\tthis.tabletPrefix = (tabletPrefix != null ? tabletPrefix : \"\");\n\t}", "class_method_signature": "LiteDeviceDelegatingViewResolver.setTabletPrefix(String tabletPrefix)", "constructor": false, "full_signature": "public void setTabletPrefix(Stri...
{ "created": null, "fork": null, "fork_count": 114, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1810705, "size": 5135, "stargazer_count": 174, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-mobile" }
1810705_56
{ "fields": [], "file": "spring-mobile-device/src/test/java/org/springframework/mobile/device/switcher/MobileSitePathUrlFactoryTest.java", "identifier": "MobileSitePathUrlFactoryTest", "interfaces": "", "superclass": "extends AbstractSitePathUrlFactoryTest" }
{ "body": "@Test\n\tpublic void createLongPathSiteUrlFromTabletSiteMultipleTabletAndSlashes() {\n\t\trequest.setServerPort(80);\n\t\trequest.setRequestURI(\"/showcase/tablet//about/x/y/tablet///z/contact//\");\n\t\tassertEquals(\"https://www.app.com/showcase/mobile//about/x/y/tablet///z/contact//\",\n\t\t\t\tadvPathF...
{ "fields": [], "file": "spring-mobile-device/src/main/java/org/springframework/mobile/device/switcher/MobileSitePathUrlFactory.java", "identifier": "MobileSitePathUrlFactory", "interfaces": "implements SiteUrlFactory", "methods": [ { "class_method_signature": "MobileSitePathUrlFactory.MobileSitePat...
{ "body": "public String createSiteUrl(HttpServletRequest request) {\n\t\tString urlPath = request.getRequestURI();\n\t\tif (getCleanTabletPath() != null && urlPath.startsWith(getCleanTabletPath())) {\n\t\t\turlPath = urlPath.substring(getCleanTabletPath().length());\n\t\t} else if (getRootPath() != null && urlPath.s...
{ "created": null, "fork": null, "fork_count": 114, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1810705, "size": 5135, "stargazer_count": 174, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-mobile" }
1810705_17
{ "fields": [], "file": "spring-mobile-device/src/test/java/org/springframework/mobile/device/switcher/NormalSitePathUrlFactoryTest.java", "identifier": "NormalSitePathUrlFactoryTest", "interfaces": "", "superclass": "extends AbstractSitePathUrlFactoryTest" }
{ "body": "@Test\n\tpublic void createPathSiteUrlMobile() {\n\t\trequest.setServerPort(80);\n\t\trequest.setRequestURI(\"/showcase/mob/foo\");\n\t\tassertEquals(\"https://www.app.com/showcase/foo\", basicPathFactory.createSiteUrl(request));\n\t}", "class_method_signature": "NormalSitePathUrlFactoryTest.createPathSi...
{ "fields": [], "file": "spring-mobile-device/src/main/java/org/springframework/mobile/device/switcher/NormalSitePathUrlFactory.java", "identifier": "NormalSitePathUrlFactory", "interfaces": "implements SiteUrlFactory", "methods": [ { "class_method_signature": "NormalSitePathUrlFactory.NormalSitePat...
{ "body": "public String createSiteUrl(HttpServletRequest request) {\n\t\tString requestURI = request.getRequestURI();\n\t\tString adjustedRequestURI = \"\";\n\t\tif (hasMobilePath() && requestURI.equals(getCleanMobilePath()) || \n\t\t\t\thasTabletPath() && requestURI.equals(getCleanTabletPath())) {\n\t\t\tif (hasRoo...
{ "created": null, "fork": null, "fork_count": 114, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1810705, "size": 5135, "stargazer_count": 174, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-mobile" }
1810705_40
{ "fields": [], "file": "spring-mobile-device/src/test/java/org/springframework/mobile/device/switcher/MobileSitePathUrlFactoryTest.java", "identifier": "MobileSitePathUrlFactoryTest", "interfaces": "", "superclass": "extends AbstractSitePathUrlFactoryTest" }
{ "body": "@Test\n\tpublic void notRequestForPathSite() {\n\t\trequest.setRequestURI(\"/showcase/\");\n\t\tassertFalse(basicPathFactory.isRequestForSite(request));\n\t}", "class_method_signature": "MobileSitePathUrlFactoryTest.notRequestForPathSite()", "constructor": false, "full_signature": "@Test public void ...
{ "fields": [], "file": "spring-mobile-device/src/main/java/org/springframework/mobile/device/switcher/MobileSitePathUrlFactory.java", "identifier": "MobileSitePathUrlFactory", "interfaces": "implements SiteUrlFactory", "methods": [ { "class_method_signature": "MobileSitePathUrlFactory.MobileSitePat...
{ "body": "public boolean isRequestForSite(HttpServletRequest request) {\n\t\treturn request.getRequestURI().startsWith(this.getFullMobilePath())\n\t\t\t\t|| request.getRequestURI().equals(this.getCleanMobilePath());\n\t}", "class_method_signature": "MobileSitePathUrlFactory.isRequestForSite(HttpServletRequest requ...
{ "created": null, "fork": null, "fork_count": 114, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1810705, "size": 5135, "stargazer_count": 174, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-mobile" }
1810705_37
{ "fields": [], "file": "spring-mobile-device/src/test/java/org/springframework/mobile/device/switcher/MobileSitePathUrlFactoryTest.java", "identifier": "MobileSitePathUrlFactoryTest", "interfaces": "", "superclass": "extends AbstractSitePathUrlFactoryTest" }
{ "body": "@Test\n\tpublic void isRequestForRootSite() {\n\t\trequest.setRequestURI(\"/mobile/\");\n\t\tassertTrue(basicRootFactory.isRequestForSite(request));\n\t}", "class_method_signature": "MobileSitePathUrlFactoryTest.isRequestForRootSite()", "constructor": false, "full_signature": "@Test public void isReq...
{ "fields": [], "file": "spring-mobile-device/src/main/java/org/springframework/mobile/device/switcher/MobileSitePathUrlFactory.java", "identifier": "MobileSitePathUrlFactory", "interfaces": "implements SiteUrlFactory", "methods": [ { "class_method_signature": "MobileSitePathUrlFactory.MobileSitePat...
{ "body": "public boolean isRequestForSite(HttpServletRequest request) {\n\t\treturn request.getRequestURI().startsWith(this.getFullMobilePath())\n\t\t\t\t|| request.getRequestURI().equals(this.getCleanMobilePath());\n\t}", "class_method_signature": "MobileSitePathUrlFactory.isRequestForSite(HttpServletRequest requ...
{ "created": null, "fork": null, "fork_count": 114, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1810705, "size": 5135, "stargazer_count": 174, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-mobile" }
1810705_60
{ "fields": [ { "declarator": "basicRootFactory", "modifier": "protected", "original_string": "protected AbstractSitePathUrlFactory basicRootFactory;", "type": "AbstractSitePathUrlFactory", "var_name": "basicRootFactory" }, { "declarator": "advRootFactory", "modif...
{ "body": "@Test\n\tpublic void pathCleanNormalPath() {\n\t\tassertEquals(\"/showcase\", basicPathFactory.getCleanNormalPath());\n\t}", "class_method_signature": "AbstractSitePathUrlFactoryTest.pathCleanNormalPath()", "constructor": false, "full_signature": "@Test public void pathCleanNormalPath()", "identifi...
{ "fields": [ { "declarator": "mobilePath", "modifier": "private final", "original_string": "private final String mobilePath;", "type": "String", "var_name": "mobilePath" }, { "declarator": "tabletPath", "modifier": "private final", "original_string": "priva...
{ "body": "protected String getCleanNormalPath() {\n\t\treturn getCleanPath(getFullNormalPath());\n\t}", "class_method_signature": "AbstractSitePathUrlFactory.getCleanNormalPath()", "constructor": false, "full_signature": "protected String getCleanNormalPath()", "identifier": "getCleanNormalPath", "invocati...
{ "created": null, "fork": null, "fork_count": 114, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1810705, "size": 5135, "stargazer_count": 174, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-mobile" }
1810705_3
{ "fields": [], "file": "spring-mobile-device/src/test/java/org/springframework/mobile/device/switcher/NormalSitePathUrlFactoryTest.java", "identifier": "NormalSitePathUrlFactoryTest", "interfaces": "", "superclass": "extends AbstractSitePathUrlFactoryTest" }
{ "body": "@Test\n\tpublic void isRequestForRootSite() {\n\t\trequest.setRequestURI(\"/\");\n\t\tassertTrue(basicRootFactory.isRequestForSite(request));\n\t}", "class_method_signature": "NormalSitePathUrlFactoryTest.isRequestForRootSite()", "constructor": false, "full_signature": "@Test public void isRequestFor...
{ "fields": [], "file": "spring-mobile-device/src/main/java/org/springframework/mobile/device/switcher/NormalSitePathUrlFactory.java", "identifier": "NormalSitePathUrlFactory", "interfaces": "implements SiteUrlFactory", "methods": [ { "class_method_signature": "NormalSitePathUrlFactory.NormalSitePat...
{ "body": "public boolean isRequestForSite(HttpServletRequest request) {\n\t\tString requestURI = request.getRequestURI();\n\t\tif (hasMobilePath() && (requestURI.startsWith(getFullMobilePath()) || requestURI.equals(getCleanMobilePath()))) {\n\t\t\treturn false;\n\t\t} else if (hasTabletPath() && (requestURI.startsWi...
{ "created": null, "fork": null, "fork_count": 114, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1810705, "size": 5135, "stargazer_count": 174, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-mobile" }
1810705_99
{ "fields": [ { "declarator": "viewResolver", "modifier": "private", "original_string": "private LiteDeviceDelegatingViewResolver viewResolver;", "type": "LiteDeviceDelegatingViewResolver", "var_name": "viewResolver" }, { "declarator": "delegateViewResolver", "mod...
{ "body": "@Test\n\tpublic void resolveViewNameTabletDeviceTabletPrefixRedirect() throws Exception {\n\t\tthis.viewName = \"redirect:about\";\n\t\tdevice.setDeviceType(DeviceType.TABLET);\n\t\trequest.setAttribute(DeviceUtils.CURRENT_DEVICE_ATTRIBUTE, device);\n\t\tviewResolver.setTabletPrefix(\"tablet/\");\n\t\trepl...
{ "fields": [ { "declarator": "normalPrefix = \"\"", "modifier": "private", "original_string": "private String normalPrefix = \"\";", "type": "String", "var_name": "normalPrefix" }, { "declarator": "mobilePrefix = \"\"", "modifier": "private", "original_stri...
{ "body": "public void setTabletPrefix(String tabletPrefix) {\n\t\tthis.tabletPrefix = (tabletPrefix != null ? tabletPrefix : \"\");\n\t}", "class_method_signature": "LiteDeviceDelegatingViewResolver.setTabletPrefix(String tabletPrefix)", "constructor": false, "full_signature": "public void setTabletPrefix(Stri...
{ "created": null, "fork": null, "fork_count": 114, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1810705, "size": 5135, "stargazer_count": 174, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-mobile" }
1810705_76
{ "fields": [], "file": "spring-mobile-device/src/test/java/org/springframework/mobile/device/switcher/TabletSitePathUrlFactoryTest.java", "identifier": "TabletSitePathUrlFactoryTest", "interfaces": "", "superclass": "extends AbstractSitePathUrlFactoryTest" }
{ "body": "@Test\n\tpublic void createLongPathSiteUrlFromMobileSite() {\n\t\trequest.setServerPort(80);\n\t\trequest.setRequestURI(\"/showcase/mobile/about/x/y/z/contact\");\n\t\tassertEquals(\"https://www.app.com/showcase/tablet/about/x/y/z/contact\", advPathFactory.createSiteUrl(request));\n\t}", "class_method_si...
{ "fields": [], "file": "spring-mobile-device/src/main/java/org/springframework/mobile/device/switcher/TabletSitePathUrlFactory.java", "identifier": "TabletSitePathUrlFactory", "interfaces": "implements SiteUrlFactory", "methods": [ { "class_method_signature": "TabletSitePathUrlFactory.TabletSitePat...
{ "body": "public String createSiteUrl(HttpServletRequest request) {\n\t\tString urlPath = request.getRequestURI();\n\t\tif (getCleanMobilePath() != null && urlPath.startsWith(getCleanMobilePath())) {\n\t\t\turlPath = urlPath.substring(getCleanMobilePath().length());\n\t\t} else if (getRootPath() != null && urlPath.s...
{ "created": null, "fork": null, "fork_count": 114, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1810705, "size": 5135, "stargazer_count": 174, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-mobile" }
1810705_21
{ "fields": [ { "declarator": "siteSwitcher", "modifier": "private", "original_string": "private SiteSwitcherRequestFilter siteSwitcher;", "type": "SiteSwitcherRequestFilter", "var_name": "siteSwitcher" }, { "declarator": "request = new MockHttpServletRequest()", ...
{ "body": "@Test\n\tpublic void urlPathMobileDeviceNoPreference() throws Exception {\n\t\tdevice.setDeviceType(DeviceType.MOBILE);\n\t\tSiteSwitcherRequestFilter urlPath = new SiteSwitcherRequestFilter();\n\t\tMockFilterConfig filterConfig = new MockFilterConfig();\n\t\tfilterConfig.addInitParameter(\"switcherMode\",...
{ "fields": [ { "declarator": "siteSwitcherHandler", "modifier": "private", "original_string": "private SiteSwitcherHandler siteSwitcherHandler;", "type": "SiteSwitcherHandler", "var_name": "siteSwitcherHandler" }, { "declarator": "switcherMode", "modifier": "priv...
{ "body": "public String getServerName() {\n\t\treturn serverName;\n\t}", "class_method_signature": "SiteSwitcherRequestFilter.getServerName()", "constructor": false, "full_signature": "public String getServerName()", "identifier": "getServerName", "invocations": [], "modifiers": "public", "parameters":...
{ "created": null, "fork": null, "fork_count": 114, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1810705, "size": 5135, "stargazer_count": 174, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-mobile" }
1810705_121
{ "fields": [ { "declarator": "viewResolver", "modifier": "private", "original_string": "private LiteDeviceDelegatingViewResolver viewResolver;", "type": "LiteDeviceDelegatingViewResolver", "var_name": "viewResolver" }, { "declarator": "delegateViewResolver", "mod...
{ "body": "@Test\n\tpublic void resolveViewNameNormalDeviceMobileSitePreferenceMobileSuffix() throws Exception {\n\t\tdevice.setDeviceType(DeviceType.NORMAL);\n\t\trequest.setAttribute(DeviceUtils.CURRENT_DEVICE_ATTRIBUTE, device);\n\t\trequest.setAttribute(SitePreferenceHandler.CURRENT_SITE_PREFERENCE_ATTRIBUTE, Sit...
{ "fields": [ { "declarator": "normalPrefix = \"\"", "modifier": "private", "original_string": "private String normalPrefix = \"\";", "type": "String", "var_name": "normalPrefix" }, { "declarator": "mobilePrefix = \"\"", "modifier": "private", "original_stri...
{ "body": "public void setMobileSuffix(String mobileSuffix) {\n\t\tthis.mobileSuffix = (mobileSuffix != null ? mobileSuffix : \"\");\n\t}", "class_method_signature": "LiteDeviceDelegatingViewResolver.setMobileSuffix(String mobileSuffix)", "constructor": false, "full_signature": "public void setMobileSuffix(Stri...
{ "created": null, "fork": null, "fork_count": 114, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1810705, "size": 5135, "stargazer_count": 174, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-mobile" }
1810705_137
{ "fields": [ { "declarator": "viewResolver", "modifier": "private", "original_string": "private LiteDeviceDelegatingViewResolver viewResolver;", "type": "LiteDeviceDelegatingViewResolver", "var_name": "viewResolver" }, { "declarator": "delegateViewResolver", "mod...
{ "body": "@Test\n\tpublic void resolveViewNameTabletDeviceMobileSitePreferenceMobileSuffix() throws Exception {\n\t\tdevice.setDeviceType(DeviceType.TABLET);\n\t\trequest.setAttribute(DeviceUtils.CURRENT_DEVICE_ATTRIBUTE, device);\n\t\trequest.setAttribute(SitePreferenceHandler.CURRENT_SITE_PREFERENCE_ATTRIBUTE, Sit...
{ "fields": [ { "declarator": "normalPrefix = \"\"", "modifier": "private", "original_string": "private String normalPrefix = \"\";", "type": "String", "var_name": "normalPrefix" }, { "declarator": "mobilePrefix = \"\"", "modifier": "private", "original_stri...
{ "body": "public void setMobileSuffix(String mobileSuffix) {\n\t\tthis.mobileSuffix = (mobileSuffix != null ? mobileSuffix : \"\");\n\t}", "class_method_signature": "LiteDeviceDelegatingViewResolver.setMobileSuffix(String mobileSuffix)", "constructor": false, "full_signature": "public void setMobileSuffix(Stri...
{ "created": null, "fork": null, "fork_count": 114, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1810705, "size": 5135, "stargazer_count": 174, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-mobile" }
1810705_160
{ "fields": [ { "declarator": "resolver = new SitePreferenceHandlerMethodArgumentResolver()", "modifier": "private", "original_string": "private SitePreferenceHandlerMethodArgumentResolver resolver = new SitePreferenceHandlerMethodArgumentResolver();", "type": "SitePreferenceHandlerMethodA...
{ "body": "@Test\n\tpublic void unresolvedMobile() throws Exception {\n\t\trequest.setAttribute(SitePreferenceHandler.CURRENT_SITE_PREFERENCE_ATTRIBUTE, SitePreference.MOBILE, WebRequest.SCOPE_REQUEST);\n\t\tMethodParameter parameter = new MethodParameter(getClass().getMethod(\"handlerMethodUnresolved\", String.class...
{ "fields": [], "file": "spring-mobile-device/src/main/java/org/springframework/mobile/device/site/SitePreferenceHandlerMethodArgumentResolver.java", "identifier": "SitePreferenceHandlerMethodArgumentResolver", "interfaces": "implements HandlerMethodArgumentResolver", "methods": [ { "class_method_si...
{ "body": "public boolean supportsParameter(MethodParameter parameter) {\n\t\treturn SitePreference.class.isAssignableFrom(parameter.getParameterType());\n\t}", "class_method_signature": "SitePreferenceHandlerMethodArgumentResolver.supportsParameter(MethodParameter parameter)", "constructor": false, "full_signa...
{ "created": null, "fork": null, "fork_count": 114, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1810705, "size": 5135, "stargazer_count": 174, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-mobile" }
1810705_161
{ "fields": [ { "declarator": "resolver = new SitePreferenceHandlerMethodArgumentResolver()", "modifier": "private", "original_string": "private SitePreferenceHandlerMethodArgumentResolver resolver = new SitePreferenceHandlerMethodArgumentResolver();", "type": "SitePreferenceHandlerMethodA...
{ "body": "@Test\n\tpublic void unresolvedTablet() throws Exception {\n\t\trequest.setAttribute(SitePreferenceHandler.CURRENT_SITE_PREFERENCE_ATTRIBUTE, SitePreference.TABLET, WebRequest.SCOPE_REQUEST);\n\t\tMethodParameter parameter = new MethodParameter(getClass().getMethod(\"handlerMethodUnresolved\", String.class...
{ "fields": [], "file": "spring-mobile-device/src/main/java/org/springframework/mobile/device/site/SitePreferenceHandlerMethodArgumentResolver.java", "identifier": "SitePreferenceHandlerMethodArgumentResolver", "interfaces": "implements HandlerMethodArgumentResolver", "methods": [ { "class_method_si...
{ "body": "public boolean supportsParameter(MethodParameter parameter) {\n\t\treturn SitePreference.class.isAssignableFrom(parameter.getParameterType());\n\t}", "class_method_signature": "SitePreferenceHandlerMethodArgumentResolver.supportsParameter(MethodParameter parameter)", "constructor": false, "full_signa...
{ "created": null, "fork": null, "fork_count": 114, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1810705, "size": 5135, "stargazer_count": 174, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-mobile" }
1810705_136
{ "fields": [ { "declarator": "viewResolver", "modifier": "private", "original_string": "private LiteDeviceDelegatingViewResolver viewResolver;", "type": "LiteDeviceDelegatingViewResolver", "var_name": "viewResolver" }, { "declarator": "delegateViewResolver", "mod...
{ "body": "@Test\n\tpublic void resolveViewNameTabletDeviceMobileSitePreferenceMobilePrefix() throws Exception {\n\t\tdevice.setDeviceType(DeviceType.TABLET);\n\t\trequest.setAttribute(DeviceUtils.CURRENT_DEVICE_ATTRIBUTE, device);\n\t\trequest.setAttribute(SitePreferenceHandler.CURRENT_SITE_PREFERENCE_ATTRIBUTE, Sit...
{ "fields": [ { "declarator": "normalPrefix = \"\"", "modifier": "private", "original_string": "private String normalPrefix = \"\";", "type": "String", "var_name": "normalPrefix" }, { "declarator": "mobilePrefix = \"\"", "modifier": "private", "original_stri...
{ "body": "public void setMobilePrefix(String mobilePrefix) {\n\t\tthis.mobilePrefix = (mobilePrefix != null ? mobilePrefix : \"\");\n\t}", "class_method_signature": "LiteDeviceDelegatingViewResolver.setMobilePrefix(String mobilePrefix)", "constructor": false, "full_signature": "public void setMobilePrefix(Stri...
{ "created": null, "fork": null, "fork_count": 114, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1810705, "size": 5135, "stargazer_count": 174, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-mobile" }
1810705_120
{ "fields": [ { "declarator": "viewResolver", "modifier": "private", "original_string": "private LiteDeviceDelegatingViewResolver viewResolver;", "type": "LiteDeviceDelegatingViewResolver", "var_name": "viewResolver" }, { "declarator": "delegateViewResolver", "mod...
{ "body": "@Test\n\tpublic void resolveViewNameNormalDeviceMobileSitePreferenceMobilePrefix() throws Exception {\n\t\tdevice.setDeviceType(DeviceType.NORMAL);\n\t\trequest.setAttribute(DeviceUtils.CURRENT_DEVICE_ATTRIBUTE, device);\n\t\trequest.setAttribute(SitePreferenceHandler.CURRENT_SITE_PREFERENCE_ATTRIBUTE, Sit...
{ "fields": [ { "declarator": "normalPrefix = \"\"", "modifier": "private", "original_string": "private String normalPrefix = \"\";", "type": "String", "var_name": "normalPrefix" }, { "declarator": "mobilePrefix = \"\"", "modifier": "private", "original_stri...
{ "body": "public void setMobilePrefix(String mobilePrefix) {\n\t\tthis.mobilePrefix = (mobilePrefix != null ? mobilePrefix : \"\");\n\t}", "class_method_signature": "LiteDeviceDelegatingViewResolver.setMobilePrefix(String mobilePrefix)", "constructor": false, "full_signature": "public void setMobilePrefix(Stri...
{ "created": null, "fork": null, "fork_count": 114, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1810705, "size": 5135, "stargazer_count": 174, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-mobile" }
1810705_20
{ "fields": [], "file": "spring-mobile-device/src/test/java/org/springframework/mobile/device/switcher/NormalSitePathUrlFactoryTest.java", "identifier": "NormalSitePathUrlFactoryTest", "interfaces": "", "superclass": "extends AbstractSitePathUrlFactoryTest" }
{ "body": "@Test\n\tpublic void createPathSiteUrlTabletPort8080() {\n\t\trequest.setServerPort(8080);\n\t\trequest.setRequestURI(\"/showcase/tab/foo\");\n\t\tassertEquals(\"https://www.app.com:8080/showcase/foo\", basicPathFactory.createSiteUrl(request));\n\t}", "class_method_signature": "NormalSitePathUrlFactoryTe...
{ "fields": [], "file": "spring-mobile-device/src/main/java/org/springframework/mobile/device/switcher/NormalSitePathUrlFactory.java", "identifier": "NormalSitePathUrlFactory", "interfaces": "implements SiteUrlFactory", "methods": [ { "class_method_signature": "NormalSitePathUrlFactory.NormalSitePat...
{ "body": "public String createSiteUrl(HttpServletRequest request) {\n\t\tString requestURI = request.getRequestURI();\n\t\tString adjustedRequestURI = \"\";\n\t\tif (hasMobilePath() && requestURI.equals(getCleanMobilePath()) || \n\t\t\t\thasTabletPath() && requestURI.equals(getCleanTabletPath())) {\n\t\t\tif (hasRoo...
{ "created": null, "fork": null, "fork_count": 114, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1810705, "size": 5135, "stargazer_count": 174, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-mobile" }
1810705_98
{ "fields": [ { "declarator": "viewResolver", "modifier": "private", "original_string": "private LiteDeviceDelegatingViewResolver viewResolver;", "type": "LiteDeviceDelegatingViewResolver", "var_name": "viewResolver" }, { "declarator": "delegateViewResolver", "mod...
{ "body": "@Test\n\tpublic void resolveViewNameMobileDeviceNormalPrefixForwardToAbsoluteUrl() throws Exception {\n\t\tthis.viewName = \"forward:HTTP://spring.io\";\n\t\tdevice.setDeviceType(DeviceType.MOBILE);\n\t\trequest.setAttribute(DeviceUtils.CURRENT_DEVICE_ATTRIBUTE, device);\n\t\tviewResolver.setMobilePrefix(\...
{ "fields": [ { "declarator": "normalPrefix = \"\"", "modifier": "private", "original_string": "private String normalPrefix = \"\";", "type": "String", "var_name": "normalPrefix" }, { "declarator": "mobilePrefix = \"\"", "modifier": "private", "original_stri...
{ "body": "public void setMobilePrefix(String mobilePrefix) {\n\t\tthis.mobilePrefix = (mobilePrefix != null ? mobilePrefix : \"\");\n\t}", "class_method_signature": "LiteDeviceDelegatingViewResolver.setMobilePrefix(String mobilePrefix)", "constructor": false, "full_signature": "public void setMobilePrefix(Stri...
{ "created": null, "fork": null, "fork_count": 114, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1810705, "size": 5135, "stargazer_count": 174, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-mobile" }
1810705_77
{ "fields": [], "file": "spring-mobile-device/src/test/java/org/springframework/mobile/device/switcher/TabletSitePathUrlFactoryTest.java", "identifier": "TabletSitePathUrlFactoryTest", "interfaces": "", "superclass": "extends AbstractSitePathUrlFactoryTest" }
{ "body": "@Test\n\tpublic void createLongPathSiteUrlFromMobileSiteMultipleMobile() {\n\t\trequest.setServerPort(80);\n\t\trequest.setRequestURI(\"/showcase/mobile/about/x/mobile/y/z/contact\");\n\t\tassertEquals(\"https://www.app.com/showcase/tablet/about/x/mobile/y/z/contact\",\n\t\t\t\tadvPathFactory.createSiteUrl...
{ "fields": [], "file": "spring-mobile-device/src/main/java/org/springframework/mobile/device/switcher/TabletSitePathUrlFactory.java", "identifier": "TabletSitePathUrlFactory", "interfaces": "implements SiteUrlFactory", "methods": [ { "class_method_signature": "TabletSitePathUrlFactory.TabletSitePat...
{ "body": "public String createSiteUrl(HttpServletRequest request) {\n\t\tString urlPath = request.getRequestURI();\n\t\tif (getCleanMobilePath() != null && urlPath.startsWith(getCleanMobilePath())) {\n\t\t\turlPath = urlPath.substring(getCleanMobilePath().length());\n\t\t} else if (getRootPath() != null && urlPath.s...
{ "created": null, "fork": null, "fork_count": 114, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1810705, "size": 5135, "stargazer_count": 174, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-mobile" }
1810705_2
{ "fields": [ { "declarator": "device = new StubDevice()", "modifier": "private", "original_string": "private Device device = new StubDevice();", "type": "Device", "var_name": "device" }, { "declarator": "filter = new DeviceResolverRequestFilter(new DeviceResolver() {\n...
{ "body": "@Test\n\tpublic void resolveDefaultResolver() throws Exception {\n\t\tfilter = new DeviceResolverRequestFilter();\n\t\trequest.addHeader(\"User-Agent\", \"Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_0 like Mac OS X; en-us) AppleWebKit/532.9 (KHTML, like Gecko) Version/4.0.5 Mobile/8A293 Safari/6531.22.7\");\n\...
{ "fields": [ { "declarator": "deviceResolver", "modifier": "private final", "original_string": "private final DeviceResolver deviceResolver;", "type": "DeviceResolver", "var_name": "deviceResolver" } ], "file": "spring-mobile-device/src/main/java/org/springframework/mobile/d...
{ "body": "@Override\n\tprotected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain)\n\t\t\tthrows ServletException, IOException {\n\t\tDevice device = deviceResolver.resolveDevice(request);\n\t\trequest.setAttribute(DeviceUtils.CURRENT_DEVICE_ATTRIBUTE, device);\...
{ "created": null, "fork": null, "fork_count": 114, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1810705, "size": 5135, "stargazer_count": 174, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-mobile" }
1810705_61
{ "fields": [], "file": "spring-mobile-device/src/test/java/org/springframework/mobile/device/switcher/TabletSitePathUrlFactoryTest.java", "identifier": "TabletSitePathUrlFactoryTest", "interfaces": "", "superclass": "extends AbstractSitePathUrlFactoryTest" }
{ "body": "@Test\n\tpublic void isRequestForRootSite() {\n\t\trequest.setRequestURI(\"/tablet/\");\n\t\tassertTrue(basicRootFactory.isRequestForSite(request));\n\t}", "class_method_signature": "TabletSitePathUrlFactoryTest.isRequestForRootSite()", "constructor": false, "full_signature": "@Test public void isReq...
{ "fields": [], "file": "spring-mobile-device/src/main/java/org/springframework/mobile/device/switcher/TabletSitePathUrlFactory.java", "identifier": "TabletSitePathUrlFactory", "interfaces": "implements SiteUrlFactory", "methods": [ { "class_method_signature": "TabletSitePathUrlFactory.TabletSitePat...
{ "body": "public boolean isRequestForSite(HttpServletRequest request) {\n\t\treturn request.getRequestURI().startsWith(this.getFullTabletPath())\n\t\t\t\t|| request.getRequestURI().equals(this.getCleanTabletPath());\n\t}", "class_method_signature": "TabletSitePathUrlFactory.isRequestForSite(HttpServletRequest requ...
{ "created": null, "fork": null, "fork_count": 114, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1810705, "size": 5135, "stargazer_count": 174, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-mobile" }
1810705_36
{ "fields": [ { "declarator": "siteSwitcher", "modifier": "private", "original_string": "private SiteSwitcherHandlerInterceptor siteSwitcher;", "type": "SiteSwitcherHandlerInterceptor", "var_name": "siteSwitcher" }, { "declarator": "request = new MockHttpServletRequest(...
{ "body": "@Test\n\tpublic void tabletDeviceTabletPreference() throws Exception {\n\t\tdevice.setDeviceType(DeviceType.TABLET);\n\t\tsitePreferenceRepository.setSitePreference(SitePreference.TABLET);\n\t\tassertFalse(siteSwitcher.preHandle(request, response, null));\n\t\tassertEquals(\"https://app.com/tab\", response...
{ "fields": [ { "declarator": "siteSwitcherHandler", "modifier": "private final", "original_string": "private final SiteSwitcherHandler siteSwitcherHandler;", "type": "SiteSwitcherHandler", "var_name": "siteSwitcherHandler" } ], "file": "spring-mobile-device/src/main/java/org...
{ "body": "public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {\n\t\treturn siteSwitcherHandler.handleSiteSwitch(request, response);\n\t}", "class_method_signature": "SiteSwitcherHandlerInterceptor.preHandle(HttpServletRequest request, HttpServletResp...
{ "created": null, "fork": null, "fork_count": 114, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1810705, "size": 5135, "stargazer_count": 174, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-mobile" }
1810705_41
{ "fields": [], "file": "spring-mobile-device/src/test/java/org/springframework/mobile/device/switcher/MobileSitePathUrlFactoryTest.java", "identifier": "MobileSitePathUrlFactoryTest", "interfaces": "", "superclass": "extends AbstractSitePathUrlFactoryTest" }
{ "body": "@Test\n\tpublic void notRequestForRootSiteWithPath() {\n\t\trequest.setRequestURI(\"/marvelous/\");\n\t\tassertFalse(basicRootFactory.isRequestForSite(request));\n\t}", "class_method_signature": "MobileSitePathUrlFactoryTest.notRequestForRootSiteWithPath()", "constructor": false, "full_signature": "@...
{ "fields": [], "file": "spring-mobile-device/src/main/java/org/springframework/mobile/device/switcher/MobileSitePathUrlFactory.java", "identifier": "MobileSitePathUrlFactory", "interfaces": "implements SiteUrlFactory", "methods": [ { "class_method_signature": "MobileSitePathUrlFactory.MobileSitePat...
{ "body": "public boolean isRequestForSite(HttpServletRequest request) {\n\t\treturn request.getRequestURI().startsWith(this.getFullMobilePath())\n\t\t\t\t|| request.getRequestURI().equals(this.getCleanMobilePath());\n\t}", "class_method_signature": "MobileSitePathUrlFactory.isRequestForSite(HttpServletRequest requ...
{ "created": null, "fork": null, "fork_count": 114, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1810705, "size": 5135, "stargazer_count": 174, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-mobile" }
1810705_16
{ "fields": [], "file": "spring-mobile-device/src/test/java/org/springframework/mobile/device/switcher/NormalSitePathUrlFactoryTest.java", "identifier": "NormalSitePathUrlFactoryTest", "interfaces": "", "superclass": "extends AbstractSitePathUrlFactoryTest" }
{ "body": "@Test\n\tpublic void createRootSiteUrlTabletPort8080() {\n\t\trequest.setServerPort(8080);\n\t\trequest.setRequestURI(\"/tab/foo\");\n\t\tassertEquals(\"https://www.app.com:8080/foo\", basicRootFactory.createSiteUrl(request));\n\t}", "class_method_signature": "NormalSitePathUrlFactoryTest.createRootSiteU...
{ "fields": [], "file": "spring-mobile-device/src/main/java/org/springframework/mobile/device/switcher/NormalSitePathUrlFactory.java", "identifier": "NormalSitePathUrlFactory", "interfaces": "implements SiteUrlFactory", "methods": [ { "class_method_signature": "NormalSitePathUrlFactory.NormalSitePat...
{ "body": "public String createSiteUrl(HttpServletRequest request) {\n\t\tString requestURI = request.getRequestURI();\n\t\tString adjustedRequestURI = \"\";\n\t\tif (hasMobilePath() && requestURI.equals(getCleanMobilePath()) || \n\t\t\t\thasTabletPath() && requestURI.equals(getCleanTabletPath())) {\n\t\t\tif (hasRoo...
{ "created": null, "fork": null, "fork_count": 114, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1810705, "size": 5135, "stargazer_count": 174, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-mobile" }
1810705_57
{ "fields": [ { "declarator": "basicRootFactory", "modifier": "protected", "original_string": "protected AbstractSitePathUrlFactory basicRootFactory;", "type": "AbstractSitePathUrlFactory", "var_name": "basicRootFactory" }, { "declarator": "advRootFactory", "modif...
{ "body": "@Test\n\tpublic void rootFullNormalPath() {\n\t\tassertEquals(\"/\", basicRootFactory.getFullNormalPath());\n\t}", "class_method_signature": "AbstractSitePathUrlFactoryTest.rootFullNormalPath()", "constructor": false, "full_signature": "@Test public void rootFullNormalPath()", "identifier": "rootFu...
{ "fields": [ { "declarator": "mobilePath", "modifier": "private final", "original_string": "private final String mobilePath;", "type": "String", "var_name": "mobilePath" }, { "declarator": "tabletPath", "modifier": "private final", "original_string": "priva...
{ "body": "public String getFullNormalPath() {\n\t\treturn (this.rootPath == null ? \"/\" : getCleanPath(this.rootPath) + \"/\");\n\t}", "class_method_signature": "AbstractSitePathUrlFactory.getFullNormalPath()", "constructor": false, "full_signature": "public String getFullNormalPath()", "identifier": "getFu...
{ "created": null, "fork": null, "fork_count": 114, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1810705, "size": 5135, "stargazer_count": 174, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-mobile" }
1810705_100
{ "fields": [ { "declarator": "viewResolver", "modifier": "private", "original_string": "private LiteDeviceDelegatingViewResolver viewResolver;", "type": "LiteDeviceDelegatingViewResolver", "var_name": "viewResolver" }, { "declarator": "delegateViewResolver", "mod...
{ "body": "@Test\n\tpublic void resolveViewNameTabletDeviceTabletPrefixRedirectToRoot() throws Exception {\n\t\tthis.viewName = \"redirect:/\";\n\t\tdevice.setDeviceType(DeviceType.TABLET);\n\t\trequest.setAttribute(DeviceUtils.CURRENT_DEVICE_ATTRIBUTE, device);\n\t\tviewResolver.setTabletPrefix(\"tablet/\");\n\t\tre...
{ "fields": [ { "declarator": "normalPrefix = \"\"", "modifier": "private", "original_string": "private String normalPrefix = \"\";", "type": "String", "var_name": "normalPrefix" }, { "declarator": "mobilePrefix = \"\"", "modifier": "private", "original_stri...
{ "body": "public void setTabletPrefix(String tabletPrefix) {\n\t\tthis.tabletPrefix = (tabletPrefix != null ? tabletPrefix : \"\");\n\t}", "class_method_signature": "LiteDeviceDelegatingViewResolver.setTabletPrefix(String tabletPrefix)", "constructor": false, "full_signature": "public void setTabletPrefix(Stri...
{ "created": null, "fork": null, "fork_count": 114, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1810705, "size": 5135, "stargazer_count": 174, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-mobile" }
1810705_157
{ "fields": [ { "declarator": "sitePreferenceHandler", "modifier": "private", "original_string": "private StandardSitePreferenceHandler sitePreferenceHandler;", "type": "StandardSitePreferenceHandler", "var_name": "sitePreferenceHandler" }, { "declarator": "request = ne...
{ "body": "@Test\n\tpublic void defaultSitePreferenceMobileDevice() throws Exception {\n\t\trequest.setAttribute(DeviceUtils.CURRENT_DEVICE_ATTRIBUTE, new StubDevice(DeviceType.MOBILE));\n\t\tassertEquals(SitePreference.MOBILE, sitePreferenceHandler.handleSitePreference(request, response));\n\t\tassertEquals(SitePref...
{ "fields": [ { "declarator": "sitePreferenceRepository", "modifier": "private final", "original_string": "private final SitePreferenceRepository sitePreferenceRepository;", "type": "SitePreferenceRepository", "var_name": "sitePreferenceRepository" }, { "declarator": "S...
{ "body": "public SitePreference handleSitePreference(HttpServletRequest request, HttpServletResponse response) {\n\t\tSitePreference preference = getSitePreferenceQueryParameter(request);\n\t\tif (preference != null) {\n\t\t\tsitePreferenceRepository.saveSitePreference(preference, request, response);\n\t\t} else {\n...
{ "created": null, "fork": null, "fork_count": 114, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1810705, "size": 5135, "stargazer_count": 174, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-mobile" }
1810705_94
{ "fields": [ { "declarator": "viewResolver", "modifier": "private", "original_string": "private LiteDeviceDelegatingViewResolver viewResolver;", "type": "LiteDeviceDelegatingViewResolver", "var_name": "viewResolver" }, { "declarator": "delegateViewResolver", "mod...
{ "body": "@Test\n\tpublic void resolveViewNameMobileDeviceMobileSuffixRedirect() throws Exception {\n\t\tthis.viewName = \"redirect:about\";\n\t\tdevice.setDeviceType(DeviceType.MOBILE);\n\t\trequest.setAttribute(DeviceUtils.CURRENT_DEVICE_ATTRIBUTE, device);\n\t\tviewResolver.setMobileSuffix(\".mob\");\n\t\treplayM...
{ "fields": [ { "declarator": "normalPrefix = \"\"", "modifier": "private", "original_string": "private String normalPrefix = \"\";", "type": "String", "var_name": "normalPrefix" }, { "declarator": "mobilePrefix = \"\"", "modifier": "private", "original_stri...
{ "body": "public void setMobileSuffix(String mobileSuffix) {\n\t\tthis.mobileSuffix = (mobileSuffix != null ? mobileSuffix : \"\");\n\t}", "class_method_signature": "LiteDeviceDelegatingViewResolver.setMobileSuffix(String mobileSuffix)", "constructor": false, "full_signature": "public void setMobileSuffix(Stri...
{ "created": null, "fork": null, "fork_count": 114, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1810705, "size": 5135, "stargazer_count": 174, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-mobile" }
1810705_141
{ "fields": [ { "declarator": "resolver = new DeviceHandlerMethodArgumentResolver()", "modifier": "private", "original_string": "private DeviceHandlerMethodArgumentResolver resolver = new DeviceHandlerMethodArgumentResolver();", "type": "DeviceHandlerMethodArgumentResolver", "var_nam...
{ "body": "@Test\n\tpublic void unresolved() throws Exception {\n\t\trequest.setAttribute(DeviceUtils.CURRENT_DEVICE_ATTRIBUTE, device, WebRequest.SCOPE_REQUEST);\n\t\tMethodParameter parameter = new MethodParameter(getClass().getMethod(\"handlerMethodUnresolved\", String.class), 0);\n\t\tassertFalse(resolver.support...
{ "fields": [], "file": "spring-mobile-device/src/main/java/org/springframework/mobile/device/DeviceHandlerMethodArgumentResolver.java", "identifier": "DeviceHandlerMethodArgumentResolver", "interfaces": "implements HandlerMethodArgumentResolver", "methods": [ { "class_method_signature": "DeviceHand...
{ "body": "public boolean supportsParameter(MethodParameter parameter) {\n\t\treturn Device.class.isAssignableFrom(parameter.getParameterType());\n\t}", "class_method_signature": "DeviceHandlerMethodArgumentResolver.supportsParameter(MethodParameter parameter)", "constructor": false, "full_signature": "public b...
{ "created": null, "fork": null, "fork_count": 114, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1810705, "size": 5135, "stargazer_count": 174, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-mobile" }
1810705_82
{ "fields": [ { "declarator": "viewResolver", "modifier": "private", "original_string": "private LiteDeviceDelegatingViewResolver viewResolver;", "type": "LiteDeviceDelegatingViewResolver", "var_name": "viewResolver" }, { "declarator": "delegateViewResolver", "mod...
{ "body": "@Test\n\tpublic void resolveViewNameNormalDeviceNormalPrefixRedirectToAbsoluteUrl() throws Exception {\n\t\tthis.viewName = \"redirect:https://spring.io\";\n\t\tdevice.setDeviceType(DeviceType.NORMAL);\n\t\trequest.setAttribute(DeviceUtils.CURRENT_DEVICE_ATTRIBUTE, device);\n\t\tviewResolver.setNormalPrefi...
{ "fields": [ { "declarator": "normalPrefix = \"\"", "modifier": "private", "original_string": "private String normalPrefix = \"\";", "type": "String", "var_name": "normalPrefix" }, { "declarator": "mobilePrefix = \"\"", "modifier": "private", "original_stri...
{ "body": "public void setNormalPrefix(String normalPrefix) {\n\t\tthis.normalPrefix = (normalPrefix != null ? normalPrefix : \"\");\n\t}", "class_method_signature": "LiteDeviceDelegatingViewResolver.setNormalPrefix(String normalPrefix)", "constructor": false, "full_signature": "public void setNormalPrefix(Stri...
{ "created": null, "fork": null, "fork_count": 114, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1810705, "size": 5135, "stargazer_count": 174, "stars": null, "updates": null, "url": "https://github.com/spring-projects/spring-mobile" }