_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c27200 | train | // Save the current write tree making writes accessible from read tree. | {
"resource": ""
} | ||
c27201 | train | // currently only called after sha3.Sha3 | {
"resource": ""
} | ||
c27202 | train | // Pushes the bigInt as a Word256 encoding negative values in 32-byte twos complement and returns the encoded result | {
"resource": ""
} | ||
c27203 | train | // Not an opcode, costs no gas. | {
"resource": ""
} | ||
c27204 | train | // Returns a Cache that wraps an underlying Reader to use on a cache miss, can write to an output Writer
// via Sync. Goroutine safe for concurrent access. | {
"resource": ""
} | ||
c27205 | train | // Iterates over all cached accounts first in cache and then in backend until consumer returns true for 'stop' | {
"resource": ""
} | ||
c27206 | train | // Iterates over all cached storage items first in cache and then in backend until consumer returns true for 'stop' | {
"resource": ""
} | ||
c27207 | train | // Syncs changes to the backend in deterministic order. Sends storage updates before updating
// the account they belong so that storage values can be taken account of in the update. | {
"resource": ""
} | ||
c27208 | train | // matchLogLine tries to match a log line by trying to match each key value pair with each pair of key value regexes
// if matchAll is true then matchLogLine returns true iff every key value regexes finds a match or the line or regexes
// are empty | {
"resource": ""
} | ||
c27209 | train | // JSONBytes returns the JSON canonical bytes for a given GenesisDoc or an error. | {
"resource": ""
} | ||
c27210 | train | // Clone clones the genesis account | {
"resource": ""
} | ||
c27211 | train | // Clone clones the genesis validator | {
"resource": ""
} | ||
c27212 | train | // MakeGenesisDocFromAccounts takes a chainName and a slice of pointers to Account,
// and a slice of pointers to Validator to construct a GenesisDoc, or returns an error on
// failure. In particular MakeGenesisDocFromAccount uses the local time as a
// timestamp for the GenesisDoc. | {
"resource": ""
} | ||
c27213 | train | // Tokenises the bytecode into opcodes and values | {
"resource": ""
} | ||
c27214 | train | // Creates a new query builder with a base query that is the conjunction of all queries passed | {
"resource": ""
} | ||
c27215 | train | // Creates the conjunction of Builder and rightQuery | {
"resource": ""
} | ||
c27216 | train | // Creates the conjunction of Builder and tag = operand | {
"resource": ""
} | ||
c27217 | train | // Iterators over some strings | {
"resource": ""
} | ||
c27218 | train | // NewParser allocates a new Parser and applies any number of options. | {
"resource": ""
} | ||
c27219 | train | // Parse reads and parses a shell program with an optional name. It
// returns the parsed program if no issues were encountered. Otherwise,
// an error is returned. Reads from r are buffered.
//
// Parse can be called more than once, but not concurrently. That is, a
// Parser can be reused once it is done working. | {
"resource": ""
} | ||
c27220 | train | // Stmts reads and parses statements one at a time, calling a function
// each time one is parsed. If the function returns false, parsing is
// stopped and the function is not called again. | {
"resource": ""
} | ||
c27221 | train | // Words reads and parses words one at a time, calling a function each time one
// is parsed. If the function returns false, parsing is stopped and the function
// is not called again.
//
// Newlines are skipped, meaning that multi-line input will work fine. If the
// parser encounters a token that isn't a word, such a... | {
"resource": ""
} | ||
c27222 | train | // Document parses a single here-document word. That is, it parses the input as
// if they were lines following a <<EOF redirection.
//
// In practice, this is the same as parsing the input as if it were within
// double quotes, but without having to escape all double quote characters.
// Similarly, the here-document w... | {
"resource": ""
} | ||
c27223 | train | // Incomplete reports whether the parser is waiting to read more bytes because
// it needs to finish properly parsing a statement.
//
// It is only safe to call while the parser is blocked on a read. For an example
// use case, see the documentation for Parser.Interactive. | {
"resource": ""
} | ||
c27224 | train | // IsIncomplete reports whether a Parser error could have been avoided with
// extra input bytes. For example, if an io.EOF was encountered while there was
// an unclosed quote or parenthesis. | {
"resource": ""
} | ||
c27225 | train | // ValidName returns whether val is a valid name as per the POSIX spec. | {
"resource": ""
} | ||
c27226 | train | // String returns the variable's value as a string. In general, this only makes
// sense if the variable has a string value or no value at all. | {
"resource": ""
} | ||
c27227 | train | // Resolve follows a number of nameref variables, returning the last reference
// name that was followed and the variable that it points to. | {
"resource": ""
} | ||
c27228 | train | // listEnvironWithUpper implements ListEnviron, but letting the tests specify
// whether to uppercase all names or not. | {
"resource": ""
} | ||
c27229 | train | // hasPermissionToDir returns if the OS current user has execute permission
// to the given directory | {
"resource": ""
} | ||
c27230 | train | // SourceFile sources a shell file from disk and returns the variables
// declared in it. It is a convenience function that uses a default shell
// parser, parses a file from disk, and calls SourceNode.
//
// This function should be used with caution, as it can interpret arbitrary
// code. Untrusted shell programs shou... | {
"resource": ""
} | ||
c27231 | train | // New creates a new Runner, applying a number of options. If applying any of
// the options results in an error, it is returned.
//
// Any unset options fall back to their defaults. For example, not supplying the
// environment falls back to the process's environment, and not supplying the
// standard output writer me... | {
"resource": ""
} | ||
c27232 | train | // Env sets the interpreter's environment. If nil, a copy of the current
// process's environment is used. | {
"resource": ""
} | ||
c27233 | train | // Dir sets the interpreter's working directory. If empty, the process's current
// directory is used. | {
"resource": ""
} | ||
c27234 | train | // Module sets an interpreter module, which can be ModuleExec or ModuleOpen. If
// the value is nil, the default module implementation is used. | {
"resource": ""
} | ||
c27235 | train | // StdIO configures an interpreter's standard input, standard output, and
// standard error. If out or err are nil, they default to a writer that discards
// the output. | {
"resource": ""
} | ||
c27236 | train | // Literal expands a single shell word. It is similar to Fields, but the result
// is a single string. This is the behavior when a word is used as the value in
// a shell variable assignment, for example.
//
// The config specifies shell expansion options; nil behaves the same as an
// empty config. | {
"resource": ""
} | ||
c27237 | train | // Document expands a single shell word as if it were within double quotes. It
// is simlar to Literal, but without brace expansion, tilde expansion, and
// globbing.
//
// The config specifies shell expansion options; nil behaves the same as an
// empty config. | {
"resource": ""
} | ||
c27238 | train | // Pattern expands a single shell word as a pattern, using syntax.QuotePattern
// on any non-quoted parts of the input word. The result can be used on
// syntax.TranslatePattern directly.
//
// The config specifies shell expansion options; nil behaves the same as an
// empty config. | {
"resource": ""
} | ||
c27239 | train | // Fields expands a number of words as if they were arguments in a shell
// command. This includes brace expansion, tilde expansion, parameter expansion,
// command substitution, arithmetic expansion, and quote removal. | {
"resource": ""
} | ||
c27240 | train | // pathJoin2 is a simpler version of filepath.Join without cleaning the result,
// since that's needed for globbing. | {
"resource": ""
} | ||
c27241 | train | // pathSplit splits a file path into its elements, retaining empty ones. Before
// splitting, slashes are replaced with filepath.Separator, so that splitting
// Unix paths on Windows works as well. | {
"resource": ""
} | ||
c27242 | train | // CouldBeScript reports how likely a file is to be a shell script. It
// discards directories, symlinks, hidden files and files with non-shell
// extensions. | {
"resource": ""
} | ||
c27243 | train | // atoi is just a shorthand for strconv.Atoi that ignores the error,
// just like shells do. | {
"resource": ""
} | ||
c27244 | train | // Fields performs shell expansion on s as if it were a command's arguments,
// using env to resolve variables. It is similar to Expand, but includes brace
// expansion, tilde expansion, and globbing.
//
// If env is nil, the current environment variables are used. Empty variables
// are treated as unset; to support va... | {
"resource": ""
} | ||
c27245 | train | // KeepPadding will keep most nodes and tokens in the same column that
// they were in the original source. This allows the user to decide how
// to align and pad their code with spaces.
//
// Note that this feature is best-effort and will only keep the
// alignment stable, so it may need some human help the first time... | {
"resource": ""
} | ||
c27246 | train | // NewPrinter allocates a new Printer and applies any number of options. | {
"resource": ""
} | ||
c27247 | train | // FromModuleContext returns the ModuleCtx value stored in ctx, if any. | {
"resource": ""
} | ||
c27248 | train | // DebugPrint prints the provided syntax tree, spanning multiple lines and with
// indentation. Can be useful to investigate the content of a syntax tree. | {
"resource": ""
} | ||
c27249 | train | // fill reads more bytes from the input src into readBuf. Any bytes that
// had not yet been used at the end of the buffer are slid into the
// beginning of the buffer. | {
"resource": ""
} | ||
c27250 | train | // AddFile adds a new file with the given filename and src.
//
// This an internal method, but exported for cross-package use. | {
"resource": ""
} | ||
c27251 | train | // FIXME Only in one place... | {
"resource": ""
} | ||
c27252 | train | // CompileWithSourceMap does the same thing as Compile, but with the obvious
// difference of applying a source map. | {
"resource": ""
} | ||
c27253 | train | // MarshalBinary will marshal a script into a binary form. A marshalled script
// that is later unmarshalled can be executed on the same version of the otto runtime.
//
// The binary format can change at any time and should be considered unspecified and opaque.
// | {
"resource": ""
} | ||
c27254 | train | // UnmarshalBinary will vivify a marshalled script into something usable. If the script was
// originally marshalled on a different version of the otto runtime, then this method
// will return an error.
//
// The binary format can change at any time and should be considered unspecified and opaque.
// | {
"resource": ""
} | ||
c27255 | train | // 15.3.5.3 | {
"resource": ""
} | ||
c27256 | train | // Argument will return the value of the argument at the given index.
//
// If no such argument exists, undefined is returned. | {
"resource": ""
} | ||
c27257 | train | // A range index can be anything from 0 up to length. It is NOT safe to use as an index
// to an array, but is useful for slicing and in some ECMA algorithms. | {
"resource": ""
} | ||
c27258 | train | // FIXME Should this be "SyntaxError"? | {
"resource": ""
} | ||
c27259 | train | // Add adds an Error with given position and message to an ErrorList. | {
"resource": ""
} | ||
c27260 | train | // 8.12
// 8.12.1 | {
"resource": ""
} | ||
c27261 | train | // 8.12.8 | {
"resource": ""
} | ||
c27262 | train | // decorate prefixes the string with the file and line of the call site
// and inserts the final newline if needed and indentation tabs for formascing. | {
"resource": ""
} | ||
c27263 | train | // Caller will search the stack, looking for a Terst testing scope. If a scope
// is found, then Caller returns a Call for logging errors, accessing testing.T, etc.
// If no scope is found, Caller returns nil. | {
"resource": ""
} | ||
c27264 | train | // Log is the terst version of `testing.T.Log` | {
"resource": ""
} | ||
c27265 | train | // Logf is the terst version of `testing.T.Logf` | {
"resource": ""
} | ||
c27266 | train | // Error is the terst version of `testing.T.Error` | {
"resource": ""
} | ||
c27267 | train | // Errorf is the terst version of `testing.T.Errorf` | {
"resource": ""
} | ||
c27268 | train | // Skip is the terst version of `testing.T.Skip` | {
"resource": ""
} | ||
c27269 | train | // Skipf is the terst version of `testing.T.Skipf` | {
"resource": ""
} | ||
c27270 | train | // IsFunction will return true if value is a function. | {
"resource": ""
} | ||
c27271 | train | // String will return the value as a string.
//
// This method will make return the empty string if there is an error. | {
"resource": ""
} | ||
c27272 | train | // Object will return the object of the value, or nil if value is not an object.
//
// This method will not do any implicit conversion. For example, calling this method on a string primitive value will not return a String object. | {
"resource": ""
} | ||
c27273 | train | // DebuggerHandler implements otto's debugger handler signature, providing a
// simple drop-in debugger implementation. | {
"resource": ""
} | ||
c27274 | train | // RunWithPrompt runs a REPL with the given prompt and no prelude. | {
"resource": ""
} | ||
c27275 | train | // RunWithPrelude runs a REPL with the default prompt and the given prelude. | {
"resource": ""
} | ||
c27276 | train | // RunWithPromptAndPrelude runs a REPL with the given prompt and prelude. | {
"resource": ""
} | ||
c27277 | train | // RunWithOptions runs a REPL with the given options. | {
"resource": ""
} | ||
c27278 | train | // 7.2 | {
"resource": ""
} | ||
c27279 | train | // This is here since the functions are so similar | {
"resource": ""
} | ||
c27280 | train | // Allons-y
// 8.12.1 | {
"resource": ""
} | ||
c27281 | train | // ParseFunction parses a given parameter list and body as a function and returns the
// corresponding ast.FunctionLiteral node.
//
// The parameter list, if any, should be a comma-separated list of identifiers.
// | {
"resource": ""
} | ||
c27282 | train | // This is not used for anything | {
"resource": ""
} | ||
c27283 | train | // NewComment creates a new comment | {
"resource": ""
} | ||
c27284 | train | // String returns a stringified version of the position | {
"resource": ""
} | ||
c27285 | train | // FetchAll returns all the currently scanned comments,
// including those from the next line | {
"resource": ""
} | ||
c27286 | train | // AddComment adds a comment to the view.
// Depending on the context, comments are added normally or as post line break. | {
"resource": ""
} | ||
c27287 | train | // MarkComments will mark the found comments as the given position. | {
"resource": ""
} | ||
c27288 | train | // Unset the current node and apply the comments to the current expression.
// Resets context variables. | {
"resource": ""
} | ||
c27289 | train | // SetExpression sets the current expression.
// It is applied the found comments, unless the previous expression has not been unset.
// It is skipped if the node is already set or if it is a part of the previous node. | {
"resource": ""
} | ||
c27290 | train | // PostProcessNode applies all found comments to the given node | {
"resource": ""
} | ||
c27291 | train | // applyComments applies both the comments and the future comments to the given node and the previous one,
// based on the context. | {
"resource": ""
} | ||
c27292 | train | // AddComment adds a single comment to the map | {
"resource": ""
} | ||
c27293 | train | // AddComments adds a slice of comments, given a node and an updated position | {
"resource": ""
} | ||
c27294 | train | // Size returns the size of the map | {
"resource": ""
} | ||
c27295 | train | // MoveComments moves comments with a given position from a node to another | {
"resource": ""
} | ||
c27296 | train | // New will allocate a new JavaScript runtime | {
"resource": ""
} | ||
c27297 | train | // Eval will do the same thing as Run, except without leaving the current scope.
//
// By staying in the same scope, the code evaluated has access to everything
// already defined in the current stack frame. This is most useful in, for
// example, a debugger call. | {
"resource": ""
} | ||
c27298 | train | // MakeCustomError creates a new Error object with the given name and message,
// returning it as a Value. | {
"resource": ""
} | ||
c27299 | train | // MakeRangeError creates a new RangeError object with the given message,
// returning it as a Value. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.