_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c181300
test
// SetAnnotation sets annotations for the virtual machine.
{ "resource": "" }
c181301
test
// SetVirtualHwVersion sets a virtual hardware version in the VMX file of the VM.
{ "resource": "" }
c181302
test
// Error returns a description of the error along with its code and operation // implementing Go's error interface.
{ "resource": "" }
c181303
test
// Errorf returns a traceable error with the given formatted message.
{ "resource": "" }
c181304
test
// Error returns the original error message plus the stack trace captured // at the time the error was first wrapped.
{ "resource": "" }
c181305
test
// string converts a given stack frame to a formated string.
{ "resource": "" }
c181306
test
// newStackFrame returns a new stack frame initialized from the passed // in program counter.
{ "resource": "" }
c181307
test
// captureStack returns a slice of stack frames representing the stack // of the calling go routine.
{ "resource": "" }
c181308
test
// parseFuncName returns the package path and function signature for a // give Func name.
{ "resource": "" }
c181309
test
// Stack logs the error err with the stack trace.
{ "resource": "" }
c181310
test
// StackWithCaller logs the error err with the caller package name and the stack trace.
{ "resource": "" }
c181311
test
// Write calls the writer upstream after executing the functions in the before field.
{ "resource": "" }
c181312
test
// ResponseStatus returns the HTTP response status. // Remember that the status is only set by the server after WriteHeader has been called.
{ "resource": "" }
c181313
test
// httpResponseStruct returns the response structure after going trough all the intermediary response writers.
{ "resource": "" }
c181314
test
// SetDetectedContentType detects, sets and returns the response Conten-Type header value.
{ "resource": "" }
c181315
test
// New ServerError.New
{ "resource": "" }
c181316
test
// New DBError.New
{ "resource": "" }
c181317
test
// New ValidationError.New
{ "resource": "" }
c181318
test
// New NotFoundError.New
{ "resource": "" }
c181319
test
// StrLength param is a string, length must be n
{ "resource": "" }
c181320
test
// StrLenIn param is a string, length is in array
{ "resource": "" }
c181321
test
// StrIn param is a string, the string is in array
{ "resource": "" }
c181322
test
// GetEmail check is a email
{ "resource": "" }
c181323
test
// MostSpecific returns the most specific from a list of types in an hierarchy // behaviour is undefined if any of the types are siblings.
{ "resource": "" }
c181324
test
//Full type hierarchy is returned when provided either the concept type // or full uri of the most specific concept type
{ "resource": "" }
c181325
test
// SortTypes sorts the given types from least specific to most specific
{ "resource": "" }
c181326
test
// Delete value in redis session
{ "resource": "" }
c181327
test
// Set value in redis session
{ "resource": "" }
c181328
test
// refresh refresh store to redis
{ "resource": "" }
c181329
test
// Get read redis session by sid
{ "resource": "" }
c181330
test
// Destroy delete redis session by id
{ "resource": "" }
c181331
test
// UpExpire refresh session expire
{ "resource": "" }
c181332
test
// Use adds a handler to the handlers stack.
{ "resource": "" }
c181333
test
// ServeHTTP makes a context for the request, sets some good practice default headers and enters the handlers stack.
{ "resource": "" }
c181334
test
// Use adds middleware to the group, see example code in github.
{ "resource": "" }
c181335
test
// Group creates a new router group. You should add all the routes that have common middlwares or the same path prefix. // For example, all the routes that use a common middlware for authorization could be grouped.
{ "resource": "" }
c181336
test
// Run starts the server for listening and serving.
{ "resource": "" }
c181337
test
// create returns a new blank Engine instance without any middleware attached.
{ "resource": "" }
c181338
test
// Redirect Redirect replies to the request with a redirect to url, which may be a path relative to the request path.
{ "resource": "" }
c181339
test
// Ok Response json
{ "resource": "" }
c181340
test
// Fail Response fail
{ "resource": "" }
c181341
test
// ResStatus Response status code, use http.StatusText to write the response.
{ "resource": "" }
c181342
test
// Next calls the next handler in the stack, but only if the response isn't already written.
{ "resource": "" }
c181343
test
// GetSession get session
{ "resource": "" }
c181344
test
// GetBodyJSON return a json from body
{ "resource": "" }
c181345
test
// SetSession set session
{ "resource": "" }
c181346
test
// FreshSession set session
{ "resource": "" }
c181347
test
// DeleteSession delete session
{ "resource": "" }
c181348
test
// Write sets the context's written flag before writing the response.
{ "resource": "" }
c181349
test
// WriteHeader sets the context's written flag before writing the response header.
{ "resource": "" }
c181350
test
// New instantiates a new client with the given params and return a reference to it
{ "resource": "" }
c181351
test
// setAllowLargeResults - private function to set the AllowLargeResults and tempTableName values
{ "resource": "" }
c181352
test
// connect - opens a new connection to bigquery, reusing the token if possible or regenerating a new auth token if required
{ "resource": "" }
c181353
test
// InsertRow inserts a new row into the desired project, dataset and table or returns an error
{ "resource": "" }
c181354
test
// AsyncQuery loads the data by paging through the query results and sends back payloads over the dataChan - dataChan sends a payload containing Data objects made up of the headers, rows and an error attribute
{ "resource": "" }
c181355
test
// Query loads the data for the query paging if necessary and return the data rows, headers and error
{ "resource": "" }
c181356
test
// stdPagedQuery executes a query using default job parameters and paging over the results, returning them over the data chan provided
{ "resource": "" }
c181357
test
// largeDataPagedQuery builds a job and inserts it into the job queue allowing the flexibility to set the custom AllowLargeResults flag for the job
{ "resource": "" }
c181358
test
// pagedQuery executes the query using bq's paging mechanism to load all results and sends them back via dataChan if available, otherwise it returns the full result set, headers and error as return values
{ "resource": "" }
c181359
test
// pageOverJob loads results for the given job reference and if the total results has not been hit continues to load recursively
{ "resource": "" }
c181360
test
// Count loads the row count for the provided dataset.tablename
{ "resource": "" }
c181361
test
// work uses fetcher to recursively crawl // pages starting with url, to a maximum of depth.
{ "resource": "" }
c181362
test
// subworker catches any panic while running the job.
{ "resource": "" }
c181363
test
// worker gets a job from the job_pipe, passes it to a // subworker and puts the job in the done_pipe when finished.
{ "resource": "" }
c181364
test
// the supervisor feeds jobs to workers and keeps track of them.
{ "resource": "" }
c181365
test
// Run starts the Pool by launching the workers. // It's OK to start an empty Pool. The jobs will be fed to the workers as soon // as they become available.
{ "resource": "" }
c181366
test
// Add creates a Job from the given function and args and // adds it to the Pool.
{ "resource": "" }
c181367
test
// Wait blocks until all the jobs in the Pool are done.
{ "resource": "" }
c181368
test
// Results retrieves the completed jobs.
{ "resource": "" }
c181369
test
// WaitForJob blocks until a completed job is available and returns it. // If there are no jobs running, it returns nil.
{ "resource": "" }
c181370
test
// Status returns a "stats" instance.
{ "resource": "" }
c181371
test
// WrapHTTPHandlerFunc wraps http.HandlerFunc in possum.HandlerFunc. // See pprof.go.
{ "resource": "" }
c181372
test
// WebSocketHandlerFunc convert websocket function to possum.HandlerFunc.
{ "resource": "" }
c181373
test
// StaticFile returns the view which can serve static files.
{ "resource": "" }
c181374
test
// PreloadFile returns the view which can preload static files and serve them. // The different between `StaticFile` and `PreloadFile` is that `StaticFile` // load the content of file at every request, while `PreloadFile` load // the content into memory at the initial stage. Despite that `PreloadFile` // will be using more memories and could not update the content in time until // restart the application, it should be fast than `StaticFile` in runtime.
{ "resource": "" }
c181375
test
// InitHtmlTemplates initialzes a series of HTML templates // in the directory `pattern`.
{ "resource": "" }
c181376
test
// InitTextTemplates initialzes a series of plain text templates // in the directory `pattern`.
{ "resource": "" }
c181377
test
// Html retruns a TemplateView witch uses HTML templates internally.
{ "resource": "" }
c181378
test
// Text retruns a TemplateView witch uses text templates internally.
{ "resource": "" }
c181379
test
// InitWatcher initialzes a watcher to watch templates changes in the `pattern`. // f would be InitHtmlTemplates or InitTextTemplates. // If the watcher raises an error internally, the callback function ef will be executed. // ef can be nil witch represents ignoring all internal errors.
{ "resource": "" }
c181380
test
// CloseWatcher closes the wathcer.
{ "resource": "" }
c181381
test
// Find a router with the specific path and return it.
{ "resource": "" }
c181382
test
// Add a router to list
{ "resource": "" }
c181383
test
// NewRouters initailizes Routers instance.
{ "resource": "" }
c181384
test
// NewServerMux returns a new Handler.
{ "resource": "" }
c181385
test
// Internal error handler
{ "resource": "" }
c181386
test
// HandleFunc specifies a pair of handler and view to handle // the request witch matching router.
{ "resource": "" }
c181387
test
// handleError tests the context `Error` and assign it to response.
{ "resource": "" }
c181388
test
// Redirect performs a redirecting to the url, if the code belongs to // one of StatusMovedPermanently, StatusFound, StatusSeeOther, and // StatusTemporaryRedirect.
{ "resource": "" }
c181389
test
// InitPProf registers pprof handlers to the ServeMux. // The pprof handlers can be specified a customized prefix.
{ "resource": "" }
c181390
test
// StartSession initaillizes a session context. // This function should be called in a implementation // of possum.HandleFunc.
{ "resource": "" }
c181391
test
//Combination generator for int slice
{ "resource": "" }
c181392
test
//Repeated combination generator for int slice
{ "resource": "" }
c181393
test
//Permtation generator for int slice
{ "resource": "" }
c181394
test
//Repeated permtation generator for int slice
{ "resource": "" }
c181395
test
// Receives format string in gstring format and map of arguments and translates // them to format and arguments compatible with standard golang formatting.
{ "resource": "" }
c181396
test
// interface similar to "fmt" package // Errorm returns error instance with formatted error message. // This is same as fmt.Errorf, but uses gstring formatting.
{ "resource": "" }
c181397
test
// Fprintm writes formatted string to provided writer. // This is same as fmt.Fprintf, but uses gstring formatting.
{ "resource": "" }
c181398
test
// Printf prints formatted string to stdout. // This is same as fmt.Printf, but uses gstring formatting.
{ "resource": "" }
c181399
test
// Sprintf returns formatted string. // This is same as fmt.Sprintf, but uses gstring formatting.
{ "resource": "" }