_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c12500
train
// havingExpressionBuilder given the collected tokens that forms the having // clause expression, it builds the expression to use when filtering values // on the final result table.
{ "resource": "" }
c12501
train
// limitCollection collects the limit of rows to return as indicated by the // LIMIT clause.
{ "resource": "" }
c12502
train
// collectGlobalBounds collects the global time bounds that should be applied // to all temporal predicates.
{ "resource": "" }
c12503
train
// InitWorkingConstructClause returns a clause hook to initialize a new working // construct clause.
{ "resource": "" }
c12504
train
// NextWorkingConstructClause returns a clause hook to close the current working // construct clause and start a new working construct clause.
{ "resource": "" }
c12505
train
// constructSubject returns an element hook that updates the subject // modifiers on the working construct clause.
{ "resource": "" }
c12506
train
// constructPredicate returns an element hook that updates the predicate // modifiers on the current predicate-object pair of the working graph clause.
{ "resource": "" }
c12507
train
// constructObject returns an element hook that updates the object // modifiers on the current predicate-object pair of the working graph clause.
{ "resource": "" }
c12508
train
// NextWorkingConstructPredicateObjectPair returns a clause hook to close the current // predicate-object pair and start a new predicate-object pair within the working // construct clause.
{ "resource": "" }
c12509
train
// ShowClauseHook returns a clause hook for the show statement.
{ "resource": "" }
c12510
train
// getTreeGenerators returns the set of tree generators to use while creating // benchmarks.
{ "resource": "" }
c12511
train
// getGraphGenerators returns the set of tree generators to use while creating // benchmarks.
{ "resource": "" }
c12512
train
// assertCommand runs all the BQL statements available in the file.
{ "resource": "" }
c12513
train
// runCommand runs all the BQL statements available in the file.
{ "resource": "" }
c12514
train
// BQL attempts to execute the provided query against the given store.
{ "resource": "" }
c12515
train
// NewConsumedToken create a new consumed element that boxes a token.
{ "resource": "" }
c12516
train
// ToNode converts the node found by the lexer and converts it into a BadWolf // node.
{ "resource": "" }
c12517
train
// ToPredicate converts the node found by the lexer and converts it into a // BadWolf predicate.
{ "resource": "" }
c12518
train
// ToLiteral converts the node found by the lexer and converts it into a // BadWolf literal.
{ "resource": "" }
c12519
train
// Covariant checks for given two types A and B, A covariant B if B _is a_ A. // In other word, A _covariant_ B if B is a prefix of A.
{ "resource": "" }
c12520
train
// String returns a pretty printing representation of Node.
{ "resource": "" }
c12521
train
// Parse returns a node given a pretty printed representation of a Node or a BlankNode.
{ "resource": "" }
c12522
train
// Covariant checks if the types of two nodes is covariant.
{ "resource": "" }
c12523
train
// NewType creates a new type from plain string.
{ "resource": "" }
c12524
train
// NewID create a new ID from a plain string.
{ "resource": "" }
c12525
train
// NewNode returns a new node constructed from a type and an ID.
{ "resource": "" }
c12526
train
// NewNodeFromStrings returns a new node constructed from a type and ID // represented as plain strings.
{ "resource": "" }
c12527
train
// NewBlankNode creates a new blank node. The blank node ID is guaranteed to // be unique in BadWolf.
{ "resource": "" }
c12528
train
// UUID returns a global unique identifier for the given node. It is // implemented as the SHA1 UUID of the node values.
{ "resource": "" }
c12529
train
// String provides a readable version of the StatementType.
{ "resource": "" }
c12530
train
// BindingsMap returns the binding map for the graph clause.
{ "resource": "" }
c12531
train
// Bindings returns the list of unique bindings listed in the graph clause.
{ "resource": "" }
c12532
train
// String returns a readable representation of a construct clause.
{ "resource": "" }
c12533
train
// String returns a readable representation of a ConstructPredicateObjectPair.
{ "resource": "" }
c12534
train
// AddGraph adds a graph to a given statement.
{ "resource": "" }
c12535
train
// AddInputGraph adds an input graph to a given statement.
{ "resource": "" }
c12536
train
// AddOutputGraph adds an output graph to a given statement.
{ "resource": "" }
c12537
train
// Init initializes all graphs given the graph names.
{ "resource": "" }
c12538
train
// AddData adds a triple to a given statement's data.
{ "resource": "" }
c12539
train
// AddWorkingGraphClause adds the current working graph clause to the set of // clauses that form the graph pattern.
{ "resource": "" }
c12540
train
// BindingsMap returns the set of bindings available on the graph clauses for the // statement.
{ "resource": "" }
c12541
train
// Bindings returns the list of bindings available on the graph clauses for he // statement.
{ "resource": "" }
c12542
train
// Swap exchanges the i and j elements in the clauses array.
{ "resource": "" }
c12543
train
// Less returns true if the i element is less specific than j one.
{ "resource": "" }
c12544
train
// SortedGraphPatternClauses return the list of graph pattern clauses
{ "resource": "" }
c12545
train
// String returns a readable form of the projection.
{ "resource": "" }
c12546
train
// IsEmpty checks if the given projection is empty.
{ "resource": "" }
c12547
train
// WorkingProjection returns the current working variable projection.
{ "resource": "" }
c12548
train
// AddWorkingProjection adds the current projection variable to the set of // projects that this statement.
{ "resource": "" }
c12549
train
// InputBindings returns the list of incoming bindings feed from a where clause.
{ "resource": "" }
c12550
train
// OutputBindings returns the list of binding that a query will return.
{ "resource": "" }
c12551
train
// AddWorkingConstructClause adds the current working construct clause to the set // of construct clauses that form the construct statement.
{ "resource": "" }
c12552
train
// AddWorkingPredicateObjectPair adds the working predicate-object pair to the set // of predicate-object pairs belonging to the construct clause.
{ "resource": "" }
c12553
train
// NewSymbol creates a new element from a symbol.
{ "resource": "" }
c12554
train
// NewTokenType creates a new element from a token.
{ "resource": "" }
c12555
train
// NewParser creates a new recursive descent parser for a left factorized // grammar.
{ "resource": "" }
c12556
train
// Parse attempts to run the parser for the given input.
{ "resource": "" }
c12557
train
// consume attempts to consume all input tokens for the provided symbols given // the parser grammar.
{ "resource": "" }
c12558
train
// expect given the input, symbol, and clause attempts to satisfy all elements.
{ "resource": "" }
c12559
train
// getGraphFromStore returns a Graph. Will create it if it does not exist.
{ "resource": "" }
c12560
train
// populateSources create all the graph required for the story and // populates it with the provided data.
{ "resource": "" }
c12561
train
// cleanSources create all the graph required for the story and // populates it with the provided data.
{ "resource": "" }
c12562
train
// runAssertion runs the assertion and compares the outcome. Returns the outcome // of comparing the obtained result table with the assertion table if there is // no error during the assertion.
{ "resource": "" }
c12563
train
// Run evaluates a story. Returns if the story is true or not. It will also // return an error if something wrong happen along the way. It is worth // mentioning that Run does not clear any data available in the provided // storage.
{ "resource": "" }
c12564
train
// RunStories runs a the provided stories and returns the outcome of each of // them.
{ "resource": "" }
c12565
train
// runServer runs the simple BQL endpoint.
{ "resource": "" }
c12566
train
// bqlHandler imPathUnescapeplements the handler to server BQL requests.
{ "resource": "" }
c12567
train
// getQueries returns the list of queries found. It will split them if needed.
{ "resource": "" }
c12568
train
// defaultHandler implements the handler to server BQL requests.
{ "resource": "" }
c12569
train
// reportError reports the given error.
{ "resource": "" }
c12570
train
// REPL starts a read-evaluation-print-loop to run BQL commands.
{ "resource": "" }
c12571
train
// printHelp prints help for the console commands.
{ "resource": "" }
c12572
train
// runBQLFromFile loads all the statements in the file and runs them.
{ "resource": "" }
c12573
train
// runBQL attempts to execute the provided query against the given store.
{ "resource": "" }
c12574
train
// planBQL attempts to create the execution plan for the provided query against the given store.
{ "resource": "" }
c12575
train
// Marshal serializes the story into a JSON readable string.
{ "resource": "" }
c12576
train
// Unmarshal rebuilds a story from a JSON readable string.
{ "resource": "" }
c12577
train
// inferCell builds a Cell out of the provided string.
{ "resource": "" }
c12578
train
// OutputTable returns the expected result table for the must result table // provided by the story.
{ "resource": "" }
c12579
train
// updateTimeBounds updates the time bounds use for the lookup based on the // provided graph clause.
{ "resource": "" }
c12580
train
// updateTimeBoundsForRow updates the time bounds use for the lookup based on // the provided graph clause.
{ "resource": "" }
c12581
train
// simpleExist returns true if the triple exist. Return the unfeasible state, // the table and the error if present.
{ "resource": "" }
c12582
train
// addTriples add all the retrieved triples from the graphs into the results // table. The semantic graph clause is also passed to be able to identify what // bindings to set.
{ "resource": "" }
c12583
train
// objectToCell returns a cell containing the data boxed in the object.
{ "resource": "" }
c12584
train
// runAll executes all the canned benchmarks and prints out the stats.
{ "resource": "" }
c12585
train
// runBattery executes all the canned benchmarks and prints out the stats.
{ "resource": "" }
c12586
train
// GetStatementsFromFile returns the statements found in the provided file.
{ "resource": "" }
c12587
train
// ReadLines from a file into a string array.
{ "resource": "" }
c12588
train
// ProcessLines from a file using the provided call back. The error of the // callback will be passed through. Returns the number of processed errors // before the error. Returns the line where the error occurred or the total // numbers of lines processed.
{ "resource": "" }
c12589
train
// ReadIntoGraph reads a graph out of the provided reader. The data on the // reader is interpret as text. Each line represents one triple using the // standard serialized format. ReadIntoGraph will stop if fails to Parse // a triple on the stream. The triples read till then would have also been // added to the graph. ...
{ "resource": "" }
c12590
train
// WriteGraph serializes the graph into the writer where each triple is // marshaled into a separate line. If there is an error writing the // serialization will stop. It returns the number of triples serialized // regardless if it succeeded or failed partially.
{ "resource": "" }
c12591
train
// AddGraphTriplesBenchmark creates the benchmark.
{ "resource": "" }
c12592
train
// Registers the available drivers.
{ "resource": "" }
c12593
train
// lex creates a new lexer for the given input
{ "resource": "" }
c12594
train
// New return a new read only channel with the tokens found in the provided // input string.
{ "resource": "" }
c12595
train
// lexToken represents the initial state for token identification.
{ "resource": "" }
c12596
train
// isSingleSymbolToken checks if a single char should be lexed.
{ "resource": "" }
c12597
train
// lexBinding lexes a binding variable.
{ "resource": "" }
c12598
train
// lexSpace consumes spaces without emitting any token.
{ "resource": "" }
c12599
train
// lexBlankNode tries to lex a blank node out of the input
{ "resource": "" }