id
stringlengths
7
14
test_class
dict
test_case
dict
focal_class
dict
focal_method
dict
repository
dict
116999027_297
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/jexl/visitors/HasTopLevelNegationVisitorTest.java", "identifier": "HasTopLevelNegationVisitorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void test9() throws Exception {\n ASTJexlScript script = JexlASTHelper.parseJexlQuery(\"(FOO == 'bar' && FOO != 'bar')\");\n Assert.assertTrue(HasTopLevelNegationVisitor.hasTopLevelNegation(script));\n }", "class_method_signature": "HasTopLevelNegationVisitorTest.test9(...
{ "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_917
{ "fields": [ { "declarator": "log = Logger.getLogger(StatsJobTest.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(StatsJobTest.class);", "type": "Logger", "var_name": "log" }, { "declarator": "wrapper"...
{ "body": "@Test\n public void testParseArguments() throws Exception {\n Assume.assumeTrue(null != System.getenv(\"DATAWAVE_INGEST_HOME\"));\n log.info(\"====== testParseArguments =====\");\n Map<String,Object> mapArgs = new HashMap<>();\n \n // mapper options\n mapArgs....
{ "fields": [ { "declarator": "DEFAULT_LOG_LEVEL = Level.INFO", "modifier": "static final", "original_string": "static final Level DEFAULT_LOG_LEVEL = Level.INFO;", "type": "Level", "var_name": "DEFAULT_LOG_LEVEL" }, { "declarator": "HYPERLOG_SPARSE_DEFAULT_VALUE = 24",...
{ "body": "@Override\n protected Configuration parseArguments(String[] args, Configuration conf) throws ClassNotFoundException, URISyntaxException, IllegalArgumentException {\n Configuration parseConf = super.parseArguments(args, conf);\n \n // force bulk job\n this.outputMutations = fa...
{ "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_444
{ "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 testNull() throws Exception {\n String originalQuery = \"FOO == null\";\n ASTJexlScript script = JexlASTHelper.parseJexlQuery(originalQuery);\n final Map<String,ExpressionFilter> filter = EventDataQueryExpressionVisitor.getExpressionFilters(script, attrFactory);\...
{ "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_501
{ "fields": [ { "declarator": "logAppender", "modifier": "private static", "original_string": "private static TestLogAppender logAppender;", "type": "TestLogAppender", "var_name": "logAppender" } ], "file": "warehouse/query-core/src/test/java/datawave/query/jexl/visitors/Quer...
{ "body": "@Test\n public void GENoFieldTest() throws ParseException {\n String query = \"_NOFIELD_ >= 'x'\";\n ASTJexlScript script = JexlASTHelper.parseJexlQuery(query);\n Assert.assertEquals(QueryPruningVisitor.TruthState.FALSE, QueryPruningVisitor.getState(script));\n \n Asse...
{ "fields": [ { "declarator": "log = Logger.getLogger(QueryPruningVisitor.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(QueryPruningVisitor.class);", "type": "Logger", "var_name": "log" }, { "declarat...
{ "body": "public static TruthState getState(JexlNode node) {\n QueryPruningVisitor visitor = new QueryPruningVisitor(false);\n return (TruthState) node.jjtAccept(visitor, null);\n }", "class_method_signature": "QueryPruningVisitor.getState(JexlNode node)", "constructor": false, "full_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_151
{ "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 testMarkJobDirectoryFailedHappyPath() throws Exception {\n \n BulkIngestMapFileLoaderTest.logger.info(\"testMarkJobDirectoryFailedHappyPath called...\");\n \n try {\n \n URL url = BulkIngestMapFileLoaderTest.class.getResource(\"/dataw...
{ "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 boolean markJobDirectoryFailed(URI workingHdfs, Path jobDirectory) {\n boolean success = false;\n try {\n FileSystem fs = getFileSystem(workingHdfs);\n success = fs.rename(new Path(jobDirectory, LOADING_FILE_MARKER), new Path(jobDirectory, FAILED_FILE_MARKER));\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_852
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/audit/DatawaveSelectorExtractorTest.java", "identifier": "DatawaveSelectorExtractorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void extractSelectorsLuceneQuery1() {\n \n DatawaveSelectorExtractor extractor = new DatawaveSelectorExtractor();\n QueryImpl q = new QueryImpl();\n q.setQuery(\"FIELD1:selector1\");\n List<String> selectorList = extractor.extractSelectors(q);\n L...
{ "fields": [ { "declarator": "luceneToJexlParser = new LuceneToJexlQueryParser()", "modifier": "private", "original_string": "private LuceneToJexlQueryParser luceneToJexlParser = new LuceneToJexlQueryParser();", "type": "LuceneToJexlQueryParser", "var_name": "luceneToJexlParser" ...
{ "body": "@Override\n public List<String> extractSelectors(Query query) throws IllegalArgumentException {\n List<String> selectorList = new ArrayList<>();\n List<ASTEQNode> eqNodes = null;\n QueryNode node = null;\n ASTJexlScript jexlScript = null;\n \n try {\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_60
{ "fields": [ { "declarator": "logger = Logger.getLogger(ShardTableConfigHelperTest.class)", "modifier": "private static final", "original_string": "private static final Logger logger = Logger.getLogger(ShardTableConfigHelperTest.class);", "type": "Logger", "var_name": "logger" }...
{ "body": "@Test(expected = NullPointerException.class)\n public void testConfigureCalledBeforeSetup() throws AccumuloSecurityException, AccumuloException, TableNotFoundException {\n \n ShardTableConfigHelperTest.logger.info(\"ShardTableConfigHelperTest.testConfigureCalledBeforeSetup called.\");\n ...
{ "fields": [ { "declarator": "SHARDED_TABLET_BALANCER_CLASS = ShardedTableTabletBalancer.class.getName()", "modifier": "protected static final", "original_string": "protected static final String SHARDED_TABLET_BALANCER_CLASS = ShardedTableTabletBalancer.class.getName();", "type": "String"...
{ "body": "@Override\n public void configure(TableOperations tops) throws AccumuloException, AccumuloSecurityException, TableNotFoundException {\n \n switch (this.tableType) {\n case SHARD:\n configureShardTable(tops);\n break;\n case GIDX:\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_346
{ "fields": [ { "declarator": "config", "modifier": "private", "original_string": "private ShardQueryConfiguration config;", "type": "ShardQueryConfiguration", "var_name": "config" }, { "declarator": "helper", "modifier": "private", "original_string": "priva...
{ "body": "@Test\n public void testMultiNormalizedBounds() throws ParseException {\n Multimap<String,Type<?>> dataTypes = HashMultimap.create();\n dataTypes.putAll(\"FOO\", Sets.newHashSet(new NumberType(), new LcNoDiacriticsType()));\n \n helper.setIndexedFields(dataTypes.keySet());\n ...
{ "fields": [ { "declarator": "log = ThreadConfigurableLogger.getLogger(ExpandMultiNormalizedTerms.class)", "modifier": "private static final", "original_string": "private static final Logger log = ThreadConfigurableLogger.getLogger(ExpandMultiNormalizedTerms.class);", "type": "Logger", ...
{ "body": "@SuppressWarnings(\"unchecked\")\n public static <T extends JexlNode> T expandTerms(ShardQueryConfiguration config, MetadataHelper helper, T script) {\n ExpandMultiNormalizedTerms visitor = new ExpandMultiNormalizedTerms(config, helper);\n \n if (null == visitor.config.getQueryField...
{ "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_716
{ "fields": [ { "declarator": "dict = null", "modifier": "", "original_string": "DefaultEdgeDictionary dict = null;", "type": "DefaultEdgeDictionary", "var_name": "dict" }, { "declarator": "logic = new DefaultEdgeEventQueryLogic()", "modifier": "", "original...
{ "body": "@Test\n public void testEdgesWithComplexPreconditions() throws Exception {\n Query query = new QueryImpl();\n query.setQuery(\"SOURCE == '$609_1_R' AND SINK == '$604_1_R' AND TYPE == 'TEST11' AND RELATION == 'REL42-REL42'\");\n \n String transformed = logic.getEventQuery(quer...
{ "fields": [ { "declarator": "log = Logger.getLogger(DefaultEdgeEventQueryLogic.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(DefaultEdgeEventQueryLogic.class);", "type": "Logger", "var_name": "log" }, { ...
{ "body": "protected String getEventQuery(Query settings) throws Exception {\n return getEventQueryBuilder().getEventQuery(getJexlQueryString(settings));\n }", "class_method_signature": "DefaultEdgeEventQueryLogic.getEventQuery(Query settings)", "constructor": false, "full_signature": "protected Strin...
{ "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_203
{ "fields": [], "file": "warehouse/ingest-core/src/test/java/datawave/ingest/time/NowTest.java", "identifier": "NowTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testNow() throws InterruptedException {\n Now now = Now.getInstance();\n for (int i = 0; i < 5; i++) {\n long time = System.currentTimeMillis();\n long nowTime = now.get();\n long time2 = System.currentTimeMillis();\n // added...
{ "fields": [ { "declarator": "timer = null", "modifier": "private", "original_string": "private Timer timer = null;", "type": "Timer", "var_name": "timer" }, { "declarator": "now = new AtomicLong()", "modifier": "private", "original_string": "private Atomic...
{ "body": "public Now() {\n this(true);\n }", "class_method_signature": "Now.Now()", "constructor": true, "full_signature": "public Now()", "identifier": "Now", "invocations": [], "modifiers": "public", "parameters": "()", "return": "", "signature": " Now()", "testcase": false }
{ "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_653
{ "fields": [ { "declarator": "row = \"20190314\"", "modifier": "private final", "original_string": "private final String row = \"20190314\";", "type": "String", "var_name": "row" }, { "declarator": "field = \"FIELD_A\"", "modifier": "private final", "origin...
{ "body": "@Test\n public void testInstancesOf() {\n ByteSequence bytes = new ArrayByteSequence(\"how.many.dots.do.we.have?\");\n ArrayList<Integer> expectedPositions = Lists.newArrayList(3, 8, 13, 16, 19);\n ArrayList<Integer> instances = TLD.instancesOf('.', bytes);\n assertEquals(exp...
{ "fields": [], "file": "warehouse/query-core/src/main/java/datawave/query/tld/TLD.java", "identifier": "TLD", "interfaces": "", "methods": [ { "class_method_signature": "TLD.TLD()", "constructor": true, "full_signature": "private TLD()", "identifier": "TLD", "modifiers": "p...
{ "body": "public static ArrayList<Integer> instancesOf(int b, ByteSequence sequence) {\n return instancesOf(b, sequence, -1);\n }", "class_method_signature": "TLD.instancesOf(int b, ByteSequence sequence)", "constructor": false, "full_signature": "public static ArrayList<Integer> instancesOf(int b, B...
{ "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_983
{ "fields": [ { "declarator": "USER_DN = \"userDN\"", "modifier": "private static final", "original_string": "private static final String USER_DN = \"userDN\";", "type": "String", "var_name": "USER_DN" }, { "declarator": "ISSUER_DN = \"issuerDN\"", "modifier": "pr...
{ "body": "@Test\n public void testMinimizeWithSubset() {\n ArrayList<Authorizations> authSets = Lists.newArrayList(new Authorizations(\"A\", \"B\", \"C\", \"D\"), new Authorizations(\"C\", \"B\"), new Authorizations(\"A\",\n \"B\", \"C\"), new Authorizations(\"B\", \"C\", \"D\", \"E\...
{ "fields": [], "file": "web-services/common-util/src/main/java/datawave/security/util/AuthorizationsUtil.java", "identifier": "AuthorizationsUtil", "interfaces": "", "methods": [ { "class_method_signature": "AuthorizationsUtil.union(Iterable<byte[]> authorizations1, Iterable<byte[]> authorizations2...
{ "body": "public static Collection<Authorizations> minimize(Collection<Authorizations> authorizations) {\n return AuthorizationsMinimizer.minimize(authorizations);\n }", "class_method_signature": "AuthorizationsUtil.minimize(Collection<Authorizations> authorizations)", "constructor": false, "full_sig...
{ "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_829
{ "fields": [ { "declarator": "instance = new InMemoryInstance(RangeStreamTest.class.toString())", "modifier": "private static", "original_string": "private static InMemoryInstance instance = new InMemoryInstance(RangeStreamTest.class.toString());", "type": "InMemoryInstance", "var_n...
{ "body": "@Test\n public void whatDayIsItAnywayTest() throws ParseException {\n ShardQueryConfiguration config = new ShardQueryConfiguration();\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyyMMdd HHmmss\");\n config.setBeginDate(sdf.parse(\"20200201 060000\"));\n config.setEndDate...
{ "fields": [ { "declarator": "MAX_MEDIAN = 20", "modifier": "private static final", "original_string": "private static final int MAX_MEDIAN = 20;", "type": "int", "var_name": "MAX_MEDIAN" }, { "declarator": "log = ThreadConfigurableLogger.getLogger(RangeStream.class)",...
{ "body": "public static List<Tuple2<String,IndexInfo>> createFullFieldIndexScanList(ShardQueryConfiguration config, JexlNode node) {\n List<Tuple2<String,IndexInfo>> list = new ArrayList<>();\n \n Calendar start = getCalendarStartOfDay(config.getBeginDate());\n Calendar end = getCalendarS...
{ "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_595
{ "fields": [ { "declarator": "log = Logger.getLogger(UniqueTransformTest.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(UniqueTransformTest.class);", "type": "Logger", "var_name": "log" }, { "declarat...
{ "body": "@Test\n public void testUniquenessWithTwoGroupsAndPartialGroups() {\n // create document two fields as follows:\n // field1.group1\n // field1.group2\n // field2.group1 (note no field2.group2 created)\n // field3.group3\n Document d = new Document();\n d....
{ "fields": [ { "declarator": "log = Logger.getLogger(GroupingTransform.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(GroupingTransform.class);", "type": "Logger", "var_name": "log" }, { "declarator":...
{ "body": "List<FieldSet> getOrderedFieldSets(Document document) {\n Set<Multimap<String,String>> fieldSets = getFieldSets(document);\n List<FieldSet> orderedFieldSets = new ArrayList<>(fieldSets.size());\n for (Multimap<String,String> fieldSet : fieldSets) {\n FieldSet orderedFieldSet...
{ "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_741
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/language/parser/jexl/JexlNodeSetTest.java", "identifier": "JexlNodeSetTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testRemove() {\n JexlNode node1 = JexlNodeFactory.buildEQNode(\"FOO\", \"bar\");\n JexlNode node2 = JexlNodeFactory.buildEQNode(\"FOO2\", \"bar2\");\n \n JexlNodeSet nodeSet = new JexlNodeSet();\n nodeSet.add(node1);\n nodeSet.add(node2);\n ...
{ "fields": [ { "declarator": "useSourceNodeForKeys = false", "modifier": "private", "original_string": "private boolean useSourceNodeForKeys = false;", "type": "boolean", "var_name": "useSourceNodeForKeys" }, { "declarator": "nodeMap", "modifier": "protected fina...
{ "body": "@Override\n public boolean remove(Object o) {\n if (o instanceof JexlNode) {\n // Remove by value\n String nodeKey = buildKey((JexlNode) o);\n return nodeMap.remove(nodeKey, nodeMap.get(nodeKey));\n } else if (o instanceof String) {\n // Remove b...
{ "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_311
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/jexl/visitors/DepthVisitorTest.java", "identifier": "DepthVisitorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testAnd() throws Exception {\n String originalQuery = \"FOO == 'abc' and FOO = 'bcd'\";\n ASTJexlScript script = JexlASTHelper.parseJexlQuery(originalQuery);\n \n Assert.assertEquals(2, DepthVisitor.getDepth(script, 3));\n Assert.assertEquals(2, Dep...
{ "fields": [ { "declarator": "maxDepth = 100", "modifier": "private", "original_string": "private int maxDepth = 100;", "type": "int", "var_name": "maxDepth" } ], "file": "warehouse/query-core/src/main/java/datawave/query/jexl/visitors/DepthVisitor.java", "identifier": "De...
{ "body": "public static int getDepth(JexlNode root, int maxDepth) {\n DepthVisitor vis = new DepthVisitor(maxDepth);\n Depth depth = new Depth();\n root.jjtAccept(vis, depth);\n return depth.getMaxDepth();\n }", "class_method_signature": "DepthVisitor.getDepth(JexlNode root, int maxD...
{ "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_37
{ "fields": [], "file": "warehouse/ingest-core/src/test/java/datawave/ingest/util/ResourceAvailabilityUtilTest.java", "identifier": "ResourceAvailabilityUtilTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testIsDiskAvailable_DefaultPath() {\n // Create test input\n float reasonableMinAvailability = 0.0f;\n float unreasonableMinAvailability = 1.01f;\n \n // Run the test\n boolean result1 = ResourceAvailabilityUtil.isDiskAvailable(\"/\", reasona...
{ "fields": [ { "declarator": "LOGGED_EXCEPTIONS = new HashSet<>(0)", "modifier": "private static", "original_string": "private static Set<String> LOGGED_EXCEPTIONS = new HashSet<>(0);", "type": "Set<String>", "var_name": "LOGGED_EXCEPTIONS" }, { "declarator": "ROOT_PAT...
{ "body": "public static boolean isDiskAvailable(float minPercentageAvailable) {\n return isDiskAvailable(ROOT_PATH, minPercentageAvailable);\n }", "class_method_signature": "ResourceAvailabilityUtil.isDiskAvailable(float minPercentageAvailable)", "constructor": false, "full_signature": "public static...
{ "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_604
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/util/GeoWaveUtilsTest.java", "identifier": "GeoWaveUtilsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void optimizeByteArrayRangesTest() throws Exception {\n String wktString = \"POLYGON((-10 -10, 10 -10, 10 10, -10 10, -10 -10))\";\n Geometry geom = new WKTReader().read(wktString);\n \n List<ByteArrayRange> byteArrayRanges = new ArrayList<>();\n for (Mu...
{ "fields": [], "file": "warehouse/query-core/src/main/java/datawave/query/util/GeoWaveUtils.java", "identifier": "GeoWaveUtils", "interfaces": "", "methods": [ { "class_method_signature": "GeoWaveUtils.initLongBuffer(ByteBuffer longBuffer)", "constructor": false, "full_signature": "priv...
{ "body": "public static List<ByteArrayRange> optimizeByteArrayRanges(Geometry queryGeometry, List<ByteArrayRange> byteArrayRanges, int rangeSplitThreshold,\n double maxRangeOverlap) {\n return optimizeByteArrayRanges(queryGeometry, byteArrayRanges, rangeSplitThreshold, maxRangeOverlap, null...
{ "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_254
{ "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 testNR() throws ParseException {\n ASTJexlScript query = JexlASTHelper.parseJexlQuery(\"!(F1 !~ 'v1')\");\n visitor.visit(query, null);\n Assert.assertEquals(\"(F1 =~ 'v1')\", JexlStringBuildingVisitor.buildQuery(query));\n }", "class_method_signature": "Pus...
{ "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": "@Override\n public Object visit(ASTNotNode node, Object data) {\n // if there is already a negation passed down it should negate this node and continue down the tree to check for other negations\n if (data != null && ((NegationState) data).isNegated()) {\n JexlNode nextNode = dr...
{ "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_487
{ "fields": [ { "declarator": "logAppender", "modifier": "private static", "original_string": "private static TestLogAppender logAppender;", "type": "TestLogAppender", "var_name": "logAppender" } ], "file": "warehouse/query-core/src/test/java/datawave/query/jexl/visitors/Quer...
{ "body": "@Test\n public void andTrueTest() throws ParseException {\n String query = \"true && !(_NOFIELD_ == 'z')\";\n ASTJexlScript script = JexlASTHelper.parseJexlQuery(query);\n Assert.assertEquals(QueryPruningVisitor.TruthState.TRUE, QueryPruningVisitor.getState(script));\n \n ...
{ "fields": [ { "declarator": "log = Logger.getLogger(QueryPruningVisitor.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(QueryPruningVisitor.class);", "type": "Logger", "var_name": "log" }, { "declarat...
{ "body": "public static TruthState getState(JexlNode node) {\n QueryPruningVisitor visitor = new QueryPruningVisitor(false);\n return (TruthState) node.jjtAccept(visitor, null);\n }", "class_method_signature": "QueryPruningVisitor.getState(JexlNode node)", "constructor": false, "full_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_192
{ "fields": [ { "declarator": "DEFAULT_PARTITION = 3", "modifier": "public static final", "original_string": "public static final int DEFAULT_PARTITION = 3;", "type": "int", "var_name": "DEFAULT_PARTITION" }, { "declarator": "NUM_REDUCERS = 100", "modifier": "publ...
{ "body": "@Test\n public void testValidateNoOverrides() throws Exception {\n List<String> result = new PartitionerCache(conf).validatePartitioners(new String[] {\"table1\", \"table2\"}, new Job(conf));\n Assert.assertEquals(\"None of the tables were configured, so the overrides list should be empty\...
{ "fields": [ { "declarator": "log = Logger.getLogger(DelegatingPartitioner.class)", "modifier": "protected static final", "original_string": "protected static final Logger log = Logger.getLogger(DelegatingPartitioner.class);", "type": "Logger", "var_name": "log" }, { "...
{ "body": "public List<String> validatePartitioners(String[] tableNames, Job job) {\n ArrayList<String> validTableNames = new ArrayList<>();\n for (String tableName : tableNames) {\n if (hasPartitionerOverride(new Text(tableName))) {\n try {\n Partitioner<Bul...
{ "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_468
{ "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 testRegexHeadTailNegation() throws Exception {\n String originalQuery = \"FOO !~ '.*abc'\";\n ASTJexlScript script = JexlASTHelper.parseJexlQuery(originalQuery);\n final Map<String,ExpressionFilter> filter = EventDataQueryExpressionVisitor.getExpressionFilters(sc...
{ "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_891
{ "fields": [ { "declarator": "log = Logger.getLogger(TokenTtlTrieTest.class)", "modifier": "public static", "original_string": "public static Logger log = Logger.getLogger(TokenTtlTrieTest.class);", "type": "Logger", "var_name": "log" }, { "declarator": "BENCHMARK_SIZE...
{ "body": "@Test\n public void testParseAndMerge() {\n String initial = \"\\\"foo\\\" : 1ms\\n\" + \"\\\"bar\\\" : 3ms\\n\" + \"\\\"baz\\\" : 5ms\\n\" + \"\\\"zip\\\" : 7ms\\n\";\n \n String override = \"\\\"bar\\\" : 5ms\\n\" + \"\\\"zip\\\" : 9ms\\n\";\n \n TokenTtlTrie trie = ...
{ "fields": [ { "declarator": "log = Logger.getLogger(TokenTtlTrie.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(TokenTtlTrie.class);", "type": "Logger", "var_name": "log" }, { "declarator": "DELIMITE...
{ "body": "public Long scan(byte[] rawString) {\n int bestPriority = Integer.MAX_VALUE;\n float ttl = 0;\n int curState = 0;\n for (byte b : rawString) {\n short charClass = charClasses[0xff & (int) b];\n if (curState == REJECT_TOKEN) {\n if (charClass ...
{ "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_21
{ "fields": [ { "declarator": "SHARD = \"20121002_1\"", "modifier": "private static final", "original_string": "private static final String SHARD = \"20121002_1\";", "type": "String", "var_name": "SHARD" }, { "declarator": "FIELD_TO_AGGREGATE = \"UUID\"", "modifie...
{ "body": "@Test(expected = NullPointerException.class)\n public void testNullEnvironmentWithInit() throws IOException {\n Map<String,String> options = Maps.newHashMap();\n options.put(PropogatingIterator.AGGREGATOR_DEFAULT, GlobalIndexUidAggregator.class.getCanonicalName());\n new Propogating...
{ "fields": [ { "declarator": "ATTRIBUTE_NAME = \"agg\"", "modifier": "public static final", "original_string": "public static final String ATTRIBUTE_NAME = \"agg\";", "type": "String", "var_name": "ATTRIBUTE_NAME" }, { "declarator": "ATTRIBUTE_DESCRIPTION = \"Aggregato...
{ "body": "@Override\n public void init(SortedKeyValueIterator<Key,Value> source, Map<String,String> options, IteratorEnvironment env) throws IOException {\n if (null != source)\n this.iterator = source.deepCopy(env);\n else\n this.iterator = null;\n this.env = env;\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_307
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/jexl/visitors/DepthVisitorTest.java", "identifier": "DepthVisitorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void test() throws Exception {\n String originalQuery = \"FOO == 'abc'\";\n ASTJexlScript script = JexlASTHelper.parseJexlQuery(originalQuery);\n \n Assert.assertEquals(1, DepthVisitor.getDepth(script, 2));\n Assert.assertEquals(1, DepthVisitor.getDepth(...
{ "fields": [ { "declarator": "maxDepth = 100", "modifier": "private", "original_string": "private int maxDepth = 100;", "type": "int", "var_name": "maxDepth" } ], "file": "warehouse/query-core/src/main/java/datawave/query/jexl/visitors/DepthVisitor.java", "identifier": "De...
{ "body": "public static int getDepth(JexlNode root, int maxDepth) {\n DepthVisitor vis = new DepthVisitor(maxDepth);\n Depth depth = new Depth();\n root.jjtAccept(vis, depth);\n return depth.getMaxDepth();\n }", "class_method_signature": "DepthVisitor.getDepth(JexlNode root, int maxD...
{ "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_757
{ "fields": [ { "declarator": "queryParser", "modifier": "private", "original_string": "private LuceneQueryParser queryParser;", "type": "LuceneQueryParser", "var_name": "queryParser" } ], "file": "warehouse/query-core/src/test/java/datawave/query/language/parser/lucene/TestL...
{ "body": "@Test(expected = ParseException.class)\n public void testParseExceptionNotEnoughParens() throws ParseException {\n queryParser.parse(\"(this AND isbadquery\");\n }", "class_method_signature": "TestLuceneQueryParser.testParseExceptionNotEnoughParens()", "constructor": false, "full_signatu...
{ "fields": [ { "declarator": "log = Logger.getLogger(LuceneQueryParser.class.getName())", "modifier": "private static", "original_string": "private static Logger log = Logger.getLogger(LuceneQueryParser.class.getName());", "type": "Logger", "var_name": "log" }, { "decl...
{ "body": "@Override\n public datawave.query.language.tree.QueryNode parse(String query) throws ParseException {\n query = query.replaceAll(\"\\\\u0093\", \"\\\"\"); // replace open smart quote 147\n query = query.replaceAll(\"\\\\u0094\", \"\\\"\"); // replace close smart quote 148\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_242
{ "fields": [], "file": "warehouse/common/src/test/java/datawave/common/io/FilesTest.java", "identifier": "FilesTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testMvNotDestExists() throws Exception {\n File src = mock(File.class);\n File dest = mock(File.class);\n File parent = mock(File.class);\n expect(src.exists()).andReturn(true).anyTimes();\n expect(src.isDirectory()).andReturn(false).anyTimes();\n ...
{ "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 mv(final String src, final String dest) {\n if (src == null || dest == null)\n throw new IllegalArgumentException(NULL_PARAMS);\n return mv(new File(src), new File(dest));\n }", "class_method_signature": "Files.mv(final String src, final String dest)", "...
{ "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_612
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/util/GeoWaveUtilsTest.java", "identifier": "GeoWaveUtilsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void positionToGeometryTest() throws Exception {\n // String\n Geometry geom = GeoWaveUtils.positionToGeometry(\"00\");\n Geometry expectedGeom = new WKTReader().read(\"POLYGON((-180 -90, -180 90, 180 90, 180 -90, -180 -90))\");\n Assert.assertEquals(expectedGe...
{ "fields": [], "file": "warehouse/query-core/src/main/java/datawave/query/util/GeoWaveUtils.java", "identifier": "GeoWaveUtils", "interfaces": "", "methods": [ { "class_method_signature": "GeoWaveUtils.initLongBuffer(ByteBuffer longBuffer)", "constructor": false, "full_signature": "priv...
{ "body": "public static Geometry positionToGeometry(String geohash) {\n return positionToGeometry(geohash, null);\n }", "class_method_signature": "GeoWaveUtils.positionToGeometry(String geohash)", "constructor": false, "full_signature": "public static Geometry positionToGeometry(String geohash)", "...
{ "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_491
{ "fields": [ { "declarator": "logAppender", "modifier": "private static", "original_string": "private static TestLogAppender logAppender;", "type": "TestLogAppender", "var_name": "logAppender" } ], "file": "warehouse/query-core/src/test/java/datawave/query/jexl/visitors/Quer...
{ "body": "@Test\n public void notFalseTest() throws ParseException {\n String query = \"!false\";\n ASTJexlScript script = JexlASTHelper.parseJexlQuery(query);\n Assert.assertEquals(QueryPruningVisitor.TruthState.TRUE, QueryPruningVisitor.getState(script));\n \n Assert.assertEqu...
{ "fields": [ { "declarator": "log = Logger.getLogger(QueryPruningVisitor.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(QueryPruningVisitor.class);", "type": "Logger", "var_name": "log" }, { "declarat...
{ "body": "public static TruthState getState(JexlNode node) {\n QueryPruningVisitor visitor = new QueryPruningVisitor(false);\n return (TruthState) node.jjtAccept(visitor, null);\n }", "class_method_signature": "QueryPruningVisitor.getState(JexlNode node)", "constructor": false, "full_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_868
{ "fields": [ { "declarator": "builder", "modifier": "", "original_string": "UIDBuilder<UID> builder;", "type": "UIDBuilder<UID>", "var_name": "builder" }, { "declarator": "data = \"20100901: the quick brown fox jumped over the lazy dog\"", "modifier": "private", ...
{ "body": "@Test\n public void testWritable() throws IOException {\n UID a = builder.newId(data.getBytes(), (Date) null);\n \n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n DataOutputStream out = new DataOutputStream(baos);\n a.write(out);\n out.close();\n ...
{ "fields": [ { "declarator": "serialVersionUID = 1856715886248436235L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = 1856715886248436235L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "TOO_B...
{ "body": "@Override\n public void readFields(final DataInput in) throws IOException {\n final SnowflakeUID input = SnowflakeUID.parse(in.readUTF());\n this.snowflake = input.snowflake;\n this.extra = input.extra;\n }", "class_method_signature": "SnowflakeUID.readFields(final DataInput in...
{ "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_887
{ "fields": [ { "declarator": "VISIBILITY_PATTERN = \"MY_VIS\"", "modifier": "private static final", "original_string": "private static final String VISIBILITY_PATTERN = \"MY_VIS\";", "type": "String", "var_name": "VISIBILITY_PATTERN" }, { "declarator": "ONE_SEC = 1000"...
{ "body": "@Test\n public void testIterEnvNotLostOnDeepCopy() {\n EditableAccumuloConfiguration conf = new EditableAccumuloConfiguration(AccumuloConfiguration.getDefaultConfiguration());\n conf.put(\"table.custom.isindextable\", \"true\");\n iterEnv.setConf(conf);\n \n long tenSe...
{ "fields": [ { "declarator": "OPTION_PREFIX = \"field.\"", "modifier": "public static final", "original_string": "public static final String OPTION_PREFIX = \"field.\";", "type": "String", "var_name": "OPTION_PREFIX" }, { "declarator": "cvOrFilter = new ColumnVisibilit...
{ "body": "public void init(FilterOptions options) {\n init(options, null);\n }", "class_method_signature": "FieldAgeOffFilter.init(FilterOptions options)", "constructor": false, "full_signature": "public void init(FilterOptions options)", "identifier": "init", "invocations": [ "init" ], "...
{ "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_184
{ "fields": [ { "declarator": "JOB_ID = \"job_201109071404_1\"", "modifier": "private static final", "original_string": "private static final String JOB_ID = \"job_201109071404_1\";", "type": "String", "var_name": "JOB_ID" }, { "declarator": "filenames = new ArrayList<>...
{ "body": "@Test\n public void testGetCompressionType() {\n \n MultiRFileOutputFormatterTest.logger.info(\"testGetCompressionType called...\");\n \n try {\n \n Configuration conf = createMockConfiguration();\n String expected = \"snappy\";\n M...
{ "fields": [ { "declarator": "log = Logger.getLogger(MultiRFileOutputFormatter.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(MultiRFileOutputFormatter.class);", "type": "Logger", "var_name": "log" }, { ...
{ "body": "protected static String getCompressionType(Configuration conf) {\n return conf.get(COMPRESSION_TYPE, \"gz\");\n }", "class_method_signature": "MultiRFileOutputFormatter.getCompressionType(Configuration conf)", "constructor": false, "full_signature": "protected static String getCompressionTy...
{ "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_700
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/tables/async/RangeDefinitionTest.java", "identifier": "RangeDefinitionTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void allDocSpecificRangeTest() {\n List<Range> ranges = new ArrayList<>();\n ranges.add(new Range(new Key(\"20190101_0\", \"dataType\\u0000some-doc-id\"), false, new Key(\"20190101_0\", \"dataType\\u0000some-doc-id\\u0000\"), false));\n ranges.add(new Range(new Key(\"...
{ "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 allDocSpecific(Collection<Range> ranges) {\n for (Range range : ranges) {\n if (!isDocSpecific(range))\n return false;\n }\n return true;\n }", "class_method_signature": "RangeDefinition.allDocSpecific(Collection<Range> ranges)", "...
{ "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_350
{ "fields": [ { "declarator": "config", "modifier": "private", "original_string": "private ShardQueryConfiguration config;", "type": "ShardQueryConfiguration", "var_name": "config" }, { "declarator": "helper", "modifier": "private", "original_string": "priva...
{ "body": "@Test\n public void testMultiNormalizedLiteralOpLiteral() throws ParseException {\n // No changed expected\n String original = \"'bar' == 'bar'\";\n expandTerms(original, original);\n }", "class_method_signature": "ExpandMultiNormalizedTermsTest.testMultiNormalizedLiteralOpLite...
{ "fields": [ { "declarator": "log = ThreadConfigurableLogger.getLogger(ExpandMultiNormalizedTerms.class)", "modifier": "private static final", "original_string": "private static final Logger log = ThreadConfigurableLogger.getLogger(ExpandMultiNormalizedTerms.class);", "type": "Logger", ...
{ "body": "@SuppressWarnings(\"unchecked\")\n public static <T extends JexlNode> T expandTerms(ShardQueryConfiguration config, MetadataHelper helper, T script) {\n ExpandMultiNormalizedTerms visitor = new ExpandMultiNormalizedTerms(config, helper);\n \n if (null == visitor.config.getQueryField...
{ "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_76
{ "fields": [ { "declarator": "logger = Logger.getLogger(DateIndexTableConfigHelperTest.class)", "modifier": "private static final", "original_string": "private static final Logger logger = Logger.getLogger(DateIndexTableConfigHelperTest.class);", "type": "Logger", "var_name": "logge...
{ "body": "@Test\n public void testConfigureDateIndexTable() throws AccumuloSecurityException, AccumuloException, TableNotFoundException {\n \n DateIndexTableConfigHelperTest.logger.info(\"DateIndexTableConfigHelperTest.testConfigureDateIndexTable called.\");\n \n try {\n \n ...
{ "fields": [ { "declarator": "log", "modifier": "protected", "original_string": "protected Logger log;", "type": "Logger", "var_name": "log" }, { "declarator": "conf", "modifier": "protected", "original_string": "protected Configuration conf;", "type"...
{ "body": "protected void configureDateIndexTable(TableOperations tops) throws AccumuloException, AccumuloSecurityException, TableNotFoundException {\n // Add the DATE aggregator\n for (IteratorScope scope : IteratorScope.values()) {\n String stem = String.format(\"%s%s.%s\", Property.TABLE_I...
{ "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_99
{ "fields": [ { "declarator": "COLUMN_FAMILY = new Text(\"yuuuup\")", "modifier": "public static final", "original_string": "public static final Text COLUMN_FAMILY = new Text(\"yuuuup\");", "type": "Text", "var_name": "COLUMN_FAMILY" }, { "declarator": "date = 123456789...
{ "body": "@Test\n public void testAssignments() {\n MetadataWithMostRecentDate counters = new MetadataWithMostRecentDate(COLUMN_FAMILY);\n counters.createOrUpdate(fieldName, dataTypeName, normalizerClassName, date);\n MetadataWithMostRecentDate.MostRecentEventDateAndKeyComponents entry = getO...
{ "fields": [ { "declarator": "IGNORED_NORMALIZER_CLASS = null", "modifier": "public static final", "original_string": "public static final String IGNORED_NORMALIZER_CLASS = null;", "type": "String", "var_name": "IGNORED_NORMALIZER_CLASS" }, { "declarator": "columnFamil...
{ "body": "public void createOrUpdate(String fieldName, String dataTypeOutputName, String normalizerClassName, long eventDate) {\n String identifier = createKey(fieldName, dataTypeOutputName, normalizerClassName);\n MostRecentEventDateAndKeyComponents value = mostRecentDates.get(identifier);\n if...
{ "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_645
{ "fields": [ { "declarator": "row = \"20190314\"", "modifier": "private final", "original_string": "private final String row = \"20190314\";", "type": "String", "var_name": "row" }, { "declarator": "field = \"FIELD_A\"", "modifier": "private final", "origin...
{ "body": "@Test\n public void testParseFieldAndValueFromTF() {\n \n // Same byte sequence is expected in each case\n ByteSequence expected = new ArrayByteSequence(field + '\\u0000' + value);\n \n Key tfKey = buildTFKey(rootId);\n ByteSequence parsed = TLD.parseFieldAndVal...
{ "fields": [], "file": "warehouse/query-core/src/main/java/datawave/query/tld/TLD.java", "identifier": "TLD", "interfaces": "", "methods": [ { "class_method_signature": "TLD.TLD()", "constructor": true, "full_signature": "private TLD()", "identifier": "TLD", "modifiers": "p...
{ "body": "public static ByteSequence parseFieldAndValueFromTF(ByteSequence cq) {\n ArrayList<Integer> nulls = instancesOf(0, cq, 2);\n ArrayList<Integer> otherNulls = lastInstancesOf(0, cq, 1);\n final int startFn = otherNulls.get(0) + 1, stopFn = cq.length();\n final int startFv = nulls....
{ "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_215
{ "fields": [ { "declarator": "jsonFile = \"/input/flattener-test.json\"", "modifier": "protected static", "original_string": "protected static String jsonFile = \"/input/flattener-test.json\";", "type": "String", "var_name": "jsonFile" }, { "declarator": "json", ...
{ "body": "@Test\n public void testFlattenGROUPED_AND_NORMAL() throws Exception {\n JsonObjectFlattener flattener = new JsonObjectFlattenerImpl.Builder().flattenMode(FlattenMode.GROUPED_AND_NORMAL).occurrenceInGroupDelimiter(\"_\")\n .pathDelimiter(\".\").mapKeyValueNormalizer(noOpNor...
{ "fields": [ { "declarator": "DEFAULT_PATH_DELIMITER = \".\"", "modifier": "public static final", "original_string": "public static final String DEFAULT_PATH_DELIMITER = \".\";", "type": "String", "var_name": "DEFAULT_PATH_DELIMITER" }, { "declarator": "DEFAULT_OCCURRE...
{ "body": "@Override\n public Multimap<String,String> flatten(JsonObject object) throws IllegalStateException {\n Multimap<String,String> map = HashMultimap.create();\n flatten(object, map);\n return map;\n }", "class_method_signature": "JsonObjectFlattenerImpl.flatten(JsonObject object)"...
{ "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_995
{ "fields": [ { "declarator": "formatter = new DateFormatter(null)", "modifier": "private", "original_string": "private DateFormatter formatter = new DateFormatter(null);", "type": "DateFormatter", "var_name": "formatter" } ], "file": "web-services/common-util/src/test/java/d...
{ "body": "@Test(expected = RuntimeException.class)\n public void testDateFormatterFail1() {\n formatter.fromString(\"20120101120000\");\n }", "class_method_signature": "DateFormatterTest.testDateFormatterFail1()", "constructor": false, "full_signature": "@Test(expected = RuntimeException.class) pu...
{ "fields": [ { "declarator": "log = Logger.getLogger(this.getClass())", "modifier": "private", "original_string": "private Logger log = Logger.getLogger(this.getClass());", "type": "Logger", "var_name": "log" }, { "declarator": "defaultTime = \"000000\"", "modifi...
{ "body": "@Override\n public Date fromString(String s) {\n Date d;\n synchronized (DateFormatter.dateFormat) {\n String str = s;\n if (str.equals(\"+24Hours\")) {\n d = new Date(new Date().getTime() + 86400000);\n log.debug(\"Param passed in was '+...
{ "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_583
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/jexl/functions/GroupingRequiredFilterFunctionsTest.java", "identifier": "GroupingRequiredFilterFunctionsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testAtomValuesMatch() {\n // @formatter:off\n // should be 3 matches for 'bar', one in each arg\n Assert.assertTrue(GroupingRequiredFilterFunctions.atomValuesMatch(\n makeValueTuple(\"ALPHA.1,BAR,bar\"),\n makeValueTuple(\"BETA.1,BAR...
{ "fields": [ { "declarator": "GROUPING_REQUIRED_FUNCTION_NAMESPACE = \"grouping\"", "modifier": "public static final", "original_string": "public static final String GROUPING_REQUIRED_FUNCTION_NAMESPACE = \"grouping\";", "type": "String", "var_name": "GROUPING_REQUIRED_FUNCTION_NAME...
{ "body": "public static Collection<ValueTuple> atomValuesMatch(Object... fields) {\n List<Iterable<?>> iterableFields = new ArrayList<>();\n \n for (Object field : fields) {\n if (field instanceof Iterable == false) {\n field = Collections.singleton(field);\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_429
{ "fields": [ { "declarator": "GEO_FIELD_QUERY = \"(((GEO_FIELD >= '0208' && GEO_FIELD <= '020d') || GEO_FIELD == '0202') && (geowave:intersects(GEO_FIELD, 'POLYGON((10 10, -10 10, -10 -10, 10 -10, 10 10 ))')))\"", "modifier": "private static final", "original_string": "private static final Stri...
{ "body": "@Test\n public void testCombinedFields() throws Exception {\n ASTJexlScript queryTree = JexlASTHelper.parseJexlQuery(COMBINED_FIELDS_QUERY);\n \n GeoWaveQueryInfo queryInfo = new GeoWaveQueryInfoVisitor(Arrays.asList(\"GEO_FIELD\", \"GEOM_FIELD\", \"POINT_FIELD\")).parseGeoWaveQuery...
{ "fields": [ { "declarator": "geoFields", "modifier": "private final", "original_string": "private final Collection<String> geoFields;", "type": "Collection<String>", "var_name": "geoFields" } ], "file": "warehouse/query-core/src/main/java/datawave/query/jexl/visitors/GeoWav...
{ "body": "public GeoWaveQueryInfo parseGeoWaveQueryInfo(JexlNode script) {\n GeoWaveQueryInfo queryInfo = new GeoWaveQueryInfo();\n script.childrenAccept(this, queryInfo);\n return queryInfo;\n }", "class_method_signature": "GeoWaveQueryInfoVisitor.parseGeoWaveQueryInfo(JexlNode 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_994
{ "fields": [ { "declarator": "interceptor = null", "modifier": "private", "original_string": "private RequiredInterceptor interceptor = null;", "type": "RequiredInterceptor", "var_name": "interceptor" }, { "declarator": "ctx = null", "modifier": "@Mock\n priva...
{ "body": "@Test\n public void testRequiredValidValuesWithSecondValidValue() throws Exception {\n method = TestClass.class.getMethod(\"testValidValudesMethod\", String.class);\n // String parameter\n EasyMock.expect(ctx.getParameters()).andReturn(new String[] {\"bar\"});\n EasyMock.expe...
{ "fields": [ { "declarator": "log = Logger.getLogger(this.getClass())", "modifier": "private", "original_string": "private Logger log = Logger.getLogger(this.getClass());", "type": "Logger", "var_name": "log" } ], "file": "web-services/common-util/src/main/java/datawave/inte...
{ "body": "@AroundInvoke\n public Object checkRequiredParameters(InvocationContext ctx) throws Exception {\n // Check to see if any of the parameters are required\n Object[] methodParams = ctx.getParameters();\n if (null != methodParams && methodParams.length > 0) {\n Annotation[][]...
{ "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_582
{ "fields": [ { "declarator": "evaluator", "modifier": "private", "original_string": "private WrappedContentOrderedEvaluator evaluator;", "type": "WrappedContentOrderedEvaluator", "var_name": "evaluator" } ], "file": "warehouse/query-core/src/test/java/datawave/query/jexl/fun...
{ "body": "@Test\n public void evaluate_livePruneTest() {\n List<List<TermWeightPosition>> offsets = new ArrayList<>();\n List<TermWeightPosition> offsetsA = asList(1, 3);\n List<TermWeightPosition> offsetsB = asList(2, 4);\n List<TermWeightPosition> offsetsC = asList(5, 6);\n \n...
{ "fields": [ { "declarator": "log = Logger.getLogger(ContentOrderedEvaluator.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(ContentOrderedEvaluator.class);", "type": "Logger", "var_name": "log" }, { "...
{ "body": "@Override\n protected boolean evaluate(List<List<TermWeightPosition>> offsets) {\n if (offsets.isEmpty() || offsets.size() < terms.length) {\n return false;\n }\n \n NavigableSet<EvaluateTermPosition> termPositions = new TreeSet<>();\n int direction = FORWAR...
{ "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_428
{ "fields": [ { "declarator": "GEO_FIELD_QUERY = \"(((GEO_FIELD >= '0208' && GEO_FIELD <= '020d') || GEO_FIELD == '0202') && (geowave:intersects(GEO_FIELD, 'POLYGON((10 10, -10 10, -10 -10, 10 -10, 10 10 ))')))\"", "modifier": "private static final", "original_string": "private static final Stri...
{ "body": "@Test(expected = NumberFormatException.class)\n public void testOtherField() throws Exception {\n ASTJexlScript queryTree = JexlASTHelper.parseJexlQuery(COMBINED_FIELDS_QUERY);\n \n new GeoWaveQueryInfoVisitor(Arrays.asList(\"NAME\")).parseGeoWaveQueryInfo(queryTree);\n }", "cl...
{ "fields": [ { "declarator": "geoFields", "modifier": "private final", "original_string": "private final Collection<String> geoFields;", "type": "Collection<String>", "var_name": "geoFields" } ], "file": "warehouse/query-core/src/main/java/datawave/query/jexl/visitors/GeoWav...
{ "body": "public GeoWaveQueryInfo parseGeoWaveQueryInfo(JexlNode script) {\n GeoWaveQueryInfo queryInfo = new GeoWaveQueryInfo();\n script.childrenAccept(this, queryInfo);\n return queryInfo;\n }", "class_method_signature": "GeoWaveQueryInfoVisitor.parseGeoWaveQueryInfo(JexlNode 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_701
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/tables/async/RangeDefinitionTest.java", "identifier": "RangeDefinitionTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void allDocSpecificWithDayRangeTest() {\n List<Range> ranges = new ArrayList<>();\n ranges.add(new Range(new Key(\"20190101_0\", \"dataType\\u0000some-doc-id\"), false, new Key(\"20190101_0\", \"dataType\\u0000some-doc-id\\u0000\"), false));\n ranges.add(new Range(new...
{ "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 allDocSpecific(Collection<Range> ranges) {\n for (Range range : ranges) {\n if (!isDocSpecific(range))\n return false;\n }\n return true;\n }", "class_method_signature": "RangeDefinition.allDocSpecific(Collection<Range> ranges)", "...
{ "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_351
{ "fields": [ { "declarator": "config", "modifier": "private", "original_string": "private ShardQueryConfiguration config;", "type": "ShardQueryConfiguration", "var_name": "config" }, { "declarator": "helper", "modifier": "private", "original_string": "priva...
{ "body": "@Test\n public void testNormalizedFunctions() throws ParseException {\n Multimap<String,Type<?>> dataTypes = HashMultimap.create();\n dataTypes.putAll(\"FOO\", Sets.newHashSet(new LcNoDiacriticsType(), new LcType()));\n \n helper.setIndexedFields(dataTypes.keySet());\n ...
{ "fields": [ { "declarator": "log = ThreadConfigurableLogger.getLogger(ExpandMultiNormalizedTerms.class)", "modifier": "private static final", "original_string": "private static final Logger log = ThreadConfigurableLogger.getLogger(ExpandMultiNormalizedTerms.class);", "type": "Logger", ...
{ "body": "@SuppressWarnings(\"unchecked\")\n public static <T extends JexlNode> T expandTerms(ShardQueryConfiguration config, MetadataHelper helper, T script) {\n ExpandMultiNormalizedTerms visitor = new ExpandMultiNormalizedTerms(config, helper);\n \n if (null == visitor.config.getQueryField...
{ "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_77
{ "fields": [ { "declarator": "logger = Logger.getLogger(MetadataTableConfigHelperTest.class)", "modifier": "private static final", "original_string": "private static final Logger logger = Logger.getLogger(MetadataTableConfigHelperTest.class);", "type": "Logger", "var_name": "logger"...
{ "body": "@Test\n public void testSetupNothingDefinedInConfiguration() {\n \n MetadataTableConfigHelperTest.logger.info(\"MetadataTableConfigHelperTest.testSetupNothingDefinedInConfiguration called.\");\n \n try {\n \n WrappedMetadataTableConfigHelper uut = new Wr...
{ "fields": [ { "declarator": "log", "modifier": "protected", "original_string": "protected Logger log;", "type": "Logger", "var_name": "log" }, { "declarator": "conf", "modifier": "protected", "original_string": "protected Configuration conf;", "type"...
{ "body": "@Override\n public void setup(String tableName, Configuration config, Logger log) throws IllegalArgumentException {\n \n this.log = log;\n this.conf = config;\n this.tableName = conf.get(ShardedDataTypeHandler.METADATA_TABLE_NAME, null);\n \n if (this.tableName ...
{ "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_98
{ "fields": [ { "declarator": "COLUMN_FAMILY = new Text(\"yuuuup\")", "modifier": "public static final", "original_string": "public static final Text COLUMN_FAMILY = new Text(\"yuuuup\");", "type": "Text", "var_name": "COLUMN_FAMILY" }, { "declarator": "date = 123456789...
{ "body": "@Test\n public void testReplacement() {\n MetadataWithMostRecentDate counters = new MetadataWithMostRecentDate(COLUMN_FAMILY);\n counters.createOrUpdate(fieldName, dataTypeName, normalizerClassName, 123L);\n counters.createOrUpdate(fieldName, dataTypeName, normalizerClassName, date)...
{ "fields": [ { "declarator": "IGNORED_NORMALIZER_CLASS = null", "modifier": "public static final", "original_string": "public static final String IGNORED_NORMALIZER_CLASS = null;", "type": "String", "var_name": "IGNORED_NORMALIZER_CLASS" }, { "declarator": "columnFamil...
{ "body": "public void createOrUpdate(String fieldName, String dataTypeOutputName, String normalizerClassName, long eventDate) {\n String identifier = createKey(fieldName, dataTypeOutputName, normalizerClassName);\n MostRecentEventDateAndKeyComponents value = mostRecentDates.get(identifier);\n if...
{ "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_644
{ "fields": [ { "declarator": "row = \"20190314\"", "modifier": "private final", "original_string": "private final String row = \"20190314\";", "type": "String", "var_name": "row" }, { "declarator": "field = \"FIELD_A\"", "modifier": "private final", "origin...
{ "body": "@Test\n public void testParseFieldAndValueFromFI() {\n Key fiKey = buildFiKey(rootId);\n ByteSequence parsed = TLD.parseFieldAndValueFromFI(fiKey.getColumnFamilyData(), fiKey.getColumnQualifierData());\n ByteSequence expected = new ArrayByteSequence(field + '\\u0000' + value);\n ...
{ "fields": [], "file": "warehouse/query-core/src/main/java/datawave/query/tld/TLD.java", "identifier": "TLD", "interfaces": "", "methods": [ { "class_method_signature": "TLD.TLD()", "constructor": true, "full_signature": "private TLD()", "identifier": "TLD", "modifiers": "p...
{ "body": "public static ByteSequence parseFieldAndValueFromFI(ByteSequence cf, ByteSequence cq) {\n ArrayList<Integer> nulls = instancesOf(0, cf, 1);\n final int startFn = nulls.get(0) + 1, stopFn = cf.length();\n \n nulls = lastInstancesOf(0, cq, 2);\n final int startFv = 0, stopF...
{ "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_214
{ "fields": [ { "declarator": "jsonFile = \"/input/flattener-test.json\"", "modifier": "protected static", "original_string": "protected static String jsonFile = \"/input/flattener-test.json\";", "type": "String", "var_name": "jsonFile" }, { "declarator": "json", ...
{ "body": "@Test\n public void testFlattenWithGroupingContext() throws Exception {\n JsonObjectFlattener flattener = new JsonObjectFlattenerImpl.Builder().flattenMode(FlattenMode.GROUPED).occurrenceInGroupDelimiter(\"#\")\n .mapKeyValueNormalizer(noOpNormalizer).build();\n \n ...
{ "fields": [ { "declarator": "DEFAULT_PATH_DELIMITER = \".\"", "modifier": "public static final", "original_string": "public static final String DEFAULT_PATH_DELIMITER = \".\";", "type": "String", "var_name": "DEFAULT_PATH_DELIMITER" }, { "declarator": "DEFAULT_OCCURRE...
{ "body": "@Override\n public Multimap<String,String> flatten(JsonObject object) throws IllegalStateException {\n Multimap<String,String> map = HashMultimap.create();\n flatten(object, map);\n return map;\n }", "class_method_signature": "JsonObjectFlattenerImpl.flatten(JsonObject object)"...
{ "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_490
{ "fields": [ { "declarator": "logAppender", "modifier": "private static", "original_string": "private static TestLogAppender logAppender;", "type": "TestLogAppender", "var_name": "logAppender" } ], "file": "warehouse/query-core/src/test/java/datawave/query/jexl/visitors/Quer...
{ "body": "@Test\n public void notNoFieldTest() throws ParseException {\n String query = \"_NOFIELD_ != 'a'\";\n ASTJexlScript script = JexlASTHelper.parseJexlQuery(query);\n Assert.assertEquals(QueryPruningVisitor.TruthState.FALSE, QueryPruningVisitor.getState(script));\n \n Ass...
{ "fields": [ { "declarator": "log = Logger.getLogger(QueryPruningVisitor.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(QueryPruningVisitor.class);", "type": "Logger", "var_name": "log" }, { "declarat...
{ "body": "public static TruthState getState(JexlNode node) {\n QueryPruningVisitor visitor = new QueryPruningVisitor(false);\n return (TruthState) node.jjtAccept(visitor, null);\n }", "class_method_signature": "QueryPruningVisitor.getState(JexlNode node)", "constructor": false, "full_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_869
{ "fields": [], "file": "warehouse/core/src/test/java/datawave/data/hash/UIDTest.java", "identifier": "UIDTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testBuilderCreation() {\n // Test default building, which should result in a Hash-based builder\n UIDBuilder<UID> result1 = UID.builder();\n assertSame(result1.getClass(), HashUIDBuilder.class);\n assertSame(result1, UID.builder());\n \n // T...
{ "fields": [ { "declarator": "LOGGER = Logger.getLogger(UID.class)", "modifier": "private static final", "original_string": "private static final Logger LOGGER = Logger.getLogger(UID.class);", "type": "Logger", "var_name": "LOGGER" }, { "declarator": "EMPTY_EXTRAS = {}...
{ "body": "public static UIDBuilder<UID> builder() {\n return HashUID.builder();\n }", "class_method_signature": "UID.builder()", "constructor": false, "full_signature": "public static UIDBuilder<UID> builder()", "identifier": "builder", "invocations": [ "builder" ], "modifiers": "public 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_886
{ "fields": [ { "declarator": "MILLIS_IN_DAY = 1000L * 60 * 60 * 24L", "modifier": "private static", "original_string": "private static long MILLIS_IN_DAY = 1000L * 60 * 60 * 24L;", "type": "long", "var_name": "MILLIS_IN_DAY" }, { "declarator": "VALUE = new Value()", ...
{ "body": "@Test\n public void testValidateOptions() {\n ConfigurableAgeOffFilter filter = new ConfigurableAgeOffFilter();\n Map<String,String> options = new HashMap<>();\n options.put(AgeOffConfigParams.TTL, \"1\");\n // @formatter:off\n List<String> allUnits = Arrays.asList(\n ...
{ "fields": [ { "declarator": "log = Logger.getLogger(ConfigurableAgeOffFilter.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(ConfigurableAgeOffFilter.class);", "type": "Logger", "var_name": "log" }, { ...
{ "body": "@Override\n public boolean validateOptions(Map<String,String> options) {\n try {\n Integer.parseInt(options.get(AgeOffConfigParams.TTL));\n } catch (NumberFormatException nfe) {\n log.error(\"Error initializing ConfigurableAgeOffFilter: invalid <ttl> value:\" + option...
{ "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_185
{ "fields": [ { "declarator": "JOB_ID = \"job_201109071404_1\"", "modifier": "private static final", "original_string": "private static final String JOB_ID = \"job_201109071404_1\";", "type": "String", "var_name": "JOB_ID" }, { "declarator": "filenames = new ArrayList<>...
{ "body": "@Test\n public void testSetFileType() {\n \n MultiRFileOutputFormatterTest.logger.info(\"testSetFileType called...\");\n \n try {\n \n String typeKey = String.format(\"%s.file_type\", MultiRFileOutputFormatter.class.getSimpleName());\n Configu...
{ "fields": [ { "declarator": "log = Logger.getLogger(MultiRFileOutputFormatter.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(MultiRFileOutputFormatter.class);", "type": "Logger", "var_name": "log" }, { ...
{ "body": "public static void setFileType(Configuration conf, String type) {\n if (type != null)\n conf.set(FILE_TYPE, type);\n }", "class_method_signature": "MultiRFileOutputFormatter.setFileType(Configuration conf, String type)", "constructor": false, "full_signature": "public static void...
{ "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_20
{ "fields": [ { "declarator": "SHARD = \"20121002_1\"", "modifier": "private static final", "original_string": "private static final String SHARD = \"20121002_1\";", "type": "String", "var_name": "SHARD" }, { "declarator": "FIELD_TO_AGGREGATE = \"UUID\"", "modifie...
{ "body": "@Test(expected = NullPointerException.class)\n public void testNullOptionsWithInit() throws IOException {\n Map<String,String> options = Maps.newHashMap();\n options.put(PropogatingIterator.AGGREGATOR_DEFAULT, GlobalIndexUidAggregator.class.getCanonicalName());\n IteratorEnvironment...
{ "fields": [ { "declarator": "ATTRIBUTE_NAME = \"agg\"", "modifier": "public static final", "original_string": "public static final String ATTRIBUTE_NAME = \"agg\";", "type": "String", "var_name": "ATTRIBUTE_NAME" }, { "declarator": "ATTRIBUTE_DESCRIPTION = \"Aggregato...
{ "body": "@Override\n public void init(SortedKeyValueIterator<Key,Value> source, Map<String,String> options, IteratorEnvironment env) throws IOException {\n if (null != source)\n this.iterator = source.deepCopy(env);\n else\n this.iterator = null;\n this.env = env;\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_306
{ "fields": [ { "declarator": "config", "modifier": "private", "original_string": "private ShardQueryConfiguration config;", "type": "ShardQueryConfiguration", "var_name": "config" }, { "declarator": "helper", "modifier": "private", "original_string": "priva...
{ "body": "@Test\n public void testAllOrNoneEmptyPortion() throws TableNotFoundException {\n List<JexlNode> children = new ArrayList<>();\n children.add(wrap(JexlNodeFactory.buildEQNode(\"INDEXEDFIELD\", \"v1\")));\n children.add(wrap(JexlNodeFactory.buildEQNode(\"INDEXEDFIELD\", \"v2\")));\n ...
{ "fields": [ { "declarator": "log = Logger.getLogger(ExecutableDeterminationVisitor.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(ExecutableDeterminationVisitor.class);", "type": "Logger", "var_name": "log" },...
{ "body": "public static STATE getState(JexlNode node, ShardQueryConfiguration config, MetadataHelper helper) {\n return getState(node, config, helper, false);\n }", "class_method_signature": "ExecutableDeterminationVisitor.getState(JexlNode node, ShardQueryConfiguration config, MetadataHelper helper)", ...
{ "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_756
{ "fields": [ { "declarator": "queryParser", "modifier": "private", "original_string": "private LuceneQueryParser queryParser;", "type": "LuceneQueryParser", "var_name": "queryParser" } ], "file": "warehouse/query-core/src/test/java/datawave/query/language/parser/lucene/TestL...
{ "body": "@Test(expected = ParseException.class)\n public void testParseExceptionTooManyRParens() throws ParseException {\n queryParser.parse(\"data value)\");\n }", "class_method_signature": "TestLuceneQueryParser.testParseExceptionTooManyRParens()", "constructor": false, "full_signature": "@Test...
{ "fields": [ { "declarator": "log = Logger.getLogger(LuceneQueryParser.class.getName())", "modifier": "private static", "original_string": "private static Logger log = Logger.getLogger(LuceneQueryParser.class.getName());", "type": "Logger", "var_name": "log" }, { "decl...
{ "body": "@Override\n public datawave.query.language.tree.QueryNode parse(String query) throws ParseException {\n query = query.replaceAll(\"\\\\u0093\", \"\\\"\"); // replace open smart quote 147\n query = query.replaceAll(\"\\\\u0094\", \"\\\"\"); // replace close smart quote 148\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_243
{ "fields": [], "file": "warehouse/common/src/test/java/datawave/common/io/FilesTest.java", "identifier": "FilesTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testMvDestExists() throws Exception {\n File src = mock(File.class);\n File dest = mock(File.class);\n File parent = mock(File.class);\n expect(src.exists()).andReturn(true).anyTimes();\n expect(src.isDirectory()).andReturn(false).anyTimes();\n ...
{ "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 mv(final String src, final String dest) {\n if (src == null || dest == null)\n throw new IllegalArgumentException(NULL_PARAMS);\n return mv(new File(src), new File(dest));\n }", "class_method_signature": "Files.mv(final String src, final String dest)", "...
{ "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_613
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/util/GeoWaveUtilsTest.java", "identifier": "GeoWaveUtilsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void rangeToGeometryTest() throws Exception {\n // String, String\n Geometry geom = GeoWaveUtils.rangeToGeometry(\"0100\", \"0101\");\n Geometry expectedGeom = new WKTReader().read(\"POLYGON((-180 -90, -180 0, -180 90, 0 90, 0 0, 0 -90, -180 -90))\");\n Assert....
{ "fields": [], "file": "warehouse/query-core/src/main/java/datawave/query/util/GeoWaveUtils.java", "identifier": "GeoWaveUtils", "interfaces": "", "methods": [ { "class_method_signature": "GeoWaveUtils.initLongBuffer(ByteBuffer longBuffer)", "constructor": false, "full_signature": "priv...
{ "body": "public static Geometry rangeToGeometry(String startGeohash, String endGeohash) {\n return rangeToGeometry(startGeohash, endGeohash, null);\n }", "class_method_signature": "GeoWaveUtils.rangeToGeometry(String startGeohash, String endGeohash)", "constructor": false, "full_signature": "public ...
{ "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_486
{ "fields": [ { "declarator": "logAppender", "modifier": "private static", "original_string": "private static TestLogAppender logAppender;", "type": "TestLogAppender", "var_name": "logAppender" } ], "file": "warehouse/query-core/src/test/java/datawave/query/jexl/visitors/Quer...
{ "body": "@Test\n public void combinationTest() throws ParseException {\n String query = \"F(_NOFIELD_) == 'x'\";\n ASTJexlScript script = JexlASTHelper.parseJexlQuery(query);\n Assert.assertEquals(QueryPruningVisitor.TruthState.UNKNOWN, QueryPruningVisitor.getState(script));\n \n ...
{ "fields": [ { "declarator": "log = Logger.getLogger(QueryPruningVisitor.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(QueryPruningVisitor.class);", "type": "Logger", "var_name": "log" }, { "declarat...
{ "body": "public static TruthState getState(JexlNode node) {\n QueryPruningVisitor visitor = new QueryPruningVisitor(false);\n return (TruthState) node.jjtAccept(visitor, null);\n }", "class_method_signature": "QueryPruningVisitor.getState(JexlNode node)", "constructor": false, "full_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_193
{ "fields": [ { "declarator": "DEFAULT_PARTITION = 3", "modifier": "public static final", "original_string": "public static final int DEFAULT_PARTITION = 3;", "type": "int", "var_name": "DEFAULT_PARTITION" }, { "declarator": "NUM_REDUCERS = 100", "modifier": "publ...
{ "body": "@Test\n public void testValidateWillFilterBadlyConfiguredTablesWithoutThrowingException() throws Exception {\n conf.set(PartitionerCache.PREFIX_DEDICATED_PARTITIONER + \"table1\", DelegatingPartitionerTest.AlwaysReturnOne.class.getName());\n conf.set(PartitionerCache.PREFIX_DEDICATED_PARTI...
{ "fields": [ { "declarator": "log = Logger.getLogger(DelegatingPartitioner.class)", "modifier": "protected static final", "original_string": "protected static final Logger log = Logger.getLogger(DelegatingPartitioner.class);", "type": "Logger", "var_name": "log" }, { "...
{ "body": "public List<String> validatePartitioners(String[] tableNames, Job job) {\n ArrayList<String> validTableNames = new ArrayList<>();\n for (String tableName : tableNames) {\n if (hasPartitionerOverride(new Text(tableName))) {\n try {\n Partitioner<Bul...
{ "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_469
{ "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 testIncludeRegexFunctionQuery() throws Exception {\n String originalQuery = \"filter:includeRegex(FOO, '.*23ab.*')\";\n ASTJexlScript script = JexlASTHelper.parseJexlQuery(originalQuery);\n ASTJexlScript newScript = FunctionIndexQueryExpansionVisitor.expandFuncti...
{ "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_890
{ "fields": [ { "declarator": "log = Logger.getLogger(TokenTtlTrieTest.class)", "modifier": "public static", "original_string": "public static Logger log = Logger.getLogger(TokenTtlTrieTest.class);", "type": "Logger", "var_name": "log" }, { "declarator": "BENCHMARK_SIZE...
{ "body": "@Test\n public void testParser() {\n TokenTtlTrie trie = new TokenTtlTrie.Builder().setDelimiters(\",;\".getBytes())\n .parse(\"\" + \"\\\"foo\\\":2ms\\n\" + \"\\\"b\\\\u0061r\\\":3d,\\n\" + \"\\\"b\\\\x61z\\\":4m,\\n\\n\").build();\n \n Assert.assertNull(trie...
{ "fields": [ { "declarator": "log = Logger.getLogger(TokenTtlTrie.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(TokenTtlTrie.class);", "type": "Logger", "var_name": "log" }, { "declarator": "DELIMITE...
{ "body": "public Long scan(byte[] rawString) {\n int bestPriority = Integer.MAX_VALUE;\n float ttl = 0;\n int curState = 0;\n for (byte b : rawString) {\n short charClass = charClasses[0xff & (int) b];\n if (curState == REJECT_TOKEN) {\n if (charClass ...
{ "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_740
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/language/parser/jexl/JexlNodeSetTest.java", "identifier": "JexlNodeSetTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testAdd() {\n JexlNode node1 = JexlNodeFactory.buildEQNode(\"FOO\", \"bar\");\n JexlNode node2 = JexlNodeFactory.buildEQNode(\"FOO\", \"bar\");\n JexlNode node3 = JexlNodeFactory.buildEQNode(\"FOO2\", \"bar2\");\n \n JexlNodeSet nodeSet = new JexlNo...
{ "fields": [ { "declarator": "useSourceNodeForKeys = false", "modifier": "private", "original_string": "private boolean useSourceNodeForKeys = false;", "type": "boolean", "var_name": "useSourceNodeForKeys" }, { "declarator": "nodeMap", "modifier": "protected fina...
{ "body": "@Override\n public boolean add(JexlNode node) {\n String nodeKey = buildKey(node);\n return directAdd(nodeKey, node);\n }", "class_method_signature": "JexlNodeSet.add(JexlNode node)", "constructor": false, "full_signature": "@Override public boolean add(JexlNode node)", "identif...
{ "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_310
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/jexl/visitors/DepthVisitorTest.java", "identifier": "DepthVisitorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testOr3() throws Exception {\n String originalQuery = \"FOO == 'abc' or FOO = 'bcd' or FOO = 'abcdef' or FOO = 'abcdef' or FOO = 'abcdef' or FOO = 'abcdef' or FOO = 'abcdef' or FOO = 'abcdef' or FOO = 'abcdef' or FOO = 'abcdef' or FOO = 'abcdef'\";\n ASTJexlScript scrip...
{ "fields": [ { "declarator": "maxDepth = 100", "modifier": "private", "original_string": "private int maxDepth = 100;", "type": "int", "var_name": "maxDepth" } ], "file": "warehouse/query-core/src/main/java/datawave/query/jexl/visitors/DepthVisitor.java", "identifier": "De...
{ "body": "public static int getDepth(JexlNode root, int maxDepth) {\n DepthVisitor vis = new DepthVisitor(maxDepth);\n Depth depth = new Depth();\n root.jjtAccept(vis, depth);\n return depth.getMaxDepth();\n }", "class_method_signature": "DepthVisitor.getDepth(JexlNode root, int maxD...
{ "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_36
{ "fields": [ { "declarator": "conf", "modifier": "private", "original_string": "private Configuration conf;", "type": "Configuration", "var_name": "conf" } ], "file": "warehouse/ingest-core/src/test/java/datawave/ingest/data/config/ingest/FieldNameAliaserNormalizerTest.java"...
{ "body": "@Test\n public void testSetup() {\n conf.set(\"test.data.category.index.aliases.enabled\", \"true\");\n conf.set(\"test.data.category.index.aliases\", \"FOO_1:BAR_1,BAR_2;FOO_2:BAR_3\");\n conf.set(\"test.data.category.field.aliases\", \"HELLOWORLD:HELLO_WORLD\");\n \n ...
{ "fields": [ { "declarator": "FIELD_ALIASES = \".data.category.field.aliases\"", "modifier": "public static final", "original_string": "public static final String FIELD_ALIASES = \".data.category.field.aliases\";", "type": "String", "var_name": "FIELD_ALIASES" }, { "de...
{ "body": "public void setup(Type type, Configuration config) {\n // Process the field aliases\n _fieldNameAliases = new HashMap<>();\n String[] a = config.getStrings(type.typeName() + FIELD_ALIASES, (String[]) null);\n if (null != a) {\n for (String s : a) {\n 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_605
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/util/GeoWaveUtilsTest.java", "identifier": "GeoWaveUtilsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void optimizeByteArrayRangeTest() throws Exception {\n String wktString = \"POLYGON((-10 -10, 10 -10, 10 10, -10 10, -10 -10))\";\n Geometry geom = new WKTReader().read(wktString);\n \n ByteArrayRange byteArrayRange = GeoWaveUtils.createByteArrayRange(\"1f0aa02...
{ "fields": [], "file": "warehouse/query-core/src/main/java/datawave/query/util/GeoWaveUtils.java", "identifier": "GeoWaveUtils", "interfaces": "", "methods": [ { "class_method_signature": "GeoWaveUtils.initLongBuffer(ByteBuffer longBuffer)", "constructor": false, "full_signature": "priv...
{ "body": "public static List<ByteArrayRange> optimizeByteArrayRange(Geometry queryGeometry, ByteArrayRange byteArrayRange, int rangeSplitThreshold,\n double maxRangeOverlap) {\n return optimizeByteArrayRange(queryGeometry, byteArrayRange, rangeSplitThreshold, maxRangeOverlap, null);\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_255
{ "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 testER() throws ParseException {\n ASTJexlScript query = JexlASTHelper.parseJexlQuery(\"!(F1 =~ 'v1')\");\n visitor.visit(query, null);\n Assert.assertEquals(\"!(F1 =~ 'v1')\", JexlStringBuildingVisitor.buildQuery(query));\n }", "class_method_signature": "Pu...
{ "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": "@Override\n public Object visit(ASTNotNode node, Object data) {\n // if there is already a negation passed down it should negate this node and continue down the tree to check for other negations\n if (data != null && ((NegationState) data).isNegated()) {\n JexlNode nextNode = dr...
{ "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_982
{ "fields": [ { "declarator": "USER_DN = \"userDN\"", "modifier": "private static final", "original_string": "private static final String USER_DN = \"userDN\";", "type": "String", "var_name": "USER_DN" }, { "declarator": "ISSUER_DN = \"issuerDN\"", "modifier": "pr...
{ "body": "@Test\n public void testBothMethodAndUserAuthsNull() {\n assertEquals(Collections.singleton(new Authorizations()), AuthorizationsUtil.mergeAuthorizations(null, null));\n }", "class_method_signature": "AuthorizationsUtilTest.testBothMethodAndUserAuthsNull()", "constructor": false, "full_s...
{ "fields": [], "file": "web-services/common-util/src/main/java/datawave/security/util/AuthorizationsUtil.java", "identifier": "AuthorizationsUtil", "interfaces": "", "methods": [ { "class_method_signature": "AuthorizationsUtil.union(Iterable<byte[]> authorizations1, Iterable<byte[]> authorizations2...
{ "body": "public static Set<Authorizations> mergeAuthorizations(String requestedAuths, Collection<? extends Collection<String>> userAuths) {\n HashSet<String> requested = null;\n if (!StringUtils.isEmpty(requestedAuths)) {\n requested = new HashSet<>(splitAuths(requestedAuths));\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_828
{ "fields": [ { "declarator": "instance = new InMemoryInstance(RangeStreamTest.class.toString())", "modifier": "private static", "original_string": "private static InMemoryInstance instance = new InMemoryInstance(RangeStreamTest.class.toString());", "type": "InMemoryInstance", "var_n...
{ "body": "@Test\n public void testUnIndexedNumericAsString() throws Exception {\n String originalQuery = \"(FOO == 'bag' && BAR == '+aE1')\";\n ASTJexlScript script = JexlASTHelper.parseJexlQuery(originalQuery);\n \n config.setBeginDate(new Date(0));\n config.setEndDate(new Date...
{ "fields": [ { "declarator": "MAX_MEDIAN = 20", "modifier": "private static final", "original_string": "private static final int MAX_MEDIAN = 20;", "type": "int", "var_name": "MAX_MEDIAN" }, { "declarator": "log = ThreadConfigurableLogger.getLogger(RangeStream.class)",...
{ "body": "public CloseableIterable<QueryPlan> streamPlans(JexlNode script) {\n JexlNode node = TreeFlatteningRebuildingVisitor.flatten(script);\n \n tree = node;\n \n if (!collapseUids && config.getParseTldUids()) {\n collapseUids = !(EvaluationRendering.canDisableEvalua...
{ "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_594
{ "fields": [ { "declarator": "log = Logger.getLogger(UniqueTransformTest.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(UniqueTransformTest.class);", "type": "Logger", "var_name": "log" }, { "declarat...
{ "body": "@Test\n public void testUniquenessWithTwoGroupsAndSeparateGroups() {\n // create document two fields as follows:\n // field1.group1\n // field1.group2\n // field2.group1\n // field2.group2\n // field3.group3\n // field3.group4\n Document d = new Do...
{ "fields": [ { "declarator": "log = Logger.getLogger(GroupingTransform.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(GroupingTransform.class);", "type": "Logger", "var_name": "log" }, { "declarator":...
{ "body": "List<FieldSet> getOrderedFieldSets(Document document) {\n Set<Multimap<String,String>> fieldSets = getFieldSets(document);\n List<FieldSet> orderedFieldSets = new ArrayList<>(fieldSets.size());\n for (Multimap<String,String> fieldSet : fieldSets) {\n FieldSet orderedFieldSet...
{ "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_61
{ "fields": [ { "declarator": "logger = Logger.getLogger(ShardTableConfigHelperTest.class)", "modifier": "private static final", "original_string": "private static final Logger logger = Logger.getLogger(ShardTableConfigHelperTest.class);", "type": "Logger", "var_name": "logger" }...
{ "body": "@Test\n public void testConfigureShardTable() throws AccumuloSecurityException, AccumuloException, TableNotFoundException {\n \n ShardTableConfigHelperTest.logger.info(\"ShardTableConfigHelperTest.testConfigureShardTable called.\");\n \n try {\n \n Confi...
{ "fields": [ { "declarator": "SHARDED_TABLET_BALANCER_CLASS = ShardedTableTabletBalancer.class.getName()", "modifier": "protected static final", "original_string": "protected static final String SHARDED_TABLET_BALANCER_CLASS = ShardedTableTabletBalancer.class.getName();", "type": "String"...
{ "body": "protected void configureShardTable(TableOperations tops) throws AccumuloException, AccumuloSecurityException, TableNotFoundException {\n // Set a text index aggregator on the \"tf\" (Term Frequency) column family\n CombinerConfiguration tfConf = new CombinerConfiguration(new Column(\"tf\"), 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_347
{ "fields": [ { "declarator": "config", "modifier": "private", "original_string": "private ShardQueryConfiguration config;", "type": "ShardQueryConfiguration", "var_name": "config" }, { "declarator": "helper", "modifier": "private", "original_string": "priva...
{ "body": "@Test\n public void testUnNormalizedBoundsCase() throws ParseException {\n Multimap<String,Type<?>> dataTypes = HashMultimap.create();\n dataTypes.put(\"NEW\", new LcNoDiacriticsType());\n \n helper.setIndexedFields(dataTypes.keySet());\n config.setQueryFieldsDatatypes...
{ "fields": [ { "declarator": "log = ThreadConfigurableLogger.getLogger(ExpandMultiNormalizedTerms.class)", "modifier": "private static final", "original_string": "private static final Logger log = ThreadConfigurableLogger.getLogger(ExpandMultiNormalizedTerms.class);", "type": "Logger", ...
{ "body": "@SuppressWarnings(\"unchecked\")\n public static <T extends JexlNode> T expandTerms(ShardQueryConfiguration config, MetadataHelper helper, T script) {\n ExpandMultiNormalizedTerms visitor = new ExpandMultiNormalizedTerms(config, helper);\n \n if (null == visitor.config.getQueryField...
{ "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_717
{ "fields": [ { "declarator": "dict = null", "modifier": "", "original_string": "DefaultEdgeDictionary dict = null;", "type": "DefaultEdgeDictionary", "var_name": "dict" }, { "declarator": "logic = new DefaultEdgeEventQueryLogic()", "modifier": "", "original...
{ "body": "@Test\n public void testParseWithLucene() throws Exception {\n Query query = new QueryImpl();\n Map<String,QueryParser> parsers = new HashMap<>();\n \n parsers.put(\"LUCENE\", new LuceneToJexlQueryParser());\n logic.setQuerySyntaxParsers(parsers);\n \n qu...
{ "fields": [ { "declarator": "log = Logger.getLogger(DefaultEdgeEventQueryLogic.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(DefaultEdgeEventQueryLogic.class);", "type": "Logger", "var_name": "log" }, { ...
{ "body": "protected String getEventQuery(Query settings) throws Exception {\n return getEventQueryBuilder().getEventQuery(getJexlQueryString(settings));\n }", "class_method_signature": "DefaultEdgeEventQueryLogic.getEventQuery(Query settings)", "constructor": false, "full_signature": "protected Strin...
{ "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_202
{ "fields": [], "file": "warehouse/ingest-core/src/test/java/datawave/ingest/time/NowTest.java", "identifier": "NowTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testDelegate3() {\n Now now = new Now();\n Now now2 = Now.getInstance();\n Assert.assertEquals(now, now2);\n }", "class_method_signature": "NowTest.testDelegate3()", "constructor": false, "full_signature": "@Test public void testDelegate3()", "identifi...
{ "fields": [ { "declarator": "timer = null", "modifier": "private", "original_string": "private Timer timer = null;", "type": "Timer", "var_name": "timer" }, { "declarator": "now = new AtomicLong()", "modifier": "private", "original_string": "private Atomic...
{ "body": "public static Now getInstance() {\n if (instance == null) {\n synchronized (Now.class) {\n if (instance == null) {\n instance = new Now(false);\n }\n }\n }\n return instance;\n }", "class_method_signature": "No...
{ "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_652
{ "fields": [ { "declarator": "row = \"20190314\"", "modifier": "private final", "original_string": "private final String row = \"20190314\";", "type": "String", "var_name": "row" }, { "declarator": "field = \"FIELD_A\"", "modifier": "private final", "origin...
{ "body": "@Test\n public void testParseParentPointerFromId() {\n ByteSequence root = new ArrayByteSequence(rootId);\n ByteSequence child = new ArrayByteSequence(childId);\n ByteSequence grandchild = new ArrayByteSequence(grandchildId);\n \n assertEquals(root, TLD.parseParentPoin...
{ "fields": [], "file": "warehouse/query-core/src/main/java/datawave/query/tld/TLD.java", "identifier": "TLD", "interfaces": "", "methods": [ { "class_method_signature": "TLD.TLD()", "constructor": true, "full_signature": "private TLD()", "identifier": "TLD", "modifiers": "p...
{ "body": "public static ByteSequence parseParentPointerFromId(ByteSequence id) {\n ArrayList<Integer> dots = instancesOf('.', id);\n int stop;\n if (dots.size() > 2) {\n stop = dots.get(Math.max(2, dots.size() - 2));\n } else {\n stop = id.length();\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_916
{ "fields": [ { "declarator": "termWeightPositionList = Lists.newArrayList()", "modifier": "private", "original_string": "private List<TermWeightPosition> termWeightPositionList = Lists.newArrayList();", "type": "List<TermWeightPosition>", "var_name": "termWeightPositionList" } ...
{ "body": "@Test\n public void testPositionScoreToTermWeightScore() {\n Float positionScore = new Float(-.0552721);\n Integer twScore = TermWeightPosition.positionScoreToTermWeightScore(positionScore);\n Float result = TermWeightPosition.termWeightScoreToPositionScore(twScore);\n \n ...
{ "fields": [ { "declarator": "log = Logger.getLogger(TermWeightPosition.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(TermWeightPosition.class);", "type": "Logger", "var_name": "log" }, { "declarator...
{ "body": "public static int positionScoreToTermWeightScore(float positionScore) {\n //\n return Math.round(Math.abs(positionScore * 10000000));\n }", "class_method_signature": "TermWeightPosition.positionScoreToTermWeightScore(float positionScore)", "constructor": false, "full_signature": "pub...
{ "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_445
{ "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 testAndNegation() throws Exception {\n String originalQuery = \"FOO != 'abc' && BAR == 'def'\";\n ASTJexlScript script = JexlASTHelper.parseJexlQuery(originalQuery);\n final Map<String,ExpressionFilter> filter = EventDataQueryExpressionVisitor.getExpressionFilter...
{ "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_500
{ "fields": [ { "declarator": "logAppender", "modifier": "private static", "original_string": "private static TestLogAppender logAppender;", "type": "TestLogAppender", "var_name": "logAppender" } ], "file": "warehouse/query-core/src/test/java/datawave/query/jexl/visitors/Quer...
{ "body": "@Test\n public void NRTest() throws ParseException {\n String query = \"FIELD !~ 'x'\";\n ASTJexlScript script = JexlASTHelper.parseJexlQuery(query);\n Assert.assertEquals(QueryPruningVisitor.TruthState.UNKNOWN, QueryPruningVisitor.getState(script));\n \n Assert.assert...
{ "fields": [ { "declarator": "log = Logger.getLogger(QueryPruningVisitor.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(QueryPruningVisitor.class);", "type": "Logger", "var_name": "log" }, { "declarat...
{ "body": "public static TruthState getState(JexlNode node) {\n QueryPruningVisitor visitor = new QueryPruningVisitor(false);\n return (TruthState) node.jjtAccept(visitor, null);\n }", "class_method_signature": "QueryPruningVisitor.getState(JexlNode node)", "constructor": false, "full_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_150
{ "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 testMarkJobDirectoryFailedFailedRename() throws Exception {\n \n BulkIngestMapFileLoaderTest.logger.info(\"testMarkJobDirectoryFailedFailedRename called...\");\n \n try {\n \n URL url = BulkIngestMapFileLoaderTest.class.getResource(\"...
{ "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 boolean markJobDirectoryFailed(URI workingHdfs, Path jobDirectory) {\n boolean success = false;\n try {\n FileSystem fs = getFileSystem(workingHdfs);\n success = fs.rename(new Path(jobDirectory, LOADING_FILE_MARKER), new Path(jobDirectory, FAILED_FILE_MARKER));\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_853
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/audit/DatawaveSelectorExtractorTest.java", "identifier": "DatawaveSelectorExtractorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void extractSelectorsLuceneQuery2() {\n \n DatawaveSelectorExtractor extractor = new DatawaveSelectorExtractor();\n QueryImpl q = new QueryImpl();\n q.setQuery(\"FIELD1:selector1 AND selector2 AND selector3\");\n List<String> selectorList = extractor.ext...
{ "fields": [ { "declarator": "luceneToJexlParser = new LuceneToJexlQueryParser()", "modifier": "private", "original_string": "private LuceneToJexlQueryParser luceneToJexlParser = new LuceneToJexlQueryParser();", "type": "LuceneToJexlQueryParser", "var_name": "luceneToJexlParser" ...
{ "body": "@Override\n public List<String> extractSelectors(Query query) throws IllegalArgumentException {\n List<String> selectorList = new ArrayList<>();\n List<ASTEQNode> eqNodes = null;\n QueryNode node = null;\n ASTJexlScript jexlScript = null;\n \n try {\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_783
{ "fields": [ { "declarator": "equality", "modifier": "private", "original_string": "private AncestorEquality equality;", "type": "AncestorEquality", "var_name": "equality" } ], "file": "warehouse/query-core/src/test/java/datawave/query/function/AncestorEqualityTest.java", ...
{ "body": "@Test\n public void testParentAccept() {\n Key key = new Key(\"abc\", \"1234.123.12345\");\n Key other = new Key(\"abc\", \"1234.123\");\n assertTrue(equality.partOf(key, other));\n }", "class_method_signature": "AncestorEqualityTest.testParentAccept()", "constructor": false,...
{ "fields": [], "file": "warehouse/query-core/src/main/java/datawave/query/function/AncestorEquality.java", "identifier": "AncestorEquality", "interfaces": "implements Equality", "methods": [ { "class_method_signature": "AncestorEquality.partOf(Key key, Key other)", "constructor": false, ...
{ "body": "@Override\n public boolean partOf(Key key, Key other) {\n String docId = key.getColumnFamily().toString();\n String otherId = other.getColumnFamily().toString();\n return docId.startsWith(otherId + DEFAULT_SEPARATOR) || docId.equals(otherId);\n }", "class_method_signature": "An...
{ "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_279
{ "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 testFunction() throws ParseException {\n ASTJexlScript query = JexlASTHelper.parseJexlQuery(\"!filter:includeRegex(F1, '.*')\");\n JexlNode result = PushdownNegationVisitor.pushdownNegations(query);\n Assert.assertEquals(JexlStringBuildingVisitor.buildQuery(query...
{ "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_629
{ "fields": [ { "declarator": "filter", "modifier": "private", "original_string": "private ChainableEventDataQueryFilter filter;", "type": "ChainableEventDataQueryFilter", "var_name": "filter" } ], "file": "warehouse/query-core/src/test/java/datawave/query/predicate/Chainable...
{ "body": "@Test\n public void startNewDocumentTest() {\n EventDataQueryFilter mockFilter1 = EasyMock.createMock(EventDataQueryFilter.class);\n EventDataQueryFilter mockFilter2 = EasyMock.createMock(EventDataQueryFilter.class);\n \n Key key = new Key();\n \n mockFilter1.st...
{ "fields": [ { "declarator": "filters", "modifier": "private", "original_string": "private List<EventDataQueryFilter> filters;", "type": "List<EventDataQueryFilter>", "var_name": "filters" } ], "file": "warehouse/query-core/src/main/java/datawave/query/predicate/ChainableEve...
{ "body": "@Override\n public void startNewDocument(Key documentKey) {\n for (int i = 0; i < filters.size(); i++) {\n filters.get(i).startNewDocument(documentKey);\n }\n }", "class_method_signature": "ChainableEventDataQueryFilter.startNewDocument(Key documentKey)", "constructor": f...
{ "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_296
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/jexl/visitors/HasTopLevelNegationVisitorTest.java", "identifier": "HasTopLevelNegationVisitorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void test8() throws Exception {\n ASTJexlScript script = JexlASTHelper.parseJexlQuery(\"(FOO == 'bar' && FOO == 'bar')\");\n Assert.assertFalse(HasTopLevelNegationVisitor.hasTopLevelNegation(script));\n }", "class_method_signature": "HasTopLevelNegationVisitorTest.test8...
{ "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_412
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/jexl/visitors/RootNegationCheckVisitorTest.java", "identifier": "RootNegationCheckVisitorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testWrappedNegatedMarker() throws ParseException {\n ASTJexlScript script = JexlASTHelper.parseJexlQuery(\"!((ASTDelayedPredicate = true) && (FOO == 'bar' && FOO == 'baz'))\");\n Assert.assertTrue(RootNegationCheckVisitor.hasTopLevelNegation(script));\n }", "class_...
{ "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_941
{ "fields": [ { "declarator": "qlCache = null", "modifier": "protected", "original_string": "protected CreatedQueryLogicCacheBean qlCache = null;", "type": "CreatedQueryLogicCacheBean", "var_name": "qlCache" }, { "declarator": "internalCache = null", "modifier": "...
{ "body": "@Test\n public void testFirstInsertion() throws Exception {\n String queryId = \"12345\";\n String userId = \"me\";\n long timestamp = 1l;\n \n EasyMock.expect(System.currentTimeMillis()).andReturn(timestamp);\n \n PowerMock.replayAll();\n \n ...
{ "fields": [ { "declarator": "tripToPair = from -> {\n if (null == from) {\n return null;\n }\n return new Pair<>(from.logic, from.cxn);\n }", "modifier": "private static final", "original_string": "private static final Function<Triple,Pair<QueryLogic<?>,Conne...
{ "body": "public boolean add(String queryId, String userId, QueryLogic<?> logic, Connector cxn) {\n Triple value = new Triple(userId, logic, cxn);\n long updateTime = System.currentTimeMillis();\n return cache.putIfAbsent(new Pair<>(queryId, updateTime), value) == null;\n }", "class_method_...
{ "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_804
{ "fields": [ { "declarator": "children = Arrays.asList(\"a\", \"a.1\", \"a.1.1\", \"a.1.2\", \"a.1.2.1\", \"a.10\", \"a.2\", \"a.3\", \"a.4\", \"a.4.1\", \"a.4.1.1\", \"a.4.1.2\", \"a.4.2\",\n \"a.5\", \"a.6\", \"a.7\", \"a.8\", \"a.9\")", "modifier": "private", "original_str...
{ "body": "@Test(expected = IllegalStateException.class)\n public void testUninitializedgetTopKey() {\n iterator.getTopKey();\n }", "class_method_signature": "AncestorChildExpansionIteratorTest.testUninitializedgetTopKey()", "constructor": false, "full_signature": "@Test(expected = IllegalStateExce...
{ "fields": [ { "declarator": "children", "modifier": "private final", "original_string": "private final List<String> children;", "type": "List<String>", "var_name": "children" }, { "declarator": "equality", "modifier": "private final", "original_string": "p...
{ "body": "@Override\n public Key getTopKey() {\n if (!seeked) {\n throw new IllegalStateException(\"cannot getTopKey(), iterator has not been seeked\");\n }\n \n if (topKey == null) {\n throw new NoSuchElementException(\"top key does not exist\");\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_107
{ "fields": [ { "declarator": "conf = new Configuration()", "modifier": "", "original_string": "Configuration conf = new Configuration();", "type": "Configuration", "var_name": "conf" }, { "declarator": "partitioner = null", "modifier": "", "original_string"...
{ "body": "@Test\n public void testSequentialLocationScheme() throws Exception {\n Map<String,Path> shardedTableMapFiles = new HashMap<>();\n // setup the location partition sheme\n URL file = getClass().getResource(\"/datawave/ingest/mapreduce/partition/_shards.lst\");\n shardedTableMa...
{ "fields": [ { "declarator": "log = Logger.getLogger(TabletLocationNamePartitioner.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(TabletLocationNamePartitioner.class);", "type": "Logger", "var_name": "log" }, ...
{ "body": "@Override\n public synchronized int getPartition(BulkIngestKey key, Value value, int numReduceTasks) {\n \n try {\n return getLocationPartition(key.getKey().getRow(), getShardLocations(key.getTableName().toString()), numReduceTasks);\n } catch (IOException e) {\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_557
{ "fields": [ { "declarator": "aggregator", "modifier": "private", "original_string": "private IdentityAggregator aggregator;", "type": "IdentityAggregator", "var_name": "aggregator" } ], "file": "warehouse/query-core/src/test/java/datawave/query/jexl/functions/IdentityAggreg...
{ "body": "@Test\n public void apply_testNormal() throws IOException {\n TreeMap<Key,Value> treeMap = Maps.newTreeMap();\n treeMap.put(getFi(\"123\", \"FIELD1\", \"VALUE1\", \"dataType1\", \"123.345.456\", 10), new Value());\n \n SortedKeyValueIterator<Key,Value> itr = new SortedMapIter...
{ "fields": [ { "declarator": "fieldsToKeep", "modifier": "protected", "original_string": "protected Set<String> fieldsToKeep;", "type": "Set<String>", "var_name": "fieldsToKeep" }, { "declarator": "filter", "modifier": "protected", "original_string": "prote...
{ "body": "@Override\n public Key apply(SortedKeyValueIterator<Key,Value> itr) throws IOException {\n Key key = itr.getTopKey();\n Text row = key.getRow();\n ByteSequence pointer = parsePointer(key.getColumnQualifierData());\n while (itr.hasTop() && samePointer(row, pointer, itr.getTopK...
{ "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_384
{ "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 functionWithMethodInExpression() throws ParseException {\n ASTJexlScript script = JexlASTHelper.parseJexlQuery(\"filter:includeRegex(FOO, '1').size() > 0\");\n ASTJexlScript expectedScript = JexlASTHelper.parseJexlQuery(\"filter:includeRegex(BAR1||BAR2, '1').size() > 0\...
{ "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_691
{ "fields": [ { "declarator": "connector", "modifier": "private static", "original_string": "private static Connector connector;", "type": "Connector", "var_name": "connector" }, { "declarator": "scannerFactory", "modifier": "private static", "original_strin...
{ "body": "@Test\n public void testExceedMaxMedianDocumentsPerShard() throws Exception {\n \n // Components that define the query: \"FOO == 'boo'\"\n String fieldName = \"FOO\";\n String fieldValue = \"boo\";\n ASTEQNode eqNode = (ASTEQNode) JexlNodeFactory.buildEQNode(fieldName,...
{ "fields": [ { "declarator": "MAX_MEDIAN = 20", "modifier": "private static final", "original_string": "private static final int MAX_MEDIAN = 20;", "type": "int", "var_name": "MAX_MEDIAN" }, { "declarator": "log = Logger.getLogger(RangeStreamScanner.class)", "mod...
{ "body": "@Override\n public boolean hasNext() {\n /*\n * Let's take a moment to look through all states S\n */\n try {\n if (null != stats)\n stats.getTimer(TIMERS.HASNEXT).resume();\n \n while (null == currentEntry && (!finished || !r...
{ "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_1020
{ "fields": [ { "declarator": "userDN = \"CN=Guy Some Other soguy, OU=ou1, OU=ou2, OU=ou3, O=o1, C=US\"", "modifier": "private static final", "original_string": "private static final String userDN = \"CN=Guy Some Other soguy, OU=ou1, OU=ou2, OU=ou3, O=o1, C=US\";", "type": "String", ...
{ "body": "@Test(expected = DatawaveWebApplicationException.class)\n public void testModelGetInvalidModelName() throws Exception {\n EasyMock.expect(ctx.getCallerPrincipal()).andReturn(principal);\n HashMap<String,String> trackingMap = new HashMap<>();\n EasyMock.expect(connectionFactory.getTr...
{ "fields": [ { "declarator": "log = Logger.getLogger(this.getClass())", "modifier": "private", "original_string": "private Logger log = Logger.getLogger(this.getClass());", "type": "Logger", "var_name": "log" }, { "declarator": "DEFAULT_MODEL_TABLE_NAME = \"DatawaveMet...
{ "body": "@GET\n @Produces({\"application/xml\", \"text/xml\", \"application/json\", \"text/yaml\", \"text/x-yaml\", \"application/x-yaml\", \"application/x-protobuf\",\n \"application/x-protostuff\", \"text/html\"})\n @Path(\"/{name}\")\n @GZIP\n @Interceptors({RequiredInterceptor.class, Resp...
{ "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_957
{ "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_EJBAccessException() {\n Exception e = new EJBAccessException(\"Caller unauthorized\");\n StackTraceElement[] traceArr = new StackTraceElement[1];\n traceArr[0] = new StackTraceElement(\"dummyClass\", \"dummyMethod\", null, 0);\n \n e...
{ "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_404
{ "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 testAppliedModelWithNullNoFail() throws ParseException {\n model.addTermToModel(\"FOO1\", \"BAR1\");\n model.addTermToModel(\"OTHER\", \"9_2\");\n \n ASTJexlScript script = JexlASTHelper.parseJexlQuery(\"FOO1 == 'baz' and OTHER == null\");\n ASTJexl...
{ "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_541
{ "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 parse3LeadingBackslashesRegex() throws Exception {\n String query = \"CITY =~ '\\\\\\\\\\\\\\\\\\\\\\\\city'\";\n JexlNode node = JexlASTHelper.parseJexlQuery(query);\n String interpretedQuery = JexlStringBuildingVisitor.buildQuery(node);\n Assert.assertEq...
{ "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_111
{ "fields": [ { "declarator": "TABLE_NAME = \"abc\"", "modifier": "private static final", "original_string": "private static final String TABLE_NAME = \"abc\";", "type": "String", "var_name": "TABLE_NAME" }, { "declarator": "configuration", "modifier": "", "...
{ "body": "@Test\n public void testCalculateIndexRangeIsValid() {\n int numPartitions = 581;\n int cutPointArrayLength = 195;\n \n MultiTableRRRangePartitioner partitioner = new MultiTableRRRangePartitioner();\n for (int i = -1 * cutPointArrayLength - 1; i < cutPointArrayLength; ...
{ "fields": [ { "declarator": "LOG = Logger.getLogger(MultiTableRRRangePartitioner.class)", "modifier": "private static final", "original_string": "private static final Logger LOG = Logger.getLogger(MultiTableRRRangePartitioner.class);", "type": "Logger", "var_name": "LOG" }, ...
{ "body": "@Override\n protected int calculateIndex(int index, int numPartitions, String tableName, int cutPointArrayLength) {\n // check to see if the index is already in the SPLIT_TO_REDUCER_MAP map, if so, return the reducer number\n if (SPLIT_TO_REDUCER_MAP.containsKey(tableName) && SPLIT_TO_REDU...
{ "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_812
{ "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 testGenerateDayRange() {\n String shard = \"20190314\";\n IndexInfo indexInfo = new IndexInfo(-1);\n indexInfo.applyNode(queryNode);\n \n // Build expected shard ranges\n List<Range> expectedRanges = new ArrayList<>(1);\n expectedRange...
{ "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 static Iterator<QueryPlan> createDayRange(JexlNode queryNode, String shard, IndexInfo indexInfo) {\n JexlNode myNode = queryNode;\n if (indexInfo.getNode() != null) {\n myNode = indexInfo.getNode();\n }\n \n Range range = RangeFactory.createDayRange(shar...
{ "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_238
{ "fields": [], "file": "warehouse/common/src/test/java/datawave/common/io/FilesTest.java", "identifier": "FilesTest", "interfaces": "", "superclass": "" }
{ "body": "@Test(expected = IOException.class)\n public void testEnsureMvIOException() throws Exception {\n File src = mock(File.class);\n File dest = mock(File.class);\n File parent = mock(File.class);\n expect(src.exists()).andReturn(true).anyTimes();\n expect(src.isDirectory()...
{ "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 void ensureMv(final String src, final String dest) throws IOException {\n ensureMv(src, dest, false);\n }", "class_method_signature": "Files.ensureMv(final String src, final String dest)", "constructor": false, "full_signature": "public static void ensureMv(final String src, f...
{ "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_392
{ "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 attributeWithMethodMapping() throws ParseException {\n ASTJexlScript script = JexlASTHelper.parseJexlQuery(\"FOO.getValuesForGroups(0) == 1\");\n ASTJexlScript expectedScript = JexlASTHelper.parseJexlQuery(\"(BAR2||BAR1).getValuesForGroups(0) == 1\");\n ASTJexlSc...
{ "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...