repo
stringclasses
237 values
path
stringlengths
11
168
func_name
stringlengths
10
147
original_string
stringlengths
79
124k
language
stringclasses
1 value
code
stringlengths
79
124k
code_tokens
listlengths
16
45.3k
docstring
stringlengths
4
23.5k
docstring_tokens
listlengths
1
452
sha
stringclasses
237 values
url
stringlengths
95
268
partition
stringclasses
1 value
summary
stringlengths
8
229
input_ids
listlengths
502
502
token_type_ids
listlengths
502
502
attention_mask
listlengths
502
502
labels
listlengths
502
502
Azure/azure-sdk-for-ruby
management/azure_mgmt_redis/lib/2017-02-01/generated/azure_mgmt_redis/firewall_rules.rb
Azure::Redis::Mgmt::V2017_02_01.FirewallRules.delete_with_http_info
def delete_with_http_info(resource_group_name, cache_name, rule_name, custom_headers:nil) delete_async(resource_group_name, cache_name, rule_name, custom_headers:custom_headers).value! end
ruby
def delete_with_http_info(resource_group_name, cache_name, rule_name, custom_headers:nil) delete_async(resource_group_name, cache_name, rule_name, custom_headers:custom_headers).value! end
[ "def", "delete_with_http_info", "(", "resource_group_name", ",", "cache_name", ",", "rule_name", ",", "custom_headers", ":", "nil", ")", "delete_async", "(", "resource_group_name", ",", "cache_name", ",", "rule_name", ",", "custom_headers", ":custom_headers", ")", "."...
Deletes a single firewall rule in a specified redis cache. @param resource_group_name [String] The name of the resource group. @param cache_name [String] The name of the Redis cache. @param rule_name [String] The name of the firewall rule. @param custom_headers [Hash{String => String}] A hash of custom headers tha...
[ "Deletes", "a", "single", "firewall", "rule", "in", "a", "specified", "redis", "cache", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_redis/lib/2017-02-01/generated/azure_mgmt_redis/firewall_rules.rb#L358-L360
train
Deletes the specified rule from the cache.
[ 30522, 13366, 3972, 12870, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 17053, 1035, 2171, 1010, 3627, 1035, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 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...
github/linguist
samples/Ruby/sinatra.rb
Sinatra.Base.error_block!
def error_block!(key, *block_params) base = settings while base.respond_to?(:errors) next base = base.superclass unless args_array = base.errors[key] args_array.reverse_each do |args| first = args == args_array.first args += [block_params] resp = process_route(*...
ruby
def error_block!(key, *block_params) base = settings while base.respond_to?(:errors) next base = base.superclass unless args_array = base.errors[key] args_array.reverse_each do |args| first = args == args_array.first args += [block_params] resp = process_route(*...
[ "def", "error_block!", "(", "key", ",", "*", "block_params", ")", "base", "=", "settings", "while", "base", ".", "respond_to?", "(", ":errors", ")", "next", "base", "=", "base", ".", "superclass", "unless", "args_array", "=", "base", ".", "errors", "[", ...
Find an custom error block for the key(s) specified.
[ "Find", "an", "custom", "error", "block", "for", "the", "key", "(", "s", ")", "specified", "." ]
9116c90fcbb82ac03b4b33c58cfbde1fcf745e99
https://github.com/github/linguist/blob/9116c90fcbb82ac03b4b33c58cfbde1fcf745e99/samples/Ruby/sinatra.rb#L988-L1001
train
Returns the response for the error
[ 30522, 13366, 7561, 1035, 3796, 999, 1006, 3145, 1010, 1008, 3796, 1035, 11498, 5244, 1007, 2918, 1027, 10906, 2096, 2918, 1012, 6869, 1035, 2000, 1029, 1006, 1024, 10697, 1007, 2279, 2918, 1027, 2918, 1012, 3565, 26266, 4983, 12098, 5620, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
troessner/reek
lib/reek/context_builder.rb
Reek.ContextBuilder.append_new_context
def append_new_context(klass, *args) klass.new(*args).tap do |new_context| new_context.register_with_parent(current_context) end end
ruby
def append_new_context(klass, *args) klass.new(*args).tap do |new_context| new_context.register_with_parent(current_context) end end
[ "def", "append_new_context", "(", "klass", ",", "*", "args", ")", "klass", ".", "new", "(", "args", ")", ".", "tap", "do", "|", "new_context", "|", "new_context", ".", "register_with_parent", "(", "current_context", ")", "end", "end" ]
Appends a new child context to the current context but does not change the current context. @param klass [Context::*Context] context class @param args arguments for the class initializer @return [Context::*Context] the context that was appended
[ "Appends", "a", "new", "child", "context", "to", "the", "current", "context", "but", "does", "not", "change", "the", "current", "context", "." ]
8c6b5c0c6228a6981ab48543457889f9ea984054
https://github.com/troessner/reek/blob/8c6b5c0c6228a6981ab48543457889f9ea984054/lib/reek/context_builder.rb#L505-L509
train
Append a new context to the current context.
[ 30522, 13366, 10439, 10497, 1035, 2047, 1035, 6123, 1006, 1047, 27102, 1010, 1008, 12098, 5620, 1007, 1047, 27102, 1012, 2047, 1006, 1008, 12098, 5620, 1007, 1012, 11112, 2079, 1064, 2047, 1035, 6123, 1064, 2047, 1035, 6123, 1012, 4236, 103...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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/haml-lint
lib/haml_lint/options.rb
HamlLint.Options.load_reporter_class
def load_reporter_class(reporter_name) HamlLint::Reporter.const_get("#{reporter_name}Reporter") rescue NameError raise HamlLint::Exceptions::InvalidCLIOption, "#{reporter_name}Reporter does not exist" end
ruby
def load_reporter_class(reporter_name) HamlLint::Reporter.const_get("#{reporter_name}Reporter") rescue NameError raise HamlLint::Exceptions::InvalidCLIOption, "#{reporter_name}Reporter does not exist" end
[ "def", "load_reporter_class", "(", "reporter_name", ")", "HamlLint", "::", "Reporter", ".", "const_get", "(", "\"#{reporter_name}Reporter\"", ")", "rescue", "NameError", "raise", "HamlLint", "::", "Exceptions", "::", "InvalidCLIOption", ",", "\"#{reporter_name}Reporter do...
Returns the class of the specified Reporter. @param reporter_name [String] @raise [HamlLint::Exceptions::InvalidCLIOption] if reporter doesn't exist @return [Class]
[ "Returns", "the", "class", "of", "the", "specified", "Reporter", "." ]
024c773667e54cf88db938c2b368977005d70ee8
https://github.com/sds/haml-lint/blob/024c773667e54cf88db938c2b368977005d70ee8/lib/haml_lint/options.rb#L79-L84
train
Load the reporter class
[ 30522, 13366, 7170, 1035, 6398, 1035, 2465, 1006, 6398, 1035, 2171, 1007, 10654, 21202, 2102, 1024, 1024, 6398, 1012, 9530, 3367, 1035, 2131, 1006, 1000, 1001, 1063, 6398, 1035, 2171, 1065, 6398, 1000, 1007, 5343, 2171, 2121, 29165, 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...
Azure/azure-sdk-for-ruby
management/azure_mgmt_machine_learning_services/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/workspaces.rb
Azure::MachineLearningServices::Mgmt::V2018_03_01_preview.Workspaces.resync_keys
def resync_keys(resource_group_name, workspace_name, custom_headers:nil) response = resync_keys_async(resource_group_name, workspace_name, custom_headers:custom_headers).value! nil end
ruby
def resync_keys(resource_group_name, workspace_name, custom_headers:nil) response = resync_keys_async(resource_group_name, workspace_name, custom_headers:custom_headers).value! nil end
[ "def", "resync_keys", "(", "resource_group_name", ",", "workspace_name", ",", "custom_headers", ":", "nil", ")", "response", "=", "resync_keys_async", "(", "resource_group_name", ",", "workspace_name", ",", "custom_headers", ":custom_headers", ")", ".", "value!", "nil...
Resync all the keys associated with this workspace. This includes keys for the storage account, app insights and password for container registry @param resource_group_name [String] Name of the resource group in which workspace is located. @param workspace_name [String] Name of Azure Machine Learning workspace. @p...
[ "Resync", "all", "the", "keys", "associated", "with", "this", "workspace", ".", "This", "includes", "keys", "for", "the", "storage", "account", "app", "insights", "and", "password", "for", "container", "registry" ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_machine_learning_services/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/workspaces.rb#L638-L641
train
Resync the specified key sequence for the specified workspace.
[ 30522, 13366, 24501, 6038, 2278, 1035, 6309, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 2573, 15327, 1035, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 30524, 2015, 1007, 1012, 3643, 999, 9152, 2140, 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...
hashicorp/vault-ruby
lib/vault/api/auth_token.rb
Vault.AuthToken.create
def create(options = {}) headers = extract_headers!(options) json = client.post("/v1/auth/token/create", JSON.fast_generate(options), headers) return Secret.decode(json) end
ruby
def create(options = {}) headers = extract_headers!(options) json = client.post("/v1/auth/token/create", JSON.fast_generate(options), headers) return Secret.decode(json) end
[ "def", "create", "(", "options", "=", "{", "}", ")", "headers", "=", "extract_headers!", "(", "options", ")", "json", "=", "client", ".", "post", "(", "\"/v1/auth/token/create\"", ",", "JSON", ".", "fast_generate", "(", "options", ")", ",", "headers", ")",...
Create an authentication token. Note that the parameters specified below are not validated and passed directly to the Vault server. Depending on the version of Vault in operation, some of these options may not work, and newer options may be available that are not listed here. @example Creating a token Vault.aut...
[ "Create", "an", "authentication", "token", ".", "Note", "that", "the", "parameters", "specified", "below", "are", "not", "validated", "and", "passed", "directly", "to", "the", "Vault", "server", ".", "Depending", "on", "the", "version", "of", "Vault", "in", ...
02f0532a802ba1a2a0d8703a4585dab76eb9d864
https://github.com/hashicorp/vault-ruby/blob/02f0532a802ba1a2a0d8703a4585dab76eb9d864/lib/vault/api/auth_token.rb#L67-L71
train
Create a new token
[ 30522, 13366, 3443, 1006, 7047, 1027, 1063, 1065, 1007, 20346, 2015, 1027, 14817, 1035, 20346, 2015, 999, 1006, 7047, 1007, 1046, 3385, 1027, 7396, 1012, 2695, 1006, 1000, 1013, 1058, 2487, 1013, 8740, 2705, 1013, 19204, 1013, 3443, 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...
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_all_as_lazy
def list_all_as_lazy(resource_group_name, namespace_name, custom_headers:nil) response = list_all_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_all_next...
ruby
def list_all_as_lazy(resource_group_name, namespace_name, custom_headers:nil) response = list_all_async(resource_group_name, namespace_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_all_next...
[ "def", "list_all_as_lazy", "(", "resource_group_name", ",", "namespace_name", ",", "custom_headers", ":", "nil", ")", "response", "=", "list_all_async", "(", "resource_group_name", ",", "namespace_name", ",", "custom_headers", ":custom_headers", ")", ".", "value!", "u...
Gets the queues within a namespace. @param resource_group_name [String] Name of the Resource group within the Azure subscription. @param namespace_name [String] The namespace name @param custom_headers [Hash{String => String}] A hash of custom headers that will be added to the HTTP request. @return [QueueListRe...
[ "Gets", "the", "queues", "within", "a", "namespace", "." ]
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#L1416-L1425
train
Gets all the available service interfaces in a namespace.
[ 30522, 13366, 2862, 1035, 2035, 1035, 2004, 1035, 13971, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 3415, 15327, 1035, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 30524, 1010, 3415, 15327, 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
management/azure_mgmt_network/lib/2017-03-30/generated/azure_mgmt_network/network_interfaces.rb
Azure::Network::Mgmt::V2017_03_30.NetworkInterfaces.list_virtual_machine_scale_set_ip_configurations_next
def list_virtual_machine_scale_set_ip_configurations_next(next_page_link, custom_headers:nil) response = list_virtual_machine_scale_set_ip_configurations_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def list_virtual_machine_scale_set_ip_configurations_next(next_page_link, custom_headers:nil) response = list_virtual_machine_scale_set_ip_configurations_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "list_virtual_machine_scale_set_ip_configurations_next", "(", "next_page_link", ",", "custom_headers", ":", "nil", ")", "response", "=", "list_virtual_machine_scale_set_ip_configurations_next_async", "(", "next_page_link", ",", "custom_headers", ":custom_headers", ")", "."...
Get the specified network interface ip configuration in a virtual machine scale set. @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 [NetworkIn...
[ "Get", "the", "specified", "network", "interface", "ip", "configuration", "in", "a", "virtual", "machine", "scale", "set", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_network/lib/2017-03-30/generated/azure_mgmt_network/network_interfaces.rb#L742-L745
train
Gets the virtual machine scale set ip configurations.
[ 30522, 13366, 2862, 1035, 7484, 1035, 3698, 1035, 4094, 1035, 2275, 1035, 12997, 1035, 22354, 1035, 2279, 1006, 2279, 1035, 3931, 1035, 4957, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 2862, 1035, 7484, 1035, 3698, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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/lib/decidim/form_builder.rb
Decidim.FormBuilder.areas_select
def areas_select(name, collection, options = {}) selectables = if collection.first.is_a?(Decidim::Area) assemblies = collection .map { |a| [a.name[I18n.locale.to_s], a.id] } .sort_by { |arr| arr[0] } ...
ruby
def areas_select(name, collection, options = {}) selectables = if collection.first.is_a?(Decidim::Area) assemblies = collection .map { |a| [a.name[I18n.locale.to_s], a.id] } .sort_by { |arr| arr[0] } ...
[ "def", "areas_select", "(", "name", ",", "collection", ",", "options", "=", "{", "}", ")", "selectables", "=", "if", "collection", ".", "first", ".", "is_a?", "(", "Decidim", "::", "Area", ")", "assemblies", "=", "collection", ".", "map", "{", "|", "a"...
Public: Generates a select field for areas. name - The name of the field (usually area_id) collection - A collection of areas or area_types. If it's areas, we sort the selectable options alphabetically. Returns a String.
[ "Public", ":", "Generates", "a", "select", "field", "for", "areas", "." ]
6e2b14e559a63088669904e3c5c49a5180700cf7
https://github.com/decidim/decidim/blob/6e2b14e559a63088669904e3c5c49a5180700cf7/decidim-core/lib/decidim/form_builder.rb#L212-L234
train
Select a collection of areas
[ 30522, 13366, 2752, 1035, 7276, 1006, 2171, 1010, 3074, 1010, 7047, 1027, 1063, 1065, 1007, 7276, 3085, 2015, 1027, 2065, 3074, 1012, 2034, 1012, 2003, 1035, 1037, 1029, 1006, 11703, 28173, 2213, 1024, 1024, 2181, 1007, 17720, 1027, 3074, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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_stor_simple8000_series/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/jobs.rb
Azure::StorSimple8000Series::Mgmt::V2017_06_01.Jobs.cancel
def cancel(device_name, job_name, resource_group_name, manager_name, custom_headers:nil) response = cancel_async(device_name, job_name, resource_group_name, manager_name, custom_headers:custom_headers).value! nil end
ruby
def cancel(device_name, job_name, resource_group_name, manager_name, custom_headers:nil) response = cancel_async(device_name, job_name, resource_group_name, manager_name, custom_headers:custom_headers).value! nil end
[ "def", "cancel", "(", "device_name", ",", "job_name", ",", "resource_group_name", ",", "manager_name", ",", "custom_headers", ":", "nil", ")", "response", "=", "cancel_async", "(", "device_name", ",", "job_name", ",", "resource_group_name", ",", "manager_name", ",...
Cancels a job on the device. @param device_name [String] The device name @param job_name [String] The jobName. @param resource_group_name [String] The resource group name @param manager_name [String] The manager name @param custom_headers [Hash{String => String}] A hash of custom headers that will be added to th...
[ "Cancels", "a", "job", "on", "the", "device", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_stor_simple8000_series/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/jobs.rb#L241-L244
train
Cancels a job.
[ 30522, 13366, 17542, 1006, 5080, 1035, 2171, 1010, 3105, 1035, 2171, 1010, 7692, 1035, 2177, 1035, 2171, 1010, 3208, 1035, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 17542, 1035, 2004, 6038, 2278, 1006, 5080, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
zendesk/ruby-kafka
lib/kafka/cluster.rb
Kafka.Cluster.list_topics
def list_topics response = random_broker.fetch_metadata(topics: nil) response.topics.select do |topic| topic.topic_error_code == 0 end.map(&:topic_name) end
ruby
def list_topics response = random_broker.fetch_metadata(topics: nil) response.topics.select do |topic| topic.topic_error_code == 0 end.map(&:topic_name) end
[ "def", "list_topics", "response", "=", "random_broker", ".", "fetch_metadata", "(", "topics", ":", "nil", ")", "response", ".", "topics", ".", "select", "do", "|", "topic", "|", "topic", ".", "topic_error_code", "==", "0", "end", ".", "map", "(", ":topic_n...
Lists all topics in the cluster.
[ "Lists", "all", "topics", "in", "the", "cluster", "." ]
2a73471b6a607a52dc85c79301ba522acb4566b5
https://github.com/zendesk/ruby-kafka/blob/2a73471b6a607a52dc85c79301ba522acb4566b5/lib/kafka/cluster.rb#L329-L334
train
Returns an array of unique topic names
[ 30522, 13366, 2862, 1035, 7832, 3433, 1027, 6721, 1035, 20138, 1012, 18584, 1035, 27425, 1006, 7832, 1024, 9152, 2140, 1007, 3433, 1012, 7832, 1012, 7276, 2079, 1064, 8476, 1064, 8476, 1012, 8476, 1035, 7561, 1035, 3642, 1027, 1027, 1014, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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
gym/lib/gym/runner.rb
Gym.Runner.copy_files_from_path
def copy_files_from_path(path) UI.success("Exporting Files:") Dir[path].each do |f| existing_file = File.join(File.expand_path(Gym.config[:output_directory]), File.basename(f)) # If the target file already exists in output directory # we have to remove it first, otherwise cp_r fails ...
ruby
def copy_files_from_path(path) UI.success("Exporting Files:") Dir[path].each do |f| existing_file = File.join(File.expand_path(Gym.config[:output_directory]), File.basename(f)) # If the target file already exists in output directory # we have to remove it first, otherwise cp_r fails ...
[ "def", "copy_files_from_path", "(", "path", ")", "UI", ".", "success", "(", "\"Exporting Files:\"", ")", "Dir", "[", "path", "]", ".", "each", "do", "|", "f", "|", "existing_file", "=", "File", ".", "join", "(", "File", ".", "expand_path", "(", "Gym", ...
copys framework from temp folder:
[ "copys", "framework", "from", "temp", "folder", ":" ]
457c5d647c77f0e078dafa5129da616914e002c5
https://github.com/fastlane/fastlane/blob/457c5d647c77f0e078dafa5129da616914e002c5/gym/lib/gym/runner.rb#L184-L198
train
Copy the files from the given directory to the output directory
[ 30522, 13366, 6100, 1035, 6764, 1035, 2013, 1035, 4130, 1006, 4130, 1007, 21318, 1012, 3112, 1006, 1000, 9167, 2075, 6764, 1024, 1000, 1007, 16101, 1031, 4130, 1033, 1012, 2169, 2079, 1064, 1042, 1064, 4493, 1035, 5371, 1027, 5371, 1012, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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_recovery_services_site_recovery/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/replicationv_centers.rb
Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10.ReplicationvCenters.begin_create
def begin_create(fabric_name, v_center_name, add_vcenter_request, custom_headers:nil) response = begin_create_async(fabric_name, v_center_name, add_vcenter_request, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def begin_create(fabric_name, v_center_name, add_vcenter_request, custom_headers:nil) response = begin_create_async(fabric_name, v_center_name, add_vcenter_request, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "begin_create", "(", "fabric_name", ",", "v_center_name", ",", "add_vcenter_request", ",", "custom_headers", ":", "nil", ")", "response", "=", "begin_create_async", "(", "fabric_name", ",", "v_center_name", ",", "add_vcenter_request", ",", "custom_headers", ":c...
Add vCenter. The operation to create a vCenter object.. @param fabric_name [String] Fabric name. @param v_center_name [String] vCenter name. @param add_vcenter_request [AddVCenterRequest] The input to the add vCenter operation. @param custom_headers [Hash{String => String}] A hash of custom headers that will b...
[ "Add", "vCenter", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_recovery_services_site_recovery/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/replicationv_centers.rb#L463-L466
train
Creates a virtual network vCenter.
[ 30522, 13366, 4088, 1035, 3443, 1006, 8313, 1035, 2171, 1010, 1058, 1035, 2415, 1035, 2171, 1010, 5587, 1035, 18315, 29110, 1035, 5227, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 4088, 1035, 3443, 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_sql/lib/2018-06-01-preview/generated/azure_mgmt_sql/database_tables.rb
Azure::SQL::Mgmt::V2018_06_01_preview.DatabaseTables.list_by_schema_next
def list_by_schema_next(next_page_link, custom_headers:nil) response = list_by_schema_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def list_by_schema_next(next_page_link, custom_headers:nil) response = list_by_schema_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "list_by_schema_next", "(", "next_page_link", ",", "custom_headers", ":", "nil", ")", "response", "=", "list_by_schema_next_async", "(", "next_page_link", ",", "custom_headers", ":custom_headers", ")", ".", "value!", "response", ".", "body", "unless", "response...
List database tables @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 [DatabaseTableListResult] operation results.
[ "List", "database", "tables" ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_sql/lib/2018-06-01-preview/generated/azure_mgmt_sql/database_tables.rb#L259-L262
train
Gets the list of all the managed database schema versions.
[ 30522, 13366, 2862, 1035, 2011, 1035, 8040, 28433, 1035, 2279, 1006, 2279, 1035, 3931, 1035, 4957, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 2862, 1035, 2011, 1035, 8040, 28433, 1035, 2279, 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...
puppetlabs/puppet
lib/puppet/type.rb
Puppet.Type.newattr
def newattr(name) if name.is_a?(Class) klass = name name = klass.name end unless klass = self.class.attrclass(name) raise Puppet::Error, "Resource type #{self.class.name} does not support parameter #{name}" end if provider and ! provider.class.supports_parameter?(klass) mis...
ruby
def newattr(name) if name.is_a?(Class) klass = name name = klass.name end unless klass = self.class.attrclass(name) raise Puppet::Error, "Resource type #{self.class.name} does not support parameter #{name}" end if provider and ! provider.class.supports_parameter?(klass) mis...
[ "def", "newattr", "(", "name", ")", "if", "name", ".", "is_a?", "(", "Class", ")", "klass", "=", "name", "name", "=", "klass", ".", "name", "end", "unless", "klass", "=", "self", ".", "class", ".", "attrclass", "(", "name", ")", "raise", "Puppet", ...
Registers an attribute to this resource type instance. Requires either the attribute name or class as its argument. This is a noop if the named property/parameter is not supported by this resource. Otherwise, an attribute instance is created and kept in this resource's parameters hash. @overload newattr(name) @...
[ "Registers", "an", "attribute", "to", "this", "resource", "type", "instance", ".", "Requires", "either", "the", "attribute", "name", "or", "class", "as", "its", "argument", ".", "This", "is", "a", "noop", "if", "the", "named", "property", "/", "parameter", ...
4baeed97cbb7571ddc6635f0a24debe2e8b22cd3
https://github.com/puppetlabs/puppet/blob/4baeed97cbb7571ddc6635f0a24debe2e8b22cd3/lib/puppet/type.rb#L765-L784
train
Creates a new attribute on the resource.
[ 30522, 13366, 2047, 19321, 2099, 1006, 2171, 1007, 2065, 2171, 1012, 2003, 1035, 1037, 1029, 1006, 2465, 1007, 1047, 27102, 1027, 2171, 2171, 1027, 1047, 27102, 1012, 2171, 2203, 4983, 1047, 27102, 1027, 2969, 1012, 2465, 1012, 2012, 16344,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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/bot.rb
Discordrb.Bot.voice_connect
def voice_connect(chan, encrypted = true) chan = channel(chan.resolve_id) server_id = chan.server.id @should_encrypt_voice = encrypted if @voices[chan.id] debug('Voice bot exists already! Destroying it') @voices[chan.id].destroy @voices.delete(chan.id) end d...
ruby
def voice_connect(chan, encrypted = true) chan = channel(chan.resolve_id) server_id = chan.server.id @should_encrypt_voice = encrypted if @voices[chan.id] debug('Voice bot exists already! Destroying it') @voices[chan.id].destroy @voices.delete(chan.id) end d...
[ "def", "voice_connect", "(", "chan", ",", "encrypted", "=", "true", ")", "chan", "=", "channel", "(", "chan", ".", "resolve_id", ")", "server_id", "=", "chan", ".", "server", ".", "id", "@should_encrypt_voice", "=", "encrypted", "if", "@voices", "[", "chan...
Connects to a voice channel, initializes network connections and returns the {Voice::VoiceBot} over which audio data can then be sent. After connecting, the bot can also be accessed using {#voice}. If the bot is already connected to voice, the existing connection will be terminated - you don't have to call {Discordr...
[ "Connects", "to", "a", "voice", "channel", "initializes", "network", "connections", "and", "returns", "the", "{", "Voice", "::", "VoiceBot", "}", "over", "which", "audio", "data", "can", "then", "be", "sent", ".", "After", "connecting", "the", "bot", "can", ...
764298a1ff0be69a1853b510d736f21c2b91a2fe
https://github.com/meew0/discordrb/blob/764298a1ff0be69a1853b510d736f21c2b91a2fe/lib/discordrb/bot.rb#L317-L338
train
Connect to a voice channel
[ 30522, 13366, 2376, 1035, 7532, 1006, 9212, 1010, 4372, 26775, 22571, 3064, 1027, 2995, 1007, 9212, 1027, 3149, 1006, 9212, 1012, 10663, 1035, 8909, 1007, 8241, 1035, 8909, 1027, 9212, 1012, 8241, 1012, 8909, 1030, 2323, 1035, 4372, 26775, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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/2017-03-01/generated/azure_mgmt_api_management/tenant_configuration.rb
Azure::ApiManagement::Mgmt::V2017_03_01.TenantConfiguration.get_sync_state
def get_sync_state(resource_group_name, service_name, custom_headers:nil) response = get_sync_state_async(resource_group_name, service_name, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def get_sync_state(resource_group_name, service_name, custom_headers:nil) response = get_sync_state_async(resource_group_name, service_name, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "get_sync_state", "(", "resource_group_name", ",", "service_name", ",", "custom_headers", ":", "nil", ")", "response", "=", "get_sync_state_async", "(", "resource_group_name", ",", "service_name", ",", "custom_headers", ":custom_headers", ")", ".", "value!", "r...
Gets the status of the most recent synchronization between the configuration database and the Git repository. @param resource_group_name [String] The name of the resource group. @param service_name [String] The name of the API Management service. @param custom_headers [Hash{String => String}] A hash of custom head...
[ "Gets", "the", "status", "of", "the", "most", "recent", "synchronization", "between", "the", "configuration", "database", "and", "the", "Git", "repository", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_api_management/lib/2017-03-01/generated/azure_mgmt_api_management/tenant_configuration.rb#L176-L179
train
Gets the sync state of the specified managed managed
[ 30522, 13366, 2131, 1035, 26351, 1035, 2110, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 2326, 1035, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 2131, 1035, 26351, 1035, 2110, 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...
Azure/azure-sdk-for-ruby
management/azure_mgmt_web/lib/2018-02-01/generated/azure_mgmt_web/app_service_environments.rb
Azure::Web::Mgmt::V2018_02_01.AppServiceEnvironments.begin_create_or_update_worker_pool_with_http_info
def begin_create_or_update_worker_pool_with_http_info(resource_group_name, name, worker_pool_name, worker_pool_envelope, custom_headers:nil) begin_create_or_update_worker_pool_async(resource_group_name, name, worker_pool_name, worker_pool_envelope, custom_headers:custom_headers).value! end
ruby
def begin_create_or_update_worker_pool_with_http_info(resource_group_name, name, worker_pool_name, worker_pool_envelope, custom_headers:nil) begin_create_or_update_worker_pool_async(resource_group_name, name, worker_pool_name, worker_pool_envelope, custom_headers:custom_headers).value! end
[ "def", "begin_create_or_update_worker_pool_with_http_info", "(", "resource_group_name", ",", "name", ",", "worker_pool_name", ",", "worker_pool_envelope", ",", "custom_headers", ":", "nil", ")", "begin_create_or_update_worker_pool_async", "(", "resource_group_name", ",", "name"...
Create or update a worker pool. Create or update a worker pool. @param resource_group_name [String] Name of the resource group to which the resource belongs. @param name [String] Name of the App Service Environment. @param worker_pool_name [String] Name of the worker pool. @param worker_pool_envelope [WorkerPoo...
[ "Create", "or", "update", "a", "worker", "pool", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_web/lib/2018-02-01/generated/azure_mgmt_web/app_service_environments.rb#L4887-L4889
train
Creates or updates a worker pool.
[ 30522, 13366, 4088, 1035, 3443, 1035, 2030, 1035, 10651, 1035, 7309, 1035, 4770, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 2171, 1010, 7309, 1035, 4770, 1035, 2171, 1010, 7309, 1035, 4770, 1035, 11255, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Katello/katello
app/controllers/katello/api/v2/repositories_controller.rb
Katello.Api::V2::RepositoriesController.construct_repo_from_params
def construct_repo_from_params(repo_params) root = @product.add_repo(repo_params.slice(:label, :name, :description, :url, :content_type, :arch, :unprotected, :gpg_key, :ssl_ca_cert, :ssl_client_cert, :ssl_client_key, ...
ruby
def construct_repo_from_params(repo_params) root = @product.add_repo(repo_params.slice(:label, :name, :description, :url, :content_type, :arch, :unprotected, :gpg_key, :ssl_ca_cert, :ssl_client_cert, :ssl_client_key, ...
[ "def", "construct_repo_from_params", "(", "repo_params", ")", "root", "=", "@product", ".", "add_repo", "(", "repo_params", ".", "slice", "(", ":label", ",", ":name", ",", ":description", ",", ":url", ",", ":content_type", ",", ":arch", ",", ":unprotected", ",...
rubocop:disable Metrics/CyclomaticComplexity
[ "rubocop", ":", "disable", "Metrics", "/", "CyclomaticComplexity" ]
a1c9280067607999cae43bab89b53ba870856b76
https://github.com/Katello/katello/blob/a1c9280067607999cae43bab89b53ba870856b76/app/controllers/katello/api/v2/repositories_controller.rb#L471-L495
train
construct a new repo from the given params
[ 30522, 13366, 9570, 1035, 16360, 2080, 1035, 2013, 1035, 11498, 5244, 1006, 16360, 2080, 1035, 11498, 5244, 1007, 7117, 1027, 1030, 4031, 30524, 1035, 3145, 1010, 1024, 7020, 2140, 1035, 6187, 1035, 8292, 5339, 1010, 1024, 7020, 2140, 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...
cheezy/page-object
lib/page-object/accessors.rb
PageObject.Accessors.checkbox
def checkbox(name, identifier={:index => 0}, &block) standard_methods(name, identifier, 'checkbox_for', &block) define_method("check_#{name}") do return platform.check_checkbox(identifier.clone) unless block_given? self.send("#{name}_element").check end define_method("uncheck_#{n...
ruby
def checkbox(name, identifier={:index => 0}, &block) standard_methods(name, identifier, 'checkbox_for', &block) define_method("check_#{name}") do return platform.check_checkbox(identifier.clone) unless block_given? self.send("#{name}_element").check end define_method("uncheck_#{n...
[ "def", "checkbox", "(", "name", ",", "identifier", "=", "{", ":index", "=>", "0", "}", ",", "&", "block", ")", "standard_methods", "(", "name", ",", "identifier", ",", "'checkbox_for'", ",", "block", ")", "define_method", "(", "\"check_#{name}\"", ")", "do...
adds five methods - one to check, another to uncheck, another to return the state of a checkbox, another to return a PageObject::Elements::CheckBox object representing the checkbox, and a final method to check the checkbox's existence. @example checkbox(:active, :name => "is_active") # will generate 'check_a...
[ "adds", "five", "methods", "-", "one", "to", "check", "another", "to", "uncheck", "another", "to", "return", "the", "state", "of", "a", "checkbox", "another", "to", "return", "a", "PageObject", "::", "Elements", "::", "CheckBox", "object", "representing", "t...
850d775bf63768fbb1551a34480195785fe8e193
https://github.com/cheezy/page-object/blob/850d775bf63768fbb1551a34480195785fe8e193/lib/page-object/accessors.rb#L326-L340
train
Returns a checkbox object.
[ 30522, 13366, 4638, 8758, 1006, 2171, 1010, 8909, 4765, 18095, 1027, 1063, 1024, 5950, 1027, 1028, 1014, 1065, 1010, 1004, 3796, 1007, 3115, 1035, 4725, 1006, 2171, 1010, 8909, 4765, 18095, 1010, 1005, 4638, 8758, 1035, 2005, 1005, 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...
randym/axlsx
lib/axlsx/workbook/worksheet/pivot_table.rb
Axlsx.PivotTable.pages=
def pages=(v) DataTypeValidator.validate "#{self.class}.pages", [Array], v v.each do |ref| DataTypeValidator.validate "#{self.class}.pages[]", [String], ref end @pages = v end
ruby
def pages=(v) DataTypeValidator.validate "#{self.class}.pages", [Array], v v.each do |ref| DataTypeValidator.validate "#{self.class}.pages[]", [String], ref end @pages = v end
[ "def", "pages", "=", "(", "v", ")", "DataTypeValidator", ".", "validate", "\"#{self.class}.pages\"", ",", "[", "Array", "]", ",", "v", "v", ".", "each", "do", "|", "ref", "|", "DataTypeValidator", ".", "validate", "\"#{self.class}.pages[]\"", ",", "[", "Stri...
(see #pages)
[ "(", "see", "#pages", ")" ]
c593a08b2a929dac7aa8dc418b55e26b4c49dc34
https://github.com/randym/axlsx/blob/c593a08b2a929dac7aa8dc418b55e26b4c49dc34/lib/axlsx/workbook/worksheet/pivot_table.rb#L127-L133
train
Sets the pages attribute.
[ 30522, 13366, 5530, 1027, 1006, 1058, 1007, 2951, 13874, 10175, 8524, 4263, 1012, 9398, 3686, 1000, 1001, 1063, 2969, 1012, 2465, 1065, 1012, 5530, 1000, 1010, 1031, 9140, 1033, 1010, 1058, 1058, 1012, 2169, 2079, 1064, 25416, 1064, 2951, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
slim-template/slim
lib/slim/code_attributes.rb
Slim.CodeAttributes.on_html_attr
def on_html_attr(name, value) if value[0] == :slim && value[1] == :attrvalue && !options[:merge_attrs][name] # We handle the attribute as a boolean attribute escape, code = value[2], value[3] case code when 'true' [:html, :attr, name, [:multi]] when 'false', 'nil'...
ruby
def on_html_attr(name, value) if value[0] == :slim && value[1] == :attrvalue && !options[:merge_attrs][name] # We handle the attribute as a boolean attribute escape, code = value[2], value[3] case code when 'true' [:html, :attr, name, [:multi]] when 'false', 'nil'...
[ "def", "on_html_attr", "(", "name", ",", "value", ")", "if", "value", "[", "0", "]", "==", ":slim", "&&", "value", "[", "1", "]", "==", ":attrvalue", "&&", "!", "options", "[", ":merge_attrs", "]", "[", "name", "]", "# We handle the attribute as a boolean ...
Handle attribute expression `[:html, :attr, name, value]` @param [String] name Attribute name @param [Array] value Value expression @return [Array] Compiled temple expression
[ "Handle", "attribute", "expression", "[", ":", "html", ":", "attr", "name", "value", "]" ]
ae8e7338fcfb67256d2f6b50c64fc317210e31a2
https://github.com/slim-template/slim/blob/ae8e7338fcfb67256d2f6b50c64fc317210e31a2/lib/slim/code_attributes.rb#L19-L42
train
This method is called when a HTML attribute is set to a value of a HTML attribute.
[ 30522, 13366, 2006, 1035, 16129, 1035, 2012, 16344, 1006, 2171, 1010, 3643, 1007, 2065, 3643, 1031, 1014, 1033, 1027, 1027, 1024, 11754, 1004, 1004, 3643, 1031, 1015, 1033, 1027, 1027, 1024, 2012, 16344, 10175, 5657, 1004, 1004, 999, 7047, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
realm/jazzy
lib/jazzy/podspec_documenter.rb
Jazzy.PodspecDocumenter.compiler_swift_version
def compiler_swift_version(user_version) return LATEST_SWIFT_VERSION unless user_version LONG_SWIFT_VERSIONS.select do |version| user_version.start_with?(version) end.last || "#{user_version[0]}.0" end
ruby
def compiler_swift_version(user_version) return LATEST_SWIFT_VERSION unless user_version LONG_SWIFT_VERSIONS.select do |version| user_version.start_with?(version) end.last || "#{user_version[0]}.0" end
[ "def", "compiler_swift_version", "(", "user_version", ")", "return", "LATEST_SWIFT_VERSION", "unless", "user_version", "LONG_SWIFT_VERSIONS", ".", "select", "do", "|", "version", "|", "user_version", ".", "start_with?", "(", "version", ")", "end", ".", "last", "||",...
Go from a full Swift version like 4.2.1 to something valid for SWIFT_VERSION.
[ "Go", "from", "a", "full", "Swift", "version", "like", "4", ".", "2", ".", "1", "to", "something", "valid", "for", "SWIFT_VERSION", "." ]
e8744dbdb78814b237e8d57a82d40953560e9143
https://github.com/realm/jazzy/blob/e8744dbdb78814b237e8d57a82d40953560e9143/lib/jazzy/podspec_documenter.rb#L109-L115
train
Returns the compiler swift version for the given user version.
[ 30522, 13366, 21624, 1035, 9170, 1035, 2544, 1006, 5310, 1035, 2544, 1007, 2709, 6745, 1035, 9170, 1035, 2544, 4983, 5310, 1035, 2544, 2146, 1035, 9170, 1035, 4617, 1012, 7276, 2079, 1064, 2544, 1064, 5310, 1035, 2544, 1012, 2707, 1035, 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...
sunspot/sunspot
sunspot/lib/sunspot/indexer.rb
Sunspot.Indexer.document_for_full_update
def document_for_full_update(model) RSolr::Xml::Document.new( id: Adapters::InstanceAdapter.adapt(model).index_id, type: Util.superclasses_for(model.class).map(&:name) ) end
ruby
def document_for_full_update(model) RSolr::Xml::Document.new( id: Adapters::InstanceAdapter.adapt(model).index_id, type: Util.superclasses_for(model.class).map(&:name) ) end
[ "def", "document_for_full_update", "(", "model", ")", "RSolr", "::", "Xml", "::", "Document", ".", "new", "(", "id", ":", "Adapters", "::", "InstanceAdapter", ".", "adapt", "(", "model", ")", ".", "index_id", ",", "type", ":", "Util", ".", "superclasses_fo...
All indexed documents index and store the +id+ and +type+ fields. These methods construct the document hash containing those key-value pairs.
[ "All", "indexed", "documents", "index", "and", "store", "the", "+", "id", "+", "and", "+", "type", "+", "fields", ".", "These", "methods", "construct", "the", "document", "hash", "containing", "those", "key", "-", "value", "pairs", "." ]
31dd76cd7a14a4ef7bd541de97483d8cd72ff685
https://github.com/sunspot/sunspot/blob/31dd76cd7a14a4ef7bd541de97483d8cd72ff685/sunspot/lib/sunspot/indexer.rb#L143-L148
train
Returns the full update document for the given model
[ 30522, 13366, 6254, 1035, 2005, 1035, 2440, 1035, 10651, 1006, 2944, 1007, 12667, 4747, 2099, 1024, 1024, 20950, 1024, 1024, 6254, 1012, 2047, 1006, 8909, 1024, 15581, 2545, 1024, 1024, 6013, 8447, 13876, 2121, 1012, 15581, 1006, 2944, 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...
httprb/http
lib/http/connection.rb
HTTP.Connection.start_tls
def start_tls(req, options) return unless req.uri.https? && !failed_proxy_connect? ssl_context = options.ssl_context unless ssl_context ssl_context = OpenSSL::SSL::SSLContext.new ssl_context.set_params(options.ssl || {}) end @socket.start_tls(req.uri.host, options.ssl_so...
ruby
def start_tls(req, options) return unless req.uri.https? && !failed_proxy_connect? ssl_context = options.ssl_context unless ssl_context ssl_context = OpenSSL::SSL::SSLContext.new ssl_context.set_params(options.ssl || {}) end @socket.start_tls(req.uri.host, options.ssl_so...
[ "def", "start_tls", "(", "req", ",", "options", ")", "return", "unless", "req", ".", "uri", ".", "https?", "&&", "!", "failed_proxy_connect?", "ssl_context", "=", "options", ".", "ssl_context", "unless", "ssl_context", "ssl_context", "=", "OpenSSL", "::", "SSL...
Sets up SSL context and starts TLS if needed. @param (see #initialize) @return [void]
[ "Sets", "up", "SSL", "context", "and", "starts", "TLS", "if", "needed", "." ]
f37a10ea4fab3ee411907ea2e4251ddf0ca33a93
https://github.com/httprb/http/blob/f37a10ea4fab3ee411907ea2e4251ddf0ca33a93/lib/http/connection.rb#L148-L159
train
start TLS
[ 30522, 13366, 2707, 1035, 1056, 4877, 1006, 2128, 4160, 1010, 7047, 1007, 2709, 4983, 2128, 4160, 1012, 24471, 2072, 1012, 16770, 1029, 1004, 1004, 999, 3478, 1035, 24540, 1035, 7532, 1029, 7020, 2140, 1035, 6123, 1027, 7047, 1012, 7020, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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_hyperlink.rb
Axlsx.WorksheetHyperlink.ref=
def ref=(cell_reference) cell_reference = cell_reference.r if cell_reference.is_a?(Cell) Axlsx::validate_string cell_reference @ref = cell_reference end
ruby
def ref=(cell_reference) cell_reference = cell_reference.r if cell_reference.is_a?(Cell) Axlsx::validate_string cell_reference @ref = cell_reference end
[ "def", "ref", "=", "(", "cell_reference", ")", "cell_reference", "=", "cell_reference", ".", "r", "if", "cell_reference", ".", "is_a?", "(", "Cell", ")", "Axlsx", "::", "validate_string", "cell_reference", "@ref", "=", "cell_reference", "end" ]
Sets the cell location of this hyperlink in the worksheet @param [String|Cell] cell_reference The string reference or cell that defines where this hyperlink shows in the worksheet.
[ "Sets", "the", "cell", "location", "of", "this", "hyperlink", "in", "the", "worksheet" ]
c593a08b2a929dac7aa8dc418b55e26b4c49dc34
https://github.com/randym/axlsx/blob/c593a08b2a929dac7aa8dc418b55e26b4c49dc34/lib/axlsx/workbook/worksheet/worksheet_hyperlink.rb#L42-L46
train
Set the reference cell
[ 30522, 13366, 25416, 1027, 1006, 3526, 1035, 4431, 1007, 3526, 1035, 4431, 1027, 3526, 1035, 4431, 1012, 1054, 2065, 3526, 1035, 4431, 1012, 2003, 1035, 1037, 1029, 1006, 3526, 1007, 22260, 4877, 2595, 1024, 1024, 9398, 3686, 1035, 5164, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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_authorization/lib/2015-07-01/generated/azure_mgmt_authorization/provider_operations_metadata_operations.rb
Azure::Authorization::Mgmt::V2015_07_01.ProviderOperationsMetadataOperations.list_with_http_info
def list_with_http_info(api_version, expand:'resourceTypes', custom_headers:nil) list_async(api_version, expand:expand, custom_headers:custom_headers).value! end
ruby
def list_with_http_info(api_version, expand:'resourceTypes', custom_headers:nil) list_async(api_version, expand:expand, custom_headers:custom_headers).value! end
[ "def", "list_with_http_info", "(", "api_version", ",", "expand", ":", "'resourceTypes'", ",", "custom_headers", ":", "nil", ")", "list_async", "(", "api_version", ",", "expand", ":", "expand", ",", "custom_headers", ":custom_headers", ")", ".", "value!", "end" ]
Gets provider operations metadata for all resource providers. @param api_version [String] The API version to use for this operation. @param expand [String] Specifies whether to expand the values. @param custom_headers [Hash{String => String}] A hash of custom headers that will be added to the HTTP request. @retu...
[ "Gets", "provider", "operations", "metadata", "for", "all", "resource", "providers", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_authorization/lib/2015-07-01/generated/azure_mgmt_authorization/provider_operations_metadata_operations.rb#L149-L151
train
Gets the list of all the resource types in the specified API version.
[ 30522, 13366, 2862, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 17928, 1035, 2544, 1010, 7818, 1024, 1005, 7692, 13874, 2015, 1005, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 2862, 1035, 2004, 6038, 2278, 1006, 17928, 1035, 2544,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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.delete_prebuilt_entity_role
def delete_prebuilt_entity_role(app_id, version_id, entity_id, role_id, custom_headers:nil) response = delete_prebuilt_entity_role_async(app_id, version_id, entity_id, role_id, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def delete_prebuilt_entity_role(app_id, version_id, entity_id, role_id, custom_headers:nil) response = delete_prebuilt_entity_role_async(app_id, version_id, entity_id, role_id, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "delete_prebuilt_entity_role", "(", "app_id", ",", "version_id", ",", "entity_id", ",", "role_id", ",", "custom_headers", ":", "nil", ")", "response", "=", "delete_prebuilt_entity_role_async", "(", "app_id", ",", "version_id", ",", "entity_id", ",", "role_id"...
Delete a role in a prebuilt entity in a version of the application. @param app_id The application ID. @param version_id [String] The version ID. @param entity_id The entity ID. @param role_id The entity role Id. @param custom_headers [Hash{String => String}] A hash of custom headers that will be added to the HTT...
[ "Delete", "a", "role", "in", "a", "prebuilt", "entity", "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#L9304-L9307
train
Deletes a prebuilt entity role.
[ 30522, 13366, 3972, 12870, 1035, 3653, 8569, 4014, 2102, 1035, 9178, 1035, 2535, 1006, 10439, 1035, 8909, 1010, 2544, 1035, 8909, 1010, 9178, 1035, 8909, 1010, 2535, 1035, 8909, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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_edgegateway/lib/2019-03-01/generated/azure_mgmt_edgegateway/orders.rb
Azure::EdgeGateway::Mgmt::V2019_03_01.Orders.begin_create_or_update_with_http_info
def begin_create_or_update_with_http_info(device_name, order, resource_group_name, custom_headers:nil) begin_create_or_update_async(device_name, order, resource_group_name, custom_headers:custom_headers).value! end
ruby
def begin_create_or_update_with_http_info(device_name, order, resource_group_name, custom_headers:nil) begin_create_or_update_async(device_name, order, resource_group_name, custom_headers:custom_headers).value! end
[ "def", "begin_create_or_update_with_http_info", "(", "device_name", ",", "order", ",", "resource_group_name", ",", "custom_headers", ":", "nil", ")", "begin_create_or_update_async", "(", "device_name", ",", "order", ",", "resource_group_name", ",", "custom_headers", ":cus...
Creates or updates an order. @param device_name [String] The device name. @param order [Order] The order to be created or updated. @param resource_group_name [String] The resource group name. @param custom_headers [Hash{String => String}] A hash of custom headers that will be added to the HTTP request. @return ...
[ "Creates", "or", "updates", "an", "order", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_edgegateway/lib/2019-03-01/generated/azure_mgmt_edgegateway/orders.rb#L317-L319
train
Creates or updates an order.
[ 30522, 13366, 4088, 1035, 3443, 1035, 2030, 1035, 10651, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 5080, 1035, 2171, 1010, 2344, 1010, 7692, 1035, 2177, 1035, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 4088, 1035, 3443, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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
spec/support/server_discovery_and_monitoring.rb
Mongo.SDAM.find_server
def find_server(client, address_str) client.cluster.servers_list.detect{ |s| s.address.to_s == address_str } end
ruby
def find_server(client, address_str) client.cluster.servers_list.detect{ |s| s.address.to_s == address_str } end
[ "def", "find_server", "(", "client", ",", "address_str", ")", "client", ".", "cluster", ".", "servers_list", ".", "detect", "{", "|", "s", "|", "s", ".", "address", ".", "to_s", "==", "address_str", "}", "end" ]
Convenience helper to find a server by it's URI. @since 2.0.0
[ "Convenience", "helper", "to", "find", "a", "server", "by", "it", "s", "URI", "." ]
dca26d0870cb3386fad9ccc1d17228097c1fe1c8
https://github.com/mongodb/mongo-ruby-driver/blob/dca26d0870cb3386fad9ccc1d17228097c1fe1c8/spec/support/server_discovery_and_monitoring.rb#L47-L49
train
Find the server with the given address
[ 30522, 13366, 2424, 1035, 8241, 1006, 7396, 1010, 4769, 1035, 2358, 2099, 1007, 7396, 1012, 9324, 1012, 14903, 1035, 2862, 1012, 11487, 1063, 1064, 1055, 1064, 1055, 1012, 4769, 1012, 2000, 1035, 1055, 1027, 1027, 4769, 1035, 2358, 2099, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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_partition_replica_event_list_with_http_info
def get_partition_replica_event_list_with_http_info(partition_id, replica_id, start_time_utc, end_time_utc, timeout:60, events_types_filter:nil, exclude_analysis_events:nil, skip_correlation_lookup:nil, custom_headers:nil) get_partition_replica_event_list_async(partition_id, replica_id, start_time_utc, end_time_u...
ruby
def get_partition_replica_event_list_with_http_info(partition_id, replica_id, start_time_utc, end_time_utc, timeout:60, events_types_filter:nil, exclude_analysis_events:nil, skip_correlation_lookup:nil, custom_headers:nil) get_partition_replica_event_list_async(partition_id, replica_id, start_time_utc, end_time_u...
[ "def", "get_partition_replica_event_list_with_http_info", "(", "partition_id", ",", "replica_id", ",", "start_time_utc", ",", "end_time_utc", ",", "timeout", ":", "60", ",", "events_types_filter", ":", "nil", ",", "exclude_analysis_events", ":", "nil", ",", "skip_correl...
Gets a Partition Replica-related events. The response is list of ReplicaEvent objects. @param partition_id The identity of the partition. @param replica_id [String] The identifier of the replica. @param start_time_utc [String] The start time of a lookup query in ISO UTC yyyy-MM-ddTHH:mm:ssZ. @param end_time_utc...
[ "Gets", "a", "Partition", "Replica", "-", "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#L28890-L28892
train
Gets the list of events for a replica.
[ 30522, 13366, 2131, 1035, 13571, 1035, 15059, 1035, 2724, 1035, 2862, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 13571, 1035, 8909, 1010, 15059, 1035, 8909, 1010, 2707, 1035, 2051, 1035, 11396, 1010, 2203, 1035, 2051, 1035, 11396, 1010, 205...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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/mailers/decidim/export_mailer.rb
Decidim.ExportMailer.export
def export(user, export_name, export_data) @user = user @organization = user.organization filename = export_data.filename(export_name) filename_without_extension = export_data.filename(export_name, extension: false) attachments["#{filename_without_extension}.zip"] = FileZipper.new(filena...
ruby
def export(user, export_name, export_data) @user = user @organization = user.organization filename = export_data.filename(export_name) filename_without_extension = export_data.filename(export_name, extension: false) attachments["#{filename_without_extension}.zip"] = FileZipper.new(filena...
[ "def", "export", "(", "user", ",", "export_name", ",", "export_data", ")", "@user", "=", "user", "@organization", "=", "user", ".", "organization", "filename", "=", "export_data", ".", "filename", "(", "export_name", ")", "filename_without_extension", "=", "expo...
Public: Sends a notification email with the result of an export in a zipped file. user - The user to be notified. export_name - The name of the export. export_data - The data containing the result of the export. Returns nothing.
[ "Public", ":", "Sends", "a", "notification", "email", "with", "the", "result", "of", "an", "export", "in", "a", "zipped", "file", "." ]
6e2b14e559a63088669904e3c5c49a5180700cf7
https://github.com/decidim/decidim/blob/6e2b14e559a63088669904e3c5c49a5180700cf7/decidim-core/app/mailers/decidim/export_mailer.rb#L15-L27
train
Export a user to a file
[ 30522, 13366, 9167, 1006, 5310, 1010, 9167, 1035, 2171, 1010, 9167, 1035, 2951, 1007, 1030, 5310, 1027, 5310, 1030, 3029, 1027, 5310, 1012, 3029, 5371, 18442, 1027, 9167, 1035, 2951, 1012, 5371, 18442, 1006, 9167, 1035, 2171, 1007, 5371, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Shopify/doggy
lib/doggy/model.rb
Doggy.Model.save_local
def save_local ensure_read_only! self.path ||= Doggy.object_root.join("#{prefix}-#{id}.json") File.open(@path, 'w') { |f| f.write(JSON.pretty_generate(to_h)) } end
ruby
def save_local ensure_read_only! self.path ||= Doggy.object_root.join("#{prefix}-#{id}.json") File.open(@path, 'w') { |f| f.write(JSON.pretty_generate(to_h)) } end
[ "def", "save_local", "ensure_read_only!", "self", ".", "path", "||=", "Doggy", ".", "object_root", ".", "join", "(", "\"#{prefix}-#{id}.json\"", ")", "File", ".", "open", "(", "@path", ",", "'w'", ")", "{", "|", "f", "|", "f", ".", "write", "(", "JSON", ...
class << self
[ "class", "<<", "self" ]
5c5a08698925c26eb1118eae7a81a5ad39dc086f
https://github.com/Shopify/doggy/blob/5c5a08698925c26eb1118eae7a81a5ad39dc086f/lib/doggy/model.rb#L184-L188
train
Save the object to disk
[ 30522, 13366, 3828, 1035, 2334, 5676, 1035, 3191, 1035, 2069, 999, 2969, 1012, 4130, 1064, 1064, 1027, 28844, 2100, 1012, 4874, 1035, 7117, 1012, 3693, 1006, 1000, 1001, 1063, 17576, 1065, 1011, 1001, 1063, 8909, 1065, 1012, 1046, 3385, 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/drawing/drawing.rb
Axlsx.Drawing.relationships
def relationships r = Relationships.new child_objects.each { |child| r << child.relationship } r end
ruby
def relationships r = Relationships.new child_objects.each { |child| r << child.relationship } r end
[ "def", "relationships", "r", "=", "Relationships", ".", "new", "child_objects", ".", "each", "{", "|", "child", "|", "r", "<<", "child", ".", "relationship", "}", "r", "end" ]
The drawing's relationships. @return [Relationships]
[ "The", "drawing", "s", "relationships", "." ]
c593a08b2a929dac7aa8dc418b55e26b4c49dc34
https://github.com/randym/axlsx/blob/c593a08b2a929dac7aa8dc418b55e26b4c49dc34/lib/axlsx/drawing/drawing.rb#L150-L154
train
Returns the relationships in the current object.
[ 30522, 13366, 6550, 1054, 1027, 6550, 1012, 2047, 2775, 1035, 5200, 1012, 2169, 1063, 1064, 2775, 1064, 1054, 1026, 1026, 2775, 1012, 3276, 1065, 1054, 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, 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/parser.rb
CombinePDF.PDFParser.parse
def parse return [] if @string_to_parse.empty? return @parsed unless @parsed.empty? @scanner = StringScanner.new @string_to_parse @scanner.pos = 0 @scanner.skip(/[^%]*/) if @scanner.exist?(/%PDF/i) if @scanner.scan(/\%PDF\-[\d\-\.]+/) @version = @scanner.matched.scan(/[\d\.]+...
ruby
def parse return [] if @string_to_parse.empty? return @parsed unless @parsed.empty? @scanner = StringScanner.new @string_to_parse @scanner.pos = 0 @scanner.skip(/[^%]*/) if @scanner.exist?(/%PDF/i) if @scanner.scan(/\%PDF\-[\d\-\.]+/) @version = @scanner.matched.scan(/[\d\.]+...
[ "def", "parse", "return", "[", "]", "if", "@string_to_parse", ".", "empty?", "return", "@parsed", "unless", "@parsed", ".", "empty?", "@scanner", "=", "StringScanner", ".", "new", "@string_to_parse", "@scanner", ".", "pos", "=", "0", "@scanner", ".", "skip", ...
when creating a parser, it is important to set the data (String) we wish to parse. <b>the data is required and it is not possible to set the data at a later stage</b> string:: the data to be parsed, as a String object. parse the data in the new parser (the data already set through the initialize / new method)
[ "when", "creating", "a", "parser", "it", "is", "important", "to", "set", "the", "data", "(", "String", ")", "we", "wish", "to", "parse", "." ]
09054051019c069f551f3e60be789577c0f93900
https://github.com/boazsegev/combine_pdf/blob/09054051019c069f551f3e60be789577c0f93900/lib/combine_pdf/parser.rb#L64-L203
train
Parse the PDF file and return the parsed PDF object.
[ 30522, 13366, 11968, 3366, 2709, 1031, 1033, 2065, 1030, 5164, 1035, 2000, 1035, 11968, 3366, 1012, 4064, 1029, 2709, 1030, 11968, 6924, 4983, 1030, 11968, 6924, 1012, 4064, 1029, 1030, 26221, 1027, 7817, 9336, 3678, 1012, 2047, 1030, 5164,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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/gateway.rb
Discordrb.Gateway.run_async
def run_async @ws_thread = Thread.new do Thread.current[:discordrb_name] = 'websocket' connect_loop LOGGER.warn('The WS loop exited! Not sure if this is a good thing') end LOGGER.debug('WS thread created! Now waiting for confirmation that everything worked') sleep(0.5) u...
ruby
def run_async @ws_thread = Thread.new do Thread.current[:discordrb_name] = 'websocket' connect_loop LOGGER.warn('The WS loop exited! Not sure if this is a good thing') end LOGGER.debug('WS thread created! Now waiting for confirmation that everything worked') sleep(0.5) u...
[ "def", "run_async", "@ws_thread", "=", "Thread", ".", "new", "do", "Thread", ".", "current", "[", ":discordrb_name", "]", "=", "'websocket'", "connect_loop", "LOGGER", ".", "warn", "(", "'The WS loop exited! Not sure if this is a good thing'", ")", "end", "LOGGER", ...
Connect to the gateway server in a separate thread
[ "Connect", "to", "the", "gateway", "server", "in", "a", "separate", "thread" ]
764298a1ff0be69a1853b510d736f21c2b91a2fe
https://github.com/meew0/discordrb/blob/764298a1ff0be69a1853b510d736f21c2b91a2fe/lib/discordrb/gateway.rb#L163-L173
train
Run the async WS loop
[ 30522, 13366, 2448, 1035, 2004, 6038, 2278, 1030, 1059, 2015, 1035, 11689, 1027, 11689, 1012, 2047, 2079, 11689, 1012, 2783, 1031, 1024, 12532, 4103, 15185, 1035, 2171, 1033, 1027, 1005, 4773, 6499, 19869, 2102, 1005, 7532, 1035, 7077, 8833...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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_recovery_services_site_recovery/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/replication_protection_container_mappings.rb
Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10.ReplicationProtectionContainerMappings.begin_purge
def begin_purge(fabric_name, protection_container_name, mapping_name, custom_headers:nil) response = begin_purge_async(fabric_name, protection_container_name, mapping_name, custom_headers:custom_headers).value! nil end
ruby
def begin_purge(fabric_name, protection_container_name, mapping_name, custom_headers:nil) response = begin_purge_async(fabric_name, protection_container_name, mapping_name, custom_headers:custom_headers).value! nil end
[ "def", "begin_purge", "(", "fabric_name", ",", "protection_container_name", ",", "mapping_name", ",", "custom_headers", ":", "nil", ")", "response", "=", "begin_purge_async", "(", "fabric_name", ",", "protection_container_name", ",", "mapping_name", ",", "custom_headers...
Purge protection container mapping. The operation to purge(force delete) a protection container mapping @param fabric_name [String] Fabric name. @param protection_container_name [String] Protection container name. @param mapping_name [String] Protection container mapping name. @param custom_headers [Hash{String ...
[ "Purge", "protection", "container", "mapping", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_recovery_services_site_recovery/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/replication_protection_container_mappings.rb#L636-L639
train
Purges the specified protection container mapping.
[ 30522, 13366, 4088, 1035, 24694, 1006, 8313, 1035, 2171, 1010, 3860, 1035, 11661, 1035, 2171, 1010, 12375, 1035, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 4088, 1035, 24694, 1035, 2004, 6038, 2278, 1006, 8313,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
commander-rb/commander
lib/commander/runner.rb
Commander.Runner.run_active_command
def run_active_command require_valid_command if alias? command_name_from_args active_command.run(*(@aliases[command_name_from_args.to_s] + args_without_command_name)) else active_command.run(*args_without_command_name) end end
ruby
def run_active_command require_valid_command if alias? command_name_from_args active_command.run(*(@aliases[command_name_from_args.to_s] + args_without_command_name)) else active_command.run(*args_without_command_name) end end
[ "def", "run_active_command", "require_valid_command", "if", "alias?", "command_name_from_args", "active_command", ".", "run", "(", "(", "@aliases", "[", "command_name_from_args", ".", "to_s", "]", "+", "args_without_command_name", ")", ")", "else", "active_command", "."...
Run the active command.
[ "Run", "the", "active", "command", "." ]
332047c14948225462fe60042eed23adfb996d68
https://github.com/commander-rb/commander/blob/332047c14948225462fe60042eed23adfb996d68/lib/commander/runner.rb#L441-L448
train
Run the active command
[ 30522, 13366, 2448, 1035, 3161, 1035, 3094, 5478, 1035, 9398, 1035, 3094, 2065, 14593, 1029, 3094, 1035, 2171, 1035, 2013, 1035, 12098, 5620, 3161, 1035, 3094, 1012, 2448, 1006, 1008, 1006, 1030, 14593, 2229, 1031, 3094, 1035, 2171, 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_network/lib/2018-08-01/generated/azure_mgmt_network/network_watchers.rb
Azure::Network::Mgmt::V2018_08_01.NetworkWatchers.get_network_configuration_diagnostic
def get_network_configuration_diagnostic(resource_group_name, network_watcher_name, parameters, custom_headers:nil) response = get_network_configuration_diagnostic_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def get_network_configuration_diagnostic(resource_group_name, network_watcher_name, parameters, custom_headers:nil) response = get_network_configuration_diagnostic_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "get_network_configuration_diagnostic", "(", "resource_group_name", ",", "network_watcher_name", ",", "parameters", ",", "custom_headers", ":", "nil", ")", "response", "=", "get_network_configuration_diagnostic_async", "(", "resource_group_name", ",", "network_watcher_na...
Get network configuration diagnostic. @param resource_group_name [String] The name of the resource group. @param network_watcher_name [String] The name of the network watcher. @param parameters [NetworkConfigurationDiagnosticParameters] Parameters to get network configuration diagnostic. @param custom_headers [Ha...
[ "Get", "network", "configuration", "diagnostic", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_network/lib/2018-08-01/generated/azure_mgmt_network/network_watchers.rb#L1156-L1159
train
Gets the network configuration diagnostic.
[ 30522, 13366, 2131, 1035, 2897, 1035, 9563, 1035, 16474, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 2897, 1035, 3422, 2121, 1035, 2171, 1010, 11709, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 2131, 1035, 2897, 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_monitor/lib/2018-11-27-preview/generated/azure_mgmt_monitor/vminsights.rb
Azure::Monitor::Mgmt::V2018_11_27_preview.VMInsights.get_onboarding_status
def get_onboarding_status(resource_uri, custom_headers:nil) response = get_onboarding_status_async(resource_uri, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def get_onboarding_status(resource_uri, custom_headers:nil) response = get_onboarding_status_async(resource_uri, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "get_onboarding_status", "(", "resource_uri", ",", "custom_headers", ":", "nil", ")", "response", "=", "get_onboarding_status_async", "(", "resource_uri", ",", "custom_headers", ":custom_headers", ")", ".", "value!", "response", ".", "body", "unless", "response...
Retrieves the VM Insights onboarding status for the specified resource or resource scope. @param resource_uri [String] The fully qualified Azure Resource manager identifier of the resource, or scope, whose status to retrieve. @param custom_headers [Hash{String => String}] A hash of custom headers that will be add...
[ "Retrieves", "the", "VM", "Insights", "onboarding", "status", "for", "the", "specified", "resource", "or", "resource", "scope", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_monitor/lib/2018-11-27-preview/generated/azure_mgmt_monitor/vminsights.rb#L35-L38
train
Gets the onboarding status of the resource.
[ 30522, 13366, 2131, 1035, 27120, 2075, 1035, 3570, 1006, 7692, 1035, 24471, 2072, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 2131, 1035, 27120, 2075, 1035, 3570, 1035, 2004, 6038, 2278, 1006, 7692, 1035, 24471, 2072,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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.add_recipient
def add_recipient(recipient) raise 'Tried to add recipient to a non-group channel' unless group? raise ArgumentError, 'Tried to add a non-recipient to a group' unless recipient.is_a?(Recipient) @recipients << recipient end
ruby
def add_recipient(recipient) raise 'Tried to add recipient to a non-group channel' unless group? raise ArgumentError, 'Tried to add a non-recipient to a group' unless recipient.is_a?(Recipient) @recipients << recipient end
[ "def", "add_recipient", "(", "recipient", ")", "raise", "'Tried to add recipient to a non-group channel'", "unless", "group?", "raise", "ArgumentError", ",", "'Tried to add a non-recipient to a group'", "unless", "recipient", ".", "is_a?", "(", "Recipient", ")", "@recipients"...
Adds a recipient to a group channel. @param recipient [Recipient] the recipient to add to the group @raise [ArgumentError] if tried to add a non-recipient @note For internal use only @!visibility private
[ "Adds", "a", "recipient", "to", "a", "group", "channel", "." ]
764298a1ff0be69a1853b510d736f21c2b91a2fe
https://github.com/meew0/discordrb/blob/764298a1ff0be69a1853b510d736f21c2b91a2fe/lib/discordrb/data/channel.rb#L728-L733
train
Add a recipient to this channel
[ 30522, 13366, 5587, 1035, 7799, 1006, 7799, 1007, 5333, 1005, 2699, 2000, 5587, 7799, 2000, 1037, 2512, 1011, 2177, 3149, 1005, 4983, 2177, 1029, 5333, 6685, 2121, 29165, 1010, 1005, 2699, 2000, 5587, 1037, 2512, 1011, 7799, 2000, 1037, 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...
sds/scss-lint
lib/scss_lint/sass/tree.rb
Sass::Tree.Node.create_variable
def create_variable(var_name) ::Sass::Script::Tree::Variable.new(var_name).tap do |v| v.line = line # Use line number of the containing parse tree node end end
ruby
def create_variable(var_name) ::Sass::Script::Tree::Variable.new(var_name).tap do |v| v.line = line # Use line number of the containing parse tree node end end
[ "def", "create_variable", "(", "var_name", ")", "::", "Sass", "::", "Script", "::", "Tree", "::", "Variable", ".", "new", "(", "var_name", ")", ".", "tap", "do", "|", "v", "|", "v", ".", "line", "=", "line", "# Use line number of the containing parse tree no...
Sometimes the parse tree doesn't return a Sass::Script::Variable, but just the name of the variable. This helper takes that name and turns it back into a Sass::Script::Variable that supports lint reporting.
[ "Sometimes", "the", "parse", "tree", "doesn", "t", "return", "a", "Sass", "::", "Script", "::", "Variable", "but", "just", "the", "name", "of", "the", "variable", ".", "This", "helper", "takes", "that", "name", "and", "turns", "it", "back", "into", "a", ...
e99afe4ede041a431a06e585c12ce82f6ad50116
https://github.com/sds/scss-lint/blob/e99afe4ede041a431a06e585c12ce82f6ad50116/lib/scss_lint/sass/tree.rb#L24-L28
train
Create a variable
[ 30522, 13366, 3443, 1035, 8023, 1006, 13075, 1035, 2171, 1007, 1024, 1024, 21871, 2015, 1024, 1024, 5896, 1024, 1024, 3392, 1024, 1024, 8023, 1012, 2047, 1006, 13075, 1035, 2171, 1007, 1012, 11112, 2079, 1064, 1058, 1064, 1058, 1012, 30524,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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_sql/lib/2017-03-01-preview/generated/azure_mgmt_sql/long_term_retention_backups.rb
Azure::SQL::Mgmt::V2017_03_01_preview.LongTermRetentionBackups.get_with_http_info
def get_with_http_info(location_name, long_term_retention_server_name, long_term_retention_database_name, backup_name, custom_headers:nil) get_async(location_name, long_term_retention_server_name, long_term_retention_database_name, backup_name, custom_headers:custom_headers).value! end
ruby
def get_with_http_info(location_name, long_term_retention_server_name, long_term_retention_database_name, backup_name, custom_headers:nil) get_async(location_name, long_term_retention_server_name, long_term_retention_database_name, backup_name, custom_headers:custom_headers).value! end
[ "def", "get_with_http_info", "(", "location_name", ",", "long_term_retention_server_name", ",", "long_term_retention_database_name", ",", "backup_name", ",", "custom_headers", ":", "nil", ")", "get_async", "(", "location_name", ",", "long_term_retention_server_name", ",", "...
Gets a long term retention backup. @param location_name [String] The location of the database. @param long_term_retention_server_name [String] The name of the server @param long_term_retention_database_name [String] The name of the database @param backup_name [String] The backup name. @param custom_headers [Hash{...
[ "Gets", "a", "long", "term", "retention", "backup", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_sql/lib/2017-03-01-preview/generated/azure_mgmt_sql/long_term_retention_backups.rb#L56-L58
train
Gets the specified long term retention specification.
[ 30522, 13366, 2131, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 3295, 1035, 2171, 1010, 2146, 1035, 2744, 1035, 20125, 1035, 8241, 1035, 2171, 1010, 2146, 1035, 2744, 1035, 20125, 1035, 7809, 1035, 2171, 1010, 10200, 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...
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.start_quorum_loss
def start_quorum_loss(service_id, partition_id, operation_id, quorum_loss_mode, quorum_loss_duration, timeout:60, custom_headers:nil) response = start_quorum_loss_async(service_id, partition_id, operation_id, quorum_loss_mode, quorum_loss_duration, timeout:timeout, custom_headers:custom_headers).value! nil ...
ruby
def start_quorum_loss(service_id, partition_id, operation_id, quorum_loss_mode, quorum_loss_duration, timeout:60, custom_headers:nil) response = start_quorum_loss_async(service_id, partition_id, operation_id, quorum_loss_mode, quorum_loss_duration, timeout:timeout, custom_headers:custom_headers).value! nil ...
[ "def", "start_quorum_loss", "(", "service_id", ",", "partition_id", ",", "operation_id", ",", "quorum_loss_mode", ",", "quorum_loss_duration", ",", "timeout", ":", "60", ",", "custom_headers", ":", "nil", ")", "response", "=", "start_quorum_loss_async", "(", "servic...
Induces quorum loss for a given stateful service partition. Induces quorum loss for a given stateful service partition. This API is useful for a temporary quorum loss situation on your service. Call the GetQuorumLossProgress API with the same OperationId to return information on the operation started with this A...
[ "Induces", "quorum", "loss", "for", "a", "given", "stateful", "service", "partition", "." ]
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#L21013-L21016
train
Start quorum loss for the specified partition.
[ 30522, 13366, 2707, 1035, 22035, 6824, 1035, 3279, 1006, 2326, 1035, 8909, 1010, 13571, 1035, 8909, 1010, 3169, 1035, 8909, 1010, 22035, 6824, 1035, 3279, 1035, 5549, 1010, 22035, 6824, 1035, 3279, 1035, 9367, 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_network/lib/2017-03-30/generated/azure_mgmt_network/network_interfaces.rb
Azure::Network::Mgmt::V2017_03_30.NetworkInterfaces.list_virtual_machine_scale_set_ip_configurations_as_lazy
def list_virtual_machine_scale_set_ip_configurations_as_lazy(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand:nil, custom_headers:nil) response = list_virtual_machine_scale_set_ip_configurations_async(resource_group_name, virtual_machine_scale_set_name, vir...
ruby
def list_virtual_machine_scale_set_ip_configurations_as_lazy(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand:nil, custom_headers:nil) response = list_virtual_machine_scale_set_ip_configurations_async(resource_group_name, virtual_machine_scale_set_name, vir...
[ "def", "list_virtual_machine_scale_set_ip_configurations_as_lazy", "(", "resource_group_name", ",", "virtual_machine_scale_set_name", ",", "virtualmachine_index", ",", "network_interface_name", ",", "expand", ":", "nil", ",", "custom_headers", ":", "nil", ")", "response", "="...
Get the specified network interface ip configuration in a virtual machine scale set. @param resource_group_name [String] The name of the resource group. @param virtual_machine_scale_set_name [String] The name of the virtual machine scale set. @param virtualmachine_index [String] The virtual machine index. @param...
[ "Get", "the", "specified", "network", "interface", "ip", "configuration", "in", "a", "virtual", "machine", "scale", "set", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_network/lib/2017-03-30/generated/azure_mgmt_network/network_interfaces.rb#L886-L895
train
Gets all network interface ip configurations for a virtual machine.
[ 30522, 13366, 2862, 1035, 7484, 1035, 3698, 1035, 4094, 1035, 2275, 1035, 12997, 1035, 22354, 1035, 2004, 1035, 13971, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 7484, 1035, 3698, 1035, 4094, 1035, 2275, 1035, 2171, 1010, 7484, 22911, 14014,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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.resume_cluster_upgrade
def resume_cluster_upgrade(resume_cluster_upgrade_description, timeout:60, custom_headers:nil) response = resume_cluster_upgrade_async(resume_cluster_upgrade_description, timeout:timeout, custom_headers:custom_headers).value! nil end
ruby
def resume_cluster_upgrade(resume_cluster_upgrade_description, timeout:60, custom_headers:nil) response = resume_cluster_upgrade_async(resume_cluster_upgrade_description, timeout:timeout, custom_headers:custom_headers).value! nil end
[ "def", "resume_cluster_upgrade", "(", "resume_cluster_upgrade_description", ",", "timeout", ":", "60", ",", "custom_headers", ":", "nil", ")", "response", "=", "resume_cluster_upgrade_async", "(", "resume_cluster_upgrade_description", ",", "timeout", ":", "timeout", ",", ...
Make the cluster upgrade move on to the next upgrade domain. Make the cluster code or configuration upgrade move on to the next upgrade domain if appropriate. @param resume_cluster_upgrade_description [ResumeClusterUpgradeDescription] Describes the parameters for resuming a cluster upgrade. @param timeout [Integ...
[ "Make", "the", "cluster", "upgrade", "move", "on", "to", "the", "next", "upgrade", "domain", "." ]
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#L2665-L2668
train
Resumes a cluster upgrade.
[ 30522, 13366, 13746, 1035, 9324, 1035, 12200, 1006, 13746, 1035, 9324, 1035, 12200, 1035, 6412, 1010, 2051, 5833, 1024, 3438, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 13746, 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
management/azure_mgmt_web/lib/2015-08-01/generated/azure_mgmt_web/app_service_certificate_orders.rb
Azure::Web::Mgmt::V2015_08_01.AppServiceCertificateOrders.renew
def renew(resource_group_name, certificate_order_name, renew_certificate_order_request, custom_headers:nil) response = renew_async(resource_group_name, certificate_order_name, renew_certificate_order_request, custom_headers:custom_headers).value! nil end
ruby
def renew(resource_group_name, certificate_order_name, renew_certificate_order_request, custom_headers:nil) response = renew_async(resource_group_name, certificate_order_name, renew_certificate_order_request, custom_headers:custom_headers).value! nil end
[ "def", "renew", "(", "resource_group_name", ",", "certificate_order_name", ",", "renew_certificate_order_request", ",", "custom_headers", ":", "nil", ")", "response", "=", "renew_async", "(", "resource_group_name", ",", "certificate_order_name", ",", "renew_certificate_orde...
Renew an existing certificate order. Renew an existing certificate 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 renew_certificate_order_request [RenewCertificateOrderRequest] Renew...
[ "Renew", "an", "existing", "certificate", "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#L1299-L1302
train
Renews a certificate order.
[ 30522, 13366, 20687, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 8196, 1035, 2344, 1035, 2171, 1010, 20687, 1035, 8196, 1035, 2344, 1035, 5227, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 20687, 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...
Azure/azure-sdk-for-ruby
management/azure_mgmt_storagesync/lib/2018-07-01/generated/azure_mgmt_storagesync/cloud_endpoints.rb
Azure::StorageSync::Mgmt::V2018_07_01.CloudEndpoints.restoreheartbeat_with_http_info
def restoreheartbeat_with_http_info(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, custom_headers:nil) restoreheartbeat_async(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, custom_headers:custom_headers).value! end
ruby
def restoreheartbeat_with_http_info(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, custom_headers:nil) restoreheartbeat_async(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, custom_headers:custom_headers).value! end
[ "def", "restoreheartbeat_with_http_info", "(", "resource_group_name", ",", "storage_sync_service_name", ",", "sync_group_name", ",", "cloud_endpoint_name", ",", "custom_headers", ":", "nil", ")", "restoreheartbeat_async", "(", "resource_group_name", ",", "storage_sync_service_n...
Restore Heartbeat a given CloudEndpoint. @param resource_group_name [String] The name of the resource group. The name is case insensitive. @param storage_sync_service_name [String] Name of Storage Sync Service resource. @param sync_group_name [String] Name of Sync Group resource. @param cloud_endpoint_name [Stri...
[ "Restore", "Heartbeat", "a", "given", "CloudEndpoint", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_storagesync/lib/2018-07-01/generated/azure_mgmt_storagesync/cloud_endpoints.rb#L522-L524
train
Restore a heartbeat for a specified cloud endpoint.
[ 30522, 13366, 9239, 22375, 19442, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 5527, 1035, 26351, 1035, 2326, 1035, 2171, 1010, 26351, 1035, 2177, 1035, 2171, 1010, 6112, 1035, 2203, 8400, 1035, 2171, 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...
zendesk/ruby-kafka
lib/kafka/connection.rb
Kafka.Connection.send_request
def send_request(request) api_name = Protocol.api_name(request.api_key) # Default notification payload. notification = { broker_host: @host, api: api_name, request_size: 0, response_size: 0, } raise IdleConnection if idle? @logger.push_tags(api_name...
ruby
def send_request(request) api_name = Protocol.api_name(request.api_key) # Default notification payload. notification = { broker_host: @host, api: api_name, request_size: 0, response_size: 0, } raise IdleConnection if idle? @logger.push_tags(api_name...
[ "def", "send_request", "(", "request", ")", "api_name", "=", "Protocol", ".", "api_name", "(", "request", ".", "api_key", ")", "# Default notification payload.", "notification", "=", "{", "broker_host", ":", "@host", ",", "api", ":", "api_name", ",", "request_si...
Sends a request over the connection. @param request [#encode, #response_class] the request that should be encoded and written. @return [Object] the response.
[ "Sends", "a", "request", "over", "the", "connection", "." ]
2a73471b6a607a52dc85c79301ba522acb4566b5
https://github.com/zendesk/ruby-kafka/blob/2a73471b6a607a52dc85c79301ba522acb4566b5/lib/kafka/connection.rb#L83-L119
train
Sends a request to the broker.
[ 30522, 13366, 4604, 1035, 5227, 1006, 5227, 1007, 17928, 1035, 2171, 1027, 8778, 1012, 17928, 1035, 2171, 1006, 5227, 1012, 17928, 1035, 3145, 1007, 1001, 12398, 26828, 18093, 1012, 26828, 1027, 1063, 20138, 1035, 3677, 1024, 1030, 3677, 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_compute/lib/2018-04-01/generated/azure_mgmt_compute/log_analytics.rb
Azure::Compute::Mgmt::V2018_04_01.LogAnalytics.export_request_rate_by_interval
def export_request_rate_by_interval(parameters, location, custom_headers:nil) response = export_request_rate_by_interval_async(parameters, location, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def export_request_rate_by_interval(parameters, location, custom_headers:nil) response = export_request_rate_by_interval_async(parameters, location, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "export_request_rate_by_interval", "(", "parameters", ",", "location", ",", "custom_headers", ":", "nil", ")", "response", "=", "export_request_rate_by_interval_async", "(", "parameters", ",", "location", ",", "custom_headers", ":custom_headers", ")", ".", "value...
Export logs that show Api requests made by this subscription in the given time window to show throttling activities. @param parameters [RequestRateByIntervalInput] Parameters supplied to the LogAnalytics getRequestRateByInterval Api. @param location [String] The location upon which virtual-machine-sizes is querie...
[ "Export", "logs", "that", "show", "Api", "requests", "made", "by", "this", "subscription", "in", "the", "given", "time", "window", "to", "show", "throttling", "activities", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_compute/lib/2018-04-01/generated/azure_mgmt_compute/log_analytics.rb#L37-L40
train
Export request rate by interval.
[ 30522, 13366, 9167, 1035, 5227, 1035, 3446, 1035, 2011, 1035, 13483, 1006, 11709, 1010, 3295, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 9167, 1035, 5227, 1035, 3446, 1035, 2011, 1035, 13483, 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...
Azure/azure-sdk-for-ruby
management/azure_mgmt_web/lib/2018-02-01/generated/azure_mgmt_web/app_service_environments.rb
Azure::Web::Mgmt::V2018_02_01.AppServiceEnvironments.create_or_update_multi_role_pool
def create_or_update_multi_role_pool(resource_group_name, name, multi_role_pool_envelope, custom_headers:nil) response = create_or_update_multi_role_pool_async(resource_group_name, name, multi_role_pool_envelope, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def create_or_update_multi_role_pool(resource_group_name, name, multi_role_pool_envelope, custom_headers:nil) response = create_or_update_multi_role_pool_async(resource_group_name, name, multi_role_pool_envelope, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "create_or_update_multi_role_pool", "(", "resource_group_name", ",", "name", ",", "multi_role_pool_envelope", ",", "custom_headers", ":", "nil", ")", "response", "=", "create_or_update_multi_role_pool_async", "(", "resource_group_name", ",", "name", ",", "multi_role_...
Create or update a multi-role pool. Create or update a multi-role pool. @param resource_group_name [String] Name of the resource group to which the resource belongs. @param name [String] Name of the App Service Environment. @param multi_role_pool_envelope [WorkerPoolResource] Properties of the multi-role pool. ...
[ "Create", "or", "update", "a", "multi", "-", "role", "pool", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_web/lib/2018-02-01/generated/azure_mgmt_web/app_service_environments.rb#L1508-L1511
train
Creates or updates a multi - role pool.
[ 30522, 13366, 3443, 1035, 2030, 1035, 10651, 1035, 4800, 1035, 2535, 1035, 4770, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 2171, 1010, 4800, 1035, 2535, 1035, 4770, 1035, 11255, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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_computervision/lib/2.0/generated/azure_cognitiveservices_computervision/computer_vision_client.rb
Azure::CognitiveServices::ComputerVision::V2_0.ComputerVisionClient.analyze_image_by_domain_in_stream
def analyze_image_by_domain_in_stream(model, image, language:nil, custom_headers:nil) response = analyze_image_by_domain_in_stream_async(model, image, language:language, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def analyze_image_by_domain_in_stream(model, image, language:nil, custom_headers:nil) response = analyze_image_by_domain_in_stream_async(model, image, language:language, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "analyze_image_by_domain_in_stream", "(", "model", ",", "image", ",", "language", ":", "nil", ",", "custom_headers", ":", "nil", ")", "response", "=", "analyze_image_by_domain_in_stream_async", "(", "model", ",", "image", ",", "language", ":", "language", "...
This operation recognizes content within an image by applying a domain-specific model. The list of domain-specific models that are supported by the Computer Vision API can be retrieved using the /models GET request. Currently, the API provides following domain-specific models: celebrities, landmarks. Two input met...
[ "This", "operation", "recognizes", "content", "within", "an", "image", "by", "applying", "a", "domain", "-", "specific", "model", ".", "The", "list", "of", "domain", "-", "specific", "models", "that", "are", "supported", "by", "the", "Computer", "Vision", "A...
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_cognitiveservices_computervision/lib/2.0/generated/azure_cognitiveservices_computervision/computer_vision_client.rb#L2543-L2546
train
Analyze an image by domain in a stream.
[ 30522, 13366, 17908, 1035, 3746, 1035, 2011, 1035, 5884, 1035, 1999, 1035, 5460, 1006, 2944, 1010, 3746, 1010, 2653, 1024, 9152, 2140, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 17908, 1035, 3746, 1035, 2011, 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...
middleman/middleman
middleman-cli/lib/middleman-cli/init.rb
Middleman::Cli.Init.which
def which(executable) if File.file?(executable) && File.executable?(executable) executable elsif ENV['PATH'] path = ENV['PATH'].split(File::PATH_SEPARATOR).find do |p| abs_path = File.join(p, executable) File.file?(abs_path) && File.executable?(abs_path) end ...
ruby
def which(executable) if File.file?(executable) && File.executable?(executable) executable elsif ENV['PATH'] path = ENV['PATH'].split(File::PATH_SEPARATOR).find do |p| abs_path = File.join(p, executable) File.file?(abs_path) && File.executable?(abs_path) end ...
[ "def", "which", "(", "executable", ")", "if", "File", ".", "file?", "(", "executable", ")", "&&", "File", ".", "executable?", "(", "executable", ")", "executable", "elsif", "ENV", "[", "'PATH'", "]", "path", "=", "ENV", "[", "'PATH'", "]", ".", "split"...
Copied from Bundler
[ "Copied", "from", "Bundler" ]
a0dd9f78094813162895511e8516e0c5507cee50
https://github.com/middleman/middleman/blob/a0dd9f78094813162895511e8516e0c5507cee50/middleman-cli/lib/middleman-cli/init.rb#L96-L106
train
Returns the absolute path to the executable
[ 30522, 13366, 2029, 1006, 4654, 8586, 23056, 1007, 2065, 5371, 1012, 5371, 1029, 1006, 4654, 8586, 23056, 1007, 1004, 1004, 5371, 1012, 4654, 8586, 23056, 1029, 1006, 4654, 8586, 23056, 1007, 4654, 8586, 23056, 3449, 5332, 2546, 4372, 2615,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
grpc/grpc
src/ruby/lib/grpc/generic/active_call.rb
GRPC.ActiveCall.client_streamer
def client_streamer(requests, metadata: {}) raise_error_if_already_executed begin send_initial_metadata(metadata) requests.each { |r| @call.run_batch(SEND_MESSAGE => @marshal.call(r)) } rescue GRPC::Core::CallError => e receive_and_check_status # check for Cancelled rai...
ruby
def client_streamer(requests, metadata: {}) raise_error_if_already_executed begin send_initial_metadata(metadata) requests.each { |r| @call.run_batch(SEND_MESSAGE => @marshal.call(r)) } rescue GRPC::Core::CallError => e receive_and_check_status # check for Cancelled rai...
[ "def", "client_streamer", "(", "requests", ",", "metadata", ":", "{", "}", ")", "raise_error_if_already_executed", "begin", "send_initial_metadata", "(", "metadata", ")", "requests", ".", "each", "{", "|", "r", "|", "@call", ".", "run_batch", "(", "SEND_MESSAGE"...
client_streamer sends a stream of requests to a GRPC server, and returns a single response. requests provides an 'iterable' of Requests. I.e. it follows Ruby's #each enumeration protocol. In the simplest case, requests will be an array of marshallable objects; in typical case it will be an Enumerable that allows ...
[ "client_streamer", "sends", "a", "stream", "of", "requests", "to", "a", "GRPC", "server", "and", "returns", "a", "single", "response", "." ]
f3937f0e55227a4ef3a23f895d3b204a947610f8
https://github.com/grpc/grpc/blob/f3937f0e55227a4ef3a23f895d3b204a947610f8/src/ruby/lib/grpc/generic/active_call.rb#L393-L420
train
Creates a new client streamer.
[ 30522, 13366, 7396, 1035, 5460, 2121, 1006, 11186, 1010, 27425, 1024, 1063, 1065, 1007, 5333, 1035, 7561, 1035, 2065, 1035, 2525, 1035, 6472, 4088, 4604, 1035, 3988, 1035, 27425, 1006, 27425, 1007, 11186, 1012, 2169, 1063, 1064, 1054, 1064,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
cloudfoundry/bosh
src/bosh-director/lib/bosh/director/lock.rb
Bosh::Director.Lock.release
def release @refresh_mutex.synchronize { @unlock = true delete @refresh_signal.signal } @refresh_thread.join if @refresh_thread @event_manager.create_event( { user: Config.current_job.username, action: 'release', object_type: 'loc...
ruby
def release @refresh_mutex.synchronize { @unlock = true delete @refresh_signal.signal } @refresh_thread.join if @refresh_thread @event_manager.create_event( { user: Config.current_job.username, action: 'release', object_type: 'loc...
[ "def", "release", "@refresh_mutex", ".", "synchronize", "{", "@unlock", "=", "true", "delete", "@refresh_signal", ".", "signal", "}", "@refresh_thread", ".", "join", "if", "@refresh_thread", "@event_manager", ".", "create_event", "(", "{", "user", ":", "Config", ...
Release a lock that was not auto released by the lock method. @return [void]
[ "Release", "a", "lock", "that", "was", "not", "auto", "released", "by", "the", "lock", "method", "." ]
2eaa7100879ddd20cd909cd698514746195e28b7
https://github.com/cloudfoundry/bosh/blob/2eaa7100879ddd20cd909cd698514746195e28b7/src/bosh-director/lib/bosh/director/lock.rb#L89-L110
train
Release the current object from the cache
[ 30522, 13366, 2713, 1030, 25416, 21898, 1035, 20101, 2595, 1012, 26351, 8093, 10698, 4371, 1063, 1030, 19829, 1027, 2995, 3972, 12870, 1030, 25416, 21898, 1035, 4742, 1012, 4742, 1065, 1030, 25416, 21898, 1035, 11689, 1012, 3693, 2065, 1030, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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_computervision/lib/2.0/generated/azure_cognitiveservices_computervision/computer_vision_client.rb
Azure::CognitiveServices::ComputerVision::V2_0.ComputerVisionClient.recognize_text_in_stream
def recognize_text_in_stream(image, mode, custom_headers:nil) response = recognize_text_in_stream_async(image, mode, custom_headers:custom_headers).value! nil end
ruby
def recognize_text_in_stream(image, mode, custom_headers:nil) response = recognize_text_in_stream_async(image, mode, custom_headers:custom_headers).value! nil end
[ "def", "recognize_text_in_stream", "(", "image", ",", "mode", ",", "custom_headers", ":", "nil", ")", "response", "=", "recognize_text_in_stream_async", "(", "image", ",", "mode", ",", "custom_headers", ":custom_headers", ")", ".", "value!", "nil", "end" ]
Recognize Text operation. When you use the Recognize Text interface, the response contains a field called 'Operation-Location'. The 'Operation-Location' field contains the URL that you must use for your Get Recognize Text Operation Result operation. @param image An image stream. @param mode [TextRecognitionMode] ...
[ "Recognize", "Text", "operation", ".", "When", "you", "use", "the", "Recognize", "Text", "interface", "the", "response", "contains", "a", "field", "called", "Operation", "-", "Location", ".", "The", "Operation", "-", "Location", "field", "contains", "the", "UR...
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_cognitiveservices_computervision/lib/2.0/generated/azure_cognitiveservices_computervision/computer_vision_client.rb#L2973-L2976
train
Recognizes text in an image.
[ 30522, 13366, 6807, 1035, 3793, 1035, 1999, 1035, 5460, 1006, 3746, 1010, 5549, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 6807, 1035, 3793, 1035, 1999, 1035, 5460, 1035, 2004, 6038, 2278, 1006, 3746, 1010, 5549, 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_key_vault/lib/2016-10-01/generated/azure_key_vault/key_vault_client.rb
Azure::KeyVault::V2016_10_01.KeyVaultClient.get_deleted_secret
def get_deleted_secret(vault_base_url, secret_name, custom_headers:nil) response = get_deleted_secret_async(vault_base_url, secret_name, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def get_deleted_secret(vault_base_url, secret_name, custom_headers:nil) response = get_deleted_secret_async(vault_base_url, secret_name, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "get_deleted_secret", "(", "vault_base_url", ",", "secret_name", ",", "custom_headers", ":", "nil", ")", "response", "=", "get_deleted_secret_async", "(", "vault_base_url", ",", "secret_name", ",", "custom_headers", ":custom_headers", ")", ".", "value!", "respo...
Gets the specified deleted secret. The Get Deleted Secret operation returns the specified deleted secret along with its attributes. This operation requires the secrets/get permission. @param vault_base_url [String] The vault name, for example https://myvault.vault.azure.net. @param secret_name [String] The name ...
[ "Gets", "the", "specified", "deleted", "secret", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_key_vault/lib/2016-10-01/generated/azure_key_vault/key_vault_client.rb#L3492-L3495
train
Gets the deleted secret.
[ 30522, 13366, 2131, 1035, 17159, 1035, 3595, 1006, 11632, 1035, 2918, 1035, 24471, 2140, 1010, 3595, 1035, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 30524, 2140, 1010, 3595, 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...
randym/axlsx
lib/axlsx/workbook/worksheet/color_scale.rb
Axlsx.ColorScale.add
def add(options={}) value_objects << Cfvo.new(:type => options[:type] || :min, :val => options[:val] || 0) colors << Color.new(:rgb => options[:color] || "FF000000") {:cfvo => value_objects.last, :color => colors.last} end
ruby
def add(options={}) value_objects << Cfvo.new(:type => options[:type] || :min, :val => options[:val] || 0) colors << Color.new(:rgb => options[:color] || "FF000000") {:cfvo => value_objects.last, :color => colors.last} end
[ "def", "add", "(", "options", "=", "{", "}", ")", "value_objects", "<<", "Cfvo", ".", "new", "(", ":type", "=>", "options", "[", ":type", "]", "||", ":min", ",", ":val", "=>", "options", "[", ":val", "]", "||", "0", ")", "colors", "<<", "Color", ...
creates a new ColorScale object. @see Cfvo @see Color @example color_scale = Axlsx::ColorScale.new({:type => :num, :val => 0.55, :color => 'fff7696c'}) adds a new cfvo / color pair to the color scale and returns a hash containing a reference to the newly created cfvo and color objects so you can alter the def...
[ "creates", "a", "new", "ColorScale", "object", "." ]
c593a08b2a929dac7aa8dc418b55e26b4c49dc34
https://github.com/randym/axlsx/blob/c593a08b2a929dac7aa8dc418b55e26b4c49dc34/lib/axlsx/workbook/worksheet/color_scale.rb#L70-L74
train
Adds a new object to the object list.
[ 30522, 13366, 5587, 1006, 7047, 1027, 1063, 1065, 1007, 3643, 1035, 5200, 1026, 1026, 12935, 6767, 1012, 2047, 1006, 1024, 2828, 1027, 1028, 7047, 1031, 1024, 2828, 1033, 1064, 1064, 1024, 8117, 1010, 1024, 11748, 1027, 1028, 7047, 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...
Katello/katello
app/controllers/katello/api/rhsm/candlepin_proxies_controller.rb
Katello.Api::Rhsm::CandlepinProxiesController.rhsm_index
def rhsm_index @all_environments = get_content_view_environments(params[:name], Organization.current).collect do |env| { :id => env.cp_id, :name => env.label, :display_name => env.name, :description => env.content_view.description } end respond_...
ruby
def rhsm_index @all_environments = get_content_view_environments(params[:name], Organization.current).collect do |env| { :id => env.cp_id, :name => env.label, :display_name => env.name, :description => env.content_view.description } end respond_...
[ "def", "rhsm_index", "@all_environments", "=", "get_content_view_environments", "(", "params", "[", ":name", "]", ",", "Organization", ".", "current", ")", ".", "collect", "do", "|", "env", "|", "{", ":id", "=>", "env", ".", "cp_id", ",", ":name", "=>", "e...
api :GET, "/owners/:organization_id/environments", N_("List environments for RHSM")
[ "api", ":", "GET", "/", "owners", "/", ":", "organization_id", "/", "environments", "N_", "(", "List", "environments", "for", "RHSM", ")" ]
a1c9280067607999cae43bab89b53ba870856b76
https://github.com/Katello/katello/blob/a1c9280067607999cae43bab89b53ba870856b76/app/controllers/katello/api/rhsm/candlepin_proxies_controller.rb#L105-L116
train
Returns an array of all the terms of the terms of the terms of the terms of the terms of the terms of the terms of the terms of the terms of the terms of the terms of the terms of the terms of the terms of the terms.
[ 30522, 13366, 1054, 7898, 2213, 1035, 5950, 1030, 2035, 1035, 10058, 1027, 2131, 1035, 4180, 1035, 3193, 1035, 10058, 1006, 11498, 5244, 1031, 1024, 2171, 1033, 1010, 3029, 1012, 2783, 1007, 1012, 8145, 2079, 1064, 4372, 2615, 1064, 1063, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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_labservices/lib/2018-10-15/generated/azure_mgmt_labservices/lab_accounts.rb
Azure::Labservices::Mgmt::V2018_10_15.LabAccounts.create_lab_with_http_info
def create_lab_with_http_info(resource_group_name, lab_account_name, create_lab_properties, custom_headers:nil) create_lab_async(resource_group_name, lab_account_name, create_lab_properties, custom_headers:custom_headers).value! end
ruby
def create_lab_with_http_info(resource_group_name, lab_account_name, create_lab_properties, custom_headers:nil) create_lab_async(resource_group_name, lab_account_name, create_lab_properties, custom_headers:custom_headers).value! end
[ "def", "create_lab_with_http_info", "(", "resource_group_name", ",", "lab_account_name", ",", "create_lab_properties", ",", "custom_headers", ":", "nil", ")", "create_lab_async", "(", "resource_group_name", ",", "lab_account_name", ",", "create_lab_properties", ",", "custom...
Create a lab in a lab account. @param resource_group_name [String] The name of the resource group. @param lab_account_name [String] The name of the lab Account. @param create_lab_properties [CreateLabProperties] Properties for creating a managed lab and a default environment setting @param custom_headers [Hash{St...
[ "Create", "a", "lab", "in", "a", "lab", "account", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_labservices/lib/2018-10-15/generated/azure_mgmt_labservices/lab_accounts.rb#L618-L620
train
Creates a lab.
[ 30522, 13366, 3443, 1035, 6845, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 6845, 1035, 4070, 1035, 2171, 1010, 3443, 1035, 6845, 1035, 5144, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3443, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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
gym/lib/gym/runner.rb
Gym.Runner.print_command
def print_command(command, title) rows = command.map do |c| current = c.to_s.dup next unless current.length > 0 match_default_parameter = current.match(/(-.*) '(.*)'/) if match_default_parameter # That's a default parameter, like `-project 'Name'` match_default...
ruby
def print_command(command, title) rows = command.map do |c| current = c.to_s.dup next unless current.length > 0 match_default_parameter = current.match(/(-.*) '(.*)'/) if match_default_parameter # That's a default parameter, like `-project 'Name'` match_default...
[ "def", "print_command", "(", "command", ",", "title", ")", "rows", "=", "command", ".", "map", "do", "|", "c", "|", "current", "=", "c", ".", "to_s", ".", "dup", "next", "unless", "current", ".", "length", ">", "0", "match_default_parameter", "=", "cur...
@!group Printing out things @param [Array] An array containing all the parts of the command
[ "@!group", "Printing", "out", "things" ]
457c5d647c77f0e078dafa5129da616914e002c5
https://github.com/fastlane/fastlane/blob/457c5d647c77f0e078dafa5129da616914e002c5/gym/lib/gym/runner.rb#L51-L71
train
Prints the command
[ 30522, 13366, 6140, 1035, 3094, 1006, 3094, 30524, 2279, 4983, 2783, 1012, 3091, 1028, 1014, 2674, 1035, 12398, 1035, 16381, 1027, 2783, 1012, 2674, 1006, 1013, 1006, 1011, 1012, 1008, 1007, 1005, 1006, 1012, 1008, 1007, 1005, 1013, 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...
jeremytregunna/ruby-trello
lib/trello/client.rb
Trello.Client.find
def find(path, id, params = {}) response = get("/#{path.to_s.pluralize}/#{id}", params) trello_class = class_from_path(path) trello_class.parse response do |data| data.client = self end end
ruby
def find(path, id, params = {}) response = get("/#{path.to_s.pluralize}/#{id}", params) trello_class = class_from_path(path) trello_class.parse response do |data| data.client = self end end
[ "def", "find", "(", "path", ",", "id", ",", "params", "=", "{", "}", ")", "response", "=", "get", "(", "\"/#{path.to_s.pluralize}/#{id}\"", ",", "params", ")", "trello_class", "=", "class_from_path", "(", "path", ")", "trello_class", ".", "parse", "response"...
Finds given resource by id Examples: client.find(:board, "board1234") client.find(:member, "user1234")
[ "Finds", "given", "resource", "by", "id" ]
ad79c9d8152ad5395b3b61c43170908f1912bfb2
https://github.com/jeremytregunna/ruby-trello/blob/ad79c9d8152ad5395b3b61c43170908f1912bfb2/lib/trello/client.rb#L43-L49
train
Find a single resource by its ID
[ 30522, 13366, 2424, 1006, 4130, 1010, 8909, 1010, 11498, 5244, 1027, 1063, 1065, 1007, 3433, 1027, 2131, 1006, 1000, 1013, 1001, 1063, 4130, 1012, 2000, 1035, 1055, 1012, 13994, 4697, 1065, 1013, 1001, 1063, 8909, 1065, 1000, 1010, 11498, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
realm/jazzy
lib/jazzy/podspec_documenter.rb
Jazzy.PodspecDocumenter.sourcekitten_output
def sourcekitten_output(config) installation_root = Pathname(Dir.mktmpdir(['jazzy', podspec.name])) installation_root.rmtree if installation_root.exist? Pod::Config.instance.with_changes(installation_root: installation_root, verbose: false) do sandbox = ...
ruby
def sourcekitten_output(config) installation_root = Pathname(Dir.mktmpdir(['jazzy', podspec.name])) installation_root.rmtree if installation_root.exist? Pod::Config.instance.with_changes(installation_root: installation_root, verbose: false) do sandbox = ...
[ "def", "sourcekitten_output", "(", "config", ")", "installation_root", "=", "Pathname", "(", "Dir", ".", "mktmpdir", "(", "[", "'jazzy'", ",", "podspec", ".", "name", "]", ")", ")", "installation_root", ".", "rmtree", "if", "installation_root", ".", "exist?", ...
Build documentation from the given options @param [Config] options
[ "Build", "documentation", "from", "the", "given", "options" ]
e8744dbdb78814b237e8d57a82d40953560e9143
https://github.com/realm/jazzy/blob/e8744dbdb78814b237e8d57a82d40953560e9143/lib/jazzy/podspec_documenter.rb#L15-L37
train
Generate the output for the sourcekitten output
[ 30522, 13366, 3120, 23615, 6528, 1035, 6434, 1006, 9530, 8873, 2290, 1007, 8272, 1035, 7117, 1027, 4130, 18442, 1006, 16101, 1012, 12395, 21246, 17299, 4313, 1006, 1031, 1005, 4166, 2100, 1005, 1010, 26723, 5051, 2278, 1012, 2171, 1033, 100...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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.qualify
def qualify namespace, context = '' # @todo The return for self might work better elsewhere return nil if namespace.nil? return qualify(context) if namespace == 'self' cached = cache.get_qualified_namespace(namespace, context) return cached.clone unless cached.nil? result = if namesp...
ruby
def qualify namespace, context = '' # @todo The return for self might work better elsewhere return nil if namespace.nil? return qualify(context) if namespace == 'self' cached = cache.get_qualified_namespace(namespace, context) return cached.clone unless cached.nil? result = if namesp...
[ "def", "qualify", "namespace", ",", "context", "=", "''", "# @todo The return for self might work better elsewhere", "return", "nil", "if", "namespace", ".", "nil?", "return", "qualify", "(", "context", ")", "if", "namespace", "==", "'self'", "cached", "=", "cache",...
Get a fully qualified namespace name. This method will start the search in the specified context until it finds a match for the name. @param namespace [String, nil] The namespace to match @param context [String] The context to search @return [String]
[ "Get", "a", "fully", "qualified", "namespace", "name", ".", "This", "method", "will", "start", "the", "search", "in", "the", "specified", "context", "until", "it", "finds", "a", "match", "for", "the", "name", "." ]
47badb5d151aca775ccbe6c470236089eae7839d
https://github.com/castwide/solargraph/blob/47badb5d151aca775ccbe6c470236089eae7839d/lib/solargraph/api_map.rb#L220-L233
train
Returns the qualified namespace for the given context.
[ 30522, 13366, 7515, 3415, 15327, 1010, 6123, 1027, 1005, 1005, 1001, 1030, 28681, 2080, 1996, 2709, 2005, 2969, 2453, 2147, 2488, 6974, 2709, 9152, 2140, 2065, 3415, 15327, 1012, 9152, 2140, 1029, 2709, 7515, 1006, 6123, 1007, 2065, 3415, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
mojombo/chronic
lib/chronic/handlers.rb
Chronic.Handlers.handle_srp
def handle_srp(tokens, span, options) distance = tokens[0].get_tag(Scalar).type repeater = tokens[1].get_tag(Repeater) pointer = tokens[2].get_tag(Pointer).type repeater.offset(span, distance, pointer) if repeater.respond_to?(:offset) end
ruby
def handle_srp(tokens, span, options) distance = tokens[0].get_tag(Scalar).type repeater = tokens[1].get_tag(Repeater) pointer = tokens[2].get_tag(Pointer).type repeater.offset(span, distance, pointer) if repeater.respond_to?(:offset) end
[ "def", "handle_srp", "(", "tokens", ",", "span", ",", "options", ")", "distance", "=", "tokens", "[", "0", "]", ".", "get_tag", "(", "Scalar", ")", ".", "type", "repeater", "=", "tokens", "[", "1", "]", ".", "get_tag", "(", "Repeater", ")", "pointer"...
arrows Handle scalar/repeater/pointer helper
[ "arrows", "Handle", "scalar", "/", "repeater", "/", "pointer", "helper" ]
2b1eae7ec440d767c09e0b1a7f0e9bcf30ce1d6c
https://github.com/mojombo/chronic/blob/2b1eae7ec440d767c09e0b1a7f0e9bcf30ce1d6c/lib/chronic/handlers.rb#L446-L452
train
Handle the SRP tag
[ 30522, 13366, 5047, 1035, 5034, 2361, 1006, 19204, 2015, 1010, 8487, 1010, 7047, 1007, 3292, 1027, 19204, 2015, 1031, 1014, 1033, 1012, 2131, 1035, 6415, 1006, 26743, 2099, 1007, 1012, 2828, 9377, 2121, 1027, 19204, 2015, 1031, 1015, 1033, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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/converter/pass1/data_criteria_converter.rb
HQMF.DataCriteriaConverter.create_group_data_criteria
def create_group_data_criteria(preconditions, type, value, parent_id, id, standard_category, qds_data_type) extract_group_data_criteria_tree(HQMF::DataCriteria::UNION,preconditions, type, parent_id) end
ruby
def create_group_data_criteria(preconditions, type, value, parent_id, id, standard_category, qds_data_type) extract_group_data_criteria_tree(HQMF::DataCriteria::UNION,preconditions, type, parent_id) end
[ "def", "create_group_data_criteria", "(", "preconditions", ",", "type", ",", "value", ",", "parent_id", ",", "id", ",", "standard_category", ",", "qds_data_type", ")", "extract_group_data_criteria_tree", "(", "HQMF", "::", "DataCriteria", "::", "UNION", ",", "precon...
grouping data criteria are used to allow a single reference off of a temporal reference or subset operator grouping data criteria can reference either regular data criteria as children, or other grouping data criteria
[ "grouping", "data", "criteria", "are", "used", "to", "allow", "a", "single", "reference", "off", "of", "a", "temporal", "reference", "or", "subset", "operator", "grouping", "data", "criteria", "can", "reference", "either", "regular", "data", "criteria", "as", ...
252d4f0927c513eacde6b9ea41b76faa1423c34b
https://github.com/projectcypress/health-data-standards/blob/252d4f0927c513eacde6b9ea41b76faa1423c34b/lib/hqmf-parser/converter/pass1/data_criteria_converter.rb#L46-L48
train
Create a group data criteria
[ 30522, 13366, 3443, 1035, 2177, 1035, 2951, 1035, 9181, 1006, 3653, 8663, 20562, 2015, 1010, 2828, 1010, 3643, 1010, 6687, 1035, 8909, 1010, 8909, 1010, 3115, 1035, 4696, 1010, 1053, 5104, 1035, 2951, 1035, 2828, 1007, 14817, 1035, 2177, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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_key_vault/lib/2016-10-01/generated/azure_key_vault/key_vault_client.rb
Azure::KeyVault::V2016_10_01.KeyVaultClient.get_secrets_next
def get_secrets_next(next_page_link, custom_headers:nil) response = get_secrets_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def get_secrets_next(next_page_link, custom_headers:nil) response = get_secrets_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "get_secrets_next", "(", "next_page_link", ",", "custom_headers", ":", "nil", ")", "response", "=", "get_secrets_next_async", "(", "next_page_link", ",", "custom_headers", ":custom_headers", ")", ".", "value!", "response", ".", "body", "unless", "response", "...
List secrets in a specified key vault. The Get Secrets operation is applicable to the entire vault. However, only the base secret identifier and its attributes are provided in the response. Individual secret versions are not listed in the response. This operation requires the secrets/list permission. @param next...
[ "List", "secrets", "in", "a", "specified", "key", "vault", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_key_vault/lib/2016-10-01/generated/azure_key_vault/key_vault_client.rb#L8572-L8575
train
Gets the secrets of the specified App Service Environment.
[ 30522, 13366, 2131, 1035, 7800, 1035, 2279, 1006, 2279, 1035, 3931, 1035, 4957, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 2131, 1035, 7800, 1035, 2279, 1035, 2004, 6038, 2278, 1006, 2279, 1035, 3931, 1035, 4957, 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...
rails/rails
activerecord/lib/active_record/associations.rb
ActiveRecord.Associations.association
def association(name) #:nodoc: association = association_instance_get(name) if association.nil? unless reflection = self.class._reflect_on_association(name) raise AssociationNotFoundError.new(self, name) end association = reflection.association_class.new(self, reflection) ...
ruby
def association(name) #:nodoc: association = association_instance_get(name) if association.nil? unless reflection = self.class._reflect_on_association(name) raise AssociationNotFoundError.new(self, name) end association = reflection.association_class.new(self, reflection) ...
[ "def", "association", "(", "name", ")", "#:nodoc:", "association", "=", "association_instance_get", "(", "name", ")", "if", "association", ".", "nil?", "unless", "reflection", "=", "self", ".", "class", ".", "_reflect_on_association", "(", "name", ")", "raise", ...
Returns the association instance for the given name, instantiating it if it doesn't already exist
[ "Returns", "the", "association", "instance", "for", "the", "given", "name", "instantiating", "it", "if", "it", "doesn", "t", "already", "exist" ]
85a8bc644be69908f05740a5886ec19cd3679df5
https://github.com/rails/rails/blob/85a8bc644be69908f05740a5886ec19cd3679df5/activerecord/lib/active_record/associations.rb#L230-L242
train
Returns the association object for the given name.
[ 30522, 13366, 2523, 1006, 2171, 1007, 1001, 1024, 7293, 10085, 1024, 2523, 1027, 2523, 1035, 6013, 1035, 2131, 1006, 2171, 1007, 2065, 2523, 1012, 9152, 2140, 1029, 4983, 9185, 1027, 2969, 1012, 2465, 1012, 1035, 8339, 1035, 2006, 1035, 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_key_vault/lib/2016-10-01/generated/azure_key_vault/key_vault_client.rb
Azure::KeyVault::V2016_10_01.KeyVaultClient.get_sas_definition
def get_sas_definition(vault_base_url, storage_account_name, sas_definition_name, custom_headers:nil) response = get_sas_definition_async(vault_base_url, storage_account_name, sas_definition_name, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def get_sas_definition(vault_base_url, storage_account_name, sas_definition_name, custom_headers:nil) response = get_sas_definition_async(vault_base_url, storage_account_name, sas_definition_name, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "get_sas_definition", "(", "vault_base_url", ",", "storage_account_name", ",", "sas_definition_name", ",", "custom_headers", ":", "nil", ")", "response", "=", "get_sas_definition_async", "(", "vault_base_url", ",", "storage_account_name", ",", "sas_definition_name", ...
Gets information about a SAS definition for the specified storage account. This operation requires the storage/getsas permission. @param vault_base_url [String] The vault name, for example https://myvault.vault.azure.net. @param storage_account_name [String] The name of the storage account. @param sas_definition_...
[ "Gets", "information", "about", "a", "SAS", "definition", "for", "the", "specified", "storage", "account", ".", "This", "operation", "requires", "the", "storage", "/", "getsas", "permission", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_key_vault/lib/2016-10-01/generated/azure_key_vault/key_vault_client.rb#L7883-L7886
train
Gets the sas definition.
[ 30522, 13366, 2131, 1035, 21871, 1035, 6210, 1006, 11632, 1035, 2918, 1035, 24471, 2140, 1010, 5527, 1035, 4070, 1035, 2171, 1010, 21871, 1035, 6210, 1035, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 2131, 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_contentmoderator/lib/1.0/generated/azure_cognitiveservices_contentmoderator/reviews.rb
Azure::CognitiveServices::ContentModerator::V1_0.Reviews.publish_video_review
def publish_video_review(team_name, review_id, custom_headers:nil) response = publish_video_review_async(team_name, review_id, custom_headers:custom_headers).value! nil end
ruby
def publish_video_review(team_name, review_id, custom_headers:nil) response = publish_video_review_async(team_name, review_id, custom_headers:custom_headers).value! nil end
[ "def", "publish_video_review", "(", "team_name", ",", "review_id", ",", "custom_headers", ":", "nil", ")", "response", "=", "publish_video_review_async", "(", "team_name", ",", "review_id", ",", "custom_headers", ":custom_headers", ")", ".", "value!", "nil", "end" ]
Publish video review to make it available for review. @param team_name [String] Your team name. @param review_id [String] Id of the review. @param custom_headers [Hash{String => String}] A hash of custom headers that will be added to the HTTP request.
[ "Publish", "video", "review", "to", "make", "it", "available", "for", "review", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_cognitiveservices_contentmoderator/lib/1.0/generated/azure_cognitiveservices_contentmoderator/reviews.rb#L1057-L1060
train
Publishes a video review to a team.
[ 30522, 13366, 10172, 1035, 2678, 1035, 3319, 1006, 2136, 1035, 2171, 1010, 3319, 1035, 8909, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 10172, 1035, 2678, 1035, 3319, 1035, 2004, 6038, 2278, 1006, 2136, 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...
Azure/azure-sdk-for-ruby
management/azure_mgmt_datalake_analytics/lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb
Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview.Account.add_storage_account_with_http_info
def add_storage_account_with_http_info(resource_group_name, account_name, storage_account_name, parameters, custom_headers:nil) add_storage_account_async(resource_group_name, account_name, storage_account_name, parameters, custom_headers:custom_headers).value! end
ruby
def add_storage_account_with_http_info(resource_group_name, account_name, storage_account_name, parameters, custom_headers:nil) add_storage_account_async(resource_group_name, account_name, storage_account_name, parameters, custom_headers:custom_headers).value! end
[ "def", "add_storage_account_with_http_info", "(", "resource_group_name", ",", "account_name", ",", "storage_account_name", ",", "parameters", ",", "custom_headers", ":", "nil", ")", "add_storage_account_async", "(", "resource_group_name", ",", "account_name", ",", "storage_...
Updates the specified Data Lake Analytics account to add an Azure Storage account. @param resource_group_name [String] The name of the Azure resource group that contains the Data Lake Analytics account. @param account_name [String] The name of the Data Lake Analytics account to which to add the Azure Storage acco...
[ "Updates", "the", "specified", "Data", "Lake", "Analytics", "account", "to", "add", "an", "Azure", "Storage", "account", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_datalake_analytics/lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb#L375-L377
train
Adds a storage account to the specified Data Lake Store account.
[ 30522, 13366, 5587, 1035, 5527, 1035, 4070, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 4070, 1035, 2171, 1010, 5527, 1035, 4070, 1035, 2171, 1010, 11709, 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_consumption/lib/2018-06-30/generated/azure_mgmt_consumption/usage_details.rb
Azure::Consumption::Mgmt::V2018_06_30.UsageDetails.list_for_billing_period_by_billing_account_as_lazy
def list_for_billing_period_by_billing_account_as_lazy(billing_account_id, billing_period_name, expand:nil, filter:nil, skiptoken:nil, top:nil, query_options:nil, custom_headers:nil) response = list_for_billing_period_by_billing_account_async(billing_account_id, billing_period_name, expand:expand, filter:filter, ...
ruby
def list_for_billing_period_by_billing_account_as_lazy(billing_account_id, billing_period_name, expand:nil, filter:nil, skiptoken:nil, top:nil, query_options:nil, custom_headers:nil) response = list_for_billing_period_by_billing_account_async(billing_account_id, billing_period_name, expand:expand, filter:filter, ...
[ "def", "list_for_billing_period_by_billing_account_as_lazy", "(", "billing_account_id", ",", "billing_period_name", ",", "expand", ":", "nil", ",", "filter", ":", "nil", ",", "skiptoken", ":", "nil", ",", "top", ":", "nil", ",", "query_options", ":", "nil", ",", ...
Lists the usage details based on billingAccountId for a scope by billing period. Usage details 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 expand [String] May be used to expand the p...
[ "Lists", "the", "usage", "details", "based", "on", "billingAccountId", "for", "a", "scope", "by", "billing", "period", ".", "Usage", "details", "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-06-30/generated/azure_mgmt_consumption/usage_details.rb#L2116-L2125
train
Gets all the resources under the billing account.
[ 30522, 13366, 2862, 1035, 2005, 1035, 25640, 1035, 2558, 1035, 2011, 1035, 25640, 1035, 4070, 1035, 2004, 1035, 13971, 1006, 25640, 1035, 4070, 1035, 8909, 1010, 25640, 1035, 2558, 1035, 2171, 1010, 7818, 1024, 9152, 2140, 1010, 11307, 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...
github/linguist
samples/Ruby/inflector.rb
ActiveSupport.Inflector.humanize
def humanize(lower_case_and_underscored_word) result = lower_case_and_underscored_word.to_s.dup inflections.humans.each { |(rule, replacement)| break if result.sub!(rule, replacement) } result.gsub!(/_id$/, "") result.tr!('_', ' ') result.gsub(/([a-z\d]*)/i) { |match| "#{inflection...
ruby
def humanize(lower_case_and_underscored_word) result = lower_case_and_underscored_word.to_s.dup inflections.humans.each { |(rule, replacement)| break if result.sub!(rule, replacement) } result.gsub!(/_id$/, "") result.tr!('_', ' ') result.gsub(/([a-z\d]*)/i) { |match| "#{inflection...
[ "def", "humanize", "(", "lower_case_and_underscored_word", ")", "result", "=", "lower_case_and_underscored_word", ".", "to_s", ".", "dup", "inflections", ".", "humans", ".", "each", "{", "|", "(", "rule", ",", "replacement", ")", "|", "break", "if", "result", ...
Capitalizes the first word and turns underscores into spaces and strips a trailing "_id", if any. Like +titleize+, this is meant for creating pretty output. "employee_salary" # => "Employee salary" "author_id" # => "Author"
[ "Capitalizes", "the", "first", "word", "and", "turns", "underscores", "into", "spaces", "and", "strips", "a", "trailing", "_id", "if", "any", ".", "Like", "+", "titleize", "+", "this", "is", "meant", "for", "creating", "pretty", "output", "." ]
9116c90fcbb82ac03b4b33c58cfbde1fcf745e99
https://github.com/github/linguist/blob/9116c90fcbb82ac03b4b33c58cfbde1fcf745e99/samples/Ruby/inflector.rb#L90-L98
train
humanize a string
[ 30522, 13366, 2529, 4697, 1006, 2896, 1035, 2553, 1035, 1998, 1035, 2104, 9363, 5596, 1035, 2773, 1007, 2765, 1027, 2896, 1035, 2553, 1035, 1998, 1035, 2104, 9363, 5596, 1035, 2773, 1012, 2000, 1035, 1055, 1012, 4241, 2361, 1999, 21031, 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_automation/lib/2015-10-31/generated/azure_mgmt_automation/dsc_node_operations.rb
Azure::Automation::Mgmt::V2015_10_31.DscNodeOperations.update_with_http_info
def update_with_http_info(resource_group_name, automation_account_name, node_id, parameters, custom_headers:nil) update_async(resource_group_name, automation_account_name, node_id, parameters, custom_headers:custom_headers).value! end
ruby
def update_with_http_info(resource_group_name, automation_account_name, node_id, parameters, custom_headers:nil) update_async(resource_group_name, automation_account_name, node_id, parameters, custom_headers:custom_headers).value! end
[ "def", "update_with_http_info", "(", "resource_group_name", ",", "automation_account_name", ",", "node_id", ",", "parameters", ",", "custom_headers", ":", "nil", ")", "update_async", "(", "resource_group_name", ",", "automation_account_name", ",", "node_id", ",", "param...
Update the dsc node. @param resource_group_name [String] Name of an Azure Resource group. @param automation_account_name [String] The name of the automation account. @param node_id [String] Parameters supplied to the update dsc node. @param parameters [DscNodeUpdateParameters] Parameters supplied to the update ds...
[ "Update", "the", "dsc", "node", "." ]
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_operations.rb#L253-L255
train
Updates a node in the specified automation account.
[ 30522, 13366, 10651, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 19309, 1035, 4070, 1035, 2171, 1010, 13045, 1035, 8909, 1010, 11709, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 10651, 1035, 200...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_network_mappings.rb
Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10.ReplicationNetworkMappings.delete
def delete(fabric_name, network_name, network_mapping_name, custom_headers:nil) response = delete_async(fabric_name, network_name, network_mapping_name, custom_headers:custom_headers).value! nil end
ruby
def delete(fabric_name, network_name, network_mapping_name, custom_headers:nil) response = delete_async(fabric_name, network_name, network_mapping_name, custom_headers:custom_headers).value! nil end
[ "def", "delete", "(", "fabric_name", ",", "network_name", ",", "network_mapping_name", ",", "custom_headers", ":", "nil", ")", "response", "=", "delete_async", "(", "fabric_name", ",", "network_name", ",", "network_mapping_name", ",", "custom_headers", ":custom_header...
Delete network mapping. The operation to delete a network mapping. @param fabric_name [String] Primary fabric name. @param network_name [String] Primary network name. @param network_mapping_name [String] ARM Resource Name for network mapping. @param custom_headers [Hash{String => String}] A hash of custom header...
[ "Delete", "network", "mapping", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_network_mappings.rb#L379-L382
train
Deletes a network mapping from a fabric.
[ 30522, 13366, 3972, 12870, 1006, 8313, 1035, 2171, 1010, 2897, 1035, 2171, 1010, 2897, 1035, 12375, 1035, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 3972, 12870, 1035, 2004, 6038, 2278, 1006, 8313, 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...
sds/overcommit
lib/overcommit/git_repo.rb
Overcommit.GitRepo.restore_cherry_pick_state
def restore_cherry_pick_state if @cherry_head File.open(File.expand_path('CHERRY_PICK_HEAD', Overcommit::Utils.git_dir), 'w') do |f| f.write(@cherry_head) end @cherry_head = nil end end
ruby
def restore_cherry_pick_state if @cherry_head File.open(File.expand_path('CHERRY_PICK_HEAD', Overcommit::Utils.git_dir), 'w') do |f| f.write(@cherry_head) end @cherry_head = nil end end
[ "def", "restore_cherry_pick_state", "if", "@cherry_head", "File", ".", "open", "(", "File", ".", "expand_path", "(", "'CHERRY_PICK_HEAD'", ",", "Overcommit", "::", "Utils", ".", "git_dir", ")", ",", "'w'", ")", "do", "|", "f", "|", "f", ".", "write", "(", ...
Restore any relevant files that were present when repo was in the middle of a cherry-pick.
[ "Restore", "any", "relevant", "files", "that", "were", "present", "when", "repo", "was", "in", "the", "middle", "of", "a", "cherry", "-", "pick", "." ]
35d60adb41da942178b789560968e3ad030b0ac7
https://github.com/sds/overcommit/blob/35d60adb41da942178b789560968e3ad030b0ac7/lib/overcommit/git_repo.rb#L195-L203
train
Restore the cherry pick state
[ 30522, 13366, 9239, 1035, 9115, 1035, 4060, 1035, 2110, 2065, 1030, 9115, 1035, 2132, 5371, 1012, 2330, 1006, 5371, 1012, 7818, 1035, 4130, 1006, 1005, 9115, 1035, 4060, 1035, 2132, 1005, 1010, 2058, 9006, 22930, 1024, 1024, 21183, 12146, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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/security_group.rb
Aws::EC2.SecurityGroup.revoke_ingress
def revoke_ingress(options = {}) options = options.merge(group_id: @id) resp = @client.revoke_security_group_ingress(options) resp.data end
ruby
def revoke_ingress(options = {}) options = options.merge(group_id: @id) resp = @client.revoke_security_group_ingress(options) resp.data end
[ "def", "revoke_ingress", "(", "options", "=", "{", "}", ")", "options", "=", "options", ".", "merge", "(", "group_id", ":", "@id", ")", "resp", "=", "@client", ".", "revoke_security_group_ingress", "(", "options", ")", "resp", ".", "data", "end" ]
@example Request syntax with placeholder values security_group.revoke_ingress({ cidr_ip: "String", from_port: 1, group_name: "String", ip_permissions: [ { from_port: 1, ip_protocol: "String", ip_ranges: [ { cidr_ip: "String", ...
[ "@example", "Request", "syntax", "with", "placeholder", "values" ]
e28b8d320ddf7b6ee0161bdd9d00fb786d99b63d
https://github.com/aws/aws-sdk-ruby/blob/e28b8d320ddf7b6ee0161bdd9d00fb786d99b63d/gems/aws-sdk-ec2/lib/aws-sdk-ec2/security_group.rb#L635-L639
train
Revoke ingress for this security group
[ 30522, 13366, 7065, 11045, 1035, 13749, 8303, 1006, 7047, 1027, 1063, 1065, 1007, 7047, 1027, 7047, 1012, 13590, 1006, 2177, 1035, 8909, 1024, 1030, 8909, 1007, 24501, 2361, 1027, 1030, 7396, 1012, 7065, 11045, 1035, 3036, 1035, 2177, 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...
roo-rb/roo
lib/roo/excelx.rb
Roo.Excelx.labels
def labels @labels ||= workbook.defined_names.map do |name, label| [ name, [label.row, label.col, label.sheet] ] end end
ruby
def labels @labels ||= workbook.defined_names.map do |name, label| [ name, [label.row, label.col, label.sheet] ] end end
[ "def", "labels", "@labels", "||=", "workbook", ".", "defined_names", ".", "map", "do", "|", "name", ",", "label", "|", "[", "name", ",", "[", "label", ".", "row", ",", "label", ".", "col", ",", "label", ".", "sheet", "]", "]", "end", "end" ]
Returns an array which all labels. Each element is an array with [labelname, [row,col,sheetname]]
[ "Returns", "an", "array", "which", "all", "labels", ".", "Each", "element", "is", "an", "array", "with", "[", "labelname", "[", "row", "col", "sheetname", "]]" ]
4ec1104f0c3c2a29711c0c907371cd2be12bcc3c
https://github.com/roo-rb/roo/blob/4ec1104f0c3c2a29711c0c907371cd2be12bcc3c/lib/roo/excelx.rb#L256-L263
train
Returns the array of labels for the current worksheet
[ 30522, 13366, 10873, 1030, 10873, 1064, 1064, 1027, 2147, 8654, 1012, 4225, 1035, 3415, 1012, 4949, 2079, 1064, 2171, 1010, 3830, 1064, 1031, 2171, 1010, 1031, 3830, 1012, 5216, 1010, 3830, 1012, 8902, 1010, 3830, 1012, 7123, 1033, 1033, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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_partition_info_list_with_http_info
def get_partition_info_list_with_http_info(service_id, continuation_token:nil, timeout:60, custom_headers:nil) get_partition_info_list_async(service_id, continuation_token:continuation_token, timeout:timeout, custom_headers:custom_headers).value! end
ruby
def get_partition_info_list_with_http_info(service_id, continuation_token:nil, timeout:60, custom_headers:nil) get_partition_info_list_async(service_id, continuation_token:continuation_token, timeout:timeout, custom_headers:custom_headers).value! end
[ "def", "get_partition_info_list_with_http_info", "(", "service_id", ",", "continuation_token", ":", "nil", ",", "timeout", ":", "60", ",", "custom_headers", ":", "nil", ")", "get_partition_info_list_async", "(", "service_id", ",", "continuation_token", ":continuation_toke...
Gets the list of partitions of a Service Fabric service. Gets the list of partitions of a Service Fabric service. The response includes the partition ID, partitioning scheme information, keys supported by the partition, status, health, and other details about the partition. @param service_id [String] The identity...
[ "Gets", "the", "list", "of", "partitions", "of", "a", "Service", "Fabric", "service", "." ]
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#L11875-L11877
train
Gets the partition info list of the specified service.
[ 30522, 13366, 2131, 1035, 13571, 1035, 18558, 1035, 2862, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 2326, 1035, 8909, 1010, 13633, 1035, 19204, 1024, 9152, 2140, 1010, 2051, 5833, 1024, 3438, 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...
jnunemaker/flipper
lib/flipper/feature.rb
Flipper.Feature.state
def state values = gate_values boolean = gate(:boolean) non_boolean_gates = gates - [boolean] if values.boolean || values.percentage_of_actors == 100 || values.percentage_of_time == 100 :on elsif non_boolean_gates.detect { |gate| gate.enabled?(values[gate.key]) } :conditio...
ruby
def state values = gate_values boolean = gate(:boolean) non_boolean_gates = gates - [boolean] if values.boolean || values.percentage_of_actors == 100 || values.percentage_of_time == 100 :on elsif non_boolean_gates.detect { |gate| gate.enabled?(values[gate.key]) } :conditio...
[ "def", "state", "values", "=", "gate_values", "boolean", "=", "gate", "(", ":boolean", ")", "non_boolean_gates", "=", "gates", "-", "[", "boolean", "]", "if", "values", ".", "boolean", "||", "values", ".", "percentage_of_actors", "==", "100", "||", "values",...
Public: Returns state for feature (:on, :off, or :conditional).
[ "Public", ":", "Returns", "state", "for", "feature", "(", ":", "on", ":", "off", "or", ":", "conditional", ")", "." ]
df0352b663ad3ed45d68710f10a8170249ff9d78
https://github.com/jnunemaker/flipper/blob/df0352b663ad3ed45d68710f10a8170249ff9d78/lib/flipper/feature.rb#L204-L216
train
Returns the state of the gate.
[ 30522, 13366, 2110, 5300, 1027, 4796, 1035, 5300, 22017, 20898, 1027, 4796, 1006, 1024, 22017, 20898, 1007, 2512, 1035, 22017, 20898, 1035, 6733, 1027, 6733, 1011, 1031, 22017, 20898, 1033, 2065, 5300, 1012, 22017, 20898, 1064, 1064, 5300, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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_key_vault/lib/2016-10-01/generated/azure_key_vault/key_vault_client.rb
Azure::KeyVault::V2016_10_01.KeyVaultClient.update_sas_definition_with_http_info
def update_sas_definition_with_http_info(vault_base_url, storage_account_name, sas_definition_name, parameters:nil, sas_definition_attributes:nil, tags:nil, custom_headers:nil) update_sas_definition_async(vault_base_url, storage_account_name, sas_definition_name, parameters:parameters, sas_definition_attributes:s...
ruby
def update_sas_definition_with_http_info(vault_base_url, storage_account_name, sas_definition_name, parameters:nil, sas_definition_attributes:nil, tags:nil, custom_headers:nil) update_sas_definition_async(vault_base_url, storage_account_name, sas_definition_name, parameters:parameters, sas_definition_attributes:s...
[ "def", "update_sas_definition_with_http_info", "(", "vault_base_url", ",", "storage_account_name", ",", "sas_definition_name", ",", "parameters", ":", "nil", ",", "sas_definition_attributes", ":", "nil", ",", "tags", ":", "nil", ",", "custom_headers", ":", "nil", ")",...
Updates the specified attributes associated with the given SAS definition. This operation requires the storage/setsas permission. @param vault_base_url [String] The vault name, for example https://myvault.vault.azure.net. @param storage_account_name [String] The name of the storage account. @param sas_definition_...
[ "Updates", "the", "specified", "attributes", "associated", "with", "the", "given", "SAS", "definition", ".", "This", "operation", "requires", "the", "storage", "/", "setsas", "permission", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_key_vault/lib/2016-10-01/generated/azure_key_vault/key_vault_client.rb#L8153-L8155
train
Updates the specified SAS definition.
[ 30522, 13366, 10651, 1035, 21871, 1035, 6210, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 11632, 1035, 2918, 1035, 24471, 2140, 1010, 5527, 1035, 4070, 1035, 2171, 1010, 21871, 1035, 6210, 1035, 2171, 1010, 11709, 1024, 9152, 2140, 1010, 218...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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-07-07/generated/azure_mgmt_api_management/product_groups.rb
Azure::ApiManagement::Mgmt::V2016_07_07.ProductGroups.list_by_product_with_http_info
def list_by_product_with_http_info(resource_group_name, service_name, product_id, filter:nil, top:nil, skip:nil, custom_headers:nil) list_by_product_async(resource_group_name, service_name, product_id, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! end
ruby
def list_by_product_with_http_info(resource_group_name, service_name, product_id, filter:nil, top:nil, skip:nil, custom_headers:nil) list_by_product_async(resource_group_name, service_name, product_id, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! end
[ "def", "list_by_product_with_http_info", "(", "resource_group_name", ",", "service_name", ",", "product_id", ",", "filter", ":", "nil", ",", "top", ":", "nil", ",", "skip", ":", "nil", ",", "custom_headers", ":", "nil", ")", "list_by_product_async", "(", "resour...
Lists the collection of developer groups associated with the specified 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 servi...
[ "Lists", "the", "collection", "of", "developer", "groups", "associated", "with", "the", "specified", "product", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/product_groups.rb#L81-L83
train
Gets the list of all the product s terms.
[ 30522, 13366, 2862, 1035, 2011, 1035, 4031, 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...
Azure/azure-sdk-for-ruby
management/azure_mgmt_network/lib/2018-07-01/generated/azure_mgmt_network/express_route_cross_connection_peerings.rb
Azure::Network::Mgmt::V2018_07_01.ExpressRouteCrossConnectionPeerings.begin_delete_with_http_info
def begin_delete_with_http_info(resource_group_name, cross_connection_name, peering_name, custom_headers:nil) begin_delete_async(resource_group_name, cross_connection_name, peering_name, custom_headers:custom_headers).value! end
ruby
def begin_delete_with_http_info(resource_group_name, cross_connection_name, peering_name, custom_headers:nil) begin_delete_async(resource_group_name, cross_connection_name, peering_name, custom_headers:custom_headers).value! end
[ "def", "begin_delete_with_http_info", "(", "resource_group_name", ",", "cross_connection_name", ",", "peering_name", ",", "custom_headers", ":", "nil", ")", "begin_delete_async", "(", "resource_group_name", ",", "cross_connection_name", ",", "peering_name", ",", "custom_hea...
Deletes the specified peering from the ExpressRouteCrossConnection. @param resource_group_name [String] The name of the resource group. @param cross_connection_name [String] The name of the ExpressRouteCrossConnection. @param peering_name [String] The name of the peering. @param custom_headers [Hash{String => Str...
[ "Deletes", "the", "specified", "peering", "from", "the", "ExpressRouteCrossConnection", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_network/lib/2018-07-01/generated/azure_mgmt_network/express_route_cross_connection_peerings.rb#L340-L342
train
Deletes the specified ExpressRouteCrossConnection.
[ 30522, 13366, 4088, 1035, 3972, 12870, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 2892, 1035, 4434, 1035, 2171, 1010, 16740, 1035, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 4088, 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...
meew0/discordrb
lib/discordrb/bot.rb
Discordrb.Bot.bot_application
def bot_application return unless @type == :bot response = API.oauth_application(token) Application.new(JSON.parse(response), self) end
ruby
def bot_application return unless @type == :bot response = API.oauth_application(token) Application.new(JSON.parse(response), self) end
[ "def", "bot_application", "return", "unless", "@type", "==", ":bot", "response", "=", "API", ".", "oauth_application", "(", "token", ")", "Application", ".", "new", "(", "JSON", ".", "parse", "(", "response", ")", ",", "self", ")", "end" ]
The bot's OAuth application. @return [Application, nil] The bot's application info. Returns `nil` if bot is not a bot account.
[ "The", "bot", "s", "OAuth", "application", "." ]
764298a1ff0be69a1853b510d736f21c2b91a2fe
https://github.com/meew0/discordrb/blob/764298a1ff0be69a1853b510d736f21c2b91a2fe/lib/discordrb/bot.rb#L206-L211
train
Get the application index for this bot
[ 30522, 13366, 28516, 1035, 4646, 2709, 4983, 1030, 2828, 1027, 1027, 1024, 28516, 3433, 1027, 17928, 1012, 1051, 4887, 2705, 1035, 4646, 1006, 19204, 1007, 4646, 1012, 2047, 1006, 1046, 3385, 1012, 11968, 3366, 1006, 3433, 1007, 1010, 2969,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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_partition_restore_progress_with_http_info
def get_partition_restore_progress_with_http_info(partition_id, timeout:60, custom_headers:nil) get_partition_restore_progress_async(partition_id, timeout:timeout, custom_headers:custom_headers).value! end
ruby
def get_partition_restore_progress_with_http_info(partition_id, timeout:60, custom_headers:nil) get_partition_restore_progress_async(partition_id, timeout:timeout, custom_headers:custom_headers).value! end
[ "def", "get_partition_restore_progress_with_http_info", "(", "partition_id", ",", "timeout", ":", "60", ",", "custom_headers", ":", "nil", ")", "get_partition_restore_progress_async", "(", "partition_id", ",", "timeout", ":", "timeout", ",", "custom_headers", ":custom_hea...
Gets details for the latest restore operation triggered for this partition. Returns information about the state of the latest restore operation along with details or failure reason in case of completion. @param partition_id The identity of the partition. @param timeout [Integer] The server timeout for performing ...
[ "Gets", "details", "for", "the", "latest", "restore", "operation", "triggered", "for", "this", "partition", "." ]
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#L25863-L25865
train
Gets the current state of the restore of the specified partition.
[ 30522, 13366, 2131, 1035, 13571, 1035, 9239, 1035, 5082, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 13571, 1035, 8909, 1010, 2051, 5833, 1024, 3438, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 2131, 1035, 13571, 1035, 9239, 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_sql/lib/2017-03-01-preview/generated/azure_mgmt_sql/job_target_executions.rb
Azure::SQL::Mgmt::V2017_03_01_preview.JobTargetExecutions.list_by_job_execution_as_lazy
def list_by_job_execution_as_lazy(resource_group_name, server_name, job_agent_name, job_name, job_execution_id, create_time_min:nil, create_time_max:nil, end_time_min:nil, end_time_max:nil, is_active:nil, skip:nil, top:nil, custom_headers:nil) response = list_by_job_execution_async(resource_group_name, server_nam...
ruby
def list_by_job_execution_as_lazy(resource_group_name, server_name, job_agent_name, job_name, job_execution_id, create_time_min:nil, create_time_max:nil, end_time_min:nil, end_time_max:nil, is_active:nil, skip:nil, top:nil, custom_headers:nil) response = list_by_job_execution_async(resource_group_name, server_nam...
[ "def", "list_by_job_execution_as_lazy", "(", "resource_group_name", ",", "server_name", ",", "job_agent_name", ",", "job_name", ",", "job_execution_id", ",", "create_time_min", ":", "nil", ",", "create_time_max", ":", "nil", ",", "end_time_min", ":", "nil", ",", "en...
Lists target executions for all steps of a job execution. @param resource_group_name [String] The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. @param server_name [String] The name of the server. @param job_agent_name [String] T...
[ "Lists", "target", "executions", "for", "all", "steps", "of", "a", "job", "execution", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_sql/lib/2017-03-01-preview/generated/azure_mgmt_sql/job_target_executions.rb#L645-L654
train
Gets the job execution information.
[ 30522, 13366, 2862, 1035, 2011, 1035, 3105, 1035, 7781, 1035, 2004, 1035, 13971, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 8241, 1035, 2171, 1010, 3105, 1035, 4005, 1035, 2171, 1010, 3105, 1035, 2171, 1010, 3105, 1035, 7781, 1035, 8909, 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_key_vault/lib/2016-10-01/generated/azure_key_vault/key_vault_client.rb
Azure::KeyVault::V2016_10_01.KeyVaultClient.delete_certificate
def delete_certificate(vault_base_url, certificate_name, custom_headers:nil) response = delete_certificate_async(vault_base_url, certificate_name, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def delete_certificate(vault_base_url, certificate_name, custom_headers:nil) response = delete_certificate_async(vault_base_url, certificate_name, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "delete_certificate", "(", "vault_base_url", ",", "certificate_name", ",", "custom_headers", ":", "nil", ")", "response", "=", "delete_certificate_async", "(", "vault_base_url", ",", "certificate_name", ",", "custom_headers", ":custom_headers", ")", ".", "value!"...
Deletes a certificate from a specified key vault. Deletes all versions of a certificate object along with its associated policy. Delete certificate cannot be used to remove individual versions of a certificate object. This operation requires the certificates/delete permission. @param vault_base_url [String] The ...
[ "Deletes", "a", "certificate", "from", "a", "specified", "key", "vault", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_key_vault/lib/2016-10-01/generated/azure_key_vault/key_vault_client.rb#L4135-L4138
train
Deletes a certificate from the specified vault.
[ 30522, 13366, 3972, 12870, 1035, 8196, 1006, 11632, 1035, 2918, 1035, 24471, 2140, 1010, 8196, 1035, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 3972, 12870, 1035, 8196, 1035, 2004, 6038, 2278, 1006, 11632, 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_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...
Azure/azure-sdk-for-ruby
management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/web_site_management_client.rb
Azure::Web::Mgmt::V2016_03_01.WebSiteManagementClient.list_geo_regions_with_http_info
def list_geo_regions_with_http_info(sku:nil, linux_workers_enabled:nil, custom_headers:nil) list_geo_regions_async(sku:sku, linux_workers_enabled:linux_workers_enabled, custom_headers:custom_headers).value! end
ruby
def list_geo_regions_with_http_info(sku:nil, linux_workers_enabled:nil, custom_headers:nil) list_geo_regions_async(sku:sku, linux_workers_enabled:linux_workers_enabled, custom_headers:custom_headers).value! end
[ "def", "list_geo_regions_with_http_info", "(", "sku", ":", "nil", ",", "linux_workers_enabled", ":", "nil", ",", "custom_headers", ":", "nil", ")", "list_geo_regions_async", "(", "sku", ":", "sku", ",", "linux_workers_enabled", ":linux_workers_enabled", ",", "custom_h...
Get a list of available geographical regions. Get a list of available geographical regions. @param sku [SkuName] Name of SKU used to filter the regions. Possible values include: 'Free', 'Shared', 'Basic', 'Standard', 'Premium', 'PremiumV2', 'Dynamic', 'Isolated' @param linux_workers_enabled [Boolean] Specify <co...
[ "Get", "a", "list", "of", "available", "geographical", "regions", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_web/lib/2016-03-01/generated/azure_mgmt_web/web_site_management_client.rb#L866-L868
train
Gets the list of geo regions.
[ 30522, 13366, 2862, 1035, 20248, 1035, 4655, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 15315, 2226, 1024, 9152, 2140, 1010, 11603, 1035, 3667, 1035, 9124, 1024, 9152, 2140, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 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...
aws/aws-sdk-ruby
gems/aws-sdk-sns/lib/aws-sdk-sns/platform_application.rb
Aws::SNS.PlatformApplication.delete
def delete(options = {}) options = options.merge(platform_application_arn: @arn) resp = @client.delete_platform_application(options) resp.data end
ruby
def delete(options = {}) options = options.merge(platform_application_arn: @arn) resp = @client.delete_platform_application(options) resp.data end
[ "def", "delete", "(", "options", "=", "{", "}", ")", "options", "=", "options", ".", "merge", "(", "platform_application_arn", ":", "@arn", ")", "resp", "=", "@client", ".", "delete_platform_application", "(", "options", ")", "resp", ".", "data", "end" ]
@example Request syntax with placeholder values platform_application.delete() @param [Hash] options ({}) @return [EmptyStructure]
[ "@example", "Request", "syntax", "with", "placeholder", "values" ]
e28b8d320ddf7b6ee0161bdd9d00fb786d99b63d
https://github.com/aws/aws-sdk-ruby/blob/e28b8d320ddf7b6ee0161bdd9d00fb786d99b63d/gems/aws-sdk-sns/lib/aws-sdk-sns/platform_application.rb#L130-L134
train
Delete the platform application
[ 30522, 13366, 3972, 12870, 1006, 7047, 1027, 1063, 1065, 1007, 7047, 1027, 7047, 1012, 13590, 1006, 4132, 1035, 4646, 1035, 12098, 2078, 1024, 1030, 12098, 2078, 1007, 24501, 2361, 1027, 1030, 7396, 1012, 3972, 12870, 1035, 4132, 1035, 4646...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
jnunemaker/httparty
lib/httparty.rb
HTTParty.ClassMethods.put
def put(path, options = {}, &block) perform_request Net::HTTP::Put, path, options, &block end
ruby
def put(path, options = {}, &block) perform_request Net::HTTP::Put, path, options, &block end
[ "def", "put", "(", "path", ",", "options", "=", "{", "}", ",", "&", "block", ")", "perform_request", "Net", "::", "HTTP", "::", "Put", ",", "path", ",", "options", ",", "block", "end" ]
Perform a PUT request to a path
[ "Perform", "a", "PUT", "request", "to", "a", "path" ]
b4099defba01231d2faaaa2660476f867e096bfb
https://github.com/jnunemaker/httparty/blob/b4099defba01231d2faaaa2660476f867e096bfb/lib/httparty.rb#L532-L534
train
Perform a PUT request to the specified path.
[ 30522, 13366, 2404, 1006, 4130, 1010, 7047, 1027, 1063, 1065, 1010, 1004, 3796, 1007, 4685, 1035, 5227, 5658, 1024, 1024, 8299, 1024, 1024, 2404, 1010, 4130, 1010, 7047, 1010, 1004, 3796, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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
activesupport/lib/active_support/dependencies.rb
ActiveSupport.Dependencies.load_missing_constant
def load_missing_constant(from_mod, const_name) unless qualified_const_defined?(from_mod.name) && Inflector.constantize(from_mod.name).equal?(from_mod) raise ArgumentError, "A copy of #{from_mod} has been removed from the module tree but is still active!" end qualified_name = qualified_name_f...
ruby
def load_missing_constant(from_mod, const_name) unless qualified_const_defined?(from_mod.name) && Inflector.constantize(from_mod.name).equal?(from_mod) raise ArgumentError, "A copy of #{from_mod} has been removed from the module tree but is still active!" end qualified_name = qualified_name_f...
[ "def", "load_missing_constant", "(", "from_mod", ",", "const_name", ")", "unless", "qualified_const_defined?", "(", "from_mod", ".", "name", ")", "&&", "Inflector", ".", "constantize", "(", "from_mod", ".", "name", ")", ".", "equal?", "(", "from_mod", ")", "ra...
Load the constant named +const_name+ which is missing from +from_mod+. If it is not possible to load the constant into from_mod, try its parent module using +const_missing+.
[ "Load", "the", "constant", "named", "+", "const_name", "+", "which", "is", "missing", "from", "+", "from_mod", "+", ".", "If", "it", "is", "not", "possible", "to", "load", "the", "constant", "into", "from_mod", "try", "its", "parent", "module", "using", ...
85a8bc644be69908f05740a5886ec19cd3679df5
https://github.com/rails/rails/blob/85a8bc644be69908f05740a5886ec19cd3679df5/activesupport/lib/active_support/dependencies.rb#L505-L568
train
Load a constant from a module.
[ 30522, 13366, 7170, 1035, 4394, 1035, 5377, 1006, 2013, 1035, 16913, 1010, 9530, 3367, 1035, 2171, 1007, 4983, 4591, 1035, 9530, 3367, 1035, 4225, 1029, 1006, 2013, 1035, 16913, 1012, 2171, 1007, 1004, 1004, 1999, 21031, 16761, 1012, 5377, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
jhund/filterrific
lib/filterrific/action_view_extension.rb
Filterrific.ActionViewExtension.filterrific_sorting_link_reverse_order
def filterrific_sorting_link_reverse_order(filterrific, new_sort_key, opts) # current sort column, toggle search_direction new_sort_direction = 'asc' == opts[:current_sort_direction] ? 'desc' : 'asc' new_sorting = safe_join([new_sort_key, new_sort_direction], '_') css_classes = safe_join([ ...
ruby
def filterrific_sorting_link_reverse_order(filterrific, new_sort_key, opts) # current sort column, toggle search_direction new_sort_direction = 'asc' == opts[:current_sort_direction] ? 'desc' : 'asc' new_sorting = safe_join([new_sort_key, new_sort_direction], '_') css_classes = safe_join([ ...
[ "def", "filterrific_sorting_link_reverse_order", "(", "filterrific", ",", "new_sort_key", ",", "opts", ")", "# current sort column, toggle search_direction", "new_sort_direction", "=", "'asc'", "==", "opts", "[", ":current_sort_direction", "]", "?", "'desc'", ":", "'asc'", ...
Renders HTML to reverse sort order on currently sorted column. @param filterrific [Filterrific::ParamSet] @param new_sort_key [String] @param opts [Hash] @return [String] an HTML fragment
[ "Renders", "HTML", "to", "reverse", "sort", "order", "on", "currently", "sorted", "column", "." ]
811edc57d3e2a3e538c1f0e9554e0909be052881
https://github.com/jhund/filterrific/blob/811edc57d3e2a3e538c1f0e9554e0909be052881/lib/filterrific/action_view_extension.rb#L102-L119
train
Returns a link to the filterrific sorting link
[ 30522, 13366, 11307, 3089, 8873, 2278, 1035, 22210, 1035, 4957, 1035, 7901, 1035, 2344, 1006, 11307, 3089, 8873, 2278, 1010, 2047, 1035, 4066, 1035, 3145, 1010, 23569, 2015, 1007, 1001, 2783, 4066, 5930, 1010, 2000, 24679, 3945, 1035, 3257,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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/path_utils.rb
Sprockets.PathUtils.path_parents
def path_parents(path, root = nil) root = "#{root}#{File::SEPARATOR}" if root parents = [] loop do parent = File.dirname(path) break if parent == path break if root && !path.start_with?(root) parents << path = parent end parents end
ruby
def path_parents(path, root = nil) root = "#{root}#{File::SEPARATOR}" if root parents = [] loop do parent = File.dirname(path) break if parent == path break if root && !path.start_with?(root) parents << path = parent end parents end
[ "def", "path_parents", "(", "path", ",", "root", "=", "nil", ")", "root", "=", "\"#{root}#{File::SEPARATOR}\"", "if", "root", "parents", "=", "[", "]", "loop", "do", "parent", "=", "File", ".", "dirname", "(", "path", ")", "break", "if", "parent", "==", ...
Internal: Returns all parents for path path - String absolute filename or directory root - String path to stop at (default: system root) Returns an Array of String paths.
[ "Internal", ":", "Returns", "all", "parents", "for", "path" ]
9e3f0d8e98c44f57e67bc138db87bb8469bf5ddd
https://github.com/rails/sprockets/blob/9e3f0d8e98c44f57e67bc138db87bb8469bf5ddd/lib/sprockets/path_utils.rb#L252-L264
train
Get the parents of a given path.
[ 30522, 13366, 4130, 1035, 3008, 1006, 4130, 1010, 7117, 1027, 9152, 2140, 1007, 7117, 1027, 1000, 1001, 1063, 7117, 1065, 1001, 1063, 5371, 1024, 1024, 19802, 25879, 2953, 1065, 1000, 2065, 7117, 3008, 1027, 1031, 1033, 7077, 2079, 6687, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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/population_criteria.rb
HQMF2.PopulationCriteria.parse_parts_to_dc
def parse_parts_to_dc(parts) case parts.length when 1 # If there is only one part, it is a reference to an existing data criteria's value @doc.find_criteria_by_lvn(parts.first.strip.split('.')[0]) when 2 # If there are two parts, there is a computation performed, specifically t...
ruby
def parse_parts_to_dc(parts) case parts.length when 1 # If there is only one part, it is a reference to an existing data criteria's value @doc.find_criteria_by_lvn(parts.first.strip.split('.')[0]) when 2 # If there are two parts, there is a computation performed, specifically t...
[ "def", "parse_parts_to_dc", "(", "parts", ")", "case", "parts", ".", "length", "when", "1", "# If there is only one part, it is a reference to an existing data criteria's value", "@doc", ".", "find_criteria_by_lvn", "(", "parts", ".", "first", ".", "strip", ".", "split", ...
generates the value given in an expression based on the number of criteria it references.
[ "generates", "the", "value", "given", "in", "an", "expression", "based", "on", "the", "number", "of", "criteria", "it", "references", "." ]
252d4f0927c513eacde6b9ea41b76faa1423c34b
https://github.com/projectcypress/health-data-standards/blob/252d4f0927c513eacde6b9ea41b76faa1423c34b/lib/hqmf-parser/2.0/population_criteria.rb#L84-L107
train
Parse the parts to a data criteria object
[ 30522, 13366, 11968, 3366, 1035, 3033, 1035, 2000, 1035, 5887, 1006, 3033, 1007, 2553, 3033, 1012, 3091, 2043, 1015, 1001, 2065, 2045, 2003, 2069, 2028, 2112, 1010, 2009, 2003, 1037, 4431, 2000, 2019, 4493, 2951, 9181, 1005, 1055, 3643, 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-ec2/lib/aws-sdk-ec2/network_interface.rb
Aws::EC2.NetworkInterface.unassign_private_ip_addresses
def unassign_private_ip_addresses(options = {}) options = options.merge(network_interface_id: @id) resp = @client.unassign_private_ip_addresses(options) resp.data end
ruby
def unassign_private_ip_addresses(options = {}) options = options.merge(network_interface_id: @id) resp = @client.unassign_private_ip_addresses(options) resp.data end
[ "def", "unassign_private_ip_addresses", "(", "options", "=", "{", "}", ")", "options", "=", "options", ".", "merge", "(", "network_interface_id", ":", "@id", ")", "resp", "=", "@client", ".", "unassign_private_ip_addresses", "(", "options", ")", "resp", ".", "...
@example Request syntax with placeholder values network_interface.unassign_private_ip_addresses({ private_ip_addresses: ["String"], # required }) @param [Hash] options ({}) @option options [required, Array<String>] :private_ip_addresses The secondary private IP addresses to unassign from the network ...
[ "@example", "Request", "syntax", "with", "placeholder", "values" ]
e28b8d320ddf7b6ee0161bdd9d00fb786d99b63d
https://github.com/aws/aws-sdk-ruby/blob/e28b8d320ddf7b6ee0161bdd9d00fb786d99b63d/gems/aws-sdk-ec2/lib/aws-sdk-ec2/network_interface.rb#L506-L510
train
Unassigns private IP addresses to this network interface
[ 30522, 13366, 14477, 18719, 16206, 1035, 2797, 1035, 12997, 1035, 11596, 1006, 7047, 1027, 1063, 1065, 1007, 7047, 1027, 7047, 1012, 13590, 1006, 2897, 1035, 8278, 1035, 8909, 1024, 1030, 8909, 1007, 24501, 2361, 1027, 1030, 7396, 1012, 144...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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_stream_analytics/lib/2016-03-01/generated/azure_mgmt_stream_analytics/outputs.rb
Azure::StreamAnalytics::Mgmt::V2016_03_01.Outputs.list_by_streaming_job_with_http_info
def list_by_streaming_job_with_http_info(resource_group_name, job_name, select:nil, custom_headers:nil) list_by_streaming_job_async(resource_group_name, job_name, select:select, custom_headers:custom_headers).value! end
ruby
def list_by_streaming_job_with_http_info(resource_group_name, job_name, select:nil, custom_headers:nil) list_by_streaming_job_async(resource_group_name, job_name, select:select, custom_headers:custom_headers).value! end
[ "def", "list_by_streaming_job_with_http_info", "(", "resource_group_name", ",", "job_name", ",", "select", ":", "nil", ",", "custom_headers", ":", "nil", ")", "list_by_streaming_job_async", "(", "resource_group_name", ",", "job_name", ",", "select", ":", "select", ","...
Lists all of the outputs under the specified streaming job. @param resource_group_name [String] The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. @param job_name [String] The name of the streaming job. @param select [String] The...
[ "Lists", "all", "of", "the", "outputs", "under", "the", "specified", "streaming", "job", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_stream_analytics/lib/2016-03-01/generated/azure_mgmt_stream_analytics/outputs.rb#L544-L546
train
Gets the list of all the documents in a streaming job.
[ 30522, 13366, 2862, 1035, 2011, 1035, 11058, 1035, 3105, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 3105, 1035, 2171, 1010, 7276, 1024, 9152, 2140, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 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...
CocoaPods/Xcodeproj
lib/xcodeproj/project.rb
Xcodeproj.Project.new
def new(klass) if klass.is_a?(String) klass = Object.const_get(klass) end object = klass.new(self, generate_uuid) object.initialize_defaults object end
ruby
def new(klass) if klass.is_a?(String) klass = Object.const_get(klass) end object = klass.new(self, generate_uuid) object.initialize_defaults object end
[ "def", "new", "(", "klass", ")", "if", "klass", ".", "is_a?", "(", "String", ")", "klass", "=", "Object", ".", "const_get", "(", "klass", ")", "end", "object", "=", "klass", ".", "new", "(", "self", ",", "generate_uuid", ")", "object", ".", "initiali...
@!group Creating objects ------------------------------------------------------------------------- Creates a new object with a suitable UUID. The object is only configured with the default values of the `:simple` attributes, for this reason it is better to use the convenience methods offered by the {AbstractObject...
[ "@!group", "Creating", "objects", "-------------------------------------------------------------------------", "Creates", "a", "new", "object", "with", "a", "suitable", "UUID", "." ]
3be1684437a6f8e69c7836ad4c85a2b78663272f
https://github.com/CocoaPods/Xcodeproj/blob/3be1684437a6f8e69c7836ad4c85a2b78663272f/lib/xcodeproj/project.rb#L432-L439
train
Create a new object
[ 30522, 13366, 2047, 1006, 1047, 27102, 1007, 2065, 1047, 27102, 1012, 2003, 1035, 1037, 1029, 1006, 5164, 1007, 1047, 27102, 1027, 4874, 1012, 9530, 3367, 1035, 2131, 1006, 1047, 27102, 1007, 2203, 4874, 1027, 1047, 27102, 1012, 2047, 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_container_service/lib/2019-02-01/generated/azure_mgmt_container_service/managed_clusters.rb
Azure::ContainerService::Mgmt::V2019_02_01.ManagedClusters.reset_service_principal_profile
def reset_service_principal_profile(resource_group_name, resource_name, parameters, custom_headers:nil) response = reset_service_principal_profile_async(resource_group_name, resource_name, parameters, custom_headers:custom_headers).value! nil end
ruby
def reset_service_principal_profile(resource_group_name, resource_name, parameters, custom_headers:nil) response = reset_service_principal_profile_async(resource_group_name, resource_name, parameters, custom_headers:custom_headers).value! nil end
[ "def", "reset_service_principal_profile", "(", "resource_group_name", ",", "resource_name", ",", "parameters", ",", "custom_headers", ":", "nil", ")", "response", "=", "reset_service_principal_profile_async", "(", "resource_group_name", ",", "resource_name", ",", "parameter...
Reset Service Principal Profile of a managed cluster. Update the service principal Profile for a managed cluster. @param resource_group_name [String] The name of the resource group. @param resource_name [String] The name of the managed cluster resource. @param parameters [ManagedClusterServicePrincipalProfile] Pa...
[ "Reset", "Service", "Principal", "Profile", "of", "a", "managed", "cluster", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_container_service/lib/2019-02-01/generated/azure_mgmt_container_service/managed_clusters.rb#L881-L884
train
Reset the service principal profile.
[ 30522, 13366, 25141, 1035, 2326, 1035, 4054, 1035, 6337, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 7692, 1035, 2171, 1010, 11709, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 25141, 1035, 2326, 1035, 4054, 1035, 6337, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...