_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c18500 | train | // TraceLoad is a noop function | {
"resource": ""
} | ||
c18501 | train | // TraceLoadMany is a noop function | {
"resource": ""
} | ||
c18502 | train | // TraceBatch is a noop function | {
"resource": ""
} | ||
c18503 | train | // This is the main function for the code generation plugin. | {
"resource": ""
} | ||
c18504 | train | // resolvePackageName converts a path to a valid package name or
// error if path can't be resolved or resolves to an invalid package name. | {
"resource": ""
} | ||
c18505 | train | // Print adds a line of code using the current indentation. Accepts printf-style format strings and arguments. | {
"resource": ""
} | ||
c18506 | train | // PrintIf adds a line of code using the current indentation if a condition is true. Accepts printf-style format strings and arguments. | {
"resource": ""
} | ||
c18507 | train | //
// OPERATIONS
// The following methods perform operations on Schemas.
//
// IsEmpty returns true if no members of the Schema are specified. | {
"resource": ""
} | ||
c18508 | train | // IsEqual returns true if two schemas are equal. | {
"resource": ""
} | ||
c18509 | train | // Applies a specified function to a Schema and all of the Schemas that it contains. | {
"resource": ""
} | ||
c18510 | train | // TypeIs returns true if the Type of a Schema includes the specified type | {
"resource": ""
} | ||
c18511 | train | // resolveJSONPointer resolves JSON pointers.
// This current implementation is very crude and custom for OpenAPI 2.0 schemas.
// It panics for any pointer that it is unable to resolve. | {
"resource": ""
} | ||
c18512 | train | // ResolveAllOfs replaces "allOf" elements by merging their properties into the parent Schema. | {
"resource": ""
} | ||
c18513 | train | // ResolveAnyOfs replaces all "anyOf" elements with "oneOf". | {
"resource": ""
} | ||
c18514 | train | // CopyOfficialSchemaProperty copies a named property from the official JSON Schema definition | {
"resource": ""
} | ||
c18515 | train | // CopyOfficialSchemaProperties copies named properties from the official JSON Schema definition | {
"resource": ""
} | ||
c18516 | train | // basic escaping, will need to be improved or replaced | {
"resource": ""
} | ||
c18517 | train | // Marshal writes a yaml.MapSlice as JSON | {
"resource": ""
} | ||
c18518 | train | // NewContextWithExtensions returns a new object representing the compiler state | {
"resource": ""
} | ||
c18519 | train | // NewContext returns a new object representing the compiler state | {
"resource": ""
} | ||
c18520 | train | // Description returns a text description of the compiler state | {
"resource": ""
} | ||
c18521 | train | // Analyze an OpenAPI description. | {
"resource": ""
} | ||
c18522 | train | // Analyze a definition in an OpenAPI description. | {
"resource": ""
} | ||
c18523 | train | // NewSchemaFromFile reads a schema from a file.
// Currently this assumes that schemas are stored in the source distribution of this project. | {
"resource": ""
} | ||
c18524 | train | // NewDomain creates a domain representation. | {
"resource": ""
} | ||
c18525 | train | // TypeNameForStub returns a capitalized name to use for a generated type. | {
"resource": ""
} | ||
c18526 | train | // typeNameForReference returns a capitalized name to use for a generated type based on a JSON reference | {
"resource": ""
} | ||
c18527 | train | // propertyNameForReference returns a property name to use for a JSON reference | {
"resource": ""
} | ||
c18528 | train | // arrayItemTypeForSchema determines the item type for arrays defined by a schema | {
"resource": ""
} | ||
c18529 | train | // BuildTypeForDefinition creates a type representation for a schema definition. | {
"resource": ""
} | ||
c18530 | train | // Description returns a string representation of a domain. | {
"resource": ""
} | ||
c18531 | train | // compiler helper functions, usually called from generated code
// UnpackMap gets a yaml.MapSlice if possible. | {
"resource": ""
} | ||
c18532 | train | // SortedKeysForMap returns the sorted keys of a yaml.MapSlice. | {
"resource": ""
} | ||
c18533 | train | // MapHasKey returns true if a yaml.MapSlice contains a specified key. | {
"resource": ""
} | ||
c18534 | train | // MapValueForKey gets the value of a map value for a specified key. | {
"resource": ""
} | ||
c18535 | train | // ConvertInterfaceArrayToStringArray converts an array of interfaces to an array of strings, if possible. | {
"resource": ""
} | ||
c18536 | train | // MissingKeysInMap identifies which keys from a list of required keys are not in a map. | {
"resource": ""
} | ||
c18537 | train | // InvalidKeysInMap returns keys in a map that don't match a list of allowed keys and patterns. | {
"resource": ""
} | ||
c18538 | train | // StringArrayContainsValue returns true if a string array contains a specified value. | {
"resource": ""
} | ||
c18539 | train | // StringArrayContainsValues returns true if a string array contains all of a list of specified values. | {
"resource": ""
} | ||
c18540 | train | // StringValue returns the string value of an item. | {
"resource": ""
} | ||
c18541 | train | // NewTypeRequest creates a TypeRequest. | {
"resource": ""
} | ||
c18542 | train | // NewTypePropertyWithNameAndType creates a TypeProperty | {
"resource": ""
} | ||
c18543 | train | // NewTypePropertyWithNameTypeAndPattern creates a TypeProperty | {
"resource": ""
} | ||
c18544 | train | // FieldName returns the message field name to use for a property. | {
"resource": ""
} | ||
c18545 | train | // walker is called for each summary file found. | {
"resource": ""
} | ||
c18546 | train | // Record an error, then serialize and return a response. | {
"resource": ""
} | ||
c18547 | train | // Serialize and return a response. | {
"resource": ""
} | ||
c18548 | train | // NewSchemaNumberWithInteger creates and returns a new object | {
"resource": ""
} | ||
c18549 | train | // NewSchemaNumberWithFloat creates and returns a new object | {
"resource": ""
} | ||
c18550 | train | // NewSchemaOrBooleanWithSchema creates and returns a new object | {
"resource": ""
} | ||
c18551 | train | // NewSchemaOrBooleanWithBoolean creates and returns a new object | {
"resource": ""
} | ||
c18552 | train | // NewStringOrStringArrayWithString creates and returns a new object | {
"resource": ""
} | ||
c18553 | train | // NewStringOrStringArrayWithStringArray creates and returns a new object | {
"resource": ""
} | ||
c18554 | train | // NewSchemaOrSchemaArrayWithSchema creates and returns a new object | {
"resource": ""
} | ||
c18555 | train | // NewSchemaOrSchemaArrayWithSchemaArray creates and returns a new object | {
"resource": ""
} | ||
c18556 | train | // NewNamedSchema creates and returns a new object | {
"resource": ""
} | ||
c18557 | train | // Access named subschemas by name | {
"resource": ""
} | ||
c18558 | train | // PropertyWithName returns the selected element. | {
"resource": ""
} | ||
c18559 | train | // PatternPropertyWithName returns the selected element. | {
"resource": ""
} | ||
c18560 | train | // DefinitionWithName returns the selected element. | {
"resource": ""
} | ||
c18561 | train | // AddProperty adds a named property. | {
"resource": ""
} | ||
c18562 | train | // convert the first character of a string to lower case | {
"resource": ""
} | ||
c18563 | train | // ReadSection reads a section of the OpenAPI Specification, recursively dividing it into subsections | {
"resource": ""
} | ||
c18564 | train | // Display recursively displays a section of the specification. | {
"resource": ""
} | ||
c18565 | train | // remove a link from a string, leaving only the text that follows it
// if there is no link, just return the string | {
"resource": ""
} | ||
c18566 | train | // extract the fixed fields from a table in a section | {
"resource": ""
} | ||
c18567 | train | // extract the patterned fields from a table in a section | {
"resource": ""
} | ||
c18568 | train | // NewSchemaModel returns a new SchemaModel. | {
"resource": ""
} | ||
c18569 | train | // NewError creates an Error. | {
"resource": ""
} | ||
c18570 | train | // Error returns the string value of an Error. | {
"resource": ""
} | ||
c18571 | train | // NewErrorGroupOrNil returns a new ErrorGroup for a slice of errors or nil if the slice is empty. | {
"resource": ""
} | ||
c18572 | train | // Determine the version of an OpenAPI description read from JSON or YAML. | {
"resource": ""
} | ||
c18573 | train | // Initialize a structure to store global application state. | {
"resource": ""
} | ||
c18574 | train | // Parse command-line options. | {
"resource": ""
} | ||
c18575 | train | // Validate command-line options. | {
"resource": ""
} | ||
c18576 | train | // Generate an error message to be written to stderr or a file. | {
"resource": ""
} | ||
c18577 | train | // Read an OpenAPI description from YAML or JSON. | {
"resource": ""
} | ||
c18578 | train | // Read an OpenAPI binary file. | {
"resource": ""
} | ||
c18579 | train | // Write a binary pb representation. | {
"resource": ""
} | ||
c18580 | train | // Write a text pb representation. | {
"resource": ""
} | ||
c18581 | train | // Write messages. | {
"resource": ""
} | ||
c18582 | train | // Perform all actions specified in the command-line options. | {
"resource": ""
} | ||
c18583 | train | // ProcessExtension calles the handler for a specified extension. | {
"resource": ""
} | ||
c18584 | train | // NewAnnotations creates an object of type Annotations if possible, returning an error if not. | {
"resource": ""
} | ||
c18585 | train | // NewAny creates an object of type Any if possible, returning an error if not. | {
"resource": ""
} | ||
c18586 | train | // NewAuth creates an object of type Auth if possible, returning an error if not. | {
"resource": ""
} | ||
c18587 | train | // NewMediaUpload creates an object of type MediaUpload if possible, returning an error if not. | {
"resource": ""
} | ||
c18588 | train | // NewMethods creates an object of type Methods if possible, returning an error if not. | {
"resource": ""
} | ||
c18589 | train | // NewProtocols creates an object of type Protocols if possible, returning an error if not. | {
"resource": ""
} | ||
c18590 | train | // NewResource creates an object of type Resource if possible, returning an error if not. | {
"resource": ""
} | ||
c18591 | train | // NewResources creates an object of type Resources if possible, returning an error if not. | {
"resource": ""
} | ||
c18592 | train | // NewScopes creates an object of type Scopes if possible, returning an error if not. | {
"resource": ""
} | ||
c18593 | train | // NewSimple creates an object of type Simple if possible, returning an error if not. | {
"resource": ""
} | ||
c18594 | train | // NewStringArray creates an object of type StringArray if possible, returning an error if not. | {
"resource": ""
} | ||
c18595 | train | // ResolveReferences resolves references found inside MediaUpload objects. | {
"resource": ""
} | ||
c18596 | train | // ResolveReferences resolves references found inside Method objects. | {
"resource": ""
} | ||
c18597 | train | // ResolveReferences resolves references found inside Methods objects. | {
"resource": ""
} | ||
c18598 | train | // ResolveReferences resolves references found inside NamedMethod objects. | {
"resource": ""
} | ||
c18599 | train | // ResolveReferences resolves references found inside Protocols objects. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.