_id stringlengths 2 7 | title stringclasses 1 value | partition stringclasses 3 values | text stringlengths 6 2.61k | language stringclasses 1 value | meta_information dict |
|---|---|---|---|---|---|
c179700 | test | // Reset quickly forgets any data stored in the ring buffer. The
// data is still there, but the ring buffer will ignore it and
// overwrite those buffers as new data comes in. | {
"resource": ""
} | ||
c179701 | test | // constructor. NewPointerRingBuf will allocate internally
// a slice of size sliceN | {
"resource": ""
} | ||
c179702 | test | // TwoContig returns all readable pointers, but in two separate slices,
// to avoid copying. The two slices are from the same buffer, but
// are not contiguous. Either or both may be empty slices. | {
"resource": ""
} | ||
c179703 | test | // NumPage returns the number of pages in the PDF file. | {
"resource": ""
} | ||
c179704 | test | // Font returns the font with the given name associated with the page. | {
"resource": ""
} | ||
c179705 | test | // Width returns the width of the given code point. | {
"resource": ""
} | ||
c179706 | test | // Encoder returns the encoding between font code point sequences and UTF-8. | {
"resource": ""
} | ||
c179707 | test | // Interpret interprets the content in a stream as a basic PostScript program,
// pushing values onto a stack and then calling the do function to execute
// operators. The do function may push or pop values from the stack as needed
// to implement op.
//
// Interpret handles the operators "dict", "currentdict", "begin", "end", "def", and "pop" itself.
//
// Interpret is not a full-blown PostScript interpreter. Its job is to handle the
// very limited PostScript found in certain supporting file formats embedded
// in PDF files, such as cmap files that describe the mapping from font code
// points to Unicode code points.
//
// There is no support for executable blocks, among other limitations.
// | {
"resource": ""
} | ||
c179708 | test | // Open opens a file for reading. | {
"resource": ""
} | ||
c179709 | test | // NewReader opens a file for reading, using the data in f with the given total size. | {
"resource": ""
} | ||
c179710 | test | // NewReaderEncrypted opens a file for reading, using the data in f with the given total size.
// If the PDF is encrypted, NewReaderEncrypted calls pw repeatedly to obtain passwords
// to try. If pw returns the empty string, NewReaderEncrypted stops trying to decrypt
// the file and returns an error. | {
"resource": ""
} | ||
c179711 | test | // Trailer returns the file's Trailer value. | {
"resource": ""
} | ||
c179712 | test | // Kind reports the kind of value underlying v. | {
"resource": ""
} | ||
c179713 | test | // newBuffer returns a new buffer reading from r at the given offset. | {
"resource": ""
} | ||
c179714 | test | // Set skip + limit on the current query and generates a PaginationInfo struct with info for your front end | {
"resource": ""
} | ||
c179715 | test | // Deletes references to a document from its related documents | {
"resource": ""
} | ||
c179716 | test | // Runs a cascaded delete operation with one configuration | {
"resource": ""
} | ||
c179717 | test | // Runs a cascaded save operation with one configuration | {
"resource": ""
} | ||
c179718 | test | // If you need to, you can use this to construct the data map that will be cascaded down to
// related documents. Doing this is not recommended unless the cascaded fields are dynamic. | {
"resource": ""
} | ||
c179719 | test | // Connect to the database using the provided config | {
"resource": ""
} | ||
c179720 | test | // This doesn't actually do any DB interaction, it just creates the result set so we can
// start looping through on the iterator | {
"resource": ""
} | ||
c179721 | test | // RawInformationQuery sends an information query request to the server. | {
"resource": ""
} | ||
c179722 | test | // NewClient establishes a new Client connection based on a set of Options. | {
"resource": ""
} | ||
c179723 | test | // Close closes the XMPP connection | {
"resource": ""
} | ||
c179724 | test | // startTlsIfRequired examines the server's stream features and, if STARTTLS is required or supported, performs the TLS handshake.
// f will be updated if the handshake completes, as the new stream's features are typically different from the original. | {
"resource": ""
} | ||
c179725 | test | // startStream will start a new XML decoder for the connection, signal the start of a stream to the server and verify that the server has
// also started the stream; if o.Debug is true, startStream will tee decoded XML data to stderr. The features advertised by the server
// will be returned. | {
"resource": ""
} | ||
c179726 | test | // IsEncrypted will return true if the client is connected using a TLS transport, either because it used.
// TLS to connect from the outset, or because it successfully used STARTTLS to promote a TCP connection to TLS. | {
"resource": ""
} | ||
c179727 | test | // Recv waits to receive the next XMPP stanza.
// Return type is either a presence notification or a chat message. | {
"resource": ""
} | ||
c179728 | test | // Send sends the message wrapped inside an XMPP message stanza body. | {
"resource": ""
} | ||
c179729 | test | // SendOrg sends the original text without being wrapped in an XMPP message stanza. | {
"resource": ""
} | ||
c179730 | test | // SendKeepAlive sends a "whitespace keepalive" as described in chapter 4.6.1 of RFC6120. | {
"resource": ""
} | ||
c179731 | test | // SendHtml sends the message as HTML as defined by XEP-0071 | {
"resource": ""
} | ||
c179732 | test | // xep-0045 7.2.6 | {
"resource": ""
} | ||
c179733 | test | // xep-0045 7.14 | {
"resource": ""
} | ||
c179734 | test | // AttachBuffer attaches a binary attachment. | {
"resource": ""
} | ||
c179735 | test | // Attach attaches a file. | {
"resource": ""
} | ||
c179736 | test | // Inline includes a file as an inline attachment. | {
"resource": ""
} | ||
c179737 | test | // Ads a Header to message | {
"resource": ""
} | ||
c179738 | test | // Tolist returns all the recipients of the email | {
"resource": ""
} | ||
c179739 | test | // Bytes returns the mail data | {
"resource": ""
} | ||
c179740 | test | // Send sends the message. | {
"resource": ""
} | ||
c179741 | test | // GetHeader processes the specified header for RFC 2047 encoded words and returns the result as a
// UTF-8 string | {
"resource": ""
} | ||
c179742 | test | // GetHeaderValues processes the specified header for RFC 2047 encoded words and returns all existing
// values as a list of UTF-8 strings | {
"resource": ""
} | ||
c179743 | test | // SetHeader sets given header name to the given value.
// If the header exists already, all existing values are replaced. | {
"resource": ""
} | ||
c179744 | test | // AddHeader appends given header value to header name without changing existing values.
// If the header does not exist already, it will be created. | {
"resource": ""
} | ||
c179745 | test | // DeleteHeader deletes given header. | {
"resource": ""
} | ||
c179746 | test | // AddressList returns a mail.Address slice with RFC 2047 encoded names converted to UTF-8 | {
"resource": ""
} | ||
c179747 | test | // Clone returns a clone of the current Envelope | {
"resource": ""
} | ||
c179748 | test | // ReadEnvelope is a wrapper around ReadParts and EnvelopeFromPart. It parses the content of the
// provided reader into an Envelope, downconverting HTML to plain text if needed, and sorting the
// attachments, inlines and other parts into their respective slices. Errors are collected from all
// Parts and placed into the Envelope.Errors slice. | {
"resource": ""
} | ||
c179749 | test | // EnvelopeFromPart uses the provided Part tree to build an Envelope, downconverting HTML to plain
// text if needed, and sorting the attachments, inlines and other parts into their respective
// slices. Errors are collected from all Parts and placed into the Envelopes Errors slice. | {
"resource": ""
} | ||
c179750 | test | // parseTextOnlyBody parses a plain text message in root that has MIME-like headers, but
// only contains a single part - no boundaries, etc. The result is placed in e. | {
"resource": ""
} | ||
c179751 | test | // parseMultiPartBody parses a multipart message in root. The result is placed in e. | {
"resource": ""
} | ||
c179752 | test | // Used by Part matchers to locate the HTML body. Not inlined because it's used in multiple places. | {
"resource": ""
} | ||
c179753 | test | // Used by AddressList to ensure that address lists are properly delimited | {
"resource": ""
} | ||
c179754 | test | // Date returns a copy of MailBuilder with the specified Date header. | {
"resource": ""
} | ||
c179755 | test | // From returns a copy of MailBuilder with the specified From header. | {
"resource": ""
} | ||
c179756 | test | // Subject returns a copy of MailBuilder with the specified Subject header. | {
"resource": ""
} | ||
c179757 | test | // To returns a copy of MailBuilder with this name & address appended to the To header. name may be
// empty. | {
"resource": ""
} | ||
c179758 | test | // ToAddrs returns a copy of MailBuilder with the specified To addresses. | {
"resource": ""
} | ||
c179759 | test | // CC returns a copy of MailBuilder with this name & address appended to the CC header. name may be
// empty. | {
"resource": ""
} | ||
c179760 | test | // CCAddrs returns a copy of MailBuilder with the specified CC addresses. | {
"resource": ""
} | ||
c179761 | test | // ReplyTo returns a copy of MailBuilder with this name & address appended to the To header. name
// may be empty. | {
"resource": ""
} | ||
c179762 | test | // Header returns a copy of MailBuilder with the specified value added to the named header. | {
"resource": ""
} | ||
c179763 | test | // AddAttachment returns a copy of MailBuilder that includes the specified attachment. | {
"resource": ""
} | ||
c179764 | test | // AddFileAttachment returns a copy of MailBuilder that includes the specified attachment.
// fileName, will be populated from the base name of path. Content type will be detected from the
// path extension. | {
"resource": ""
} | ||
c179765 | test | // AddInline returns a copy of MailBuilder that includes the specified inline. fileName and
// contentID may be left empty. | {
"resource": ""
} | ||
c179766 | test | // Equals uses the reflect package to test two MailBuilder structs for equality, primarily for unit
// tests. | {
"resource": ""
} | ||
c179767 | test | // Encode writes this Part and all its children to the specified writer in MIME format. | {
"resource": ""
} | ||
c179768 | test | // encodeHeader writes out a sorted list of headers. | {
"resource": ""
} | ||
c179769 | test | // encodeContent writes out the content in the selected encoding. | {
"resource": ""
} | ||
c179770 | test | // selectTransferEncoding scans content for non-ASCII characters and selects 'b' or 'q' encoding. | {
"resource": ""
} | ||
c179771 | test | // setParamValue will ignore empty values | {
"resource": ""
} | ||
c179772 | test | // NewBase64Cleaner returns a Base64Cleaner object for the specified reader. Base64Cleaner
// implements the io.Reader interface. | {
"resource": ""
} | ||
c179773 | test | // decodeToUTF8Base64Header decodes a MIME header per RFC 2047, reencoding to =?utf-8b? | {
"resource": ""
} | ||
c179774 | test | // parseMediaType is a more tolerant implementation of Go's mime.ParseMediaType function. | {
"resource": ""
} | ||
c179775 | test | // fixMangledMediaType is used to insert ; separators into media type strings that lack them, and
// remove repeated parameters. | {
"resource": ""
} | ||
c179776 | test | // detectMultipartMessage returns true if the message has a recognized multipart Content-Type header | {
"resource": ""
} | ||
c179777 | test | // detectBinaryBody returns true if the mail header defines a binary body. | {
"resource": ""
} | ||
c179778 | test | // BreadthMatchFirst performs a breadth first search of the Part tree and returns the first part
// that causes the given matcher to return true | {
"resource": ""
} | ||
c179779 | test | // BreadthMatchAll performs a breadth first search of the Part tree and returns all parts that cause
// the given matcher to return true | {
"resource": ""
} | ||
c179780 | test | // DepthMatchFirst performs a depth first search of the Part tree and returns the first part that
// causes the given matcher to return true | {
"resource": ""
} | ||
c179781 | test | // DepthMatchAll performs a depth first search of the Part tree and returns all parts that causes
// the given matcher to return true | {
"resource": ""
} | ||
c179782 | test | // ToASCII converts unicode to ASCII by stripping accents and converting some special characters
// into their ASCII approximations. Anything else will be replaced with an underscore. | {
"resource": ""
} | ||
c179783 | test | // NewPart creates a new Part object. | {
"resource": ""
} | ||
c179784 | test | // AddChild adds a child part to either FirstChild or the end of the children NextSibling chain.
// The child may have siblings and children attached. This method will set the Parent field on
// child and all its siblings. Safe to call on nil. | {
"resource": ""
} | ||
c179785 | test | // TextContent indicates whether the content is text based on its content type. This value
// determines what content transfer encoding scheme to use. | {
"resource": ""
} | ||
c179786 | test | // setupHeaders reads the header, then populates the MIME header values for this Part. | {
"resource": ""
} | ||
c179787 | test | // setupContentHeaders uses Content-Type media params and Content-Disposition headers to populate
// the disposition, filename, and charset fields. | {
"resource": ""
} | ||
c179788 | test | // convertFromDetectedCharset attempts to detect the character set for the given part, and returns
// an io.Reader that will convert from that charset to UTF-8. If the charset cannot be detected,
// this method adds a warning to the part and automatically falls back to using
// `convertFromStatedCharset` and returns the reader from that method. | {
"resource": ""
} | ||
c179789 | test | // Clone returns a clone of the current Part. | {
"resource": ""
} | ||
c179790 | test | // ReadParts reads a MIME document from the provided reader and parses it into tree of Part objects. | {
"resource": ""
} | ||
c179791 | test | // parseParts recursively parses a MIME multipart document and sets each Parts PartID. | {
"resource": ""
} | ||
c179792 | test | // UUID generates a random UUID according to RFC 4122. | {
"resource": ""
} | ||
c179793 | test | // NewQPCleaner returns a QPCleaner for the specified reader. | {
"resource": ""
} | ||
c179794 | test | // Error formats the enmime.Error as a string. | {
"resource": ""
} | ||
c179795 | test | // addWarning builds a severe Error and appends to the Part error slice. | {
"resource": ""
} | ||
c179796 | test | // addWarning builds a non-severe Error and appends to the Part error slice. | {
"resource": ""
} | ||
c179797 | test | // Wrap builds a byte slice from strs, wrapping on word boundaries before max chars | {
"resource": ""
} | ||
c179798 | test | // ConvertToUTF8String uses the provided charset to decode a slice of bytes into a normal
// UTF-8 string. | {
"resource": ""
} | ||
c179799 | test | // JoinAddress formats a slice of Address structs such that they can be used in a To or Cc header. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.