repo
stringclasses
235 values
path
stringlengths
11
168
func_name
stringlengths
12
143
original_string
stringlengths
83
6.91k
language
stringclasses
1 value
code
stringlengths
83
6.91k
code_tokens
listlengths
15
1.01k
docstring
stringlengths
5
25.7k
docstring_tokens
listlengths
1
427
sha
stringclasses
235 values
url
stringlengths
99
268
partition
stringclasses
1 value
summary
stringlengths
7
202
input_ids
listlengths
502
502
token_type_ids
listlengths
502
502
attention_mask
listlengths
502
502
labels
listlengths
502
502
colszowka/simplecov
lib/simplecov/profiles.rb
SimpleCov.Profiles.load
def load(name) name = name.to_sym raise "Could not find SimpleCov Profile called '#{name}'" unless key?(name) SimpleCov.configure(&self[name]) end
ruby
def load(name) name = name.to_sym raise "Could not find SimpleCov Profile called '#{name}'" unless key?(name) SimpleCov.configure(&self[name]) end
[ "def", "load", "(", "name", ")", "name", "=", "name", ".", "to_sym", "raise", "\"Could not find SimpleCov Profile called '#{name}'\"", "unless", "key?", "(", "name", ")", "SimpleCov", ".", "configure", "(", "self", "[", "name", "]", ")", "end" ]
Applies the profile of given name on SimpleCov.configure
[ "Applies", "the", "profile", "of", "given", "name", "on", "SimpleCov", ".", "configure" ]
8f6978a2513f10c4dd8d7dd7eed666fe3f2b55c2
https://github.com/colszowka/simplecov/blob/8f6978a2513f10c4dd8d7dd7eed666fe3f2b55c2/lib/simplecov/profiles.rb#L27-L31
train
Load a Profile
[ 30522, 13366, 7170, 1006, 2171, 1007, 2171, 1027, 2171, 1012, 2000, 1035, 25353, 2213, 5333, 1000, 2071, 2025, 2424, 3722, 3597, 2615, 6337, 2170, 1005, 1001, 1063, 2171, 1065, 1005, 1000, 4983, 3145, 1029, 1006, 2171, 1007, 3722, 3597, 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_event_grid/lib/2018-01-01/generated/azure_mgmt_event_grid/event_subscriptions.rb
Azure::EventGrid::Mgmt::V2018_01_01.EventSubscriptions.delete
def delete(scope, event_subscription_name, custom_headers:nil) response = delete_async(scope, event_subscription_name, custom_headers:custom_headers).value! nil end
ruby
def delete(scope, event_subscription_name, custom_headers:nil) response = delete_async(scope, event_subscription_name, custom_headers:custom_headers).value! nil end
[ "def", "delete", "(", "scope", ",", "event_subscription_name", ",", "custom_headers", ":", "nil", ")", "response", "=", "delete_async", "(", "scope", ",", "event_subscription_name", ",", "custom_headers", ":custom_headers", ")", ".", "value!", "nil", "end" ]
Delete an event subscription Delete an existing event subscription @param scope [String] The scope of the event subscription. The scope can be a subscription, or a resource group, or a top level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use '/subscriptions/{subscrip...
[ "Delete", "an", "event", "subscription" ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_event_grid/lib/2018-01-01/generated/azure_mgmt_event_grid/event_subscriptions.rb#L241-L244
train
Deletes an event subscription.
[ 30522, 13366, 3972, 12870, 1006, 9531, 1010, 2724, 1035, 15002, 1035, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 3972, 12870, 1035, 2004, 6038, 2278, 1006, 9531, 1010, 2724, 1035, 15002, 1035, 2171, 1010, 7661,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
square/connect-ruby-sdk
lib/square_connect/models/create_checkout_request.rb
SquareConnect.CreateCheckoutRequest.redirect_url=
def redirect_url=(redirect_url) if !redirect_url.nil? && redirect_url.to_s.length > 800 fail ArgumentError, "invalid value for 'redirect_url', the character length must be smaller than or equal to 800." end @redirect_url = redirect_url end
ruby
def redirect_url=(redirect_url) if !redirect_url.nil? && redirect_url.to_s.length > 800 fail ArgumentError, "invalid value for 'redirect_url', the character length must be smaller than or equal to 800." end @redirect_url = redirect_url end
[ "def", "redirect_url", "=", "(", "redirect_url", ")", "if", "!", "redirect_url", ".", "nil?", "&&", "redirect_url", ".", "to_s", ".", "length", ">", "800", "fail", "ArgumentError", ",", "\"invalid value for 'redirect_url', the character length must be smaller than or equa...
Custom attribute writer method with validation @param [Object] redirect_url Value to be assigned
[ "Custom", "attribute", "writer", "method", "with", "validation" ]
798eb9ded716f23b9f1518386f1c311a34bca8bf
https://github.com/square/connect-ruby-sdk/blob/798eb9ded716f23b9f1518386f1c311a34bca8bf/lib/square_connect/models/create_checkout_request.rb#L216-L223
train
Set the redirect_url of the page.
[ 30522, 13366, 2417, 7442, 6593, 1035, 24471, 2140, 1027, 1006, 2417, 7442, 6593, 1035, 24471, 2140, 1007, 2065, 999, 2417, 7442, 6593, 1035, 24471, 2140, 1012, 9152, 2140, 1029, 1004, 1004, 2417, 7442, 6593, 1035, 24471, 2140, 1012, 2000, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_service_bus/lib/2015-08-01/generated/azure_mgmt_service_bus/queues.rb
Azure::ServiceBus::Mgmt::V2015_08_01.Queues.list_keys
def list_keys(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers:nil) response = list_keys_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def list_keys(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers:nil) response = list_keys_async(resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "list_keys", "(", "resource_group_name", ",", "namespace_name", ",", "queue_name", ",", "authorization_rule_name", ",", "custom_headers", ":", "nil", ")", "response", "=", "list_keys_async", "(", "resource_group_name", ",", "namespace_name", ",", "queue_name", ...
Primary and secondary connection strings to the queue. @param resource_group_name [String] Name of the Resource group within the Azure subscription. @param namespace_name [String] The namespace name @param queue_name [String] The queue name. @param authorization_rule_name [String] The authorization rule name. @p...
[ "Primary", "and", "secondary", "connection", "strings", "to", "the", "queue", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_service_bus/lib/2015-08-01/generated/azure_mgmt_service_bus/queues.rb#L1006-L1009
train
Gets the list of all the keys associated with the specified queue.
[ 30522, 13366, 2862, 1035, 6309, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 3415, 15327, 1035, 2171, 1010, 24240, 1035, 2171, 1010, 20104, 1035, 3627, 1035, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 2862, 1035, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
mongodb/mongo-ruby-driver
lib/mongo/collection.rb
Mongo.Collection.insert_many
def insert_many(documents, options = {}) inserts = documents.map{ |doc| { :insert_one => doc }} bulk_write(inserts, options) end
ruby
def insert_many(documents, options = {}) inserts = documents.map{ |doc| { :insert_one => doc }} bulk_write(inserts, options) end
[ "def", "insert_many", "(", "documents", ",", "options", "=", "{", "}", ")", "inserts", "=", "documents", ".", "map", "{", "|", "doc", "|", "{", ":insert_one", "=>", "doc", "}", "}", "bulk_write", "(", "inserts", ",", "options", ")", "end" ]
Insert the provided documents into the collection. @example Insert documents into the collection. collection.insert_many([{ name: 'test' }]) @param [ Array<Hash> ] documents The documents to insert. @param [ Hash ] options The insert options. @option options [ Session ] :session The session to use for the ope...
[ "Insert", "the", "provided", "documents", "into", "the", "collection", "." ]
dca26d0870cb3386fad9ccc1d17228097c1fe1c8
https://github.com/mongodb/mongo-ruby-driver/blob/dca26d0870cb3386fad9ccc1d17228097c1fe1c8/lib/mongo/collection.rb#L507-L510
train
Insert many documents into the database.
[ 30522, 13366, 19274, 1035, 2116, 1006, 5491, 1010, 7047, 1027, 1063, 1065, 1007, 19274, 2015, 1027, 5491, 1012, 4949, 1063, 1064, 9986, 1064, 1063, 1024, 19274, 1035, 2028, 1027, 1028, 9986, 1065, 1065, 9625, 1035, 4339, 1006, 19274, 2015, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
sds/overcommit
lib/overcommit/hook_signer.rb
Overcommit.HookSigner.signature
def signature hook_config = @config.for_hook(@hook_name, @context.hook_class_name). dup. tap { |config| IGNORED_CONFIG_KEYS.each { |k| config.delete(k) } } content_to_sign = if signable_file?(hook_path) && Overcommit::GitRepo.tracked?(hook_pat...
ruby
def signature hook_config = @config.for_hook(@hook_name, @context.hook_class_name). dup. tap { |config| IGNORED_CONFIG_KEYS.each { |k| config.delete(k) } } content_to_sign = if signable_file?(hook_path) && Overcommit::GitRepo.tracked?(hook_pat...
[ "def", "signature", "hook_config", "=", "@config", ".", "for_hook", "(", "@hook_name", ",", "@context", ".", "hook_class_name", ")", ".", "dup", ".", "tap", "{", "|", "config", "|", "IGNORED_CONFIG_KEYS", ".", "each", "{", "|", "k", "|", "config", ".", "...
Calculates a hash of a hook using a combination of its configuration and file contents. This way, if either the plugin code changes or its configuration changes, the hash will change and we can alert the user to this change.
[ "Calculates", "a", "hash", "of", "a", "hook", "using", "a", "combination", "of", "its", "configuration", "and", "file", "contents", "." ]
35d60adb41da942178b789560968e3ad030b0ac7
https://github.com/sds/overcommit/blob/35d60adb41da942178b789560968e3ad030b0ac7/lib/overcommit/hook_signer.rb#L87-L98
train
Returns the signature of the hook
[ 30522, 13366, 8085, 8103, 1035, 9530, 8873, 2290, 1027, 1030, 9530, 8873, 2290, 1012, 2005, 1035, 8103, 1006, 1030, 8103, 1035, 2171, 1010, 1030, 6123, 1012, 8103, 1035, 2465, 1035, 2171, 1007, 1012, 4241, 2361, 1012, 11112, 1063, 1064, 9...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
runtime/ms_rest_azure/lib/ms_rest_azure/azure_service_client.rb
MsRestAzure.AzureServiceClient.get_long_running_operation_result
def get_long_running_operation_result(azure_response, custom_deserialization_block, final_state_via = FinalStateVia::DEFAULT) check_for_status_code_failure(azure_response) http_method = azure_response.request.method polling_state = PollingState.new(azure_response, @long_running_operation_retry_timeo...
ruby
def get_long_running_operation_result(azure_response, custom_deserialization_block, final_state_via = FinalStateVia::DEFAULT) check_for_status_code_failure(azure_response) http_method = azure_response.request.method polling_state = PollingState.new(azure_response, @long_running_operation_retry_timeo...
[ "def", "get_long_running_operation_result", "(", "azure_response", ",", "custom_deserialization_block", ",", "final_state_via", "=", "FinalStateVia", "::", "DEFAULT", ")", "check_for_status_code_failure", "(", "azure_response", ")", "http_method", "=", "azure_response", ".", ...
Retrieves the result of 'POST','DELETE','PUT' or 'PATCH' operation. Performs polling of required. @param azure_response [MsRestAzure::AzureOperationResponse] response from Azure service. @param custom_deserialization_block [Proc] custom logic for response deserialization. @param final_state_via [MsRestAzure::FinalSt...
[ "Retrieves", "the", "result", "of", "POST", "DELETE", "PUT", "or", "PATCH", "operation", ".", "Performs", "polling", "of", "required", ".", "@param", "azure_response", "[", "MsRestAzure", "::", "AzureOperationResponse", "]", "response", "from", "Azure", "service",...
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/runtime/ms_rest_azure/lib/ms_rest_azure/azure_service_client.rb#L37-L116
train
Get long running operation result
[ 30522, 13366, 2131, 1035, 2146, 1035, 2770, 1035, 3169, 1035, 2765, 1006, 24296, 1035, 3433, 1010, 7661, 1035, 4078, 11610, 22731, 1035, 3796, 1010, 2345, 1035, 2110, 1035, 3081, 1027, 4399, 12259, 9035, 1024, 1024, 12398, 1007, 4638, 1035,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
data/azure_cognitiveservices_luisruntime/lib/2.0/generated/azure_cognitiveservices_luisruntime/prediction.rb
Azure::CognitiveServices::LuisRuntime::V2_0.Prediction.resolve
def resolve(app_id, query, timezone_offset:nil, verbose:nil, staging:nil, spell_check:nil, bing_spell_check_subscription_key:nil, log:nil, custom_headers:nil) response = resolve_async(app_id, query, timezone_offset:timezone_offset, verbose:verbose, staging:staging, spell_check:spell_check, bing_spell_check_subscr...
ruby
def resolve(app_id, query, timezone_offset:nil, verbose:nil, staging:nil, spell_check:nil, bing_spell_check_subscription_key:nil, log:nil, custom_headers:nil) response = resolve_async(app_id, query, timezone_offset:timezone_offset, verbose:verbose, staging:staging, spell_check:spell_check, bing_spell_check_subscr...
[ "def", "resolve", "(", "app_id", ",", "query", ",", "timezone_offset", ":", "nil", ",", "verbose", ":", "nil", ",", "staging", ":", "nil", ",", "spell_check", ":", "nil", ",", "bing_spell_check_subscription_key", ":", "nil", ",", "log", ":", "nil", ",", ...
Gets predictions for a given utterance, in the form of intents and entities. The current maximum query size is 500 characters. @param app_id The LUIS application ID (Guid). @param query [String] The utterance to predict. @param timezone_offset [Float] The timezone offset for the location of the request. @param v...
[ "Gets", "predictions", "for", "a", "given", "utterance", "in", "the", "form", "of", "intents", "and", "entities", ".", "The", "current", "maximum", "query", "size", "is", "500", "characters", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_cognitiveservices_luisruntime/lib/2.0/generated/azure_cognitiveservices_luisruntime/prediction.rb#L44-L47
train
Resolve an App Id Query to a list of documents.
[ 30522, 13366, 10663, 1006, 10439, 1035, 8909, 1010, 23032, 1010, 2051, 15975, 1035, 16396, 1024, 9152, 2140, 1010, 12034, 9232, 1024, 9152, 2140, 1010, 15308, 1024, 9152, 2140, 1010, 6297, 1035, 4638, 1024, 9152, 2140, 1010, 17620, 1035, 62...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_web/lib/2015-08-01/generated/azure_mgmt_web/app_service_certificate_orders.rb
Azure::Web::Mgmt::V2015_08_01.AppServiceCertificateOrders.update
def update(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers:nil) response = update_async(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def update(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers:nil) response = update_async(resource_group_name, certificate_order_name, certificate_distinguished_name, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "update", "(", "resource_group_name", ",", "certificate_order_name", ",", "certificate_distinguished_name", ",", "custom_headers", ":", "nil", ")", "response", "=", "update_async", "(", "resource_group_name", ",", "certificate_order_name", ",", "certificate_distingui...
Create or update a certificate purchase order. Create or update a certificate purchase order. @param resource_group_name [String] Name of the resource group to which the resource belongs. @param certificate_order_name [String] Name of the certificate order. @param certificate_distinguished_name [AppServiceCerti...
[ "Create", "or", "update", "a", "certificate", "purchase", "order", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_web/lib/2015-08-01/generated/azure_mgmt_web/app_service_certificate_orders.rb#L570-L573
train
Updates a certificate order certificate distinguished name.
[ 30522, 13366, 10651, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 8196, 1035, 2344, 1035, 2171, 1010, 8196, 1035, 5182, 1035, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 10651, 1035, 2004, 6038, 2278, 1006, 7692, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
randym/axlsx
lib/axlsx/workbook/worksheet/worksheet.rb
Axlsx.Worksheet.outline_level_columns
def outline_level_columns(start_index, end_index, level = 1, collapsed = true) outline column_info, (start_index..end_index), level, collapsed end
ruby
def outline_level_columns(start_index, end_index, level = 1, collapsed = true) outline column_info, (start_index..end_index), level, collapsed end
[ "def", "outline_level_columns", "(", "start_index", ",", "end_index", ",", "level", "=", "1", ",", "collapsed", "=", "true", ")", "outline", "column_info", ",", "(", "start_index", "..", "end_index", ")", ",", "level", ",", "collapsed", "end" ]
shortcut level to specify the outline level for a series of columns Oulining is what lets you add collapse and expand to a data set. @param [Integer] start_index The zero based index of the first column of outlining. @param [Integer] end_index The zero based index of the last column to be outlined @param [integer]...
[ "shortcut", "level", "to", "specify", "the", "outline", "level", "for", "a", "series", "of", "columns", "Oulining", "is", "what", "lets", "you", "add", "collapse", "and", "expand", "to", "a", "data", "set", "." ]
c593a08b2a929dac7aa8dc418b55e26b4c49dc34
https://github.com/randym/axlsx/blob/c593a08b2a929dac7aa8dc418b55e26b4c49dc34/lib/axlsx/workbook/worksheet/worksheet.rb#L637-L639
train
Returns the outline column_info for the specified range of columns
[ 30522, 13366, 12685, 1035, 2504, 1035, 7753, 1006, 2707, 1035, 5950, 1010, 2203, 1035, 5950, 1010, 2504, 1027, 1015, 1010, 7798, 1027, 2995, 1007, 12685, 5930, 1035, 18558, 1010, 1006, 2707, 1035, 5950, 1012, 1012, 2203, 1035, 5950, 1007, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_marketplace_ordering/lib/2015-06-01/generated/azure_mgmt_marketplace_ordering/marketplace_agreements.rb
Azure::MarketplaceOrdering::Mgmt::V2015_06_01.MarketplaceAgreements.create
def create(publisher_id, offer_id, plan_id, parameters, custom_headers:nil) response = create_async(publisher_id, offer_id, plan_id, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def create(publisher_id, offer_id, plan_id, parameters, custom_headers:nil) response = create_async(publisher_id, offer_id, plan_id, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "create", "(", "publisher_id", ",", "offer_id", ",", "plan_id", ",", "parameters", ",", "custom_headers", ":", "nil", ")", "response", "=", "create_async", "(", "publisher_id", ",", "offer_id", ",", "plan_id", ",", "parameters", ",", "custom_headers", "...
Save marketplace terms. @param publisher_id [String] Publisher identifier string of image being deployed. @param offer_id [String] Offer identifier string of image being deployed. @param plan_id [String] Plan identifier string of image being deployed. @param parameters [AgreementTerms] Parameters supplied to the ...
[ "Save", "marketplace", "terms", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_marketplace_ordering/lib/2015-06-01/generated/azure_mgmt_marketplace_ordering/marketplace_agreements.rb#L138-L141
train
Creates a new elastic search plan.
[ 30522, 13366, 3443, 1006, 6674, 1035, 8909, 1010, 3749, 1035, 8909, 1010, 2933, 1035, 8909, 1010, 11709, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 3443, 1035, 2004, 6038, 2278, 1006, 6674, 1035, 8909, 1010, 3749, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
rails/spring
lib/spring/json.rb
Spring.OkJson.encode
def encode(x) case x when Hash then objenc(x) when Array then arrenc(x) else raise Error, 'root value must be an Array or a Hash' end end
ruby
def encode(x) case x when Hash then objenc(x) when Array then arrenc(x) else raise Error, 'root value must be an Array or a Hash' end end
[ "def", "encode", "(", "x", ")", "case", "x", "when", "Hash", "then", "objenc", "(", "x", ")", "when", "Array", "then", "arrenc", "(", "x", ")", "else", "raise", "Error", ",", "'root value must be an Array or a Hash'", "end", "end" ]
Encodes x into a json text. It may contain only Array, Hash, String, Numeric, true, false, nil. (Note, this list excludes Symbol.) X itself must be an Array or a Hash. No other value can be encoded, and an error will be raised if x contains any other value, such as Nan, Infinity, Symbol, and Proc, or if a Hash ke...
[ "Encodes", "x", "into", "a", "json", "text", ".", "It", "may", "contain", "only", "Array", "Hash", "String", "Numeric", "true", "false", "nil", ".", "(", "Note", "this", "list", "excludes", "Symbol", ".", ")", "X", "itself", "must", "be", "an", "Array"...
e7a36afa436fcc59b6945f68dbc08f1076e65585
https://github.com/rails/spring/blob/e7a36afa436fcc59b6945f68dbc08f1076e65585/lib/spring/json.rb#L87-L94
train
Encode the given value to the root value.
[ 30522, 13366, 4372, 16044, 1006, 1060, 1007, 2553, 1060, 2043, 23325, 2059, 27885, 6460, 12273, 1006, 1060, 1007, 2043, 9140, 2059, 12098, 7389, 2278, 1006, 1060, 1007, 2842, 5333, 7561, 1010, 1005, 7117, 3643, 2442, 2022, 2019, 9140, 2030,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_compute/lib/2018-04-01/generated/azure_mgmt_compute/virtual_machine_extensions.rb
Azure::Compute::Mgmt::V2018_04_01.VirtualMachineExtensions.create_or_update
def create_or_update(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:nil) response = create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def create_or_update(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:nil) response = create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "create_or_update", "(", "resource_group_name", ",", "vm_name", ",", "vm_extension_name", ",", "extension_parameters", ",", "custom_headers", ":", "nil", ")", "response", "=", "create_or_update_async", "(", "resource_group_name", ",", "vm_name", ",", "vm_extensio...
The operation to create or update the extension. @param resource_group_name [String] The name of the resource group. @param vm_name [String] The name of the virtual machine where the extension should be created or updated. @param vm_extension_name [String] The name of the virtual machine extension. @param extensi...
[ "The", "operation", "to", "create", "or", "update", "the", "extension", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_compute/lib/2018-04-01/generated/azure_mgmt_compute/virtual_machine_extensions.rb#L38-L41
train
Creates or updates an extension.
[ 30522, 13366, 3443, 1035, 2030, 1035, 10651, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 1058, 2213, 1035, 2171, 1010, 1058, 2213, 1035, 30524, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 3443, 1035, 2030, 1035, 10651, 1035, 2004, 6038, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/notification_recipient_user.rb
Azure::ApiManagement::Mgmt::V2018_01_01.NotificationRecipientUser.delete_with_http_info
def delete_with_http_info(resource_group_name, service_name, notification_name, uid, custom_headers:nil) delete_async(resource_group_name, service_name, notification_name, uid, custom_headers:custom_headers).value! end
ruby
def delete_with_http_info(resource_group_name, service_name, notification_name, uid, custom_headers:nil) delete_async(resource_group_name, service_name, notification_name, uid, custom_headers:custom_headers).value! end
[ "def", "delete_with_http_info", "(", "resource_group_name", ",", "service_name", ",", "notification_name", ",", "uid", ",", "custom_headers", ":", "nil", ")", "delete_async", "(", "resource_group_name", ",", "service_name", ",", "notification_name", ",", "uid", ",", ...
Removes the API Management user from the list of Notification. @param resource_group_name [String] The name of the resource group. @param service_name [String] The name of the API Management service. @param notification_name [NotificationName] Notification Name Identifier. Possible values include: 'RequestPublishe...
[ "Removes", "the", "API", "Management", "user", "from", "the", "list", "of", "Notification", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/notification_recipient_user.rb#L422-L424
train
Deletes the notification from the notification group.
[ 30522, 13366, 3972, 12870, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 2326, 1035, 2171, 1010, 26828, 1035, 2171, 1010, 21318, 2094, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3972, 12870, 1035...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_policy_insights/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/remediations.rb
Azure::PolicyInsights::Mgmt::V2018_07_01_preview.Remediations.list_deployments_at_subscription_next
def list_deployments_at_subscription_next(next_page_link, custom_headers:nil) response = list_deployments_at_subscription_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def list_deployments_at_subscription_next(next_page_link, custom_headers:nil) response = list_deployments_at_subscription_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "list_deployments_at_subscription_next", "(", "next_page_link", ",", "custom_headers", ":", "nil", ")", "response", "=", "list_deployments_at_subscription_next_async", "(", "next_page_link", ",", "custom_headers", ":custom_headers", ")", ".", "value!", "response", "....
Gets all deployments for a remediation at subscription scope. @param next_page_link [String] The NextLink from the previous successful call to List operation. @param custom_headers [Hash{String => String}] A hash of custom headers that will be added to the HTTP request. @return [RemediationDeploymentsListResult]...
[ "Gets", "all", "deployments", "for", "a", "remediation", "at", "subscription", "scope", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_policy_insights/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/remediations.rb#L2533-L2536
train
Gets the list of deployments at subscription scope.
[ 30522, 13366, 2862, 1035, 10813, 2015, 1035, 2012, 1035, 15002, 1035, 2279, 1006, 2279, 1035, 3931, 1035, 4957, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 2862, 1035, 10813, 2015, 1035, 2012, 1035, 15002, 1035, 2279,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
data/azure_service_fabric/lib/6.2.0.9/generated/azure_service_fabric/service_fabric_client_apis.rb
Azure::ServiceFabric::V6_2_0_9.ServiceFabricClientAPIs.get_all_entities_backed_up_by_policy
def get_all_entities_backed_up_by_policy(backup_policy_name, continuation_token:nil, max_results:0, timeout:60, custom_headers:nil) response = get_all_entities_backed_up_by_policy_async(backup_policy_name, continuation_token:continuation_token, max_results:max_results, timeout:timeout, custom_headers:custom_heade...
ruby
def get_all_entities_backed_up_by_policy(backup_policy_name, continuation_token:nil, max_results:0, timeout:60, custom_headers:nil) response = get_all_entities_backed_up_by_policy_async(backup_policy_name, continuation_token:continuation_token, max_results:max_results, timeout:timeout, custom_headers:custom_heade...
[ "def", "get_all_entities_backed_up_by_policy", "(", "backup_policy_name", ",", "continuation_token", ":", "nil", ",", "max_results", ":", "0", ",", "timeout", ":", "60", ",", "custom_headers", ":", "nil", ")", "response", "=", "get_all_entities_backed_up_by_policy_async...
Gets the list of backup entities that are associated with this policy. Returns a list of Service Fabric application, service or partition which are associated with this backup policy. @param backup_policy_name [String] The name of the backup policy. @param continuation_token [String] The continuation token parame...
[ "Gets", "the", "list", "of", "backup", "entities", "that", "are", "associated", "with", "this", "policy", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_service_fabric/lib/6.2.0.9/generated/azure_service_fabric/service_fabric_client_apis.rb#L22699-L22702
train
Gets all entities backed up by backup policy.
[ 30522, 13366, 2131, 1035, 2035, 1035, 11422, 1035, 6153, 1035, 2039, 1035, 2011, 1035, 3343, 1006, 10200, 1035, 3343, 1035, 2171, 1010, 13633, 1035, 19204, 1024, 9152, 2140, 1010, 4098, 1035, 3463, 1024, 1014, 1010, 2051, 5833, 1024, 3438, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/agent_registration_information.rb
Azure::Automation::Mgmt::V2015_10_31.AgentRegistrationInformation.regenerate_key_with_http_info
def regenerate_key_with_http_info(resource_group_name, automation_account_name, parameters, custom_headers:nil) regenerate_key_async(resource_group_name, automation_account_name, parameters, custom_headers:custom_headers).value! end
ruby
def regenerate_key_with_http_info(resource_group_name, automation_account_name, parameters, custom_headers:nil) regenerate_key_async(resource_group_name, automation_account_name, parameters, custom_headers:custom_headers).value! end
[ "def", "regenerate_key_with_http_info", "(", "resource_group_name", ",", "automation_account_name", ",", "parameters", ",", "custom_headers", ":", "nil", ")", "regenerate_key_async", "(", "resource_group_name", ",", "automation_account_name", ",", "parameters", ",", "custom...
Regenerate a primary or secondary agent registration key @param resource_group_name [String] Name of an Azure Resource group. @param automation_account_name [String] The name of the automation account. @param parameters [AgentRegistrationRegenerateKeyParameter] The name of the agent registration key to be regenera...
[ "Regenerate", "a", "primary", "or", "secondary", "agent", "registration", "key" ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/agent_registration_information.rb#L148-L150
train
Regenerate the key for the specified automation account.
[ 30522, 13366, 19723, 24454, 3686, 1035, 3145, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 19309, 1035, 4070, 1035, 2171, 1010, 11709, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 19723, 24454, 36...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_compute/lib/2019-03-01/generated/azure_mgmt_compute/galleries.rb
Azure::Compute::Mgmt::V2019_03_01.Galleries.create_or_update
def create_or_update(resource_group_name, gallery_name, gallery, custom_headers:nil) response = create_or_update_async(resource_group_name, gallery_name, gallery, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def create_or_update(resource_group_name, gallery_name, gallery, custom_headers:nil) response = create_or_update_async(resource_group_name, gallery_name, gallery, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "create_or_update", "(", "resource_group_name", ",", "gallery_name", ",", "gallery", ",", "custom_headers", ":", "nil", ")", "response", "=", "create_or_update_async", "(", "resource_group_name", ",", "gallery_name", ",", "gallery", ",", "custom_headers", ":cus...
Create or update a Shared Image Gallery. @param resource_group_name [String] The name of the resource group. @param gallery_name [String] The name of the Shared Image Gallery. The allowed characters are alphabets and numbers with dots and periods allowed in the middle. The maximum length is 80 characters. @param ...
[ "Create", "or", "update", "a", "Shared", "Image", "Gallery", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_compute/lib/2019-03-01/generated/azure_mgmt_compute/galleries.rb#L38-L41
train
Creates or updates a gallery.
[ 30522, 13366, 3443, 1035, 2030, 1035, 10651, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 3916, 1035, 2171, 1010, 3916, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 3443, 1035, 2030, 1035, 10651, 1035, 2004, 6038, 2278, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
rails/rails
actionpack/lib/action_controller/metal/conditional_get.rb
ActionController.ConditionalGet.http_cache_forever
def http_cache_forever(public: false) expires_in 100.years, public: public yield if stale?(etag: request.fullpath, last_modified: Time.new(2011, 1, 1).utc, public: public) end
ruby
def http_cache_forever(public: false) expires_in 100.years, public: public yield if stale?(etag: request.fullpath, last_modified: Time.new(2011, 1, 1).utc, public: public) end
[ "def", "http_cache_forever", "(", "public", ":", "false", ")", "expires_in", "100", ".", "years", ",", "public", ":", "public", "yield", "if", "stale?", "(", "etag", ":", "request", ".", "fullpath", ",", "last_modified", ":", "Time", ".", "new", "(", "20...
Cache or yield the block. The cache is supposed to never expire. You can use this method when you have an HTTP response that never changes, and the browser and proxies should cache it indefinitely. * +public+: By default, HTTP responses are private, cached only on the user's web browser. To allow proxies to cac...
[ "Cache", "or", "yield", "the", "block", ".", "The", "cache", "is", "supposed", "to", "never", "expire", "." ]
85a8bc644be69908f05740a5886ec19cd3679df5
https://github.com/rails/rails/blob/85a8bc644be69908f05740a5886ec19cd3679df5/actionpack/lib/action_controller/metal/conditional_get.rb#L267-L273
train
Returns a block that yields if the request is stale.
[ 30522, 13366, 8299, 1035, 17053, 1035, 5091, 1006, 2270, 1024, 6270, 1007, 4654, 20781, 2015, 1035, 1999, 2531, 1012, 2086, 1010, 2270, 1024, 2270, 10750, 2065, 26729, 1029, 1006, 27859, 2290, 1024, 5227, 1012, 2440, 15069, 1010, 2197, 1035...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
haml/haml
lib/haml/engine.rb
Haml.Engine.render_proc
def render_proc(scope = Object.new, *local_names) if scope.is_a?(Binding) scope_object = eval("self", scope) else scope_object = scope scope = scope_object.instance_eval{binding} end begin str = @temple_engine.precompiled_with_ambles(local_names) eval( ...
ruby
def render_proc(scope = Object.new, *local_names) if scope.is_a?(Binding) scope_object = eval("self", scope) else scope_object = scope scope = scope_object.instance_eval{binding} end begin str = @temple_engine.precompiled_with_ambles(local_names) eval( ...
[ "def", "render_proc", "(", "scope", "=", "Object", ".", "new", ",", "*", "local_names", ")", "if", "scope", ".", "is_a?", "(", "Binding", ")", "scope_object", "=", "eval", "(", "\"self\"", ",", "scope", ")", "else", "scope_object", "=", "scope", "scope",...
Returns a proc that, when called, renders the template and returns the result as a string. `scope` works the same as it does for render. The first argument of the returned proc is a hash of local variable names to values. However, due to an unfortunate Ruby quirk, the local variables which can be assigned must b...
[ "Returns", "a", "proc", "that", "when", "called", "renders", "the", "template", "and", "returns", "the", "result", "as", "a", "string", "." ]
9aa0fbe4a91b999978927be569d2ad0cd39076f1
https://github.com/haml/haml/blob/9aa0fbe4a91b999978927be569d2ad0cd39076f1/lib/haml/engine.rb#L163-L182
train
Returns a Proc object for rendering the template.
[ 30522, 13366, 17552, 1035, 4013, 2278, 1006, 9531, 1027, 4874, 1012, 2047, 1010, 1008, 2334, 1035, 3415, 1007, 2065, 9531, 1012, 2003, 1035, 1037, 1029, 1006, 8031, 1007, 9531, 1035, 4874, 1027, 9345, 2140, 1006, 1000, 2969, 1000, 1010, 9...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
randym/axlsx
lib/axlsx/workbook/worksheet/cell.rb
Axlsx.Cell.cell_type_from_value
def cell_type_from_value(v) if v.is_a?(Date) :date elsif v.is_a?(Time) :time elsif v.is_a?(TrueClass) || v.is_a?(FalseClass) :boolean elsif v.to_s =~ Axlsx::NUMERIC_REGEX :integer elsif v.to_s =~ Axlsx::FLOAT_REGEX :float elsif v.to_s =~ Axlsx:...
ruby
def cell_type_from_value(v) if v.is_a?(Date) :date elsif v.is_a?(Time) :time elsif v.is_a?(TrueClass) || v.is_a?(FalseClass) :boolean elsif v.to_s =~ Axlsx::NUMERIC_REGEX :integer elsif v.to_s =~ Axlsx::FLOAT_REGEX :float elsif v.to_s =~ Axlsx:...
[ "def", "cell_type_from_value", "(", "v", ")", "if", "v", ".", "is_a?", "(", "Date", ")", ":date", "elsif", "v", ".", "is_a?", "(", "Time", ")", ":time", "elsif", "v", ".", "is_a?", "(", "TrueClass", ")", "||", "v", ".", "is_a?", "(", "FalseClass", ...
Determines the cell type based on the cell value. @note This is only used when a cell is created but no :type option is specified, the following rules apply: 1. If the value is an instance of Date, the type is set to :date 2. If the value is an instance of Time, the type is set to :time 3. If the value is an ...
[ "Determines", "the", "cell", "type", "based", "on", "the", "cell", "value", "." ]
c593a08b2a929dac7aa8dc418b55e26b4c49dc34
https://github.com/randym/axlsx/blob/c593a08b2a929dac7aa8dc418b55e26b4c49dc34/lib/axlsx/workbook/worksheet/cell.rb#L426-L444
train
Returns cell type from cell value
[ 30522, 13366, 3526, 1035, 2828, 1035, 2013, 1035, 3643, 1006, 1058, 1007, 2065, 1058, 1012, 2003, 1035, 1037, 1029, 1006, 3058, 1007, 1024, 3058, 3449, 5332, 2546, 1058, 1012, 2003, 1035, 1037, 1029, 1006, 2051, 1007, 1024, 2051, 3449, 53...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_event_grid/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/topics.rb
Azure::EventGrid::Mgmt::V2019_02_01_preview.Topics.regenerate_key_with_http_info
def regenerate_key_with_http_info(resource_group_name, topic_name, regenerate_key_request, custom_headers:nil) regenerate_key_async(resource_group_name, topic_name, regenerate_key_request, custom_headers:custom_headers).value! end
ruby
def regenerate_key_with_http_info(resource_group_name, topic_name, regenerate_key_request, custom_headers:nil) regenerate_key_async(resource_group_name, topic_name, regenerate_key_request, custom_headers:custom_headers).value! end
[ "def", "regenerate_key_with_http_info", "(", "resource_group_name", ",", "topic_name", ",", "regenerate_key_request", ",", "custom_headers", ":", "nil", ")", "regenerate_key_async", "(", "resource_group_name", ",", "topic_name", ",", "regenerate_key_request", ",", "custom_h...
Regenerate key for a topic Regenerate a shared access key for a topic @param resource_group_name [String] The name of the resource group within the user's subscription. @param topic_name [String] Name of the topic @param regenerate_key_request [TopicRegenerateKeyRequest] Request body to regenerate key @param c...
[ "Regenerate", "key", "for", "a", "topic" ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_event_grid/lib/2019-02-01-preview/generated/azure_mgmt_event_grid/topics.rb#L600-L602
train
Regenerate the key for the specified topic.
[ 30522, 13366, 19723, 24454, 3686, 1035, 3145, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 8476, 1035, 2171, 1010, 19723, 24454, 3686, 1035, 3145, 1035, 5227, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/product_apis.rb
Azure::ApiManagement::Mgmt::V2016_10_10.ProductApis.list_by_products_with_http_info
def list_by_products_with_http_info(resource_group_name, service_name, product_id, filter:nil, top:nil, skip:nil, custom_headers:nil) list_by_products_async(resource_group_name, service_name, product_id, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! end
ruby
def list_by_products_with_http_info(resource_group_name, service_name, product_id, filter:nil, top:nil, skip:nil, custom_headers:nil) list_by_products_async(resource_group_name, service_name, product_id, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! end
[ "def", "list_by_products_with_http_info", "(", "resource_group_name", ",", "service_name", ",", "product_id", ",", "filter", ":", "nil", ",", "top", ":", "nil", ",", "skip", ":", "nil", ",", "custom_headers", ":", "nil", ")", "list_by_products_async", "(", "reso...
Lists a collection of the APIs associated with a product. @param resource_group_name [String] The name of the resource group. @param service_name [String] The name of the API Management service. @param product_id [String] Product identifier. Must be unique in the current API Management service instance. @param fi...
[ "Lists", "a", "collection", "of", "the", "APIs", "associated", "with", "a", "product", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/product_apis.rb#L85-L87
train
Gets the list of product vectors.
[ 30522, 13366, 2862, 1035, 2011, 1035, 3688, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 2326, 1035, 2171, 1010, 4031, 1035, 8909, 1010, 11307, 1024, 9152, 2140, 1010, 2327, 1024, 9152, 2140, 1010, 13558, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
plum-umd/rdl
lib/rdl/typecheck.rb
RDL::Typecheck.Env.merge
def merge(other) result = Env.new result.env = @env.merge(other.env) return result end
ruby
def merge(other) result = Env.new result.env = @env.merge(other.env) return result end
[ "def", "merge", "(", "other", ")", "result", "=", "Env", ".", "new", "result", ".", "env", "=", "@env", ".", "merge", "(", "other", ".", "env", ")", "return", "result", "end" ]
merges bindings in self with bindings in other, preferring bindings in other if there is a common key
[ "merges", "bindings", "in", "self", "with", "bindings", "in", "other", "preferring", "bindings", "in", "other", "if", "there", "is", "a", "common", "key" ]
c00134413f7a600fd395e7e7cd8b01f57f850830
https://github.com/plum-umd/rdl/blob/c00134413f7a600fd395e7e7cd8b01f57f850830/lib/rdl/typecheck.rb#L97-L101
train
Merge two Env objects together.
[ 30522, 13366, 13590, 1006, 2060, 1007, 2765, 1027, 4372, 2615, 1012, 2047, 2765, 1012, 4372, 2615, 1027, 1030, 4372, 2615, 1012, 13590, 1006, 2060, 1012, 4372, 2615, 1007, 2709, 2765, 2203, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_compute/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machines.rb
Azure::Compute::Mgmt::V2016_04_30_preview.VirtualMachines.begin_capture
def begin_capture(resource_group_name, vm_name, parameters, custom_headers:nil) response = begin_capture_async(resource_group_name, vm_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def begin_capture(resource_group_name, vm_name, parameters, custom_headers:nil) response = begin_capture_async(resource_group_name, vm_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "begin_capture", "(", "resource_group_name", ",", "vm_name", ",", "parameters", ",", "custom_headers", ":", "nil", ")", "response", "=", "begin_capture_async", "(", "resource_group_name", ",", "vm_name", ",", "parameters", ",", "custom_headers", ":custom_header...
Captures the VM by copying virtual hard disks of the VM and outputs a template that can be used to create similar VMs. @param resource_group_name [String] The name of the resource group. @param vm_name [String] The name of the virtual machine. @param parameters [VirtualMachineCaptureParameters] Parameters supplied...
[ "Captures", "the", "VM", "by", "copying", "virtual", "hard", "disks", "of", "the", "VM", "and", "outputs", "a", "template", "that", "can", "be", "used", "to", "create", "similar", "VMs", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_compute/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machines.rb#L992-L995
train
Capture virtual machine.
[ 30522, 13366, 4088, 1035, 5425, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 1058, 2213, 1035, 2171, 1010, 11709, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 4088, 1035, 5425, 1035, 2004, 6038, 2278, 1006, 7692, 1035, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
JsonApiClient/json_api_client
lib/json_api_client/connection.rb
JsonApiClient.Connection.use
def use(middleware, *args, &block) return if faraday.builder.locked? faraday.builder.insert_before(Middleware::ParseJson, middleware, *args, &block) end
ruby
def use(middleware, *args, &block) return if faraday.builder.locked? faraday.builder.insert_before(Middleware::ParseJson, middleware, *args, &block) end
[ "def", "use", "(", "middleware", ",", "*", "args", ",", "&", "block", ")", "return", "if", "faraday", ".", "builder", ".", "locked?", "faraday", ".", "builder", ".", "insert_before", "(", "Middleware", "::", "ParseJson", ",", "middleware", ",", "args", "...
insert middleware before ParseJson - middleware executed in reverse order - inserted middleware will run after json parsed
[ "insert", "middleware", "before", "ParseJson", "-", "middleware", "executed", "in", "reverse", "order", "-", "inserted", "middleware", "will", "run", "after", "json", "parsed" ]
e4b763f5579c4fae4b03dcc935b20627f5c14eaa
https://github.com/JsonApiClient/json_api_client/blob/e4b763f5579c4fae4b03dcc935b20627f5c14eaa/lib/json_api_client/connection.rb#L24-L27
train
Use middleware to be used in the middleware chain
[ 30522, 13366, 2224, 1006, 2690, 8059, 1010, 1008, 12098, 5620, 1010, 1004, 3796, 1007, 2709, 2065, 2521, 28039, 1012, 12508, 1012, 5299, 1029, 2521, 28039, 1012, 12508, 1012, 19274, 1035, 2077, 1006, 2690, 8059, 1024, 1024, 11968, 3366, 225...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_network/lib/2018-07-01/generated/azure_mgmt_network/route_filters.rb
Azure::Network::Mgmt::V2018_07_01.RouteFilters.update
def update(resource_group_name, route_filter_name, route_filter_parameters, custom_headers:nil) response = update_async(resource_group_name, route_filter_name, route_filter_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def update(resource_group_name, route_filter_name, route_filter_parameters, custom_headers:nil) response = update_async(resource_group_name, route_filter_name, route_filter_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "update", "(", "resource_group_name", ",", "route_filter_name", ",", "route_filter_parameters", ",", "custom_headers", ":", "nil", ")", "response", "=", "update_async", "(", "resource_group_name", ",", "route_filter_name", ",", "route_filter_parameters", ",", "cu...
Updates a route filter in a specified resource group. @param resource_group_name [String] The name of the resource group. @param route_filter_name [String] The name of the route filter. @param route_filter_parameters [PatchRouteFilter] Parameters supplied to the update route filter operation. @param custom_header...
[ "Updates", "a", "route", "filter", "in", "a", "specified", "resource", "group", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_network/lib/2018-07-01/generated/azure_mgmt_network/route_filters.rb#L218-L221
train
Updates a route filter.
[ 30522, 13366, 10651, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 2799, 1035, 11307, 1035, 2171, 1010, 2799, 1035, 11307, 1035, 11709, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 10651, 1035, 2004, 6038, 2278, 1006, 7692...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
randym/axlsx
lib/axlsx/drawing/scatter_series.rb
Axlsx.ScatterSeries.to_xml_string
def to_xml_string(str = '') super(str) do # needs to override the super color here to push in ln/and something else! if color str << '<c:spPr><a:solidFill>' str << ('<a:srgbClr val="' << color << '"/>') str << '</a:solidFill>' str << '<a:ln><a:solidFill>' ...
ruby
def to_xml_string(str = '') super(str) do # needs to override the super color here to push in ln/and something else! if color str << '<c:spPr><a:solidFill>' str << ('<a:srgbClr val="' << color << '"/>') str << '</a:solidFill>' str << '<a:ln><a:solidFill>' ...
[ "def", "to_xml_string", "(", "str", "=", "''", ")", "super", "(", "str", ")", "do", "# needs to override the super color here to push in ln/and something else!", "if", "color", "str", "<<", "'<c:spPr><a:solidFill>'", "str", "<<", "(", "'<a:srgbClr val=\"'", "<<", "color...
Serializes the object @param [String] str @return [String]
[ "Serializes", "the", "object" ]
c593a08b2a929dac7aa8dc418b55e26b4c49dc34
https://github.com/randym/axlsx/blob/c593a08b2a929dac7aa8dc418b55e26b4c49dc34/lib/axlsx/drawing/scatter_series.rb#L67-L96
train
Returns the XML string for this object.
[ 30522, 13366, 2000, 1035, 20950, 1035, 5164, 1006, 2358, 2099, 1027, 1005, 1005, 1007, 3565, 1006, 2358, 2099, 1007, 2079, 1001, 3791, 2000, 2058, 15637, 1996, 3565, 3609, 2182, 2000, 5245, 1999, 1048, 2078, 1013, 1998, 2242, 2842, 999, 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_web/lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb
Azure::Web::Mgmt::V2018_02_01.Diagnostics.get_site_diagnostic_category_slot
def get_site_diagnostic_category_slot(resource_group_name, site_name, diagnostic_category, slot, custom_headers:nil) response = get_site_diagnostic_category_slot_async(resource_group_name, site_name, diagnostic_category, slot, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def get_site_diagnostic_category_slot(resource_group_name, site_name, diagnostic_category, slot, custom_headers:nil) response = get_site_diagnostic_category_slot_async(resource_group_name, site_name, diagnostic_category, slot, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "get_site_diagnostic_category_slot", "(", "resource_group_name", ",", "site_name", ",", "diagnostic_category", ",", "slot", ",", "custom_headers", ":", "nil", ")", "response", "=", "get_site_diagnostic_category_slot_async", "(", "resource_group_name", ",", "site_name...
Get Diagnostics Category Get Diagnostics Category @param resource_group_name [String] Name of the resource group to which the resource belongs. @param site_name [String] Site Name @param diagnostic_category [String] Diagnostic Category @param slot [String] Slot Name @param custom_headers [Hash{String => String...
[ "Get", "Diagnostics", "Category" ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_web/lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb#L1717-L1720
train
Gets the diagnostic category for a site.
[ 30522, 13366, 2131, 1035, 2609, 1035, 16474, 1035, 4696, 1035, 10453, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 2609, 1035, 2171, 1010, 16474, 1035, 4696, 1010, 10453, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 2131,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_machine_learning/lib/2017-01-01/generated/azure_mgmt_machine_learning/web_services.rb
Azure::MachineLearning::Mgmt::V2017_01_01.WebServices.begin_create_regional_properties_with_http_info
def begin_create_regional_properties_with_http_info(resource_group_name, web_service_name, region, custom_headers:nil) begin_create_regional_properties_async(resource_group_name, web_service_name, region, custom_headers:custom_headers).value! end
ruby
def begin_create_regional_properties_with_http_info(resource_group_name, web_service_name, region, custom_headers:nil) begin_create_regional_properties_async(resource_group_name, web_service_name, region, custom_headers:custom_headers).value! end
[ "def", "begin_create_regional_properties_with_http_info", "(", "resource_group_name", ",", "web_service_name", ",", "region", ",", "custom_headers", ":", "nil", ")", "begin_create_regional_properties_async", "(", "resource_group_name", ",", "web_service_name", ",", "region", ...
Creates an encrypted credentials parameter blob for the specified region. To get the web service from a region other than the region in which it has been created, you must first call Create Regional Web Services Properties to create a copy of the encrypted credential parameter blob in that region. You only need to ...
[ "Creates", "an", "encrypted", "credentials", "parameter", "blob", "for", "the", "specified", "region", ".", "To", "get", "the", "web", "service", "from", "a", "region", "other", "than", "the", "region", "in", "which", "it", "has", "been", "created", "you", ...
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_machine_learning/lib/2017-01-01/generated/azure_mgmt_machine_learning/web_services.rb#L977-L979
train
Creates a regional properties for the specified web service.
[ 30522, 13366, 4088, 1035, 3443, 1035, 3164, 1035, 5144, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 4773, 1035, 2326, 1035, 2171, 1010, 2555, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 4088, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_search/lib/2015-08-19/generated/azure_mgmt_search/query_keys.rb
Azure::Search::Mgmt::V2015_08_19.QueryKeys.list_by_search_service
def list_by_search_service(resource_group_name, search_service_name, search_management_request_options:nil, custom_headers:nil) response = list_by_search_service_async(resource_group_name, search_service_name, search_management_request_options:search_management_request_options, custom_headers:custom_headers).valu...
ruby
def list_by_search_service(resource_group_name, search_service_name, search_management_request_options:nil, custom_headers:nil) response = list_by_search_service_async(resource_group_name, search_service_name, search_management_request_options:search_management_request_options, custom_headers:custom_headers).valu...
[ "def", "list_by_search_service", "(", "resource_group_name", ",", "search_service_name", ",", "search_management_request_options", ":", "nil", ",", "custom_headers", ":", "nil", ")", "response", "=", "list_by_search_service_async", "(", "resource_group_name", ",", "search_s...
Returns the list of query API keys for the given Azure Search service. @param resource_group_name [String] The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal. @param search_service_name [String] The name of the Azure Search se...
[ "Returns", "the", "list", "of", "query", "API", "keys", "for", "the", "given", "Azure", "Search", "service", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_search/lib/2015-08-19/generated/azure_mgmt_search/query_keys.rb#L158-L161
train
Gets the list of all the available advisors.
[ 30522, 13366, 2862, 1035, 2011, 1035, 3945, 1035, 2326, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 3945, 1035, 2326, 1035, 2171, 1010, 3945, 1035, 2968, 1035, 5227, 1035, 7047, 1024, 9152, 2140, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
fastlane/fastlane
sigh/lib/sigh/download_all.rb
Sigh.DownloadAll.download_all
def download_all(download_xcode_profiles: false) UI.message("Starting login with user '#{Sigh.config[:username]}'") Spaceship.login(Sigh.config[:username], nil) Spaceship.select_team UI.message("Successfully logged in") Spaceship.provisioning_profile.all(xcode: download_xcode_profiles).ea...
ruby
def download_all(download_xcode_profiles: false) UI.message("Starting login with user '#{Sigh.config[:username]}'") Spaceship.login(Sigh.config[:username], nil) Spaceship.select_team UI.message("Successfully logged in") Spaceship.provisioning_profile.all(xcode: download_xcode_profiles).ea...
[ "def", "download_all", "(", "download_xcode_profiles", ":", "false", ")", "UI", ".", "message", "(", "\"Starting login with user '#{Sigh.config[:username]}'\"", ")", "Spaceship", ".", "login", "(", "Sigh", ".", "config", "[", ":username", "]", ",", "nil", ")", "Sp...
Download all valid provisioning profiles
[ "Download", "all", "valid", "provisioning", "profiles" ]
457c5d647c77f0e078dafa5129da616914e002c5
https://github.com/fastlane/fastlane/blob/457c5d647c77f0e078dafa5129da616914e002c5/sigh/lib/sigh/download_all.rb#L9-L29
train
Downloads all Xcode managed provisioning profiles
[ 30522, 13366, 8816, 1035, 2035, 1006, 8816, 1035, 1060, 16044, 1035, 17879, 1024, 6270, 1007, 21318, 1012, 4471, 1006, 1000, 3225, 8833, 2378, 2007, 5310, 1005, 1001, 1063, 6682, 1012, 9530, 8873, 2290, 1031, 1024, 5310, 18442, 1033, 1065, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
rails/sprockets
lib/sprockets/uri_utils.rb
Sprockets.URIUtils.join_uri
def join_uri(scheme, userinfo, host, port, registry, path, opaque, query, fragment) URI::Generic.new(scheme, userinfo, host, port, registry, path, opaque, query, fragment).to_s end
ruby
def join_uri(scheme, userinfo, host, port, registry, path, opaque, query, fragment) URI::Generic.new(scheme, userinfo, host, port, registry, path, opaque, query, fragment).to_s end
[ "def", "join_uri", "(", "scheme", ",", "userinfo", ",", "host", ",", "port", ",", "registry", ",", "path", ",", "opaque", ",", "query", ",", "fragment", ")", "URI", "::", "Generic", ".", "new", "(", "scheme", ",", "userinfo", ",", "host", ",", "port"...
Internal: Join URI component parts into String. Returns String.
[ "Internal", ":", "Join", "URI", "component", "parts", "into", "String", "." ]
9e3f0d8e98c44f57e67bc138db87bb8469bf5ddd
https://github.com/rails/sprockets/blob/9e3f0d8e98c44f57e67bc138db87bb8469bf5ddd/lib/sprockets/uri_utils.rb#L36-L38
train
Returns a new URI object with the given parameters joined with the given parameters.
[ 30522, 13366, 3693, 1035, 24471, 2072, 1006, 5679, 1010, 5310, 2378, 14876, 1010, 3677, 1010, 3417, 1010, 15584, 1010, 4130, 1010, 28670, 1010, 23032, 1010, 15778, 1007, 24471, 2072, 1024, 1024, 12391, 1012, 2047, 1006, 5679, 1010, 5310, 23...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
thoughtbot/high_voltage
lib/high_voltage/page_finder.rb
HighVoltage.PageFinder.find
def find path = clean_content_pathname.join(page_id.tr("\\", "/")).cleanpath.to_s if !path.start_with?("#{clean_content_pathname}/") raise InvalidPageIdError.new "Invalid page id: #{page_id}" end path rescue ArgumentError raise InvalidPageIdError.new "Invalid page id: #{page_id...
ruby
def find path = clean_content_pathname.join(page_id.tr("\\", "/")).cleanpath.to_s if !path.start_with?("#{clean_content_pathname}/") raise InvalidPageIdError.new "Invalid page id: #{page_id}" end path rescue ArgumentError raise InvalidPageIdError.new "Invalid page id: #{page_id...
[ "def", "find", "path", "=", "clean_content_pathname", ".", "join", "(", "page_id", ".", "tr", "(", "\"\\\\\"", ",", "\"/\"", ")", ")", ".", "cleanpath", ".", "to_s", "if", "!", "path", ".", "start_with?", "(", "\"#{clean_content_pathname}/\"", ")", "raise", ...
Produce a template path to the page, in a format understood by `render :template => find`
[ "Produce", "a", "template", "path", "to", "the", "page", "in", "a", "format", "understood", "by", "render", ":", "template", "=", ">", "find" ]
c103df84316297f3cdb6a064ad7ebb47a4b3b35a
https://github.com/thoughtbot/high_voltage/blob/c103df84316297f3cdb6a064ad7ebb47a4b3b35a/lib/high_voltage/page_finder.rb#L11-L19
train
Find the correct index for the given page id.
[ 30522, 13366, 2424, 4130, 1027, 4550, 1035, 4180, 1035, 4130, 18442, 1012, 3693, 1006, 3931, 1035, 8909, 1012, 19817, 1006, 1000, 1032, 1032, 1000, 1010, 1000, 1013, 1000, 1007, 1007, 1012, 4550, 15069, 1012, 2000, 1035, 1055, 2065, 999, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_consumption/lib/2018-03-31/generated/azure_mgmt_consumption/get_balances_by_billing_account.rb
Azure::Consumption::Mgmt::V2018_03_31.GetBalancesByBillingAccount.by_billing_period
def by_billing_period(billing_account_id, billing_period_name, custom_headers:nil) response = by_billing_period_async(billing_account_id, billing_period_name, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def by_billing_period(billing_account_id, billing_period_name, custom_headers:nil) response = by_billing_period_async(billing_account_id, billing_period_name, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "by_billing_period", "(", "billing_account_id", ",", "billing_period_name", ",", "custom_headers", ":", "nil", ")", "response", "=", "by_billing_period_async", "(", "billing_account_id", ",", "billing_period_name", ",", "custom_headers", ":custom_headers", ")", "."...
Gets the balances for a scope by billing period and billingAccountId. Balances are available via this API only for May 1, 2014 or later. @param billing_account_id [String] BillingAccount ID @param billing_period_name [String] Billing Period Name. @param custom_headers [Hash{String => String}] A hash of custom head...
[ "Gets", "the", "balances", "for", "a", "scope", "by", "billing", "period", "and", "billingAccountId", ".", "Balances", "are", "available", "via", "this", "API", "only", "for", "May", "1", "2014", "or", "later", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_consumption/lib/2018-03-31/generated/azure_mgmt_consumption/get_balances_by_billing_account.rb#L36-L39
train
Gets the list of all the available ad hoc terms.
[ 30522, 13366, 2011, 1035, 25640, 1035, 2558, 1006, 25640, 1035, 4070, 1035, 8909, 1010, 25640, 1035, 2558, 1035, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 2011, 1035, 25640, 1035, 2558, 1035, 2004, 6038, 2278,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
lostisland/faraday
lib/faraday/request.rb
Faraday.Request.marshal_dump
def marshal_dump { method: method, body: body, headers: headers, path: path, params: params, options: options } end
ruby
def marshal_dump { method: method, body: body, headers: headers, path: path, params: params, options: options } end
[ "def", "marshal_dump", "{", "method", ":", "method", ",", "body", ":", "body", ",", "headers", ":", "headers", ",", "path", ":", "path", ",", "params", ":", "params", ",", "options", ":", "options", "}", "end" ]
Marshal serialization support. @return [Hash] the hash ready to be serialized in Marshal.
[ "Marshal", "serialization", "support", "." ]
3abe9d1eea4bdf61cdf7b76ff9f1ae7e09482e70
https://github.com/lostisland/faraday/blob/3abe9d1eea4bdf61cdf7b76ff9f1ae7e09482e70/lib/faraday/request.rb#L117-L126
train
Marshal the object for a SearchResult object
[ 30522, 13366, 8610, 1035, 15653, 1063, 4118, 1024, 4118, 1010, 2303, 1024, 2303, 1010, 20346, 2015, 1024, 20346, 2015, 1010, 4130, 1024, 4130, 1010, 11498, 5244, 1024, 11498, 5244, 1010, 7047, 1024, 7047, 1065, 2203, 102, 0, 0, 0, 0, 0,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
square/connect-ruby-sdk
lib/square_connect/models/inventory_adjustment.rb
SquareConnect.InventoryAdjustment.from_state=
def from_state=(from_state) validator = EnumAttributeValidator.new('String', ["CUSTOM", "IN_STOCK", "SOLD", "RETURNED_BY_CUSTOMER", "RESERVED_FOR_SALE", "SOLD_ONLINE", "ORDERED_FROM_VENDOR", "RECEIVED_FROM_VENDOR", "IN_TRANSIT_TO", "NONE", "WASTE", "UNLINKED_RETURN"]) unless validator.valid?(from_state) ...
ruby
def from_state=(from_state) validator = EnumAttributeValidator.new('String', ["CUSTOM", "IN_STOCK", "SOLD", "RETURNED_BY_CUSTOMER", "RESERVED_FOR_SALE", "SOLD_ONLINE", "ORDERED_FROM_VENDOR", "RECEIVED_FROM_VENDOR", "IN_TRANSIT_TO", "NONE", "WASTE", "UNLINKED_RETURN"]) unless validator.valid?(from_state) ...
[ "def", "from_state", "=", "(", "from_state", ")", "validator", "=", "EnumAttributeValidator", ".", "new", "(", "'String'", ",", "[", "\"CUSTOM\"", ",", "\"IN_STOCK\"", ",", "\"SOLD\"", ",", "\"RETURNED_BY_CUSTOMER\"", ",", "\"RESERVED_FOR_SALE\"", ",", "\"SOLD_ONLIN...
Custom attribute writer method checking allowed values (enum). @param [Object] from_state Object to be assigned
[ "Custom", "attribute", "writer", "method", "checking", "allowed", "values", "(", "enum", ")", "." ]
798eb9ded716f23b9f1518386f1c311a34bca8bf
https://github.com/square/connect-ruby-sdk/blob/798eb9ded716f23b9f1518386f1c311a34bca8bf/lib/square_connect/models/inventory_adjustment.rb#L231-L237
train
Set the from_state of the record.
[ 30522, 13366, 2013, 1035, 2110, 1027, 1006, 2013, 1035, 2110, 1007, 9398, 8844, 1027, 4372, 12248, 4779, 3089, 8569, 2618, 10175, 8524, 4263, 1012, 2047, 1006, 1005, 5164, 1005, 1010, 1031, 1000, 7661, 1000, 1010, 1000, 1999, 1035, 4518, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
data/azure_service_fabric/lib/6.2.0.9/generated/azure_service_fabric/service_fabric_client_apis.rb
Azure::ServiceFabric::V6_2_0_9.ServiceFabricClientAPIs.update_cluster_upgrade
def update_cluster_upgrade(update_cluster_upgrade_description, timeout:60, custom_headers:nil) response = update_cluster_upgrade_async(update_cluster_upgrade_description, timeout:timeout, custom_headers:custom_headers).value! nil end
ruby
def update_cluster_upgrade(update_cluster_upgrade_description, timeout:60, custom_headers:nil) response = update_cluster_upgrade_async(update_cluster_upgrade_description, timeout:timeout, custom_headers:custom_headers).value! nil end
[ "def", "update_cluster_upgrade", "(", "update_cluster_upgrade_description", ",", "timeout", ":", "60", ",", "custom_headers", ":", "nil", ")", "response", "=", "update_cluster_upgrade_async", "(", "update_cluster_upgrade_description", ",", "timeout", ":", "timeout", ",", ...
Update the upgrade parameters of a Service Fabric cluster upgrade. Update the upgrade parameters used during a Service Fabric cluster upgrade. @param update_cluster_upgrade_description [UpdateClusterUpgradeDescription] Parameters for updating a cluster upgrade. @param timeout [Integer] The server timeout for perf...
[ "Update", "the", "upgrade", "parameters", "of", "a", "Service", "Fabric", "cluster", "upgrade", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_service_fabric/lib/6.2.0.9/generated/azure_service_fabric/service_fabric_client_apis.rb#L2997-L3000
train
Updates the cluster upgrade.
[ 30522, 13366, 10651, 1035, 9324, 1035, 12200, 1006, 10651, 1035, 9324, 1035, 12200, 1035, 6412, 1010, 2051, 5833, 1024, 3438, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 10651, 1035, 9324, 1035, 12200, 1035, 2004, 603...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
data/azure_service_fabric/lib/6.2.0.9/generated/azure_service_fabric/service_fabric_client_apis.rb
Azure::ServiceFabric::V6_2_0_9.ServiceFabricClientAPIs.get_service_event_list
def get_service_event_list(service_id, start_time_utc, end_time_utc, timeout:60, events_types_filter:nil, exclude_analysis_events:nil, skip_correlation_lookup:nil, custom_headers:nil) response = get_service_event_list_async(service_id, start_time_utc, end_time_utc, timeout:timeout, events_types_filter:events_type...
ruby
def get_service_event_list(service_id, start_time_utc, end_time_utc, timeout:60, events_types_filter:nil, exclude_analysis_events:nil, skip_correlation_lookup:nil, custom_headers:nil) response = get_service_event_list_async(service_id, start_time_utc, end_time_utc, timeout:timeout, events_types_filter:events_type...
[ "def", "get_service_event_list", "(", "service_id", ",", "start_time_utc", ",", "end_time_utc", ",", "timeout", ":", "60", ",", "events_types_filter", ":", "nil", ",", "exclude_analysis_events", ":", "nil", ",", "skip_correlation_lookup", ":", "nil", ",", "custom_he...
Gets a Service-related events. The response is list of ServiceEvent objects. @param service_id [String] The identity of the service. This is typically the full name of the service without the 'fabric:' URI scheme. Starting from version 6.0, hierarchical names are delimited with the "~" character. For example, i...
[ "Gets", "a", "Service", "-", "related", "events", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_service_fabric/lib/6.2.0.9/generated/azure_service_fabric/service_fabric_client_apis.rb#L28197-L28200
train
Gets the list of events for a service.
[ 30522, 13366, 2131, 1035, 2326, 1035, 2724, 1035, 2862, 1006, 2326, 1035, 8909, 1010, 2707, 1035, 2051, 1035, 11396, 1010, 2203, 1035, 2051, 1035, 11396, 1010, 2051, 5833, 1024, 3438, 1010, 2824, 1035, 4127, 1035, 11307, 1024, 9152, 2140, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
chloerei/alipay
lib/alipay/client.rb
Alipay.Client.sign
def sign(params) string = params_to_string(params) case @sign_type when 'RSA' ::Alipay::Sign::RSA.sign(@app_private_key, string) when 'RSA2' ::Alipay::Sign::RSA2.sign(@app_private_key, string) else raise "Unsupported sign_type: #{@sign_type}" end end
ruby
def sign(params) string = params_to_string(params) case @sign_type when 'RSA' ::Alipay::Sign::RSA.sign(@app_private_key, string) when 'RSA2' ::Alipay::Sign::RSA2.sign(@app_private_key, string) else raise "Unsupported sign_type: #{@sign_type}" end end
[ "def", "sign", "(", "params", ")", "string", "=", "params_to_string", "(", "params", ")", "case", "@sign_type", "when", "'RSA'", "::", "Alipay", "::", "Sign", "::", "RSA", ".", "sign", "(", "@app_private_key", ",", "string", ")", "when", "'RSA2'", "::", ...
Generate sign for params.
[ "Generate", "sign", "for", "params", "." ]
a525989b659da970e08bc8fcd1b004453bfed89f
https://github.com/chloerei/alipay/blob/a525989b659da970e08bc8fcd1b004453bfed89f/lib/alipay/client.rb#L133-L144
train
Sign the params
[ 30522, 13366, 3696, 1006, 11498, 5244, 1007, 5164, 1027, 11498, 5244, 1035, 2000, 1035, 5164, 1006, 11498, 5244, 1007, 2553, 1030, 3696, 1035, 2828, 2043, 1005, 12667, 2050, 1005, 1024, 1024, 4862, 4502, 2100, 1024, 1024, 3696, 1024, 1024, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_hdinsight/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/script_actions.rb
Azure::Hdinsight::Mgmt::V2015_03_01_preview.ScriptActions.list_persisted_scripts_as_lazy
def list_persisted_scripts_as_lazy(resource_group_name, cluster_name, custom_headers:nil) response = list_persisted_scripts_async(resource_group_name, cluster_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link|...
ruby
def list_persisted_scripts_as_lazy(resource_group_name, cluster_name, custom_headers:nil) response = list_persisted_scripts_async(resource_group_name, cluster_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link|...
[ "def", "list_persisted_scripts_as_lazy", "(", "resource_group_name", ",", "cluster_name", ",", "custom_headers", ":", "nil", ")", "response", "=", "list_persisted_scripts_async", "(", "resource_group_name", ",", "cluster_name", ",", "custom_headers", ":custom_headers", ")",...
Lists all the persisted script actions for the specified cluster. @param resource_group_name [String] The name of the resource group. @param cluster_name [String] The name of the cluster. @param custom_headers [Hash{String => String}] A hash of custom headers that will be added to the HTTP request. @return [Scri...
[ "Lists", "all", "the", "persisted", "script", "actions", "for", "the", "specified", "cluster", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_hdinsight/lib/2015-03-01-preview/generated/azure_mgmt_hdinsight/script_actions.rb#L396-L405
train
Gets the persisted scripts for the specified HDInsight cluster.
[ 30522, 13366, 2862, 1035, 19035, 1035, 14546, 1035, 2004, 1035, 13971, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 9324, 1035, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 2862, 1035, 19035, 1035, 14546, 1035, 2004...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
square/connect-ruby-sdk
lib/square_connect/models/catalog_tax.rb
SquareConnect.CatalogTax.valid?
def valid? calculation_phase_validator = EnumAttributeValidator.new('String', ["TAX_SUBTOTAL_PHASE", "TAX_TOTAL_PHASE"]) return false unless calculation_phase_validator.valid?(@calculation_phase) inclusion_type_validator = EnumAttributeValidator.new('String', ["ADDITIVE", "INCLUSIVE"]) return fa...
ruby
def valid? calculation_phase_validator = EnumAttributeValidator.new('String', ["TAX_SUBTOTAL_PHASE", "TAX_TOTAL_PHASE"]) return false unless calculation_phase_validator.valid?(@calculation_phase) inclusion_type_validator = EnumAttributeValidator.new('String', ["ADDITIVE", "INCLUSIVE"]) return fa...
[ "def", "valid?", "calculation_phase_validator", "=", "EnumAttributeValidator", ".", "new", "(", "'String'", ",", "[", "\"TAX_SUBTOTAL_PHASE\"", ",", "\"TAX_TOTAL_PHASE\"", "]", ")", "return", "false", "unless", "calculation_phase_validator", ".", "valid?", "(", "@calcul...
Check to see if the all the properties in the model are valid @return true if the model is valid
[ "Check", "to", "see", "if", "the", "all", "the", "properties", "in", "the", "model", "are", "valid" ]
798eb9ded716f23b9f1518386f1c311a34bca8bf
https://github.com/square/connect-ruby-sdk/blob/798eb9ded716f23b9f1518386f1c311a34bca8bf/lib/square_connect/models/catalog_tax.rb#L122-L128
train
Returns true if the object is valid for this object.
[ 30522, 13366, 9398, 1029, 17208, 1035, 4403, 1035, 9398, 8844, 1027, 4372, 12248, 4779, 3089, 8569, 2618, 10175, 8524, 4263, 1012, 2047, 1006, 1005, 5164, 1005, 1010, 1031, 1000, 4171, 1035, 4942, 3406, 9080, 1035, 4403, 1000, 1010, 1000, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
sensu/sensu
lib/sensu/daemon.rb
Sensu.Daemon.unexpected_error
def unexpected_error(error) if @settings && @settings[:sensu][:global_error_handler] backtrace = error.backtrace.join("\n") if @logger @logger.warn("global catch-all error handling enabled") @logger.fatal("unexpected error - please address this immediately", { :erro...
ruby
def unexpected_error(error) if @settings && @settings[:sensu][:global_error_handler] backtrace = error.backtrace.join("\n") if @logger @logger.warn("global catch-all error handling enabled") @logger.fatal("unexpected error - please address this immediately", { :erro...
[ "def", "unexpected_error", "(", "error", ")", "if", "@settings", "&&", "@settings", "[", ":sensu", "]", "[", ":global_error_handler", "]", "backtrace", "=", "error", ".", "backtrace", ".", "join", "(", "\"\\n\"", ")", "if", "@logger", "@logger", ".", "warn",...
Initialize the Sensu process. Set the start time, initial service state, double the maximum number of EventMachine timers, set up the logger, and load settings. This method will load extensions and setup Sensu Spawn if the Sensu process is not the Sensu API. This method can and optionally daemonize the process and...
[ "Initialize", "the", "Sensu", "process", ".", "Set", "the", "start", "time", "initial", "service", "state", "double", "the", "maximum", "number", "of", "EventMachine", "timers", "set", "up", "the", "logger", "and", "load", "settings", ".", "This", "method", ...
51319e4b58c8d9986f101ad71ff729aa3e51e951
https://github.com/sensu/sensu/blob/51319e4b58c8d9986f101ad71ff729aa3e51e951/lib/sensu/daemon.rb#L75-L92
train
handle the error
[ 30522, 13366, 9223, 1035, 7561, 1006, 7561, 1007, 2065, 1030, 10906, 1004, 1004, 1030, 10906, 1031, 1024, 12411, 6342, 1033, 1031, 1024, 3795, 1035, 7561, 1035, 28213, 1033, 2067, 6494, 3401, 1027, 7561, 1012, 2067, 6494, 3401, 1012, 3693, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
httprb/http
lib/http/connection.rb
HTTP.Connection.read_more
def read_more(size) return if @parser.finished? value = @socket.readpartial(size, @buffer) if value == :eof @parser << "" :eof elsif value @parser << value end rescue IOError, SocketError, SystemCallError => ex raise ConnectionError, "error reading from s...
ruby
def read_more(size) return if @parser.finished? value = @socket.readpartial(size, @buffer) if value == :eof @parser << "" :eof elsif value @parser << value end rescue IOError, SocketError, SystemCallError => ex raise ConnectionError, "error reading from s...
[ "def", "read_more", "(", "size", ")", "return", "if", "@parser", ".", "finished?", "value", "=", "@socket", ".", "readpartial", "(", "size", ",", "@buffer", ")", "if", "value", "==", ":eof", "@parser", "<<", "\"\"", ":eof", "elsif", "value", "@parser", "...
Feeds some more data into parser @return [void]
[ "Feeds", "some", "more", "data", "into", "parser" ]
f37a10ea4fab3ee411907ea2e4251ddf0ca33a93
https://github.com/httprb/http/blob/f37a10ea4fab3ee411907ea2e4251ddf0ca33a93/lib/http/connection.rb#L209-L221
train
Read more data from the socket.
[ 30522, 13366, 3191, 1035, 2062, 1006, 2946, 1007, 2709, 2065, 1030, 11968, 8043, 1012, 2736, 1029, 3643, 1027, 1030, 22278, 1012, 3191, 19362, 20925, 1006, 2946, 1010, 1030, 17698, 1007, 2065, 3643, 1027, 1027, 1024, 1041, 11253, 1030, 1196...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_managed_applications/lib/2018-06-01/generated/azure_mgmt_managed_applications/application_definitions.rb
Azure::ManagedApplications::Mgmt::V2018_06_01.ApplicationDefinitions.begin_delete
def begin_delete(resource_group_name, application_definition_name, custom_headers:nil) response = begin_delete_async(resource_group_name, application_definition_name, custom_headers:custom_headers).value! nil end
ruby
def begin_delete(resource_group_name, application_definition_name, custom_headers:nil) response = begin_delete_async(resource_group_name, application_definition_name, custom_headers:custom_headers).value! nil end
[ "def", "begin_delete", "(", "resource_group_name", ",", "application_definition_name", ",", "custom_headers", ":", "nil", ")", "response", "=", "begin_delete_async", "(", "resource_group_name", ",", "application_definition_name", ",", "custom_headers", ":custom_headers", ")...
Deletes the managed application definition. @param resource_group_name [String] The name of the resource group. The name is case insensitive. @param application_definition_name [String] The name of the managed application definition to delete. @param custom_headers [Hash{String => String}] A hash of custom header...
[ "Deletes", "the", "managed", "application", "definition", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_managed_applications/lib/2018-06-01/generated/azure_mgmt_managed_applications/application_definitions.rb#L512-L515
train
Deletes the specified application definition.
[ 30522, 13366, 4088, 1035, 3972, 12870, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 4646, 1035, 6210, 1035, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 4088, 1035, 3972, 12870, 1035, 2004, 6038, 2278, 1006, 7692, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
sds/scss-lint
lib/scss_lint/linter.rb
SCSSLint.Linter.visit
def visit(node) # Visit the selector of a rule if parsed rules are available if node.is_a?(Sass::Tree::RuleNode) && node.parsed_rules visit_selector(node.parsed_rules) end @comment_processor.before_node_visit(node) if @engine.any_control_commands super @comment_processor.aft...
ruby
def visit(node) # Visit the selector of a rule if parsed rules are available if node.is_a?(Sass::Tree::RuleNode) && node.parsed_rules visit_selector(node.parsed_rules) end @comment_processor.before_node_visit(node) if @engine.any_control_commands super @comment_processor.aft...
[ "def", "visit", "(", "node", ")", "# Visit the selector of a rule if parsed rules are available", "if", "node", ".", "is_a?", "(", "Sass", "::", "Tree", "::", "RuleNode", ")", "&&", "node", ".", "parsed_rules", "visit_selector", "(", "node", ".", "parsed_rules", "...
Modified so we can also visit selectors in linters @param node [Sass::Tree::Node, Sass::Script::Tree::Node, Sass::Script::Value::Base]
[ "Modified", "so", "we", "can", "also", "visit", "selectors", "in", "linters" ]
e99afe4ede041a431a06e585c12ce82f6ad50116
https://github.com/sds/scss-lint/blob/e99afe4ede041a431a06e585c12ce82f6ad50116/lib/scss_lint/linter.rb#L136-L145
train
Visit the given node
[ 30522, 13366, 3942, 1006, 13045, 1007, 1001, 3942, 1996, 27000, 1997, 1037, 3627, 2065, 11968, 6924, 3513, 2024, 2800, 2065, 13045, 1012, 2003, 1035, 1037, 1029, 1006, 21871, 2015, 1024, 1024, 3392, 1024, 1024, 3627, 3630, 3207, 1007, 1004,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/tag.rb
Azure::ApiManagement::Mgmt::V2018_01_01.Tag.detach_from_operation_with_http_info
def detach_from_operation_with_http_info(resource_group_name, service_name, api_id, operation_id, tag_id, if_match, custom_headers:nil) detach_from_operation_async(resource_group_name, service_name, api_id, operation_id, tag_id, if_match, custom_headers:custom_headers).value! end
ruby
def detach_from_operation_with_http_info(resource_group_name, service_name, api_id, operation_id, tag_id, if_match, custom_headers:nil) detach_from_operation_async(resource_group_name, service_name, api_id, operation_id, tag_id, if_match, custom_headers:custom_headers).value! end
[ "def", "detach_from_operation_with_http_info", "(", "resource_group_name", ",", "service_name", ",", "api_id", ",", "operation_id", ",", "tag_id", ",", "if_match", ",", "custom_headers", ":", "nil", ")", "detach_from_operation_async", "(", "resource_group_name", ",", "s...
Detach the tag from the Operation. @param resource_group_name [String] The name of the resource group. @param service_name [String] The name of the API Management service. @param api_id [String] API revision identifier. Must be unique in the current API Management service instance. Non-current revision has ;rev=n ...
[ "Detach", "the", "tag", "from", "the", "Operation", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/tag.rb#L1908-L1910
train
Detaches the specified resource from the specified API operation.
[ 30522, 13366, 20010, 6776, 1035, 2013, 1035, 3169, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 2326, 1035, 2171, 1010, 17928, 1035, 8909, 1010, 3169, 1035, 8909, 1010, 6415, 1035, 8909, 1010, 2065, 1035, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
adimichele/hubspot-ruby
lib/hubspot/form.rb
Hubspot.Form.fields
def fields(opts={}) bypass_cache = opts.delete(:bypass_cache) { false } field_name = opts.delete(:only) { nil } if field_name field_name = field_name.to_s if bypass_cache || @fields.nil? || @fields.empty? response = Hubspot::Connection.get_json(FIELD_PATH, { form_guid: @guid...
ruby
def fields(opts={}) bypass_cache = opts.delete(:bypass_cache) { false } field_name = opts.delete(:only) { nil } if field_name field_name = field_name.to_s if bypass_cache || @fields.nil? || @fields.empty? response = Hubspot::Connection.get_json(FIELD_PATH, { form_guid: @guid...
[ "def", "fields", "(", "opts", "=", "{", "}", ")", "bypass_cache", "=", "opts", ".", "delete", "(", ":bypass_cache", ")", "{", "false", "}", "field_name", "=", "opts", ".", "delete", "(", ":only", ")", "{", "nil", "}", "if", "field_name", "field_name", ...
{https://developers.hubspot.com/docs/methods/forms/get_fields} {https://developers.hubspot.com/docs/methods/forms/get_field}
[ "{", "https", ":", "//", "developers", ".", "hubspot", ".", "com", "/", "docs", "/", "methods", "/", "forms", "/", "get_fields", "}", "{", "https", ":", "//", "developers", ".", "hubspot", ".", "com", "/", "docs", "/", "methods", "/", "forms", "/", ...
8eb0a64dd0c14c79e631e81bfdc169583e775a46
https://github.com/adimichele/hubspot-ruby/blob/8eb0a64dd0c14c79e631e81bfdc169583e775a46/lib/hubspot/form.rb#L43-L62
train
Returns the fields of this form
[ 30522, 13366, 4249, 1006, 23569, 2015, 1027, 1063, 1065, 1007, 11826, 1035, 17053, 1027, 23569, 2015, 1012, 3972, 12870, 1006, 1024, 11826, 30524, 1064, 1064, 1030, 4249, 1012, 9152, 2140, 1029, 1064, 1064, 1030, 4249, 1012, 4064, 1029, 343...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
chef/ohai
lib/ohai/provides_map.rb
Ohai.ProvidesMap.find_closest_providers_for
def find_closest_providers_for(attributes) plugins = [] attributes.each do |attribute| parts = normalize_and_validate(attribute) raise Ohai::Exceptions::AttributeNotFound, "No such attribute: \'#{attribute}\'" unless @map[parts[0]] attrs = select_closest_subtree(@map, attribute) ...
ruby
def find_closest_providers_for(attributes) plugins = [] attributes.each do |attribute| parts = normalize_and_validate(attribute) raise Ohai::Exceptions::AttributeNotFound, "No such attribute: \'#{attribute}\'" unless @map[parts[0]] attrs = select_closest_subtree(@map, attribute) ...
[ "def", "find_closest_providers_for", "(", "attributes", ")", "plugins", "=", "[", "]", "attributes", ".", "each", "do", "|", "attribute", "|", "parts", "=", "normalize_and_validate", "(", "attribute", ")", "raise", "Ohai", "::", "Exceptions", "::", "AttributeNot...
This function is used to fetch the plugins from 'depends "languages"' statements in plugins. It gathers plugins providing each of the attributes listed, or the plugins providing the closest parent attribute
[ "This", "function", "is", "used", "to", "fetch", "the", "plugins", "from", "depends", "languages", "statements", "in", "plugins", ".", "It", "gathers", "plugins", "providing", "each", "of", "the", "attributes", "listed", "or", "the", "plugins", "providing", "t...
8d66449940f04237586b2f928231c6b26e2cc19a
https://github.com/chef/ohai/blob/8d66449940f04237586b2f928231c6b26e2cc19a/lib/ohai/provides_map.rb#L93-L103
train
Find the closest plugins for the given attributes.
[ 30522, 13366, 2424, 1035, 7541, 1035, 11670, 1035, 2005, 1006, 12332, 1007, 13354, 7076, 1027, 1031, 1033, 12332, 1012, 2169, 2079, 1064, 17961, 1064, 3033, 1027, 3671, 4697, 1035, 1998, 1035, 9398, 3686, 1006, 17961, 1007, 5333, 2821, 4886...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
hashicorp/vault-ruby
lib/vault/api/logical.rb
Vault.Logical.write
def write(path, data = {}, options = {}) headers = extract_headers!(options) json = client.put("/v1/#{encode_path(path)}", JSON.fast_generate(data), headers) if json.nil? return true else return Secret.decode(json) end end
ruby
def write(path, data = {}, options = {}) headers = extract_headers!(options) json = client.put("/v1/#{encode_path(path)}", JSON.fast_generate(data), headers) if json.nil? return true else return Secret.decode(json) end end
[ "def", "write", "(", "path", ",", "data", "=", "{", "}", ",", "options", "=", "{", "}", ")", "headers", "=", "extract_headers!", "(", "options", ")", "json", "=", "client", ".", "put", "(", "\"/v1/#{encode_path(path)}\"", ",", "JSON", ".", "fast_generate...
Write the secret at the given path with the given data. Note that the data must be a {Hash}! @example Vault.logical.write("secret/password", value: "secret") #=> #<Vault::Secret lease_id=""> @param [String] path the path to write @param [Hash] data the data to write @return [Secret]
[ "Write", "the", "secret", "at", "the", "given", "path", "with", "the", "given", "data", ".", "Note", "that", "the", "data", "must", "be", "a", "{", "Hash", "}", "!" ]
02f0532a802ba1a2a0d8703a4585dab76eb9d864
https://github.com/hashicorp/vault-ruby/blob/02f0532a802ba1a2a0d8703a4585dab76eb9d864/lib/vault/api/logical.rb#L66-L74
train
Write data to a file
[ 30522, 13366, 4339, 1006, 4130, 1010, 2951, 1027, 1063, 1065, 1010, 7047, 1027, 1063, 1065, 1007, 20346, 2015, 1027, 14817, 1035, 20346, 2015, 999, 1006, 7047, 1007, 1046, 3385, 1027, 7396, 1012, 2404, 1006, 1000, 1013, 1058, 2487, 1013, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
sumoheavy/jira-ruby
lib/jira/base.rb
JIRA.Base.set_attrs_from_response
def set_attrs_from_response(response) unless response.body.nil? || (response.body.length < 2) json = self.class.parse_json(response.body) set_attrs(json) end end
ruby
def set_attrs_from_response(response) unless response.body.nil? || (response.body.length < 2) json = self.class.parse_json(response.body) set_attrs(json) end end
[ "def", "set_attrs_from_response", "(", "response", ")", "unless", "response", ".", "body", ".", "nil?", "||", "(", "response", ".", "body", ".", "length", "<", "2", ")", "json", "=", "self", ".", "class", ".", "parse_json", "(", "response", ".", "body", ...
Sets the attributes hash from a HTTPResponse object from JIRA if it is not nil or is not a json response.
[ "Sets", "the", "attributes", "hash", "from", "a", "HTTPResponse", "object", "from", "JIRA", "if", "it", "is", "not", "nil", "or", "is", "not", "a", "json", "response", "." ]
25e896f227ab81c528e9678708cb546d2f62f018
https://github.com/sumoheavy/jira-ruby/blob/25e896f227ab81c528e9678708cb546d2f62f018/lib/jira/base.rb#L380-L385
train
Set attributes from the response
[ 30522, 13366, 2275, 1035, 2012, 16344, 2015, 1035, 2013, 1035, 3433, 1006, 3433, 1007, 4983, 3433, 1012, 2303, 1012, 9152, 2140, 1029, 1064, 1064, 1006, 3433, 1012, 2303, 1012, 3091, 1026, 1016, 1007, 1046, 3385, 1027, 2969, 1012, 2465, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
randym/axlsx
lib/axlsx/util/options_parser.rb
Axlsx.OptionsParser.parse_options
def parse_options(options={}) options.each do |key, value| key = :"#{key}=" self.send(key, value) if !value.nil? && self.respond_to?(key) end end
ruby
def parse_options(options={}) options.each do |key, value| key = :"#{key}=" self.send(key, value) if !value.nil? && self.respond_to?(key) end end
[ "def", "parse_options", "(", "options", "=", "{", "}", ")", "options", ".", "each", "do", "|", "key", ",", "value", "|", "key", "=", ":\"", "#{", "key", "}", "\"", "self", ".", "send", "(", "key", ",", "value", ")", "if", "!", "value", ".", "ni...
Parses an options hash by calling any defined method by the same name of the key postfixed with an '=' @param [Hash] options Options to parse.
[ "Parses", "an", "options", "hash", "by", "calling", "any", "defined", "method", "by", "the", "same", "name", "of", "the", "key", "postfixed", "with", "an", "=" ]
c593a08b2a929dac7aa8dc418b55e26b4c49dc34
https://github.com/randym/axlsx/blob/c593a08b2a929dac7aa8dc418b55e26b4c49dc34/lib/axlsx/util/options_parser.rb#L9-L14
train
Parse the options
[ 30522, 13366, 11968, 3366, 1035, 7047, 1006, 7047, 1027, 1063, 1065, 1007, 7047, 1012, 2169, 2079, 1064, 3145, 1010, 3643, 1064, 3145, 1027, 1024, 1000, 1001, 1063, 3145, 1065, 1027, 1000, 2969, 1012, 4604, 1006, 3145, 1010, 3643, 1007, 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
data/azure_cognitiveservices_luisauthoring/lib/2.0/generated/azure_cognitiveservices_luisauthoring/model.rb
Azure::CognitiveServices::LuisAuthoring::V2_0.Model.get_entity
def get_entity(app_id, version_id, entity_id, custom_headers:nil) response = get_entity_async(app_id, version_id, entity_id, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def get_entity(app_id, version_id, entity_id, custom_headers:nil) response = get_entity_async(app_id, version_id, entity_id, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "get_entity", "(", "app_id", ",", "version_id", ",", "entity_id", ",", "custom_headers", ":", "nil", ")", "response", "=", "get_entity_async", "(", "app_id", ",", "version_id", ",", "entity_id", ",", "custom_headers", ":custom_headers", ")", ".", "value!"...
Gets information about an entity model in a version of the application. @param app_id The application ID. @param version_id [String] The version ID. @param entity_id The entity extractor ID. @param custom_headers [Hash{String => String}] A hash of custom headers that will be added to the HTTP request. @return [...
[ "Gets", "information", "about", "an", "entity", "model", "in", "a", "version", "of", "the", "application", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_cognitiveservices_luisauthoring/lib/2.0/generated/azure_cognitiveservices_luisauthoring/model.rb#L2132-L2135
train
Gets the entity definition of the entity.
[ 30522, 13366, 2131, 1035, 9178, 1006, 10439, 1035, 8909, 1010, 2544, 1035, 8909, 1010, 9178, 1035, 8909, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 2131, 1035, 9178, 1035, 2004, 6038, 2278, 1006, 10439, 1035, 8909, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
castwide/solargraph
lib/solargraph/api_map.rb
Solargraph.ApiMap.query_symbols
def query_symbols query result = [] source_map_hash.values.each do |s| result.concat s.query_symbols(query) end result end
ruby
def query_symbols query result = [] source_map_hash.values.each do |s| result.concat s.query_symbols(query) end result end
[ "def", "query_symbols", "query", "result", "=", "[", "]", "source_map_hash", ".", "values", ".", "each", "do", "|", "s", "|", "result", ".", "concat", "s", ".", "query_symbols", "(", "query", ")", "end", "result", "end" ]
Get an array of all symbols in the workspace that match the query. @param query [String] @return [Array<Pin::Base>]
[ "Get", "an", "array", "of", "all", "symbols", "in", "the", "workspace", "that", "match", "the", "query", "." ]
47badb5d151aca775ccbe6c470236089eae7839d
https://github.com/castwide/solargraph/blob/47badb5d151aca775ccbe6c470236089eae7839d/lib/solargraph/api_map.rb#L423-L429
train
Query the symbols in the source map
[ 30522, 13366, 23032, 1035, 9255, 23032, 2765, 1027, 1031, 1033, 3120, 1035, 4949, 1035, 23325, 1012, 5300, 1012, 2169, 2079, 1064, 1055, 1064, 2765, 1012, 9530, 11266, 1055, 1012, 23032, 1035, 9255, 1006, 23032, 1007, 2203, 2765, 2203, 102,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
danger/danger
lib/danger/ci_source/circle_api.rb
Danger.CircleAPI.fetch_build
def fetch_build(repo_slug, build_number, token) url = "project/#{repo_slug}/#{build_number}" params = { "circle-token" => token } response = client.get url, params, accept: "application/json" json = JSON.parse(response.body, symbolize_names: true) json end
ruby
def fetch_build(repo_slug, build_number, token) url = "project/#{repo_slug}/#{build_number}" params = { "circle-token" => token } response = client.get url, params, accept: "application/json" json = JSON.parse(response.body, symbolize_names: true) json end
[ "def", "fetch_build", "(", "repo_slug", ",", "build_number", ",", "token", ")", "url", "=", "\"project/#{repo_slug}/#{build_number}\"", "params", "=", "{", "\"circle-token\"", "=>", "token", "}", "response", "=", "client", ".", "get", "url", ",", "params", ",", ...
Make the API call, and parse the JSON
[ "Make", "the", "API", "call", "and", "parse", "the", "JSON" ]
0d6d09f2d949c287fe75202d947374042b0679f4
https://github.com/danger/danger/blob/0d6d09f2d949c287fe75202d947374042b0679f4/lib/danger/ci_source/circle_api.rb#L43-L49
train
Fetch a build from a project
[ 30522, 13366, 18584, 1035, 3857, 1006, 16360, 2080, 1035, 23667, 1010, 3857, 1035, 2193, 1010, 19204, 1007, 24471, 2140, 1027, 1000, 2622, 1013, 1001, 1063, 16360, 2080, 1035, 23667, 1065, 1013, 30524, 1013, 1046, 3385, 1000, 1046, 3385, 10...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
sds/overcommit
lib/overcommit/git_repo.rb
Overcommit.GitRepo.submodules
def submodules(options = {}) ref = options[:ref] modules = [] IniParse.parse(`git show #{ref}:.gitmodules 2> #{File::NULL}`).each do |section| # git < 1.8.5 does not update the .gitmodules file with submodule # changes, so when we are looking at the current state of the work tree, ...
ruby
def submodules(options = {}) ref = options[:ref] modules = [] IniParse.parse(`git show #{ref}:.gitmodules 2> #{File::NULL}`).each do |section| # git < 1.8.5 does not update the .gitmodules file with submodule # changes, so when we are looking at the current state of the work tree, ...
[ "def", "submodules", "(", "options", "=", "{", "}", ")", "ref", "=", "options", "[", ":ref", "]", "modules", "=", "[", "]", "IniParse", ".", "parse", "(", "`", "#{", "ref", "}", "#{", "File", "::", "NULL", "}", "`", ")", ".", "each", "do", "|",...
Returns the current set of registered submodules. @param options [Hash] @return [Array<Overcommit::GitRepo::Submodule>]
[ "Returns", "the", "current", "set", "of", "registered", "submodules", "." ]
35d60adb41da942178b789560968e3ad030b0ac7
https://github.com/sds/overcommit/blob/35d60adb41da942178b789560968e3ad030b0ac7/lib/overcommit/git_repo.rb#L237-L260
train
Returns a list of all the submodules in the current working tree.
[ 30522, 13366, 4942, 5302, 8566, 4244, 1006, 7047, 1027, 1063, 1065, 1007, 25416, 1027, 7047, 1031, 1024, 25416, 1033, 14184, 1027, 1031, 1033, 1999, 11514, 11650, 2063, 1012, 11968, 3366, 1006, 1036, 21025, 2102, 2265, 1001, 1063, 25416, 10...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_network/lib/2018-08-01/generated/azure_mgmt_network/express_route_connections.rb
Azure::Network::Mgmt::V2018_08_01.ExpressRouteConnections.begin_create_or_update
def begin_create_or_update(resource_group_name, express_route_gateway_name, connection_name, put_express_route_connection_parameters, custom_headers:nil) response = begin_create_or_update_async(resource_group_name, express_route_gateway_name, connection_name, put_express_route_connection_parameters, custom_header...
ruby
def begin_create_or_update(resource_group_name, express_route_gateway_name, connection_name, put_express_route_connection_parameters, custom_headers:nil) response = begin_create_or_update_async(resource_group_name, express_route_gateway_name, connection_name, put_express_route_connection_parameters, custom_header...
[ "def", "begin_create_or_update", "(", "resource_group_name", ",", "express_route_gateway_name", ",", "connection_name", ",", "put_express_route_connection_parameters", ",", "custom_headers", ":", "nil", ")", "response", "=", "begin_create_or_update_async", "(", "resource_group_...
Creates a connection between an ExpressRoute gateway and an ExpressRoute circuit. @param resource_group_name [String] The name of the resource group. @param express_route_gateway_name [String] The name of the ExpressRoute gateway. @param connection_name [String] The name of the connection subresource. @param put...
[ "Creates", "a", "connection", "between", "an", "ExpressRoute", "gateway", "and", "an", "ExpressRoute", "circuit", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_network/lib/2018-08-01/generated/azure_mgmt_network/express_route_connections.rb#L326-L329
train
Creates or updates an express route gateway connection.
[ 30522, 13366, 4088, 1035, 3443, 1035, 2030, 1035, 10651, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 4671, 1035, 2799, 1035, 11909, 1035, 2171, 1010, 4434, 1035, 2171, 1010, 2404, 1035, 4671, 1035, 2799, 1035, 4434, 1035, 11709, 1010, 7661, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
aws/aws-sdk-ruby
gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/resource.rb
Aws::AutoScaling.Resource.tags
def tags(options = {}) batches = Enumerator.new do |y| resp = @client.describe_tags(options) resp.each_page do |page| batch = [] page.data.tags.each do |t| batch << Tag.new( key: t.key, resource_id: t.resource_id, resource_t...
ruby
def tags(options = {}) batches = Enumerator.new do |y| resp = @client.describe_tags(options) resp.each_page do |page| batch = [] page.data.tags.each do |t| batch << Tag.new( key: t.key, resource_id: t.resource_id, resource_t...
[ "def", "tags", "(", "options", "=", "{", "}", ")", "batches", "=", "Enumerator", ".", "new", "do", "|", "y", "|", "resp", "=", "@client", ".", "describe_tags", "(", "options", ")", "resp", ".", "each_page", "do", "|", "page", "|", "batch", "=", "["...
@example Request syntax with placeholder values tags = auto_scaling.tags({ filters: [ { name: "XmlString", values: ["XmlString"], }, ], }) @param [Hash] options ({}) @option options [Array<Types::Filter>] :filters One or more filters to scope the tags to return. The...
[ "@example", "Request", "syntax", "with", "placeholder", "values" ]
e28b8d320ddf7b6ee0161bdd9d00fb786d99b63d
https://github.com/aws/aws-sdk-ruby/blob/e28b8d320ddf7b6ee0161bdd9d00fb786d99b63d/gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/resource.rb#L784-L802
train
Returns a list of all tags in the cluster
[ 30522, 13366, 22073, 1006, 7047, 1027, 1063, 1065, 1007, 14108, 2229, 1027, 4372, 17897, 16259, 1012, 2047, 2079, 1064, 1061, 1064, 24501, 2361, 1027, 1030, 7396, 1012, 6235, 1035, 22073, 1006, 7047, 1007, 24501, 2361, 1012, 2169, 1035, 305...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_scheduler/lib/2016-03-01/generated/azure_mgmt_scheduler/job_collections.rb
Azure::Scheduler::Mgmt::V2016_03_01.JobCollections.disable
def disable(resource_group_name, job_collection_name, custom_headers:nil) response = disable_async(resource_group_name, job_collection_name, custom_headers:custom_headers).value! nil end
ruby
def disable(resource_group_name, job_collection_name, custom_headers:nil) response = disable_async(resource_group_name, job_collection_name, custom_headers:custom_headers).value! nil end
[ "def", "disable", "(", "resource_group_name", ",", "job_collection_name", ",", "custom_headers", ":", "nil", ")", "response", "=", "disable_async", "(", "resource_group_name", ",", "job_collection_name", ",", "custom_headers", ":custom_headers", ")", ".", "value!", "n...
Disables all of the jobs in the job collection. @param resource_group_name [String] The resource group name. @param job_collection_name [String] The job collection name. @param custom_headers [Hash{String => String}] A hash of custom headers that will be added to the HTTP request.
[ "Disables", "all", "of", "the", "jobs", "in", "the", "job", "collection", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_scheduler/lib/2016-03-01/generated/azure_mgmt_scheduler/job_collections.rb#L594-L597
train
Disables a job collection.
[ 30522, 13366, 4487, 19150, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 3105, 1035, 3074, 1035, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 4487, 19150, 1035, 2004, 6038, 2278, 1006, 7692, 1035, 2177, 1035, 2171, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
fastlane/fastlane
sigh/lib/sigh/runner.rb
Sigh.Runner.ensure_app_exists!
def ensure_app_exists! return if Spaceship::App.find(Sigh.config[:app_identifier], mac: Sigh.config[:platform].to_s == 'macos') print_produce_command(Sigh.config) UI.user_error!("Could not find App with App Identifier '#{Sigh.config[:app_identifier]}'") end
ruby
def ensure_app_exists! return if Spaceship::App.find(Sigh.config[:app_identifier], mac: Sigh.config[:platform].to_s == 'macos') print_produce_command(Sigh.config) UI.user_error!("Could not find App with App Identifier '#{Sigh.config[:app_identifier]}'") end
[ "def", "ensure_app_exists!", "return", "if", "Spaceship", "::", "App", ".", "find", "(", "Sigh", ".", "config", "[", ":app_identifier", "]", ",", "mac", ":", "Sigh", ".", "config", "[", ":platform", "]", ".", "to_s", "==", "'macos'", ")", "print_produce_co...
Makes sure the current App ID exists. If not, it will show an appropriate error message
[ "Makes", "sure", "the", "current", "App", "ID", "exists", ".", "If", "not", "it", "will", "show", "an", "appropriate", "error", "message" ]
457c5d647c77f0e078dafa5129da616914e002c5
https://github.com/fastlane/fastlane/blob/457c5d647c77f0e078dafa5129da616914e002c5/sigh/lib/sigh/runner.rb#L265-L269
train
Ensure that the App with the App Identifier is present in the App Specification.
[ 30522, 13366, 5676, 1035, 10439, 1035, 6526, 999, 2709, 2065, 25516, 1024, 1024, 10439, 1012, 2424, 1006, 6682, 1012, 9530, 8873, 2290, 1031, 1024, 10439, 1035, 8909, 4765, 18095, 1033, 1010, 6097, 1024, 6682, 1012, 9530, 8873, 2290, 1031, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
data/azure_service_fabric/lib/6.2.0.9/generated/azure_service_fabric/service_fabric_client_apis.rb
Azure::ServiceFabric::V6_2_0_9.ServiceFabricClientAPIs.commit_image_store_upload_session_with_http_info
def commit_image_store_upload_session_with_http_info(session_id, timeout:60, custom_headers:nil) commit_image_store_upload_session_async(session_id, timeout:timeout, custom_headers:custom_headers).value! end
ruby
def commit_image_store_upload_session_with_http_info(session_id, timeout:60, custom_headers:nil) commit_image_store_upload_session_async(session_id, timeout:timeout, custom_headers:custom_headers).value! end
[ "def", "commit_image_store_upload_session_with_http_info", "(", "session_id", ",", "timeout", ":", "60", ",", "custom_headers", ":", "nil", ")", "commit_image_store_upload_session_async", "(", "session_id", ",", "timeout", ":", "timeout", ",", "custom_headers", ":custom_h...
Commit an image store upload session. When all file chunks have been uploaded, the upload session needs to be committed explicitly to complete the upload. Image store preserves the upload session until the expiration time, which is 30 minutes after the last chunk received. @param session_id A GUID generated by t...
[ "Commit", "an", "image", "store", "upload", "session", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_service_fabric/lib/6.2.0.9/generated/azure_service_fabric/service_fabric_client_apis.rb#L19862-L19864
train
Commit an image store upload session.
[ 30522, 13366, 10797, 1035, 3746, 1035, 3573, 1035, 2039, 11066, 1035, 5219, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 5219, 1035, 8909, 1010, 2051, 5833, 1024, 3438, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 10797, 1035, 3746,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
aws/aws-sdk-ruby
gems/aws-sdk-s3/lib/aws-sdk-s3/bucket_logging.rb
Aws::S3.BucketLogging.put
def put(options = {}) options = options.merge(bucket: @bucket_name) resp = @client.put_bucket_logging(options) resp.data end
ruby
def put(options = {}) options = options.merge(bucket: @bucket_name) resp = @client.put_bucket_logging(options) resp.data end
[ "def", "put", "(", "options", "=", "{", "}", ")", "options", "=", "options", ".", "merge", "(", "bucket", ":", "@bucket_name", ")", "resp", "=", "@client", ".", "put_bucket_logging", "(", "options", ")", "resp", ".", "data", "end" ]
@!group Actions @example Request syntax with placeholder values bucket_logging.put({ bucket_logging_status: { # required logging_enabled: { target_bucket: "TargetBucket", # required target_grants: [ { grantee: { display_name: "DisplayName", ...
[ "@!group", "Actions", "@example", "Request", "syntax", "with", "placeholder", "values" ]
e28b8d320ddf7b6ee0161bdd9d00fb786d99b63d
https://github.com/aws/aws-sdk-ruby/blob/e28b8d320ddf7b6ee0161bdd9d00fb786d99b63d/gems/aws-sdk-s3/lib/aws-sdk-s3/bucket_logging.rb#L200-L204
train
Put the logging to the bucket
[ 30522, 13366, 2404, 1006, 7047, 1027, 1063, 1065, 1007, 7047, 1027, 7047, 1012, 13590, 1006, 13610, 1024, 1030, 13610, 1035, 2171, 1007, 24501, 2361, 1027, 1030, 7396, 1012, 2404, 1035, 13610, 1035, 15899, 1006, 7047, 1007, 24501, 2361, 101...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_network/lib/2018-08-01/generated/azure_mgmt_network/express_route_connections.rb
Azure::Network::Mgmt::V2018_08_01.ExpressRouteConnections.begin_delete
def begin_delete(resource_group_name, express_route_gateway_name, connection_name, custom_headers:nil) response = begin_delete_async(resource_group_name, express_route_gateway_name, connection_name, custom_headers:custom_headers).value! nil end
ruby
def begin_delete(resource_group_name, express_route_gateway_name, connection_name, custom_headers:nil) response = begin_delete_async(resource_group_name, express_route_gateway_name, connection_name, custom_headers:custom_headers).value! nil end
[ "def", "begin_delete", "(", "resource_group_name", ",", "express_route_gateway_name", ",", "connection_name", ",", "custom_headers", ":", "nil", ")", "response", "=", "begin_delete_async", "(", "resource_group_name", ",", "express_route_gateway_name", ",", "connection_name"...
Deletes a connection to a ExpressRoute circuit. @param resource_group_name [String] The name of the resource group. @param express_route_gateway_name [String] The name of the ExpressRoute gateway. @param connection_name [String] The name of the connection subresource. @param custom_headers [Hash{String => String}...
[ "Deletes", "a", "connection", "to", "a", "ExpressRoute", "circuit", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_network/lib/2018-08-01/generated/azure_mgmt_network/express_route_connections.rb#L448-L451
train
Deletes a ExpressRoute gateway connection.
[ 30522, 13366, 4088, 1035, 3972, 12870, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 4671, 1035, 2799, 1035, 11909, 1035, 2171, 1010, 4434, 1035, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 4088, 1035, 3972, 12870, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
nathanvda/cocoon
lib/cocoon/view_helpers.rb
Cocoon.ViewHelpers.render_association
def render_association(association, f, new_object, form_name, render_options={}, custom_partial=nil) partial = get_partial_path(custom_partial, association) locals = render_options.delete(:locals) || {} ancestors = f.class.ancestors.map{|c| c.to_s} method_name = ancestors.include?('SimpleForm::...
ruby
def render_association(association, f, new_object, form_name, render_options={}, custom_partial=nil) partial = get_partial_path(custom_partial, association) locals = render_options.delete(:locals) || {} ancestors = f.class.ancestors.map{|c| c.to_s} method_name = ancestors.include?('SimpleForm::...
[ "def", "render_association", "(", "association", ",", "f", ",", "new_object", ",", "form_name", ",", "render_options", "=", "{", "}", ",", "custom_partial", "=", "nil", ")", "partial", "=", "get_partial_path", "(", "custom_partial", ",", "association", ")", "l...
:nodoc:
[ ":", "nodoc", ":" ]
ec18c446a5475aa4959c699c797ee0fe9b0c9136
https://github.com/nathanvda/cocoon/blob/ec18c446a5475aa4959c699c797ee0fe9b0c9136/lib/cocoon/view_helpers.rb#L45-L54
train
Renders the association
[ 30522, 13366, 17552, 1035, 2523, 1006, 2523, 1010, 1042, 1010, 2047, 1035, 4874, 1010, 2433, 1035, 2171, 1010, 17552, 1035, 7047, 1027, 1063, 1065, 1010, 7661, 1035, 7704, 1027, 9152, 2140, 1007, 7704, 1027, 2131, 1035, 7704, 1035, 4130, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
fastlane/fastlane
frameit/lib/frameit/editor.rb
Frameit.Editor.build_text_images
def build_text_images(max_width, max_height, stack_title) words = [:keyword, :title].keep_if { |a| fetch_text(a) } # optional keyword/title results = {} trim_boxes = {} top_vertical_trim_offset = Float::INFINITY # Init at a large value, as the code will search for a minimal value. bottom_v...
ruby
def build_text_images(max_width, max_height, stack_title) words = [:keyword, :title].keep_if { |a| fetch_text(a) } # optional keyword/title results = {} trim_boxes = {} top_vertical_trim_offset = Float::INFINITY # Init at a large value, as the code will search for a minimal value. bottom_v...
[ "def", "build_text_images", "(", "max_width", ",", "max_height", ",", "stack_title", ")", "words", "=", "[", ":keyword", ",", ":title", "]", ".", "keep_if", "{", "|", "a", "|", "fetch_text", "(", "a", ")", "}", "# optional keyword/title", "results", "=", "...
This will build up to 2 individual images with the title and optional keyword, which will then be added to the real image
[ "This", "will", "build", "up", "to", "2", "individual", "images", "with", "the", "title", "and", "optional", "keyword", "which", "will", "then", "be", "added", "to", "the", "real", "image" ]
457c5d647c77f0e078dafa5129da616914e002c5
https://github.com/fastlane/fastlane/blob/457c5d647c77f0e078dafa5129da616914e002c5/frameit/lib/frameit/editor.rb#L396-L489
train
Builds the text image for the given stack title.
[ 30522, 13366, 3857, 1035, 3793, 1035, 4871, 1006, 4098, 1035, 9381, 1010, 4098, 1035, 4578, 1010, 9991, 1035, 2516, 1007, 2616, 1027, 1031, 1024, 3145, 18351, 1010, 1024, 2516, 1033, 1012, 2562, 1035, 2065, 1063, 1064, 1037, 1064, 18584, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
middleman/middleman
middleman-core/lib/middleman-core/template_context.rb
Middleman.TemplateContext.wrap_layout
def wrap_layout(layout_name, &block) # Save current buffer for later buf_was = save_buffer # Find a layout for this file layout_file = ::Middleman::TemplateRenderer.locate_layout(@app, layout_name, current_engine) # Get the layout engine extension = File.extname(layout_file[:relati...
ruby
def wrap_layout(layout_name, &block) # Save current buffer for later buf_was = save_buffer # Find a layout for this file layout_file = ::Middleman::TemplateRenderer.locate_layout(@app, layout_name, current_engine) # Get the layout engine extension = File.extname(layout_file[:relati...
[ "def", "wrap_layout", "(", "layout_name", ",", "&", "block", ")", "# Save current buffer for later", "buf_was", "=", "save_buffer", "# Find a layout for this file", "layout_file", "=", "::", "Middleman", "::", "TemplateRenderer", ".", "locate_layout", "(", "@app", ",", ...
Allow layouts to be wrapped in the contents of other layouts. @param [String, Symbol] layout_name @return [void]
[ "Allow", "layouts", "to", "be", "wrapped", "in", "the", "contents", "of", "other", "layouts", "." ]
a0dd9f78094813162895511e8516e0c5507cee50
https://github.com/middleman/middleman/blob/a0dd9f78094813162895511e8516e0c5507cee50/middleman-core/lib/middleman-core/template_context.rb#L81-L114
train
Wrap a layout with a block
[ 30522, 13366, 10236, 1035, 9621, 1006, 9621, 1035, 2171, 1010, 1004, 3796, 1007, 1001, 3828, 2783, 17698, 2005, 2101, 20934, 2546, 1035, 2001, 1027, 3828, 1035, 17698, 1001, 2424, 1037, 9621, 2005, 2023, 5371, 9621, 1035, 5371, 1027, 1024, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
refile/refile
lib/refile/rails/attachment_helper.rb
Refile.AttachmentHelper.attachment_field
def attachment_field(object_name, method, object:, **options) options[:data] ||= {} definition = object.send(:"#{method}_attachment_definition") options[:accept] = definition.accept if options[:direct] url = Refile.attachment_upload_url(object, method, host: options[:host], prefix: opt...
ruby
def attachment_field(object_name, method, object:, **options) options[:data] ||= {} definition = object.send(:"#{method}_attachment_definition") options[:accept] = definition.accept if options[:direct] url = Refile.attachment_upload_url(object, method, host: options[:host], prefix: opt...
[ "def", "attachment_field", "(", "object_name", ",", "method", ",", "object", ":", ",", "**", "options", ")", "options", "[", ":data", "]", "||=", "{", "}", "definition", "=", "object", ".", "send", "(", ":\"", "#{", "method", "}", "\"", ")", "options",...
Generates a form field which can be used with records which have attachments. This will generate both a file field as well as a hidden field which tracks the id of the file in the cache before it is permanently stored. @param object_name The name of the object to generate a field for @param met...
[ "Generates", "a", "form", "field", "which", "can", "be", "used", "with", "records", "which", "have", "attachments", ".", "This", "will", "generate", "both", "a", "file", "field", "as", "well", "as", "a", "hidden", "field", "which", "tracks", "the", "id", ...
e910f5ca5a9060c307bd0a5e813f1fec73219ed5
https://github.com/refile/refile/blob/e910f5ca5a9060c307bd0a5e813f1fec73219ed5/lib/refile/rails/attachment_helper.rb#L75-L95
train
Returns the field for an attachment
[ 30522, 13366, 14449, 1035, 2492, 1006, 4874, 1035, 2171, 1010, 4118, 1010, 4874, 1024, 1010, 1008, 1008, 7047, 1007, 7047, 1031, 1024, 2951, 1033, 1064, 1064, 1027, 1063, 1065, 6210, 1027, 4874, 1012, 4604, 1006, 1024, 1000, 1001, 1063, 4...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_network/lib/2019-02-01/generated/azure_mgmt_network/application_security_groups.rb
Azure::Network::Mgmt::V2019_02_01.ApplicationSecurityGroups.begin_delete
def begin_delete(resource_group_name, application_security_group_name, custom_headers:nil) response = begin_delete_async(resource_group_name, application_security_group_name, custom_headers:custom_headers).value! nil end
ruby
def begin_delete(resource_group_name, application_security_group_name, custom_headers:nil) response = begin_delete_async(resource_group_name, application_security_group_name, custom_headers:custom_headers).value! nil end
[ "def", "begin_delete", "(", "resource_group_name", ",", "application_security_group_name", ",", "custom_headers", ":", "nil", ")", "response", "=", "begin_delete_async", "(", "resource_group_name", ",", "application_security_group_name", ",", "custom_headers", ":custom_header...
Deletes the specified application security group. @param resource_group_name [String] The name of the resource group. @param application_security_group_name [String] The name of the application security group. @param custom_headers [Hash{String => String}] A hash of custom headers that will be added to the HTTP r...
[ "Deletes", "the", "specified", "application", "security", "group", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_network/lib/2019-02-01/generated/azure_mgmt_network/application_security_groups.rb#L437-L440
train
Deletes the specified application security group.
[ 30522, 13366, 4088, 1035, 3972, 12870, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 4646, 1035, 3036, 1035, 2177, 1035, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 4088, 1035, 3972, 12870, 1035, 2004, 6038, 2278, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
randym/axlsx
lib/axlsx/drawing/bar_series.rb
Axlsx.BarSeries.to_xml_string
def to_xml_string(str = '') super(str) do colors.each_with_index do |c, index| str << '<c:dPt>' str << ('<c:idx val="' << index.to_s << '"/>') str << '<c:spPr><a:solidFill>' str << ('<a:srgbClr val="' << c << '"/>') str << '</a:solidFill></c:spPr></c:dPt>...
ruby
def to_xml_string(str = '') super(str) do colors.each_with_index do |c, index| str << '<c:dPt>' str << ('<c:idx val="' << index.to_s << '"/>') str << '<c:spPr><a:solidFill>' str << ('<a:srgbClr val="' << c << '"/>') str << '</a:solidFill></c:spPr></c:dPt>...
[ "def", "to_xml_string", "(", "str", "=", "''", ")", "super", "(", "str", ")", "do", "colors", ".", "each_with_index", "do", "|", "c", ",", "index", "|", "str", "<<", "'<c:dPt>'", "str", "<<", "(", "'<c:idx val=\"'", "<<", "index", ".", "to_s", "<<", ...
Serializes the object @param [String] str @return [String]
[ "Serializes", "the", "object" ]
c593a08b2a929dac7aa8dc418b55e26b4c49dc34
https://github.com/randym/axlsx/blob/c593a08b2a929dac7aa8dc418b55e26b4c49dc34/lib/axlsx/drawing/bar_series.rb#L54-L70
train
Convert the object to XML string.
[ 30522, 13366, 2000, 1035, 20950, 1035, 5164, 1006, 2358, 2099, 1027, 1005, 1005, 1007, 3565, 1006, 2358, 2099, 1007, 2079, 6087, 1012, 2169, 1035, 2007, 1035, 5950, 2079, 1064, 1039, 1010, 5950, 1064, 2358, 2099, 1026, 1026, 1005, 1026, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
data/azure_cognitiveservices_customvisiontraining/lib/3.0/generated/azure_cognitiveservices_customvisiontraining/customvisiontraining_client.rb
Azure::CognitiveServices::Customvisiontraining::V3_0.CustomvisiontrainingClient.create_images_from_data_with_http_info
def create_images_from_data_with_http_info(project_id, image_data, tag_ids:nil, custom_headers:nil) create_images_from_data_async(project_id, image_data, tag_ids:tag_ids, custom_headers:custom_headers).value! end
ruby
def create_images_from_data_with_http_info(project_id, image_data, tag_ids:nil, custom_headers:nil) create_images_from_data_async(project_id, image_data, tag_ids:tag_ids, custom_headers:custom_headers).value! end
[ "def", "create_images_from_data_with_http_info", "(", "project_id", ",", "image_data", ",", "tag_ids", ":", "nil", ",", "custom_headers", ":", "nil", ")", "create_images_from_data_async", "(", "project_id", ",", "image_data", ",", "tag_ids", ":tag_ids", ",", "custom_h...
Add the provided images to the set of training images. This API accepts body content as multipart/form-data and application/octet-stream. When using multipart multiple image files can be sent at once, with a maximum of 64 files @param project_id The project id. @param image_data Binary image data. Supported form...
[ "Add", "the", "provided", "images", "to", "the", "set", "of", "training", "images", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_cognitiveservices_customvisiontraining/lib/3.0/generated/azure_cognitiveservices_customvisiontraining/customvisiontraining_client.rb#L1398-L1400
train
Creates a list of images from the image data.
[ 30522, 13366, 3443, 1035, 4871, 1035, 2013, 1035, 2951, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 2622, 1035, 8909, 1010, 3746, 1035, 2951, 1010, 6415, 1035, 8909, 2015, 1024, 9152, 2140, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_web/lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb
Azure::Web::Mgmt::V2018_02_01.Diagnostics.list_site_diagnostic_categories_next
def list_site_diagnostic_categories_next(next_page_link, custom_headers:nil) response = list_site_diagnostic_categories_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def list_site_diagnostic_categories_next(next_page_link, custom_headers:nil) response = list_site_diagnostic_categories_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "list_site_diagnostic_categories_next", "(", "next_page_link", ",", "custom_headers", ":", "nil", ")", "response", "=", "list_site_diagnostic_categories_next_async", "(", "next_page_link", ",", "custom_headers", ":custom_headers", ")", ".", "value!", "response", ".",...
Get Diagnostics Categories Get Diagnostics Categories @param next_page_link [String] The NextLink from the previous successful call to List operation. @param custom_headers [Hash{String => String}] A hash of custom headers that will be added to the HTTP request. @return [DiagnosticCategoryCollection] operation...
[ "Get", "Diagnostics", "Categories" ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_web/lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb#L2722-L2725
train
Gets the site diagnostic categories.
[ 30522, 13366, 2862, 1035, 2609, 1035, 16474, 1035, 7236, 1035, 2279, 1006, 2279, 1035, 3931, 1035, 4957, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 2862, 1035, 2609, 1035, 16474, 1035, 7236, 1035, 2279, 1035, 2004, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
aws/aws-sdk-ruby
gems/aws-sdk-rds/lib/aws-sdk-rds/db_cluster.rb
Aws::RDS.DBCluster.snapshots
def snapshots(options = {}) batches = Enumerator.new do |y| batch = [] options = options.merge(db_cluster_identifier: @id) resp = @client.describe_db_cluster_snapshots(options) resp.data.db_cluster_snapshots.each do |d| batch << DBClusterSnapshot.new( cluster_...
ruby
def snapshots(options = {}) batches = Enumerator.new do |y| batch = [] options = options.merge(db_cluster_identifier: @id) resp = @client.describe_db_cluster_snapshots(options) resp.data.db_cluster_snapshots.each do |d| batch << DBClusterSnapshot.new( cluster_...
[ "def", "snapshots", "(", "options", "=", "{", "}", ")", "batches", "=", "Enumerator", ".", "new", "do", "|", "y", "|", "batch", "=", "[", "]", "options", "=", "options", ".", "merge", "(", "db_cluster_identifier", ":", "@id", ")", "resp", "=", "@clie...
@example Request syntax with placeholder values snapshots = db_cluster.snapshots({ db_cluster_snapshot_identifier: "String", snapshot_type: "String", filters: [ { name: "String", # required values: ["String"], # required }, ], max_records: 1, marker: "St...
[ "@example", "Request", "syntax", "with", "placeholder", "values" ]
e28b8d320ddf7b6ee0161bdd9d00fb786d99b63d
https://github.com/aws/aws-sdk-ruby/blob/e28b8d320ddf7b6ee0161bdd9d00fb786d99b63d/gems/aws-sdk-rds/lib/aws-sdk-rds/db_cluster.rb#L1536-L1552
train
Returns a collection of all the snapshots in the cluster.
[ 30522, 13366, 20057, 12326, 2015, 1006, 7047, 1027, 1063, 1065, 1007, 14108, 2229, 1027, 4372, 17897, 16259, 1012, 2047, 2079, 1064, 1061, 1064, 14108, 1027, 1031, 1033, 7047, 1027, 7047, 1012, 13590, 1006, 16962, 1035, 9324, 1035, 8909, 47...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
data/azure_cognitiveservices_imagesearch/lib/1.0/generated/azure_cognitiveservices_imagesearch/images_operations.rb
Azure::CognitiveServices::ImageSearch::V1_0.ImagesOperations.details
def details(query, accept_language:nil, content_type:nil, user_agent:nil, client_id:nil, client_ip:nil, location:nil, crop_bottom:nil, crop_left:nil, crop_right:nil, crop_top:nil, crop_type:nil, country_code:nil, id:nil, image_url:nil, insights_token:nil, modules:nil, market:nil, safe_search:nil, set_lang:nil, custom_h...
ruby
def details(query, accept_language:nil, content_type:nil, user_agent:nil, client_id:nil, client_ip:nil, location:nil, crop_bottom:nil, crop_left:nil, crop_right:nil, crop_top:nil, crop_type:nil, country_code:nil, id:nil, image_url:nil, insights_token:nil, modules:nil, market:nil, safe_search:nil, set_lang:nil, custom_h...
[ "def", "details", "(", "query", ",", "accept_language", ":", "nil", ",", "content_type", ":", "nil", ",", "user_agent", ":", "nil", ",", "client_id", ":", "nil", ",", "client_ip", ":", "nil", ",", "location", ":", "nil", ",", "crop_bottom", ":", "nil", ...
The Image Detail Search API lets you search on Bing and get back insights about an image, such as webpages that include the image. This section provides technical details about the query parameters and headers that you use to request insights of images and the JSON response objects that contain them. For examples t...
[ "The", "Image", "Detail", "Search", "API", "lets", "you", "search", "on", "Bing", "and", "get", "back", "insights", "about", "an", "image", "such", "as", "webpages", "that", "include", "the", "image", ".", "This", "section", "provides", "technical", "details...
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_cognitiveservices_imagesearch/lib/1.0/generated/azure_cognitiveservices_imagesearch/images_operations.rb#L1302-L1305
train
Returns the list of the available images for the specified search.
[ 30522, 13366, 4751, 1006, 23032, 1010, 5138, 1035, 2653, 1024, 9152, 2140, 1010, 4180, 1035, 2828, 1024, 9152, 2140, 1010, 5310, 1035, 4005, 1024, 9152, 2140, 1010, 7396, 1035, 8909, 1024, 9152, 2140, 1010, 7396, 1035, 12997, 1024, 9152, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_web/lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb
Azure::Web::Mgmt::V2018_02_01.Diagnostics.list_site_detectors_next
def list_site_detectors_next(next_page_link, custom_headers:nil) response = list_site_detectors_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def list_site_detectors_next(next_page_link, custom_headers:nil) response = list_site_detectors_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "list_site_detectors_next", "(", "next_page_link", ",", "custom_headers", ":", "nil", ")", "response", "=", "list_site_detectors_next_async", "(", "next_page_link", ",", "custom_headers", ":custom_headers", ")", ".", "value!", "response", ".", "body", "unless", ...
Get Detectors Get Detectors @param next_page_link [String] The NextLink from the previous successful call to List operation. @param custom_headers [Hash{String => String}] A hash of custom headers that will be added to the HTTP request. @return [DiagnosticDetectorCollection] operation results.
[ "Get", "Detectors" ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_web/lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb#L2910-L2913
train
Gets the list of site detectors.
[ 30522, 13366, 2862, 1035, 2609, 1035, 25971, 1035, 2279, 1006, 2279, 1035, 3931, 1035, 4957, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 2862, 1035, 2609, 1035, 25971, 1035, 2279, 1035, 2004, 6038, 2278, 1006, 2279, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
boazsegev/combine_pdf
lib/combine_pdf/page_methods.rb
CombinePDF.Page_Methods.graphic_state
def graphic_state(graphic_state_dictionary = {}) # if the graphic state exists, return it's name resources[:ExtGState] ||= {} gs_res = resources[:ExtGState][:referenced_object] || resources[:ExtGState] gs_res.each do |k, v| return k if v.is_a?(Hash) && v == graphic_state_dictionary ...
ruby
def graphic_state(graphic_state_dictionary = {}) # if the graphic state exists, return it's name resources[:ExtGState] ||= {} gs_res = resources[:ExtGState][:referenced_object] || resources[:ExtGState] gs_res.each do |k, v| return k if v.is_a?(Hash) && v == graphic_state_dictionary ...
[ "def", "graphic_state", "(", "graphic_state_dictionary", "=", "{", "}", ")", "# if the graphic state exists, return it's name", "resources", "[", ":ExtGState", "]", "||=", "{", "}", "gs_res", "=", "resources", "[", ":ExtGState", "]", "[", ":referenced_object", "]", ...
register or get a registered graphic state dictionary. the method returns the name of the graphos state, for use in a content stream.
[ "register", "or", "get", "a", "registered", "graphic", "state", "dictionary", ".", "the", "method", "returns", "the", "name", "of", "the", "graphos", "state", "for", "use", "in", "a", "content", "stream", "." ]
09054051019c069f551f3e60be789577c0f93900
https://github.com/boazsegev/combine_pdf/blob/09054051019c069f551f3e60be789577c0f93900/lib/combine_pdf/page_methods.rb#L754-L769
train
Returns the name of the graphic state
[ 30522, 13366, 8425, 1035, 2110, 1006, 8425, 1035, 2110, 1035, 9206, 1027, 1063, 1065, 1007, 1001, 2065, 1996, 8425, 2110, 6526, 1010, 2709, 2009, 1005, 1055, 2171, 4219, 1031, 1024, 4654, 2102, 5620, 12259, 1033, 1064, 1064, 1027, 1063, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
aws/aws-sdk-ruby
gems/aws-sdk-rds/lib/aws-sdk-rds/db_engine_version.rb
Aws::RDS.DBEngineVersion.option_groups
def option_groups(options = {}) batches = Enumerator.new do |y| options = options.merge( engine_name: @engine, major_engine_version: @version ) resp = @client.describe_option_groups(options) resp.each_page do |page| batch = [] page.data.optio...
ruby
def option_groups(options = {}) batches = Enumerator.new do |y| options = options.merge( engine_name: @engine, major_engine_version: @version ) resp = @client.describe_option_groups(options) resp.each_page do |page| batch = [] page.data.optio...
[ "def", "option_groups", "(", "options", "=", "{", "}", ")", "batches", "=", "Enumerator", ".", "new", "do", "|", "y", "|", "options", "=", "options", ".", "merge", "(", "engine_name", ":", "@engine", ",", "major_engine_version", ":", "@version", ")", "re...
@example Request syntax with placeholder values option_groups = db_engine_version.option_groups({ option_group_name: "String", filters: [ { name: "String", # required values: ["String"], # required }, ], }) @param [Hash] options ({}) @option options [String] :opti...
[ "@example", "Request", "syntax", "with", "placeholder", "values" ]
e28b8d320ddf7b6ee0161bdd9d00fb786d99b63d
https://github.com/aws/aws-sdk-ruby/blob/e28b8d320ddf7b6ee0161bdd9d00fb786d99b63d/gems/aws-sdk-rds/lib/aws-sdk-rds/db_engine_version.rb#L324-L344
train
Returns an Enumerator of OptionGroup objects.
[ 30522, 13366, 5724, 1035, 2967, 1006, 7047, 1027, 1063, 1065, 1007, 14108, 2229, 1027, 4372, 17897, 16259, 1012, 2047, 2079, 1064, 1061, 1064, 7047, 1027, 7047, 1012, 13590, 1006, 3194, 1035, 2171, 1024, 1030, 3194, 1010, 2350, 1035, 3194, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
sinatra/sinatra
sinatra-contrib/lib/sinatra/config_file.rb
Sinatra.ConfigFile.environment_keys?
def environment_keys?(hash) hash.is_a?(Hash) && hash.any? { |k, _| environments.include?(k.to_s) } end
ruby
def environment_keys?(hash) hash.is_a?(Hash) && hash.any? { |k, _| environments.include?(k.to_s) } end
[ "def", "environment_keys?", "(", "hash", ")", "hash", ".", "is_a?", "(", "Hash", ")", "&&", "hash", ".", "any?", "{", "|", "k", ",", "_", "|", "environments", ".", "include?", "(", "k", ".", "to_s", ")", "}", "end" ]
Returns true if supplied with a hash that has any recognized +environments+ in its root keys.
[ "Returns", "true", "if", "supplied", "with", "a", "hash", "that", "has", "any", "recognized", "+", "environments", "+", "in", "its", "root", "keys", "." ]
1aa64f9858edc3f93cc8d46e26f724c1ae103b1c
https://github.com/sinatra/sinatra/blob/1aa64f9858edc3f93cc8d46e26f724c1ae103b1c/sinatra-contrib/lib/sinatra/config_file.rb#L166-L168
train
Returns true if the environment keys are in the environment list
[ 30522, 13366, 4044, 1035, 6309, 1029, 1006, 23325, 1007, 23325, 1012, 2003, 1035, 1037, 1029, 1006, 23325, 1007, 1004, 1004, 23325, 1012, 2151, 1029, 1063, 1064, 1047, 1010, 1035, 1064, 10058, 1012, 2421, 1029, 1006, 1047, 1012, 2000, 1035,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
aws/aws-sdk-ruby
gems/aws-sdk-ec2/lib/aws-sdk-ec2/volume.rb
Aws::EC2.Volume.attach_to_instance
def attach_to_instance(options = {}) options = options.merge(volume_id: @id) resp = @client.attach_volume(options) resp.data end
ruby
def attach_to_instance(options = {}) options = options.merge(volume_id: @id) resp = @client.attach_volume(options) resp.data end
[ "def", "attach_to_instance", "(", "options", "=", "{", "}", ")", "options", "=", "options", ".", "merge", "(", "volume_id", ":", "@id", ")", "resp", "=", "@client", ".", "attach_volume", "(", "options", ")", "resp", ".", "data", "end" ]
@!group Actions @example Request syntax with placeholder values volume.attach_to_instance({ device: "String", # required instance_id: "String", # required dry_run: false, }) @param [Hash] options ({}) @option options [required, String] :device The device name (for example, `/dev/sdh` or `xvd...
[ "@!group", "Actions", "@example", "Request", "syntax", "with", "placeholder", "values" ]
e28b8d320ddf7b6ee0161bdd9d00fb786d99b63d
https://github.com/aws/aws-sdk-ruby/blob/e28b8d320ddf7b6ee0161bdd9d00fb786d99b63d/gems/aws-sdk-ec2/lib/aws-sdk-ec2/volume.rb#L274-L278
train
Attach this volume to an instance
[ 30522, 13366, 22476, 1035, 2000, 1035, 6013, 1006, 7047, 1027, 1063, 1065, 1007, 7047, 1027, 7047, 1012, 13590, 1006, 3872, 1035, 8909, 1024, 1030, 8909, 1007, 24501, 2361, 1027, 1030, 7396, 1012, 22476, 1035, 3872, 1006, 7047, 1007, 24501,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
aws/aws-sdk-ruby
gems/aws-sdk-glacier/lib/aws-sdk-glacier/account.rb
Aws::Glacier.Account.vaults
def vaults(options = {}) batches = Enumerator.new do |y| options = options.merge(account_id: @id) resp = @client.list_vaults(options) resp.each_page do |page| batch = [] page.data.vault_list.each do |v| batch << Vault.new( account_id: @id, ...
ruby
def vaults(options = {}) batches = Enumerator.new do |y| options = options.merge(account_id: @id) resp = @client.list_vaults(options) resp.each_page do |page| batch = [] page.data.vault_list.each do |v| batch << Vault.new( account_id: @id, ...
[ "def", "vaults", "(", "options", "=", "{", "}", ")", "batches", "=", "Enumerator", ".", "new", "do", "|", "y", "|", "options", "=", "options", ".", "merge", "(", "account_id", ":", "@id", ")", "resp", "=", "@client", ".", "list_vaults", "(", "options...
@example Request syntax with placeholder values account.vaults() @param [Hash] options ({}) @return [Vault::Collection]
[ "@example", "Request", "syntax", "with", "placeholder", "values" ]
e28b8d320ddf7b6ee0161bdd9d00fb786d99b63d
https://github.com/aws/aws-sdk-ruby/blob/e28b8d320ddf7b6ee0161bdd9d00fb786d99b63d/gems/aws-sdk-glacier/lib/aws-sdk-glacier/account.rb#L194-L212
train
Returns a collection of Vault objects.
[ 30522, 13366, 28658, 1006, 7047, 1027, 1063, 1065, 1007, 14108, 2229, 1027, 4372, 17897, 16259, 1012, 2047, 2079, 1064, 1061, 1064, 7047, 1027, 7047, 1012, 13590, 1006, 4070, 1035, 8909, 1024, 1030, 8909, 1007, 24501, 2361, 1027, 1030, 7396...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_media_services/lib/2018-07-01/generated/azure_mgmt_media_services/assets.rb
Azure::MediaServices::Mgmt::V2018_07_01.Assets.get_with_http_info
def get_with_http_info(resource_group_name, account_name, asset_name, custom_headers:nil) get_async(resource_group_name, account_name, asset_name, custom_headers:custom_headers).value! end
ruby
def get_with_http_info(resource_group_name, account_name, asset_name, custom_headers:nil) get_async(resource_group_name, account_name, asset_name, custom_headers:custom_headers).value! end
[ "def", "get_with_http_info", "(", "resource_group_name", ",", "account_name", ",", "asset_name", ",", "custom_headers", ":", "nil", ")", "get_async", "(", "resource_group_name", ",", "account_name", ",", "asset_name", ",", "custom_headers", ":custom_headers", ")", "."...
Get an Asset Get the details of an Asset in the Media Services account @param resource_group_name [String] The name of the resource group within the Azure subscription. @param account_name [String] The Media Services account name. @param asset_name [String] The Asset name. @param custom_headers [Hash{String => ...
[ "Get", "an", "Asset" ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_media_services/lib/2018-07-01/generated/azure_mgmt_media_services/assets.rb#L179-L181
train
Gets the specified index of the specified asset.
[ 30522, 13366, 2131, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 4070, 1035, 2171, 1010, 11412, 1035, 30524, 1035, 2171, 1010, 4070, 1035, 2171, 1010, 11412, 1035, 2171, 1010, 7661, 1035, 20346, 2015, 1024,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
data/azure_service_fabric/lib/6.2.0.9/generated/azure_service_fabric/service_fabric_client_apis.rb
Azure::ServiceFabric::V6_2_0_9.ServiceFabricClientAPIs.report_cluster_health_with_http_info
def report_cluster_health_with_http_info(health_information, immediate:false, timeout:60, custom_headers:nil) report_cluster_health_async(health_information, immediate:immediate, timeout:timeout, custom_headers:custom_headers).value! end
ruby
def report_cluster_health_with_http_info(health_information, immediate:false, timeout:60, custom_headers:nil) report_cluster_health_async(health_information, immediate:immediate, timeout:timeout, custom_headers:custom_headers).value! end
[ "def", "report_cluster_health_with_http_info", "(", "health_information", ",", "immediate", ":", "false", ",", "timeout", ":", "60", ",", "custom_headers", ":", "nil", ")", "report_cluster_health_async", "(", "health_information", ",", "immediate", ":", "immediate", "...
Sends a health report on the Service Fabric cluster. Sends a health report on a Service Fabric cluster. The report must contain the information about the source of the health report and property on which it is reported. The report is sent to a Service Fabric gateway node, which forwards to the health store. The ...
[ "Sends", "a", "health", "report", "on", "the", "Service", "Fabric", "cluster", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_service_fabric/lib/6.2.0.9/generated/azure_service_fabric/service_fabric_client_apis.rb#L1428-L1430
train
Report cluster health.
[ 30522, 13366, 3189, 1035, 9324, 1035, 2740, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 2740, 1035, 2592, 1010, 6234, 1024, 6270, 1010, 2051, 5833, 1024, 3438, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3189, 1035, 9324, 1035, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
castwide/solargraph
lib/solargraph/workspace.rb
Solargraph.Workspace.generate_require_paths
def generate_require_paths return configured_require_paths unless gemspec? result = [] gemspecs.each do |file| base = File.dirname(file) # @todo Evaluating gemspec files violates the goal of not running # workspace code, but this is how Gem::Specification.load does it ...
ruby
def generate_require_paths return configured_require_paths unless gemspec? result = [] gemspecs.each do |file| base = File.dirname(file) # @todo Evaluating gemspec files violates the goal of not running # workspace code, but this is how Gem::Specification.load does it ...
[ "def", "generate_require_paths", "return", "configured_require_paths", "unless", "gemspec?", "result", "=", "[", "]", "gemspecs", ".", "each", "do", "|", "file", "|", "base", "=", "File", ".", "dirname", "(", "file", ")", "# @todo Evaluating gemspec files violates t...
Generate require paths from gemspecs if they exist or assume the default lib directory. @return [Array<String>]
[ "Generate", "require", "paths", "from", "gemspecs", "if", "they", "exist", "or", "assume", "the", "default", "lib", "directory", "." ]
47badb5d151aca775ccbe6c470236089eae7839d
https://github.com/castwide/solargraph/blob/47badb5d151aca775ccbe6c470236089eae7839d/lib/solargraph/workspace.rb#L150-L172
train
Generate the require paths for the gemspec.
[ 30522, 13366, 9699, 1035, 5478, 1035, 10425, 2709, 26928, 1035, 5478, 1035, 10425, 4983, 20296, 5051, 2278, 1029, 2765, 1027, 1031, 1033, 20296, 5051, 6169, 1012, 2169, 2079, 1064, 5371, 1064, 2918, 1027, 5371, 1012, 16101, 18442, 1006, 537...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
aws/aws-sdk-ruby
build_tools/aws-sdk-code-generator/lib/aws-sdk-code-generator/hash_formatter.rb
AwsSdkCodeGenerator.HashFormatter.format
def format(obj) result = hash(obj, i: @indent, inline:@inline) result = unwrap(result, obj.size) if !@wrap result = result.strip if @inline && result.lines.to_a.length == 1 result end
ruby
def format(obj) result = hash(obj, i: @indent, inline:@inline) result = unwrap(result, obj.size) if !@wrap result = result.strip if @inline && result.lines.to_a.length == 1 result end
[ "def", "format", "(", "obj", ")", "result", "=", "hash", "(", "obj", ",", "i", ":", "@indent", ",", "inline", ":", "@inline", ")", "result", "=", "unwrap", "(", "result", ",", "obj", ".", "size", ")", "if", "!", "@wrap", "result", "=", "result", ...
@option options [Boolean] :wrap (true) When `true`, the formatted hash will be wrapped with curly braces. @option options [Boolean] :inline (false) When `true` the formatted hash will contain no newlines. @option options [Boolean] :quote_strings (false) By default, all hash string values must contain their...
[ "@option", "options", "[", "Boolean", "]", ":", "wrap", "(", "true", ")", "When", "true", "the", "formatted", "hash", "will", "be", "wrapped", "with", "curly", "braces", "." ]
e28b8d320ddf7b6ee0161bdd9d00fb786d99b63d
https://github.com/aws/aws-sdk-ruby/blob/e28b8d320ddf7b6ee0161bdd9d00fb786d99b63d/build_tools/aws-sdk-code-generator/lib/aws-sdk-code-generator/hash_formatter.rb#L21-L26
train
Returns a string representation of the object.
[ 30522, 13366, 4289, 1006, 27885, 3501, 1007, 2765, 1027, 23325, 1006, 27885, 3501, 1010, 1045, 1024, 1030, 27427, 4765, 1010, 23881, 1024, 1030, 23881, 1007, 2765, 1027, 4895, 13088, 9331, 1006, 2765, 1010, 27885, 3501, 1012, 2946, 1007, 20...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_serialconsole/lib/2018-05-01/generated/azure_mgmt_serialconsole/console.rb
Azure::Serialconsole::Mgmt::V2018_05_01.Console.disable_console
def disable_console(custom_headers:nil) response = disable_console_async(custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def disable_console(custom_headers:nil) response = disable_console_async(custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "disable_console", "(", "custom_headers", ":", "nil", ")", "response", "=", "disable_console_async", "(", "custom_headers", ":custom_headers", ")", ".", "value!", "response", ".", "body", "unless", "response", ".", "nil?", "end" ]
Disables Serial Console for a subscription @param custom_headers [Hash{String => String}] A hash of custom headers that will be added to the HTTP request. @return [SetDisabledResult] operation results.
[ "Disables", "Serial", "Console", "for", "a", "subscription" ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_serialconsole/lib/2018-05-01/generated/azure_mgmt_serialconsole/console.rb#L118-L121
train
Disables console.
[ 30522, 13366, 4487, 19150, 1035, 10122, 1006, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 4487, 19150, 1035, 10122, 1035, 2004, 6038, 2278, 1006, 7661, 1035, 20346, 2015, 1024, 7661, 1035, 20346, 2015, 1007, 1012, 3643, 999...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
data/azure_service_fabric/lib/6.2.0.9/generated/azure_service_fabric/service_fabric_client_apis.rb
Azure::ServiceFabric::V6_2_0_9.ServiceFabricClientAPIs.unprovision_application_type_with_http_info
def unprovision_application_type_with_http_info(application_type_name, unprovision_application_type_description_info, timeout:60, custom_headers:nil) unprovision_application_type_async(application_type_name, unprovision_application_type_description_info, timeout:timeout, custom_headers:custom_headers).value! ...
ruby
def unprovision_application_type_with_http_info(application_type_name, unprovision_application_type_description_info, timeout:60, custom_headers:nil) unprovision_application_type_async(application_type_name, unprovision_application_type_description_info, timeout:timeout, custom_headers:custom_headers).value! ...
[ "def", "unprovision_application_type_with_http_info", "(", "application_type_name", ",", "unprovision_application_type_description_info", ",", "timeout", ":", "60", ",", "custom_headers", ":", "nil", ")", "unprovision_application_type_async", "(", "application_type_name", ",", ...
Removes or unregisters a Service Fabric application type from the cluster. Removes or unregisters a Service Fabric application type from the cluster. This operation can only be performed if all application instances of the application type has been deleted. Once the application type is unregistered, no new applica...
[ "Removes", "or", "unregisters", "a", "Service", "Fabric", "application", "type", "from", "the", "cluster", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_service_fabric/lib/6.2.0.9/generated/azure_service_fabric/service_fabric_client_apis.rb#L5232-L5234
train
Unprovisions the specified application type.
[ 30522, 13366, 4895, 21572, 17084, 1035, 4646, 1035, 2828, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 4646, 1035, 2828, 1035, 2171, 1010, 4895, 21572, 17084, 1035, 4646, 1035, 2828, 1035, 6412, 1035, 18558, 1010, 2051, 5833, 1024, 3438, 1010...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_iot_hub/lib/2017-01-19/generated/azure_mgmt_iot_hub/iot_hub_resource.rb
Azure::IotHub::Mgmt::V2017_01_19.IotHubResource.get_keys_for_key_name_with_http_info
def get_keys_for_key_name_with_http_info(resource_group_name, resource_name, key_name, custom_headers:nil) get_keys_for_key_name_async(resource_group_name, resource_name, key_name, custom_headers:custom_headers).value! end
ruby
def get_keys_for_key_name_with_http_info(resource_group_name, resource_name, key_name, custom_headers:nil) get_keys_for_key_name_async(resource_group_name, resource_name, key_name, custom_headers:custom_headers).value! end
[ "def", "get_keys_for_key_name_with_http_info", "(", "resource_group_name", ",", "resource_name", ",", "key_name", ",", "custom_headers", ":", "nil", ")", "get_keys_for_key_name_async", "(", "resource_group_name", ",", "resource_name", ",", "key_name", ",", "custom_headers",...
Get a shared access policy by name from an IoT hub. For more information, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security. Get a shared access policy by name from an IoT hub. For more information, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security. @param resource_grou...
[ "Get", "a", "shared", "access", "policy", "by", "name", "from", "an", "IoT", "hub", ".", "For", "more", "information", "see", ":", "https", ":", "//", "docs", ".", "microsoft", ".", "com", "/", "azure", "/", "iot", "-", "hub", "/", "iot", "-", "hub...
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_iot_hub/lib/2017-01-19/generated/azure_mgmt_iot_hub/iot_hub_resource.rb#L1631-L1633
train
Gets the keys for the specified key.
[ 30522, 13366, 2131, 1035, 6309, 1035, 2005, 1035, 3145, 1035, 2171, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 7692, 1035, 2171, 1010, 3145, 1035, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_netapp/lib/2017-08-15-preview/generated/azure_mgmt_netapp/snapshots.rb
Azure::NetApp::Mgmt::V2017_08_15_preview.Snapshots.begin_delete_with_http_info
def begin_delete_with_http_info(resource_group_name, account_name, pool_name, volume_name, snapshot_name, custom_headers:nil) begin_delete_async(resource_group_name, account_name, pool_name, volume_name, snapshot_name, custom_headers:custom_headers).value! end
ruby
def begin_delete_with_http_info(resource_group_name, account_name, pool_name, volume_name, snapshot_name, custom_headers:nil) begin_delete_async(resource_group_name, account_name, pool_name, volume_name, snapshot_name, custom_headers:custom_headers).value! end
[ "def", "begin_delete_with_http_info", "(", "resource_group_name", ",", "account_name", ",", "pool_name", ",", "volume_name", ",", "snapshot_name", ",", "custom_headers", ":", "nil", ")", "begin_delete_async", "(", "resource_group_name", ",", "account_name", ",", "pool_n...
Delete snapshot @param resource_group_name [String] The name of the resource group. @param account_name [String] The name of the NetApp account @param pool_name [String] The name of the capacity pool @param volume_name [String] The name of the volume @param snapshot_name [String] The name of the mount target @pa...
[ "Delete", "snapshot" ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_netapp/lib/2017-08-15-preview/generated/azure_mgmt_netapp/snapshots.rb#L597-L599
train
Deletes a snapshot of a specified volume.
[ 30522, 13366, 4088, 1035, 3972, 12870, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 4070, 1035, 2171, 1010, 4770, 1035, 2171, 1010, 3872, 1035, 2171, 1010, 20057, 12326, 1035, 2171, 1010, 7661, 1035, 20346,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
decidim/decidim
decidim-core/app/helpers/decidim/orders_helper.rb
Decidim.OrdersHelper.order_link
def order_link(order, options = {}) link_to t("#{options[:i18n_scope]}.#{order}"), url_for(params.to_unsafe_h.merge(page: nil, order: order)), data: { order: order }, remote: true end
ruby
def order_link(order, options = {}) link_to t("#{options[:i18n_scope]}.#{order}"), url_for(params.to_unsafe_h.merge(page: nil, order: order)), data: { order: order }, remote: true end
[ "def", "order_link", "(", "order", ",", "options", "=", "{", "}", ")", "link_to", "t", "(", "\"#{options[:i18n_scope]}.#{order}\"", ")", ",", "url_for", "(", "params", ".", "to_unsafe_h", ".", "merge", "(", "page", ":", "nil", ",", "order", ":", "order", ...
Public: Returns a resource url merging current params with order order - The name of the order criteria. i.e. 'random' options - An optional hash of options * i18n_scope - The scope of the i18n translations
[ "Public", ":", "Returns", "a", "resource", "url", "merging", "current", "params", "with", "order" ]
6e2b14e559a63088669904e3c5c49a5180700cf7
https://github.com/decidim/decidim/blob/6e2b14e559a63088669904e3c5c49a5180700cf7/decidim-core/app/helpers/decidim/orders_helper.rb#L25-L27
train
Returns link to order
[ 30522, 13366, 2344, 1035, 4957, 1006, 2344, 1010, 7047, 1027, 1063, 1065, 1007, 4957, 1035, 2000, 1056, 1006, 1000, 1001, 1063, 7047, 1031, 1024, 1045, 15136, 2078, 1035, 9531, 1033, 1065, 1012, 1001, 1063, 2344, 1065, 1000, 1007, 1010, 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
projectcypress/health-data-standards
lib/hqmf-parser/2.0/data_criteria_helpers/dc_base_extract.rb
HQMF2.DataCriteriaBaseExtractions.extract_derivation_operator
def extract_derivation_operator codes = @entry.xpath("./*/cda:outboundRelationship[@typeCode='COMP']/cda:conjunctionCode/@code", HQMF2::Document::NAMESPACES) codes.inject(nil) do |d_op, code| if d_op && d_op != CONJUNCTION_CODE_TO_DERIVATION_OP[code.value] fail '...
ruby
def extract_derivation_operator codes = @entry.xpath("./*/cda:outboundRelationship[@typeCode='COMP']/cda:conjunctionCode/@code", HQMF2::Document::NAMESPACES) codes.inject(nil) do |d_op, code| if d_op && d_op != CONJUNCTION_CODE_TO_DERIVATION_OP[code.value] fail '...
[ "def", "extract_derivation_operator", "codes", "=", "@entry", ".", "xpath", "(", "\"./*/cda:outboundRelationship[@typeCode='COMP']/cda:conjunctionCode/@code\"", ",", "HQMF2", "::", "Document", "::", "NAMESPACES", ")", "codes", ".", "inject", "(", "nil", ")", "do", "|", ...
Extracts the derivation operator to be used by the data criteria, and fails out if it finds more than one (should not be valid)
[ "Extracts", "the", "derivation", "operator", "to", "be", "used", "by", "the", "data", "criteria", "and", "fails", "out", "if", "it", "finds", "more", "than", "one", "(", "should", "not", "be", "valid", ")" ]
252d4f0927c513eacde6b9ea41b76faa1423c34b
https://github.com/projectcypress/health-data-standards/blob/252d4f0927c513eacde6b9ea41b76faa1423c34b/lib/hqmf-parser/2.0/data_criteria_helpers/dc_base_extract.rb#L31-L40
train
Extract derivation operator from the data criteria
[ 30522, 13366, 14817, 1035, 29280, 1035, 6872, 9537, 1027, 1030, 4443, 1012, 26726, 8988, 1006, 1000, 1012, 1013, 1008, 1013, 3729, 2050, 1024, 2041, 15494, 16570, 10708, 5605, 1031, 1030, 2828, 16044, 1027, 1005, 4012, 2361, 1005, 1033, 101...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_reservations/lib/2019-04-01-preview/generated/azure_mgmt_reservations/reservation_order.rb
Azure::Reservations::Mgmt::V2019_04_01_preview.ReservationOrder.begin_purchase
def begin_purchase(reservation_order_id, body, custom_headers:nil) response = begin_purchase_async(reservation_order_id, body, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def begin_purchase(reservation_order_id, body, custom_headers:nil) response = begin_purchase_async(reservation_order_id, body, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "begin_purchase", "(", "reservation_order_id", ",", "body", ",", "custom_headers", ":", "nil", ")", "response", "=", "begin_purchase_async", "(", "reservation_order_id", ",", "body", ",", "custom_headers", ":custom_headers", ")", ".", "value!", "response", "....
Purchase `ReservationOrder` Purchase `ReservationOrder` and create resource under the specified URI. @param reservation_order_id [String] Order Id of the reservation @param body [PurchaseRequest] Information needed for calculate or purchase reservation @param custom_headers [Hash{String => String}] A hash of cus...
[ "Purchase", "ReservationOrder" ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_reservations/lib/2019-04-01-preview/generated/azure_mgmt_reservations/reservation_order.rb#L369-L372
train
Purchases a reservation order.
[ 30522, 13366, 4088, 1035, 5309, 1006, 11079, 1035, 2344, 1035, 8909, 1010, 2303, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 4088, 1035, 5309, 1035, 2004, 6038, 2278, 1006, 11079, 1035, 2344, 1035, 8909, 1010, 2303, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
meew0/discordrb
lib/discordrb/data/channel.rb
Discordrb.Channel.history_ids
def history_ids(amount, before_id = nil, after_id = nil, around_id = nil) logs = API::Channel.messages(@bot.token, @id, amount, before_id, after_id, around_id) JSON.parse(logs).map { |message| message['id'].to_i } end
ruby
def history_ids(amount, before_id = nil, after_id = nil, around_id = nil) logs = API::Channel.messages(@bot.token, @id, amount, before_id, after_id, around_id) JSON.parse(logs).map { |message| message['id'].to_i } end
[ "def", "history_ids", "(", "amount", ",", "before_id", "=", "nil", ",", "after_id", "=", "nil", ",", "around_id", "=", "nil", ")", "logs", "=", "API", "::", "Channel", ".", "messages", "(", "@bot", ".", "token", ",", "@id", ",", "amount", ",", "befor...
Retrieves message history, but only message IDs for use with prune. @note For internal use only @!visibility private
[ "Retrieves", "message", "history", "but", "only", "message", "IDs", "for", "use", "with", "prune", "." ]
764298a1ff0be69a1853b510d736f21c2b91a2fe
https://github.com/meew0/discordrb/blob/764298a1ff0be69a1853b510d736f21c2b91a2fe/lib/discordrb/data/channel.rb#L537-L540
train
Returns an array of history IDs for this channel.
[ 30522, 13366, 2381, 1035, 8909, 2015, 1006, 3815, 1010, 2077, 1035, 8909, 1027, 9152, 2140, 1010, 2044, 1035, 8909, 1027, 9152, 2140, 1010, 2105, 1035, 8909, 1027, 9152, 2140, 1007, 15664, 1027, 17928, 1024, 1024, 3149, 1012, 7696, 1006, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/dsc_node_configuration_operations.rb
Azure::Automation::Mgmt::V2015_10_31.DscNodeConfigurationOperations.create_or_update_with_http_info
def create_or_update_with_http_info(resource_group_name, automation_account_name, node_configuration_name, parameters, custom_headers:nil) create_or_update_async(resource_group_name, automation_account_name, node_configuration_name, parameters, custom_headers:custom_headers).value! end
ruby
def create_or_update_with_http_info(resource_group_name, automation_account_name, node_configuration_name, parameters, custom_headers:nil) create_or_update_async(resource_group_name, automation_account_name, node_configuration_name, parameters, custom_headers:custom_headers).value! end
[ "def", "create_or_update_with_http_info", "(", "resource_group_name", ",", "automation_account_name", ",", "node_configuration_name", ",", "parameters", ",", "custom_headers", ":", "nil", ")", "create_or_update_async", "(", "resource_group_name", ",", "automation_account_name",...
Create the node configuration identified by node configuration name. @param resource_group_name [String] Name of an Azure Resource group. @param automation_account_name [String] The name of the automation account. @param node_configuration_name [String] The create or update parameters for configuration. @param pa...
[ "Create", "the", "node", "configuration", "identified", "by", "node", "configuration", "name", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/dsc_node_configuration_operations.rb#L244-L246
train
Creates or updates a node configuration.
[ 30522, 13366, 3443, 1035, 2030, 1035, 10651, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 19309, 1035, 4070, 1035, 2171, 1010, 13045, 1035, 9563, 1035, 2171, 1010, 11709, 1010, 7661, 1035, 20346, 2015, 1024...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
aws/aws-sdk-ruby
gems/aws-sdk-ec2/lib/aws-sdk-ec2/resource.rb
Aws::EC2.Resource.network_acls
def network_acls(options = {}) batches = Enumerator.new do |y| resp = @client.describe_network_acls(options) resp.each_page do |page| batch = [] page.data.network_acls.each do |n| batch << NetworkAcl.new( id: n.network_acl_id, data: n, ...
ruby
def network_acls(options = {}) batches = Enumerator.new do |y| resp = @client.describe_network_acls(options) resp.each_page do |page| batch = [] page.data.network_acls.each do |n| batch << NetworkAcl.new( id: n.network_acl_id, data: n, ...
[ "def", "network_acls", "(", "options", "=", "{", "}", ")", "batches", "=", "Enumerator", ".", "new", "do", "|", "y", "|", "resp", "=", "@client", ".", "describe_network_acls", "(", "options", ")", "resp", ".", "each_page", "do", "|", "page", "|", "batc...
@example Request syntax with placeholder values network_acls = ec2.network_acls({ filters: [ { name: "String", values: ["String"], }, ], dry_run: false, network_acl_ids: ["String"], }) @param [Hash] options ({}) @option options [Array<Types::Filter>] :filters...
[ "@example", "Request", "syntax", "with", "placeholder", "values" ]
e28b8d320ddf7b6ee0161bdd9d00fb786d99b63d
https://github.com/aws/aws-sdk-ruby/blob/e28b8d320ddf7b6ee0161bdd9d00fb786d99b63d/gems/aws-sdk-ec2/lib/aws-sdk-ec2/resource.rb#L2018-L2034
train
Returns an array of NetworkAcl objects
[ 30522, 13366, 2897, 1035, 9353, 4877, 1006, 7047, 1027, 1063, 1065, 1007, 14108, 2229, 1027, 4372, 17897, 16259, 1012, 2047, 2079, 1064, 1061, 1064, 24501, 2361, 1027, 1030, 7396, 1012, 6235, 1035, 2897, 1035, 9353, 4877, 1006, 7047, 1007, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
puppetlabs/puppet
lib/puppet/util/logging.rb
Puppet::Util.Logging.puppet_deprecation_warning
def puppet_deprecation_warning(message, options = {}) key = options[:key] file = options[:file] line = options[:line] #TRANSLATORS the literals ":file", ":line", and ":key" should not be translated raise Puppet::DevError, _("Need either :file and :line, or :key") if (key.nil?) && (file.nil? || line....
ruby
def puppet_deprecation_warning(message, options = {}) key = options[:key] file = options[:file] line = options[:line] #TRANSLATORS the literals ":file", ":line", and ":key" should not be translated raise Puppet::DevError, _("Need either :file and :line, or :key") if (key.nil?) && (file.nil? || line....
[ "def", "puppet_deprecation_warning", "(", "message", ",", "options", "=", "{", "}", ")", "key", "=", "options", "[", ":key", "]", "file", "=", "options", "[", ":file", "]", "line", "=", "options", "[", ":line", "]", "#TRANSLATORS the literals \":file\", \":lin...
Logs a warning whose origin comes from Puppet source rather than somewhere internal within Puppet. Otherwise the same as deprecation_warning() @param message [String] The message to log (logs via warning) @param options [Hash] @option options [String] :file File we are warning from @option options [Integer] :lin...
[ "Logs", "a", "warning", "whose", "origin", "comes", "from", "Puppet", "source", "rather", "than", "somewhere", "internal", "within", "Puppet", ".", "Otherwise", "the", "same", "as", "deprecation_warning", "()" ]
4baeed97cbb7571ddc6635f0a24debe2e8b22cd3
https://github.com/puppetlabs/puppet/blob/4baeed97cbb7571ddc6635f0a24debe2e8b22cd3/lib/puppet/util/logging.rb#L145-L154
train
Issue a deprecation warning to a specific file and line.
[ 30522, 13366, 13997, 1035, 2139, 28139, 10719, 1035, 5432, 1006, 4471, 1010, 7047, 1027, 1063, 1065, 1007, 3145, 1027, 7047, 1031, 1024, 3145, 1033, 5371, 1027, 7047, 1031, 1024, 5371, 1033, 2240, 1027, 7047, 1031, 1024, 2240, 1033, 1001, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
decidim/decidim
decidim-core/app/commands/decidim/remove_user_from_group.rb
Decidim.RemoveUserFromGroup.call
def call return broadcast(:invalid) if membership.blank? return broadcast(:invalid) if membership.user_group != user_group transaction do remove_membership send_notification end broadcast(:ok) end
ruby
def call return broadcast(:invalid) if membership.blank? return broadcast(:invalid) if membership.user_group != user_group transaction do remove_membership send_notification end broadcast(:ok) end
[ "def", "call", "return", "broadcast", "(", ":invalid", ")", "if", "membership", ".", "blank?", "return", "broadcast", "(", ":invalid", ")", "if", "membership", ".", "user_group", "!=", "user_group", "transaction", "do", "remove_membership", "send_notification", "e...
Public: Initializes the command. membership - the UserGroupMembership to be accepted. Executes the command. Broadcasts these events: - :ok when everything is valid. - :invalid if we couldn't proceed. Returns nothing.
[ "Public", ":", "Initializes", "the", "command", "." ]
6e2b14e559a63088669904e3c5c49a5180700cf7
https://github.com/decidim/decidim/blob/6e2b14e559a63088669904e3c5c49a5180700cf7/decidim-core/app/commands/decidim/remove_user_from_group.rb#L20-L30
train
Calls the notification of the specified object.
[ 30522, 13366, 2655, 2709, 3743, 1006, 1024, 19528, 1007, 2065, 5779, 1012, 8744, 1029, 2709, 3743, 1006, 1024, 19528, 1007, 2065, 5779, 1012, 5310, 1035, 2177, 999, 1027, 5310, 1035, 2177, 12598, 2079, 6366, 1035, 5779, 4604, 1035, 26828, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
runtime/ms_rest_azure/lib/ms_rest_azure/credentials/topic_credentials.rb
MsRestAzure.TopicCredentials.sign_request
def sign_request(request) super(request) if (request.respond_to?(:request_headers)) request.request_headers['aeg-sas-key'] = @topic_key elsif request.respond_to?(:headers) request.headers['aeg-sas-key'] = @topic_key else fail ArgumentError, 'Incorrect request object was ...
ruby
def sign_request(request) super(request) if (request.respond_to?(:request_headers)) request.request_headers['aeg-sas-key'] = @topic_key elsif request.respond_to?(:headers) request.headers['aeg-sas-key'] = @topic_key else fail ArgumentError, 'Incorrect request object was ...
[ "def", "sign_request", "(", "request", ")", "super", "(", "request", ")", "if", "(", "request", ".", "respond_to?", "(", ":request_headers", ")", ")", "request", ".", "request_headers", "[", "'aeg-sas-key'", "]", "=", "@topic_key", "elsif", "request", ".", "...
Creates and initialize new instance of the TopicCredentials class. @param topic_key [String] topic key
[ "Creates", "and", "initialize", "new", "instance", "of", "the", "TopicCredentials", "class", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/runtime/ms_rest_azure/lib/ms_rest_azure/credentials/topic_credentials.rb#L27-L37
train
Sign the request object
[ 30522, 13366, 3696, 1035, 5227, 1006, 5227, 1007, 3565, 1006, 5227, 1007, 2065, 1006, 5227, 1012, 6869, 1035, 2000, 1029, 1006, 1024, 5227, 1035, 20346, 2015, 1007, 1007, 5227, 1012, 5227, 1035, 20346, 2015, 1031, 1005, 29347, 2290, 1011, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
cucumber/aruba
lib/aruba/aruba_path.rb
Aruba.ArubaPath.minimum_disk_space_used
def minimum_disk_space_used # TODO: replace Aruba.config.physical_block_size # with something like Aruba.config.fs_allocation_unit dev_bsize = Aruba.config.physical_block_size stat = File::Stat.new(to_s) blocks = stat.blocks return (blocks * dev_bsize) if blocks typical_fs_u...
ruby
def minimum_disk_space_used # TODO: replace Aruba.config.physical_block_size # with something like Aruba.config.fs_allocation_unit dev_bsize = Aruba.config.physical_block_size stat = File::Stat.new(to_s) blocks = stat.blocks return (blocks * dev_bsize) if blocks typical_fs_u...
[ "def", "minimum_disk_space_used", "# TODO: replace Aruba.config.physical_block_size", "# with something like Aruba.config.fs_allocation_unit", "dev_bsize", "=", "Aruba", ".", "config", ".", "physical_block_size", "stat", "=", "File", "::", "Stat", ".", "new", "(", "to_s", ")"...
TODO: Aruba.config.physical_block_size could be allowed to be nil (So the unit size can be autodetected) Report minimum disk space used This estimates the minimum bytes allocated by the path. E.g. a 1-byte text file on a typical EXT-3 filesystem takes up 4096 bytes (could be more if it was truncated or less for ...
[ "TODO", ":", "Aruba", ".", "config", ".", "physical_block_size", "could", "be", "allowed", "to", "be", "nil", "(", "So", "the", "unit", "size", "can", "be", "autodetected", ")", "Report", "minimum", "disk", "space", "used" ]
add17615322f575588aef1fccce875396cdf36e9
https://github.com/cucumber/aruba/blob/add17615322f575588aef1fccce875396cdf36e9/lib/aruba/aruba_path.rb#L122-L140
train
Returns the minimum disk space used by the filesystem.
[ 30522, 13366, 6263, 1035, 9785, 1035, 2686, 1035, 2109, 1001, 28681, 2080, 1024, 5672, 12098, 19761, 1012, 9530, 8873, 2290, 1012, 3558, 1035, 3796, 1035, 2946, 1001, 2007, 2242, 2066, 12098, 19761, 1012, 9530, 8873, 2290, 1012, 1042, 2015,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
sensu/sensu
lib/sensu/utilities.rb
Sensu.Utilities.attributes_match?
def attributes_match?(object, match_attributes, support_eval=true, object_attributes=nil) object_attributes ||= object match_attributes.all? do |key, value_one| value_two = object_attributes[key] case when value_one == value_two true when value_one.is_a?(Hash) && va...
ruby
def attributes_match?(object, match_attributes, support_eval=true, object_attributes=nil) object_attributes ||= object match_attributes.all? do |key, value_one| value_two = object_attributes[key] case when value_one == value_two true when value_one.is_a?(Hash) && va...
[ "def", "attributes_match?", "(", "object", ",", "match_attributes", ",", "support_eval", "=", "true", ",", "object_attributes", "=", "nil", ")", "object_attributes", "||=", "object", "match_attributes", ".", "all?", "do", "|", "key", ",", "value_one", "|", "valu...
Determine if all attribute values match those of the corresponding object attributes. Attributes match if the value objects are equivalent, are both hashes with matching key/value pairs (recursive), have equal string values, or evaluate to true (Ruby eval). @param object [Hash] @param match_attributes [Object] ...
[ "Determine", "if", "all", "attribute", "values", "match", "those", "of", "the", "corresponding", "object", "attributes", ".", "Attributes", "match", "if", "the", "value", "objects", "are", "equivalent", "are", "both", "hashes", "with", "matching", "key", "/", ...
51319e4b58c8d9986f101ad71ff729aa3e51e951
https://github.com/sensu/sensu/blob/51319e4b58c8d9986f101ad71ff729aa3e51e951/lib/sensu/utilities.rb#L304-L321
train
Returns true if the object matches the attributes of the match_attributes
[ 30522, 13366, 12332, 1035, 2674, 1029, 1006, 4874, 1010, 2674, 1035, 12332, 1010, 2490, 1035, 9345, 2140, 1027, 2995, 1010, 4874, 1035, 12332, 1027, 9152, 2140, 1007, 4874, 1035, 12332, 1064, 1064, 1027, 4874, 2674, 1035, 12332, 1012, 2035,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
jekyll/jekyll
lib/jekyll/cache.rb
Jekyll.Cache.dump
def dump(path, value) return unless disk_cache_enabled? FileUtils.mkdir_p(File.dirname(path)) File.open(path, "wb") do |cached_file| Marshal.dump(value, cached_file) end end
ruby
def dump(path, value) return unless disk_cache_enabled? FileUtils.mkdir_p(File.dirname(path)) File.open(path, "wb") do |cached_file| Marshal.dump(value, cached_file) end end
[ "def", "dump", "(", "path", ",", "value", ")", "return", "unless", "disk_cache_enabled?", "FileUtils", ".", "mkdir_p", "(", "File", ".", "dirname", "(", "path", ")", ")", "File", ".", "open", "(", "path", ",", "\"wb\"", ")", "do", "|", "cached_file", "...
rubocop:enable Security/MarshalLoad Given a path and a value, save value to disk at path. This should NEVER be called in Safe Mode Returns nothing.
[ "rubocop", ":", "enable", "Security", "/", "MarshalLoad", "Given", "a", "path", "and", "a", "value", "save", "value", "to", "disk", "at", "path", ".", "This", "should", "NEVER", "be", "called", "in", "Safe", "Mode" ]
fd74fe3e93a1fb506fa6621a2e271d7b9c5c3e3b
https://github.com/jekyll/jekyll/blob/fd74fe3e93a1fb506fa6621a2e271d7b9c5c3e3b/lib/jekyll/cache.rb#L181-L188
train
Dump the given value to a file
[ 30522, 13366, 15653, 1006, 4130, 1010, 3643, 1007, 2709, 4983, 9785, 1035, 17053, 1035, 9124, 1029, 5371, 21823, 4877, 1012, 12395, 4305, 2099, 1035, 1052, 1006, 5371, 1012, 16101, 18442, 1006, 4130, 1007, 1007, 5371, 1012, 2330, 1006, 4130...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
sunspot/sunspot
sunspot/lib/sunspot/composite_setup.rb
Sunspot.CompositeSetup.text_fields
def text_fields(field_name) if text_fields = text_fields_hash[field_name.to_sym] text_fields.to_a else raise( UnrecognizedFieldError, "No text field configured for #{@types * ', '} with name '#{field_name}'" ) end end
ruby
def text_fields(field_name) if text_fields = text_fields_hash[field_name.to_sym] text_fields.to_a else raise( UnrecognizedFieldError, "No text field configured for #{@types * ', '} with name '#{field_name}'" ) end end
[ "def", "text_fields", "(", "field_name", ")", "if", "text_fields", "=", "text_fields_hash", "[", "field_name", ".", "to_sym", "]", "text_fields", ".", "to_a", "else", "raise", "(", "UnrecognizedFieldError", ",", "\"No text field configured for #{@types * ', '} with name '...
Get a text field object by its public name. A field will be returned if it is configured for any of the enclosed types. ==== Returns Sunspot::FulltextField:: Text field with the given public name ==== Raises UnrecognizedFieldError:: If no field with that name is configured for any of the enclosed types.
[ "Get", "a", "text", "field", "object", "by", "its", "public", "name", ".", "A", "field", "will", "be", "returned", "if", "it", "is", "configured", "for", "any", "of", "the", "enclosed", "types", "." ]
31dd76cd7a14a4ef7bd541de97483d8cd72ff685
https://github.com/sunspot/sunspot/blob/31dd76cd7a14a4ef7bd541de97483d8cd72ff685/sunspot/lib/sunspot/composite_setup.rb#L51-L60
train
Returns the array of text fields for the given field name.
[ 30522, 13366, 3793, 1035, 4249, 1006, 2492, 1035, 2171, 1007, 2065, 3793, 1035, 4249, 1027, 3793, 1035, 4249, 1035, 23325, 1031, 2492, 1035, 2171, 1012, 2000, 1035, 25353, 2213, 1033, 3793, 1035, 4249, 1012, 2000, 1035, 1037, 2842, 5333, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...