_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c6300
train
// Add a node to the cache and pop the least recently used node if we've // reached the cache size limit.
{ "resource": "" }
c6301
train
// Write to disk.
{ "resource": "" }
c6302
train
// SaveRoot creates an entry on disk for the given root, so that it can be // loaded later.
{ "resource": "" }
c6303
train
// SaveEmptyRoot creates an entry on disk for an empty root.
{ "resource": "" }
c6304
train
// Find searches the html.Node that matches by the specified XPath expr.
{ "resource": "" }
c6305
train
// LoadURL loads the HTML document from the specified URL.
{ "resource": "" }
c6306
train
// Parse returns the parse tree for the HTML from the given Reader.
{ "resource": "" }
c6307
train
// InnerText returns the text between the start and end tags of the object.
{ "resource": "" }
c6308
train
// OutputHTML returns the text including tags name.
{ "resource": "" }
c6309
train
// GetOrganization takes an organization id and Arguments and either // GETs returns an Organization, or an error.
{ "resource": "" }
c6310
train
// GetToken takes a token id and Arguments and GETs and returns the Token or an error.
{ "resource": "" }
c6311
train
// FirstCardCreateAction returns first card-create action
{ "resource": "" }
c6312
train
// FilterToCardCreationActions returns this collection's card-create actions
{ "resource": "" }
c6313
train
// FilterToListChangeActions returns card-change-list actions
{ "resource": "" }
c6314
train
// FilterToCardMembershipChangeActions returns the collection's card-change, archive and unarchive actions
{ "resource": "" }
c6315
train
// GetMember takes a member id and Arguments and returns a Member or an error.
{ "resource": "" }
c6316
train
// GetMembers takes Arguments and returns a slice of all members of the organization or an error.
{ "resource": "" }
c6317
train
// GetMembers takes Arguments and returns a slice of all members of the Board or an error.
{ "resource": "" }
c6318
train
// GetMembers takes Arguments and returns a slice of all members of the Card or an error.
{ "resource": "" }
c6319
train
// GetCustomField takes a field id string and Arguments and returns the matching custom Field.
{ "resource": "" }
c6320
train
// GetCustomFields returns a slice of all receiver board's custom fields.
{ "resource": "" }
c6321
train
// Less takes two indexes i and j and returns true exactly if the ListDuration // at i was entered before j.
{ "resource": "" }
c6322
train
// GetMemberDurations returns a slice containing all durations of a card.
{ "resource": "" }
c6323
train
// NewBoard is a constructor that sets the default values // for Prefs.SelfJoin and Prefs.CardCovers also set by the API.
{ "resource": "" }
c6324
train
// CreatedAt returns a board's created-at attribute as time.Time.
{ "resource": "" }
c6325
train
// Delete makes a DELETE call for the receiver Board.
{ "resource": "" }
c6326
train
// GetBoard retrieves a Trello board by its ID.
{ "resource": "" }
c6327
train
// GetMyBoards returns a slice of all boards associated with the credentials set on the client.
{ "resource": "" }
c6328
train
// GetBoards returns a slice of all public boards of the receiver Member.
{ "resource": "" }
c6329
train
// NewClient is a constructor for the Client. It takes the key and token credentials // of a Trello member to authenticate and authorise requests with.
{ "resource": "" }
c6330
train
// WithContext takes a context.Context, sets it as context on the client and returns // a Client pointer.
{ "resource": "" }
c6331
train
// GetMyNotifications returns the notifications of the authenticated user
{ "resource": "" }
c6332
train
// CreateWebhook takes a Webhook, POSTs it and returns an error object.
{ "resource": "" }
c6333
train
// GetWebhook takes a webhook id and Arguments, GETs the matching Webhook and returns it or an error.
{ "resource": "" }
c6334
train
// GetWebhooks takes Arguments and returns a list of all Webhooks for the receiver Token or an error.
{ "resource": "" }
c6335
train
// GetBoardWebhookRequest takes a http.Request and returns the decoded body as BoardWebhookRequest or an error.
{ "resource": "" }
c6336
train
// CreatedAt returns the receiver card's created-at attribute as time.Time.
{ "resource": "" }
c6337
train
// CustomFields returns the card's custom fields.
{ "resource": "" }
c6338
train
// MoveToList moves a card to a list given by listID.
{ "resource": "" }
c6339
train
// SetPos sets a card's new position.
{ "resource": "" }
c6340
train
// RemoveMember receives the id of a member and removes the corresponding member from the card.
{ "resource": "" }
c6341
train
// AddMemberID receives a member id and adds the corresponding member to the card. // Returns a list of the card's members or an error.
{ "resource": "" }
c6342
train
// RemoveIDLabel removes a label id from the card.
{ "resource": "" }
c6343
train
// AddIDLabel receives a label id and adds the corresponding label or returns an error.
{ "resource": "" }
c6344
train
// MoveToTopOfList moves the card to the top of it's list.
{ "resource": "" }
c6345
train
// Update UPDATEs the card's attributes.
{ "resource": "" }
c6346
train
// CreateCard takes a Card and Arguments and POSTs the card.
{ "resource": "" }
c6347
train
// AddCard takes a Card and Arguments and adds the card to the receiver list.
{ "resource": "" }
c6348
train
// AddComment takes a comment string and Arguments and adds the comment to the card.
{ "resource": "" }
c6349
train
// AddURLAttachment takes an Attachment and adds it to the card.
{ "resource": "" }
c6350
train
// GetParentCard retrieves the originating Card if the Card was created // from a copy of another Card. Returns an error only when a low-level failure occurred. // If this Card has no parent, a nil card and nil error are returned. In other words, the // non-existence of a parent is not treated as an error.
{ "resource": "" }
c6351
train
// GetAncestorCards takes Arguments, GETs the card's ancestors and returns them as a slice.
{ "resource": "" }
c6352
train
// GetOriginatingCard takes Arguments, GETs ancestors and returns most recent ancestor card of the Card.
{ "resource": "" }
c6353
train
// CreatorMember returns the member of the card who created it or and error. // The creator is the member who is associated with the card's first action.
{ "resource": "" }
c6354
train
// CreatorMemberID returns as string the id of the member who created the card or an error. // The creator is the member who is associated with the card's first action.
{ "resource": "" }
c6355
train
// ContainsCopyOfCard accepts a card id and Arguments and returns true // if the receiver Board contains a Card with the id.
{ "resource": "" }
c6356
train
// GetCard receives a card id and Arguments and returns the card if found // with the credentials given for the receiver Client. Returns an error // otherwise.
{ "resource": "" }
c6357
train
// GetCards takes Arguments and retrieves all Cards on a Board as slice or returns error.
{ "resource": "" }
c6358
train
// GetCards retrieves all Cards in a List or an error if something goes wrong.
{ "resource": "" }
c6359
train
// GetLabels takes Arguments and returns a slice containing all labels of the receiver board or an error.
{ "resource": "" }
c6360
train
// ToURLValues returns the argument's URL value representation.
{ "resource": "" }
c6361
train
// GetActions make a GET call for a board's actions
{ "resource": "" }
c6362
train
// GetActions makes a GET call for a list's actions
{ "resource": "" }
c6363
train
// GetActions makes a GET for a card's actions
{ "resource": "" }
c6364
train
// GetMembershipChangeActions makes a GET call for a card's membership-change actions
{ "resource": "" }
c6365
train
// DidArchiveCard returns true if the card was updated
{ "resource": "" }
c6366
train
// DidUnarchiveCard returns true if the card was unarchived
{ "resource": "" }
c6367
train
// SearchCards takes a query string and Arguments and returns a slice of Cards or an error.
{ "resource": "" }
c6368
train
// SearchBoards takes a query string and Arguments and returns a slice of Boards or an error.
{ "resource": "" }
c6369
train
// SearchMembers takes a query string and Arguments and returns a slice of Members or an error.
{ "resource": "" }
c6370
train
// IsRateLimit takes an error and returns true exactly if the error is a rate-limit error.
{ "resource": "" }
c6371
train
// IsNotFound takes an error and returns true exactly if the error is a not-found error.
{ "resource": "" }
c6372
train
// IsPermissionDenied takes an error and returns true exactly if the error is a // permission-denied error.
{ "resource": "" }
c6373
train
// CreatedAt returns the time.Time from the list's id.
{ "resource": "" }
c6374
train
// GetList takes a list's id and Arguments and returns the matching list.
{ "resource": "" }
c6375
train
// GetLists takes Arguments and returns the lists of the receiver Board.
{ "resource": "" }
c6376
train
// IDToTime is a convenience function. It takes a Trello ID string and // extracts the encoded create time as time.Time or an error.
{ "resource": "" }
c6377
train
// AddDuration takes a duration and adds it to the ListDuration's Duration. // Also increments TimesInList.
{ "resource": "" }
c6378
train
// GetListDurations analyses a Card's actions to figure out how long it was in each List. // It returns a slice of the ListDurations, one Duration per list, or an error.
{ "resource": "" }
c6379
train
// GetListDurations returns a slice of ListDurations based on the receiver Actions.
{ "resource": "" }
c6380
train
// DefaultAlertConfig loads default config settings
{ "resource": "" }
c6381
train
//sendEvent builds the event JSON and sends it to the iLert API
{ "resource": "" }
c6382
train
// GetReminders returns list of reminders
{ "resource": "" }
c6383
train
// SetReminder sets a reminder
{ "resource": "" }
c6384
train
// DeleteReminder deletes a reminder
{ "resource": "" }
c6385
train
// NewAlerts returns a list of checks marked for notification
{ "resource": "" }
c6386
train
// CustomNotifiers returns a map of all custom notifiers and command path as the key value
{ "resource": "" }
c6387
train
// getProfileForEntity returns the profile matching the exact path or the regexp // entity is either 'service', 'check' or 'host'
{ "resource": "" }
c6388
train
// GetProfileInfo returns profile info for check
{ "resource": "" }
c6389
train
// IsBlacklisted gets the blacklist status of check
{ "resource": "" }
c6390
train
// New returns a new structure for performing closest matches
{ "resource": "" }
c6391
train
// Load can load a previously saved ClosestMatch object from disk
{ "resource": "" }
c6392
train
// Add more words to ClosestMatch structure
{ "resource": "" }
c6393
train
// Save writes the current ClosestSave object as a gzipped JSON file
{ "resource": "" }
c6394
train
// Closest searches for the `searchWord` and returns the closest match
{ "resource": "" }
c6395
train
// ClosestN searches for the `searchWord` and returns the n closests matches
{ "resource": "" }
c6396
train
// Open will load a connection to BoltDB
{ "resource": "" }
c6397
train
// UnmarshalYAML implements the yaml.Unmarshaler interface for URLs.
{ "resource": "" }
c6398
train
// MarshalYAML implements the yaml.Marshaler interface for URLs.
{ "resource": "" }
c6399
train
// Validate validates the HTTPClientConfig to check only one of BearerToken, // BasicAuth and BearerTokenFile is configured.
{ "resource": "" }