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.list_by_redis_resource
def list_by_redis_resource(resource_group_name, cache_name, custom_headers:nil) first_page = list_by_redis_resource_as_lazy(resource_group_name, cache_name, custom_headers:custom_headers) first_page.get_all_items end
ruby
def list_by_redis_resource(resource_group_name, cache_name, custom_headers:nil) first_page = list_by_redis_resource_as_lazy(resource_group_name, cache_name, custom_headers:custom_headers) first_page.get_all_items end
[ "def", "list_by_redis_resource", "(", "resource_group_name", ",", "cache_name", ",", "custom_headers", ":", "nil", ")", "first_page", "=", "list_by_redis_resource_as_lazy", "(", "resource_group_name", ",", "cache_name", ",", "custom_headers", ":custom_headers", ")", "firs...
Gets all firewall rules in the 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 custom_headers [Hash{String => String}] A hash of custom headers that will be added to the HTTP request. @return [Array<RedisFir...
[ "Gets", "all", "firewall", "rules", "in", "the", "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#L34-L37
train
Gets all the available licenses in a redis cache.
[ 30522, 13366, 2862, 1035, 2011, 1035, 2417, 2483, 1035, 7692, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 17053, 1035, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 2034, 1035, 3931, 1027, 2862, 1035, 2011, 1035, 2417, 2483, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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/view_hooks.rb
Decidim.ViewHooks.register
def register(name, priority: LOW_PRIORITY, &block) hooks[name].push(ViewHook.new(priority, block)) hooks[name].sort_by!(&:priority) end
ruby
def register(name, priority: LOW_PRIORITY, &block) hooks[name].push(ViewHook.new(priority, block)) hooks[name].sort_by!(&:priority) end
[ "def", "register", "(", "name", ",", "priority", ":", "LOW_PRIORITY", ",", "&", "block", ")", "hooks", "[", "name", "]", ".", "push", "(", "ViewHook", ".", "new", "(", "priority", ",", "block", ")", ")", "hooks", "[", "name", "]", ".", "sort_by!", ...
Initializes the class. hooks - a Hash to store the different view hooks. By default, it's a Hash with Arrays as default values. Public: Register a view partial for a given view hook. It automatically sorts the partials for a given hook name by priority. name - a symbol representing the name of the view hook p...
[ "Initializes", "the", "class", "." ]
6e2b14e559a63088669904e3c5c49a5180700cf7
https://github.com/decidim/decidim/blob/6e2b14e559a63088669904e3c5c49a5180700cf7/decidim-core/lib/decidim/view_hooks.rb#L50-L53
train
Register a view hook
[ 30522, 13366, 4236, 1006, 2171, 1010, 9470, 1024, 30524, 1012, 2047, 1006, 9470, 1010, 3796, 1007, 1007, 18008, 1031, 2171, 1033, 1012, 4066, 1035, 2011, 999, 1006, 1004, 1024, 9470, 1007, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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.category=
def category=(channel) channel = @bot.channel(channel) raise ArgumentError, 'Cannot set parent category to a channel that isn\'t a category' unless channel.category? update_channel_data(parent_id: channel.id) end
ruby
def category=(channel) channel = @bot.channel(channel) raise ArgumentError, 'Cannot set parent category to a channel that isn\'t a category' unless channel.category? update_channel_data(parent_id: channel.id) end
[ "def", "category", "=", "(", "channel", ")", "channel", "=", "@bot", ".", "channel", "(", "channel", ")", "raise", "ArgumentError", ",", "'Cannot set parent category to a channel that isn\\'t a category'", "unless", "channel", ".", "category?", "update_channel_data", "(...
Sets this channels parent category @param channel [Channel, #resolve_id] the target category channel @raise [ArgumentError] if the target channel isn't a category
[ "Sets", "this", "channels", "parent", "category" ]
764298a1ff0be69a1853b510d736f21c2b91a2fe
https://github.com/meew0/discordrb/blob/764298a1ff0be69a1853b510d736f21c2b91a2fe/lib/discordrb/data/channel.rb#L155-L160
train
Sets the parent category of a channel
[ 30522, 13366, 4696, 1027, 1006, 3149, 1007, 3149, 1027, 1030, 28516, 1012, 3149, 1006, 3149, 1007, 5333, 6685, 2121, 29165, 1010, 1005, 3685, 2275, 6687, 4696, 2000, 1037, 3149, 2008, 3475, 1032, 1005, 1056, 1037, 4696, 1005, 4983, 3149, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
rails/rails
actionpack/lib/action_controller/metal/strong_parameters.rb
ActionController.Parameters.require
def require(key) return key.map { |k| require(k) } if key.is_a?(Array) value = self[key] if value.present? || value == false value else raise ParameterMissing.new(key) end end
ruby
def require(key) return key.map { |k| require(k) } if key.is_a?(Array) value = self[key] if value.present? || value == false value else raise ParameterMissing.new(key) end end
[ "def", "require", "(", "key", ")", "return", "key", ".", "map", "{", "|", "k", "|", "require", "(", "k", ")", "}", "if", "key", ".", "is_a?", "(", "Array", ")", "value", "=", "self", "[", "key", "]", "if", "value", ".", "present?", "||", "value...
This method accepts both a single key and an array of keys. When passed a single key, if it exists and its associated value is either present or the singleton +false+, returns said value: ActionController::Parameters.new(person: { name: "Francesco" }).require(:person) # => <ActionController::Parameters {"name...
[ "This", "method", "accepts", "both", "a", "single", "key", "and", "an", "array", "of", "keys", "." ]
85a8bc644be69908f05740a5886ec19cd3679df5
https://github.com/rails/rails/blob/85a8bc644be69908f05740a5886ec19cd3679df5/actionpack/lib/action_controller/metal/strong_parameters.rb#L452-L460
train
Require a parameter
[ 30522, 13366, 5478, 1006, 3145, 1007, 2709, 3145, 1012, 4949, 1063, 1064, 1047, 1064, 5478, 1006, 1047, 1007, 1065, 2065, 3145, 1012, 2003, 1035, 1037, 1029, 1006, 9140, 1007, 3643, 1027, 2969, 1031, 3145, 1033, 2065, 3643, 1012, 2556, 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...
hashicorp/vagrant
lib/vagrant/machine_index.rb
Vagrant.MachineIndex.unlocked_release
def unlocked_release(id) lock_file = @machine_locks[id] if lock_file lock_file.close begin File.delete(lock_file.path) rescue Errno::EACCES # Another process is probably opened it, no problem. end @machine_locks.delete(id) end end
ruby
def unlocked_release(id) lock_file = @machine_locks[id] if lock_file lock_file.close begin File.delete(lock_file.path) rescue Errno::EACCES # Another process is probably opened it, no problem. end @machine_locks.delete(id) end end
[ "def", "unlocked_release", "(", "id", ")", "lock_file", "=", "@machine_locks", "[", "id", "]", "if", "lock_file", "lock_file", ".", "close", "begin", "File", ".", "delete", "(", "lock_file", ".", "path", ")", "rescue", "Errno", "::", "EACCES", "# Another pro...
Releases a local lock on a machine. This does not acquire any locks so make sure to lock around it. @param [String] id
[ "Releases", "a", "local", "lock", "on", "a", "machine", ".", "This", "does", "not", "acquire", "any", "locks", "so", "make", "sure", "to", "lock", "around", "it", "." ]
c22a145c59790c098f95d50141d9afb48e1ef55f
https://github.com/hashicorp/vagrant/blob/c22a145c59790c098f95d50141d9afb48e1ef55f/lib/vagrant/machine_index.rb#L270-L282
train
Release the lock file for the given machine ID.
[ 30522, 13366, 14058, 1035, 2713, 1006, 8909, 1007, 5843, 1035, 5371, 1027, 1030, 3698, 1035, 11223, 1031, 8909, 1033, 2065, 5843, 1035, 5371, 5843, 1035, 5371, 1012, 2485, 4088, 5371, 1012, 3972, 12870, 1006, 5843, 1035, 5371, 1012, 4130, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_compute/lib/2019-03-01/generated/azure_mgmt_compute/virtual_machine_scale_set_extensions.rb
Azure::Compute::Mgmt::V2019_03_01.VirtualMachineScaleSetExtensions.list
def list(resource_group_name, vm_scale_set_name, custom_headers:nil) first_page = list_as_lazy(resource_group_name, vm_scale_set_name, custom_headers:custom_headers) first_page.get_all_items end
ruby
def list(resource_group_name, vm_scale_set_name, custom_headers:nil) first_page = list_as_lazy(resource_group_name, vm_scale_set_name, custom_headers:custom_headers) first_page.get_all_items end
[ "def", "list", "(", "resource_group_name", ",", "vm_scale_set_name", ",", "custom_headers", ":", "nil", ")", "first_page", "=", "list_as_lazy", "(", "resource_group_name", ",", "vm_scale_set_name", ",", "custom_headers", ":custom_headers", ")", "first_page", ".", "get...
Gets a list of all extensions in a VM scale set. @param resource_group_name [String] The name of the resource group. @param vm_scale_set_name [String] The name of the VM scale set containing the extension. @param custom_headers [Hash{String => String}] A hash of custom headers that will be added to the HTTP reque...
[ "Gets", "a", "list", "of", "all", "extensions", "in", "a", "VM", "scale", "set", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_compute/lib/2019-03-01/generated/azure_mgmt_compute/virtual_machine_scale_set_extensions.rb#L229-L232
train
Gets all the virtual machine scale sets in a VM scale set.
[ 30522, 13366, 2862, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 1058, 2213, 1035, 4094, 1035, 2275, 1035, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 2034, 1035, 3931, 1027, 2862, 1035, 2004, 1035, 13971, 1006, 7692, 1035, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_policy_insights/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/remediations.rb
Azure::PolicyInsights::Mgmt::V2018_07_01_preview.Remediations.list_deployments_at_resource_group_as_lazy
def list_deployments_at_resource_group_as_lazy(resource_group_name, remediation_name, query_options:nil, custom_headers:nil) response = list_deployments_at_resource_group_async(resource_group_name, remediation_name, query_options:query_options, custom_headers:custom_headers).value! unless response.nil? ...
ruby
def list_deployments_at_resource_group_as_lazy(resource_group_name, remediation_name, query_options:nil, custom_headers:nil) response = list_deployments_at_resource_group_async(resource_group_name, remediation_name, query_options:query_options, custom_headers:custom_headers).value! unless response.nil? ...
[ "def", "list_deployments_at_resource_group_as_lazy", "(", "resource_group_name", ",", "remediation_name", ",", "query_options", ":", "nil", ",", "custom_headers", ":", "nil", ")", "response", "=", "list_deployments_at_resource_group_async", "(", "resource_group_name", ",", ...
Gets all deployments for a remediation at resource group scope. @param resource_group_name [String] Resource group name. @param remediation_name [String] The name of the remediation. @param query_options [QueryOptions] Additional parameters for the operation @param custom_headers [Hash{String => String}] A hash of...
[ "Gets", "all", "deployments", "for", "a", "remediation", "at", "resource", "group", "scope", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_policy_insights/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/remediations.rb#L3151-L3160
train
Gets all deployments for a remediation at resource group scope.
[ 30522, 13366, 2862, 1035, 10813, 2015, 1035, 2012, 1035, 7692, 1035, 2177, 1035, 2004, 1035, 13971, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 2128, 16969, 3508, 1035, 2171, 1010, 23032, 1035, 7047, 1024, 9152, 2140, 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...
Azure/azure-sdk-for-ruby
management/azure_mgmt_sql/lib/2017-03-01-preview/generated/azure_mgmt_sql/job_executions.rb
Azure::SQL::Mgmt::V2017_03_01_preview.JobExecutions.list_by_agent_with_http_info
def list_by_agent_with_http_info(resource_group_name, server_name, job_agent_name, 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) list_by_agent_async(resource_group_name, server_name, job_agent_name, create_time_min:create_time_m...
ruby
def list_by_agent_with_http_info(resource_group_name, server_name, job_agent_name, 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) list_by_agent_async(resource_group_name, server_name, job_agent_name, create_time_min:create_time_m...
[ "def", "list_by_agent_with_http_info", "(", "resource_group_name", ",", "server_name", ",", "job_agent_name", ",", "create_time_min", ":", "nil", ",", "create_time_max", ":", "nil", ",", "end_time_min", ":", "nil", ",", "end_time_max", ":", "nil", ",", "is_active", ...
Lists all executions in a job agent. @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] The name of the job ag...
[ "Lists", "all", "executions", "in", "a", "job", "agent", "." ]
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_executions.rb#L82-L84
train
Gets the list of job agents in a server.
[ 30522, 13366, 2862, 1035, 2011, 1035, 4005, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 8241, 1035, 2171, 1010, 3105, 1035, 4005, 1035, 2171, 1010, 3443, 1035, 2051, 1035, 8117, 1024, 9152, 2140, 1010, 3...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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.rb
Vault.Authenticate.token
def token(new_token) old_token = client.token client.token = new_token json = client.get("/v1/auth/token/lookup-self") secret = Secret.decode(json) return secret rescue client.token = old_token raise end
ruby
def token(new_token) old_token = client.token client.token = new_token json = client.get("/v1/auth/token/lookup-self") secret = Secret.decode(json) return secret rescue client.token = old_token raise end
[ "def", "token", "(", "new_token", ")", "old_token", "=", "client", ".", "token", "client", ".", "token", "=", "new_token", "json", "=", "client", ".", "get", "(", "\"/v1/auth/token/lookup-self\"", ")", "secret", "=", "Secret", ".", "decode", "(", "json", "...
Authenticate via the "token" authentication method. This authentication method is a bit bizarre because you already have a token, but hey, whatever floats your boat. This method hits the `/v1/auth/token/lookup-self` endpoint after setting the Vault client's token to the given token parameter. If the self lookup s...
[ "Authenticate", "via", "the", "token", "authentication", "method", ".", "This", "authentication", "method", "is", "a", "bit", "bizarre", "because", "you", "already", "have", "a", "token", "but", "hey", "whatever", "floats", "your", "boat", "." ]
02f0532a802ba1a2a0d8703a4585dab76eb9d864
https://github.com/hashicorp/vault-ruby/blob/02f0532a802ba1a2a0d8703a4585dab76eb9d864/lib/vault/api/auth.rb#L34-L43
train
Get the token for the current user
[ 30522, 13366, 19204, 1006, 2047, 1035, 19204, 1007, 2214, 1035, 19204, 1027, 7396, 1012, 19204, 7396, 1012, 19204, 1027, 2047, 1035, 19204, 1046, 3385, 1027, 7396, 1012, 2131, 1006, 1000, 1013, 1058, 2487, 1013, 8740, 2705, 1013, 19204, 101...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
comfy/comfortable-mexican-sofa
app/helpers/comfy/cms_helper.rb
Comfy.CmsHelper.cms_snippet_render
def cms_snippet_render(identifier, cms_site = @cms_site) cms_site ||= cms_site_detect snippet = cms_site&.snippets&.find_by_identifier(identifier) return "" unless snippet r = ComfortableMexicanSofa::Content::Renderer.new(snippet) render inline: r.render(r.nodes(r.tokenize(snippet.content)...
ruby
def cms_snippet_render(identifier, cms_site = @cms_site) cms_site ||= cms_site_detect snippet = cms_site&.snippets&.find_by_identifier(identifier) return "" unless snippet r = ComfortableMexicanSofa::Content::Renderer.new(snippet) render inline: r.render(r.nodes(r.tokenize(snippet.content)...
[ "def", "cms_snippet_render", "(", "identifier", ",", "cms_site", "=", "@cms_site", ")", "cms_site", "||=", "cms_site_detect", "snippet", "=", "cms_site", "&.", "snippets", "&.", "find_by_identifier", "(", "identifier", ")", "return", "\"\"", "unless", "snippet", "...
Same as cms_snippet_content but cms tags will be expanded. Note that there is no page context, so snippet cannot contain fragment tags.
[ "Same", "as", "cms_snippet_content", "but", "cms", "tags", "will", "be", "expanded", ".", "Note", "that", "there", "is", "no", "page", "context", "so", "snippet", "cannot", "contain", "fragment", "tags", "." ]
38a31428f6e2c07d5bda64f0371eebfb29a3abc4
https://github.com/comfy/comfortable-mexican-sofa/blob/38a31428f6e2c07d5bda64f0371eebfb29a3abc4/app/helpers/comfy/cms_helper.rb#L48-L54
train
Renders a snippet
[ 30522, 13366, 4642, 2015, 1035, 1055, 3490, 29519, 1035, 17552, 1006, 8909, 4765, 18095, 1010, 4642, 2015, 1035, 2609, 1027, 1030, 4642, 2015, 1035, 2609, 1007, 4642, 2015, 1035, 2609, 1064, 1064, 1027, 4642, 2015, 1035, 2609, 1035, 11487, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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/transactions.rb
ActiveRecord.Transactions.sync_with_transaction_state
def sync_with_transaction_state if transaction_state = @transaction_state if transaction_state.fully_committed? force_clear_transaction_record_state elsif transaction_state.committed? clear_transaction_record_state elsif transaction_state.rolledback? ...
ruby
def sync_with_transaction_state if transaction_state = @transaction_state if transaction_state.fully_committed? force_clear_transaction_record_state elsif transaction_state.committed? clear_transaction_record_state elsif transaction_state.rolledback? ...
[ "def", "sync_with_transaction_state", "if", "transaction_state", "=", "@transaction_state", "if", "transaction_state", ".", "fully_committed?", "force_clear_transaction_record_state", "elsif", "transaction_state", ".", "committed?", "clear_transaction_record_state", "elsif", "trans...
Updates the attributes on this particular Active Record object so that if it's associated with a transaction, then the state of the Active Record object will be updated to reflect the current state of the transaction. The <tt>@transaction_state</tt> variable stores the states of the associated transaction. This re...
[ "Updates", "the", "attributes", "on", "this", "particular", "Active", "Record", "object", "so", "that", "if", "it", "s", "associated", "with", "a", "transaction", "then", "the", "state", "of", "the", "Active", "Record", "object", "will", "be", "updated", "to...
85a8bc644be69908f05740a5886ec19cd3679df5
https://github.com/rails/rails/blob/85a8bc644be69908f05740a5886ec19cd3679df5/activerecord/lib/active_record/transactions.rb#L481-L493
train
Sync with the transaction state
[ 30522, 13366, 26351, 1035, 2007, 1035, 12598, 1035, 2110, 2065, 12598, 1035, 2110, 1027, 1030, 12598, 1035, 2110, 2065, 12598, 1035, 2110, 1012, 3929, 1035, 5462, 1029, 2486, 30524, 1035, 2110, 3449, 5332, 2546, 12598, 1035, 2110, 1012, 456...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
aasm/aasm
lib/aasm/base.rb
AASM.Base.event
def event(name, options={}, &block) @state_machine.add_event(name, options, &block) aasm_name = @name.to_sym event = name.to_sym # an addition over standard aasm so that, before firing an event, you can ask # may_event? and get back a boolean that tells you whether the guard method ...
ruby
def event(name, options={}, &block) @state_machine.add_event(name, options, &block) aasm_name = @name.to_sym event = name.to_sym # an addition over standard aasm so that, before firing an event, you can ask # may_event? and get back a boolean that tells you whether the guard method ...
[ "def", "event", "(", "name", ",", "options", "=", "{", "}", ",", "&", "block", ")", "@state_machine", ".", "add_event", "(", "name", ",", "options", ",", "block", ")", "aasm_name", "=", "@name", ".", "to_sym", "event", "=", "name", ".", "to_sym", "# ...
define an event
[ "define", "an", "event" ]
6a1000b489c6b2e205a7b142478a4b4e207c3dbd
https://github.com/aasm/aasm/blob/6a1000b489c6b2e205a7b142478a4b4e207c3dbd/lib/aasm/base.rb#L113-L143
train
Adds an event to the state machine.
[ 30522, 13366, 2724, 1006, 2171, 1010, 7047, 1027, 1063, 1065, 1010, 1004, 3796, 1007, 1030, 2110, 1035, 3698, 1012, 5587, 1035, 2724, 1006, 2171, 1010, 7047, 1010, 1004, 3796, 1007, 9779, 6491, 1035, 2171, 1027, 1030, 2171, 1012, 2000, 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
data/azure_cognitiveservices_luisauthoring/lib/2.0/generated/azure_cognitiveservices_luisauthoring/model.rb
Azure::CognitiveServices::LuisAuthoring::V2_0.Model.delete_prebuilt
def delete_prebuilt(app_id, version_id, prebuilt_id, custom_headers:nil) response = delete_prebuilt_async(app_id, version_id, prebuilt_id, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def delete_prebuilt(app_id, version_id, prebuilt_id, custom_headers:nil) response = delete_prebuilt_async(app_id, version_id, prebuilt_id, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "delete_prebuilt", "(", "app_id", ",", "version_id", ",", "prebuilt_id", ",", "custom_headers", ":", "nil", ")", "response", "=", "delete_prebuilt_async", "(", "app_id", ",", "version_id", ",", "prebuilt_id", ",", "custom_headers", ":custom_headers", ")", "...
Deletes a prebuilt entity extractor from a version of the application. @param app_id The application ID. @param version_id [String] The version ID. @param prebuilt_id The prebuilt entity extractor ID. @param custom_headers [Hash{String => String}] A hash of custom headers that will be added to the HTTP request. ...
[ "Deletes", "a", "prebuilt", "entity", "extractor", "from", "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#L3541-L3544
train
Deletes the prebuilt product.
[ 30522, 13366, 3972, 12870, 1035, 3653, 30524, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 3972, 12870, 1035, 3653, 8569, 4014, 2102, 1035, 2004, 6038, 2278, 1006, 10439, 1035, 8909, 1010, 2544, 1035, 8909, 1010, 3653, 8569,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
square/connect-ruby-sdk
lib/square_connect/api/catalog_api.rb
SquareConnect.CatalogApi.batch_retrieve_catalog_objects
def batch_retrieve_catalog_objects(body, opts = {}) data, _status_code, _headers = batch_retrieve_catalog_objects_with_http_info(body, opts) return data end
ruby
def batch_retrieve_catalog_objects(body, opts = {}) data, _status_code, _headers = batch_retrieve_catalog_objects_with_http_info(body, opts) return data end
[ "def", "batch_retrieve_catalog_objects", "(", "body", ",", "opts", "=", "{", "}", ")", "data", ",", "_status_code", ",", "_headers", "=", "batch_retrieve_catalog_objects_with_http_info", "(", "body", ",", "opts", ")", "return", "data", "end" ]
BatchRetrieveCatalogObjects Returns a set of objects based on the provided ID. Each [CatalogItem](#type-catalogitem) returned in the set includes all of its child information including: all of its [CatalogItemVariation](#type-catalogitemvariation) objects, references to its [CatalogModifierList](#type-catalogmodifierl...
[ "BatchRetrieveCatalogObjects", "Returns", "a", "set", "of", "objects", "based", "on", "the", "provided", "ID", ".", "Each", "[", "CatalogItem", "]", "(", "#type", "-", "catalogitem", ")", "returned", "in", "the", "set", "includes", "all", "of", "its", "child...
798eb9ded716f23b9f1518386f1c311a34bca8bf
https://github.com/square/connect-ruby-sdk/blob/798eb9ded716f23b9f1518386f1c311a34bca8bf/lib/square_connect/api/catalog_api.rb#L80-L83
train
Retrieve a list of catalog objects
[ 30522, 13366, 14108, 1035, 12850, 1035, 12105, 1035, 5200, 1006, 2303, 1010, 23569, 2015, 1027, 1063, 1065, 1007, 2951, 1010, 1035, 3570, 1035, 3642, 1010, 1035, 20346, 2015, 1027, 14108, 1035, 12850, 1035, 12105, 1035, 5200, 1035, 2007, 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_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/product_apis.rb
Azure::ApiManagement::Mgmt::V2016_10_10.ProductApis.list_by_products_as_lazy
def list_by_products_as_lazy(resource_group_name, service_name, product_id, filter:nil, top:nil, skip:nil, custom_headers:nil) response = list_by_products_async(resource_group_name, service_name, product_id, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! unless response.nil? ...
ruby
def list_by_products_as_lazy(resource_group_name, service_name, product_id, filter:nil, top:nil, skip:nil, custom_headers:nil) response = list_by_products_async(resource_group_name, service_name, product_id, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! unless response.nil? ...
[ "def", "list_by_products_as_lazy", "(", "resource_group_name", ",", "service_name", ",", "product_id", ",", "filter", ":", "nil", ",", "top", ":", "nil", ",", "skip", ":", "nil", ",", "custom_headers", ":", "nil", ")", "response", "=", "list_by_products_async", ...
Lists a collection of the APIs associated with a product. @param resource_group_name [String] The name of the resource group. @param service_name [String] The name of the API Management service. @param product_id [String] Product identifier. Must be unique in the current API Management service instance. @param fi...
[ "Lists", "a", "collection", "of", "the", "APIs", "associated", "with", "a", "product", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/product_apis.rb#L503-L512
train
Gets all the product s terms.
[ 30522, 13366, 2862, 1035, 2011, 1035, 3688, 1035, 2004, 1035, 13971, 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, 1024, 9152, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
tongueroo/jets
lib/jets/resource/api_gateway/method.rb
Jets::Resource::ApiGateway.Method.definition
def definition { method_logical_id => { type: "AWS::ApiGateway::Method", properties: { resource_id: "!Ref #{resource_id}", rest_api_id: "!Ref #{RestApi.logical_id}", http_method: @route.method, request_parameters: {}, authoriz...
ruby
def definition { method_logical_id => { type: "AWS::ApiGateway::Method", properties: { resource_id: "!Ref #{resource_id}", rest_api_id: "!Ref #{RestApi.logical_id}", http_method: @route.method, request_parameters: {}, authoriz...
[ "def", "definition", "{", "method_logical_id", "=>", "{", "type", ":", "\"AWS::ApiGateway::Method\"", ",", "properties", ":", "{", "resource_id", ":", "\"!Ref #{resource_id}\"", ",", "rest_api_id", ":", "\"!Ref #{RestApi.logical_id}\"", ",", "http_method", ":", "@route"...
route - Jets::Route
[ "route", "-", "Jets", "::", "Route" ]
46943a519224067e58aa3e2d5656e3ca083150f9
https://github.com/tongueroo/jets/blob/46943a519224067e58aa3e2d5656e3ca083150f9/lib/jets/resource/api_gateway/method.rb#L13-L32
train
Returns a hash of the object to be used in the definition of the object.
[ 30522, 13366, 6210, 1063, 4118, 1035, 11177, 1035, 8909, 1027, 1028, 1063, 2828, 1024, 1000, 22091, 2015, 1024, 1024, 17928, 5867, 4576, 1024, 1024, 4118, 1000, 1010, 5144, 1024, 1063, 7692, 1035, 8909, 1024, 1000, 999, 25416, 1001, 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...
piotrmurach/github
lib/github_api/client/git_data/references.rb
Github.Client::GitData::References.create
def create(*args) arguments(args, required: [:user, :repo]) do permit VALID_REF_PARAM_NAMES assert_required REQUIRED_REF_PARAMS end params = arguments.params validate_reference params['ref'] post_request("/repos/#{arguments.user}/#{arguments.repo}/git/refs", params) en...
ruby
def create(*args) arguments(args, required: [:user, :repo]) do permit VALID_REF_PARAM_NAMES assert_required REQUIRED_REF_PARAMS end params = arguments.params validate_reference params['ref'] post_request("/repos/#{arguments.user}/#{arguments.repo}/git/refs", params) en...
[ "def", "create", "(", "*", "args", ")", "arguments", "(", "args", ",", "required", ":", "[", ":user", ",", ":repo", "]", ")", "do", "permit", "VALID_REF_PARAM_NAMES", "assert_required", "REQUIRED_REF_PARAMS", "end", "params", "=", "arguments", ".", "params", ...
Create a reference @param [Hash] params @input params [String] :ref The name of the fully qualified reference (ie: refs/heads/master). If it doesn’t start with ‘refs’ and have at least two slashes, it will be rejected. @input params [String] :sha The SHA1 value to set this reference to @example gith...
[ "Create", "a", "reference" ]
8702452c66bea33c9388550aed9e9974f76aaef1
https://github.com/piotrmurach/github/blob/8702452c66bea33c9388550aed9e9974f76aaef1/lib/github_api/client/git_data/references.rb#L85-L94
train
Create a reference
[ 30522, 13366, 3443, 1006, 1008, 12098, 5620, 1007, 9918, 1006, 12098, 5620, 1010, 3223, 1024, 1031, 1024, 5310, 1010, 1024, 16360, 2080, 1033, 1007, 2079, 9146, 9398, 1035, 25416, 1035, 11498, 2213, 1035, 3415, 20865, 1035, 3223, 3223, 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...
randym/axlsx
lib/axlsx/workbook/worksheet/color_scale.rb
Axlsx.ColorScale.to_xml_string
def to_xml_string(str = '') str << '<colorScale>' value_objects.to_xml_string(str) colors.each { |color| color.to_xml_string(str) } str << '</colorScale>' end
ruby
def to_xml_string(str = '') str << '<colorScale>' value_objects.to_xml_string(str) colors.each { |color| color.to_xml_string(str) } str << '</colorScale>' end
[ "def", "to_xml_string", "(", "str", "=", "''", ")", "str", "<<", "'<colorScale>'", "value_objects", ".", "to_xml_string", "(", "str", ")", "colors", ".", "each", "{", "|", "color", "|", "color", ".", "to_xml_string", "(", "str", ")", "}", "str", "<<", ...
Serialize this color_scale object data to an xml string @param [String] str @return [String]
[ "Serialize", "this", "color_scale", "object", "data", "to", "an", "xml", "string" ]
c593a08b2a929dac7aa8dc418b55e26b4c49dc34
https://github.com/randym/axlsx/blob/c593a08b2a929dac7aa8dc418b55e26b4c49dc34/lib/axlsx/workbook/worksheet/color_scale.rb#L88-L93
train
Convert the color scale to XML string.
[ 30522, 13366, 2000, 1035, 20950, 1035, 5164, 1006, 2358, 2099, 1027, 1005, 1005, 1007, 2358, 2099, 1026, 1026, 1005, 1026, 6087, 9289, 2063, 1028, 1005, 3643, 1035, 5200, 1012, 2000, 1035, 20950, 1035, 5164, 1006, 2358, 2099, 1007, 6087, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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/utils.rb
SCSSLint.Utils.node_ancestor
def node_ancestor(node, levels) while levels > 0 node = node.node_parent return unless node levels -= 1 end node end
ruby
def node_ancestor(node, levels) while levels > 0 node = node.node_parent return unless node levels -= 1 end node end
[ "def", "node_ancestor", "(", "node", ",", "levels", ")", "while", "levels", ">", "0", "node", "=", "node", ".", "node_parent", "return", "unless", "node", "levels", "-=", "1", "end", "node", "end" ]
Return nth-ancestor of a node, where 1 is the parent, 2 is grandparent, etc. @param node [Sass::Tree::Node, Sass::Script::Tree::Node] @param level [Integer] @return [Sass::Tree::Node, Sass::Script::Tree::Node, nil]
[ "Return", "nth", "-", "ancestor", "of", "a", "node", "where", "1", "is", "the", "parent", "2", "is", "grandparent", "etc", "." ]
e99afe4ede041a431a06e585c12ce82f6ad50116
https://github.com/sds/scss-lint/blob/e99afe4ede041a431a06e585c12ce82f6ad50116/lib/scss_lint/utils.rb#L100-L108
train
Returns the ancestor of the given node.
[ 30522, 13366, 13045, 1035, 13032, 1006, 13045, 1010, 3798, 1007, 2096, 3798, 1028, 1014, 13045, 1027, 13045, 1012, 13045, 1035, 6687, 2709, 4983, 13045, 3798, 1011, 1027, 1015, 2203, 13045, 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...
apache/thrift
lib/rb/lib/thrift/protocol/json_protocol.rb
Thrift.JsonProtocol.write_json_string
def write_json_string(str) @context.write(trans) trans.write(@@kJSONStringDelimiter) str.split('').each do |ch| write_json_char(ch) end trans.write(@@kJSONStringDelimiter) end
ruby
def write_json_string(str) @context.write(trans) trans.write(@@kJSONStringDelimiter) str.split('').each do |ch| write_json_char(ch) end trans.write(@@kJSONStringDelimiter) end
[ "def", "write_json_string", "(", "str", ")", "@context", ".", "write", "(", "trans", ")", "trans", ".", "write", "(", "@@kJSONStringDelimiter", ")", "str", ".", "split", "(", "''", ")", ".", "each", "do", "|", "ch", "|", "write_json_char", "(", "ch", "...
Write out the contents of the string str as a JSON string, escaping characters as appropriate.
[ "Write", "out", "the", "contents", "of", "the", "string", "str", "as", "a", "JSON", "string", "escaping", "characters", "as", "appropriate", "." ]
27d8387c49a49fcf193893f834e9766ae0b051c1
https://github.com/apache/thrift/blob/27d8387c49a49fcf193893f834e9766ae0b051c1/lib/rb/lib/thrift/protocol/json_protocol.rb#L300-L307
train
Write a JSON string to the current context
[ 30522, 13366, 4339, 1035, 1046, 3385, 1035, 5164, 1006, 2358, 2099, 1007, 1030, 6123, 1012, 4339, 1006, 9099, 1007, 9099, 1012, 4339, 1006, 1030, 1030, 30524, 1064, 4339, 1035, 1046, 3385, 1035, 25869, 1006, 10381, 1007, 2203, 9099, 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_network/lib/2018-07-01/generated/azure_mgmt_network/local_network_gateways.rb
Azure::Network::Mgmt::V2018_07_01.LocalNetworkGateways.delete
def delete(resource_group_name, local_network_gateway_name, custom_headers:nil) response = delete_async(resource_group_name, local_network_gateway_name, custom_headers:custom_headers).value! nil end
ruby
def delete(resource_group_name, local_network_gateway_name, custom_headers:nil) response = delete_async(resource_group_name, local_network_gateway_name, custom_headers:custom_headers).value! nil end
[ "def", "delete", "(", "resource_group_name", ",", "local_network_gateway_name", ",", "custom_headers", ":", "nil", ")", "response", "=", "delete_async", "(", "resource_group_name", ",", "local_network_gateway_name", ",", "custom_headers", ":custom_headers", ")", ".", "v...
Deletes the specified local network gateway. @param resource_group_name [String] The name of the resource group. @param local_network_gateway_name [String] The name of the local network gateway. @param custom_headers [Hash{String => String}] A hash of custom headers that will be added to the HTTP request.
[ "Deletes", "the", "specified", "local", "network", "gateway", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_network/lib/2018-07-01/generated/azure_mgmt_network/local_network_gateways.rb#L177-L180
train
Deletes a local network gateway.
[ 30522, 13366, 3972, 12870, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 2334, 1035, 2897, 1035, 11909, 1035, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 3972, 12870, 1035, 2004, 6038, 2278, 1006, 7692, 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
management/azure_mgmt_policy_insights/lib/2018-04-04/generated/azure_mgmt_policy_insights/policy_states.rb
Azure::PolicyInsights::Mgmt::V2018_04_04.PolicyStates.list_query_results_for_subscription_level_policy_assignment_with_http_info
def list_query_results_for_subscription_level_policy_assignment_with_http_info(policy_states_resource, subscription_id, policy_assignment_name, query_options:nil, custom_headers:nil) list_query_results_for_subscription_level_policy_assignment_async(policy_states_resource, subscription_id, policy_assignment_name, ...
ruby
def list_query_results_for_subscription_level_policy_assignment_with_http_info(policy_states_resource, subscription_id, policy_assignment_name, query_options:nil, custom_headers:nil) list_query_results_for_subscription_level_policy_assignment_async(policy_states_resource, subscription_id, policy_assignment_name, ...
[ "def", "list_query_results_for_subscription_level_policy_assignment_with_http_info", "(", "policy_states_resource", ",", "subscription_id", ",", "policy_assignment_name", ",", "query_options", ":", "nil", ",", "custom_headers", ":", "nil", ")", "list_query_results_for_subscription_...
Queries policy states for the subscription level policy assignment. @param policy_states_resource [PolicyStatesResource] The virtual resource under PolicyStates resource type. In a given time range, 'latest' represents the latest policy state(s), whereas 'default' represents all policy state(s). Possible values in...
[ "Queries", "policy", "states", "for", "the", "subscription", "level", "policy", "assignment", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_policy_insights/lib/2018-04-04/generated/azure_mgmt_policy_insights/policy_states.rb#L1519-L1521
train
Gets the list of policy states that are associated with the policy assignment.
[ 30522, 13366, 2862, 1035, 23032, 1035, 3463, 1035, 2005, 1035, 15002, 1035, 2504, 1035, 3343, 1035, 8775, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 3343, 1035, 2163, 1035, 7692, 1010, 15002, 1035, 8909, 1010, 3343, 1035, 8775, 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...
aws/aws-sdk-ruby
gems/aws-sdk-rds/lib/aws-sdk-rds/resource.rb
Aws::RDS.Resource.reserved_db_instances
def reserved_db_instances(options = {}) batches = Enumerator.new do |y| resp = @client.describe_reserved_db_instances(options) resp.each_page do |page| batch = [] page.data.reserved_db_instances.each do |r| batch << ReservedDBInstance.new( id: r.reserv...
ruby
def reserved_db_instances(options = {}) batches = Enumerator.new do |y| resp = @client.describe_reserved_db_instances(options) resp.each_page do |page| batch = [] page.data.reserved_db_instances.each do |r| batch << ReservedDBInstance.new( id: r.reserv...
[ "def", "reserved_db_instances", "(", "options", "=", "{", "}", ")", "batches", "=", "Enumerator", ".", "new", "do", "|", "y", "|", "resp", "=", "@client", ".", "describe_reserved_db_instances", "(", "options", ")", "resp", ".", "each_page", "do", "|", "pag...
@example Request syntax with placeholder values reserved_db_instances = rds.reserved_db_instances({ reserved_db_instance_id: "String", reserved_db_instances_offering_id: "String", db_instance_class: "String", duration: "String", product_description: "String", offering_type: "String", ...
[ "@example", "Request", "syntax", "with", "placeholder", "values" ]
e28b8d320ddf7b6ee0161bdd9d00fb786d99b63d
https://github.com/aws/aws-sdk-ruby/blob/e28b8d320ddf7b6ee0161bdd9d00fb786d99b63d/gems/aws-sdk-rds/lib/aws-sdk-rds/resource.rb#L2452-L2468
train
Returns a collection of all reserved DB instances
[ 30522, 13366, 9235, 1035, 16962, 1035, 12107, 1006, 7047, 1027, 1063, 1065, 1007, 14108, 2229, 1027, 4372, 17897, 16259, 1012, 2047, 2079, 1064, 1061, 1064, 24501, 2361, 1027, 1030, 7396, 1012, 6235, 1035, 9235, 1035, 16962, 1035, 12107, 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_logic/lib/2016-06-01/generated/azure_mgmt_logic/partners.rb
Azure::Logic::Mgmt::V2016_06_01.Partners.list_by_integration_accounts_with_http_info
def list_by_integration_accounts_with_http_info(resource_group_name, integration_account_name, top:nil, filter:nil, custom_headers:nil) list_by_integration_accounts_async(resource_group_name, integration_account_name, top:top, filter:filter, custom_headers:custom_headers).value! end
ruby
def list_by_integration_accounts_with_http_info(resource_group_name, integration_account_name, top:nil, filter:nil, custom_headers:nil) list_by_integration_accounts_async(resource_group_name, integration_account_name, top:top, filter:filter, custom_headers:custom_headers).value! end
[ "def", "list_by_integration_accounts_with_http_info", "(", "resource_group_name", ",", "integration_account_name", ",", "top", ":", "nil", ",", "filter", ":", "nil", ",", "custom_headers", ":", "nil", ")", "list_by_integration_accounts_async", "(", "resource_group_name", ...
Gets a list of integration account partners. @param resource_group_name [String] The resource group name. @param integration_account_name [String] The integration account name. @param top [Integer] The number of items to be included in the result. @param filter [String] The filter to apply on the operation. Option...
[ "Gets", "a", "list", "of", "integration", "account", "partners", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_logic/lib/2016-06-01/generated/azure_mgmt_logic/partners.rb#L55-L57
train
Gets the list of integration accounts in a subscription.
[ 30522, 13366, 2862, 1035, 2011, 1035, 8346, 1035, 6115, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 8346, 1035, 4070, 1035, 2171, 1010, 2327, 1024, 9152, 2140, 1010, 11307, 1024, 9152, 2140, 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_key_vault/lib/2016-10-01/generated/azure_key_vault/key_vault_client.rb
Azure::KeyVault::V2016_10_01.KeyVaultClient.get_sas_definitions
def get_sas_definitions(vault_base_url, storage_account_name, maxresults:nil, custom_headers:nil) first_page = get_sas_definitions_as_lazy(vault_base_url, storage_account_name, maxresults:maxresults, custom_headers:custom_headers) first_page.get_all_items end
ruby
def get_sas_definitions(vault_base_url, storage_account_name, maxresults:nil, custom_headers:nil) first_page = get_sas_definitions_as_lazy(vault_base_url, storage_account_name, maxresults:maxresults, custom_headers:custom_headers) first_page.get_all_items end
[ "def", "get_sas_definitions", "(", "vault_base_url", ",", "storage_account_name", ",", "maxresults", ":", "nil", ",", "custom_headers", ":", "nil", ")", "first_page", "=", "get_sas_definitions_as_lazy", "(", "vault_base_url", ",", "storage_account_name", ",", "maxresult...
List storage SAS definitions for the given storage account. This operation requires the storage/listsas 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 maxresults [Integer] Maximum ...
[ "List", "storage", "SAS", "definitions", "for", "the", "given", "storage", "account", ".", "This", "operation", "requires", "the", "storage", "/", "listsas", "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#L7673-L7676
train
Gets the SAS definitions for the specified storage account.
[ 30522, 13366, 2131, 1035, 21871, 1035, 15182, 30524, 1035, 24471, 2140, 1010, 5527, 1035, 4070, 1035, 2171, 1010, 4098, 6072, 11314, 2015, 1024, 4098, 6072, 11314, 2015, 1010, 7661, 1035, 20346, 2015, 1024, 7661, 1035, 20346, 2015, 1007, 20...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
rocketjob/symmetric-encryption
lib/symmetric_encryption/header.rb
SymmetricEncryption.Header.read_string
def read_string(buffer, offset) # TODO: Length check # Exception when # - offset exceeds length of buffer # byteslice truncates when too long, but returns nil when start is beyond end of buffer len = buffer.byteslice(offset, 2).unpack('v').first offset += 2 out = ...
ruby
def read_string(buffer, offset) # TODO: Length check # Exception when # - offset exceeds length of buffer # byteslice truncates when too long, but returns nil when start is beyond end of buffer len = buffer.byteslice(offset, 2).unpack('v').first offset += 2 out = ...
[ "def", "read_string", "(", "buffer", ",", "offset", ")", "# TODO: Length check", "# Exception when", "# - offset exceeds length of buffer", "# byteslice truncates when too long, but returns nil when start is beyond end of buffer", "len", "=", "buffer", ".", "byteslice", "(", ...
Extracts a string from the supplied buffer. The buffer starts with a 2 byte length indicator in little endian format. Parameters buffer [String] offset [Integer] Start position within the buffer. Returns [string, offset] string [String] The string copied from the buffer. offset [Integer] ...
[ "Extracts", "a", "string", "from", "the", "supplied", "buffer", ".", "The", "buffer", "starts", "with", "a", "2", "byte", "length", "indicator", "in", "little", "endian", "format", "." ]
064ba8d57ffac44a3ed80f5e76fa1a54d660ff98
https://github.com/rocketjob/symmetric-encryption/blob/064ba8d57ffac44a3ed80f5e76fa1a54d660ff98/lib/symmetric_encryption/header.rb#L256-L265
train
Read a string from the buffer.
[ 30522, 13366, 3191, 1035, 5164, 1006, 17698, 1010, 16396, 1007, 1001, 28681, 2080, 1024, 3091, 4638, 1001, 6453, 2043, 1001, 1011, 16396, 23651, 3091, 1997, 17698, 1001, 27507, 13231, 19817, 4609, 16280, 2015, 2043, 2205, 2146, 30524, 2041, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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/manifest.rb
Sprockets.Manifest.remove
def remove(filename) path = File.join(dir, filename) gzip = "#{path}.gz" logical_path = files[filename]['logical_path'] if assets[logical_path] == filename assets.delete(logical_path) end files.delete(filename) FileUtils.rm(path) if File.exist?(path) FileUtils.r...
ruby
def remove(filename) path = File.join(dir, filename) gzip = "#{path}.gz" logical_path = files[filename]['logical_path'] if assets[logical_path] == filename assets.delete(logical_path) end files.delete(filename) FileUtils.rm(path) if File.exist?(path) FileUtils.r...
[ "def", "remove", "(", "filename", ")", "path", "=", "File", ".", "join", "(", "dir", ",", "filename", ")", "gzip", "=", "\"#{path}.gz\"", "logical_path", "=", "files", "[", "filename", "]", "[", "'logical_path'", "]", "if", "assets", "[", "logical_path", ...
Removes file from directory and from manifest. `filename` must be the name with any directory path. manifest.remove("application-2e8e9a7c6b0aafa0c9bdeec90ea30213.js")
[ "Removes", "file", "from", "directory", "and", "from", "manifest", ".", "filename", "must", "be", "the", "name", "with", "any", "directory", "path", "." ]
9e3f0d8e98c44f57e67bc138db87bb8469bf5ddd
https://github.com/rails/sprockets/blob/9e3f0d8e98c44f57e67bc138db87bb8469bf5ddd/lib/sprockets/manifest.rb#L215-L233
train
Remove a file from the cache
[ 30522, 13366, 6366, 1006, 5371, 18442, 1007, 4130, 1027, 5371, 1012, 3693, 1006, 16101, 1010, 5371, 18442, 1007, 1043, 5831, 2361, 1027, 1000, 1001, 1063, 4130, 1065, 1012, 1043, 2480, 1000, 11177, 1035, 4130, 1027, 6764, 1031, 5371, 18442,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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/relation.rb
ActiveRecord.Relation.new
def new(attributes = nil, &block) block = _deprecated_scope_block("new", &block) scoping { klass.new(attributes, &block) } end
ruby
def new(attributes = nil, &block) block = _deprecated_scope_block("new", &block) scoping { klass.new(attributes, &block) } end
[ "def", "new", "(", "attributes", "=", "nil", ",", "&", "block", ")", "block", "=", "_deprecated_scope_block", "(", "\"new\"", ",", "block", ")", "scoping", "{", "klass", ".", "new", "(", "attributes", ",", "block", ")", "}", "end" ]
Initializes new record from relation while maintaining the current scope. Expects arguments in the same format as {ActiveRecord::Base.new}[rdoc-ref:Core.new]. users = User.where(name: 'DHH') user = users.new # => #<User id: nil, name: "DHH", created_at: nil, updated_at: nil> You can also pass a block to new...
[ "Initializes", "new", "record", "from", "relation", "while", "maintaining", "the", "current", "scope", "." ]
85a8bc644be69908f05740a5886ec19cd3679df5
https://github.com/rails/rails/blob/85a8bc644be69908f05740a5886ec19cd3679df5/activerecord/lib/active_record/relation.rb#L69-L72
train
Creates a new object.
[ 30522, 13366, 2047, 1006, 12332, 1027, 9152, 2140, 1010, 1004, 3796, 1007, 3796, 1027, 1035, 2139, 28139, 12921, 1035, 9531, 1035, 3796, 1006, 1000, 2047, 1000, 1010, 1004, 3796, 1007, 8040, 17686, 1063, 1047, 27102, 1012, 2047, 1006, 12332...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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/rich_text_run.rb
Axlsx.RichTextRun.set_run_style
def set_run_style(validator, attr, value) return unless INLINE_STYLES.include?(attr.to_sym) Axlsx.send(validator, value) unless validator.nil? self.instance_variable_set :"@#{attr.to_s}", value end
ruby
def set_run_style(validator, attr, value) return unless INLINE_STYLES.include?(attr.to_sym) Axlsx.send(validator, value) unless validator.nil? self.instance_variable_set :"@#{attr.to_s}", value end
[ "def", "set_run_style", "(", "validator", ",", "attr", ",", "value", ")", "return", "unless", "INLINE_STYLES", ".", "include?", "(", "attr", ".", "to_sym", ")", "Axlsx", ".", "send", "(", "validator", ",", "value", ")", "unless", "validator", ".", "nil?", ...
Utility method for setting inline style attributes
[ "Utility", "method", "for", "setting", "inline", "style", "attributes" ]
c593a08b2a929dac7aa8dc418b55e26b4c49dc34
https://github.com/randym/axlsx/blob/c593a08b2a929dac7aa8dc418b55e26b4c49dc34/lib/axlsx/workbook/worksheet/rich_text_run.rb#L182-L186
train
Set run style
[ 30522, 13366, 2275, 1035, 2448, 1035, 2806, 1006, 9398, 8844, 1010, 2012, 16344, 1010, 3643, 1007, 2709, 4983, 23881, 1035, 6782, 1012, 2421, 1029, 1006, 2012, 16344, 1012, 2000, 1035, 25353, 2213, 1007, 22260, 4877, 2595, 1012, 4604, 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...
sunspot/sunspot
sunspot/lib/sunspot/composite_setup.rb
Sunspot.CompositeSetup.fields_hash
def fields_hash @fields_hash ||= begin field_sets_hash = Hash.new { |h, k| h[k] = Set.new } @types.each do |type| Setup.for(type).fields.each do |field| field_sets_hash[field.name.to_sym] << field end end fields_hash = {} ...
ruby
def fields_hash @fields_hash ||= begin field_sets_hash = Hash.new { |h, k| h[k] = Set.new } @types.each do |type| Setup.for(type).fields.each do |field| field_sets_hash[field.name.to_sym] << field end end fields_hash = {} ...
[ "def", "fields_hash", "@fields_hash", "||=", "begin", "field_sets_hash", "=", "Hash", ".", "new", "{", "|", "h", ",", "k", "|", "h", "[", "k", "]", "=", "Set", ".", "new", "}", "@types", ".", "each", "do", "|", "type", "|", "Setup", ".", "for", "...
Return a hash of field names to field objects, containing all fields that are common to all of the classes enclosed. In order for fields to be common, they must be of the same type and have the same value for allow_multiple? and stored?. This method is memoized. ==== Returns Hash:: field names keyed to field obj...
[ "Return", "a", "hash", "of", "field", "names", "to", "field", "objects", "containing", "all", "fields", "that", "are", "common", "to", "all", "of", "the", "classes", "enclosed", ".", "In", "order", "for", "fields", "to", "be", "common", "they", "must", "...
31dd76cd7a14a4ef7bd541de97483d8cd72ff685
https://github.com/sunspot/sunspot/blob/31dd76cd7a14a4ef7bd541de97483d8cd72ff685/sunspot/lib/sunspot/composite_setup.rb#L159-L176
train
Returns a hash of all the fields that are present in the record.
[ 30522, 13366, 4249, 1035, 23325, 1030, 4249, 1035, 23325, 1064, 1064, 1027, 4088, 2492, 1035, 4520, 1035, 23325, 1027, 23325, 1012, 2047, 1063, 1064, 1044, 1010, 1047, 1064, 1044, 1031, 1047, 1033, 1027, 2275, 1012, 2047, 1065, 1030, 4127, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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/interpolation.rb
Slim.Interpolation.on_slim_interpolate
def on_slim_interpolate(string) # Interpolate variables in text (#{variable}). # Split the text into multiple dynamic and static parts. block = [:multi] begin case string when /\A\\#\{/ # Escaped interpolation block << [:static, '#{'] string = $' ...
ruby
def on_slim_interpolate(string) # Interpolate variables in text (#{variable}). # Split the text into multiple dynamic and static parts. block = [:multi] begin case string when /\A\\#\{/ # Escaped interpolation block << [:static, '#{'] string = $' ...
[ "def", "on_slim_interpolate", "(", "string", ")", "# Interpolate variables in text (#{variable}).", "# Split the text into multiple dynamic and static parts.", "block", "=", "[", ":multi", "]", "begin", "case", "string", "when", "/", "\\A", "\\\\", "\\{", "/", "# Escaped in...
Handle interpolate expression `[:slim, :interpolate, string]` @param [String] string Static interpolate @return [Array] Compiled temple expression
[ "Handle", "interpolate", "expression", "[", ":", "slim", ":", "interpolate", "string", "]" ]
ae8e7338fcfb67256d2f6b50c64fc317210e31a2
https://github.com/slim-template/slim/blob/ae8e7338fcfb67256d2f6b50c64fc317210e31a2/lib/slim/interpolation.rb#L11-L33
train
Interpolate a string using slim interpolation.
[ 30522, 13366, 2006, 1035, 11754, 1035, 6970, 18155, 3686, 1006, 5164, 1007, 1001, 6970, 18155, 3686, 10857, 1999, 3793, 1006, 1001, 1063, 8023, 1065, 1007, 1012, 1001, 3975, 1996, 3793, 2046, 3674, 8790, 1998, 10763, 3033, 1012, 3796, 1027,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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-04-01/generated/azure_mgmt_network/express_route_cross_connections.rb
Azure::Network::Mgmt::V2018_04_01.ExpressRouteCrossConnections.begin_list_arp_table_with_http_info
def begin_list_arp_table_with_http_info(resource_group_name, cross_connection_name, peering_name, device_path, custom_headers:nil) begin_list_arp_table_async(resource_group_name, cross_connection_name, peering_name, device_path, custom_headers:custom_headers).value! end
ruby
def begin_list_arp_table_with_http_info(resource_group_name, cross_connection_name, peering_name, device_path, custom_headers:nil) begin_list_arp_table_async(resource_group_name, cross_connection_name, peering_name, device_path, custom_headers:custom_headers).value! end
[ "def", "begin_list_arp_table_with_http_info", "(", "resource_group_name", ",", "cross_connection_name", ",", "peering_name", ",", "device_path", ",", "custom_headers", ":", "nil", ")", "begin_list_arp_table_async", "(", "resource_group_name", ",", "cross_connection_name", ","...
Gets the currently advertised ARP table associated with the express route cross connection in a resource group. @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 peerin...
[ "Gets", "the", "currently", "advertised", "ARP", "table", "associated", "with", "the", "express", "route", "cross", "connection", "in", "a", "resource", "group", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_network/lib/2018-04-01/generated/azure_mgmt_network/express_route_cross_connections.rb#L784-L786
train
Gets the ARP table associated with the express route cross connection.
[ 30522, 13366, 4088, 1035, 2862, 1035, 12098, 2361, 1035, 2795, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 2892, 1035, 4434, 1035, 2171, 1010, 16740, 1035, 2171, 1010, 5080, 1035, 4130, 1010, 7661, 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_service_fabric/lib/6.2.0.9/generated/azure_service_fabric/service_fabric_client_apis.rb
Azure::ServiceFabric::V6_2_0_9.ServiceFabricClientAPIs.get_deployed_service_replica_detail_info_by_partition_id_with_http_info
def get_deployed_service_replica_detail_info_by_partition_id_with_http_info(node_name, partition_id, timeout:60, custom_headers:nil) get_deployed_service_replica_detail_info_by_partition_id_async(node_name, partition_id, timeout:timeout, custom_headers:custom_headers).value! end
ruby
def get_deployed_service_replica_detail_info_by_partition_id_with_http_info(node_name, partition_id, timeout:60, custom_headers:nil) get_deployed_service_replica_detail_info_by_partition_id_async(node_name, partition_id, timeout:timeout, custom_headers:custom_headers).value! end
[ "def", "get_deployed_service_replica_detail_info_by_partition_id_with_http_info", "(", "node_name", ",", "partition_id", ",", "timeout", ":", "60", ",", "custom_headers", ":", "nil", ")", "get_deployed_service_replica_detail_info_by_partition_id_async", "(", "node_name", ",", "...
Gets the details of replica deployed on a Service Fabric node. Gets the details of the replica deployed on a Service Fabric node. The information include service kind, service name, current service operation, current service operation start date time, partition ID, replica/instance ID, reported load, and other inf...
[ "Gets", "the", "details", "of", "replica", "deployed", "on", "a", "Service", "Fabric", "node", "." ]
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#L15629-L15631
train
Gets the details of the service replica detail by partition id.
[ 30522, 13366, 2131, 1035, 7333, 1035, 2326, 1035, 15059, 1035, 6987, 1035, 18558, 1035, 2011, 1035, 13571, 1035, 8909, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 13045, 1035, 2171, 1010, 13571, 1035, 8909, 1010, 2051, 5833, 1024, 3438, 1010...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
cheezy/page-object
lib/page-object/accessors.rb
PageObject.Accessors.h6
def h6(name, identifier={:index => 0}, &block) standard_methods(name, identifier, 'h6_for', &block) define_method(name) do return platform.h6_text_for identifier.clone unless block_given? self.send("#{name}_element").text end end
ruby
def h6(name, identifier={:index => 0}, &block) standard_methods(name, identifier, 'h6_for', &block) define_method(name) do return platform.h6_text_for identifier.clone unless block_given? self.send("#{name}_element").text end end
[ "def", "h6", "(", "name", ",", "identifier", "=", "{", ":index", "=>", "0", "}", ",", "&", "block", ")", "standard_methods", "(", "name", ",", "identifier", ",", "'h6_for'", ",", "block", ")", "define_method", "(", "name", ")", "do", "return", "platfor...
adds three methods - one to retrieve the text of a h6 element, another to return a h6 element, and another to check for it's existence. @example h6(:title, :id => 'title') # will generate 'title', 'title_element', and 'title?' methods @param [Symbol] the name used for the generated methods @param [Hash] ide...
[ "adds", "three", "methods", "-", "one", "to", "retrieve", "the", "text", "of", "a", "h6", "element", "another", "to", "return", "a", "h6", "element", "and", "another", "to", "check", "for", "it", "s", "existence", "." ]
850d775bf63768fbb1551a34480195785fe8e193
https://github.com/cheezy/page-object/blob/850d775bf63768fbb1551a34480195785fe8e193/lib/page-object/accessors.rb#L762-L768
train
Define a H6 method.
[ 30522, 13366, 1044, 2575, 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, 1044, 2575, 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...
Azure/azure-sdk-for-ruby
management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api_diagnostic_logger.rb
Azure::ApiManagement::Mgmt::V2018_01_01.ApiDiagnosticLogger.create_or_update_with_http_info
def create_or_update_with_http_info(resource_group_name, service_name, api_id, diagnostic_id, loggerid, custom_headers:nil) create_or_update_async(resource_group_name, service_name, api_id, diagnostic_id, loggerid, custom_headers:custom_headers).value! end
ruby
def create_or_update_with_http_info(resource_group_name, service_name, api_id, diagnostic_id, loggerid, custom_headers:nil) create_or_update_async(resource_group_name, service_name, api_id, diagnostic_id, loggerid, custom_headers:custom_headers).value! end
[ "def", "create_or_update_with_http_info", "(", "resource_group_name", ",", "service_name", ",", "api_id", ",", "diagnostic_id", ",", "loggerid", ",", "custom_headers", ":", "nil", ")", "create_or_update_async", "(", "resource_group_name", ",", "service_name", ",", "api_...
Attaches a logger to a diagnostic for an API. @param resource_group_name [String] The name of the resource group. @param service_name [String] The name of the API Management service. @param api_id [String] API identifier. Must be unique in the current API Management service instance. @param diagnostic_id [String]...
[ "Attaches", "a", "logger", "to", "a", "diagnostic", "for", "an", "API", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/api_diagnostic_logger.rb#L317-L319
train
Creates or updates a diagnostic.
[ 30522, 13366, 3443, 1035, 2030, 1035, 10651, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 2326, 1035, 2171, 1010, 17928, 1035, 8909, 1010, 16474, 1035, 8909, 1010, 8833, 4590, 3593, 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...
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.make_request
def make_request(method, path, options = {}) result = make_request_with_http_info(method, path, options) result.body unless result.nil? end
ruby
def make_request(method, path, options = {}) result = make_request_with_http_info(method, path, options) result.body unless result.nil? end
[ "def", "make_request", "(", "method", ",", "path", ",", "options", "=", "{", "}", ")", "result", "=", "make_request_with_http_info", "(", "method", ",", "path", ",", "options", ")", "result", ".", "body", "unless", "result", ".", "nil?", "end" ]
Creates initializes a new instance of the ComputerVisionClient class. @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client. @param options [Array] filters to be applied to the HTTP requests. Makes a request and returns the body of the response. @p...
[ "Creates", "initializes", "a", "new", "instance", "of", "the", "ComputerVisionClient", "class", ".", "@param", "credentials", "[", "MsRest", "::", "ServiceClientCredentials", "]", "credentials", "to", "authorize", "HTTP", "requests", "made", "by", "the", "service", ...
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#L73-L76
train
Make a request to the API
[ 30522, 13366, 2191, 1035, 5227, 1006, 4118, 1010, 4130, 1010, 7047, 1027, 1063, 1065, 1007, 2765, 1027, 2191, 1035, 5227, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 4118, 1010, 4130, 1010, 7047, 1007, 2765, 1012, 2303, 4983, 2765, 1012, 9...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/replication_links.rb
Azure::SQL::Mgmt::V2014_04_01.ReplicationLinks.failover_allow_data_loss_async
def failover_allow_data_loss_async(resource_group_name, server_name, database_name, link_id, custom_headers:nil) # Send request promise = begin_failover_allow_data_loss_async(resource_group_name, server_name, database_name, link_id, custom_headers:custom_headers) promise = promise.then do |response| ...
ruby
def failover_allow_data_loss_async(resource_group_name, server_name, database_name, link_id, custom_headers:nil) # Send request promise = begin_failover_allow_data_loss_async(resource_group_name, server_name, database_name, link_id, custom_headers:custom_headers) promise = promise.then do |response| ...
[ "def", "failover_allow_data_loss_async", "(", "resource_group_name", ",", "server_name", ",", "database_name", ",", "link_id", ",", "custom_headers", ":", "nil", ")", "# Send request", "promise", "=", "begin_failover_allow_data_loss_async", "(", "resource_group_name", ",", ...
@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 database_name [String] The name of the database that has the replication link to be ...
[ "@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", "por...
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/replication_links.rb#L313-L327
train
Allow data loss of a database.
[ 30522, 13366, 8246, 7840, 1035, 3499, 1035, 2951, 1035, 3279, 1035, 2004, 6038, 2278, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 8241, 1035, 2171, 1010, 7809, 1035, 2171, 1010, 4957, 1035, 8909, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
aws/aws-sdk-ruby
gems/aws-sdk-ec2/lib/aws-sdk-ec2/network_interface.rb
Aws::EC2.NetworkInterface.reset_attribute
def reset_attribute(options = {}) options = options.merge(network_interface_id: @id) resp = @client.reset_network_interface_attribute(options) resp.data end
ruby
def reset_attribute(options = {}) options = options.merge(network_interface_id: @id) resp = @client.reset_network_interface_attribute(options) resp.data end
[ "def", "reset_attribute", "(", "options", "=", "{", "}", ")", "options", "=", "options", ".", "merge", "(", "network_interface_id", ":", "@id", ")", "resp", "=", "@client", ".", "reset_network_interface_attribute", "(", "options", ")", "resp", ".", "data", "...
@example Request syntax with placeholder values network_interface.reset_attribute({ dry_run: false, source_dest_check: "String", }) @param [Hash] options ({}) @option options [Boolean] :dry_run Checks whether you have the required permissions for the action, without actually making the request,...
[ "@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#L489-L493
train
Reset the attributes of the network interface.
[ 30522, 13366, 25141, 1035, 17961, 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, 25141, 1035, 2897, 1035, 8278, 1035, 17961...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
dblock/fui
lib/fui/finder.rb
Fui.Finder.find
def find(path) results = [] Find.find(path) do |fpath| if FileTest.directory?(fpath) next unless ignores ignores.each do |ignore| next unless fpath.include?(ignore.realpath.to_s) puts "Ignoring Directory: #{fpath}" if options[:verbose] Find.p...
ruby
def find(path) results = [] Find.find(path) do |fpath| if FileTest.directory?(fpath) next unless ignores ignores.each do |ignore| next unless fpath.include?(ignore.realpath.to_s) puts "Ignoring Directory: #{fpath}" if options[:verbose] Find.p...
[ "def", "find", "(", "path", ")", "results", "=", "[", "]", "Find", ".", "find", "(", "path", ")", "do", "|", "fpath", "|", "if", "FileTest", ".", "directory?", "(", "fpath", ")", "next", "unless", "ignores", "ignores", ".", "each", "do", "|", "igno...
Find all files for which the block yields.
[ "Find", "all", "files", "for", "which", "the", "block", "yields", "." ]
f71efcad7c046849670ae67e8cfb3303ec3e3c7a
https://github.com/dblock/fui/blob/f71efcad7c046849670ae67e8cfb3303ec3e3c7a/lib/fui/finder.rb#L54-L70
train
Find all files in the given path.
[ 30522, 13366, 2424, 1006, 4130, 1007, 3463, 1027, 1031, 1033, 2424, 1012, 2424, 1006, 4130, 1007, 2079, 1064, 1042, 15069, 1064, 2065, 5371, 22199, 1012, 14176, 1029, 1006, 1042, 15069, 1007, 2279, 4983, 26663, 26663, 1012, 2169, 2079, 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...
decidim/decidim
decidim-core/app/helpers/decidim/replace_buttons_helper.rb
Decidim.ReplaceButtonsHelper.submit_tag
def submit_tag(text = "Save changes", options = {}) options = options.stringify_keys content_tag :button, text, { "type" => "submit", "name" => "commit" }.update(options) end
ruby
def submit_tag(text = "Save changes", options = {}) options = options.stringify_keys content_tag :button, text, { "type" => "submit", "name" => "commit" }.update(options) end
[ "def", "submit_tag", "(", "text", "=", "\"Save changes\"", ",", "options", "=", "{", "}", ")", "options", "=", "options", ".", "stringify_keys", "content_tag", ":button", ",", "text", ",", "{", "\"type\"", "=>", "\"submit\"", ",", "\"name\"", "=>", "\"commit...
Overrides the submit tags to always be buttons instead of inputs. Buttons are much more stylable and less prone to bugs. value - The text of the button options - Options to provide to the actual tag. Returns a SafeString with the tag.
[ "Overrides", "the", "submit", "tags", "to", "always", "be", "buttons", "instead", "of", "inputs", ".", "Buttons", "are", "much", "more", "stylable", "and", "less", "prone", "to", "bugs", "." ]
6e2b14e559a63088669904e3c5c49a5180700cf7
https://github.com/decidim/decidim/blob/6e2b14e559a63088669904e3c5c49a5180700cf7/decidim-core/app/helpers/decidim/replace_buttons_helper.rb#L12-L16
train
Creates a submit button
[ 30522, 13366, 12040, 1035, 6415, 1006, 3793, 1027, 1000, 3828, 3431, 1000, 1010, 7047, 1027, 1063, 1065, 1007, 7047, 1027, 7047, 1012, 5164, 8757, 1035, 6309, 4180, 1035, 6415, 1024, 6462, 1010, 3793, 1010, 1063, 1000, 2828, 1000, 1027, 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
actionview/lib/action_view/rendering.rb
ActionView.Rendering._normalize_options
def _normalize_options(options) options = super(options) if options[:partial] == true options[:partial] = action_name end if (options.keys & [:partial, :file, :template]).empty? options[:prefixes] ||= _prefixes end options[:template] ||= (options[:ac...
ruby
def _normalize_options(options) options = super(options) if options[:partial] == true options[:partial] = action_name end if (options.keys & [:partial, :file, :template]).empty? options[:prefixes] ||= _prefixes end options[:template] ||= (options[:ac...
[ "def", "_normalize_options", "(", "options", ")", "options", "=", "super", "(", "options", ")", "if", "options", "[", ":partial", "]", "==", "true", "options", "[", ":partial", "]", "=", "action_name", "end", "if", "(", "options", ".", "keys", "&", "[", ...
Normalize options.
[ "Normalize", "options", "." ]
85a8bc644be69908f05740a5886ec19cd3679df5
https://github.com/rails/rails/blob/85a8bc644be69908f05740a5886ec19cd3679df5/actionview/lib/action_view/rendering.rb#L157-L169
train
Normalize options
[ 30522, 13366, 1035, 3671, 4697, 1035, 7047, 1006, 7047, 1007, 7047, 1027, 3565, 1006, 7047, 1007, 2065, 7047, 1031, 1024, 7704, 1033, 1027, 1027, 2995, 7047, 1031, 1024, 7704, 1033, 1027, 2895, 1035, 2171, 2203, 2065, 1006, 7047, 1012, 63...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
piotrmurach/github
lib/github_api/client/repos/contents.rb
Github.Client::Repos::Contents.create
def create(*args) arguments(args, required: [:user, :repo, :path]) do assert_required REQUIRED_CONTENT_OPTIONS end params = arguments.params params.strict_encode64('content') put_request("/repos/#{arguments.user}/#{arguments.repo}/contents/#{arguments.path}", params) end
ruby
def create(*args) arguments(args, required: [:user, :repo, :path]) do assert_required REQUIRED_CONTENT_OPTIONS end params = arguments.params params.strict_encode64('content') put_request("/repos/#{arguments.user}/#{arguments.repo}/contents/#{arguments.path}", params) end
[ "def", "create", "(", "*", "args", ")", "arguments", "(", "args", ",", "required", ":", "[", ":user", ",", ":repo", ",", ":path", "]", ")", "do", "assert_required", "REQUIRED_CONTENT_OPTIONS", "end", "params", "=", "arguments", ".", "params", "params", "."...
Create a file This method creates a new file in a repository @param [Hash] params @option params [String] :path Required string. The content path @option params [String] @option params [String] :message Required string. The commit message. @option params [String] :content Required string. The new file ...
[ "Create", "a", "file" ]
8702452c66bea33c9388550aed9e9974f76aaef1
https://github.com/piotrmurach/github/blob/8702452c66bea33c9388550aed9e9974f76aaef1/lib/github_api/client/repos/contents.rb#L104-L112
train
Create a new content
[ 30522, 13366, 3443, 1006, 1008, 12098, 5620, 1007, 9918, 1006, 12098, 5620, 1010, 3223, 1024, 1031, 1024, 5310, 1010, 1024, 16360, 2080, 1010, 1024, 4130, 1033, 1007, 2079, 20865, 1035, 3223, 3223, 1035, 4180, 1035, 7047, 2203, 11498, 5244,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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-iam/lib/aws-sdk-iam/policy.rb
Aws::IAM.Policy.attach_user
def attach_user(options = {}) options = options.merge(policy_arn: @arn) resp = @client.attach_user_policy(options) resp.data end
ruby
def attach_user(options = {}) options = options.merge(policy_arn: @arn) resp = @client.attach_user_policy(options) resp.data end
[ "def", "attach_user", "(", "options", "=", "{", "}", ")", "options", "=", "options", ".", "merge", "(", "policy_arn", ":", "@arn", ")", "resp", "=", "@client", ".", "attach_user_policy", "(", "options", ")", "resp", ".", "data", "end" ]
@example Request syntax with placeholder values policy.attach_user({ user_name: "userNameType", # required }) @param [Hash] options ({}) @option options [required, String] :user_name The name (friendly name, not ARN) of the IAM user to attach the policy to. This parameter allows (through its [re...
[ "@example", "Request", "syntax", "with", "placeholder", "values" ]
e28b8d320ddf7b6ee0161bdd9d00fb786d99b63d
https://github.com/aws/aws-sdk-ruby/blob/e28b8d320ddf7b6ee0161bdd9d00fb786d99b63d/gems/aws-sdk-iam/lib/aws-sdk-iam/policy.rb#L336-L340
train
Attach a user to the policy
[ 30522, 13366, 22476, 1035, 5310, 1006, 7047, 1027, 1063, 1065, 1007, 7047, 1027, 7047, 1012, 13590, 1006, 3343, 1035, 12098, 2078, 1024, 1030, 12098, 2078, 1007, 24501, 2361, 1027, 1030, 7396, 1012, 22476, 1035, 5310, 1035, 3343, 1006, 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...
haml/haml
lib/haml/temple_engine.rb
Haml.TempleEngine.precompiled
def precompiled encoding = Encoding.find(@encoding || '') return @precompiled.dup.force_encoding(encoding) if encoding == Encoding::ASCII_8BIT return @precompiled.encode(encoding) end
ruby
def precompiled encoding = Encoding.find(@encoding || '') return @precompiled.dup.force_encoding(encoding) if encoding == Encoding::ASCII_8BIT return @precompiled.encode(encoding) end
[ "def", "precompiled", "encoding", "=", "Encoding", ".", "find", "(", "@encoding", "||", "''", ")", "return", "@precompiled", ".", "dup", ".", "force_encoding", "(", "encoding", ")", "if", "encoding", "==", "Encoding", "::", "ASCII_8BIT", "return", "@precompile...
The source code that is evaluated to produce the Haml document. This is automatically converted to the correct encoding (see {file:REFERENCE.md#encodings the `:encoding` option}). @return [String]
[ "The", "source", "code", "that", "is", "evaluated", "to", "produce", "the", "Haml", "document", "." ]
9aa0fbe4a91b999978927be569d2ad0cd39076f1
https://github.com/haml/haml/blob/9aa0fbe4a91b999978927be569d2ad0cd39076f1/lib/haml/temple_engine.rb#L51-L55
train
Returns the precompiled string.
[ 30522, 13366, 3653, 9006, 22090, 2094, 17181, 1027, 17181, 1012, 2424, 1006, 1030, 17181, 1064, 1064, 1005, 1005, 1007, 2709, 1030, 3653, 9006, 22090, 2094, 1012, 4241, 2361, 1012, 2486, 1035, 17181, 1006, 17181, 1007, 2065, 17181, 1027, 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...
dry-rb/dry-initializer
lib/dry/initializer/config.rb
Dry::Initializer.Config.add_definition
def add_definition(option, name, type, block, **opts) opts = { parent: extended_class, option: option, null: null, source: name, type: type, block: block, **opts, } options = Dispatchers.call(opts) definition = Definition.new(options)...
ruby
def add_definition(option, name, type, block, **opts) opts = { parent: extended_class, option: option, null: null, source: name, type: type, block: block, **opts, } options = Dispatchers.call(opts) definition = Definition.new(options)...
[ "def", "add_definition", "(", "option", ",", "name", ",", "type", ",", "block", ",", "**", "opts", ")", "opts", "=", "{", "parent", ":", "extended_class", ",", "option", ":", "option", ",", "null", ":", "null", ",", "source", ":", "name", ",", "type"...
rubocop: disable Metrics/MethodLength
[ "rubocop", ":", "disable", "Metrics", "/", "MethodLength" ]
422d331468602ff0d3543fbb336b784343e5cc31
https://github.com/dry-rb/dry-initializer/blob/422d331468602ff0d3543fbb336b784343e5cc31/lib/dry/initializer/config.rb#L137-L153
train
Add a definition to the class.
[ 30522, 13366, 5587, 1035, 6210, 1006, 5724, 1010, 2171, 1010, 2828, 1010, 3796, 1010, 1008, 1008, 23569, 2015, 1007, 23569, 2015, 1027, 1063, 6687, 1024, 3668, 1035, 2465, 1010, 5724, 1024, 5724, 1010, 19701, 1024, 19701, 1010, 3120, 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...
troessner/reek
samples/smelly_source/inline.rb
Inline.C.load_cache
def load_cache begin file = File.join("inline", File.basename(so_name)) if require file then dir = Inline.directory warn "WAR\NING: #{dir} exists but is not being used" if test ?d, dir and $VERBOSE return true end rescue LoadError end return ...
ruby
def load_cache begin file = File.join("inline", File.basename(so_name)) if require file then dir = Inline.directory warn "WAR\NING: #{dir} exists but is not being used" if test ?d, dir and $VERBOSE return true end rescue LoadError end return ...
[ "def", "load_cache", "begin", "file", "=", "File", ".", "join", "(", "\"inline\"", ",", "File", ".", "basename", "(", "so_name", ")", ")", "if", "require", "file", "then", "dir", "=", "Inline", ".", "directory", "warn", "\"WAR\\NING: #{dir} exists but is not b...
Attempts to load pre-generated code returning true if it succeeds.
[ "Attempts", "to", "load", "pre", "-", "generated", "code", "returning", "true", "if", "it", "succeeds", "." ]
8c6b5c0c6228a6981ab48543457889f9ea984054
https://github.com/troessner/reek/blob/8c6b5c0c6228a6981ab48543457889f9ea984054/samples/smelly_source/inline.rb#L315-L326
train
Load the cache file
[ 30522, 13366, 7170, 1035, 17053, 4088, 5371, 1027, 5371, 1012, 3693, 1006, 1000, 23881, 1000, 1010, 5371, 1012, 2918, 18442, 1006, 2061, 1035, 2171, 1007, 1007, 2065, 5478, 5371, 2059, 16101, 1027, 23881, 1012, 14176, 11582, 1000, 2162, 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...
rails/rails
activestorage/lib/active_storage/attached/one.rb
ActiveStorage.Attached::One.attach
def attach(attachable) if record.persisted? && !record.changed? record.update(name => attachable) else record.public_send("#{name}=", attachable) end end
ruby
def attach(attachable) if record.persisted? && !record.changed? record.update(name => attachable) else record.public_send("#{name}=", attachable) end end
[ "def", "attach", "(", "attachable", ")", "if", "record", ".", "persisted?", "&&", "!", "record", ".", "changed?", "record", ".", "update", "(", "name", "=>", "attachable", ")", "else", "record", ".", "public_send", "(", "\"#{name}=\"", ",", "attachable", "...
Attaches an +attachable+ to the record. If the record is persisted and unchanged, the attachment is saved to the database immediately. Otherwise, it'll be saved to the DB when the record is next saved. person.avatar.attach(params[:avatar]) # ActionDispatch::Http::UploadedFile object person.avatar.attach(para...
[ "Attaches", "an", "+", "attachable", "+", "to", "the", "record", "." ]
85a8bc644be69908f05740a5886ec19cd3679df5
https://github.com/rails/rails/blob/85a8bc644be69908f05740a5886ec19cd3679df5/activestorage/lib/active_storage/attached/one.rb#L30-L36
train
Attach a record to the record.
[ 30522, 13366, 22476, 1006, 22476, 3085, 1007, 2065, 2501, 1012, 19035, 1029, 1004, 1004, 999, 2501, 1012, 2904, 1029, 2501, 1012, 10651, 1006, 2171, 1027, 1028, 22476, 3085, 1007, 2842, 2501, 1012, 2270, 1035, 4604, 1006, 1000, 1001, 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...
meew0/discordrb
lib/discordrb/data/server.rb
Discordrb.Server.delete_emoji
def delete_emoji(emoji, reason: nil) API::Server.delete_emoji(@bot.token, @id, emoji.resolve_id, reason) end
ruby
def delete_emoji(emoji, reason: nil) API::Server.delete_emoji(@bot.token, @id, emoji.resolve_id, reason) end
[ "def", "delete_emoji", "(", "emoji", ",", "reason", ":", "nil", ")", "API", "::", "Server", ".", "delete_emoji", "(", "@bot", ".", "token", ",", "@id", ",", "emoji", ".", "resolve_id", ",", "reason", ")", "end" ]
Delete a custom emoji on this server @param emoji [Emoji, Integer, String] The emoji or emoji ID to be deleted. @param reason [String] The reason the for the deletion of this emoji.
[ "Delete", "a", "custom", "emoji", "on", "this", "server" ]
764298a1ff0be69a1853b510d736f21c2b91a2fe
https://github.com/meew0/discordrb/blob/764298a1ff0be69a1853b510d736f21c2b91a2fe/lib/discordrb/data/server.rb#L523-L525
train
Delete an emoji from the server
[ 30522, 13366, 3972, 12870, 1035, 7861, 29147, 2072, 1006, 7861, 29147, 2072, 1010, 3114, 1024, 9152, 2140, 1007, 17928, 1024, 1024, 8241, 1012, 3972, 12870, 1035, 7861, 29147, 2072, 1006, 1030, 28516, 1012, 19204, 1010, 1030, 8909, 1010, 78...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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_graph_rbac/lib/1.6/generated/azure_graph_rbac/users.rb
Azure::GraphRbac::V1_6.Users.update
def update(upn_or_object_id, parameters, custom_headers:nil) response = update_async(upn_or_object_id, parameters, custom_headers:custom_headers).value! nil end
ruby
def update(upn_or_object_id, parameters, custom_headers:nil) response = update_async(upn_or_object_id, parameters, custom_headers:custom_headers).value! nil end
[ "def", "update", "(", "upn_or_object_id", ",", "parameters", ",", "custom_headers", ":", "nil", ")", "response", "=", "update_async", "(", "upn_or_object_id", ",", "parameters", ",", "custom_headers", ":custom_headers", ")", ".", "value!", "nil", "end" ]
Updates a user. @param upn_or_object_id [String] The object ID or principal name of the user to update. @param parameters [UserUpdateParameters] Parameters to update an existing user. @param custom_headers [Hash{String => String}] A hash of custom headers that will be added to the HTTP request.
[ "Updates", "a", "user", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_graph_rbac/lib/1.6/generated/azure_graph_rbac/users.rb#L308-L311
train
Updates an existing elastic search index.
[ 30522, 13366, 10651, 1006, 2039, 2078, 1035, 2030, 1035, 4874, 1035, 8909, 1010, 11709, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 10651, 1035, 2004, 6038, 2278, 1006, 2039, 2078, 1035, 2030, 1035, 4874, 1035, 8909, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
data/azure_cognitiveservices_luisauthoring/lib/2.0/generated/azure_cognitiveservices_luisauthoring/features.rb
Azure::CognitiveServices::LuisAuthoring::V2_0.Features.add_phrase_list
def add_phrase_list(app_id, version_id, phraselist_create_object, custom_headers:nil) response = add_phrase_list_async(app_id, version_id, phraselist_create_object, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def add_phrase_list(app_id, version_id, phraselist_create_object, custom_headers:nil) response = add_phrase_list_async(app_id, version_id, phraselist_create_object, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "add_phrase_list", "(", "app_id", ",", "version_id", ",", "phraselist_create_object", ",", "custom_headers", ":", "nil", ")", "response", "=", "add_phrase_list_async", "(", "app_id", ",", "version_id", ",", "phraselist_create_object", ",", "custom_headers", ":c...
Creates a new phraselist feature in a version of the application. @param app_id The application ID. @param version_id [String] The version ID. @param phraselist_create_object [PhraselistCreateObject] A Phraselist object containing Name, comma-separated Phrases and the isExchangeable boolean. Default value for isE...
[ "Creates", "a", "new", "phraselist", "feature", "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/features.rb#L160-L163
train
Adds a phrase list to a version of the application.
[ 30522, 13366, 5587, 1035, 7655, 1035, 2862, 1006, 10439, 1035, 8909, 1010, 2544, 1035, 8909, 1010, 7655, 9863, 1035, 3443, 1035, 4874, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 5587, 1035, 7655, 1035, 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...
JsonApiClient/json_api_client
lib/json_api_client/resource.rb
JsonApiClient.Resource.destroy
def destroy self.last_result_set = self.class.requestor.destroy(self) if last_result_set.has_errors? fill_errors false else mark_as_destroyed! self.relationships.last_result_set = nil _clear_cached_relationships _clear_belongs_to_params true ...
ruby
def destroy self.last_result_set = self.class.requestor.destroy(self) if last_result_set.has_errors? fill_errors false else mark_as_destroyed! self.relationships.last_result_set = nil _clear_cached_relationships _clear_belongs_to_params true ...
[ "def", "destroy", "self", ".", "last_result_set", "=", "self", ".", "class", ".", "requestor", ".", "destroy", "(", "self", ")", "if", "last_result_set", ".", "has_errors?", "fill_errors", "false", "else", "mark_as_destroyed!", "self", ".", "relationships", ".",...
Try to destroy this resource @return [Boolean] Whether or not the destroy succeeded
[ "Try", "to", "destroy", "this", "resource" ]
e4b763f5579c4fae4b03dcc935b20627f5c14eaa
https://github.com/JsonApiClient/json_api_client/blob/e4b763f5579c4fae4b03dcc935b20627f5c14eaa/lib/json_api_client/resource.rb#L471-L483
train
destroy the object
[ 30522, 13366, 6033, 2969, 1012, 2197, 1035, 2765, 1035, 2275, 1027, 2969, 1012, 2465, 1012, 5227, 2953, 1012, 6033, 1006, 2969, 1007, 2065, 2197, 1035, 2765, 1035, 2275, 1012, 2038, 1035, 10697, 1029, 6039, 1035, 10697, 6270, 2842, 2928, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
piotrmurach/github
lib/github_api/client/issues/labels.rb
Github.Client::Issues::Labels.update
def update(*args) arguments(args, required: [:user, :repo, :label_name]) do permit VALID_LABEL_INPUTS assert_required VALID_LABEL_INPUTS end patch_request("/repos/#{arguments.user}/#{arguments.repo}/labels/#{arguments.label_name}", arguments.params) end
ruby
def update(*args) arguments(args, required: [:user, :repo, :label_name]) do permit VALID_LABEL_INPUTS assert_required VALID_LABEL_INPUTS end patch_request("/repos/#{arguments.user}/#{arguments.repo}/labels/#{arguments.label_name}", arguments.params) end
[ "def", "update", "(", "*", "args", ")", "arguments", "(", "args", ",", "required", ":", "[", ":user", ",", ":repo", ",", ":label_name", "]", ")", "do", "permit", "VALID_LABEL_INPUTS", "assert_required", "VALID_LABEL_INPUTS", "end", "patch_request", "(", "\"/re...
Update a label @param [Hash] params @option params [String] :name Required string @option params [String] :color Required string - 6 character hex code, without leading @example github = Github.new github.issues.labels.update 'user-name', 'repo-name', 'label-name', name: 'API', color: "FFFFFF" ...
[ "Update", "a", "label" ]
8702452c66bea33c9388550aed9e9974f76aaef1
https://github.com/piotrmurach/github/blob/8702452c66bea33c9388550aed9e9974f76aaef1/lib/github_api/client/issues/labels.rb#L103-L110
train
Update a label in a repository
[ 30522, 13366, 10651, 1006, 1008, 12098, 5620, 1007, 9918, 1006, 12098, 5620, 1010, 3223, 1024, 1031, 1024, 5310, 1010, 1024, 16360, 2080, 1010, 1024, 3830, 1035, 2171, 1033, 1007, 2079, 9146, 9398, 1035, 3830, 1035, 20407, 20865, 1035, 3223...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Dynamoid/dynamoid
lib/dynamoid/persistence.rb
Dynamoid.Persistence.touch
def touch(name = nil) now = DateTime.now self.updated_at = now attributes[name] = now if name save end
ruby
def touch(name = nil) now = DateTime.now self.updated_at = now attributes[name] = now if name save end
[ "def", "touch", "(", "name", "=", "nil", ")", "now", "=", "DateTime", ".", "now", "self", ".", "updated_at", "=", "now", "attributes", "[", "name", "]", "=", "now", "if", "name", "save", "end" ]
Set updated_at and any passed in field to current DateTime. Useful for things like last_login_at, etc.
[ "Set", "updated_at", "and", "any", "passed", "in", "field", "to", "current", "DateTime", ".", "Useful", "for", "things", "like", "last_login_at", "etc", "." ]
9e3d006b039e45877b003564ded65509b10b6354
https://github.com/Dynamoid/dynamoid/blob/9e3d006b039e45877b003564ded65509b10b6354/lib/dynamoid/persistence.rb#L123-L128
train
touch the object
[ 30522, 13366, 3543, 1006, 2171, 1027, 9152, 2140, 1007, 2085, 1027, 3058, 7292, 1012, 2085, 2969, 1012, 7172, 1035, 2012, 1027, 2085, 12332, 1031, 2171, 1033, 1027, 2085, 2065, 2171, 3828, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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/2016-11-01/generated/azure_mgmt_datalake_analytics/storage_accounts.rb
Azure::DataLakeAnalytics::Mgmt::V2016_11_01.StorageAccounts.list_by_account_next
def list_by_account_next(next_page_link, custom_headers:nil) response = list_by_account_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def list_by_account_next(next_page_link, custom_headers:nil) response = list_by_account_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "list_by_account_next", "(", "next_page_link", ",", "custom_headers", ":", "nil", ")", "response", "=", "list_by_account_next_async", "(", "next_page_link", ",", "custom_headers", ":custom_headers", ")", ".", "value!", "response", ".", "body", "unless", "respon...
Gets the first page of Azure Storage accounts, if any, linked to the specified Data Lake Analytics account. The response includes a link to the next page, if any. @param next_page_link [String] The NextLink from the previous successful call to List operation. @param custom_headers [Hash{String => String}] A hash ...
[ "Gets", "the", "first", "page", "of", "Azure", "Storage", "accounts", "if", "any", "linked", "to", "the", "specified", "Data", "Lake", "Analytics", "account", ".", "The", "response", "includes", "a", "link", "to", "the", "next", "page", "if", "any", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_datalake_analytics/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/storage_accounts.rb#L903-L906
train
Gets the list of a specific language.
[ 30522, 13366, 2862, 1035, 2011, 1035, 4070, 1035, 2279, 1006, 2279, 1035, 3931, 1035, 4957, 30524, 1024, 9152, 2140, 1007, 3433, 1027, 2862, 1035, 2011, 1035, 4070, 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...
watir/watir
lib/watir/elements/date_field.rb
Watir.DateField.set!
def set!(date) date = Date.parse date if date.is_a?(String) message = "DateField##{__callee__} only accepts instances of Date or Time" raise ArgumentError, message unless [Date, ::Time].include?(date.class) date_string = date.strftime('%Y-%m-%d') element_call(:wait_for_writable) { execut...
ruby
def set!(date) date = Date.parse date if date.is_a?(String) message = "DateField##{__callee__} only accepts instances of Date or Time" raise ArgumentError, message unless [Date, ::Time].include?(date.class) date_string = date.strftime('%Y-%m-%d') element_call(:wait_for_writable) { execut...
[ "def", "set!", "(", "date", ")", "date", "=", "Date", ".", "parse", "date", "if", "date", ".", "is_a?", "(", "String", ")", "message", "=", "\"DateField##{__callee__} only accepts instances of Date or Time\"", "raise", "ArgumentError", ",", "message", "unless", "[...
Enter the provided value.
[ "Enter", "the", "provided", "value", "." ]
2d8db09811c6221ae401b85b2f61f5fa66e463a3
https://github.com/watir/watir/blob/2d8db09811c6221ae401b85b2f61f5fa66e463a3/lib/watir/elements/date_field.rb#L7-L15
train
Set the value of the field to the given date.
[ 30522, 13366, 2275, 999, 1006, 3058, 1007, 3058, 1027, 3058, 1012, 11968, 3366, 3058, 2065, 3058, 1012, 2003, 1035, 1037, 1029, 1006, 5164, 1007, 4471, 1027, 1000, 3058, 3790, 1001, 1001, 1063, 1035, 1035, 2655, 4402, 1035, 1035, 1065, 20...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
sunspot/sunspot
sunspot/lib/sunspot/session.rb
Sunspot.Session.new_more_like_this
def new_more_like_this(object, *types, &block) types[0] ||= object.class mlt = Search::MoreLikeThisSearch.new( connection, setup_for_types(types), Query::MoreLikeThisQuery.new(object, types), @config ) mlt.build(&block) if block mlt end
ruby
def new_more_like_this(object, *types, &block) types[0] ||= object.class mlt = Search::MoreLikeThisSearch.new( connection, setup_for_types(types), Query::MoreLikeThisQuery.new(object, types), @config ) mlt.build(&block) if block mlt end
[ "def", "new_more_like_this", "(", "object", ",", "*", "types", ",", "&", "block", ")", "types", "[", "0", "]", "||=", "object", ".", "class", "mlt", "=", "Search", "::", "MoreLikeThisSearch", ".", "new", "(", "connection", ",", "setup_for_types", "(", "t...
See Sunspot.new_more_like_this
[ "See", "Sunspot", ".", "new_more_like_this" ]
31dd76cd7a14a4ef7bd541de97483d8cd72ff685
https://github.com/sunspot/sunspot/blob/31dd76cd7a14a4ef7bd541de97483d8cd72ff685/sunspot/lib/sunspot/session.rb#L65-L75
train
Creates a new more like this object.
[ 30522, 13366, 2047, 1035, 2062, 1035, 2066, 1035, 2023, 1006, 4874, 1010, 1008, 4127, 1010, 1004, 3796, 1007, 4127, 1031, 1014, 1033, 1064, 1064, 1027, 4874, 1012, 2465, 19875, 2102, 1027, 3945, 1024, 1024, 2062, 10359, 15222, 11393, 2906, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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/2016-11-01/generated/azure_mgmt_datalake_analytics/storage_accounts.rb
Azure::DataLakeAnalytics::Mgmt::V2016_11_01.StorageAccounts.list_by_account
def list_by_account(resource_group_name, account_name, filter:nil, top:nil, skip:nil, select:nil, orderby:nil, count:nil, custom_headers:nil) first_page = list_by_account_as_lazy(resource_group_name, account_name, filter:filter, top:top, skip:skip, select:select, orderby:orderby, count:count, custom_headers:custo...
ruby
def list_by_account(resource_group_name, account_name, filter:nil, top:nil, skip:nil, select:nil, orderby:nil, count:nil, custom_headers:nil) first_page = list_by_account_as_lazy(resource_group_name, account_name, filter:filter, top:top, skip:skip, select:select, orderby:orderby, count:count, custom_headers:custo...
[ "def", "list_by_account", "(", "resource_group_name", ",", "account_name", ",", "filter", ":", "nil", ",", "top", ":", "nil", ",", "skip", ":", "nil", ",", "select", ":", "nil", ",", "orderby", ":", "nil", ",", "count", ":", "nil", ",", "custom_headers",...
Gets the first page of Azure Storage accounts, if any, linked to the specified Data Lake Analytics account. The response includes a link to the next page, if any. @param resource_group_name [String] The name of the Azure resource group. @param account_name [String] The name of the Data Lake Analytics account. @pa...
[ "Gets", "the", "first", "page", "of", "Azure", "Storage", "accounts", "if", "any", "linked", "to", "the", "specified", "Data", "Lake", "Analytics", "account", ".", "The", "response", "includes", "a", "link", "to", "the", "next", "page", "if", "any", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_datalake_analytics/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/storage_accounts.rb#L50-L53
train
Gets all the segmentation products in an account.
[ 30522, 13366, 2862, 1035, 2011, 1035, 4070, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 4070, 1035, 2171, 1010, 11307, 1024, 9152, 2140, 1010, 2327, 1024, 9152, 2140, 1010, 13558, 1024, 9152, 2140, 1010, 7276, 1024, 9152, 2140, 1010, 2344, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
lostisland/faraday
lib/faraday/connection.rb
Faraday.Connection.build_url
def build_url(url = nil, extra_params = nil) uri = build_exclusive_url(url) query_values = params.dup.merge_query(uri.query, options.params_encoder) query_values.update(extra_params) if extra_params uri.query = if query_values.empty? nil else query_values.to_...
ruby
def build_url(url = nil, extra_params = nil) uri = build_exclusive_url(url) query_values = params.dup.merge_query(uri.query, options.params_encoder) query_values.update(extra_params) if extra_params uri.query = if query_values.empty? nil else query_values.to_...
[ "def", "build_url", "(", "url", "=", "nil", ",", "extra_params", "=", "nil", ")", "uri", "=", "build_exclusive_url", "(", "url", ")", "query_values", "=", "params", ".", "dup", ".", "merge_query", "(", "uri", ".", "query", ",", "options", ".", "params_en...
Takes a relative url for a request and combines it with the defaults set on the connection instance. @param url [String] @param extra_params [Hash] @example conn = Faraday::Connection.new { ... } conn.url_prefix = "https://sushi.com/api?token=abc" conn.scheme # => https conn.path_prefix # => "/ap...
[ "Takes", "a", "relative", "url", "for", "a", "request", "and", "combines", "it", "with", "the", "defaults", "set", "on", "the", "connection", "instance", "." ]
3abe9d1eea4bdf61cdf7b76ff9f1ae7e09482e70
https://github.com/lostisland/faraday/blob/3abe9d1eea4bdf61cdf7b76ff9f1ae7e09482e70/lib/faraday/connection.rb#L464-L477
train
Build a URL with the given parameters.
[ 30522, 13366, 3857, 1035, 24471, 2140, 1006, 24471, 2140, 1027, 9152, 2140, 1010, 4469, 1035, 11498, 5244, 1027, 9152, 2140, 1007, 24471, 2072, 1027, 3857, 1035, 7262, 1035, 24471, 2140, 1006, 24471, 2140, 1007, 23032, 1035, 5300, 1027, 114...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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.add_recipient
def add_recipient(data) channel_id = data['channel_id'].to_i channel = self.channel(channel_id) recipient_user = ensure_user(data['user']) recipient = Recipient.new(recipient_user, channel, self) channel.add_recipient(recipient) end
ruby
def add_recipient(data) channel_id = data['channel_id'].to_i channel = self.channel(channel_id) recipient_user = ensure_user(data['user']) recipient = Recipient.new(recipient_user, channel, self) channel.add_recipient(recipient) end
[ "def", "add_recipient", "(", "data", ")", "channel_id", "=", "data", "[", "'channel_id'", "]", ".", "to_i", "channel", "=", "self", ".", "channel", "(", "channel_id", ")", "recipient_user", "=", "ensure_user", "(", "data", "[", "'user'", "]", ")", "recipie...
Internal handler for CHANNEL_RECIPIENT_ADD
[ "Internal", "handler", "for", "CHANNEL_RECIPIENT_ADD" ]
764298a1ff0be69a1853b510d736f21c2b91a2fe
https://github.com/meew0/discordrb/blob/764298a1ff0be69a1853b510d736f21c2b91a2fe/lib/discordrb/bot.rb#L844-L851
train
Add a recipient to the channel
[ 30522, 13366, 5587, 1035, 7799, 1006, 2951, 1007, 3149, 1035, 8909, 1027, 2951, 1031, 1005, 3149, 1035, 8909, 1005, 1033, 1012, 2000, 1035, 1045, 3149, 1027, 2969, 1012, 3149, 1006, 3149, 1035, 8909, 1007, 7799, 1035, 5310, 1027, 5676, 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...
comfy/comfortable-mexican-sofa
lib/comfortable_mexican_sofa/seeds/page/importer.rb
ComfortableMexicanSofa::Seeds::Page.Importer.import_page
def import_page(path, parent) slug = path.split("/").last # setting page record page = if parent.present? child = site.pages.where(slug: slug).first_or_initialize child.parent = parent child else site.pages.root || site.pages.new(slug: slug) ...
ruby
def import_page(path, parent) slug = path.split("/").last # setting page record page = if parent.present? child = site.pages.where(slug: slug).first_or_initialize child.parent = parent child else site.pages.root || site.pages.new(slug: slug) ...
[ "def", "import_page", "(", "path", ",", "parent", ")", "slug", "=", "path", ".", "split", "(", "\"/\"", ")", ".", "last", "# setting page record", "page", "=", "if", "parent", ".", "present?", "child", "=", "site", ".", "pages", ".", "where", "(", "slu...
Recursive function that will be called for each child page (subfolder)
[ "Recursive", "function", "that", "will", "be", "called", "for", "each", "child", "page", "(", "subfolder", ")" ]
38a31428f6e2c07d5bda64f0371eebfb29a3abc4
https://github.com/comfy/comfortable-mexican-sofa/blob/38a31428f6e2c07d5bda64f0371eebfb29a3abc4/lib/comfortable_mexican_sofa/seeds/page/importer.rb#L27-L98
train
Import page from a file
[ 30522, 13366, 12324, 1035, 3931, 1006, 4130, 1010, 6687, 1007, 23667, 1027, 4130, 1012, 3975, 1006, 1000, 1013, 1000, 1007, 1012, 2197, 1001, 4292, 3931, 2501, 3931, 1027, 2065, 6687, 1012, 2556, 1029, 2775, 1027, 2609, 1012, 5530, 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...
randym/axlsx
lib/axlsx/workbook/worksheet/pivot_table.rb
Axlsx.PivotTable.rows=
def rows=(v) DataTypeValidator.validate "#{self.class}.rows", [Array], v v.each do |ref| DataTypeValidator.validate "#{self.class}.rows[]", [String], ref end @rows = v end
ruby
def rows=(v) DataTypeValidator.validate "#{self.class}.rows", [Array], v v.each do |ref| DataTypeValidator.validate "#{self.class}.rows[]", [String], ref end @rows = v end
[ "def", "rows", "=", "(", "v", ")", "DataTypeValidator", ".", "validate", "\"#{self.class}.rows\"", ",", "[", "Array", "]", ",", "v", "v", ".", "each", "do", "|", "ref", "|", "DataTypeValidator", ".", "validate", "\"#{self.class}.rows[]\"", ",", "[", "String"...
(see #rows)
[ "(", "see", "#rows", ")" ]
c593a08b2a929dac7aa8dc418b55e26b4c49dc34
https://github.com/randym/axlsx/blob/c593a08b2a929dac7aa8dc418b55e26b4c49dc34/lib/axlsx/workbook/worksheet/pivot_table.rb#L81-L87
train
Set the rows of the table.
[ 30522, 13366, 10281, 1027, 1006, 1058, 1007, 2951, 13874, 10175, 8524, 4263, 1012, 9398, 3686, 1000, 1001, 1063, 2969, 1012, 2465, 1065, 1012, 10281, 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...
Azure/azure-sdk-for-ruby
management/azure_mgmt_recovery_services_site_recovery/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_storage_classification_mappings.rb
Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10.ReplicationStorageClassificationMappings.list_by_replication_storage_classifications
def list_by_replication_storage_classifications(fabric_name, storage_classification_name, custom_headers:nil) first_page = list_by_replication_storage_classifications_as_lazy(fabric_name, storage_classification_name, custom_headers:custom_headers) first_page.get_all_items end
ruby
def list_by_replication_storage_classifications(fabric_name, storage_classification_name, custom_headers:nil) first_page = list_by_replication_storage_classifications_as_lazy(fabric_name, storage_classification_name, custom_headers:custom_headers) first_page.get_all_items end
[ "def", "list_by_replication_storage_classifications", "(", "fabric_name", ",", "storage_classification_name", ",", "custom_headers", ":", "nil", ")", "first_page", "=", "list_by_replication_storage_classifications_as_lazy", "(", "fabric_name", ",", "storage_classification_name", ...
Gets the list of storage classification mappings objects under a storage. Lists the storage classification mappings for the fabric. @param fabric_name [String] Fabric name. @param storage_classification_name [String] Storage classfication name. @param custom_headers [Hash{String => String}] A hash of custom heade...
[ "Gets", "the", "list", "of", "storage", "classification", "mappings", "objects", "under", "a", "storage", "." ]
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_storage_classification_mappings.rb#L237-L240
train
Gets all the applications in a service plan.
[ 30522, 13366, 2862, 1035, 2011, 1035, 21647, 1035, 5527, 1035, 26739, 1006, 8313, 1035, 2171, 1010, 5527, 1035, 5579, 1035, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 2034, 1035, 3931, 1027, 2862, 1035, 2011, 1035, 21647, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
square/connect-ruby-sdk
lib/square_connect/api/v1_items_api.rb
SquareConnect.V1ItemsApi.delete_fee
def delete_fee(location_id, fee_id, opts = {}) data, _status_code, _headers = delete_fee_with_http_info(location_id, fee_id, opts) return data end
ruby
def delete_fee(location_id, fee_id, opts = {}) data, _status_code, _headers = delete_fee_with_http_info(location_id, fee_id, opts) return data end
[ "def", "delete_fee", "(", "location_id", ",", "fee_id", ",", "opts", "=", "{", "}", ")", "data", ",", "_status_code", ",", "_headers", "=", "delete_fee_with_http_info", "(", "location_id", ",", "fee_id", ",", "opts", ")", "return", "data", "end" ]
DeleteFee Deletes an existing fee (tax). *Note**: DeleteFee returns nothing on success but Connect SDKs map the empty response to an empty `V1DeleteFeeRequest` object as documented below. @param location_id The ID of the fee&#39;s associated location. @param fee_id The ID of the fee to delete. @param [Hash] opts th...
[ "DeleteFee", "Deletes", "an", "existing", "fee", "(", "tax", ")", ".", "*", "Note", "**", ":", "DeleteFee", "returns", "nothing", "on", "success", "but", "Connect", "SDKs", "map", "the", "empty", "response", "to", "an", "empty", "V1DeleteFeeRequest", "object...
798eb9ded716f23b9f1518386f1c311a34bca8bf
https://github.com/square/connect-ruby-sdk/blob/798eb9ded716f23b9f1518386f1c311a34bca8bf/lib/square_connect/api/v1_items_api.rb#L813-L816
train
DeleteFee Returns a list of all the fee for a location.
[ 30522, 13366, 3972, 12870, 1035, 7408, 1006, 3295, 1035, 8909, 1010, 7408, 1035, 8909, 1010, 23569, 2015, 1027, 1063, 1065, 1007, 2951, 1010, 1035, 3570, 1035, 3642, 1010, 1035, 20346, 2015, 1027, 3972, 12870, 1035, 7408, 1035, 2007, 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...
lostisland/faraday
lib/faraday/connection.rb
Faraday.Connection.url_prefix=
def url_prefix=(url, encoder = nil) uri = @url_prefix = Utils.URI(url) self.path_prefix = uri.path params.merge_query(uri.query, encoder) uri.query = nil with_uri_credentials(uri) do |user, password| basic_auth user, password uri.user = uri.password = nil end en...
ruby
def url_prefix=(url, encoder = nil) uri = @url_prefix = Utils.URI(url) self.path_prefix = uri.path params.merge_query(uri.query, encoder) uri.query = nil with_uri_credentials(uri) do |user, password| basic_auth user, password uri.user = uri.password = nil end en...
[ "def", "url_prefix", "=", "(", "url", ",", "encoder", "=", "nil", ")", "uri", "=", "@url_prefix", "=", "Utils", ".", "URI", "(", "url", ")", "self", ".", "path_prefix", "=", "uri", ".", "path", "params", ".", "merge_query", "(", "uri", ".", "query", ...
Parses the given URL with URI and stores the individual components in this connection. These components serve as defaults for requests made by this connection. @param url [String, URI] @param encoder [Object] @example conn = Faraday::Connection.new { ... } conn.url_prefix = "https://sushi.com/api" conn...
[ "Parses", "the", "given", "URL", "with", "URI", "and", "stores", "the", "individual", "components", "in", "this", "connection", ".", "These", "components", "serve", "as", "defaults", "for", "requests", "made", "by", "this", "connection", "." ]
3abe9d1eea4bdf61cdf7b76ff9f1ae7e09482e70
https://github.com/lostisland/faraday/blob/3abe9d1eea4bdf61cdf7b76ff9f1ae7e09482e70/lib/faraday/connection.rb#L420-L431
train
Sets the url_prefix to the url
[ 30522, 13366, 24471, 2140, 1035, 17576, 1027, 1006, 24471, 2140, 1010, 4372, 16044, 2099, 1027, 9152, 2140, 1007, 24471, 2072, 1027, 1030, 24471, 2140, 1035, 17576, 1027, 21183, 12146, 1012, 24471, 2072, 1006, 24471, 2140, 1007, 2969, 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...
fastlane/fastlane
spaceship/lib/spaceship/tunes/tunes_client.rb
Spaceship.TunesClient.group_for_view_by
def group_for_view_by(view_by, measures) if view_by.nil? || measures.nil? return nil else return { metric: measures.first, dimension: view_by, rank: "DESCENDING", limit: 3 } end end
ruby
def group_for_view_by(view_by, measures) if view_by.nil? || measures.nil? return nil else return { metric: measures.first, dimension: view_by, rank: "DESCENDING", limit: 3 } end end
[ "def", "group_for_view_by", "(", "view_by", ",", "measures", ")", "if", "view_by", ".", "nil?", "||", "measures", ".", "nil?", "return", "nil", "else", "return", "{", "metric", ":", "measures", ".", "first", ",", "dimension", ":", "view_by", ",", "rank", ...
generates group hash used in the analytics time_series API. Using rank=DESCENDING and limit=3 as this is what the App Store Connect analytics dashboard uses.
[ "generates", "group", "hash", "used", "in", "the", "analytics", "time_series", "API", ".", "Using", "rank", "=", "DESCENDING", "and", "limit", "=", "3", "as", "this", "is", "what", "the", "App", "Store", "Connect", "analytics", "dashboard", "uses", "." ]
457c5d647c77f0e078dafa5129da616914e002c5
https://github.com/fastlane/fastlane/blob/457c5d647c77f0e078dafa5129da616914e002c5/spaceship/lib/spaceship/tunes/tunes_client.rb#L1512-L1523
train
Returns a hash of the aggregated data for the given view_by and measures
[ 30522, 13366, 2177, 1035, 2005, 1035, 3193, 1035, 2011, 1006, 3193, 1035, 2011, 1010, 5761, 1007, 2065, 3193, 1035, 2011, 1012, 9152, 2140, 1029, 1064, 1064, 5761, 1012, 9152, 2140, 1029, 2709, 9152, 2140, 2842, 2709, 1063, 12046, 1024, 5...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
heroku/rack-timeout
lib/rack/timeout/core.rb
Rack.Timeout.call
def call(env) info = (env[ENV_INFO_KEY] ||= RequestDetails.new) info.id ||= env[HTTP_X_REQUEST_ID] || env[ACTION_DISPATCH_REQUEST_ID] || SecureRandom.uuid time_started_service = Time.now # The wall time the request started being processed by rack ts_started_service =...
ruby
def call(env) info = (env[ENV_INFO_KEY] ||= RequestDetails.new) info.id ||= env[HTTP_X_REQUEST_ID] || env[ACTION_DISPATCH_REQUEST_ID] || SecureRandom.uuid time_started_service = Time.now # The wall time the request started being processed by rack ts_started_service =...
[ "def", "call", "(", "env", ")", "info", "=", "(", "env", "[", "ENV_INFO_KEY", "]", "||=", "RequestDetails", ".", "new", ")", "info", ".", "id", "||=", "env", "[", "HTTP_X_REQUEST_ID", "]", "||", "env", "[", "ACTION_DISPATCH_REQUEST_ID", "]", "||", "Secur...
shorthand reference
[ "shorthand", "reference" ]
d5d08c57ba3cf3f967301512df96c451e8e9fbfa
https://github.com/heroku/rack-timeout/blob/d5d08c57ba3cf3f967301512df96c451e8e9fbfa/lib/rack/timeout/core.rb#L77-L132
train
This method is called by the Rack server.
[ 30522, 13366, 2655, 1006, 4372, 2615, 1007, 18558, 1027, 1006, 4372, 2615, 1031, 4372, 2615, 1035, 18558, 1035, 3145, 1033, 1064, 1064, 1027, 5227, 3207, 22081, 1012, 2047, 1007, 18558, 1012, 8909, 1064, 1064, 1027, 4372, 2615, 1031, 8299, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_event_grid/lib/2018-01-01/generated/azure_mgmt_event_grid/event_subscriptions.rb
Azure::EventGrid::Mgmt::V2018_01_01.EventSubscriptions.list_by_resource_with_http_info
def list_by_resource_with_http_info(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:nil) list_by_resource_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:custom_headers).value! end
ruby
def list_by_resource_with_http_info(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:nil) list_by_resource_async(resource_group_name, provider_namespace, resource_type_name, resource_name, custom_headers:custom_headers).value! end
[ "def", "list_by_resource_with_http_info", "(", "resource_group_name", ",", "provider_namespace", ",", "resource_type_name", ",", "resource_name", ",", "custom_headers", ":", "nil", ")", "list_by_resource_async", "(", "resource_group_name", ",", "provider_namespace", ",", "r...
List all event subscriptions for a specific topic List all event subscriptions that have been created for a specific topic @param resource_group_name [String] The name of the resource group within the user's subscription. @param provider_namespace [String] Namespace of the provider of the topic @param resource_t...
[ "List", "all", "event", "subscriptions", "for", "a", "specific", "topic" ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_event_grid/lib/2018-01-01/generated/azure_mgmt_event_grid/event_subscriptions.rb#L1327-L1329
train
Gets the list of the specified resource.
[ 30522, 13366, 2862, 1035, 2011, 1035, 7692, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 10802, 1035, 3415, 15327, 1010, 7692, 1035, 2828, 1035, 2171, 1010, 7692, 1035, 2171, 1010, 7661, 1035, 20346, 2015, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_compute/lib/2018-04-01/generated/azure_mgmt_compute/snapshots.rb
Azure::Compute::Mgmt::V2018_04_01.Snapshots.begin_create_or_update_with_http_info
def begin_create_or_update_with_http_info(resource_group_name, snapshot_name, snapshot, custom_headers:nil) begin_create_or_update_async(resource_group_name, snapshot_name, snapshot, custom_headers:custom_headers).value! end
ruby
def begin_create_or_update_with_http_info(resource_group_name, snapshot_name, snapshot, custom_headers:nil) begin_create_or_update_async(resource_group_name, snapshot_name, snapshot, custom_headers:custom_headers).value! end
[ "def", "begin_create_or_update_with_http_info", "(", "resource_group_name", ",", "snapshot_name", ",", "snapshot", ",", "custom_headers", ":", "nil", ")", "begin_create_or_update_async", "(", "resource_group_name", ",", "snapshot_name", ",", "snapshot", ",", "custom_headers...
Creates or updates a snapshot. @param resource_group_name [String] The name of the resource group. @param snapshot_name [String] The name of the snapshot that is being created. The name can't be changed after the snapshot is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The max name length is...
[ "Creates", "or", "updates", "a", "snapshot", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_compute/lib/2018-04-01/generated/azure_mgmt_compute/snapshots.rb#L561-L563
train
Creates or updates a snapshot.
[ 30522, 13366, 4088, 1035, 3443, 1035, 2030, 1035, 10651, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 20057, 12326, 1035, 2171, 1010, 20057, 12326, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 408...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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.logger
def logger(logger, level = :info, format = :apache) default_options[:logger] = logger default_options[:log_level] = level default_options[:log_format] = format end
ruby
def logger(logger, level = :info, format = :apache) default_options[:logger] = logger default_options[:log_level] = level default_options[:log_format] = format end
[ "def", "logger", "(", "logger", ",", "level", "=", ":info", ",", "format", "=", ":apache", ")", "default_options", "[", ":logger", "]", "=", "logger", "default_options", "[", ":log_level", "]", "=", "level", "default_options", "[", ":log_format", "]", "=", ...
Turns on logging class Foo include HTTParty logger Logger.new('http_logger'), :info, :apache end
[ "Turns", "on", "logging" ]
b4099defba01231d2faaaa2660476f867e096bfb
https://github.com/jnunemaker/httparty/blob/b4099defba01231d2faaaa2660476f867e096bfb/lib/httparty.rb#L73-L77
train
Set the logger to be used for logging
[ 30522, 13366, 8833, 4590, 1006, 8833, 4590, 1010, 2504, 1027, 1024, 18558, 1010, 4289, 1027, 1024, 15895, 1007, 12398, 1035, 7047, 1031, 1024, 8833, 4590, 1033, 1027, 8833, 4590, 12398, 1035, 7047, 1031, 1024, 8833, 1035, 2504, 1033, 1027, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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_deployed_service_replica_detail_info_with_http_info
def get_deployed_service_replica_detail_info_with_http_info(node_name, partition_id, replica_id, timeout:60, custom_headers:nil) get_deployed_service_replica_detail_info_async(node_name, partition_id, replica_id, timeout:timeout, custom_headers:custom_headers).value! end
ruby
def get_deployed_service_replica_detail_info_with_http_info(node_name, partition_id, replica_id, timeout:60, custom_headers:nil) get_deployed_service_replica_detail_info_async(node_name, partition_id, replica_id, timeout:timeout, custom_headers:custom_headers).value! end
[ "def", "get_deployed_service_replica_detail_info_with_http_info", "(", "node_name", ",", "partition_id", ",", "replica_id", ",", "timeout", ":", "60", ",", "custom_headers", ":", "nil", ")", "get_deployed_service_replica_detail_info_async", "(", "node_name", ",", "partition...
Gets the details of replica deployed on a Service Fabric node. Gets the details of the replica deployed on a Service Fabric node. The information include service kind, service name, current service operation, current service operation start date time, partition ID, replica/instance ID, reported load, and other inf...
[ "Gets", "the", "details", "of", "replica", "deployed", "on", "a", "Service", "Fabric", "node", "." ]
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#L15506-L15508
train
Gets the details of the service replica.
[ 30522, 13366, 2131, 1035, 7333, 1035, 2326, 1035, 15059, 1035, 6987, 1035, 18558, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 13045, 1035, 2171, 1010, 13571, 1035, 8909, 1010, 15059, 1035, 8909, 1010, 2051, 5833, 1024, 3438, 1010, 30524, 214...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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.begin_list_available_providers_with_http_info
def begin_list_available_providers_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers:nil) begin_list_available_providers_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! end
ruby
def begin_list_available_providers_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers:nil) begin_list_available_providers_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! end
[ "def", "begin_list_available_providers_with_http_info", "(", "resource_group_name", ",", "network_watcher_name", ",", "parameters", ",", "custom_headers", ":", "nil", ")", "begin_list_available_providers_async", "(", "resource_group_name", ",", "network_watcher_name", ",", "par...
Lists all available internet service providers for a specified Azure region. @param resource_group_name [String] The name of the network watcher resource group. @param network_watcher_name [String] The name of the network watcher resource. @param parameters [AvailableProvidersListParameters] Parameters that scope...
[ "Lists", "all", "available", "internet", "service", "providers", "for", "a", "specified", "Azure", "region", "." ]
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#L2396-L2398
train
Gets a list of available network providers.
[ 30522, 13366, 4088, 1035, 2862, 1035, 2800, 1035, 11670, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 2897, 1035, 3422, 2121, 1035, 2171, 1010, 11709, 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...
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_containers.rb
Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10.ReplicationProtectionContainers.discover_protectable_item_async
def discover_protectable_item_async(fabric_name, protection_container_name, discover_protectable_item_request, custom_headers:nil) # Send request promise = begin_discover_protectable_item_async(fabric_name, protection_container_name, discover_protectable_item_request, custom_headers:custom_headers) p...
ruby
def discover_protectable_item_async(fabric_name, protection_container_name, discover_protectable_item_request, custom_headers:nil) # Send request promise = begin_discover_protectable_item_async(fabric_name, protection_container_name, discover_protectable_item_request, custom_headers:custom_headers) p...
[ "def", "discover_protectable_item_async", "(", "fabric_name", ",", "protection_container_name", ",", "discover_protectable_item_request", ",", "custom_headers", ":", "nil", ")", "# Send request", "promise", "=", "begin_discover_protectable_item_async", "(", "fabric_name", ",", ...
@param fabric_name [String] The name of the fabric. @param protection_container_name [String] The name of the protection container. @param discover_protectable_item_request [DiscoverProtectableItemRequest] The request object to add a protectable item. @param custom_headers [Hash{String => String}] A hash of custom...
[ "@param", "fabric_name", "[", "String", "]", "The", "name", "of", "the", "fabric", ".", "@param", "protection_container_name", "[", "String", "]", "The", "name", "of", "the", "protection", "container", ".", "@param", "discover_protectable_item_request", "[", "Disc...
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_containers.rb#L301-L317
train
Discovers a protection container from a protection container.
[ 30522, 13366, 7523, 1035, 4047, 3085, 1035, 8875, 1035, 2004, 6038, 2278, 1006, 8313, 1035, 2171, 1010, 3860, 1035, 11661, 1035, 2171, 1010, 7523, 1035, 4047, 3085, 1035, 8875, 1035, 5227, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
sds/scss-lint
lib/scss_lint/linter/selector_depth.rb
SCSSLint.Linter::SelectorDepth.max_sequence_depth
def max_sequence_depth(comma_sequence, current_depth) # Sequence contains interpolation; assume a depth of 1 return current_depth + 1 unless comma_sequence comma_sequence.members.map { |sequence| sequence_depth(sequence, current_depth) }.max end
ruby
def max_sequence_depth(comma_sequence, current_depth) # Sequence contains interpolation; assume a depth of 1 return current_depth + 1 unless comma_sequence comma_sequence.members.map { |sequence| sequence_depth(sequence, current_depth) }.max end
[ "def", "max_sequence_depth", "(", "comma_sequence", ",", "current_depth", ")", "# Sequence contains interpolation; assume a depth of 1", "return", "current_depth", "+", "1", "unless", "comma_sequence", "comma_sequence", ".", "members", ".", "map", "{", "|", "sequence", "|...
Find the maximum depth of all sequences in a comma sequence.
[ "Find", "the", "maximum", "depth", "of", "all", "sequences", "in", "a", "comma", "sequence", "." ]
e99afe4ede041a431a06e585c12ce82f6ad50116
https://github.com/sds/scss-lint/blob/e99afe4ede041a431a06e585c12ce82f6ad50116/lib/scss_lint/linter/selector_depth.rb#L29-L34
train
Returns the maximum depth of a given comma sequence
[ 30522, 13366, 4098, 1035, 5537, 1035, 5995, 1006, 4012, 2863, 1035, 5537, 1010, 2783, 1035, 5995, 1007, 1001, 5537, 3397, 6970, 18155, 3370, 1025, 7868, 1037, 5995, 1997, 1015, 2709, 2783, 1035, 5995, 1009, 1015, 4983, 4012, 2863, 1035, 5...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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.field_with_validations
def field_with_validations(attribute, options, html_options) class_options = html_options || options if error?(attribute) class_options[:class] = class_options[:class].to_s class_options[:class] += " is-invalid-input" end help_text = options.delete(:help_text) prefix = op...
ruby
def field_with_validations(attribute, options, html_options) class_options = html_options || options if error?(attribute) class_options[:class] = class_options[:class].to_s class_options[:class] += " is-invalid-input" end help_text = options.delete(:help_text) prefix = op...
[ "def", "field_with_validations", "(", "attribute", ",", "options", ",", "html_options", ")", "class_options", "=", "html_options", "||", "options", "if", "error?", "(", "attribute", ")", "class_options", "[", ":class", "]", "=", "class_options", "[", ":class", "...
Private: Builds a form field and detects validations from the form object. attribute - The String name of the attribute to build the field. options - A Hash with options to build the field. html_options - An optional Hash with options to pass to the html element. Returns a String.
[ "Private", ":", "Builds", "a", "form", "field", "and", "detects", "validations", "from", "the", "form", "object", "." ]
6e2b14e559a63088669904e3c5c49a5180700cf7
https://github.com/decidim/decidim/blob/6e2b14e559a63088669904e3c5c49a5180700cf7/decidim-core/lib/decidim/form_builder.rb#L440-L460
train
Returns the HTML for the given field with the validations.
[ 30522, 13366, 2492, 1035, 2007, 1035, 27354, 2015, 1006, 17961, 1010, 7047, 1010, 16129, 1035, 7047, 1007, 2465, 1035, 7047, 1027, 16129, 1035, 7047, 1064, 1064, 7047, 2065, 7561, 1029, 1006, 17961, 1007, 2465, 1035, 7047, 1031, 1024, 2465,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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_storage/lib/2018-07-01/generated/azure_mgmt_storage/blob_services.rb
Azure::Storage::Mgmt::V2018_07_01.BlobServices.set_service_properties_with_http_info
def set_service_properties_with_http_info(resource_group_name, account_name, parameters, custom_headers:nil) set_service_properties_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! end
ruby
def set_service_properties_with_http_info(resource_group_name, account_name, parameters, custom_headers:nil) set_service_properties_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value! end
[ "def", "set_service_properties_with_http_info", "(", "resource_group_name", ",", "account_name", ",", "parameters", ",", "custom_headers", ":", "nil", ")", "set_service_properties_async", "(", "resource_group_name", ",", "account_name", ",", "parameters", ",", "custom_heade...
Sets the properties of a storage account’s Blob service, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules. @param resource_group_name [String] The name of the resource group within the user's subscription. The name is case insensitive. @param account_name [String] The name ...
[ "Sets", "the", "properties", "of", "a", "storage", "account’s", "Blob", "service", "including", "properties", "for", "Storage", "Analytics", "and", "CORS", "(", "Cross", "-", "Origin", "Resource", "Sharing", ")", "rules", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_storage/lib/2018-07-01/generated/azure_mgmt_storage/blob_services.rb#L63-L65
train
Set the service properties of the specified HDInsight account.
[ 30522, 13366, 2275, 1035, 2326, 1035, 5144, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 4070, 1035, 2171, 1010, 11709, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 2275, 1035, 2326, 1035, 5144, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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-10-01/generated/azure_mgmt_network/packet_captures.rb
Azure::Network::Mgmt::V2018_10_01.PacketCaptures.get_status_async
def get_status_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) # Send request promise = begin_get_status_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:custom_headers) promise = promise.then do |response| # Defini...
ruby
def get_status_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) # Send request promise = begin_get_status_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:custom_headers) promise = promise.then do |response| # Defini...
[ "def", "get_status_async", "(", "resource_group_name", ",", "network_watcher_name", ",", "packet_capture_name", ",", "custom_headers", ":", "nil", ")", "# Send request", "promise", "=", "begin_get_status_async", "(", "resource_group_name", ",", "network_watcher_name", ",", ...
@param resource_group_name [String] The name of the resource group. @param network_watcher_name [String] The name of the Network Watcher resource. @param packet_capture_name [String] The name given to the packet capture session. @param custom_headers [Hash{String => String}] A hash of custom headers that will be ...
[ "@param", "resource_group_name", "[", "String", "]", "The", "name", "of", "the", "resource", "group", ".", "@param", "network_watcher_name", "[", "String", "]", "The", "name", "of", "the", "Network", "Watcher", "resource", ".", "@param", "packet_capture_name", "...
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_network/lib/2018-10-01/generated/azure_mgmt_network/packet_captures.rb#L278-L294
train
Gets the status of a packet capture.
[ 30522, 13366, 2131, 1035, 3570, 1035, 2004, 6038, 2278, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 2897, 1035, 3422, 2121, 1035, 2171, 1010, 14771, 1035, 5425, 1035, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 1001, 4604, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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_application_health_using_policy
def get_application_health_using_policy(application_id, events_health_state_filter:0, deployed_applications_health_state_filter:0, services_health_state_filter:0, exclude_health_statistics:false, application_health_policy:nil, timeout:60, custom_headers:nil) response = get_application_health_using_policy_async(ap...
ruby
def get_application_health_using_policy(application_id, events_health_state_filter:0, deployed_applications_health_state_filter:0, services_health_state_filter:0, exclude_health_statistics:false, application_health_policy:nil, timeout:60, custom_headers:nil) response = get_application_health_using_policy_async(ap...
[ "def", "get_application_health_using_policy", "(", "application_id", ",", "events_health_state_filter", ":", "0", ",", "deployed_applications_health_state_filter", ":", "0", ",", "services_health_state_filter", ":", "0", ",", "exclude_health_statistics", ":", "false", ",", ...
Gets the health of a Service Fabric application using the specified policy. Gets the health of a Service Fabric application. Use EventsHealthStateFilter to filter the collection of health events reported on the node based on the health state. Use ClusterHealthPolicies to override the health policies used to evalua...
[ "Gets", "the", "health", "of", "a", "Service", "Fabric", "application", "using", "the", "specified", "policy", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_service_fabric/lib/6.2.0.9/generated/azure_service_fabric/service_fabric_client_apis.rb#L7229-L7232
train
Gets the health of the specified application using the health policy.
[ 30522, 13366, 2131, 1035, 4646, 1035, 2740, 1035, 2478, 1035, 3343, 1006, 4646, 1035, 8909, 1010, 2824, 1035, 2740, 1035, 2110, 1035, 11307, 1024, 1014, 1010, 7333, 1035, 5097, 1035, 2740, 1035, 2110, 1035, 11307, 1024, 1014, 1010, 2578, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
guard/guard
lib/guard/dsl.rb
Guard.Dsl.directories
def directories(directories) directories.each do |dir| fail "Directory #{dir.inspect} does not exist!" unless Dir.exist?(dir) end Guard.state.session.watchdirs = directories end
ruby
def directories(directories) directories.each do |dir| fail "Directory #{dir.inspect} does not exist!" unless Dir.exist?(dir) end Guard.state.session.watchdirs = directories end
[ "def", "directories", "(", "directories", ")", "directories", ".", "each", "do", "|", "dir", "|", "fail", "\"Directory #{dir.inspect} does not exist!\"", "unless", "Dir", ".", "exist?", "(", "dir", ")", "end", "Guard", ".", "state", ".", "session", ".", "watch...
Sets the directories to pass to Listen @example watch only given directories directories %w(lib specs) @param [Array] directories directories for Listen to watch
[ "Sets", "the", "directories", "to", "pass", "to", "Listen" ]
e2508cd83badf0d537dbaba35d307adc35d92e4f
https://github.com/guard/guard/blob/e2508cd83badf0d537dbaba35d307adc35d92e4f/lib/guard/dsl.rb#L393-L398
train
Sets the directories to watch
[ 30522, 13366, 2472, 3111, 1006, 2472, 3111, 1007, 2472, 3111, 1012, 2169, 2079, 1064, 16101, 1064, 8246, 1000, 14176, 1001, 1063, 16101, 1012, 22459, 1065, 2515, 2025, 4839, 999, 1000, 4983, 16101, 1012, 4839, 1029, 1006, 16101, 1007, 2203,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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/devices.rb
Azure::StorSimple8000Series::Mgmt::V2017_06_01.Devices.begin_configure_with_http_info
def begin_configure_with_http_info(parameters, resource_group_name, manager_name, custom_headers:nil) begin_configure_async(parameters, resource_group_name, manager_name, custom_headers:custom_headers).value! end
ruby
def begin_configure_with_http_info(parameters, resource_group_name, manager_name, custom_headers:nil) begin_configure_async(parameters, resource_group_name, manager_name, custom_headers:custom_headers).value! end
[ "def", "begin_configure_with_http_info", "(", "parameters", ",", "resource_group_name", ",", "manager_name", ",", "custom_headers", ":", "nil", ")", "begin_configure_async", "(", "parameters", ",", "resource_group_name", ",", "manager_name", ",", "custom_headers", ":custo...
Complete minimal setup before using the device. @param parameters [ConfigureDeviceRequest] The minimal properties to configure a device. @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...
[ "Complete", "minimal", "setup", "before", "using", "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/devices.rb#L1236-L1238
train
Creates a new cluster with the specified parameters.
[ 30522, 13366, 4088, 1035, 9530, 8873, 27390, 2063, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 11709, 1010, 7692, 1035, 2177, 1035, 2171, 1010, 3208, 1035, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 4088, 1035, 9530, 8873, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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_instance/lib/2018-09-01/generated/azure_mgmt_container_instance/container_operations.rb
Azure::ContainerInstance::Mgmt::V2018_09_01.ContainerOperations.list_logs
def list_logs(resource_group_name, container_group_name, container_name, tail:nil, custom_headers:nil) response = list_logs_async(resource_group_name, container_group_name, container_name, tail:tail, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def list_logs(resource_group_name, container_group_name, container_name, tail:nil, custom_headers:nil) response = list_logs_async(resource_group_name, container_group_name, container_name, tail:tail, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "list_logs", "(", "resource_group_name", ",", "container_group_name", ",", "container_name", ",", "tail", ":", "nil", ",", "custom_headers", ":", "nil", ")", "response", "=", "list_logs_async", "(", "resource_group_name", ",", "container_group_name", ",", "co...
Get the logs for a specified container instance. Get the logs for a specified container instance in a specified resource group and container group. @param resource_group_name [String] The name of the resource group. @param container_group_name [String] The name of the container group. @param container_name [Stri...
[ "Get", "the", "logs", "for", "a", "specified", "container", "instance", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_container_instance/lib/2018-09-01/generated/azure_mgmt_container_instance/container_operations.rb#L41-L44
train
Gets the logs for the specified container.
[ 30522, 13366, 2862, 1035, 15664, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 11661, 1035, 2177, 1035, 2171, 1010, 11661, 1035, 2171, 1010, 5725, 1024, 9152, 2140, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 2862, 1035, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_container_registry/lib/2017-03-01/generated/azure_mgmt_container_registry/registries.rb
Azure::ContainerRegistry::Mgmt::V2017_03_01.Registries.create
def create(resource_group_name, registry_name, registry_create_parameters, custom_headers:nil) response = create_async(resource_group_name, registry_name, registry_create_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def create(resource_group_name, registry_name, registry_create_parameters, custom_headers:nil) response = create_async(resource_group_name, registry_name, registry_create_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "create", "(", "resource_group_name", ",", "registry_name", ",", "registry_create_parameters", ",", "custom_headers", ":", "nil", ")", "response", "=", "create_async", "(", "resource_group_name", ",", "registry_name", ",", "registry_create_parameters", ",", "cust...
Creates a container registry with the specified parameters. @param resource_group_name [String] The name of the resource group to which the container registry belongs. @param registry_name [String] The name of the container registry. @param registry_create_parameters [RegistryCreateParameters] The parameters for ...
[ "Creates", "a", "container", "registry", "with", "the", "specified", "parameters", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_container_registry/lib/2017-03-01/generated/azure_mgmt_container_registry/registries.rb#L240-L243
train
Creates a new container registry.
[ 30522, 13366, 3443, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 15584, 1035, 2171, 1010, 15584, 1035, 3443, 1035, 11709, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 3443, 1035, 2004, 6038, 2278, 1006, 7692, 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...
square/connect-ruby-sdk
lib/square_connect/api/v1_items_api.rb
SquareConnect.V1ItemsApi.update_item
def update_item(location_id, item_id, body, opts = {}) data, _status_code, _headers = update_item_with_http_info(location_id, item_id, body, opts) return data end
ruby
def update_item(location_id, item_id, body, opts = {}) data, _status_code, _headers = update_item_with_http_info(location_id, item_id, body, opts) return data end
[ "def", "update_item", "(", "location_id", ",", "item_id", ",", "body", ",", "opts", "=", "{", "}", ")", "data", ",", "_status_code", ",", "_headers", "=", "update_item_with_http_info", "(", "location_id", ",", "item_id", ",", "body", ",", "opts", ")", "ret...
UpdateItem Modifies the core details of an existing item. @param location_id The ID of the item&#39;s associated location. @param item_id The ID of the item to modify. @param body An object containing the fields to POST for the request. See the corresponding object definition for field details. @param [Hash] opts...
[ "UpdateItem", "Modifies", "the", "core", "details", "of", "an", "existing", "item", "." ]
798eb9ded716f23b9f1518386f1c311a34bca8bf
https://github.com/square/connect-ruby-sdk/blob/798eb9ded716f23b9f1518386f1c311a34bca8bf/lib/square_connect/api/v1_items_api.rb#L2068-L2071
train
Update an item
[ 30522, 13366, 10651, 1035, 8875, 1006, 3295, 1035, 8909, 1010, 8875, 1035, 8909, 1010, 2303, 1010, 23569, 2015, 1027, 1063, 1065, 1007, 2951, 1010, 1035, 3570, 1035, 3642, 1010, 1035, 20346, 2015, 1027, 10651, 1035, 8875, 1035, 2007, 1035, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_policy_insights/lib/2018-04-04/generated/azure_mgmt_policy_insights/policy_states.rb
Azure::PolicyInsights::Mgmt::V2018_04_04.PolicyStates.summarize_for_subscription_level_policy_assignment_with_http_info
def summarize_for_subscription_level_policy_assignment_with_http_info(subscription_id, policy_assignment_name, query_options:nil, custom_headers:nil) summarize_for_subscription_level_policy_assignment_async(subscription_id, policy_assignment_name, query_options:query_options, custom_headers:custom_headers).value!...
ruby
def summarize_for_subscription_level_policy_assignment_with_http_info(subscription_id, policy_assignment_name, query_options:nil, custom_headers:nil) summarize_for_subscription_level_policy_assignment_async(subscription_id, policy_assignment_name, query_options:query_options, custom_headers:custom_headers).value!...
[ "def", "summarize_for_subscription_level_policy_assignment_with_http_info", "(", "subscription_id", ",", "policy_assignment_name", ",", "query_options", ":", "nil", ",", "custom_headers", ":", "nil", ")", "summarize_for_subscription_level_policy_assignment_async", "(", "subscriptio...
Summarizes policy states for the subscription level policy assignment. @param subscription_id [String] Microsoft Azure subscription ID. @param policy_assignment_name [String] Policy assignment name. @param query_options [QueryOptions] Additional parameters for the operation @param custom_headers [Hash{String => St...
[ "Summarizes", "policy", "states", "for", "the", "subscription", "level", "policy", "assignment", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_policy_insights/lib/2018-04-04/generated/azure_mgmt_policy_insights/policy_states.rb#L1647-L1649
train
Gets the policy assignment summary for the subscription level policy assignment.
[ 30522, 13366, 7680, 7849, 4697, 1035, 2005, 1035, 15002, 1035, 2504, 1035, 3343, 1035, 8775, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 15002, 1035, 8909, 1010, 3343, 1035, 8775, 1035, 2171, 1010, 23032, 1035, 7047, 1024, 9152, 2140, 1010, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_locks/lib/2015-01-01/generated/azure_mgmt_locks/management_locks.rb
Azure::Locks::Mgmt::V2015_01_01.ManagementLocks.delete_at_resource_group_level
def delete_at_resource_group_level(resource_group_name, lock_name, custom_headers:nil) response = delete_at_resource_group_level_async(resource_group_name, lock_name, custom_headers:custom_headers).value! nil end
ruby
def delete_at_resource_group_level(resource_group_name, lock_name, custom_headers:nil) response = delete_at_resource_group_level_async(resource_group_name, lock_name, custom_headers:custom_headers).value! nil end
[ "def", "delete_at_resource_group_level", "(", "resource_group_name", ",", "lock_name", ",", "custom_headers", ":", "nil", ")", "response", "=", "delete_at_resource_group_level_async", "(", "resource_group_name", ",", "lock_name", ",", "custom_headers", ":custom_headers", ")...
Deletes the management lock of a resource group. @param resource_group_name [String] The resource group name. @param lock_name [String] The name of lock. @param custom_headers [Hash{String => String}] A hash of custom headers that will be added to the HTTP request.
[ "Deletes", "the", "management", "lock", "of", "a", "resource", "group", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_locks/lib/2015-01-01/generated/azure_mgmt_locks/management_locks.rb#L149-L152
train
Deletes a lock at resource group level.
[ 30522, 13366, 3972, 12870, 1035, 2012, 1035, 7692, 1035, 2177, 1035, 2504, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 5843, 1035, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 3972, 12870, 1035, 2012, 1035, 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...
chef/ohai
lib/ohai/provides_map.rb
Ohai.ProvidesMap.collect_plugins_in
def collect_plugins_in(provides_map, collected) provides_map.each_key do |plugin| if plugin.eql?("_plugins") collected.concat(provides_map[plugin]) else collect_plugins_in(provides_map[plugin], collected) end end collected end
ruby
def collect_plugins_in(provides_map, collected) provides_map.each_key do |plugin| if plugin.eql?("_plugins") collected.concat(provides_map[plugin]) else collect_plugins_in(provides_map[plugin], collected) end end collected end
[ "def", "collect_plugins_in", "(", "provides_map", ",", "collected", ")", "provides_map", ".", "each_key", "do", "|", "plugin", "|", "if", "plugin", ".", "eql?", "(", "\"_plugins\"", ")", "collected", ".", "concat", "(", "provides_map", "[", "plugin", "]", ")...
Takes a section of the map, recursively searches for a `_plugins` key to find all the plugins in that section of the map. If given the whole map, it will find all of the plugins that have at least one provided attribute.
[ "Takes", "a", "section", "of", "the", "map", "recursively", "searches", "for", "a", "_plugins", "key", "to", "find", "all", "the", "plugins", "in", "that", "section", "of", "the", "map", ".", "If", "given", "the", "whole", "map", "it", "will", "find", ...
8d66449940f04237586b2f928231c6b26e2cc19a
https://github.com/chef/ohai/blob/8d66449940f04237586b2f928231c6b26e2cc19a/lib/ohai/provides_map.rb#L173-L182
train
Collect all plugins in the given provides_map
[ 30522, 13366, 8145, 1035, 13354, 7076, 1035, 1999, 1006, 3640, 1035, 4949, 1010, 5067, 1007, 3640, 1035, 4949, 1012, 2169, 1035, 3145, 2079, 1064, 13354, 2378, 1064, 2065, 13354, 2378, 1012, 1041, 4160, 2140, 1029, 1006, 1000, 1035, 13354, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
watir/watir
lib/watir/row_container.rb
Watir.RowContainer.strings
def strings wait_for_exists rows.inject [] do |res, row| res << row.cells.map(&:text) end end
ruby
def strings wait_for_exists rows.inject [] do |res, row| res << row.cells.map(&:text) end end
[ "def", "strings", "wait_for_exists", "rows", ".", "inject", "[", "]", "do", "|", "res", ",", "row", "|", "res", "<<", "row", ".", "cells", ".", "map", "(", ":text", ")", "end", "end" ]
The table as a 2D Array of strings with the text of each cell. @return [Array<Array<String>>]
[ "The", "table", "as", "a", "2D", "Array", "of", "strings", "with", "the", "text", "of", "each", "cell", "." ]
2d8db09811c6221ae401b85b2f61f5fa66e463a3
https://github.com/watir/watir/blob/2d8db09811c6221ae401b85b2f61f5fa66e463a3/lib/watir/row_container.rb#L25-L31
train
Returns an array of strings for the table.
[ 30522, 13366, 7817, 3524, 1035, 2005, 1035, 6526, 10281, 1012, 1999, 20614, 1031, 1033, 2079, 1064, 24501, 1010, 5216, 1064, 24501, 1026, 1026, 5216, 1012, 4442, 1012, 4949, 1006, 1004, 1024, 3793, 1007, 2203, 2203, 102, 0, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_network/lib/2018-04-01/generated/azure_mgmt_network/express_route_cross_connections.rb
Azure::Network::Mgmt::V2018_04_01.ExpressRouteCrossConnections.begin_create_or_update_with_http_info
def begin_create_or_update_with_http_info(resource_group_name, cross_connection_name, parameters, custom_headers:nil) begin_create_or_update_async(resource_group_name, cross_connection_name, parameters, custom_headers:custom_headers).value! end
ruby
def begin_create_or_update_with_http_info(resource_group_name, cross_connection_name, parameters, custom_headers:nil) begin_create_or_update_async(resource_group_name, cross_connection_name, parameters, custom_headers:custom_headers).value! end
[ "def", "begin_create_or_update_with_http_info", "(", "resource_group_name", ",", "cross_connection_name", ",", "parameters", ",", "custom_headers", ":", "nil", ")", "begin_create_or_update_async", "(", "resource_group_name", ",", "cross_connection_name", ",", "parameters", ",...
Update the specified ExpressRouteCrossConnection. @param resource_group_name [String] The name of the resource group. @param cross_connection_name [String] The name of the ExpressRouteCrossConnection. @param parameters [ExpressRouteCrossConnection] Parameters supplied to the update express route crossConnection o...
[ "Update", "the", "specified", "ExpressRouteCrossConnection", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_network/lib/2018-04-01/generated/azure_mgmt_network/express_route_cross_connections.rb#L567-L569
train
Creates or updates a cross connection.
[ 30522, 13366, 4088, 1035, 3443, 1035, 2030, 1035, 10651, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 2892, 1035, 4434, 1035, 2171, 1010, 11709, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 4088, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/job_schedule_operations.rb
Azure::Automation::Mgmt::V2015_10_31.JobScheduleOperations.delete
def delete(resource_group_name, automation_account_name, job_schedule_id, custom_headers:nil) response = delete_async(resource_group_name, automation_account_name, job_schedule_id, custom_headers:custom_headers).value! nil end
ruby
def delete(resource_group_name, automation_account_name, job_schedule_id, custom_headers:nil) response = delete_async(resource_group_name, automation_account_name, job_schedule_id, custom_headers:custom_headers).value! nil end
[ "def", "delete", "(", "resource_group_name", ",", "automation_account_name", ",", "job_schedule_id", ",", "custom_headers", ":", "nil", ")", "response", "=", "delete_async", "(", "resource_group_name", ",", "automation_account_name", ",", "job_schedule_id", ",", "custom...
Delete the job schedule identified by job schedule name. @param resource_group_name [String] Name of an Azure Resource group. @param automation_account_name [String] The name of the automation account. @param job_schedule_id The job schedule name. @param custom_headers [Hash{String => String}] A hash of custom hea...
[ "Delete", "the", "job", "schedule", "identified", "by", "job", "schedule", "name", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/job_schedule_operations.rb#L34-L37
train
Deletes a job schedule.
[ 30522, 13366, 3972, 12870, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 19309, 1035, 4070, 1035, 2171, 1010, 3105, 1035, 6134, 1035, 8909, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 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...
seejohnrun/ice_cube
lib/ice_cube/schedule.rb
IceCube.Schedule.occurs_on?
def occurs_on?(date) date = TimeUtil.ensure_date(date) begin_time = TimeUtil.beginning_of_date(date, start_time) closing_time = TimeUtil.end_of_date(date, start_time) occurs_between?(begin_time, closing_time) end
ruby
def occurs_on?(date) date = TimeUtil.ensure_date(date) begin_time = TimeUtil.beginning_of_date(date, start_time) closing_time = TimeUtil.end_of_date(date, start_time) occurs_between?(begin_time, closing_time) end
[ "def", "occurs_on?", "(", "date", ")", "date", "=", "TimeUtil", ".", "ensure_date", "(", "date", ")", "begin_time", "=", "TimeUtil", ".", "beginning_of_date", "(", "date", ",", "start_time", ")", "closing_time", "=", "TimeUtil", ".", "end_of_date", "(", "dat...
Return a boolean indicating if an occurrence falls on a certain date
[ "Return", "a", "boolean", "indicating", "if", "an", "occurrence", "falls", "on", "a", "certain", "date" ]
fb6c657bdc4f87dfda2bf83f15c5f487b78ccabd
https://github.com/seejohnrun/ice_cube/blob/fb6c657bdc4f87dfda2bf83f15c5f487b78ccabd/lib/ice_cube/schedule.rb#L235-L240
train
Returns true if the date occurs on the given date.
[ 30522, 13366, 5158, 1035, 2006, 1029, 1006, 3058, 1007, 3058, 1027, 2051, 21823, 2140, 1012, 5676, 1035, 3058, 1006, 3058, 1007, 4088, 1035, 2051, 1027, 2051, 21823, 2140, 1012, 2927, 1035, 1997, 1035, 3058, 1006, 3058, 1010, 2707, 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...
github-changelog-generator/github-changelog-generator
lib/github_changelog_generator/octo_fetcher.rb
GitHubChangelogGenerator.OctoFetcher.fetch_tag_shas_async
def fetch_tag_shas_async(tags) i = 0 threads = [] print_in_same_line("Fetching SHAs for tags: #{i}/#{tags.count}\r") if @options[:verbose] tags.each_slice(MAX_THREAD_NUMBER) do |tags_slice| tags_slice.each do |tag| threads << Thread.new do # Use oldest commit becau...
ruby
def fetch_tag_shas_async(tags) i = 0 threads = [] print_in_same_line("Fetching SHAs for tags: #{i}/#{tags.count}\r") if @options[:verbose] tags.each_slice(MAX_THREAD_NUMBER) do |tags_slice| tags_slice.each do |tag| threads << Thread.new do # Use oldest commit becau...
[ "def", "fetch_tag_shas_async", "(", "tags", ")", "i", "=", "0", "threads", "=", "[", "]", "print_in_same_line", "(", "\"Fetching SHAs for tags: #{i}/#{tags.count}\\r\"", ")", "if", "@options", "[", ":verbose", "]", "tags", ".", "each_slice", "(", "MAX_THREAD_NUMBER"...
Fetch all SHAs occurring in or before a given tag and add them to "shas_in_tag" @param [Array] tags The array of tags. @return [Nil] No return; tags are updated in-place.
[ "Fetch", "all", "SHAs", "occurring", "in", "or", "before", "a", "given", "tag", "and", "add", "them", "to", "shas_in_tag" ]
f18c64b5cc0d7473b059275b88385ac11ca8b564
https://github.com/github-changelog-generator/github-changelog-generator/blob/f18c64b5cc0d7473b059275b88385ac11ca8b564/lib/github_changelog_generator/octo_fetcher.rb#L312-L336
train
Fetch all the shas for the given tags asynchronously
[ 30522, 13366, 18584, 1035, 6415, 1035, 21146, 2015, 1035, 2004, 6038, 2278, 1006, 22073, 1007, 1045, 1027, 1014, 16457, 1027, 1031, 1033, 6140, 1035, 1999, 1035, 2168, 1035, 2240, 1006, 1000, 18584, 2075, 21146, 2015, 2005, 22073, 1024, 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...
alexreisner/geocoder
lib/geocoder/lookups/ban_data_gouv_fr.rb
Geocoder::Lookup.BanDataGouvFr.reverse_geocode_ban_fr_params
def reverse_geocode_ban_fr_params(query) lat_lon = query.coordinates params = { lat: lat_lon.first, lon: lat_lon.last } unless (type = query.options[:type]).nil? || !type_param_is_valid?(type) params[:type] = type.downcase end params end
ruby
def reverse_geocode_ban_fr_params(query) lat_lon = query.coordinates params = { lat: lat_lon.first, lon: lat_lon.last } unless (type = query.options[:type]).nil? || !type_param_is_valid?(type) params[:type] = type.downcase end params end
[ "def", "reverse_geocode_ban_fr_params", "(", "query", ")", "lat_lon", "=", "query", ".", "coordinates", "params", "=", "{", "lat", ":", "lat_lon", ".", "first", ",", "lon", ":", "lat_lon", ".", "last", "}", "unless", "(", "type", "=", "query", ".", "opti...
REVERSE GEOCODING PARAMS :lat => required :lon => required :type => force returned results type (check results for a list of accepted types)
[ "REVERSE", "GEOCODING", "PARAMS" ]
e087dc2759264ee6f307b926bb2de4ec2406859e
https://github.com/alexreisner/geocoder/blob/e087dc2759264ee6f307b926bb2de4ec2406859e/lib/geocoder/lookups/ban_data_gouv_fr.rb#L101-L111
train
reverse_geocode_ban_fr_params
[ 30522, 13366, 7901, 1035, 20248, 16044, 1035, 7221, 1035, 10424, 1035, 11498, 5244, 1006, 23032, 1007, 2474, 2102, 1035, 8840, 2078, 1027, 23032, 1012, 12093, 11498, 5244, 1027, 1063, 2474, 2102, 1024, 2474, 30524, 1029, 1006, 2828, 1007, 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...
rmagick/rmagick
lib/rmagick_internal.rb
Magick.ImageList.inspect
def inspect img = [] @images.each { |image| img << image.inspect } img = '[' + img.join(",\n") + "]\nscene=#{@scene}" end
ruby
def inspect img = [] @images.each { |image| img << image.inspect } img = '[' + img.join(",\n") + "]\nscene=#{@scene}" end
[ "def", "inspect", "img", "=", "[", "]", "@images", ".", "each", "{", "|", "image", "|", "img", "<<", "image", ".", "inspect", "}", "img", "=", "'['", "+", "img", ".", "join", "(", "\",\\n\"", ")", "+", "\"]\\nscene=#{@scene}\"", "end" ]
Call inspect for all the images
[ "Call", "inspect", "for", "all", "the", "images" ]
ef6688ed9d76bf123c2ea1a483eff8635051adb7
https://github.com/rmagick/rmagick/blob/ef6688ed9d76bf123c2ea1a483eff8635051adb7/lib/rmagick_internal.rb#L1559-L1563
train
Returns a string representation of the image.
[ 30522, 13366, 22459, 10047, 2290, 1027, 1031, 1033, 1030, 4871, 1012, 2169, 1063, 1064, 3746, 1064, 10047, 2290, 1026, 1026, 3746, 1012, 22459, 1065, 10047, 2290, 1027, 1005, 1031, 1005, 1009, 10047, 2290, 1012, 3693, 1006, 1000, 1010, 1032...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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/2015-05-01-preview/generated/azure_mgmt_sql/server_keys.rb
Azure::SQL::Mgmt::V2015_05_01_preview.ServerKeys.get_with_http_info
def get_with_http_info(resource_group_name, server_name, key_name, custom_headers:nil) get_async(resource_group_name, server_name, key_name, custom_headers:custom_headers).value! end
ruby
def get_with_http_info(resource_group_name, server_name, key_name, custom_headers:nil) get_async(resource_group_name, server_name, key_name, custom_headers:custom_headers).value! end
[ "def", "get_with_http_info", "(", "resource_group_name", ",", "server_name", ",", "key_name", ",", "custom_headers", ":", "nil", ")", "get_async", "(", "resource_group_name", ",", "server_name", ",", "key_name", ",", "custom_headers", ":custom_headers", ")", ".", "v...
Gets a server key. @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 key_name [String] The name of the server key to be retrieved. @...
[ "Gets", "a", "server", "key", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_sql/lib/2015-05-01-preview/generated/azure_mgmt_sql/server_keys.rb#L156-L158
train
Gets the specified key specification.
[ 30522, 13366, 2131, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 8241, 1035, 2171, 1010, 3145, 1035, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 2131, 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...
hashicorp/vault-ruby
lib/vault/api/sys/auth.rb
Vault.Sys.auths
def auths json = client.get("/v1/sys/auth") json = json[:data] if json[:data] return Hash[*json.map do |k,v| [k.to_s.chomp("/").to_sym, Auth.decode(v)] end.flatten] end
ruby
def auths json = client.get("/v1/sys/auth") json = json[:data] if json[:data] return Hash[*json.map do |k,v| [k.to_s.chomp("/").to_sym, Auth.decode(v)] end.flatten] end
[ "def", "auths", "json", "=", "client", ".", "get", "(", "\"/v1/sys/auth\"", ")", "json", "=", "json", "[", ":data", "]", "if", "json", "[", ":data", "]", "return", "Hash", "[", "json", ".", "map", "do", "|", "k", ",", "v", "|", "[", "k", ".", "...
List all auths in Vault. @example Vault.sys.auths #=> {:token => #<Vault::Auth type="token", description="token based credentials">} @return [Hash<Symbol, Auth>]
[ "List", "all", "auths", "in", "Vault", "." ]
02f0532a802ba1a2a0d8703a4585dab76eb9d864
https://github.com/hashicorp/vault-ruby/blob/02f0532a802ba1a2a0d8703a4585dab76eb9d864/lib/vault/api/sys/auth.rb#L35-L41
train
Get the list of auths
[ 30522, 13366, 8740, 26830, 1046, 3385, 1027, 7396, 1012, 2131, 1006, 1000, 1013, 1058, 2487, 1013, 25353, 2015, 1013, 8740, 2705, 1000, 1007, 1046, 3385, 1027, 1046, 3385, 1031, 1024, 2951, 1033, 2065, 1046, 3385, 1031, 1024, 2951, 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...
puppetlabs/puppet
lib/puppet/pops/merge_strategy.rb
Puppet::Pops.MergeStrategy.lookup
def lookup(lookup_variants, lookup_invocation) case lookup_variants.size when 0 throw :no_such_key when 1 merge_single(yield(lookup_variants[0])) else lookup_invocation.with(:merge, self) do result = lookup_variants.reduce(NOT_FOUND) do |memo, lookup_variant| ...
ruby
def lookup(lookup_variants, lookup_invocation) case lookup_variants.size when 0 throw :no_such_key when 1 merge_single(yield(lookup_variants[0])) else lookup_invocation.with(:merge, self) do result = lookup_variants.reduce(NOT_FOUND) do |memo, lookup_variant| ...
[ "def", "lookup", "(", "lookup_variants", ",", "lookup_invocation", ")", "case", "lookup_variants", ".", "size", "when", "0", "throw", ":no_such_key", "when", "1", "merge_single", "(", "yield", "(", "lookup_variants", "[", "0", "]", ")", ")", "else", "lookup_in...
Merges the result of yielding the given _lookup_variants_ to a given block. @param lookup_variants [Array] The variants to pass as second argument to the given block @return [Object] the merged value. @yield [} ] @yieldparam variant [Object] each variant given in the _lookup_variants_ array. @yieldreturn [Object]...
[ "Merges", "the", "result", "of", "yielding", "the", "given", "_lookup_variants_", "to", "a", "given", "block", "." ]
4baeed97cbb7571ddc6635f0a24debe2e8b22cd3
https://github.com/puppetlabs/puppet/blob/4baeed97cbb7571ddc6635f0a24debe2e8b22cd3/lib/puppet/pops/merge_strategy.rb#L121-L146
train
Returns a new instance of the class.
[ 30522, 13366, 2298, 6279, 1006, 2298, 6279, 1035, 10176, 1010, 2298, 6279, 1035, 1999, 19152, 1007, 2553, 2298, 6279, 1035, 10176, 1012, 2946, 2043, 1014, 5466, 1024, 2053, 1035, 2107, 1035, 3145, 2043, 1015, 13590, 1035, 2309, 1006, 10750,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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/2016-12-01/generated/azure_mgmt_network/virtual_network_gateways.rb
Azure::Network::Mgmt::V2016_12_01.VirtualNetworkGateways.begin_reset_with_http_info
def begin_reset_with_http_info(resource_group_name, virtual_network_gateway_name, gateway_vip:nil, custom_headers:nil) begin_reset_async(resource_group_name, virtual_network_gateway_name, gateway_vip:gateway_vip, custom_headers:custom_headers).value! end
ruby
def begin_reset_with_http_info(resource_group_name, virtual_network_gateway_name, gateway_vip:nil, custom_headers:nil) begin_reset_async(resource_group_name, virtual_network_gateway_name, gateway_vip:gateway_vip, custom_headers:custom_headers).value! end
[ "def", "begin_reset_with_http_info", "(", "resource_group_name", ",", "virtual_network_gateway_name", ",", "gateway_vip", ":", "nil", ",", "custom_headers", ":", "nil", ")", "begin_reset_async", "(", "resource_group_name", ",", "virtual_network_gateway_name", ",", "gateway_...
Resets the primary of the virtual network gateway in the specified resource group. @param resource_group_name [String] The name of the resource group. @param virtual_network_gateway_name [String] The name of the virtual network gateway. @param gateway_vip [String] Virtual network gateway vip address supplied to ...
[ "Resets", "the", "primary", "of", "the", "virtual", "network", "gateway", "in", "the", "specified", "resource", "group", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/virtual_network_gateways.rb#L837-L839
train
Resets a virtual network gateway.
[ 30522, 13366, 4088, 1035, 25141, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 7484, 1035, 2897, 1035, 11909, 1035, 2171, 1010, 11909, 1035, 21722, 1024, 9152, 2140, 1010, 7661, 1035, 20346, 2015, 1024, 9152...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
fastlane/fastlane
fastlane/lib/fastlane/plugins/plugin_manager.rb
Fastlane.PluginManager.gem_dependency_suffix
def gem_dependency_suffix(plugin_name) return "" unless self.class.fetch_gem_info_from_rubygems(plugin_name).nil? selection_git_url = "Git URL" selection_path = "Local Path" selection_rubygems = "RubyGems.org ('#{plugin_name}' seems to not be available there)" selection_gem_server = "Othe...
ruby
def gem_dependency_suffix(plugin_name) return "" unless self.class.fetch_gem_info_from_rubygems(plugin_name).nil? selection_git_url = "Git URL" selection_path = "Local Path" selection_rubygems = "RubyGems.org ('#{plugin_name}' seems to not be available there)" selection_gem_server = "Othe...
[ "def", "gem_dependency_suffix", "(", "plugin_name", ")", "return", "\"\"", "unless", "self", ".", "class", ".", "fetch_gem_info_from_rubygems", "(", "plugin_name", ")", ".", "nil?", "selection_git_url", "=", "\"Git URL\"", "selection_path", "=", "\"Local Path\"", "sel...
Get a suffix (e.g. `path` or `git` for the gem dependency)
[ "Get", "a", "suffix", "(", "e", ".", "g", ".", "path", "or", "git", "for", "the", "gem", "dependency", ")" ]
457c5d647c77f0e078dafa5129da616914e002c5
https://github.com/fastlane/fastlane/blob/457c5d647c77f0e078dafa5129da616914e002c5/fastlane/lib/fastlane/plugins/plugin_manager.rb#L113-L139
train
Returns the gem dependency suffix for the given gem.
[ 30522, 13366, 17070, 1035, 24394, 1035, 16809, 1006, 13354, 2378, 1035, 2171, 1007, 2709, 1000, 1000, 4983, 2969, 1012, 2465, 1012, 18584, 1035, 17070, 1035, 18558, 1035, 2013, 1035, 10090, 3351, 5244, 1006, 13354, 2378, 1035, 2171, 1007, 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
management/azure_mgmt_stor_simple8000_series/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/devices.rb
Azure::StorSimple8000Series::Mgmt::V2017_06_01.Devices.begin_failover_with_http_info
def begin_failover_with_http_info(source_device_name, parameters, resource_group_name, manager_name, custom_headers:nil) begin_failover_async(source_device_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers).value! end
ruby
def begin_failover_with_http_info(source_device_name, parameters, resource_group_name, manager_name, custom_headers:nil) begin_failover_async(source_device_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers).value! end
[ "def", "begin_failover_with_http_info", "(", "source_device_name", ",", "parameters", ",", "resource_group_name", ",", "manager_name", ",", "custom_headers", ":", "nil", ")", "begin_failover_async", "(", "source_device_name", ",", "parameters", ",", "resource_group_name", ...
Failovers a set of volume containers from a specified source device to a target device. @param source_device_name [String] The source device name on which failover is performed. @param parameters [FailoverRequest] FailoverRequest containing the source device and the list of volume containers to be failed over. @...
[ "Failovers", "a", "set", "of", "volume", "containers", "from", "a", "specified", "source", "device", "to", "a", "target", "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/devices.rb#L1687-L1689
train
Gets the next chunk of the image from the source device.
[ 30522, 13366, 4088, 1035, 8246, 7840, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 3120, 1035, 5080, 1035, 2171, 1010, 11709, 1010, 7692, 1035, 2177, 1035, 2171, 1010, 3208, 1035, 2171, 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...
square/connect-ruby-sdk
lib/square_connect/models/v1_list_payments_request.rb
SquareConnect.V1ListPaymentsRequest.order=
def order=(order) validator = EnumAttributeValidator.new('String', ["DESC", "ASC"]) unless validator.valid?(order) fail ArgumentError, "invalid value for 'order', must be one of #{validator.allowable_values}." end @order = order end
ruby
def order=(order) validator = EnumAttributeValidator.new('String', ["DESC", "ASC"]) unless validator.valid?(order) fail ArgumentError, "invalid value for 'order', must be one of #{validator.allowable_values}." end @order = order end
[ "def", "order", "=", "(", "order", ")", "validator", "=", "EnumAttributeValidator", ".", "new", "(", "'String'", ",", "[", "\"DESC\"", ",", "\"ASC\"", "]", ")", "unless", "validator", ".", "valid?", "(", "order", ")", "fail", "ArgumentError", ",", "\"inval...
Custom attribute writer method checking allowed values (enum). @param [Object] order Object to be assigned
[ "Custom", "attribute", "writer", "method", "checking", "allowed", "values", "(", "enum", ")", "." ]
798eb9ded716f23b9f1518386f1c311a34bca8bf
https://github.com/square/connect-ruby-sdk/blob/798eb9ded716f23b9f1518386f1c311a34bca8bf/lib/square_connect/models/v1_list_payments_request.rb#L130-L136
train
Sets the order of the search.
[ 30522, 13366, 2344, 1027, 1006, 2344, 1007, 9398, 8844, 1027, 4372, 12248, 4779, 3089, 8569, 2618, 10175, 8524, 4263, 1012, 2047, 1006, 1005, 5164, 1005, 1010, 1031, 1000, 4078, 2278, 1000, 1010, 1000, 2004, 2278, 1000, 1033, 1007, 4983, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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/persistent.rb
Vault.PersistentHTTP.expired?
def expired? connection return true if @max_requests && connection.requests >= @max_requests return false unless @idle_timeout return true if @idle_timeout.zero? Time.now - connection.last_use > @idle_timeout end
ruby
def expired? connection return true if @max_requests && connection.requests >= @max_requests return false unless @idle_timeout return true if @idle_timeout.zero? Time.now - connection.last_use > @idle_timeout end
[ "def", "expired?", "connection", "return", "true", "if", "@max_requests", "&&", "connection", ".", "requests", ">=", "@max_requests", "return", "false", "unless", "@idle_timeout", "return", "true", "if", "@idle_timeout", ".", "zero?", "Time", ".", "now", "-", "c...
Returns true if the connection should be reset due to an idle timeout, or maximum request count, false otherwise.
[ "Returns", "true", "if", "the", "connection", "should", "be", "reset", "due", "to", "an", "idle", "timeout", "or", "maximum", "request", "count", "false", "otherwise", "." ]
02f0532a802ba1a2a0d8703a4585dab76eb9d864
https://github.com/hashicorp/vault-ruby/blob/02f0532a802ba1a2a0d8703a4585dab76eb9d864/lib/vault/persistent.rb#L683-L689
train
Returns true if the connection has expired
[ 30522, 13366, 13735, 1029, 4434, 2709, 2995, 2065, 1030, 4098, 1035, 11186, 1004, 1004, 4434, 1012, 11186, 1028, 1027, 1030, 4098, 1035, 11186, 2709, 6270, 4983, 1030, 18373, 1035, 2051, 5833, 2709, 2995, 2065, 1030, 18373, 1035, 2051, 5833...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...