_id stringlengths 2 7 | text stringlengths 6 2.61k | title stringclasses 1
value |
|---|---|---|
c179900 | // Return the first prefix found or the empty string. | |
c179901 | // Return true if `w` ends with `suffixRunes`
// | |
c179902 | // Find the first suffix that ends at `endPos` in the word among
// those provided; then,
// check to see if it begins after startPos. If it does, return
// it, else return the empty string and empty rune slice. This
// may seem a counterintuitive manner to do this. However, it
// matches what is required most of th... | |
c179903 | // Find the first suffix in the word among those provided; then,
// check to see if it begins after startPos. If it does,
// remove it.
// | |
c179904 | // Removes the first suffix found | |
c179905 | // Return the first suffix found or the empty string. | |
c179906 | // Applies various transformations necessary for the
// other, subsequent stemming steps. Most important
// of which is defining the two regions R1 & R2.
// | |
c179907 | // Step 0 is the removal of attached pronouns
// | |
c179908 | // Step 1b is the normalization of various "ly" and "ed" sufficies.
// | |
c179909 | // Step 2b is the removal of Verb suffixes in RV
// that do not begin with "i".
// | |
c179910 | // Capitalize all 'Y's preceded by vowels or starting a word
// | |
c179911 | // Uncapitalize all 'Y's
// | |
c179912 | // Returns the stemmed version of a word if it is a special
// case, otherwise returns the empty string.
// | |
c179913 | // A word is called short if it ends in a short syllable, and if R1 is null.
// | |
c179914 | // Step 1a is normalization of various special "s"-endings.
// | |
c179915 | // Set sets the value by key and associates it with the current goroutine. | |
c179916 | // Get gets the value by key as it exists for the current goroutine. | |
c179917 | // Cleanup removes all data associated with this goroutine. If this is not
// called, the data may persist for the lifetime of your application. This
// must be called from the very first goroutine to invoke Set | |
c179918 | // getValues unlinks two goroutines | |
c179919 | // linkGRs links two goroutines together, allowing the child to access the
// data present in the parent. | |
c179920 | // unlinkGRs unlinks two goroutines | |
c179921 | // Gets an app's endpoint with the specified path | |
c179922 | // Curls an app's endpoint and exit successfully before the specified timeout | |
c179923 | // Curls an app's endpoint and exit successfully before the default timeout | |
c179924 | // Curls an app's root endpoint and exit successfully before the default timeout | |
c179925 | // GetTags returns a slice of Tags, that is all characters after rune char up
// to occurrence of space or another occurrence of rune char. Additionally you
// can provide a coma separated unicode characters to be used as terminating
// sequence. | |
c179926 | // GetTagsAsUniqueStrings gets all tags as a slice of unique strings. This is
// here to have a means of being somewhat backwards compatible with previous
// versions of mention | |
c179927 | // Is given rune listed as a terminator | |
c179928 | // Ensures the given slice of strings are unique and that none are empty
// strings | |
c179929 | // Get returns the Location information for the incoming http.Request from the
// context. If the location is not set a nil value is returned. | |
c179930 | // GenerateRSAKeyPair generates a new rsa private and public key | |
c179931 | // Verify compares a signature against input data | |
c179932 | // Encrypt returns encrypted bytes from the inpu data | |
c179933 | // Sign returns a signature of the input data | |
c179934 | // GetPublic returns a public key | |
c179935 | // Decrypt returns decrypted bytes of the input encrypted bytes | |
c179936 | // UnmarshalRsaPrivateKey returns a private key from the input x509 bytes | |
c179937 | // GenerateKeyPair generates a private and public key | |
c179938 | // GenerateKeyPairWithReader returns a keypair of the given type and bitsize | |
c179939 | // GenerateEKeyPair returns an ephemeral public key and returns a function that will compute
// the shared secret key. Used in the identify module.
//
// Focuses only on ECDH now, but can be made more general in the future. | |
c179940 | // UnmarshalPublicKey converts a protobuf serialized public key into its
// representative object | |
c179941 | // MarshalPublicKey converts a public key object into a protobuf serialized
// public key | |
c179942 | // UnmarshalPrivateKey converts a protobuf serialized private key into its
// representative object | |
c179943 | // KeyEqual checks whether two | |
c179944 | // GenerateECDSAKeyPair generates a new ecdsa private and public key | |
c179945 | // GenerateECDSAKeyPairWithCurve generates a new ecdsa private and public key with a speicified curve | |
c179946 | // ECDSAKeyPairFromKey generates a new ecdsa private and public key from an input private key | |
c179947 | // UnmarshalECDSAPrivateKey returns a private key from x509 bytes | |
c179948 | // UnmarshalECDSAPublicKey returns the public key from x509 bytes | |
c179949 | // Equals compares to private keys | |
c179950 | // Sign returns the signature of the input data | |
c179951 | // Equals compares to public keys | |
c179952 | // Verify compares data to a signature | |
c179953 | // GenerateSecp256k1Key generates a new Secp256k1 private and public key pair | |
c179954 | // UnmarshalSecp256k1PrivateKey returns a private key from bytes | |
c179955 | // UnmarshalSecp256k1PublicKey returns a public key from bytes | |
c179956 | // Equals compares two private keys | |
c179957 | // Sign returns a signature from input data | |
c179958 | // Equals compares two public keys | |
c179959 | // Verify compares a signature against the input data | |
c179960 | // Raw private key bytes. | |
c179961 | // Sign returns a signature from an input message. | |
c179962 | // Equals compares two ed25519 public keys. | |
c179963 | // Verify checks a signature agains the input data. | |
c179964 | // UnmarshalEd25519PublicKey returns a public key from input bytes. | |
c179965 | // UnmarshalEd25519PrivateKey returns a private key from input bytes. | |
c179966 | // EditScriptForStrings returns an optimal edit script to turn source into
// target. | |
c179967 | // EditScriptForMatrix returns an optimal edit script based on the given
// Levenshtein matrix. | |
c179968 | // WriteMatrix writes a visual representation of the given matrix for the given
// strings to the given writer. | |
c179969 | // New describes a new filename located at the given absolute path. | |
c179970 | // GetOwner returns who owns the lockfile. | |
c179971 | // TryLock tries to own the lock.
// It Returns nil, if successful and and error describing the reason, it didn't work out.
// Please note, that existing lockfiles containing pids of dead processes
// and lockfiles containing no pid at all are simply deleted. | |
c179972 | // Unlock a lock again, if we owned it. Returns any error that happend during release of lock. | |
c179973 | // NewBase creates a new instance of Base with default values set. | |
c179974 | // SetFallbackLogger sets a Logger to be used if there aren't any loggers added or any of
// the added loggers are in a degraded or unhealthy state. A Logger passed to SetFallbackLogger
// will be initialized if it hasn't been already. In addition, if the Logger fails to initialize
// completely the fallback logger w... | |
c179975 | // AddLogger adds a new logger instance to the Base | |
c179976 | // LogWithTime will log a message at the provided level to all added loggers with the timestamp set to the
// value of ts. | |
c179977 | // Log will log a message at the provided level to all added loggers with the timestamp set to the time
// Log was called. | |
c179978 | // Warnm is a short-hand version of Warningm | |
c179979 | // NewTemplateWithFuncMap creates a new Template from the given string and a template FuncMap. The FuncMap available
// to the template during evaluation will also include the default values, if not overridden. An error is returned
// if the template fails to compile. | |
c179980 | // Execute takes a TemplateMsg and applies it to the Go template. If colorize is true the template
// will insert ANSI color codes within the resulting string. | |
c179981 | // NewTemplateMsg will create a new TemplateMsg with values from the given parameters | |
c179982 | // NewLogAdapterFor creates a LogAdapter that wraps the given loger with the
// given attributes. | |
c179983 | // SetAttr sets the attribute key to value for this LogAdapter only | |
c179984 | // LogWithTime will log a message at the provided level to all loggers added
// to the Base associated with this LogAdapter. It is similar to Log except
// the timestamp will be set to the value of ts. | |
c179985 | // Log will log a message at the provided level to all loggers added
// to the Base associated with this LogAdapter | |
c179986 | // Dbgm is a short-hand version of Debugm | |
c179987 | // NewAttrsFromMap will create a new Attrs struct with the given attributes pre-populated | |
c179988 | // NewAttrsFromAttrs is a convenience function that will accept zero or more existing Attrs, create
// a new Attrs and then merge all the supplied Attrs values into the new Attrs instance. | |
c179989 | // MergeAttrs accepts another existing Attrs and merges the attributes into its own. | |
c179990 | // SetAttr will set key to the provided value. If the attribute already exists the value will
// be replaced with the new value. | |
c179991 | // GetAttr gets the value of the attribute with the provided name. If the attribute does not
// exist, nil will be returned | |
c179992 | // RemoveAttr will remove the attribute with the provided name. | |
c179993 | // Attrs will return a map of the attributes added to the struct. | |
c179994 | // Debugm executes the same function on the default Base instance | |
c179995 | // Infom executes the same function on the default Base instance | |
c179996 | // Warningm executes the same function on the default Base instance | |
c179997 | // Errm executes the same function on the default Base instance | |
c179998 | // Errorm executes the same function on the default Base instance | |
c179999 | // Fatalm executes the same function on the default Base instance |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.