_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c15000
train
// MoveNext moves Navigator to the next match node.
{ "resource": "" }
c15001
train
// Select selects a node set using the specified XPath expression.
{ "resource": "" }
c15002
train
// Compile compiles an XPath expression string.
{ "resource": "" }
c15003
train
// MustCompile compiles an XPath expression string and ignored error.
{ "resource": "" }
c15004
train
// The XPath function list.
{ "resource": "" }
c15005
train
// substringFunc is XPath functions substring function returns a part of a given string.
{ "resource": "" }
c15006
train
// Wraps libutp's utp_process_udp, returning relevant information.
{ "resource": "" }
c15007
train
// Passing an empty network will use the network of the Socket's listener.
{ "resource": "" }
c15008
train
// fdget returns index and offset of fd in fds.
{ "resource": "" }
c15009
train
// fdset implements FD_SET macro.
{ "resource": "" }
c15010
train
// fdisset implements FD_ISSET macro.
{ "resource": "" }
c15011
train
// Read reads from serial port. // It is blocked until data received or timeout after p.timeout.
{ "resource": "" }
c15012
train
// syscallSelect is a wapper for syscall.Select that only returns error.
{ "resource": "" }
c15013
train
// Read reads from serial port. Port must be opened before calling this method. // It is blocked until all data received or timeout after p.timeout.
{ "resource": "" }
c15014
train
// backupTermios saves current termios setting. // Make sure that device file has been opened before calling this function.
{ "resource": "" }
c15015
train
// restoreTermios restores backed up termios setting. // Make sure that device file has been opened before calling this function.
{ "resource": "" }
c15016
train
// Helpers for termios
{ "resource": "" }
c15017
train
// enableRS485 enables RS485 functionality of driver via an ioctl if the config says so
{ "resource": "" }
c15018
train
// Open opens a serial port.
{ "resource": "" }
c15019
train
// NewServer creates TFTP server. It requires two functions to handle // read and write requests. // In case nil is provided for read or write handler the respective // operation is disabled.
{ "resource": "" }
c15020
train
// SetAnticipate provides an experimental feature in which when a packets // is requested the server will keep sending a number of packets before // checking whether an ack has been received. It improves tftp downloading // speed by a few times. // The argument winsz specifies how many packets will be sent before // wa...
{ "resource": "" }
c15021
train
// EnableSinglePort enables an experimental mode where the server will // serve all connections on port 69 only. There will be no random TIDs // on the server side. // // Enabling this will negatively impact performance
{ "resource": "" }
c15022
train
// SetTimeout sets maximum time server waits for single network // round-trip to succeed. // Default is 5 seconds.
{ "resource": "" }
c15023
train
// SetRetries sets maximum number of attempts server made to transmit a // packet. // Default is 5 attempts.
{ "resource": "" }
c15024
train
// ListenAndServe binds to address provided and start the server. // ListenAndServe returns when Shutdown is called.
{ "resource": "" }
c15025
train
// Serve starts server provided already opened UDP connecton. It is // useful for the case when you want to run server in separate goroutine // but still want to be able to handle any errors opening connection. // Serve returns when Shutdown is called or connection is closed.
{ "resource": "" }
c15026
train
// Shutdown make server stop listening for new requests, allows // server to finish outstanding transfers and stops server.
{ "resource": "" }
c15027
train
// internalGC collects all the finished signals from each connection's goroutine // The main loop is sent the key to be nil'ed after the gcInterval has passed
{ "resource": "" }
c15028
train
// packRQ returns length of the packet in b
{ "resource": "" }
c15029
train
// NewClient creates TFTP client for server on address provided.
{ "resource": "" }
c15030
train
// SetTimeout sets maximum time client waits for single network round-trip to succeed. // Default is 5 seconds.
{ "resource": "" }
c15031
train
// SetRetries sets maximum number of attempts client made to transmit a packet. // Default is 5 attempts.
{ "resource": "" }
c15032
train
// Send starts outgoing file transmission. It returns io.ReaderFrom or error.
{ "resource": "" }
c15033
train
// Receive starts incoming file transmission. It returns io.WriterTo or error.
{ "resource": "" }
c15034
train
// AvailableBackends provides a slice of all available backend keys on the current OS
{ "resource": "" }
c15035
train
// Open will open a specific keyring backend
{ "resource": "" }
c15036
train
// NewArrayKeyring returns an ArrayKeyring, optionally constructed with an initial slice // of items
{ "resource": "" }
c15037
train
// Get returns an Item matching Key
{ "resource": "" }
c15038
train
// Set will store an item on the mock Keyring
{ "resource": "" }
c15039
train
// Remove will delete an Item from the Keyring
{ "resource": "" }
c15040
train
// Keys provides a slice of all Item keys on the Keyring
{ "resource": "" }
c15041
train
// WithHTTPClient makes the metadata client use the given HTTP client.
{ "resource": "" }
c15042
train
// WithBaseURL makes the metadata client reach the metadata API using the // given base URL.
{ "resource": "" }
c15043
train
// NewClient creates a client for the metadata API.
{ "resource": "" }
c15044
train
// Metadata contains the entire contents of a Droplet's metadata. // This method is unique because it returns all of the // metadata at once, instead of individual metadata items.
{ "resource": "" }
c15045
train
// DropletID returns the Droplet's unique identifier. This is // automatically generated upon Droplet creation.
{ "resource": "" }
c15046
train
// Hostname returns the Droplet's hostname, as specified by the // user during Droplet creation.
{ "resource": "" }
c15047
train
// UserData returns the user data that was provided by the user // during Droplet creation. User data can contain arbitrary data // for miscellaneous use or, with certain Linux distributions, // an arbitrary shell script or cloud-config file that will be // consumed by a variation of cloud-init upon boot. At this time,...
{ "resource": "" }
c15048
train
// VendorData provided data that can be used to configure Droplets // upon their creation. This is similar to user data, but it is // provided by DigitalOcean instead of the user.
{ "resource": "" }
c15049
train
// Region returns the region code of where the Droplet resides.
{ "resource": "" }
c15050
train
// AuthToken returns the authentication token.
{ "resource": "" }
c15051
train
// FloatingIPv4Active returns true if an IPv4 Floating IP // Address is assigned to the Droplet.
{ "resource": "" }
c15052
train
// Save saves a representation of v to the file at path.
{ "resource": "" }
c15053
train
// implement the io.Reader interface
{ "resource": "" }
c15054
train
// Initialize a new Converter. If fromEncoding or toEncoding are not supported by // iconv then an EINVAL error will be returned. An ENOMEM error maybe returned if // there is not enough memory to initialize an iconv descriptor
{ "resource": "" }
c15055
train
// Close a Converter's iconv description explicitly
{ "resource": "" }
c15056
train
// Convert bytes from an input byte slice into a give output byte slice // // As many bytes that can converted and fit into the size of output will be // processed and the number of bytes read for input as well as the number of // bytes written to output will be returned. If not all converted bytes can fit // into outp...
{ "resource": "" }
c15057
train
// Convert an input string // // EILSEQ error may be returned if input contains invalid bytes for the // Converter's fromEncoding.
{ "resource": "" }
c15058
train
// All in one Convert method, rather than requiring the construction of an iconv.Converter
{ "resource": "" }
c15059
train
// All in one ConvertString method, rather than requiring the construction of an iconv.Converter
{ "resource": "" }
c15060
train
// implement the io.Writer interface
{ "resource": "" }
c15061
train
// Transform takes a ColourScheme, a ViewRegionMap and a viewport as input. // // The viewport would be the text.Region of the current buffer that is visible to the user // and any ViewRegions outside of this area are not forwarded for further processing. // // The remaining ViewRegions are then passed on to the Colour...
{ "resource": "" }
c15062
train
// Transcribing the Recipe creates a linear step-by-step // representation of it, which might or might not // make it easier for Renderers to work with.
{ "resource": "" }
c15063
train
// Returns a string describing this Edit object. Should typically not be manually called.
{ "resource": "" }
c15064
train
// Reverses the application of this Edit object. Should typically not be manually called.
{ "resource": "" }
c15065
train
// Compares one KeyBinding to another for sorting purposes.
{ "resource": "" }
c15066
train
// Swaps the two KeyBindings at the given positions.
{ "resource": "" }
c15067
train
// Drops all KeyBindings that are a sequence of key presses less or equal // to the given number.
{ "resource": "" }
c15068
train
// Filters the KeyBindings, returning a new KeyBindings object containing // a subset of matches for the given key press.
{ "resource": "" }
c15069
train
// Tries to resolve all the current KeyBindings in k to a single // action. If any action is appropriate as determined by context, // the return value will be the specific KeyBinding that is possible // to execute now, otherwise it is nil.
{ "resource": "" }
c15070
train
// Returns whether this KeyPress is a print character or not.
{ "resource": "" }
c15071
train
// Modifies the KeyPress so that it's Key is a unicode lower case // rune and if it was in uppercase before this modification, the // "Shift" modifier is also enabled.
{ "resource": "" }
c15072
train
// Won't return the json type itself just watch & load
{ "resource": "" }
c15073
train
// Send a reparse request via the reparse channel. // If "forced" is set to true, then a reparse will be made // even if the Buffer appears to not have changed. // // The actual parsing is done in a separate go-routine, for which the // "lime.syntax.updated" setting will be set once it has finished. // // Note that it'...
{ "resource": "" }
c15074
train
// Adds an Erase action of the given Region to the provided Edit object.
{ "resource": "" }
c15075
train
// Adds a Replace action of the given Region to the provided Edit object.
{ "resource": "" }
c15076
train
// Ends the given Edit object.
{ "resource": "" }
c15077
train
// Returns whether the underlying Buffer has any unsaved modifications. // Note that Scratch buffers are never considered dirty.
{ "resource": "" }
c15078
train
// Saves the file to the specified filename
{ "resource": "" }
c15079
train
// AddRegions lets users mark text regions in a view with a scope name, gutter icon and ViewRegionflags // which are then optionally used to alter the display of those regions. // // Typical uses would be to draw squiggly lines under misspelled words, show an icon in the gutter to // indicate a breakpoint, keeping trac...
{ "resource": "" }
c15080
train
// Returns the Regions associated with the given key.
{ "resource": "" }
c15081
train
// Removes the Regions associated with the given key from the view.
{ "resource": "" }
c15082
train
// Initiate the "close" operation of this view. // Returns "true" if the view was closed. Otherwise returns "false".
{ "resource": "" }
c15083
train
// Finds the next location after point that matches the given classes // Searches backward if forward is false
{ "resource": "" }
c15084
train
// Expands the selection until the point on each side matches the given classes
{ "resource": "" }
c15085
train
// If the cmd implements the CustomInit interface, its Init function // is called, otherwise the fields of the cmd's underlying struct type // will be enumerated and match against the dictionary keys in args, // or if the key isn't provided in args, the Zero value will be used.
{ "resource": "" }
c15086
train
// Closes the Window and all its Views. // Returns "true" if the Window closed successfully. Otherwise returns "false".
{ "resource": "" }
c15087
train
// Closes all of the Window's Views. // Returns "true" if all the Views closed successfully. Otherwise returns "false".
{ "resource": "" }
c15088
train
// Marshals project struct to json then writes it to a file with given name
{ "resource": "" }
c15089
train
// Execute the InitEvent.
{ "resource": "" }
c15090
train
// Remove watchers created on files under this directory because // one watcher on the parent directory is enough for all of them
{ "resource": "" }
c15091
train
// Put back watchers on watching files under the directory
{ "resource": "" }
c15092
train
// Observe dispatches notifications received by the watcher. This function will // return when the watcher is closed.
{ "resource": "" }
c15093
train
// Re-applies the next action in the undo stack // if there are any actions on the stack that had // been undone. // // See comment in Undo regarding the use of "hard".
{ "resource": "" }
c15094
train
// Glues all edits from the position given by mark, // to the current position in the UndoStack, replacing // them by a single entry which will now be composite // of all those other actions. // // In other words, after the glue operation // a single "undo" operation will then undo all of those edits // and a single re...
{ "resource": "" }
c15095
train
// Helper function for watching a package
{ "resource": "" }
c15096
train
// watches scaned directory
{ "resource": "" }
c15097
train
// Calls Cull on each ViewRegions object contained in the map, // removing all entries that are outside of the viewport.
{ "resource": "" }
c15098
train
// Removes any regions that are outside of the given viewport, // and clips the regions that are intersecting it so that // all regions remaining are fully contained inside of the viewport.
{ "resource": "" }
c15099
train
// Creates a copy of this ViewRegions object.
{ "resource": "" }