_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c181200
test
// NewOutgoingUnbanChatMember creates a request to unban a member of a // group chat or channel.
{ "resource": "" }
c181201
test
// NewOutgoingCallbackQueryResponse creates a response to a callback query.
{ "resource": "" }
c181202
test
// NewInlineQueryAnswer creates a new inline query answer.
{ "resource": "" }
c181203
test
// Type determines the type of the message. // Note that, for all these types, messages can still be replies or // forwarded.
{ "resource": "" }
c181204
test
// Type returns the type of the update.
{ "resource": "" }
c181205
test
// MarshalJSON marshals the recipient to JSON.
{ "resource": "" }
c181206
test
// querystring implements querystringer to represent the outgoing certificate // file.
{ "resource": "" }
c181207
test
// getBaseQueryString gets a Querystring representing this message.
{ "resource": "" }
c181208
test
// getMessageBaseQueryString gets a Querystring representing this message.
{ "resource": "" }
c181209
test
// querystring implements querystringer to represent the audio file.
{ "resource": "" }
c181210
test
// querystring implements querystringer to represent the photo.
{ "resource": "" }
c181211
test
// querystring implements querystringer to represent the request.
{ "resource": "" }
c181212
test
// querystring implements querystringer to represent the outgoing video // file.
{ "resource": "" }
c181213
test
// querystring implements querystringer to represent the outgoing voice // note.
{ "resource": "" }
c181214
test
// NewInlineQueryResultArticle returns a new InlineQueryResultArticle with // all mandatory fields set.
{ "resource": "" }
c181215
test
// NewInlineQueryResultPhoto returns a new InlineQueryResultPhoto with all // mandatory fields set.
{ "resource": "" }
c181216
test
// NewInlineQueryResultGif returns a new InlineQueryResultGif with all // mandatory fields set.
{ "resource": "" }
c181217
test
// NewInlineQueryResultMpeg4Gif returns a new InlineQueryResultMpeg4Gif // with all mandatory fields set.
{ "resource": "" }
c181218
test
// NewInlineQueryResultVideo returns a new InlineQueryResultVideo with all // mandatory fields set.
{ "resource": "" }
c181219
test
// Send sends the request. // On success, the photos are returned as a UserProfilePhotosResponse.
{ "resource": "" }
c181220
test
// Send sends the chat action. // On success, nil is returned.
{ "resource": "" }
c181221
test
// Send sends the inline query answer. // On success, nil is returned.
{ "resource": "" }
c181222
test
// Send sends the kick request.
{ "resource": "" }
c181223
test
// Send sends the unban request.
{ "resource": "" }
c181224
test
// Send sends the callback response.
{ "resource": "" }
c181225
test
// NewAPIClient creates a new API client. Requires a userAgent string describing your application. // optionally a custom http.Client to allow for advanced features such as caching.
{ "resource": "" }
c181226
test
// BeforeInsert sets current time to CreatedAt and UpdatedAt field. // It always returns nil.
{ "resource": "" }
c181227
test
// columnName returns the column name that added the table name with quoted if needed.
{ "resource": "" }
c181228
test
// New returns a new DB. // If any error occurs, it returns nil and error.
{ "resource": "" }
c181229
test
// From returns a "FROM" statement. // A table name will be determined from name of struct of arg. // If arg argument is not struct type, it panics.
{ "resource": "" }
c181230
test
// Where returns a new Condition of "WHERE" clause.
{ "resource": "" }
c181231
test
// OrderBy returns a new Condition of "ORDER BY" clause.
{ "resource": "" }
c181232
test
// Limit returns a new Condition of "LIMIT" clause.
{ "resource": "" }
c181233
test
// Offset returns a new Condition of "OFFSET" clause.
{ "resource": "" }
c181234
test
// Join returns a new JoinCondition of "JOIN" clause.
{ "resource": "" }
c181235
test
// Count returns "COUNT" function.
{ "resource": "" }
c181236
test
// Update updates the one record. // The obj must be struct, and must have field that specified "pk" struct tag. // Update will try to update record which searched by value of primary key in obj. // Update returns the number of rows affected by an update.
{ "resource": "" }
c181237
test
// Delete deletes the records from database table. // The obj must be pointer to struct or slice of struct, and must have field that specified "pk" struct tag. // Delete will try to delete record which searched by value of primary key in obj. // Delete returns teh number of rows affected by a delete.
{ "resource": "" }
c181238
test
// Commit commits the transaction. // If Begin still not called, or Commit or Rollback already called, Commit returns ErrTxDone.
{ "resource": "" }
c181239
test
// Quote returns a quoted s. // It is for a column name, not a value.
{ "resource": "" }
c181240
test
// SetLogOutput sets output destination for logging. // If w is nil, it unsets output of logging.
{ "resource": "" }
c181241
test
// selectToSlice returns a slice value fetched from rows.
{ "resource": "" }
c181242
test
// selectToValue returns a single value fetched from rows.
{ "resource": "" }
c181243
test
// fieldIndexByName returns the nested field corresponding to the index sequence.
{ "resource": "" }
c181244
test
// columns returns the comma-separated column name with quoted.
{ "resource": "" }
c181245
test
// tagsFromField returns a slice of option strings.
{ "resource": "" }
c181246
test
// hasSkipTag returns whether the struct field has the "-" tag.
{ "resource": "" }
c181247
test
// hasPKTag returns whether the struct field has the "pk" tag.
{ "resource": "" }
c181248
test
// isAutoIncrementable returns whether the struct field is integer.
{ "resource": "" }
c181249
test
// collectFieldIndexes returns the indexes of field which doesn't have skip tag and pk tag.
{ "resource": "" }
c181250
test
// findPKIndex returns the nested field corresponding to the index sequence of field of primary key.
{ "resource": "" }
c181251
test
// sizeFromTag returns a size from tag. // If "size" tag specified to struct field, it will converted to uint64 and returns it. // If it doesn't specify, it returns 0. // If value of "size" tag cannot convert to uint64, it returns 0 and error.
{ "resource": "" }
c181252
test
// columnFromTag returns the column name. // If "column" tag specified to struct field, returns it. // Otherwise, it returns snake-cased field name as column name.
{ "resource": "" }
c181253
test
// defaultFromTag returns a "DEFAULT ..." keyword. // If "default" tag specified to struct field, it use as the default value. // If it doesn't specify, it returns empty string.
{ "resource": "" }
c181254
test
// Where adds "WHERE" clause to the Condition and returns it for method chain.
{ "resource": "" }
c181255
test
// And adds "AND" operator to the Condition and returns it for method chain.
{ "resource": "" }
c181256
test
// Or adds "OR" operator to the Condition and returns it for method chain.
{ "resource": "" }
c181257
test
// Like adds "LIKE" clause to the Condition and returns it for method chain.
{ "resource": "" }
c181258
test
// Between adds "BETWEEN ... AND ..." clause to the Condition and returns it for method chain.
{ "resource": "" }
c181259
test
// OrderBy adds "ORDER BY" clause to the Condition and returns it for method chain.
{ "resource": "" }
c181260
test
// Limit adds "LIMIT" clause to the Condition and returns it for method chain.
{ "resource": "" }
c181261
test
// Offset adds "OFFSET" clause to the Condition and returns it for method chain.
{ "resource": "" }
c181262
test
// SetFormat sets the format for logging.
{ "resource": "" }
c181263
test
// Print outputs query log using format template. // All arguments will be used to formatting.
{ "resource": "" }
c181264
test
// Print is a dummy method.
{ "resource": "" }
c181265
test
// Quote returns a quoted s for a column name.
{ "resource": "" }
c181266
test
// SQLType returns the SQL type of the v for PostgreSQL.
{ "resource": "" }
c181267
test
// New archive // If the exentions of the target file is .zip, the archive will be in the zip // format, otherwise, it will be a tar.gz archive.
{ "resource": "" }
c181268
test
// Disconnect destroys the state for a particular host instance. // // Call this function to disconnect the host. After you call this function the // Host object is no longer valid and you should not longer use it. // Similarly, you should not use any other object instances obtained from the // Host object while it was connected. // // Since VMware Server 1.0
{ "resource": "" }
c181269
test
// nextNetworkAdapterID returns the next available ethernet ID, reusing ids if // the ethernet adapter has "present" equal to "FALSE"
{ "resource": "" }
c181270
test
// totalNetworkAdapters returns the total number of network adapters in the VMX file.
{ "resource": "" }
c181271
test
// RemoveAllNetworkAdapters deletes all network adapters from a VM.
{ "resource": "" }
c181272
test
// RemoveNetworkAdapter deletes network adapter from VMX file that matches the ID in "adapter.Id".
{ "resource": "" }
c181273
test
// NetworkAdapters lists current network adapters attached to the virtual // machine.
{ "resource": "" }
c181274
test
// NewArchive uses 7z to extract a list of files in .7z archive
{ "resource": "" }
c181275
test
// GetFileReader returns a reader for reading a given file
{ "resource": "" }
c181276
test
// ExtractToWriter writes the content of a given file inside the archive to dst
{ "resource": "" }
c181277
test
// ExtractToFile extracts a given file from the archive to a file on disk
{ "resource": "" }
c181278
test
// SharedFoldersParentDir returns the parent dir for share folders in the Guest.
{ "resource": "" }
c181279
test
// Name returns user defined name for the snapshot.
{ "resource": "" }
c181280
test
// Description returns user defined description for the snapshot.
{ "resource": "" }
c181281
test
// cleanupSnapshot cleans up snapshot internal C handle.
{ "resource": "" }
c181282
test
// BusTypeFromID gets BusType from device ID.
{ "resource": "" }
c181283
test
// Read reads VMX file from disk and unmarshals it
{ "resource": "" }
c181284
test
// Write marshals and writes VMX file to disk
{ "resource": "" }
c181285
test
// NewVirtualMachine creates a new VM instance.
{ "resource": "" }
c181286
test
// Vcpus returns number of virtual CPUs configured for the virtual machine.
{ "resource": "" }
c181287
test
// VmxPath returns path to the virtual machine configuration file.
{ "resource": "" }
c181288
test
// MemorySize returns memory size of the virtual machine.
{ "resource": "" }
c181289
test
// ReadOnly tells whether or not the VM is read-only.
{ "resource": "" }
c181290
test
// InVMTeam returns whether the virtual machine is a member of a team.
{ "resource": "" }
c181291
test
// PowerState returns power state of the virtual machine.
{ "resource": "" }
c181292
test
// ToolsState returns state of the VMware Tools suite in the guest.
{ "resource": "" }
c181293
test
// IsRunning returns whether the virtual machine is running.
{ "resource": "" }
c181294
test
// GuestOS returns the guest os.
{ "resource": "" }
c181295
test
// cleanupVM cleans up VM VIX handle.
{ "resource": "" }
c181296
test
// updateVMX updates VMX file for the VM.
{ "resource": "" }
c181297
test
// SetMemorySize sets memory size in megabytes. VM has to be powered off in order to change this parameter.
{ "resource": "" }
c181298
test
// SetNumberVcpus sets number of virtual cpus assigned to this machine. VM has to be powered off in order to change this parameter.
{ "resource": "" }
c181299
test
// SetDisplayName sets virtual machine name.
{ "resource": "" }