id
stringlengths
7
14
test_class
dict
test_case
dict
focal_class
dict
focal_method
dict
repository
dict
116999027_867
{ "fields": [ { "declarator": "builder", "modifier": "", "original_string": "UIDBuilder<UID> builder;", "type": "UIDBuilder<UID>", "var_name": "builder" }, { "declarator": "data = \"20100901: the quick brown fox jumped over the lazy dog\"", "modifier": "private", ...
{ "body": "@Test\n public void testParse() {\n UID a = builder.newId();\n UID b = UID.parse(a.toString());\n assertEquals(a, b);\n assertEquals(b, a);\n assertEquals(0, a.compareTo(b));\n assertEquals(0, a.compare(a, b));\n a = builder.newId(\"blabla\");\n b ...
{ "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\")\n public static SnowflakeUID parse(final String s) {\n return parse(s, -1);\n }", "class_method_signature": "SnowflakeUID.parse(final String s)", "constructor": false, "full_signature": "@SuppressWarnings(\"unchecked\") public static SnowflakeUID parse(fi...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_758
{ "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 testParse() throws ParseException {\n Assert.assertEquals(\"a*\", queryParser.parse(\"a*\").getContents());\n Assert.assertEquals(\"[ADJ4,cat,and,dog,within,5]\", queryParser.parse(\"\\\"cat and dog within 5\\\"\").getContents());\n Assert.assertEquals(\"[ADJ2,Lo...
{ "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_1043
{ "fields": [ { "declarator": "q = null", "modifier": "", "original_string": "QueryImpl q = null;", "type": "QueryImpl", "var_name": "q" }, { "declarator": "QUERY_SYNTAX = \"query.syntax\"", "modifier": "public static final", "original_string": "public stati...
{ "body": "@Test\n public void testFindParameter() {\n Set<Parameter> parameters = new HashSet<Parameter>();\n parameters.add(new Parameter(QUERY_SYNTAX, \"LUCENE\"));\n parameters.add(new Parameter(NON_EVENT_KEY_PREFIXES, \"value2\"));\n parameters.add(new Parameter(BLACKLISTED_FIELDS,...
{ "fields": [ { "declarator": "PARAMETER_SEPARATOR = \";\"", "modifier": "public static final", "original_string": "public static final String PARAMETER_SEPARATOR = \";\";", "type": "String", "var_name": "PARAMETER_SEPARATOR" }, { "declarator": "PARAMETER_NAME_VALUE_SEP...
{ "body": "public Parameter findParameter(String parameter) {\n if (!paramLookup.containsKey(parameter)) {\n return new Parameter(parameter, \"\");\n } else {\n return paramLookup.get(parameter);\n }\n }", "class_method_signature": "QueryImpl.findParameter(String parame...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_308
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/jexl/visitors/DepthVisitorTest.java", "identifier": "DepthVisitorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testOr() throws Exception {\n String originalQuery = \"FOO == 'abc' or FOO = 'bcd'\";\n ASTJexlScript script = JexlASTHelper.parseJexlQuery(originalQuery);\n \n Assert.assertEquals(2, DepthVisitor.getDepth(script, 3));\n Assert.assertEquals(2, Depth...
{ "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_426
{ "fields": [ { "declarator": "GEO_FIELD_QUERY = \"(((GEO_FIELD >= '0208' && GEO_FIELD <= '020d') || GEO_FIELD == '0202') && (geowave:intersects(GEO_FIELD, 'POLYGON((10 10, -10 10, -10 -10, 10 -10, 10 10 ))')))\"", "modifier": "private static final", "original_string": "private static final Stri...
{ "body": "@Test\n public void testGeomField() throws Exception {\n ASTJexlScript queryTree = JexlASTHelper.parseJexlQuery(COMBINED_FIELDS_QUERY);\n \n GeoWaveQueryInfo queryInfo = new GeoWaveQueryInfoVisitor(Arrays.asList(\"GEOM_FIELD\")).parseGeoWaveQueryInfo(queryTree);\n assertEqual...
{ "fields": [ { "declarator": "geoFields", "modifier": "private final", "original_string": "private final Collection<String> geoFields;", "type": "Collection<String>", "var_name": "geoFields" } ], "file": "warehouse/query-core/src/main/java/datawave/query/jexl/visitors/GeoWav...
{ "body": "public GeoWaveQueryInfo parseGeoWaveQueryInfo(JexlNode script) {\n GeoWaveQueryInfo queryInfo = new GeoWaveQueryInfo();\n script.childrenAccept(this, queryInfo);\n return queryInfo;\n }", "class_method_signature": "GeoWaveQueryInfoVisitor.parseGeoWaveQueryInfo(JexlNode script)", ...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_975
{ "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 testUserAuthsFirstInMergedSet() {\n HashSet<Authorizations> mergedAuths = AuthorizationsUtil.getDowngradedAuthorizations(methodAuths, principal);\n assertEquals(3, mergedAuths.size());\n assertEquals(\"Merged user authorizations were not first in the return set\"...
{ "fields": [], "file": "web-services/common-util/src/main/java/datawave/security/util/AuthorizationsUtil.java", "identifier": "AuthorizationsUtil", "interfaces": "", "methods": [ { "class_method_signature": "AuthorizationsUtil.union(Iterable<byte[]> authorizations1, Iterable<byte[]> authorizations2...
{ "body": "public static Set<Authorizations> getDowngradedAuthorizations(String requestedAuths, Principal principal) {\n if (principal instanceof DatawavePrincipal) {\n return getDowngradedAuthorizations(requestedAuths, (DatawavePrincipal) principal);\n } else {\n return Collection...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_830
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/index/lookup/IndexMatchTest.java", "identifier": "IndexMatchTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testSetOfIndexMatches() {\n JexlNode node = JexlNodeFactory.buildEQNode(\"FOO\", \"bar\");\n JexlNode otherNode = JexlNodeFactory.buildEQNode(\"FOO2\", \"bar2\");\n \n IndexMatch match1 = new IndexMatch(\"uid0\");\n IndexMatch match2 = new IndexMatc...
{ "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": "public void add(JexlNode node) {\n nodeSet.add(node);\n }", "class_method_signature": "IndexMatch.add(JexlNode node)", "constructor": false, "full_signature": "public void add(JexlNode node)", "identifier": "add", "invocations": [ "add" ], "modifiers": "public", "parameters": ...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_563
{ "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_buildDocNotKeep() throws IOException {\n Document doc = new Document();\n AttributeFactory attributeFactory = new AttributeFactory(new TypeMetadata());\n \n TreeMap<Key,Value> treeMap = Maps.newTreeMap();\n treeMap.put(getTF(\"123\", \"FIELD1\...
{ "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_133
{ "fields": [ { "declarator": "conf = null", "modifier": "private", "original_string": "private Configuration conf = null;", "type": "Configuration", "var_name": "conf" }, { "declarator": "ctx = null", "modifier": "private", "original_string": "private TaskA...
{ "body": "@Test\n public void testHandlerListNormalizedAlphanumWithSpace() throws Exception {\n \n ctx.getConfiguration().set(\"test\" + \".\" + ALPHANUM_LIST + BaseIngestHelper.FIELD_TYPE, LcNoDiacriticsType.class.getName());\n ctx.getConfiguration().set(\"test\" + \".\" + ContentBaseIngestH...
{ "fields": [ { "declarator": "log = Logger.getLogger(ContentIndexingColumnBasedHandler.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(ContentIndexingColumnBasedHandler.class);", "type": "Logger", "var_name": "log" ...
{ "body": "@Override\n public void setup(TaskAttemptContext context) {\n super.setup(context);\n contentHelper = getContentIndexingDataTypeHelper();\n tokenFieldNameSuffix = contentHelper.getTokenFieldNameDesignator();\n Preconditions.checkNotNull(tokenFieldNameSuffix);\n \n ...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_96
{ "fields": [ { "declarator": "COLUMN_FAMILY = new Text(\"yuuuup\")", "modifier": "public static final", "original_string": "public static final Text COLUMN_FAMILY = new Text(\"yuuuup\");", "type": "Text", "var_name": "COLUMN_FAMILY" }, { "declarator": "date = \"2014040...
{ "body": "@Test\n public void testAssignments() {\n MetadataCounterGroup counters = new MetadataCounterGroup(COLUMN_FAMILY);\n counters.addToCount(1, dataType, fieldName, date);\n MetadataCounterGroup.CountAndKeyComponents entry = getOnlyEntry(counters);\n Assert.assertEquals(dataType,...
{ "fields": [ { "declarator": "log = Logger.getLogger(MetadataCounterGroup.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(MetadataCounterGroup.class);", "type": "Logger", "var_name": "log" }, { "declar...
{ "body": "public void addToCount(long countDelta, String dataType, String rowId, String date) {\n String hashMapKey = createKey(dataType, rowId, date);\n CountAndKeyComponents value = counts.get(hashMapKey);\n if (null == value) {\n counts.put(hashMapKey, new CountAndKeyComponents(dat...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_1014
{ "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(expected = IllegalArgumentException.class)\n public void testKeyWithTooManyPartsInColQualifier() throws Exception {\n Key keyTooManyParts = new Key(MODEL_FIELD_NAME, MODEL_NAME, FIELD_NAME + ModelKeyParser.NULL_BYTE + FORWARD.getValue() + ModelKeyParser.NULL_BYTE\n + ...
{ "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 FieldMapping parseKey(Key key, Set<Authorizations> auths) {\n FieldMapping mapping = new FieldMapping();\n String row = key.getRow().toString();\n String[] colf = key.getColumnFamily().toString().split(NULL_BYTE);\n String[] colq = key.getColumnQualifier().toString...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_79
{ "fields": [ { "declarator": "logger = Logger.getLogger(MetadataTableConfigHelperTest.class)", "modifier": "private static final", "original_string": "private static final Logger logger = Logger.getLogger(MetadataTableConfigHelperTest.class);", "type": "Logger", "var_name": "logger"...
{ "body": "@Test\n public void testSetupOneShardTableDefinedInConfigurationButNotTableNameParameter() {\n \n MetadataTableConfigHelperTest.logger.info(\"MetadataTableConfigHelperTest.testSetupNothingDefinedInConfiguration called.\");\n \n try {\n \n WrappedMetadata...
{ "fields": [ { "declarator": "log", "modifier": "protected", "original_string": "protected Logger log;", "type": "Logger", "var_name": "log" }, { "declarator": "conf", "modifier": "protected", "original_string": "protected Configuration conf;", "type"...
{ "body": "@Override\n public void setup(String tableName, Configuration config, Logger log) throws IllegalArgumentException {\n \n this.log = log;\n this.conf = config;\n this.tableName = conf.get(ShardedDataTypeHandler.METADATA_TABLE_NAME, null);\n \n if (this.tableName ...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_848
{ "fields": [ { "declarator": "handler", "modifier": "private", "original_string": "private SimpleQueryGeometryHandler handler;", "type": "SimpleQueryGeometryHandler", "var_name": "handler" }, { "declarator": "commonId", "modifier": "private", "original_stri...
{ "body": "@Test\n public void multipleQueryMetricsTest() {\n List<QueryMetric> queryMetrics = new ArrayList<>();\n \n // Valid query, Lucene syntax QueryMetric\n QueryMetric qm = new QueryMetric();\n qm.setQueryId(commonId);\n qm.setQuery(\"#COVERS(field1, 'POINT(1 1)')\"...
{ "fields": [ { "declarator": "log = ThreadConfigurableLogger.getLogger(ShardTableQueryMetricHandler.class)", "modifier": "private static final", "original_string": "private static final Logger log = ThreadConfigurableLogger.getLogger(ShardTableQueryMetricHandler.class);", "type": "Logger"...
{ "body": "@Override\n public QueryGeometryResponse getQueryGeometryResponse(String id, List<? extends BaseQueryMetric> metrics) {\n QueryGeometryResponse response = new QueryGeometryResponse(id, basemaps);\n \n if (metrics != null) {\n Set<QueryGeometry> queryGeometries = new Linke...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_798
{ "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 testEqualityUidOverlap() {\n uids2.add(new IndexMatch(\"a.b.c\", node1));\n uids2.add(new IndexMatch(\"a.b.c.1\", node1));\n uids1.add(new IndexMatch(\"a.b.c.1\", node2));\n uids1.add(new IndexMatch(\"a.b.c\", node2));\n \n Set<IndexMatch> re...
{ "fields": [], "file": "warehouse/query-core/src/main/java/datawave/query/ancestor/AncestorUidIntersector.java", "identifier": "AncestorUidIntersector", "interfaces": "implements UidIntersector", "methods": [ { "class_method_signature": "AncestorUidIntersector.intersect(Set<IndexMatch> uids1, Set<I...
{ "body": "@Override\n public Set<IndexMatch> intersect(Set<IndexMatch> uids1, Set<IndexMatch> uids2, List<JexlNode> delayedNodes) {\n /*\n * C) Both are small, so we have an easy case where we can prune much of this sub query. Must propagate delayed nodes, though.\n */\n \n //...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_262
{ "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 testOr() throws ParseException {\n ASTJexlScript query = JexlASTHelper.parseJexlQuery(\"!(F1 == 'v1' || F2 == 'v2')\");\n visitor.visit(query, null);\n Assert.assertEquals(\"((!(F1 == 'v1') && !(F2 == 'v2')))\", JexlStringBuildingVisitor.buildQuery(query));\n ...
{ "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_632
{ "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_fiTest() {\n expect(mockScript.jjtGetNumChildren()).andReturn(0).anyTimes();\n expect(mockScript.jjtAccept(isA(EventDataQueryExpressionVisitor.class), eq(\"\"))).andReturn(null);\n \n replayAll();\n \n // expected key structur...
{ "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_327
{ "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 testArbitraryNodeExpansionFlatten() throws Exception {\n ASTJexlScript queryTree = JexlASTHelper\n .parseJexlQuery(\"UUID == 'capone' && (filter:includeRegex(QUOTE,'.*kind.*') || QUOTE == 'kind' || BIRTH_DATE == '123')\");\n ShardQueryConfiguratio...
{ "fields": [ { "declarator": "log = Logger.getLogger(ExecutableExpansionVisitor.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(ExecutableExpansionVisitor.class);", "type": "Logger", "var_name": "log" }, { ...
{ "body": "@Override\n public Object visit(ASTJexlScript node, Object data) {\n // no reason to go any further if the query is executable because that means there couldn't be a problem\n boolean executable = ExecutableDeterminationVisitor.isExecutable(node, config, helper);\n if (!executable) ...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_777
{ "fields": [ { "declarator": "equality = new TLDEquality()", "modifier": "private", "original_string": "private TLDEquality equality = new TLDEquality();", "type": "TLDEquality", "var_name": "equality" } ], "file": "warehouse/query-core/src/test/java/datawave/query/function/...
{ "body": "@Test\n public void testKeysOfDifferentDepths() {\n Key docKey = new Key(\"row\", \"parent.document.id\");\n Key otherKey = new Key(\"row\", \"parent.document.id.child\");\n assertFalse(equality.partOf(docKey, otherKey));\n assertFalse(equality.partOf(otherKey, docKey));\n ...
{ "fields": [], "file": "warehouse/query-core/src/main/java/datawave/query/function/TLDEquality.java", "identifier": "TLDEquality", "interfaces": "implements Equality", "methods": [ { "class_method_signature": "TLDEquality.partOf(Key key, Key other)", "constructor": false, "full_signatur...
{ "body": "@Override\n public boolean partOf(Key key, Key other) {\n ByteSequence docCF = TLD.estimateRootPointerFromId(key.getColumnFamilyData());\n ByteSequence otherCF = TLD.estimateRootPointerFromId(other.getColumnFamilyData());\n return otherCF.equals(docCF);\n }", "class_method_sign...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_409
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/jexl/visitors/RootNegationCheckVisitorTest.java", "identifier": "RootNegationCheckVisitorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testNegatedAnd() throws ParseException {\n ASTJexlScript script = JexlASTHelper.parseJexlQuery(\"!(FOO == 'bar' && FOO == 'baz')\");\n Assert.assertTrue(RootNegationCheckVisitor.hasTopLevelNegation(script));\n }", "class_method_signature": "RootNegationCheckVisitor...
{ "fields": [], "file": "warehouse/query-core/src/main/java/datawave/query/jexl/visitors/RootNegationCheckVisitor.java", "identifier": "RootNegationCheckVisitor", "interfaces": "", "methods": [ { "class_method_signature": "RootNegationCheckVisitor.hasTopLevelNegation(JexlNode script)", "constr...
{ "body": "public static Boolean hasTopLevelNegation(JexlNode script) {\n RootNegationCheckVisitor visitor = new RootNegationCheckVisitor();\n \n // ensure all negations are pushed down\n JexlNode pushedDownTree = PushdownNegationVisitor.pushdownNegations(script);\n return !visitor....
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_665
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/composite/CompositeUtilsTest.java", "identifier": "CompositeUtilsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test(expected = RuntimeException.class)\n public void decrementMinString() {\n StringBuilder builder = new StringBuilder();\n for (int i = 0; i < 10; i++)\n builder.appendCodePoint(Character.MIN_CODE_POINT);\n \n String minString = builder.toString();\n \n ...
{ "fields": [ { "declarator": "log = Logger.getLogger(CompositeUtils.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(CompositeUtils.class);", "type": "Logger", "var_name": "log" }, { "declarator": "ALL_...
{ "body": "public static String decrementBound(String orig) {\n // decrement string\n int[] codePoints = orig.codePoints().toArray();\n int length = codePoints.length;\n int lastCodePoint = codePoints[length - 1];\n while (lastCodePoint == Character.MIN_CODE_POINT) {\n if...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_235
{ "fields": [], "file": "warehouse/common/src/test/java/datawave/common/io/FilesTest.java", "identifier": "FilesTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testCheckFileIsNotDirectory() throws Exception {\n File file = mock(File.class);\n expect(file.exists()).andReturn(true);\n expect(file.isDirectory()).andReturn(true);\n replay(file);\n String err = Files.checkFile(file, true);\n assertEquals...
{ "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 checkFile(final File file, final boolean checkWrite) {\n if (file == null)\n throw new IllegalArgumentException(NULL_PARAMS);\n \n if (!file.exists())\n return String.format(FILE_NO_EXIST, file);\n if (file.isDirectory())\n r...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_720
{ "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 orAbleFieldtest() throws Exception {\n Query query = new QueryImpl();\n query.setQuery(\"SOURCE == 'sourceValue' AND SINK == 'targetValue' AND TYPE == 'TEST1' AND RELATION == 'REL1-REL2' AND ATTRIBUTE1 == 'SOURCE1-SOURCE2' AND ...
{ "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_370
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/jexl/visitors/IteratorBuildingVisitorTest.java", "identifier": "IteratorBuildingVisitorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test(expected = DatawaveFatalQueryException.class)\n public void visitNeNode_nullValueIndexOnlyTest() throws ParseException {\n ASTJexlScript query = JexlASTHelper.parseJexlQuery(\"FOO == 'bar' && FIELD != null\");\n \n IteratorBuildingVisitor visitor = getDefault();\n visit...
{ "fields": [ { "declarator": "log = Logger.getLogger(IteratorBuildingVisitor.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(IteratorBuildingVisitor.class);", "type": "Logger", "var_name": "log" }, { "...
{ "body": "public IteratorBuildingVisitor setIndexOnlyFields(Set<String> indexOnlyFields) {\n this.indexOnlyFields = (indexOnlyFields == null ? Collections.emptySet() : indexOnlyFields);\n return this;\n }", "class_method_signature": "IteratorBuildingVisitor.setIndexOnlyFields(Set<String> indexOnly...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_56
{ "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 testTransformKey() {\n // key should only be in bloom filter if it contains both the field name (cf) and field value (row)\n org.apache.accumulo.core.data.Key cbKey = new org.apache.accumulo.core.data.Key();\n Assert.assertEquals(\"empty key should not be in bloo...
{ "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" } ], "file": "warehouse/ingest-core/src/main/java/datawave/i...
{ "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 row is the field value\n ByteSequence row = cbKey.getRowData();\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_809
{ "fields": [ { "declarator": "queryNode = null", "modifier": "private", "original_string": "private JexlNode queryNode = null;", "type": "JexlNode", "var_name": "queryNode" }, { "declarator": "config", "modifier": "private", "original_string": "private Shar...
{ "body": "@Test\n public void testGenerateDocumentRanges() {\n String shard = \"20190314_0\";\n Set<String> docIds = Sets.newHashSet(\"docId0\", \"docId1\", \"docId2\");\n IndexInfo indexInfo = new IndexInfo(docIds);\n indexInfo.applyNode(queryNode);\n \n // Build expecte...
{ "fields": [ { "declarator": "log = Logger.getLogger(TupleToRange.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(TupleToRange.class);", "type": "Logger", "var_name": "log" }, { "declarator": "currentS...
{ "body": "public static Iterator<QueryPlan> createDocumentRanges(JexlNode queryNode, String shard, IndexInfo indexMatches, boolean isTldQuery) {\n List<QueryPlan> ranges = Lists.newArrayListWithCapacity(indexMatches.uids().size());\n \n for (IndexMatch indexMatch : indexMatches.uids()) {\n ...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_223
{ "fields": [ { "declarator": "PRINT_GENERATED_KEYS_ONLY_ON_FAIL = true", "modifier": "private static final", "original_string": "private static final boolean PRINT_GENERATED_KEYS_ONLY_ON_FAIL = true;", "type": "boolean", "var_name": "PRINT_GENERATED_KEYS_ONLY_ON_FAIL" }, { ...
{ "body": "@Test\n public void testJsonContentHandlers() throws Exception {\n conf.addResource(ClassLoader.getSystemResource(\"config/ingest/all-config.xml\"));\n conf.addResource(ClassLoader.getSystemResource(\"config/ingest/tvmaze-ingest-config.xml\"));\n conf.addResource(ClassLoader.getSyst...
{ "fields": [], "file": "warehouse/ingest-json/src/main/java/datawave/ingest/json/mr/handler/ContentJsonColumnBasedHandler.java", "identifier": "ContentJsonColumnBasedHandler", "interfaces": "", "methods": [ { "class_method_signature": "ContentJsonColumnBasedHandler.setup(TaskAttemptContext context)...
{ "body": "@Override\n public void setup(TaskAttemptContext context) {\n super.setup(context);\n }", "class_method_signature": "ContentJsonColumnBasedHandler.setup(TaskAttemptContext context)", "constructor": false, "full_signature": "@Override public void setup(TaskAttemptContext context)", "ide...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_389
{ "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 anotherFunctionMapping() throws ParseException {\n ASTJexlScript script = JexlASTHelper.parseJexlQuery(\"filter:isNull(FOO)\");\n ASTJexlScript expectedScript = JexlASTHelper.parseJexlQuery(\"filter:isNull(BAR1||BAR2)\");\n ASTJexlScript actualScript = QueryModel...
{ "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_673
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/iterator/QueryIteratorTest.java", "identifier": "QueryIteratorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testIsDocumentSpecificRange_withRebuiltShardRange() {\n Key start = new Key(\"20190314_0\", \"dataType\\0doc0\");\n Key end = new Key(\"20190314_0\\u0000\");\n Range range = new Range(start, false, end, false);\n assertFalse(QueryIterator.isDocumentSpecifi...
{ "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 boolean isDocumentSpecificRange(Range r) {\n Preconditions.checkNotNull(r);\n \n // Also @see datawave.query.index.lookup.TupleToRange\n // We have already made the assertion that the client is sending us\n // an inclusive start key due to the inability to a...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_40
{ "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_FilterSizeBasedPruning() throws Exception {\n // Create test input\n final NormalizedContentInterface nci = new NormalizedFieldAndValue(\"TEST\", \"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\");\n \n // Calculate the expected number ...
{ "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_366
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/jexl/visitors/TreeFlatteningRebuildingVisitorTest.java", "identifier": "TreeFlatteningRebuildingVisitorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void multipleNestingMixedOpsTest() throws Exception {\n String query = \"((a && (b && ((c1 || (c2 || c3)) && d))) || b || (c || d || e || (f || g || ((h1 && (h2 && h3)) || i || (((j || k)))))))\";\n String expected = \"((a && b && (c1 || c2 || c3) && d) || b || c || d || e |...
{ "fields": [ { "declarator": "treeFlatteningRebuilder", "modifier": "final private", "original_string": "final private TreeFlatteningRebuilder treeFlatteningRebuilder;", "type": "TreeFlatteningRebuilder", "var_name": "treeFlatteningRebuilder" } ], "file": "warehouse/query-co...
{ "body": "@SuppressWarnings(\"unchecked\")\n public static <T extends JexlNode> T flatten(T node) {\n return TreeFlatteningRebuilder.flatten(node);\n }", "class_method_signature": "TreeFlatteningRebuildingVisitor.flatten(T node)", "constructor": false, "full_signature": "@SuppressWarnings(\"unchec...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_736
{ "fields": [ { "declarator": "parser", "modifier": "private", "original_string": "private LuceneToJexlControlledQueryParser parser;", "type": "LuceneToJexlControlledQueryParser", "var_name": "parser" } ], "file": "warehouse/query-core/src/test/java/datawave/query/language/pa...
{ "body": "@Test\n public void testExcludedValues() throws ParseException {\n parser = new LuceneToJexlControlledQueryParser();\n Set<String> allowedFields = new HashSet<>();\n allowedFields.add(\"FIELD1\");\n allowedFields.add(\"FIELD2\");\n allowedFields.add(\"FIELD3\");\n ...
{ "fields": [ { "declarator": "includedValues = new HashMap<>()", "modifier": "private", "original_string": "private Map<String,Set<String>> includedValues = new HashMap<>();", "type": "Map<String,Set<String>>", "var_name": "includedValues" }, { "declarator": "excludedV...
{ "body": "@Override\n public void setExcludedValues(Map<String,Set<String>> excludedValues) {\n this.excludedValues = excludedValues;\n }", "class_method_signature": "LuceneToJexlControlledQueryParser.setExcludedValues(Map<String,Set<String>> excludedValues)", "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_448
{ "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 testAndNullSameFieldRegex() throws Exception {\n String originalQuery = \"FOO =~ 'a.*' && FOO == null\";\n ASTJexlScript script = JexlASTHelper.parseJexlQuery(originalQuery);\n final Map<String,ExpressionFilter> filter = EventDataQueryExpressionVisitor.getExpress...
{ "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_624
{ "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 testFirst() {\n byte[] expected = data[sortedOrder[0]];\n byte[] value = set.first();\n assertTrue(Arrays.equals(expected, value));\n }", "class_method_signature": "BufferedFileBackedSortedSetTest.testFirst()", "constructor": false, "full_signature": "@T...
{ "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 first() {\n return set.first();\n }", "class_method_signature": "BufferedFileBackedSortedSet.first()", "constructor": false, "full_signature": "@Override public E first()", "identifier": "first", "invocations": [ "first" ], "modifiers": "@Override public"...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_274
{ "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 testBoundedRangeNoPropagation() throws ParseException {\n ASTJexlScript query = JexlASTHelper.parseJexlQuery(\"F3 == 'v3' || !(F1 >= 'v1' && F1 <= 'v2')\");\n JexlNode result = PushdownNegationVisitor.pushdownNegations(query);\n Assert.assertEquals(\"F3 == 'v3' |...
{ "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_761
{ "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 testMultiWordPhraseCompatability() throws ParseException {\n LuceneQueryParser luceneParser = new LuceneQueryParser();\n \n Assert.assertEquals(\"alpha beta\", luceneParser.parse(\"alpha\\\\ beta\").getContents());\n Assert.assertEquals(\"alpha beta\", luc...
{ "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_331
{ "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 testExceededOrThresholdExpansion() throws Exception {\n ASTJexlScript queryTree = JexlASTHelper\n .parseJexlQuery(\"UUID == 'capone' && (filter:includeRegex(QUOTE,'.*kind.*') || QUOTE == 'kind' || BIRTH_DATE == '123')\");\n \n // update the...
{ "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_17
{ "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 testDateFolderDistributor() throws Exception {\n log.info(\"----- testDateFolderDistributor -----\");\n File f = setUpFlagDir();\n // 5 days, 5 files each day, two folders in fmc = 50 flags\n createTestFiles(5, 5);\n createBogusTestFiles(5, 5);\n ...
{ "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_825
{ "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 testAndOneFieldIndexed() throws Exception {\n String originalQuery = \"(FOO == 'bag' && TACO == 'ba')\";\n ASTJexlScript script = JexlASTHelper.parseJexlQuery(originalQuery);\n \n config.setBeginDate(new Date(0));\n config.setEndDate(new Date(System...
{ "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_126
{ "fields": [], "file": "warehouse/ingest-core/src/test/java/datawave/ingest/mapreduce/handler/shard/content/TermAndZoneTest.java", "identifier": "TermAndZoneTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testCompare() {\n \n String token = \"Hello:World\";\n String lessZonetoken = \"Hello:world\";\n String greaterZonetoken = \"Hello:WORLD\";\n String lessTermToken = \"term:World\";\n String greaterTermToken = \"Ello:World\";\n \n ...
{ "fields": [ { "declarator": "serialVersionUID = -5948574921922307149L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -5948574921922307149L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "zon...
{ "body": "@Override\n public int compareTo(TermAndZone o) {\n int comparison = this.zone.compareTo(o.zone);\n if (comparison == 0) {\n comparison = this.term.compareTo(o.term);\n }\n return comparison;\n }", "class_method_signature": "TermAndZone.compareTo(TermAndZone o...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_576
{ "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_simpleSuccessDistance1Test() {\n List<List<TermWeightPosition>> offsets = new ArrayList<>();\n List<TermWeightPosition> offsetsA = asList(1);\n List<TermWeightPosition> offsetsB = asList(2);\n List<TermWeightPosition> offsetsC = asList(3);\n ...
{ "fields": [ { "declarator": "log = Logger.getLogger(ContentOrderedEvaluator.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(ContentOrderedEvaluator.class);", "type": "Logger", "var_name": "log" }, { "...
{ "body": "@Override\n protected boolean evaluate(List<List<TermWeightPosition>> offsets) {\n if (offsets.isEmpty() || offsets.size() < terms.length) {\n return false;\n }\n \n NavigableSet<EvaluateTermPosition> termPositions = new TreeSet<>();\n int direction = FORWAR...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_599
{ "fields": [ { "declarator": "transformer", "modifier": "private", "original_string": "private DocumentTransformer transformer;", "type": "DocumentTransformer", "var_name": "transformer" }, { "declarator": "mockLogic", "modifier": "@Mock\n private", "ori...
{ "body": "@Test\n public void transform_primaryMatchSetTest() throws MarkingFunctions.Exception {\n Key key = new Key(\"shard\", \"dataType\" + Constants.NULL + \"uid\");\n Value value = new Value();\n AbstractMap.SimpleEntry<Key,Value> entry = new AbstractMap.SimpleEntry<>(key, value);\n ...
{ "fields": [ { "declarator": "log = Logger.getLogger(DocumentTransformerSupport.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(DocumentTransformerSupport.class);", "type": "Logger", "var_name": "log" } ], "...
{ "body": "@Override\n public EventBase transform(Entry<Key,Value> entry) throws EmptyObjectException {\n \n Entry<Key,Document> documentEntry = deserializer.apply(entry);\n for (DocumentTransform transform : transforms) {\n if (documentEntry != null) {\n documentEntr...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_433
{ "fields": [ { "declarator": "visitor = new BooleanOptimizationRebuildingVisitor()", "modifier": "private", "original_string": "private BooleanOptimizationRebuildingVisitor visitor = new BooleanOptimizationRebuildingVisitor();", "type": "BooleanOptimizationRebuildingVisitor", "var_n...
{ "body": "@Test\n public void testDisjunctionWithFlatten() throws ParseException {\n String original = \"a || b || c\";\n optimize(original, original, true, true);\n }", "class_method_signature": "BooleanOptimizationRebuildingVisitorTest.testDisjunctionWithFlatten()", "constructor": false, ...
{ "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_960
{ "fields": [], "file": "web-services/common-util/src/test/java/datawave/security/util/DnUtilsTest.java", "identifier": "DnUtilsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testBuildNormalizedDN() {\n Collection<String> expected = Lists.newArrayList(\"sdn\", \"idn\");\n Collection<String> actual = DnUtils.buildNormalizedDNList(\"SDN\", \"IDN\", null, null);\n assertEquals(expected, actual);\n \n expected = Lists.newArr...
{ "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_1001
{ "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 testForwardKeyParse() throws Exception {\n FieldMapping mapping = ModelKeyParser.parseKey(FORWARD_KEY, AUTHS);\n Assert.assertEquals(FORWARD_FIELD_MAPPING, mapping);\n \n // Test ForwardKeyParse with no datatype\n FORWARD_FIELD_MAPPING.setDatatype(n...
{ "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 FieldMapping parseKey(Key key, Set<Authorizations> auths) {\n FieldMapping mapping = new FieldMapping();\n String row = key.getRow().toString();\n String[] colf = key.getColumnFamily().toString().split(NULL_BYTE);\n String[] colq = key.getColumnQualifier().toString...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_83
{ "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 testMerge2() throws Exception {\n agg.reset();\n Set<Integer> shards = new HashSet<>();\n for (int i = 0; i <= 20; i++) {\n shards.add(i);\n shards.add(i * 5);\n shards.add(i * 7);\n }\n Collection<Value> values = Li...
{ "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_521
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/jexl/visitors/RewriteNegationsVisitorTest.java", "identifier": "RewriteNegationsVisitorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testSingleGT() throws ParseException {\n String queryString = \"FOO > BAR\";\n String expectedQuery = \"FOO > BAR\";\n ASTJexlScript script = JexlASTHelper.parseJexlQuery(queryString);\n ASTJexlScript negatedScript = RewriteNegationsVisitor.rewrite(script)...
{ "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_171
{ "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(expected = IllegalArgumentException.class)\n public void testDoesntLikeEmptyList() throws Exception {\n conf.set(DelegatingPartitioner.TABLE_NAMES_WITH_CUSTOM_PARTITIONERS, \"\");\n manager.setConf(conf);\n }", "class_method_signature": "DelegatingPartitionerTest.testDoesntLikeE...
{ "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": "@Override\n public void setConf(Configuration conf) {\n this.conf = conf;\n this.partitionerCache = new PartitionerCache(conf);\n \n try {\n createDelegatesForTables();\n } catch (ClassNotFoundException e) {\n log.error(e);\n // the val...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_872
{ "fields": [], "file": "warehouse/core/src/test/java/datawave/data/hash/UIDTest.java", "identifier": "UIDTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testEquality() {\n long timestamp = 1449585658444L;\n SnowflakeUIDBuilder builder = SnowflakeUID.builder(timestamp, 1, 1, 1);\n \n HashUID uid1 = new HashUID(\"test\".getBytes(), new Date(timestamp));\n SnowflakeUID uid2 = builder.newId();\n ...
{ "fields": [ { "declarator": "LOGGER = Logger.getLogger(UID.class)", "modifier": "private static final", "original_string": "private static final Logger LOGGER = Logger.getLogger(UID.class);", "type": "Logger", "var_name": "LOGGER" }, { "declarator": "EMPTY_EXTRAS = {}...
{ "body": "public static UIDBuilder<UID> builder() {\n return HashUID.builder();\n }", "class_method_signature": "UID.builder()", "constructor": false, "full_signature": "public static UIDBuilder<UID> builder()", "identifier": "builder", "invocations": [ "builder" ], "modifiers": "public s...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_937
{ "fields": [ { "declarator": "settings = new QueryImpl()", "modifier": "private final", "original_string": "private final QueryImpl settings = new QueryImpl();", "type": "QueryImpl", "var_name": "settings" }, { "declarator": "connectionPriority = AccumuloConnectionFact...
{ "body": "@Test(expected = IllegalArgumentException.class)\n public void testConstructorShouldNotMergeAuths() throws Exception {\n // setup\n Connector connector = null;\n methodAuths = \"A,B,C\";\n \n // expected merged auths\n String[] auths = new String[2];\n au...
{ "fields": [ { "declarator": "serialVersionUID = 1L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = 1L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "log = Logger.getLogger(RunningQuery.class...
{ "body": "protected Set<Authorizations> getCalculatedAuths() {\n return calculatedAuths;\n }", "class_method_signature": "RunningQuery.getCalculatedAuths()", "constructor": false, "full_signature": "protected Set<Authorizations> getCalculatedAuths()", "identifier": "getCalculatedAuths", "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_464
{ "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 testGroupingFunctionAtomValuesMatch() throws Exception {\n String originalQuery = \"grouping:atomValuesMatch(FOO, BAR)\";\n ASTJexlScript script = JexlASTHelper.parseJexlQuery(originalQuery);\n final Map<String,ExpressionFilter> filter = EventDataQueryExpressionV...
{ "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_1056
{ "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 testColumnThatNeedEscapingInGroupByWithBackTicks() throws Exception {\n String sql = crq.generateSql(\"v\", \"foo.bar\", null, \"`foo.bar`\", null, \"me\", null);\n Assert.assertEquals(\"SELECT \" + fixedColumns + \",`foo.bar` FROM v WHERE _user_ = 'me' GROUP BY `foo.ba...
{ "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_258
{ "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 testTripleNestedNegationEq() throws ParseException {\n ASTJexlScript query = JexlASTHelper.parseJexlQuery(\"!(!(!(F1 == 'v1')))\");\n visitor.visit(query, null);\n Assert.assertEquals(\"((!(F1 == 'v1')))\", JexlStringBuildingVisitor.buildQuery(query));\n }", ...
{ "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_608
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/util/GeoWaveUtilsTest.java", "identifier": "GeoWaveUtilsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void decodeTierTest() {\n // String\n Assert.assertEquals(1, GeoWaveUtils.decodeTier(\"0101\"));\n \n // ByteArrayId\n Assert.assertEquals(31, GeoWaveUtils.decodeTier(GeoWaveUtils.createByteArray(31, 0)));\n }", "class_method_signature": "GeoWaveUti...
{ "fields": [], "file": "warehouse/query-core/src/main/java/datawave/query/util/GeoWaveUtils.java", "identifier": "GeoWaveUtils", "interfaces": "", "methods": [ { "class_method_signature": "GeoWaveUtils.initLongBuffer(ByteBuffer longBuffer)", "constructor": false, "full_signature": "priv...
{ "body": "public static int decodeTier(String geohash) {\n return Integer.parseInt(geohash.substring(0, 2), 16);\n }", "class_method_signature": "GeoWaveUtils.decodeTier(String geohash)", "constructor": false, "full_signature": "public static int decodeTier(String geohash)", "identifier": "decodeTi...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_864
{ "fields": [ { "declarator": "builder", "modifier": "", "original_string": "UIDBuilder<UID> builder;", "type": "UIDBuilder<UID>", "var_name": "builder" }, { "declarator": "data = \"20100901: the quick brown fox jumped over the lazy dog\"", "modifier": "private", ...
{ "body": "@Test\n public void testEquals() {\n long timestamp = 1449585658444L;\n String uidString = builder.newId(new Date(timestamp)).toString();\n UID a = SnowflakeUID.parse(uidString);\n UID b = SnowflakeUID.parse(uidString);\n assertTrue(a.equals(b));\n assertTrue(b....
{ "fields": [ { "declarator": "serialVersionUID = 1856715886248436235L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = 1856715886248436235L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "TOO_B...
{ "body": "@Override\n public boolean equals(final Object other) {\n if (!(other instanceof SnowflakeUID)) {\n return false;\n }\n \n if (other == this) {\n return true;\n }\n \n return compareTo((UID) other) == 0;\n }", "class_method_sign...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_167
{ "fields": [], "file": "warehouse/ingest-core/src/test/java/datawave/ingest/mapreduce/job/BulkIngestKeyTest.java", "identifier": "BulkIngestKeyTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testBinaryKeyComparison() throws IOException {\n Text tableName = new Text(\"testTable\");\n Key key = new Key(new Text(\"row\\0key\"), new Text(\"e\"), new Text(\"col\\0qual\\0data\"), new Text(\"sample\\0col\\0vis\"));\n key.setDeleted(true);\n BulkInges...
{ "fields": [ { "declarator": "tableName = null", "modifier": "protected", "original_string": "protected Text tableName = null;", "type": "Text", "var_name": "tableName" }, { "declarator": "key = new Key()", "modifier": "protected", "original_string": "prote...
{ "body": "@Override\n public void write(DataOutput out) throws IOException {\n writeText(out, tableName);\n // reuse a text object for writing\n Text t = new Text();\n writeText(out, key.getRow(t));\n writeText(out, key.getColumnFamily(t));\n writeText(out, key.getColumnQ...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_537
{ "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 parse1LeadingBackslashRegex() throws Exception {\n String query = \"CITY =~ '\\\\\\\\city'\";\n JexlNode node = JexlASTHelper.parseJexlQuery(query);\n String interpretedQuery = JexlStringBuildingVisitor.buildQuery(node);\n Assert.assertEquals(query, interp...
{ "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_188
{ "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 testRFileEntrySizeLimit() throws IOException, InterruptedException, AccumuloSecurityException, AccumuloException, URISyntaxException {\n MultiRFileOutputFormatter.setRFileLimits(conf, 1, 0);\n RecordWriter<BulkIngestKey,Value> writer = createWriter(formatter, conf);\n ...
{ "fields": [ { "declarator": "log = Logger.getLogger(MultiRFileOutputFormatter.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(MultiRFileOutputFormatter.class);", "type": "Logger", "var_name": "log" }, { ...
{ "body": "public static void setRFileLimits(Configuration conf, int maxEntries, long maxSize) {\n conf.setInt(MAX_RFILE_UNDEDUPPED_ENTRIES, maxEntries);\n conf.setLong(MAX_RFILE_UNCOMPRESSED_SIZE, maxSize);\n }", "class_method_signature": "MultiRFileOutputFormatter.setRFileLimits(Configuration con...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_472
{ "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 testClonesInThreads() throws Exception {\n final Set<Object> exceptions = Collections.synchronizedSet(new HashSet<>());\n \n Thread[] threads = new Thread[256];\n String originalQuery = \"FOO =~ 'a.*' && FOO == null\";\n ASTJexlScript script = JexlA...
{ "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_7
{ "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 testFlagMakerConfigWithFlagFileDirectoryOverride() throws JAXBException, IOException {\n log.info(\"----- testFlagMakerConfigWithFlagFileDirectoryOverride -----\");\n final String overrideValue = \"/srv/data/somewhere/else/\";\n FlagMakerConfig flagMakerConfig ...
{ "fields": [ { "declarator": "cc = new GzipCodec()", "modifier": "private static final", "original_string": "private static final CompressionCodec cc = new GzipCodec();", "type": "CompressionCodec", "var_name": "cc" }, { "declarator": "ct = CompressionType.BLOCK", ...
{ "body": "static FlagMakerConfig getFlagMakerConfig(String[] args) throws JAXBException, IOException {\n String flagConfig = null;\n String baseHDFSDirOverride = null;\n String extraIngestArgsOverride = null;\n String flagFileDirectoryOverride = null;\n String flagMakerClass = null...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_921
{ "fields": [ { "declarator": "TYPE1 = \"/type1-config.xml\"", "modifier": "private static final", "original_string": "private static final String TYPE1 = \"/type1-config.xml\";", "type": "String", "var_name": "TYPE1" }, { "declarator": "TYPE2 = \"/type2-config.xml\"", ...
{ "body": "@Test\n public void shouldDetectSameSettings() {\n CompareResult result = compare.run(type1Conf, type2Conf);\n assertTrue(result.getSame().contains(\"file.input.format\"));\n assertTrue(result.getSame().contains(\"handler.classes\"));\n }", "class_method_signature": "DataTypeCo...
{ "fields": [ { "declarator": "PREFIX = \"data.name\"", "modifier": "public static final", "original_string": "public static final String PREFIX = \"data.name\";", "type": "String", "var_name": "PREFIX" } ], "file": "warehouse/ops-tools/config-compare/src/main/java/datawave/c...
{ "body": "public CompareResult run(Configuration left, Configuration right) {\n SortedSet<String> same = new TreeSet<>();\n SortedSet<String> diff = new TreeSet<>();\n SortedSet<String> leftOnly = new TreeSet<>();\n SortedSet<String> rightOnly = new TreeSet<>();\n \n String ...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_1040
{ "fields": [ { "declarator": "auditBean", "modifier": "private", "original_string": "private AuditBean auditBean;", "type": "AuditBean", "var_name": "auditBean" }, { "declarator": "auditor", "modifier": "private", "original_string": "private TestAuditor aud...
{ "body": "@Test\n public void restCallTest() {\n MultivaluedMap<String,String> mvMapParams = new MultivaluedMapImpl<>();\n mvMapParams.putAll(params);\n auditBean.auditRest(mvMapParams);\n \n AuditParameters expected = new AuditParameters();\n expected.validate(mvMapParam...
{ "fields": [ { "declarator": "log = Logger.getLogger(AuditBean.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(AuditBean.class);", "type": "Logger", "var_name": "log" }, { "declarator": "auditService",...
{ "body": "@POST\n @Path(\"/audit\")\n @Consumes(\"*/*\")\n @Produces({\"application/xml\", \"text/xml\", \"application/json\", \"text/yaml\", \"text/x-yaml\", \"application/x-yaml\", \"application/x-protobuf\",\n \"application/x-protostuff\"})\n @GZIP\n public VoidResponse auditRest(Multiva...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_560
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/jexl/functions/EvaluationPhaseFilterFunctionsTest.java", "identifier": "EvaluationPhaseFilterFunctionsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testMatchesAtLeastCountOf() {\n // @formatter:off\n Assert.assertTrue(EvaluationPhaseFilterFunctions.matchesAtLeastCountOf(\n 3,\n Lists.newArrayList(\n makeValueTuple(\"STOOGE.1,MOE,moe\"),\n m...
{ "fields": [ { "declarator": "EVAL_PHASE_FUNCTION_NAMESPACE = \"filter\"", "modifier": "public static final", "original_string": "public static final String EVAL_PHASE_FUNCTION_NAMESPACE = \"filter\";", "type": "String", "var_name": "EVAL_PHASE_FUNCTION_NAMESPACE" }, { ...
{ "body": "public static FunctionalSet<ValueTuple> matchesAtLeastCountOf(Object... args) {\n FunctionalSet<ValueTuple> matches = new FunctionalSet<>();\n // first arg is the count\n Integer count = Integer.parseInt(args[0].toString());\n // next arg is the field name\n Object fieldV...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_130
{ "fields": [ { "declarator": "conf = null", "modifier": "private", "original_string": "private Configuration conf = null;", "type": "Configuration", "var_name": "conf" }, { "declarator": "ctx = null", "modifier": "private", "original_string": "private TaskA...
{ "body": "@Test\n public void testHandlerListNormalizedNumericsNoSpace() throws Exception {\n \n ctx.getConfiguration().set(\"test\" + \".\" + NUMERIC_LIST + BaseIngestHelper.FIELD_TYPE, NumberType.class.getName());\n ctx.getConfiguration().set(\"test\" + \".\" + ContentBaseIngestHelper.LIST_...
{ "fields": [ { "declarator": "log = Logger.getLogger(ContentIndexingColumnBasedHandler.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(ContentIndexingColumnBasedHandler.class);", "type": "Logger", "var_name": "log" ...
{ "body": "@Override\n public void setup(TaskAttemptContext context) {\n super.setup(context);\n contentHelper = getContentIndexingDataTypeHelper();\n tokenFieldNameSuffix = contentHelper.getTokenFieldNameDesignator();\n Preconditions.checkNotNull(tokenFieldNameSuffix);\n \n ...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_999
{ "fields": [ { "declarator": "filter", "modifier": "private", "original_string": "private CreateQuerySessionIDFilter filter;", "type": "CreateQuerySessionIDFilter", "var_name": "filter" }, { "declarator": "request", "modifier": "private", "original_string":...
{ "body": "@Test\n public void filterServerError() throws Exception {\n response.setStatusInfo(Response.Status.INTERNAL_SERVER_ERROR);\n EasyMock.expect(method.getMethodAnnotations()).andReturn(new Annotation[] {annotation});\n replayAll();\n \n CreateQuerySessionIDFilter.QUERY_I...
{ "fields": [ { "declarator": "log = Logger.getLogger(CreateQuerySessionIDFilter.class)", "modifier": "private final", "original_string": "private final Logger log = Logger.getLogger(CreateQuerySessionIDFilter.class);", "type": "Logger", "var_name": "log" }, { "declarat...
{ "body": "@Override\n public void filter(ContainerRequestContext request, ContainerResponseContext response) throws IOException {\n ResourceMethodInvoker method = (ResourceMethodInvoker) request.getProperty(ResourceMethodInvoker.class.getName());\n \n GenerateQuerySessionId annotation = FindA...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_833
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/index/lookup/IndexMatchTest.java", "identifier": "IndexMatchTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testToString() {\n String uid = \"uid\";\n JexlNode eqNode = JexlNodeFactory.buildEQNode(\"FIELD\", \"value\");\n IndexMatch indexMatch = new IndexMatch(uid, eqNode);\n \n String expectedString = \"uid - {FIELD == 'value' }\";\n assertEquals(...
{ "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 String toString() {\n StringBuilder builder = new StringBuilder();\n builder.append(uid + \" - {\");\n for (String nodeKey : nodeSet.getNodeKeys()) {\n builder.append(nodeKey).append(\" \");\n }\n builder.append(\"}\");\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_976
{ "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 testUnionAuthorizations() {\n assertEquals(new Authorizations(\"A\", \"C\"), AuthorizationsUtil.union(new Authorizations(\"A\", \"C\"), new Authorizations(\"A\")));\n }", "class_method_signature": "AuthorizationsUtilTest.testUnionAuthorizations()", "constructor": false,...
{ "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 Authorizations union(Iterable<byte[]> authorizations1, Iterable<byte[]> authorizations2) {\n LinkedList<byte[]> aggregatedAuthorizations = Lists.newLinkedList();\n addTo(aggregatedAuthorizations, authorizations1);\n addTo(aggregatedAuthorizations, authorizations2);\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_425
{ "fields": [ { "declarator": "GEO_FIELD_QUERY = \"(((GEO_FIELD >= '0208' && GEO_FIELD <= '020d') || GEO_FIELD == '0202') && (geowave:intersects(GEO_FIELD, 'POLYGON((10 10, -10 10, -10 -10, 10 -10, 10 10 ))')))\"", "modifier": "private static final", "original_string": "private static final Stri...
{ "body": "@Test\n public void testGeoField() throws Exception {\n ASTJexlScript queryTree = JexlASTHelper.parseJexlQuery(COMBINED_FIELDS_QUERY);\n \n GeoWaveQueryInfo queryInfo = new GeoWaveQueryInfoVisitor(Arrays.asList(\"GEO_FIELD\")).parseGeoWaveQueryInfo(queryTree);\n assertEquals(...
{ "fields": [ { "declarator": "geoFields", "modifier": "private final", "original_string": "private final Collection<String> geoFields;", "type": "Collection<String>", "var_name": "geoFields" } ], "file": "warehouse/query-core/src/main/java/datawave/query/jexl/visitors/GeoWav...
{ "body": "public GeoWaveQueryInfo parseGeoWaveQueryInfo(JexlNode script) {\n GeoWaveQueryInfo queryInfo = new GeoWaveQueryInfo();\n script.childrenAccept(this, queryInfo);\n return queryInfo;\n }", "class_method_signature": "GeoWaveQueryInfoVisitor.parseGeoWaveQueryInfo(JexlNode script)", ...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_1017
{ "fields": [ { "declarator": "userDN = \"CN=Guy Some Other soguy, OU=ou1, OU=ou2, OU=ou3, O=o1, C=US\"", "modifier": "private static final", "original_string": "private static final String userDN = \"CN=Guy Some Other soguy, OU=ou1, OU=ou2, OU=ou3, O=o1, C=US\";", "type": "String", ...
{ "body": "@Test(expected = DatawaveWebApplicationException.class)\n public void testModelImportNoTable() throws Exception {\n HashMap<String,String> trackingMap = new HashMap<>();\n EasyMock.expect(connectionFactory.getTrackingMap((StackTraceElement[]) EasyMock.anyObject())).andReturn(trackingMap);\...
{ "fields": [ { "declarator": "log = Logger.getLogger(this.getClass())", "modifier": "private", "original_string": "private Logger log = Logger.getLogger(this.getClass());", "type": "Logger", "var_name": "log" }, { "declarator": "DEFAULT_MODEL_TABLE_NAME = \"DatawaveMet...
{ "body": "@POST\n @Consumes({\"application/xml\", \"text/xml\", \"application/json\", \"text/yaml\", \"text/x-yaml\", \"application/x-yaml\"})\n @Produces({\"application/xml\", \"text/xml\", \"application/json\", \"text/yaml\", \"text/x-yaml\", \"application/x-yaml\", \"application/x-protobuf\",\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_219
{ "fields": [ { "declarator": "testRecord", "modifier": "protected static", "original_string": "protected static byte[] testRecord;", "type": "byte[]", "var_name": "testRecord" } ], "file": "warehouse/ingest-json/src/test/java/datawave/ingest/json/config/helper/JsonIngestHelp...
{ "body": "@Test\n public void testGetEventFieldsNORMAL() throws Exception {\n JsonIngestHelper ingestHelper = init(initConfig(FlattenMode.NORMAL));\n \n RawRecordContainer event = new RawRecordContainerImpl();\n event.setDate((new Date()).getTime());\n event.setRawData(testRecor...
{ "fields": [ { "declarator": "log = Logger.getLogger(JsonIngestHelper.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(JsonIngestHelper.class);", "type": "Logger", "var_name": "log" }, { "declarator": "...
{ "body": "@Override\n public Multimap<String,NormalizedContentInterface> getEventFields(RawRecordContainer event) {\n \n if (null == flattener) {\n throw new IllegalStateException(\"JsonObjectFlattener was not initialized. Method 'setup' must be invoked first\");\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_649
{ "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 testEstimateRootPointerFromId() {\n ByteSequence root = new ArrayByteSequence(rootId);\n ByteSequence child = new ArrayByteSequence(childId);\n ByteSequence grandchild = new ArrayByteSequence(grandchildId);\n \n assertEquals(root, TLD.estimateRootPo...
{ "fields": [], "file": "warehouse/query-core/src/main/java/datawave/query/tld/TLD.java", "identifier": "TLD", "interfaces": "", "methods": [ { "class_method_signature": "TLD.TLD()", "constructor": true, "full_signature": "private TLD()", "identifier": "TLD", "modifiers": "p...
{ "body": "public static ByteSequence estimateRootPointerFromId(ByteSequence id) {\n if (id.length() > 21) {\n for (int i = 21; i < id.length(); ++i) {\n if (id.byteAt(i) == '.') {\n return id.subSequence(0, i);\n }\n }\n return ...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_95
{ "fields": [ { "declarator": "COLUMN_FAMILY = new Text(\"yuuuup\")", "modifier": "public static final", "original_string": "public static final Text COLUMN_FAMILY = new Text(\"yuuuup\");", "type": "Text", "var_name": "COLUMN_FAMILY" }, { "declarator": "date = \"2014040...
{ "body": "@Test\n public void testCountsUpAndDownCorrectly() {\n MetadataCounterGroup counters = new MetadataCounterGroup(COLUMN_FAMILY);\n counters.addToCount(1, dataType, fieldName, date);\n counters.addToCount(1, dataType, fieldName, date);\n counters.addToCount(-1, dataType, fieldN...
{ "fields": [ { "declarator": "log = Logger.getLogger(MetadataCounterGroup.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(MetadataCounterGroup.class);", "type": "Logger", "var_name": "log" }, { "declar...
{ "body": "public void addToCount(long countDelta, String dataType, String rowId, String date) {\n String hashMapKey = createKey(dataType, rowId, date);\n CountAndKeyComponents value = counts.get(hashMapKey);\n if (null == value) {\n counts.put(hashMapKey, new CountAndKeyComponents(dat...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_794
{ "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 testReduceOverlapUids1() {\n uids1.add(new IndexMatch(\"a.b.c.1\", node1));\n \n uids2.add(new IndexMatch(\"a.b.c.1.1\", node2));\n uids2.add(new IndexMatch(\"a.b.c.1.1.2\", node2));\n \n Set<IndexMatch> result = intersector.intersect(uids1, ...
{ "fields": [], "file": "warehouse/query-core/src/main/java/datawave/query/ancestor/AncestorUidIntersector.java", "identifier": "AncestorUidIntersector", "interfaces": "implements UidIntersector", "methods": [ { "class_method_signature": "AncestorUidIntersector.intersect(Set<IndexMatch> uids1, Set<I...
{ "body": "@Override\n public Set<IndexMatch> intersect(Set<IndexMatch> uids1, Set<IndexMatch> uids2, List<JexlNode> delayedNodes) {\n /*\n * C) Both are small, so we have an easy case where we can prune much of this sub query. Must propagate delayed nodes, though.\n */\n \n //...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_281
{ "fields": [ { "declarator": "visitor", "modifier": "", "original_string": "PushdownNegationVisitor visitor;", "type": "PushdownNegationVisitor", "var_name": "visitor" } ], "file": "warehouse/query-core/src/test/java/datawave/query/jexl/visitors/PushdownNegationVisitorTest.j...
{ "body": "@Test(expected = IllegalArgumentException.class)\n public void testApplyDeMorgansNull() {\n PushdownNegationVisitor.applyDeMorgans(null, false);\n }", "class_method_signature": "PushdownNegationVisitorTest.testApplyDeMorgansNull()", "constructor": false, "full_signature": "@Test(expected...
{ "fields": [], "file": "warehouse/query-core/src/main/java/datawave/query/jexl/visitors/PushdownNegationVisitor.java", "identifier": "PushdownNegationVisitor", "interfaces": "", "methods": [ { "class_method_signature": "PushdownNegationVisitor.pushdownNegations(JexlNode tree)", "constructor":...
{ "body": "public static JexlNode applyDeMorgans(JexlNode root, boolean negateRoot) {\n if (root == null) {\n throw new IllegalArgumentException(\"root must not be null\");\n }\n \n if (root.jjtGetNumChildren() == 0) {\n throw new IllegalStateException(\"root must hav...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_1060
{ "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 testOrderByWithDirectionWithBackTicks() throws Exception {\n String sql = crq.generateSql(\"v\", \"foo.bar\", null, null, \"`foo.bar` DESC\", \"me\", null);\n Assert.assertEquals(\"SELECT \" + fixedColumns + \",`foo.bar` FROM v WHERE _user_ = 'me' ORDER BY `foo.bar` DES...
{ "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_452
{ "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 testAndSameInvert() throws Exception {\n String originalQuery = \"'abc' == FOO && 'def' == FOO\";\n ASTJexlScript script = JexlASTHelper.parseJexlQuery(originalQuery);\n final Map<String,ExpressionFilter> filter = EventDataQueryExpressionVisitor.getExpressionFilt...
{ "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_901
{ "fields": [ { "declarator": "standardKey", "modifier": "private", "original_string": "private Key standardKey;", "type": "Key", "var_name": "standardKey" }, { "declarator": "standardValue", "modifier": "private", "original_string": "private Value standardV...
{ "body": "@Test\n public void testDecodeActivityHistogramWithProtoValue() {\n // only set 3 durations instead of the expected 7\n List<Long> incompleteList = createIncompleteHistogram();\n \n EdgeData.EdgeValue.Builder builder = EdgeData.EdgeValue.newBuilder();\n builder.addAllH...
{ "fields": [ { "declarator": "log = Logger.getLogger(this.getClass())", "modifier": "private", "original_string": "private Logger log = Logger.getLogger(this.getClass());", "type": "Logger", "var_name": "log" }, { "declarator": "ACTIVITY_HISTOGRAM_LENGTH = 24", "...
{ "body": "public static List<Long> decodeActivityHistogram(Value value) {\n try {\n return decodeActivityHistogram(EdgeData.EdgeValue.parseFrom(value.get()).getHoursList());\n } catch (InvalidProtocolBufferException e) {\n // Probably an old edge value\n return decodeAc...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_844
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/cardinality/TestCardinalityRecord.java", "identifier": "TestCardinalityRecord", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testCartesianProductOfFields1() {\n \n Set<String> recordedFields = new HashSet<>();\n CardinalityRecord cr = new CardinalityRecord(recordedFields, CardinalityRecord.DateType.DOCUMENT);\n \n Map<String,List<String>> valueMap = new HashMap<>();\n ...
{ "fields": [ { "declarator": "serialVersionUID = 1L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = 1L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "resultCardinalityValueFields = null", ...
{ "body": "public List<String> assembleValues(String field, Map<String,List<String>> valueMap) {\n \n List<String> values = new ArrayList<>();\n List<List<String>> valueLists = new ArrayList<>();\n Iterable<String> fieldSplit = Splitter.on(\"|\").split(field);\n \n int numSpl...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_147
{ "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 testTakeOwnershipJobDirectoryRenameThrowsException() throws Exception {\n \n BulkIngestMapFileLoaderTest.logger.info(\"testTakeOwnershipJobDirectoryRenameThrowsException called...\");\n \n try {\n \n URL url = BulkIngestMapFileLoaderT...
{ "fields": [ { "declarator": "log = Logger.getLogger(BulkIngestMapFileLoader.class)", "modifier": "private static", "original_string": "private static Logger log = Logger.getLogger(BulkIngestMapFileLoader.class);", "type": "Logger", "var_name": "log" }, { "declarator":...
{ "body": "public boolean takeOwnershipJobDirectory(Path jobDirectory) {\n boolean success = false;\n try {\n FileSystem fs = getFileSystem(srcHdfs);\n \n try {\n success = fs.rename(new Path(jobDirectory, COMPLETE_FILE_MARKER), new Path(jobDirectory, LOAD...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_517
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/jexl/visitors/RewriteNegationsVisitorTest.java", "identifier": "RewriteNegationsVisitorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testConjunctionOfSingleNEAndEQ() throws ParseException {\n String queryString = \"FOO != BAR && BAR == FOO\";\n String expectedQuery = \"!(FOO == BAR) && BAR == FOO\";\n ASTJexlScript script = JexlASTHelper.parseJexlQuery(queryString);\n ASTJexlScript nega...
{ "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_239
{ "fields": [], "file": "warehouse/common/src/test/java/datawave/common/io/FilesTest.java", "identifier": "FilesTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testEnsureMvString() throws Exception {\n String src = \"src\";\n String dest = \"dest\";\n \n String ret = Files.mv(src, dest);\n assertEquals(ret, \"Directory, 'src' is not a file.\");\n }", "class_method_signature": "FilesTest.testEnsureMvSt...
{ "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_393
{ "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 attributeWithMethodAndFunctionMapping() throws ParseException {\n ASTJexlScript script = JexlASTHelper.parseJexlQuery(\"FOO.getValuesForGroups(grouping:getGroupsForMatchesInGroup(A, 'MEADOW', B, 'FEMALE')) < 19\");\n ASTJexlScript expectedScript = JexlASTHelper\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_669
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/iterator/QueryIteratorTest.java", "identifier": "QueryIteratorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testIsDocumentSpecificRange_withInfiniteKeys() {\n // Test the case of an infinite start key\n Key end = new Key(\"20190314_0\", \"dataType\\0doc0\\0\");\n Range infiniteStartRange = new Range(null, end);\n assertFalse(QueryIterator.isDocumentSpecificRange...
{ "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 boolean isDocumentSpecificRange(Range r) {\n Preconditions.checkNotNull(r);\n \n // Also @see datawave.query.index.lookup.TupleToRange\n // We have already made the assertion that the client is sending us\n // an inclusive start key due to the inability to a...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_1037
{ "fields": [ { "declarator": "PROXIED_ENTITIES_HEADER = new HttpString(DatawaveAuthenticationMechanism.PROXIED_ENTITIES_HEADER)", "modifier": "private static final", "original_string": "private static final HttpString PROXIED_ENTITIES_HEADER = new HttpString(DatawaveAuthenticationMechanism.PROX...
{ "body": "@Test\n public void testNonSSLoginWithoutIssuerHeaderFails() throws Exception {\n httpRequestHeaders.add(SUBJECT_DN_HEADER, testUserCert.getSubjectDN().toString());\n \n expect(httpServerExchange.getConnection()).andReturn(serverConnection);\n expect(serverConnection.getSslSe...
{ "fields": [ { "declarator": "PROXIED_ENTITIES_HEADER = \"X-ProxiedEntitiesChain\"", "modifier": "public static final", "original_string": "public static final String PROXIED_ENTITIES_HEADER = \"X-ProxiedEntitiesChain\";", "type": "String", "var_name": "PROXIED_ENTITIES_HEADER" ...
{ "body": "@Override\n public AuthenticationMechanismOutcome authenticate(HttpServerExchange exchange, SecurityContext securityContext) {\n // Pull proxied entity info from the headers. If proxied entities are there, but proxied issuers are missing, then fail authentication immediately.\n String prox...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_686
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/iterator/logic/NegationFilterTest.java", "identifier": "NegationFilterTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testExhausted() throws Throwable {\n List<String> filterSet1 = Lists.newArrayList(\"a\", \"b\", \"c\");\n Itr<String> f1 = new Itr<>(filterSet1);\n List<String> filterSet2 = Lists.newArrayList(\"a\", \"b\", \"c\", \"d\", \"e\", \"f\");\n Itr<String> f2 = n...
{ "fields": [], "file": "warehouse/query-core/src/main/java/datawave/query/iterator/logic/NegationFilter.java", "identifier": "NegationFilter", "interfaces": "", "methods": [ { "class_method_signature": "NegationFilter.isFiltered(T t, TreeMultimap<T,NestedIterator<T>> filters, Util.Transformer<T> tr...
{ "body": "public static <T extends Comparable<T>> boolean isFiltered(T t, TreeMultimap<T,NestedIterator<T>> filters, Util.Transformer<T> transformer) {\n // quick check to see if we already know we're supposed to be filtered\n if (filters.containsKey(t)) {\n return true;\n }\n ...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_956
{ "fields": [ { "declarator": "rem", "modifier": "private static", "original_string": "private static RESTExceptionMapper rem;", "type": "RESTExceptionMapper", "var_name": "rem" } ], "file": "web-services/common-util/src/test/java/datawave/webservice/common/exception/RESTExce...
{ "body": "@Test\n public void testToResponse_GetClassAndCause2() {\n Exception e = new UndeclaredThrowableException(null, \"java.lang.IllegalArgumentException: \");\n StackTraceElement[] traceArr = new StackTraceElement[1];\n traceArr[0] = new StackTraceElement(\"dummyClass\", \"dummyMethod\"...
{ "fields": [ { "declarator": "log = Logger.getLogger(this.getClass())", "modifier": "private", "original_string": "private Logger log = Logger.getLogger(this.getClass());", "type": "Logger", "var_name": "log" }, { "declarator": "RESPONSE_ORIGIN = null", "modifier...
{ "body": "@Override\n public Response toResponse(Exception e) {\n \n synchronized (lock) {\n if (null == RESPONSE_ORIGIN) {\n RESPONSE_ORIGIN = System.getProperty(\"cluster.name\") + \"/\" + System.getProperty(\"jboss.host.name\");\n }\n }\n \n ...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_405
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/jexl/visitors/RootNegationCheckVisitorTest.java", "identifier": "RootNegationCheckVisitorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testNEq() throws ParseException {\n ASTJexlScript script = JexlASTHelper.parseJexlQuery(\"FOO != 'bar'\");\n Assert.assertTrue(RootNegationCheckVisitor.hasTopLevelNegation(script));\n }", "class_method_signature": "RootNegationCheckVisitorTest.testNEq()", "constr...
{ "fields": [], "file": "warehouse/query-core/src/main/java/datawave/query/jexl/visitors/RootNegationCheckVisitor.java", "identifier": "RootNegationCheckVisitor", "interfaces": "", "methods": [ { "class_method_signature": "RootNegationCheckVisitor.hasTopLevelNegation(JexlNode script)", "constr...
{ "body": "public static Boolean hasTopLevelNegation(JexlNode script) {\n RootNegationCheckVisitor visitor = new RootNegationCheckVisitor();\n \n // ensure all negations are pushed down\n JexlNode pushedDownTree = PushdownNegationVisitor.pushdownNegations(script);\n return !visitor....
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_540
{ "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 parse3LeadingBackslashesEquals() throws Exception {\n String query = \"CITY == '\\\\\\\\\\\\\\\\\\\\\\\\city'\";\n JexlNode node = JexlASTHelper.parseJexlQuery(query);\n String interpretedQuery = JexlStringBuildingVisitor.buildQuery(node);\n Assert.assertE...
{ "fields": [ { "declarator": "log = Logger.getLogger(JexlASTHelper.class)", "modifier": "protected static final", "original_string": "protected static final Logger log = Logger.getLogger(JexlASTHelper.class);", "type": "Logger", "var_name": "log" }, { "declarator": "AN...
{ "body": "public static ASTJexlScript parseJexlQuery(String query) throws ParseException {\n // Instantiate a parser and visitor\n Parser parser = new Parser(new StringReader(\";\"));\n \n // lowercase all 'and', 'or', and 'not' portions of the query.\n String caseFixQuery = AND_PA...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_110
{ "fields": [ { "declarator": "TABLE_NAME = \"abc\"", "modifier": "private static final", "original_string": "private static final String TABLE_NAME = \"abc\";", "type": "String", "var_name": "TABLE_NAME" }, { "declarator": "configuration", "modifier": "", "...
{ "body": "@Test\n public void testCalculateIndex() {\n int index = -9;\n int indexTwo = 8;\n int indexThree = -1;\n int indexFour = -15;\n int expectedResult = 2;\n int numPartitions = 5;\n String tableName = \"test\";\n int cutPointArrayLength = 10;\n ...
{ "fields": [ { "declarator": "LOG = Logger.getLogger(MultiTableRRRangePartitioner.class)", "modifier": "private static final", "original_string": "private static final Logger LOG = Logger.getLogger(MultiTableRRRangePartitioner.class);", "type": "Logger", "var_name": "LOG" }, ...
{ "body": "@Override\n protected int calculateIndex(int index, int numPartitions, String tableName, int cutPointArrayLength) {\n // check to see if the index is already in the SPLIT_TO_REDUCER_MAP map, if so, return the reducer number\n if (SPLIT_TO_REDUCER_MAP.containsKey(tableName) && SPLIT_TO_REDU...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_813
{ "fields": [ { "declarator": "queryNode = null", "modifier": "private", "original_string": "private JexlNode queryNode = null;", "type": "JexlNode", "var_name": "queryNode" }, { "declarator": "config", "modifier": "private", "original_string": "private Shar...
{ "body": "@Test\n public void testApplyWithDocumentRange() {\n String shard = \"20190314_0\";\n Set<String> docIds = Sets.newHashSet(\"docId0\", \"docId1\", \"docId2\");\n IndexInfo indexInfo = new IndexInfo(docIds);\n indexInfo.applyNode(queryNode);\n Tuple2<String,IndexInfo> t...
{ "fields": [ { "declarator": "log = Logger.getLogger(TupleToRange.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(TupleToRange.class);", "type": "Logger", "var_name": "log" }, { "declarator": "currentS...
{ "body": "public Iterator<QueryPlan> apply(Tuple2<String,IndexInfo> tuple) {\n String shard = tuple.first();\n IndexInfo indexInfo = tuple.second();\n \n JexlNode queryNode = currentScript;\n if (log.isTraceEnabled() && indexInfo.getNode() != null) {\n log.trace(\"Got it...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_385
{ "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 identifierWithMethodWithFunctionInExpression() throws ParseException {\n ASTJexlScript script = JexlASTHelper.parseJexlQuery(\"AG.containsAll(filter:someFunction(NAM, '1')) > 0\");\n ASTJexlScript expectedScript = JexlASTHelper.parseJexlQuery(\"(AGE||ETA).containsAll(fi...
{ "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_1021
{ "fields": [ { "declarator": "userDN = \"CN=Guy Some Other soguy, OU=ou1, OU=ou2, OU=ou3, O=o1, C=US\"", "modifier": "private static final", "original_string": "private static final String userDN = \"CN=Guy Some Other soguy, OU=ou1, OU=ou2, OU=ou3, O=o1, C=US\";", "type": "String", ...
{ "body": "@Test\n public void testCloneModel() throws Exception {\n importModels();\n PowerMock.resetAll();\n \n EasyMock.expect(ctx.getCallerPrincipal()).andReturn(principal);\n HashMap<String,String> trackingMap = new HashMap<>();\n EasyMock.expect(connectionFactory.get...
{ "fields": [ { "declarator": "log = Logger.getLogger(this.getClass())", "modifier": "private", "original_string": "private Logger log = Logger.getLogger(this.getClass());", "type": "Logger", "var_name": "log" }, { "declarator": "DEFAULT_MODEL_TABLE_NAME = \"DatawaveMet...
{ "body": "@POST\n @Produces({\"application/xml\", \"text/xml\", \"application/json\", \"text/yaml\", \"text/x-yaml\", \"application/x-yaml\", \"application/x-protobuf\",\n \"application/x-protostuff\"})\n @Path(\"/clone\")\n @GZIP\n @RolesAllowed({\"Administrator\", \"JBossAdministrator\"})\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_690
{ "fields": [ { "declarator": "connector", "modifier": "private static", "original_string": "private static Connector connector;", "type": "Connector", "var_name": "connector" }, { "declarator": "scannerFactory", "modifier": "private static", "original_strin...
{ "body": "@Test\n public void testExceedShardDayThreshold() throws Exception {\n \n // Components that define the query: \"FOO == 'baz'\"\n String fieldName = \"FOO\";\n String fieldValue = \"baz\";\n ASTEQNode eqNode = (ASTEQNode) JexlNodeFactory.buildEQNode(fieldName, fieldVal...
{ "fields": [ { "declarator": "MAX_MEDIAN = 20", "modifier": "private static final", "original_string": "private static final int MAX_MEDIAN = 20;", "type": "int", "var_name": "MAX_MEDIAN" }, { "declarator": "log = Logger.getLogger(RangeStreamScanner.class)", "mod...
{ "body": "@Override\n public boolean hasNext() {\n /*\n * Let's take a moment to look through all states S\n */\n try {\n if (null != stats)\n stats.getTimer(TIMERS.HASNEXT).resume();\n \n while (null == currentEntry && (!finished || !r...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_413
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/jexl/visitors/RootNegationCheckVisitorTest.java", "identifier": "RootNegationCheckVisitorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testNegatedMarkerOneLeaf() throws ParseException {\n ASTJexlScript script = JexlASTHelper.parseJexlQuery(\"((ASTDelayedPredicate = true) && !(FOO != 'bar' && FOO == 'baz'))\");\n Assert.assertFalse(RootNegationCheckVisitor.hasTopLevelNegation(script));\n }", "class...
{ "fields": [], "file": "warehouse/query-core/src/main/java/datawave/query/jexl/visitors/RootNegationCheckVisitor.java", "identifier": "RootNegationCheckVisitor", "interfaces": "", "methods": [ { "class_method_signature": "RootNegationCheckVisitor.hasTopLevelNegation(JexlNode script)", "constr...
{ "body": "public static Boolean hasTopLevelNegation(JexlNode script) {\n RootNegationCheckVisitor visitor = new RootNegationCheckVisitor();\n \n // ensure all negations are pushed down\n JexlNode pushedDownTree = PushdownNegationVisitor.pushdownNegations(script);\n return !visitor....
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_940
{ "fields": [], "file": "web-services/query/src/test/java/datawave/webservice/query/cache/RunningQueryTimingImplTest.java", "identifier": "RunningQueryTimingImplTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testPageSizeShortCircuit() {\n RunningQueryTimingImpl timing = new RunningQueryTimingImpl(10 * 60 * 1000, 9 * 60 * 1000, 10 * 60 * 1000);\n // if we are already at the max time, then return true if page size < 90% max page size\n assertTrue(timing.shouldReturnPar...
{ "fields": [ { "declarator": "maxCallMs = 60 * 60 * 1000", "modifier": "private", "original_string": "private long maxCallMs = 60 * 60 * 1000;", "type": "long", "var_name": "maxCallMs" }, { "declarator": "pageSizeShortCircuitCheckTimeMs = 30 * 60 * 1000", "modifi...
{ "body": "@Override\n public boolean shouldReturnPartialResults(int pageSize, int maxPageSize, long timeInCall) {\n \n // only return prematurely if we have at least 1 result\n if (pageSize > 0) {\n \n // if after the page size short circuit check time\n if (t...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_805
{ "fields": [ { "declarator": "children = Arrays.asList(\"a\", \"a.1\", \"a.1.1\", \"a.1.2\", \"a.1.2.1\", \"a.10\", \"a.2\", \"a.3\", \"a.4\", \"a.4.1\", \"a.4.1.1\", \"a.4.1.2\", \"a.4.2\",\n \"a.5\", \"a.6\", \"a.7\", \"a.8\", \"a.9\")", "modifier": "private", "original_str...
{ "body": "@Test(expected = IllegalStateException.class)\n public void testUninitializedgetTopValue() {\n iterator.getTopValue();\n }", "class_method_signature": "AncestorChildExpansionIteratorTest.testUninitializedgetTopValue()", "constructor": false, "full_signature": "@Test(expected = IllegalSta...
{ "fields": [ { "declarator": "children", "modifier": "private final", "original_string": "private final List<String> children;", "type": "List<String>", "var_name": "children" }, { "declarator": "equality", "modifier": "private final", "original_string": "p...
{ "body": "@Override\n public Value getTopValue() {\n if (!seeked) {\n throw new IllegalStateException(\"cannot getTopKey(), iterator has not been seeked\");\n }\n \n if (topValue == null) {\n throw new NoSuchElementException(\"top value does not exist\");\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_106
{ "fields": [], "file": "warehouse/ingest-core/src/test/java/datawave/ingest/mapreduce/partition/RowHashingPartitionerTest.java", "identifier": "RowHashingPartitionerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testShardAndCFPartitioning() {\n RowHashingPartitioner sdp = new RowHashingPartitioner();\n Configuration conf = new Configuration();\n conf.set(RowHashingPartitioner.COLUMN_FAMILIES, \"tf\");\n sdp.setConf(conf);\n assertColumnFamilyPartitioning(sd...
{ "fields": [ { "declarator": "COLUMN_FAMILIES = \"datawave.partitioner.rr.colfams\"", "modifier": "public static final", "original_string": "public static final String COLUMN_FAMILIES = \"datawave.partitioner.rr.colfams\";", "type": "String", "var_name": "COLUMN_FAMILIES" }, ...
{ "body": "@Override\n public void setConf(Configuration conf) {\n this.conf = conf;\n configure(COLUMN_FAMILIES);\n }", "class_method_signature": "RowHashingPartitioner.setConf(Configuration conf)", "constructor": false, "full_signature": "@Override public void setConf(Configuration conf)",...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_556
{ "fields": [], "file": "warehouse/query-core/src/test/java/datawave/query/jexl/nodes/QueryPropertyMarkerTest.java", "identifier": "QueryPropertyMarkerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testGetQueryPropertySource() throws ParseException {\n String source = \"FOO == 'bar'\";\n JexlNode sourceNode = JexlASTHelper.parseJexlQuery(source);\n \n JexlNode delayedNode = ASTDelayedPredicate.create(sourceNode);\n String delayedString = JexlS...
{ "fields": [ { "declarator": "log = Logger.getLogger(QueryPropertyMarker.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(QueryPropertyMarker.class);", "type": "Logger", "var_name": "log" } ], "file": "wareho...
{ "body": "public static JexlNode getQueryPropertySource(JexlNode node, Class<? extends QueryPropertyMarker> type) {\n List<JexlNode> sourceNodes = new ArrayList<>();\n if (QueryPropertyMarkerVisitor.instanceOf(node, type, sourceNodes) && !sourceNodes.isEmpty()) {\n if (sourceNodes.size() == ...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_782
{ "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 testSameAccept() {\n Key key = new Key(\"abc\", \"1234.123.12345\");\n Key other = new Key(\"abc\", \"1234.123.12345\");\n assertTrue(equality.partOf(key, other));\n }", "class_method_signature": "AncestorEqualityTest.testSameAccept()", "constructor": fals...
{ "fields": [], "file": "warehouse/query-core/src/main/java/datawave/query/function/AncestorEquality.java", "identifier": "AncestorEquality", "interfaces": "implements Equality", "methods": [ { "class_method_signature": "AncestorEquality.partOf(Key key, Key other)", "constructor": false, ...
{ "body": "@Override\n public boolean partOf(Key key, Key other) {\n String docId = key.getColumnFamily().toString();\n String otherId = other.getColumnFamily().toString();\n return docId.startsWith(otherId + DEFAULT_SEPARATOR) || docId.equals(otherId);\n }", "class_method_signature": "An...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...
116999027_278
{ "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 testMixedMarkersInverted() throws ParseException {\n ASTJexlScript query = JexlASTHelper\n .parseJexlQuery(\"!((ExceededTermThresholdMarkerJexlNode = true) && (F1 == 'v1' && ((ASTDelayedPredicate = true) && (F2 == 'v2'))))\");\n JexlNode result = ...
{ "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_628
{ "fields": [ { "declarator": "log = Logger.getLogger(AttributeFactoryTest.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(AttributeFactoryTest.class);", "type": "Logger", "var_name": "log" }, { "declar...
{ "body": "@Test\n public void testFindersKeepers() {\n log.debug(AttributeFactory.getKeepers(one));\n log.debug(AttributeFactory.getKeepers(two));\n log.debug(AttributeFactory.getKeepers(three));\n log.debug(AttributeFactory.getKeepers(four));\n log.debug(AttributeFactory.getKee...
{ "fields": [ { "declarator": "log = Logger.getLogger(AttributeFactory.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(AttributeFactory.class);", "type": "Logger", "var_name": "log" }, { "declarator": "...
{ "body": "public static Collection<Class<?>> getKeepers(Iterable<Class<?>> finders) {\n Collection<Class<?>> keepers = Sets.newHashSet(finders);\n List<Class<?>> losers = AttributeFactory.mostGeneralTypes;\n if (keepers.size() == 1) {\n // do not remove anything\n return ke...
{ "created": "1/10/2018 7:05:58 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 116999027, "size": null, "stargazer_count": null, "stars": 283, "updates": "2020-01-24T11:35:17+00:00", "url": "https://github.com/NationalSecurit...