id
stringlengths
7
14
test_class
dict
test_case
dict
focal_class
dict
focal_method
dict
repository
dict
116999027_217
{ "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(expected = IllegalStateException.class)\n public void testGroupingContextWithBadDelimiterConfig() throws Exception {\n JsonObjectFlattener flattener = new JsonObjectFlattenerImpl.Builder().pathDelimiter(\".\").occurrenceInGroupDelimiter(\".\")\n .flattenMode(FlattenMo...
{ "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_74
{ "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 testSetupOneDateIndexTableDefinedInConfigurationButNotTableNameParameter() {\n \n DateIndexTableConfigHelperTest.logger.info(\"DateIndexTableConfigHelperTest.testSetupNothingDefinedInConfiguration called.\");\n \n try {\n \n DateIndex...
{ "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 = tableName;\n \n if (this.tableName == null) {\n throw new IllegalArgument...
{ "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_702
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/tables/async/RangeDefinitionTest.java", "identifier": "RangeDefinitionTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void allDocSpecificWithShardRangeTest() {\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(n...
{ "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_1019
{ "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\n public void testModelGet() throws Exception {\n importModels();\n PowerMock.resetAll();\n \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_352
{ "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 testNormalizedFunctionsWithField() 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());...
{ "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_186
{ "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 testSetAccumuloConfiguration() {\n \n MultiRFileOutputFormatterTest.logger.info(\"testSetFileType called...\");\n \n try {\n \n String instance = \"instance\";\n String username = \"user\";\n byte[] password = \"...
{ "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 setAccumuloConfiguration(Configuration conf) {\n conf.set(INSTANCE_NAME, conf.get(AccumuloHelper.INSTANCE_NAME));\n conf.set(USERNAME, conf.get(AccumuloHelper.USERNAME));\n conf.set(PASSWORD, conf.get(AccumuloHelper.PASSWORD));\n conf.set(ZOOKEEPERS, conf.get(...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_885
{ "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(expected = NullPointerException.class)\n public void testInitWithNoTtlUnits() throws Exception {\n ConfigurableAgeOffFilter filter = new ConfigurableAgeOffFilter();\n HashMap<String,String> options = new HashMap<>();\n options.put(AgeOffConfigParams.TTL, \"31\");\n filt...
{ "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 void init(SortedKeyValueIterator<Key,Value> source, Map<String,String> options, IteratorEnvironment env) throws IOException {\n super.init(source, options, env);\n \n myEnv = env;\n \n // disabled if this is a system initialized major compaction and ...
{ "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_9
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(FlagMaker.class)", "modifier": "private static final", "original_string": "private static final Logger log = LoggerFactory.getLogger(FlagMaker.class);", "type": "Logger", "var_name": "log" }, { "declarator": "...
{ "body": "@Test\n public void testFlagMakerConfigWithExtraArgsOverride() throws JAXBException, IOException {\n log.info(\"----- testFlagMakerConfigWithExtraArgsOverride -----\");\n final String overrideValue = \"-fastMode -topSpeed=MAX\";\n FlagMakerConfig flagMakerConfig = FlagMaker.getFla...
{ "fields": [ { "declarator": "cc = new GzipCodec()", "modifier": "private static final", "original_string": "private static final CompressionCodec cc = new GzipCodec();", "type": "CompressionCodec", "var_name": "cc" }, { "declarator": "ct = CompressionType.BLOCK", ...
{ "body": "static FlagMakerConfig getFlagMakerConfig(String[] args) throws JAXBException, IOException {\n String flagConfig = null;\n String baseHDFSDirOverride = null;\n String extraIngestArgsOverride = null;\n String flagFileDirectoryOverride = null;\n String flagMakerClass = 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_539
{ "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 parse2LeadingBackslashesRegex() throws Exception {\n String query = \"CITY =~ '\\\\\\\\\\\\\\\\city'\";\n JexlNode node = JexlASTHelper.parseJexlQuery(query);\n String interpretedQuery = JexlStringBuildingVisitor.buildQuery(node);\n Assert.assertEquals(que...
{ "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_493
{ "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 methodTest() throws ParseException {\n String query = \"x('a')\";\n ASTJexlScript script = JexlASTHelper.parseJexlQuery(query);\n Assert.assertEquals(QueryPruningVisitor.TruthState.UNKNOWN, QueryPruningVisitor.getState(script));\n \n Assert.assertEq...
{ "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_169
{ "fields": [], "file": "warehouse/ingest-core/src/test/java/datawave/ingest/mapreduce/job/BulkIngestKeyTest.java", "identifier": "BulkIngestKeyTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testHashCode() {\n Text tableName1 = new Text(\"testTable\");\n Key key1 = new Key(new Text(\"row\\0key\"), new Text(\"colFam\"), new Text(\"col\\0qual\"), new Text(\"col\\0vis\"));\n BulkIngestKey bik1 = new BulkIngestKey(tableName1, key1);\n \n Te...
{ "fields": [ { "declarator": "tableName = null", "modifier": "protected", "original_string": "protected Text tableName = null;", "type": "Text", "var_name": "tableName" }, { "declarator": "key = new Key()", "modifier": "protected", "original_string": "prote...
{ "body": "@Override\n public int hashCode() {\n return hashCode;\n }", "class_method_signature": "BulkIngestKey.hashCode()", "constructor": false, "full_signature": "@Override public int hashCode()", "identifier": "hashCode", "invocations": [], "modifiers": "@Override public", "parameters"...
{ "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_240
{ "fields": [], "file": "warehouse/common/src/test/java/datawave/common/io/FilesTest.java", "identifier": "FilesTest", "interfaces": "", "superclass": "" }
{ "body": "@Test(expected = IllegalArgumentException.class)\n public void testEnsureMvStringNull() throws Exception {\n String src = null;\n String dest = null;\n \n String ret = Files.mv(src, dest);\n }", "class_method_signature": "FilesTest.testEnsureMvStringNull()", "construct...
{ "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_610
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/util/GeoWaveUtilsTest.java", "identifier": "GeoWaveUtilsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void createByteArrayIdTest() {\n // String\n ByteArray byteArrayId = new ByteArray(GeoWaveUtils.createByteArray(\"0102\"));\n Assert.assertEquals(\"0102\", byteArrayId.getHexString().replace(\" \", \"\"));\n \n // int, long\n byteArrayId = new Byt...
{ "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 byte[] createByteArray(String geohash) {\n return createByteArray(geohash, null);\n }", "class_method_signature": "GeoWaveUtils.createByteArray(String geohash)", "constructor": false, "full_signature": "public static byte[] createByteArray(String geohash)", "identifier": "cr...
{ "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_305
{ "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 testAllOrNoneEmpty() throws TableNotFoundException {\n List<JexlNode> children = new ArrayList<>();\n JexlNode eqNode = JexlNodeFactory.buildEQNode(\"INDEXEDFIELD\", \"v3\");\n JexlNode wrappedNode = wrap(eqNode);\n children.add(wrappedNode);\n \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_755
{ "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 testParseExceptionTooManyLParens() throws ParseException {\n queryParser.parse(\"((almostgood)\");\n }", "class_method_signature": "TestLuceneQueryParser.testParseExceptionTooManyLParens()", "constructor": false, "full_signature": "@Te...
{ "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_23
{ "fields": [], "file": "warehouse/ingest-core/src/test/java/datawave/ingest/data/config/NormalizedFieldAndValueTest.java", "identifier": "NormalizedFieldAndValueTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testDecode() {\n \n String testValue = \"Hello, World\";\n \n // Test a simple String as bytes but not expecting it to be Binary\n String results = NormalizedFieldAndValue.decode(testValue.getBytes(), false);\n Assert.assertEquals(\"Decode fa...
{ "fields": [ { "declarator": "grouped = false", "modifier": "private", "original_string": "private boolean grouped = false;", "type": "boolean", "var_name": "grouped" }, { "declarator": "group = null", "modifier": "private", "original_string": "private Stri...
{ "body": "public static String decode(byte[] bytes, boolean expectBinary) {\n synchronized (NormalizedFieldAndValue.class) {\n if (null == mimeDecoder) {\n IngestConfiguration config = IngestConfigurationFactory.getIngestConfiguration();\n mimeDecoder = config.createMi...
{ "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_939
{ "fields": [], "file": "web-services/query/src/test/java/datawave/webservice/query/cache/RunningQueryTimingImplTest.java", "identifier": "RunningQueryTimingImplTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testPageShortCircuit() {\n RunningQueryTimingImpl timing = new RunningQueryTimingImpl(10 * 60 * 1000, 10 * 60 * 1000, 9 * 60 * 1000);\n // if we are already at the max time, then return true if page size > 0\n assertTrue(timing.shouldReturnPartialResults(1, 10, 1...
{ "fields": [ { "declarator": "maxCallMs = 60 * 60 * 1000", "modifier": "private", "original_string": "private long maxCallMs = 60 * 60 * 1000;", "type": "long", "var_name": "maxCallMs" }, { "declarator": "pageSizeShortCircuitCheckTimeMs = 30 * 60 * 1000", "modifi...
{ "body": "@Override\n public boolean shouldReturnPartialResults(int pageSize, int maxPageSize, long timeInCall) {\n \n // only return prematurely if we have at least 1 result\n if (pageSize > 0) {\n \n // if after the page size short circuit check time\n if (t...
{ "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_893
{ "fields": [ { "declarator": "testKeyHelper", "modifier": "private", "original_string": "private EdgeTableTestKeyHelper testKeyHelper;", "type": "EdgeTableTestKeyHelper", "var_name": "testKeyHelper" }, { "declarator": "decoder", "modifier": "private", "orig...
{ "body": "@Test\n public void validDateExtractionForAllCqTypes() {\n Assert.assertEquals(\"20160822\", EdgeKeyDecoder.getYYYYMMDD(new Text(\"20160822\")));\n Assert.assertEquals(\"20160822\", EdgeKeyDecoder.getYYYYMMDD(new Text(\"20160822/CATEGORY/ATTRIBUTE2/ATTRIBUTE3\")));\n Assert.assertEq...
{ "fields": [ { "declarator": "log = Logger.getLogger(EdgeKeyDecoder.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(EdgeKeyDecoder.class);", "type": "Logger", "var_name": "log" }, { "declarator": "DATE...
{ "body": "public static String getYYYYMMDD(Text colQual) {\n int numCharsToCheck = Math.min(DATE_LEN + 1, colQual.getLength());\n \n int firstSlashIndex = DATE_LEN; // there may not be a slash\n byte[] bytes = colQual.getBytes();\n \n // find the first slash if it exists\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_190
{ "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 testValidateWillFilterOutTablesWithoutConfigurations() throws Exception {\n conf.set(PartitionerCache.PREFIX_DEDICATED_PARTITIONER + \"table1\", DelegatingPartitionerTest.AlwaysReturnOne.class.getName());\n cache = new PartitionerCache(conf);\n List<String> resul...
{ "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_485
{ "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 unchangedRewriteTest() throws ParseException {\n String subtree = \"FIELD1 == 'y' && FIELD2 == 'z'\";\n String query = \"FIELD1 == 'x' || (\" + subtree + \")\";\n \n ASTJexlScript script = JexlASTHelper.parseJexlQuery(query);\n JexlNode reduced = Qu...
{ "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 JexlNode reduce(JexlNode node, boolean showPrune) {\n QueryPruningVisitor visitor = new QueryPruningVisitor(true, showPrune);\n \n String before = null;\n String after;\n \n if (showPrune) {\n before = JexlStringBuildingVisitor.buildQuery(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_606
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/util/GeoWaveUtilsTest.java", "identifier": "GeoWaveUtilsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void mergeContiguousRangesTest() {\n ByteArrayRange fullRange = GeoWaveUtils.createByteArrayRange(\"1f0aa02a0000000000\", \"1f0aa0d5ffffffffff\");\n \n List<ByteArrayRange> byteArrayRanges = new ArrayList<>();\n byteArrayRanges.add(GeoWaveUtils.createByteArrayR...
{ "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> mergeContiguousRanges(List<ByteArrayRange> byteArrayRanges) {\n return mergeContiguousRanges(byteArrayRanges, null);\n }", "class_method_signature": "GeoWaveUtils.mergeContiguousRanges(List<ByteArrayRange> byteArrayRanges)", "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_256
{ "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 testDoubleNegationEq() 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_s...
{ "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_35
{ "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(expected = IllegalArgumentException.class)\n public void testBadAliasConfig() throws Exception {\n conf.set(\"test.data.category.index.aliases.enabled\", \"true\");\n conf.set(\"test.data.category.index.aliases\", \"totalnonsense\");\n \n FieldNameAliaserNormalizer fnan...
{ "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_743
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/language/parser/jexl/JexlNodeSetTest.java", "identifier": "JexlNodeSetTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testAddAll() {\n JexlNode node1 = JexlNodeFactory.buildEQNode(\"FOO\", \"bar\");\n JexlNode node2 = JexlNodeFactory.buildEQNode(\"FOO2\", \"bar2\");\n JexlNode node3 = JexlNodeFactory.buildEQNode(\"FOO3\", \"bar3\");\n \n Collection<JexlNode> first ...
{ "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 addAll(Collection<? extends JexlNode> collection) {\n boolean modified = false;\n if (collection != null) {\n \n // If the collection is a JexlNodeSet then avoid regenerating all of the node keys.\n if (collection instanceof JexlN...
{ "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_1058
{ "fields": [ { "declarator": "crq = null", "modifier": "private", "original_string": "private CachedRunningQuery crq = null;", "type": "CachedRunningQuery", "var_name": "crq" }, { "declarator": "fixedColumns = StringUtils.join(CacheableQueryRowImpl.getFixedColumnSet(),...
{ "body": "@Test\n public void testEscapingWithFunctionsAsterisk() throws Exception {\n String sql = crq.generateSql(\"v\", \"*, COUNT(*)\", \"COUNT(*) > 1\", \"MIN(*)\", \"COUNT(*)\", \"me\", null);\n Assert.assertEquals(\"SELECT \" + \"*,COUNT(*) FROM v WHERE _user_ = 'me' AND (COUNT(*) > 1) GROUP ...
{ "fields": [ { "declarator": "log = Logger.getLogger(CachedRunningQuery.class)", "modifier": "private static", "original_string": "private static Logger log = Logger.getLogger(CachedRunningQuery.class);", "type": "Logger", "var_name": "log" }, { "declarator": "datasour...
{ "body": "public String generateSql(String view, String fields, String conditions, String grouping, String order, String user, Connection connection)\n throws SQLException {\n CachedResultsParameters.validate(view);\n StringBuilder buf = new StringBuilder();\n if (StringUtils....
{ "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_313
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/jexl/visitors/DepthVisitorTest.java", "identifier": "DepthVisitorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testAnd3() throws Exception {\n String originalQuery = \"FOO == 'abc' and FOO = 'bcd' and FOO = 'abcdef' and FOO = 'abcdef' and FOO = 'abcdef' and FOO = 'abcdef' and FOO = 'abcdef' and FOO = 'abcdef' and FOO = 'abcdef' and FOO = 'abcdef' and FOO = 'abcdef'\";\n ASTJexlS...
{ "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_597
{ "fields": [ { "declarator": "transformer", "modifier": "private", "original_string": "private DocumentTransformer transformer;", "type": "DocumentTransformer", "var_name": "transformer" }, { "declarator": "mockLogic", "modifier": "@Mock\n private", "ori...
{ "body": "@Test\n public void transform_primaryEmptySecondarySetTest() throws MarkingFunctions.Exception {\n Key key = new Key(\"shard\", \"dataType\" + Constants.NULL + \"uid\");\n Value value = new Value();\n AbstractMap.SimpleEntry<Key,Value> entry = new AbstractMap.SimpleEntry<>(key, valu...
{ "fields": [ { "declarator": "log = Logger.getLogger(DocumentTransformerSupport.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(DocumentTransformerSupport.class);", "type": "Logger", "var_name": "log" } ], "...
{ "body": "@Override\n public EventBase transform(Entry<Key,Value> entry) throws EmptyObjectException {\n \n Entry<Key,Document> documentEntry = deserializer.apply(entry);\n for (DocumentTransform transform : transforms) {\n if (documentEntry != null) {\n documentEntr...
{ "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_981
{ "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 testUserAuthsIsNull() {\n assertEquals(Collections.singleton(new Authorizations()), AuthorizationsUtil.mergeAuthorizations(methodAuths, null));\n }", "class_method_signature": "AuthorizationsUtilTest.testUserAuthsIsNull()", "constructor": false, "full_signature": "@Te...
{ "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_578
{ "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_simpleSuccessDistance3FailTest() {\n List<List<TermWeightPosition>> offsets = new ArrayList<>();\n List<TermWeightPosition> offsetsA = asList(1);\n List<TermWeightPosition> offsetsB = asList(5);\n List<TermWeightPosition> offsetsC = asList(7);\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_128
{ "fields": [ { "declarator": "conf = null", "modifier": "private", "original_string": "private Configuration conf = null;", "type": "Configuration", "var_name": "conf" }, { "declarator": "ctx = null", "modifier": "private", "original_string": "private TaskA...
{ "body": "@Test\n public void testHandlerNormalizedTokenizedFieldNoSpace() throws Exception {\n \n TypeRegistry.reset();\n TypeRegistry.getInstance(ctx.getConfiguration());\n \n setupMocks();\n \n TestContentIndexingColumnBasedHandler handler = new TestContentIndex...
{ "fields": [ { "declarator": "log = Logger.getLogger(ContentIndexingColumnBasedHandler.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(ContentIndexingColumnBasedHandler.class);", "type": "Logger", "var_name": "log" ...
{ "body": "@Override\n public void setup(TaskAttemptContext context) {\n super.setup(context);\n contentHelper = getContentIndexingDataTypeHelper();\n tokenFieldNameSuffix = contentHelper.getTokenFieldNameDesignator();\n Preconditions.checkNotNull(tokenFieldNameSuffix);\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_201
{ "fields": [], "file": "warehouse/ingest-core/src/test/java/datawave/ingest/time/NowTest.java", "identifier": "NowTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testDelegate() {\n Now now = Now.getInstance();\n Now now2 = new Now();\n Assert.assertEquals(now, now2);\n }", "class_method_signature": "NowTest.testDelegate()", "constructor": false, "full_signature": "@Test public void testDelegate()", "identifier"...
{ "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_651
{ "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 testFromString() {\n ByteSequence expected = new ArrayByteSequence(rootId);\n ByteSequence fromString = TLD.fromString(rootId);\n assertEquals(expected, fromString);\n }", "class_method_signature": "TLDTest.testFromString()", "constructor": false, "full_...
{ "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 fromString(String s) {\n return new ArrayByteSequence(s.getBytes());\n }", "class_method_signature": "TLD.fromString(String s)", "constructor": false, "full_signature": "public static ByteSequence fromString(String s)", "identifier": "fromString", "invocations...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_344
{ "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 testNullTermCase() 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 helper...
{ "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_714
{ "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 testGroupedNumberedField() throws Exception {\n Query query = new QueryImpl();\n query.setQuery(\"SOURCE == 'sourceValue' AND SINK == 'targetValue' AND TYPE == 'TEST9' AND RELATION == 'REL1-REL2' AND ATTRIBUTE1 == 'SOURCE1-SOURCE2'\");\n \n String transfor...
{ "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_62
{ "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 testConfigureGidxTable() throws AccumuloSecurityException, AccumuloException, TableNotFoundException {\n \n ShardTableConfigHelperTest.logger.info(\"ShardTableConfigHelperTest.testConfigureGidxTable called.\");\n \n try {\n \n Configu...
{ "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 configureGidxTable(TableOperations tops) throws AccumuloException, AccumuloSecurityException, TableNotFoundException {\n // Add the UID aggregator\n for (IteratorScope scope : IteratorScope.values()) {\n String stem = String.format(\"%s%s.%s\", Property.TABLE_ITERATO...
{ "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_850
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/core/iterators/DataWaveFieldIndexRangeIteratorJexlTest.java", "identifier": "DataWaveFieldIndexRangeIteratorJexlTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void negatedRangesTest() {\n SortedSet<Range> sortedRanges = new TreeSet<>();\n \n sortedRanges.add(new Range(new Key(\"A\"), false, new Key(\"C\"), false));\n sortedRanges.add(new Range(new Key(\"E\"), false, new Key(\"G\"), true));\n sortedRanges.add(n...
{ "fields": [ { "declarator": "upperBound = null", "modifier": "protected", "original_string": "protected Text upperBound = null;", "type": "Text", "var_name": "upperBound" }, { "declarator": "upperInclusive = true", "modifier": "protected", "original_string...
{ "body": "@Override\n protected List<Range> buildBoundingFiRanges(Text rowId, Text fiName, Text fieldValue) {\n if (ANY_FINAME.equals(fiName)) {\n Key startKey = new Key(rowId, FI_START);\n Key endKey = new Key(rowId, FI_END);\n return new RangeSplitter(new Range(startKey, ...
{ "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_503
{ "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 LENoFieldTest() 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_153
{ "fields": [ { "declarator": "CONFIG_LOC = \"/datawave/ingest/mapreduce/job/metrics/test-metrics-config.xml\"", "modifier": "private static final", "original_string": "private static final String CONFIG_LOC = \"/datawave/ingest/mapreduce/job/metrics/test-metrics-config.xml\";", "type": "S...
{ "body": "@Test\n public void shouldDisableMetricsWhenConfigFails() throws Exception {\n String table = MetricsConfiguration.getTable(conf);\n \n // Using mocks to force error during tops.getIteratorSetting()\n TableOperations tops = EasyMock.createMock(TableOperations.class);\n ...
{ "fields": [ { "declarator": "tableName", "modifier": "private", "original_string": "private String tableName;", "type": "String", "var_name": "tableName" }, { "declarator": "conf", "modifier": "private", "original_string": "private Configuration conf;", ...
{ "body": "@Override\n public void configure(TableOperations tops) throws AccumuloException, AccumuloSecurityException, TableNotFoundException {\n if (MetricsConfiguration.isEnabled(conf)) {\n try {\n String table = MetricsConfiguration.getTable(conf);\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_446
{ "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 testAndNull() throws Exception {\n String originalQuery = \"FOO == 'abc' && BAR == null\";\n ASTJexlScript script = JexlASTHelper.parseJexlQuery(originalQuery);\n final Map<String,ExpressionFilter> filter = EventDataQueryExpressionVisitor.getExpressionFilters(scr...
{ "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_915
{ "fields": [ { "declarator": "FILTER_CONFIGURATION_FILE = \"/test-filter-rules.xml\"", "modifier": "private static final", "original_string": "private static final String FILTER_CONFIGURATION_FILE = \"/test-filter-rules.xml\";", "type": "String", "var_name": "FILTER_CONFIGURATION_FI...
{ "body": "@Test(expected = IOException.class)\n public void verifyFilterClass() throws IOException {\n Path fileWithMissingClassname = new Path(this.getClass().getResource(FILE_WITH_MISSING_FILTER_CLASS).toString());\n rules = watcher.loadContents(fs.open(fileWithMissingClassname));\n }", "clas...
{ "fields": [ { "declarator": "log = Logger.getLogger(FileRuleWatcher.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(FileRuleWatcher.class);", "type": "Logger", "var_name": "log" }, { "declarator": "it...
{ "body": "@Override\n protected Collection<FilterRule> loadContents(InputStream in) throws IOException {\n \n try {\n List<RuleConfig> mergedRuleConfigs = loadRuleConfigs(in);\n List<FilterRule> filterRules = new ArrayList<>();\n /**\n * This has been cha...
{ "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_1074
{ "fields": [ { "declarator": "bean = new TestMapReduceBean()", "modifier": "@TestSubject\n private", "original_string": "@TestSubject\n private TestMapReduceBean bean = new TestMapReduceBean();", "type": "TestMapReduceBean", "var_name": "bean" }, { "declarator": ...
{ "body": "@Test(expected = UnauthorizedException.class)\n public void testInvalidUserAuthorization() throws Exception {\n // Create principal that does not have AuthorizedUser role\n DatawaveUser user = new DatawaveUser(SubjectIssuerDNPair.of(userDN, \"CN=ca, OU=acme\"), UserType.USER, Arrays.asList...
{ "fields": [ { "declarator": "log = Logger.getLogger(this.getClass())", "modifier": "private", "original_string": "private Logger log = Logger.getLogger(this.getClass());", "type": "Logger", "var_name": "log" }, { "declarator": "ctx", "modifier": "@Resource\n ...
{ "body": "@POST\n @Produces({\"application/xml\", \"text/xml\", \"application/json\", \"text/yaml\", \"text/x-yaml\", \"application/x-yaml\", \"application/x-protobuf\",\n \"application/x-protostuff\"})\n @javax.ws.rs.Path(\"/submit\")\n @GZIP\n public GenericResponse<String> submit(@FormParam...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_295
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/jexl/visitors/HasTopLevelNegationVisitorTest.java", "identifier": "HasTopLevelNegationVisitorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void test7() throws Exception {\n ASTJexlScript script = JexlASTHelper.parseJexlQuery(\"(FOO == 'bar' || FOO != 'bar')\");\n Assert.assertTrue(HasTopLevelNegationVisitor.hasTopLevelNegation(script));\n }", "class_method_signature": "HasTopLevelNegationVisitorTest.test7(...
{ "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_19
{ "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 testDeepCopyCannotCopyUninitialized() {\n PropogatingIterator uut = new PropogatingIterator();\n uut.deepCopy(new MockIteratorEnvironment(false));\n }", "class_method_signature": "PropogatingIteratorTest.testDeepCopyCannotCopy...
{ "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": "public PropogatingIterator deepCopy(IteratorEnvironment env) {\n return new PropogatingIterator(this, env);\n }", "class_method_signature": "PropogatingIterator.deepCopy(IteratorEnvironment env)", "constructor": false, "full_signature": "public PropogatingIterator deepCopy(IteratorEnvironme...
{ "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_780
{ "fields": [ { "declarator": "equality = new TLDEquality()", "modifier": "private", "original_string": "private TLDEquality equality = new TLDEquality();", "type": "TLDEquality", "var_name": "equality" } ], "file": "warehouse/query-core/src/test/java/datawave/query/function/...
{ "body": "@Test\n public void testDifferentParentSameChildren() {\n Key docKey = new Key(\"row\", \"parent.document.id.child\");\n Key otherKey = new Key(\"row\", \"parent.document.id2.child\");\n assertFalse(equality.partOf(docKey, otherKey));\n assertFalse(equality.partOf(otherKey, d...
{ "fields": [], "file": "warehouse/query-core/src/main/java/datawave/query/function/TLDEquality.java", "identifier": "TLDEquality", "interfaces": "implements Equality", "methods": [ { "class_method_signature": "TLDEquality.partOf(Key key, Key other)", "constructor": false, "full_signatur...
{ "body": "@Override\n public boolean partOf(Key key, Key other) {\n ByteSequence docCF = TLD.estimateRootPointerFromId(key.getColumnFamilyData());\n ByteSequence otherCF = TLD.estimateRootPointerFromId(other.getColumnFamilyData());\n return otherCF.equals(docCF);\n }", "class_method_sign...
{ "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_104
{ "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 testShardIdScheme() throws ParseException {\n Map<String,Path> shardedTableMapFiles = new HashMap<>();\n shardedTableMapFiles.put(\"shard\", new Path(\"/path/that/is/fake/to/make/the/test/pass\"));\n \n // now generate keys and ensure we have even distribu...
{ "fields": [ { "declarator": "log = Logger.getLogger(ShardIdPartitioner.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(ShardIdPartitioner.class);", "type": "Logger", "var_name": "log" }, { "declarator...
{ "body": "@Override\n public synchronized int getPartition(BulkIngestKey key, Value value, int numReduceTasks) {\n String shardId = key.getKey().getRow().toString();\n try {\n long shardIndex = generateNumberForShardId(shardId, getBaseTime());\n return (int) (shardIndex % numRe...
{ "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_554
{ "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 parseEqualsWithEscapedQuoteAndBackslashesTest() throws Exception {\n String query = \"CITY == 'ci\\\\\\\\\\\\\\\\\\\\\\\\ty\\\\\\\\.bl\\\\\\\\\\\\'ah'\";\n JexlNode node = JexlASTHelper.parseJexlQuery(query);\n String interpretedQuery = JexlStringBuildingVisitor....
{ "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_807
{ "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 testIsDocumentRange() {\n Set<String> docIds = Sets.newHashSet(\"docId0\", \"docId1\", \"docId2\");\n IndexInfo indexInfo = new IndexInfo(docIds);\n assertTrue(TupleToRange.isDocumentRange(indexInfo));\n \n IndexInfo otherInfo = new IndexInfo(3L);\n...
{ "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 boolean isDocumentRange(IndexInfo indexInfo) {\n return !indexInfo.uids().isEmpty();\n }", "class_method_signature": "TupleToRange.isDocumentRange(IndexInfo indexInfo)", "constructor": false, "full_signature": "public static boolean isDocumentRange(IndexInfo indexInfo)", "id...
{ "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_942
{ "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 testDuplicateKeyInsertion() 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 \...
{ "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_411
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/jexl/visitors/RootNegationCheckVisitorTest.java", "identifier": "RootNegationCheckVisitorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testNegatedMarker() throws ParseException {\n ASTJexlScript script = JexlASTHelper.parseJexlQuery(\"((ASTDelayedPredicate = true) && !(FOO == 'bar' && FOO == 'baz'))\");\n Assert.assertTrue(RootNegationCheckVisitor.hasTopLevelNegation(script));\n }", "class_method_...
{ "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_738
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/language/parser/jexl/JexlNodeSetTest.java", "identifier": "JexlNodeSetTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testIterator() {\n JexlNode node = JexlNodeFactory.buildEQNode(\"FOO\", \"bar\");\n JexlNodeSet nodeSet = new JexlNodeSet();\n nodeSet.add(node);\n \n Iterator<JexlNode> iter = nodeSet.iterator();\n assertTrue(iter.hasNext());\n 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 Iterator<JexlNode> iterator() {\n return Collections.unmodifiableCollection(nodeMap.values()).iterator();\n }", "class_method_signature": "JexlNodeSet.iterator()", "constructor": false, "full_signature": "@Override public Iterator<JexlNode> iterator()", "identifier":...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_692
{ "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 testExceedShardsPerDayThresholdAndDocumentsPerShardThreshold() throws Exception {\n \n // Components that define the query: \"FOO == 'boohoo'\"\n String fieldName = \"FOO\";\n String fieldValue = \"boohoo\";\n ASTEQNode eqNode = (ASTEQNode) JexlNode...
{ "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_1023
{ "fields": [ { "declarator": "loginModule", "modifier": "private", "original_string": "private DatawaveCertRolesLoginModule loginModule;", "type": "DatawaveCertRolesLoginModule", "var_name": "loginModule" }, { "declarator": "callbackHandler", "modifier": "private...
{ "body": "@Test\n public void testFailedLogin() throws Exception {\n callbackHandler.name = \"fakeUser\";\n callbackHandler.credential = testUserCert;\n \n boolean success = loginModule.login();\n assertFalse(\"Login succeed for alias not in roles.properties\", success);\n }"...
{ "fields": [ { "declarator": "TRUSTED_HEADER_OPT = \"trustedHeaderLogin\"", "modifier": "private static final", "original_string": "private static final String TRUSTED_HEADER_OPT = \"trustedHeaderLogin\";", "type": "String", "var_name": "TRUSTED_HEADER_OPT" }, { "decla...
{ "body": "@Override\n public boolean login() throws LoginException {\n // This login module should do nothing if we're using the trusted header login (since a cert won't be supplied)\n // The reason for having this option is so that the module can be on the stack and support either configuration --\...
{ "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_368
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/jexl/visitors/IteratorBuildingVisitorTest.java", "identifier": "IteratorBuildingVisitorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test(expected = DatawaveFatalQueryException.class)\n public void visitEqNode_nullValueIndexOnlyTest() {\n ASTEQNode node = (ASTEQNode) JexlNodeFactory.buildEQNode(\"FIELD\", null);\n \n IteratorBuildingVisitor visitor = getDefault();\n visitor.setIndexOnlyFields(Collections....
{ "fields": [ { "declarator": "log = Logger.getLogger(IteratorBuildingVisitor.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(IteratorBuildingVisitor.class);", "type": "Logger", "var_name": "log" }, { "...
{ "body": "public IteratorBuildingVisitor setIndexOnlyFields(Set<String> indexOnlyFields) {\n this.indexOnlyFields = (indexOnlyFields == null ? Collections.emptySet() : indexOnlyFields);\n return this;\n }", "class_method_signature": "IteratorBuildingVisitor.setIndexOnlyFields(Set<String> indexOnly...
{ "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_387
{ "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 wrongOptimizationInQueryModelVisitor() throws ParseException {\n ASTJexlScript script = JexlASTHelper.parseJexlQuery(\"AGE > 10 && AGE > 0\");\n ASTJexlScript expectedScript = JexlASTHelper.parseJexlQuery(\"AGE > 0 && AGE > 10\");\n ASTJexlScript actualScript = Q...
{ "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_811
{ "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 testGenerateShardRange() {\n String shard = \"20190314_0\";\n IndexInfo indexInfo = new IndexInfo(-1);\n indexInfo.applyNode(queryNode);\n \n // Build expected shard ranges\n List<Range> expectedRanges = new ArrayList<>(1);\n expectedR...
{ "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> createShardRange(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.createShardRange(...
{ "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_542
{ "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 parse1InteriorBackslashEquals() throws Exception {\n String query = \"CITY == 'ci\\\\\\\\ty'\";\n JexlNode node = JexlASTHelper.parseJexlQuery(query);\n String interpretedQuery = JexlStringBuildingVisitor.buildQuery(node);\n Assert.assertEquals(query, inte...
{ "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_112
{ "fields": [ { "declarator": "NUM_REDUCERS = 1000", "modifier": "private static final", "original_string": "private static final int NUM_REDUCERS = 1000;", "type": "int", "var_name": "NUM_REDUCERS" } ], "file": "warehouse/ingest-core/src/test/java/datawave/ingest/mapreduce/p...
{ "body": "@Test\n public void testLimitedRangeSetViaGenericConfig() throws IllegalAccessException, InstantiationException {\n Configuration conf = new Configuration();\n conf.setInt(PartitionLimiter.MAX_PARTITIONS_PROPERTY, 8);\n \n LimitedKeyPartitioner partitioner = LimitedKeyPartiti...
{ "fields": [ { "declarator": "log = Logger.getLogger(LimitedKeyPartitioner.class)", "modifier": "private static", "original_string": "private static Logger log = Logger.getLogger(LimitedKeyPartitioner.class);", "type": "Logger", "var_name": "log" }, { "declarator": "co...
{ "body": "@Override\n public void setConf(Configuration conf) {\n this.conf = conf;\n partitionLimiter = new PartitionLimiter(conf);\n }", "class_method_signature": "LimitedKeyPartitioner.setConf(Configuration conf)", "constructor": false, "full_signature": "@Override public void setConf(Co...
{ "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_407
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/jexl/visitors/RootNegationCheckVisitorTest.java", "identifier": "RootNegationCheckVisitorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testEq() throws ParseException {\n ASTJexlScript script = JexlASTHelper.parseJexlQuery(\"FOO == 'bar'\");\n Assert.assertFalse(RootNegationCheckVisitor.hasTopLevelNegation(script));\n }", "class_method_signature": "RootNegationCheckVisitorTest.testEq()", "constru...
{ "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_954
{ "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_EJBException3() {\n Exception e = new EJBException(new ArrayStoreException());\n StackTraceElement[] traceArr = new StackTraceElement[1];\n traceArr[0] = new StackTraceElement(\"dummyClass\", \"dummyMethod\", null, 0);\n \n e.setStack...
{ "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_684
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/iterator/logic/NegationFilterTest.java", "identifier": "NegationFilterTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void test() throws Throwable {\n List<String> filterSet1 = Lists.newArrayList(\"a\", \"b\", \"c\", \"q\", \"r\", \"s\");\n Itr<String> f1 = new Itr<>(filterSet1);\n List<String> filterSet2 = Lists.newArrayList(\"a\", \"b\", \"c\", \"d\", \"e\", \"f\");\n Itr<St...
{ "fields": [], "file": "warehouse/query-core/src/main/java/datawave/query/iterator/logic/NegationFilter.java", "identifier": "NegationFilter", "interfaces": "", "methods": [ { "class_method_signature": "NegationFilter.isFiltered(T t, TreeMultimap<T,NestedIterator<T>> filters, Util.Transformer<T> tr...
{ "body": "public static <T extends Comparable<T>> boolean isFiltered(T t, TreeMultimap<T,NestedIterator<T>> filters, Util.Transformer<T> transformer) {\n // quick check to see if we already know we're supposed to be filtered\n if (filters.containsKey(t)) {\n return true;\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_1035
{ "fields": [ { "declarator": "ccb", "modifier": "private", "original_string": "private CredentialsCacheBean ccb;", "type": "CredentialsCacheBean", "var_name": "ccb" }, { "declarator": "authManager", "modifier": "@Inject\n private", "original_string": "@I...
{ "body": "@Test\n public void testList() throws Exception {\n DatawaveUser u = ccb.list(\"user2<issuer2>\");\n assertNotNull(u);\n assertEquals(\"user2<issuer2>\", u.getName());\n }", "class_method_signature": "CredentialsCacheBeanTest.testList()", "constructor": false, "full_signatu...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(getClass())", "modifier": "protected", "original_string": "protected Logger log = LoggerFactory.getLogger(getClass());", "type": "Logger", "var_name": "log" }, { "declarator": "authManager", "modifier": ...
{ "body": "@GET\n @Path(\"/{dn}/list\")\n @Produces({\"text/plain\", \"application/xml\", \"text/xml\", \"application/json\", \"text/html\"})\n @JmxManaged\n public DatawaveUser list(@PathParam(\"dn\") String dn) {\n DatawaveUser user;\n if (!cachedDatawaveUserServiceInstance.isUnsatisfied()...
{ "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_58
{ "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 testSetupOneShardTableDefinedInConfiguration() {\n \n ShardTableConfigHelperTest.logger.info(\"ShardTableConfigHelperTest.testSetupNothingDefinedInConfiguration called.\");\n \n try {\n \n ShardTableConfigHelper uut = new ShardTableCo...
{ "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 setup(String tableName, Configuration config, Logger log) throws IllegalArgumentException {\n \n this.log = log;\n this.conf = config;\n \n shardTableName = conf.get(ShardedDataTypeHandler.SHARD_TNAME, null);\n shardGidxTableName = conf.g...
{ "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_391
{ "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 isNullFunctionMapping() throws ParseException {\n ASTJexlScript script = JexlASTHelper.parseJexlQuery(\"filter:isNull(FOO)\");\n ASTJexlScript expectedScript = JexlASTHelper.parseJexlQuery(\"filter:isNull(BAR1||BAR2)\");\n ASTJexlScript actualScript = QueryModelV...
{ "fields": [ { "declarator": "log = ThreadConfigurableLogger.getLogger(QueryModelVisitor.class)", "modifier": "private static final", "original_string": "private static final Logger log = ThreadConfigurableLogger.getLogger(QueryModelVisitor.class);", "type": "Logger", "var_name": "l...
{ "body": "public static ASTJexlScript applyModel(ASTJexlScript script, QueryModel queryModel, Set<String> validFields) {\n QueryModelVisitor visitor = new QueryModelVisitor(queryModel, validFields);\n \n return (ASTJexlScript) script.jjtAccept(visitor, null);\n }", "class_method_signature":...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_145
{ "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 testTakeOwnershipJobDirectoryFailedRenameLoadedExists() throws Exception {\n \n BulkIngestMapFileLoaderTest.logger.info(\"testTakeOwnershipJobDirectoryFailedRenameLoadedExists called...\");\n \n try {\n \n URL url = BulkIngestMapFileL...
{ "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 takeOwnershipJobDirectory(Path jobDirectory) {\n boolean success = false;\n try {\n FileSystem fs = getFileSystem(srcHdfs);\n \n try {\n success = fs.rename(new Path(jobDirectory, COMPLETE_FILE_MARKER), new Path(jobDirectory, LOAD...
{ "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_515
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/jexl/visitors/RewriteNegationsVisitorTest.java", "identifier": "RewriteNegationsVisitorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testConjunctionTwoNE() throws ParseException {\n String queryString = \"FOO != BAR && BAR != FOO\";\n String expectedQuery = \"!(FOO == BAR) && !(BAR == FOO)\";\n ASTJexlScript script = JexlASTHelper.parseJexlQuery(queryString);\n ASTJexlScript negatedScri...
{ "fields": [], "file": "warehouse/query-core/src/main/java/datawave/query/jexl/visitors/RewriteNegationsVisitor.java", "identifier": "RewriteNegationsVisitor", "interfaces": "", "methods": [ { "class_method_signature": "RewriteNegationsVisitor.rewrite(T node)", "constructor": false, "fu...
{ "body": "public static <T extends JexlNode> T rewrite(T node) {\n node.jjtAccept(new RewriteNegationsVisitor(), null);\n return node;\n }", "class_method_signature": "RewriteNegationsVisitor.rewrite(T node)", "constructor": false, "full_signature": "public static T rewrite(T node)", "identi...
{ "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_846
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/cardinality/TestCardinalityRecord.java", "identifier": "TestCardinalityRecord", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testCartesianProductOfFields3() {\n \n Set<String> recordedFields = new HashSet<>();\n CardinalityRecord cr = new CardinalityRecord(recordedFields, CardinalityRecord.DateType.DOCUMENT);\n \n Map<String,List<String>> valueMap = new HashMap<>();\n ...
{ "fields": [ { "declarator": "serialVersionUID = 1L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = 1L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "resultCardinalityValueFields = null", ...
{ "body": "public List<String> assembleValues(String field, Map<String,List<String>> valueMap) {\n \n List<String> values = new ArrayList<>();\n List<List<String>> valueLists = new ArrayList<>();\n Iterable<String> fieldSplit = Splitter.on(\"|\").split(field);\n \n int numSpl...
{ "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_903
{ "fields": [ { "declarator": "standardKey", "modifier": "private", "original_string": "private Key standardKey;", "type": "Key", "var_name": "standardKey" }, { "declarator": "standardValue", "modifier": "private", "original_string": "private Value standardV...
{ "body": "@Test\n public void testDecodeActivityHistogramWithList() {\n // only set 3 durations instead of the expected 7\n List<Long> incompleteList = createIncompleteHistogram();\n \n List<Long> activityByHour = EdgeValueHelper.decodeActivityHistogram(incompleteList);\n verify...
{ "fields": [ { "declarator": "log = Logger.getLogger(this.getClass())", "modifier": "private", "original_string": "private Logger log = Logger.getLogger(this.getClass());", "type": "Logger", "var_name": "log" }, { "declarator": "ACTIVITY_HISTOGRAM_LENGTH = 24", "...
{ "body": "public static List<Long> decodeActivityHistogram(Value value) {\n try {\n return decodeActivityHistogram(EdgeData.EdgeValue.parseFrom(value.get()).getHoursList());\n } catch (InvalidProtocolBufferException e) {\n // Probably an old edge value\n return decodeAc...
{ "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_450
{ "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 testOrSame() throws Exception {\n String originalQuery = \"FOO == 'abc' || FOO == 'def'\";\n ASTJexlScript script = JexlASTHelper.parseJexlQuery(originalQuery);\n final Map<String,ExpressionFilter> filter = EventDataQueryExpressionVisitor.getExpressionFilters(scr...
{ "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_283
{ "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(expected = IllegalArgumentException.class)\n public void testApplyDeMorgansNotAndOrNode() {\n JexlNode node = JexlNodeFactory.buildEQNode(\"field\", \"value\");\n PushdownNegationVisitor.applyDeMorgans(node, false);\n }", "class_method_signature": "PushdownNegationVisitorTest.te...
{ "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 applyDeMorgans(JexlNode root, boolean negateRoot) {\n if (root == null) {\n throw new IllegalArgumentException(\"root must not be null\");\n }\n \n if (root.jjtGetNumChildren() == 0) {\n throw new IllegalStateException(\"root must hav...
{ "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_779
{ "fields": [ { "declarator": "equality = new TLDEquality()", "modifier": "private", "original_string": "private TLDEquality equality = new TLDEquality();", "type": "TLDEquality", "var_name": "equality" } ], "file": "warehouse/query-core/src/test/java/datawave/query/function/...
{ "body": "@Test\n public void testSameParentDifferentChildren() {\n Key docKey = new Key(\"row\", \"parent.document.id.child\");\n Key otherKey = new Key(\"row\", \"parent.document.id.child2\");\n assertFalse(equality.partOf(docKey, otherKey));\n assertFalse(equality.partOf(otherKey, d...
{ "fields": [], "file": "warehouse/query-core/src/main/java/datawave/query/function/TLDEquality.java", "identifier": "TLDEquality", "interfaces": "implements Equality", "methods": [ { "class_method_signature": "TLDEquality.partOf(Key key, Key other)", "constructor": false, "full_signatur...
{ "body": "@Override\n public boolean partOf(Key key, Key other) {\n ByteSequence docCF = TLD.estimateRootPointerFromId(key.getColumnFamilyData());\n ByteSequence otherCF = TLD.estimateRootPointerFromId(other.getColumnFamilyData());\n return otherCF.equals(docCF);\n }", "class_method_sign...
{ "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_1062
{ "fields": [ { "declarator": "crq = null", "modifier": "private", "original_string": "private CachedRunningQuery crq = null;", "type": "CachedRunningQuery", "var_name": "crq" }, { "declarator": "fixedColumns = StringUtils.join(CacheableQueryRowImpl.getFixedColumnSet(),...
{ "body": "@Test\n public void testCountKeyword() throws Exception {\n String sql = crq.generateSql(\"v\", \"COUNT(foo.bar)\", null, null, \"`foo.bar` DESC\", \"me\", null);\n Assert.assertEquals(\"SELECT \" + fixedColumns + \",COUNT(`foo.bar`) FROM v WHERE _user_ = 'me' ORDER BY `foo.bar` DESC\", sq...
{ "fields": [ { "declarator": "log = Logger.getLogger(CachedRunningQuery.class)", "modifier": "private static", "original_string": "private static Logger log = Logger.getLogger(CachedRunningQuery.class);", "type": "Logger", "var_name": "log" }, { "declarator": "datasour...
{ "body": "public String generateSql(String view, String fields, String conditions, String grouping, String order, String user, Connection connection)\n throws SQLException {\n CachedResultsParameters.validate(view);\n StringBuilder buf = new StringBuilder();\n if (StringUtils....
{ "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_329
{ "fields": [ { "declarator": "log = Logger.getLogger(ExecutableExpansionVisitorTest.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(ExecutableExpansionVisitorTest.class);", "type": "Logger", "var_name": "log" },...
{ "body": "@Test\n public void testExceededThresholdExpansionExternal() throws Exception {\n ASTJexlScript queryTree = JexlASTHelper\n .parseJexlQuery(\"UUID == 'capone' && (filter:includeRegex(QUOTE,'.*kind.*') || QUOTE == 'kind' || BIRTH_DATE == '123')\");\n \n // upda...
{ "fields": [ { "declarator": "log = Logger.getLogger(ExecutableExpansionVisitor.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(ExecutableExpansionVisitor.class);", "type": "Logger", "var_name": "log" }, { ...
{ "body": "public static ASTJexlScript expand(ASTJexlScript script, ShardQueryConfiguration config, MetadataHelper helper) {\n ExecutableExpansionVisitor visitor = new ExecutableExpansionVisitor(config, helper);\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_796
{ "fields": [ { "declarator": "intersector", "modifier": "private", "original_string": "private AncestorUidIntersector intersector;", "type": "AncestorUidIntersector", "var_name": "intersector" }, { "declarator": "uids1", "modifier": "private", "original_str...
{ "body": "@Test\n public void testReduceOverlapUids2() {\n uids2.add(new IndexMatch(\"a.b.c.1\", node1));\n \n uids1.add(new IndexMatch(\"a.b.c.1.1\", node2));\n uids1.add(new IndexMatch(\"a.b.c.1.1.2\", node2));\n \n Set<IndexMatch> result = intersector.intersect(uids1, ...
{ "fields": [], "file": "warehouse/query-core/src/main/java/datawave/query/ancestor/AncestorUidIntersector.java", "identifier": "AncestorUidIntersector", "interfaces": "implements UidIntersector", "methods": [ { "class_method_signature": "AncestorUidIntersector.intersect(Set<IndexMatch> uids1, Set<I...
{ "body": "@Override\n public Set<IndexMatch> intersect(Set<IndexMatch> uids1, Set<IndexMatch> uids2, List<JexlNode> delayedNodes) {\n /*\n * C) Both are small, so we have an easy case where we can prune much of this sub query. Must propagate delayed nodes, though.\n */\n \n //...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_282
{ "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(expected = IllegalStateException.class)\n public void testApplyDeMorgansNoChildren() {\n PushdownNegationVisitor.applyDeMorgans(new ASTAndNode(1), false);\n }", "class_method_signature": "PushdownNegationVisitorTest.testApplyDeMorgansNoChildren()", "constructor": false, "full_signa...
{ "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 applyDeMorgans(JexlNode root, boolean negateRoot) {\n if (root == null) {\n throw new IllegalArgumentException(\"root must not be null\");\n }\n \n if (root.jjtGetNumChildren() == 0) {\n throw new IllegalStateException(\"root must hav...
{ "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_778
{ "fields": [ { "declarator": "equality = new TLDEquality()", "modifier": "private", "original_string": "private TLDEquality equality = new TLDEquality();", "type": "TLDEquality", "var_name": "equality" } ], "file": "warehouse/query-core/src/test/java/datawave/query/function/...
{ "body": "@Test\n public void testSameParentSameChildren() {\n Key docKey = new Key(\"row\", \"parent.document.id.child\");\n Key otherKey = new Key(\"row\", \"parent.document.id.child\");\n assertTrue(equality.partOf(docKey, otherKey));\n assertTrue(equality.partOf(otherKey, docKey));...
{ "fields": [], "file": "warehouse/query-core/src/main/java/datawave/query/function/TLDEquality.java", "identifier": "TLDEquality", "interfaces": "implements Equality", "methods": [ { "class_method_signature": "TLDEquality.partOf(Key key, Key other)", "constructor": false, "full_signatur...
{ "body": "@Override\n public boolean partOf(Key key, Key other) {\n ByteSequence docCF = TLD.estimateRootPointerFromId(key.getColumnFamilyData());\n ByteSequence otherCF = TLD.estimateRootPointerFromId(other.getColumnFamilyData());\n return otherCF.equals(docCF);\n }", "class_method_sign...
{ "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_1063
{ "fields": [ { "declarator": "crq = null", "modifier": "private", "original_string": "private CachedRunningQuery crq = null;", "type": "CachedRunningQuery", "var_name": "crq" }, { "declarator": "fixedColumns = StringUtils.join(CacheableQueryRowImpl.getFixedColumnSet(),...
{ "body": "@Test\n public void testAlias() throws Exception {\n String sql = crq.generateSql(\"v\", \"COUNT(foo.bar) as temp\", null, \"temp\", \"temp ASC\", \"me\", null);\n Assert.assertEquals(\"SELECT \" + fixedColumns + \",COUNT(`foo.bar`) as temp FROM v WHERE _user_ = 'me' GROUP BY temp ORDER BY...
{ "fields": [ { "declarator": "log = Logger.getLogger(CachedRunningQuery.class)", "modifier": "private static", "original_string": "private static Logger log = Logger.getLogger(CachedRunningQuery.class);", "type": "Logger", "var_name": "log" }, { "declarator": "datasour...
{ "body": "public String generateSql(String view, String fields, String conditions, String grouping, String order, String user, Connection connection)\n throws SQLException {\n CachedResultsParameters.validate(view);\n StringBuilder buf = new StringBuilder();\n if (StringUtils....
{ "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_328
{ "fields": [ { "declarator": "log = Logger.getLogger(ExecutableExpansionVisitorTest.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(ExecutableExpansionVisitorTest.class);", "type": "Logger", "var_name": "log" },...
{ "body": "@Test\n public void testNestedExpansionWithFailures() throws Exception {\n ASTJexlScript queryTree = JexlASTHelper\n .parseJexlQuery(\"UUID == 'A' && (QUOTE == 'kind' || BIRTH_DATE == '234'|| (BIRTH_DATE == '123' && QUOTE == 'kind' && !(filter:includeRegex(QUOTE, '.*unkind....
{ "fields": [ { "declarator": "log = Logger.getLogger(ExecutableExpansionVisitor.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(ExecutableExpansionVisitor.class);", "type": "Logger", "var_name": "log" }, { ...
{ "body": "@Override\n public Object visit(ASTJexlScript node, Object data) {\n // no reason to go any further if the query is executable because that means there couldn't be a problem\n boolean executable = ExecutableDeterminationVisitor.isExecutable(node, config, helper);\n if (!executable) ...
{ "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_797
{ "fields": [ { "declarator": "intersector", "modifier": "private", "original_string": "private AncestorUidIntersector intersector;", "type": "AncestorUidIntersector", "var_name": "intersector" }, { "declarator": "uids1", "modifier": "private", "original_str...
{ "body": "@Test\n public void testEqualityUid() {\n uids2.add(new IndexMatch(\"a.b.c.1\", node1));\n uids1.add(new IndexMatch(\"a.b.c.1\", node2));\n \n Set<IndexMatch> result = intersector.intersect(uids1, uids2, Collections.EMPTY_LIST);\n \n Assert.assertNotNull(result)...
{ "fields": [], "file": "warehouse/query-core/src/main/java/datawave/query/ancestor/AncestorUidIntersector.java", "identifier": "AncestorUidIntersector", "interfaces": "implements UidIntersector", "methods": [ { "class_method_signature": "AncestorUidIntersector.intersect(Set<IndexMatch> uids1, Set<I...
{ "body": "@Override\n public Set<IndexMatch> intersect(Set<IndexMatch> uids1, Set<IndexMatch> uids2, List<JexlNode> delayedNodes) {\n /*\n * C) Both are small, so we have an easy case where we can prune much of this sub query. Must propagate delayed nodes, though.\n */\n \n //...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_144
{ "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 testTakeOwnershipJobDirectoryFailedOwnershipExchangeComplete() throws Exception {\n \n BulkIngestMapFileLoaderTest.logger.info(\"testTakeOwnershipJobDirectoryFailedOwnershipExchangeComplete called...\");\n \n try {\n \n URL url = Bulk...
{ "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 takeOwnershipJobDirectory(Path jobDirectory) {\n boolean success = false;\n try {\n FileSystem fs = getFileSystem(srcHdfs);\n \n try {\n success = fs.rename(new Path(jobDirectory, COMPLETE_FILE_MARKER), new Path(jobDirectory, LOAD...
{ "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_514
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/jexl/visitors/RewriteNegationsVisitorTest.java", "identifier": "RewriteNegationsVisitorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testSingleNE() throws ParseException {\n String queryString = \"FOO != BAR\";\n String expectedQuery = \"!(FOO == BAR)\";\n ASTJexlScript script = JexlASTHelper.parseJexlQuery(queryString);\n ASTJexlScript negatedScript = RewriteNegationsVisitor.rewrite(sc...
{ "fields": [], "file": "warehouse/query-core/src/main/java/datawave/query/jexl/visitors/RewriteNegationsVisitor.java", "identifier": "RewriteNegationsVisitor", "interfaces": "", "methods": [ { "class_method_signature": "RewriteNegationsVisitor.rewrite(T node)", "constructor": false, "fu...
{ "body": "public static <T extends JexlNode> T rewrite(T node) {\n node.jjtAccept(new RewriteNegationsVisitor(), null);\n return node;\n }", "class_method_signature": "RewriteNegationsVisitor.rewrite(T node)", "constructor": false, "full_signature": "public static T rewrite(T node)", "identi...
{ "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_847
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/cardinality/TestCardinalityRecord.java", "identifier": "TestCardinalityRecord", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testCartesianProductOfFields4() {\n \n Set<String> recordedFields = new HashSet<>();\n CardinalityRecord cr = new CardinalityRecord(recordedFields, CardinalityRecord.DateType.DOCUMENT);\n \n Map<String,List<String>> valueMap = new HashMap<>();\n ...
{ "fields": [ { "declarator": "serialVersionUID = 1L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = 1L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "resultCardinalityValueFields = null", ...
{ "body": "public List<String> assembleValues(String field, Map<String,List<String>> valueMap) {\n \n List<String> values = new ArrayList<>();\n List<List<String>> valueLists = new ArrayList<>();\n Iterable<String> fieldSplit = Splitter.on(\"|\").split(field);\n \n int numSpl...
{ "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_902
{ "fields": [ { "declarator": "standardKey", "modifier": "private", "original_string": "private Key standardKey;", "type": "Key", "var_name": "standardKey" }, { "declarator": "standardValue", "modifier": "private", "original_string": "private Value standardV...
{ "body": "@Test\n public void testDecodeActivityHistogramWithNonProtoValue() {\n // only set 3 durations instead of the expected 7\n List<Long> incompleteList = createIncompleteHistogram();\n \n Value nonProtoValue = new Value(new SummingArrayCombiner.VarLongArrayEncoder().encode(incom...
{ "fields": [ { "declarator": "log = Logger.getLogger(this.getClass())", "modifier": "private", "original_string": "private Logger log = Logger.getLogger(this.getClass());", "type": "Logger", "var_name": "log" }, { "declarator": "ACTIVITY_HISTOGRAM_LENGTH = 24", "...
{ "body": "public static List<Long> decodeActivityHistogram(Value value) {\n try {\n return decodeActivityHistogram(EdgeData.EdgeValue.parseFrom(value.get()).getHoursList());\n } catch (InvalidProtocolBufferException e) {\n // Probably an old edge value\n return decodeAc...
{ "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_451
{ "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 testAndSame() throws Exception {\n String originalQuery = \"FOO == 'abc' && FOO == 'def'\";\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_1034
{ "fields": [ { "declarator": "ccb", "modifier": "private", "original_string": "private CredentialsCacheBean ccb;", "type": "CredentialsCacheBean", "var_name": "ccb" }, { "declarator": "authManager", "modifier": "@Inject\n private", "original_string": "@I...
{ "body": "@Test\n public void testListMatching() throws Exception {\n ArrayList<String> expectedDns = Lists.newArrayList(\"server1<issuer1>\", \"user1<issuer1>\");\n DnList dnList = ccb.listDNsMatching(\"issuer1\");\n assertEquals(2, dnList.getDns().size());\n assertEquals(expectedDns,...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(getClass())", "modifier": "protected", "original_string": "protected Logger log = LoggerFactory.getLogger(getClass());", "type": "Logger", "var_name": "log" }, { "declarator": "authManager", "modifier": ...
{ "body": "@GET\n @Path(\"/listMatching\")\n @Produces({\"text/plain\", \"application/xml\", \"text/xml\", \"application/json\", \"text/html\"})\n @JmxManaged\n public DnList listDNsMatching(@QueryParam(\"substring\") final String substr) {\n DnList result;\n if (!cachedDatawaveUserServiceIn...
{ "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_685
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/iterator/logic/NegationFilterTest.java", "identifier": "NegationFilterTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testDuplicateTerm() throws Throwable {\n List<String> filterSet1 = Lists.newArrayList(\"a\", \"b\", \"c\", \"q\", \"r\", \"s\");\n Itr<String> f1 = new Itr<>(filterSet1);\n List<String> filterSet2 = Lists.newArrayList(\"a\", \"b\", \"c\", \"d\", \"e\", \"f\");\n ...
{ "fields": [], "file": "warehouse/query-core/src/main/java/datawave/query/iterator/logic/NegationFilter.java", "identifier": "NegationFilter", "interfaces": "", "methods": [ { "class_method_signature": "NegationFilter.isFiltered(T t, TreeMultimap<T,NestedIterator<T>> filters, Util.Transformer<T> tr...
{ "body": "public static <T extends Comparable<T>> boolean isFiltered(T t, TreeMultimap<T,NestedIterator<T>> filters, Util.Transformer<T> transformer) {\n // quick check to see if we already know we're supposed to be filtered\n if (filters.containsKey(t)) {\n return true;\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_59
{ "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 testSetupOneShardTableDefinedInConfigurationButNotTableNameParameter() {\n \n ShardTableConfigHelperTest.logger.info(\"ShardTableConfigHelperTest.testSetupNothingDefinedInConfiguration called.\");\n \n try {\n \n ShardTableConfigHelpe...
{ "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 setup(String tableName, Configuration config, Logger log) throws IllegalArgumentException {\n \n this.log = log;\n this.conf = config;\n \n shardTableName = conf.get(ShardedDataTypeHandler.SHARD_TNAME, null);\n shardGidxTableName = conf.g...
{ "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_390
{ "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 functionMappingWithTwoArgs() throws ParseException {\n ASTJexlScript script = JexlASTHelper.parseJexlQuery(\"filter:someFunction(NAM,1,GEN,2)\");\n ASTJexlScript expectedScript = JexlASTHelper.parseJexlQuery(\"filter:someFunction(NAME||NOME, 1, GENDER||GENERE, 2)\");\n ...
{ "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_810
{ "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 testGenerateTldDocumentRanges() {\n String shard = \"20190314_0\";\n Set<String> docIds = Sets.newHashSet(\"docId0\", \"docId1\", \"docId2\");\n IndexInfo indexInfo = new IndexInfo(docIds);\n indexInfo.applyNode(queryNode);\n \n // Build expe...
{ "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> createDocumentRanges(JexlNode queryNode, String shard, IndexInfo indexMatches, boolean isTldQuery) {\n List<QueryPlan> ranges = Lists.newArrayListWithCapacity(indexMatches.uids().size());\n \n for (IndexMatch indexMatch : indexMatches.uids()) {\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_543
{ "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 parse1InteriorBackslashRegex() throws Exception {\n String query = \"CITY =~ 'ci\\\\\\\\ty'\";\n JexlNode node = JexlASTHelper.parseJexlQuery(query);\n String interpretedQuery = JexlStringBuildingVisitor.buildQuery(node);\n Assert.assertEquals(query, inter...
{ "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_113
{ "fields": [ { "declarator": "NUM_REDUCERS = 1000", "modifier": "private static final", "original_string": "private static final int NUM_REDUCERS = 1000;", "type": "int", "var_name": "NUM_REDUCERS" } ], "file": "warehouse/ingest-core/src/test/java/datawave/ingest/mapreduce/p...
{ "body": "@Test\n public void testHigherMaxThanReducers() throws IllegalAccessException, InstantiationException {\n Configuration conf = new Configuration();\n conf.setInt(PartitionLimiter.MAX_PARTITIONS_PROPERTY, NUM_REDUCERS + 1);\n \n LimitedKeyPartitioner partitioner = LimitedKeyPa...
{ "fields": [ { "declarator": "log = Logger.getLogger(LimitedKeyPartitioner.class)", "modifier": "private static", "original_string": "private static Logger log = Logger.getLogger(LimitedKeyPartitioner.class);", "type": "Logger", "var_name": "log" }, { "declarator": "co...
{ "body": "@Override\n public void setConf(Configuration conf) {\n this.conf = conf;\n partitionLimiter = new PartitionLimiter(conf);\n }", "class_method_signature": "LimitedKeyPartitioner.setConf(Configuration conf)", "constructor": false, "full_signature": "@Override public void setConf(Co...
{ "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_406
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/jexl/visitors/RootNegationCheckVisitorTest.java", "identifier": "RootNegationCheckVisitorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testWrappedNegation() throws ParseException {\n ASTJexlScript script = JexlASTHelper.parseJexlQuery(\"!(FOO == 'bar')\");\n Assert.assertTrue(RootNegationCheckVisitor.hasTopLevelNegation(script));\n }", "class_method_signature": "RootNegationCheckVisitorTest.testWr...
{ "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_955
{ "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_GetClassAndCause() {\n Exception e = new UndeclaredThrowableException(new Exception(), \"cause\");\n StackTraceElement[] traceArr = new StackTraceElement[1];\n traceArr[0] = new StackTraceElement(\"dummyClass\", \"dummyMethod\", null, 0);\n ...
{ "fields": [ { "declarator": "log = Logger.getLogger(this.getClass())", "modifier": "private", "original_string": "private Logger log = Logger.getLogger(this.getClass());", "type": "Logger", "var_name": "log" }, { "declarator": "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_739
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/language/parser/jexl/JexlNodeSetTest.java", "identifier": "JexlNodeSetTest", "interfaces": "", "superclass": "" }
{ "body": "@Test(expected = UnsupportedOperationException.class)\n public void testToArray2() {\n JexlNodeSet nodeSet = new JexlNodeSet();\n nodeSet.toArray(new Object[0]);\n }", "class_method_signature": "JexlNodeSetTest.testToArray2()", "constructor": false, "full_signature": "@Test(expect...
{ "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 Object[] toArray() {\n return nodeMap.entrySet().toArray();\n }", "class_method_signature": "JexlNodeSet.toArray()", "constructor": false, "full_signature": "@Override public Object[] toArray()", "identifier": "toArray", "invocations": [ "toArray", "entrySe...
{ "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_1022
{ "fields": [ { "declarator": "loginModule", "modifier": "private", "original_string": "private DatawaveCertRolesLoginModule loginModule;", "type": "DatawaveCertRolesLoginModule", "var_name": "loginModule" }, { "declarator": "callbackHandler", "modifier": "private...
{ "body": "@Test\n public void testSuccessfulLogin() throws Exception {\n String name = testUserCert.getSubjectDN().getName() + \"<\" + testUserCert.getIssuerDN().getName() + \">\";\n callbackHandler.name = name;\n callbackHandler.credential = testUserCert;\n \n boolean success =...
{ "fields": [ { "declarator": "TRUSTED_HEADER_OPT = \"trustedHeaderLogin\"", "modifier": "private static final", "original_string": "private static final String TRUSTED_HEADER_OPT = \"trustedHeaderLogin\";", "type": "String", "var_name": "TRUSTED_HEADER_OPT" }, { "decla...
{ "body": "@Override\n public boolean login() throws LoginException {\n // This login module should do nothing if we're using the trusted header login (since a cert won't be supplied)\n // The reason for having this option is so that the module can be on the stack and support either configuration --\...
{ "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_693
{ "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 testGetDay() throws Exception {\n // Build RangeStreamScanner\n ScannerFactory scanners = new ScannerFactory(connector, 1);\n RangeStreamScanner rangeStreamScanner = scanners.newRangeScanner(config.getIndexTableName(), config.getAuthorizations(), config.getQuery(...
{ "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": "protected String getDay(final Key key) {\n String myDay = null;\n byte[] cq = key.getColumnQualifierData().getBackingArray();\n if (cq.length >= dateCfLength) {\n myDay = new String(cq, 0, dateCfLength);\n if (log.isTraceEnabled()) {\n log.trace(\"D...
{ "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_369
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/jexl/visitors/IteratorBuildingVisitorTest.java", "identifier": "IteratorBuildingVisitorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void visitNeNode_nullValueTest() throws ParseException {\n ASTJexlScript query = JexlASTHelper.parseJexlQuery(\"FOO == 'bar' && FIELD != null\");\n \n IteratorBuildingVisitor visitor = getDefault();\n \n query.jjtAccept(visitor, null);\n NestedIte...
{ "fields": [ { "declarator": "log = Logger.getLogger(IteratorBuildingVisitor.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(IteratorBuildingVisitor.class);", "type": "Logger", "var_name": "log" }, { "...
{ "body": "@SuppressWarnings(\"unchecked\")\n public <T> NestedIterator<T> root() {\n return root;\n }", "class_method_signature": "IteratorBuildingVisitor.root()", "constructor": false, "full_signature": "@SuppressWarnings(\"unchecked\") public NestedIterator<T> root()", "identifier": "root", ...
{ "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_386
{ "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 identifierWithMethodWithOneModelDoesNotAddParens() throws ParseException {\n ASTJexlScript script = JexlASTHelper.parseJexlQuery(\"OUT.containsAll(filter:someFunction(OUT, '1')) > 0\");\n ASTJexlScript expectedScript = JexlASTHelper.parseJexlQuery(\"IN.containsAll(filte...
{ "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_105
{ "fields": [], "file": "warehouse/ingest-core/src/test/java/datawave/ingest/mapreduce/partition/RowHashingPartitionerTest.java", "identifier": "RowHashingPartitionerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testShardPartitioning() {\n RowHashingPartitioner sdp = new RowHashingPartitioner();\n final int nRed = 30;\n Text tbl = new Text(\"table\");\n for (int i = 0; i < 10; ++i) {\n String shard = \"20110101_\" + i;\n int expectedReducer =...
{ "fields": [ { "declarator": "COLUMN_FAMILIES = \"datawave.partitioner.rr.colfams\"", "modifier": "public static final", "original_string": "public static final String COLUMN_FAMILIES = \"datawave.partitioner.rr.colfams\";", "type": "String", "var_name": "COLUMN_FAMILIES" }, ...
{ "body": "@Override\n public int getPartition(BulkIngestKey bKey, Value value, int reducers) {\n HashCodeBuilder hcb = new HashCodeBuilder(157, 41);\n Key key = bKey.getKey();\n Text cf = key.getColumnFamily();\n if (colFams.contains(cf)) {\n hcb.append(cf);\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_555
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/jexl/nodes/QueryPropertyMarkerTest.java", "identifier": "QueryPropertyMarkerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void instanceOfTest() throws Exception {\n String baseQuery = \"(GEO >= '0202' && GEO <= '020d') && (WKT_BYTE_LENGTH >= '+AE0' && WKT_BYTE_LENGTH < '+bE8')\";\n JexlNode baseQueryNode = JexlASTHelper.parseJexlQuery(baseQuery);\n JexlNode delayedNode = ASTDelayedPredic...
{ "fields": [ { "declarator": "log = Logger.getLogger(QueryPropertyMarker.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(QueryPropertyMarker.class);", "type": "Logger", "var_name": "log" } ], "file": "wareho...
{ "body": "public static boolean instanceOf(JexlNode node, Class<? extends QueryPropertyMarker> type) {\n return QueryPropertyMarkerVisitor.instanceOf(node, type, null);\n }", "class_method_signature": "QueryPropertyMarker.instanceOf(JexlNode node, Class<? extends QueryPropertyMarker> type)", "construct...
{ "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_806
{ "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 testUninitializedNext() throws IOException {\n iterator.next();\n }", "class_method_signature": "AncestorChildExpansionIteratorTest.testUninitializedNext()", "constructor": false, "full_signature": "@Test(expected = IllegalState...
{ "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 void next() throws IOException {\n if (!seeked) {\n throw new IllegalStateException(\"cannot next(), iterator has not been seeked\");\n }\n \n if (initialized && topKey == null) {\n throw new NoSuchElementException(\"cannot next(), ite...
{ "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...