_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c30600
train
// ImportReader imports instagram configuration from io.Reader // // This function does not set proxy automatically. Use SetProxy after this call.
{ "resource": "" }
c30601
train
// Import imports instagram configuration // // This function does not set proxy automatically. Use SetProxy after this call.
{ "resource": "" }
c30602
train
// Login performs instagram login. // // Password will be deleted after login
{ "resource": "" }
c30603
train
// Logout closes current session
{ "resource": "" }
c30604
train
// User search by username
{ "resource": "" }
c30605
train
// Tags search by tag
{ "resource": "" }
c30606
train
// Facebook search by facebook user.
{ "resource": "" }
c30607
train
// GetBest returns the URL of the image with the best quality.
{ "resource": "" }
c30608
train
// Unblock unblocks blocked user.
{ "resource": "" }
c30609
train
// getImageDimensionFromReader return image dimension , types is .jpg and .png
{ "resource": "" }
c30610
train
// Sync updates account information
{ "resource": "" }
c30611
train
// Saved returns saved media.
{ "resource": "" }
c30612
train
// SetBiography changes your Instagram's biography. // // This function updates current Account information.
{ "resource": "" }
c30613
train
// Liked are liked publications
{ "resource": "" }
c30614
train
// PendingFollowRequests returns pending follow requests.
{ "resource": "" }
c30615
train
// Feed search by locationID
{ "resource": "" }
c30616
train
// SyncLikers fetch new likers of a media // // This function updates Item.Likers value
{ "resource": "" }
c30617
train
// ID returns Story id
{ "resource": "" }
c30618
train
// Sync function is used when Highlight must be sync. // Highlight must be sync when User.Highlights does not return any object inside StoryMedia slice. // // This function does NOT update Stories items. // // This function updates StoryMedia.Items
{ "resource": "" }
c30619
train
// Sync updates media values.
{ "resource": "" }
c30620
train
// ID returns media id.
{ "resource": "" }
c30621
train
// Write is like Send but being compatible with io.Writer.
{ "resource": "" }
c30622
train
// Next allows comment pagination. // // This function support concurrency methods to get comments using Last and Next ID // // New comments are stored in Comments.Items
{ "resource": "" }
c30623
train
// Del deletes comment.
{ "resource": "" }
c30624
train
// Like likes comment.
{ "resource": "" }
c30625
train
// NewHashtag returns initialised hashtag structure // Name parameter is hashtag name
{ "resource": "" }
c30626
train
// Sync updates Hashtag information preparing it to Next call.
{ "resource": "" }
c30627
train
// Stories returns hashtag stories.
{ "resource": "" }
c30628
train
// Blocked returns a list of blocked profiles.
{ "resource": "" }
c30629
train
// MarshalJSON implements a standard json marshaler interface.
{ "resource": "" }
c30630
train
// UnmarshalJSON implements a standard json unmarshaler interface.
{ "resource": "" }
c30631
train
// genTypeDecoder generates decoding code for the type t, but uses unmarshaler interface if implemented by t.
{ "resource": "" }
c30632
train
// returns true of the type t implements one of the custom unmarshaler interfaces
{ "resource": "" }
c30633
train
// String implements a stringer interface using fmt.Sprint for the value.
{ "resource": "" }
c30634
train
// NewGenerator initializes and returns a Generator.
{ "resource": "" }
c30635
train
// SetPkg sets the name and path of output package.
{ "resource": "" }
c30636
train
// printHeader prints package declaration and imports.
{ "resource": "" }
c30637
train
// Run runs the generator and outputs generated code to out.
{ "resource": "" }
c30638
train
// fixes vendored paths
{ "resource": "" }
c30639
train
// pkgAlias creates and returns and import alias for a given package.
{ "resource": "" }
c30640
train
// getType return the textual type name of given type that can be used in generated code.
{ "resource": "" }
c30641
train
// escape a struct field tag string back to source code
{ "resource": "" }
c30642
train
// uniqueVarName returns a file-unique name that can be used for generated variables.
{ "resource": "" }
c30643
train
// convert HTTPRestClient to httpRestClient
{ "resource": "" }
c30644
train
// parseFieldTags parses the json field tag into a structure.
{ "resource": "" }
c30645
train
// genTypeEncoder generates code that encodes in of type t into the writer, but uses marshaler interface if implemented by t.
{ "resource": "" }
c30646
train
// returns true of the type t implements one of the custom marshaler interfaces
{ "resource": "" }
c30647
train
// genTypeEncoderNoCheck generates code that encodes in of type t into the writer.
{ "resource": "" }
c30648
train
// writeMain creates a .go file that launches the generator if 'go run'.
{ "resource": "" }
c30649
train
// DumpTo outputs the data to given io.Writer, resetting the buffer.
{ "resource": "" }
c30650
train
// BuildBytes returns writer data as a single byte slice. You can optionally provide one byte slice // as argument that it will try to reuse.
{ "resource": "" }
c30651
train
// ReadCloser returns an io.ReadCloser that can be used to read the data. // ReadCloser also resets the buffer.
{ "resource": "" }
c30652
train
// Raw appends raw binary data to the buffer or sets the error if it is given. Useful for // calling with results of MarshalJSON-like functions.
{ "resource": "" }
c30653
train
// RawText encloses raw binary data in quotes and appends in to the buffer. // Useful for calling with results of MarshalText-like functions.
{ "resource": "" }
c30654
train
// Base64Bytes appends data to the buffer after base64 encoding it
{ "resource": "" }
c30655
train
// empty if no go.mod, GO111MODULE=off or go without go modules support
{ "resource": "" }
c30656
train
// putBuf puts a chunk to reuse pool if it can be reused.
{ "resource": "" }
c30657
train
// getBuf gets a chunk from reuse pool or creates a new one if reuse failed.
{ "resource": "" }
c30658
train
// EnsureSpace makes sure that the current chunk contains at least s free bytes, // possibly creating a new chunk.
{ "resource": "" }
c30659
train
// AppendByte appends a single byte to buffer.
{ "resource": "" }
c30660
train
// AppendBytes appends a byte slice to buffer.
{ "resource": "" }
c30661
train
// AppendBytes appends a string to buffer.
{ "resource": "" }
c30662
train
// Size computes the size of a buffer by adding sizes of every chunk.
{ "resource": "" }
c30663
train
// DumpTo outputs the contents of a buffer to a writer and resets the buffer.
{ "resource": "" }
c30664
train
// BuildBytes creates a single byte slice with all the contents of the buffer. Data is // copied if it does not fit in a single chunk. You can optionally provide one byte // slice as argument that it will try to reuse.
{ "resource": "" }
c30665
train
// ReadCloser creates an io.ReadCloser with all the contents of the buffer.
{ "resource": "" }
c30666
train
// FetchToken scans the input for the next token.
{ "resource": "" }
c30667
train
// isTokenEnd returns true if the char can follow a non-delimiter token
{ "resource": "" }
c30668
train
// fetchNull fetches and checks remaining bytes of null keyword.
{ "resource": "" }
c30669
train
// fetchTrue fetches and checks remaining bytes of true keyword.
{ "resource": "" }
c30670
train
// fetchFalse fetches and checks remaining bytes of false keyword.
{ "resource": "" }
c30671
train
// fetchNumber scans a number literal token.
{ "resource": "" }
c30672
train
// findStringLen tries to scan into the string literal for ending quote char to determine required size. // The size will be exact if no escapes are present and may be inexact if there are escaped chars.
{ "resource": "" }
c30673
train
// processEscape processes a single escape sequence and returns number of bytes processed.
{ "resource": "" }
c30674
train
// fetchString scans a string literal token.
{ "resource": "" }
c30675
train
// scanToken scans the next token if no token is currently available in the lexer.
{ "resource": "" }
c30676
train
// consume resets the current token to allow scanning the next one.
{ "resource": "" }
c30677
train
// Delim consumes a token and verifies that it is the given delimiter.
{ "resource": "" }
c30678
train
// IsDelim returns true if there was no scanning error and next token is the given delimiter.
{ "resource": "" }
c30679
train
// Null verifies that the next token is null and consumes it.
{ "resource": "" }
c30680
train
// IsNull returns true if the next token is a null keyword.
{ "resource": "" }
c30681
train
// Skip skips a single token.
{ "resource": "" }
c30682
train
// Raw fetches the next item recursively as a data slice
{ "resource": "" }
c30683
train
// Consumed reads all remaining bytes from the input, publishing an error if // there is anything but whitespace remaining.
{ "resource": "" }
c30684
train
// String reads a string literal.
{ "resource": "" }
c30685
train
// Bytes reads a string literal and base64 decodes it into a byte slice.
{ "resource": "" }
c30686
train
// Bool reads a true or false boolean keyword.
{ "resource": "" }
c30687
train
// Marshal returns data as a single byte slice. Method is suboptimal as the data is likely to be copied // from a chain of smaller chunks.
{ "resource": "" }
c30688
train
// MarshalToWriter marshals the data to an io.Writer.
{ "resource": "" }
c30689
train
// Unmarshal decodes the JSON in data into the object.
{ "resource": "" }
c30690
train
// UnmarshalFromReader reads all the data in the reader and decodes as JSON into the object.
{ "resource": "" }
c30691
train
// Less satisfies the Sort interface.
{ "resource": "" }
c30692
train
// Swap satisfies the Sort interface.
{ "resource": "" }
c30693
train
// LoadFontFace is a helper function to load the specified font file with // the specified point size. Note that the returned `font.Face` objects // are not thread safe and cannot be used in parallel across goroutines. // You can usually just use the Context.LoadFontFace function instead of // this package-level functi...
{ "resource": "" }
c30694
train
// NewContext creates a new image.RGBA with the specified width and height // and prepares a context for rendering onto that image.
{ "resource": "" }
c30695
train
// NewContextForRGBA prepares a context for rendering onto the specified image. // No copy is made.
{ "resource": "" }
c30696
train
// GetCurrentPoint will return the current point and if there is a current point. // The point will have been transformed by the context's transformation matrix.
{ "resource": "" }
c30697
train
// SavePNG encodes the image as a PNG and writes it to disk.
{ "resource": "" }
c30698
train
// SaveJPG encodes the image as a JPG and writes it to disk.
{ "resource": "" }
c30699
train
// EncodePNG encodes the image as a PNG and writes it to the provided io.Writer.
{ "resource": "" }