id
stringlengths
7
14
test_class
dict
test_case
dict
focal_class
dict
focal_method
dict
repository
dict
116999027_1071
{ "fields": [ { "declarator": "bean = new TestMapReduceBean()", "modifier": "@TestSubject\n private", "original_string": "@TestSubject\n private TestMapReduceBean bean = new TestMapReduceBean();", "type": "TestMapReduceBean", "var_name": "bean" }, { "declarator": ...
{ "body": "@Test(expected = DatawaveWebApplicationException.class)\n public void testSubmitWithMissingRequiredParameters() throws Exception {\n expect(ctx.getCallerPrincipal()).andReturn(principal);\n replayAll();\n \n bean.submit(\"TestJob\", \"queryId:1243\");\n verifyAll();\n ...
{ "fields": [ { "declarator": "log = Logger.getLogger(this.getClass())", "modifier": "private", "original_string": "private Logger log = Logger.getLogger(this.getClass());", "type": "Logger", "var_name": "log" }, { "declarator": "ctx", "modifier": "@Resource\n ...
{ "body": "@POST\n @Produces({\"application/xml\", \"text/xml\", \"application/json\", \"text/yaml\", \"text/x-yaml\", \"application/x-yaml\", \"application/x-protobuf\",\n \"application/x-protostuff\"})\n @javax.ws.rs.Path(\"/submit\")\n @GZIP\n public GenericResponse<String> submit(@FormParam...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_290
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/jexl/visitors/HasTopLevelNegationVisitorTest.java", "identifier": "HasTopLevelNegationVisitorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void test2() throws Exception {\n ASTJexlScript script = JexlASTHelper.parseJexlQuery(\"(FOO == 'bar')\");\n Assert.assertFalse(HasTopLevelNegationVisitor.hasTopLevelNegation(script));\n }", "class_method_signature": "HasTopLevelNegationVisitorTest.test2()", "construc...
{ "fields": [], "file": "warehouse/query-core/src/main/java/datawave/query/jexl/visitors/HasTopLevelNegationVisitor.java", "identifier": "HasTopLevelNegationVisitor", "interfaces": "", "methods": [ { "class_method_signature": "HasTopLevelNegationVisitor.hasTopLevelNegation(ASTJexlScript script)", ...
{ "body": "public static Boolean hasTopLevelNegation(ASTJexlScript script) {\n HasTopLevelNegationVisitor visitor = new HasTopLevelNegationVisitor();\n \n return visitor.recurseRoot(script);\n }", "class_method_signature": "HasTopLevelNegationVisitor.hasTopLevelNegation(ASTJexlScript script)...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_947
{ "fields": [ { "declarator": "query = null", "modifier": "private", "original_string": "private RunningQuery query = null;", "type": "RunningQuery", "var_name": "query" }, { "declarator": "bean = null", "modifier": "private", "original_string": "private Que...
{ "body": "@Test\n public void testGetRunningQueries() {\n RunningQueries output = bean.getRunningQueries();\n assertEquals(expectedResult, output.getQueries().get(0));\n }", "class_method_signature": "QueryCacheBeanTest.testGetRunningQueries()", "constructor": false, "full_signature": "@Tes...
{ "fields": [ { "declarator": "cache", "modifier": "@Inject\n private", "original_string": "@Inject\n private QueryCache cache;", "type": "QueryCache", "var_name": "cache" }, { "declarator": "query", "modifier": "@Inject\n private", "original_string...
{ "body": "@GET\n @Path(\"/listRunningQueries\")\n @Produces({\"application/xml\", \"text/xml\", \"application/json\", \"text/yaml\", \"text/x-yaml\", \"application/x-yaml\", \"text/html\"})\n @GZIP\n @RolesAllowed({\"Administrator\", \"JBossAdministrator\"})\n public RunningQueries getRunningQueries()...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_414
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/jexl/visitors/RootNegationCheckVisitorTest.java", "identifier": "RootNegationCheckVisitorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testNR() throws ParseException {\n ASTJexlScript script = JexlASTHelper.parseJexlQuery(\"FOO !~ 'bar.*'\");\n Assert.assertTrue(RootNegationCheckVisitor.hasTopLevelNegation(script));\n }", "class_method_signature": "RootNegationCheckVisitorTest.testNR()", "constr...
{ "fields": [], "file": "warehouse/query-core/src/main/java/datawave/query/jexl/visitors/RootNegationCheckVisitor.java", "identifier": "RootNegationCheckVisitor", "interfaces": "", "methods": [ { "class_method_signature": "RootNegationCheckVisitor.hasTopLevelNegation(JexlNode script)", "constr...
{ "body": "public static Boolean hasTopLevelNegation(JexlNode script) {\n RootNegationCheckVisitor visitor = new RootNegationCheckVisitor();\n \n // ensure all negations are pushed down\n JexlNode pushedDownTree = PushdownNegationVisitor.pushdownNegations(script);\n return !visitor....
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_101
{ "fields": [ { "declarator": "TEST_FILE_LOCATION = \"datawave/ingest/mapreduce/job/full_splits.txt\"", "modifier": "private static final", "original_string": "private static final String TEST_FILE_LOCATION = \"datawave/ingest/mapreduce/job/full_splits.txt\";", "type": "String", "var...
{ "body": "@Test\n public void testMultiplierWrappingTableOverride() throws IllegalAccessException, InstantiationException {\n int multiplier = 2;\n int numReducers = 6;\n Configuration conf = new Configuration();\n conf.setInt(SplitBasedHashPartitioner.PARTITIONER_SPACE_MULTIPLIER, mul...
{ "fields": [ { "declarator": "PARTITIONER_SPACE_MULTIPLIER = \"split.based.hash.partitioner.multiplier\"", "modifier": "public static final", "original_string": "public static final String PARTITIONER_SPACE_MULTIPLIER = \"split.based.hash.partitioner.multiplier\";", "type": "String", ...
{ "body": "@Override\n public int getPartition(BulkIngestKey bKey, Value value, int numPartitions) {\n int indexWithinSplits = super.getPartition(bKey, value, numPartitions);\n // ensure this returns a positive value. note Math.abs does not always return a positive number\n int offsetWithinPar...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_551
{ "fields": [ { "declarator": "log = Logger.getLogger(JexlASTHelperTest.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(JexlASTHelperTest.class);", "type": "Logger", "var_name": "log" } ], "file": "warehouse/...
{ "body": "@Test\n public void parseRegexWithEscapedQuoteTest() throws Exception {\n String query = \"CITY =~ 'ci\\\\\\\\\\\\\\\\\\\\\\\\ty\\\\\\\\.bl\\\\'ah'\";\n JexlNode node = JexlASTHelper.parseJexlQuery(query);\n String interpretedQuery = JexlStringBuildingVisitor.buildQueryWithoutParse(...
{ "fields": [ { "declarator": "log = Logger.getLogger(JexlASTHelper.class)", "modifier": "protected static final", "original_string": "protected static final Logger log = Logger.getLogger(JexlASTHelper.class);", "type": "Logger", "var_name": "log" }, { "declarator": "AN...
{ "body": "public static ASTJexlScript parseJexlQuery(String query) throws ParseException {\n // Instantiate a parser and visitor\n Parser parser = new Parser(new StringReader(\";\"));\n \n // lowercase all 'and', 'or', and 'not' portions of the query.\n String caseFixQuery = AND_PA...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_802
{ "fields": [ { "declarator": "intersector", "modifier": "private", "original_string": "private AncestorUidIntersector intersector;", "type": "AncestorUidIntersector", "var_name": "intersector" }, { "declarator": "uids1", "modifier": "private", "original_str...
{ "body": "@Test\n public void testEmptyUids2() {\n uids1.add(new IndexMatch(\"a.b.c\", node1));\n \n Set<IndexMatch> result = intersector.intersect(uids1, uids2, Collections.EMPTY_LIST);\n \n Assert.assertNotNull(result);\n Assert.assertTrue(\"expected size 0, got \" + re...
{ "fields": [], "file": "warehouse/query-core/src/main/java/datawave/query/ancestor/AncestorUidIntersector.java", "identifier": "AncestorUidIntersector", "interfaces": "implements UidIntersector", "methods": [ { "class_method_signature": "AncestorUidIntersector.intersect(Set<IndexMatch> uids1, Set<I...
{ "body": "@Override\n public Set<IndexMatch> intersect(Set<IndexMatch> uids1, Set<IndexMatch> uids2, List<JexlNode> delayedNodes) {\n /*\n * C) Both are small, so we have an easy case where we can prune much of this sub query. Must propagate delayed nodes, though.\n */\n \n //...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_382
{ "fields": [ { "declarator": "log = Logger.getLogger(QueryModelVisitor.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(QueryModelVisitor.class);", "type": "Logger", "var_name": "log" }, { "declarator":...
{ "body": "@Test\n public void functionMapping() throws ParseException {\n ASTJexlScript script = JexlASTHelper.parseJexlQuery(\"filter:isNotNull(FOO)\");\n ASTJexlScript expectedScript = JexlASTHelper.parseJexlQuery(\"filter:isNotNull(BAR1||BAR2)\");\n ASTJexlScript actualScript = QueryModelV...
{ "fields": [ { "declarator": "log = ThreadConfigurableLogger.getLogger(QueryModelVisitor.class)", "modifier": "private static final", "original_string": "private static final Logger log = ThreadConfigurableLogger.getLogger(QueryModelVisitor.class);", "type": "Logger", "var_name": "l...
{ "body": "public static ASTJexlScript applyModel(ASTJexlScript script, QueryModel queryModel, Set<String> validFields) {\n QueryModelVisitor visitor = new QueryModelVisitor(queryModel, validFields);\n \n return (ASTJexlScript) script.jjtAccept(visitor, null);\n }", "class_method_signature":...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_678
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/iterator/QueryOptionsTest.java", "identifier": "QueryOptionsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testBuildFieldDataTypeMapFromNullString() {\n String nulldata = null;\n Map<String,Set<String>> expectedDataTypeMap = new HashMap<>();\n Map<String,Set<String>> fieldDataTypeMap = QueryOptions.buildFieldDataTypeMap(nulldata);\n assertEquals(\"Failed to par...
{ "fields": [ { "declarator": "log = Logger.getLogger(QueryOptions.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(QueryOptions.class);", "type": "Logger", "var_name": "log" }, { "declarator": "fileSyst...
{ "body": "public static Map<String,Set<String>> buildFieldDataTypeMap(String data) {\n \n Map<String,Set<String>> mapping = new HashMap<>();\n \n if (org.apache.commons.lang3.StringUtils.isNotBlank(data)) {\n String[] entries = StringUtils.split(data, ';');\n for (St...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_228
{ "fields": [], "file": "warehouse/common/src/test/java/datawave/common/io/FilesTest.java", "identifier": "FilesTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testCheckDirNoDir() throws Exception {\n File file = mock(File.class);\n expect(file.exists()).andReturn(false);\n expect(file.mkdirs()).andReturn(false);\n replay(file);\n String err = Files.checkDir(file);\n assertEquals(err, \"Directory, '...
{ "fields": [ { "declarator": "NULL_PARAMS = Files.class.getName() + \" does not accept null parameters.\"", "modifier": "private static final", "original_string": "private static final String NULL_PARAMS = Files.class.getName() + \" does not accept null parameters.\";", "type": "String", ...
{ "body": "public static String checkDir(final String dir) {\n return checkDir(dir, false);\n }", "class_method_signature": "Files.checkDir(final String dir)", "constructor": false, "full_signature": "public static String checkDir(final String dir)", "identifier": "checkDir", "invocations": [ ...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_697
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/tables/async/RangeDefinitionTest.java", "identifier": "RangeDefinitionTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void docSpecificRangeTest() {\n Range docSpecificRange = new Range(new Key(\"20190101_0\", \"dataType\\u0000some-doc-id\"), false, new Key(\"20190101_0\", \"dataType\\u0000some-doc-id\\u0000\"),\n false);\n assertTrue(RangeDefinition.isDocSpecific(docS...
{ "fields": [], "file": "warehouse/query-core/src/main/java/datawave/query/tables/async/RangeDefinition.java", "identifier": "RangeDefinition", "interfaces": "", "methods": [ { "class_method_signature": "RangeDefinition.isDocSpecific(Range range)", "constructor": false, "full_signature":...
{ "body": "public static boolean isDocSpecific(Range range) {\n return QueryIterator.isDocumentSpecificRange(range);\n }", "class_method_signature": "RangeDefinition.isDocSpecific(Range range)", "constructor": false, "full_signature": "public static boolean isDocSpecific(Range range)", "identifier":...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_1026
{ "fields": [ { "declarator": "NORMALIZED_SUBJECT_DN = \"cn=testuser, ou=my department, o=my company, st=some-state, c=us\"", "modifier": "private static final", "original_string": "private static final String NORMALIZED_SUBJECT_DN = \"cn=testuser, ou=my department, o=my company, st=some-state, ...
{ "body": "@Test\n public void testReverseDnSuccessfulLogin() throws Exception {\n String name = SUBJECT_DN_WITH_CN_LAST + \"<\" + ISSUER_DN_WITH_CN_LAST + \">\";\n callbackHandler.setSecurityInfo(new SimplePrincipal(name),\n new DatawaveCredential(SUBJECT_DN_WITH_CN_LAST, ISSU...
{ "fields": [ { "declarator": "createSimplePrincipal = new ThreadLocal<>()", "modifier": "private", "original_string": "private ThreadLocal<Boolean> createSimplePrincipal = new ThreadLocal<>();", "type": "ThreadLocal<Boolean>", "var_name": "createSimplePrincipal" } ], "file":...
{ "body": "@Override\n public boolean login() throws LoginException {\n boolean success = super.login();\n \n int roleCount = 0;\n Group[] roleSets = getRoleSets();\n if (roleSets != null) {\n for (Group roleSet : roleSets) {\n for (Enumeration<? extends...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_402
{ "fields": [ { "declarator": "log = Logger.getLogger(QueryModelVisitor.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(QueryModelVisitor.class);", "type": "Logger", "var_name": "log" }, { "declarator":...
{ "body": "@Test\n public void testCastesianProduct() throws ParseException {\n model.addTermToModel(\"FOO1\", \"1BAR\");\n model.addTermToModel(\"FOO1\", \"2BAR\");\n \n ASTJexlScript script = JexlASTHelper.parseJexlQuery(\"FOO == FOO1\");\n ASTJexlScript groomed = JexlASTHelper...
{ "fields": [ { "declarator": "log = ThreadConfigurableLogger.getLogger(QueryModelVisitor.class)", "modifier": "private static final", "original_string": "private static final Logger log = ThreadConfigurableLogger.getLogger(QueryModelVisitor.class);", "type": "Logger", "var_name": "l...
{ "body": "public static ASTJexlScript applyModel(ASTJexlScript script, QueryModel queryModel, Set<String> validFields) {\n QueryModelVisitor visitor = new QueryModelVisitor(queryModel, validFields);\n \n return (ASTJexlScript) script.jjtAccept(visitor, null);\n }", "class_method_signature":...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_951
{ "fields": [ { "declarator": "rem", "modifier": "private static", "original_string": "private static RESTExceptionMapper rem;", "type": "RESTExceptionMapper", "var_name": "rem" } ], "file": "web-services/common-util/src/test/java/datawave/webservice/common/exception/RESTExce...
{ "body": "@Test\n public void testToResponse_EJBException() {\n Exception e = new EJBException(new WebApplicationException());\n StackTraceElement[] traceArr = new StackTraceElement[1];\n traceArr[0] = new StackTraceElement(\"dummyClass\", \"dummyMethod\", null, 0);\n \n e.setSt...
{ "fields": [ { "declarator": "log = Logger.getLogger(this.getClass())", "modifier": "private", "original_string": "private Logger log = Logger.getLogger(this.getClass());", "type": "Logger", "var_name": "log" }, { "declarator": "RESPONSE_ORIGIN = null", "modifier...
{ "body": "@Override\n public Response toResponse(Exception e) {\n \n synchronized (lock) {\n if (null == RESPONSE_ORIGIN) {\n RESPONSE_ORIGIN = System.getProperty(\"cluster.name\") + \"/\" + System.getProperty(\"jboss.host.name\");\n }\n }\n \n ...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_814
{ "fields": [ { "declarator": "queryNode = null", "modifier": "private", "original_string": "private JexlNode queryNode = null;", "type": "JexlNode", "var_name": "queryNode" }, { "declarator": "config", "modifier": "private", "original_string": "private Shar...
{ "body": "@Test\n public void testApplyWithTldDocumentRange() {\n String shard = \"20190314_0\";\n Set<String> docIds = Sets.newHashSet(\"docId0\", \"docId1\", \"docId2\");\n IndexInfo indexInfo = new IndexInfo(docIds);\n indexInfo.applyNode(queryNode);\n Tuple2<String,IndexInfo...
{ "fields": [ { "declarator": "log = Logger.getLogger(TupleToRange.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(TupleToRange.class);", "type": "Logger", "var_name": "log" }, { "declarator": "currentS...
{ "body": "public Iterator<QueryPlan> apply(Tuple2<String,IndexInfo> tuple) {\n String shard = tuple.first();\n IndexInfo indexInfo = tuple.second();\n \n JexlNode queryNode = currentScript;\n if (log.isTraceEnabled() && indexInfo.getNode() != null) {\n log.trace(\"Got it...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_547
{ "fields": [ { "declarator": "log = Logger.getLogger(JexlASTHelperTest.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(JexlASTHelperTest.class);", "type": "Logger", "var_name": "log" } ], "file": "warehouse/...
{ "body": "@Test\n public void parse3InteriorBackslashesRegex() throws Exception {\n String query = \"CITY =~ 'ci\\\\\\\\\\\\\\\\\\\\\\\\ty'\";\n JexlNode node = JexlASTHelper.parseJexlQuery(query);\n String interpretedQuery = JexlStringBuildingVisitor.buildQuery(node);\n Assert.assertE...
{ "fields": [ { "declarator": "log = Logger.getLogger(JexlASTHelper.class)", "modifier": "protected static final", "original_string": "protected static final Logger log = Logger.getLogger(JexlASTHelper.class);", "type": "Logger", "var_name": "log" }, { "declarator": "AN...
{ "body": "public static ASTJexlScript parseJexlQuery(String query) throws ParseException {\n // Instantiate a parser and visitor\n Parser parser = new Parser(new StringReader(\";\"));\n \n // lowercase all 'and', 'or', and 'not' portions of the query.\n String caseFixQuery = AND_PA...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_117
{ "fields": [ { "declarator": "TEST_TYPE = \"test\"", "modifier": "private static final", "original_string": "private static final String TEST_TYPE = \"test\";", "type": "String", "var_name": "TEST_TYPE" }, { "declarator": "TEST_UID = UID.builder().newId()", "modi...
{ "body": "@Test\n public void testMultiValueHashing() {\n \n ctx.getConfiguration().set(\"test.facet.hash.threshold\", \"2\");\n \n ExtendedDataTypeHandler<Text,BulkIngestKey,Value> handler = new FacetHandler<>();\n handler.setup(ctx);\n \n Collection<Multimap<Stri...
{ "fields": [ { "declarator": "log = Logger.getLogger(FacetHandler.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(FacetHandler.class);", "type": "Logger", "var_name": "log" }, { "declarator": "FACET_TA...
{ "body": "@Override\n public void setup(TaskAttemptContext context) {\n markingFunctions = MarkingFunctions.Factory.createMarkingFunctions();\n \n taskAttemptContext = context;\n \n Configuration conf = context.getConfiguration();\n \n final String t = Configuratio...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_394
{ "fields": [ { "declarator": "log = Logger.getLogger(QueryModelVisitor.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(QueryModelVisitor.class);", "type": "Logger", "var_name": "log" }, { "declarator":...
{ "body": "@Test\n public void attributeWithMethodAndFunctionMappingInsideAndNode() throws ParseException {\n ASTJexlScript script = JexlASTHelper\n .parseJexlQuery(\"FOO.getValuesForGroups(grouping:getGroupsForMatchesInGroup(OUT, 'MEADOW')) < 19 && FOO.getValuesForGroups(grouping:get...
{ "fields": [ { "declarator": "log = ThreadConfigurableLogger.getLogger(QueryModelVisitor.class)", "modifier": "private static final", "original_string": "private static final Logger log = ThreadConfigurableLogger.getLogger(QueryModelVisitor.class);", "type": "Logger", "var_name": "l...
{ "body": "public static ASTJexlScript applyModel(ASTJexlScript script, QueryModel queryModel, Set<String> validFields) {\n QueryModelVisitor visitor = new QueryModelVisitor(queryModel, validFields);\n \n return (ASTJexlScript) script.jjtAccept(visitor, null);\n }", "class_method_signature":...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_681
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/iterator/QueryOptionsTest.java", "identifier": "QueryOptionsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testFetchDataTypeKeysFromMultiValueString() {\n String data = \"k:v;key:value\";\n Set<String> expectedDataTypeKeys = Sets.newHashSet(\"k\", \"key\");\n Set<String> dataTypeKeys = QueryOptions.fetchDataTypeKeys(data);\n assertEquals(\"Failed to parse multi...
{ "fields": [ { "declarator": "log = Logger.getLogger(QueryOptions.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(QueryOptions.class);", "type": "Logger", "var_name": "log" }, { "declarator": "fileSyst...
{ "body": "public static Set<String> fetchDataTypeKeys(String data) {\n Set<String> keys = Sets.newHashSet();\n if (org.apache.commons.lang3.StringUtils.isNotBlank(data)) {\n String[] entries = StringUtils.split(data, ';');\n for (String entry : entries) {\n String[]...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_1030
{ "fields": [ { "declarator": "NORMALIZED_SUBJECT_DN = \"cn=testuser, ou=my department, o=my company, st=some-state, c=us\"", "modifier": "private static final", "original_string": "private static final String NORMALIZED_SUBJECT_DN = \"cn=testuser, ou=my department, o=my company, st=some-state, ...
{ "body": "@Test\n public void normalizeSubjectIssuerCombinations() {\n assertEquals(NORMALIZED_SUBJECT_DN_WITH_ISSUER_DN,\n DatawaveUsersRolesLoginModule.normalizeUsername(SUBJECT_DN_WITH_CN_FIRST + \"<\" + ISSUER_DN_WITH_CN_FIRST + \">\"));\n assertEquals(NORMALIZED_SUBJECT_D...
{ "fields": [ { "declarator": "createSimplePrincipal = new ThreadLocal<>()", "modifier": "private", "original_string": "private ThreadLocal<Boolean> createSimplePrincipal = new ThreadLocal<>();", "type": "ThreadLocal<Boolean>", "var_name": "createSimplePrincipal" } ], "file":...
{ "body": "protected static String normalizeUsername(String username) {\n StringBuilder result = new StringBuilder();\n \n String[] splitDns = DnUtils.splitProxiedSubjectIssuerDNs(username);\n for (int i = 0; i < splitDns.length; i++) {\n if (i > 0) {\n result.app...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_906
{ "fields": [ { "declarator": "standardKey", "modifier": "private", "original_string": "private Key standardKey;", "type": "Key", "var_name": "standardKey" }, { "declarator": "standardValue", "modifier": "private", "original_string": "private Value standardV...
{ "body": "@Test\n public void testDecodeDurationHistogramWithList() {\n // only set 3 durations instead of the expected 7\n List<Long> incompleteList = createIncompleteHistogram();\n \n List<Long> durations = EdgeValueHelper.decodeDurationHistogram(incompleteList);\n verifyValue...
{ "fields": [ { "declarator": "log = Logger.getLogger(this.getClass())", "modifier": "private", "original_string": "private Logger log = Logger.getLogger(this.getClass());", "type": "Logger", "var_name": "log" }, { "declarator": "ACTIVITY_HISTOGRAM_LENGTH = 24", "...
{ "body": "public static List<Long> decodeDurationHistogram(Value value) {\n try {\n return decodeDurationHistogram(EdgeData.EdgeValue.parseFrom(value.get()).getDurationList());\n } catch (InvalidProtocolBufferException e) {\n // Probably an old edge value\n return decod...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_455
{ "fields": [ { "declarator": "DATATYPE = \"ingest\"", "modifier": "private static final", "original_string": "private static final String DATATYPE = \"ingest\";", "type": "String", "var_name": "DATATYPE" }, { "declarator": "UID = \"uid\"", "modifier": "private st...
{ "body": "@Test\n public void testRange2() throws Exception {\n // Between 5 and 12.\n String originalQuery = \"FOO == 'abc' AND (BAZ >= '+aE5' AND BAZ <= '+bE1.2')\";\n // @TODO, use ExpandMultiNormalizedTerms to normalize this query?\n \n ASTJexlScript script = JexlASTHelper.p...
{ "fields": [ { "declarator": "log = Logger.getLogger(EventDataQueryExpressionVisitor.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(EventDataQueryExpressionVisitor.class);", "type": "Logger", "var_name": "log" ...
{ "body": "public static Map<String,ExpressionFilter> getExpressionFilters(ASTJexlScript script, AttributeFactory factory) {\n final EventDataQueryExpressionVisitor v = new EventDataQueryExpressionVisitor(factory);\n \n script.jjtAccept(v, \"\");\n \n return v.getFilterMap();\n }...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_140
{ "fields": [ { "declarator": "FILE_SYSTEM_URI = URI.create(\"file:///\")", "modifier": "protected static final", "original_string": "protected static final URI FILE_SYSTEM_URI = URI.create(\"file:///\");", "type": "URI", "var_name": "FILE_SYSTEM_URI" }, { "declarator":...
{ "body": "@Test\n public void testCleanUpJobDirectoryWithFailedJobAndFailedRenames() throws Exception {\n \n BulkIngestMapFileLoaderTest.logger.info(\"testCleanUpJobDirectoryWithFailedJobAndFailedRenames called...\");\n \n try {\n \n URL url = BulkIngestMapFileLoa...
{ "fields": [ { "declarator": "log = Logger.getLogger(BulkIngestMapFileLoader.class)", "modifier": "private static", "original_string": "private static Logger log = Logger.getLogger(BulkIngestMapFileLoader.class);", "type": "Logger", "var_name": "log" }, { "declarator":...
{ "body": "public void cleanUpJobDirectory(Path mapFilesDir) throws IOException {\n Path jobDirectory = mapFilesDir.getParent();\n \n FileSystem destFs = getFileSystem(destHdfs);\n \n FileStatus[] failedDirs = destFs.globStatus(new Path(mapFilesDir, \"failures/*/*\"));\n bool...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_510
{ "fields": [ { "declarator": "exception = ExpectedException.none()", "modifier": "@Rule\n public final", "original_string": "@Rule\n public final ExpectedException exception = ExpectedException.none();", "type": "ExpectedException", "var_name": "exception" } ], "file":...
{ "body": "@Test\n public void testEndWildCardNotIndexOnly() throws ParseException {\n String query = \"_ANYFIELD_=='email' and ANOTHER_FIELD=='blah' and filter:includeRegex(FIELDB, 'all_.*?')\";\n \n Set<String> indexOnlyFields = Sets.newHashSet();\n indexOnlyFields.add(\"FIELDA\");\n ...
{ "fields": [ { "declarator": "log = ThreadConfigurableLogger.getLogger(RegexFunctionVisitor.class)", "modifier": "private static final", "original_string": "private static final Logger log = ThreadConfigurableLogger.getLogger(RegexFunctionVisitor.class);", "type": "Logger", "var_nam...
{ "body": "@SuppressWarnings(\"unchecked\")\n public static <T extends JexlNode> T expandRegex(ShardQueryConfiguration config, MetadataHelper metadataHelper, Set<String> nonEventFields, T script) {\n RegexFunctionVisitor visitor = new RegexFunctionVisitor(config, metadataHelper, nonEventFields);\n \n...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_843
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/index/lookup/CreateUidsIteratorTest.java", "identifier": "CreateUidsIteratorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testMakeRootKey() {\n Key expectedRootKey = new Key(\"term\", \"field\", \"shard\");\n Key indexKey = new Key(\"term\", \"field\", \"shard\\u0000datatype\");\n assertEquals(expectedRootKey, CreateUidsIterator.makeRootKey(indexKey));\n }", "class_method_signa...
{ "fields": [ { "declarator": "log = Logger.getLogger(CreateUidsIterator.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(CreateUidsIterator.class);", "type": "Logger", "var_name": "log" }, { "declarator...
{ "body": "public static Key makeRootKey(Key k) {\n ByteSequence cq = k.getColumnQualifierData();\n ByteSequence strippedCq = cq.subSequence(0, lastNull(cq));\n final ByteSequence row = k.getRowData(), cf = k.getColumnFamilyData(), cv = k.getColumnVisibilityData();\n return new Key(row.get...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_639
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/ranges/RangeFactoryTest.java", "identifier": "RangeFactoryTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testBuildTldDocumentSpecificRange() {\n String shard = \"20190314_0\";\n String docId = \"docId0\";\n Range tldDocRange = RangeFactory.createTldDocumentSpecificRange(shard, docId);\n \n String expectedEndKeyCF = docId + RangeFactory.MAX_UNICODE_STRI...
{ "fields": [ { "declarator": "NULL_BYTE_STRING = \"\\u0000\"", "modifier": "public static final", "original_string": "public static final String NULL_BYTE_STRING = \"\\u0000\";", "type": "String", "var_name": "NULL_BYTE_STRING" }, { "declarator": "MAX_UNICODE_STRING = ...
{ "body": "public static Range createTldDocumentSpecificRange(String shard, String docId) {\n Key start = new Key(shard, docId);\n Key end = new Key(shard, docId + MAX_UNICODE_STRING);\n \n // Technically, we don't want to be inclusive of the start key,\n // however if we mark the s...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_793
{ "fields": [ { "declarator": "intersector", "modifier": "private", "original_string": "private AncestorUidIntersector intersector;", "type": "AncestorUidIntersector", "var_name": "intersector" }, { "declarator": "uids1", "modifier": "private", "original_str...
{ "body": "@Test\n public void testReduceSingleUids1() {\n uids1.add(new IndexMatch(\"a.b.c.1\", node1));\n uids1.add(new IndexMatch(\"a.b.c.1.1\", node1));\n uids2.add(new IndexMatch(\"a.b.c.1.1.1\", node2));\n uids2.add(new IndexMatch(\"a.b.c.1.1.2\", node2));\n \n Set<I...
{ "fields": [], "file": "warehouse/query-core/src/main/java/datawave/query/ancestor/AncestorUidIntersector.java", "identifier": "AncestorUidIntersector", "interfaces": "implements UidIntersector", "methods": [ { "class_method_signature": "AncestorUidIntersector.intersect(Set<IndexMatch> uids1, Set<I...
{ "body": "@Override\n public Set<IndexMatch> intersect(Set<IndexMatch> uids1, Set<IndexMatch> uids2, List<JexlNode> delayedNodes) {\n /*\n * C) Both are small, so we have an easy case where we can prune much of this sub query. Must propagate delayed nodes, though.\n */\n \n //...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_269
{ "fields": [ { "declarator": "visitor", "modifier": "", "original_string": "PushdownNegationVisitor visitor;", "type": "PushdownNegationVisitor", "var_name": "visitor" } ], "file": "warehouse/query-core/src/test/java/datawave/query/jexl/visitors/PushdownNegationVisitorTest.j...
{ "body": "@Test\n public void testDelayedPropertyMarkerPropagate() throws ParseException {\n ASTJexlScript query = JexlASTHelper.parseJexlQuery(\"!((ASTDelayedPredicate = true) && (F1 == 'v1' || F2 == 'v2'))\");\n JexlNode result = PushdownNegationVisitor.pushdownNegations(query);\n Assert.as...
{ "fields": [], "file": "warehouse/query-core/src/main/java/datawave/query/jexl/visitors/PushdownNegationVisitor.java", "identifier": "PushdownNegationVisitor", "interfaces": "", "methods": [ { "class_method_signature": "PushdownNegationVisitor.pushdownNegations(JexlNode tree)", "constructor":...
{ "body": "public static JexlNode pushdownNegations(JexlNode tree) {\n // flatten the input\n JexlNode flattened = TreeFlatteningRebuildingVisitor.flatten(tree);\n \n flattened.jjtAccept(new PushdownNegationVisitor(), new NegationState(false));\n \n // flatten the result\n ...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_286
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/jexl/visitors/GeoWavePruningVisitorTest.java", "identifier": "GeoWavePruningVisitorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void pruningVisitorTest() throws Exception {\n String query = \"geowave:intersects(GEO_FIELD, 'POLYGON((10 10, 20 10, 20 20, 10 20, 10 10))')\";\n ShardQueryConfiguration config = new ShardQueryConfiguration();\n \n // Get the expanded geowave terms, and add a ...
{ "fields": [ { "declarator": "prunedTerms", "modifier": "private", "original_string": "private Multimap<String,String> prunedTerms;", "type": "Multimap<String,String>", "var_name": "prunedTerms" }, { "declarator": "metadataHelper", "modifier": "private", "o...
{ "body": "public static <T extends JexlNode> T pruneTree(JexlNode node) {\n return pruneTree(node, null, null);\n }", "class_method_signature": "GeoWavePruningVisitor.pruneTree(JexlNode node)", "constructor": false, "full_signature": "public static T pruneTree(JexlNode node)", "identifier": "pruneT...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_1067
{ "fields": [ { "declarator": "crq = null", "modifier": "private", "original_string": "private CachedRunningQuery crq = null;", "type": "CachedRunningQuery", "var_name": "crq" }, { "declarator": "fixedColumns = StringUtils.join(CacheableQueryRowImpl.getFixedColumnSet(),...
{ "body": "@Test\n public void testOrderClauseParsing() {\n String[] ins = {\"STR_TO_DATE(1,2) ASC,INET_ATON(3,4) DSC\", \"STR_TO_DATE(1, 2) ASC,INET_ATON(3, 4) DSC\", \"STR_TO_DATE(1, 2) ,INET_ATON(3, 4) DSC\",\n \"STR_TO_DATE(hey.there, 2) ,INET_ATON(3, 4) \", \"STR_TO_DATE(hi.there, 2) ,IN...
{ "fields": [ { "declarator": "log = Logger.getLogger(CachedRunningQuery.class)", "modifier": "private static", "original_string": "private static Logger log = Logger.getLogger(CachedRunningQuery.class);", "type": "Logger", "var_name": "log" }, { "declarator": "datasour...
{ "body": "public String buildOrderClause(String order) {\n if (order != null) {\n String[] commaSplit = tokenizeOutsideParens(order, ',');\n StringBuilder out = new StringBuilder();\n for (String s : commaSplit) {\n // in case its a function with a direction, se...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
9291388_0
{ "fields": [ { "declarator": "activity", "modifier": "private", "original_string": "private Activity activity;", "type": "Activity", "var_name": "activity" }, { "declarator": "button", "modifier": "private", "original_string": "private ProgressButton button...
{ "body": "@Test public void invalidProgressValue() {\n try {\n button.setProgress(101);\n fail(\"Setting progress > max should throw\");\n } catch (IllegalArgumentException e) {\n }\n }", "class_method_signature": "ProgressButtonTest.invalidProgressValue()", "constructor": false, "full_sign...
{ "fields": [ { "declarator": "mMax = 100", "modifier": "private", "original_string": "private int mMax = 100;", "type": "int", "var_name": "mMax" }, { "declarator": "mProgress = 0", "modifier": "private", "original_string": "private int mProgress = 0;", ...
{ "body": "public void setProgress(int progress) {\n if (progress > mMax || progress < 0) {\n throw new IllegalArgumentException(\n String.format(\"Progress (%d) must be between %d and %d\", progress, 0, mMax));\n }\n mProgress = progress;\n invalidate();\n }", "class_method_signature": "...
{ "created": null, "fork": null, "fork_count": 194, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 9291388, "size": 1234, "stargazer_count": 631, "stars": null, "updates": null, "url": "https://github.com/f2prateek/progressbutton" }
9291388_1
{ "fields": [ { "declarator": "activity", "modifier": "private", "original_string": "private Activity activity;", "type": "Activity", "var_name": "activity" }, { "declarator": "button", "modifier": "private", "original_string": "private ProgressButton button...
{ "body": "@Test public void anotherInvalidProgressValue() {\n try {\n button.setProgress(-1);\n fail(\"Setting progress < 0 should throw\");\n } catch (IllegalArgumentException e) {\n }\n }", "class_method_signature": "ProgressButtonTest.anotherInvalidProgressValue()", "constructor": false, ...
{ "fields": [ { "declarator": "mMax = 100", "modifier": "private", "original_string": "private int mMax = 100;", "type": "int", "var_name": "mMax" }, { "declarator": "mProgress = 0", "modifier": "private", "original_string": "private int mProgress = 0;", ...
{ "body": "public void setProgress(int progress) {\n if (progress > mMax || progress < 0) {\n throw new IllegalArgumentException(\n String.format(\"Progress (%d) must be between %d and %d\", progress, 0, mMax));\n }\n mProgress = progress;\n invalidate();\n }", "class_method_signature": "...
{ "created": null, "fork": null, "fork_count": 194, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 9291388, "size": 1234, "stargazer_count": 631, "stars": null, "updates": null, "url": "https://github.com/f2prateek/progressbutton" }
9291388_6
{ "fields": [ { "declarator": "activity", "modifier": "private", "original_string": "private Activity activity;", "type": "Activity", "var_name": "activity" }, { "declarator": "button", "modifier": "private", "original_string": "private ProgressButton button...
{ "body": "@Test public void onSaveInstanceState() {\n button.setProgress(72);\n button.setMax(842);\n final Parcelable parcelable = button.onSaveInstanceState();\n button.setProgress(2);\n button.setMax(50);\n assertThat(button.getProgress()).isEqualTo(2);\n assertThat(button.getMax()).isEqualTo...
{ "fields": [ { "declarator": "mMax = 100", "modifier": "private", "original_string": "private int mMax = 100;", "type": "int", "var_name": "mMax" }, { "declarator": "mProgress = 0", "modifier": "private", "original_string": "private int mProgress = 0;", ...
{ "body": "@Override public Parcelable onSaveInstanceState() {\n Parcelable superState = super.onSaveInstanceState();\n if (isSaveEnabled()) {\n SavedState ss = new SavedState(superState);\n ss.mMax = mMax;\n ss.mProgress = mProgress;\n return ss;\n }\n return superState;\n }", "cla...
{ "created": null, "fork": null, "fork_count": 194, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 9291388, "size": 1234, "stargazer_count": 631, "stars": null, "updates": null, "url": "https://github.com/f2prateek/progressbutton" }
9291388_7
{ "fields": [ { "declarator": "activity", "modifier": "private", "original_string": "private Activity activity;", "type": "Activity", "var_name": "activity" }, { "declarator": "button", "modifier": "private", "original_string": "private ProgressButton button...
{ "body": "@Test public void settingInvalidProgressAndMax() {\n try {\n button.setProgressAndMax(10, 5);\n fail(\"Setting progress > max should throw\");\n } catch (IllegalArgumentException e) {\n }\n\n try {\n button.setProgressAndMax(0, 0);\n fail(\"Setting max = 0 should throw\");\n...
{ "fields": [ { "declarator": "mMax = 100", "modifier": "private", "original_string": "private int mMax = 100;", "type": "int", "var_name": "mMax" }, { "declarator": "mProgress = 0", "modifier": "private", "original_string": "private int mProgress = 0;", ...
{ "body": "public void setProgressAndMax(int progress, int max) {\n if (progress > max || progress < 0) {\n throw new IllegalArgumentException(\n String.format(\"Progress (%d) must be between %d and %d\", progress, 0, max));\n } else if (max <= 0) {\n throw new IllegalArgumentException(String...
{ "created": null, "fork": null, "fork_count": 194, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 9291388, "size": 1234, "stargazer_count": 631, "stars": null, "updates": null, "url": "https://github.com/f2prateek/progressbutton" }
9291388_4
{ "fields": [ { "declarator": "activity", "modifier": "private", "original_string": "private Activity activity;", "type": "Activity", "var_name": "activity" }, { "declarator": "button", "modifier": "private", "original_string": "private ProgressButton button...
{ "body": "@Test public void onCheckedChangeListenerIsNotified() {\n CompoundButton.OnCheckedChangeListener publisher =\n mock(CompoundButton.OnCheckedChangeListener.class);\n button.setOnCheckedChangeListener(publisher);\n button.setPinned(true);\n verify(publisher).onCheckedChanged(button, true);...
{ "fields": [ { "declarator": "mMax = 100", "modifier": "private", "original_string": "private int mMax = 100;", "type": "int", "var_name": "mMax" }, { "declarator": "mProgress = 0", "modifier": "private", "original_string": "private int mProgress = 0;", ...
{ "body": "public void setPinned(boolean pinned) {\n setChecked(pinned);\n invalidate();\n }", "class_method_signature": "ProgressButton.setPinned(boolean pinned)", "constructor": false, "full_signature": "public void setPinned(boolean pinned)", "identifier": "setPinned", "invocations": [ "setChe...
{ "created": null, "fork": null, "fork_count": 194, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 9291388, "size": 1234, "stargazer_count": 631, "stars": null, "updates": null, "url": "https://github.com/f2prateek/progressbutton" }
9291388_5
{ "fields": [ { "declarator": "activity", "modifier": "private", "original_string": "private Activity activity;", "type": "Activity", "var_name": "activity" }, { "declarator": "button", "modifier": "private", "original_string": "private ProgressButton button...
{ "body": "@Test public void onCheckedChangeListenerIsNotifiedOnToggle() {\n button.setPinned(true);\n CompoundButton.OnCheckedChangeListener publisher =\n mock(CompoundButton.OnCheckedChangeListener.class);\n button.setOnCheckedChangeListener(publisher);\n button.toggle();\n verify(publisher).o...
{ "fields": [ { "declarator": "mMax = 100", "modifier": "private", "original_string": "private int mMax = 100;", "type": "int", "var_name": "mMax" }, { "declarator": "mProgress = 0", "modifier": "private", "original_string": "private int mProgress = 0;", ...
{ "body": "public void setPinned(boolean pinned) {\n setChecked(pinned);\n invalidate();\n }", "class_method_signature": "ProgressButton.setPinned(boolean pinned)", "constructor": false, "full_signature": "public void setPinned(boolean pinned)", "identifier": "setPinned", "invocations": [ "setChe...
{ "created": null, "fork": null, "fork_count": 194, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 9291388, "size": 1234, "stargazer_count": 631, "stars": null, "updates": null, "url": "https://github.com/f2prateek/progressbutton" }
9291388_2
{ "fields": [ { "declarator": "activity", "modifier": "private", "original_string": "private Activity activity;", "type": "Activity", "var_name": "activity" }, { "declarator": "button", "modifier": "private", "original_string": "private ProgressButton button...
{ "body": "@Test public void setMaxToUnderZero() {\n try {\n button.setMax(-1);\n fail(\"Setting max <= 0 should throw\");\n } catch (IllegalArgumentException e) {\n }\n }", "class_method_signature": "ProgressButtonTest.setMaxToUnderZero()", "constructor": false, "full_signature": "@Test pub...
{ "fields": [ { "declarator": "mMax = 100", "modifier": "private", "original_string": "private int mMax = 100;", "type": "int", "var_name": "mMax" }, { "declarator": "mProgress = 0", "modifier": "private", "original_string": "private int mProgress = 0;", ...
{ "body": "public void setMax(int max) {\n if (max <= 0 || max < mProgress) {\n throw new IllegalArgumentException(\n String.format(\"Max (%d) must be > 0 and >= %d\", max, mProgress));\n }\n mMax = max;\n invalidate();\n }", "class_method_signature": "ProgressButton.setMax(int max)", "...
{ "created": null, "fork": null, "fork_count": 194, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 9291388, "size": 1234, "stargazer_count": 631, "stars": null, "updates": null, "url": "https://github.com/f2prateek/progressbutton" }
9291388_3
{ "fields": [ { "declarator": "activity", "modifier": "private", "original_string": "private Activity activity;", "type": "Activity", "var_name": "activity" }, { "declarator": "button", "modifier": "private", "original_string": "private ProgressButton button...
{ "body": "@Test public void setMaxToZero() {\n try {\n button.setMax(0);\n fail(\"Setting max <= 0 should throw\");\n } catch (IllegalArgumentException e) {\n }\n }", "class_method_signature": "ProgressButtonTest.setMaxToZero()", "constructor": false, "full_signature": "@Test public void se...
{ "fields": [ { "declarator": "mMax = 100", "modifier": "private", "original_string": "private int mMax = 100;", "type": "int", "var_name": "mMax" }, { "declarator": "mProgress = 0", "modifier": "private", "original_string": "private int mProgress = 0;", ...
{ "body": "public void setMax(int max) {\n if (max <= 0 || max < mProgress) {\n throw new IllegalArgumentException(\n String.format(\"Max (%d) must be > 0 and >= %d\", max, mProgress));\n }\n mMax = max;\n invalidate();\n }", "class_method_signature": "ProgressButton.setMax(int max)", "...
{ "created": null, "fork": null, "fork_count": 194, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 9291388, "size": 1234, "stargazer_count": 631, "stars": null, "updates": null, "url": "https://github.com/f2prateek/progressbutton" }
27135187_38
{ "fields": [], "file": "legstar-cob2xsd/src/test/java/com/legstar/cobol/utils/ValueUtilTest.java", "identifier": "ValueUtilTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testResolveFigurative() {\n assertEquals(\"A\", ValueUtil.resolveFigurative(\"'A'\", 5, true));\n assertEquals(\"9\", ValueUtil.resolveFigurative(\"9\", 5, true));\n assertEquals(\"0\", ValueUtil.resolveFigurative(\"zero\", 5, true));\n assertEquals(\" \",...
{ "fields": [], "file": "legstar-cob2xsd/src/main/java/com/legstar/cobol/utils/ValueUtil.java", "identifier": "ValueUtil", "interfaces": "", "methods": [ { "class_method_signature": "ValueUtil.ValueUtil()", "constructor": true, "full_signature": "private ValueUtil()", "identifier"...
{ "body": "public static String resolveFigurative(\n final String value,\n final int length,\n final boolean quoteIsQuote) {\n\n if (value == null || value.length() == 0) {\n return value;\n }\n String ucValue = value.toUpperCase(Locale.getDefault());\n...
{ "created": null, "fork": null, "fork_count": 11, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27135187, "size": 980, "stargazer_count": 15, "stars": null, "updates": null, "url": "https://github.com/legsem/legstar-core2" }
27135187_14
{ "fields": [ { "declarator": "cobolContext", "modifier": "private", "original_string": "private CobolContext cobolContext;", "type": "CobolContext", "var_name": "cobolContext" } ], "file": "legstar-base/src/test/java/com/legstar/base/visitor/DefaultFromCobolChoiceStrategyTes...
{ "body": "@Test\n public void testSelectFirstAlternative() {\n DefaultFromCobolChoiceStrategy strategy = new DefaultFromCobolChoiceStrategy(cobolContext);\n CobolChoiceType choice = (CobolChoiceType) new CobolRdef01Record().getFields().get(\"comDetail1Choice\");\n byte[] hostData = HexUtils.d...
{ "fields": [ { "declarator": "cobolContext", "modifier": "private final", "original_string": "private final CobolContext cobolContext;", "type": "CobolContext", "var_name": "cobolContext" } ], "file": "legstar-base/src/main/java/com/legstar/base/visitor/DefaultFromCobolChoic...
{ "body": "public CobolType choose(String choiceFieldName,\n CobolChoiceType cobolChoiceType, Map < String, Object > variables,\n byte[] hostData, int start, int length) {\n\n for (Entry < String, CobolType > alternative : cobolChoiceType\n .getAlternatives().entrySet()) {\...
{ "created": null, "fork": null, "fork_count": 11, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27135187, "size": 980, "stargazer_count": 15, "stars": null, "updates": null, "url": "https://github.com/legsem/legstar-core2" }
27135187_43
{ "fields": [ { "declarator": "_errorHandler = new RecognizerErrorHandler()", "modifier": "private", "original_string": "private RecognizerErrorHandler _errorHandler = new RecognizerErrorHandler();", "type": "RecognizerErrorHandler", "var_name": "_errorHandler" } ], "file": "...
{ "body": "@Test\n public void testUpdateDependencyNoMatch() {\n CobolDataItem dataItem = new CobolDataItem(\"COBOL-NAME\");\n CobolDataItem child1 = new CobolDataItem(\"DEPENDON-NAME\");\n child1.setDependingOn(\"ODO-OBJECT-NAME\");\n\n dataItem.getChildren().add(child1);\n\n ne...
{ "fields": [ { "declarator": "_cobolDataItem", "modifier": "private", "original_string": "private CobolDataItem _cobolDataItem;", "type": "CobolDataItem", "var_name": "_cobolDataItem" }, { "declarator": "_parent", "modifier": "private", "original_string": "...
{ "body": "public List < XsdDataItem > getChildren() {\n return _children;\n }", "class_method_signature": "XsdDataItem.getChildren()", "constructor": false, "full_signature": "public List < XsdDataItem > getChildren()", "identifier": "getChildren", "invocations": [], "modifiers": "public", "p...
{ "created": null, "fork": null, "fork_count": 11, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27135187, "size": 980, "stargazer_count": 15, "stars": null, "updates": null, "url": "https://github.com/legsem/legstar-core2" }
27135187_34
{ "fields": [ { "declarator": "CREATE_REFERENCE = false", "modifier": "private static final", "original_string": "private static final boolean CREATE_REFERENCE = false;", "type": "boolean", "var_name": "CREATE_REFERENCE" }, { "declarator": "LEGSTAR_COBOL_FILE_ENCODING =...
{ "body": "@Test\n public void testCflt01Generate() throws Exception {\n generate(\"CFLT01\");\n check(\"Cflt01Record\");\n }", "class_method_signature": "Cob2JaxbGeneratorTest.testCflt01Generate()", "constructor": false, "full_signature": "@Test public void testCflt01Generate()", "identif...
{ "fields": [ { "declarator": "log = LoggerFactory\n .getLogger(Cob2JaxbGenerator.class)", "modifier": "private static", "original_string": "private static Logger log = LoggerFactory\n .getLogger(Cob2JaxbGenerator.class);", "type": "Logger", "var_name": "log" ...
{ "body": "public void generate(File cobolFile, String cobolFileEncoding, File targetFolder,\n String targetPackageName,\n final String xsltFileName) {\n try {\n Reader reader = cobolFileEncoding == null ? new InputStreamReader(\n new FileInputStream(cobolFil...
{ "created": null, "fork": null, "fork_count": 11, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27135187, "size": 980, "stargazer_count": 15, "stars": null, "updates": null, "url": "https://github.com/legsem/legstar-core2" }
27135187_22
{ "fields": [ { "declarator": "LEGSTAR_XSD_FILE_ENCODING = \"UTF-8\"", "modifier": "private static final", "original_string": "private static final String LEGSTAR_XSD_FILE_ENCODING = \"UTF-8\";", "type": "String", "var_name": "LEGSTAR_XSD_FILE_ENCODING" }, { "declarator...
{ "body": "@Test\n public void testFlat02Build() throws Exception {\n check(build(\"flat02\"), \"flat02.map\");\n }", "class_method_signature": "Xsd2CobolTypesModelBuilderTest.testFlat02Build()", "constructor": false, "full_signature": "@Test public void testFlat02Build()", "identifier": "testFla...
{ "fields": [ { "declarator": "COBOL_NAME_PROP_NAME = \"cobolName\"", "modifier": "private static final", "original_string": "private static final String COBOL_NAME_PROP_NAME = \"cobolName\";", "type": "String", "var_name": "COBOL_NAME_PROP_NAME" }, { "declarator": "FRA...
{ "body": "public Map < String, RootCompositeType > build(XmlSchema xmlSchema)\n throws Xsd2ConverterException {\n\n log.debug(\"visit XML Schema started\");\n Map < String, RootCompositeType > rootComplexTypes = new LinkedHashMap < String, RootCompositeType >();\n\n for (Entry < QName...
{ "created": null, "fork": null, "fork_count": 11, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27135187, "size": 980, "stargazer_count": 15, "stars": null, "updates": null, "url": "https://github.com/legsem/legstar-core2" }
27135187_3
{ "fields": [], "file": "legstar-base/src/test/java/com/legstar/base/type/primitive/FromHostPrimitiveResultTest.java", "identifier": "FromHostPrimitiveResultTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testMessageFormat1() {\n assertEquals(\n \"msg. Position is 0\",\n FromHostPrimitiveResult.formatMessage(\"msg\",\n HexUtils.decodeHex(\"\"), 0, 0, 0));\n }", "class_method_signature": "FromHostPrimitiveResultTest.testM...
{ "fields": [ { "declarator": "SPYBUF_MAX_LEN = 16", "modifier": "private static final", "original_string": "private static final int SPYBUF_MAX_LEN = 16;", "type": "int", "var_name": "SPYBUF_MAX_LEN" }, { "declarator": "value", "modifier": "private final", ...
{ "body": "protected static String formatMessage(String message, byte[] hostData,\n int start, int curPos, int bytesLen) {\n\n StringBuilder sb = new StringBuilder();\n sb.append(message);\n if (hostData != null && hostData.length > 0 && curPos < hostData.length\n && cur...
{ "created": null, "fork": null, "fork_count": 11, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27135187, "size": 980, "stargazer_count": 15, "stars": null, "updates": null, "url": "https://github.com/legsem/legstar-core2" }
27135187_18
{ "fields": [ { "declarator": "cobolContext", "modifier": "private", "original_string": "private CobolContext cobolContext;", "type": "CobolContext", "var_name": "cobolContext" } ], "file": "legstar-base/src/test/java/com/legstar/base/visitor/Cob2ObjectVisitorTest.java", "i...
{ "body": "@Test\n public void testConvertFlat02Invalid() {\n Cob2ObjectVisitor visitor;\n try {\n visitor = new Cob2ObjectVisitor(\n cobolContext,\n HexUtils.decodeHex(\"F0F0F0F0F6F2D5C1D4C5F0F0F0F0F6F2404040404040404040400310000F003E0F1F0014000F000C\...
{ "fields": [ { "declarator": "primitiveTypeHandler", "modifier": "private final", "original_string": "private final ObjectPrimitiveTypeHandler primitiveTypeHandler;", "type": "ObjectPrimitiveTypeHandler", "var_name": "primitiveTypeHandler" }, { "declarator": "choiceTyp...
{ "body": "public void visit(CobolComplexType type) {\n final Map < String, Object > map = new LinkedHashMap < String, Object >();\n super.visitComplexType(type, new ObjectComplexTypeChildHandler(map));\n resultObject = map;\n }", "class_method_signature": "Cob2ObjectVisitor.visit(CobolCompl...
{ "created": null, "fork": null, "fork_count": 11, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27135187, "size": 980, "stargazer_count": 15, "stars": null, "updates": null, "url": "https://github.com/legsem/legstar-core2" }
27135187_19
{ "fields": [ { "declarator": "cobolContext", "modifier": "private", "original_string": "private CobolContext cobolContext;", "type": "CobolContext", "var_name": "cobolContext" } ], "file": "legstar-base/src/test/java/com/legstar/base/visitor/Cob2ObjectVisitorTest.java", "i...
{ "body": "@Test\n public void testConvertStru01Invalid() {\n try {\n Cob2ObjectVisitor visitor = new Cob2ObjectVisitor(\n cobolContext,\n HexUtils.decodeHex(\"F0F0F0F0F6F2D5C1D4C5F0F0F0F0F6F2404040404040404040400310000F023EC1C2\"));\n visitor.visi...
{ "fields": [ { "declarator": "primitiveTypeHandler", "modifier": "private final", "original_string": "private final ObjectPrimitiveTypeHandler primitiveTypeHandler;", "type": "ObjectPrimitiveTypeHandler", "var_name": "primitiveTypeHandler" }, { "declarator": "choiceTyp...
{ "body": "public void visit(CobolComplexType type) {\n final Map < String, Object > map = new LinkedHashMap < String, Object >();\n super.visitComplexType(type, new ObjectComplexTypeChildHandler(map));\n resultObject = map;\n }", "class_method_signature": "Cob2ObjectVisitor.visit(CobolCompl...
{ "created": null, "fork": null, "fork_count": 11, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27135187, "size": 980, "stargazer_count": 15, "stars": null, "updates": null, "url": "https://github.com/legsem/legstar-core2" }
27135187_2
{ "fields": [ { "declarator": "cobolContext", "modifier": "private", "original_string": "private CobolContext cobolContext;", "type": "CobolContext", "var_name": "cobolContext" } ], "file": "legstar-base/src/test/java/com/legstar/base/type/primitive/CobolStringTypeTest.java",...
{ "body": "@Test\n public void testIsValidFalseCases() {\n assertFalse(isValid(1, \"01\"));\n assertFalse(isValid(1, \"39\"));\n assertFalse(isValid(2, \"4001\"));\n assertFalse(isValid(2, \"4039\"));\n\n }", "class_method_signature": "CobolStringTypeTest.testIsValidFalseCases()", ...
{ "fields": [ { "declarator": "MAXIMUM_PICX_CHARNUM = 16777215", "modifier": "private static final", "original_string": "private static final int MAXIMUM_PICX_CHARNUM = 16777215;", "type": "int", "var_name": "MAXIMUM_PICX_CHARNUM" }, { "declarator": "charNum", "mo...
{ "body": "public boolean isValid(Class < T > javaClass, CobolContext cobolContext,\n byte[] hostData, int start) {\n\n int hostBytesLen = getBytesLen(charNum);\n\n // Is buffer large enough to contain this type?\n // TODO last field in a record might be truncated if all low-values or\...
{ "created": null, "fork": null, "fork_count": 11, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27135187, "size": 980, "stargazer_count": 15, "stars": null, "updates": null, "url": "https://github.com/legsem/legstar-core2" }
27135187_23
{ "fields": [ { "declarator": "LEGSTAR_XSD_FILE_ENCODING = \"UTF-8\"", "modifier": "private static final", "original_string": "private static final String LEGSTAR_XSD_FILE_ENCODING = \"UTF-8\";", "type": "String", "var_name": "LEGSTAR_XSD_FILE_ENCODING" }, { "declarator...
{ "body": "@Test\n public void testStru01Build() throws Exception {\n check(build(\"stru01\"), \"stru01.map\");\n }", "class_method_signature": "Xsd2CobolTypesModelBuilderTest.testStru01Build()", "constructor": false, "full_signature": "@Test public void testStru01Build()", "identifier": "testStr...
{ "fields": [ { "declarator": "COBOL_NAME_PROP_NAME = \"cobolName\"", "modifier": "private static final", "original_string": "private static final String COBOL_NAME_PROP_NAME = \"cobolName\";", "type": "String", "var_name": "COBOL_NAME_PROP_NAME" }, { "declarator": "FRA...
{ "body": "public Map < String, RootCompositeType > build(XmlSchema xmlSchema)\n throws Xsd2ConverterException {\n\n log.debug(\"visit XML Schema started\");\n Map < String, RootCompositeType > rootComplexTypes = new LinkedHashMap < String, RootCompositeType >();\n\n for (Entry < QName...
{ "created": null, "fork": null, "fork_count": 11, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27135187, "size": 980, "stargazer_count": 15, "stars": null, "updates": null, "url": "https://github.com/legsem/legstar-core2" }
27135187_35
{ "fields": [], "file": "legstar-cob2xsd/src/test/java/com/legstar/cobol/utils/PictureUtilTest.java", "identifier": "PictureUtilTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testCalcLengthFromPicture() {\n assertEquals(0, getLengthFromPicture(\"\", false));\n assertEquals(1, getLengthFromPicture(\"A\", false));\n assertEquals(2, getLengthFromPicture(\"AB\", false));\n assertEquals(3, getLengthFromPicture(\"ABE\", false));\n ...
{ "fields": [], "file": "legstar-cob2xsd/src/main/java/com/legstar/cobol/utils/PictureUtil.java", "identifier": "PictureUtil", "interfaces": "", "methods": [ { "class_method_signature": "PictureUtil.PictureUtil()", "constructor": true, "full_signature": "private PictureUtil()", "i...
{ "body": "public static int calcLengthFromPicture(\n final Map < Character, Integer > charNum,\n final boolean isSignSeparate, final String currencySign,\n final char currencySymbol, final boolean calcStorageLength) {\n\n int length = 0;\n\n /* character position occupi...
{ "created": null, "fork": null, "fork_count": 11, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27135187, "size": 980, "stargazer_count": 15, "stars": null, "updates": null, "url": "https://github.com/legsem/legstar-core2" }
27135187_42
{ "fields": [ { "declarator": "_errorHandler = new RecognizerErrorHandler()", "modifier": "private", "original_string": "private RecognizerErrorHandler _errorHandler = new RecognizerErrorHandler();", "type": "RecognizerErrorHandler", "var_name": "_errorHandler" } ], "file": "...
{ "body": "@Test\n public void testSetNumericAttributes() {\n CobolDataItem dataItem = new CobolDataItem();\n\n dataItem.setPicture(\"99V9\");\n dataItem.setUsage(Usage.DISPLAY);\n XsdDataItem mapper = new XsdDataItem(dataItem, defaultConfig, null, 0,\n new ArrayList < St...
{ "fields": [ { "declarator": "_cobolDataItem", "modifier": "private", "original_string": "private CobolDataItem _cobolDataItem;", "type": "CobolDataItem", "var_name": "_cobolDataItem" }, { "declarator": "_parent", "modifier": "private", "original_string": "...
{ "body": "private void setNumericAttributes(final String picture,\n final char currencyChar, final boolean decimalPointIsComma) {\n\n setDigitsAndSign(picture, currencyChar, decimalPointIsComma);\n\n if (_fractionDigits == 0) {\n if (_totalDigits < 5) {\n _xsdType =...
{ "created": null, "fork": null, "fork_count": 11, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27135187, "size": 980, "stargazer_count": 15, "stars": null, "updates": null, "url": "https://github.com/legsem/legstar-core2" }
27135187_15
{ "fields": [ { "declarator": "cobolContext", "modifier": "private", "original_string": "private CobolContext cobolContext;", "type": "CobolContext", "var_name": "cobolContext" } ], "file": "legstar-base/src/test/java/com/legstar/base/visitor/DefaultFromCobolChoiceStrategyTes...
{ "body": "@Test\n public void testSelectSecondAlternative() {\n DefaultFromCobolChoiceStrategy strategy = new DefaultFromCobolChoiceStrategy(cobolContext);\n CobolChoiceType choice = (CobolChoiceType) new CobolRdef01Record().getFields().get(\"comDetail1Choice\");\n byte[] hostData = HexUtils....
{ "fields": [ { "declarator": "cobolContext", "modifier": "private final", "original_string": "private final CobolContext cobolContext;", "type": "CobolContext", "var_name": "cobolContext" } ], "file": "legstar-base/src/main/java/com/legstar/base/visitor/DefaultFromCobolChoic...
{ "body": "public CobolType choose(String choiceFieldName,\n CobolChoiceType cobolChoiceType, Map < String, Object > variables,\n byte[] hostData, int start, int length) {\n\n for (Entry < String, CobolType > alternative : cobolChoiceType\n .getAlternatives().entrySet()) {\...
{ "created": null, "fork": null, "fork_count": 11, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27135187, "size": 980, "stargazer_count": 15, "stars": null, "updates": null, "url": "https://github.com/legsem/legstar-core2" }
27135187_39
{ "fields": [ { "declarator": "tempFolder = new File(\n System.getProperty(\"java.io.tmpdir\"))", "modifier": "private static final", "original_string": "private static final File tempFolder = new File(\n System.getProperty(\"java.io.tmpdir\"));", "type": "File", ...
{ "body": "@Test\n public void testConfigurationArgument() {\n Cob2XsdMain main = new Cob2XsdMain();\n try {\n main.execute(new String[] { \"-c\",\n \"src/main/resources/cob2xsd.properties\", \"-i\",\n COBOL_SAMPLES_DIR + \"/LSFILEAE\", \"-o\",\n ...
{ "fields": [ { "declarator": "VERSION_FILE_NAME = \"/com/legstar/cob2xsd/version.properties\"", "modifier": "private static final", "original_string": "private static final String VERSION_FILE_NAME = \"/com/legstar/cob2xsd/version.properties\";", "type": "String", "var_name": "VERSI...
{ "body": "public void execute(final String[] args) {\n try {\n Options options = createOptions();\n if (collectOptions(options, args)) {\n setDefaults();\n loadConfig();\n execute(getInput(), getInputEncoding(), getOutput(),\n ...
{ "created": null, "fork": null, "fork_count": 11, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27135187, "size": 980, "stargazer_count": 15, "stars": null, "updates": null, "url": "https://github.com/legsem/legstar-core2" }
27135187_32
{ "fields": [ { "declarator": "LEGSTAR_XSD_FILE_ENCODING = \"UTF-8\"", "modifier": "private static final", "original_string": "private static final String LEGSTAR_XSD_FILE_ENCODING = \"UTF-8\";", "type": "String", "var_name": "LEGSTAR_XSD_FILE_ENCODING" }, { "declarator...
{ "body": "@Test\n public void testCflt01Build() throws Exception {\n check(build(\"cflt01\"), \"cflt01.map\");\n }", "class_method_signature": "Xsd2CobolTypesModelBuilderTest.testCflt01Build()", "constructor": false, "full_signature": "@Test public void testCflt01Build()", "identifier": "testCfl...
{ "fields": [ { "declarator": "COBOL_NAME_PROP_NAME = \"cobolName\"", "modifier": "private static final", "original_string": "private static final String COBOL_NAME_PROP_NAME = \"cobolName\";", "type": "String", "var_name": "COBOL_NAME_PROP_NAME" }, { "declarator": "FRA...
{ "body": "public Map < String, RootCompositeType > build(XmlSchema xmlSchema)\n throws Xsd2ConverterException {\n\n log.debug(\"visit XML Schema started\");\n Map < String, RootCompositeType > rootComplexTypes = new LinkedHashMap < String, RootCompositeType >();\n\n for (Entry < QName...
{ "created": null, "fork": null, "fork_count": 11, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27135187, "size": 980, "stargazer_count": 15, "stars": null, "updates": null, "url": "https://github.com/legsem/legstar-core2" }
27135187_24
{ "fields": [ { "declarator": "LEGSTAR_XSD_FILE_ENCODING = \"UTF-8\"", "modifier": "private static final", "original_string": "private static final String LEGSTAR_XSD_FILE_ENCODING = \"UTF-8\";", "type": "String", "var_name": "LEGSTAR_XSD_FILE_ENCODING" }, { "declarator...
{ "body": "@Test\n public void testStru03Build() throws Exception {\n check(build(\"stru03\"), \"stru03.map\");\n }", "class_method_signature": "Xsd2CobolTypesModelBuilderTest.testStru03Build()", "constructor": false, "full_signature": "@Test public void testStru03Build()", "identifier": "testStr...
{ "fields": [ { "declarator": "COBOL_NAME_PROP_NAME = \"cobolName\"", "modifier": "private static final", "original_string": "private static final String COBOL_NAME_PROP_NAME = \"cobolName\";", "type": "String", "var_name": "COBOL_NAME_PROP_NAME" }, { "declarator": "FRA...
{ "body": "public Map < String, RootCompositeType > build(XmlSchema xmlSchema)\n throws Xsd2ConverterException {\n\n log.debug(\"visit XML Schema started\");\n Map < String, RootCompositeType > rootComplexTypes = new LinkedHashMap < String, RootCompositeType >();\n\n for (Entry < QName...
{ "created": null, "fork": null, "fork_count": 11, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27135187, "size": 980, "stargazer_count": 15, "stars": null, "updates": null, "url": "https://github.com/legsem/legstar-core2" }
27135187_5
{ "fields": [], "file": "legstar-base/src/test/java/com/legstar/base/type/primitive/FromHostPrimitiveResultTest.java", "identifier": "FromHostPrimitiveResultTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testMessageFormat3() {\n assertEquals(\n \"msg. Error at offset 1 : [0xC0->C1C2]\",\n FromHostPrimitiveResult.formatMessage(\"msg\",\n HexUtils.decodeHex(\"C0C1C2\"), 1, 1, 2));\n }", "class_method_signature": "FromHost...
{ "fields": [ { "declarator": "SPYBUF_MAX_LEN = 16", "modifier": "private static final", "original_string": "private static final int SPYBUF_MAX_LEN = 16;", "type": "int", "var_name": "SPYBUF_MAX_LEN" }, { "declarator": "value", "modifier": "private final", ...
{ "body": "protected static String formatMessage(String message, byte[] hostData,\n int start, int curPos, int bytesLen) {\n\n StringBuilder sb = new StringBuilder();\n sb.append(message);\n if (hostData != null && hostData.length > 0 && curPos < hostData.length\n && cur...
{ "created": null, "fork": null, "fork_count": 11, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27135187, "size": 980, "stargazer_count": 15, "stars": null, "updates": null, "url": "https://github.com/legsem/legstar-core2" }
27135187_49
{ "fields": [ { "declarator": "_log = LoggerFactory\n .getLogger(Cob2XsdIOTest.class)", "modifier": "private static final", "original_string": "private static final Logger _log = LoggerFactory\n .getLogger(Cob2XsdIOTest.class);", "type": "Logger", "var_name": "_...
{ "body": "@Test\n public void testOutputFileValidation() {\n try {\n Cob2XsdIO cob2xsd = new Cob2XsdIO(defaultConfig);\n cob2xsd.checkTarget(null);\n fail();\n } catch (Exception e) {\n assertEquals(\n \"java.io.IOException: You must pro...
{ "fields": [ { "declarator": "_log = LoggerFactory.getLogger(Cob2XsdIO.class)", "modifier": "private static final", "original_string": "private static final Logger _log = LoggerFactory.getLogger(Cob2XsdIO.class);", "type": "Logger", "var_name": "_log" } ], "file": "legstar-c...
{ "body": "protected void checkTarget(final File target) throws IOException {\n if (target == null) {\n throw new IOException(\"You must provide a target directory or file\");\n }\n if (!target.exists()) {\n String extension = FilenameUtils.getExtension(target.getName());\n ...
{ "created": null, "fork": null, "fork_count": 11, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27135187, "size": 980, "stargazer_count": 15, "stars": null, "updates": null, "url": "https://github.com/legsem/legstar-core2" }
27135187_28
{ "fields": [ { "declarator": "LEGSTAR_XSD_FILE_ENCODING = \"UTF-8\"", "modifier": "private static final", "original_string": "private static final String LEGSTAR_XSD_FILE_ENCODING = \"UTF-8\";", "type": "String", "var_name": "LEGSTAR_XSD_FILE_ENCODING" }, { "declarator...
{ "body": "@Test\n public void testRdef03Build() throws Exception {\n check(build(\"rdef03\"), \"rdef03.map\");\n }", "class_method_signature": "Xsd2CobolTypesModelBuilderTest.testRdef03Build()", "constructor": false, "full_signature": "@Test public void testRdef03Build()", "identifier": "testRde...
{ "fields": [ { "declarator": "COBOL_NAME_PROP_NAME = \"cobolName\"", "modifier": "private static final", "original_string": "private static final String COBOL_NAME_PROP_NAME = \"cobolName\";", "type": "String", "var_name": "COBOL_NAME_PROP_NAME" }, { "declarator": "FRA...
{ "body": "public Map < String, RootCompositeType > build(XmlSchema xmlSchema)\n throws Xsd2ConverterException {\n\n log.debug(\"visit XML Schema started\");\n Map < String, RootCompositeType > rootComplexTypes = new LinkedHashMap < String, RootCompositeType >();\n\n for (Entry < QName...
{ "created": null, "fork": null, "fork_count": 11, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27135187, "size": 980, "stargazer_count": 15, "stars": null, "updates": null, "url": "https://github.com/legsem/legstar-core2" }
27135187_9
{ "fields": [], "file": "legstar-base/src/test/java/com/legstar/base/type/primitive/FromHostPrimitiveResultTest.java", "identifier": "FromHostPrimitiveResultTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testMessageFormat7() {\n assertEquals(\n \"msg. Error at offset 0 : [0xC1C2<-F1F2F3F4F5F6F7F8F1F2F3F4F5F6F7F8]\",\n FromHostPrimitiveResult.formatMessage(\"msg\",\n HexUtils.decodeHex(\"C1C2F1F2F3F4F5F6F7F8F1F2F3F4F5F6F7F8\"...
{ "fields": [ { "declarator": "SPYBUF_MAX_LEN = 16", "modifier": "private static final", "original_string": "private static final int SPYBUF_MAX_LEN = 16;", "type": "int", "var_name": "SPYBUF_MAX_LEN" }, { "declarator": "value", "modifier": "private final", ...
{ "body": "protected static String formatMessage(String message, byte[] hostData,\n int start, int curPos, int bytesLen) {\n\n StringBuilder sb = new StringBuilder();\n sb.append(message);\n if (hostData != null && hostData.length > 0 && curPos < hostData.length\n && cur...
{ "created": null, "fork": null, "fork_count": 11, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27135187, "size": 980, "stargazer_count": 15, "stars": null, "updates": null, "url": "https://github.com/legsem/legstar-core2" }
27135187_12
{ "fields": [], "file": "legstar-base/src/test/java/com/legstar/base/converter/Cob2HashMapConverterTest.java", "identifier": "Cob2HashMapConverterTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testConvertFlat01() {\n Cob2HashMapConverter converter = new Cob2HashMapConverter.Builder()\n .cobolComplexType(new com.legstar.base.type.gen.CobolFlat01Record())\n .build();\n FromHostResult < Map <String, Object> > result = converter.conv...
{ "fields": [], "file": "legstar-base/src/main/java/com/legstar/base/converter/Cob2HashMapConverter.java", "identifier": "Cob2HashMapConverter", "interfaces": "", "methods": [ { "class_method_signature": "Cob2HashMapConverter.convert(byte[] hostData,\n int start, int length)", "cons...
{ "body": "@SuppressWarnings(\"unchecked\")\n public FromHostResult < Map < String, Object > > convert(byte[] hostData,\n int start, int length) {\n Cob2ObjectVisitor visitor = new Cob2ObjectVisitor(getCobolContext(),\n hostData, start, length, getCustomChoiceStrategy(),\n ...
{ "created": null, "fork": null, "fork_count": 11, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27135187, "size": 980, "stargazer_count": 15, "stars": null, "updates": null, "url": "https://github.com/legsem/legstar-core2" }
27135187_45
{ "fields": [ { "declarator": "_errorHandler = new RecognizerErrorHandler()", "modifier": "private", "original_string": "private RecognizerErrorHandler _errorHandler = new RecognizerErrorHandler();", "type": "RecognizerErrorHandler", "var_name": "_errorHandler" } ], "file": "...
{ "body": "@Test\n public void testCondition() {\n CobolDataItem dataItem = new CobolDataItem(\"COBOL-CONDITION\");\n dataItem.setLevelNumber(88);\n\n XsdDataItem xsdDataItem = new XsdDataItem(dataItem, defaultConfig,\n null, 0, new ArrayList < String >(), _errorHandler);\n ...
{ "fields": [ { "declarator": "_cobolDataItem", "modifier": "private", "original_string": "private CobolDataItem _cobolDataItem;", "type": "CobolDataItem", "var_name": "_cobolDataItem" }, { "declarator": "_parent", "modifier": "private", "original_string": "...
{ "body": "public XsdType getXsdType() {\n return _xsdType;\n }", "class_method_signature": "XsdDataItem.getXsdType()", "constructor": false, "full_signature": "public XsdType getXsdType()", "identifier": "getXsdType", "invocations": [], "modifiers": "public", "parameters": "()", "return": "...
{ "created": null, "fork": null, "fork_count": 11, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27135187, "size": 980, "stargazer_count": 15, "stars": null, "updates": null, "url": "https://github.com/legsem/legstar-core2" }
27135187_44
{ "fields": [ { "declarator": "_errorHandler = new RecognizerErrorHandler()", "modifier": "private", "original_string": "private RecognizerErrorHandler _errorHandler = new RecognizerErrorHandler();", "type": "RecognizerErrorHandler", "var_name": "_errorHandler" } ], "file": "...
{ "body": "@Test\n public void testRenames() {\n CobolDataItem dataItem = new CobolDataItem(\"COBOL-RENAME\");\n dataItem.setLevelNumber(66);\n\n XsdDataItem xsdDataItem = new XsdDataItem(dataItem, defaultConfig,\n null, 0, new ArrayList < String >(), _errorHandler);\n as...
{ "fields": [ { "declarator": "_cobolDataItem", "modifier": "private", "original_string": "private CobolDataItem _cobolDataItem;", "type": "CobolDataItem", "var_name": "_cobolDataItem" }, { "declarator": "_parent", "modifier": "private", "original_string": "...
{ "body": "public XsdType getXsdType() {\n return _xsdType;\n }", "class_method_signature": "XsdDataItem.getXsdType()", "constructor": false, "full_signature": "public XsdType getXsdType()", "identifier": "getXsdType", "invocations": [], "modifiers": "public", "parameters": "()", "return": "...
{ "created": null, "fork": null, "fork_count": 11, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27135187, "size": 980, "stargazer_count": 15, "stars": null, "updates": null, "url": "https://github.com/legsem/legstar-core2" }
27135187_13
{ "fields": [], "file": "legstar-base/src/test/java/com/legstar/base/converter/Cob2HashMapConverterTest.java", "identifier": "Cob2HashMapConverterTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testConvertRdef01Strategy() {\n \n FromCobolChoiceStrategy customChoiceStrategy = new FromCobolChoiceStrategy() {\n\n public CobolType choose(String choiceFieldName,\n CobolChoiceType choiceType,\n Map < String, Object > variabl...
{ "fields": [], "file": "legstar-base/src/main/java/com/legstar/base/converter/Cob2HashMapConverter.java", "identifier": "Cob2HashMapConverter", "interfaces": "", "methods": [ { "class_method_signature": "Cob2HashMapConverter.convert(byte[] hostData,\n int start, int length)", "cons...
{ "body": "@SuppressWarnings(\"unchecked\")\n public FromHostResult < Map < String, Object > > convert(byte[] hostData,\n int start, int length) {\n Cob2ObjectVisitor visitor = new Cob2ObjectVisitor(getCobolContext(),\n hostData, start, length, getCustomChoiceStrategy(),\n ...
{ "created": null, "fork": null, "fork_count": 11, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27135187, "size": 980, "stargazer_count": 15, "stars": null, "updates": null, "url": "https://github.com/legsem/legstar-core2" }
27135187_8
{ "fields": [], "file": "legstar-base/src/test/java/com/legstar/base/type/primitive/FromHostPrimitiveResultTest.java", "identifier": "FromHostPrimitiveResultTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testMessageFormat6() {\n assertEquals(\n \"msg. Error at offset 17 : [0xF1F2F3F4F5F6F7F8F1F2F3F4F5F6F7F8->C1C2<-C3]\",\n FromHostPrimitiveResult.formatMessage(\"msg\",\n HexUtils.decodeHex(\"F0F1F2F3F4F5F6F7F8F1F2F3F4F5F6F7F...
{ "fields": [ { "declarator": "SPYBUF_MAX_LEN = 16", "modifier": "private static final", "original_string": "private static final int SPYBUF_MAX_LEN = 16;", "type": "int", "var_name": "SPYBUF_MAX_LEN" }, { "declarator": "value", "modifier": "private final", ...
{ "body": "protected static String formatMessage(String message, byte[] hostData,\n int start, int curPos, int bytesLen) {\n\n StringBuilder sb = new StringBuilder();\n sb.append(message);\n if (hostData != null && hostData.length > 0 && curPos < hostData.length\n && cur...
{ "created": null, "fork": null, "fork_count": 11, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27135187, "size": 980, "stargazer_count": 15, "stars": null, "updates": null, "url": "https://github.com/legsem/legstar-core2" }
27135187_29
{ "fields": [ { "declarator": "LEGSTAR_XSD_FILE_ENCODING = \"UTF-8\"", "modifier": "private static final", "original_string": "private static final String LEGSTAR_XSD_FILE_ENCODING = \"UTF-8\";", "type": "String", "var_name": "LEGSTAR_XSD_FILE_ENCODING" }, { "declarator...
{ "body": "@Test\n public void testCustdatBuild() throws Exception {\n check(build(\"custdat\"), \"custdat.map\");\n }", "class_method_signature": "Xsd2CobolTypesModelBuilderTest.testCustdatBuild()", "constructor": false, "full_signature": "@Test public void testCustdatBuild()", "identifier": "te...
{ "fields": [ { "declarator": "COBOL_NAME_PROP_NAME = \"cobolName\"", "modifier": "private static final", "original_string": "private static final String COBOL_NAME_PROP_NAME = \"cobolName\";", "type": "String", "var_name": "COBOL_NAME_PROP_NAME" }, { "declarator": "FRA...
{ "body": "public Map < String, RootCompositeType > build(XmlSchema xmlSchema)\n throws Xsd2ConverterException {\n\n log.debug(\"visit XML Schema started\");\n Map < String, RootCompositeType > rootComplexTypes = new LinkedHashMap < String, RootCompositeType >();\n\n for (Entry < QName...
{ "created": null, "fork": null, "fork_count": 11, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27135187, "size": 980, "stargazer_count": 15, "stars": null, "updates": null, "url": "https://github.com/legsem/legstar-core2" }
27135187_48
{ "fields": [ { "declarator": "_log = LoggerFactory\n .getLogger(Cob2XsdIOTest.class)", "modifier": "private static final", "original_string": "private static final Logger _log = LoggerFactory\n .getLogger(Cob2XsdIOTest.class);", "type": "Logger", "var_name": "_...
{ "body": "@Test\n public void testInputFileValidation() {\n try {\n Cob2XsdIO cob2xsd = new Cob2XsdIO(defaultConfig);\n cob2xsd.checkCobolSourceFile(null);\n fail();\n } catch (Exception e) {\n assertEquals(\n \"java.io.IOException: You ...
{ "fields": [ { "declarator": "_log = LoggerFactory.getLogger(Cob2XsdIO.class)", "modifier": "private static final", "original_string": "private static final Logger _log = LoggerFactory.getLogger(Cob2XsdIO.class);", "type": "Logger", "var_name": "_log" } ], "file": "legstar-c...
{ "body": "protected void checkCobolSourceFile(final File cobolSourceFile)\n throws IOException {\n if (cobolSourceFile == null) {\n throw new IOException(\"You must provide a COBOL source file\");\n }\n if (!cobolSourceFile.exists()) {\n throw new IOException(\"C...
{ "created": null, "fork": null, "fork_count": 11, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27135187, "size": 980, "stargazer_count": 15, "stars": null, "updates": null, "url": "https://github.com/legsem/legstar-core2" }
27135187_4
{ "fields": [], "file": "legstar-base/src/test/java/com/legstar/base/type/primitive/FromHostPrimitiveResultTest.java", "identifier": "FromHostPrimitiveResultTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testMessageFormat2() {\n assertEquals(\n \"msg. Error at offset 1 : [0xC1^C2]\",\n FromHostPrimitiveResult.formatMessage(\"msg\",\n HexUtils.decodeHex(\"C1C2\"), 0, 1, 2));\n }", "class_method_signature": "FromHostPrimi...
{ "fields": [ { "declarator": "SPYBUF_MAX_LEN = 16", "modifier": "private static final", "original_string": "private static final int SPYBUF_MAX_LEN = 16;", "type": "int", "var_name": "SPYBUF_MAX_LEN" }, { "declarator": "value", "modifier": "private final", ...
{ "body": "protected static String formatMessage(String message, byte[] hostData,\n int start, int curPos, int bytesLen) {\n\n StringBuilder sb = new StringBuilder();\n sb.append(message);\n if (hostData != null && hostData.length > 0 && curPos < hostData.length\n && cur...
{ "created": null, "fork": null, "fork_count": 11, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27135187, "size": 980, "stargazer_count": 15, "stars": null, "updates": null, "url": "https://github.com/legsem/legstar-core2" }
27135187_25
{ "fields": [ { "declarator": "LEGSTAR_XSD_FILE_ENCODING = \"UTF-8\"", "modifier": "private static final", "original_string": "private static final String LEGSTAR_XSD_FILE_ENCODING = \"UTF-8\";", "type": "String", "var_name": "LEGSTAR_XSD_FILE_ENCODING" }, { "declarator...
{ "body": "@Test\n public void testArdo01Build() throws Exception {\n check(build(\"ardo01\"), \"ardo01.map\");\n }", "class_method_signature": "Xsd2CobolTypesModelBuilderTest.testArdo01Build()", "constructor": false, "full_signature": "@Test public void testArdo01Build()", "identifier": "testArd...
{ "fields": [ { "declarator": "COBOL_NAME_PROP_NAME = \"cobolName\"", "modifier": "private static final", "original_string": "private static final String COBOL_NAME_PROP_NAME = \"cobolName\";", "type": "String", "var_name": "COBOL_NAME_PROP_NAME" }, { "declarator": "FRA...
{ "body": "public Map < String, RootCompositeType > build(XmlSchema xmlSchema)\n throws Xsd2ConverterException {\n\n log.debug(\"visit XML Schema started\");\n Map < String, RootCompositeType > rootComplexTypes = new LinkedHashMap < String, RootCompositeType >();\n\n for (Entry < QName...
{ "created": null, "fork": null, "fork_count": 11, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27135187, "size": 980, "stargazer_count": 15, "stars": null, "updates": null, "url": "https://github.com/legsem/legstar-core2" }
27135187_33
{ "fields": [ { "declarator": "CREATE_REFERENCE = false", "modifier": "private static final", "original_string": "private static final boolean CREATE_REFERENCE = false;", "type": "boolean", "var_name": "CREATE_REFERENCE" }, { "declarator": "LEGSTAR_COBOL_FILE_ENCODING =...
{ "body": "@Test\n public void testFlat01Generate() throws Exception {\n generate(\"FLAT01\");\n check(\"Flat01Record\");\n }", "class_method_signature": "Cob2JaxbGeneratorTest.testFlat01Generate()", "constructor": false, "full_signature": "@Test public void testFlat01Generate()", "identif...
{ "fields": [ { "declarator": "log = LoggerFactory\n .getLogger(Cob2JaxbGenerator.class)", "modifier": "private static", "original_string": "private static Logger log = LoggerFactory\n .getLogger(Cob2JaxbGenerator.class);", "type": "Logger", "var_name": "log" ...
{ "body": "public void generate(File cobolFile, String cobolFileEncoding, File targetFolder,\n String targetPackageName,\n final String xsltFileName) {\n try {\n Reader reader = cobolFileEncoding == null ? new InputStreamReader(\n new FileInputStream(cobolFil...
{ "created": null, "fork": null, "fork_count": 11, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27135187, "size": 980, "stargazer_count": 15, "stars": null, "updates": null, "url": "https://github.com/legsem/legstar-core2" }
27135187_7
{ "fields": [], "file": "legstar-base/src/test/java/com/legstar/base/type/primitive/FromHostPrimitiveResultTest.java", "identifier": "FromHostPrimitiveResultTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testMessageFormat5() {\n assertEquals(\n \"msg. Error at offset 16 : [0xF1F2F3F4F5F6F7F8F1F2F3F4F5F6F7F8->C1C2<-C3]\",\n FromHostPrimitiveResult.formatMessage(\"msg\",\n HexUtils.decodeHex(\"F1F2F3F4F5F6F7F8F1F2F3F4F5F6F7F8C...
{ "fields": [ { "declarator": "SPYBUF_MAX_LEN = 16", "modifier": "private static final", "original_string": "private static final int SPYBUF_MAX_LEN = 16;", "type": "int", "var_name": "SPYBUF_MAX_LEN" }, { "declarator": "value", "modifier": "private final", ...
{ "body": "protected static String formatMessage(String message, byte[] hostData,\n int start, int curPos, int bytesLen) {\n\n StringBuilder sb = new StringBuilder();\n sb.append(message);\n if (hostData != null && hostData.length > 0 && curPos < hostData.length\n && cur...
{ "created": null, "fork": null, "fork_count": 11, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27135187, "size": 980, "stargazer_count": 15, "stars": null, "updates": null, "url": "https://github.com/legsem/legstar-core2" }
27135187_26
{ "fields": [ { "declarator": "LEGSTAR_XSD_FILE_ENCODING = \"UTF-8\"", "modifier": "private static final", "original_string": "private static final String LEGSTAR_XSD_FILE_ENCODING = \"UTF-8\";", "type": "String", "var_name": "LEGSTAR_XSD_FILE_ENCODING" }, { "declarator...
{ "body": "@Test\n public void testRdef01Build() throws Exception {\n check(build(\"rdef01\"), \"rdef01.map\");\n }", "class_method_signature": "Xsd2CobolTypesModelBuilderTest.testRdef01Build()", "constructor": false, "full_signature": "@Test public void testRdef01Build()", "identifier": "testRde...
{ "fields": [ { "declarator": "COBOL_NAME_PROP_NAME = \"cobolName\"", "modifier": "private static final", "original_string": "private static final String COBOL_NAME_PROP_NAME = \"cobolName\";", "type": "String", "var_name": "COBOL_NAME_PROP_NAME" }, { "declarator": "FRA...
{ "body": "public Map < String, RootCompositeType > build(XmlSchema xmlSchema)\n throws Xsd2ConverterException {\n\n log.debug(\"visit XML Schema started\");\n Map < String, RootCompositeType > rootComplexTypes = new LinkedHashMap < String, RootCompositeType >();\n\n for (Entry < QName...
{ "created": null, "fork": null, "fork_count": 11, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27135187, "size": 980, "stargazer_count": 15, "stars": null, "updates": null, "url": "https://github.com/legsem/legstar-core2" }
27135187_30
{ "fields": [ { "declarator": "LEGSTAR_XSD_FILE_ENCODING = \"UTF-8\"", "modifier": "private static final", "original_string": "private static final String LEGSTAR_XSD_FILE_ENCODING = \"UTF-8\";", "type": "String", "var_name": "LEGSTAR_XSD_FILE_ENCODING" }, { "declarator...
{ "body": "@Test\n public void testAlltypeBuild() throws Exception {\n check(build(\"alltypes\"), \"alltypes.map\");\n }", "class_method_signature": "Xsd2CobolTypesModelBuilderTest.testAlltypeBuild()", "constructor": false, "full_signature": "@Test public void testAlltypeBuild()", "identifier": "...
{ "fields": [ { "declarator": "COBOL_NAME_PROP_NAME = \"cobolName\"", "modifier": "private static final", "original_string": "private static final String COBOL_NAME_PROP_NAME = \"cobolName\";", "type": "String", "var_name": "COBOL_NAME_PROP_NAME" }, { "declarator": "FRA...
{ "body": "public Map < String, RootCompositeType > build(XmlSchema xmlSchema)\n throws Xsd2ConverterException {\n\n log.debug(\"visit XML Schema started\");\n Map < String, RootCompositeType > rootComplexTypes = new LinkedHashMap < String, RootCompositeType >();\n\n for (Entry < QName...
{ "created": null, "fork": null, "fork_count": 11, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27135187, "size": 980, "stargazer_count": 15, "stars": null, "updates": null, "url": "https://github.com/legsem/legstar-core2" }
27135187_47
{ "fields": [ { "declarator": "_log = LoggerFactory\n .getLogger(Cob2XsdIOTest.class)", "modifier": "private static final", "original_string": "private static final Logger _log = LoggerFactory\n .getLogger(Cob2XsdIOTest.class);", "type": "Logger", "var_name": "_...
{ "body": "@Test\n public void testFileOutputEncoding() {\n try {\n configProps.put(Cob2XsdConfig.XSD_ENCODING, \"UTF-8\");\n configProps.put(Cob2XsdConfig.ADD_LEGSTAR_ANNOTATIONS,\n Boolean.toString(true));\n\n Cob2XsdIO cob2xsd = new Cob2XsdIO(new Cob2Xs...
{ "fields": [ { "declarator": "_log = LoggerFactory.getLogger(Cob2XsdIO.class)", "modifier": "private static final", "original_string": "private static final Logger _log = LoggerFactory.getLogger(Cob2XsdIO.class);", "type": "Logger", "var_name": "_log" } ], "file": "legstar-c...
{ "body": "public File translate(final File cobolFile, final String cobolFileEncoding,\n final File target, final String targetNamespacePrefix,\n final String xsltFileName) throws RecognizerException,\n XsdGenerationException {\n\n try {\n if (_log.isDebugEnabled()) ...
{ "created": null, "fork": null, "fork_count": 11, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27135187, "size": 980, "stargazer_count": 15, "stars": null, "updates": null, "url": "https://github.com/legsem/legstar-core2" }
27135187_10
{ "fields": [], "file": "legstar-base/src/test/java/com/legstar/base/type/primitive/FromHostPrimitiveResultTest.java", "identifier": "FromHostPrimitiveResultTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testMessageFormat8() {\n assertEquals(\n \"msg. Error at offset 0 : [0xC1C2<-F1F2F3F4F5F6F7F8F1F2F3F4F5F6F7F8]\",\n FromHostPrimitiveResult.formatMessage(\"msg\",\n HexUtils.decodeHex(\"C1C2F1F2F3F4F5F6F7F8F1F2F3F4F5F6F7F8F9...
{ "fields": [ { "declarator": "SPYBUF_MAX_LEN = 16", "modifier": "private static final", "original_string": "private static final int SPYBUF_MAX_LEN = 16;", "type": "int", "var_name": "SPYBUF_MAX_LEN" }, { "declarator": "value", "modifier": "private final", ...
{ "body": "protected static String formatMessage(String message, byte[] hostData,\n int start, int curPos, int bytesLen) {\n\n StringBuilder sb = new StringBuilder();\n sb.append(message);\n if (hostData != null && hostData.length > 0 && curPos < hostData.length\n && cur...
{ "created": null, "fork": null, "fork_count": 11, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27135187, "size": 980, "stargazer_count": 15, "stars": null, "updates": null, "url": "https://github.com/legsem/legstar-core2" }
27135187_11
{ "fields": [], "file": "legstar-base/src/test/java/com/legstar/base/utils/NamespaceUtilsTest.java", "identifier": "NamespaceUtilsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testPackageToNamespace() {\n assertNull(NamespaceUtils.toNamespace(null));\n assertNull(NamespaceUtils.toNamespace(\"\"));\n assertEquals(\"http://toto\", NamespaceUtils.toNamespace(\"toto\"));\n assertEquals(\"http://toto/tata\", NamespaceUtils.toNamespac...
{ "fields": [ { "declarator": "keywords", "modifier": "private final static", "original_string": "private final static Set < String > keywords;", "type": "Set < String >", "var_name": "keywords" } ], "file": "legstar-base/src/main/java/com/legstar/base/utils/NamespaceUtils.ja...
{ "body": "public static String toNamespace(String packageName) {\n\n if (packageName == null || packageName.length() == 0) {\n return null;\n }\n List < String > tokens = reverse(tokenize(packageName, \".\"));\n \n StringBuilder buf = new StringBuilder(\"http://\");\n ...
{ "created": null, "fork": null, "fork_count": 11, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27135187, "size": 980, "stargazer_count": 15, "stars": null, "updates": null, "url": "https://github.com/legsem/legstar-core2" }
27135187_46
{ "fields": [ { "declarator": "_log = LoggerFactory\n .getLogger(Cob2XsdIOTest.class)", "modifier": "private static final", "original_string": "private static final Logger _log = LoggerFactory\n .getLogger(Cob2XsdIOTest.class);", "type": "Logger", "var_name": "_...
{ "body": "@Test\n public void testAllSamples() throws Exception {\n File cobolDir = new File(COBOL_SAMPLES_DIR);\n for (File cobolFile : cobolDir.listFiles()) {\n if (cobolFile.isFile()) {\n _log.debug(\"Translating \" + cobolFile);\n String name = cobolFile....
{ "fields": [ { "declarator": "_log = LoggerFactory.getLogger(Cob2XsdIO.class)", "modifier": "private static final", "original_string": "private static final Logger _log = LoggerFactory.getLogger(Cob2XsdIO.class);", "type": "Logger", "var_name": "_log" } ], "file": "legstar-c...
{ "body": "public File translate(final File cobolFile, final String cobolFileEncoding,\n final File target, final String targetNamespacePrefix,\n final String xsltFileName) throws RecognizerException,\n XsdGenerationException {\n\n try {\n if (_log.isDebugEnabled()) ...
{ "created": null, "fork": null, "fork_count": 11, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27135187, "size": 980, "stargazer_count": 15, "stars": null, "updates": null, "url": "https://github.com/legsem/legstar-core2" }
27135187_31
{ "fields": [ { "declarator": "LEGSTAR_XSD_FILE_ENCODING = \"UTF-8\"", "modifier": "private static final", "original_string": "private static final String LEGSTAR_XSD_FILE_ENCODING = \"UTF-8\";", "type": "String", "var_name": "LEGSTAR_XSD_FILE_ENCODING" }, { "declarator...
{ "body": "@Test\n public void testOptl01Build() throws Exception {\n check(build(\"optl01\"), \"optl01.map\");\n }", "class_method_signature": "Xsd2CobolTypesModelBuilderTest.testOptl01Build()", "constructor": false, "full_signature": "@Test public void testOptl01Build()", "identifier": "testOpt...
{ "fields": [ { "declarator": "COBOL_NAME_PROP_NAME = \"cobolName\"", "modifier": "private static final", "original_string": "private static final String COBOL_NAME_PROP_NAME = \"cobolName\";", "type": "String", "var_name": "COBOL_NAME_PROP_NAME" }, { "declarator": "FRA...
{ "body": "public Map < String, RootCompositeType > build(XmlSchema xmlSchema)\n throws Xsd2ConverterException {\n\n log.debug(\"visit XML Schema started\");\n Map < String, RootCompositeType > rootComplexTypes = new LinkedHashMap < String, RootCompositeType >();\n\n for (Entry < QName...
{ "created": null, "fork": null, "fork_count": 11, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27135187, "size": 980, "stargazer_count": 15, "stars": null, "updates": null, "url": "https://github.com/legsem/legstar-core2" }
27135187_27
{ "fields": [ { "declarator": "LEGSTAR_XSD_FILE_ENCODING = \"UTF-8\"", "modifier": "private static final", "original_string": "private static final String LEGSTAR_XSD_FILE_ENCODING = \"UTF-8\";", "type": "String", "var_name": "LEGSTAR_XSD_FILE_ENCODING" }, { "declarator...
{ "body": "@Test\n public void testRdef02Build() throws Exception {\n check(build(\"rdef02\"), \"rdef02.map\");\n }", "class_method_signature": "Xsd2CobolTypesModelBuilderTest.testRdef02Build()", "constructor": false, "full_signature": "@Test public void testRdef02Build()", "identifier": "testRde...
{ "fields": [ { "declarator": "COBOL_NAME_PROP_NAME = \"cobolName\"", "modifier": "private static final", "original_string": "private static final String COBOL_NAME_PROP_NAME = \"cobolName\";", "type": "String", "var_name": "COBOL_NAME_PROP_NAME" }, { "declarator": "FRA...
{ "body": "public Map < String, RootCompositeType > build(XmlSchema xmlSchema)\n throws Xsd2ConverterException {\n\n log.debug(\"visit XML Schema started\");\n Map < String, RootCompositeType > rootComplexTypes = new LinkedHashMap < String, RootCompositeType >();\n\n for (Entry < QName...
{ "created": null, "fork": null, "fork_count": 11, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27135187, "size": 980, "stargazer_count": 15, "stars": null, "updates": null, "url": "https://github.com/legsem/legstar-core2" }
27135187_6
{ "fields": [], "file": "legstar-base/src/test/java/com/legstar/base/type/primitive/FromHostPrimitiveResultTest.java", "identifier": "FromHostPrimitiveResultTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testMessageFormat4() {\n assertEquals(\n \"msg. Error at offset 1 : [0xC0->C1C2<-C3]\",\n FromHostPrimitiveResult.formatMessage(\"msg\",\n HexUtils.decodeHex(\"C0C1C2C3\"), 1, 1, 2));\n }", "class_method_signature": "Fr...
{ "fields": [ { "declarator": "SPYBUF_MAX_LEN = 16", "modifier": "private static final", "original_string": "private static final int SPYBUF_MAX_LEN = 16;", "type": "int", "var_name": "SPYBUF_MAX_LEN" }, { "declarator": "value", "modifier": "private final", ...
{ "body": "protected static String formatMessage(String message, byte[] hostData,\n int start, int curPos, int bytesLen) {\n\n StringBuilder sb = new StringBuilder();\n sb.append(message);\n if (hostData != null && hostData.length > 0 && curPos < hostData.length\n && cur...
{ "created": null, "fork": null, "fork_count": 11, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27135187, "size": 980, "stargazer_count": 15, "stars": null, "updates": null, "url": "https://github.com/legsem/legstar-core2" }
27135187_41
{ "fields": [ { "declarator": "_errorHandler = new RecognizerErrorHandler()", "modifier": "private", "original_string": "private RecognizerErrorHandler _errorHandler = new RecognizerErrorHandler();", "type": "RecognizerErrorHandler", "var_name": "_errorHandler" } ], "file": "...
{ "body": "@Test\n public void testFormatTypeName() {\n\n List < String > nonUniqueCobolNames = new ArrayList < String >();\n\n /* Test name conflict resolution (append srce line) */\n nonUniqueCobolNames.add(\"AB9CD-EF\");\n CobolDataItem cobolDataItem = new CobolDataItem(\"AB9CD-EF\")...
{ "fields": [ { "declarator": "_cobolDataItem", "modifier": "private", "original_string": "private CobolDataItem _cobolDataItem;", "type": "CobolDataItem", "var_name": "_cobolDataItem" }, { "declarator": "_parent", "modifier": "private", "original_string": "...
{ "body": "public static String formatTypeName(final String elementName,\n final CobolDataItem cobolDataItem,\n final List < String > nonUniqueCobolNames,\n final Cob2XsdConfig config, final XsdDataItem parent,\n final int order) {\n\n StringBuilder sb = new StringBu...
{ "created": null, "fork": null, "fork_count": 11, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27135187, "size": 980, "stargazer_count": 15, "stars": null, "updates": null, "url": "https://github.com/legsem/legstar-core2" }
27135187_16
{ "fields": [ { "declarator": "cobolContext", "modifier": "private", "original_string": "private CobolContext cobolContext;", "type": "CobolContext", "var_name": "cobolContext" } ], "file": "legstar-base/src/test/java/com/legstar/base/visitor/DefaultFromCobolChoiceStrategyTes...
{ "body": "@Test\n public void testFailureToSelectAlternative() {\n DefaultFromCobolChoiceStrategy strategy = new DefaultFromCobolChoiceStrategy(cobolContext);\n CobolChoiceType choice = (CobolChoiceType) new CobolRdef01Record().getFields().get(\"comDetail1Choice\");\n byte[] hostData = HexUti...
{ "fields": [ { "declarator": "cobolContext", "modifier": "private final", "original_string": "private final CobolContext cobolContext;", "type": "CobolContext", "var_name": "cobolContext" } ], "file": "legstar-base/src/main/java/com/legstar/base/visitor/DefaultFromCobolChoic...
{ "body": "public CobolType choose(String choiceFieldName,\n CobolChoiceType cobolChoiceType, Map < String, Object > variables,\n byte[] hostData, int start, int length) {\n\n for (Entry < String, CobolType > alternative : cobolChoiceType\n .getAlternatives().entrySet()) {\...
{ "created": null, "fork": null, "fork_count": 11, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27135187, "size": 980, "stargazer_count": 15, "stars": null, "updates": null, "url": "https://github.com/legsem/legstar-core2" }
27135187_1
{ "fields": [ { "declarator": "cobolContext", "modifier": "private", "original_string": "private CobolContext cobolContext;", "type": "CobolContext", "var_name": "cobolContext" } ], "file": "legstar-base/src/test/java/com/legstar/base/type/primitive/CobolStringTypeTest.java",...
{ "body": "@Test\n public void testIsValidTrueCases() {\n assertTrue(isValid(1, \"00\"));\n assertTrue(isValid(1, \"40\"));\n assertTrue(isValid(1, \"FF\"));\n\n assertTrue(isValid(2, \"4000\"));\n assertTrue(isValid(2, \"4040\"));\n assertTrue(isValid(2, \"40FF\"));\n ...
{ "fields": [ { "declarator": "MAXIMUM_PICX_CHARNUM = 16777215", "modifier": "private static final", "original_string": "private static final int MAXIMUM_PICX_CHARNUM = 16777215;", "type": "int", "var_name": "MAXIMUM_PICX_CHARNUM" }, { "declarator": "charNum", "mo...
{ "body": "public boolean isValid(Class < T > javaClass, CobolContext cobolContext,\n byte[] hostData, int start) {\n\n int hostBytesLen = getBytesLen(charNum);\n\n // Is buffer large enough to contain this type?\n // TODO last field in a record might be truncated if all low-values or\...
{ "created": null, "fork": null, "fork_count": 11, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27135187, "size": 980, "stargazer_count": 15, "stars": null, "updates": null, "url": "https://github.com/legsem/legstar-core2" }
27135187_20
{ "fields": [ { "declarator": "cobolContext", "modifier": "private", "original_string": "private CobolContext cobolContext;", "type": "CobolContext", "var_name": "cobolContext" } ], "file": "legstar-base/src/test/java/com/legstar/base/visitor/Cob2ObjectVisitorTest.java", "i...
{ "body": "@Test\n public void testConvertStru03Invalid() {\n try {\n Cob2ObjectVisitor visitor = new Cob2ObjectVisitor(\n cobolContext,\n HexUtils.decodeHex(\"F0F0F0F0F6F2D5C1D4C5F0F0F0F0F6F2404040404040404040400310000F003EC1C2001FC1C20014C1C20F0FC1C2000CC1C...
{ "fields": [ { "declarator": "primitiveTypeHandler", "modifier": "private final", "original_string": "private final ObjectPrimitiveTypeHandler primitiveTypeHandler;", "type": "ObjectPrimitiveTypeHandler", "var_name": "primitiveTypeHandler" }, { "declarator": "choiceTyp...
{ "body": "public void visit(CobolComplexType type) {\n final Map < String, Object > map = new LinkedHashMap < String, Object >();\n super.visitComplexType(type, new ObjectComplexTypeChildHandler(map));\n resultObject = map;\n }", "class_method_signature": "Cob2ObjectVisitor.visit(CobolCompl...
{ "created": null, "fork": null, "fork_count": 11, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27135187, "size": 980, "stargazer_count": 15, "stars": null, "updates": null, "url": "https://github.com/legsem/legstar-core2" }
27135187_36
{ "fields": [], "file": "legstar-cob2xsd/src/test/java/com/legstar/cobol/utils/ValueUtilTest.java", "identifier": "ValueUtilTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testStripDelimiters() {\n assertEquals(\"no'delimiters\", ValueUtil.stripDelimiters(\"no'delimiters\"));\n assertEquals(\" quote\\\"\\\"delimiter \", ValueUtil.stripDelimiters(\"\\\" quote\\\"\\\"delimiter \\\"\"));\n assertEquals(\" quote''delimiter \", ValueUti...
{ "fields": [], "file": "legstar-cob2xsd/src/main/java/com/legstar/cobol/utils/ValueUtil.java", "identifier": "ValueUtil", "interfaces": "", "methods": [ { "class_method_signature": "ValueUtil.ValueUtil()", "constructor": true, "full_signature": "private ValueUtil()", "identifier"...
{ "body": "public static String stripDelimiters(final String value) {\n if (value != null && value.length() > 1) {\n if (value.charAt(0) == value.charAt(value.length() - 1)\n && (value.charAt(0) == '\\'')) {\n return value.substring(1, value.length() - 1);\n ...
{ "created": null, "fork": null, "fork_count": 11, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27135187, "size": 980, "stargazer_count": 15, "stars": null, "updates": null, "url": "https://github.com/legsem/legstar-core2" }
27135187_37
{ "fields": [], "file": "legstar-cob2xsd/src/test/java/com/legstar/cobol/utils/ValueUtilTest.java", "identifier": "ValueUtilTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testFill() {\n assertEquals(\"AAAAA\", ValueUtil.fill(null, \"A\", 5));\n assertEquals(\"0xFFFFFFFFFF\", ValueUtil.fill(\"0x\", \"FF\", 5));\n }", "class_method_signature": "ValueUtilTest.testFill()", "constructor": false, "full_signature": "@Test public void t...
{ "fields": [], "file": "legstar-cob2xsd/src/main/java/com/legstar/cobol/utils/ValueUtil.java", "identifier": "ValueUtil", "interfaces": "", "methods": [ { "class_method_signature": "ValueUtil.ValueUtil()", "constructor": true, "full_signature": "private ValueUtil()", "identifier"...
{ "body": "public static String fill(\n final String prefix,\n final String charSequence,\n final int times) {\n if (times < 1) {\n return \"\";\n }\n StringBuilder sb = new StringBuilder();\n if (prefix != null) {\n sb.append(prefix);...
{ "created": null, "fork": null, "fork_count": 11, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27135187, "size": 980, "stargazer_count": 15, "stars": null, "updates": null, "url": "https://github.com/legsem/legstar-core2" }
27135187_21
{ "fields": [ { "declarator": "LEGSTAR_XSD_FILE_ENCODING = \"UTF-8\"", "modifier": "private static final", "original_string": "private static final String LEGSTAR_XSD_FILE_ENCODING = \"UTF-8\";", "type": "String", "var_name": "LEGSTAR_XSD_FILE_ENCODING" }, { "declarator...
{ "body": "@Test\n public void testFlat01Build() throws Exception {\n check(build(\"flat01\"), \"flat01.map\");\n }", "class_method_signature": "Xsd2CobolTypesModelBuilderTest.testFlat01Build()", "constructor": false, "full_signature": "@Test public void testFlat01Build()", "identifier": "testFla...
{ "fields": [ { "declarator": "COBOL_NAME_PROP_NAME = \"cobolName\"", "modifier": "private static final", "original_string": "private static final String COBOL_NAME_PROP_NAME = \"cobolName\";", "type": "String", "var_name": "COBOL_NAME_PROP_NAME" }, { "declarator": "FRA...
{ "body": "public Map < String, RootCompositeType > build(XmlSchema xmlSchema)\n throws Xsd2ConverterException {\n\n log.debug(\"visit XML Schema started\");\n Map < String, RootCompositeType > rootComplexTypes = new LinkedHashMap < String, RootCompositeType >();\n\n for (Entry < QName...
{ "created": null, "fork": null, "fork_count": 11, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27135187, "size": 980, "stargazer_count": 15, "stars": null, "updates": null, "url": "https://github.com/legsem/legstar-core2" }
27135187_0
{ "fields": [], "file": "legstar-jaxb/src/test/java/com/legstar/jaxb/converter/Cob2JaxbConverterTest.java", "identifier": "Cob2JaxbConverterTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testConvertFlat01() {\n Cob2JaxbConverter <Flat01Record> converter = new Cob2JaxbConverter.Builder <Flat01Record>()\n .jaxbClass(Flat01Record.class)\n .jaxbWrapperFactory(new Flat01RecordJaxb())\n .cobolComplexType(new CobolFlat01Re...
{ "fields": [ { "declarator": "jaxbWrapperFactory", "modifier": "private final", "original_string": "private final JaxbWrapperFactory jaxbWrapperFactory;", "type": "JaxbWrapperFactory", "var_name": "jaxbWrapperFactory" }, { "declarator": "jaxbClass", "modifier": "...
{ "body": "public FromHostResult < J > convert(byte[] hostData, int start, int length) {\n Cob2JaxbVisitor visitor = new Cob2JaxbVisitor(getCobolContext(),\n hostData, start, length, jaxbWrapperFactory);\n visitor.visit(getCobolComplexType());\n JaxbWrapper < ? > jaxbWrapper = visi...
{ "created": null, "fork": null, "fork_count": 11, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27135187, "size": 980, "stargazer_count": 15, "stars": null, "updates": null, "url": "https://github.com/legsem/legstar-core2" }
27135187_17
{ "fields": [ { "declarator": "cobolContext", "modifier": "private", "original_string": "private CobolContext cobolContext;", "type": "CobolContext", "var_name": "cobolContext" } ], "file": "legstar-base/src/test/java/com/legstar/base/visitor/Cob2ObjectVisitorTest.java", "i...
{ "body": "@Test\n public void testConvertFlat01Invalid() {\n try {\n Cob2ObjectVisitor visitor = new Cob2ObjectVisitor(\n cobolContext,\n HexUtils.decodeHex(\"ABF0F1F0F4F3D5C1D4C5F0F0F0F0F4F3404040404040404040400215000F\"));\n visitor.visit(new Co...
{ "fields": [ { "declarator": "primitiveTypeHandler", "modifier": "private final", "original_string": "private final ObjectPrimitiveTypeHandler primitiveTypeHandler;", "type": "ObjectPrimitiveTypeHandler", "var_name": "primitiveTypeHandler" }, { "declarator": "choiceTyp...
{ "body": "public void visit(CobolComplexType type) {\n final Map < String, Object > map = new LinkedHashMap < String, Object >();\n super.visitComplexType(type, new ObjectComplexTypeChildHandler(map));\n resultObject = map;\n }", "class_method_signature": "Cob2ObjectVisitor.visit(CobolCompl...
{ "created": null, "fork": null, "fork_count": 11, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27135187, "size": 980, "stargazer_count": 15, "stars": null, "updates": null, "url": "https://github.com/legsem/legstar-core2" }
27135187_40
{ "fields": [ { "declarator": "_errorHandler = new RecognizerErrorHandler()", "modifier": "private", "original_string": "private RecognizerErrorHandler _errorHandler = new RecognizerErrorHandler();", "type": "RecognizerErrorHandler", "var_name": "_errorHandler" } ], "file": "...
{ "body": "@Test\n public void testFormatElementName() {\n List < String > nonUniqueCobolNames = new ArrayList < String >();\n\n assertEquals(\"\", XsdDataItem.formatElementName(new CobolDataItem(\"\"),\n nonUniqueCobolNames, defaultConfig, null, 0));\n assertEquals(\"a\", XsdDa...
{ "fields": [ { "declarator": "_cobolDataItem", "modifier": "private", "original_string": "private CobolDataItem _cobolDataItem;", "type": "CobolDataItem", "var_name": "_cobolDataItem" }, { "declarator": "_parent", "modifier": "private", "original_string": "...
{ "body": "public static String formatElementName(final CobolDataItem cobolDataItem,\n final List < String > nonUniqueCobolNames,\n final Cob2XsdConfig config, final XsdDataItem parent,\n final int order) {\n\n String cobolName = getXmlCompatibleCobolName(cobolDataItem\n ...
{ "created": null, "fork": null, "fork_count": 11, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 27135187, "size": 980, "stargazer_count": 15, "stars": null, "updates": null, "url": "https://github.com/legsem/legstar-core2" }
10367500_4
{ "fields": [ { "declarator": "FIDELITY = \"Fidelity\"", "modifier": "private static final", "original_string": "private static final String FIDELITY = \"Fidelity\";", "type": "String", "var_name": "FIDELITY" }, { "declarator": "HIGH_TECH = \"HighTech\"", "modifie...
{ "body": "@Test\n\tpublic void testGetChartSectorData() {\n\t\tportfolio.setEquities(createEquities());\n\t\tMap<String, Double> actual = portfolio.getChartSectorData();\n\t\tassertNotNull(actual);\n\t\tassertEquals(25500d, actual.get(FUND), 0.1);\n\t\tassertEquals(4000d, actual.get(HIGH_TECH), 0.1);\n\t\tassertEqua...
{ "fields": [ { "declarator": "mathContext = MathContext.DECIMAL32", "modifier": "private final", "original_string": "private final MathContext mathContext = MathContext.DECIMAL32;", "type": "MathContext", "var_name": "mathContext" }, { "declarator": "PERCENT = 100", ...
{ "body": "protected final Map<String, Double> getChartSectorData() {\n\t\tif (chartSectorData == null) {\n\t\t\tfinal Map<String, Double> data = new HashMap<>();\n\t\t\tfor (final Equity equity : getEquities()) {\n\t\t\t\tif (equity.getCompany().getFund()) {\n\t\t\t\t\taddEquityValueToMap(data, Constants.FUND, equit...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 10367500, "size": 26997, "stargazer_count": 7, "stars": null, "updates": null, "url": "https://github.com/carlphilipp/stock-tracker" }
10367500_13
{ "fields": [ { "declarator": "FIDELITY = \"Fidelity\"", "modifier": "private static final", "original_string": "private static final String FIDELITY = \"Fidelity\";", "type": "String", "var_name": "FIDELITY" }, { "declarator": "HIGH_TECH = \"HighTech\"", "modifie...
{ "body": "@Test\n\tpublic void testGetFirstAccount() {\n\t\tportfolio.setAccounts(createAccounts());\n\t\tOptional<Account> actual = portfolio.getFirstAccount();\n\t\tassertTrue(actual.isPresent());\n\t}", "class_method_signature": "PortfolioTest.testGetFirstAccount()", "constructor": false, "full_signature": ...
{ "fields": [ { "declarator": "mathContext = MathContext.DECIMAL32", "modifier": "private final", "original_string": "private final MathContext mathContext = MathContext.DECIMAL32;", "type": "MathContext", "var_name": "mathContext" }, { "declarator": "PERCENT = 100", ...
{ "body": "public final Optional<Account> getFirstAccount() {\n\t\treturn accounts == null\n\t\t\t? Optional.empty()\n\t\t\t: accounts.stream().filter(account -> !account.getDel()).findFirst();\n\t}", "class_method_signature": "Portfolio.getFirstAccount()", "constructor": false, "full_signature": "public final ...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 10367500, "size": 26997, "stargazer_count": 7, "stars": null, "updates": null, "url": "https://github.com/carlphilipp/stock-tracker" }
10367500_8
{ "fields": [ { "declarator": "FIDELITY = \"Fidelity\"", "modifier": "private static final", "original_string": "private static final String FIDELITY = \"Fidelity\";", "type": "String", "var_name": "FIDELITY" }, { "declarator": "HIGH_TECH = \"HighTech\"", "modifie...
{ "body": "@Test\n\tpublic void testAddIndexes() {\n\t\tfinal List<Index> indexes = new ArrayList<>();\n\t\tfinal Index index = Index.builder().yahooId(CAC40).build();\n\t\tindexes.add(index);\n\n\t\tportfolio.addIndexes(indexes);\n\t\tfinal Map<String, List<Index>> actual = portfolio.getIndexes();\n\t\tassertNotNull...
{ "fields": [ { "declarator": "mathContext = MathContext.DECIMAL32", "modifier": "private final", "original_string": "private final MathContext mathContext = MathContext.DECIMAL32;", "type": "MathContext", "var_name": "mathContext" }, { "declarator": "PERCENT = 100", ...
{ "body": "public final void addIndexes(final List<Index> indexes) {\n\t\tif (indexes.size() > 0) {\n\t\t\tString index = indexes.get(0).getYahooId();\n\t\t\tthis.indexes.put(index, indexes);\n\t\t}\n\t}", "class_method_signature": "Portfolio.addIndexes(final List<Index> indexes)", "constructor": false, "full_s...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 10367500, "size": 26997, "stargazer_count": 7, "stars": null, "updates": null, "url": "https://github.com/carlphilipp/stock-tracker" }
10367500_9
{ "fields": [ { "declarator": "FIDELITY = \"Fidelity\"", "modifier": "private static final", "original_string": "private static final String FIDELITY = \"Fidelity\";", "type": "String", "var_name": "FIDELITY" }, { "declarator": "HIGH_TECH = \"HighTech\"", "modifie...
{ "body": "@Test\n\tpublic void testGetPortfolioReview() {\n\t\tportfolio.setEquities(createEquities());\n\t\tfinal String actual = portfolio.getPortfolioReview();\n\t\tassertNotNull(actual);\n\t}", "class_method_signature": "PortfolioTest.testGetPortfolioReview()", "constructor": false, "full_signature": "@Tes...
{ "fields": [ { "declarator": "mathContext = MathContext.DECIMAL32", "modifier": "private final", "original_string": "private final MathContext mathContext = MathContext.DECIMAL32;", "type": "MathContext", "var_name": "mathContext" }, { "declarator": "PERCENT = 100", ...
{ "body": "public final String getPortfolioReview() {\n\t\tfinal StringBuilder sb = new StringBuilder();\n\t\tsb.append(\"<table class=\\\"shareValueTableDetails\\\">\");\n\t\tfor (final Equity equity : getEquities()) {\n\t\t\tsb.append(\"<tr><td width=200px><b>\")\n\t\t\t\t.append(equity.getCurrentName())\n\t\t\t\t....
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 10367500, "size": 26997, "stargazer_count": 7, "stars": null, "updates": null, "url": "https://github.com/carlphilipp/stock-tracker" }
10367500_12
{ "fields": [ { "declarator": "FIDELITY = \"Fidelity\"", "modifier": "private static final", "original_string": "private static final String FIDELITY = \"Fidelity\";", "type": "String", "var_name": "FIDELITY" }, { "declarator": "HIGH_TECH = \"HighTech\"", "modifie...
{ "body": "@Test\n\tpublic void testGetAccountByIdEmpty() {\n\t\tOptional<Account> actual = portfolio.getAccount(2);\n\t\tassertFalse(actual.isPresent());\n\t}", "class_method_signature": "PortfolioTest.testGetAccountByIdEmpty()", "constructor": false, "full_signature": "@Test public void testGetAccountByIdEmpt...
{ "fields": [ { "declarator": "mathContext = MathContext.DECIMAL32", "modifier": "private final", "original_string": "private final MathContext mathContext = MathContext.DECIMAL32;", "type": "MathContext", "var_name": "mathContext" }, { "declarator": "PERCENT = 100", ...
{ "body": "public final Optional<Account> getAccount(final String name) {\n\t\treturn accounts == null\n\t\t\t? Optional.empty()\n\t\t\t: accounts.stream().filter(account -> account.getName().equals(name)).findFirst();\n\t}", "class_method_signature": "Portfolio.getAccount(final String name)", "constructor": fals...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 10367500, "size": 26997, "stargazer_count": 7, "stars": null, "updates": null, "url": "https://github.com/carlphilipp/stock-tracker" }
10367500_5
{ "fields": [ { "declarator": "FIDELITY = \"Fidelity\"", "modifier": "private static final", "original_string": "private static final String FIDELITY = \"Fidelity\";", "type": "String", "var_name": "FIDELITY" }, { "declarator": "HIGH_TECH = \"HighTech\"", "modifie...
{ "body": "@Test\n\tpublic void testGetChartShareValueData() {\n\t\tportfolio.setShareValues(createShareValues());\n\t\tMap<Date, Double> actual = portfolio.getChartShareValueData();\n\t\tassertNotNull(actual);\n\t\tassertThat(actual.size(), is(2));\n\t\tIterator<Date> iterator = actual.keySet().iterator();\n\t\tasse...
{ "fields": [ { "declarator": "mathContext = MathContext.DECIMAL32", "modifier": "private final", "original_string": "private final MathContext mathContext = MathContext.DECIMAL32;", "type": "MathContext", "var_name": "mathContext" }, { "declarator": "PERCENT = 100", ...
{ "body": "protected final Map<Date, Double> getChartShareValueData() {\n\t\tMap<Date, Double> data = new HashMap<>();\n\t\tList<ShareValue> shareValuess = getShareValues();\n\t\tint max = shareValuess.size();\n\t\tdouble base = shareValuess.get(max - 1).getShareValue();\n\t\tfor (int i = max - 1; i != -1; i--) {\n\t...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 10367500, "size": 26997, "stargazer_count": 7, "stars": null, "updates": null, "url": "https://github.com/carlphilipp/stock-tracker" }
10367500_15
{ "fields": [ { "declarator": "FIDELITY = \"Fidelity\"", "modifier": "private static final", "original_string": "private static final String FIDELITY = \"Fidelity\";", "type": "String", "var_name": "FIDELITY" }, { "declarator": "HIGH_TECH = \"HighTech\"", "modifie...
{ "body": "@Test\n\tpublic void testGetHTMLSectorByCompanies() {\n\t\tportfolio.setEquities(createEquities());\n\t\tString actual = portfolio.getHTMLSectorByCompanies();\n\t\tverifyHTML(actual);\n\t}", "class_method_signature": "PortfolioTest.testGetHTMLSectorByCompanies()", "constructor": false, "full_signatur...
{ "fields": [ { "declarator": "mathContext = MathContext.DECIMAL32", "modifier": "private final", "original_string": "private final MathContext mathContext = MathContext.DECIMAL32;", "type": "MathContext", "var_name": "mathContext" }, { "declarator": "PERCENT = 100", ...
{ "body": "public final String getHTMLSectorByCompanies() {\n\t\tfinal Map<String, List<Equity>> map = getSectorByCompanies();\n\t\treturn extractHTMLfromMap(map);\n\t}", "class_method_signature": "Portfolio.getHTMLSectorByCompanies()", "constructor": false, "full_signature": "public final String getHTMLSectorB...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 10367500, "size": 26997, "stargazer_count": 7, "stars": null, "updates": null, "url": "https://github.com/carlphilipp/stock-tracker" }
10367500_2
{ "fields": [ { "declarator": "FIDELITY = \"Fidelity\"", "modifier": "private static final", "original_string": "private static final String FIDELITY = \"Fidelity\";", "type": "String", "var_name": "FIDELITY" }, { "declarator": "HIGH_TECH = \"HighTech\"", "modifie...
{ "body": "@Test\n\tpublic void testGetTotalValueWithLiquidity() {\n\t\tportfolio.setLiquidity(1000d);\n\t\tDouble actual = portfolio.getTotalValue();\n\t\tassertEquals(1000d, actual, 0.1);\n\t}", "class_method_signature": "PortfolioTest.testGetTotalValueWithLiquidity()", "constructor": false, "full_signature":...
{ "fields": [ { "declarator": "mathContext = MathContext.DECIMAL32", "modifier": "private final", "original_string": "private final MathContext mathContext = MathContext.DECIMAL32;", "type": "MathContext", "var_name": "mathContext" }, { "declarator": "PERCENT = 100", ...
{ "body": "public final Double getTotalValue() {\n\t\treturn totalValue + getLiquidity();\n\t}", "class_method_signature": "Portfolio.getTotalValue()", "constructor": false, "full_signature": "public final Double getTotalValue()", "identifier": "getTotalValue", "invocations": [ "getLiquidity" ], "mo...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 10367500, "size": 26997, "stargazer_count": 7, "stars": null, "updates": null, "url": "https://github.com/carlphilipp/stock-tracker" }
10367500_3
{ "fields": [ { "declarator": "FIDELITY = \"Fidelity\"", "modifier": "private static final", "original_string": "private static final String FIDELITY = \"Fidelity\";", "type": "String", "var_name": "FIDELITY" }, { "declarator": "HIGH_TECH = \"HighTech\"", "modifie...
{ "body": "@Test\n\tpublic void testCompute() {\n\t\tportfolio.setEquities(createEquities());\n\t\tportfolio.compute();\n\n\t\tassertEquals(66d, portfolio.getTotalQuantity(), 0.1);\n\t\tassertEquals(30500d, portfolio.getTotalValue(), 0.1);\n\t\tassertEquals(0d, portfolio.getYieldYear(), 0.1);\n\t\tassertEquals(12700d...
{ "fields": [ { "declarator": "mathContext = MathContext.DECIMAL32", "modifier": "private final", "original_string": "private final MathContext mathContext = MathContext.DECIMAL32;", "type": "MathContext", "var_name": "mathContext" }, { "declarator": "PERCENT = 100", ...
{ "body": "public final void compute() {\n\t\tDouble totalUnitCostPrice = 0d;\n\t\tDouble totalAverageQuotePrice = 0d;\n\t\tDouble totalOriginalValue = 0d;\n\t\ttotalVariation = 0d;\n\t\tdouble totalValueStart = 0;\n\t\ttotalGainToday = 0d;\n\t\tDate lastUpdate = null;\n\t\tif (equities != null) {\n\t\t\tfor (final E...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 10367500, "size": 26997, "stargazer_count": 7, "stars": null, "updates": null, "url": "https://github.com/carlphilipp/stock-tracker" }
10367500_14
{ "fields": [ { "declarator": "FIDELITY = \"Fidelity\"", "modifier": "private static final", "original_string": "private static final String FIDELITY = \"Fidelity\";", "type": "String", "var_name": "FIDELITY" }, { "declarator": "HIGH_TECH = \"HighTech\"", "modifie...
{ "body": "@Test\n\tpublic void testGetSectorByCompanies() {\n\t\tportfolio.setEquities(createEquities());\n\t\tMap<String, List<Equity>> actual = portfolio.getSectorByCompanies();\n\t\tassertNotNull(actual);\n\t\tassertThat(actual.size(), is(3));\n\t\tassertTrue(actual.containsKey(FUND));\n\t\tassertTrue(actual.cont...
{ "fields": [ { "declarator": "mathContext = MathContext.DECIMAL32", "modifier": "private final", "original_string": "private final MathContext mathContext = MathContext.DECIMAL32;", "type": "MathContext", "var_name": "mathContext" }, { "declarator": "PERCENT = 100", ...
{ "body": "protected Map<String, List<Equity>> getSectorByCompanies() {\n\t\tfinal Map<String, List<Equity>> map = new TreeMap<>();\n\t\tList<Equity> companies;\n\t\tfor (final Equity equity : getEquities()) {\n\t\t\tif (equity.getCompany().getFund()) {\n\t\t\t\tcompanies = map.getOrDefault(Constants.FUND, new ArrayL...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 10367500, "size": 26997, "stargazer_count": 7, "stars": null, "updates": null, "url": "https://github.com/carlphilipp/stock-tracker" }
10367500_17
{ "fields": [ { "declarator": "FIDELITY = \"Fidelity\"", "modifier": "private static final", "original_string": "private static final String FIDELITY = \"Fidelity\";", "type": "String", "var_name": "FIDELITY" }, { "declarator": "HIGH_TECH = \"HighTech\"", "modifie...
{ "body": "@Test\n\tpublic void testGetHTMLCapByCompanies() {\n\t\tportfolio.setEquities(createEquities());\n\t\tString actual = portfolio.getHTMLCapByCompanies();\n\t\tverifyHTML(actual);\n\t}", "class_method_signature": "PortfolioTest.testGetHTMLCapByCompanies()", "constructor": false, "full_signature": "@Tes...
{ "fields": [ { "declarator": "mathContext = MathContext.DECIMAL32", "modifier": "private final", "original_string": "private final MathContext mathContext = MathContext.DECIMAL32;", "type": "MathContext", "var_name": "mathContext" }, { "declarator": "PERCENT = 100", ...
{ "body": "public final String getHTMLCapByCompanies() {\n\t\tfinal Map<String, List<Equity>> map = getGapByCompanies();\n\t\treturn extractHTMLfromMap(map);\n\t}", "class_method_signature": "Portfolio.getHTMLCapByCompanies()", "constructor": false, "full_signature": "public final String getHTMLCapByCompanies()...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 10367500, "size": 26997, "stargazer_count": 7, "stars": null, "updates": null, "url": "https://github.com/carlphilipp/stock-tracker" }
10367500_0
{ "fields": [], "file": "website/src/test/java/fr/cph/stock/entities/UserTest.java", "identifier": "UserTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void testUser() {\n\t\tString login = \"carl\";\n\t\tString password = \"mypassword\";\n\t\tString email = \"mail@gmail.com\";\n\t\tUser user = User.builder().login(login).password(password).email(email).build();\n\t\tassertEquals(login, user.getLogin());\n\t\tassertEquals(email, user.getEm...
{ "fields": [ { "declarator": "serialVersionUID = -7736017495914032958L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -7736017495914032958L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "id"...
{ "body": "public User(final String login, final String password) {\n\t\tthis.login = login;\n\t\tthis.password = password;\n\t}", "class_method_signature": "User.User(final String login, final String password)", "constructor": true, "full_signature": "public User(final String login, final String password)", ...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 10367500, "size": 26997, "stargazer_count": 7, "stars": null, "updates": null, "url": "https://github.com/carlphilipp/stock-tracker" }