id
stringlengths
7
14
test_class
dict
test_case
dict
focal_class
dict
focal_method
dict
repository
dict
116999027_1010
{ "fields": [ { "declarator": "MODEL_NAME = \"MODEL\"", "modifier": "private static final", "original_string": "private static final String MODEL_NAME = \"MODEL\";", "type": "String", "var_name": "MODEL_NAME" }, { "declarator": "FIELD_NAME = \"field1\"", "modifier...
{ "body": "@Test\n public void testForwardMappingIndexOnlyParse() throws Exception {\n \n // Test with datatype\n FieldMapping forwardMapping = new FieldMapping();\n forwardMapping.setColumnVisibility(COLVIZ);\n forwardMapping.setDatatype(DATATYPE);\n forwardMapping.setDir...
{ "fields": [ { "declarator": "NULL_BYTE = \"\\0\"", "modifier": "public static final", "original_string": "public static final String NULL_BYTE = \"\\0\";", "type": "String", "var_name": "NULL_BYTE" }, { "declarator": "NULL_VALUE = new Value(new byte[0])", "modif...
{ "body": "public static Key createKey(FieldMapping mapping, String modelName) {\n ColumnVisibility cv = new ColumnVisibility(mapping.getColumnVisibility());\n \n String inName = Direction.REVERSE.equals(mapping.getDirection()) ? mapping.getFieldName() : mapping.getModelFieldName();\n Stri...
{ "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_92
{ "fields": [ { "declarator": "FIELD_NAME = \"FIELD_NAME\"", "modifier": "private static final", "original_string": "private static final String FIELD_NAME = \"FIELD_NAME\";", "type": "String", "var_name": "FIELD_NAME" }, { "declarator": "FIELD_TO_COUNT = \"FIELD_1\"", ...
{ "body": "@Test\n public void testCountsTwo() throws IOException {\n setupMocks();\n \n helper.addIndexedField(FIELD_TO_COUNT);\n RawRecordMetadata eventMetadata = new EventMetadata(null, METADATA_TABLE_NAME, LOADDATES_TABLE_NAME, INDEX_TABLE_NAME, RINDEX_TABLE_NAME, true);\n ev...
{ "fields": [ { "declarator": "compositeFieldsInfo = new MetadataWithMostRecentDate(ColumnFamilyConstants.COLF_CI)", "modifier": "private", "original_string": "private MetadataWithMostRecentDate compositeFieldsInfo = new MetadataWithMostRecentDate(ColumnFamilyConstants.COLF_CI);", "type": ...
{ "body": "@Override\n public void addEvent(IngestHelperInterface helper, RawRecordContainer event, Multimap<String,NormalizedContentInterface> fields, long loadTimeInMillis) {\n addEvent(helper, event, fields, this.frequency, INCLUDE_LOAD_DATES, loadTimeInMillis);\n }", "class_method_signature": "Even...
{ "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_834
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/index/lookup/IndexMatchTest.java", "identifier": "IndexMatchTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testEquals() {\n IndexMatch left = new IndexMatch(\"uid0\");\n IndexMatch right = new IndexMatch(\"uid0\");\n \n assertEquals(left, right);\n assertEquals(right, left);\n \n assertNotEquals(left, null);\n }", "class_method_signatu...
{ "fields": [ { "declarator": "shard", "modifier": "protected", "original_string": "protected String shard;", "type": "String", "var_name": "shard" }, { "declarator": "uid", "modifier": "protected", "original_string": "protected String uid;", "type": "...
{ "body": "@Override\n public boolean equals(Object obj) {\n if (null == obj)\n return false;\n if (obj instanceof IndexMatch) {\n IndexMatch other = (IndexMatch) obj;\n \n if (!uid.equals(other.uid))\n return false;\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_567
{ "fields": [ { "declarator": "aggregator", "modifier": "private", "original_string": "private TermFrequencyAggregator aggregator;", "type": "TermFrequencyAggregator", "var_name": "aggregator" } ], "file": "warehouse/query-core/src/test/java/datawave/query/jexl/functions/Term...
{ "body": "@Test\n public void apply_testSeek() throws IOException {\n aggregator = new TermFrequencyAggregator(null, null, 1);\n TreeMap<Key,Value> treeMap = Maps.newTreeMap();\n treeMap.put(getTF(\"123\", \"FIELD1\", \"VALUE1\", \"dataType1\", \"123.345.456\", 10), new Value());\n tre...
{ "fields": [], "file": "warehouse/query-core/src/main/java/datawave/query/jexl/functions/TermFrequencyAggregator.java", "identifier": "TermFrequencyAggregator", "interfaces": "", "methods": [ { "class_method_signature": "TermFrequencyAggregator.TermFrequencyAggregator(Set<String> fieldsToKeep, Even...
{ "body": "@Override\n public Key apply(SortedKeyValueIterator<Key,Value> itr, Document doc, AttributeFactory attrs) throws IOException {\n Key key = super.apply(itr, doc, attrs);\n \n // only return a key if something was added to the document, documents that only contain Document.DOCKEY_FIEL...
{ "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_137
{ "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 testCleanUpJobDirectoryUnableToMakeDirectory() throws Exception {\n \n BulkIngestMapFileLoaderTest.logger.info(\"testCleanUpJobDirectoryUnableToMakeDirectory called...\");\n \n try {\n \n URL url = BulkIngestMapFileLoaderTest.class.ge...
{ "fields": [ { "declarator": "log = Logger.getLogger(BulkIngestMapFileLoader.class)", "modifier": "private static", "original_string": "private static Logger log = Logger.getLogger(BulkIngestMapFileLoader.class);", "type": "Logger", "var_name": "log" }, { "declarator":...
{ "body": "public void cleanUpJobDirectory(Path mapFilesDir) throws IOException {\n Path jobDirectory = mapFilesDir.getParent();\n \n FileSystem destFs = getFileSystem(destHdfs);\n \n FileStatus[] failedDirs = destFs.globStatus(new Path(mapFilesDir, \"failures/*/*\"));\n bool...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_422
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/jexl/visitors/RangeCoalescingVisitorTest.java", "identifier": "RangeCoalescingVisitorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testCoalesceTwoRangesWithAnchorTerm() throws ParseException {\n String originalQuery = \"(NUM >= '+aE1' && NUM <= '+aE4') && TACO == 'tacocat' && (FOO >= 'bar' && FOO <= 'bas')\";\n // Ordering of query terms is not deterministic, assert both possibilities\n Stri...
{ "fields": [ { "declarator": "log = ThreadConfigurableLogger.getLogger(RangeCoalescingVisitor.class)", "modifier": "private static final", "original_string": "private static final Logger log = ThreadConfigurableLogger.getLogger(RangeCoalescingVisitor.class);", "type": "Logger", "var...
{ "body": "@SuppressWarnings(\"unchecked\")\n public static <T extends JexlNode> T coalesceRanges(T script) {\n RangeCoalescingVisitor visitor = new RangeCoalescingVisitor();\n \n return (T) script.jjtAccept(visitor, null);\n }", "class_method_signature": "RangeCoalescingVisitor.coalesceR...
{ "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_588
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/jexl/DatawaveInterpreterTest.java", "identifier": "DatawaveInterpreterTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void mergeAndNodeFunctionalSetsTest() {\n String query = \"((GEO == '0321􏿿+bE4.4' || GEO == '0334􏿿+bE4.4' || GEO == '0320􏿿+bE4.4' || GEO == '0335􏿿+bE4.4') && ((ASTDelayedPredicate = true) && ((GEO >= '030a' && GEO <= '0335') && (WKT_BYTE_LENGTH >= '+AE0' && WKT_BYTE_LENGTH < '+...
{ "fields": [ { "declarator": "resultMap", "modifier": "protected", "original_string": "protected Map<String,Object> resultMap;", "type": "Map<String,Object>", "var_name": "resultMap" }, { "declarator": "log = Logger.getLogger(DatawaveInterpreter.class)", "modifie...
{ "body": "public static boolean isMatched(Object scriptExecuteResult) {\n boolean matched = false;\n if (scriptExecuteResult != null && Boolean.class.isAssignableFrom(scriptExecuteResult.getClass())) {\n matched = (Boolean) scriptExecuteResult;\n } else if (scriptExecuteResult != 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_971
{ "fields": [], "file": "web-services/common-util/src/test/java/datawave/security/util/DnUtilsTest.java", "identifier": "DnUtilsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test(expected = IllegalArgumentException.class)\n public void testBuildNormalizedDNListSubjectEqualsIssuer() {\n DnUtils.buildNormalizedDNList(\"SDN\", \"IDN\", \"SDN2\", \"SDN2\");\n }", "class_method_signature": "DnUtilsTest.testBuildNormalizedDNListSubjectEqualsIssuer()", "constructor"...
{ "fields": [ { "declarator": "PROPS_RESOURCE = \"dnutils.properties\"", "modifier": "public static final", "original_string": "public static final String PROPS_RESOURCE = \"dnutils.properties\";", "type": "String", "var_name": "PROPS_RESOURCE" }, { "declarator": "PROPS...
{ "body": "public static Collection<String> buildNormalizedDNList(String subjectDN, String issuerDN, String proxiedSubjectDNs, String proxiedIssuerDNs) {\n subjectDN = normalizeDN(subjectDN);\n issuerDN = normalizeDN(issuerDN);\n List<String> dnList = new ArrayList<>();\n HashSet<String> s...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_1047
{ "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 testColumnsThatNeedEscaping() throws Exception {\n String sql = crq.generateSql(\"v\", \"foo.bar\", null, null, null, \"me\", null);\n Assert.assertEquals(\"SELECT \" + fixedColumns + \",`foo.bar` FROM v WHERE _user_ = 'me'\", sql);\n }", "class_method_signature": ...
{ "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_619
{ "fields": [ { "declarator": "data = null", "modifier": "private", "original_string": "private byte[][] data = null;", "type": "byte[][]", "var_name": "data" }, { "declarator": "sortedOrder = null", "modifier": "private", "original_string": "private int[] s...
{ "body": "@Test\n public void testComparator() {\n Comparator<? super byte[]> comparator = set.comparator();\n byte[][] testData = Arrays.copyOf(data, data.length);\n Arrays.sort(testData, comparator);\n int index = 0;\n for (byte[] value : set) {\n byte[] expected = ...
{ "fields": [ { "declarator": "log = Logger.getLogger(BufferedFileBackedSortedSet.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(BufferedFileBackedSortedSet.class);", "type": "Logger", "var_name": "log" }, {...
{ "body": "@Override\n public Comparator<? super E> comparator() {\n return comparator;\n }", "class_method_signature": "BufferedFileBackedSortedSet.comparator()", "constructor": false, "full_signature": "@Override public Comparator<? super E> comparator()", "identifier": "comparator", "invocat...
{ "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_249
{ "fields": [ { "declarator": "optionBuilder", "modifier": "private", "original_string": "private OptionBuilder optionBuilder;", "type": "OptionBuilder", "var_name": "optionBuilder" } ], "file": "warehouse/common/src/test/java/datawave/common/cl/OptionBuilderTest.java", "id...
{ "body": "@Test\n public void testCreate1() throws Exception {\n Option option = this.optionBuilder.create(\"opt\", \"longOpt\", \"desc\");\n assertEquals(option.getLongOpt(), \"longOpt\");\n }", "class_method_signature": "OptionBuilderTest.testCreate1()", "constructor": false, "full_signat...
{ "fields": [ { "declarator": "args", "modifier": "public", "original_string": "public int args;", "type": "int", "var_name": "args" }, { "declarator": "valSeparator", "modifier": "public", "original_string": "public char valSeparator;", "type": "char"...
{ "body": "public Option create(final String opt, final String desc) {\n return create(opt, null, desc);\n }", "class_method_signature": "OptionBuilder.create(final String opt, final String desc)", "constructor": false, "full_signature": "public Option create(final String opt, final String desc)", "...
{ "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_160
{ "fields": [ { "declarator": "logger = Logger.getLogger(CBMutationOutputFormatterTest.class)", "modifier": "protected static final", "original_string": "protected static final Logger logger = Logger.getLogger(CBMutationOutputFormatterTest.class);", "type": "Logger", "var_name": "log...
{ "body": "@Test\n public void testRecordWriterWriteWithTableNameNoUpdates() throws IOException, InterruptedException {\n \n CBMutationOutputFormatterTest.logger.info(\"testRecordWriterWriteWithTableNameNoUpdates called...\");\n \n try {\n \n CBMutationOutputFormat...
{ "fields": [ { "declarator": "log = Logger.getLogger(CBMutationOutputFormatter.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(CBMutationOutputFormatter.class);", "type": "Logger", "var_name": "log" } ], "fi...
{ "body": "@Override\n public RecordWriter<Text,Mutation> getRecordWriter(TaskAttemptContext attempt) throws IOException {\n return new CBRecordWriter(super.getRecordWriter(attempt), attempt);\n }", "class_method_signature": "CBMutationOutputFormatter.getRecordWriter(TaskAttemptContext attempt)", "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_530
{ "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 parse1TrailingBackslashEquals() throws Exception {\n String query = \"CITY == 'city\\\\\\\\'\";\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_863
{ "fields": [ { "declarator": "builder", "modifier": "", "original_string": "UIDBuilder<UID> builder;", "type": "UIDBuilder<UID>", "var_name": "builder" }, { "declarator": "data = \"20100901: the quick brown fox jumped over the lazy dog\"", "modifier": "private", ...
{ "body": "@SuppressWarnings(\"rawtypes\")\n @Test\n public void testBuilder() throws ParseException {\n // Test no-arg based builder\n SnowflakeUIDBuilder result1 = (SnowflakeUIDBuilder) ((UIDBuilder) SnowflakeUID.builder());\n assertNotNull(result1);\n assertNotNull(result1.toStrin...
{ "fields": [ { "declarator": "serialVersionUID = 1856715886248436235L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = 1856715886248436235L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "TOO_B...
{ "body": "@SuppressWarnings({\"unchecked\", \"rawtypes\"})\n public static UIDBuilder<UID> builder() {\n return (UIDBuilder) new SnowflakeUIDBuilder();\n }", "class_method_signature": "SnowflakeUID.builder()", "constructor": false, "full_signature": "@SuppressWarnings({\"unchecked\", \"rawtypes\"}...
{ "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_926
{ "fields": [ { "declarator": "kv", "modifier": "public", "original_string": "public AtomKeyValueParser kv;", "type": "AtomKeyValueParser", "var_name": "kv" }, { "declarator": "thrown = ExpectedException.none()", "modifier": "@Rule\n public", "original_st...
{ "body": "@SuppressWarnings(\"static-access\")\n @Test\n public void testMissingRowParts() {\n Key key = new Key(new Text(\"row1\"), new Text(\"fi\\0color\"), new Text(\"red\\0truck\\0t-uid001\"));\n byte[] vals = new byte[4];\n Value value = new Value(vals);\n thrown.expect(Illegal...
{ "fields": [ { "declarator": "DELIMITER = \"\\0\"", "modifier": "private static final", "original_string": "private static final String DELIMITER = \"\\0\";", "type": "String", "var_name": "DELIMITER" }, { "declarator": "ENTRY_ID_FORMAT = \"https://{0}:{1}/DataWave/Ato...
{ "body": "public static AtomKeyValueParser parse(Key key, Value value) throws IOException {\n AtomKeyValueParser atom = new AtomKeyValueParser();\n \n String row = key.getRow().toString();\n int splitPoint = row.indexOf(DELIMITER);\n if (splitPoint != -1) {\n atom.setCol...
{ "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_0
{ "fields": [ { "declarator": "directoryCache = CacheBuilder.newBuilder().maximumSize(100).expireAfterWrite(10, TimeUnit.MINUTES).concurrencyLevel(10)\n .build()", "modifier": "private static", "original_string": "private static Cache<Path,Path> directoryCache = CacheBuilder.n...
{ "body": "@Test\n public void testCall() throws Exception {\n \n FileSystem fs = FileSystem.getLocal(new Configuration());\n \n Path file = getTestFile(fs);\n InputFile inFile = new InputFile(\"foo\", file, 0, 0, 0, fmc.getBaseHDFSDir());\n \n SimpleMover instance ...
{ "fields": [ { "declarator": "log = Logger.getLogger(SimpleMover.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(SimpleMover.class);", "type": "Logger", "var_name": "log" }, { "declarator": "entry", ...
{ "body": "@Override\n public InputFile call() throws IOException {\n final Path dst = this.entry.getTrackedDir(this.target);\n checkParent(dst);\n if (entry.getCurrentDir() == dst || (!fs.exists(dst) && fs.rename(entry.getCurrentDir(), dst))) {\n entry.updateCurrentDir(this.target)...
{ "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_475
{ "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 trueRewriteTest() throws ParseException {\n String query = \"true || (FIELD1 == '1' && filter:isNull(FIELD2))\";\n \n ASTJexlScript script = JexlASTHelper.parseJexlQuery(query);\n JexlNode reduced = QueryPruningVisitor.reduce(script, true);\n \n ...
{ "fields": [ { "declarator": "log = Logger.getLogger(QueryPruningVisitor.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(QueryPruningVisitor.class);", "type": "Logger", "var_name": "log" }, { "declarat...
{ "body": "public static 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_1051
{ "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 testWhereClause() throws Exception {\n String sql = crq.generateSql(\"v\", \"foo.bar\", \"foo.bar = 'ABC'\", null, null, \"me\", null);\n Assert.assertEquals(\"SELECT \" + fixedColumns + \",`foo.bar` FROM v WHERE _user_ = 'me' AND (`foo.bar` = 'ABC')\", sql);\n }", ...
{ "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_875
{ "fields": [ { "declarator": "data = \"20100901: the quick brown fox jumped over the lazy dog\"", "modifier": "private", "original_string": "private String data = \"20100901: the quick brown fox jumped over the lazy dog\";", "type": "String", "var_name": "data" }, { "d...
{ "body": "@Test\n public void testComparisons() {\n UID a = new HashUID(data.getBytes(), (Date) null) {};\n UID b = new HashUID(data2.getBytes(), (Date) null) {};\n assertTrue(a.compareTo(b) != 0);\n a = new HashUID(data.getBytes(), null, \"blabla.blabla\") {};\n b = new HashUID...
{ "fields": [ { "declarator": "serialVersionUID = 4016018180334520481L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = 4016018180334520481L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "DEFAU...
{ "body": "@Override\n public int compareTo(final UID uid) {\n int result;\n if (uid instanceof HashUID) {\n final HashUID o = (HashUID) uid;\n final CompareToBuilder compare = new CompareToBuilder();\n compare.append(this.optionalPrefix, o.optionalPrefix);\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_526
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/jexl/visitors/RewriteNegationsVisitorTest.java", "identifier": "RewriteNegationsVisitorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testConjunctionOfTwoNR() throws ParseException {\n String queryString = \"FOO !~ BAR && BAR !~ FOO\";\n String expectedQuery = \"!(FOO =~ BAR) && !(BAR =~ FOO)\";\n ASTJexlScript script = JexlASTHelper.parseJexlQuery(queryString);\n ASTJexlScript negatedSc...
{ "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_176
{ "fields": [ { "declarator": "PASSWORD = \"passw0rd\"", "modifier": "public static final", "original_string": "public static final String PASSWORD = \"passw0rd\";", "type": "String", "var_name": "PASSWORD" }, { "declarator": "HOST_NAME = \"localhost\"", "modifier...
{ "body": "@Test\n public void testGetSplitsWithArgumentThatMatches() throws IOException {\n logger.info(\"testGetSplitsWithArgumentThatMatches called...\");\n setSplitsCacheDir();\n setupConfiguration();\n \n try {\n \n TableSplitsCache uut = new TableSplit...
{ "fields": [ { "declarator": "REFRESH_SPLITS = \"datawave.ingest.refresh.splits\"", "modifier": "public static final", "original_string": "public static final String REFRESH_SPLITS = \"datawave.ingest.refresh.splits\";", "type": "String", "var_name": "REFRESH_SPLITS" }, { ...
{ "body": "public List<Text> getSplits(String table) throws IOException {\n if (null == this.splits)\n read();\n List<Text> tableSplits = this.splits.get(table);\n if (tableSplits == null) {\n return Collections.emptyList();\n }\n return tableSplits;\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_199
{ "fields": [ { "declarator": "constraintChecker", "modifier": "private", "original_string": "private ConstraintChecker constraintChecker;", "type": "ConstraintChecker", "var_name": "constraintChecker" }, { "declarator": "emptyViz = new ColumnVisibility().getExpression(...
{ "body": "@Test\n public void shouldPassForNonConfiguredTable() {\n constraintChecker.check(new Text(\"indexTable\"), emptyViz);\n }", "class_method_signature": "ConstraintCheckerTest.shouldPassForNonConfiguredTable()", "constructor": false, "full_signature": "@Test public void shouldPassForNonCon...
{ "fields": [ { "declarator": "log = Logger.getLogger(ConstraintChecker.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(ConstraintChecker.class);", "type": "Logger", "var_name": "log" }, { "declarator":...
{ "body": "public void check(Text table, byte[] visibility) throws ConstraintViolationException {\n // fast return if we are not configured\n if (!isConfigured) {\n return;\n }\n \n Collection<VisibilityConstraint> tableConstraints = constraints.get(table);\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_463
{ "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 testGroupingFunctionMultiZone() throws Exception {\n String originalQuery = \"grouping:matchesInGroupLeft(FOO, 'abc.*', BAR, 'def', 2)\";\n ASTJexlScript script = JexlASTHelper.parseJexlQuery(originalQuery);\n final Map<String,ExpressionFilter> filter = EventData...
{ "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_930
{ "fields": [ { "declarator": "kv", "modifier": "public", "original_string": "public AtomKeyValueParser kv;", "type": "AtomKeyValueParser", "var_name": "kv" }, { "declarator": "thrown = ExpectedException.none()", "modifier": "@Rule\n public", "original_st...
{ "body": "@SuppressWarnings(\"static-access\")\n @Test\n public void testBadDelimColQual() {\n Key key = new Key(new Text(\"row1\\0row2and3\"), new Text(\"fi\\0\"), new Text(\"red\\0truck\\0t-uid001\"));\n byte[] vals = new byte[4];\n Value value = new Value(vals);\n thrown.expect(I...
{ "fields": [ { "declarator": "DELIMITER = \"\\0\"", "modifier": "private static final", "original_string": "private static final String DELIMITER = \"\\0\";", "type": "String", "var_name": "DELIMITER" }, { "declarator": "ENTRY_ID_FORMAT = \"https://{0}:{1}/DataWave/Ato...
{ "body": "public static AtomKeyValueParser parse(Key key, Value value) throws IOException {\n AtomKeyValueParser atom = new AtomKeyValueParser();\n \n String row = key.getRow().toString();\n int splitPoint = row.indexOf(DELIMITER);\n if (splitPoint != -1) {\n atom.setCol...
{ "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_1006
{ "fields": [ { "declarator": "MODEL_NAME = \"MODEL\"", "modifier": "private static final", "original_string": "private static final String MODEL_NAME = \"MODEL\";", "type": "String", "var_name": "MODEL_NAME" }, { "declarator": "FIELD_NAME = \"field1\"", "modifier...
{ "body": "@Test\n public void testReverseCreateMutation() throws Exception {\n EasyMock.expect(System.currentTimeMillis()).andReturn(TIMESTAMP);\n PowerMock.replayAll();\n Mutation m = ModelKeyParser.createMutation(REVERSE_FIELD_MAPPING, MODEL_NAME);\n PowerMock.verifyAll();\n m...
{ "fields": [ { "declarator": "NULL_BYTE = \"\\0\"", "modifier": "public static final", "original_string": "public static final String NULL_BYTE = \"\\0\";", "type": "String", "var_name": "NULL_BYTE" }, { "declarator": "NULL_VALUE = new Value(new byte[0])", "modif...
{ "body": "public static Mutation createMutation(FieldMapping mapping, String modelName) {\n ColumnVisibility cv = new ColumnVisibility(mapping.getColumnVisibility());\n Mutation m;\n String dataType = StringUtils.isEmpty(mapping.getDatatype()) ? \"\" : NULL_BYTE + mapping.getDatatype().trim();\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_658
{ "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 testBuildParentKey() {\n Key fiKey = buildFiKey(rootId);\n Text shard = fiKey.getRow();\n ByteSequence id = new ArrayByteSequence(rootId);\n ByteSequence cq = fiKey.getColumnQualifierData();\n Text cv = fiKey.getColumnVisibility();\n long ts ...
{ "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 Key buildParentKey(Text shard, ByteSequence id, ByteSequence cq, Text cv, long ts) {\n Text ptr = new Text();\n ptr.set(id.getBackingArray(), id.offset(), id.length());\n Text cqt = new Text();\n cqt.set(cq.getBackingArray(), cq.offset(), cq.length());\n ret...
{ "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_208
{ "fields": [ { "declarator": "jsonFile = \"/input/flattener-test.json\"", "modifier": "protected static", "original_string": "protected static String jsonFile = \"/input/flattener-test.json\";", "type": "String", "var_name": "jsonFile" }, { "declarator": "json", ...
{ "body": "@Test\n public void testFlattenAndForceLowerCaseKeys() throws Exception {\n \n JsonObjectFlattener flattener = new JsonObjectFlattenerImpl.Builder().pathDelimiter(\".\").mapKeyValueNormalizer(toLowerCaseNormalizer).build();\n \n JsonParser parser = new JsonParser();\n ...
{ "fields": [ { "declarator": "DEFAULT_PATH_DELIMITER = \".\"", "modifier": "public static final", "original_string": "public static final String DEFAULT_PATH_DELIMITER = \".\";", "type": "String", "var_name": "DEFAULT_PATH_DELIMITER" }, { "declarator": "DEFAULT_OCCURRE...
{ "body": "@Override\n public Multimap<String,String> flatten(JsonObject object) throws IllegalStateException {\n Multimap<String,String> map = HashMultimap.create();\n flatten(object, map);\n return map;\n }", "class_method_signature": "JsonObjectFlattenerImpl.flatten(JsonObject object)"...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_84
{ "fields": [ { "declarator": "agg = new DateIndexDateAggregator()", "modifier": "", "original_string": "PropogatingCombiner agg = new DateIndexDateAggregator();", "type": "PropogatingCombiner", "var_name": "agg" } ], "file": "warehouse/ingest-core/src/test/java/datawave/inge...
{ "body": "@Test\n public void testIncrementalMerge() throws Exception {\n Set<Integer> shards = new HashSet<>();\n for (int i = 0; i <= 20; i++) {\n shards.add(i);\n shards.add(i * 3);\n shards.add(i * 5);\n }\n List<Value> values = Lists.newArrayList()...
{ "fields": [], "file": "warehouse/ingest-core/src/main/java/datawave/ingest/table/aggregator/DateIndexDateAggregator.java", "identifier": "DateIndexDateAggregator", "interfaces": "", "methods": [ { "class_method_signature": "DateIndexDateAggregator.reduce(Key key, Iterator<Value> iter)", "con...
{ "body": "@Override\n public Value reduce(Key key, Iterator<Value> iter) {\n byte[] finalBytes = new byte[0];\n int len = finalBytes.length;\n while (iter.hasNext()) {\n byte[] nextBytes = iter.next().get();\n len = (nextBytes.length > len ? nextBytes.length : len);\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_121
{ "fields": [], "file": "warehouse/ingest-core/src/test/java/datawave/ingest/mapreduce/handler/shard/NumShardsTest.java", "identifier": "NumShardsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testMultipleNumShardsCacheParsingError() throws ParseException, IOException {\n File multipleNumShardCache = File.createTempFile(\"numshards\", \".txt\");\n multipleNumShardCache.deleteOnExit();\n \n try (BufferedWriter writer = Files.newBufferedWriter(mul...
{ "fields": [ { "declarator": "log = Logger.getLogger(NumShards.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(NumShards.class);", "type": "Logger", "var_name": "log" }, { "declarator": "DEFAULT_NUM_SH...
{ "body": "public int getNumShards(long date) {\n if (!initialized) {\n configure();\n }\n return milliToNumShardsCache.floorEntry(date).getValue();\n }", "class_method_signature": "NumShards.getNumShards(long date)", "constructor": false, "full_signature": "public int getNumS...
{ "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_571
{ "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_traverseFailureREVERSETest() {\n \n // offsets[0].size() > offsets[N-1].size() will trigger reverse-order traversal,\n // evaluating the document for the phrase \"c b a\", starting with 'c' at offset 21\n \n List<List<TermWeightPosition>> o...
{ "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_822
{ "fields": [ { "declarator": "instance = new InMemoryInstance(RangeStreamTest.class.toString())", "modifier": "private static", "original_string": "private static InMemoryInstance instance = new InMemoryInstance(RangeStreamTest.class.toString());", "type": "InMemoryInstance", "var_n...
{ "body": "@Test\n public void testTheSimplestOfQueries() throws Exception {\n String originalQuery = \"FOO == 'bag'\";\n ASTJexlScript script = JexlASTHelper.parseJexlQuery(originalQuery);\n \n config.setBeginDate(new Date(0));\n config.setEndDate(new Date(System.currentTimeMill...
{ "fields": [ { "declarator": "MAX_MEDIAN = 20", "modifier": "private static final", "original_string": "private static final int MAX_MEDIAN = 20;", "type": "int", "var_name": "MAX_MEDIAN" }, { "declarator": "log = ThreadConfigurableLogger.getLogger(RangeStream.class)",...
{ "body": "public CloseableIterable<QueryPlan> streamPlans(JexlNode script) {\n JexlNode node = TreeFlatteningRebuildingVisitor.flatten(script);\n \n tree = node;\n \n if (!collapseUids && config.getParseTldUids()) {\n collapseUids = !(EvaluationRendering.canDisableEvalua...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_988
{ "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 testBuildUserAuthorizationsString() {\n String expected = new Authorizations(\"A\", \"C\", \"D\").toString();\n assertEquals(expected, AuthorizationsUtil.buildUserAuthorizationString(principal));\n }", "class_method_signature": "AuthorizationsUtilTest.testBuildUser...
{ "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 String buildUserAuthorizationString(Principal principal) {\n String auths = \"\";\n if (principal != null && (principal instanceof DatawavePrincipal)) {\n DatawavePrincipal datawavePrincipal = (DatawavePrincipal) principal;\n \n auths = new Autho...
{ "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_967
{ "fields": [], "file": "web-services/common-util/src/test/java/datawave/security/util/DnUtilsTest.java", "identifier": "DnUtilsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test(expected = IllegalArgumentException.class)\n public void testBuildNormalizedProxyDNSubjectDNInIssuer() {\n DnUtils.buildNormalizedProxyDN(\"SDN\", \"IDN\", \"SDN2\", \"CN=foo,OU=My Department\");\n }", "class_method_signature": "DnUtilsTest.testBuildNormalizedProxyDNSubjectDNInIssuer()...
{ "fields": [ { "declarator": "PROPS_RESOURCE = \"dnutils.properties\"", "modifier": "public static final", "original_string": "public static final String PROPS_RESOURCE = \"dnutils.properties\";", "type": "String", "var_name": "PROPS_RESOURCE" }, { "declarator": "PROPS...
{ "body": "public static String buildNormalizedProxyDN(String subjectDN, String issuerDN, String proxiedSubjectDNs, String proxiedIssuerDNs) {\n StringBuilder sb = new StringBuilder();\n for (String escapedDN : buildNormalizedDNList(subjectDN, issuerDN, proxiedSubjectDNs, proxiedIssuerDNs)) {\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_434
{ "fields": [ { "declarator": "visitor = new BooleanOptimizationRebuildingVisitor()", "modifier": "private", "original_string": "private BooleanOptimizationRebuildingVisitor visitor = new BooleanOptimizationRebuildingVisitor();", "type": "BooleanOptimizationRebuildingVisitor", "var_n...
{ "body": "@Test\n public void testChildDisjunction() throws ParseException {\n String original = \"a && b || c\";\n String expected = \"(a && b) || c\";\n optimize(original, expected, true, false);\n }", "class_method_signature": "BooleanOptimizationRebuildingVisitorTest.testChildDisjunc...
{ "fields": [ { "declarator": "log = Logger.getLogger(BooleanOptimizationRebuildingVisitor.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(BooleanOptimizationRebuildingVisitor.class);", "type": "Logger", "var_name": ...
{ "body": "public static ASTJexlScript optimize(JexlNode node) {\n if (node == null) {\n return null;\n }\n \n BooleanOptimizationRebuildingVisitor visitor = new BooleanOptimizationRebuildingVisitor();\n \n return (ASTJexlScript) node.jjtAccept(visitor, null);\n ...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_623
{ "fields": [ { "declarator": "data = null", "modifier": "private", "original_string": "private byte[][] data = null;", "type": "byte[][]", "var_name": "data" }, { "declarator": "sortedOrder = null", "modifier": "private", "original_string": "private int[] s...
{ "body": "@Test\n public void testLast() {\n byte[] expected = data[sortedOrder[data.length - 1]];\n byte[] value = set.last();\n assertTrue(Arrays.equals(expected, value));\n }", "class_method_signature": "BufferedFileBackedSortedSetTest.testLast()", "constructor": false, "full_sign...
{ "fields": [ { "declarator": "log = Logger.getLogger(BufferedFileBackedSortedSet.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(BufferedFileBackedSortedSet.class);", "type": "Logger", "var_name": "log" }, {...
{ "body": "@Override\n public E last() {\n return set.last();\n }", "class_method_signature": "BufferedFileBackedSortedSet.last()", "constructor": false, "full_signature": "@Override public E last()", "identifier": "last", "invocations": [ "last" ], "modifiers": "@Override public", "p...
{ "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_789
{ "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 testCommonUids2() {\n uids1.add(new IndexMatch(\"a.b.c\", node1));\n uids2.add(new IndexMatch(\"a.b.c.1.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_273
{ "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 testExceededTermPropertyMarkerPropagate() throws ParseException {\n ASTJexlScript query = JexlASTHelper.parseJexlQuery(\"!((ExceededTermThresholdMarkerJexlNode = true) && (F1 == 'v1' || F2 == 'v2'))\");\n JexlNode result = PushdownNegationVisitor.pushdownNegations(query...
{ "fields": [], "file": "warehouse/query-core/src/main/java/datawave/query/jexl/visitors/PushdownNegationVisitor.java", "identifier": "PushdownNegationVisitor", "interfaces": "", "methods": [ { "class_method_signature": "PushdownNegationVisitor.pushdownNegations(JexlNode tree)", "constructor":...
{ "body": "public static JexlNode pushdownNegations(JexlNode tree) {\n // flatten the input\n JexlNode flattened = TreeFlatteningRebuildingVisitor.flatten(tree);\n \n flattened.jjtAccept(new PushdownNegationVisitor(), new NegationState(false));\n \n // flatten the result\n ...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_10
{ "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 testProcessFlags() throws Exception {\n log.info(\"----- testProcessFlags -----\");\n File f = setUpFlagDir();\n // two days, 5 files each day, two folders in fmc = 20 flags\n LongRange range = createTestFiles(2, 5);\n FlagMaker instance = new Tes...
{ "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": "protected void processFlags() throws IOException {\n FileSystem fs = getHadoopFS();\n log.trace(\"Querying for files on {}\", fs.getUri().toString());\n \n for (FlagDataTypeConfig fc : fmc.getFlagConfigs()) {\n String dataName = fc.getDataName();\n fd.setup...
{ "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_766
{ "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 testFunctionWrongDepth1() throws ParseException {\n LuceneQueryParser luceneParser = new LuceneQueryParser();\n luceneParser.parse(\"#isnotnull(nonnullfield)\");\n }", "class_method_signature": "TestLuceneQueryParser.testFunctionWro...
{ "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_336
{ "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 testSingleOrNonExecutableCantFix() throws Exception {\n ASTJexlScript queryTree = JexlASTHelper.parseJexlQuery(\"BIRTH_DATE =='123' && (filter:includeRegex(QUOTE, '.*kind.*') || BIRTH_DATE == '234')\");\n \n // grab the reference to the QUOTE=='kind' eqnode\n ...
{ "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_859
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/audit/DatawaveSelectorExtractorTest.java", "identifier": "DatawaveSelectorExtractorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void extractSelectorsJEXLQuery1() {\n \n DatawaveSelectorExtractor extractor = new DatawaveSelectorExtractor();\n QueryImpl q = new QueryImpl();\n q.setQuery(\"FIELD1 == 'selector1'\");\n List<String> selectorList = extractor.extractSelectors(q);\n ...
{ "fields": [ { "declarator": "luceneToJexlParser = new LuceneToJexlQueryParser()", "modifier": "private", "original_string": "private LuceneToJexlQueryParser luceneToJexlParser = new LuceneToJexlQueryParser();", "type": "LuceneToJexlQueryParser", "var_name": "luceneToJexlParser" ...
{ "body": "@Override\n public List<String> extractSelectors(Query query) throws IllegalArgumentException {\n List<String> selectorList = new ArrayList<>();\n List<ASTEQNode> eqNodes = null;\n QueryNode node = null;\n ASTJexlScript jexlScript = null;\n \n try {\n ...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_224
{ "fields": [], "file": "warehouse/ingest-json/src/test/java/datawave/ingest/json/mr/input/JsonRecordReaderTest.java", "identifier": "JsonRecordReaderTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testInitialize() throws Exception {\n JsonRecordReader reader = init(true, FlattenMode.NORMAL);\n reader.close();\n }", "class_method_signature": "JsonRecordReaderTest.testInitialize()", "constructor": false, "full_signature": "@Test public void testInitialize(...
{ "fields": [ { "declarator": "logger = Logger.getLogger(JsonRecordReader.class)", "modifier": "private static final", "original_string": "private static final Logger logger = Logger.getLogger(JsonRecordReader.class);", "type": "Logger", "var_name": "logger" }, { "decla...
{ "body": "@Override\n public void initialize(InputSplit split, TaskAttemptContext context) throws IOException {\n \n super.initialize(split, context);\n \n if (!(split instanceof FileSplit)) {\n throw new IOException(\"Cannot handle split type \" + split.getClass().getName()...
{ "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_674
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/iterator/QueryIteratorTest.java", "identifier": "QueryIteratorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testRowColfamToString() {\n String expected = \"20190314_0 test%00;doc0:FOO%00;bar\";\n \n Text row = new Text(\"20190314_0\");\n Text cf = new Text(\"test\\0doc0\");\n Text cq = new Text(\"FOO\\0bar\");\n Key key = new Key(row, cf, cq);\n ...
{ "fields": [ { "declarator": "log = Logger.getLogger(QueryIterator.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(QueryIterator.class);", "type": "Logger", "var_name": "log" }, { "declarator": "source...
{ "body": "public static String rowColFamToString(Key k) {\n if (null == k) {\n return \"null\";\n }\n \n final Text holder = new Text();\n StringBuilder sb = new StringBuilder(40);\n \n k.getRow(holder);\n Key.appendPrintableString(holder.getBytes(),...
{ "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_361
{ "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 testQueryThatShouldMakeNoRanges() throws Exception {\n String query = \"FOO == 125 \" + \" AND (BAR).getValuesForGroups(grouping:getGroupsForMatchesInGroup(FOO,'125')) >= 35\"\n + \" and (BAR).getValuesForGroups(grouping:getGroupsForMatchesInGroup(FOO,'1...
{ "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_731
{ "fields": [ { "declarator": "parser", "modifier": "private", "original_string": "private LuceneToJexlQueryParser parser;", "type": "LuceneToJexlQueryParser", "var_name": "parser" }, { "declarator": "anyField = Constants.ANY_FIELD", "modifier": "private static fi...
{ "body": "@Test\n public void testNumericRange() throws ParseException {\n Assert.assertEquals(\"(FOO >= '1' && FOO <= '5000')\", parser.parse(\"FOO:[1 TO 5000]\").getOriginalQuery());\n }", "class_method_signature": "TestLuceneToJexlQueryParser.testNumericRange()", "constructor": false, "full_sig...
{ "fields": [ { "declarator": "DEFAULT_TOKENIZED_FIELDS = {\"TOKFIELD\"}", "modifier": "private static final", "original_string": "private static final String[] DEFAULT_TOKENIZED_FIELDS = {\"TOKFIELD\"};", "type": "String[]", "var_name": "DEFAULT_TOKENIZED_FIELDS" }, { ...
{ "body": "@Override\n public QueryNode parse(String query) throws ParseException {\n JexlNode parsedQuery = convertToJexlNode(query);\n QueryNode node = new ServerHeadNode();\n node.setOriginalQuery(parsedQuery.toString());\n return node;\n }", "class_method_signature": "LuceneToJ...
{ "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_47
{ "fields": [ { "declarator": "filter", "modifier": "", "original_string": "BloomFilter<String> filter;", "type": "BloomFilter<String>", "var_name": "filter" }, { "declarator": "logger", "modifier": "", "original_string": "Logger logger;", "type": "Log...
{ "body": "@Test\n public void testTokenize_WeightedLengthPruningWithMajorityOfOverweightValues() throws Exception {\n // Create test input\n final Vector<NormalizedContentInterface> ncis = new Vector<>();\n int fieldNameExtension = 1;\n ncis.add(this.createNormalizedFieldAndValue(field...
{ "fields": [ { "declarator": "log = Logger.getLogger(NGramTokenizationStrategy.class)", "modifier": "private final", "original_string": "private final Logger log = Logger.getLogger(NGramTokenizationStrategy.class);", "type": "Logger", "var_name": "log" }, { "declarator...
{ "body": "public int tokenize(final NormalizedContentInterface content, int maxNGramLength) throws TokenizationException {\n // Initialize return value and try tokenization using the parent\n int ngramCount = super.tokenize(content, maxNGramLength);\n \n // If the parent did not tokenize,...
{ "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_418
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/jexl/visitors/RangeCoalescingVisitorTest.java", "identifier": "RangeCoalescingVisitorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testCoalesceTwoRangesWithAnchor() throws ParseException {\n String originalQuery = \"FOO == 'ba' && NUM >= '+aE2' && NUM <= '+aE5'\";\n String expectedQuery = \"FOO == 'ba' && (NUM >= '+aE2' && NUM <= '+aE5')\";\n \n ASTJexlScript script = JexlASTHelper.pa...
{ "fields": [ { "declarator": "log = ThreadConfigurableLogger.getLogger(RangeCoalescingVisitor.class)", "modifier": "private static final", "original_string": "private static final Logger log = ThreadConfigurableLogger.getLogger(RangeCoalescingVisitor.class);", "type": "Logger", "var...
{ "body": "@SuppressWarnings(\"unchecked\")\n public static <T extends JexlNode> T coalesceRanges(T script) {\n RangeCoalescingVisitor visitor = new RangeCoalescingVisitor();\n \n return (T) script.jjtAccept(visitor, null);\n }", "class_method_signature": "RangeCoalescingVisitor.coalesceR...
{ "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_398
{ "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 additiveExpansion() throws ParseException {\n ASTJexlScript script = JexlASTHelper\n .parseJexlQuery(\"grouping:matchesInGroup(NAM, 'MEADOW', GEN, 'FEMALE').size() + grouping:matchesInGroup(NAM, 'ANTHONY', GEN, 'MALE').size() >= 1\");\n ASTJexlScr...
{ "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_662
{ "fields": [ { "declarator": "aggregator", "modifier": "private", "original_string": "private TLDFieldIndexAggregator aggregator;", "type": "TLDFieldIndexAggregator", "var_name": "aggregator" } ], "file": "warehouse/query-core/src/test/java/datawave/query/tld/TLDFieldIndexAg...
{ "body": "@Test\n public void apply_testSeek() throws IOException {\n aggregator = new TLDFieldIndexAggregator(null, null, 1);\n TreeMap<Key,Value> treeMap = Maps.newTreeMap();\n treeMap.put(getFi(\"123\", \"FIELD1\", \"VALUE1\", \"dataType1\", \"123.345.456\", 10), new Value());\n tre...
{ "fields": [ { "declarator": "fieldsToAggregate", "modifier": "private", "original_string": "private Set<String> fieldsToAggregate;", "type": "Set<String>", "var_name": "fieldsToAggregate" }, { "declarator": "attrFilter", "modifier": "private", "original_st...
{ "body": "public Key apply(SortedKeyValueIterator<Key,Value> itr, Document d, AttributeFactory af) throws IOException {\n Key key = itr.getTopKey();\n ByteSequence parentId = parseRootPointerFromFI(key.getColumnQualifierData());\n Text row = key.getRow();\n ByteSequence docId = null;\n ...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_232
{ "fields": [], "file": "warehouse/common/src/test/java/datawave/common/io/FilesTest.java", "identifier": "FilesTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testCheckDirCheckWrite() throws Exception {\n File file = mock(File.class);\n expect(file.exists()).andReturn(true);\n expect(file.isDirectory()).andReturn(true);\n expect(file.canRead()).andReturn(true);\n expect(file.canExecute()).andReturn(true);...
{ "fields": [ { "declarator": "NULL_PARAMS = Files.class.getName() + \" does not accept null parameters.\"", "modifier": "private static final", "original_string": "private static final String NULL_PARAMS = Files.class.getName() + \" does not accept null parameters.\";", "type": "String", ...
{ "body": "public static String checkDir(final String dir) {\n return checkDir(dir, false);\n }", "class_method_signature": "Files.checkDir(final String dir)", "constructor": false, "full_signature": "public static String checkDir(final String dir)", "identifier": "checkDir", "invocations": [ ...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_51
{ "fields": [ { "declarator": "EMPTY_BF_KEY = new org.apache.hadoop.util.bloom.Key(new byte[0], 1.0)", "modifier": "public static", "original_string": "public static org.apache.hadoop.util.bloom.Key EMPTY_BF_KEY = new org.apache.hadoop.util.bloom.Key(new byte[0], 1.0);", "type": "org.apach...
{ "body": "@Test\n public void testTransformRange() {\n // key should only be in bloom filter if it is a field index column (cf = 'fi\\x00'...) and\n // contains both the field name (cf) and field value (cq)\n org.apache.accumulo.core.data.Key cbKey = new org.apache.accumulo.core.data.Key();\n...
{ "fields": [ { "declarator": "EMPTY_BYTES = new byte[0]", "modifier": "private static final", "original_string": "private static final byte[] EMPTY_BYTES = new byte[0];", "type": "byte[]", "var_name": "EMPTY_BYTES" }, { "declarator": "FIELD_INDEX_PREFIX = new byte[] {'...
{ "body": "@Override\n public org.apache.hadoop.util.bloom.Key transform(org.apache.accumulo.core.data.Key cbKey) {\n \n if (isKeyInBloomFilter(cbKey)) {\n byte keyData[];\n \n // The column qualifier contains the field value\n ByteSequence cq = cbKey.getCo...
{ "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_727
{ "fields": [ { "declarator": "parser", "modifier": "private", "original_string": "private LuceneToJexlQueryParser parser;", "type": "LuceneToJexlQueryParser", "var_name": "parser" }, { "declarator": "anyField = Constants.ANY_FIELD", "modifier": "private static fi...
{ "body": "@Test\n public void testSkipTokenizedFieldsNoAnalyzer() throws ParseException {\n parser.setAnalyzer(null);\n Assert.assertEquals(Constants.ANY_FIELD + \" == '5678 1234 to bird'\", parseQuery(\"NOTOKEN:5678\\\\ 1234\\\\ to\\\\ bird\"));\n }", "class_method_signature": "TestLuceneToJex...
{ "fields": [ { "declarator": "DEFAULT_TOKENIZED_FIELDS = {\"TOKFIELD\"}", "modifier": "private static final", "original_string": "private static final String[] DEFAULT_TOKENIZED_FIELDS = {\"TOKFIELD\"};", "type": "String[]", "var_name": "DEFAULT_TOKENIZED_FIELDS" }, { ...
{ "body": "public void setAnalyzer(Analyzer analyzer) {\n this.analyzer = analyzer;\n }", "class_method_signature": "LuceneToJexlQueryParser.setAnalyzer(Analyzer analyzer)", "constructor": false, "full_signature": "public void setAnalyzer(Analyzer analyzer)", "identifier": "setAnalyzer", "invocati...
{ "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_377
{ "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 singleTermMapping() throws ParseException {\n for (int i = 0; i < 1000; i++) {\n ASTJexlScript script = JexlASTHelper.parseJexlQuery(\"FOO == 'baz'\");\n ASTJexlScript expectedScript = JexlASTHelper.parseJexlQuery(\"(BAR1 == 'baz' || BAR2 == 'baz')\");\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_818
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/index/lookup/EntryParserTest.java", "identifier": "EntryParserTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testParse_NoDocIds_isDayRange() throws IOException {\n TreeMap<Key,Value> data = new TreeMap<>();\n Uid.List.Builder builder = Uid.List.newBuilder();\n builder.setCOUNT(30);\n builder.setIGNORE(true);\n Value hasDocs = new Value(builder.build().toBy...
{ "fields": [ { "declarator": "currNode", "modifier": "protected", "original_string": "protected ASTEQNode currNode;", "type": "ASTEQNode", "var_name": "currNode" }, { "declarator": "fieldName", "modifier": "protected", "original_string": "protected String f...
{ "body": "@Override\n public Tuple2<String,IndexInfo> apply(Entry<Key,Value> entry) {\n IndexInfo info = new IndexInfo();\n try {\n info.readFields(new DataInputStream(new ByteArrayInputStream(entry.getValue().get())));\n } catch (IOException e) {\n return null;\n ...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_265
{ "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 testNestedAndMixedCancels() throws ParseException {\n ASTJexlScript query = JexlASTHelper.parseJexlQuery(\"!(F1 != 'v1' && !F2 == 'v2' && (F3 == 'v3' || F4 == 'v4'))\");\n JexlNode result = PushdownNegationVisitor.pushdownNegations(query);\n Assert.assertEquals(\...
{ "fields": [], "file": "warehouse/query-core/src/main/java/datawave/query/jexl/visitors/PushdownNegationVisitor.java", "identifier": "PushdownNegationVisitor", "interfaces": "", "methods": [ { "class_method_signature": "PushdownNegationVisitor.pushdownNegations(JexlNode tree)", "constructor":...
{ "body": "public static JexlNode pushdownNegations(JexlNode tree) {\n // flatten the input\n JexlNode flattened = TreeFlatteningRebuildingVisitor.flatten(tree);\n \n flattened.jjtAccept(new PushdownNegationVisitor(), new NegationState(false));\n \n // flatten the result\n ...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_635
{ "fields": [ { "declarator": "filter", "modifier": "private", "original_string": "private TLDEventDataFilter filter;", "type": "TLDEventDataFilter", "var_name": "filter" }, { "declarator": "mockScript", "modifier": "private", "original_string": "private AST...
{ "body": "@Test\n public void getCurrentField_tfGroupingTest() {\n expect(mockScript.jjtGetNumChildren()).andReturn(0).anyTimes();\n expect(mockScript.jjtAccept(isA(EventDataQueryExpressionVisitor.class), eq(\"\"))).andReturn(null);\n replayAll();\n \n // expected key structure\...
{ "fields": [ { "declarator": "FI_CF = new Text(\"fi\").getBytes()", "modifier": "public static final", "original_string": "public static final byte[] FI_CF = new Text(\"fi\").getBytes();", "type": "byte[]", "var_name": "FI_CF" }, { "declarator": "TF_CF = Constants.TERM...
{ "body": "protected String getCurrentField(Key current) {\n ByteSequence cf = current.getColumnFamilyData();\n \n if (WritableComparator.compareBytes(cf.getBackingArray(), 0, 2, FI_CF, 0, 2) == 0) {\n ArrayList<Integer> nullIndexes = TLD.instancesOf(0, cf, 1);\n final int s...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_320
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/jexl/visitors/ValidPatternVisitorTest.java", "identifier": "ValidPatternVisitorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testValidNR() throws ParseException {\n String queryString = \"BAR == '1' && FOO !~ '1234.*\\\\d'\";\n ASTJexlScript script = JexlASTHelper.parseJexlQuery(queryString);\n ValidPatternVisitor.check(script);\n }", "class_method_signature": "ValidPatternVisitor...
{ "fields": [ { "declarator": "patternCache", "modifier": "private", "original_string": "private Map<String,Pattern> patternCache;", "type": "Map<String,Pattern>", "var_name": "patternCache" } ], "file": "warehouse/query-core/src/main/java/datawave/query/jexl/visitors/ValidPa...
{ "body": "public static void check(JexlNode node) {\n ValidPatternVisitor visitor = new ValidPatternVisitor();\n node.jjtAccept(visitor, null);\n }", "class_method_signature": "ValidPatternVisitor.check(JexlNode node)", "constructor": false, "full_signature": "public static void check(JexlNode...
{ "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_770
{ "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 testFunctionEscaping2() throws ParseException {\n LuceneQueryParser luceneParser = new LuceneQueryParser();\n luceneParser.parse(\"field:selector OR #include(field, testbade\\\\.scape\");\n }", "class_method_signature": "TestLuceneQ...
{ "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_459
{ "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 @Ignore\n // TODO: This may never happen - e.g: function expansion has happened by now.\n public void testAndSameGroupingOnBoth() throws Exception {\n String originalQuery = \"FOO.1 == 'abc' && FOO.2 == 'def'\";\n ASTJexlScript script = JexlASTHelper.parseJexlQuery(originalQu...
{ "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_838
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/index/lookup/IndexMatchTest.java", "identifier": "IndexMatchTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testCompareToWithDifferentJexlNodes() {\n JexlNode leftNode = JexlNodeFactory.buildEQNode(\"FIELD0\", \"value0\");\n JexlNode rightNode = JexlNodeFactory.buildEQNode(\"FIELD2\", \"value2\");\n \n IndexMatch left = new IndexMatch(\"uid0\", leftNode);\n ...
{ "fields": [ { "declarator": "shard", "modifier": "protected", "original_string": "protected String shard;", "type": "String", "var_name": "shard" }, { "declarator": "uid", "modifier": "protected", "original_string": "protected String uid;", "type": "...
{ "body": "@Override\n public int compareTo(IndexMatch other) {\n Preconditions.checkNotNull(other);\n return uid.compareTo(other.uid);\n }", "class_method_signature": "IndexMatch.compareTo(IndexMatch other)", "constructor": false, "full_signature": "@Override public int compareTo(IndexMatch...
{ "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_992
{ "fields": [ { "declarator": "interceptor = null", "modifier": "private", "original_string": "private RequiredInterceptor interceptor = null;", "type": "RequiredInterceptor", "var_name": "interceptor" }, { "declarator": "ctx = null", "modifier": "@Mock\n priva...
{ "body": "@Test(expected = IllegalArgumentException.class)\n public void testRequiredValidValuesWithInvalidValue() throws Exception {\n method = TestClass.class.getMethod(\"testValidValudesMethod\", String.class);\n // String parameter\n EasyMock.expect(ctx.getParameters()).andReturn(new Stri...
{ "fields": [ { "declarator": "log = Logger.getLogger(this.getClass())", "modifier": "private", "original_string": "private Logger log = Logger.getLogger(this.getClass());", "type": "Logger", "var_name": "log" } ], "file": "web-services/common-util/src/main/java/datawave/inte...
{ "body": "@AroundInvoke\n public Object checkRequiredParameters(InvocationContext ctx) throws Exception {\n // Check to see if any of the parameters are required\n Object[] methodParams = ctx.getParameters();\n if (null != methodParams && methodParams.length > 0) {\n Annotation[][]...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_584
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/jexl/functions/GroupingRequiredFilterFunctionsTest.java", "identifier": "GroupingRequiredFilterFunctionsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testAtomValuesMatchMult() {\n // @formatter:off\n // there should be 4 matches, 2 for 'bar' and 2 for 'baz'\n Collection<?> matches = GroupingRequiredFilterFunctions.atomValuesMatch(\n Lists.newArrayList(\n makeValueTuple(\"A...
{ "fields": [ { "declarator": "GROUPING_REQUIRED_FUNCTION_NAMESPACE = \"grouping\"", "modifier": "public static final", "original_string": "public static final String GROUPING_REQUIRED_FUNCTION_NAMESPACE = \"grouping\";", "type": "String", "var_name": "GROUPING_REQUIRED_FUNCTION_NAME...
{ "body": "public static Collection<ValueTuple> atomValuesMatch(Object... fields) {\n List<Iterable<?>> iterableFields = new ArrayList<>();\n \n for (Object field : fields) {\n if (field instanceof Iterable == false) {\n field = Collections.singleton(field);\n ...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_71
{ "fields": [ { "declarator": "BAD_TABLE_NAME = \"VERY_BAD_TABLE_NAME\"", "modifier": "private static final", "original_string": "private static final String BAD_TABLE_NAME = \"VERY_BAD_TABLE_NAME\";", "type": "String", "var_name": "BAD_TABLE_NAME" }, { "declarator": "l...
{ "body": "@Test\n public void testSetLocalityGroupConfigurationIfNecessary() throws AccumuloSecurityException, AccumuloException, TableNotFoundException {\n \n AbstractTableConfigHelperTest.logger.info(\"AbstractTableConfigHelperTest.testSetLocalityGroupConfigurationIfNecessary() called.\");\n ...
{ "fields": [], "file": "warehouse/ingest-core/src/main/java/datawave/ingest/table/config/AbstractTableConfigHelper.java", "identifier": "AbstractTableConfigHelper", "interfaces": "implements TableConfigHelper", "methods": [ { "class_method_signature": "AbstractTableConfigHelper.setup(String tableNa...
{ "body": "protected void setLocalityGroupConfigurationIfNecessary(String tableName, Map<String,Set<Text>> newLocalityGroups, TableOperations tops, Logger log)\n throws AccumuloException, TableNotFoundException, AccumuloSecurityException {\n if (areLocalityGroupsConfigured(tableName, newLoca...
{ "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_707
{ "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 testMultiNoEnrich() throws Exception {\n Query query = new QueryImpl();\n query.setQuery(\"SOURCE == 'sourceValue' AND SINK == 'targetValue' AND TYPE == 'TEST5' AND RELATION == 'REL1-REL2' AND ATTRIBUTE1 == 'SOURCE1-SOURCE2'\");\n \n String transformed = l...
{ "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_357
{ "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 testFilterFunctionNormalizationWithIndexedNumeric() throws ParseException {\n Multimap<String,Type<?>> dataTypes = HashMultimap.create();\n dataTypes.put(\"NUM\", new NumberType());\n \n config.setQueryFieldsDatatypes(dataTypes);\n \n String ...
{ "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_642
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/tld/GetStartKeyForRootTest.java", "identifier": "GetStartKeyForRootTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testApply() {\n String shard = \"20190314_0\";\n String doc = \"datatype\\u0000p1.p2.p3.c1.gc1\";\n \n Key start = new Key(shard, doc);\n Key end = new Key(shard, doc + \"\\uffff\");\n \n Range range = new Range(start, true, end, false...
{ "fields": [ { "declarator": "inst = new GetStartKeyForRoot()", "modifier": "private static final", "original_string": "private static final GetStartKeyForRoot inst = new GetStartKeyForRoot();", "type": "GetStartKeyForRoot", "var_name": "inst" } ], "file": "warehouse/query-c...
{ "body": "@Override\n public Key apply(Range input) {\n Key k = input.getStartKey();\n return TLD.buildParentKey(k.getRow(), TLD.parseRootPointerFromId(k.getColumnFamilyData()), k.getColumnQualifierData(), k.getColumnVisibility(),\n k.getTimestamp());\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_212
{ "fields": [ { "declarator": "jsonFile = \"/input/flattener-test.json\"", "modifier": "protected static", "original_string": "protected static String jsonFile = \"/input/flattener-test.json\";", "type": "String", "var_name": "jsonFile" }, { "declarator": "json", ...
{ "body": "@Test\n public void testFlattenPreserveCaseIncludingPrefix() throws Exception {\n JsonObjectFlattener flattener = new JsonObjectFlattenerImpl.Builder().pathDelimiter(\"_\").mapKeyValueNormalizer(noOpNormalizer).build();\n \n JsonParser parser = new JsonParser();\n JsonElement...
{ "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_496
{ "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 GTTest() throws ParseException {\n String query = \"FIELD > 'x'\";\n ASTJexlScript script = JexlASTHelper.parseJexlQuery(query);\n Assert.assertEquals(QueryPruningVisitor.TruthState.UNKNOWN, QueryPruningVisitor.getState(script));\n \n Assert.assertE...
{ "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_183
{ "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 testGetCompressionTypeWithoutSetting() {\n \n MultiRFileOutputFormatterTest.logger.info(\"testSetCompressionTypeWithBadType called...\");\n \n try {\n \n String expected = \"gz\";\n \n Assert.assertEquals(\"Multi...
{ "fields": [ { "declarator": "log = Logger.getLogger(MultiRFileOutputFormatter.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(MultiRFileOutputFormatter.class);", "type": "Logger", "var_name": "log" }, { ...
{ "body": "protected static String getCompressionType(Configuration conf) {\n return conf.get(COMPRESSION_TYPE, \"gz\");\n }", "class_method_signature": "MultiRFileOutputFormatter.getCompressionType(Configuration conf)", "constructor": false, "full_signature": "protected static String getCompressionTy...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_479
{ "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 trueOrTest() throws ParseException {\n String query = \"true || _NOFIELD_ == 'y'\";\n ASTJexlScript script = JexlASTHelper.parseJexlQuery(query);\n Assert.assertEquals(QueryPruningVisitor.TruthState.TRUE, QueryPruningVisitor.getState(script));\n \n ...
{ "fields": [ { "declarator": "log = Logger.getLogger(QueryPruningVisitor.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(QueryPruningVisitor.class);", "type": "Logger", "var_name": "log" }, { "declarat...
{ "body": "public static TruthState getState(JexlNode node) {\n QueryPruningVisitor visitor = new QueryPruningVisitor(false);\n return (TruthState) node.jjtAccept(visitor, null);\n }", "class_method_signature": "QueryPruningVisitor.getState(JexlNode node)", "constructor": false, "full_signature...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_880
{ "fields": [], "file": "warehouse/core/src/test/java/datawave/util/TextUtilTest.java", "identifier": "TextUtilTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testAppend_long() throws IOException {\n String prefix = \"prefix\\u6C34\";\n int prefixLength = prefix.getBytes(\"UTF-8\").length;\n Text text = new Text(prefix.getBytes(\"UTF-8\"));\n long appendedLong = 0x0123456789ABCDEFl;\n TextUtil.textAppend(...
{ "fields": [ { "declarator": "nullByte = {0}", "modifier": "private static final", "original_string": "private static final byte[] nullByte = {0};", "type": "byte[]", "var_name": "nullByte" } ], "file": "warehouse/core/src/main/java/datawave/util/TextUtil.java", "identifie...
{ "body": "public static void textAppend(Text text, String string) {\n appendNullByte(text);\n textAppendNoNull(text, string);\n }", "class_method_signature": "TextUtil.textAppend(Text text, String string)", "constructor": false, "full_signature": "public static void textAppend(Text text, 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_300
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/jexl/visitors/HasTopLevelNegationVisitorTest.java", "identifier": "HasTopLevelNegationVisitorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void test12() throws Exception {\n ASTJexlScript script = JexlASTHelper.parseJexlQuery(\"(FOO == 'bar' && (FOO == 'bar' || FOO != 'bar'))\");\n Assert.assertFalse(HasTopLevelNegationVisitor.hasTopLevelNegation(script));\n }", "class_method_signature": "HasTopLevelNegati...
{ "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_750
{ "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\n public void testAngledBrackets() throws ParseException {\n // if angled brackets need to be escaped, this query will fail to parse\n Assert.assertEquals(\"000.000.000<realm>\", queryParser.parse(\"000.000.000<realm>\").toString());\n }", "class_method_signature": "TestLuceneQu...
{ "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_26
{ "fields": [ { "declarator": "dataType = new Type(\"dt1\", null, null, null, 10, null)", "modifier": "private", "original_string": "private Type dataType = new Type(\"dt1\", null, null, null, 10, null);", "type": "Type", "var_name": "dataType" }, { "declarator": "conf"...
{ "body": "@Test\n public void shouldDropBothFirstAndLastNameIfFullNamePresent() {\n fields.put(\"FIRST_NAME\", \"Tommy\");\n fields.put(\"LAST_NAME\", \"Test\");\n fields.put(\"FULL_NAME\", \"Tommy Test\");\n \n filter.apply(fields);\n \n assertFieldKept(fields, \"...
{ "fields": [ { "declarator": "logger = Logger.getLogger(IngestFieldFilter.class)", "modifier": "private static final", "original_string": "private static final Logger logger = Logger.getLogger(IngestFieldFilter.class);", "type": "Logger", "var_name": "logger" }, { "dec...
{ "body": "public void apply(Multimap<String,?> fields) {\n // for the field name filters, remove the drop fields if the keep fields exist\n for (FieldFilter filter : fieldNameFilters) {\n if (fields.keySet().containsAll(filter.getKeepFields())) {\n if (logger.isTraceEnabled())...
{ "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_245
{ "fields": [], "file": "warehouse/common/src/test/java/datawave/common/io/FilesTest.java", "identifier": "FilesTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testMvString() throws Exception {\n String ret = Files.mv(\"src\", \"dest\", true);\n assertEquals(ret, \"Directory, 'src' is not a file.\");\n }", "class_method_signature": "FilesTest.testMvString()", "constructor": false, "full_signature": "@Test public void ...
{ "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_615
{ "fields": [ { "declarator": "data = null", "modifier": "private", "original_string": "private byte[][] data = null;", "type": "byte[][]", "var_name": "data" }, { "declarator": "sortedOrder = null", "modifier": "private", "original_string": "private int[] s...
{ "body": "@Test\n public void testSize() {\n int expectedSize = data.length;\n assertEquals(expectedSize, set.size());\n for (int i = (data.length / 2); i < data.length; i++) {\n set.remove(data[i]);\n expectedSize--;\n assertEquals(expectedSize, set.size());\...
{ "fields": [ { "declarator": "log = Logger.getLogger(BufferedFileBackedSortedSet.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(BufferedFileBackedSortedSet.class);", "type": "Logger", "var_name": "log" }, {...
{ "body": "@Override\n public int size() {\n if (sizeModified) {\n this.size = set.size();\n sizeModified = false;\n }\n return this.size;\n }", "class_method_signature": "BufferedFileBackedSortedSet.size()", "constructor": false, "full_signature": "@Override pub...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_480
{ "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 branchedTest() throws ParseException {\n String query = \"FIELD1 == 'x' || (_NOFIELD_ == 'y' && FIELD2 == 'z')\";\n ASTJexlScript script = JexlASTHelper.parseJexlQuery(query);\n Assert.assertEquals(QueryPruningVisitor.TruthState.UNKNOWN, QueryPruningVisitor.getSt...
{ "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_879
{ "fields": [], "file": "warehouse/core/src/test/java/datawave/util/TextUtilTest.java", "identifier": "TextUtilTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testAppend_multiByteChars() throws UnsupportedEncodingException {\n String prefix = \"prefix\\u6C34\";\n int prefixLength = prefix.getBytes(\"UTF-8\").length;\n Text text = new Text(prefix.getBytes(\"UTF-8\"));\n // A random multi-byte char string I found....
{ "fields": [ { "declarator": "nullByte = {0}", "modifier": "private static final", "original_string": "private static final byte[] nullByte = {0};", "type": "byte[]", "var_name": "nullByte" } ], "file": "warehouse/core/src/main/java/datawave/util/TextUtil.java", "identifie...
{ "body": "public static void textAppend(Text text, String string) {\n appendNullByte(text);\n textAppendNoNull(text, string);\n }", "class_method_signature": "TextUtil.textAppend(Text text, String string)", "constructor": false, "full_signature": "public static void textAppend(Text text, 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_896
{ "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 usesStandardForUnknownType() {\n // this was the existing behavior\n Assert.assertEquals(EdgeKey.EDGE_FORMAT.STANDARD, EdgeKeyDecoder.determineEdgeFormat(new Text(\"SHAMWOW/STATTYPE/TYPE/RELATIONSHIP/CATEGORY\")));\n }", "class_method_signature": "EdgeKeyDecoderTes...
{ "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 EDGE_FORMAT determineEdgeFormat(Text colFam) {\n if (WritableComparator.compareBytes(colFam.getBytes(), 0, STATS_BYTES.length, STATS_BYTES, 0, STATS_BYTES.length) == 0) {\n return EDGE_FORMAT.STATS;\n } else {\n return EDGE_FORMAT.STANDARD;\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_195
{ "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 testGetCategoryForMember() throws Exception {\n PartitionerCache partitionerCache = new PartitionerCache(conf);\n Assert.assertNull(PartitionerCache.getCategory(conf, new Text(\"table1\")));\n }", "class_method_signature": "PartitionerCacheTest.testGetCategoryForMe...
{ "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 static Text getCategory(Configuration conf, Text tableName) {\n String categoryName = conf.get(PREFIX_SHARED_MEMBERSHIP + tableName);\n return categoryName == null ? null : new Text(categoryName);\n }", "class_method_signature": "PartitionerCache.getCategory(Configuration conf, Te...
{ "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_30
{ "fields": [ { "declarator": "dataType = new Type(\"dt1\", null, null, null, 10, null)", "modifier": "private", "original_string": "private Type dataType = new Type(\"dt1\", null, null, null, 10, null);", "type": "Type", "var_name": "dataType" }, { "declarator": "conf"...
{ "body": "@Test\n public void shouldDropAliasIfEqual() {\n fields.put(\"LAST_NAME\", \"Test\");\n fields.put(\"ALIAS\", \"Test\");\n \n filter.apply(fields);\n \n assertFieldKept(fields, \"LAST_NAME\");\n assertFieldDropped(fields, \"ALIAS\");\n }", "class_met...
{ "fields": [ { "declarator": "logger = Logger.getLogger(IngestFieldFilter.class)", "modifier": "private static final", "original_string": "private static final Logger logger = Logger.getLogger(IngestFieldFilter.class);", "type": "Logger", "var_name": "logger" }, { "dec...
{ "body": "public void apply(Multimap<String,?> fields) {\n // for the field name filters, remove the drop fields if the keep fields exist\n for (FieldFilter filter : fieldNameFilters) {\n if (fields.keySet().containsAll(filter.getKeepFields())) {\n if (logger.isTraceEnabled())...
{ "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_746
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/language/parser/jexl/JexlNodeSetTest.java", "identifier": "JexlNodeSetTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testClear() {\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> nodes =...
{ "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 void clear() {\n this.nodeMap.clear();\n }", "class_method_signature": "JexlNodeSet.clear()", "constructor": false, "full_signature": "@Override public void clear()", "identifier": "clear", "invocations": [ "clear" ], "modifiers": "@Override public", "par...
{ "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_316
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/jexl/visitors/DepthVisitorTest.java", "identifier": "DepthVisitorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testParen2() throws Exception {\n String originalQuery = \"(FOO == 'abc' or (FOO = 'bcd' and (FOO = 'abcdef')))\";\n ASTJexlScript script = JexlASTHelper.parseJexlQuery(originalQuery);\n \n Assert.assertEquals(6, DepthVisitor.getDepth(script, 7));\n ...
{ "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_603
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/util/regex/RegexTrieTest.java", "identifier": "RegexTrieTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testRegex() {\n String[] strings = new String[] {\"\", \"A\", \"AB\", \"ABCDEF\", \"BC\", \"BB\"};\n String[] other = new String[] {\"AA\", \"B\", \"BBB\", \"BCB\", \"ABC\", \"ABCD\", \"ABCDE\", \"ABCDEFF\", \"C\"};\n String regex = new RegexTrie(Arrays.asList(st...
{ "fields": [ { "declarator": "root = new Node()", "modifier": "final", "original_string": "final Node root = new Node();", "type": "Node", "var_name": "root" }, { "declarator": "CHARS_TO_ESCAPE = new char[] {'\\\\', '.', '[', ']', '{', '}', '(', ')', '<', '>', '*', '+'...
{ "body": "public String toRegex() {\n StringBuilder regex = new StringBuilder();\n // starting with the root, build the regex\n toRegex(root, regex);\n // return the resulting string\n return regex.toString();\n }", "class_method_signature": "RegexTrie.toRegex()", "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_253
{ "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 testNEq() throws ParseException {\n ASTJexlScript query = JexlASTHelper.parseJexlQuery(\"!(F1 != 'v1')\");\n visitor.visit(query, null);\n Assert.assertEquals(\"(F1 == 'v1')\", JexlStringBuildingVisitor.buildQuery(query));\n }", "class_method_signature": "Pu...
{ "fields": [], "file": "warehouse/query-core/src/main/java/datawave/query/jexl/visitors/PushdownNegationVisitor.java", "identifier": "PushdownNegationVisitor", "interfaces": "", "methods": [ { "class_method_signature": "PushdownNegationVisitor.pushdownNegations(JexlNode tree)", "constructor":...
{ "body": "@Override\n public Object visit(ASTNotNode node, Object data) {\n // if there is already a negation passed down it should negate this node and continue down the tree to check for other negations\n if (data != null && ((NegationState) data).isNegated()) {\n JexlNode nextNode = dr...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_984
{ "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 testMinimizeWithNoSubset() {\n LinkedHashSet<Authorizations> expected = new LinkedHashSet<>();\n expected.add(new Authorizations(\"A\", \"B\", \"C\", \"D\"));\n expected.add(new Authorizations(\"B\", \"C\", \"F\"));\n expected.add(new Authorizations(\"A\",...
{ "fields": [], "file": "web-services/common-util/src/main/java/datawave/security/util/AuthorizationsUtil.java", "identifier": "AuthorizationsUtil", "interfaces": "", "methods": [ { "class_method_signature": "AuthorizationsUtil.union(Iterable<byte[]> authorizations1, Iterable<byte[]> authorizations2...
{ "body": "public static Collection<Authorizations> minimize(Collection<Authorizations> authorizations) {\n return AuthorizationsMinimizer.minimize(authorizations);\n }", "class_method_signature": "AuthorizationsUtil.minimize(Collection<Authorizations> authorizations)", "constructor": false, "full_sig...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_438
{ "fields": [ { "declarator": "visitor = new BooleanOptimizationRebuildingVisitor()", "modifier": "private", "original_string": "private BooleanOptimizationRebuildingVisitor visitor = new BooleanOptimizationRebuildingVisitor();", "type": "BooleanOptimizationRebuildingVisitor", "var_n...
{ "body": "@Test\n public void testDistributeLargestOrTermsWithFlatten() throws ParseException {\n String original = \"(a || b) && (c || d) && (e || f || g)\";\n String expected = \"((c || d) && (a || b) && e) || ((c || d) && (a || b) && f) || ((c || d) && (a || b) && g)\";\n // With flatten t...
{ "fields": [ { "declarator": "log = Logger.getLogger(BooleanOptimizationRebuildingVisitor.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(BooleanOptimizationRebuildingVisitor.class);", "type": "Logger", "var_name": ...
{ "body": "public static ASTJexlScript optimize(JexlNode node) {\n if (node == null) {\n return null;\n }\n \n BooleanOptimizationRebuildingVisitor visitor = new BooleanOptimizationRebuildingVisitor();\n \n return (ASTJexlScript) node.jjtAccept(visitor, null);\n ...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_592
{ "fields": [ { "declarator": "log = Logger.getLogger(UniqueTransformTest.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(UniqueTransformTest.class);", "type": "Logger", "var_name": "log" }, { "declarat...
{ "body": "@Test\n public void testUniquenessWithTwoGroupsAndUngrouped() {\n // create document two fields as follows:\n // field1.group1\n // field1.group2\n // field2.group1\n // field2.group2\n // field3\n Document d = new Document();\n d.put(\"Attr0.0.0.0...
{ "fields": [ { "declarator": "log = Logger.getLogger(GroupingTransform.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(GroupingTransform.class);", "type": "Logger", "var_name": "log" }, { "declarator":...
{ "body": "List<FieldSet> getOrderedFieldSets(Document document) {\n Set<Multimap<String,String>> fieldSets = getFieldSets(document);\n List<FieldSet> orderedFieldSets = new ArrayList<>(fieldSets.size());\n for (Multimap<String,String> fieldSet : fieldSets) {\n FieldSet orderedFieldSet...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_341
{ "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 testMixedCase() throws ParseException {\n Multimap<String,Type<?>> dataTypes = HashMultimap.create();\n dataTypes.putAll(\"NAME\", Sets.newHashSet(new LcNoDiacriticsType(), new NoOpType()));\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_711
{ "fields": [ { "declarator": "dict = null", "modifier": "", "original_string": "DefaultEdgeDictionary dict = null;", "type": "DefaultEdgeDictionary", "var_name": "dict" }, { "declarator": "logic = new DefaultEdgeEventQueryLogic()", "modifier": "", "original...
{ "body": "@Test(expected = IllegalArgumentException.class)\n public void testBogusType() throws Exception {\n Query query = new QueryImpl();\n query.setQuery(\"SOURCE == 'sourceValue' AND SINK == 'targetValue' AND TYPE == 'DOESNTEXIST' AND RELATION == 'REL1-REL2' AND ATTRIBUTE1 == 'SOURCE1-SOURCE2'\...
{ "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_67
{ "fields": [ { "declarator": "BAD_TABLE_NAME = \"VERY_BAD_TABLE_NAME\"", "modifier": "private static final", "original_string": "private static final String BAD_TABLE_NAME = \"VERY_BAD_TABLE_NAME\";", "type": "String", "var_name": "BAD_TABLE_NAME" }, { "declarator": "l...
{ "body": "@Test\n public void testSetPropertyIfNecessaryWithExistingKeyProperty() throws AccumuloSecurityException, AccumuloException, TableNotFoundException {\n \n AbstractTableConfigHelperTest.logger.info(\"AbstractTableConfigHelperTest.testSetPropertyIfNecessaryWithExistingProperty() called.\");\...
{ "fields": [], "file": "warehouse/ingest-core/src/main/java/datawave/ingest/table/config/AbstractTableConfigHelper.java", "identifier": "AbstractTableConfigHelper", "interfaces": "implements TableConfigHelper", "methods": [ { "class_method_signature": "AbstractTableConfigHelper.setup(String tableNa...
{ "body": "public static void setPropertyIfNecessary(String tableName, String propertyName, String propertyValue, TableOperations tops, Logger log)\n throws AccumuloException, AccumuloSecurityException, TableNotFoundException {\n \n boolean propertySet = false;\n for (Entry<Str...
{ "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_88
{ "fields": [ { "declarator": "FIELD_NAME = \"FIELD_NAME\"", "modifier": "private static final", "original_string": "private static final String FIELD_NAME = \"FIELD_NAME\";", "type": "String", "var_name": "FIELD_NAME" }, { "declarator": "FIELD_TO_COUNT = \"FIELD_1\"", ...
{ "body": "@Test\n public void testCreatesTermFrequencyForTokenization() throws IOException {\n setupAbstractContentIngestHelper(true, false);\n setupMocks();\n \n helper.addIndexedField(FIELD_TO_COUNT);\n RawRecordMetadata eventMetadata = new EventMetadata(null, METADATA_TABLE_N...
{ "fields": [ { "declarator": "compositeFieldsInfo = new MetadataWithMostRecentDate(ColumnFamilyConstants.COLF_CI)", "modifier": "private", "original_string": "private MetadataWithMostRecentDate compositeFieldsInfo = new MetadataWithMostRecentDate(ColumnFamilyConstants.COLF_CI);", "type": ...
{ "body": "@Override\n public void addEvent(IngestHelperInterface helper, RawRecordContainer event, Multimap<String,NormalizedContentInterface> fields, long loadTimeInMillis) {\n addEvent(helper, event, fields, this.frequency, INCLUDE_LOAD_DATES, loadTimeInMillis);\n }", "class_method_signature": "Even...
{ "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_204
{ "fields": [ { "declarator": "TNAME = \"s\"", "modifier": "private static final", "original_string": "private static final String TNAME = \"s\";", "type": "String", "var_name": "TNAME" }, { "declarator": "testTServers", "modifier": "private", "original_stri...
{ "body": "@Test\n public void testGetAssignments() {\n testTServers.addTServers(\"127.0.0.1\", \"127.0.0.1\", \"127.0.0.1\");\n \n // Two extents per server, but no overlap of any given day.\n Map<KeyExtent,TServerInstance> unassigned = new HashMap<>();\n unassigned.put(makeExte...
{ "fields": [ { "declarator": "log = Logger.getLogger(ShardedTableTabletBalancer.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(ShardedTableTabletBalancer.class);", "type": "Logger", "var_name": "log" }, { ...
{ "body": "@Override\n public synchronized void getAssignments(SortedMap<TServerInstance,TabletServerStatus> current, Map<KeyExtent,TServerInstance> unassigned,\n Map<KeyExtent,TServerInstance> assignments) {\n // During getAssignments, we'll just partition using the shard's day.\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_654
{ "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 testInstancesOfWithRepeat() {\n ByteSequence bytes = new ArrayByteSequence(\"how.many.dots.do.we.have?\");\n ArrayList<Integer> expectedPositions = Lists.newArrayList(3, 8, 13);\n ArrayList<Integer> instances = TLD.instancesOf('.', bytes, 3);\n assertEqual...
{ "fields": [], "file": "warehouse/query-core/src/main/java/datawave/query/tld/TLD.java", "identifier": "TLD", "interfaces": "", "methods": [ { "class_method_signature": "TLD.TLD()", "constructor": true, "full_signature": "private TLD()", "identifier": "TLD", "modifiers": "p...
{ "body": "public static ArrayList<Integer> instancesOf(int b, ByteSequence sequence) {\n return instancesOf(b, sequence, -1);\n }", "class_method_signature": "TLD.instancesOf(int b, ByteSequence sequence)", "constructor": false, "full_signature": "public static ArrayList<Integer> instancesOf(int b, B...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_443
{ "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 testNotNull() throws Exception {\n String originalQuery = \"FOO != null\";\n ASTJexlScript script = JexlASTHelper.parseJexlQuery(originalQuery);\n final Map<String,ExpressionFilter> filter = EventDataQueryExpressionVisitor.getExpressionFilters(script, attrFactory...
{ "fields": [ { "declarator": "log = Logger.getLogger(EventDataQueryExpressionVisitor.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(EventDataQueryExpressionVisitor.class);", "type": "Logger", "var_name": "log" ...
{ "body": "public static Map<String,ExpressionFilter> getExpressionFilters(ASTJexlScript script, AttributeFactory factory) {\n final EventDataQueryExpressionVisitor v = new EventDataQueryExpressionVisitor(factory);\n \n script.jjtAccept(v, \"\");\n \n return v.getFilterMap();\n }...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_910
{ "fields": [ { "declarator": "refBuilder", "modifier": "", "original_string": "EdgeKeyBuilder refBuilder;", "type": "EdgeKeyBuilder", "var_name": "refBuilder" }, { "declarator": "refStatsBase", "modifier": "", "original_string": "Key refStatsBase;", "...
{ "body": "@Test\n public void testClearFields() {\n EdgeKeyBuilder anotherBuilder = EdgeKey.newBuilder();\n assertNotEquals(refBuilder, anotherBuilder);\n \n refBuilder.clearFields();\n anotherBuilder.clearFields();\n assertEquals(refBuilder, anotherBuilder);\n }", "...
{ "fields": [ { "declarator": "format", "modifier": "private final", "original_string": "private final EDGE_FORMAT format;", "type": "EDGE_FORMAT", "var_name": "format" }, { "declarator": "statsType", "modifier": "private final", "original_string": "private ...
{ "body": "public static EdgeKeyBuilder newBuilder() {\n return new EdgeKeyBuilder();\n }", "class_method_signature": "EdgeKey.newBuilder()", "constructor": false, "full_signature": "public static EdgeKeyBuilder newBuilder()", "identifier": "newBuilder", "invocations": [], "modifiers": "public s...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_855
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/audit/DatawaveSelectorExtractorTest.java", "identifier": "DatawaveSelectorExtractorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void extractSelectorsNegation() {\n \n DatawaveSelectorExtractor extractor = new DatawaveSelectorExtractor();\n QueryImpl q = new QueryImpl();\n q.setQuery(\"FIELD1:selector1 NOT selector2\");\n List<String> selectorList = extractor.extractSelectors(q);\...
{ "fields": [ { "declarator": "luceneToJexlParser = new LuceneToJexlQueryParser()", "modifier": "private", "original_string": "private LuceneToJexlQueryParser luceneToJexlParser = new LuceneToJexlQueryParser();", "type": "LuceneToJexlQueryParser", "var_name": "luceneToJexlParser" ...
{ "body": "@Override\n public List<String> extractSelectors(Query query) throws IllegalArgumentException {\n List<String> selectorList = new ArrayList<>();\n List<ASTEQNode> eqNodes = null;\n QueryNode node = null;\n ASTJexlScript jexlScript = null;\n \n try {\n ...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_506
{ "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 NRNoFieldTest() 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_156
{ "fields": [ { "declarator": "logger = Logger.getLogger(CBMutationOutputFormatterTest.class)", "modifier": "protected static final", "original_string": "protected static final Logger logger = Logger.getLogger(CBMutationOutputFormatterTest.class);", "type": "Logger", "var_name": "log...
{ "body": "@Test\n public void testSetOutputInfo() throws AccumuloSecurityException {\n \n CBMutationOutputFormatterTest.logger.info(\"testSetOutputInfo called...\");\n \n try {\n \n Job job = createMockJob();\n String user = \"user\";\n byte[...
{ "fields": [ { "declarator": "log = Logger.getLogger(CBMutationOutputFormatter.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(CBMutationOutputFormatter.class);", "type": "Logger", "var_name": "log" } ], "fi...
{ "body": "public static void setOutputInfo(Job job, String user, byte[] passwd, boolean createTables, String defaultTable) throws AccumuloSecurityException {\n AccumuloOutputFormat.setConnectorInfo(job, user, new PasswordToken(passwd));\n AccumuloOutputFormat.setCreateTables(job, createTables);\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_785
{ "fields": [ { "declarator": "equality", "modifier": "private", "original_string": "private AncestorEquality equality;", "type": "AncestorEquality", "var_name": "equality" } ], "file": "warehouse/query-core/src/test/java/datawave/query/function/AncestorEqualityTest.java", ...
{ "body": "@Test\n public void testSiblingReject() {\n Key key = new Key(\"abc\", \"1234.123.12345\");\n Key other = new Key(\"abc\", \"1234.123.12346\");\n assertFalse(equality.partOf(key, other));\n }", "class_method_signature": "AncestorEqualityTest.testSiblingReject()", "constructor...
{ "fields": [], "file": "warehouse/query-core/src/main/java/datawave/query/function/AncestorEquality.java", "identifier": "AncestorEquality", "interfaces": "implements Equality", "methods": [ { "class_method_signature": "AncestorEquality.partOf(Key key, Key other)", "constructor": false, ...
{ "body": "@Override\n public boolean partOf(Key key, Key other) {\n String docId = key.getColumnFamily().toString();\n String otherId = other.getColumnFamily().toString();\n return docId.startsWith(otherId + DEFAULT_SEPARATOR) || docId.equals(otherId);\n }", "class_method_signature": "An...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...