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