_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c18000 | train | // Called if panic | {
"resource": ""
} | ||
c18001 | train | // copyDir copies a directory tree over to a new directory. Any files ending in
// ".template" are treated as a Go template and rendered using the given data.
// Additionally, the trailing ".template" is stripped from the file name.
// Also, dot files and dot directories are skipped. | {
"resource": ""
} | ||
c18002 | train | // Tar gz the folder | {
"resource": ""
} | ||
c18003 | train | // empty returns true if the given directory is empty.
// the directory must exist. | {
"resource": ""
} | ||
c18004 | train | // Find the full source dir for the import path, uses the build.Default.GOPATH to search for the directory | {
"resource": ""
} | ||
c18005 | train | // Returns 0 or an int value for the string, errors are returned as 0 | {
"resource": ""
} | ||
c18006 | train | // Returns true if this major revision is compatible | {
"resource": ""
} | ||
c18007 | train | // Returns true if this major revision is newer then the passed in | {
"resource": ""
} | ||
c18008 | train | // Returns true if this major or major and minor revision is newer then the value passed in | {
"resource": ""
} | ||
c18009 | train | // Returns true if the version is newer then the current on | {
"resource": ""
} | ||
c18010 | train | // Convert the version to a string | {
"resource": ""
} | ||
c18011 | train | // Convert the version build date and go version to a string | {
"resource": ""
} | ||
c18012 | train | // ServeHTTP handles all requests.
// It checks for changes to app, rebuilds if necessary, and forwards the request. | {
"resource": ""
} | ||
c18013 | train | // NewHarness method returns a reverse proxy that forwards requests
// to the given port. | {
"resource": ""
} | ||
c18014 | train | // Refresh method rebuilds the Revel application and run it on the given port.
// called by the watcher | {
"resource": ""
} | ||
c18015 | train | // WatchDir method returns false to file matches with doNotWatch
// otheriwse true | {
"resource": ""
} | ||
c18016 | train | // Run the harness, which listens for requests and proxies them to the app
// server, which it runs and rebuilds as necessary. | {
"resource": ""
} | ||
c18017 | train | // Find an unused port | {
"resource": ""
} | ||
c18018 | train | // If this Decl is a struct type definition, it is summarized and added to specs.
// Else, specs is returned unchanged. | {
"resource": ""
} | ||
c18019 | train | // Combine the 2 source info models into one | {
"resource": ""
} | ||
c18020 | train | // Returns a new builed error | {
"resource": ""
} | ||
c18021 | train | // Returns a new BuildError if err is not nil | {
"resource": ""
} | ||
c18022 | train | // ProcessSource parses the app controllers directory and
// returns a list of the controller types found.
// Otherwise CompileError if the parsing fails. | {
"resource": ""
} | ||
c18023 | train | // Called during the "walk process" | {
"resource": ""
} | ||
c18024 | train | // Process a single package within a file | {
"resource": ""
} | ||
c18025 | train | // getStructTypeDecl checks if the given decl is a type declaration for a
// struct. If so, the TypeSpec is returned. | {
"resource": ""
} | ||
c18026 | train | // NewApp returns app instance with binary path in it | {
"resource": ""
} | ||
c18027 | train | // Cmd returns a command to run the app server using the current configuration. | {
"resource": ""
} | ||
c18028 | train | // NewAppCmd returns the AppCmd with parameters initialized for running app | {
"resource": ""
} | ||
c18029 | train | // Start the app server, and wait until it is ready to serve requests. | {
"resource": ""
} | ||
c18030 | train | // Run the app server inline. Never returns. | {
"resource": ""
} | ||
c18031 | train | // Kill terminates the app server if it's running. | {
"resource": ""
} | ||
c18032 | train | // Writes to this output stream | {
"resource": ""
} | ||
c18033 | train | // Creates a new watched based on the container | {
"resource": ""
} | ||
c18034 | train | // NotifyWhenUpdated notifies the watcher when a file event is received. | {
"resource": ""
} | ||
c18035 | train | // Build a queue for refresh notifications
// this will not return until one of the queue completes | {
"resource": ""
} | ||
c18036 | train | // Update the clean command configuration, using old method | {
"resource": ""
} | ||
c18037 | train | // Clean the source directory of generated files | {
"resource": ""
} | ||
c18038 | train | // Generate a secret key | {
"resource": ""
} | ||
c18039 | train | // Sets the applicaiton path | {
"resource": ""
} | ||
c18040 | train | // Set the skeleton path | {
"resource": ""
} | ||
c18041 | train | // Load skeleton from git | {
"resource": ""
} | ||
c18042 | train | // This function is to throw a panic that may be caught by the packger so it can perform the needed
// imports | {
"resource": ""
} | ||
c18043 | train | // New client with write key. | {
"resource": ""
} | ||
c18044 | train | // Alias buffers an "alias" message. | {
"resource": ""
} | ||
c18045 | train | // Page buffers an "page" message. | {
"resource": ""
} | ||
c18046 | train | // Group buffers an "group" message. | {
"resource": ""
} | ||
c18047 | train | // Track buffers an "track" message. | {
"resource": ""
} | ||
c18048 | train | // Queue message. | {
"resource": ""
} | ||
c18049 | train | // Close and flush metrics. | {
"resource": ""
} | ||
c18050 | train | // Send batch request. | {
"resource": ""
} | ||
c18051 | train | // Upload serialized batch message. | {
"resource": ""
} | ||
c18052 | train | // Batch loop. | {
"resource": ""
} | ||
c18053 | train | // Verbose log. | {
"resource": ""
} | ||
c18054 | train | // Unconditional log. | {
"resource": ""
} | ||
c18055 | train | // Set message timestamp if one is not already set. | {
"resource": ""
} | ||
c18056 | train | // Set message id. | {
"resource": ""
} | ||
c18057 | train | // New new DB backend for I18n | {
"resource": ""
} | ||
c18058 | train | // LoadTranslations load translations from DB backend | {
"resource": ""
} | ||
c18059 | train | // SaveTranslation save translation into DB backend | {
"resource": ""
} | ||
c18060 | train | // DeleteTranslation delete translation into DB backend | {
"resource": ""
} | ||
c18061 | train | // New new YAML backend for I18n | {
"resource": ""
} | ||
c18062 | train | // NewWithWalk has the same functionality as New but uses filepath.Walk to find all the translation files recursively. | {
"resource": ""
} | ||
c18063 | train | // NewWithFilesystem initializes a backend that reads translation files from an http.FileSystem. | {
"resource": ""
} | ||
c18064 | train | // LoadYAMLContent load YAML content | {
"resource": ""
} | ||
c18065 | train | // LoadTranslations load translations from YAML backend | {
"resource": ""
} | ||
c18066 | train | // New initialize I18n with backends | {
"resource": ""
} | ||
c18067 | train | // SetCacheStore set i18n's cache store | {
"resource": ""
} | ||
c18068 | train | // AddTranslation add translation | {
"resource": ""
} | ||
c18069 | train | // SaveTranslation save translation | {
"resource": ""
} | ||
c18070 | train | // DeleteTranslation delete translation | {
"resource": ""
} | ||
c18071 | train | // Scope i18n scope | {
"resource": ""
} | ||
c18072 | train | // Fallbacks fallback to locale if translation doesn't exist in specified locale | {
"resource": ""
} | ||
c18073 | train | // T translate with locale, key and arguments | {
"resource": ""
} | ||
c18074 | train | // FuncMap generate func map for inline edit | {
"resource": ""
} | ||
c18075 | train | // InlineEdit enable inline edit | {
"resource": ""
} | ||
c18076 | train | // AsFloatBuffer returns a copy of this buffer but with data converted to floats. | {
"resource": ""
} | ||
c18077 | train | // AsIntBuffer returns a copy of this buffer but with data truncated to Ints. | {
"resource": ""
} | ||
c18078 | train | // AsI8 returns the buffer's samples as int8 sample values.
// If the buffer isn't in this format, a copy is created and converted.
// Note that converting might result in loss of resolution. | {
"resource": ""
} | ||
c18079 | train | // AsF64 returns the buffer's samples as float64 sample values.
// If the buffer isn't in this format, a copy is created and converted.
// Note that converting might result in unexpected truncations. | {
"resource": ""
} | ||
c18080 | train | // calculateIntBithDepth looks at the int values in the buffer and returns
// the required lowest bit depth. | {
"resource": ""
} | ||
c18081 | train | // AsFloat32Buffer returns a copy of this buffer but with data converted to float 32. | {
"resource": ""
} | ||
c18082 | train | // IEEEFloatToInt converts a 10 byte IEEE float into an int. | {
"resource": ""
} | ||
c18083 | train | // IntToIEEEFloat converts an int into a 10 byte IEEE float. | {
"resource": ""
} | ||
c18084 | train | // Uint24to32 converts a 3 byte uint23 into a uint32
// BigEndian! | {
"resource": ""
} | ||
c18085 | train | // Int24BETo32 converts an int24 value from 3 bytes into an int32 value | {
"resource": ""
} | ||
c18086 | train | // Int24LETo32 converts an int24 value from 3 bytes into an int32 value | {
"resource": ""
} | ||
c18087 | train | // Uint32toUint24Bytes converts a uint32 into a 3 byte uint24 representation | {
"resource": ""
} | ||
c18088 | train | // Int32toInt24LEBytes converts an int32 into a little endian 3 byte int24 representation | {
"resource": ""
} | ||
c18089 | train | // Int32toInt24BEBytes converts an int32 into a big endian 3 byte int24 representation | {
"resource": ""
} | ||
c18090 | train | // AsFloatBuffer implements the Buffer interface and returns a float64 version of itself. | {
"resource": ""
} | ||
c18091 | train | // It is similar to TracingHandler in regards, that it wraps an existing http.HandlerFunc
// into a named instance to support capturing tracing information and data. It, however,
// provides a neater way to register the handler with existing frameworks by returning
// not only the wrapper, but also the URL-pattern to r... | {
"resource": ""
} | ||
c18092 | train | // Wraps an existing http.HandlerFunc into a named instance to support capturing tracing
// information and response data. | {
"resource": ""
} | ||
c18093 | train | // Wraps an existing http.Request instance into a named instance to inject tracing and span
// header information into the actual HTTP wire transfer. | {
"resource": ""
} | ||
c18094 | train | // Executes the given ContextSensitiveFunc and executes it under the scope of a newly created context.Context,
// that provides access to the parent span as 'parentSpan'. | {
"resource": ""
} | ||
c18095 | train | // EumSnippet generates javascript code to initialize JavaScript agent | {
"resource": ""
} | ||
c18096 | train | // Header2ID converts an header context value into an Instana ID. More
// specifically, this converts an unsigned 64 bit hex value into a signed
// 64bit integer. | {
"resource": ""
} | ||
c18097 | train | // hexGatewayToAddr converts the hex representation of the gateway address to string. | {
"resource": ""
} | ||
c18098 | train | // SendDefaultServiceEvent sends a default event which already contains the service and host | {
"resource": ""
} | ||
c18099 | train | // SendServiceEvent send an event on a specific service | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.