id
stringlengths
7
14
test_class
dict
test_case
dict
focal_class
dict
focal_method
dict
repository
dict
43734923_391
{ "fields": [], "file": "dao/mongodb.rya/src/test/java/org/apache/rya/mongodb/instance/MongoDetailsAdapterTest.java", "identifier": "MongoDetailsAdapterTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void mongoToRyaDetailsTest() throws MalformedRyaDetailsException {\n // Convert the Mongo object into a RyaDetails.\n final Document mongo = Document.parse(\n \"{ \"\n + \"instanceName : \\\"test\\\",\"\n + \"versi...
{ "fields": [ { "declarator": "INSTANCE_KEY = \"instanceName\"", "modifier": "public static final", "original_string": "public static final String INSTANCE_KEY = \"instanceName\";", "type": "String", "var_name": "INSTANCE_KEY" }, { "declarator": "VERSION_KEY = \"version...
{ "body": "public static RyaDetails toRyaDetails(final Document doc) throws MalformedRyaDetailsException {\n requireNonNull(doc);\n try {\n final RyaDetails.Builder builder = RyaDetails.builder()\n .setRyaInstanceName(doc.getString(INSTANCE_KEY))\n .setRyaVersion...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_309
{ "fields": [], "file": "common/rya.api.function/src/test/java/org/apache/rya/api/function/sp/StatementPatternMatcherTest.java", "identifier": "StatementPatternMatcherTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void matchesPredicate() throws Exception {\n // Create the matcher against a pattern that matches a specific predicate.\n final StatementPatternMatcher matcher = new StatementPatternMatcher(getSp(\n \"SELECT * WHERE {\" +\n \"?s <urn:talksTo...
{ "fields": [ { "declarator": "pattern", "modifier": "private final", "original_string": "private final StatementPattern pattern;", "type": "StatementPattern", "var_name": "pattern" } ], "file": "common/rya.api.function/src/main/java/org/apache/rya/api/function/sp/StatementPa...
{ "body": "public Optional<BindingSet> match(final Statement statement) {\n requireNonNull(statement);\n\n // Setup the resulting binding set that could be built from this Statement.\n final QueryBindingSet bs = new QueryBindingSet();\n\n if(matchesValue(pattern.getSubjectVar(), statement....
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_165
{ "fields": [ { "declarator": "q1 = \"\"//\n + \"SELECT ?s ?t ?u \" //\n + \"{\" //\n + \" ?s a ?t .\"//\n + \" ?t <http://www.w3.org/2000/01/rdf-schema#label> ?u .\"//\n + \" ?u <uri:talksTo> ?s . \"//\n + \"}\"", "modifier": "priva...
{ "body": "@Test\n public void testTwoNodeOrder() {\n\n SPARQLParser parser = new SPARQLParser();\n\n ParsedQuery pq1 = null;\n ParsedQuery pq2 = null;\n\n try {\n pq1 = parser.parseQuery(q7, null);\n pq2 = parser.parseQuery(q8, null);\n } catch (MalformedQu...
{ "fields": [], "file": "extras/indexing/src/main/java/org/apache/rya/indexing/IndexPlanValidator/TupleExecutionPlanGenerator.java", "identifier": "TupleExecutionPlanGenerator", "interfaces": "implements IndexTupleGenerator", "methods": [ { "class_method_signature": "TupleExecutionPlanGenerator.getP...
{ "body": "@Override\n public Iterator<TupleExpr> getPlans(final Iterator<TupleExpr> indexPlans) {\n\n final Iterator<TupleExpr> iter = indexPlans;\n\n return new Iterator<TupleExpr>() {\n\n private TupleExpr next = null;\n private boolean hasNextCalled = false;\n pri...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_51
{ "fields": [], "file": "extras/shell/src/test/java/org/apache/rya/shell/RyaAdminCommandsTest.java", "identifier": "RyaAdminCommandsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void removeUser() throws Exception {\n // Mock the object that performs the Add User command.\n final RemoveUser mockRemoveUser = mock(RemoveUser.class);\n\n final RyaClient mockClient = mock(RyaClient.class);\n when(mockClient.getRemoveUser()).thenReturn( java...
{ "fields": [ { "declarator": "CREATE_PCJ_CMD = \"create-pcj\"", "modifier": "public static final", "original_string": "public static final String CREATE_PCJ_CMD = \"create-pcj\";", "type": "String", "var_name": "CREATE_PCJ_CMD" }, { "declarator": "CREATE_PERIODIC_PCJ_C...
{ "body": "@CliCommand(value = REMOVE_USER_CMD, help = \"Removes an authorized user from the Rya instance.\")\n public void removeUser(\n @CliOption(key = {\"username\"}, mandatory = true, help = \"The username of the user whose access will be revoked.\")\n final String username) {\n /...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_132
{ "fields": [ { "declarator": "accCon", "modifier": "private", "original_string": "private Connector accCon;", "type": "Connector", "var_name": "accCon" }, { "declarator": "tablename = \"table\"", "modifier": "", "original_string": "String tablename = \"tabl...
{ "body": "@Test\n public void testOneHundredColumnSubjObjPrefix() throws Exception {\n\n BatchWriter bw = null;\n\n bw = accCon.createBatchWriter(tablename, 500L * 1024L * 1024L, Long.MAX_VALUE, 30);\n\n for (int i = 0; i < 100; i++) {\n\n Mutation m = new Mutation(new Text(\"\" + ...
{ "fields": [ { "declarator": "nullText = new Text()", "modifier": "protected", "original_string": "protected Text nullText = new Text();", "type": "Text", "var_name": "nullText" }, { "declarator": "log = Logger.getLogger(DocumentIndexIntersectingIterator.class)", ...
{ "body": "public static void setColumnFamilies(IteratorSetting cfg, TextColumn[] columns) {\n if (columns.length < 2)\n throw new IllegalArgumentException(\"Must supply at least two terms to intersect\");\n \n boolean[] prefix = new boolean[columns.length];\n \n for(int i = 0; i < columns.length;...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_348
{ "fields": [], "file": "common/rya.api/src/test/java/org/apache/rya/api/utils/QueryInvestigatorTest.java", "identifier": "QueryInvestigatorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void isInsert_false_notAnUpdate() throws Exception {\n final String sparql = \"SELECT * WHERE { ?a ?b ?c . }\";\n assertFalse( QueryInvestigator.isInsertWhere(sparql) );\n }", "class_method_signature": "QueryInvestigatorTest.isInsert_false_notAnUpdate()", "constructor...
{ "fields": [ { "declarator": "PARSER = new SPARQLParser()", "modifier": "private static final", "original_string": "private static final SPARQLParser PARSER = new SPARQLParser();", "type": "SPARQLParser", "var_name": "PARSER" } ], "file": "common/rya.api/src/main/java/org/ap...
{ "body": "public static boolean isInsertWhere(final String sparql) throws MalformedQueryException {\n requireNonNull(sparql);\n\n try {\n // Inserts are updated, so try to create a ParsedUpdate.\n PARSER.parseUpdate(sparql, null);\n\n // Check to see if the SPARQL looks...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_124
{ "fields": [ { "declarator": "TEST_INSTANCE = \"test_instance\"", "modifier": "private final static", "original_string": "private final static String TEST_INSTANCE = \"test_instance\";", "type": "String", "var_name": "TEST_INSTANCE" }, { "declarator": "TEST_TIMESTAMP =...
{ "body": "@Test\n public void serializeTest() {\n final MergeParentMetadata merge = new MergeParentMetadata.Builder()\n .setRyaInstanceName(TEST_INSTANCE)\n .setTimestamp(TEST_TIMESTAMP)\n .setFilterTimestmap(TEST_FILTER_TIMESTAMP)\n .setParentTimeOffset(TEST_TIM...
{ "fields": [ { "declarator": "RYANAME_KEY = \"ryaInstanceName\"", "modifier": "public static final", "original_string": "public static final String RYANAME_KEY = \"ryaInstanceName\";", "type": "String", "var_name": "RYANAME_KEY" }, { "declarator": "TIMESTAMP_KEY = \"ti...
{ "body": "public Document serialize(final MergeParentMetadata metadata) {\n final Document doc = new Document()\n .append(RYANAME_KEY, metadata.getRyaInstanceName())\n .append(TIMESTAMP_KEY, metadata.getTimestamp())\n .append(FILTER_TIMESTAMP_KEY, metadata.getFilterTimestamp()...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_47
{ "fields": [], "file": "extras/shell/src/test/java/org/apache/rya/shell/RyaAdminCommandsTest.java", "identifier": "RyaAdminCommandsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void installWithAccumuloParameters_userAbort() throws DuplicateInstanceNameException, RyaClientException, IOException {\n // Mock the object that performs the install operation.\n final Install mockInstall = mock(Install.class);\n\n final RyaClient mockCommands = mock...
{ "fields": [ { "declarator": "CREATE_PCJ_CMD = \"create-pcj\"", "modifier": "public static final", "original_string": "public static final String CREATE_PCJ_CMD = \"create-pcj\";", "type": "String", "var_name": "CREATE_PCJ_CMD" }, { "declarator": "CREATE_PERIODIC_PCJ_C...
{ "body": "@CliCommand(value = INSTALL_ACCUMULO_PARAMETERS_CMD, help = \"Create a new Accumulo instance of Rya with command line parameters.\")\n public String installWithAccumuloParameters(\n @CliOption(key = {\"instanceName\"}, mandatory = true, help = \"The name of the Rya instance to create.\")\n ...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_10
{ "fields": [], "file": "extras/shell/src/test/java/org/apache/rya/shell/RyaStreamsCommandsTest.java", "identifier": "RyaStreamsCommandsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void printRyaStreamsDetails_configured() throws Exception {\n // Mock the object that performs the configure operation.\n final RyaClient mockCommands = mock(RyaClient.class);\n final GetInstanceDetails getDetails = mock(GetInstanceDetails.class);\n when(mockCo...
{ "fields": [ { "declarator": "STREAMS_CONFIGURE_CMD = \"streams-configure\"", "modifier": "public static final", "original_string": "public static final String STREAMS_CONFIGURE_CMD = \"streams-configure\";", "type": "String", "var_name": "STREAMS_CONFIGURE_CMD" }, { "...
{ "body": "@CliCommand(value = STREAMS_DETAILS_CMD, help = \"Print information about which Rya Streams subsystem the Rya instance is connected to.\")\n public String printRyaStreamsDetails() {\n final String ryaInstance = state.getShellState().getRyaInstanceName().get();\n final RyaClient client = st...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_173
{ "fields": [ { "declarator": "provider", "modifier": "private final", "original_string": "private final AbstractPcjIndexSetProvider provider;", "type": "AbstractPcjIndexSetProvider", "var_name": "provider" } ], "file": "extras/indexing/src/test/java/org/apache/rya/indexing/I...
{ "body": "@Test\n public void testEvaluateTwoIndexTwoVarOrder3()\n throws Exception {\n\n\n final String indexSparqlString = \"\"//\n + \"SELECT ?l ?e ?c \" //\n + \"{\" //\n + \" ?e a ?c . \"//\n + \" ?e <http://www.w3.org/2000/01/r...
{ "fields": [ { "declarator": "omitCrossProd = false", "modifier": "private", "original_string": "private boolean omitCrossProd = false;", "type": "boolean", "var_name": "omitCrossProd" } ], "file": "extras/indexing/src/main/java/org/apache/rya/indexing/IndexPlanValidator/Ind...
{ "body": "@Override\n public boolean isValid(TupleExpr te) {\n\n TupleValidateVisitor tv = new TupleValidateVisitor();\n te.visit(tv);\n\n return tv.isValid();\n }", "class_method_signature": "IndexPlanValidator.isValid(TupleExpr te)", "constructor": false, "full_signature": "@Overri...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_364
{ "fields": [ { "declarator": "INPUT_AND_EXPECTED_BOOLEAN_EXPRESSIONS =\n ImmutableList.of(\n Pair.of(\"A\", \"A\"),\n Pair.of(\"A&B\", \"A&B\"),\n Pair.of(\"A|B\", \"A|B\"),\n Pair.of(\"A&(B|C)\", \"(A&B)|(A&C)\"),\n Pair.of(\"A|(B&C)\", \"A|(B&...
{ "body": "@Test (expected=NullPointerException.class)\n public void testTruthTableNullNode() {\n final Node node = null;\n final byte[] expression = new DocumentVisibility(\"A\").getExpression();\n DisjunctiveNormalFormConverter.createTruthTableInputs(node, expression);\n }", "class_meth...
{ "fields": [ { "declarator": "log = Logger.getLogger(DisjunctiveNormalFormConverter.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(DisjunctiveNormalFormConverter.class);", "type": "Logger", "var_name": "log" } ...
{ "body": "public static byte[][] createTruthTableInputs(final Node node, final byte[] expression) {\n final List<String> terms = findNodeTerms(node, expression);\n return createTruthTableInputs(terms);\n }", "class_method_signature": "DisjunctiveNormalFormConverter.createTruthTableInputs(final Nod...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_7
{ "fields": [], "file": "extras/shell/src/test/java/org/apache/rya/shell/RyaStreamsCommandsTest.java", "identifier": "RyaStreamsCommandsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void configureRyaStreams() throws Exception {\n // Mock the object that performs the configure operation.\n final RyaClient mockCommands = mock(RyaClient.class);\n final SetRyaStreamsConfiguration setStreams = mock(SetRyaStreamsConfiguration.class);\n when(mock...
{ "fields": [ { "declarator": "STREAMS_CONFIGURE_CMD = \"streams-configure\"", "modifier": "public static final", "original_string": "public static final String STREAMS_CONFIGURE_CMD = \"streams-configure\";", "type": "String", "var_name": "STREAMS_CONFIGURE_CMD" }, { "...
{ "body": "@CliCommand(value = STREAMS_CONFIGURE_CMD, help = \"Connect a Rya Streams subsystem to a Rya Instance.\")\n public String configureRyaStreams(\n @CliOption(key = {\"kafkaHostname\"}, mandatory = true, help = \"The hostname of the Kafka Broker.\")\n final String kafkaHostname,\n ...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_221
{ "fields": [ { "declarator": "accumuloConn = null", "modifier": "protected static", "original_string": "protected static Connector accumuloConn = null;", "type": "Connector", "var_name": "accumuloConn" }, { "declarator": "ryaRepo = null", "modifier": "protected",...
{ "body": "@Test\n public void accumuloIndexSetTestWithBindingSet() throws RepositoryException, PcjException, TableNotFoundException,\n RyaTypeResolverException, MalformedQueryException, SailException, QueryEvaluationException, AccumuloException, AccumuloSecurityException {\n // Load some Triples into Ry...
{ "fields": [ { "declarator": "accCon", "modifier": "private final", "original_string": "private final Connector accCon;", "type": "Connector", "var_name": "accCon" }, { "declarator": "tablename", "modifier": "private final", "original_string": "private fina...
{ "body": "@Override\n\tpublic CloseableIteration<BindingSet, QueryEvaluationException> evaluate(\n\t\t\tfinal BindingSet bindingset) throws QueryEvaluationException {\n\t\treturn this.evaluate(Collections.singleton(bindingset));\n\t}", "class_method_signature": "AccumuloIndexSet.evaluate(\n\t\t\tfinal BindingSet b...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_108
{ "fields": [ { "declarator": "VF = SimpleValueFactory.getInstance()", "modifier": "private static final", "original_string": "private static final ValueFactory VF = SimpleValueFactory.getInstance();", "type": "ValueFactory", "var_name": "VF" }, { "declarator": "EX = \"...
{ "body": "@Test\n public void testBNodeQuery() throws Exception {\n String text = \"PREFIX foaf: <\" + FOAF.NAMESPACE + \">\\n\"\n + \"SELECT * WHERE {\\n\"\n + \" ?x a [ rdfs:subClassOf foaf:Person ] .\\n\"\n + \" ?x foaf:knows ?y .\\n\"\n + \"...
{ "fields": [ { "declarator": "antecedentStatementPatterns = new HashSet<>()", "modifier": "private", "original_string": "private Set<StatementPattern> antecedentStatementPatterns = new HashSet<>();", "type": "Set<StatementPattern>", "var_name": "antecedentStatementPatterns" } ...
{ "body": "public Set<StatementPattern> getAntecedents() {\n return antecedentStatementPatterns;\n }", "class_method_signature": "AntecedentVisitor.getAntecedents()", "constructor": false, "full_signature": "public Set<StatementPattern> getAntecedents()", "identifier": "getAntecedents", "invocatio...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_84
{ "fields": [ { "declarator": "VF = SimpleValueFactory.getInstance()", "modifier": "private static final", "original_string": "private static final ValueFactory VF = SimpleValueFactory.getInstance();", "type": "ValueFactory", "var_name": "VF" } ], "file": "extras/rya.indexing...
{ "body": "@Test\n public void fromString_Integer() throws BindingSetConversionException {\n // Setup the String that will be converted.\n final String bindingSetString = \"5<<~>>http://www.w3.org/2001/XMLSchema#integer\";\n\n // Convert it to a BindingSet\n final BindingSetConverter<St...
{ "fields": [ { "declarator": "BINDING_DELIM = \":::\"", "modifier": "public static final", "original_string": "public static final String BINDING_DELIM = \":::\";", "type": "String", "var_name": "BINDING_DELIM" }, { "declarator": "TYPE_DELIM = \"<<~>>\"", "modifi...
{ "body": "@Override\n public String convert(final BindingSet bindingSet, final VariableOrder varOrder) {\n requireNonNull(bindingSet);\n requireNonNull(varOrder);\n\n // Convert each Binding to a String.\n final List<String> bindingStrings = new ArrayList<>();\n for(final String...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_333
{ "fields": [ { "declarator": "VF = SimpleValueFactory.getInstance()", "modifier": "private static final", "original_string": "private static final ValueFactory VF = SimpleValueFactory.getInstance();", "type": "ValueFactory", "var_name": "VF" }, { "declarator": "LANGUAG...
{ "body": "@Test\n public void testConvertLiteral_normalString() {\n final String expectedData = \"Hello\";\n final RyaType ryaType = new RyaType(XMLSchema.STRING, expectedData);\n final Literal literal = RyaToRdfConversions.convertLiteral(ryaType);\n assertEquals(XMLSchema.STRING, lite...
{ "fields": [ { "declarator": "VF = SimpleValueFactory.getInstance()", "modifier": "private static final", "original_string": "private static final ValueFactory VF = SimpleValueFactory.getInstance();", "type": "ValueFactory", "var_name": "VF" } ], "file": "common/rya.api/src/...
{ "body": "public static Literal convertLiteral(final RyaType ryaType) {\n if (XMLSchema.STRING.equals(ryaType.getDataType())) {\n return VF.createLiteral(ryaType.getData());\n } else if (RDF.LANGSTRING.equals(ryaType.getDataType())) {\n final String data = ryaType.getData();\n ...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_299
{ "fields": [], "file": "common/rya.api.model/src/test/java/org/apache/rya/api/model/visibility/VisibilitySimplifierTest.java", "identifier": "VisibilitySimplifierTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void parenthesis() {\n final String simplified = new VisibilitySimplifier().simplify(\"(u&u)&u\");\n assertEquals(\"u\", simplified);\n }", "class_method_signature": "VisibilitySimplifierTest.parenthesis()", "constructor": false, "full_signature": "@Test public void...
{ "fields": [], "file": "common/rya.api.model/src/main/java/org/apache/rya/api/model/visibility/VisibilitySimplifier.java", "identifier": "VisibilitySimplifier", "interfaces": "", "methods": [ { "class_method_signature": "VisibilitySimplifier.unionAndSimplify(final String vis1, final String vis2)", ...
{ "body": "public static String simplify(final String visibility) {\n requireNonNull(visibility);\n\n String last = visibility;\n String simplified = new String(new ColumnVisibility(visibility).flatten(), Charsets.UTF_8);\n\n while(!simplified.equals(last)) {\n last = simplified...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_276
{ "fields": [ { "declarator": "VF = SimpleValueFactory.getInstance()", "modifier": "private static final", "original_string": "private static final ValueFactory VF = SimpleValueFactory.getInstance();", "type": "ValueFactory", "var_name": "VF" } ], "file": "extras/rya.pcj.fluo...
{ "body": "@Test\n public void testConstructProjectionProjectSubj() throws MalformedQueryException, UnsupportedEncodingException {\n String query = \"select ?x where { ?x <uri:talksTo> <uri:Bob> }\";\n \n SPARQLParser parser = new SPARQLParser();\n ParsedQuery pq = parser.parseQuery(que...
{ "fields": [ { "declarator": "log = Logger.getLogger(ConstructProjection.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(ConstructProjection.class);", "type": "Logger", "var_name": "log" }, { "declarat...
{ "body": "public RyaStatement projectBindingSet(VisibilityBindingSet vBs, Map<String, BNode> bNodes) {\n \n Preconditions.checkNotNull(vBs);\n Preconditions.checkNotNull(bNodes);\n \n Value subj = getValue(subjName, subjValue, vBs, bNodes);\n Value pred = getValue(predName, pre...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_325
{ "fields": [ { "declarator": "VF = SimpleValueFactory.getInstance()", "modifier": "private static final", "original_string": "private static final ValueFactory VF = SimpleValueFactory.getInstance();", "type": "ValueFactory", "var_name": "VF" }, { "declarator": "LANGUAG...
{ "body": "@Test\n public void testConvertLiteral_undeterminedLanguage() {\n final String expectedData = \"Hello\";\n final String language = LiteralLanguageUtils.UNDETERMINED_LANGUAGE;\n assertTrue(Literals.isValidLanguageTag(language));\n final Literal literal = VF.createLiteral(expec...
{ "fields": [ { "declarator": "log = Logger.getLogger(RdfToRyaConversions.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(RdfToRyaConversions.class);", "type": "Logger", "var_name": "log" } ], "file": "common...
{ "body": "public static RyaType convertLiteral(final Literal literal) {\n if (literal == null) {\n return null;\n }\n if (literal.getDatatype() != null) {\n if (Literals.isLanguageLiteral(literal)) {\n final String language = literal.getLanguage().get();\n ...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_260
{ "fields": [ { "declarator": "VF = SimpleValueFactory.getInstance()", "modifier": "private static final", "original_string": "private static final ValueFactory VF = SimpleValueFactory.getInstance();", "type": "ValueFactory", "var_name": "VF" }, { "declarator": "adapter...
{ "body": "@Test\n public void equalsInstantAfterInterval_onlyOneTemporal() throws Exception {\n final String query =\n \"PREFIX time: <http://www.w3.org/2006/time#> \\n\"\n + \"PREFIX tempo: <tag:rya-rdf.org,2015:temporal#> \\n\"\n + \"SELECT ?event ?time \"\n + \"WHERE { \"\n...
{ "fields": [ { "declarator": "LOG = Logger.getLogger(GeoTemporalMongoDBStorageStrategy.class)", "modifier": "private static final", "original_string": "private static final Logger LOG = Logger.getLogger(GeoTemporalMongoDBStorageStrategy.class);", "type": "Logger", "var_name": "LOG" ...
{ "body": "public Document getFilterQuery(final Collection<IndexingExpr> geoFilters, final Collection<IndexingExpr> temporalFilters) throws GeoTemporalIndexException {\n final QueryBuilder builder = QueryBuilder.start();\n if(!geoFilters.isEmpty()) {\n final Document[] geo = getGeoObjs(geoFil...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_149
{ "fields": [], "file": "extras/indexing/src/test/java/org/apache/rya/indexing/accumulo/AccumuloIndexingConfigurationTest.java", "identifier": "AccumuloIndexingConfigurationTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testBuilder() {\n String prefix = \"rya_\";\n String auth = \"U\";\n String visibility = \"U\";\n String user = \"user\";\n String password = \"password\";\n String instance = \"instance\";\n String zookeeper = \"zookeeper\";\n ...
{ "fields": [], "file": "extras/indexing/src/main/java/org/apache/rya/indexing/accumulo/AccumuloIndexingConfiguration.java", "identifier": "AccumuloIndexingConfiguration", "interfaces": "", "methods": [ { "class_method_signature": "AccumuloIndexingConfiguration.AccumuloIndexingConfiguration()", ...
{ "body": "public static AccumuloIndexingConfigBuilder builder() {\n return new AccumuloIndexingConfigBuilder();\n }", "class_method_signature": "AccumuloIndexingConfiguration.builder()", "constructor": false, "full_signature": "public static AccumuloIndexingConfigBuilder builder()", "identifier": "...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_372
{ "fields": [], "file": "dao/mongodb.rya/src/test/java/org/apache/rya/mongodb/document/visibility/DocumentVisibilityAdapterTest.java", "identifier": "DocumentVisibilityAdapterTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testToDocument_and() {\n final DocumentVisibility dv = new DocumentVisibility(\"A&B&C\");\n final Document document = DocumentVisibilityAdapter.toDocument(dv);\n final Document expected = Document.parse(\n \"{\" +\n \"documentVisibility ...
{ "fields": [ { "declarator": "log = Logger.getLogger(DocumentVisibilityAdapter.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(DocumentVisibilityAdapter.class);", "type": "Logger", "var_name": "log" }, { ...
{ "body": "public static Document toDocument(final byte[] expression) {\n DocumentVisibility dv;\n if (expression == null) {\n dv = MongoDbRdfConstants.EMPTY_DV;\n } else {\n dv = new DocumentVisibility(expression);\n }\n return toDocument(dv);\n }", "clas...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_237
{ "fields": [], "file": "extras/rya.streams/query-manager/src/test/java/org/apache/rya/streams/querymanager/kafka/LocalQueryExecutorTest.java", "identifier": "LocalQueryExecutorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void startQuery() throws Exception {\n // Test values.\n final String ryaInstance = \"rya\";\n final StreamsQuery query = new StreamsQuery(UUID.randomUUID(), \"SELECT * WHERE { ?a ?b ?c. }\", true, false);\n\n // Mock the streams factory so that we can tell if ...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(LocalQueryExecutor.class)", "modifier": "private static final", "original_string": "private static final Logger log = LoggerFactory.getLogger(LocalQueryExecutor.class);", "type": "Logger", "var_name": "log" }, { ...
{ "body": "@Override\n public void startQuery(final String ryaInstance, final StreamsQuery query) throws QueryExecutorException {\n requireNonNull(ryaInstance);\n requireNonNull(query);\n checkState(state() == State.RUNNING, \"The service must be RUNNING to execute this method.\");\n\n ...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_92
{ "fields": [ { "declarator": "reasoner", "modifier": "private", "original_string": "private LocalReasoner reasoner;", "type": "LocalReasoner", "var_name": "reasoner" }, { "declarator": "schema", "modifier": "private", "original_string": "private Schema sche...
{ "body": "@Test\n public void testInferSuperclass() throws Exception {\n schema.processTriple(TestUtils.statement(TestUtils.uri(\"Professor\"),\n RDFS.SUBCLASSOF, TestUtils.uri(\"Faculty\")));\n reasoner.processFact(TestUtils.fact(TestUtils.NODE, RDF.TYPE,\n TestUtils.uri(\"Pro...
{ "fields": [ { "declarator": "types", "modifier": "", "original_string": "TypeReasoner types;", "type": "TypeReasoner", "var_name": "types" }, { "declarator": "transitiveIncoming = new HashMap<>()", "modifier": "", "original_string": "Map<IRI, List<Fact>> t...
{ "body": "public void processFact(Fact fact) {\n Resource subject = fact.getSubject();\n IRI pred = fact.getPredicate();\n Value object = fact.getObject();\n // Whether this is a recursive call on a fact that's just been inferred\n boolean recursive = fact.getIteration() == current...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_93
{ "fields": [ { "declarator": "reasoner", "modifier": "private", "original_string": "private LocalReasoner reasoner;", "type": "LocalReasoner", "var_name": "reasoner" }, { "declarator": "schema", "modifier": "private", "original_string": "private Schema sche...
{ "body": "@Test\n public void testInferDomain() throws Exception {\n schema.processTriple(TestUtils.statement(TestUtils.uri(\"hasAlumnus\"),\n RDFS.DOMAIN, TestUtils.uri(\"University\")));\n reasoner.processFact(TestUtils.fact(TestUtils.NODE,\n TestUtils.uri(\"hasAlumnus\"), Te...
{ "fields": [ { "declarator": "types", "modifier": "", "original_string": "TypeReasoner types;", "type": "TypeReasoner", "var_name": "types" }, { "declarator": "transitiveIncoming = new HashMap<>()", "modifier": "", "original_string": "Map<IRI, List<Fact>> t...
{ "body": "public void processFact(Fact fact) {\n Resource subject = fact.getSubject();\n IRI pred = fact.getPredicate();\n Value object = fact.getObject();\n // Whether this is a recursive call on a fact that's just been inferred\n boolean recursive = fact.getIteration() == current...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_373
{ "fields": [], "file": "dao/mongodb.rya/src/test/java/org/apache/rya/mongodb/document/visibility/DocumentVisibilityAdapterTest.java", "identifier": "DocumentVisibilityAdapterTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testToDocument_or() {\n final DocumentVisibility dv = new DocumentVisibility(\"A|B|C\");\n final Document document = DocumentVisibilityAdapter.toDocument(dv);\n final Document expected = Document.parse(\n \"{\" +\n \"documentVisibility :...
{ "fields": [ { "declarator": "log = Logger.getLogger(DocumentVisibilityAdapter.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(DocumentVisibilityAdapter.class);", "type": "Logger", "var_name": "log" }, { ...
{ "body": "public static Document toDocument(final byte[] expression) {\n DocumentVisibility dv;\n if (expression == null) {\n dv = MongoDbRdfConstants.EMPTY_DV;\n } else {\n dv = new DocumentVisibility(expression);\n }\n return toDocument(dv);\n }", "clas...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_236
{ "fields": [], "file": "extras/rya.streams/query-manager/src/test/java/org/apache/rya/streams/querymanager/kafka/LocalQueryExecutorTest.java", "identifier": "LocalQueryExecutorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test(expected = IllegalStateException.class)\n public void startQuery_serviceNotStarted() throws Exception {\n final QueryExecutor executor = new LocalQueryExecutor(mock(CreateKafkaTopic.class), mock(KafkaStreamsFactory.class));\n executor.startQuery(\"rya\", new StreamsQuery(UUID.randomU...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(LocalQueryExecutor.class)", "modifier": "private static final", "original_string": "private static final Logger log = LoggerFactory.getLogger(LocalQueryExecutor.class);", "type": "Logger", "var_name": "log" }, { ...
{ "body": "@Override\n public void startQuery(final String ryaInstance, final StreamsQuery query) throws QueryExecutorException {\n requireNonNull(ryaInstance);\n requireNonNull(query);\n checkState(state() == State.RUNNING, \"The service must be RUNNING to execute this method.\");\n\n ...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_148
{ "fields": [ { "declarator": "ryaStatement", "modifier": "private static", "original_string": "private static RyaStatement ryaStatement;", "type": "RyaStatement", "var_name": "ryaStatement" }, { "declarator": "subjectCentricKey", "modifier": "private static", ...
{ "body": "@Test\n public void testDeserializeObjectRow() throws RyaTypeResolverException, IOException {\n RyaStatement deserialized = EntityCentricIndex.deserializeStatement(objectCentricKey, value);\n Assert.assertEquals(\"Deserialization of object-centric row failed to produce equivalent RyaStatem...
{ "fields": [ { "declarator": "logger = Logger.getLogger(EntityCentricIndex.class)", "modifier": "private static final", "original_string": "private static final Logger logger = Logger.getLogger(EntityCentricIndex.class);", "type": "Logger", "var_name": "logger" }, { "d...
{ "body": "public static RyaStatement deserializeStatement(final Key key, final Value value) throws RyaTypeResolverException, IOException {\n assert key != null;\n assert value != null;\n final byte[] entityBytes = key.getRowData().toArray();\n final byte[] predicateBytes = key.getColumnFa...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_324
{ "fields": [ { "declarator": "VF = SimpleValueFactory.getInstance()", "modifier": "private static final", "original_string": "private static final ValueFactory VF = SimpleValueFactory.getInstance();", "type": "ValueFactory", "var_name": "VF" }, { "declarator": "LANGUAG...
{ "body": "@Test\n public void testConvertLiteral_validLanguage() {\n final String expectedData = \"Hello\";\n for (final String language : LANGUAGE_CODES) {\n // This only checks the validity of the format. Not that the language tag actually exists.\n assertTrue(Literals.isVali...
{ "fields": [ { "declarator": "log = Logger.getLogger(RdfToRyaConversions.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(RdfToRyaConversions.class);", "type": "Logger", "var_name": "log" } ], "file": "common...
{ "body": "public static RyaType convertLiteral(final Literal literal) {\n if (literal == null) {\n return null;\n }\n if (literal.getDatatype() != null) {\n if (Literals.isLanguageLiteral(literal)) {\n final String language = literal.getLanguage().get();\n ...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_261
{ "fields": [ { "declarator": "VF = SimpleValueFactory.getInstance()", "modifier": "private static final", "original_string": "private static final ValueFactory VF = SimpleValueFactory.getInstance();", "type": "ValueFactory", "var_name": "VF" }, { "declarator": "adapter...
{ "body": "@Test\n public void equalsInstantAfterInterval_onlyTemporal() throws Exception {\n final String query =\n \"PREFIX time: <http://www.w3.org/2006/time#> \\n\"\n + \"PREFIX tempo: <tag:rya-rdf.org,2015:temporal#> \\n\"\n + \"SELECT ?event ?time \"\n ...
{ "fields": [ { "declarator": "LOG = Logger.getLogger(GeoTemporalMongoDBStorageStrategy.class)", "modifier": "private static final", "original_string": "private static final Logger LOG = Logger.getLogger(GeoTemporalMongoDBStorageStrategy.class);", "type": "Logger", "var_name": "LOG" ...
{ "body": "public Document getFilterQuery(final Collection<IndexingExpr> geoFilters, final Collection<IndexingExpr> temporalFilters) throws GeoTemporalIndexException {\n final QueryBuilder builder = QueryBuilder.start();\n if(!geoFilters.isEmpty()) {\n final Document[] geo = getGeoObjs(geoFil...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_332
{ "fields": [ { "declarator": "VF = SimpleValueFactory.getInstance()", "modifier": "private static final", "original_string": "private static final ValueFactory VF = SimpleValueFactory.getInstance();", "type": "ValueFactory", "var_name": "VF" }, { "declarator": "LANGUAG...
{ "body": "@Test\n public void testConvertLiteral_invalidLanguage() {\n final String expectedData = \"Hello\";\n final List<String> badLanguages = Lists.newArrayList(\n \"bad language\",\n \"en-\",\n \"en-US-\"\n );\n for (final String badLan...
{ "fields": [ { "declarator": "VF = SimpleValueFactory.getInstance()", "modifier": "private static final", "original_string": "private static final ValueFactory VF = SimpleValueFactory.getInstance();", "type": "ValueFactory", "var_name": "VF" } ], "file": "common/rya.api/src/...
{ "body": "public static Literal convertLiteral(final RyaType ryaType) {\n if (XMLSchema.STRING.equals(ryaType.getDataType())) {\n return VF.createLiteral(ryaType.getData());\n } else if (RDF.LANGSTRING.equals(ryaType.getDataType())) {\n final String data = ryaType.getData();\n ...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_298
{ "fields": [], "file": "common/rya.api.model/src/test/java/org/apache/rya/api/model/visibility/VisibilitySimplifierTest.java", "identifier": "VisibilitySimplifierTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void noneRequired() {\n final String simplified = new VisibilitySimplifier().simplify(\"u\");\n assertEquals(\"u\", simplified);\n }", "class_method_signature": "VisibilitySimplifierTest.noneRequired()", "constructor": false, "full_signature": "@Test public void non...
{ "fields": [], "file": "common/rya.api.model/src/main/java/org/apache/rya/api/model/visibility/VisibilitySimplifier.java", "identifier": "VisibilitySimplifier", "interfaces": "", "methods": [ { "class_method_signature": "VisibilitySimplifier.unionAndSimplify(final String vis1, final String vis2)", ...
{ "body": "public static String simplify(final String visibility) {\n requireNonNull(visibility);\n\n String last = visibility;\n String simplified = new String(new ColumnVisibility(visibility).flatten(), Charsets.UTF_8);\n\n while(!simplified.equals(last)) {\n last = simplified...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_277
{ "fields": [ { "declarator": "VF = SimpleValueFactory.getInstance()", "modifier": "private static final", "original_string": "private static final ValueFactory VF = SimpleValueFactory.getInstance();", "type": "ValueFactory", "var_name": "VF" } ], "file": "extras/rya.pcj.fluo...
{ "body": "@Test\n public void testConstructProjectionProjPred() throws MalformedQueryException {\n String query = \"select ?p where { <uri:Joe> ?p <uri:Bob> }\";\n \n SPARQLParser parser = new SPARQLParser();\n ParsedQuery pq = parser.parseQuery(query, null);\n List<StatementPat...
{ "fields": [ { "declarator": "log = Logger.getLogger(ConstructProjection.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(ConstructProjection.class);", "type": "Logger", "var_name": "log" }, { "declarat...
{ "body": "public RyaStatement projectBindingSet(VisibilityBindingSet vBs, Map<String, BNode> bNodes) {\n \n Preconditions.checkNotNull(vBs);\n Preconditions.checkNotNull(bNodes);\n \n Value subj = getValue(subjName, subjValue, vBs, bNodes);\n Value pred = getValue(predName, pre...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_109
{ "fields": [ { "declarator": "VF = SimpleValueFactory.getInstance()", "modifier": "private static final", "original_string": "private static final ValueFactory VF = SimpleValueFactory.getInstance();", "type": "ValueFactory", "var_name": "VF" }, { "declarator": "EX = \"...
{ "body": "@Test\n public void testNoSP() throws Exception {\n String text = \"CONSTRUCT {\\n\"\n + \" owl:Thing a owl:Class .\"\n + \" owl:Nothing a owl:Class .\"\n + \" owl:Nothing rdfs:subClassOf owl:Thing .\"\n + \"} WHERE { }\";\n Pa...
{ "fields": [ { "declarator": "antecedentStatementPatterns = new HashSet<>()", "modifier": "private", "original_string": "private Set<StatementPattern> antecedentStatementPatterns = new HashSet<>();", "type": "Set<StatementPattern>", "var_name": "antecedentStatementPatterns" } ...
{ "body": "public Set<StatementPattern> getAntecedents() {\n return antecedentStatementPatterns;\n }", "class_method_signature": "AntecedentVisitor.getAntecedents()", "constructor": false, "full_signature": "public Set<StatementPattern> getAntecedents()", "identifier": "getAntecedents", "invocatio...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_85
{ "fields": [ { "declarator": "VF = SimpleValueFactory.getInstance()", "modifier": "private static final", "original_string": "private static final ValueFactory VF = SimpleValueFactory.getInstance();", "type": "ValueFactory", "var_name": "VF" } ], "file": "extras/rya.indexing...
{ "body": "@Test(expected = IllegalArgumentException.class)\n public void fromString_varOrderTooShort() throws BindingSetConversionException {\n // Setup the String that will be converted.\n final String bindingSetString =\n \"http://a<<~>>http://www.w3.org/2001/XMLSchema#anyURI:::\" +...
{ "fields": [ { "declarator": "BINDING_DELIM = \":::\"", "modifier": "public static final", "original_string": "public static final String BINDING_DELIM = \":::\";", "type": "String", "var_name": "BINDING_DELIM" }, { "declarator": "TYPE_DELIM = \"<<~>>\"", "modifi...
{ "body": "@Override\n public String convert(final BindingSet bindingSet, final VariableOrder varOrder) {\n requireNonNull(bindingSet);\n requireNonNull(varOrder);\n\n // Convert each Binding to a String.\n final List<String> bindingStrings = new ArrayList<>();\n for(final String...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_365
{ "fields": [ { "declarator": "INPUT_AND_EXPECTED_BOOLEAN_EXPRESSIONS =\n ImmutableList.of(\n Pair.of(\"A\", \"A\"),\n Pair.of(\"A&B\", \"A&B\"),\n Pair.of(\"A|B\", \"A|B\"),\n Pair.of(\"A&(B|C)\", \"(A&B)|(A&C)\"),\n Pair.of(\"A|(B&C)\", \"A|(B&...
{ "body": "@Test (expected=NullPointerException.class)\n public void testTruthTableNullExpression() {\n final Node node = new DocumentVisibility(\"A\").getParseTree();\n final byte[] expression = null;\n DisjunctiveNormalFormConverter.createTruthTableInputs(node, expression);\n }", "class...
{ "fields": [ { "declarator": "log = Logger.getLogger(DisjunctiveNormalFormConverter.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(DisjunctiveNormalFormConverter.class);", "type": "Logger", "var_name": "log" } ...
{ "body": "public static byte[][] createTruthTableInputs(final Node node, final byte[] expression) {\n final List<String> terms = findNodeTerms(node, expression);\n return createTruthTableInputs(terms);\n }", "class_method_signature": "DisjunctiveNormalFormConverter.createTruthTableInputs(final Nod...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_6
{ "fields": [], "file": "extras/shell/src/test/java/org/apache/rya/shell/util/RyaDetailsFormatterTest.java", "identifier": "RyaDetailsFormatterTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void format_mongo() {\n // This test failed if the default timezone was not EST, so now it's fixed at EST.\n TimeZone.setDefault(TimeZone.getTimeZone(\"America/New_York\"));\n // Create the object that will be formatted.\n final RyaDetails details = RyaDetails....
{ "fields": [], "file": "extras/shell/src/main/java/org/apache/rya/shell/util/RyaDetailsFormatter.java", "identifier": "RyaDetailsFormatter", "interfaces": "", "methods": [ { "class_method_signature": "RyaDetailsFormatter.format(final StorageType storageType, final RyaDetails details)", "const...
{ "body": "public String format(final StorageType storageType, final RyaDetails details) {\n requireNonNull(details);\n\n final StringBuilder report = new StringBuilder();\n\n report.append(\"General Metadata:\\n\");\n report.append(\" Instance Name: \").append(details.getRyaInstanceName(...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_220
{ "fields": [ { "declarator": "accumuloConn = null", "modifier": "protected static", "original_string": "protected static Connector accumuloConn = null;", "type": "Connector", "var_name": "accumuloConn" }, { "declarator": "ryaRepo = null", "modifier": "protected",...
{ "body": "@Test\n public void accumuloIndexSetTestWithEmptyBindingSet() throws RepositoryException, PcjException, TableNotFoundException,\n RyaTypeResolverException, MalformedQueryException, SailException, QueryEvaluationException, AccumuloException, AccumuloSecurityException {\n // Load some Triples in...
{ "fields": [ { "declarator": "accCon", "modifier": "private final", "original_string": "private final Connector accCon;", "type": "Connector", "var_name": "accCon" }, { "declarator": "tablename", "modifier": "private final", "original_string": "private fina...
{ "body": "@Override\n\tpublic CloseableIteration<BindingSet, QueryEvaluationException> evaluate(\n\t\t\tfinal BindingSet bindingset) throws QueryEvaluationException {\n\t\treturn this.evaluate(Collections.singleton(bindingset));\n\t}", "class_method_signature": "AccumuloIndexSet.evaluate(\n\t\t\tfinal BindingSet b...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_11
{ "fields": [], "file": "extras/shell/src/test/java/org/apache/rya/shell/RyaStreamsCommandsTest.java", "identifier": "RyaStreamsCommandsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void addQuery_userAbortsSparqlPrompt() throws Exception {\n // Mock the object that performs the rya streams operation.\n final RyaStreamsClient mockClient = mock(RyaStreamsClient.class);\n final AddQuery addQuery = mock(AddQuery.class);\n when(mockClient.getAd...
{ "fields": [ { "declarator": "STREAMS_CONFIGURE_CMD = \"streams-configure\"", "modifier": "public static final", "original_string": "public static final String STREAMS_CONFIGURE_CMD = \"streams-configure\";", "type": "String", "var_name": "STREAMS_CONFIGURE_CMD" }, { "...
{ "body": "@CliCommand(value = STREAM_QUERIES_ADD_CMD, help = \"Add a SPARQL query to the Rya Streams subsystem.\")\n public String addQuery(\n @CliOption(key = {\"inactive\"}, mandatory = false, unspecifiedDefaultValue = \"false\", specifiedDefaultValue = \"true\",\n help = \"Sett...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_172
{ "fields": [ { "declarator": "provider", "modifier": "private final", "original_string": "private final AbstractPcjIndexSetProvider provider;", "type": "AbstractPcjIndexSetProvider", "var_name": "provider" } ], "file": "extras/indexing/src/test/java/org/apache/rya/indexing/I...
{ "body": "@Test\n public void testEvaluateTwoIndexTwoVarOrder2()\n throws Exception {\n\n\n final String indexSparqlString = \"\"//\n + \"SELECT ?e ?l ?c \" //\n + \"{\" //\n + \" ?e a ?c . \"//\n + \" ?e <http://www.w3.org/2000/01/r...
{ "fields": [ { "declarator": "omitCrossProd = false", "modifier": "private", "original_string": "private boolean omitCrossProd = false;", "type": "boolean", "var_name": "omitCrossProd" } ], "file": "extras/indexing/src/main/java/org/apache/rya/indexing/IndexPlanValidator/Ind...
{ "body": "@Override\n public boolean isValid(TupleExpr te) {\n\n TupleValidateVisitor tv = new TupleValidateVisitor();\n te.visit(tv);\n\n return tv.isValid();\n }", "class_method_signature": "IndexPlanValidator.isValid(TupleExpr te)", "constructor": false, "full_signature": "@Overri...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_125
{ "fields": [], "file": "extras/rya.export/export.client/src/test/java/org/apache/rya/export/client/conf/MergeConfigurationCLITest.java", "identifier": "MergeConfigurationCLITest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testCreate1ConfigurationFromFile() throws MergeConfigurationException, JAXBException {\n\n final MergeToolConfiguration conf = MergeConfigurationCLI.createConfigurationFromFile(new File(\"conf/config.xml\"));\n assertEquals(\"10.10.10.100\", conf.getParentHostname());\n...
{ "fields": [ { "declarator": "CONFIG_OPTION = new Option(\"c\", true, \"Defines the configuration file for the Merge Tool to use.\")", "modifier": "private static final", "original_string": "private static final Option CONFIG_OPTION = new Option(\"c\", true, \"Defines the configuration file for...
{ "body": "public static MergeToolConfiguration createConfigurationFromFile(final File configFile) throws MergeConfigurationException {\n try {\n final JAXBContext context = JAXBContext.newInstance(DBType.class, MergeToolConfiguration.class, AccumuloMergeToolConfiguration.class, TimestampMergePolicy...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_46
{ "fields": [], "file": "extras/shell/src/test/java/org/apache/rya/shell/RyaAdminCommandsTest.java", "identifier": "RyaAdminCommandsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void installWithAccumuloParameters() throws DuplicateInstanceNameException, RyaClientException, IOException {\n // Mock the object that performs the install operation.\n final Install mockInstall = mock(Install.class);\n\n final RyaClient mockCommands = mock(RyaClient...
{ "fields": [ { "declarator": "CREATE_PCJ_CMD = \"create-pcj\"", "modifier": "public static final", "original_string": "public static final String CREATE_PCJ_CMD = \"create-pcj\";", "type": "String", "var_name": "CREATE_PCJ_CMD" }, { "declarator": "CREATE_PERIODIC_PCJ_C...
{ "body": "@CliCommand(value = INSTALL_ACCUMULO_PARAMETERS_CMD, help = \"Create a new Accumulo instance of Rya with command line parameters.\")\n public String installWithAccumuloParameters(\n @CliOption(key = {\"instanceName\"}, mandatory = true, help = \"The name of the Rya instance to create.\")\n ...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_349
{ "fields": [], "file": "common/rya.api/src/test/java/org/apache/rya/api/utils/QueryInvestigatorTest.java", "identifier": "QueryInvestigatorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test(expected = MalformedQueryException.class)\n public void isInsert_false_malformed() throws MalformedQueryException {\n assertFalse( QueryInvestigator.isInsertWhere(\"not sparql\") );\n }", "class_method_signature": "QueryInvestigatorTest.isInsert_false_malformed()", "constructor": fal...
{ "fields": [ { "declarator": "PARSER = new SPARQLParser()", "modifier": "private static final", "original_string": "private static final SPARQLParser PARSER = new SPARQLParser();", "type": "SPARQLParser", "var_name": "PARSER" } ], "file": "common/rya.api/src/main/java/org/ap...
{ "body": "public static boolean isInsertWhere(final String sparql) throws MalformedQueryException {\n requireNonNull(sparql);\n\n try {\n // Inserts are updated, so try to create a ParsedUpdate.\n PARSER.parseUpdate(sparql, null);\n\n // Check to see if the SPARQL looks...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_50
{ "fields": [], "file": "extras/shell/src/test/java/org/apache/rya/shell/RyaAdminCommandsTest.java", "identifier": "RyaAdminCommandsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void addUser() throws Exception {\n // Mock the object that performs the Add User command.\n final AddUser mockAddUser = mock(AddUser.class);\n\n final RyaClient mockClient = mock(RyaClient.class);\n when(mockClient.getAddUser()).thenReturn( java.util.Optional....
{ "fields": [ { "declarator": "CREATE_PCJ_CMD = \"create-pcj\"", "modifier": "public static final", "original_string": "public static final String CREATE_PCJ_CMD = \"create-pcj\";", "type": "String", "var_name": "CREATE_PCJ_CMD" }, { "declarator": "CREATE_PERIODIC_PCJ_C...
{ "body": "@CliCommand(value = ADD_USER_CMD, help = \"Adds an authorized user to the Rya instance.\")\n public void addUser(\n @CliOption(key = {\"username\"}, mandatory = true, help = \"The username of the user that will be granted access.\")\n final String username) {\n // Fetch the ...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_133
{ "fields": [ { "declarator": "accCon", "modifier": "private", "original_string": "private Connector accCon;", "type": "Connector", "var_name": "accCon" }, { "declarator": "tablename = \"table\"", "modifier": "", "original_string": "String tablename = \"tabl...
{ "body": "@Test\n public void testOneHundredColumnSubjObjPrefixFourTerms() throws Exception {\n\n BatchWriter bw = null;\n\n bw = accCon.createBatchWriter(tablename, 500L * 1024L * 1024L, Long.MAX_VALUE, 30);\n\n for (int i = 0; i < 100; i++) {\n\n Mutation m = new Mutation(new Tex...
{ "fields": [ { "declarator": "nullText = new Text()", "modifier": "protected", "original_string": "protected Text nullText = new Text();", "type": "Text", "var_name": "nullText" }, { "declarator": "log = Logger.getLogger(DocumentIndexIntersectingIterator.class)", ...
{ "body": "public static void setColumnFamilies(IteratorSetting cfg, TextColumn[] columns) {\n if (columns.length < 2)\n throw new IllegalArgumentException(\"Must supply at least two terms to intersect\");\n \n boolean[] prefix = new boolean[columns.length];\n \n for(int i = 0; i < columns.length;...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_164
{ "fields": [ { "declarator": "conf", "modifier": "", "original_string": "Configuration conf;", "type": "Configuration", "var_name": "conf" }, { "declarator": "tIndexer", "modifier": "", "original_string": "AccumuloTemporalIndexer tIndexer;", "type": "...
{ "body": "@Test\n public void testGetIndexablePredicates() throws AccumuloException, AccumuloSecurityException, TableNotFoundException, TableExistsException, IOException {\n Set<IRI> p = tIndexer.getIndexablePredicates();\n Assert.assertEquals(\"number of predicates returned:\", 3, p.size());\n }...
{ "fields": [ { "declarator": "TABLE_SUFFIX = \"temporal\"", "modifier": "private static final", "original_string": "private static final String TABLE_SUFFIX = \"temporal\";", "type": "String", "var_name": "TABLE_SUFFIX" }, { "declarator": "logger = Logger.getLogger(Acc...
{ "body": "@Override\n public Set<IRI> getIndexablePredicates() {\n\n return validPredicates;\n }", "class_method_signature": "AccumuloTemporalIndexer.getIndexablePredicates()", "constructor": false, "full_signature": "@Override public Set<IRI> getIndexablePredicates()", "identifier": "getIndexab...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_308
{ "fields": [], "file": "common/rya.api.function/src/test/java/org/apache/rya/api/function/sp/StatementPatternMatcherTest.java", "identifier": "StatementPatternMatcherTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void doesNotMatchSubject() throws Exception {\n // Create the matcher against a pattern that matches a specific subject.\n final StatementPatternMatcher matcher = new StatementPatternMatcher(getSp(\n \"SELECT * WHERE {\" +\n \"<urn:Alice> ?p...
{ "fields": [ { "declarator": "pattern", "modifier": "private final", "original_string": "private final StatementPattern pattern;", "type": "StatementPattern", "var_name": "pattern" } ], "file": "common/rya.api.function/src/main/java/org/apache/rya/api/function/sp/StatementPa...
{ "body": "public Optional<BindingSet> match(final Statement statement) {\n requireNonNull(statement);\n\n // Setup the resulting binding set that could be built from this Statement.\n final QueryBindingSet bs = new QueryBindingSet();\n\n if(matchesValue(pattern.getSubjectVar(), statement....
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_390
{ "fields": [], "file": "dao/mongodb.rya/src/test/java/org/apache/rya/mongodb/instance/MongoDetailsAdapterTest.java", "identifier": "MongoDetailsAdapterTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void ryaDetailsToMongoTest() {\n // Convert the Details into a Mongo DB OBject.\n final RyaDetails details = RyaDetails.builder()\n .setRyaInstanceName(\"test\")\n .setRyaVersion(\"1\")\n .setEntityCentricIndexDetails(new EntityCe...
{ "fields": [ { "declarator": "INSTANCE_KEY = \"instanceName\"", "modifier": "public static final", "original_string": "public static final String INSTANCE_KEY = \"instanceName\";", "type": "String", "var_name": "INSTANCE_KEY" }, { "declarator": "VERSION_KEY = \"version...
{ "body": "public static Document toDocument(final RyaDetails details) {\n requireNonNull(details);\n\n final Document doc = new Document()\n .append(INSTANCE_KEY, details.getRyaInstanceName())\n .append(VERSION_KEY, details.getRyaVersion())\n .append(ENTITY_...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_70
{ "fields": [ { "declarator": "VF = SimpleValueFactory.getInstance()", "modifier": "private static final", "original_string": "private static final ValueFactory VF = SimpleValueFactory.getInstance();", "type": "ValueFactory", "var_name": "VF" } ], "file": "extras/rya.indexing...
{ "body": "@Test\n\tpublic void basicLongMixLiteralBsTest() throws BindingSetConversionException {\n\t\tfinal QueryBindingSet bs = new QueryBindingSet();\n\t\tbs.addBinding(\"X\", VF.createLiteral(\"literal1\"));\n\t\tbs.addBinding(\"Y\", VF.createLiteral(\"5\", VF.createIRI(\"http://www.w3.org/2001/XMLSchema#integer...
{ "fields": [], "file": "extras/rya.indexing.pcj/src/main/java/org/apache/rya/indexing/pcj/storage/accumulo/AccumuloPcjSerializer.java", "identifier": "AccumuloPcjSerializer", "interfaces": "implements BindingSetConverter<byte[]>", "methods": [ { "class_method_signature": "AccumuloPcjSerializer.conv...
{ "body": "@Override\n public byte[] convert(BindingSet bindingSet, VariableOrder varOrder) throws BindingSetConversionException {\n checkNotNull(bindingSet);\n checkNotNull(varOrder);\n\n // A list that holds all of the byte segments that will be concatenated at the end.\n // This mini...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_113
{ "fields": [], "file": "extras/rya.forwardchain/src/test/java/org/apache/rya/forwardchain/rule/ConstructConsequentVisitorTest.java", "identifier": "ConstructConsequentVisitorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testMultiProjection() {\n Extension extension = new Extension(new SingletonSet(),\n new ExtensionElem(new ValueConstant(RDF.TYPE), \"rdftype\"),\n new ExtensionElem(new ValueConstant(OWL.OBJECTPROPERTY), \"owlprop\"),\n new Extensio...
{ "fields": [ { "declarator": "consequentStatementPatterns = new HashSet<>()", "modifier": "private", "original_string": "private Set<StatementPattern> consequentStatementPatterns = new HashSet<>();", "type": "Set<StatementPattern>", "var_name": "consequentStatementPatterns" }, ...
{ "body": "public Set<StatementPattern> getConsequents() {\n return consequentStatementPatterns;\n }", "class_method_signature": "ConstructConsequentVisitor.getConsequents()", "constructor": false, "full_signature": "public Set<StatementPattern> getConsequents()", "identifier": "getConsequents", "...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_328
{ "fields": [ { "declarator": "VF = SimpleValueFactory.getInstance()", "modifier": "private static final", "original_string": "private static final ValueFactory VF = SimpleValueFactory.getInstance();", "type": "ValueFactory", "var_name": "VF" }, { "declarator": "LANGUAG...
{ "body": "@Test (expected=NullPointerException.class)\n public void testConvertLiteral_null() {\n RyaToRdfConversions.convertLiteral(null);\n }", "class_method_signature": "RyaToRdfConversionsTest.testConvertLiteral_null()", "constructor": false, "full_signature": "@Test (expected=NullPointerExcep...
{ "fields": [ { "declarator": "VF = SimpleValueFactory.getInstance()", "modifier": "private static final", "original_string": "private static final ValueFactory VF = SimpleValueFactory.getInstance();", "type": "ValueFactory", "var_name": "VF" } ], "file": "common/rya.api/src/...
{ "body": "public static Literal convertLiteral(final RyaType ryaType) {\n if (XMLSchema.STRING.equals(ryaType.getDataType())) {\n return VF.createLiteral(ryaType.getData());\n } else if (RDF.LANGSTRING.equals(ryaType.getDataType())) {\n final String data = ryaType.getData();\n ...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_282
{ "fields": [ { "declarator": "DELIM = \"\\u0000\"", "modifier": "private static final", "original_string": "private static final String DELIM = \"\\u0000\";", "type": "String", "var_name": "DELIM" }, { "declarator": "EMPTY_BYTE = new byte[0]", "modifier": "privat...
{ "body": "@Test\n public void testOptimizeQ4() throws Exception {\n\n RdfEvalStatsDAO<RdfCloudTripleStoreConfiguration> res = new ProspectorServiceEvalStatsDAO(conn, arc);\n AccumuloSelectivityEvalDAO accc = new AccumuloSelectivityEvalDAO();\n accc.setConf(arc);\n accc.setConnector(conn);\n accc.setR...
{ "fields": [ { "declarator": "statistics", "modifier": "private final", "original_string": "private final EvaluationStatistics statistics;", "type": "EvaluationStatistics", "var_name": "statistics" }, { "declarator": "eval", "modifier": "private final", "or...
{ "body": "public void optimize(TupleExpr tupleExpr, Dataset dataset, BindingSet bindings) {\n tupleExpr.visit(new JoinVisitor());\n }", "class_method_signature": "QueryJoinSelectOptimizer.optimize(TupleExpr tupleExpr, Dataset dataset, BindingSet bindings)", "constructor": false, "full_signature": "public v...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_144
{ "fields": [], "file": "extras/indexing/src/test/java/org/apache/rya/sail/config/RyaAccumuloSailFactoryTest.java", "identifier": "RyaAccumuloSailFactoryTest", "interfaces": "", "superclass": "" }
{ "body": "@Ignore\n @Test\n public void testCreateAccumuloSail() throws Exception {\n SailRepositoryFactory f = new SailRepositoryFactory();\n Repository r = f.getRepository(getConfig());\n r.initialize();\n RepositoryConnection rc = r.getConnection();\n rc.close();\n }", ...
{ "fields": [ { "declarator": "SAIL_TYPE = \"rya:RyaAccumuloSail\"", "modifier": "public static final", "original_string": "public static final String SAIL_TYPE = \"rya:RyaAccumuloSail\";", "type": "String", "var_name": "SAIL_TYPE" } ], "file": "extras/indexing/src/main/java/...
{ "body": "@Override\n public SailImplConfig getConfig() {\n return new RyaAccumuloSailConfig();\n }", "class_method_signature": "RyaAccumuloSailFactory.getConfig()", "constructor": false, "full_signature": "@Override public SailImplConfig getConfig()", "identifier": "getConfig", "invocations":...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_27
{ "fields": [], "file": "extras/shell/src/test/java/org/apache/rya/shell/RyaCommandsTest.java", "identifier": "RyaCommandsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test(expected = RuntimeException.class)\n public void testLoadData_specifyInvalidFilenameFormat() throws InstanceDoesNotExistException, RyaClientException, IOException {\n // Mock the object that performs the create operation.\n final String instanceName = \"unitTest\";\n final Str...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(RyaCommands.class)", "modifier": "private static final", "original_string": "private static final Logger log = LoggerFactory.getLogger(RyaCommands.class);", "type": "Logger", "var_name": "log" }, { "declarator...
{ "body": "@CliCommand(value = LOAD_DATA_CMD, help = \"Loads RDF Statement data from a local file to the connected Rya instance.\")\n public String loadData(\n @CliOption(key = { \"file\" }, mandatory = true, help = \"A local file containing RDF Statements that is to be loaded.\")\n final Str...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_294
{ "fields": [ { "declarator": "user = \"user\"", "modifier": "private", "original_string": "private String user = \"user\";", "type": "String", "var_name": "user" }, { "declarator": "pwd = \"pwd\"", "modifier": "private", "original_string": "private String p...
{ "body": "@Test\n public void testContext() throws Exception {\n RyaIRI test1 = RdfToRyaConversions.convertIRI(VF.createIRI(litdupsNS, \"test1\"));\n RyaIRI pred1 = RdfToRyaConversions.convertIRI(VF.createIRI(litdupsNS, \"pred1\"));\n RyaIRI cntxt = RdfToRyaConversions.convertIRI(VF.createIRI...
{ "fields": [], "file": "mapreduce/src/main/java/org/apache/rya/accumulo/mr/tools/AccumuloRdfCountTool.java", "identifier": "AccumuloRdfCountTool", "interfaces": "implements Tool", "methods": [ { "class_method_signature": "AccumuloRdfCountTool.main(final String[] args)", "constructor": false, ...
{ "body": "public static void main(final String[] args) {\n try {\n\n ToolRunner.run(new Configuration(), new AccumuloRdfCountTool(), args);\n } catch (final Exception e) {\n e.printStackTrace();\n }\n }", "class_method_signature": "AccumuloRdfCountTool.main(final Strin...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_31
{ "fields": [], "file": "extras/shell/src/test/java/org/apache/rya/shell/RyaCommandsTest.java", "identifier": "RyaCommandsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testSparqlQuery_fromPrompt_cancelled() throws InstanceDoesNotExistException, RyaClientException, IOException {\n // Mock the object that performs the create operation.\n final String instanceName = \"unitTest\";\n final String queryFile = null;\n final Str...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(RyaCommands.class)", "modifier": "private static final", "original_string": "private static final Logger log = LoggerFactory.getLogger(RyaCommands.class);", "type": "Logger", "var_name": "log" }, { "declarator...
{ "body": "@CliCommand(value = SPARQL_QUERY_CMD, help = \"Executes the provided SPARQL Query on the connected Rya instance.\")\n public String sparqlQuery(\n @CliOption(key = { \"file\" }, mandatory = false, help = \"A local file containing the SPARQL Query that is to be read and executed.\")\n ...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_152
{ "fields": [ { "declarator": "conf", "modifier": "", "original_string": "Configuration conf;", "type": "Configuration", "var_name": "conf" }, { "declarator": "tIndexer", "modifier": "", "original_string": "AccumuloTemporalIndexer tIndexer;", "type": "...
{ "body": "@Test\n public void testStoreStatementsSameTime() throws IOException, NoSuchAlgorithmException, AccumuloException, AccumuloSecurityException, TableNotFoundException, TableExistsException {\n ValueFactory vf = SimpleValueFactory.getInstance();\n IRI pred1_atTime = vf.createIRI(URI_PROPERTY_...
{ "fields": [ { "declarator": "TABLE_SUFFIX = \"temporal\"", "modifier": "private static final", "original_string": "private static final String TABLE_SUFFIX = \"temporal\";", "type": "String", "var_name": "TABLE_SUFFIX" }, { "declarator": "logger = Logger.getLogger(Acc...
{ "body": "private void storeStatement(final Statement statement) throws IOException, IllegalArgumentException {\n \tObjects.requireNonNull(temporalIndexBatchWriter,\"This is not initialized for writing. Must call setMultiTableBatchWriter() and init().\");\n // if the predicate list is empty, accept all pr...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_369
{ "fields": [ { "declarator": "INPUT_AND_EXPECTED_BOOLEAN_EXPRESSIONS =\n ImmutableList.of(\n Pair.of(\"A\", \"A\"),\n Pair.of(\"A&B\", \"A&B\"),\n Pair.of(\"A|B\", \"A|B\"),\n Pair.of(\"A&(B|C)\", \"(A&B)|(A&C)\"),\n Pair.of(\"A|(B&C)\", \"A|(B&...
{ "body": "@Test\n public void testTruthTableSize3FromNode() {\n final DocumentVisibility dv = new DocumentVisibility(\"(A&B)|(A&C)\");\n final byte[][] truthTable = DisjunctiveNormalFormConverter.createTruthTableInputs(dv.getParseTree(), dv.getExpression());\n final byte[][] expected =\n ...
{ "fields": [ { "declarator": "log = Logger.getLogger(DisjunctiveNormalFormConverter.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(DisjunctiveNormalFormConverter.class);", "type": "Logger", "var_name": "log" } ...
{ "body": "public static byte[][] createTruthTableInputs(final Node node, final byte[] expression) {\n final List<String> terms = findNodeTerms(node, expression);\n return createTruthTableInputs(terms);\n }", "class_method_signature": "DisjunctiveNormalFormConverter.createTruthTableInputs(final Nod...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_386
{ "fields": [ { "declarator": "VF = SimpleValueFactory.getInstance()", "modifier": "private static final", "original_string": "private static final ValueFactory VF = SimpleValueFactory.getInstance();", "type": "ValueFactory", "var_name": "VF" }, { "declarator": "LUBM = ...
{ "body": "@Test\n public void testExtend() {\n final AggregationPipelineQueryNode base = new AggregationPipelineQueryNode(\n collection,\n new LinkedList<>(),\n Sets.newHashSet(\"x\", \"y\"),\n Sets.newHashSet(\"x\", \"y\", \"opt\"),\n ...
{ "fields": [ { "declarator": "serialVersionUID = 1L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = 1L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "VALUES = \"<VALUES>\"", "modifier":...
{ "body": "public boolean extend(final Iterable<ExtensionElem> extensionElements) {\n final List<Bson> valueFields = new LinkedList<>();\n final List<Bson> hashFields = new LinkedList<>();\n final List<Bson> typeFields = new LinkedList<>();\n for (final String varName : bindingNames) {\n ...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_105
{ "fields": [ { "declarator": "VF = SimpleValueFactory.getInstance()", "modifier": "private static final", "original_string": "private static final ValueFactory VF = SimpleValueFactory.getInstance();", "type": "ValueFactory", "var_name": "VF" }, { "declarator": "EX = \"...
{ "body": "@Test\n public void testSelectQuery() throws Exception {\n String text = \"PREFIX foaf: <\" + FOAF.NAMESPACE + \">\\n\"\n + \"SELECT * WHERE {\\n\"\n + \" ?x a foaf:Person .\\n\"\n + \" ?y a foaf:Person .\\n\"\n + \" ?x foaf:knows ?y ...
{ "fields": [ { "declarator": "antecedentStatementPatterns = new HashSet<>()", "modifier": "private", "original_string": "private Set<StatementPattern> antecedentStatementPatterns = new HashSet<>();", "type": "Set<StatementPattern>", "var_name": "antecedentStatementPatterns" } ...
{ "body": "public Set<StatementPattern> getAntecedents() {\n return antecedentStatementPatterns;\n }", "class_method_signature": "AntecedentVisitor.getAntecedents()", "constructor": false, "full_signature": "public Set<StatementPattern> getAntecedents()", "identifier": "getAntecedents", "invocatio...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_66
{ "fields": [ { "declarator": "VF = SimpleValueFactory.getInstance()", "modifier": "private static final", "original_string": "private static final ValueFactory VF = SimpleValueFactory.getInstance();", "type": "ValueFactory", "var_name": "VF" } ], "file": "extras/rya.indexing...
{ "body": "@Test\n\tpublic void basicShortUriBsTest() throws BindingSetConversionException {\n\t\tfinal QueryBindingSet bs = new QueryBindingSet();\n\t\tbs.addBinding(\"X\", VF.createIRI(\"http://uri1\"));\n\t\tbs.addBinding(\"Y\", VF.createIRI(\"http://uri2\"));\n\t\tfinal VariableOrder varOrder = new VariableOrder(...
{ "fields": [], "file": "extras/rya.indexing.pcj/src/main/java/org/apache/rya/indexing/pcj/storage/accumulo/AccumuloPcjSerializer.java", "identifier": "AccumuloPcjSerializer", "interfaces": "implements BindingSetConverter<byte[]>", "methods": [ { "class_method_signature": "AccumuloPcjSerializer.conv...
{ "body": "@Override\n public byte[] convert(BindingSet bindingSet, VariableOrder varOrder) throws BindingSetConversionException {\n checkNotNull(bindingSet);\n checkNotNull(varOrder);\n\n // A list that holds all of the byte segments that will be concatenated at the end.\n // This mini...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_89
{ "fields": [ { "declarator": "VF = SimpleValueFactory.getInstance()", "modifier": "private static final", "original_string": "private static final ValueFactory VF = SimpleValueFactory.getInstance();", "type": "ValueFactory", "var_name": "VF" } ], "file": "extras/rya.indexing...
{ "body": "@Test\n public void pcjToMetadata() throws Exception {\n final MongoPcjDocuments docConverter = new MongoPcjDocuments(getMongoClient(), conf.getRyaInstanceName());\n final String sparql = \"SELECT * WHERE { ?a <http://isA> ?b }\";\n final Document actual = docConverter.makeMetadataD...
{ "fields": [ { "declarator": "PCJ_COLLECTION_NAME = \"pcjs\"", "modifier": "public static final", "original_string": "public static final String PCJ_COLLECTION_NAME = \"pcjs\";", "type": "String", "var_name": "PCJ_COLLECTION_NAME" }, { "declarator": "CARDINALITY_FIELD ...
{ "body": "public Document makeMetadataDocument(final String pcjId, final String sparql) throws PCJStorageException {\n requireNonNull(pcjId);\n requireNonNull(sparql);\n\n final Set<VariableOrder> varOrders;\n try {\n varOrders = pcjVarOrderFactory.makeVarOrders(sparql);\n ...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_257
{ "fields": [ { "declarator": "VF = SimpleValueFactory.getInstance()", "modifier": "private static final", "original_string": "private static final ValueFactory VF = SimpleValueFactory.getInstance();", "type": "ValueFactory", "var_name": "VF" }, { "declarator": "adapter...
{ "body": "@Test\n public void emptyFilters_test() throws Exception {\n final List<IndexingExpr> geoFilters = new ArrayList<>();\n final List<IndexingExpr> temporalFilters = new ArrayList<>();\n final Document actual = adapter.getFilterQuery(geoFilters, temporalFilters);\n final String ...
{ "fields": [ { "declarator": "LOG = Logger.getLogger(GeoTemporalMongoDBStorageStrategy.class)", "modifier": "private static final", "original_string": "private static final Logger LOG = Logger.getLogger(GeoTemporalMongoDBStorageStrategy.class);", "type": "Logger", "var_name": "LOG" ...
{ "body": "public Document getFilterQuery(final Collection<IndexingExpr> geoFilters, final Collection<IndexingExpr> temporalFilters) throws GeoTemporalIndexException {\n final QueryBuilder builder = QueryBuilder.start();\n if(!geoFilters.isEmpty()) {\n final Document[] geo = getGeoObjs(geoFil...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_312
{ "fields": [], "file": "common/rya.api.function/src/test/java/org/apache/rya/api/function/sp/StatementPatternMatcherTest.java", "identifier": "StatementPatternMatcherTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void doesNotMatchObject() throws Exception {\n // Create the matcher against a pattern that matches a specific object.\n final StatementPatternMatcher matcher = new StatementPatternMatcher(getSp(\n \"SELECT * WHERE {\" +\n \"?s ?p <urn:Bob> ...
{ "fields": [ { "declarator": "pattern", "modifier": "private final", "original_string": "private final StatementPattern pattern;", "type": "StatementPattern", "var_name": "pattern" } ], "file": "common/rya.api.function/src/main/java/org/apache/rya/api/function/sp/StatementPa...
{ "body": "public Optional<BindingSet> match(final Statement statement) {\n requireNonNull(statement);\n\n // Setup the resulting binding set that could be built from this Statement.\n final QueryBindingSet bs = new QueryBindingSet();\n\n if(matchesValue(pattern.getSubjectVar(), statement....
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_191
{ "fields": [ { "declarator": "q7 = \"\"//\n\t\t\t+ \"SELECT ?s ?t ?u \" //\n\t\t\t+ \"{\" //\n\t\t\t+ \" ?s a ?t .\"//\n\t\t\t+ \" ?t <http://www.w3.org/2000/01/rdf-schema#label> ?u .\"//\n\t\t\t+ \" ?u <uri:talksTo> ?s . \"//\n\t\t\t+ \"}\"", "modifier": "private", "original_string": "priva...
{ "body": "@Test\n\tpublic void largeQueryFourtyIndexTest() {\n\n\t\tString q1 = \"\"//\n\t\t\t\t+ \"SELECT ?f ?m ?d ?e ?l ?c ?n ?o ?p ?a ?h ?r \" //\n\t\t\t\t+ \"{\" //\n\t\t\t\t+ \" ?f a ?m .\"//\n\t\t\t\t+ \" ?e a ?l .\"//\n\t\t\t\t+ \" ?n a ?o .\"//\n\t\t\t\t+ \" ?a a ?h .\"//\n\t\t\t\t+ \" ?m <http://www.w3...
{ "fields": [ { "declarator": "query", "modifier": "private", "original_string": "private TupleExpr query;", "type": "TupleExpr", "var_name": "query" }, { "declarator": "queryNodeCount = 0", "modifier": "private", "original_string": "private int queryNodeCou...
{ "body": "@Override\n public TupleExpr getThreshholdQueryPlan(Iterator<TupleExpr> tuples, double threshhold, double indexWeight,\n double commonVarWeight, double extProdWeight) {\n\n if (threshhold < 0 || threshhold > 1) {\n throw new IllegalArgumentException(\"Threshhold must be betw...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_200
{ "fields": [], "file": "extras/indexing/src/test/java/org/apache/rya/indexing/IndexPlanValidator/ValidIndexCombinationGeneratorTest.java", "identifier": "ValidIndexCombinationGeneratorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void overlappingFilterIndex() {\n\n\t\tString q5 = \"\"//\n\t\t\t\t+ \"SELECT ?s ?t \" //\n\t\t\t\t+ \"{\" //\n\t\t\t\t+ \" ?s a \\\"Person\\\" .\" //\n\t\t\t\t+ \" ?t a \\\"Student\\\" .\"//\n\t\t\t\t+ \"}\";//\n\n\t\tString q4 = \"\"//\n\t\t\t\t+ \"SELECT ?s ?t \" //\n\t\t\t\t+ \"{\" //...
{ "fields": [ { "declarator": "invalidCombos = Sets.newTreeSet()", "modifier": "private", "original_string": "private Set<String> invalidCombos = Sets.newTreeSet();", "type": "Set<String>", "var_name": "invalidCombos" }, { "declarator": "spFilterSet", "modifier": ...
{ "body": "public Iterator<List<ExternalTupleSet>> getValidIndexCombos(\n\t\t\tList<ExternalTupleSet> indexSet) {\n\n\t\tCollections.shuffle(indexSet);\n\t\tfinal List<ExternalTupleSet> list = indexSet;\n\t\tfinal Iterator<List<Integer>> iter = getValidCombos(list);\n\n\t\treturn new Iterator<List<ExternalTupleSet>>(...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_345
{ "fields": [], "file": "common/rya.api/src/test/java/org/apache/rya/api/utils/QueryInvestigatorTest.java", "identifier": "QueryInvestigatorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void isInsert_true() throws Exception {\n final String sparql =\n \"PREFIX Sensor: <http://example.com/Equipment.owl#> \" +\n \"INSERT { \" +\n \"?subject Sensor:test2 ?newValue \" +\n \"} WHERE {\" +\n ...
{ "fields": [ { "declarator": "PARSER = new SPARQLParser()", "modifier": "private static final", "original_string": "private static final SPARQLParser PARSER = new SPARQLParser();", "type": "SPARQLParser", "var_name": "PARSER" } ], "file": "common/rya.api/src/main/java/org/ap...
{ "body": "public static boolean isInsertWhere(final String sparql) throws MalformedQueryException {\n requireNonNull(sparql);\n\n try {\n // Inserts are updated, so try to create a ParsedUpdate.\n PARSER.parseUpdate(sparql, null);\n\n // Check to see if the SPARQL looks...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_129
{ "fields": [ { "declarator": "accCon", "modifier": "private", "original_string": "private Connector accCon;", "type": "Connector", "var_name": "accCon" }, { "declarator": "tablename = \"table\"", "modifier": "", "original_string": "String tablename = \"tabl...
{ "body": "@Test\n public void testOneHundredColumnSubjObj() throws Exception {\n\n BatchWriter bw = null;\n\n bw = accCon.createBatchWriter(tablename, 500L * 1024L * 1024L, Long.MAX_VALUE, 30);\n\n for (int i = 0; i < 100; i++) {\n\n Mutation m = new Mutation(new Text(\"\" + i));\n...
{ "fields": [ { "declarator": "nullText = new Text()", "modifier": "protected", "original_string": "protected Text nullText = new Text();", "type": "Text", "var_name": "nullText" }, { "declarator": "log = Logger.getLogger(DocumentIndexIntersectingIterator.class)", ...
{ "body": "public static void setColumnFamilies(IteratorSetting cfg, TextColumn[] columns) {\n if (columns.length < 2)\n throw new IllegalArgumentException(\"Must supply at least two terms to intersect\");\n \n boolean[] prefix = new boolean[columns.length];\n \n for(int i = 0; i < columns.length;...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_216
{ "fields": [ { "declarator": "provider", "modifier": "private final", "original_string": "private final AbstractPcjIndexSetProvider provider;", "type": "AbstractPcjIndexSetProvider", "var_name": "provider" } ], "file": "extras/indexing/src/test/java/org/apache/rya/indexing/p...
{ "body": "@Test\n public void testSegmentWithLeftJoinsAndFilters() throws Exception {\n\n final String query1 = \"\"//\n + \"SELECT ?e ?c ?l\" //\n + \"{\" //\n + \" Filter(?e = <uri:s1>) \" //\n + \" Filter(?c = <uri:s2>) \" //\n +...
{ "fields": [ { "declarator": "factory = new PCJExternalSetMatcherFactory()", "modifier": "private static final", "original_string": "private static final PCJExternalSetMatcherFactory factory = new PCJExternalSetMatcherFactory();", "type": "PCJExternalSetMatcherFactory", "var_name": ...
{ "body": "@Override\n public void optimize(TupleExpr tupleExpr, final Dataset dataset, final BindingSet bindings) {\n checkNotNull(tupleExpr);\n // first standardize query by pulling all filters to top of query if\n // they exist using TopOfQueryFilterRelocator\n tupleExpr = TopOfQuery...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_353
{ "fields": [ { "declarator": "VF = SimpleValueFactory.getInstance()", "modifier": "private static final", "original_string": "private static final ValueFactory VF = SimpleValueFactory.getInstance();", "type": "ValueFactory", "var_name": "VF" }, { "declarator": "TRUE = ...
{ "body": "@Test\n public void testDays() throws DatatypeConfigurationException, ValueExprEvaluationException {\n DatatypeFactory dtf = DatatypeFactory.newInstance();\n\n ZonedDateTime zTime = testThisTimeDate;\n String time = zTime.format(DateTimeFormatter.ISO_INSTANT);\n\n ZonedDateTi...
{ "fields": [ { "declarator": "FUNCTION_IRI = FN.NAMESPACE + \"dateTimeWithin\"", "modifier": "private static final", "original_string": "private static final String FUNCTION_IRI = FN.NAMESPACE + \"dateTimeWithin\";", "type": "String", "var_name": "FUNCTION_IRI" } ], "file": ...
{ "body": "@Override\n public Value evaluate(ValueFactory valueFactory, Value... values) throws ValueExprEvaluationException {\n checkNotNull(valueFactory);\n checkNotNull(values);\n try {\n // general validation of input\n checkArgument(values.length == 4);\n ...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_241
{ "fields": [], "file": "extras/rya.streams/query-manager/src/test/java/org/apache/rya/streams/querymanager/kafka/LocalQueryExecutorTest.java", "identifier": "LocalQueryExecutorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test(expected = IllegalStateException.class)\n public void stopAll_serviceNotStarted() throws Exception {\n final QueryExecutor executor = new LocalQueryExecutor(mock(CreateKafkaTopic.class), mock(KafkaStreamsFactory.class));\n executor.stopAll(\"rya\");\n }", "class_method_signature...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(LocalQueryExecutor.class)", "modifier": "private static final", "original_string": "private static final Logger log = LoggerFactory.getLogger(LocalQueryExecutor.class);", "type": "Logger", "var_name": "log" }, { ...
{ "body": "@Override\n public void stopAll(final String ryaInstanceName) throws QueryExecutorException {\n requireNonNull(ryaInstanceName);\n checkState(state() == State.RUNNING, \"The service must be RUNNING to execute this method.\");\n\n lock.lock();\n try {\n if(idByRyaIn...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_304
{ "fields": [], "file": "common/rya.api.model/src/test/java/org/apache/rya/api/model/visibility/VisibilitySimplifierTest.java", "identifier": "VisibilitySimplifierTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void unionAndSimplify_secondIsEmpty() {\n final String simplified = new VisibilitySimplifier().unionAndSimplify(\"u\", \"\");\n assertEquals(\"u\", simplified);\n }", "class_method_signature": "VisibilitySimplifierTest.unionAndSimplify_secondIsEmpty()", "constructor":...
{ "fields": [], "file": "common/rya.api.model/src/main/java/org/apache/rya/api/model/visibility/VisibilitySimplifier.java", "identifier": "VisibilitySimplifier", "interfaces": "", "methods": [ { "class_method_signature": "VisibilitySimplifier.unionAndSimplify(final String vis1, final String vis2)", ...
{ "body": "public static String unionAndSimplify(final String vis1, final String vis2) {\n requireNonNull(vis1);\n requireNonNull(vis2);\n\n if(vis1.isEmpty()) {\n return vis2;\n }\n\n if(vis2.isEmpty()) {\n return vis1;\n }\n\n return simplify(\"...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_187
{ "fields": [], "file": "extras/indexing/src/test/java/org/apache/rya/indexing/IndexPlanValidator/TupleReArrangerTest.java", "identifier": "TupleReArrangerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void tupleReArrangeTest4() throws MalformedQueryException {\n\n String queryString = \"\"//\n + \"SELECT ?a ?b ?c ?d ?e ?x ?y\" //\n + \"{\" //\n + \" Filter(?c = <uri:label2>)\" //\n + \" Filter(?x = <uri:somethingFunny>)...
{ "fields": [ { "declarator": "joinArgs", "modifier": "private static", "original_string": "private static Map<Join, List<List<TupleExpr>>> joinArgs;", "type": "Map<Join, List<List<TupleExpr>>>", "var_name": "joinArgs" }, { "declarator": "filterArgs", "modifier": ...
{ "body": "public static List<TupleExpr> getTupleReOrderings(TupleExpr te) {\n\n joinArgs = Maps.newHashMap();\n filterArgs = Maps.newHashMap();\n \n NodeCollector nc = new NodeCollector();\n te.visit(nc);\n joinArgs = nc.getPerms();\n List<Join> joins = Lists.newArray...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_168
{ "fields": [ { "declarator": "q7 = \"\"//\n\t\t\t+ \"SELECT ?s ?t ?u \" //\n\t\t\t+ \"{\" //\n\t\t\t+ \" ?s a ?t .\"//\n\t\t\t+ \" ?t <http://www.w3.org/2000/01/rdf-schema#label> ?u .\"//\n\t\t\t+ \" ?u <uri:talksTo> ?s . \"//\n\t\t\t+ \"}\"", "modifier": "private", "original_string": "priva...
{ "body": "@Test\n\tpublic void testTwoIndexLargeQuery() throws Exception {\n\n\t\tSPARQLParser parser = new SPARQLParser();\n\n\t\tParsedQuery pq1 = parser.parseQuery(q11, null);\n\t\tParsedQuery pq2 = parser.parseQuery(q7, null);\n\t\tParsedQuery pq3 = parser.parseQuery(q12, null);\n\t\tParsedQuery pq4 = parser.par...
{ "fields": [ { "declarator": "queryConstantMap", "modifier": "private", "original_string": "private Map<String, Integer> queryConstantMap;", "type": "Map<String, Integer>", "var_name": "queryConstantMap" }, { "declarator": "querySpCount", "modifier": "private", ...
{ "body": "@Override\n\tpublic List<ExternalTupleSet> getRelevantIndices(List<ExternalTupleSet> indexList) {\n\n List<ExternalTupleSet> relIndexSet = new ArrayList<>();\n\n for (ExternalTupleSet e : indexList) {\n\n if (isRelevant(e.getTupleExpr())) {\n relIndexSet.add(e);\n ...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_163
{ "fields": [ { "declarator": "conf", "modifier": "", "original_string": "Configuration conf;", "type": "Configuration", "var_name": "conf" }, { "declarator": "tIndexer", "modifier": "", "original_string": "AccumuloTemporalIndexer tIndexer;", "type": "...
{ "body": "@Test\n public void testQueryIntervalAfter() throws IOException, QueryEvaluationException {\n // tiB02_E30 read as: Begins 2 seconds, ends at 30 seconds\n tIndexer.storeStatement(convertStatement(spo_B00_E01));\n tIndexer.storeStatement(convertStatement(spo_B02_E29)); //<- after thi...
{ "fields": [ { "declarator": "TABLE_SUFFIX = \"temporal\"", "modifier": "private static final", "original_string": "private static final String TABLE_SUFFIX = \"temporal\";", "type": "String", "var_name": "TABLE_SUFFIX" }, { "declarator": "logger = Logger.getLogger(Acc...
{ "body": "@Override\n public CloseableIteration<Statement, QueryEvaluationException> queryIntervalAfter(\n final TemporalInterval queryInterval, final StatementConstraints constraints)\n throws QueryEvaluationException {\n\n final Scanner scanner = getScanner();\n if (scanner !...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_358
{ "fields": [ { "declarator": "a = new RyaType(XMLSchema.STRING, \"http://www.example.com/Alice\")", "modifier": "static", "original_string": "static RyaType a = new RyaType(XMLSchema.STRING, \"http://www.example.com/Alice\");", "type": "RyaType", "var_name": "a" }, { "...
{ "body": "@Test\n public void testCompareToSymmetry() throws Exception {\n int forward = Integer.signum(a.compareTo(b));\n int backward = Integer.signum(b.compareTo(a));\n Assert.assertEquals(\"Comparison of different values with same type should yield opposite signs.\", forward, backward * -...
{ "fields": [ { "declarator": "dataType", "modifier": "private", "original_string": "private IRI dataType;", "type": "IRI", "var_name": "dataType" }, { "declarator": "data", "modifier": "private", "original_string": "private String data;", "type": "Str...
{ "body": "@Override\n public int compareTo(final RyaType o) {\n if (o == null) {\n return 1;\n }\n final String dataTypeStr = getDataType() != null ? getDataType().stringValue() : null;\n final String otherDataTypeStr = o.getDataType() != null ? o.getDataType().stringValue()...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_134
{ "fields": [ { "declarator": "accCon", "modifier": "private", "original_string": "private Connector accCon;", "type": "Connector", "var_name": "accCon" }, { "declarator": "tablename = \"table\"", "modifier": "", "original_string": "String tablename = \"tabl...
{ "body": "@Test\n public void testGeneralStarQuery() throws Exception {\n\n BatchWriter bw = null;\n\n bw = accCon.createBatchWriter(tablename, 500L * 1024L * 1024L, Long.MAX_VALUE, 30);\n\n\n\n for (int i = 0; i < 100; i++) {\n\n Mutation m = new Mutation(new Text(\"\" + i));\n\n ...
{ "fields": [ { "declarator": "nullText = new Text()", "modifier": "protected", "original_string": "protected Text nullText = new Text();", "type": "Text", "var_name": "nullText" }, { "declarator": "log = Logger.getLogger(DocumentIndexIntersectingIterator.class)", ...
{ "body": "public static void setColumnFamilies(IteratorSetting cfg, TextColumn[] columns) {\n if (columns.length < 2)\n throw new IllegalArgumentException(\"Must supply at least two terms to intersect\");\n \n boolean[] prefix = new boolean[columns.length];\n \n for(int i = 0; i < columns.length;...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_57
{ "fields": [], "file": "extras/shell/src/test/java/org/apache/rya/shell/RyaPromptProviderTest.java", "identifier": "RyaPromptProviderTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void isConnected_hasInstanceName() {\n // Create a shared state that is connected to a specific instance.\n final SharedShellState sharedState = new SharedShellState();\n\n final AccumuloConnectionDetails connectionDetails = new AccumuloConnectionDetails(\"\", new cha...
{ "fields": [ { "declarator": "sharedState", "modifier": "private final", "original_string": "private final SharedShellState sharedState;", "type": "SharedShellState", "var_name": "sharedState" } ], "file": "extras/shell/src/main/java/org/apache/rya/shell/RyaPromptProvider.ja...
{ "body": "@Override\n public String getPrompt() {\n final ShellState state = sharedState.getShellState();\n // figure out the storage name: disconnected, mongo host, or Accumulo instance.\n String storageName = \"unknown\";\n if (state.getStorageType().isPresent()) {\n if (s...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_41
{ "fields": [], "file": "extras/shell/src/test/java/org/apache/rya/shell/RyaAdminCommandsTest.java", "identifier": "RyaAdminCommandsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void createPCJ_noExportStrategy() throws InstanceDoesNotExistException, RyaClientException, IOException {\n // Mock the object that performs the create operation.\n final String instanceName = \"unitTest\";\n\n final RyaClient mockCommands = mock(RyaClient.class);\n\n...
{ "fields": [ { "declarator": "CREATE_PCJ_CMD = \"create-pcj\"", "modifier": "public static final", "original_string": "public static final String CREATE_PCJ_CMD = \"create-pcj\";", "type": "String", "var_name": "CREATE_PCJ_CMD" }, { "declarator": "CREATE_PERIODIC_PCJ_C...
{ "body": "@CliCommand(value = CREATE_PCJ_CMD, help = \"Creates and starts the maintenance of a new PCJ using a Fluo application.\")\n public String createPcj(\n @CliOption(key = {\"exportToRya\"}, mandatory = false, help = \"Indicates that results for the query should be exported to a Rya PCJ table.\",...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_122
{ "fields": [ { "declarator": "TEST_INSTANCE = \"test_instance\"", "modifier": "private final static", "original_string": "private final static String TEST_INSTANCE = \"test_instance\";", "type": "String", "var_name": "TEST_INSTANCE" }, { "declarator": "TEST_TIMESTAMP =...
{ "body": "@Test(expected=NullPointerException.class)\n public void deserializeTest_missingTime() {\n final Document doc = new Document(RYANAME_KEY, TEST_INSTANCE);\n adapter.deserialize(doc);\n }", "class_method_signature": "ParentMetadataRepositoryAdapterTest.deserializeTest_missingTime()", ...
{ "fields": [ { "declarator": "RYANAME_KEY = \"ryaInstanceName\"", "modifier": "public static final", "original_string": "public static final String RYANAME_KEY = \"ryaInstanceName\";", "type": "String", "var_name": "RYANAME_KEY" }, { "declarator": "TIMESTAMP_KEY = \"ti...
{ "body": "public MergeParentMetadata deserialize(final Document doc) {\n final Date timestamp = (Date) doc.get(TIMESTAMP_KEY);\n final String ryaInstance = (String) doc.get(RYANAME_KEY);\n final Date filterTimestamp = (Date) doc.get(FILTER_TIMESTAMP_KEY);\n final Long offset = (Long) doc....
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_319
{ "fields": [], "file": "common/rya.api/src/test/java/org/apache/rya/api/query/strategy/wholerow/NullRowTriplePatternStrategyTest.java", "identifier": "NullRowTriplePatternStrategyTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testGetLayout() {\n NullRowTriplePatternStrategy instance = new NullRowTriplePatternStrategy();\n RdfCloudTripleStoreConstants.TABLE_LAYOUT expResult = RdfCloudTripleStoreConstants.TABLE_LAYOUT.SPO;\n RdfCloudTripleStoreConstants.TABLE_LAYOUT result = instance.getLayout();\n ...
{ "fields": [], "file": "common/rya.api/src/main/java/org/apache/rya/api/query/strategy/wholerow/NullRowTriplePatternStrategy.java", "identifier": "NullRowTriplePatternStrategy", "interfaces": "", "methods": [ { "class_method_signature": "NullRowTriplePatternStrategy.getLayout()", "constructor...
{ "body": "@Override\n public TABLE_LAYOUT getLayout() {\n return TABLE_LAYOUT.SPO;\n }", "class_method_signature": "NullRowTriplePatternStrategy.getLayout()", "constructor": false, "full_signature": "@Override public TABLE_LAYOUT getLayout()", "identifier": "getLayout", "invocations": [], "m...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_175
{ "fields": [ { "declarator": "provider", "modifier": "private final", "original_string": "private final AbstractPcjIndexSetProvider provider;", "type": "AbstractPcjIndexSetProvider", "var_name": "provider" } ], "file": "extras/indexing/src/test/java/org/apache/rya/indexing/I...
{ "body": "@Test\n public void testEvaluateTwoIndexTwoVarOrder6()\n throws Exception {\n\n\n final String indexSparqlString = \"\"//\n + \"SELECT ?e ?l ?c \" //\n + \"{\" //\n + \" ?e a ?c . \"//\n + \" ?e <http://www.w3.org/2000/01/r...
{ "fields": [ { "declarator": "omitCrossProd = false", "modifier": "private", "original_string": "private boolean omitCrossProd = false;", "type": "boolean", "var_name": "omitCrossProd" } ], "file": "extras/indexing/src/main/java/org/apache/rya/indexing/IndexPlanValidator/Ind...
{ "body": "@Override\n public boolean isValid(TupleExpr te) {\n\n TupleValidateVisitor tv = new TupleValidateVisitor();\n te.visit(tv);\n\n return tv.isValid();\n }", "class_method_signature": "IndexPlanValidator.isValid(TupleExpr te)", "constructor": false, "full_signature": "@Overri...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_16
{ "fields": [], "file": "extras/shell/src/test/java/org/apache/rya/shell/RyaStreamsCommandsTest.java", "identifier": "RyaStreamsCommandsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void deleteQuery() throws Exception {\n // Mock the object that performs the rya streams operation.\n final RyaStreamsClient mockClient = mock(RyaStreamsClient.class);\n final DeleteQuery deleteQuery = mock(DeleteQuery.class);\n when(mockClient.getDeleteQuery()...
{ "fields": [ { "declarator": "STREAMS_CONFIGURE_CMD = \"streams-configure\"", "modifier": "public static final", "original_string": "public static final String STREAMS_CONFIGURE_CMD = \"streams-configure\";", "type": "String", "var_name": "STREAMS_CONFIGURE_CMD" }, { "...
{ "body": "@CliCommand(value = STREAM_QUERIES_DELETE_CMD, help = \"Delete a SPARQL query from the Rya Streams subsystem.\")\n public String deleteQuery(\n @CliOption(key= {\"queryId\"}, mandatory = true, help = \"The ID of the query to remove.\")\n final String queryId) {\n\n final Rya...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_362
{ "fields": [ { "declarator": "a = new RyaType(XMLSchema.STRING, \"http://www.example.com/Alice\")", "modifier": "static", "original_string": "static RyaType a = new RyaType(XMLSchema.STRING, \"http://www.example.com/Alice\");", "type": "RyaType", "var_name": "a" }, { "...
{ "body": "@Test\n public void testHashCodeEquals() throws Exception {\n Assert.assertEquals(\"Same data and same type should yield same hash code.\",\n a.hashCode(), same.hashCode());\n Assert.assertEquals(\"Same type and both null data should yield same hash code.\",\n ...
{ "fields": [ { "declarator": "dataType", "modifier": "private", "original_string": "private IRI dataType;", "type": "IRI", "var_name": "dataType" }, { "declarator": "data", "modifier": "private", "original_string": "private String data;", "type": "Str...
{ "body": "@Override\n public int hashCode() {\n return Objects.hash(dataType, data, language);\n }", "class_method_signature": "RyaType.hashCode()", "constructor": false, "full_signature": "@Override public int hashCode()", "identifier": "hashCode", "invocations": [ "hash" ], "modifier...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_227
{ "fields": [ { "declarator": "accumuloConn = null", "modifier": "protected static", "original_string": "protected static Connector accumuloConn = null;", "type": "Connector", "var_name": "accumuloConn" }, { "declarator": "ryaRepo = null", "modifier": "protected",...
{ "body": "@Test\n public void accumuloIndexSetTestWithTwoDirectProductBindingSetsWithConstantMapping() throws Exception {\n // Load some Triples into Rya.\n final Set<Statement> triples = new HashSet<>();\n triples.add( VF.createStatement(VF.createIRI(\"http://Alice\"), VF.createIRI(\"http://...
{ "fields": [ { "declarator": "accCon", "modifier": "private final", "original_string": "private final Connector accCon;", "type": "Connector", "var_name": "accCon" }, { "declarator": "tablename", "modifier": "private final", "original_string": "private fina...
{ "body": "@Override\n\tpublic CloseableIteration<BindingSet, QueryEvaluationException> evaluate(\n\t\t\tfinal BindingSet bindingset) throws QueryEvaluationException {\n\t\treturn this.evaluate(Collections.singleton(bindingset));\n\t}", "class_method_signature": "AccumuloIndexSet.evaluate(\n\t\t\tfinal BindingSet b...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_1
{ "fields": [], "file": "extras/shell/src/test/java/org/apache/rya/shell/util/StreamsQueryFormatterTest.java", "identifier": "StreamsQueryFormatterTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void formatQueries() throws Exception {\n // Format the queries.\n final Set<StreamsQuery> queries = Sets.newHashSet(\n new StreamsQuery(\n UUID.fromString(\"33333333-3333-3333-3333-333333333333\"),\n \"SELECT * WH...
{ "fields": [], "file": "extras/shell/src/main/java/org/apache/rya/shell/util/StreamsQueryFormatter.java", "identifier": "StreamsQueryFormatter", "interfaces": "", "methods": [ { "class_method_signature": "StreamsQueryFormatter.format(final StreamsQuery query)", "constructor": false, "fu...
{ "body": "public static String format(final StreamsQuery query) throws Exception {\n requireNonNull(query);\n\n // Pretty format the SPARQL query.\n final ParsedQuery parsedQuery = new SPARQLParser().parseQuery(query.getSparql(), null);\n final String prettySparql = new SPARQLQueryRendere...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_82
{ "fields": [ { "declarator": "VF = SimpleValueFactory.getInstance()", "modifier": "private static final", "original_string": "private static final ValueFactory VF = SimpleValueFactory.getInstance();", "type": "ValueFactory", "var_name": "VF" } ], "file": "extras/rya.indexing...
{ "body": "@Test\n public void fromString_Decimal() throws BindingSetConversionException {\n // Setup the String that will be converted.\n final String bindingSetString = \"2.5<<~>>http://www.w3.org/2001/XMLSchema#decimal\";\n\n // Convert it to a BindingSet\n final BindingSetConverter<...
{ "fields": [ { "declarator": "BINDING_DELIM = \":::\"", "modifier": "public static final", "original_string": "public static final String BINDING_DELIM = \":::\";", "type": "String", "var_name": "BINDING_DELIM" }, { "declarator": "TYPE_DELIM = \"<<~>>\"", "modifi...
{ "body": "@Override\n public String convert(final BindingSet bindingSet, final VariableOrder varOrder) {\n requireNonNull(bindingSet);\n requireNonNull(varOrder);\n\n // Convert each Binding to a String.\n final List<String> bindingStrings = new ArrayList<>();\n for(final String...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_335
{ "fields": [], "file": "common/rya.api/src/test/java/org/apache/rya/api/instance/RyaDetailsTest.java", "identifier": "RyaDetailsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void equals() {\n final RyaDetails.Builder builder = RyaDetails.builder();\n\n builder.setRyaInstanceName(\"test_instance\")\n .setRyaVersion(\"1.2.3.4\")\n .setEntityCentricIndexDetails( new EntityCentricIndexDetails(true) )\n //RYA-215 ...
{ "fields": [ { "declarator": "serialVersionUID = 2L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = 2L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "instanceName", "modifier": "private...
{ "body": "@Override\n public boolean equals(final Object obj) {\n if(this == obj) {\n return true;\n }\n if(obj instanceof RyaDetails) {\n final RyaDetails details = (RyaDetails) obj;\n return Objects.equals(instanceName, details.instanceName) &&\n ...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_270
{ "fields": [ { "declarator": "VF = SimpleValueFactory.getInstance()", "modifier": "private static final", "original_string": "private static final ValueFactory VF = SimpleValueFactory.getInstance();", "type": "ValueFactory", "var_name": "VF" } ], "file": "extras/rya.pcj.fluo...
{ "body": "@Test\n public void stringToStatementPattern() {\n // Setup the String representation of a statement pattern.\n final String patternString = \"x:::\" +\n prependConstant(\"http://worksAt<<~>>http://www.w3.org/2001/XMLSchema#anyURI:::\") +\n prependConstant(\"h...
{ "fields": [], "file": "extras/rya.pcj.fluo/pcj.fluo.app/src/main/java/org/apache/rya/indexing/pcj/fluo/app/FluoStringConverter.java", "identifier": "FluoStringConverter", "interfaces": "", "methods": [ { "class_method_signature": "FluoStringConverter.toBindingStrings(final String bindingSetString)...
{ "body": "public static StatementPattern toStatementPattern(final String patternString) {\n checkNotNull(patternString);\n\n final String[] parts = patternString.split(DELIM);\n final String subjectPart = parts[0];\n final String predicatePart = parts[1];\n final String objectPart ...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_159
{ "fields": [ { "declarator": "conf", "modifier": "", "original_string": "Configuration conf;", "type": "Configuration", "var_name": "conf" }, { "declarator": "tIndexer", "modifier": "", "original_string": "AccumuloTemporalIndexer tIndexer;", "type": "...
{ "body": "@Test\n public void testQueryInstantHasBeginningInterval() throws IOException, QueryEvaluationException {\n // tiB02_E30 read as: Begins 2 seconds, ends at 30 seconds\n // these should not match as they are not instances.\n tIndexer.storeStatement(convertStatement(spo_B03_E20));\n ...
{ "fields": [ { "declarator": "TABLE_SUFFIX = \"temporal\"", "modifier": "private static final", "original_string": "private static final String TABLE_SUFFIX = \"temporal\";", "type": "String", "var_name": "TABLE_SUFFIX" }, { "declarator": "logger = Logger.getLogger(Acc...
{ "body": "@Override\n public CloseableIteration<Statement, QueryEvaluationException> queryInstantHasBeginningInterval(\n final TemporalInterval queryInterval, final StatementConstraints contraints)\n throws QueryEvaluationException {\n return queryInstantEqualsInstant(queryInterval.ge...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_289
{ "fields": [ { "declarator": "user = \"user\"", "modifier": "private", "original_string": "private String user = \"user\";", "type": "String", "var_name": "user" }, { "declarator": "pwd = \"pwd\"", "modifier": "private", "original_string": "private String p...
{ "body": "@Test\n public void testNTriplesInput() throws Exception {\n RdfFileInputTool.main(new String[]{\n \"-Dac.mock=true\",\n \"-Dac.instance=\" + instance,\n \"-Dac.username=\" + user,\n \"-Dac.pwd=\" + pwd,\n \"-Dac.auth=\" +...
{ "fields": [], "file": "mapreduce/src/main/java/org/apache/rya/accumulo/mr/tools/RdfFileInputTool.java", "identifier": "RdfFileInputTool", "interfaces": "implements Tool", "methods": [ { "class_method_signature": "RdfFileInputTool.main(String[] args)", "constructor": false, "full_signat...
{ "body": "public static void main(String[] args) {\n try {\n ToolRunner.run(new Configuration(), new RdfFileInputTool(), args);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "class_method_signature": "RdfFileInputTool.main(String[] args)", "constructor":...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_323
{ "fields": [ { "declarator": "VF = SimpleValueFactory.getInstance()", "modifier": "private static final", "original_string": "private static final ValueFactory VF = SimpleValueFactory.getInstance();", "type": "ValueFactory", "var_name": "VF" }, { "declarator": "LANGUAG...
{ "body": "@Test\n public void testConvertLiteral_nullDataType() {\n final Literal literal = mock(SimpleLiteral.class);\n final String expectedData = \"Ice Cream\";\n when(literal.getLabel()).thenReturn(expectedData);\n when(literal.stringValue()).thenReturn(expectedData);\n // D...
{ "fields": [ { "declarator": "log = Logger.getLogger(RdfToRyaConversions.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(RdfToRyaConversions.class);", "type": "Logger", "var_name": "log" } ], "file": "common...
{ "body": "public static RyaType convertLiteral(final Literal literal) {\n if (literal == null) {\n return null;\n }\n if (literal.getDatatype() != null) {\n if (Literals.isLanguageLiteral(literal)) {\n final String language = literal.getLanguage().get();\n ...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_266
{ "fields": [ { "declarator": "VF = SimpleValueFactory.getInstance()", "modifier": "private static final", "original_string": "private static final ValueFactory VF = SimpleValueFactory.getInstance();", "type": "ValueFactory", "var_name": "VF" } ], "file": "extras/rya.pcj.fluo...
{ "body": "@Test\n public void bindingSetRowTest() {\n String nodeId = NodeType.generateNewFluoIdForType(NodeType.STATEMENT_PATTERN);\n QueryBindingSet bs = new QueryBindingSet();\n bs.addBinding(\"entity\", VF.createIRI(\"urn:entity\"));\n bs.addBinding(\"location\", VF.createLiteral(\...
{ "fields": [ { "declarator": "BS_CONVERTER = new BindingSetStringConverter()", "modifier": "private static final", "original_string": "private static final BindingSetStringConverter BS_CONVERTER = new BindingSetStringConverter();", "type": "BindingSetStringConverter", "var_name": "B...
{ "body": "public static Bytes addShard(String nodeId, VariableOrder varOrder, VisibilityBindingSet bs) {\n checkNotNull(nodeId);\n checkNotNull(varOrder);\n checkNotNull(bs);\n String[] rowPrefixAndId = nodeId.split(\"_\");\n Preconditions.checkArgument(rowPrefixAndId.length == 2);...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_374
{ "fields": [], "file": "dao/mongodb.rya/src/test/java/org/apache/rya/mongodb/document/visibility/DocumentVisibilityAdapterTest.java", "identifier": "DocumentVisibilityAdapterTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testToDocument_Expression() {\n final DocumentVisibility dv = new DocumentVisibility(\"A&B&C\");\n final Document document = DocumentVisibilityAdapter.toDocument(dv.getExpression());\n final Document expected = Document.parse(\n \"{\" +\n ...
{ "fields": [ { "declarator": "log = Logger.getLogger(DocumentVisibilityAdapter.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(DocumentVisibilityAdapter.class);", "type": "Logger", "var_name": "log" }, { ...
{ "body": "public static Document toDocument(final byte[] expression) {\n DocumentVisibility dv;\n if (expression == null) {\n dv = MongoDbRdfConstants.EMPTY_DV;\n } else {\n dv = new DocumentVisibility(expression);\n }\n return toDocument(dv);\n }", "clas...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_231
{ "fields": [], "file": "extras/indexing/src/test/java/org/apache/rya/indexing/external/PrecomputedJoinUpdaterSupplierTest.java", "identifier": "PrecomputedJoinUpdaterSupplierTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void configuredForFluo() {\n // Create a supplier that is configured to use a Fluo updater.\n final Supplier<Configuration> configSupplier = mock(Supplier.class);\n final Configuration config = new Configuration();\n config.set(PrecomputedJoinIndexerConfig.PCJ_...
{ "fields": [ { "declarator": "configSupplier", "modifier": "private final", "original_string": "private final Supplier<Configuration> configSupplier;", "type": "Supplier<Configuration>", "var_name": "configSupplier" }, { "declarator": "fluoSupplier", "modifier": ...
{ "body": "@Override\n public PrecomputedJoinUpdater get() {\n // Ensure a configuration has been set.\n final Configuration config = configSupplier.get();\n checkNotNull(config, \"Can not build the PrecomputedJoinUpdater until the PrecomputedJoinIndexer has been configured.\");\n\n fin...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_118
{ "fields": [ { "declarator": "log = LogManager.getLogger(AccumuloRyaStatementStoreTest.class)", "modifier": "private static final", "original_string": "private static final Logger log = LogManager.getLogger(AccumuloRyaStatementStoreTest.class);", "type": "Logger", "var_name": "log" ...
{ "body": "@Test (expected = AddStatementException.class)\n public void testAddStatement_AddNull() throws Exception {\n final AccumuloRyaStatementStore accumuloRyaStatementStore = createAccumuloRyaStatementStore();\n\n accumuloRyaStatementStore.addStatement(null);\n }", "class_method_signature":...
{ "fields": [ { "declarator": "log = Logger.getLogger(AccumuloRyaStatementStore.class)", "modifier": "private static final", "original_string": "private static final Logger log = Logger.getLogger(AccumuloRyaStatementStore.class);", "type": "Logger", "var_name": "log" }, { ...
{ "body": "@Override\n public void addStatement(final RyaStatement statement) throws AddStatementException {\n try {\n accumuloRyaDao.add(statement);\n accumuloRyaDao.flush();\n //This is a hack since a statement re-added with the same timestamp won't reappear since its been...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_94
{ "fields": [ { "declarator": "reasoner", "modifier": "private", "original_string": "private LocalReasoner reasoner;", "type": "LocalReasoner", "var_name": "reasoner" }, { "declarator": "schema", "modifier": "private", "original_string": "private Schema sche...
{ "body": "@Test\n public void testInferRange() throws Exception {\n schema.processTriple(TestUtils.statement(TestUtils.uri(\"advisor\"),\n RDFS.RANGE, TestUtils.uri(\"Professor\")));\n reasoner.processFact(TestUtils.fact(TestUtils.uri(\"John Doe\"),\n TestUtils.uri(\"advisor\")...
{ "fields": [ { "declarator": "types", "modifier": "", "original_string": "TypeReasoner types;", "type": "TypeReasoner", "var_name": "types" }, { "declarator": "transitiveIncoming = new HashMap<>()", "modifier": "", "original_string": "Map<IRI, List<Fact>> t...
{ "body": "public void processFact(Fact fact) {\n Resource subject = fact.getSubject();\n IRI pred = fact.getPredicate();\n Value object = fact.getObject();\n // Whether this is a recursive call on a fact that's just been inferred\n boolean recursive = fact.getIteration() == current...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_180
{ "fields": [ { "declarator": "provider", "modifier": "private final", "original_string": "private final AbstractPcjIndexSetProvider provider;", "type": "AbstractPcjIndexSetProvider", "var_name": "provider" } ], "file": "extras/indexing/src/test/java/org/apache/rya/indexing/I...
{ "body": "@Test\n public void testEvaluateTwoIndexDiffVars2() throws Exception {\n\n\n final String indexSparqlString = \"\"//\n + \"SELECT ?dog ?pig ?chicken \" //\n + \"{\" //\n + \" ?dog a ?chicken . \"//\n + \" ?dog <http://www.w3.org/2000/...
{ "fields": [ { "declarator": "omitCrossProd = false", "modifier": "private", "original_string": "private boolean omitCrossProd = false;", "type": "boolean", "var_name": "omitCrossProd" } ], "file": "extras/indexing/src/main/java/org/apache/rya/indexing/IndexPlanValidator/Ind...
{ "body": "@Override\n public boolean isValid(TupleExpr te) {\n\n TupleValidateVisitor tv = new TupleValidateVisitor();\n te.visit(tv);\n\n return tv.isValid();\n }", "class_method_signature": "IndexPlanValidator.isValid(TupleExpr te)", "constructor": false, "full_signature": "@Overri...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_246
{ "fields": [], "file": "extras/rya.streams/kafka/src/test/java/org/apache/rya/streams/kafka/serialization/VisibilityBindingSetSerdeTest.java", "identifier": "VisibilityBindingSetSerdeTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void deserializeEmptyData() {\n try(final Serde<VisibilityBindingSet> serde = new VisibilityBindingSetSerde()) {\n assertNull( serde.deserializer().deserialize(\"topic\", new byte[0]) );\n }\n }", "class_method_signature": "VisibilityBindingSetSerdeTest.deser...
{ "fields": [], "file": "extras/rya.streams/kafka/src/main/java/org/apache/rya/streams/kafka/serialization/VisibilityBindingSetSerde.java", "identifier": "VisibilityBindingSetSerde", "interfaces": "implements Serde<VisibilityBindingSet>", "methods": [ { "class_method_signature": "VisibilityBindingSe...
{ "body": "@Override\n public Deserializer<VisibilityBindingSet> deserializer() {\n return new VisibilityBindingSetDeserializer();\n }", "class_method_signature": "VisibilityBindingSetSerde.deserializer()", "constructor": false, "full_signature": "@Override public Deserializer<VisibilityBindingSet>...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }
43734923_303
{ "fields": [], "file": "common/rya.api.model/src/test/java/org/apache/rya/api/model/visibility/VisibilitySimplifierTest.java", "identifier": "VisibilitySimplifierTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void unionAndSimplify_firstIsEmpty() {\n final String simplified = new VisibilitySimplifier().unionAndSimplify(\"\", \"u\");\n assertEquals(\"u\", simplified);\n }", "class_method_signature": "VisibilitySimplifierTest.unionAndSimplify_firstIsEmpty()", "constructor": f...
{ "fields": [], "file": "common/rya.api.model/src/main/java/org/apache/rya/api/model/visibility/VisibilitySimplifier.java", "identifier": "VisibilitySimplifier", "interfaces": "", "methods": [ { "class_method_signature": "VisibilitySimplifier.unionAndSimplify(final String vis1, final String vis2)", ...
{ "body": "public static String unionAndSimplify(final String vis1, final String vis2) {\n requireNonNull(vis1);\n requireNonNull(vis2);\n\n if(vis1.isEmpty()) {\n return vis2;\n }\n\n if(vis2.isEmpty()) {\n return vis1;\n }\n\n return simplify(\"...
{ "created": null, "fork": null, "fork_count": 72, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43734923, "size": 8707, "stargazer_count": 93, "stars": null, "updates": null, "url": "https://github.com/apache/rya" }