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