id
stringlengths
7
14
test_class
dict
test_case
dict
focal_class
dict
focal_method
dict
repository
dict
32377028_14
{ "fields": [], "file": "OtrosLogViewer-app/src/test/java/pl/otros/logview/VersionUtilTest.java", "identifier": "VersionUtilTest", "interfaces": "", "superclass": "" }
{ "body": "@Test(dataProvider = \"testValidateResponse\")\n public void testValidateResponse(String response, Optional<String> expected) throws Exception {\n final VersionUtil versionUtil = new VersionUtil();\n final Optional<String> actual = versionUtil.validateResponse(response);\n assertEquals(actual, ex...
{ "fields": [ { "declarator": "LOGGER = LoggerFactory.getLogger(VersionUtil.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(VersionUtil.class.getName());", "type": "Logger", "var_name": "LOGGER" ...
{ "body": "Optional<String> validateResponse(String currentVersion) {\n if (currentVersion != null && currentVersion.matches(\"\\\\d+(.\\\\d+)*\")) {\n return Optional.of(currentVersion);\n } else {\n return Optional.empty();\n }\n }", "class_method_signature": "VersionUtil.validateResponse(Stri...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_152
{ "fields": [ { "declarator": "wireMock", "modifier": "private", "original_string": "private WireMockServer wireMock;", "type": "WireMockServer", "var_name": "wireMock" }, { "declarator": "jumpToCodeClient", "modifier": "private", "original_string": "private...
{ "body": "@Test\n public void testCapabilities() throws Exception {\n Assertions.assertThat(jumpToCodeClient.capabilities())\n .containsOnly(\n JumpToCodeService.Capabilities.AllFile,\n JumpToCodeService.Capabilities.ContentByLine,\n JumpToCodeService.Capabilities.ContentByMessage,\n ...
{ "fields": [ { "declarator": "LOGGER = LoggerFactory.getLogger(JumpToCodeClient.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(JumpToCodeClient.class.getName());", "type": "Logger", "var_name": ...
{ "body": "public Set<JumpToCodeService.Capabilities> capabilities() throws IOException {\n final Map<String, String> stringStringMap = executeAndGetHeaders(new GetMethod(getUrl()));\n final Set<String> definedCapabilities = Arrays\n .stream(JumpToCodeService.Capabilities.values())\n .map(JumpToCodeSe...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_43
{ "fields": [], "file": "OtrosLogViewer-app/src/test/java/pl/otros/logview/accept/query/org/apache/log4j/rule/ExistsRuleTest.java", "identifier": "ExistsRuleTest", "interfaces": "", "superclass": "" }
{ "body": "@Test public void test2() {\n Stack<Object> stack = new Stack<>();\n stack.push(\"Hello\");\n try {\n ExistsRule.getRule(stack);\n Assert.fail(\"Should have thrown IllegalArgumentException\");\n } catch (IllegalArgumentException ignored) {\n }\n }...
{ "fields": [ { "declarator": "serialVersionUID = -5386265224649967464L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -5386265224649967464L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "RES...
{ "body": "public static Rule getRule(final String field) {\n return new ExistsRule(field);\n }", "class_method_signature": "ExistsRule.getRule(final String field)", "constructor": false, "full_signature": "public static Rule getRule(final String field)", "identifier": "getRule", "invocations": [], "m...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_105
{ "fields": [ { "declarator": "dataTableModel", "modifier": "public", "original_string": "public LogDataTableModel dataTableModel;", "type": "LogDataTableModel", "var_name": "dataTableModel" }, { "declarator": "logDatas", "modifier": "public", "original_stri...
{ "body": "@Test\n public void testRemoveNote() {\n AssertJUnit.assertEquals(NOTE_4, dataTableModel.getNote(4).getNote());\n dataTableModel.removeNote(4);\n AssertJUnit.assertEquals(\"\", dataTableModel.getNote(4).getNote());\n }", "class_method_signature": "LogDataTableModelTest.testRemoveNote()", "co...
{ "fields": [ { "declarator": "EMPTY_STRING = \"\"", "modifier": "private static final", "original_string": "private static final String EMPTY_STRING = \"\";", "type": "String", "var_name": "EMPTY_STRING" }, { "declarator": "LOGGER = LoggerFactory.getLogger(LogDataTable...
{ "body": "@Override\n public Note removeNote(int row) {\n Note n = logDataStore.removeNote(row);\n fireTableRowsUpdated(row, row);\n return n;\n }", "class_method_signature": "LogDataTableModel.removeNote(int row)", "constructor": false, "full_signature": "@Override public Note removeNote(int row)",...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_2
{ "fields": [], "file": "OtrosVfsBrowser/src/test/java/pl/otros/vfs/browser/table/FileSizeTest.java", "identifier": "FileSizeTest", "interfaces": "", "superclass": "" }
{ "body": "@Test (dataProvider = \"testToStringDataProvider\")\n public void testToString(long size, String expectedResult) throws Exception {\n FileSize fileSize = new FileSize(size);\n Assert.assertEquals(fileSize.toString(), expectedResult);\n }", "class_method_signature": "FileSizeTest.testToString(long...
{ "fields": [ { "declarator": "K = 1024", "modifier": "private static final", "original_string": "private static final long K = 1024;", "type": "long", "var_name": "K" }, { "declarator": "M = K * K", "modifier": "private static final", "original_string": "pr...
{ "body": "@Override\n public String toString() {\n return convertToStringRepresentation(bytes);\n }", "class_method_signature": "FileSize.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "invocations": [ "convertToStringRepresenta...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_55
{ "fields": [], "file": "OtrosLogViewer-app/src/test/java/pl/otros/logview/accept/query/org/apache/log4j/rule/TimestampInequalityRuleTest.java", "identifier": "TimestampInequalityRuleTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void test2() {\n //\n // unlike LevelInequalityRule, does not throw exception. Resulting rule never satisified.\n //\n TimestampInequalityRule.getRule(\"~\", \"2008-05-21 00:45:46\");\n }", "class_method_signature": "TimestampInequalityRuleTest.test2()", "constructor": fals...
{ "fields": [ { "declarator": "LOGGER = LoggerFactory.getLogger(TimestampEqualsRule.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(TimestampEqualsRule.class.getName());", "type": "Logger", "var_n...
{ "body": "public static Rule getRule(final String inequalitySymbol, final String value) {\n return new TimestampInequalityRule(inequalitySymbol, value);\n }", "class_method_signature": "TimestampInequalityRule.getRule(final String inequalitySymbol, final String value)", "constructor": false, "full_signatur...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_113
{ "fields": [ { "declarator": "LOG_EVENT_COUNT = 1000", "modifier": "public static final", "original_string": "public static final int LOG_EVENT_COUNT = 1000;", "type": "int", "var_name": "LOG_EVENT_COUNT" }, { "declarator": "TEST_THREAD_POOL_NAME = \"TestThreadPoolName...
{ "body": "@Test\n public void testGetLogData() throws Exception {\n LogData logData = store.getLogData(0);\n\n AssertJUnit.assertEquals(0, logData.getDate().getTime());\n AssertJUnit.assertEquals(classes[0], logData.getClazz());\n }", "class_method_signature": "MemoryAsyncLogDataStoreTest.testGetLogData...
{ "fields": [ { "declarator": "logDataStore", "modifier": "private final", "original_string": "private final LogDataStore logDataStore;", "type": "LogDataStore", "var_name": "logDataStore" }, { "declarator": "service", "modifier": "private final", "original_...
{ "body": "@Override\n public LogData getLogData(int row) {\n return runCallableInDedicatedThread(new OperationGetLogData(logDataStore, row));\n }", "class_method_signature": "MemoryAsyncLogDataStore.getLogData(int row)", "constructor": false, "full_signature": "@Override public LogData getLogData(int row)...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_144
{ "fields": [ { "declarator": "importer", "modifier": "private", "original_string": "private UtilLoggingXmlLogImporter importer;", "type": "UtilLoggingXmlLogImporter", "var_name": "importer" } ], "file": "OtrosLogViewer-app/src/test/java/pl/otros/logview/importer/UtilLoggingX...
{ "body": "@Test\n public void testAppendStackFrame() {\n assertEquals(\"\\n\\tat a.b.C.d(C.java:120)\", importer.appendStackFrame(new StringBuilder(), \"a.b.C\", \"d\", \"120\", \"C\").toString());\n assertEquals(\"\\n\\tat a.b.C$I.d(C.java:120)\", importer.appendStackFrame(new StringBuilder(), \"a.b.C$I\", \...
{ "fields": [ { "declarator": "DOC_BUILDER = \"DOC_BUILDER\"", "modifier": "private static final", "original_string": "private static final String DOC_BUILDER = \"DOC_BUILDER\";", "type": "String", "var_name": "DOC_BUILDER" }, { "declarator": "PARTIAL_EVENT = \"PARTIAL_...
{ "body": "protected StringBuilder appendStackFrame(StringBuilder sb, String clazz, String method, String line, String fileName) {\n sb.append(\"\\n\\tat \");\n sb.append(clazz).append(\".\").append(method);\n if (fileName != null) {\n sb.append(\"(\");\n sb.append(fileName).append(\".java\");\n ...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_145
{ "fields": [ { "declarator": "importer", "modifier": "private", "original_string": "private UtilLoggingXmlLogImporter importer;", "type": "UtilLoggingXmlLogImporter", "var_name": "importer" } ], "file": "OtrosLogViewer-app/src/test/java/pl/otros/logview/importer/UtilLoggingX...
{ "body": "@Test\n public void testDecodeEvents() throws IOException, InitializationException {\n // given\n InputStream resourceAsStream = this.getClass().getClassLoader().getResourceAsStream(\"julxml/julXmlException.xml\");\n ParsingContext parsingContext = new ParsingContext(\"A\");\n importer.initPar...
{ "fields": [ { "declarator": "DOC_BUILDER = \"DOC_BUILDER\"", "modifier": "private static final", "original_string": "private static final String DOC_BUILDER = \"DOC_BUILDER\";", "type": "String", "var_name": "DOC_BUILDER" }, { "declarator": "PARTIAL_EVENT = \"PARTIAL_...
{ "body": "public void decodeEvents(final String document, LogDataCollector collector, ParsingContext parsingContext) {\n\n if (document != null) {\n\n if (document.trim().equals(\"\")) {\n return;\n }\n\n String newDoc;\n String newPartialEvent;\n // separate the string into the la...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_112
{ "fields": [ { "declarator": "LOG_EVENT_COUNT = 1000", "modifier": "public static final", "original_string": "public static final int LOG_EVENT_COUNT = 1000;", "type": "int", "var_name": "LOG_EVENT_COUNT" }, { "declarator": "TEST_THREAD_POOL_NAME = \"TestThreadPoolName...
{ "body": "@Test(enabled = false)\n public void testSearch() throws Exception {\n Assert.fail(\"not implemented\");\n }", "class_method_signature": "MemoryAsyncLogDataStoreTest.testSearch()", "constructor": false, "full_signature": "@Test(enabled = false) public void testSearch()", "identifier": "testSea...
{ "fields": [ { "declarator": "logDataStore", "modifier": "private final", "original_string": "private final LogDataStore logDataStore;", "type": "LogDataStore", "var_name": "logDataStore" }, { "declarator": "service", "modifier": "private final", "original_...
{ "body": "@Override\n public ListenableFuture<SearchResult> search(SearchCriteria searchCriteria) {\n //TODO\n return null;\n }", "class_method_signature": "MemoryAsyncLogDataStore.search(SearchCriteria searchCriteria)", "constructor": false, "full_signature": "@Override public ListenableFuture<SearchR...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_54
{ "fields": [], "file": "OtrosLogViewer-app/src/test/java/pl/otros/logview/accept/query/org/apache/log4j/rule/TimestampInequalityRuleTest.java", "identifier": "TimestampInequalityRuleTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testFail2() {\n try {\n TimestampInequalityRule.getRule(\">\", \"2008/May/20\");\n Assert.fail(\"Expected IllegalArgumentException\");\n } catch (IllegalArgumentException ignored) {\n }\n }", "class_method_signature": "TimestampInequalityRuleTest.testFail2()", "...
{ "fields": [ { "declarator": "LOGGER = LoggerFactory.getLogger(TimestampEqualsRule.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(TimestampEqualsRule.class.getName());", "type": "Logger", "var_n...
{ "body": "public static Rule getRule(final String inequalitySymbol, final String value) {\n return new TimestampInequalityRule(inequalitySymbol, value);\n }", "class_method_signature": "TimestampInequalityRule.getRule(final String inequalitySymbol, final String value)", "constructor": false, "full_signatur...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_104
{ "fields": [ { "declarator": "dataTableModel", "modifier": "public", "original_string": "public LogDataTableModel dataTableModel;", "type": "LogDataTableModel", "var_name": "dataTableModel" }, { "declarator": "logDatas", "modifier": "public", "original_stri...
{ "body": "@Test\n public void testGetNote() {\n AssertJUnit.assertEquals(NOTE_4, dataTableModel.getNote(4).getNote());\n AssertJUnit.assertEquals(NOTE_9, dataTableModel.getNote(9).getNote());\n AssertJUnit.assertEquals(\"\", dataTableModel.getNote(2).getNote());\n AssertJUnit.assertEquals(\"\", dataTabl...
{ "fields": [ { "declarator": "EMPTY_STRING = \"\"", "modifier": "private static final", "original_string": "private static final String EMPTY_STRING = \"\";", "type": "String", "var_name": "EMPTY_STRING" }, { "declarator": "LOGGER = LoggerFactory.getLogger(LogDataTable...
{ "body": "@Override\n public Note getNote(int row) {\n Note n = logDataStore.getNote(row);\n return n != null ? n : EMPTY_NOTE;\n }", "class_method_signature": "LogDataTableModel.getNote(int row)", "constructor": false, "full_signature": "@Override public Note getNote(int row)", "identifier": "getNot...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_3
{ "fields": [], "file": "OtrosVfsBrowser/src/test/java/pl/otros/vfs/browser/table/FileSizeTest.java", "identifier": "FileSizeTest", "interfaces": "", "superclass": "" }
{ "body": "@Test (dataProvider = \"testGetMultiplier\")\n public void testGetMultiplier(char c, long multiplier) throws Exception {\n FileSize fs = new FileSize(1);\n Assert.assertEquals(fs.getMultiplier(c), multiplier);\n }", "class_method_signature": "FileSizeTest.testGetMultiplier(char c, long multiplier...
{ "fields": [ { "declarator": "K = 1024", "modifier": "private static final", "original_string": "private static final long K = 1024;", "type": "long", "var_name": "K" }, { "declarator": "M = K * K", "modifier": "private static final", "original_string": "pr...
{ "body": "public long getMultiplier(char multiplierChar) {\n long multiplier = 1;\n multiplierChar = Character.toLowerCase(multiplierChar);\n switch (multiplierChar) {\n case 't':\n multiplier = multiplier * 1024;\n case 'g':\n multiplier = multiplier * 1024;\n case 'm':\n ...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_42
{ "fields": [], "file": "OtrosLogViewer-app/src/test/java/pl/otros/logview/accept/query/org/apache/log4j/rule/ExistsRuleTest.java", "identifier": "ExistsRuleTest", "interfaces": "", "superclass": "" }
{ "body": "@Test public void test1() {\n Stack<Object> stack = new Stack<>();\n try {\n ExistsRule.getRule(stack);\n Assert.fail(\"Should have thrown IllegalArgumentException\");\n } catch (IllegalArgumentException ignored) {\n }\n }", "class_method_signature": "...
{ "fields": [ { "declarator": "serialVersionUID = -5386265224649967464L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -5386265224649967464L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "RES...
{ "body": "public static Rule getRule(final String field) {\n return new ExistsRule(field);\n }", "class_method_signature": "ExistsRule.getRule(final String field)", "constructor": false, "full_signature": "public static Rule getRule(final String field)", "identifier": "getRule", "invocations": [], "m...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_153
{ "fields": [ { "declarator": "wireMock", "modifier": "private", "original_string": "private WireMockServer wireMock;", "type": "WireMockServer", "var_name": "wireMock" }, { "declarator": "jumpToCodeClient", "modifier": "private", "original_string": "private...
{ "body": "@Test\n public void testGetIde() {\n Assertions.assertThat(jumpToCodeClient.getIde())\n .isEqualTo(Ide.IDEA);\n }", "class_method_signature": "JumpToCodeClientTest.testGetIde()", "constructor": false, "full_signature": "@Test public void testGetIde()", "identifier": "testGetIde", "invoc...
{ "fields": [ { "declarator": "LOGGER = LoggerFactory.getLogger(JumpToCodeClient.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(JumpToCodeClient.class.getName());", "type": "Logger", "var_name": ...
{ "body": "public Ide getIde(String host, int port) {\n try {\n return new GetIdeCallable(getCheckIdeUrl(host, port)).call();\n } catch (Exception e) {\n return Ide.DISCONNECTED;\n }\n }", "class_method_signature": "JumpToCodeClient.getIde(String host, int port)", "constructor": false, "full...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_15
{ "fields": [], "file": "OtrosLogViewer-app/src/test/java/pl/otros/logview/util/LoggerConfigUtilTest.java", "identifier": "LoggerConfigUtilTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testExtractLayoutPatternsLog4jXml() {\n //Given\n String content = \"<appender name=\\\"console\\\" class=\\\"org.apache.log4j.ConsoleAppender\\\">\\n\" +\n \"\\t\\t<param name=\\\"Target\\\" value=\\\"System.out\\\" />\\n\" +\n \"\\t\\t<layout class=\\\"org.apache.log4...
{ "fields": [ { "declarator": "LOGGER = LoggerFactory.getLogger(LoggerConfigUtil.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(LoggerConfigUtil.class.getName());", "type": "Logger", "var_name": ...
{ "body": "@NotNull\n public static Set<String> extractLayoutPatterns(String content) {\n final LayoutEncoderConverter logbackLayoutEncoderConverter = new LogbackLayoutEncoderConverter();\n\n Set<String> result = new HashSet<>();\n final Matcher logbackMatcher = Pattern.compile(\"<pattern>\\\\s*(.*?)\\\\s*<...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_128
{ "fields": [ { "declarator": "LOG_EVENT_COUNT = 1000", "modifier": "public static final", "original_string": "public static final int LOG_EVENT_COUNT = 1000;", "type": "int", "var_name": "LOG_EVENT_COUNT" }, { "declarator": "TEST_THREAD_POOL_NAME = \"TestThreadPoolName...
{ "body": "@Test\n public void testUnmarkRows() throws Exception {\n //give\n //when\n store.unmarkRows(10, 20);\n //then\n AssertJUnit.assertFalse(store.isMarked(10));\n AssertJUnit.assertFalse(store.isMarked(20));\n }", "class_method_signature": "MemoryAsyncLogDataStoreTest.testUnmarkRows()", ...
{ "fields": [ { "declarator": "logDataStore", "modifier": "private final", "original_string": "private final LogDataStore logDataStore;", "type": "LogDataStore", "var_name": "logDataStore" }, { "declarator": "service", "modifier": "private final", "original_...
{ "body": "@Override\n public void unmarkRows(int... rows) {\n runCallableInDedicatedThread(new OperationUnMarkRows(logDataStore, rows));\n\n }", "class_method_signature": "MemoryAsyncLogDataStore.unmarkRows(int... rows)", "constructor": false, "full_signature": "@Override public void unmarkRows(int... row...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_81
{ "fields": [ { "declarator": "PORT = 45501", "modifier": "private static final", "original_string": "private static final int PORT = 45501;", "type": "int", "var_name": "PORT" }, { "declarator": "HTTP_GZIPPED = \"http://127.0.0.1:\" + PORT + \"/log.txt.gz\"", "mo...
{ "body": "@Test\n public void testLargerGzippedHttp() throws Exception {\n try (LoadingInfo logFileContent = new LoadingInfo(fsManager.resolveFile(HTTP_GZIPPED))) {\n assertTrue(logFileContent.isGzipped());\n assertEquals(69_058, asString(logFileContent).length());\n }\n }", "class_method_signatu...
{ "fields": [ { "declarator": "friendlyUrl", "modifier": "private final", "original_string": "private final String friendlyUrl;", "type": "String", "var_name": "friendlyUrl" }, { "declarator": "fileObject", "modifier": "private final", "original_string": "pr...
{ "body": "public boolean isGzipped() {\n return gzipped;\n }", "class_method_signature": "LoadingInfo.isGzipped()", "constructor": false, "full_signature": "public boolean isGzipped()", "identifier": "isGzipped", "invocations": [], "modifiers": "public", "parameters": "()", "return": "boolean", ...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_201
{ "fields": [ { "declarator": "underTest = new QuerySuggestionSource(new ArrayList<>(0))", "modifier": "private", "original_string": "private QuerySuggestionSource underTest = new QuerySuggestionSource(new ArrayList<>(0));", "type": "QuerySuggestionSource", "var_name": "underTest" ...
{ "body": "@Test(dataProvider = \"getLastNotFinishedCondition\", enabled = false)\n public void testGetLastNotFinishedCondition(String query, String rest) {\n Assert.assertEquals(underTest.getLastNotFinishedCondition(query), rest);\n }", "class_method_signature": "QuerySuggestionSourceTest.testGetLastNotFinish...
{ "fields": [ { "declarator": "operators = Splitter.on(\" \").splitToList(\"!= == ~= like exists < > <= >=\")", "modifier": "private final", "original_string": "private final List<String> operators = Splitter.on(\" \").splitToList(\"!= == ~= like exists < > <= >=\");", "type": "List<String...
{ "body": "protected String getLastNotFinishedCondition(String s) {\n if (s.matches(\"\\\\s*(&&\\\\|\\\\|)?\\\\s*\\\\(.*\")) {\n final int closingIndex = closingParenthesisPosition(s);\n if (closingIndex > 0) {\n String substring = s.substring(closingIndex + 1);\n if (substring.matches(\"\\...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_190
{ "fields": [ { "declarator": "underTest", "modifier": "private", "original_string": "private ClassWrapperRenderer underTest;", "type": "ClassWrapperRenderer", "var_name": "underTest" } ], "file": "OtrosLogViewer-app/src/test/java/pl/otros/logview/gui/renderers/ClassWrapperRe...
{ "body": "@Test\n public void testToMap() throws Exception {\n final SortedMap<String, String> treeMap = underTest.toMap(\"a.b.c.d={D}\\na.b.c.e={E}\\na.b.c={C}\\na.b={B}\");\n\n //then\n assertEquals(treeMap.size(), 4, Joiner.on(\", \").withKeyValueSeparator(\"=\").join(treeMap));\n assertEquals(treeMa...
{ "fields": [ { "declarator": "stringLengthComparator = (o1, o2) -> {\n int result = o2.length() - o1.length();\n if (result == 0) {\n result = o1.compareTo(o2);\n }\n return result;\n }", "modifier": "private final", "original_string": "private final Comparator<String> stringL...
{ "body": "protected SortedMap<String, String> toMap(String configuration) {\n Properties p = new Properties();\n SortedMap<String, String> result = new TreeMap<>(stringLengthComparator);\n try {\n p.load(new StringReader(StringUtils.defaultString(configuration)));\n for (Object o : p.keySet()) {\n...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_39
{ "fields": [], "file": "OtrosLogViewer-app/src/test/java/pl/otros/logview/accept/query/org/apache/log4j/rule/EqualsRuleTest.java", "identifier": "EqualsRuleTest", "interfaces": "", "superclass": "" }
{ "body": "@Test public void test2() {\n Stack<Object> stack = new Stack<>();\n stack.push(\"Hello\");\n stack.push(\"World\");\n try {\n EqualsRule.getRule(stack);\n Assert.fail(\"Should have thrown IllegalArgumentException\");\n } catch (IllegalArgumentExcept...
{ "fields": [ { "declarator": "serialVersionUID = 1712851553477517245L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = 1712851553477517245L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "RESOL...
{ "body": "public static Rule getRule(final Stack<Object> stack) {\n if (stack.size() < 2) {\n throw new IllegalArgumentException(\"Invalid EQUALS rule - expected two parameters but received \" + stack.size());\n }\n\n String p2 = stack.pop().toString();\n String p1 = stack.pop().toString();\n\n r...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_169
{ "fields": [], "file": "OtrosLogViewer-app/src/test/java/pl/otros/logview/gui/message/StackTraceColorizerTest.java", "identifier": "StackTraceColorizerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void findExceptionNameAndMessage() throws IOException, BadLocationException {\n //given\n String stacktrace = IOUtils.toString(getSystemResourceAsStream(\"stacktrace/stacktrace3.txt\"), UTF_8).replace(\"\\r\", \"\");\n StackTraceColorizer colorizer = new StackTraceColorizer(new The...
{ "fields": [ { "declarator": "NAME = \"Java stack trace\"", "modifier": "private static final", "original_string": "private static final String NAME = \"Java stack trace\";", "type": "String", "var_name": "NAME" }, { "declarator": "exceptionLine = Pattern.compile(\"(\\...
{ "body": "protected Collection<MessageFragmentStyle> findExceptionNameAndMessage(final Style style, String subTextFragment) {\n final ArrayList<MessageFragmentStyle> result = new ArrayList<>();\n Matcher matcherMessage = exceptionNameAndMessage.matcher(subTextFragment);\n while (matcherMessage.find()) {\n ...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_186
{ "fields": [], "file": "OtrosLogViewer-app/src/test/java/pl/otros/logview/gui/session/SessionUtilTest.java", "identifier": "SessionUtilTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testToStringGroupedByServer() throws Exception {\n //given\n final ArrayList<FileToOpen> filesToOpen = new ArrayList<>();\n filesToOpen.add(new FileToOpen(\"sftp://server1.pl/asd/s\", OpenMode.FROM_END, Level.FINEST, Optional.empty()));\n filesToOpen.add(new FileToOpen(\"sf...
{ "fields": [], "file": "OtrosLogViewer-app/src/main/java/pl/otros/logview/gui/session/SessionUtil.java", "identifier": "SessionUtil", "interfaces": "", "methods": [ { "class_method_signature": "SessionUtil.groupFilesByServer(Session session)", "constructor": false, "full_signature": "st...
{ "body": "public static String toStringGroupedByServer(Session session) {\n final Map<String, List<FileToOpen>> map = groupFilesByServer(session);\n return map.keySet()\n .stream()\n .sorted()\n .map(server -> String.format(\"%s:%n%s%n\", server, map.get(server)\n .stream()\n ...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_78
{ "fields": [ { "declarator": "PORT = 45501", "modifier": "private static final", "original_string": "private static final int PORT = 45501;", "type": "int", "var_name": "PORT" }, { "declarator": "HTTP_GZIPPED = \"http://127.0.0.1:\" + PORT + \"/log.txt.gz\"", "mo...
{ "body": "@Test\n public void testLargerFile() throws IOException {\n try (LoadingInfo logFileContent = new LoadingInfo(asFileObject(\"hierarchy/hierarchy.log\"))) {\n assertFalse(logFileContent.isGzipped());\n assertEquals(69_058, asString(logFileContent).length());\n }\n }", "class_method_signa...
{ "fields": [ { "declarator": "friendlyUrl", "modifier": "private final", "original_string": "private final String friendlyUrl;", "type": "String", "var_name": "friendlyUrl" }, { "declarator": "fileObject", "modifier": "private final", "original_string": "pr...
{ "body": "public boolean isGzipped() {\n return gzipped;\n }", "class_method_signature": "LoadingInfo.isGzipped()", "constructor": false, "full_signature": "public boolean isGzipped()", "identifier": "isGzipped", "invocations": [], "modifiers": "public", "parameters": "()", "return": "boolean", ...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_217
{ "fields": [], "file": "OtrosLogViewer-app/src/test/java/pl/otros/logview/gui/actions/search/FilteredTableNextRowProviderTest.java", "identifier": "FilteredTableNextRowProviderTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testGetNextRowFromMiddleUp() {\n JTable jTable = new JTable(10, 1);\n jTable.getSelectionModel().setSelectionInterval(4, 4);\n NextRowProvider nextRowProvider = NextRowProviderFactory.getPreviousFilteredTableRow(jTable);\n for (int i = 3; i >= 0; i--) {\n assertEquals(...
{ "fields": [ { "declarator": "table", "modifier": "private final", "original_string": "private final JTable table;", "type": "JTable", "var_name": "table" }, { "declarator": "increase", "modifier": "private final", "original_string": "private final int incr...
{ "body": "@Override\n public int getNextRow() {\n currentRow += increase;\n\n if (rowsChecked++ >= table.getRowCount()) {\n return -1;\n }\n if (currentRow >= table.getRowCount()) {\n currentRow = 0;\n } else if (currentRow < 0) {\n currentRow = table.getRowCount() - 1;\n }\n int...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_97
{ "fields": [ { "declarator": "dataTableModel", "modifier": "public", "original_string": "public LogDataTableModel dataTableModel;", "type": "LogDataTableModel", "var_name": "dataTableModel" }, { "declarator": "logDatas", "modifier": "public", "original_stri...
{ "body": "@Test\n public void testGetColumnClassInt() {\n AssertJUnit.assertEquals(Level.class, dataTableModel.getColumnClass(TableColumns.LEVEL.getColumn()));\n AssertJUnit.assertEquals(String.class, dataTableModel.getColumnClass(TableColumns.MESSAGE.getColumn()));\n AssertJUnit.assertEquals(Note.class, d...
{ "fields": [ { "declarator": "EMPTY_STRING = \"\"", "modifier": "private static final", "original_string": "private static final String EMPTY_STRING = \"\";", "type": "String", "var_name": "EMPTY_STRING" }, { "declarator": "LOGGER = LoggerFactory.getLogger(LogDataTable...
{ "body": "@Override\n public Class<?> getColumnClass(int columnIndex) {\n // return super.getColumnClass(columnIndex); LogData ld = list.get(rowIndex);\n Class<?> result;\n TableColumns selectedColumn = TableColumns.getColumnById(columnIndex);\n switch (selectedColumn) {\n case ID:\n result ...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_149
{ "fields": [], "file": "OtrosLogViewer-app/src/test/java/pl/otros/logview/parser/log4j/Log4jUtilTest.java", "identifier": "Log4jUtilTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testParsePattern() {\n Properties p = new Properties();\n p.setProperty(Log4jUtil.CONVERSION_PATTERN, \"%d{yyyy-MM-dd HH:mm:ss.SSS} %-5p [%t] %c{2}: %m%n\");\n\n try {\n Log4jUtil.parsePattern(p);\n } catch (InitializationException ex) {\n fail(ex.getMessage());\n...
{ "fields": [ { "declarator": "LOGGER = LoggerFactory.getLogger(Log4jUtil.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(Log4jUtil.class.getName());", "type": "Logger", "var_name": "LOGGER" }...
{ "body": "public static void parsePattern(Properties p) throws InitializationException {\n String conversionPattern = p.getProperty(CONVERSION_PATTERN);\n if (conversionPattern == null) {\n throw new InitializationException(\"Log \" + CONVERSION_PATTERN + \" is not set.\");\n }\n\n Matcher dateForma...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_58
{ "fields": [], "file": "OtrosLogViewer-app/src/test/java/pl/otros/logview/accept/query/org/apache/log4j/rule/LevelInequalityRuleTest.java", "identifier": "LevelInequalityRuleTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void test3() throws IOException, ClassNotFoundException {\n Rule rule = (Rule) SerializationTestHelper.serializeClone(LevelInequalityRule.getRule(\">=\", \"info\"));\n LoggingEvent event = new LoggingEvent(\"org.apache.log4j.Logger\", Logger.getRootLogger(), System.currentTimeMillis()...
{ "fields": [ { "declarator": "levelList", "modifier": "private static", "original_string": "private static List<String> levelList;", "type": "List<String>", "var_name": "levelList" } ], "file": "OtrosLogViewer-app/src/main/java/pl/otros/logview/accept/query/org/apache/log4j/...
{ "body": "public static Rule getRule(final String inequalitySymbol, final String value) {\n\n Level thisLevel;\n\n // if valid util.logging levels are used against events\n // with log4j levels, the\n // DEBUG level is used and an illegalargumentexception won't be generated\n\n // an illegalargumentex...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_221
{ "fields": [ { "declarator": "LOGGER = LoggerFactory.getLogger(LoadingRunnableTest.class)", "modifier": "private static final", "original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(LoadingRunnableTest.class);", "type": "Logger", "var_name": "LOGGER" }...
{ "body": "@Test(invocationCount = 5)\n public void canDeleteFileWhenStopped() throws Exception {\n //given\n saveLines(Range.closed(0, julSimpleLogLines.size()), julSimpleLogLines, outputStream);\n\n //when\n underTest = new LoadingRunnable(vfsSource, getJulLogParser(), collector, 100, Optional.empty(),...
{ "fields": [ { "declarator": "LOGGER = org.slf4j.LoggerFactory.getLogger(LoadingRunnable.class)", "modifier": "private static final", "original_string": "private static final Logger LOGGER = org.slf4j.LoggerFactory.getLogger(LoadingRunnable.class);", "type": "Logger", "var_name": "L...
{ "body": "public synchronized void stop() {\n stop = true;\n }", "class_method_signature": "LoadingRunnable.stop()", "constructor": false, "full_signature": "public synchronized void stop()", "identifier": "stop", "invocations": [], "modifiers": "public synchronized", "parameters": "()", "return"...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_108
{ "fields": [ { "declarator": "baseLoader = new BaseLoader()", "modifier": "private final", "original_string": "private final BaseLoader baseLoader = new BaseLoader();", "type": "BaseLoader", "var_name": "baseLoader" } ], "file": "OtrosLogViewer-app/src/test/java/pl/otros/log...
{ "body": "@Test(enabled = false)\n public void testLoadFromJar() throws URISyntaxException {\n Collection<LogFilter> load = baseLoader.loadFromJar(getFile(\"plugins/filters/filters.jar\"), LogFilter.class);\n AssertJUnit.assertEquals(1, load.size());\n }", "class_method_signature": "BaseLoaderTest.testLoad...
{ "fields": [ { "declarator": "LOGGER = LoggerFactory.getLogger(BaseLoader.class.getName())", "modifier": "public static final", "original_string": "public static final Logger LOGGER = LoggerFactory.getLogger(BaseLoader.class.getName());", "type": "Logger", "var_name": "LOGGER" }...
{ "body": "public <T> Collection<T> loadFromJar(File file, Class<T> type) {\n ArrayList<T> list = new ArrayList<>();\n try {\n List<Class<T>> implementationClasses = getInterfaceImplementations(type, file);\n for (Class<?> class1 : implementationClasses) {\n try {\n T am = (T) class1.n...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_19
{ "fields": [], "file": "OtrosLogViewer-app/src/test/java/pl/otros/logview/util/UnixProcessingTest.java", "identifier": "UnixProcessingTest", "interfaces": "", "superclass": "" }
{ "body": "@Test(dataProvider = \"processText\")\n public void testProcessText(String text, String cli, String expected) {\n final String actual = new UnixProcessing().processText(text, cli);\n assertEquals(actual, expected);\n }", "class_method_signature": "UnixProcessingTest.testProcessText(String text, S...
{ "fields": [], "file": "OtrosLogViewer-app/src/main/java/pl/otros/logview/util/UnixProcessing.java", "identifier": "UnixProcessing", "interfaces": "", "methods": [ { "class_method_signature": "UnixProcessing.processText(String text, String commandLine)", "constructor": false, "full_sign...
{ "body": "public String processText(String text, String commandLine) {\n final String[] split = commandLine.split(\"\\\\|\");\n final Unix4jCommandBuilder builder = buildUnixCli(Unix4j.fromString(text), split, 0);\n return builder.toStringResult();\n }", "class_method_signature": "UnixProcessing.processT...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_62
{ "fields": [ { "declarator": "logData", "modifier": "private", "original_string": "private LogData logData;", "type": "LogData", "var_name": "logData" } ], "file": "OtrosLogViewer-app/src/test/java/pl/otros/logview/accept/PropertyAcceptConditionTest.java", "identifier": "P...
{ "body": "@Test\n public void testRejectKey() throws Exception {\n AssertJUnit.assertFalse(new PropertyAcceptCondition(\"key1\",\"value\").accept(logData));\n }", "class_method_signature": "PropertyAcceptConditionTest.testRejectKey()", "constructor": false, "full_signature": "@Test public void tes...
{ "fields": [ { "declarator": "propertyKey", "modifier": "private final", "original_string": "private final String propertyKey;", "type": "String", "var_name": "propertyKey" }, { "declarator": "propertyValue", "modifier": "private final", "original_string": ...
{ "body": "@Override\n public boolean accept(LogData ld) {\n return ld.getProperties().containsKey(propertyKey) && StringUtils.equals(propertyValue, ld.getProperties().get(propertyKey));\n }", "class_method_signature": "PropertyAcceptCondition.accept(LogData ld)", "constructor": false, "full_signature": "@...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_124
{ "fields": [ { "declarator": "LOG_EVENT_COUNT = 1000", "modifier": "public static final", "original_string": "public static final int LOG_EVENT_COUNT = 1000;", "type": "int", "var_name": "LOG_EVENT_COUNT" }, { "declarator": "TEST_THREAD_POOL_NAME = \"TestThreadPoolName...
{ "body": "@Test\n public void testIterator() throws Exception {\n Iterator<LogData> iterator = store.iterator();\n\n int count = 0;\n AssertJUnit.assertNotNull(iterator);\n while (iterator.hasNext()) {\n LogData next = iterator.next();\n AssertJUnit.assertEquals(next.getId(), count);\n co...
{ "fields": [ { "declarator": "logDataStore", "modifier": "private final", "original_string": "private final LogDataStore logDataStore;", "type": "LogDataStore", "var_name": "logDataStore" }, { "declarator": "service", "modifier": "private final", "original_...
{ "body": "@Override\n public Iterator<LogData> iterator() {\n try {\n return service.submit(new OperationGetIterator(logDataStore)).get();\n } catch (InterruptedException | ExecutionException e) {\n e.printStackTrace();\n }\n return null;\n }", "class_method_signature": "MemoryAsyncLogDataS...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_35
{ "fields": [], "file": "OtrosLogViewer-app/src/test/java/pl/otros/logview/accept/SelectedThreadAcceptConditionTest.java", "identifier": "SelectedThreadAcceptConditionTest", "interfaces": "", "superclass": "extends SelectionAwareAcceptConditionTestBase" }
{ "body": "@Test\n public void testAccept() {\n SelectedThreadAcceptCondition acceptCondition = new SelectedThreadAcceptCondition(table, dataTableModel);\n table.getSelectionModel().addListSelectionListener(acceptCondition);\n table.getSelectionModel().setSelectionInterval(1, 2);\n LogData[] logData = da...
{ "fields": [ { "declarator": "threads", "modifier": "protected", "original_string": "protected Set<String> threads;", "type": "Set<String>", "var_name": "threads" } ], "file": "OtrosLogViewer-app/src/main/java/pl/otros/logview/accept/SelectedThreadAcceptCondition.java", "i...
{ "body": "@Override\n public boolean accept(LogData data) {\n return threads.contains(data.getThread());\n }", "class_method_signature": "SelectedThreadAcceptCondition.accept(LogData data)", "constructor": false, "full_signature": "@Override public boolean accept(LogData data)", "identifier": "accept", ...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_173
{ "fields": [ { "declarator": "finder = new StackTraceFinder()", "modifier": "private final", "original_string": "private final StackTraceFinder finder = new StackTraceFinder();", "type": "StackTraceFinder", "var_name": "finder" } ], "file": "OtrosLogViewer-app/src/test/java/...
{ "body": "@Test\n public void testFindInOnlyStackTrace() throws IOException {\n // given\n String stacktraceFile = IOUtils.toString(StackTraceColorizer.class.getClassLoader().getResourceAsStream(\"stacktrace/stacktTraceOnly.txt\"));\n\n // when\n SortedSet<SubText> findStackTraces = finder.findStackTrac...
{ "fields": [ { "declarator": "exceptionLine = Pattern.compile(\"(\\\\s*at\\\\s+([\\\\w\\\\d\\\\.]*\\\\.)?([\\\\w\\\\d\\\\$]+)\\\\.([\\\\d\\\\w<>\\\\$]+)\\\\(([\\\\d\\\\w\\\\.\\\\u0020:]+)\\\\))\")", "modifier": "private static final", "original_string": "private static final Pattern exceptionLi...
{ "body": "public SortedSet<SubText> findStackTraces(String text) {\n SortedSet<SubText> set = new TreeSet<>();\n LinkedList<Integer> newLineIndexes = new LinkedList<>();\n newLineIndexes.add(0);\n int newLineIndex = -1;\n while ((newLineIndex = StringUtils.indexOf(text, '\\n', newLineIndex + 1)) > -1)...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_23
{ "fields": [], "file": "OtrosLogViewer-app/src/test/java/pl/otros/logview/filter/RegexFilterTest.java", "identifier": "RegexFilterTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void testMessageAcceptCaseSensitive(){\n\t\tassertFalse(createFilter(\"ala\\\\*a\", false).accept(new LogDataBuilder().withMessage(\"ala ma kota\").build(), 1));\n\t}", "class_method_signature": "RegexFilterTest.testMessageAcceptCaseSensitive()", "constructor": false, "full_signature"...
{ "fields": [ { "declarator": "NAME = \"Regex filter\"", "modifier": "private static final", "original_string": "private static final String NAME = \"Regex filter\";", "type": "String", "var_name": "NAME" }, { "declarator": "DESCRIPTION = \"Filtering events based on a r...
{ "body": "@Override\n public boolean accept(LogData logData, int row) {\n if (patternOk && condition.length() > 0) {\n return pattern.matcher(logData.getMessage()).find();\n }\n return condition.length() == 0 || !patternOk;\n }", "class_method_signature": "RegexFilter.accept(LogData logData, int ro...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_165
{ "fields": [ { "declarator": "p = new Properties()", "modifier": "private", "original_string": "private Properties p = new Properties();", "type": "Properties", "var_name": "p" }, { "declarator": "colorizer", "modifier": "private", "original_string": "priva...
{ "body": "@Test\n public void testCountGroups() {\n assertEquals(0, colorizer.countGroups(Pattern.compile(\"\")));\n assertEquals(1, colorizer.countGroups(Pattern.compile(\"a(a)\")));\n assertEquals(3, colorizer.countGroups(Pattern.compile(\"(a(a)(b))\")));\n assertEquals(0, colorizer.countGroups(Patter...
{ "fields": [ { "declarator": "PROP_TYPE = \"type\"", "modifier": "public static final", "original_string": "public static final String PROP_TYPE = \"type\";", "type": "String", "var_name": "PROP_TYPE" }, { "declarator": "PROP_VERSION = \"version\"", "modifier": "...
{ "body": "protected int countGroups(Pattern pattern) {\n return StringUtils.countMatches(pattern.pattern().replace(\"\\\\(\", \"\"), \"(\");\n }", "class_method_signature": "PropertyPatternMessageColorizer.countGroups(Pattern pattern)", "constructor": false, "full_signature": "protected int countGroups(Pat...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_74
{ "fields": [], "file": "OtrosLogViewer-app/src/test/java/pl/otros/logview/exceptionshandler/StatusObserverExceptionHandlerTest.java", "identifier": "StatusObserverExceptionHandlerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testUncaughtException() throws Exception {\n //given\n StatusObserver statusObserver = Mockito.mock(StatusObserver.class);\n StatusObserverExceptionHandler statusObserverExceptionHandler = new StatusObserverExceptionHandler(statusObserver);\n\n //when\n statusObserverExc...
{ "fields": [ { "declarator": "statusObserver", "modifier": "private final", "original_string": "private final StatusObserver statusObserver;", "type": "StatusObserver", "var_name": "statusObserver" } ], "file": "OtrosLogViewer-app/src/main/java/pl/otros/logview/exceptionshan...
{ "body": "@Override\n public void uncaughtException(Thread thread, Throwable throwable) {\n String msg = String.format(\"Error in thread \\\"%s\\\": %s\", thread.getName(), throwable.getLocalizedMessage());\n statusObserver.updateStatus(msg, StatusObserver.LEVEL_ERROR);\n }", "class_method_signature": "Sta...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_132
{ "fields": [ { "declarator": "bufferingLogDataCollectorProxy", "modifier": "private", "original_string": "private BufferingLogDataCollectorProxy bufferingLogDataCollectorProxy;", "type": "BufferingLogDataCollectorProxy", "var_name": "bufferingLogDataCollectorProxy" }, { ...
{ "body": "@Test\n public void testGetLogData() {\n LogData data1 = new LogData();\n data1.setId(1);\n LogData data2 = new LogData();\n data2.setId(2);\n AssertJUnit.assertEquals(0, delegate.getLogData().length);\n bufferingLogDataCollectorProxy.add(data1);\n bufferingLogDataCollectorProxy.add(d...
{ "fields": [ { "declarator": "delegate", "modifier": "private final", "original_string": "private final LogDataCollector delegate;", "type": "LogDataCollector", "var_name": "delegate" }, { "declarator": "proxyLogDataCollector", "modifier": "private", "origi...
{ "body": "@Override\n public synchronized LogData[] getLogData() {\n return proxyLogDataCollector.getLogData();\n }", "class_method_signature": "BufferingLogDataCollectorProxy.getLogData()", "constructor": false, "full_signature": "@Override public synchronized LogData[] getLogData()", "identifier": "ge...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_210
{ "fields": [], "file": "OtrosLogViewer-app/src/test/java/pl/otros/logview/gui/actions/ShowCallHierarchyActionTest.java", "identifier": "ShowCallHierarchyActionTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testTheSameLogMethodDifferentClass() {\n ShowCallHierarchyAction action = new ShowCallHierarchyAction(null, null, null);\n LogData ld1 = new LogDataBuilder().withId(1).withClass(\"a.b.c\").withMethod(\"a\").build();\n LogData ld2 = new LogDataBuilder().withId(1).withClass(\"a....
{ "fields": [ { "declarator": "LOGGER = LoggerFactory.getLogger(ShowCallHierarchyAction.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(ShowCallHierarchyAction.class.getName());", "type": "Logger", ...
{ "body": "protected boolean theSameLogMethod(LogData ld1, LogData ld2) {\n return StringUtils.equals(ld1.getClazz(), ld2.getClazz()) && StringUtils.equals(ld1.getMethod(), ld2.getMethod());\n }", "class_method_signature": "ShowCallHierarchyAction.theSameLogMethod(LogData ld1, LogData ld2)", "constructor": fa...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_90
{ "fields": [ { "declarator": "ver2 = new LogDataListPersistanceVer2()", "modifier": "private", "original_string": "private LogDataListPersistanceVer2 ver2 = new LogDataListPersistanceVer2();", "type": "LogDataListPersistanceVer2", "var_name": "ver2" } ], "file": "OtrosLogVie...
{ "body": "@Test\n public void testEscpageStringPipes() {\n String escpageString = ver2.escapedString(\"String|with|pipe\");\n AssertJUnit.assertEquals(\"String\\\\Pwith\\\\Ppipe\", escpageString);\n }", "class_method_signature": "LogDataListPersistanceVer2Test.testEscpageStringPipes()", "constructor": fa...
{ "fields": [ { "declarator": "LOGGER = LoggerFactory.getLogger(LogDataListPersistanceVer2.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(LogDataListPersistanceVer2.class.getName());", "type": "Logger"...
{ "body": "protected String escapedString(String string) {\n return string\n .replace(\"\\\\\", \"\\\\S\")// \"\\\" -> \"\\S\"\n .replace(\"|\", \"\\\\P\") // \"|\" -> \"\\P\"\n .replace(\"\\n\", \"\\\\n\")\n .replace(\"\\r\", \"\\\\r\");\n }", "class_method_signature": "LogDataListPersistan...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_139
{ "fields": [ { "declarator": "builder = new LogDataBuilder()", "modifier": "private", "original_string": "private LogDataBuilder builder = new LogDataBuilder();", "type": "LogDataBuilder", "var_name": "builder" } ], "file": "OtrosLogViewer-app/src/test/java/pl/otros/logview/...
{ "body": "@Test\n public void testAddNullMarker() throws Exception {\n //given\n //when\n LogbackUtil.addMarker(null, new HashMap<>(), builder);\n\n //then\n assertEquals(builder.build().getMarkerColors(), null);\n assertFalse(builder.build().isMarked());\n }", "class_method_signature": "Logbac...
{ "fields": [], "file": "OtrosLogViewer-app/src/main/java/pl/otros/logview/importer/logback/LogbackUtil.java", "identifier": "LogbackUtil", "interfaces": "", "methods": [ { "class_method_signature": "LogbackUtil.translate(ILoggingEvent ev)", "constructor": false, "full_signature": "publi...
{ "body": "public static void addMarker(Marker marker, Map<String, String> mdcMap, LogDataBuilder builder) {\n if (marker != null) {\n builder.withMarked(true);\n builder.withMarkerColors(MarkerColors.Aqua);\n HashMap<String, String> mdc = new HashMap<>(mdcMap);\n mdc.put(\"marker\", marker.toS...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_28
{ "fields": [ { "declarator": "filter = new ClassLikeFilter(\"\", \"\") {\n\n @Override\n public Function<LogData, String> extractValueFunction() {\n return logData -> logData.getLoggerName();\n }\n }", "modifier": "private", "original_string": "private ClassLikeFilter filter = ne...
{ "body": "@Test\n public void testCreatePackagesTree() throws Exception {\n //given\n TreeSet<String> packages = new TreeSet<>(Arrays.asList(\"a\", \"a.b\", \"c\", \"c.d\"));\n HashMap<ClassLikeFilter.Clazz, DefaultMutableTreeNode> map = new HashMap<>();\n final DefaultMutableTreeNode root = new Default...
{ "fields": [ { "declarator": "tree", "modifier": "private", "original_string": "private JTree tree;", "type": "JTree", "var_name": "tree" }, { "declarator": "rootNode", "modifier": "private", "original_string": "private DefaultMutableTreeNode rootNode;", ...
{ "body": "protected void createPackagesTree(TreeSet<String> packages, HashMap<Clazz, DefaultMutableTreeNode> map, DefaultMutableTreeNode root) {\n for (String string : packages) {\n Clazz clazz = new Clazz(string);\n DefaultMutableTreeNode newNode = new DefaultMutableTreeNode(clazz);\n DefaultMutab...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_181
{ "fields": [ { "declarator": "dataTableModel", "modifier": "private", "original_string": "private LogDataTableModel dataTableModel;", "type": "LogDataTableModel", "var_name": "dataTableModel" }, { "declarator": "filteredTableModel", "modifier": "private", "...
{ "body": "@Test\n public void testConvertModelToView() {\n filteredTableModel.addFilter(new AbstractLogFilter(\"A\", \"B\") {\n\n @Override\n public JComponent getGUI() {\n return null;\n }\n\n @Override\n public boolean accept(LogData logData, int row) {\n return row % 2 =...
{ "fields": [ { "declarator": "logDataTableModel", "modifier": "private final", "original_string": "private final LogDataTableModel logDataTableModel;", "type": "LogDataTableModel", "var_name": "logDataTableModel" }, { "declarator": "appliedFilters", "modifier": "...
{ "body": "public int convertModelToView(int row) {\n return modelToView[row];\n }", "class_method_signature": "FilteredTableModel.convertModelToView(int row)", "constructor": false, "full_signature": "public int convertModelToView(int row)", "identifier": "convertModelToView", "invocations": [], "mod...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_178
{ "fields": [ { "declarator": "formatter = new SoapMessageFormatter()", "modifier": "private final", "original_string": "private final SoapMessageFormatter formatter = new SoapMessageFormatter();", "type": "SoapMessageFormatter", "var_name": "formatter" } ], "file": "OtrosLog...
{ "body": "@Test\n public void removeXsiFromNullsFragment(){\n String s = formatter.removeXsiFromNulls(\"<errorListArray xmlns:ns3=\\\"http://some.com/class/a/\\\" xsi:type=\\\"ns3:Error\\\" xsi:nil=\\\"true\\\"/>\");\n System.out.println(s);\n System.out.flush();\n AssertJUnit.assertEquals(\"<errorListA...
{ "fields": [ { "declarator": "REMOVE_NIL_PATTERN = \"(<\\\\w+)( [^>]*?xsi:nil=\\\"true\\\".*?)(/>)\"", "modifier": "public static final", "original_string": "public static final String REMOVE_NIL_PATTERN = \"(<\\\\w+)( [^>]*?xsi:nil=\\\"true\\\".*?)(/>)\";", "type": "String", "var_n...
{ "body": "public String removeXsiFromNulls(String xml) {\n Pattern p = Pattern.compile(REMOVE_NIL_PATTERN);\n Matcher matcher = p.matcher(xml);\n if (matcher.find()) {\n return matcher.replaceAll(REMOVE_NIL_REPLACE_PATTERN);\n }\n return xml;\n }", "class_method_signature": "SoapMessageFormatt...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_197
{ "fields": [], "file": "OtrosLogViewer-app/src/test/java/pl/otros/logview/gui/suggestion/SearchHistorySerializationTest.java", "identifier": "SearchHistorySerializationTest", "interfaces": "", "superclass": "" }
{ "body": "@Test(dataProvider = \"toSerializerData\")\n public void testSerializer(SearchHistory searchHistory, String expected) throws Exception {\n //Given\n //When\n final String serialized = new SearchHistorySerialization().serializer().serialize(Collections.singletonList(searchHistory));\n\n //Then\...
{ "fields": [ { "declarator": "LOGGER = LoggerFactory.getLogger(SearchHistorySerialization.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(SearchHistorySerialization.class.getName());", "type": "Logger"...
{ "body": "Serializer<List<SearchHistory>, String> serializer(){\n return serializer;\n }", "class_method_signature": "SearchHistorySerialization.serializer()", "constructor": false, "full_signature": " Serializer<List<SearchHistory>, String> serializer()", "identifier": "serializer", "invocations": [],...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_69
{ "fields": [ { "declarator": "runtimeInfoERDC", "modifier": "private", "original_string": "private RuntimeInfoERDC runtimeInfoERDC;", "type": "RuntimeInfoERDC", "var_name": "runtimeInfoERDC" } ], "file": "OtrosLogViewer-app/src/test/java/pl/otros/logview/exceptionshandler/er...
{ "body": "@Test\n public void testSecondsPattern() {\n AssertJUnit.assertEquals(\"0:00:10\", runtimeInfoERDC.formatTimeDuration(10 * 1000l));\n }", "class_method_signature": "RuntimeInfoERDCTest.testSecondsPattern()", "constructor": false, "full_signature": "@Test public void testSecondsPattern()"...
{ "fields": [ { "declarator": "MEMORY_MAX = \"RUNTIME:memory.max\"", "modifier": "private static final", "original_string": "private static final String MEMORY_MAX = \"RUNTIME:memory.max\";", "type": "String", "var_name": "MEMORY_MAX" }, { "declarator": "MEMORY_FREE = \...
{ "body": "protected String formatTimeDuration(final long timeInMs) {\n long timeInS = timeInMs / 1000;\n String upTimeFormatted = String.format(\"%d:%02d:%02d\", timeInS / 3600, (timeInS % 3600) / 60, (timeInS % 60));\n return upTimeFormatted;\n }", "class_method_signature": "RuntimeInfoERDC.formatTimeDu...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_86
{ "fields": [ { "declarator": "logDatas", "modifier": "private", "original_string": "private LogData[] logDatas;", "type": "LogData[]", "var_name": "logDatas" }, { "declarator": "dataStore", "modifier": "private", "original_string": "private FileLogDataStore...
{ "body": "@Test\n public void testIterator2() throws IOException {\n // given\n dataStore.add(logDatas);\n\n\n // when\n ArrayList<LogData> acutal = new ArrayList<>();\n for (LogData ld : dataStore) {\n acutal.add(ld);\n }\n\n // then\n assertArrayEquals(logDatas, acutal.toArray(new Log...
{ "fields": [ { "declarator": "LOGGER = LoggerFactory.getLogger(FileLogDataStore.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(FileLogDataStore.class.getName());", "type": "Logger", "var_name": ...
{ "body": "@Override\n public void add(LogData... logDatas) {\n ObjectOutputStream oout = null;\n ByteArrayOutputStream byteArrayOutputStream = null;\n Arrays.sort(logDatas, logDataTimeComparator);\n try {\n HashMap<Integer, Long> newLogDataPosition = new HashMap<>(logDatas.length);\n long leng...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_206
{ "fields": [ { "declarator": "xpaths = new HashSet<>(Arrays.asList(\"ala\", \"aba\", \"all\"))", "modifier": "private final", "original_string": "private final HashSet<String> xpaths = new HashSet<>(Arrays.asList(\"ala\", \"aba\", \"all\"));", "type": "HashSet<String>", "var_name": ...
{ "body": "@Test(dataProvider = \"lineForPosition\")\n public void testLineForPosition(String text, int position, String expected) {\n //given\n final JsonXpathSuggestionSource jsonXpathSuggestionSource = new JsonXpathSuggestionSource();\n //when\n final String line = jsonXpathSuggestionSource.lineForPos...
{ "fields": [ { "declarator": "JSON = \"json\"", "modifier": "public static final", "original_string": "public static final String JSON = \"json\";", "type": "String", "var_name": "JSON" }, { "declarator": "keys", "modifier": "private final", "original_strin...
{ "body": "protected String lineForPosition(String text, int position) {\n int start = max(0, text.substring(0, min(text.length(), position)).lastIndexOf('\\n'));\n int end = text.indexOf('\\n', position);\n if (end == -1) {\n end = text.length();\n }\n return text.substring(start, end).replaceAll...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_12
{ "fields": [ { "declarator": "LOGGER = java.util.logging.Logger.getLogger(AuthStoreUtilsTest.class.getName())", "modifier": "private static final", "original_string": "private static final java.util.logging.Logger LOGGER = java.util.logging.Logger.getLogger(AuthStoreUtilsTest.class.getName());"...
{ "body": "@Test\n public void testLoad() throws Exception {\n //given\n MemoryAuthStore memoryAuthStore = new MemoryAuthStore();\n InputStream resourceAsStream = this.getClass().getResourceAsStream(\"credentials.xml\");\n\n //when\n authStoreUtils.load(memoryAuthStore, resourceAsStream);\n\n //the...
{ "fields": [ { "declarator": "LOGGER = java.util.logging.Logger.getLogger(AuthStoreUtils.class.getName())", "modifier": "private static final", "original_string": "private static final java.util.logging.Logger LOGGER = java.util.logging.Logger.getLogger(AuthStoreUtils.class.getName());", ...
{ "body": "public void load(AuthStore authStore, InputStream in) throws IOException {\n try {\n XMLReader xmlReader = XMLReaderFactory.createXMLReader();\n xmlReader.setContentHandler(new AuthStoreHandler(authStore));\n xmlReader.parse(new InputSource(in));\n } catch (SAXException e) {\n thr...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_154
{ "fields": [ { "declarator": "wireMock", "modifier": "private", "original_string": "private WireMockServer wireMock;", "type": "WireMockServer", "var_name": "wireMock" }, { "declarator": "jumpToCodeClient", "modifier": "private", "original_string": "private...
{ "body": "@Test\n public void testLoggerPatterns() throws Exception {\n //given\n //when\n //then\n Assertions.assertThat(jumpToCodeClient.loggerPatterns())\n .containsOnly(\n \"%level %date %logger %t %msg%n\",\n \"%level %date %logger %msg%n\"\n );\n }", "class_method_signat...
{ "fields": [ { "declarator": "LOGGER = LoggerFactory.getLogger(JumpToCodeClient.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(JumpToCodeClient.class.getName());", "type": "Logger", "var_name": ...
{ "body": "public Set<String> loggerPatterns() throws IOException {\n final GetMethod method = new GetMethod(getUrl());\n method.setQueryString(new NameValuePair[]{new NameValuePair(\"o\", \"loggersConfig\")});\n final String content = executeAndGetContent(method);\n final Type type = new TypeToken<Collec...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_45
{ "fields": [], "file": "OtrosLogViewer-app/src/test/java/pl/otros/logview/accept/query/org/apache/log4j/rule/AndRuleTest.java", "identifier": "AndRuleTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void test2() {\n\tStack<Object> stack = new Stack<>();\n\tstack.push(\"Hello\");\n\tstack.push(\"World\");\n\ttry {\n\t AndRule.getRule(stack);\n\t Assert.fail(\"Should have thrown IllegalArgumentException\");\n\t} catch (IllegalArgumentException ex) {\n\t //success\n }\n }", ...
{ "fields": [ { "declarator": "firstRule", "modifier": "private final", "original_string": "private final Rule firstRule;", "type": "Rule", "var_name": "firstRule" }, { "declarator": "secondRule", "modifier": "private final", "original_string": "private fina...
{ "body": "public static Rule getRule(final Stack<Object> stack) {\n if (stack.size() < 2) {\n throw new IllegalArgumentException(\"Invalid AND rule - expected two rules but received \" + stack.size());\n }\n Object o2 = stack.pop();\n Object o1 = stack.pop();\n if ((o2 instanceof Rule) && (o1 ins...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_4
{ "fields": [], "file": "OtrosVfsBrowser/src/test/java/pl/otros/vfs/browser/table/FileSizeTest.java", "identifier": "FileSizeTest", "interfaces": "", "superclass": "" }
{ "body": "@Test (dataProvider = \"testToStringDataProvider\")\n public void testConvertToStringRepresentation(long size, String expectedResult) throws Exception {\n Assert.assertEquals(FileSize.convertToStringRepresentation(size), expectedResult);\n }", "class_method_signature": "FileSizeTest.testConvertToStr...
{ "fields": [ { "declarator": "K = 1024", "modifier": "private static final", "original_string": "private static final long K = 1024;", "type": "long", "var_name": "K" }, { "declarator": "M = K * K", "modifier": "private static final", "original_string": "pr...
{ "body": "public static String convertToStringRepresentation(final long value) {\n final long[] dividers = new long[]{T, G, M, K, 1};\n final String[] units = new String[]{\"TB\", \"GB\", \"MB\", \"KB\", \"B\"};\n if (value == 0) {\n return format(0, 1, \"B\");\n } else if (value < 1) {\n retur...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_103
{ "fields": [ { "declarator": "dataTableModel", "modifier": "public", "original_string": "public LogDataTableModel dataTableModel;", "type": "LogDataTableModel", "var_name": "dataTableModel" }, { "declarator": "logDatas", "modifier": "public", "original_stri...
{ "body": "@Test\n public void testGetAllNotes() {\n TreeMap<Integer, Note> allNotes = dataTableModel.getAllNotes();\n AssertJUnit.assertEquals(2, allNotes.size());\n Set<Integer> keySet = allNotes.keySet();\n Integer[] keys = new Integer[2];\n keys = keySet.toArray(keys);\n Arrays.sort(keys);\n ...
{ "fields": [ { "declarator": "EMPTY_STRING = \"\"", "modifier": "private static final", "original_string": "private static final String EMPTY_STRING = \"\";", "type": "String", "var_name": "EMPTY_STRING" }, { "declarator": "LOGGER = LoggerFactory.getLogger(LogDataTable...
{ "body": "@Override\n public TreeMap<Integer, Note> getAllNotes() {\n return logDataStore.getAllNotes();\n }", "class_method_signature": "LogDataTableModel.getAllNotes()", "constructor": false, "full_signature": "@Override public TreeMap<Integer, Note> getAllNotes()", "identifier": "getAllNotes", "inv...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_53
{ "fields": [], "file": "OtrosLogViewer-app/src/test/java/pl/otros/logview/accept/query/org/apache/log4j/rule/TimestampInequalityRuleTest.java", "identifier": "TimestampInequalityRuleTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testFail1() {\n try {\n TimestampInequalityRule.getRule(\">\", \"now\");\n Assert.fail(\"Expected IllegalArgumentException\");\n } catch (IllegalArgumentException ignored) {\n }\n }", "class_method_signature": "TimestampInequalityRuleTest.testFail1()", "construc...
{ "fields": [ { "declarator": "LOGGER = LoggerFactory.getLogger(TimestampEqualsRule.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(TimestampEqualsRule.class.getName());", "type": "Logger", "var_n...
{ "body": "public static Rule getRule(final String inequalitySymbol, final String value) {\n return new TimestampInequalityRule(inequalitySymbol, value);\n }", "class_method_signature": "TimestampInequalityRule.getRule(final String inequalitySymbol, final String value)", "constructor": false, "full_signatur...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_115
{ "fields": [ { "declarator": "LOG_EVENT_COUNT = 1000", "modifier": "public static final", "original_string": "public static final int LOG_EVENT_COUNT = 1000;", "type": "int", "var_name": "LOG_EVENT_COUNT" }, { "declarator": "TEST_THREAD_POOL_NAME = \"TestThreadPoolName...
{ "body": "@Test\n public void testGetLimit() throws Exception {\n store.setLimit(100);\n AssertJUnit.assertEquals(100, store.getLimit());\n }", "class_method_signature": "MemoryAsyncLogDataStoreTest.testGetLimit()", "constructor": false, "full_signature": "@Test public void testGetLimit()", "identifi...
{ "fields": [ { "declarator": "logDataStore", "modifier": "private final", "original_string": "private final LogDataStore logDataStore;", "type": "LogDataStore", "var_name": "logDataStore" }, { "declarator": "service", "modifier": "private final", "original_...
{ "body": "@Override\n public int getLimit() {\n try {\n return service.submit(new OperationGetLimit(logDataStore)).get();\n } catch (InterruptedException | ExecutionException e) {\n e.printStackTrace();\n }\n return 0;\n }", "class_method_signature": "MemoryAsyncLogDataStore.getLimit()", ...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_142
{ "fields": [], "file": "OtrosLogViewer-app/src/test/java/pl/otros/logview/importer/Log4jSerilizedLogImporterTest.java", "identifier": "Log4jSerilizedLogImporterTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testImportLogs() throws IOException, InitializationException {\n // given\n LoggingEvent[] sourceEvents = new LoggingEvent[5];\n for (int i = 0; i < sourceEvents.length; i++) {\n Level info = Level.INFO;\n String message = Integer.toString(i);\n long timestamp =...
{ "fields": [ { "declarator": "LOGGER = LoggerFactory.getLogger(Log4jSerilizedLogImporter.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(Log4jSerilizedLogImporter.class.getName());", "type": "Logger", ...
{ "body": "@Override\n public void importLogs(InputStream in, LogDataCollector dataCollector, ParsingContext parsingContext) {\n try (ObjectInputStream oin = new ObjectInputStream(new BufferedInputStream(in))) {\n LoggingEvent le;\n while ((le = (LoggingEvent) oin.readObject()) != null) {\n LogDa...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_135
{ "fields": [ { "declarator": "builder = new LogDataBuilder()", "modifier": "private", "original_string": "private LogDataBuilder builder = new LogDataBuilder();", "type": "LogDataBuilder", "var_name": "builder" } ], "file": "OtrosLogViewer-app/src/test/java/pl/otros/logview/...
{ "body": "@Test\n public void testTranslate() throws Exception {\n //Given\n LoggerContext context = new LoggerContext();\n Logger logger = context.getLogger(\"SomeLogger\");\n LoggingEvent le = new LoggingEvent(\"a.b.C\",logger, ch.qos.logback.classic.Level.INFO,\"message\",null,null);\n final Map<S...
{ "fields": [], "file": "OtrosLogViewer-app/src/main/java/pl/otros/logview/importer/logback/LogbackUtil.java", "identifier": "LogbackUtil", "interfaces": "", "methods": [ { "class_method_signature": "LogbackUtil.translate(ILoggingEvent ev)", "constructor": false, "full_signature": "publi...
{ "body": "public static LogDataBuilder translate(ILoggingEvent ev) {\n final LogDataBuilder builder = new LogDataBuilder()\n .withLoggerName(ev.getLoggerName())\n .withMessage(ev.getFormattedMessage())\n .withLevel(convertLevel(ev.getLevel()))\n .withProperties(ev.getMDCPropertyMap())\n ....
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_73
{ "fields": [], "file": "OtrosLogViewer-app/src/test/java/pl/otros/logview/exceptionshandler/errrorreport/ErrorReportSenderTest.java", "identifier": "ErrorReportSenderTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void addHttpPostParamsIsNullSafe() {\n //given\n ErrorReportSender sender = new ErrorReportSender();\n Map<String, String> values = new HashMap<>();\n values.put(\"key2\", null);\n\n PostMethod method = new PostMethod();\n\n //when\n sender...
{ "fields": [ { "declarator": "LOGGER = LoggerFactory.getLogger(ErrorReportSender.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(ErrorReportSender.class.getName());", "type": "Logger", "var_name"...
{ "body": "protected void addHttpPostParams(Map<String, String> values, PostMethod method) {\n for (String key : values.keySet()) {\n String parameterValue = values.get(key);\n parameterValue = parameterValue != null ? parameterValue : NULL;\n method.setParameter(key, parameterValue);\n }\n }", ...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_162
{ "fields": [ { "declarator": "p = new Properties()", "modifier": "private", "original_string": "private Properties p = new Properties();", "type": "Properties", "var_name": "p" }, { "declarator": "colorizer", "modifier": "private", "original_string": "priva...
{ "body": "@Test\n public void testColorizingNeeded() {\n assertTrue(colorizer.colorizingNeeded(\"a3(a)a\"));\n }", "class_method_signature": "PropertyPatternMessageColorizerTest.testColorizingNeeded()", "constructor": false, "full_signature": "@Test public void testColorizingNeeded()", "identifier": "te...
{ "fields": [ { "declarator": "PROP_TYPE = \"type\"", "modifier": "public static final", "original_string": "public static final String PROP_TYPE = \"type\";", "type": "String", "var_name": "PROP_TYPE" }, { "declarator": "PROP_VERSION = \"version\"", "modifier": "...
{ "body": "@Override\n public boolean colorizingNeeded(String message) {\n Matcher matcher = pattern.matcher(message);\n return matcher.find();\n }", "class_method_signature": "PropertyPatternMessageColorizer.colorizingNeeded(String message)", "constructor": false, "full_signature": "@Override public bo...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_24
{ "fields": [], "file": "OtrosLogViewer-app/src/test/java/pl/otros/logview/filter/RegexFilterTest.java", "identifier": "RegexFilterTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void testMessageAcceptCaseInsensitive(){\n\t\tassertFalse(createFilter(\"ala\\\\*a\", false).accept(new LogDataBuilder().withMessage(\"Ala ma kota\").build(), 1));\n\t}", "class_method_signature": "RegexFilterTest.testMessageAcceptCaseInsensitive()", "constructor": false, "full_signat...
{ "fields": [ { "declarator": "NAME = \"Regex filter\"", "modifier": "private static final", "original_string": "private static final String NAME = \"Regex filter\";", "type": "String", "var_name": "NAME" }, { "declarator": "DESCRIPTION = \"Filtering events based on a r...
{ "body": "@Override\n public boolean accept(LogData logData, int row) {\n if (patternOk && condition.length() > 0) {\n return pattern.matcher(logData.getMessage()).find();\n }\n return condition.length() == 0 || !patternOk;\n }", "class_method_signature": "RegexFilter.accept(LogData logData, int ro...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_174
{ "fields": [ { "declarator": "finder = new StackTraceFinder()", "modifier": "private final", "original_string": "private final StackTraceFinder finder = new StackTraceFinder();", "type": "StackTraceFinder", "var_name": "finder" } ], "file": "OtrosLogViewer-app/src/test/java/...
{ "body": "@Test\n public void testFindForEmptyPackage() throws IOException {\n // given\n String stacktraceFile = IOUtils.toString(StackTraceColorizer.class.getClassLoader().getResourceAsStream(\"stacktrace/stacktTraceWtihEmptyPackage.txt\"));\n\n // when\n SortedSet<SubText> findStackTraces = finder.fi...
{ "fields": [ { "declarator": "exceptionLine = Pattern.compile(\"(\\\\s*at\\\\s+([\\\\w\\\\d\\\\.]*\\\\.)?([\\\\w\\\\d\\\\$]+)\\\\.([\\\\d\\\\w<>\\\\$]+)\\\\(([\\\\d\\\\w\\\\.\\\\u0020:]+)\\\\))\")", "modifier": "private static final", "original_string": "private static final Pattern exceptionLi...
{ "body": "public SortedSet<SubText> findStackTraces(String text) {\n SortedSet<SubText> set = new TreeSet<>();\n LinkedList<Integer> newLineIndexes = new LinkedList<>();\n newLineIndexes.add(0);\n int newLineIndex = -1;\n while ((newLineIndex = StringUtils.indexOf(text, '\\n', newLineIndex + 1)) > -1)...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_32
{ "fields": [ { "declarator": "d = null", "modifier": "private", "original_string": "private PluginableElementsContainer<PluginableElement> d = null;", "type": "PluginableElementsContainer<PluginableElement>", "var_name": "d" }, { "declarator": "s = null", "modifi...
{ "body": "@Test\n public void testElementAdded() {\n SoapMessageFormatter element = new SoapMessageFormatter();\n s.elementAdded(element);\n verify(d, only()).addElement(element);\n }", "class_method_signature": "SynchronizePluginableContainerListenerTest.testElementAdded()", "constructor": false, "...
{ "fields": [ { "declarator": "destination", "modifier": "protected", "original_string": "protected PluginableElementsContainer<T> destination;", "type": "PluginableElementsContainer<T>", "var_name": "destination" } ], "file": "OtrosLogViewer-app/src/main/java/pl/otros/logvie...
{ "body": "@Override\n public void elementAdded(T element) {\n destination.addElement(element);\n }", "class_method_signature": "SynchronizePluginableContainerListener.elementAdded(T element)", "constructor": false, "full_signature": "@Override public void elementAdded(T element)", "identifier": "element...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_123
{ "fields": [ { "declarator": "LOG_EVENT_COUNT = 1000", "modifier": "public static final", "original_string": "public static final int LOG_EVENT_COUNT = 1000;", "type": "int", "var_name": "LOG_EVENT_COUNT" }, { "declarator": "TEST_THREAD_POOL_NAME = \"TestThreadPoolName...
{ "body": "@Test\n public void testGetAllNotes() throws Exception {\n //given\n //when\n TreeMap<Integer, Note> allNotes = store.getAllNotes();\n //then\n AssertJUnit.assertEquals(LOG_EVENT_COUNT, allNotes.size());\n AssertJUnit.assertEquals(\"Note100\", allNotes.get(Integer.valueOf(100)).getNote()...
{ "fields": [ { "declarator": "logDataStore", "modifier": "private final", "original_string": "private final LogDataStore logDataStore;", "type": "LogDataStore", "var_name": "logDataStore" }, { "declarator": "service", "modifier": "private final", "original_...
{ "body": "@Override\n public TreeMap<Integer, Note> getAllNotes() {\n Callable<TreeMap<Integer, Note>> task = new OperationGetAllNotes(logDataStore);\n return runCallableInDedicatedThread(task);\n }", "class_method_signature": "MemoryAsyncLogDataStore.getAllNotes()", "constructor": false, "full_signatu...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_65
{ "fields": [], "file": "OtrosLogViewer-app/src/test/java/pl/otros/logview/exceptionshandler/errrorreport/ExceptionERDCTest.java", "identifier": "ExceptionERDCTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testCollect() throws Exception {\n //given\n Exception exception = new Exception(\"msg\");\n ErrorReportCollectingContext context = new ErrorReportCollectingContext();\n context.setThrowable(exception);\n context.setThread(Thread.currentThread());\n\n //when\n Map<...
{ "fields": [ { "declarator": "EXCEPTION = \"EXCEPTION:exception\"", "modifier": "public static final", "original_string": "public static final String EXCEPTION = \"EXCEPTION:exception\";", "type": "String", "var_name": "EXCEPTION" }, { "declarator": "MESSAGE = \"EXCEPT...
{ "body": "@Override\n public Map<String, String> collect(ErrorReportCollectingContext context) {\n HashMap<String, String> r = new HashMap<>();\n Throwable throwable = context.getThrowable();\n r.put(EXCEPTION, throwable.getClass().getName());\n r.put(MESSAGE, throwable.getMessage());\n r.put(THREAD,...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_158
{ "fields": [ { "declarator": "underTest = new JsonFinder()", "modifier": "private final", "original_string": "private final JsonFinder underTest = new JsonFinder();", "type": "JsonFinder", "var_name": "underTest" } ], "file": "OtrosLogViewer-app/src/test/java/pl/otros/logvie...
{ "body": "@Test(dataProvider = \"testGetSubTexts\")\n public void testGetSubTexts(String openParenthesisString, List<SubText> expected) throws Exception {\n //given\n List<Integer> openParenthesis = new ArrayList<>();\n for (int i = 0; i < openParenthesisString.length(); i++) {\n o...
{ "fields": [], "file": "OtrosLogViewer-app/src/main/java/pl/otros/logview/gui/message/json/JsonFinder.java", "identifier": "JsonFinder", "interfaces": "", "methods": [ { "class_method_signature": "JsonFinder.findJsonFragments(String string)", "constructor": false, "full_signature": "pub...
{ "body": "protected ArrayList<SubText> getSubTexts(List<Integer> ints) {\n final ArrayList<SubText> subTexts = new ArrayList<>();\n int startPosition = 0;\n int lastValue = 0;\n for (int i = 0; i < ints.size(); i++) {\n final int currentValue = ints.get(i);\n if (currentValue == 0 && lastValue ...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_8
{ "fields": [], "file": "OtrosVfsBrowser/src/test/java/pl/otros/vfs/browser/table/VfsTableModelFileNameRowFilterTest.java", "identifier": "VfsTableModelFileNameRowFilterTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testPreparePatternString() throws Exception {\n //TODO write test\n\n }", "class_method_signature": "VfsTableModelFileNameRowFilterTest.testPreparePatternString()", "constructor": false, "full_signature": "@Test public void testPreparePatternString()", "identifier": "testPr...
{ "fields": [ { "declarator": "LOGGER =\n LoggerFactory.getLogger(VfsTableModelFileNameRowFilter.class)", "modifier": "private static final", "original_string": "private static final Logger LOGGER =\n LoggerFactory.getLogger(VfsTableModelFileNameRowFilter.class);", "type": "L...
{ "body": "String preparePatternString(String patternText) {\n String patternString;\n if (patternText.charAt(0) == '/') {\n patternString = patternText.substring(1);\n } else {\n patternString=convertRegex(patternText);\n }\n return patternString;\n }", "class_method_signature": "VfsTable...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_226
{ "fields": [], "file": "OtrosStarter/src/test/java/pl/otros/starter/JavaVersionTest.java", "identifier": "JavaVersionTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testCompareTo() throws Exception {\n assertEquals(new JavaVersion(1,9,2).compareTo(new JavaVersion(1,9,2)),0);\n assertTrue(new JavaVersion(1,9,2).compareTo(new JavaVersion(1,7,2))>0);\n assertTrue(new JavaVersion(1,5,2).compareTo(new JavaVersion(1,7,2))<0);\n }", "class_me...
{ "fields": [ { "declarator": "version", "modifier": "private", "original_string": "private int version;", "type": "int", "var_name": "version" }, { "declarator": "major", "modifier": "private", "original_string": "private int major;", "type": "int", ...
{ "body": "@Override\n public int compareTo(JavaVersion o) {\n if (this.version - o.version == 0) {\n if (this.major - o.major == 0) {\n return this.minor - o.minor;\n } else {\n return this.major - o.major;\n }\n }\n return this.version - o.version;\n\n }", "class_method_sig...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_49
{ "fields": [], "file": "OtrosLogViewer-app/src/test/java/pl/otros/logview/accept/query/org/apache/log4j/rule/OrRuleTest.java", "identifier": "OrRuleTest", "interfaces": "", "superclass": "" }
{ "body": "@Test public void test2() {\n Stack<Object> stack = new Stack<>();\n stack.push(\"Hello\");\n stack.push(\"World\");\n try {\n OrRule.getRule(stack);\n Assert.fail(\"Should have thrown IllegalArgumentException\");\n } catch (IllegalArgumentException ...
{ "fields": [ { "declarator": "serialVersionUID = 2088765995061413165L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = 2088765995061413165L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "rule1...
{ "body": "public static Rule getRule(final Rule firstParam, final Rule secondParam) {\n return new OrRule(firstParam, secondParam);\n }", "class_method_signature": "OrRule.getRule(final Rule firstParam, final Rule secondParam)", "constructor": false, "full_signature": "public static Rule getRule(final Rule...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_119
{ "fields": [ { "declarator": "LOG_EVENT_COUNT = 1000", "modifier": "public static final", "original_string": "public static final int LOG_EVENT_COUNT = 1000;", "type": "int", "var_name": "LOG_EVENT_COUNT" }, { "declarator": "TEST_THREAD_POOL_NAME = \"TestThreadPoolName...
{ "body": "@Test\n public void testAddNoteToRow() throws Exception {\n //given\n //when\n store.addNoteToRow(10, new Note(\"A\"));\n //then\n AssertJUnit.assertEquals(\"A\", store.getNote(10).getNote());\n }", "class_method_signature": "MemoryAsyncLogDataStoreTest.testAddNoteToRow()", "constructo...
{ "fields": [ { "declarator": "logDataStore", "modifier": "private final", "original_string": "private final LogDataStore logDataStore;", "type": "LogDataStore", "var_name": "logDataStore" }, { "declarator": "service", "modifier": "private final", "original_...
{ "body": "@Override\n public void addNoteToRow(int row, Note note) {\n runCallableInDedicatedThread(new OpeartionAddNoteToRow(logDataStore, row, note));\n }", "class_method_signature": "MemoryAsyncLogDataStore.addNoteToRow(int row, Note note)", "constructor": false, "full_signature": "@Override public voi...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_118
{ "fields": [ { "declarator": "LOG_EVENT_COUNT = 1000", "modifier": "public static final", "original_string": "public static final int LOG_EVENT_COUNT = 1000;", "type": "int", "var_name": "LOG_EVENT_COUNT" }, { "declarator": "TEST_THREAD_POOL_NAME = \"TestThreadPoolName...
{ "body": "@Test\n public void testClear() throws Exception {\n //given\n //when\n int size = store.clear();\n ///then\n AssertJUnit.assertEquals(LOG_EVENT_COUNT, size);\n AssertJUnit.assertEquals(0, store.getCount());\n\n }", "class_method_signature": "MemoryAsyncLogDataStoreTest.testClear()", ...
{ "fields": [ { "declarator": "logDataStore", "modifier": "private final", "original_string": "private final LogDataStore logDataStore;", "type": "LogDataStore", "var_name": "logDataStore" }, { "declarator": "service", "modifier": "private final", "original_...
{ "body": "@Override\n public int clear() {\n try {\n return service.submit(new OperationClear(logDataStore)).get();\n } catch (InterruptedException | ExecutionException e) {\n e.printStackTrace();\n }\n return 0;\n }", "class_method_signature": "MemoryAsyncLogDataStore.clear()", "construc...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_48
{ "fields": [], "file": "OtrosLogViewer-app/src/test/java/pl/otros/logview/accept/query/org/apache/log4j/rule/OrRuleTest.java", "identifier": "OrRuleTest", "interfaces": "", "superclass": "" }
{ "body": "@Test public void test1() {\n Stack<Object> stack = new Stack<>();\n stack.push(LevelEqualsRule.getRule(\"INFO\"));\n try {\n OrRule.getRule(stack);\n Assert.fail(\"Should have thrown IllegalArgumentException\");\n } catch (IllegalArgumentException ignored)...
{ "fields": [ { "declarator": "serialVersionUID = 2088765995061413165L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = 2088765995061413165L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "rule1...
{ "body": "public static Rule getRule(final Rule firstParam, final Rule secondParam) {\n return new OrRule(firstParam, secondParam);\n }", "class_method_signature": "OrRule.getRule(final Rule firstParam, final Rule secondParam)", "constructor": false, "full_signature": "public static Rule getRule(final Rule...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_9
{ "fields": [], "file": "OtrosVfsBrowser/src/test/java/pl/otros/vfs/browser/table/VfsTableModelFileNameRowFilterTest.java", "identifier": "VfsTableModelFileNameRowFilterTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testConvertRegex() throws Exception {\n //TODO write test\n }", "class_method_signature": "VfsTableModelFileNameRowFilterTest.testConvertRegex()", "constructor": false, "full_signature": "@Test public void testConvertRegex()", "identifier": "testConvertRegex", "invocation...
{ "fields": [ { "declarator": "LOGGER =\n LoggerFactory.getLogger(VfsTableModelFileNameRowFilter.class)", "modifier": "private static final", "original_string": "private static final Logger LOGGER =\n LoggerFactory.getLogger(VfsTableModelFileNameRowFilter.class);", "type": "L...
{ "body": "String convertRegex(String patternText) {\n return \"(?i)\\\\Q\" + patternText\n .toString()\n .replaceAll(\"\\\\[[^]]+\\\\]\", \"\\\\\\\\E$0\\\\\\\\Q\")\n .replaceAll(\"\\\\?\", \"\\\\\\\\E.\\\\\\\\Q\")\n .replaceAll(\"\\\\*\", \"\\\\\\\\E.*\\\\\\\\Q\");\n }", "class_meth...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_159
{ "fields": [ { "declarator": "underTest = new JsonFinder()", "modifier": "private final", "original_string": "private final JsonFinder underTest = new JsonFinder();", "type": "JsonFinder", "var_name": "underTest" } ], "file": "OtrosLogViewer-app/src/test/java/pl/otros/logvie...
{ "body": "@Test(dataProvider = \"testCountParenthesis\")\n public void testCountParenthesis(String string, String result) throws Exception {\n //given\n\n //when\n final List<Integer> actual = underTest.countParenthesis(string);\n\n //then\n final String actualString = Joiner.on...
{ "fields": [], "file": "OtrosLogViewer-app/src/main/java/pl/otros/logview/gui/message/json/JsonFinder.java", "identifier": "JsonFinder", "interfaces": "", "methods": [ { "class_method_signature": "JsonFinder.findJsonFragments(String string)", "constructor": false, "full_signature": "pub...
{ "body": "protected List<Integer> countParenthesis(String string) {\n final List<Integer> openParenthesis = new ArrayList<>(string.length());\n int currentValue = 0;\n boolean escaped = false;\n boolean inString = false;\n for (int i = 0; i < string.length(); i++) {\n //watch for '{}' in strings ...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_64
{ "fields": [], "file": "OtrosLogViewer-app/src/test/java/pl/otros/logview/accept/LowerIdAcceptConditionTest.java", "identifier": "LowerIdAcceptConditionTest", "interfaces": "", "superclass": "extends SelectionAwareAcceptConditionTestBase" }
{ "body": "@Test\n public void testAccept() {\n LowerIdAcceptCondition acceptCondition = new LowerIdAcceptCondition(table, dataTableModel);\n table.getSelectionModel().addListSelectionListener(acceptCondition);\n table.getSelectionModel().setSelectionInterval(3, 3);\n LogData[] logData = dataTableModel.g...
{ "fields": [ { "declarator": "id", "modifier": "protected", "original_string": "protected int id;", "type": "int", "var_name": "id" } ], "file": "OtrosLogViewer-app/src/main/java/pl/otros/logview/accept/LowerIdAcceptCondition.java", "identifier": "LowerIdAcceptCondition", ...
{ "body": "@Override\n public boolean accept(LogData data) {\n return data.getId() < id;\n }", "class_method_signature": "LowerIdAcceptCondition.accept(LogData data)", "constructor": false, "full_signature": "@Override public boolean accept(LogData data)", "identifier": "accept", "invocations": [ "...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_122
{ "fields": [ { "declarator": "LOG_EVENT_COUNT = 1000", "modifier": "public static final", "original_string": "public static final int LOG_EVENT_COUNT = 1000;", "type": "int", "var_name": "LOG_EVENT_COUNT" }, { "declarator": "TEST_THREAD_POOL_NAME = \"TestThreadPoolName...
{ "body": "@Test\n public void testClearNotes() throws Exception {\n //given\n //when\n store.clearNotes();\n //then\n AssertJUnit.assertEquals(0, store.getAllNotes().size());\n }", "class_method_signature": "MemoryAsyncLogDataStoreTest.testClearNotes()", "constructor": false, "full_signature":...
{ "fields": [ { "declarator": "logDataStore", "modifier": "private final", "original_string": "private final LogDataStore logDataStore;", "type": "LogDataStore", "var_name": "logDataStore" }, { "declarator": "service", "modifier": "private final", "original_...
{ "body": "@Override\n public void clearNotes() {\n try {\n service.submit(new OperationClearNotes(logDataStore)).get();\n } catch (InterruptedException | ExecutionException e) {\n e.printStackTrace();\n }\n\n }", "class_method_signature": "MemoryAsyncLogDataStore.clearNotes()", "constructor"...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_33
{ "fields": [ { "declarator": "d = null", "modifier": "private", "original_string": "private PluginableElementsContainer<PluginableElement> d = null;", "type": "PluginableElementsContainer<PluginableElement>", "var_name": "d" }, { "declarator": "s = null", "modifi...
{ "body": "@Test\n public void testElementRemoved() {\n SoapMessageFormatter element = new SoapMessageFormatter();\n s.elementRemoved(element);\n verify(d, only()).removeElement(element);\n }", "class_method_signature": "SynchronizePluginableContainerListenerTest.testElementRemoved()", "constructor": f...
{ "fields": [ { "declarator": "destination", "modifier": "protected", "original_string": "protected PluginableElementsContainer<T> destination;", "type": "PluginableElementsContainer<T>", "var_name": "destination" } ], "file": "OtrosLogViewer-app/src/main/java/pl/otros/logvie...
{ "body": "@Override\n public void elementRemoved(T element) {\n destination.removeElement(element);\n }", "class_method_signature": "SynchronizePluginableContainerListener.elementRemoved(T element)", "constructor": false, "full_signature": "@Override public void elementRemoved(T element)", "identifier":...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_175
{ "fields": [ { "declarator": "finder = new StackTraceFinder()", "modifier": "private final", "original_string": "private final StackTraceFinder finder = new StackTraceFinder();", "type": "StackTraceFinder", "var_name": "finder" } ], "file": "OtrosLogViewer-app/src/test/java/...
{ "body": "@Test\n public void testFind2StackTraces() throws IOException {\n // given\n String stacktraceFile = IOUtils.toString(StackTraceColorizer.class.getClassLoader().getResourceAsStream(\"stacktrace/stacktrace2.txt\"));\n\n // when\n SortedSet<SubText> findStackTraces = finder.findStackTraces(stack...
{ "fields": [ { "declarator": "exceptionLine = Pattern.compile(\"(\\\\s*at\\\\s+([\\\\w\\\\d\\\\.]*\\\\.)?([\\\\w\\\\d\\\\$]+)\\\\.([\\\\d\\\\w<>\\\\$]+)\\\\(([\\\\d\\\\w\\\\.\\\\u0020:]+)\\\\))\")", "modifier": "private static final", "original_string": "private static final Pattern exceptionLi...
{ "body": "public SortedSet<SubText> findStackTraces(String text) {\n SortedSet<SubText> set = new TreeSet<>();\n LinkedList<Integer> newLineIndexes = new LinkedList<>();\n newLineIndexes.add(0);\n int newLineIndex = -1;\n while ((newLineIndex = StringUtils.indexOf(text, '\\n', newLineIndex + 1)) > -1)...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_25
{ "fields": [], "file": "OtrosLogViewer-app/src/test/java/pl/otros/logview/filter/RegexFilterTest.java", "identifier": "RegexFilterTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void testMessageRejectCaseSensitive(){\n\t\tassertFalse(createFilter(\"ala\\\\*a\", false).accept(new LogDataBuilder().withMessage(\"Ala ma kota\").build(), 1));\n\t}", "class_method_signature": "RegexFilterTest.testMessageRejectCaseSensitive()", "constructor": false, "full_signature"...
{ "fields": [ { "declarator": "NAME = \"Regex filter\"", "modifier": "private static final", "original_string": "private static final String NAME = \"Regex filter\";", "type": "String", "var_name": "NAME" }, { "declarator": "DESCRIPTION = \"Filtering events based on a r...
{ "body": "@Override\n public boolean accept(LogData logData, int row) {\n if (patternOk && condition.length() > 0) {\n return pattern.matcher(logData.getMessage()).find();\n }\n return condition.length() == 0 || !patternOk;\n }", "class_method_signature": "RegexFilter.accept(LogData logData, int ro...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_163
{ "fields": [ { "declarator": "p = new Properties()", "modifier": "private", "original_string": "private Properties p = new Properties();", "type": "Properties", "var_name": "p" }, { "declarator": "colorizer", "modifier": "private", "original_string": "priva...
{ "body": "@Test\n public void testGetName() {\n assertEquals(\"Test\", colorizer.getName());\n }", "class_method_signature": "PropertyPatternMessageColorizerTest.testGetName()", "constructor": false, "full_signature": "@Test public void testGetName()", "identifier": "testGetName", "invocations": [ ...
{ "fields": [ { "declarator": "PROP_TYPE = \"type\"", "modifier": "public static final", "original_string": "public static final String PROP_TYPE = \"type\";", "type": "String", "var_name": "PROP_TYPE" }, { "declarator": "PROP_VERSION = \"version\"", "modifier": "...
{ "body": "@Override\n public String getName() {\n return name;\n }", "class_method_signature": "PropertyPatternMessageColorizer.getName()", "constructor": false, "full_signature": "@Override public String getName()", "identifier": "getName", "invocations": [], "modifiers": "@Override public", "par...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_72
{ "fields": [], "file": "OtrosLogViewer-app/src/test/java/pl/otros/logview/exceptionshandler/errrorreport/ErrorReportSenderTest.java", "identifier": "ErrorReportSenderTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void addHttpPostParams() {\n\n //given\n ErrorReportSender sender = new ErrorReportSender();\n Map<String, String> values = new HashMap<>();\n values.put(\"key1\", \"value1\");\n values.put(\"key2\", \"value2\");\n\n PostMethod method = new PostMe...
{ "fields": [ { "declarator": "LOGGER = LoggerFactory.getLogger(ErrorReportSender.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(ErrorReportSender.class.getName());", "type": "Logger", "var_name"...
{ "body": "protected void addHttpPostParams(Map<String, String> values, PostMethod method) {\n for (String key : values.keySet()) {\n String parameterValue = values.get(key);\n parameterValue = parameterValue != null ? parameterValue : NULL;\n method.setParameter(key, parameterValue);\n }\n }", ...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_134
{ "fields": [ { "declarator": "EVENT_START = \"<log4j:event logger=\\\"package.Class\\\" timestamp=\\\"1434301820356\\\" level=\\\"ERROR\\\" thread=\\\"MyThread\\\">\"", "modifier": "private static final", "original_string": "private static final String EVENT_START = \"<log4j:event logger=\\\"pa...
{ "body": "@Test\n public void testNestedCData() {\n XMLDecoder xmlDecoder = new XMLDecoder();\n String log4jEvent = EVENT_START;\n for (String tag : new String[] { \"log4j:message\", \"log4j:NDC\", \"log4j:MDC\", \"log4j:throwable\" }) {\n log4jEvent = log4jEvent + String.format(\"<%1$s><![CDATA[%2$s]...
{ "fields": [ { "declarator": "LOGGER = LoggerFactory.getLogger(XMLDecoder.class)", "modifier": "private static final", "original_string": "private static final org.slf4j.Logger LOGGER = LoggerFactory.getLogger(XMLDecoder.class);", "type": "org.slf4j.Logger", "var_name": "LOGGER" ...
{ "body": "public Vector<LoggingEvent> decodeEvents(final String document) {\n if (document != null) {\n if (document.trim().equals(\"\")) {\n return null;\n }\n String newDoc = null;\n String newPartialEvent;\n // separate the string into the last portion ending with\n // </lo...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_143
{ "fields": [ { "declarator": "importer", "modifier": "private", "original_string": "private UtilLoggingXmlLogImporter importer;", "type": "UtilLoggingXmlLogImporter", "var_name": "importer" } ], "file": "OtrosLogViewer-app/src/test/java/pl/otros/logview/importer/UtilLoggingX...
{ "body": "@Test\n public void testExtractFileName() {\n assertEquals(\"Class\", importer.extractFileName(\"package.Class\"));\n assertEquals(\"MyClass\", importer.extractFileName(\"MyClass\"));\n assertEquals(\"MyClass\", importer.extractFileName(\"MyClass$Internal\"));\n assertEquals(\"MyClass\", impor...
{ "fields": [ { "declarator": "DOC_BUILDER = \"DOC_BUILDER\"", "modifier": "private static final", "original_string": "private static final String DOC_BUILDER = \"DOC_BUILDER\";", "type": "String", "var_name": "DOC_BUILDER" }, { "declarator": "PARTIAL_EVENT = \"PARTIAL_...
{ "body": "protected String extractFileName(String clazz) {\n int clazzStart = StringUtils.lastIndexOf(clazz, '.') + 1;\n clazzStart = Math.max(0, clazzStart);\n int clazzEnd = StringUtils.indexOf(clazz, '$');\n if (clazzEnd < 0) {\n clazzEnd = clazz.length();\n }\n return StringUtils.substring...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_114
{ "fields": [ { "declarator": "LOG_EVENT_COUNT = 1000", "modifier": "public static final", "original_string": "public static final int LOG_EVENT_COUNT = 1000;", "type": "int", "var_name": "LOG_EVENT_COUNT" }, { "declarator": "TEST_THREAD_POOL_NAME = \"TestThreadPoolName...
{ "body": "@Test\n public void testGetLogDataIdInRow() throws Exception {\n //given\n //when\n //then\n for (int i = 0; i < LOG_EVENT_COUNT; i++) {\n AssertJUnit.assertEquals(Integer.valueOf(i), store.getLogDataIdInRow(i));\n }\n }", "class_method_signature": "MemoryAsyncLogDataStoreTest.testG...
{ "fields": [ { "declarator": "logDataStore", "modifier": "private final", "original_string": "private final LogDataStore logDataStore;", "type": "LogDataStore", "var_name": "logDataStore" }, { "declarator": "service", "modifier": "private final", "original_...
{ "body": "@Override\n public Integer getLogDataIdInRow(int row) {\n return runCallableInDedicatedThread(new OperationGetDataIdInRow(logDataStore, row));\n }", "class_method_signature": "MemoryAsyncLogDataStore.getLogDataIdInRow(int row)", "constructor": false, "full_signature": "@Override public Integer g...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_52
{ "fields": [], "file": "OtrosLogViewer-app/src/test/java/pl/otros/logview/accept/query/org/apache/log4j/rule/NotEqualsRuleTest.java", "identifier": "NotEqualsRuleTest", "interfaces": "", "superclass": "" }
{ "body": "@Test public void test2() {\n Stack<Object> stack = new Stack<>();\n stack.push(\"Hello\");\n stack.push(\"World\");\n try {\n NotEqualsRule.getRule(stack);\n Assert.fail(\"Should have thrown IllegalArgumentException\");\n } catch (IllegalArgumentExc...
{ "fields": [ { "declarator": "serialVersionUID = -1135478467213793211L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -1135478467213793211L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "RES...
{ "body": "public static Rule getRule(final String field, final String value) {\n if (field.equalsIgnoreCase(LoggingEventFieldResolver.LEVEL_FIELD)) {\n return NotLevelEqualsRule.getRule(value);\n } else {\n return new NotEqualsRule(field, value);\n }\n }", "class_method_signature": "NotEqualsRu...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_5
{ "fields": [], "file": "OtrosVfsBrowser/src/test/java/pl/otros/vfs/browser/table/FileSizeTest.java", "identifier": "FileSizeTest", "interfaces": "", "superclass": "" }
{ "body": "@Test (dataProvider = \"testCompareTo\")\n public void testCompareTo(long size1, long size2, int result) throws Exception {\n Assert.assertEquals(new FileSize(size1).compareTo(new FileSize(size2)), result);\n }", "class_method_signature": "FileSizeTest.testCompareTo(long size1, long size2, int resul...
{ "fields": [ { "declarator": "K = 1024", "modifier": "private static final", "original_string": "private static final long K = 1024;", "type": "long", "var_name": "K" }, { "declarator": "M = K * K", "modifier": "private static final", "original_string": "pr...
{ "body": "@Override\n public int compareTo(FileSize o) {\n int result;\n if (o == null || bytes > o.bytes) {\n result = 1;\n } else if (bytes < o.bytes) {\n result = -1;\n } else {\n result = 0;\n }\n return result;\n }", "class_method_signature": "FileSize.compareTo(FileSize o)"...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_102
{ "fields": [ { "declarator": "dataTableModel", "modifier": "public", "original_string": "public LogDataTableModel dataTableModel;", "type": "LogDataTableModel", "var_name": "dataTableModel" }, { "declarator": "logDatas", "modifier": "public", "original_stri...
{ "body": "@Test\n public void testClearNotes() {\n dataTableModel.clearNotes();\n AssertJUnit.assertEquals(0, dataTableModel.getAllNotes().size());\n }", "class_method_signature": "LogDataTableModelTest.testClearNotes()", "constructor": false, "full_signature": "@Test public void testClearNotes()", "...
{ "fields": [ { "declarator": "EMPTY_STRING = \"\"", "modifier": "private static final", "original_string": "private static final String EMPTY_STRING = \"\";", "type": "String", "var_name": "EMPTY_STRING" }, { "declarator": "LOGGER = LoggerFactory.getLogger(LogDataTable...
{ "body": "@Override\n public void clearNotes() {\n logDataStore.clearNotes();\n fireTableDataChanged();\n }", "class_method_signature": "LogDataTableModel.clearNotes()", "constructor": false, "full_signature": "@Override public void clearNotes()", "identifier": "clearNotes", "invocations": [ "c...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_44
{ "fields": [], "file": "OtrosLogViewer-app/src/test/java/pl/otros/logview/accept/query/org/apache/log4j/rule/AndRuleTest.java", "identifier": "AndRuleTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void test1() {\n\tStack<Object> stack = new Stack<>();\n\tstack.push(LevelEqualsRule.getRule(\"INFO\"));\n\ttry {\n\t AndRule.getRule(stack);\n\t Assert.fail(\"Should have thrown IllegalArgumentException\");\n\t} catch (IllegalArgumentException ex) {\n //Success\n\t}\n }", ...
{ "fields": [ { "declarator": "firstRule", "modifier": "private final", "original_string": "private final Rule firstRule;", "type": "Rule", "var_name": "firstRule" }, { "declarator": "secondRule", "modifier": "private final", "original_string": "private fina...
{ "body": "public static Rule getRule(final Stack<Object> stack) {\n if (stack.size() < 2) {\n throw new IllegalArgumentException(\"Invalid AND rule - expected two rules but received \" + stack.size());\n }\n Object o2 = stack.pop();\n Object o1 = stack.pop();\n if ((o2 instanceof Rule) && (o1 ins...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_155
{ "fields": [], "file": "OtrosLogViewer-app/src/test/java/pl/otros/logview/gui/message/SoapFinderTest.java", "identifier": "SoapFinderTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testFindSoapTag() throws Exception {\n ClassLoader classLoader = this.getClass().getClassLoader();\n String soap1Formatted = IOUtils.toString(classLoader.getResourceAsStream(\"soap/1-soapMessageFormmated.txt\"));\n String soap1UnFormatted = IOUtils.toString(classLoader.getReso...
{ "fields": [ { "declarator": "p1 = Pattern.compile(\"xmlns:(.+?)=\\\"http://schemas\\\\.xmlsoap\\\\.org/soap/envelope/\\\"\", Pattern.MULTILINE)", "modifier": "private static", "original_string": "private static Pattern p1 = Pattern.compile(\"xmlns:(.+?)=\\\"http://schemas\\\\.xmlsoap\\\\.org/s...
{ "body": "public String findSoapTag(String string) {\n String result = null;\n\n for (Pattern pattern : patterns) {\n Matcher m = pattern.matcher(string);\n boolean found = m.find();\n if (found) {\n result = m.group(1);\n break;\n }\n }\n return result;\n }", "class_...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_13
{ "fields": [], "file": "OtrosLogViewer-app/src/test/java/pl/otros/logview/VersionUtilTest.java", "identifier": "VersionUtilTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testGetCurrentVersion() throws Exception {\n //given\n final WireMockServer wireMockServer = new WireMockServer();\n wireMockServer\n .stubFor(\n get(urlMatching(\"/currentVersion.*\"))\n .willReturn(aResponse()\n .withStatus(200)\n .withBody(\...
{ "fields": [ { "declarator": "LOGGER = LoggerFactory.getLogger(VersionUtil.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(VersionUtil.class.getName());", "type": "Logger", "var_name": "LOGGER" ...
{ "body": "public Optional<String> getCurrentVersion(String running, Proxy proxy, OtrosApplication otrosApplication) throws IOException {\n final String instanceUuid = otrosApplication.getConfiguration().getString(ConfKeys.UUID, \"\");\n final String requestUrl = buildRequestUrl(running, instanceUuid);\n LOG...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_68
{ "fields": [ { "declarator": "runtimeInfoERDC", "modifier": "private", "original_string": "private RuntimeInfoERDC runtimeInfoERDC;", "type": "RuntimeInfoERDC", "var_name": "runtimeInfoERDC" } ], "file": "OtrosLogViewer-app/src/test/java/pl/otros/logview/exceptionshandler/er...
{ "body": "@Test\n public void testMinutesPattern() {\n AssertJUnit.assertEquals(\"0:02:10\", runtimeInfoERDC.formatTimeDuration((2 * 60 + 10) * 1000l));\n }", "class_method_signature": "RuntimeInfoERDCTest.testMinutesPattern()", "constructor": false, "full_signature": "@Test public void testMinute...
{ "fields": [ { "declarator": "MEMORY_MAX = \"RUNTIME:memory.max\"", "modifier": "private static final", "original_string": "private static final String MEMORY_MAX = \"RUNTIME:memory.max\";", "type": "String", "var_name": "MEMORY_MAX" }, { "declarator": "MEMORY_FREE = \...
{ "body": "protected String formatTimeDuration(final long timeInMs) {\n long timeInS = timeInMs / 1000;\n String upTimeFormatted = String.format(\"%d:%02d:%02d\", timeInS / 3600, (timeInS % 3600) / 60, (timeInS % 60));\n return upTimeFormatted;\n }", "class_method_signature": "RuntimeInfoERDC.formatTimeDu...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_87
{ "fields": [ { "declarator": "logDatas", "modifier": "private", "original_string": "private LogData[] logDatas;", "type": "LogData[]", "var_name": "logDatas" }, { "declarator": "dataStore", "modifier": "private", "original_string": "private FileLogDataStore...
{ "body": "@Test\n public void testAdd() throws IOException {\n dataStore.add(logDatas);\n\n // when\n int count = dataStore.getCount();\n\n // then\n assertEquals(logDatas.length, count);\n }", "class_method_signature": "FileLogDataStoreTest.testAdd()", "constructor": false, "full_signature": ...
{ "fields": [ { "declarator": "LOGGER = LoggerFactory.getLogger(FileLogDataStore.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(FileLogDataStore.class.getName());", "type": "Logger", "var_name": ...
{ "body": "@Override\n public void add(LogData... logDatas) {\n ObjectOutputStream oout = null;\n ByteArrayOutputStream byteArrayOutputStream = null;\n Arrays.sort(logDatas, logDataTimeComparator);\n try {\n HashMap<Integer, Long> newLogDataPosition = new HashMap<>(logDatas.length);\n long leng...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_207
{ "fields": [], "file": "OtrosLogViewer-app/src/test/java/pl/otros/logview/gui/actions/ConnectToSocketHubAppenderActionTest.java", "identifier": "ConnectToSocketHubAppenderActionTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void tryToConnect() throws IOException {\n OtrosApplication otrosApplication = new OtrosApplication();\n ConnectToSocketHubAppenderAction action = new ConnectToSocketHubAppenderAction(otrosApplication);\n DataConfiguration dc = new DataConfiguration(new BaseConfiguration());\n S...
{ "fields": [ { "declarator": "RECONNECT_TIME = 20 * 1000", "modifier": "private static final", "original_string": "private static final int RECONNECT_TIME = 20 * 1000;", "type": "int", "var_name": "RECONNECT_TIME" }, { "declarator": "LOGGER = LoggerFactory.getLogger(Co...
{ "body": "Socket tryToConnectToSocket(DataConfiguration configuration, String hostAndPortString, SocketFactory socketFactory) throws IOException {\n List<Object> list1 = configuration.getList(ConfKeys.SOCKET_HUB_APPENDER_ADDRESSES);\n String[] hostPort = hostAndPortString.split(\":\");\n host = hostPort[0];...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_179
{ "fields": [ { "declarator": "dataTableModel", "modifier": "private", "original_string": "private LogDataTableModel dataTableModel;", "type": "LogDataTableModel", "var_name": "dataTableModel" }, { "declarator": "filteredTableModel", "modifier": "private", "...
{ "body": "@Test\n public void testGetRowCount() {\n assertEquals(dataTableModel.getRowCount(), filteredTableModel.getRowCount());\n TestLogFilterExtension filter = new TestLogFilterExtension(\"A\", \"B\");\n filteredTableModel.addFilter(filter);\n assertEquals(dataTableModel.getRowCount(), filteredTable...
{ "fields": [ { "declarator": "logDataTableModel", "modifier": "private final", "original_string": "private final LogDataTableModel logDataTableModel;", "type": "LogDataTableModel", "var_name": "logDataTableModel" }, { "declarator": "appliedFilters", "modifier": "...
{ "body": "@Override\n public int getRowCount() {\n return viewToModel.length;\n }", "class_method_signature": "FilteredTableModel.getRowCount()", "constructor": false, "full_signature": "@Override public int getRowCount()", "identifier": "getRowCount", "invocations": [], "modifiers": "@Override publ...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_196
{ "fields": [ { "declarator": "underTest = new RegexSearchSuggestionSource(new ArrayList<>())", "modifier": "private", "original_string": "private RegexSearchSuggestionSource underTest = new RegexSearchSuggestionSource(new ArrayList<>());", "type": "RegexSearchSuggestionSource", "var...
{ "body": "@Test\n public void testShowHistorySuggestions(){\n //given\n final List<String> history = Arrays.asList(\"aa\", \"bab\", \"cfs\");\n final RegexSearchSuggestionSource underTest = new RegexSearchSuggestionSource(history.stream().map(s->new SuggestionQuery(s,s.length())).collect(Collectors.toList(...
{ "fields": [ { "declarator": "COUNT_N_M = \"^.*\\\\{(\\\\d+),(\\\\d+)$\"", "modifier": "private static final", "original_string": "private static final String COUNT_N_M = \"^.*\\\\{(\\\\d+),(\\\\d+)$\";", "type": "String", "var_name": "COUNT_N_M" }, { "declarator": "CO...
{ "body": "@Override\n public List<SearchSuggestion> getSuggestions(SuggestionQuery query) {\n String queryString = query.getValue();\n ArrayList<SearchSuggestion> result = new ArrayList<>();\n if (queryString.length() > 1) {\n final String last2 = queryString.substring(queryString.length() - 2);\n ...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_180
{ "fields": [ { "declarator": "dataTableModel", "modifier": "private", "original_string": "private LogDataTableModel dataTableModel;", "type": "LogDataTableModel", "var_name": "dataTableModel" }, { "declarator": "filteredTableModel", "modifier": "private", "...
{ "body": "@Test\n public void testGetColumnCount() {\n assertEquals(dataTableModel.getColumnCount(), filteredTableModel.getColumnCount());\n }", "class_method_signature": "FilteredTableModelTest.testGetColumnCount()", "constructor": false, "full_signature": "@Test public void testGetColumnCount()", "ide...
{ "fields": [ { "declarator": "logDataTableModel", "modifier": "private final", "original_string": "private final LogDataTableModel logDataTableModel;", "type": "LogDataTableModel", "var_name": "logDataTableModel" }, { "declarator": "appliedFilters", "modifier": "...
{ "body": "@Override\n public int getColumnCount() {\n return logDataTableModel.getColumnCount();\n }", "class_method_signature": "FilteredTableModel.getColumnCount()", "constructor": false, "full_signature": "@Override public int getColumnCount()", "identifier": "getColumnCount", "invocations": [ ...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_29
{ "fields": [ { "declarator": "filter = new ClassLikeFilter(\"\", \"\") {\n\n @Override\n public Function<LogData, String> extractValueFunction() {\n return logData -> logData.getLoggerName();\n }\n }", "modifier": "private", "original_string": "private ClassLikeFilter filter = ne...
{ "body": "@Test\n public void testAddClassesLeafs() throws Exception {\n //given\n DefaultMutableTreeNode root = new DefaultMutableTreeNode(\"root\");\n Set<String> classesSet = new HashSet<>(Arrays.asList(\"a.C1\",\"a.b.C1\",\"b.A\",\"C1\",\"C2\"));\n TreeSet<String> packages = filter.preparePackagesNo...
{ "fields": [ { "declarator": "tree", "modifier": "private", "original_string": "private JTree tree;", "type": "JTree", "var_name": "tree" }, { "declarator": "rootNode", "modifier": "private", "original_string": "private DefaultMutableTreeNode rootNode;", ...
{ "body": "protected void addClassesLeafs(Set<String> classesSet, DefaultMutableTreeNode root, HashMap<Clazz, DefaultMutableTreeNode> map) {\n for (String string : classesSet) {\n Clazz clazz = new Clazz(string);\n DefaultMutableTreeNode newNode = new DefaultMutableTreeNode(clazz);\n DefaultMutableT...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_138
{ "fields": [ { "declarator": "builder = new LogDataBuilder()", "modifier": "private", "original_string": "private LogDataBuilder builder = new LogDataBuilder();", "type": "LogDataBuilder", "var_name": "builder" } ], "file": "OtrosLogViewer-app/src/test/java/pl/otros/logview/...
{ "body": "@Test\n public void testAddException() throws Exception {\n //given\n final Exception throwable = new Exception(\"Some exception\");\n final StringWriter stringWriter = new StringWriter();\n throwable.printStackTrace(new PrintWriter(stringWriter));\n ThrowableProxy throwableProxy = new Thro...
{ "fields": [], "file": "OtrosLogViewer-app/src/main/java/pl/otros/logview/importer/logback/LogbackUtil.java", "identifier": "LogbackUtil", "interfaces": "", "methods": [ { "class_method_signature": "LogbackUtil.translate(ILoggingEvent ev)", "constructor": false, "full_signature": "publi...
{ "body": "public static void addException(IThrowableProxy throwableProxy, String message, LogDataBuilder builder) {\n if (throwableProxy != null) {\n StringBuilder sb = new StringBuilder();\n sb.append(message).append(\"\\n\");\n sb.append(throwableProxy.getClassName()).append(\": \").append(throwa...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_211
{ "fields": [], "file": "OtrosLogViewer-app/src/test/java/pl/otros/logview/gui/actions/ShowCallHierarchyActionTest.java", "identifier": "ShowCallHierarchyActionTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testTheSameLogMethodDifferentMethod() {\n ShowCallHierarchyAction action = new ShowCallHierarchyAction(null, null, null);\n LogData ld1 = new LogDataBuilder().withId(1).withClass(\"a.b.c\").withMethod(\"a\").build();\n LogData ld2 = new LogDataBuilder().withId(1).withClass(\"a...
{ "fields": [ { "declarator": "LOGGER = LoggerFactory.getLogger(ShowCallHierarchyAction.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(ShowCallHierarchyAction.class.getName());", "type": "Logger", ...
{ "body": "protected boolean theSameLogMethod(LogData ld1, LogData ld2) {\n return StringUtils.equals(ld1.getClazz(), ld2.getClazz()) && StringUtils.equals(ld1.getMethod(), ld2.getMethod());\n }", "class_method_signature": "ShowCallHierarchyAction.theSameLogMethod(LogData ld1, LogData ld2)", "constructor": fa...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }
32377028_91
{ "fields": [ { "declarator": "ver2 = new LogDataListPersistanceVer2()", "modifier": "private", "original_string": "private LogDataListPersistanceVer2 ver2 = new LogDataListPersistanceVer2();", "type": "LogDataListPersistanceVer2", "var_name": "ver2" } ], "file": "OtrosLogVie...
{ "body": "@Test\n public void testEscpageStringBackslash() {\n String escpageString = ver2.escapedString(\"String\\\\with\\\\backslash\");\n AssertJUnit.assertEquals(\"String\\\\Swith\\\\Sbackslash\", escpageString);\n }", "class_method_signature": "LogDataListPersistanceVer2Test.testEscpageStringBackslash...
{ "fields": [ { "declarator": "LOGGER = LoggerFactory.getLogger(LogDataListPersistanceVer2.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(LogDataListPersistanceVer2.class.getName());", "type": "Logger"...
{ "body": "protected String escapedString(String string) {\n return string\n .replace(\"\\\\\", \"\\\\S\")// \"\\\" -> \"\\S\"\n .replace(\"|\", \"\\\\P\") // \"|\" -> \"\\P\"\n .replace(\"\\n\", \"\\\\n\")\n .replace(\"\\r\", \"\\\\r\");\n }", "class_method_signature": "LogDataListPersistan...
{ "created": null, "fork": null, "fork_count": 76, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 32377028, "size": 8314, "stargazer_count": 332, "stars": null, "updates": null, "url": "https://github.com/otros-systems/otroslogviewer" }