_id stringlengths 2 7 | title stringclasses 1 value | partition stringclasses 3 values | text stringlengths 6 2.61k | language stringclasses 1 value | meta_information dict |
|---|---|---|---|---|---|
c179800 | test | // Printf implements fmt.Printf for markdown | {
"resource": ""
} | ||
c179801 | test | // EnvelopeToMarkdown renders the contents of an enmime.Envelope in Markdown format. Used by
// mime-dump and mime-extractor commands. | {
"resource": ""
} | ||
c179802 | test | // FormatPart pretty prints the Part tree | {
"resource": ""
} | ||
c179803 | test | // newBoundaryReader returns an initialized boundaryReader | {
"resource": ""
} | ||
c179804 | test | // Read returns a buffer containing the content up until boundary | {
"resource": ""
} | ||
c179805 | test | // Next moves over the boundary to the next part, returns true if there is another part to be read. | {
"resource": ""
} | ||
c179806 | test | // Parse converts a byte array containing R SEXP to a golang object.
// This can be converted to native golang types. | {
"resource": ""
} | ||
c179807 | test | // Assign produces a command to assign a value to a variable within a go session | {
"resource": ""
} | ||
c179808 | test | // NewRClient creates a RClient which will run commands on the RServe server located at the provided host and port | {
"resource": ""
} | ||
c179809 | test | // NewRClientWithAuth creates a RClient with the specified credentials and RServe server details | {
"resource": ""
} | ||
c179810 | test | // Register allows user to add his own data generators for special cases
// that we could not cover with the generators that fako includes by default. | {
"resource": ""
} | ||
c179811 | test | // Fuzz Fills passed interface with random data based on the struct field type,
// take a look at fuzzValueFor for details on supported data types. | {
"resource": ""
} | ||
c179812 | test | //findFakeFunctionFor returns a faker function for a fako identifier | {
"resource": ""
} | ||
c179813 | test | // Apply applies the given options to this Options | {
"resource": ""
} | ||
c179814 | test | // ToOption converts this Options to a single Option. | {
"resource": ""
} | ||
c179815 | test | // waitThenClose is spawned in a goroutine when the channel is registered. This
// safely cleans up the channel when the context has been canceled. | {
"resource": ""
} | ||
c179816 | test | // send sends an event on the event channel, aborting if either the passed or
// the internal context expire. | {
"resource": ""
} | ||
c179817 | test | // NewMovingAverage constructs a MovingAverage that computes an average with the
// desired characteristics in the moving window or exponential decay. If no
// age is given, it constructs a default exponentially weighted implementation
// that consumes minimal memory. The age is related to the decay factor alpha
// by the formula given for the DECAY constant. It signifies the average age
// of the samples as time goes to infinity. | {
"resource": ""
} | ||
c179818 | test | // Set sets the EWMA's value. | {
"resource": ""
} | ||
c179819 | test | // calcKeys50 calculates the keys used in RAR 5 archive processing.
// The returned slice of byte slices contains 3 keys.
// Key 0 is used for block or file decryption.
// Key 1 is optionally used for file checksum calculation.
// Key 2 is optionally used for password checking. | {
"resource": ""
} | ||
c179820 | test | // getKeys reads kdfcount and salt from b and returns the corresponding encryption keys. | {
"resource": ""
} | ||
c179821 | test | // checkPassword calculates if a password is correct given password check data and keys. | {
"resource": ""
} | ||
c179822 | test | // parseFileEncryptionRecord processes the optional file encryption record from a file header. | {
"resource": ""
} | ||
c179823 | test | // parseEncryptionBlock calculates the key for block encryption. | {
"resource": ""
} | ||
c179824 | test | // newArchive50 creates a new fileBlockReader for a Version 5 archive. | {
"resource": ""
} | ||
c179825 | test | // Read reads and decrypts data into p.
// If the input is not a multiple of the cipher block size,
// the trailing bytes will be ignored. | {
"resource": ""
} | ||
c179826 | test | // ReadByte returns the next decrypted byte. | {
"resource": ""
} | ||
c179827 | test | // newCipherBlockReader returns a cipherBlockReader that decrypts the given io.Reader using
// the provided block mode cipher. | {
"resource": ""
} | ||
c179828 | test | // newAesDecryptReader returns a cipherBlockReader that decrypts input from a given io.Reader using AES.
// It will panic if the provided key is invalid. | {
"resource": ""
} | ||
c179829 | test | // limitByteReader returns a limitedByteReader that reads from r and stops with
// io.EOF after n bytes.
// If r returns an io.EOF before reading n bytes, io.ErrUnexpectedEOF is returned. | {
"resource": ""
} | ||
c179830 | test | // Mode returns an os.FileMode for the file, calculated from the Attributes field. | {
"resource": ""
} | ||
c179831 | test | // nextBlockInFile reads the next file block in the current file at the current
// archive file position, or returns an error if there is a problem.
// It is invalid to call this when already at the last block in the current file. | {
"resource": ""
} | ||
c179832 | test | // next advances to the next packed file in the RAR archive. | {
"resource": ""
} | ||
c179833 | test | // Read reads the packed data for the current file into p. | {
"resource": ""
} | ||
c179834 | test | // Read reads from the current file in the RAR archive. | {
"resource": ""
} | ||
c179835 | test | // Next advances to the next file in the archive. | {
"resource": ""
} | ||
c179836 | test | // NewReader creates a Reader reading from r.
// NewReader only supports single volume archives.
// Multi-volume archives must use OpenReader. | {
"resource": ""
} | ||
c179837 | test | // OpenReader opens a RAR archive specified by the name and returns a ReadCloser. | {
"resource": ""
} | ||
c179838 | test | // getV3Filter returns a V3 filter function from a code byte slice. | {
"resource": ""
} | ||
c179839 | test | // init intializes the decoder for decoding a new file. | {
"resource": ""
} | ||
c179840 | test | // readBlockHeader determines and initializes the current decoder for a new decode block. | {
"resource": ""
} | ||
c179841 | test | // readCodeLengthTable reads a new code length table into codeLength from br.
// If addOld is set the old table is added to the new one. | {
"resource": ""
} | ||
c179842 | test | // shrinkStates shrinks the state list down to size states | {
"resource": ""
} | ||
c179843 | test | // expandStates expands the states list by one | {
"resource": ""
} | ||
c179844 | test | // pushByte puts a byte on the heap and returns a state.succ index that
// can be used to retrieve it. | {
"resource": ""
} | ||
c179845 | test | // succByte returns a byte from the heap given a state.succ index | {
"resource": ""
} | ||
c179846 | test | // succContext returns a context given a state.succ index | {
"resource": ""
} | ||
c179847 | test | // Calculates the key and iv for AES decryption given a password and salt. | {
"resource": ""
} | ||
c179848 | test | // parseDosTime converts a 32bit DOS time value to time.Time | {
"resource": ""
} | ||
c179849 | test | // decodeName decodes a non-unicode filename from a file header. | {
"resource": ""
} | ||
c179850 | test | // readExtTimes reads and parses the optional extra time field from the file header. | {
"resource": ""
} | ||
c179851 | test | // readBlockHeader returns the next block header in the archive.
// It will return io.EOF if there were no bytes read. | {
"resource": ""
} | ||
c179852 | test | // newArchive15 creates a new fileBlockReader for a Version 1.5 archive | {
"resource": ""
} | ||
c179853 | test | // readFilter5Data reads an encoded integer used in V5 filters. | {
"resource": ""
} | ||
c179854 | test | // writeByte writes c to the end of the window | {
"resource": ""
} | ||
c179855 | test | // copyBytes copies len bytes at off distance from the end
// to the end of the window. | {
"resource": ""
} | ||
c179856 | test | // read reads bytes from the beginning of the window into p | {
"resource": ""
} | ||
c179857 | test | // queueFilter adds a filterBlock to the end decodeReader's filters. | {
"resource": ""
} | ||
c179858 | test | // processFilters processes any filters valid at the current read index
// and stores the output in outbuf. | {
"resource": ""
} | ||
c179859 | test | // fill fills the decodeReader's window | {
"resource": ""
} | ||
c179860 | test | // Read decodes data and stores it in p. | {
"resource": ""
} | ||
c179861 | test | // readFull wraps io.ReadFull to return io.ErrUnexpectedEOF instead
// of io.EOF when 0 bytes are read. | {
"resource": ""
} | ||
c179862 | test | // findSig searches for the RAR signature and version at the beginning of a file.
// It searches no more than maxSfxSize bytes. | {
"resource": ""
} | ||
c179863 | test | // execute runs a list of commands on the vm. | {
"resource": ""
} | ||
c179864 | test | // newVM creates a new RAR virtual machine using the byte slice as memory. | {
"resource": ""
} | ||
c179865 | test | // limitBitReader returns a bitReader that reads from br and stops with io.EOF after n bits.
// If br returns an io.EOF before reading n bits, err is returned. | {
"resource": ""
} | ||
c179866 | test | // readUint32 reads a RAR V3 encoded uint32 | {
"resource": ""
} | ||
c179867 | test | // Step 3 is the removal of the derivational suffix.
// | {
"resource": ""
} | ||
c179868 | test | // Stem an English word. This is the only exported
// function in this package.
// | {
"resource": ""
} | ||
c179869 | test | // Step 6 Un-accent
// | {
"resource": ""
} | ||
c179870 | test | // Step 5 Undouble non-vowel endings
// | {
"resource": ""
} | ||
c179871 | test | // Step 2a is the removal of verb suffixes beginning y,
// Search for the longest among the following suffixes
// in RV, and if found, delete if preceded by u.
// | {
"resource": ""
} | ||
c179872 | test | // Step 4 is the undoubling of double non-vowel endings
// and removal of superlative endings.
// | {
"resource": ""
} | ||
c179873 | test | // Stem a word in the specified language.
// | {
"resource": ""
} | ||
c179874 | test | // Step 1c is the normalization of various "y" endings.
// | {
"resource": ""
} | ||
c179875 | test | // Step 3 is the stemming of various longer sufficies
// found in R1.
// | {
"resource": ""
} | ||
c179876 | test | // Return `true` if the input `word` is a French stop word.
// | {
"resource": ""
} | ||
c179877 | test | // Capitalize Y, I, and U runes that are acting as consanants.
// Put into upper case "u" or "i" preceded and followed by a
// vowel, and "y" preceded or followed by a vowel. "u" after q is
// also put into upper case.
// | {
"resource": ""
} | ||
c179878 | test | // Step 2 is the stemming of various endings found in
// R1 including "al", "ness", and "li".
// | {
"resource": ""
} | ||
c179879 | test | // Step 3 is the removal of residual suffixes.
// | {
"resource": ""
} | ||
c179880 | test | // Step 0 is to strip off apostrophes and "s".
// | {
"resource": ""
} | ||
c179881 | test | // Finds the region after the first non-vowel following a vowel,
// or a the null region at the end of the word if there is no
// such non-vowel. Returns the index in the Word where the
// region starts; optionally skips the first `start` characters.
// | {
"resource": ""
} | ||
c179882 | test | // Step 1 is the stemming of various endings found in
// R1 including "heterna", "ornas", and "andet".
// | {
"resource": ""
} | ||
c179883 | test | // Step 2a is the removal of Verb suffixes beginning
// with "i" in the RV region.
// | {
"resource": ""
} | ||
c179884 | test | // Remove perfective gerund endings and return true if one was removed.
// | {
"resource": ""
} | ||
c179885 | test | // Remove adjectival endings and return true if one was removed.
// | {
"resource": ""
} | ||
c179886 | test | // Step 2b is the removal of verb suffixes beginning y,
// Search for the longest among the following suffixes
// in RV, and if found, delete if preceded by u.
// | {
"resource": ""
} | ||
c179887 | test | // Step 4 is the cleaning up of residual suffixes.
// | {
"resource": ""
} | ||
c179888 | test | // Step 5 is the stemming of "e" and "l" sufficies
// found in R2.
// | {
"resource": ""
} | ||
c179889 | test | // Stem an Spanish word. This is the only exported
// function in this package.
// | {
"resource": ""
} | ||
c179890 | test | // Stem an Russian word. This is the only exported
// function in this package.
// | {
"resource": ""
} | ||
c179891 | test | // Return `true` if the input `word` is a Norwegian stop word.
// | {
"resource": ""
} | ||
c179892 | test | // Return `true` if the input `word` is a Swedish stop word.
// | {
"resource": ""
} | ||
c179893 | test | // Create a new SnowballWord struct | {
"resource": ""
} | ||
c179894 | test | // Remove the last `n` runes from the SnowballWord.
// | {
"resource": ""
} | ||
c179895 | test | // Resets R1start and R2start to ensure they
// are within bounds of the current rune slice. | {
"resource": ""
} | ||
c179896 | test | // Return a slice of w.RS, allowing the start
// and stop to be out of bounds.
// | {
"resource": ""
} | ||
c179897 | test | // Returns true if `x` runes would fit into R1.
// | {
"resource": ""
} | ||
c179898 | test | // Returns true if `x` runes would fit into R2.
// | {
"resource": ""
} | ||
c179899 | test | // Returns true if `x` runes would fit into RV.
// | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.