_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c16100 | train | // Returns the header keys | {
"resource": ""
} | ||
c16101 | train | // returns the header value | {
"resource": ""
} | ||
c16102 | train | // Sets the header status | {
"resource": ""
} | ||
c16103 | train | // Returns the values for a form | {
"resource": ""
} | ||
c16104 | train | // A bit trick of an implementation
// If the arg contains an ace_inner field then that will be used
// to fetch a new template | {
"resource": ""
} | ||
c16105 | train | // Init method used to initialize DB module on `OnAppStart` | {
"resource": ""
} | ||
c16106 | train | // Initialize the database from revel.Config | {
"resource": ""
} | ||
c16107 | train | // If this call should be checked validate token | {
"resource": ""
} | ||
c16108 | train | // Helper function to fix the full URL in the request | {
"resource": ""
} | ||
c16109 | train | // Compare the two tokens | {
"resource": ""
} | ||
c16110 | train | // Validates same origin policy | {
"resource": ""
} | ||
c16111 | train | // Add a function to the template functions map | {
"resource": ""
} | ||
c16112 | train | // NewAdapter is the constructor for Adapter. | {
"resource": ""
} | ||
c16113 | train | // LoadPolicy loads policy from database. | {
"resource": ""
} | ||
c16114 | train | // SavePolicy saves policy to database. | {
"resource": ""
} | ||
c16115 | train | // NewGracefulListener wraps the given listener into 'graceful shutdown' listener. | {
"resource": ""
} | ||
c16116 | train | // Close closes the inner listener and waits until all the pending open connections
// are closed before returning. | {
"resource": ""
} | ||
c16117 | train | // return a 'revel.Template' from HAML's template. | {
"resource": ""
} | ||
c16118 | train | // This creates a DbWorkerContainer with the number of working threads already started.
// Each working thread has their own database instance running. | {
"resource": ""
} | ||
c16119 | train | // Called by using "go" to invoke, creates a DBWorker, and starts a watchdog channel | {
"resource": ""
} | ||
c16120 | train | // Starts the worker, continues running until inputchannel is closed | {
"resource": ""
} | ||
c16121 | train | // Wrapper to prevent panics from disturbing the channel | {
"resource": ""
} | ||
c16122 | train | // A function to return an object that is a valid DbCallback | {
"resource": ""
} | ||
c16123 | train | // Call the status function if available | {
"resource": ""
} | ||
c16124 | train | // Calls the work function | {
"resource": ""
} | ||
c16125 | train | //Starts the timeout worker | {
"resource": ""
} | ||
c16126 | train | // Create a new database connection and open it from this one | {
"resource": ""
} | ||
c16127 | train | // Called to perform table registration and anything else that needs to be done on a new connection | {
"resource": ""
} | ||
c16128 | train | // Used to specifiy the init function to call when database is initialized
// Calls the init function immediately | {
"resource": ""
} | ||
c16129 | train | // Called to render the ace template inner | {
"resource": ""
} | ||
c16130 | train | // Begin begins a DB transaction | {
"resource": ""
} | ||
c16131 | train | // Commit commits the database transation | {
"resource": ""
} | ||
c16132 | train | // This is a simplistic example of setting up a filter to record all events for the
// webserver as transactions | {
"resource": ""
} | ||
c16133 | train | // This function serves out the directory as a browseable folder | {
"resource": ""
} | ||
c16134 | train | // Process a directory create a list of objects to be rendered representing the data for the directory | {
"resource": ""
} | ||
c16135 | train | // S3Endpoint returns the S3 URI to use if custom host information has been provided | {
"resource": ""
} | ||
c16136 | train | // AssertPutOptionsApplied asserts that `s3cli put` uploads files with
// the requested encryption options | {
"resource": ""
} | ||
c16137 | train | // AssertGetNonexistentFails asserts that `s3cli get` on a non-existent object
// will fail | {
"resource": ""
} | ||
c16138 | train | // New returns a BlobstoreClient if the configuration file backing configFile is valid | {
"resource": ""
} | ||
c16139 | train | // Get fetches a blob from an S3 compatible blobstore
// Destination will be overwritten if exists | {
"resource": ""
} | ||
c16140 | train | // Put uploads a blob to an S3 compatible blobstore | {
"resource": ""
} | ||
c16141 | train | // Delete removes a blob from an S3 compatible blobstore. If the object does
// not exist, Delete does not return an error. | {
"resource": ""
} | ||
c16142 | train | // Exists checks if blob exists in an S3 compatible blobstore | {
"resource": ""
} | ||
c16143 | train | // Build and return package.xml | {
"resource": ""
} | ||
c16144 | train | // Returns the full ForceMetadataFiles container | {
"resource": ""
} | ||
c16145 | train | // Returns the source file path for a given metadata file path. | {
"resource": ""
} | ||
c16146 | train | // Add a file to the builder | {
"resource": ""
} | ||
c16147 | train | //AddDirectory Recursively add files contained in provided directory | {
"resource": ""
} | ||
c16148 | train | // Adds the file to a temp directory for deploy | {
"resource": ""
} | ||
c16149 | train | // Adds a metadata name to the pending package | {
"resource": ""
} | ||
c16150 | train | // Gets metadata type name and target name from a file path | {
"resource": ""
} | ||
c16151 | train | // Gets meta type and name based on a path | {
"resource": ""
} | ||
c16152 | train | // Return the name of the first element of an XML file. We need this
// because the metadata xml uses the metadata type as the first element
// in the metadata xml definition. Could be a better way of doing this. | {
"resource": ""
} | ||
c16153 | train | // Helper function to read the first element of an XML file. | {
"resource": ""
} | ||
c16154 | train | // Look for xml files. When one is found, check the first element of the
// XML. It should be the metadata type as expected by the platform. See
// if it matches the type passed in on mdtype, and if so, return the folder
// that contains the xml file, then bail out. If no file is found for the
// passed in type, then... | {
"resource": ""
} | ||
c16155 | train | // Just zip up what ever is in the path | {
"resource": ""
} | ||
c16156 | train | // Save the credentials as the active session with the UserInfo and with the
// default current API version. | {
"resource": ""
} | ||
c16157 | train | // Add UserInfo and SessionOptions to old ForceSession | {
"resource": ""
} | ||
c16158 | train | // Example of how to use Go's reflection
// Print the attributes of a Data Model | {
"resource": ""
} | ||
c16159 | train | // Creates a package that includes everything in the passed in string slice
// and then deploys the package to salesforce | {
"resource": ""
} | ||
c16160 | train | // Process and display the result of the push operation | {
"resource": ""
} | ||
c16161 | train | // Prepend https schema and instance to URL | {
"resource": ""
} | ||
c16162 | train | // IsSourceDir returns a boolean indicating that dir is actually a Salesforce
// source directory. | {
"resource": ""
} | ||
c16163 | train | // GetSourceDir returns a rooted path name of the Salesforce source directory,
// relative to the current directory. GetSourceDir will look for a source
// directory in the nearest subdirectory. If no such directory exists, it will
// look at its parents, assuming that it is within a source directory already. | {
"resource": ""
} | ||
c16164 | train | // returns first index of a given string | {
"resource": ""
} | ||
c16165 | train | // Group is the primary logic for implementing TokenGrouper | {
"resource": ""
} | ||
c16166 | train | // NewToken is the default implementation of the Token struct | {
"resource": ""
} | ||
c16167 | train | // String is the string representation of Token | {
"resource": ""
} | ||
c16168 | train | // N returns the total number of sample outcomes that have been recorded by this FreqDist. | {
"resource": ""
} | ||
c16169 | train | // Return the dictionary mapping r to Nr, the number of Samples with frequency r, where Nr > 0 | {
"resource": ""
} | ||
c16170 | train | // Return the cumulative frequencies of the specified Samples.
// If no Samples are specified, all counts are returned, starting with the largest. | {
"resource": ""
} | ||
c16171 | train | // HasSentencePunct does the supplied text have a known sentence punctuation character? | {
"resource": ""
} | ||
c16172 | train | // NewTypeBasedAnnotation creates an instance of the TypeBasedAnnotation struct | {
"resource": ""
} | ||
c16173 | train | // NewAnnotations is the default AnnotateTokens struct that the tokenizer uses | {
"resource": ""
} | ||
c16174 | train | // Annotate iterates over all tokens and applies the type annotation on them | {
"resource": ""
} | ||
c16175 | train | // Annotate iterates groups tokens in pairs of two and then iterates over them to apply token annotation | {
"resource": ""
} | ||
c16176 | train | // NewSentenceTokenizer are the sane defaults for the sentence tokenizer | {
"resource": ""
} | ||
c16177 | train | // NewTokenizer wraps around DST doing the work for customizing the tokenizer | {
"resource": ""
} | ||
c16178 | train | // Tokenize splits text input into sentence tokens. | {
"resource": ""
} | ||
c16179 | train | // Find any punctuation excluding the period final | {
"resource": ""
} | ||
c16180 | train | // Tokenize breaks text into words while preserving their character position, whether it starts
// a new line, and new paragraph. | {
"resource": ""
} | ||
c16181 | train | // Type returns a case-normalized representation of the token. | {
"resource": ""
} | ||
c16182 | train | // TypeNoPeriod is the type with its final period removed if it has one. | {
"resource": ""
} | ||
c16183 | train | // TypeNoSentPeriod is the type with its final period removed if it is marked as a sentence break. | {
"resource": ""
} | ||
c16184 | train | // FirstUpper is true if the token's first character is uppercase. | {
"resource": ""
} | ||
c16185 | train | // FirstLower is true if the token's first character is lowercase | {
"resource": ""
} | ||
c16186 | train | // IsEllipsis is true if the token text is that of an ellipsis. | {
"resource": ""
} | ||
c16187 | train | // IsNumber is true if the token text is that of a number. | {
"resource": ""
} | ||
c16188 | train | // IsInitial is true if the token text is that of an initial. | {
"resource": ""
} | ||
c16189 | train | // IsAlpha is true if the token text is all alphabetic. | {
"resource": ""
} | ||
c16190 | train | // IsNonPunct is true if the token is either a number or is alphabetic. | {
"resource": ""
} | ||
c16191 | train | // HasPeriodFinal is true if the last character in the word is a period | {
"resource": ""
} | ||
c16192 | train | // HasSentEndChars finds any punctuation excluding the period final | {
"resource": ""
} | ||
c16193 | train | // Has checks whether a key exists in the set | {
"resource": ""
} | ||
c16194 | train | // Array returns and array of keys from the set | {
"resource": ""
} | ||
c16195 | train | // Used in the training to add a type to the ortho context | {
"resource": ""
} | ||
c16196 | train | // IsAbbr detemines if any of the tokens are an abbreviation | {
"resource": ""
} | ||
c16197 | train | // Add adds an index | {
"resource": ""
} | ||
c16198 | train | // AddUnique adds an unique index | {
"resource": ""
} | ||
c16199 | train | // CreateTableIfNotExists creates a new table and its indexes based on the table struct type
// It will panic if table creation failed, and it will return error if the index creation failed. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.