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_event_hub/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/namespaces.rb
Azure::EventHub::Mgmt::V2018_01_01_preview.Namespaces.list_ipfilter_rules
def list_ipfilter_rules(resource_group_name, namespace_name, custom_headers:nil) first_page = list_ipfilter_rules_as_lazy(resource_group_name, namespace_name, custom_headers:custom_headers) first_page.get_all_items end
ruby
def list_ipfilter_rules(resource_group_name, namespace_name, custom_headers:nil) first_page = list_ipfilter_rules_as_lazy(resource_group_name, namespace_name, custom_headers:custom_headers) first_page.get_all_items end
[ "def", "list_ipfilter_rules", "(", "resource_group_name", ",", "namespace_name", ",", "custom_headers", ":", "nil", ")", "first_page", "=", "list_ipfilter_rules_as_lazy", "(", "resource_group_name", ",", "namespace_name", ",", "custom_headers", ":custom_headers", ")", "fi...
Gets a list of IP Filter rules for a Namespace. @param resource_group_name [String] Name of the resource group within the Azure subscription. @param namespace_name [String] The Namespace name @param custom_headers [Hash{String => String}] A hash of custom headers that will be added to the HTTP request. @return ...
[ "Gets", "a", "list", "of", "IP", "Filter", "rules", "for", "a", "Namespace", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_event_hub/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/namespaces.rb#L536-L539
train
Gets all the IP filter rules for a namespace.
[ 30522, 13366, 2862, 1035, 12997, 8873, 21928, 1035, 3513, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 3415, 15327, 1035, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 2034, 1035, 3931, 1027, 2862, 1035, 12997, 8873, 21928, 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...
rails/sprockets
lib/sprockets/exporting.rb
Sprockets.Exporting.unregister_exporter
def unregister_exporter(mime_types, exporter = nil) unless mime_types.is_a? Array if mime_types.is_a? String mime_types = [mime_types] else # called with no mime type exporter = mime_types mime_types = nil end end self.config = hash_reassoc(config...
ruby
def unregister_exporter(mime_types, exporter = nil) unless mime_types.is_a? Array if mime_types.is_a? String mime_types = [mime_types] else # called with no mime type exporter = mime_types mime_types = nil end end self.config = hash_reassoc(config...
[ "def", "unregister_exporter", "(", "mime_types", ",", "exporter", "=", "nil", ")", "unless", "mime_types", ".", "is_a?", "Array", "if", "mime_types", ".", "is_a?", "String", "mime_types", "=", "[", "mime_types", "]", "else", "# called with no mime type", "exporter...
Public: Remove Exporting processor `klass` for `mime_type`. environment.unregister_exporter '*/*', Sprockets::Exporters::Zlib Can be called without a mime type environment.unregister_exporter Sprockets::Exporters::Zlib Does not remove any exporters that depend on `klass`.
[ "Public", ":", "Remove", "Exporting", "processor", "klass", "for", "mime_type", "." ]
9e3f0d8e98c44f57e67bc138db87bb8469bf5ddd
https://github.com/rails/sprockets/blob/9e3f0d8e98c44f57e67bc138db87bb8469bf5ddd/lib/sprockets/exporting.rb#L38-L56
train
unregister an exporter from the config
[ 30522, 13366, 4895, 2890, 24063, 2121, 1035, 9167, 2121, 1006, 2771, 4168, 1035, 4127, 1010, 9167, 2121, 1027, 9152, 2140, 1007, 4983, 2771, 4168, 1035, 4127, 1012, 2003, 1035, 1037, 1029, 9140, 2065, 2771, 4168, 1035, 4127, 1012, 2003, 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_network/lib/2019-02-01/generated/azure_mgmt_network/express_route_circuits.rb
Azure::Network::Mgmt::V2019_02_01.ExpressRouteCircuits.begin_list_arp_table
def begin_list_arp_table(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) response = begin_list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def begin_list_arp_table(resource_group_name, circuit_name, peering_name, device_path, custom_headers:nil) response = begin_list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "begin_list_arp_table", "(", "resource_group_name", ",", "circuit_name", ",", "peering_name", ",", "device_path", ",", "custom_headers", ":", "nil", ")", "response", "=", "begin_list_arp_table_async", "(", "resource_group_name", ",", "circuit_name", ",", "peering...
Gets the currently advertised ARP table associated with the express route circuit in a resource group. @param resource_group_name [String] The name of the resource group. @param circuit_name [String] The name of the express route circuit. @param peering_name [String] The name of the peering. @param device_path [S...
[ "Gets", "the", "currently", "advertised", "ARP", "table", "associated", "with", "the", "express", "route", "circuit", "in", "a", "resource", "group", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_network/lib/2019-02-01/generated/azure_mgmt_network/express_route_circuits.rb#L1063-L1066
train
Gets the ARP table associated with the express route circuit.
[ 30522, 13366, 4088, 1035, 2862, 1035, 12098, 2361, 1035, 2795, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 4984, 1035, 2171, 1010, 16740, 1035, 2171, 1010, 5080, 1035, 4130, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 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_event_grid/lib/2018-01-01/generated/azure_mgmt_event_grid/event_subscriptions.rb
Azure::EventGrid::Mgmt::V2018_01_01.EventSubscriptions.list_regional_by_subscription
def list_regional_by_subscription(location, custom_headers:nil) response = list_regional_by_subscription_async(location, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def list_regional_by_subscription(location, custom_headers:nil) response = list_regional_by_subscription_async(location, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "list_regional_by_subscription", "(", "location", ",", "custom_headers", ":", "nil", ")", "response", "=", "list_regional_by_subscription_async", "(", "location", ",", "custom_headers", ":custom_headers", ")", ".", "value!", "response", ".", "body", "unless", "...
List all regional event subscriptions under an Azure subscription List all event subscriptions from the given location under a specific Azure subscription @param location [String] Name of the location @param custom_headers [Hash{String => String}] A hash of custom headers that will be added to the HTTP request. ...
[ "List", "all", "regional", "event", "subscriptions", "under", "an", "Azure", "subscription" ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_event_grid/lib/2018-01-01/generated/azure_mgmt_event_grid/event_subscriptions.rb#L885-L888
train
Gets the regional terms of the resource.
[ 30522, 13366, 2862, 1035, 3164, 1035, 2011, 1035, 15002, 1006, 3295, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 2862, 1035, 3164, 1035, 2011, 1035, 15002, 1035, 2004, 6038, 2278, 1006, 3295, 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_network/lib/2018-07-01/generated/azure_mgmt_network/security_rules.rb
Azure::Network::Mgmt::V2018_07_01.SecurityRules.begin_delete_with_http_info
def begin_delete_with_http_info(resource_group_name, network_security_group_name, security_rule_name, custom_headers:nil) begin_delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers:custom_headers).value! end
ruby
def begin_delete_with_http_info(resource_group_name, network_security_group_name, security_rule_name, custom_headers:nil) begin_delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers:custom_headers).value! end
[ "def", "begin_delete_with_http_info", "(", "resource_group_name", ",", "network_security_group_name", ",", "security_rule_name", ",", "custom_headers", ":", "nil", ")", "begin_delete_async", "(", "resource_group_name", ",", "network_security_group_name", ",", "security_rule_nam...
Deletes the specified network security rule. @param resource_group_name [String] The name of the resource group. @param network_security_group_name [String] The name of the network security group. @param security_rule_name [String] The name of the security rule. @param custom_headers [Hash{String => String}] A ha...
[ "Deletes", "the", "specified", "network", "security", "rule", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_network/lib/2018-07-01/generated/azure_mgmt_network/security_rules.rb#L338-L340
train
Deletes a network security rule.
[ 30522, 13366, 4088, 1035, 3972, 12870, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 2897, 1035, 3036, 1035, 2177, 1035, 2171, 1010, 3036, 1035, 3627, 1035, 2171, 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...
hashicorp/vault-ruby
lib/vault/persistent/pool.rb
Vault.PersistentHTTP::Pool.checkin
def checkin net_http_args stack = Thread.current[@key][net_http_args] raise ConnectionPool::Error, 'no connections are checked out' if stack.empty? conn = stack.pop if stack.empty? @available.push conn, connection_args: net_http_args end nil end
ruby
def checkin net_http_args stack = Thread.current[@key][net_http_args] raise ConnectionPool::Error, 'no connections are checked out' if stack.empty? conn = stack.pop if stack.empty? @available.push conn, connection_args: net_http_args end nil end
[ "def", "checkin", "net_http_args", "stack", "=", "Thread", ".", "current", "[", "@key", "]", "[", "net_http_args", "]", "raise", "ConnectionPool", "::", "Error", ",", "'no connections are checked out'", "if", "stack", ".", "empty?", "conn", "=", "stack", ".", ...
:nodoc:
[ ":", "nodoc", ":" ]
02f0532a802ba1a2a0d8703a4585dab76eb9d864
https://github.com/hashicorp/vault-ruby/blob/02f0532a802ba1a2a0d8703a4585dab76eb9d864/lib/vault/persistent/pool.rb#L14-L27
train
Checkin connection pool
[ 30522, 13366, 4638, 2378, 5658, 1035, 8299, 1035, 12098, 5620, 9991, 1027, 11689, 1012, 2783, 1031, 1030, 3145, 1033, 1031, 5658, 1035, 8299, 1035, 12098, 5620, 1033, 5333, 4434, 16869, 1024, 1024, 7561, 1010, 1005, 2053, 7264, 2024, 7039, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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-06-01-preview/generated/azure_mgmt_container_registry/replications.rb
Azure::ContainerRegistry::Mgmt::V2017_06_01_preview.Replications.begin_delete_with_http_info
def begin_delete_with_http_info(resource_group_name, registry_name, replication_name, custom_headers:nil) begin_delete_async(resource_group_name, registry_name, replication_name, custom_headers:custom_headers).value! end
ruby
def begin_delete_with_http_info(resource_group_name, registry_name, replication_name, custom_headers:nil) begin_delete_async(resource_group_name, registry_name, replication_name, custom_headers:custom_headers).value! end
[ "def", "begin_delete_with_http_info", "(", "resource_group_name", ",", "registry_name", ",", "replication_name", ",", "custom_headers", ":", "nil", ")", "begin_delete_async", "(", "resource_group_name", ",", "registry_name", ",", "replication_name", ",", "custom_headers", ...
Deletes a replication from a container registry. @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 replication_name [String] The name of the replication. @param custom_headers [Hash{S...
[ "Deletes", "a", "replication", "from", "a", "container", "registry", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_container_registry/lib/2017-06-01-preview/generated/azure_mgmt_container_registry/replications.rb#L521-L523
train
Deletes a replication specification.
[ 30522, 13366, 4088, 1035, 3972, 12870, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 15584, 1035, 2171, 1010, 21647, 1035, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 4088, 1035, 3972, 12870...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
projectcypress/health-data-standards
lib/hqmf-parser/2.0/document_helpers/doc_utilities.rb
HQMF2.DocumentUtilities.complex_coverage
def complex_coverage(data_criteria, check_criteria) same_value = data_criteria.value.nil? || data_criteria.value.try(:to_model).try(:to_json) == check_criteria.value.try(:to_model).try(:to_json) same_field_values = same_field_values_check(data_criteria, check_criteria) same_negati...
ruby
def complex_coverage(data_criteria, check_criteria) same_value = data_criteria.value.nil? || data_criteria.value.try(:to_model).try(:to_json) == check_criteria.value.try(:to_model).try(:to_json) same_field_values = same_field_values_check(data_criteria, check_criteria) same_negati...
[ "def", "complex_coverage", "(", "data_criteria", ",", "check_criteria", ")", "same_value", "=", "data_criteria", ".", "value", ".", "nil?", "||", "data_criteria", ".", "value", ".", "try", "(", ":to_model", ")", ".", "try", "(", ":to_json", ")", "==", "check...
Check elements that do not already exist; else, if they do, check if those elements are the same in a different, potentially matching, data criteria
[ "Check", "elements", "that", "do", "not", "already", "exist", ";", "else", "if", "they", "do", "check", "if", "those", "elements", "are", "the", "same", "in", "a", "different", "potentially", "matching", "data", "criteria" ]
252d4f0927c513eacde6b9ea41b76faa1423c34b
https://github.com/projectcypress/health-data-standards/blob/252d4f0927c513eacde6b9ea41b76faa1423c34b/lib/hqmf-parser/2.0/document_helpers/doc_utilities.rb#L107-L117
train
Returns the coverage of the data criteria and the check criteria.
[ 30522, 13366, 3375, 1035, 6325, 1006, 2951, 1035, 9181, 1010, 4638, 1035, 9181, 1007, 2168, 1035, 3643, 1027, 2951, 1035, 9181, 1012, 3643, 1012, 9152, 2140, 1029, 1064, 1064, 2951, 1035, 9181, 1012, 3643, 1012, 3046, 1006, 1024, 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...
meew0/discordrb
lib/discordrb/bot.rb
Discordrb.Bot.delete_invite
def delete_invite(code) invite = resolve_invite_code(code) API::Invite.delete(token, invite) end
ruby
def delete_invite(code) invite = resolve_invite_code(code) API::Invite.delete(token, invite) end
[ "def", "delete_invite", "(", "code", ")", "invite", "=", "resolve_invite_code", "(", "code", ")", "API", "::", "Invite", ".", "delete", "(", "token", ",", "invite", ")", "end" ]
Revokes an invite to a server. Will fail unless you have the *Manage Server* permission. It is recommended that you use {Invite#delete} instead. @param code [String, Invite] The invite to revoke. For possible formats see {#resolve_invite_code}.
[ "Revokes", "an", "invite", "to", "a", "server", ".", "Will", "fail", "unless", "you", "have", "the", "*", "Manage", "Server", "*", "permission", ".", "It", "is", "recommended", "that", "you", "use", "{", "Invite#delete", "}", "instead", "." ]
764298a1ff0be69a1853b510d736f21c2b91a2fe
https://github.com/meew0/discordrb/blob/764298a1ff0be69a1853b510d736f21c2b91a2fe/lib/discordrb/bot.rb#L355-L358
train
Delete an invite from the server
[ 30522, 13366, 3972, 12870, 1035, 13260, 1006, 3642, 1007, 13260, 1027, 10663, 1035, 13260, 1035, 3642, 1006, 3642, 1007, 17928, 1024, 1024, 13260, 1012, 3972, 12870, 1006, 19204, 1010, 13260, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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/internet_gateway.rb
Aws::EC2.InternetGateway.delete
def delete(options = {}) options = options.merge(internet_gateway_id: @id) resp = @client.delete_internet_gateway(options) resp.data end
ruby
def delete(options = {}) options = options.merge(internet_gateway_id: @id) resp = @client.delete_internet_gateway(options) resp.data end
[ "def", "delete", "(", "options", "=", "{", "}", ")", "options", "=", "options", ".", "merge", "(", "internet_gateway_id", ":", "@id", ")", "resp", "=", "@client", ".", "delete_internet_gateway", "(", "options", ")", "resp", ".", "data", "end" ]
@example Request syntax with placeholder values internet_gateway.delete({ dry_run: false, }) @param [Hash] options ({}) @option options [Boolean] :dry_run Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you h...
[ "@example", "Request", "syntax", "with", "placeholder", "values" ]
e28b8d320ddf7b6ee0161bdd9d00fb786d99b63d
https://github.com/aws/aws-sdk-ruby/blob/e28b8d320ddf7b6ee0161bdd9d00fb786d99b63d/gems/aws-sdk-ec2/lib/aws-sdk-ec2/internet_gateway.rb#L254-L258
train
Delete an internet gateway
[ 30522, 13366, 3972, 12870, 1006, 7047, 1027, 1063, 1065, 1007, 7047, 1027, 7047, 1012, 13590, 1006, 4274, 1035, 11909, 1035, 8909, 1024, 1030, 8909, 1007, 24501, 2361, 1027, 1030, 7396, 1012, 3972, 12870, 1035, 4274, 1035, 11909, 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...
decidim/decidim
decidim-core/app/helpers/decidim/amendments_helper.rb
Decidim.AmendmentsHelper.user_group_select_field
def user_group_select_field(form, name) form.select(name, current_user.user_groups.verified.map { |g| [g.name, g.id] }, selected: form.object.user_group_id.presence, include_blank: current_user.name, label: t("new.amendment_author", scope: "d...
ruby
def user_group_select_field(form, name) form.select(name, current_user.user_groups.verified.map { |g| [g.name, g.id] }, selected: form.object.user_group_id.presence, include_blank: current_user.name, label: t("new.amendment_author", scope: "d...
[ "def", "user_group_select_field", "(", "form", ",", "name", ")", "form", ".", "select", "(", "name", ",", "current_user", ".", "user_groups", ".", "verified", ".", "map", "{", "|", "g", "|", "[", "g", ".", "name", ",", "g", ".", "id", "]", "}", ","...
Renders a UserGroup select field in a form.
[ "Renders", "a", "UserGroup", "select", "field", "in", "a", "form", "." ]
6e2b14e559a63088669904e3c5c49a5180700cf7
https://github.com/decidim/decidim/blob/6e2b14e559a63088669904e3c5c49a5180700cf7/decidim-core/app/helpers/decidim/amendments_helper.rb#L107-L113
train
Select a user group field
[ 30522, 13366, 5310, 1035, 2177, 1035, 7276, 1035, 2492, 1006, 2433, 1010, 2171, 1007, 2433, 1012, 7276, 1006, 2171, 1010, 2783, 1035, 5310, 1012, 5310, 1035, 2967, 1012, 20119, 1012, 4949, 1063, 1064, 1043, 1064, 1031, 1043, 1012, 2171, 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...
decidim/decidim
decidim-core/app/helpers/decidim/cta_button_helper.rb
Decidim.CtaButtonHelper.cta_button_path
def cta_button_path if current_organization.cta_button_path.present? current_organization.cta_button_path elsif Decidim::ParticipatoryProcess.where(organization: current_organization).published.any? decidim_participatory_processes.participatory_processes_path elsif current_user ...
ruby
def cta_button_path if current_organization.cta_button_path.present? current_organization.cta_button_path elsif Decidim::ParticipatoryProcess.where(organization: current_organization).published.any? decidim_participatory_processes.participatory_processes_path elsif current_user ...
[ "def", "cta_button_path", "if", "current_organization", ".", "cta_button_path", ".", "present?", "current_organization", ".", "cta_button_path", "elsif", "Decidim", "::", "ParticipatoryProcess", ".", "where", "(", "organization", ":", "current_organization", ")", ".", "...
Finds the CTA button path to reuse it in other places.
[ "Finds", "the", "CTA", "button", "path", "to", "reuse", "it", "in", "other", "places", "." ]
6e2b14e559a63088669904e3c5c49a5180700cf7
https://github.com/decidim/decidim/blob/6e2b14e559a63088669904e3c5c49a5180700cf7/decidim-core/app/helpers/decidim/cta_button_helper.rb#L15-L27
train
The cta button path for the current organization.
[ 30522, 13366, 14931, 2050, 1035, 6462, 1035, 4130, 2065, 2783, 1035, 3029, 1012, 14931, 2050, 1035, 6462, 1035, 4130, 1012, 2556, 1029, 2783, 1035, 3029, 1012, 14931, 2050, 1035, 6462, 1035, 4130, 3449, 5332, 2546, 11703, 28173, 2213, 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...
kpumuk/meta-tags
lib/meta_tags/renderer.rb
MetaTags.Renderer.render_icon
def render_icon(tags) icon = meta_tags.extract(:icon) return unless icon # String? Value is an href icon = [{ href: icon }] if icon.kind_of?(String) # Hash? Single icon instead of a list of icons icon = [icon] if icon.kind_of?(Hash) icon.each do |icon_params| icon_par...
ruby
def render_icon(tags) icon = meta_tags.extract(:icon) return unless icon # String? Value is an href icon = [{ href: icon }] if icon.kind_of?(String) # Hash? Single icon instead of a list of icons icon = [icon] if icon.kind_of?(Hash) icon.each do |icon_params| icon_par...
[ "def", "render_icon", "(", "tags", ")", "icon", "=", "meta_tags", ".", "extract", "(", ":icon", ")", "return", "unless", "icon", "# String? Value is an href", "icon", "=", "[", "{", "href", ":", "icon", "}", "]", "if", "icon", ".", "kind_of?", "(", "Stri...
Renders icon(s) tag. @param [Array<Tag>] tags a buffer object to store tag in.
[ "Renders", "icon", "(", "s", ")", "tag", "." ]
03585f95edf96cd17024c5c155ce46ec8bc47232
https://github.com/kpumuk/meta-tags/blob/03585f95edf96cd17024c5c155ce46ec8bc47232/lib/meta_tags/renderer.rb#L68-L81
train
Render the icon tag
[ 30522, 13366, 17552, 1035, 12696, 1006, 22073, 1007, 12696, 1027, 18804, 1035, 22073, 1012, 14817, 1006, 1024, 12696, 1007, 2709, 4983, 12696, 1001, 5164, 1029, 3643, 2003, 2019, 17850, 12879, 12696, 1027, 1031, 1063, 17850, 12879, 1024, 1269...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
ruby-git/ruby-git
lib/git/lib.rb
Git.Lib.grep
def grep(string, opts = {}) opts[:object] ||= 'HEAD' grep_opts = ['-n'] grep_opts << '-i' if opts[:ignore_case] grep_opts << '-v' if opts[:invert_match] grep_opts << '-e' grep_opts << string grep_opts << opts[:object] if opts[:object].is_a?(String) grep_opts << '--' << o...
ruby
def grep(string, opts = {}) opts[:object] ||= 'HEAD' grep_opts = ['-n'] grep_opts << '-i' if opts[:ignore_case] grep_opts << '-v' if opts[:invert_match] grep_opts << '-e' grep_opts << string grep_opts << opts[:object] if opts[:object].is_a?(String) grep_opts << '--' << o...
[ "def", "grep", "(", "string", ",", "opts", "=", "{", "}", ")", "opts", "[", ":object", "]", "||=", "'HEAD'", "grep_opts", "=", "[", "'-n'", "]", "grep_opts", "<<", "'-i'", "if", "opts", "[", ":ignore_case", "]", "grep_opts", "<<", "'-v'", "if", "opts...
returns hash [tree-ish] = [[line_no, match], [line_no, match2]] [tree-ish] = [[line_no, match], [line_no, match2]]
[ "returns", "hash", "[", "tree", "-", "ish", "]", "=", "[[", "line_no", "match", "]", "[", "line_no", "match2", "]]", "[", "tree", "-", "ish", "]", "=", "[[", "line_no", "match", "]", "[", "line_no", "match2", "]]" ]
9bd4407c56068e1604f14a1b6c0c5a84868e6378
https://github.com/ruby-git/ruby-git/blob/9bd4407c56068e1604f14a1b6c0c5a84868e6378/lib/git/lib.rb#L328-L347
train
Find all files matching the given string.
[ 30522, 13366, 24665, 13699, 1006, 5164, 1010, 23569, 2015, 1027, 1063, 1065, 1007, 23569, 2015, 1031, 1024, 4874, 1033, 1064, 1064, 1027, 1005, 2132, 1005, 24665, 13699, 1035, 23569, 2015, 1027, 1031, 1005, 1011, 1050, 1005, 1033, 24665, 13...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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/list_customers_request.rb
SquareConnect.ListCustomersRequest.sort_field=
def sort_field=(sort_field) validator = EnumAttributeValidator.new('String', ["DEFAULT", "CREATED_AT"]) unless validator.valid?(sort_field) fail ArgumentError, "invalid value for 'sort_field', must be one of #{validator.allowable_values}." end @sort_field = sort_field end
ruby
def sort_field=(sort_field) validator = EnumAttributeValidator.new('String', ["DEFAULT", "CREATED_AT"]) unless validator.valid?(sort_field) fail ArgumentError, "invalid value for 'sort_field', must be one of #{validator.allowable_values}." end @sort_field = sort_field end
[ "def", "sort_field", "=", "(", "sort_field", ")", "validator", "=", "EnumAttributeValidator", ".", "new", "(", "'String'", ",", "[", "\"DEFAULT\"", ",", "\"CREATED_AT\"", "]", ")", "unless", "validator", ".", "valid?", "(", "sort_field", ")", "fail", "Argument...
Custom attribute writer method checking allowed values (enum). @param [Object] sort_field 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/list_customers_request.rb#L105-L111
train
Sets the sort_field of the record.
[ 30522, 13366, 4066, 1035, 2492, 1027, 1006, 4066, 1035, 2492, 1007, 9398, 8844, 1027, 4372, 12248, 4779, 3089, 8569, 2618, 10175, 8524, 4263, 1012, 2047, 1006, 1005, 5164, 1005, 1010, 1031, 1000, 12398, 1000, 1010, 1000, 2580, 1035, 2012, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
mikel/mail
lib/mail/message.rb
Mail.Message.default
def default( sym, val = nil ) if val header[sym] = val elsif field = header[sym] field.default end end
ruby
def default( sym, val = nil ) if val header[sym] = val elsif field = header[sym] field.default end end
[ "def", "default", "(", "sym", ",", "val", "=", "nil", ")", "if", "val", "header", "[", "sym", "]", "=", "val", "elsif", "field", "=", "header", "[", "sym", "]", "field", ".", "default", "end", "end" ]
Returns the default value of the field requested as a symbol. Each header field has a :default method which returns the most common use case for that field, for example, the date field types will return a DateTime object when sent :default, the subject, or unstructured fields will return a decoded string of their ...
[ "Returns", "the", "default", "value", "of", "the", "field", "requested", "as", "a", "symbol", "." ]
fb53fb369eb2bf0494ac70675970c90cdcc3f495
https://github.com/mikel/mail/blob/fb53fb369eb2bf0494ac70675970c90cdcc3f495/lib/mail/message.rb#L1204-L1210
train
Set default value for the given symbol
[ 30522, 13366, 12398, 1006, 25353, 2213, 1010, 11748, 1027, 9152, 2140, 1007, 2065, 11748, 20346, 1031, 25353, 2213, 1033, 1027, 11748, 3449, 5332, 2546, 2492, 1027, 20346, 1031, 25353, 2213, 1033, 2492, 1012, 12398, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
appium/ruby_lib
lib/appium_lib/ios/common/helper.rb
Appium.Ios.find_ele_by_predicate_include
def find_ele_by_predicate_include(class_name: '*', value:) elements = find_eles_by_predicate_include(class_name: class_name, value: value) raise _no_such_element if elements.empty? elements.first end
ruby
def find_ele_by_predicate_include(class_name: '*', value:) elements = find_eles_by_predicate_include(class_name: class_name, value: value) raise _no_such_element if elements.empty? elements.first end
[ "def", "find_ele_by_predicate_include", "(", "class_name", ":", "'*'", ",", "value", ":", ")", "elements", "=", "find_eles_by_predicate_include", "(", "class_name", ":", "class_name", ",", "value", ":", "value", ")", "raise", "_no_such_element", "if", "elements", ...
Get the first elements that include insensitive value. Note: Uses Predicate @param value [String] the value of the attribute that the element must include @return [Element] the element of type tag who's attribute includes value
[ "Get", "the", "first", "elements", "that", "include", "insensitive", "value", ".", "Note", ":", "Uses", "Predicate" ]
1f5898400dd1928bfe42ddd5f842d1f8738f2f76
https://github.com/appium/ruby_lib/blob/1f5898400dd1928bfe42ddd5f842d1f8738f2f76/lib/appium_lib/ios/common/helper.rb#L208-L213
train
Find an element that matches the given class_name and value.
[ 30522, 13366, 2424, 1035, 3449, 2063, 1035, 2011, 1035, 3653, 16467, 1035, 2421, 1006, 2465, 1035, 2171, 1024, 1005, 1008, 1005, 1010, 3643, 1024, 1007, 3787, 1027, 2424, 1035, 3449, 2229, 1035, 2011, 1035, 3653, 16467, 1035, 2421, 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...
braintree/braintree_ruby
lib/braintree/customer.rb
Braintree.Customer.update
def update(attributes) warn "[DEPRECATED] update as an instance method is deprecated. Please use Customer.update" result = @gateway.customer.update(id, attributes) if result.success? copy_instance_variables_from_object result.customer end result end
ruby
def update(attributes) warn "[DEPRECATED] update as an instance method is deprecated. Please use Customer.update" result = @gateway.customer.update(id, attributes) if result.success? copy_instance_variables_from_object result.customer end result end
[ "def", "update", "(", "attributes", ")", "warn", "\"[DEPRECATED] update as an instance method is deprecated. Please use Customer.update\"", "result", "=", "@gateway", ".", "customer", ".", "update", "(", "id", ",", "attributes", ")", "if", "result", ".", "success?", "co...
Deprecated. Use Braintree::Customer.update
[ "Deprecated", ".", "Use", "Braintree", "::", "Customer", ".", "update" ]
6e56c7099ea55bcdc4073cbea60b2688cef69663
https://github.com/braintree/braintree_ruby/blob/6e56c7099ea55bcdc4073cbea60b2688cef69663/lib/braintree/customer.rb#L193-L200
train
Update a customer
[ 30522, 13366, 10651, 1006, 12332, 1007, 11582, 1000, 1031, 2139, 28139, 12921, 1033, 10651, 2004, 2019, 6013, 4118, 2003, 2139, 28139, 12921, 1012, 3531, 2224, 8013, 1012, 10651, 1000, 30524, 10857, 1035, 2013, 1035, 4874, 2765, 1012, 8013, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/custom_domains.rb
Azure::CDN::Mgmt::V2017_04_02.CustomDomains.create
def create(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:nil) response = create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:custom_headers).value! response.body unless re...
ruby
def create(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:nil) response = create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:custom_headers).value! response.body unless re...
[ "def", "create", "(", "resource_group_name", ",", "profile_name", ",", "endpoint_name", ",", "custom_domain_name", ",", "custom_domain_properties", ",", "custom_headers", ":", "nil", ")", "response", "=", "create_async", "(", "resource_group_name", ",", "profile_name", ...
Creates a new custom domain within an endpoint. @param resource_group_name [String] Name of the Resource group within the Azure subscription. @param profile_name [String] Name of the CDN profile which is unique within the resource group. @param endpoint_name [String] Name of the endpoint under the profile which i...
[ "Creates", "a", "new", "custom", "domain", "within", "an", "endpoint", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/custom_domains.rb#L267-L270
train
Creates a new domain in the specified subscription.
[ 30522, 13366, 3443, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 6337, 1035, 2171, 1010, 2203, 8400, 1035, 2171, 1010, 7661, 1035, 5884, 1035, 2171, 1010, 7661, 1035, 5884, 1035, 5144, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 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...
square/connect-ruby-sdk
lib/square_connect/models/shift_sort.rb
SquareConnect.ShiftSort.field=
def field=(field) validator = EnumAttributeValidator.new('String', ["START_AT", "END_AT", "CREATED_AT", "UPDATED_AT"]) unless validator.valid?(field) fail ArgumentError, "invalid value for 'field', must be one of #{validator.allowable_values}." end @field = field end
ruby
def field=(field) validator = EnumAttributeValidator.new('String', ["START_AT", "END_AT", "CREATED_AT", "UPDATED_AT"]) unless validator.valid?(field) fail ArgumentError, "invalid value for 'field', must be one of #{validator.allowable_values}." end @field = field end
[ "def", "field", "=", "(", "field", ")", "validator", "=", "EnumAttributeValidator", ".", "new", "(", "'String'", ",", "[", "\"START_AT\"", ",", "\"END_AT\"", ",", "\"CREATED_AT\"", ",", "\"UPDATED_AT\"", "]", ")", "unless", "validator", ".", "valid?", "(", "...
Custom attribute writer method checking allowed values (enum). @param [Object] field 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/shift_sort.rb#L96-L102
train
Set the field of the record.
[ 30522, 13366, 2492, 1027, 1006, 2492, 1007, 9398, 8844, 1027, 4372, 12248, 4779, 3089, 8569, 2618, 10175, 8524, 4263, 1012, 2047, 1006, 1005, 5164, 1005, 1010, 1031, 1000, 2707, 1035, 2012, 1000, 1010, 1000, 2203, 1035, 2012, 1000, 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...
boazsegev/combine_pdf
lib/combine_pdf/pdf_public.rb
CombinePDF.PDF.stamp_pages
def stamp_pages(stamp, options = {}) case stamp when String options[:location] ||= [:center] number_pages({ number_format: stamp }.merge(options)) when Page_Methods # stamp = stamp.copy(true) if options[:underlay] (options[:page_range] ? pages[options[:page_ra...
ruby
def stamp_pages(stamp, options = {}) case stamp when String options[:location] ||= [:center] number_pages({ number_format: stamp }.merge(options)) when Page_Methods # stamp = stamp.copy(true) if options[:underlay] (options[:page_range] ? pages[options[:page_ra...
[ "def", "stamp_pages", "(", "stamp", ",", "options", "=", "{", "}", ")", "case", "stamp", "when", "String", "options", "[", ":location", "]", "||=", "[", ":center", "]", "number_pages", "(", "{", "number_format", ":", "stamp", "}", ".", "merge", "(", "o...
This method stamps all (or some) of the pages is the PDF with the requested stamp. The method accept: stamp:: either a String or a PDF page. If this is a String, you can add formating to add page numbering (i.e. "page number %i"). otherwise remember to escape any percent ('%') sign (i.e. "page \%number not shown\%")...
[ "This", "method", "stamps", "all", "(", "or", "some", ")", "of", "the", "pages", "is", "the", "PDF", "with", "the", "requested", "stamp", "." ]
09054051019c069f551f3e60be789577c0f93900
https://github.com/boazsegev/combine_pdf/blob/09054051019c069f551f3e60be789577c0f93900/lib/combine_pdf/pdf_public.rb#L459-L474
train
Returns a page object with the given stamp.
[ 30522, 13366, 11359, 1035, 5530, 1006, 11359, 1010, 7047, 1027, 1063, 1065, 1007, 2553, 11359, 2043, 5164, 7047, 1031, 1024, 3295, 1033, 1064, 1064, 1027, 1031, 1024, 2415, 1033, 2193, 1035, 5530, 1006, 1063, 2193, 1035, 4289, 1024, 11359, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_recovery_services_site_recovery/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/replicationv_centers.rb
Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10.ReplicationvCenters.begin_update_with_http_info
def begin_update_with_http_info(fabric_name, v_center_name, update_vcenter_request, custom_headers:nil) begin_update_async(fabric_name, v_center_name, update_vcenter_request, custom_headers:custom_headers).value! end
ruby
def begin_update_with_http_info(fabric_name, v_center_name, update_vcenter_request, custom_headers:nil) begin_update_async(fabric_name, v_center_name, update_vcenter_request, custom_headers:custom_headers).value! end
[ "def", "begin_update_with_http_info", "(", "fabric_name", ",", "v_center_name", ",", "update_vcenter_request", ",", "custom_headers", ":", "nil", ")", "begin_update_async", "(", "fabric_name", ",", "v_center_name", ",", "update_vcenter_request", ",", "custom_headers", ":c...
Update vCenter operation. The operation to update a registered vCenter. @param fabric_name [String] Fabric name. @param v_center_name [String] vCeneter name @param update_vcenter_request [UpdateVCenterRequest] The input to the update vCenter operation. @param custom_headers [Hash{String => String}] A hash of cu...
[ "Update", "vCenter", "operation", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_recovery_services_site_recovery/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/replicationv_centers.rb#L688-L690
train
Updates a virtual network center.
[ 30522, 13366, 4088, 1035, 10651, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 8313, 1035, 2171, 1010, 1058, 1035, 2415, 1035, 2171, 1010, 10651, 1035, 18315, 29110, 1035, 5227, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 4088, 1035...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
data/azure_service_fabric/lib/6.2.0.9/generated/azure_service_fabric/service_fabric_client_apis.rb
Azure::ServiceFabric::V6_2_0_9.ServiceFabricClientAPIs.start_node_transition_with_http_info
def start_node_transition_with_http_info(node_name, operation_id, node_transition_type, node_instance_id, stop_duration_in_seconds, timeout:60, custom_headers:nil) start_node_transition_async(node_name, operation_id, node_transition_type, node_instance_id, stop_duration_in_seconds, timeout:timeout, custom_headers...
ruby
def start_node_transition_with_http_info(node_name, operation_id, node_transition_type, node_instance_id, stop_duration_in_seconds, timeout:60, custom_headers:nil) start_node_transition_async(node_name, operation_id, node_transition_type, node_instance_id, stop_duration_in_seconds, timeout:timeout, custom_headers...
[ "def", "start_node_transition_with_http_info", "(", "node_name", ",", "operation_id", ",", "node_transition_type", ",", "node_instance_id", ",", "stop_duration_in_seconds", ",", "timeout", ":", "60", ",", "custom_headers", ":", "nil", ")", "start_node_transition_async", "...
Starts or stops a cluster node. Starts or stops a cluster node. A cluster node is a process, not the OS instance itself. To start a node, pass in "Start" for the NodeTransitionType parameter. To stop a node, pass in "Stop" for the NodeTransitionType parameter. This API starts the operation - when the API retur...
[ "Starts", "or", "stops", "a", "cluster", "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#L21653-L21655
train
Starts a node transition to the specified node.
[ 30522, 13366, 2707, 1035, 13045, 1035, 6653, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 13045, 1035, 2171, 1010, 3169, 1035, 8909, 1010, 13045, 1035, 6653, 1035, 2828, 1010, 13045, 1035, 6013, 1035, 8909, 1010, 2644, 1035, 9367, 1035, 1999,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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_backup/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/feature_support.rb
Azure::RecoveryServicesBackup::Mgmt::V2017_07_01.FeatureSupport.validate
def validate(azure_region, parameters, custom_headers:nil) response = validate_async(azure_region, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def validate(azure_region, parameters, custom_headers:nil) response = validate_async(azure_region, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "validate", "(", "azure_region", ",", "parameters", ",", "custom_headers", ":", "nil", ")", "response", "=", "validate_async", "(", "azure_region", ",", "parameters", ",", "custom_headers", ":custom_headers", ")", ".", "value!", "response", ".", "body", "...
It will validate if given feature with resource properties is supported in service @param azure_region [String] Azure region to hit Api @param parameters [FeatureSupportRequest] Feature support request object @param custom_headers [Hash{String => String}] A hash of custom headers that will be added to the HTTP re...
[ "It", "will", "validate", "if", "given", "feature", "with", "resource", "properties", "is", "supported", "in", "service" ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_recovery_services_backup/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/feature_support.rb#L39-L42
train
Validates the specified resource group.
[ 30522, 13366, 9398, 3686, 1006, 24296, 1035, 2555, 1010, 11709, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 9398, 3686, 1035, 2004, 6038, 2278, 1006, 24296, 1035, 2555, 1010, 11709, 1010, 7661, 1035, 20346, 2015, 1024...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
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.regenerate_storage_account_key
def regenerate_storage_account_key(vault_base_url, storage_account_name, key_name, custom_headers:nil) response = regenerate_storage_account_key_async(vault_base_url, storage_account_name, key_name, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def regenerate_storage_account_key(vault_base_url, storage_account_name, key_name, custom_headers:nil) response = regenerate_storage_account_key_async(vault_base_url, storage_account_name, key_name, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "regenerate_storage_account_key", "(", "vault_base_url", ",", "storage_account_name", ",", "key_name", ",", "custom_headers", ":", "nil", ")", "response", "=", "regenerate_storage_account_key_async", "(", "vault_base_url", ",", "storage_account_name", ",", "key_name"...
Regenerates the specified key value for the given storage account. This operation requires the storage/regeneratekey 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 key_name [String...
[ "Regenerates", "the", "specified", "key", "value", "for", "the", "given", "storage", "account", ".", "This", "operation", "requires", "the", "storage", "/", "regeneratekey", "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#L7558-L7561
train
Regenerate a storage account key.
[ 30522, 13366, 19723, 24454, 3686, 1035, 5527, 1035, 4070, 1035, 3145, 1006, 11632, 1035, 2918, 1035, 24471, 2140, 1010, 5527, 1035, 4070, 1035, 2171, 1010, 3145, 1035, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 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...
puppetlabs/puppet
lib/puppet/pops/loaders.rb
Puppet::Pops.Loaders.instantiate_definition
def instantiate_definition(definition, loader) case definition when Model::PlanDefinition instantiate_PlanDefinition(definition, loader) when Model::FunctionDefinition instantiate_FunctionDefinition(definition, loader) when Model::TypeAlias instantiate_TypeAlias(definition, loader) ...
ruby
def instantiate_definition(definition, loader) case definition when Model::PlanDefinition instantiate_PlanDefinition(definition, loader) when Model::FunctionDefinition instantiate_FunctionDefinition(definition, loader) when Model::TypeAlias instantiate_TypeAlias(definition, loader) ...
[ "def", "instantiate_definition", "(", "definition", ",", "loader", ")", "case", "definition", "when", "Model", "::", "PlanDefinition", "instantiate_PlanDefinition", "(", "definition", ",", "loader", ")", "when", "Model", "::", "FunctionDefinition", "instantiate_Function...
Add given 4.x definition to the given loader.
[ "Add", "given", "4", ".", "x", "definition", "to", "the", "given", "loader", "." ]
4baeed97cbb7571ddc6635f0a24debe2e8b22cd3
https://github.com/puppetlabs/puppet/blob/4baeed97cbb7571ddc6635f0a24debe2e8b22cd3/lib/puppet/pops/loaders.rb#L311-L324
train
Instantiate a definition using the given loader
[ 30522, 13366, 7107, 13143, 1035, 6210, 1006, 6210, 1010, 7170, 2121, 1007, 2553, 6210, 2043, 2944, 1024, 1024, 2933, 3207, 16294, 22753, 7107, 13143, 1035, 2933, 3207, 16294, 22753, 1006, 6210, 1010, 7170, 2121, 1007, 2043, 2944, 1024, 1024...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_network/lib/2019-02-01/generated/azure_mgmt_network/virtual_network_taps.rb
Azure::Network::Mgmt::V2019_02_01.VirtualNetworkTaps.begin_update_tags
def begin_update_tags(resource_group_name, tap_name, tap_parameters, custom_headers:nil) response = begin_update_tags_async(resource_group_name, tap_name, tap_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def begin_update_tags(resource_group_name, tap_name, tap_parameters, custom_headers:nil) response = begin_update_tags_async(resource_group_name, tap_name, tap_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "begin_update_tags", "(", "resource_group_name", ",", "tap_name", ",", "tap_parameters", ",", "custom_headers", ":", "nil", ")", "response", "=", "begin_update_tags_async", "(", "resource_group_name", ",", "tap_name", ",", "tap_parameters", ",", "custom_headers",...
Updates an VirtualNetworkTap tags. @param resource_group_name [String] The name of the resource group. @param tap_name [String] The name of the tap. @param tap_parameters [TagsObject] Parameters supplied to update VirtualNetworkTap tags. @param custom_headers [Hash{String => String}] A hash of custom headers that...
[ "Updates", "an", "VirtualNetworkTap", "tags", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_network/lib/2019-02-01/generated/azure_mgmt_network/virtual_network_taps.rb#L627-L630
train
Updates a Tap.
[ 30522, 13366, 4088, 1035, 10651, 1035, 22073, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 11112, 1035, 2171, 1010, 11112, 1035, 11709, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 4088, 1035, 10651, 1035, 22073, 1035, 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...
meew0/discordrb
lib/discordrb/permissions.rb
Discordrb.PermissionCalculator.permission?
def permission?(action, channel = nil) # If the member is the server owner, it irrevocably has all permissions. return true if owner? # First, check whether the user has Manage Roles defined. # (Coincidentally, Manage Permissions is the same permission as Manage Roles, and a # Manage Perm...
ruby
def permission?(action, channel = nil) # If the member is the server owner, it irrevocably has all permissions. return true if owner? # First, check whether the user has Manage Roles defined. # (Coincidentally, Manage Permissions is the same permission as Manage Roles, and a # Manage Perm...
[ "def", "permission?", "(", "action", ",", "channel", "=", "nil", ")", "# If the member is the server owner, it irrevocably has all permissions.", "return", "true", "if", "owner?", "# First, check whether the user has Manage Roles defined.", "# (Coincidentally, Manage Permissions is the...
Checks whether this user can do the particular action, regardless of whether it has the permission defined, through for example being the server owner or having the Manage Roles permission @param action [Symbol] The permission that should be checked. See also {Permissions::FLAGS} for a list. @param channel [Channel,...
[ "Checks", "whether", "this", "user", "can", "do", "the", "particular", "action", "regardless", "of", "whether", "it", "has", "the", "permission", "defined", "through", "for", "example", "being", "the", "server", "owner", "or", "having", "the", "Manage", "Roles...
764298a1ff0be69a1853b510d736f21c2b91a2fe
https://github.com/meew0/discordrb/blob/764298a1ff0be69a1853b510d736f21c2b91a2fe/lib/discordrb/permissions.rb#L135-L147
train
Check whether the current member has the specified permission.
[ 30522, 13366, 6656, 1029, 1006, 2895, 1010, 3149, 1027, 9152, 2140, 1007, 1001, 2065, 1996, 2266, 2003, 1996, 8241, 3954, 1010, 2009, 20868, 2890, 6767, 3540, 6321, 2038, 2035, 6656, 2015, 1012, 2709, 2995, 2065, 3954, 1029, 1001, 2034, 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...
awesome-print/awesome_print
lib/awesome_print/ext/mongo_mapper.rb
AwesomePrint.MongoMapper.cast_with_mongo_mapper
def cast_with_mongo_mapper(object, type) apply_default_mongo_mapper_options cast = cast_without_mongo_mapper(object, type) if defined?(::MongoMapper::Document) if object.is_a?(Class) && (object.ancestors & [::MongoMapper::Document, ::MongoMapper::EmbeddedDocument]).size > 0 cast = :...
ruby
def cast_with_mongo_mapper(object, type) apply_default_mongo_mapper_options cast = cast_without_mongo_mapper(object, type) if defined?(::MongoMapper::Document) if object.is_a?(Class) && (object.ancestors & [::MongoMapper::Document, ::MongoMapper::EmbeddedDocument]).size > 0 cast = :...
[ "def", "cast_with_mongo_mapper", "(", "object", ",", "type", ")", "apply_default_mongo_mapper_options", "cast", "=", "cast_without_mongo_mapper", "(", "object", ",", "type", ")", "if", "defined?", "(", "::", "MongoMapper", "::", "Document", ")", "if", "object", "....
Add MongoMapper class names to the dispatcher pipeline. ------------------------------------------------------------------------------
[ "Add", "MongoMapper", "class", "names", "to", "the", "dispatcher", "pipeline", ".", "------------------------------------------------------------------------------" ]
4564fd74721562cbef2443f7d97109bf9192343d
https://github.com/awesome-print/awesome_print/blob/4564fd74721562cbef2443f7d97109bf9192343d/lib/awesome_print/ext/mongo_mapper.rb#L16-L33
train
Cast the given object with the given type.
[ 30522, 13366, 3459, 1035, 2007, 1035, 12256, 3995, 1035, 4949, 4842, 1006, 4874, 1010, 2828, 1007, 6611, 1035, 12398, 1035, 12256, 3995, 1035, 4949, 4842, 1035, 7047, 3459, 1027, 3459, 1035, 2302, 1035, 12256, 3995, 1035, 4949, 4842, 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...
hashicorp/vault-ruby
lib/vault/api/sys/audit.rb
Vault.Sys.audit_hash
def audit_hash(path, input) json = client.post("/v1/sys/audit-hash/#{encode_path(path)}", JSON.fast_generate(input: input)) json = json[:data] if json[:data] json[:hash] end
ruby
def audit_hash(path, input) json = client.post("/v1/sys/audit-hash/#{encode_path(path)}", JSON.fast_generate(input: input)) json = json[:data] if json[:data] json[:hash] end
[ "def", "audit_hash", "(", "path", ",", "input", ")", "json", "=", "client", ".", "post", "(", "\"/v1/sys/audit-hash/#{encode_path(path)}\"", ",", "JSON", ".", "fast_generate", "(", "input", ":", "input", ")", ")", "json", "=", "json", "[", ":data", "]", "i...
Generates a HMAC verifier for a given input. @example Vault.sys.audit_hash("file-audit", "my input") #=> "hmac-sha256:30aa7de18a5e90bbc1063db91e7c387b32b9fa895977eb8c177bbc91e7d7c542" @param [String] path the path of the audit backend @param [String] input the input to generate a HMAC for @return [Strin...
[ "Generates", "a", "HMAC", "verifier", "for", "a", "given", "input", "." ]
02f0532a802ba1a2a0d8703a4585dab76eb9d864
https://github.com/hashicorp/vault-ruby/blob/02f0532a802ba1a2a0d8703a4585dab76eb9d864/lib/vault/api/sys/audit.rb#L85-L89
train
Create a hash for a file
[ 30522, 13366, 15727, 1035, 23325, 1006, 4130, 1010, 7953, 1007, 1046, 3385, 1027, 7396, 1012, 2695, 1006, 1000, 1013, 1058, 2487, 1013, 25353, 2015, 1013, 15727, 1011, 23325, 1013, 1001, 1063, 4372, 16044, 1035, 4130, 1006, 4130, 1007, 1065...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/elastic_pools.rb
Azure::SQL::Mgmt::V2014_04_01.ElasticPools.create_or_update_async
def create_or_update_async(resource_group_name, server_name, elastic_pool_name, parameters, custom_headers:nil) # Send request promise = begin_create_or_update_async(resource_group_name, server_name, elastic_pool_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| ...
ruby
def create_or_update_async(resource_group_name, server_name, elastic_pool_name, parameters, custom_headers:nil) # Send request promise = begin_create_or_update_async(resource_group_name, server_name, elastic_pool_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| ...
[ "def", "create_or_update_async", "(", "resource_group_name", ",", "server_name", ",", "elastic_pool_name", ",", "parameters", ",", "custom_headers", ":", "nil", ")", "# Send request", "promise", "=", "begin_create_or_update_async", "(", "resource_group_name", ",", "server...
@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 elastic_pool_name [String] The name of the elastic pool to be operated on (updated o...
[ "@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/elastic_pools.rb#L63-L79
train
Creates or updates an elastic pool.
[ 30522, 13366, 3443, 1035, 2030, 1035, 10651, 1035, 2004, 6038, 2278, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 8241, 1035, 2171, 1010, 21274, 1035, 4770, 1035, 2171, 1010, 11709, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 1001, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
rails/rails
actionpack/lib/action_controller/metal/conditional_get.rb
ActionController.ConditionalGet.fresh_when
def fresh_when(object = nil, etag: nil, weak_etag: nil, strong_etag: nil, last_modified: nil, public: false, template: nil) weak_etag ||= etag || object unless strong_etag last_modified ||= object.try(:updated_at) || object.try(:maximum, :updated_at) if strong_etag response.strong_etag = comb...
ruby
def fresh_when(object = nil, etag: nil, weak_etag: nil, strong_etag: nil, last_modified: nil, public: false, template: nil) weak_etag ||= etag || object unless strong_etag last_modified ||= object.try(:updated_at) || object.try(:maximum, :updated_at) if strong_etag response.strong_etag = comb...
[ "def", "fresh_when", "(", "object", "=", "nil", ",", "etag", ":", "nil", ",", "weak_etag", ":", "nil", ",", "strong_etag", ":", "nil", ",", "last_modified", ":", "nil", ",", "public", ":", "false", ",", "template", ":", "nil", ")", "weak_etag", "||=", ...
Sets the +etag+, +last_modified+, or both on the response and renders a <tt>304 Not Modified</tt> response if the request is already fresh. === Parameters: * <tt>:etag</tt> Sets a "weak" ETag validator on the response. See the +:weak_etag+ option. * <tt>:weak_etag</tt> Sets a "weak" ETag validator on the respo...
[ "Sets", "the", "+", "etag", "+", "+", "last_modified", "+", "or", "both", "on", "the", "response", "and", "renders", "a", "<tt", ">", "304", "Not", "Modified<", "/", "tt", ">", "response", "if", "the", "request", "is", "already", "fresh", "." ]
85a8bc644be69908f05740a5886ec19cd3679df5
https://github.com/rails/rails/blob/85a8bc644be69908f05740a5886ec19cd3679df5/actionpack/lib/action_controller/metal/conditional_get.rb#L103-L119
train
Returns the response object for fresh access
[ 30522, 13366, 4840, 1035, 2043, 1006, 4874, 1027, 9152, 2140, 1010, 27859, 2290, 1024, 9152, 2140, 1010, 5410, 1035, 27859, 2290, 1024, 9152, 2140, 1010, 2844, 1035, 27859, 2290, 1024, 9152, 2140, 1010, 2197, 1035, 6310, 1024, 9152, 2140, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
data/azure_cognitiveservices_luisauthoring/lib/2.0/generated/azure_cognitiveservices_luisauthoring/model.rb
Azure::CognitiveServices::LuisAuthoring::V2_0.Model.update_explicit_list_item
def update_explicit_list_item(app_id, version_id, entity_id, item_id, item, custom_headers:nil) response = update_explicit_list_item_async(app_id, version_id, entity_id, item_id, item, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def update_explicit_list_item(app_id, version_id, entity_id, item_id, item, custom_headers:nil) response = update_explicit_list_item_async(app_id, version_id, entity_id, item_id, item, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "update_explicit_list_item", "(", "app_id", ",", "version_id", ",", "entity_id", ",", "item_id", ",", "item", ",", "custom_headers", ":", "nil", ")", "response", "=", "update_explicit_list_item_async", "(", "app_id", ",", "version_id", ",", "entity_id", ","...
Updates an explicit (exception) list item for a Pattern.Any entity in a version of the application. @param app_id The application ID. @param version_id [String] The version ID. @param entity_id The Pattern.Any entity extractor ID. @param item_id [Integer] The explicit list item ID. @param item [ExplicitListItemU...
[ "Updates", "an", "explicit", "(", "exception", ")", "list", "item", "for", "a", "Pattern", ".", "Any", "entity", "in", "a", "version", "of", "the", "application", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_cognitiveservices_luisauthoring/lib/2.0/generated/azure_cognitiveservices_luisauthoring/model.rb#L11382-L11385
train
Updates an explicit list item.
[ 30522, 13366, 10651, 1035, 13216, 1035, 2862, 1035, 8875, 1006, 10439, 1035, 8909, 1010, 2544, 1035, 8909, 1010, 9178, 1035, 8909, 1010, 8875, 1035, 8909, 1010, 8875, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 10651,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_edgegateway/lib/2019-03-01/generated/azure_mgmt_edgegateway/triggers.rb
Azure::EdgeGateway::Mgmt::V2019_03_01.Triggers.list_by_data_box_edge_device
def list_by_data_box_edge_device(device_name, resource_group_name, expand:nil, custom_headers:nil) first_page = list_by_data_box_edge_device_as_lazy(device_name, resource_group_name, expand:expand, custom_headers:custom_headers) first_page.get_all_items end
ruby
def list_by_data_box_edge_device(device_name, resource_group_name, expand:nil, custom_headers:nil) first_page = list_by_data_box_edge_device_as_lazy(device_name, resource_group_name, expand:expand, custom_headers:custom_headers) first_page.get_all_items end
[ "def", "list_by_data_box_edge_device", "(", "device_name", ",", "resource_group_name", ",", "expand", ":", "nil", ",", "custom_headers", ":", "nil", ")", "first_page", "=", "list_by_data_box_edge_device_as_lazy", "(", "device_name", ",", "resource_group_name", ",", "exp...
Lists all the triggers configured in the device. @param device_name [String] The device name. @param resource_group_name [String] The resource group name. @param expand [String] Specify $filter='CustomContextTag eq <tag>' to filter on custom context tag property @param custom_headers [Hash{String => String}] A ha...
[ "Lists", "all", "the", "triggers", "configured", "in", "the", "device", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_edgegateway/lib/2019-03-01/generated/azure_mgmt_edgegateway/triggers.rb#L36-L39
train
Gets all the data box edge devices under an Azure subscription.
[ 30522, 13366, 2862, 1035, 2011, 1035, 2951, 1035, 3482, 1035, 3341, 1035, 5080, 1006, 5080, 1035, 2171, 1010, 7692, 1035, 2177, 1035, 2171, 1010, 7818, 1024, 9152, 2140, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 2034, 1035, 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...
ruby-git/ruby-git
lib/git/lib.rb
Git.Lib.diff_as_hash
def diff_as_hash(diff_command, opts=[]) command_lines(diff_command, opts).inject({}) do |memo, line| info, file = line.split("\t") mode_src, mode_dest, sha_src, sha_dest, type = info.split memo[file] = { :mode_index => mode_dest, :mode_repo => mode_src.to_s[1, 7], ...
ruby
def diff_as_hash(diff_command, opts=[]) command_lines(diff_command, opts).inject({}) do |memo, line| info, file = line.split("\t") mode_src, mode_dest, sha_src, sha_dest, type = info.split memo[file] = { :mode_index => mode_dest, :mode_repo => mode_src.to_s[1, 7], ...
[ "def", "diff_as_hash", "(", "diff_command", ",", "opts", "=", "[", "]", ")", "command_lines", "(", "diff_command", ",", "opts", ")", ".", "inject", "(", "{", "}", ")", "do", "|", "memo", ",", "line", "|", "info", ",", "file", "=", "line", ".", "spl...
Takes the diff command line output (as Array) and parse it into a Hash @param [String] diff_command the diff commadn to be used @param [Array] opts the diff options to be used @return [Hash] the diff as Hash
[ "Takes", "the", "diff", "command", "line", "output", "(", "as", "Array", ")", "and", "parse", "it", "into", "a", "Hash" ]
9bd4407c56068e1604f14a1b6c0c5a84868e6378
https://github.com/ruby-git/ruby-git/blob/9bd4407c56068e1604f14a1b6c0c5a84868e6378/lib/git/lib.rb#L994-L1010
train
Returns a hash of the diff output as a Hash.
[ 30522, 13366, 4487, 4246, 1035, 2004, 1035, 23325, 1006, 4487, 4246, 1035, 3094, 1010, 23569, 2015, 1027, 1031, 1033, 1007, 3094, 1035, 3210, 1006, 4487, 4246, 1035, 3094, 1010, 23569, 2015, 1007, 1012, 1999, 20614, 1006, 1063, 1065, 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_datalake_analytics/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/storage_accounts.rb
Azure::DataLakeAnalytics::Mgmt::V2016_11_01.StorageAccounts.delete_with_http_info
def delete_with_http_info(resource_group_name, account_name, storage_account_name, custom_headers:nil) delete_async(resource_group_name, account_name, storage_account_name, custom_headers:custom_headers).value! end
ruby
def delete_with_http_info(resource_group_name, account_name, storage_account_name, custom_headers:nil) delete_async(resource_group_name, account_name, storage_account_name, custom_headers:custom_headers).value! end
[ "def", "delete_with_http_info", "(", "resource_group_name", ",", "account_name", ",", "storage_account_name", ",", "custom_headers", ":", "nil", ")", "delete_async", "(", "resource_group_name", ",", "account_name", ",", "storage_account_name", ",", "custom_headers", ":cus...
Updates the specified Data Lake Analytics account to remove an Azure Storage account. @param resource_group_name [String] The name of the Azure resource group. @param account_name [String] The name of the Data Lake Analytics account. @param storage_account_name [String] The name of the Azure Storage account to re...
[ "Updates", "the", "specified", "Data", "Lake", "Analytics", "account", "to", "remove", "an", "Azure", "Storage", "account", "." ]
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#L507-L509
train
Deletes the specified container network storage account.
[ 30522, 13366, 3972, 12870, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 4070, 1035, 2171, 1010, 5527, 1035, 4070, 1035, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3972, 12870, 1035, 2004, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
puppetlabs/bolt
lib/plan_executor/executor.rb
PlanExecutor.Executor.log_plan
def log_plan(plan_name) log_method = @plan_logging ? :notice : :info @logger.send(log_method, "Starting: plan #{plan_name}") start_time = Time.now results = nil begin results = yield ensure duration = Time.now - start_time @logger.send(log_method, "Finished: ...
ruby
def log_plan(plan_name) log_method = @plan_logging ? :notice : :info @logger.send(log_method, "Starting: plan #{plan_name}") start_time = Time.now results = nil begin results = yield ensure duration = Time.now - start_time @logger.send(log_method, "Finished: ...
[ "def", "log_plan", "(", "plan_name", ")", "log_method", "=", "@plan_logging", "?", ":notice", ":", ":info", "@logger", ".", "send", "(", "log_method", ",", "\"Starting: plan #{plan_name}\"", ")", "start_time", "=", "Time", ".", "now", "results", "=", "nil", "b...
BOLT-1098
[ "BOLT", "-", "1098" ]
50689a33699939d262ea7c822a4b24fd8c4f8d8a
https://github.com/puppetlabs/bolt/blob/50689a33699939d262ea7c822a4b24fd8c4f8d8a/lib/plan_executor/executor.rb#L65-L79
train
Log the results of a block of the plan
[ 30522, 13366, 8833, 1035, 2933, 1006, 2933, 1035, 2171, 1007, 8833, 1035, 4118, 1027, 1030, 2933, 1035, 15899, 1029, 1024, 5060, 1024, 1024, 18558, 1030, 8833, 4590, 1012, 4604, 1006, 8833, 1035, 4118, 1010, 1000, 3225, 1024, 2933, 1001, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
ruby/rake
lib/rake/loaders/makefile.rb
Rake.MakefileLoader.process_line
def process_line(line) # :nodoc: file_tasks, args = line.split(":", 2) return if args.nil? dependents = args.split.map { |d| respace(d) } file_tasks.scan(/\S+/) do |file_task| file_task = respace(file_task) file file_task => dependents end end
ruby
def process_line(line) # :nodoc: file_tasks, args = line.split(":", 2) return if args.nil? dependents = args.split.map { |d| respace(d) } file_tasks.scan(/\S+/) do |file_task| file_task = respace(file_task) file file_task => dependents end end
[ "def", "process_line", "(", "line", ")", "# :nodoc:", "file_tasks", ",", "args", "=", "line", ".", "split", "(", "\":\"", ",", "2", ")", "return", "if", "args", ".", "nil?", "dependents", "=", "args", ".", "split", ".", "map", "{", "|", "d", "|", "...
Process one logical line of makefile data.
[ "Process", "one", "logical", "line", "of", "makefile", "data", "." ]
1c22b490ee6cb8bd614fa8d0d6145f671466206b
https://github.com/ruby/rake/blob/1c22b490ee6cb8bd614fa8d0d6145f671466206b/lib/rake/loaders/makefile.rb#L37-L45
train
Process a single line of a file task
[ 30522, 13366, 2832, 1035, 2240, 1006, 2240, 1007, 1001, 1024, 7293, 10085, 1024, 5371, 1035, 8518, 1010, 12098, 5620, 1027, 2240, 1012, 3975, 1006, 1000, 1024, 1000, 1010, 1016, 1007, 2709, 2065, 12098, 5620, 1012, 9152, 2140, 1029, 7790, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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_backup_policy_by_name
def get_backup_policy_by_name(backup_policy_name, timeout:60, custom_headers:nil) response = get_backup_policy_by_name_async(backup_policy_name, timeout:timeout, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def get_backup_policy_by_name(backup_policy_name, timeout:60, custom_headers:nil) response = get_backup_policy_by_name_async(backup_policy_name, timeout:timeout, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "get_backup_policy_by_name", "(", "backup_policy_name", ",", "timeout", ":", "60", ",", "custom_headers", ":", "nil", ")", "response", "=", "get_backup_policy_by_name_async", "(", "backup_policy_name", ",", "timeout", ":", "timeout", ",", "custom_headers", ":cu...
Gets a particular backup policy by name. Gets a particular backup policy identified by {backupPolicyName} @param backup_policy_name [String] The name of the backup policy. @param timeout [Integer] The server timeout for performing the operation in seconds. This timeout specifies the time duration that the client ...
[ "Gets", "a", "particular", "backup", "policy", "by", "name", "." ]
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#L22577-L22580
train
Gets the backup policy by name.
[ 30522, 13366, 2131, 1035, 10200, 1035, 3343, 1035, 2011, 1035, 2171, 1006, 10200, 1035, 3343, 1035, 2171, 1010, 2051, 5833, 1024, 3438, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 2131, 1035, 10200, 1035, 3343, 1035, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
data/azure_cognitiveservices_luisauthoring/lib/2.0/generated/azure_cognitiveservices_luisauthoring/model.rb
Azure::CognitiveServices::LuisAuthoring::V2_0.Model.delete_composite_entity_child
def delete_composite_entity_child(app_id, version_id, c_entity_id, c_child_id, custom_headers:nil) response = delete_composite_entity_child_async(app_id, version_id, c_entity_id, c_child_id, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def delete_composite_entity_child(app_id, version_id, c_entity_id, c_child_id, custom_headers:nil) response = delete_composite_entity_child_async(app_id, version_id, c_entity_id, c_child_id, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "delete_composite_entity_child", "(", "app_id", ",", "version_id", ",", "c_entity_id", ",", "c_child_id", ",", "custom_headers", ":", "nil", ")", "response", "=", "delete_composite_entity_child_async", "(", "app_id", ",", "version_id", ",", "c_entity_id", ",", ...
Deletes a composite entity extractor child from a version of the application. @param app_id The application ID. @param version_id [String] The version ID. @param c_entity_id The composite entity extractor ID. @param c_child_id The hierarchical entity extractor child ID. @param custom_headers [Hash{String => Strin...
[ "Deletes", "a", "composite", "entity", "extractor", "child", "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#L5550-L5553
train
Deletes a composite entity child.
[ 30522, 13366, 3972, 12870, 1035, 12490, 1035, 9178, 1035, 2775, 1006, 10439, 1035, 8909, 1010, 2544, 1035, 8909, 1010, 1039, 1035, 9178, 1035, 8909, 1010, 1039, 1035, 2775, 1035, 8909, 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_labservices/lib/2018-10-15/generated/azure_mgmt_labservices/labs.rb
Azure::Labservices::Mgmt::V2018_10_15.Labs.create_or_update
def create_or_update(resource_group_name, lab_account_name, lab_name, lab, custom_headers:nil) response = create_or_update_async(resource_group_name, lab_account_name, lab_name, lab, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def create_or_update(resource_group_name, lab_account_name, lab_name, lab, custom_headers:nil) response = create_or_update_async(resource_group_name, lab_account_name, lab_name, lab, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "create_or_update", "(", "resource_group_name", ",", "lab_account_name", ",", "lab_name", ",", "lab", ",", "custom_headers", ":", "nil", ")", "response", "=", "create_or_update_async", "(", "resource_group_name", ",", "lab_account_name", ",", "lab_name", ",", ...
Create or replace an existing Lab. @param resource_group_name [String] The name of the resource group. @param lab_account_name [String] The name of the lab Account. @param lab_name [String] The name of the lab. @param lab [Lab] Represents a lab. @param custom_headers [Hash{String => String}] A hash of custom head...
[ "Create", "or", "replace", "an", "existing", "Lab", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_labservices/lib/2018-10-15/generated/azure_mgmt_labservices/labs.rb#L251-L254
train
Creates or updates a lab in the specified lab.
[ 30522, 13366, 3443, 1035, 2030, 1035, 10651, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 6845, 1035, 4070, 1035, 2171, 1010, 6845, 1035, 2171, 1010, 6845, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 3443, 1035, 2030, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
piotrmurach/tty-prompt
lib/tty/prompt.rb
TTY.Prompt.collect
def collect(options = {}, &block) collector = AnswersCollector.new(self, options) collector.call(&block) end
ruby
def collect(options = {}, &block) collector = AnswersCollector.new(self, options) collector.call(&block) end
[ "def", "collect", "(", "options", "=", "{", "}", ",", "&", "block", ")", "collector", "=", "AnswersCollector", ".", "new", "(", "self", ",", "options", ")", "collector", ".", "call", "(", "block", ")", "end" ]
Gathers more than one aswer @example prompt.collect do key(:name).ask('Name?') end @return [Hash] the collection of answers @api public
[ "Gathers", "more", "than", "one", "aswer" ]
b1ff627afff98fa6477e5ef3ac4a718c52eff05a
https://github.com/piotrmurach/tty-prompt/blob/b1ff627afff98fa6477e5ef3ac4a718c52eff05a/lib/tty/prompt.rb#L526-L529
train
Collect answers from the current object
[ 30522, 13366, 8145, 1006, 7047, 1027, 1063, 1065, 1010, 1004, 3796, 1007, 10018, 1027, 6998, 26895, 22471, 2953, 1012, 2047, 1006, 2969, 1010, 7047, 1007, 10018, 1012, 2655, 1006, 1004, 3796, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_network/lib/2018-07-01/generated/azure_mgmt_network/route_filters.rb
Azure::Network::Mgmt::V2018_07_01.RouteFilters.delete
def delete(resource_group_name, route_filter_name, custom_headers:nil) response = delete_async(resource_group_name, route_filter_name, custom_headers:custom_headers).value! nil end
ruby
def delete(resource_group_name, route_filter_name, custom_headers:nil) response = delete_async(resource_group_name, route_filter_name, custom_headers:custom_headers).value! nil end
[ "def", "delete", "(", "resource_group_name", ",", "route_filter_name", ",", "custom_headers", ":", "nil", ")", "response", "=", "delete_async", "(", "resource_group_name", ",", "route_filter_name", ",", "custom_headers", ":custom_headers", ")", ".", "value!", "nil", ...
Deletes the specified route filter. @param resource_group_name [String] The name of the resource group. @param route_filter_name [String] The name of the route filter. @param custom_headers [Hash{String => String}] A hash of custom headers that will be added to the HTTP request.
[ "Deletes", "the", "specified", "route", "filter", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_network/lib/2018-07-01/generated/azure_mgmt_network/route_filters.rb#L32-L35
train
Deletes a route filter.
[ 30522, 13366, 3972, 12870, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 2799, 1035, 11307, 1035, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 3972, 12870, 1035, 2004, 6038, 2278, 1006, 7692, 1035, 2177, 1035, 2171, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
guard/guard
lib/guard/plugin_util.rb
Guard.PluginUtil.initialize_plugin
def initialize_plugin(options) klass = plugin_class fail "Could not load class: #{_constant_name.inspect}" unless klass if klass.ancestors.include?(Guard) klass.new(options.delete(:watchers), options) else begin klass.new(options) rescue ArgumentError => e ...
ruby
def initialize_plugin(options) klass = plugin_class fail "Could not load class: #{_constant_name.inspect}" unless klass if klass.ancestors.include?(Guard) klass.new(options.delete(:watchers), options) else begin klass.new(options) rescue ArgumentError => e ...
[ "def", "initialize_plugin", "(", "options", ")", "klass", "=", "plugin_class", "fail", "\"Could not load class: #{_constant_name.inspect}\"", "unless", "klass", "if", "klass", ".", "ancestors", ".", "include?", "(", "Guard", ")", "klass", ".", "new", "(", "options",...
Initializes a new `Guard::PluginUtil` object. @param [String] name the name of the Guard plugin Initializes a new `Guard::Plugin` with the given `options` hash. This methods handles plugins that inherit from the deprecated `Guard::Guard` class as well as plugins that inherit from `Guard::Plugin`. @see Guard::Pl...
[ "Initializes", "a", "new", "Guard", "::", "PluginUtil", "object", "." ]
e2508cd83badf0d537dbaba35d307adc35d92e4f
https://github.com/guard/guard/blob/e2508cd83badf0d537dbaba35d307adc35d92e4f/lib/guard/plugin_util.rb#L55-L67
train
Initialize the plugin
[ 30522, 13366, 3988, 4697, 1035, 13354, 2378, 1006, 7047, 1007, 1047, 27102, 1027, 13354, 2378, 1035, 2465, 8246, 1000, 2071, 2025, 7170, 2465, 1024, 1001, 1063, 1035, 5377, 1035, 2171, 1012, 22459, 1065, 1000, 4983, 1047, 27102, 2065, 1047,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
troessner/reek
lib/reek/context_builder.rb
Reek.ContextBuilder.process_def
def process_def(exp, parent) inside_new_context(current_context.method_context_class, exp, parent) do increase_statement_count_by(exp.body) process(exp) end end
ruby
def process_def(exp, parent) inside_new_context(current_context.method_context_class, exp, parent) do increase_statement_count_by(exp.body) process(exp) end end
[ "def", "process_def", "(", "exp", ",", "parent", ")", "inside_new_context", "(", "current_context", ".", "method_context_class", ",", "exp", ",", "parent", ")", "do", "increase_statement_count_by", "(", "exp", ".", "body", ")", "process", "(", "exp", ")", "end...
Handles `def` nodes. An input example that would trigger this method would be: def call_me; foo = 2; bar = 5; end Given the above example we would count 2 statements overall.
[ "Handles", "def", "nodes", "." ]
8c6b5c0c6228a6981ab48543457889f9ea984054
https://github.com/troessner/reek/blob/8c6b5c0c6228a6981ab48543457889f9ea984054/lib/reek/context_builder.rb#L123-L128
train
Process the given expression
[ 30522, 13366, 2832, 1035, 13366, 1006, 4654, 2361, 1010, 6687, 1007, 2503, 1035, 2047, 1035, 6123, 1006, 2783, 1035, 6123, 1012, 4118, 1035, 6123, 1035, 2465, 1010, 4654, 2361, 1010, 6687, 1007, 2079, 3623, 1035, 4861, 1035, 4175, 1035, 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
meew0/discordrb
lib/discordrb/commands/parser.rb
Discordrb::Commands.CommandChain.execute
def execute(event) old_chain = @chain @bot.debug 'Executing bare chain' result = execute_bare(event) @chain_args ||= [] @bot.debug "Found chain args #{@chain_args}, preliminary result #{result}" @chain_args.each do |arg| case arg.first when 'repeat' new_r...
ruby
def execute(event) old_chain = @chain @bot.debug 'Executing bare chain' result = execute_bare(event) @chain_args ||= [] @bot.debug "Found chain args #{@chain_args}, preliminary result #{result}" @chain_args.each do |arg| case arg.first when 'repeat' new_r...
[ "def", "execute", "(", "event", ")", "old_chain", "=", "@chain", "@bot", ".", "debug", "'Executing bare chain'", "result", "=", "execute_bare", "(", "event", ")", "@chain_args", "||=", "[", "]", "@bot", ".", "debug", "\"Found chain args #{@chain_args}, preliminary r...
Divides the command chain into chain arguments and command chain, then executes them both. @param event [CommandEvent] The event to execute the command with. @return [String] the result of the command chain execution.
[ "Divides", "the", "command", "chain", "into", "chain", "arguments", "and", "command", "chain", "then", "executes", "them", "both", "." ]
764298a1ff0be69a1853b510d736f21c2b91a2fe
https://github.com/meew0/discordrb/blob/764298a1ff0be69a1853b510d736f21c2b91a2fe/lib/discordrb/commands/parser.rb#L278-L304
train
Execute the command chain
[ 30522, 13366, 15389, 1006, 2724, 1007, 2214, 1035, 4677, 1027, 1030, 4677, 1030, 28516, 1012, 2139, 8569, 2290, 1005, 23448, 6436, 4677, 1005, 2765, 1027, 15389, 1035, 6436, 1006, 2724, 1007, 1030, 4677, 1035, 12098, 5620, 1064, 1064, 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...
elastic/apm-agent-ruby
lib/elastic_apm/instrumenter.rb
ElasticAPM.Instrumenter.end_span
def end_span return unless (span = current_spans.pop) span.done enqueue.call span span end
ruby
def end_span return unless (span = current_spans.pop) span.done enqueue.call span span end
[ "def", "end_span", "return", "unless", "(", "span", "=", "current_spans", ".", "pop", ")", "span", ".", "done", "enqueue", ".", "call", "span", "span", "end" ]
rubocop:enable Metrics/AbcSize, Metrics/PerceivedComplexity rubocop:enable Metrics/MethodLength, Metrics/CyclomaticComplexity
[ "rubocop", ":", "enable", "Metrics", "/", "AbcSize", "Metrics", "/", "PerceivedComplexity", "rubocop", ":", "enable", "Metrics", "/", "MethodLength", "Metrics", "/", "CyclomaticComplexity" ]
82190d1a9ba22af3b2c2c6fe6d23cc471f2e7ff6
https://github.com/elastic/apm-agent-ruby/blob/82190d1a9ba22af3b2c2c6fe6d23cc471f2e7ff6/lib/elastic_apm/instrumenter.rb#L176-L184
train
End a span by returning the next chunk of data.
[ 30522, 13366, 2203, 1035, 8487, 2709, 4983, 1006, 8487, 1027, 2783, 1035, 14798, 1012, 3769, 1007, 8487, 1012, 2589, 4372, 4226, 5657, 1012, 2655, 8487, 8487, 2203, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/origins.rb
Azure::CDN::Mgmt::V2015_06_01.Origins.begin_create
def begin_create(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil) response = begin_create_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? ...
ruby
def begin_create(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil) response = begin_create_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? ...
[ "def", "begin_create", "(", "origin_name", ",", "origin_properties", ",", "endpoint_name", ",", "profile_name", ",", "resource_group_name", ",", "custom_headers", ":", "nil", ")", "response", "=", "begin_create_async", "(", "origin_name", ",", "origin_properties", ","...
Creates a new CDN origin within an endpoint. @param origin_name [String] Name of the origin, an arbitrary value but it needs to be unique under endpoint @param origin_properties [OriginParameters] Origin properties @param endpoint_name [String] Name of the endpoint within the CDN profile. @param profile_name [Str...
[ "Creates", "a", "new", "CDN", "origin", "within", "an", "endpoint", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/origins.rb#L414-L417
train
Creates an origin.
[ 30522, 13366, 4088, 1035, 3443, 1006, 4761, 1035, 2171, 1010, 4761, 1035, 5144, 1010, 2203, 8400, 1035, 2171, 1010, 6337, 1035, 2171, 1010, 7692, 1035, 2177, 1035, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 4...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
rocketjob/symmetric-encryption
lib/symmetric_encryption/reader.rb
SymmetricEncryption.Reader.read
def read(length = nil, outbuf = nil) data = outbuf.to_s.clear remaining_length = length until remaining_length == 0 || eof? read_block(remaining_length) if @read_buffer.empty? if remaining_length && remaining_length < @read_buffer.length data << @read_buffer.sli...
ruby
def read(length = nil, outbuf = nil) data = outbuf.to_s.clear remaining_length = length until remaining_length == 0 || eof? read_block(remaining_length) if @read_buffer.empty? if remaining_length && remaining_length < @read_buffer.length data << @read_buffer.sli...
[ "def", "read", "(", "length", "=", "nil", ",", "outbuf", "=", "nil", ")", "data", "=", "outbuf", ".", "to_s", ".", "clear", "remaining_length", "=", "length", "until", "remaining_length", "==", "0", "||", "eof?", "read_block", "(", "remaining_length", ")",...
Read from the stream and return the decrypted data See IOS#read Reads at most length bytes from the I/O stream, or to the end of file if length is omitted or is nil. length must be a non-negative integer or nil. At end of file, it returns nil if no more data is available, or the last remaining bytes
[ "Read", "from", "the", "stream", "and", "return", "the", "decrypted", "data", "See", "IOS#read" ]
064ba8d57ffac44a3ed80f5e76fa1a54d660ff98
https://github.com/rocketjob/symmetric-encryption/blob/064ba8d57ffac44a3ed80f5e76fa1a54d660ff98/lib/symmetric_encryption/reader.rb#L187-L206
train
Read the next block of bytes from the stream.
[ 30522, 13366, 3191, 1006, 3091, 1027, 9152, 2140, 1010, 2041, 8569, 2546, 1027, 9152, 2140, 1007, 2951, 1027, 2041, 8569, 2546, 1012, 2000, 1035, 1055, 1012, 3154, 3588, 1035, 3091, 1027, 3091, 2127, 3588, 1035, 3091, 1027, 1027, 1014, 10...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_network/lib/2019-02-01/generated/azure_mgmt_network/express_route_ports.rb
Azure::Network::Mgmt::V2019_02_01.ExpressRoutePorts.delete
def delete(resource_group_name, express_route_port_name, custom_headers:nil) response = delete_async(resource_group_name, express_route_port_name, custom_headers:custom_headers).value! nil end
ruby
def delete(resource_group_name, express_route_port_name, custom_headers:nil) response = delete_async(resource_group_name, express_route_port_name, custom_headers:custom_headers).value! nil end
[ "def", "delete", "(", "resource_group_name", ",", "express_route_port_name", ",", "custom_headers", ":", "nil", ")", "response", "=", "delete_async", "(", "resource_group_name", ",", "express_route_port_name", ",", "custom_headers", ":custom_headers", ")", ".", "value!"...
Deletes the specified ExpressRoutePort resource. @param resource_group_name [String] The name of the resource group. @param express_route_port_name [String] The name of the ExpressRoutePort resource. @param custom_headers [Hash{String => String}] A hash of custom headers that will be added to the HTTP request.
[ "Deletes", "the", "specified", "ExpressRoutePort", "resource", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_network/lib/2019-02-01/generated/azure_mgmt_network/express_route_ports.rb#L33-L36
train
Deletes the specified ExpressRoutePort.
[ 30522, 13366, 3972, 12870, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 4671, 1035, 2799, 1035, 3417, 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...
mikel/mail
lib/mail/message.rb
Mail.Message.method_missing
def method_missing(name, *args, &block) #:nodoc: # Only take the structured fields, as we could take _anything_ really # as it could become an optional field... "but therin lies the dark side" field_name = Utilities.underscoreize(name).chomp("=") if Mail::Field::KNOWN_FIELDS.include?(field...
ruby
def method_missing(name, *args, &block) #:nodoc: # Only take the structured fields, as we could take _anything_ really # as it could become an optional field... "but therin lies the dark side" field_name = Utilities.underscoreize(name).chomp("=") if Mail::Field::KNOWN_FIELDS.include?(field...
[ "def", "method_missing", "(", "name", ",", "*", "args", ",", "&", "block", ")", "#:nodoc:", "# Only take the structured fields, as we could take _anything_ really", "# as it could become an optional field... \"but therin lies the dark side\"", "field_name", "=", "Utilities", ".", ...
Method Missing in this implementation allows you to set any of the standard fields directly as you would the "to", "subject" etc. Those fields used most often (to, subject et al) are given their own method for ease of documentation and also to avoid the hook call to method missing. This will only catch the known...
[ "Method", "Missing", "in", "this", "implementation", "allows", "you", "to", "set", "any", "of", "the", "standard", "fields", "directly", "as", "you", "would", "the", "to", "subject", "etc", "." ]
fb53fb369eb2bf0494ac70675970c90cdcc3f495
https://github.com/mikel/mail/blob/fb53fb369eb2bf0494ac70675970c90cdcc3f495/lib/mail/message.rb#L1377-L1392
train
Returns the result of the method_missing
[ 30522, 13366, 4118, 1035, 4394, 1006, 2171, 1010, 1008, 12098, 5620, 1010, 1004, 3796, 1007, 1001, 1024, 7293, 10085, 1024, 1001, 2069, 2202, 1996, 14336, 4249, 1010, 2004, 2057, 2071, 2202, 1035, 2505, 1035, 2428, 1001, 2004, 2009, 2071, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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_nodes_event_list_with_http_info
def get_nodes_event_list_with_http_info(start_time_utc, end_time_utc, timeout:60, events_types_filter:nil, exclude_analysis_events:nil, skip_correlation_lookup:nil, custom_headers:nil) get_nodes_event_list_async(start_time_utc, end_time_utc, timeout:timeout, events_types_filter:events_types_filter, exclude_analys...
ruby
def get_nodes_event_list_with_http_info(start_time_utc, end_time_utc, timeout:60, events_types_filter:nil, exclude_analysis_events:nil, skip_correlation_lookup:nil, custom_headers:nil) get_nodes_event_list_async(start_time_utc, end_time_utc, timeout:timeout, events_types_filter:events_types_filter, exclude_analys...
[ "def", "get_nodes_event_list_with_http_info", "(", "start_time_utc", ",", "end_time_utc", ",", "timeout", ":", "60", ",", "events_types_filter", ":", "nil", ",", "exclude_analysis_events", ":", "nil", ",", "skip_correlation_lookup", ":", "nil", ",", "custom_headers", ...
Gets all Nodes-related Events. The response is list of NodeEvent objects. @param start_time_utc [String] The start time of a lookup query in ISO UTC yyyy-MM-ddTHH:mm:ssZ. @param end_time_utc [String] The end time of a lookup query in ISO UTC yyyy-MM-ddTHH:mm:ssZ. @param timeout [Integer] The server timeout for ...
[ "Gets", "all", "Nodes", "-", "related", "Events", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_service_fabric/lib/6.2.0.9/generated/azure_service_fabric/service_fabric_client_apis.rb#L27725-L27727
train
Gets the nodes event list.
[ 30522, 13366, 2131, 1035, 14164, 1035, 2724, 1035, 2862, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 2707, 1035, 2051, 1035, 11396, 1010, 2203, 1035, 2051, 1035, 11396, 1010, 2051, 5833, 1024, 3438, 1010, 2824, 1035, 4127, 1035, 11307, 1024,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_privatedns/lib/2018-09-01/generated/azure_mgmt_privatedns/record_sets.rb
Azure::PrivateDns::Mgmt::V2018_09_01.RecordSets.list_by_type_next
def list_by_type_next(next_page_link, custom_headers:nil) response = list_by_type_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def list_by_type_next(next_page_link, custom_headers:nil) response = list_by_type_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "list_by_type_next", "(", "next_page_link", ",", "custom_headers", ":", "nil", ")", "response", "=", "list_by_type_next_async", "(", "next_page_link", ",", "custom_headers", ":custom_headers", ")", ".", "value!", "response", ".", "body", "unless", "response", ...
Lists the record sets of a specified type in a Private DNS zone. @param next_page_link [String] The NextLink from the previous successful call to List operation. @param custom_headers [Hash{String => String}] A hash of custom headers that will be added to the HTTP request. @return [RecordSetListResult] operation...
[ "Lists", "the", "record", "sets", "of", "a", "specified", "type", "in", "a", "Private", "DNS", "zone", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_privatedns/lib/2018-09-01/generated/azure_mgmt_privatedns/record_sets.rb#L795-L798
train
Gets the list of the elastic advantage terms of the specified type.
[ 30522, 13366, 2862, 1035, 2011, 1035, 2828, 1035, 2279, 1006, 2279, 1035, 3931, 1035, 4957, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 2862, 1035, 2011, 1035, 2828, 1035, 2279, 1035, 2004, 6038, 2278, 1006, 2279, 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_compute/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machines.rb
Azure::Compute::Mgmt::V2016_04_30_preview.VirtualMachines.start
def start(resource_group_name, vm_name, custom_headers:nil) response = start_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def start(resource_group_name, vm_name, custom_headers:nil) response = start_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "start", "(", "resource_group_name", ",", "vm_name", ",", "custom_headers", ":", "nil", ")", "response", "=", "start_async", "(", "resource_group_name", ",", "vm_name", ",", "custom_headers", ":custom_headers", ")", ".", "value!", "response", ".", "body", ...
The operation to start a virtual machine. @param resource_group_name [String] The name of the resource group. @param vm_name [String] The name of the virtual machine. @param custom_headers [Hash{String => String}] A hash of custom headers that will be added to the HTTP request. @return [OperationStatusResponse] ...
[ "The", "operation", "to", "start", "a", "virtual", "machine", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_compute/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machines.rb#L905-L908
train
Starts a virtual machine in a resource group.
[ 30522, 13366, 2707, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 1058, 2213, 1035, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 2707, 1035, 2004, 6038, 2278, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 1058, 2213, 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_automation/lib/2015-10-31/generated/azure_mgmt_automation/runbook_operations.rb
Azure::Automation::Mgmt::V2015_10_31.RunbookOperations.get_content_with_http_info
def get_content_with_http_info(resource_group_name, automation_account_name, runbook_name, custom_headers:nil) get_content_async(resource_group_name, automation_account_name, runbook_name, custom_headers:custom_headers).value! end
ruby
def get_content_with_http_info(resource_group_name, automation_account_name, runbook_name, custom_headers:nil) get_content_async(resource_group_name, automation_account_name, runbook_name, custom_headers:custom_headers).value! end
[ "def", "get_content_with_http_info", "(", "resource_group_name", ",", "automation_account_name", ",", "runbook_name", ",", "custom_headers", ":", "nil", ")", "get_content_async", "(", "resource_group_name", ",", "automation_account_name", ",", "runbook_name", ",", "custom_h...
Retrieve the content of runbook identified by runbook name. @param resource_group_name [String] Name of an Azure Resource group. @param automation_account_name [String] The name of the automation account. @param runbook_name [String] The runbook name. @param custom_headers [Hash{String => String}] A hash of custom...
[ "Retrieve", "the", "content", "of", "runbook", "identified", "by", "runbook", "name", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/runbook_operations.rb#L51-L53
train
Gets the content of a runbook.
[ 30522, 13366, 2131, 1035, 4180, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 19309, 1035, 4070, 30524, 1035, 2004, 6038, 2278, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 19309, 1035, 4070, 1035, 2171, 1010, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
data/azure_service_fabric/lib/6.2.0.9/generated/azure_service_fabric/service_fabric_client_apis.rb
Azure::ServiceFabric::V6_2_0_9.ServiceFabricClientAPIs.get_service_type_info_list
def get_service_type_info_list(application_type_name, application_type_version, timeout:60, custom_headers:nil) response = get_service_type_info_list_async(application_type_name, application_type_version, timeout:timeout, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def get_service_type_info_list(application_type_name, application_type_version, timeout:60, custom_headers:nil) response = get_service_type_info_list_async(application_type_name, application_type_version, timeout:timeout, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "get_service_type_info_list", "(", "application_type_name", ",", "application_type_version", ",", "timeout", ":", "60", ",", "custom_headers", ":", "nil", ")", "response", "=", "get_service_type_info_list_async", "(", "application_type_name", ",", "application_type_v...
Gets the list containing the information about service types that are supported by a provisioned application type in a Service Fabric cluster. Gets the list containing the information about service types that are supported by a provisioned application type in a Service Fabric cluster. The provided application type...
[ "Gets", "the", "list", "containing", "the", "information", "about", "service", "types", "that", "are", "supported", "by", "a", "provisioned", "application", "type", "in", "a", "Service", "Fabric", "cluster", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_service_fabric/lib/6.2.0.9/generated/azure_service_fabric/service_fabric_client_apis.rb#L5329-L5332
train
Gets the service type information for the specified application type.
[ 30522, 13366, 2131, 1035, 2326, 1035, 2828, 1035, 18558, 1035, 2862, 1006, 4646, 1035, 2828, 1035, 2171, 1010, 4646, 1035, 2828, 1035, 2544, 1010, 2051, 5833, 1024, 3438, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 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_sql/lib/2014-04-01/generated/azure_mgmt_sql/disaster_recovery_configurations.rb
Azure::SQL::Mgmt::V2014_04_01.DisasterRecoveryConfigurations.begin_delete_with_http_info
def begin_delete_with_http_info(resource_group_name, server_name, disaster_recovery_configuration_name, custom_headers:nil) begin_delete_async(resource_group_name, server_name, disaster_recovery_configuration_name, custom_headers:custom_headers).value! end
ruby
def begin_delete_with_http_info(resource_group_name, server_name, disaster_recovery_configuration_name, custom_headers:nil) begin_delete_async(resource_group_name, server_name, disaster_recovery_configuration_name, custom_headers:custom_headers).value! end
[ "def", "begin_delete_with_http_info", "(", "resource_group_name", ",", "server_name", ",", "disaster_recovery_configuration_name", ",", "custom_headers", ":", "nil", ")", "begin_delete_async", "(", "resource_group_name", ",", "server_name", ",", "disaster_recovery_configuration...
Deletes a disaster recovery configuration. @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 disaster_recovery_configuration_name [St...
[ "Deletes", "a", "disaster", "recovery", "configuration", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/disaster_recovery_configurations.rb#L451-L453
train
Deletes a disaster recovery configuration.
[ 30522, 13366, 4088, 1035, 3972, 12870, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 8241, 1035, 2171, 1010, 7071, 1035, 7233, 1035, 9563, 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...
Azure/azure-sdk-for-ruby
management/azure_mgmt_consumption/lib/2017-11-30/generated/azure_mgmt_consumption/reservations_summaries.rb
Azure::Consumption::Mgmt::V2017_11_30.ReservationsSummaries.list_with_http_info
def list_with_http_info(scope, grain, filter:nil, custom_headers:nil) list_async(scope, grain, filter:filter, custom_headers:custom_headers).value! end
ruby
def list_with_http_info(scope, grain, filter:nil, custom_headers:nil) list_async(scope, grain, filter:filter, custom_headers:custom_headers).value! end
[ "def", "list_with_http_info", "(", "scope", ",", "grain", ",", "filter", ":", "nil", ",", "custom_headers", ":", "nil", ")", "list_async", "(", "scope", ",", "grain", ",", "filter", ":", "filter", ",", "custom_headers", ":custom_headers", ")", ".", "value!",...
Lists the reservations summaries for daily or monthly grain. @param scope [String] The scope of the reservation summaries. The scope can be 'providers/Microsoft.Capacity/reservationorders/{ReservationOrderId}' or 'providers/Microsoft.Capacity/reservationorders/{ReservationOrderId}/reservations/{ReservationId}' @pa...
[ "Lists", "the", "reservations", "summaries", "for", "daily", "or", "monthly", "grain", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_consumption/lib/2017-11-30/generated/azure_mgmt_consumption/reservations_summaries.rb#L62-L64
train
Gets the list of the segmentation of the specified resource group.
[ 30522, 13366, 2862, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 9531, 1010, 8982, 1010, 11307, 1024, 9152, 2140, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 2862, 1035, 2004, 6038, 2278, 1006, 9531, 1010, 8982, 1010, 11307, 1024, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_compute/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machines.rb
Azure::Compute::Mgmt::V2016_04_30_preview.VirtualMachines.convert_to_managed_disks
def convert_to_managed_disks(resource_group_name, vm_name, custom_headers:nil) response = convert_to_managed_disks_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def convert_to_managed_disks(resource_group_name, vm_name, custom_headers:nil) response = convert_to_managed_disks_async(resource_group_name, vm_name, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "convert_to_managed_disks", "(", "resource_group_name", ",", "vm_name", ",", "custom_headers", ":", "nil", ")", "response", "=", "convert_to_managed_disks_async", "(", "resource_group_name", ",", "vm_name", ",", "custom_headers", ":custom_headers", ")", ".", "val...
Converts virtual machine disks from blob-based to managed disks. Virtual machine must be stop-deallocated before invoking this operation. @param resource_group_name [String] The name of the resource group. @param vm_name [String] The name of the virtual machine. @param custom_headers [Hash{String => String}] A has...
[ "Converts", "virtual", "machine", "disks", "from", "blob", "-", "based", "to", "managed", "disks", ".", "Virtual", "machine", "must", "be", "stop", "-", "deallocated", "before", "invoking", "this", "operation", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_compute/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machines.rb#L369-L372
train
Convert virtual machine to managed disks.
[ 30522, 13366, 10463, 1035, 2000, 1035, 3266, 1035, 23999, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 1058, 2213, 1035, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 10463, 1035, 2000, 1035, 3266, 1035, 23999, 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_application_health_using_policy
def get_deployed_application_health_using_policy(node_name, application_id, events_health_state_filter:0, deployed_service_packages_health_state_filter:0, application_health_policy:nil, exclude_health_statistics:false, timeout:60, custom_headers:nil) response = get_deployed_application_health_using_policy_async(n...
ruby
def get_deployed_application_health_using_policy(node_name, application_id, events_health_state_filter:0, deployed_service_packages_health_state_filter:0, application_health_policy:nil, exclude_health_statistics:false, timeout:60, custom_headers:nil) response = get_deployed_application_health_using_policy_async(n...
[ "def", "get_deployed_application_health_using_policy", "(", "node_name", ",", "application_id", ",", "events_health_state_filter", ":", "0", ",", "deployed_service_packages_health_state_filter", ":", "0", ",", "application_health_policy", ":", "nil", ",", "exclude_health_statis...
Gets the information about health of an application deployed on a Service Fabric node. using the specified policy. Gets the information about health of an application deployed on a Service Fabric node using the specified policy. Use EventsHealthStateFilter to optionally filter for the collection of HealthEvent obj...
[ "Gets", "the", "information", "about", "health", "of", "an", "application", "deployed", "on", "a", "Service", "Fabric", "node", ".", "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#L9082-L9085
train
Gets the health of the specified application using the health policy.
[ 30522, 13366, 2131, 1035, 7333, 1035, 4646, 1035, 2740, 1035, 2478, 1035, 3343, 1006, 13045, 1035, 2171, 1010, 4646, 1035, 8909, 1010, 2824, 1035, 2740, 1035, 2110, 1035, 11307, 1024, 1014, 1010, 7333, 1035, 2326, 1035, 14555, 1035, 2740, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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/searches_helper.rb
Decidim.SearchesHelper.searchable_resource_human_name
def searchable_resource_human_name(resource, count: 5) resource = if resource.is_a?(String) resource.constantize else resource end resource.model_name.human(count: count) end
ruby
def searchable_resource_human_name(resource, count: 5) resource = if resource.is_a?(String) resource.constantize else resource end resource.model_name.human(count: count) end
[ "def", "searchable_resource_human_name", "(", "resource", ",", "count", ":", "5", ")", "resource", "=", "if", "resource", ".", "is_a?", "(", "String", ")", "resource", ".", "constantize", "else", "resource", "end", "resource", ".", "model_name", ".", "human", ...
Renders the human name of the given class name. klass_name - a String representing the class name of the resource to render count - (optional) the number of resources so that the I18n backend can decide to translate into singluar or plural form.
[ "Renders", "the", "human", "name", "of", "the", "given", "class", "name", "." ]
6e2b14e559a63088669904e3c5c49a5180700cf7
https://github.com/decidim/decidim/blob/6e2b14e559a63088669904e3c5c49a5180700cf7/decidim-core/app/helpers/decidim/searches_helper.rb#L11-L19
train
Returns the human - readable name of the given resource
[ 30522, 13366, 3945, 3085, 1035, 7692, 1035, 2529, 1035, 2171, 1006, 7692, 1010, 4175, 1024, 1019, 1007, 7692, 1027, 2065, 7692, 1012, 2003, 1035, 1037, 1029, 1006, 5164, 1007, 7692, 1012, 5377, 4697, 2842, 7692, 2203, 7692, 1012, 2944, 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_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_event_list_with_http_info
def get_application_event_list_with_http_info(application_id, start_time_utc, end_time_utc, timeout:60, events_types_filter:nil, exclude_analysis_events:nil, skip_correlation_lookup:nil, custom_headers:nil) get_application_event_list_async(application_id, start_time_utc, end_time_utc, timeout:timeout, events_type...
ruby
def get_application_event_list_with_http_info(application_id, start_time_utc, end_time_utc, timeout:60, events_types_filter:nil, exclude_analysis_events:nil, skip_correlation_lookup:nil, custom_headers:nil) get_application_event_list_async(application_id, start_time_utc, end_time_utc, timeout:timeout, events_type...
[ "def", "get_application_event_list_with_http_info", "(", "application_id", ",", "start_time_utc", ",", "end_time_utc", ",", "timeout", ":", "60", ",", "events_types_filter", ":", "nil", ",", "exclude_analysis_events", ":", "nil", ",", "skip_correlation_lookup", ":", "ni...
Gets an Application-related events. The response is list of ApplicationEvent objects. @param application_id [String] The identity of the application. This is typically the full name of the application without the 'fabric:' URI scheme. Starting from version 6.0, hierarchical names are delimited with the "~" chara...
[ "Gets", "an", "Application", "-", "related", "events", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_service_fabric/lib/6.2.0.9/generated/azure_service_fabric/service_fabric_client_apis.rb#L27896-L27898
train
Gets the list of events for the specified application.
[ 30522, 13366, 2131, 1035, 4646, 1035, 2724, 1035, 2862, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 4646, 1035, 8909, 1010, 2707, 1035, 2051, 1035, 11396, 1010, 2203, 1035, 2051, 1035, 11396, 1010, 2051, 5833, 1024, 3438, 1010, 2824, 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...
fastlane/fastlane
fastlane_core/lib/fastlane_core/configuration/configuration.rb
FastlaneCore.Configuration.load_configuration_file
def load_configuration_file(config_file_name = nil, block_for_missing = nil, skip_printing_values = false) return unless config_file_name self.config_file_name = config_file_name path = FastlaneCore::Configuration.find_configuration_file_path(config_file_name: config_file_name) return if path....
ruby
def load_configuration_file(config_file_name = nil, block_for_missing = nil, skip_printing_values = false) return unless config_file_name self.config_file_name = config_file_name path = FastlaneCore::Configuration.find_configuration_file_path(config_file_name: config_file_name) return if path....
[ "def", "load_configuration_file", "(", "config_file_name", "=", "nil", ",", "block_for_missing", "=", "nil", ",", "skip_printing_values", "=", "false", ")", "return", "unless", "config_file_name", "self", ".", "config_file_name", "=", "config_file_name", "path", "=", ...
This method takes care of parsing and using the configuration file as values Call this once you know where the config file might be located Take a look at how `gym` uses this method @param config_file_name [String] The name of the configuration file to use (optional) @param block_for_missing [Block] A ruby block t...
[ "This", "method", "takes", "care", "of", "parsing", "and", "using", "the", "configuration", "file", "as", "values", "Call", "this", "once", "you", "know", "where", "the", "config", "file", "might", "be", "located", "Take", "a", "look", "at", "how", "gym", ...
457c5d647c77f0e078dafa5129da616914e002c5
https://github.com/fastlane/fastlane/blob/457c5d647c77f0e078dafa5129da616914e002c5/fastlane_core/lib/fastlane_core/configuration/configuration.rb#L163-L194
train
Load the configuration file
[ 30522, 13366, 7170, 1035, 9563, 1035, 5371, 1006, 9530, 8873, 2290, 1035, 5371, 1035, 2171, 1027, 9152, 2140, 1010, 3796, 1035, 2005, 1035, 4394, 1027, 9152, 2140, 1010, 13558, 1035, 8021, 1035, 5300, 1027, 6270, 1007, 2709, 4983, 9530, 8...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_datalake_analytics/lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb
Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview.Account.add_data_lake_store_account_with_http_info
def add_data_lake_store_account_with_http_info(resource_group_name, account_name, data_lake_store_account_name, parameters, custom_headers:nil) add_data_lake_store_account_async(resource_group_name, account_name, data_lake_store_account_name, parameters, custom_headers:custom_headers).value! end
ruby
def add_data_lake_store_account_with_http_info(resource_group_name, account_name, data_lake_store_account_name, parameters, custom_headers:nil) add_data_lake_store_account_async(resource_group_name, account_name, data_lake_store_account_name, parameters, custom_headers:custom_headers).value! end
[ "def", "add_data_lake_store_account_with_http_info", "(", "resource_group_name", ",", "account_name", ",", "data_lake_store_account_name", ",", "parameters", ",", "custom_headers", ":", "nil", ")", "add_data_lake_store_account_async", "(", "resource_group_name", ",", "account_n...
Updates the specified Data Lake Analytics account to include the additional Data Lake Store account. @param resource_group_name [String] The name of the Azure resource group that contains the Data Lake Analytics account. @param account_name [String] The name of the Data Lake Analytics account to which to add the ...
[ "Updates", "the", "specified", "Data", "Lake", "Analytics", "account", "to", "include", "the", "additional", "Data", "Lake", "Store", "account", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_datalake_analytics/lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb#L1032-L1034
train
Adds the specified Data Lake Store account to the specified Data Lake Store account.
[ 30522, 13366, 5587, 1035, 2951, 1035, 2697, 1035, 3573, 1035, 4070, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 4070, 1035, 2171, 1010, 2951, 1035, 2697, 1035, 3573, 1035, 4070, 1035, 2171, 1010, 11709, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
data/azure_cognitiveservices_contentmoderator/lib/1.0/generated/azure_cognitiveservices_contentmoderator/reviews.rb
Azure::CognitiveServices::ContentModerator::V1_0.Reviews.get_video_frames
def get_video_frames(team_name, review_id, start_seed:nil, no_of_records:nil, filter:nil, custom_headers:nil) response = get_video_frames_async(team_name, review_id, start_seed:start_seed, no_of_records:no_of_records, filter:filter, custom_headers:custom_headers).value! response.body unless response.nil? ...
ruby
def get_video_frames(team_name, review_id, start_seed:nil, no_of_records:nil, filter:nil, custom_headers:nil) response = get_video_frames_async(team_name, review_id, start_seed:start_seed, no_of_records:no_of_records, filter:filter, custom_headers:custom_headers).value! response.body unless response.nil? ...
[ "def", "get_video_frames", "(", "team_name", ",", "review_id", ",", "start_seed", ":", "nil", ",", "no_of_records", ":", "nil", ",", "filter", ":", "nil", ",", "custom_headers", ":", "nil", ")", "response", "=", "get_video_frames_async", "(", "team_name", ",",...
The reviews created would show up for Reviewers on your team. As Reviewers complete reviewing, results of the Review would be POSTED (i.e. HTTP POST) on the specified CallBackEndpoint. <h3>CallBack Schemas </h3> <h4>Review Completion CallBack Sample</h4> <p> {<br/> "ReviewId": "<Review Id>",<br/> "ModifiedOn":...
[ "The", "reviews", "created", "would", "show", "up", "for", "Reviewers", "on", "your", "team", ".", "As", "Reviewers", "complete", "reviewing", "results", "of", "the", "Review", "would", "be", "POSTED", "(", "i", ".", "e", ".", "HTTP", "POST", ")", "on", ...
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_cognitiveservices_contentmoderator/lib/1.0/generated/azure_cognitiveservices_contentmoderator/reviews.rb#L908-L911
train
Gets the video frames for a review.
[ 30522, 13366, 2131, 1035, 2678, 1035, 11048, 1006, 2136, 1035, 2171, 1010, 3319, 1035, 8909, 1010, 2707, 1035, 6534, 1024, 9152, 2140, 1010, 2053, 1035, 1997, 1035, 2636, 1024, 9152, 2140, 1010, 11307, 1024, 9152, 2140, 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
management/azure_mgmt_service_fabric/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/cluster_versions.rb
Azure::ServiceFabric::Mgmt::V2017_07_01_preview.ClusterVersions.list_with_http_info
def list_with_http_info(location, api_version, subscription_id, custom_headers:nil) list_async(location, api_version, subscription_id, custom_headers:custom_headers).value! end
ruby
def list_with_http_info(location, api_version, subscription_id, custom_headers:nil) list_async(location, api_version, subscription_id, custom_headers:custom_headers).value! end
[ "def", "list_with_http_info", "(", "location", ",", "api_version", ",", "subscription_id", ",", "custom_headers", ":", "nil", ")", "list_async", "(", "location", ",", "api_version", ",", "subscription_id", ",", "custom_headers", ":custom_headers", ")", ".", "value!"...
List cluster code versions by location List cluster code versions by location @param location [String] The location for the cluster code versions, this is different from cluster location @param api_version [String] The version of the API. @param subscription_id [String] The customer subscription identifier @pa...
[ "List", "cluster", "code", "versions", "by", "location" ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_service_fabric/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/cluster_versions.rb#L286-L288
train
Gets the list of the available adhoc terms.
[ 30522, 13366, 2862, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 3295, 1010, 17928, 1035, 2544, 1010, 15002, 1035, 8909, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 2862, 1035, 2004, 6038, 2278, 1006, 3295, 1010, 17928, 1035, 2544,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_resources_management/lib/2018-03-01-preview/generated/azure_mgmt_resources_management/management_group_subscriptions.rb
Azure::ResourcesManagement::Mgmt::V2018_03_01_preview.ManagementGroupSubscriptions.create_with_http_info
def create_with_http_info(group_id, subscription_id, cache_control:'no-cache', custom_headers:nil) create_async(group_id, subscription_id, cache_control:cache_control, custom_headers:custom_headers).value! end
ruby
def create_with_http_info(group_id, subscription_id, cache_control:'no-cache', custom_headers:nil) create_async(group_id, subscription_id, cache_control:cache_control, custom_headers:custom_headers).value! end
[ "def", "create_with_http_info", "(", "group_id", ",", "subscription_id", ",", "cache_control", ":", "'no-cache'", ",", "custom_headers", ":", "nil", ")", "create_async", "(", "group_id", ",", "subscription_id", ",", "cache_control", ":cache_control", ",", "custom_head...
Associates existing subscription with the management group. @param group_id [String] Management Group ID. @param subscription_id [String] Subscription ID. @param cache_control [String] Indicates that the request shouldn't utilize any caches. @param custom_headers [Hash{String => String}] A hash of custom headers ...
[ "Associates", "existing", "subscription", "with", "the", "management", "group", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_resources_management/lib/2018-03-01-preview/generated/azure_mgmt_resources_management/management_group_subscriptions.rb#L55-L57
train
Creates a new chunk of a chunk of a chunk of the image.
[ 30522, 13366, 3443, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 2177, 1035, 8909, 1010, 15002, 1035, 8909, 1010, 17053, 1035, 2491, 1024, 1005, 2053, 1011, 17053, 1005, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3443, 1035, 2004,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
aws/aws-sdk-ruby
gems/aws-sdk-iam/lib/aws-sdk-iam/role.rb
Aws::IAM.Role.detach_policy
def detach_policy(options = {}) options = options.merge(role_name: @name) resp = @client.detach_role_policy(options) resp.data end
ruby
def detach_policy(options = {}) options = options.merge(role_name: @name) resp = @client.detach_role_policy(options) resp.data end
[ "def", "detach_policy", "(", "options", "=", "{", "}", ")", "options", "=", "options", ".", "merge", "(", "role_name", ":", "@name", ")", "resp", "=", "@client", ".", "detach_role_policy", "(", "options", ")", "resp", ".", "data", "end" ]
@example Request syntax with placeholder values role.detach_policy({ policy_arn: "arnType", # required }) @param [Hash] options ({}) @option options [required, String] :policy_arn The Amazon Resource Name (ARN) of the IAM policy you want to detach. For more information about ARNs, see [Amazon Resou...
[ "@example", "Request", "syntax", "with", "placeholder", "values" ]
e28b8d320ddf7b6ee0161bdd9d00fb786d99b63d
https://github.com/aws/aws-sdk-ruby/blob/e28b8d320ddf7b6ee0161bdd9d00fb786d99b63d/gems/aws-sdk-iam/lib/aws-sdk-iam/role.rb#L308-L312
train
Detach policy from role
[ 30522, 13366, 20010, 6776, 1035, 3343, 1006, 7047, 1027, 1063, 1065, 1007, 7047, 1027, 7047, 1012, 13590, 1006, 2535, 1035, 2171, 1024, 1030, 2171, 1007, 24501, 2361, 30524, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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/subscription.rb
Azure::ApiManagement::Mgmt::V2018_01_01.Subscription.regenerate_primary_key
def regenerate_primary_key(resource_group_name, service_name, sid, custom_headers:nil) response = regenerate_primary_key_async(resource_group_name, service_name, sid, custom_headers:custom_headers).value! nil end
ruby
def regenerate_primary_key(resource_group_name, service_name, sid, custom_headers:nil) response = regenerate_primary_key_async(resource_group_name, service_name, sid, custom_headers:custom_headers).value! nil end
[ "def", "regenerate_primary_key", "(", "resource_group_name", ",", "service_name", ",", "sid", ",", "custom_headers", ":", "nil", ")", "response", "=", "regenerate_primary_key_async", "(", "resource_group_name", ",", "service_name", ",", "sid", ",", "custom_headers", "...
Regenerates primary key of existing subscription of the API Management service instance. @param resource_group_name [String] The name of the resource group. @param service_name [String] The name of the API Management service. @param sid [String] Subscription entity Identifier. The entity represents the associatio...
[ "Regenerates", "primary", "key", "of", "existing", "subscription", "of", "the", "API", "Management", "service", "instance", "." ]
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/subscription.rb#L762-L765
train
Regenerate the primary key of the specified managed service.
[ 30522, 13366, 19723, 24454, 3686, 1035, 3078, 1035, 3145, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 2326, 1035, 2171, 1010, 15765, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 19723, 24454, 3686, 1035, 3078, 1035, 3145...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
excon/excon
lib/excon/connection.rb
Excon.Connection.request
def request(params={}, &block) # @data has defaults, merge in new params to override datum = @data.merge(params) datum[:headers] = @data[:headers].merge(datum[:headers] || {}) validate_params(:request, params, datum[:middlewares]) # If the user passed in new middleware, we want to validat...
ruby
def request(params={}, &block) # @data has defaults, merge in new params to override datum = @data.merge(params) datum[:headers] = @data[:headers].merge(datum[:headers] || {}) validate_params(:request, params, datum[:middlewares]) # If the user passed in new middleware, we want to validat...
[ "def", "request", "(", "params", "=", "{", "}", ",", "&", "block", ")", "# @data has defaults, merge in new params to override", "datum", "=", "@data", ".", "merge", "(", "params", ")", "datum", "[", ":headers", "]", "=", "@data", "[", ":headers", "]", ".", ...
Sends the supplied request to the destination host. @yield [chunk] @see Response#self.parse @param [Hash<Symbol, >] params One or more optional params, override defaults set in Connection.new @option params [String] :body text to be sent over a socket @option params [Hash<Symbol, String>] :headers The d...
[ "Sends", "the", "supplied", "request", "to", "the", "destination", "host", "." ]
d4975a8a5b49d5901a769b289fb5054a6d064f6d
https://github.com/excon/excon/blob/d4975a8a5b49d5901a769b289fb5054a6d064f6d/lib/excon/connection.rb#L230-L301
train
This method is used to create a new connection object.
[ 30522, 13366, 5227, 1006, 11498, 5244, 1027, 1063, 1065, 1010, 1004, 3796, 1007, 1001, 1030, 2951, 2038, 12398, 2015, 1010, 13590, 1999, 2047, 11498, 5244, 2000, 2058, 15637, 23755, 2819, 1027, 1030, 2951, 1012, 13590, 1006, 11498, 5244, 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_web/lib/2018-02-01/generated/azure_mgmt_web/app_service_environments.rb
Azure::Web::Mgmt::V2018_02_01.AppServiceEnvironments.list_web_apps_with_http_info
def list_web_apps_with_http_info(resource_group_name, name, properties_to_include:nil, custom_headers:nil) list_web_apps_async(resource_group_name, name, properties_to_include:properties_to_include, custom_headers:custom_headers).value! end
ruby
def list_web_apps_with_http_info(resource_group_name, name, properties_to_include:nil, custom_headers:nil) list_web_apps_async(resource_group_name, name, properties_to_include:properties_to_include, custom_headers:custom_headers).value! end
[ "def", "list_web_apps_with_http_info", "(", "resource_group_name", ",", "name", ",", "properties_to_include", ":", "nil", ",", "custom_headers", ":", "nil", ")", "list_web_apps_async", "(", "resource_group_name", ",", "name", ",", "properties_to_include", ":properties_to_...
Get all apps in an App Service Environment. Get all apps in an App Service Environment. @param resource_group_name [String] Name of the resource group to which the resource belongs. @param name [String] Name of the App Service Environment. @param properties_to_include [String] Comma separated list of app propert...
[ "Get", "all", "apps", "in", "an", "App", "Service", "Environment", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_web/lib/2018-02-01/generated/azure_mgmt_web/app_service_environments.rb#L2770-L2772
train
Gets the list of apps in an App Service Environment.
[ 30522, 13366, 2862, 1035, 4773, 1035, 18726, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 2171, 1010, 5144, 1035, 2000, 1035, 2421, 1024, 9152, 2140, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
data/azure_cognitiveservices_qnamaker/lib/4.0/generated/azure_cognitiveservices_qnamaker/endpoint_keys.rb
Azure::CognitiveServices::Qnamaker::V4_0.EndpointKeys.refresh_keys
def refresh_keys(key_type, custom_headers:nil) response = refresh_keys_async(key_type, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def refresh_keys(key_type, custom_headers:nil) response = refresh_keys_async(key_type, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "refresh_keys", "(", "key_type", ",", "custom_headers", ":", "nil", ")", "response", "=", "refresh_keys_async", "(", "key_type", ",", "custom_headers", ":custom_headers", ")", ".", "value!", "response", ".", "body", "unless", "response", ".", "nil?", "end...
Re-generates an endpoint key. @param key_type [String] Type of Key @param custom_headers [Hash{String => String}] A hash of custom headers that will be added to the HTTP request. @return [EndpointKeysDTO] operation results.
[ "Re", "-", "generates", "an", "endpoint", "key", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_cognitiveservices_qnamaker/lib/4.0/generated/azure_cognitiveservices_qnamaker/endpoint_keys.rb#L115-L118
train
Refreshes the keys of the specified key type.
[ 30522, 13366, 25416, 21898, 1035, 6309, 1006, 3145, 1035, 2828, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 25416, 21898, 1035, 6309, 1035, 2004, 6038, 2278, 1006, 3145, 1035, 2828, 1010, 7661, 1035, 20346, 2015, 1024...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
plaid/plaid-ruby
lib/plaid/products/base_product.rb
Plaid.BaseProduct.build_payload
def build_payload(access_token, account_ids: nil, options: nil) options_payload = {} options_payload[:account_ids] = account_ids unless account_ids.nil? options_payload.merge!(options) unless options.nil? { access_token: access_token, options: options_payload } end
ruby
def build_payload(access_token, account_ids: nil, options: nil) options_payload = {} options_payload[:account_ids] = account_ids unless account_ids.nil? options_payload.merge!(options) unless options.nil? { access_token: access_token, options: options_payload } end
[ "def", "build_payload", "(", "access_token", ",", "account_ids", ":", "nil", ",", "options", ":", "nil", ")", "options_payload", "=", "{", "}", "options_payload", "[", ":account_ids", "]", "=", "account_ids", "unless", "account_ids", ".", "nil?", "options_payloa...
Internal: Build a simple payload with access_token, options, and account_ids.
[ "Internal", ":", "Build", "a", "simple", "payload", "with", "access_token", "options", "and", "account_ids", "." ]
ce3da1c5559c739de88c5f59e54eef875f296673
https://github.com/plaid/plaid-ruby/blob/ce3da1c5559c739de88c5f59e54eef875f296673/lib/plaid/products/base_product.rb#L50-L57
train
Build the payload for the request
[ 30522, 13366, 3857, 1035, 18093, 1006, 3229, 1035, 19204, 1010, 4070, 1035, 8909, 2015, 1024, 9152, 2140, 1010, 7047, 1024, 9152, 2140, 1007, 7047, 1035, 18093, 1027, 1063, 1065, 7047, 1035, 18093, 1031, 1024, 4070, 1035, 8909, 2015, 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...
tongueroo/jets
lib/jets/preheat.rb
Jets.Preheat.warm_all
def warm_all threads = [] all_functions.each do |function_name| next if function_name.include?('jets-public_controller') # handled by warm_public_controller_more next if function_name.include?('jets-rack_controller') # handled by warm_rack_controller_more threads << Thread.new do ...
ruby
def warm_all threads = [] all_functions.each do |function_name| next if function_name.include?('jets-public_controller') # handled by warm_public_controller_more next if function_name.include?('jets-rack_controller') # handled by warm_rack_controller_more threads << Thread.new do ...
[ "def", "warm_all", "threads", "=", "[", "]", "all_functions", ".", "each", "do", "|", "function_name", "|", "next", "if", "function_name", ".", "include?", "(", "'jets-public_controller'", ")", "# handled by warm_public_controller_more", "next", "if", "function_name",...
Loop through all methods for each class and makes special prewarm call to each method.
[ "Loop", "through", "all", "methods", "for", "each", "class", "and", "makes", "special", "prewarm", "call", "to", "each", "method", "." ]
46943a519224067e58aa3e2d5656e3ca083150f9
https://github.com/tongueroo/jets/blob/46943a519224067e58aa3e2d5656e3ca083150f9/lib/jets/preheat.rb#L30-L48
train
Warm all the functions in the Lambda console
[ 30522, 13366, 4010, 1035, 2035, 16457, 1027, 1031, 1033, 2035, 1035, 4972, 1012, 2169, 2079, 1064, 3853, 1035, 2171, 1064, 2279, 2065, 3853, 1035, 2171, 1012, 2421, 1029, 1006, 1005, 9924, 1011, 2270, 1035, 11486, 1005, 1007, 1001, 8971, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_web/lib/2018-02-01/generated/azure_mgmt_web/app_service_environments.rb
Azure::Web::Mgmt::V2018_02_01.AppServiceEnvironments.update_multi_role_pool_with_http_info
def update_multi_role_pool_with_http_info(resource_group_name, name, multi_role_pool_envelope, custom_headers:nil) update_multi_role_pool_async(resource_group_name, name, multi_role_pool_envelope, custom_headers:custom_headers).value! end
ruby
def update_multi_role_pool_with_http_info(resource_group_name, name, multi_role_pool_envelope, custom_headers:nil) update_multi_role_pool_async(resource_group_name, name, multi_role_pool_envelope, custom_headers:custom_headers).value! end
[ "def", "update_multi_role_pool_with_http_info", "(", "resource_group_name", ",", "name", ",", "multi_role_pool_envelope", ",", "custom_headers", ":", "nil", ")", "update_multi_role_pool_async", "(", "resource_group_name", ",", "name", ",", "multi_role_pool_envelope", ",", "...
Create or update a multi-role pool. Create or update a multi-role pool. @param resource_group_name [String] Name of the resource group to which the resource belongs. @param name [String] Name of the App Service Environment. @param multi_role_pool_envelope [WorkerPoolResource] Properties of the multi-role pool. ...
[ "Create", "or", "update", "a", "multi", "-", "role", "pool", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_web/lib/2018-02-01/generated/azure_mgmt_web/app_service_environments.rb#L1578-L1580
train
Updates a multi - role pool.
[ 30522, 13366, 10651, 1035, 4800, 1035, 2535, 1035, 4770, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 2171, 1010, 4800, 1035, 2535, 1035, 4770, 1035, 11255, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
data/azure_service_fabric/lib/6.2.0.9/generated/azure_service_fabric/service_fabric_client_apis.rb
Azure::ServiceFabric::V6_2_0_9.ServiceFabricClientAPIs.get_service_backup_list_with_http_info
def get_service_backup_list_with_http_info(service_id, timeout:60, latest:false, start_date_time_filter:nil, end_date_time_filter:nil, continuation_token:nil, max_results:0, custom_headers:nil) get_service_backup_list_async(service_id, timeout:timeout, latest:latest, start_date_time_filter:start_date_time_filter,...
ruby
def get_service_backup_list_with_http_info(service_id, timeout:60, latest:false, start_date_time_filter:nil, end_date_time_filter:nil, continuation_token:nil, max_results:0, custom_headers:nil) get_service_backup_list_async(service_id, timeout:timeout, latest:latest, start_date_time_filter:start_date_time_filter,...
[ "def", "get_service_backup_list_with_http_info", "(", "service_id", ",", "timeout", ":", "60", ",", "latest", ":", "false", ",", "start_date_time_filter", ":", "nil", ",", "end_date_time_filter", ":", "nil", ",", "continuation_token", ":", "nil", ",", "max_results",...
Gets the list of backups available for every partition in this service. Returns a list of backups available for every partition in this Service Fabric service. The server enumerates all the backups available in the backup store configured in the backup policy. It also allows filtering of the result based on start ...
[ "Gets", "the", "list", "of", "backups", "available", "for", "every", "partition", "in", "this", "service", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_service_fabric/lib/6.2.0.9/generated/azure_service_fabric/service_fabric_client_apis.rb#L24357-L24359
train
Gets the backup list of the specified service.
[ 30522, 13366, 2131, 1035, 2326, 1035, 10200, 1035, 2862, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 2326, 1035, 8909, 1010, 2051, 5833, 1024, 3438, 1010, 6745, 1024, 6270, 1010, 2707, 1035, 3058, 1035, 2051, 1035, 11307, 1024, 9152, 2140, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
ruby-protobuf/protobuf
lib/protobuf/message.rb
Protobuf.Message.each_field
def each_field return to_enum(:each_field) unless block_given? self.class.all_fields.each do |field| value = self[field.name] yield(field, value) end end
ruby
def each_field return to_enum(:each_field) unless block_given? self.class.all_fields.each do |field| value = self[field.name] yield(field, value) end end
[ "def", "each_field", "return", "to_enum", "(", ":each_field", ")", "unless", "block_given?", "self", ".", "class", ".", "all_fields", ".", "each", "do", "|", "field", "|", "value", "=", "self", "[", "field", ".", "name", "]", "yield", "(", "field", ",", ...
Iterate over every field, invoking the given block
[ "Iterate", "over", "every", "field", "invoking", "the", "given", "block" ]
a2e0cbb783d49d37648c07d795dc4f7eb8d14eb1
https://github.com/ruby-protobuf/protobuf/blob/a2e0cbb783d49d37648c07d795dc4f7eb8d14eb1/lib/protobuf/message.rb#L63-L70
train
Yields the result of the block for each field.
[ 30522, 13366, 2169, 1035, 2492, 2709, 2000, 1035, 4372, 2819, 1006, 1024, 2169, 1035, 2492, 1007, 4983, 3796, 1035, 2445, 1029, 2969, 1012, 2465, 1012, 2035, 1035, 4249, 1012, 2169, 2079, 1064, 2492, 1064, 3643, 1027, 2969, 1031, 2492, 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...
wearefine/fae
app/helpers/fae/form_helper.rb
Fae.FormHelper.set_prompt
def set_prompt(f, attribute, options) options[:prompt] = 'Select One' if is_association?(f, attribute) && f.object.class.reflect_on_association(attribute).macro == :belongs_to && options[:prompt].nil? && !options[:two_pane] end
ruby
def set_prompt(f, attribute, options) options[:prompt] = 'Select One' if is_association?(f, attribute) && f.object.class.reflect_on_association(attribute).macro == :belongs_to && options[:prompt].nil? && !options[:two_pane] end
[ "def", "set_prompt", "(", "f", ",", "attribute", ",", "options", ")", "options", "[", ":prompt", "]", "=", "'Select One'", "if", "is_association?", "(", "f", ",", "attribute", ")", "&&", "f", ".", "object", ".", "class", ".", "reflect_on_association", "(",...
sets default prompt for pulldowns
[ "sets", "default", "prompt", "for", "pulldowns" ]
645d6b66945aeff54e27af6a95c4f8a1f7a67d39
https://github.com/wearefine/fae/blob/645d6b66945aeff54e27af6a95c4f8a1f7a67d39/app/helpers/fae/form_helper.rb#L194-L196
train
Set the prompt for the given attribute
[ 30522, 13366, 2275, 1035, 25732, 1006, 1042, 1010, 17961, 1010, 7047, 1007, 7047, 1031, 1024, 25732, 1033, 1027, 1005, 7276, 2028, 1005, 2065, 2003, 1035, 2523, 1029, 1006, 1042, 1010, 17961, 1007, 1004, 1004, 1042, 1012, 4874, 1012, 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_web/lib/2018-02-01/generated/azure_mgmt_web/app_service_environments.rb
Azure::Web::Mgmt::V2018_02_01.AppServiceEnvironments.begin_change_vnet
def begin_change_vnet(resource_group_name, name, vnet_info, custom_headers:nil) first_page = begin_change_vnet_as_lazy(resource_group_name, name, vnet_info, custom_headers:custom_headers) first_page.get_all_items end
ruby
def begin_change_vnet(resource_group_name, name, vnet_info, custom_headers:nil) first_page = begin_change_vnet_as_lazy(resource_group_name, name, vnet_info, custom_headers:custom_headers) first_page.get_all_items end
[ "def", "begin_change_vnet", "(", "resource_group_name", ",", "name", ",", "vnet_info", ",", "custom_headers", ":", "nil", ")", "first_page", "=", "begin_change_vnet_as_lazy", "(", "resource_group_name", ",", "name", ",", "vnet_info", ",", "custom_headers", ":custom_he...
Move an App Service Environment to a different VNET. Move an App Service Environment to a different VNET. @param resource_group_name [String] Name of the resource group to which the resource belongs. @param name [String] Name of the App Service Environment. @param vnet_info [VirtualNetworkProfile] Details for th...
[ "Move", "an", "App", "Service", "Environment", "to", "a", "different", "VNET", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_web/lib/2018-02-01/generated/azure_mgmt_web/app_service_environments.rb#L4383-L4386
train
Changes the virtual network.
[ 30522, 13366, 4088, 1035, 2689, 1035, 1058, 7159, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 2171, 1010, 1058, 7159, 1035, 18558, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 2034, 1035, 3931, 1027, 4088, 1035, 2689, 1035, 1058, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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_face/lib/1.0/generated/azure_cognitiveservices_face/large_person_group_person.rb
Azure::CognitiveServices::Face::V1_0.LargePersonGroupPerson.update_face
def update_face(large_person_group_id, person_id, persisted_face_id, user_data:nil, custom_headers:nil) response = update_face_async(large_person_group_id, person_id, persisted_face_id, user_data:user_data, custom_headers:custom_headers).value! nil end
ruby
def update_face(large_person_group_id, person_id, persisted_face_id, user_data:nil, custom_headers:nil) response = update_face_async(large_person_group_id, person_id, persisted_face_id, user_data:user_data, custom_headers:custom_headers).value! nil end
[ "def", "update_face", "(", "large_person_group_id", ",", "person_id", ",", "persisted_face_id", ",", "user_data", ":", "nil", ",", "custom_headers", ":", "nil", ")", "response", "=", "update_face_async", "(", "large_person_group_id", ",", "person_id", ",", "persiste...
Update a person persisted face's userData field. @param large_person_group_id [String] Id referencing a particular large person group. @param person_id Id referencing a particular person. @param persisted_face_id Id referencing a particular persistedFaceId of an existing face. @param user_data [String] User-prov...
[ "Update", "a", "person", "persisted", "face", "s", "userData", "field", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_cognitiveservices_face/lib/1.0/generated/azure_cognitiveservices_face/large_person_group_person.rb#L772-L775
train
Updates a persisted face.
[ 30522, 13366, 10651, 1035, 2227, 1006, 2312, 1035, 2711, 1035, 2177, 1035, 8909, 1010, 2711, 1035, 8909, 1010, 19035, 1035, 2227, 1035, 8909, 1010, 5310, 1035, 2951, 1024, 9152, 2140, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
roo-rb/roo
lib/roo/open_office.rb
Roo.OpenOffice.find_cipher
def find_cipher(*args) fail ArgumentError, 'Unknown algorithm ' + algorithm unless args[0] == 'http://www.w3.org/2001/04/xmlenc#aes256-cbc' cipher = ::OpenSSL::Cipher.new('AES-256-CBC') cipher.decrypt cipher.padding = 0 cipher.key = find_cipher_key(cipher, *args[1..4]) cipher.iv...
ruby
def find_cipher(*args) fail ArgumentError, 'Unknown algorithm ' + algorithm unless args[0] == 'http://www.w3.org/2001/04/xmlenc#aes256-cbc' cipher = ::OpenSSL::Cipher.new('AES-256-CBC') cipher.decrypt cipher.padding = 0 cipher.key = find_cipher_key(cipher, *args[1..4]) cipher.iv...
[ "def", "find_cipher", "(", "*", "args", ")", "fail", "ArgumentError", ",", "'Unknown algorithm '", "+", "algorithm", "unless", "args", "[", "0", "]", "==", "'http://www.w3.org/2001/04/xmlenc#aes256-cbc'", "cipher", "=", "::", "OpenSSL", "::", "Cipher", ".", "new",...
Create a cipher based on an ODS algorithm URI from manifest.xml params: algorithm, key_derivation_name, hashed_password, salt, iteration_count, iv
[ "Create", "a", "cipher", "based", "on", "an", "ODS", "algorithm", "URI", "from", "manifest", ".", "xml", "params", ":", "algorithm", "key_derivation_name", "hashed_password", "salt", "iteration_count", "iv" ]
4ec1104f0c3c2a29711c0c907371cd2be12bcc3c
https://github.com/roo-rb/roo/blob/4ec1104f0c3c2a29711c0c907371cd2be12bcc3c/lib/roo/open_office.rb#L348-L358
train
Find the cipher to use for the given key.
[ 30522, 13366, 2424, 1035, 27715, 1006, 1008, 12098, 5620, 1007, 8246, 6685, 2121, 29165, 1010, 1005, 4242, 9896, 1005, 1009, 9896, 4983, 12098, 5620, 1031, 1014, 1033, 1027, 1027, 1005, 8299, 1024, 1013, 1013, 7479, 1012, 1059, 2509, 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
data/azure_cognitiveservices_luisauthoring/lib/2.0/generated/azure_cognitiveservices_luisauthoring/versions.rb
Azure::CognitiveServices::LuisAuthoring::V2_0.Versions.export
def export(app_id, version_id, custom_headers:nil) response = export_async(app_id, version_id, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def export(app_id, version_id, custom_headers:nil) response = export_async(app_id, version_id, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "export", "(", "app_id", ",", "version_id", ",", "custom_headers", ":", "nil", ")", "response", "=", "export_async", "(", "app_id", ",", "version_id", ",", "custom_headers", ":custom_headers", ")", ".", "value!", "response", ".", "body", "unless", "resp...
Exports a LUIS application to JSON format. @param app_id The application ID. @param version_id [String] The version ID. @param custom_headers [Hash{String => String}] A hash of custom headers that will be added to the HTTP request. @return [LuisApp] operation results.
[ "Exports", "a", "LUIS", "application", "to", "JSON", "format", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_cognitiveservices_luisauthoring/lib/2.0/generated/azure_cognitiveservices_luisauthoring/versions.rb#L552-L555
train
Export a version of the application to a version of the application.
[ 30522, 13366, 9167, 1006, 10439, 1035, 8909, 1010, 2544, 1035, 8909, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 9167, 1035, 2004, 6038, 2278, 1006, 10439, 1035, 8909, 1010, 2544, 1035, 8909, 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_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_with_http_info
def get_application_health_with_http_info(application_id, events_health_state_filter:0, deployed_applications_health_state_filter:0, services_health_state_filter:0, exclude_health_statistics:false, timeout:60, custom_headers:nil) get_application_health_async(application_id, events_health_state_filter:events_healt...
ruby
def get_application_health_with_http_info(application_id, events_health_state_filter:0, deployed_applications_health_state_filter:0, services_health_state_filter:0, exclude_health_statistics:false, timeout:60, custom_headers:nil) get_application_health_async(application_id, events_health_state_filter:events_healt...
[ "def", "get_application_health_with_http_info", "(", "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 the service fabric application. Returns the heath state of the service fabric application. The response reports either Ok, Error or Warning health state. If the entity is not found in the health store, it will return Error. @param application_id [String] The identity of the application. This is...
[ "Gets", "the", "health", "of", "the", "service", "fabric", "application", "." ]
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#L6980-L6982
train
Gets application health.
[ 30522, 13366, 2131, 1035, 4646, 1035, 2740, 1035, 2007, 1035, 8299, 1035, 18558, 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, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_recovery_services_site_recovery/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/replicationv_centers.rb
Azure::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10.ReplicationvCenters.begin_create_with_http_info
def begin_create_with_http_info(fabric_name, v_center_name, add_vcenter_request, custom_headers:nil) begin_create_async(fabric_name, v_center_name, add_vcenter_request, custom_headers:custom_headers).value! end
ruby
def begin_create_with_http_info(fabric_name, v_center_name, add_vcenter_request, custom_headers:nil) begin_create_async(fabric_name, v_center_name, add_vcenter_request, custom_headers:custom_headers).value! end
[ "def", "begin_create_with_http_info", "(", "fabric_name", ",", "v_center_name", ",", "add_vcenter_request", ",", "custom_headers", ":", "nil", ")", "begin_create_async", "(", "fabric_name", ",", "v_center_name", ",", "add_vcenter_request", ",", "custom_headers", ":custom_...
Add vCenter. The operation to create a vCenter object.. @param fabric_name [String] Fabric name. @param v_center_name [String] vCenter name. @param add_vcenter_request [AddVCenterRequest] The input to the add vCenter operation. @param custom_headers [Hash{String => String}] A hash of custom headers that will b...
[ "Add", "vCenter", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_recovery_services_site_recovery/lib/2018-01-10/generated/azure_mgmt_recovery_services_site_recovery/replicationv_centers.rb#L482-L484
train
Creates a virtual network vCenter.
[ 30522, 13366, 4088, 1035, 3443, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 8313, 1035, 2171, 1010, 1058, 1035, 2415, 1035, 2171, 1010, 5587, 1035, 18315, 29110, 1035, 5227, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 4088, 1035, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
square/connect-ruby-sdk
lib/square_connect/api/v1_items_api.rb
SquareConnect.V1ItemsApi.list_pages
def list_pages(location_id, opts = {}) data, _status_code, _headers = list_pages_with_http_info(location_id, opts) return data end
ruby
def list_pages(location_id, opts = {}) data, _status_code, _headers = list_pages_with_http_info(location_id, opts) return data end
[ "def", "list_pages", "(", "location_id", ",", "opts", "=", "{", "}", ")", "data", ",", "_status_code", ",", "_headers", "=", "list_pages_with_http_info", "(", "location_id", ",", "opts", ")", "return", "data", "end" ]
ListPages Lists all of a location's Favorites pages in Square Register. @param location_id The ID of the location to list Favorites pages for. @param [Hash] opts the optional parameters @return [Array<V1Page>]
[ "ListPages", "Lists", "all", "of", "a", "location", "s", "Favorites", "pages", "in", "Square", "Register", "." ]
798eb9ded716f23b9f1518386f1c311a34bca8bf
https://github.com/square/connect-ruby-sdk/blob/798eb9ded716f23b9f1518386f1c311a34bca8bf/lib/square_connect/api/v1_items_api.rb#L1578-L1581
train
Returns a list of pages in a location.
[ 30522, 13366, 2862, 1035, 5530, 1006, 3295, 1035, 8909, 1010, 23569, 2015, 1027, 1063, 1065, 1007, 2951, 1010, 1035, 3570, 1035, 3642, 1010, 1035, 20346, 2015, 1027, 2862, 1035, 5530, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 3295, 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_compute/lib/2018-09-30/generated/azure_mgmt_compute/disks.rb
Azure::Compute::Mgmt::V2018_09_30.Disks.begin_delete
def begin_delete(resource_group_name, disk_name, custom_headers:nil) response = begin_delete_async(resource_group_name, disk_name, custom_headers:custom_headers).value! nil end
ruby
def begin_delete(resource_group_name, disk_name, custom_headers:nil) response = begin_delete_async(resource_group_name, disk_name, custom_headers:custom_headers).value! nil end
[ "def", "begin_delete", "(", "resource_group_name", ",", "disk_name", ",", "custom_headers", ":", "nil", ")", "response", "=", "begin_delete_async", "(", "resource_group_name", ",", "disk_name", ",", "custom_headers", ":custom_headers", ")", ".", "value!", "nil", "en...
Deletes a disk. @param resource_group_name [String] The name of the resource group. @param disk_name [String] The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters....
[ "Deletes", "a", "disk", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_compute/lib/2018-09-30/generated/azure_mgmt_compute/disks.rb#L783-L786
train
Deletes a disk.
[ 30522, 13366, 4088, 1035, 3972, 12870, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 9785, 1035, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 4088, 1035, 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...
gollum/gollum
lib/gollum/app.rb
Precious.App.commit_message
def commit_message msg = (params[:message].nil? or params[:message].empty?) ? "[no message]" : params[:message] commit_message = { :message => msg } author_parameters = session['gollum.author'] commit_message.merge! author_parameters unless author_parameters.nil? commit_me...
ruby
def commit_message msg = (params[:message].nil? or params[:message].empty?) ? "[no message]" : params[:message] commit_message = { :message => msg } author_parameters = session['gollum.author'] commit_message.merge! author_parameters unless author_parameters.nil? commit_me...
[ "def", "commit_message", "msg", "=", "(", "params", "[", ":message", "]", ".", "nil?", "or", "params", "[", ":message", "]", ".", "empty?", ")", "?", "\"[no message]\"", ":", "params", "[", ":message", "]", "commit_message", "=", "{", ":message", "=>", "...
Options parameter to Gollum::Committer#initialize :message - The String commit message. :name - The String author full name. :email - The String email address. message is sourced from the incoming request parameters author details are sourced from the session, to be populated by rack middlew...
[ "Options", "parameter", "to", "Gollum", "::", "Committer#initialize", ":", "message", "-", "The", "String", "commit", "message", ".", ":", "name", "-", "The", "String", "author", "full", "name", ".", ":", "email", "-", "The", "String", "email", "address", ...
f44367c31baac5c154888a9e09b2833fa62e1c61
https://github.com/gollum/gollum/blob/f44367c31baac5c154888a9e09b2833fa62e1c61/lib/gollum/app.rb#L577-L583
train
commit message
[ 30522, 13366, 10797, 1035, 4471, 5796, 2290, 1027, 1006, 11498, 5244, 1031, 1024, 4471, 1033, 1012, 9152, 2140, 1029, 2030, 11498, 5244, 1031, 1024, 4471, 1033, 1012, 4064, 1029, 1007, 1029, 1000, 1031, 2053, 4471, 1033, 1000, 1024, 11498, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_web/lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb
Azure::Web::Mgmt::V2018_02_01.Diagnostics.list_site_analyses_with_http_info
def list_site_analyses_with_http_info(resource_group_name, site_name, diagnostic_category, custom_headers:nil) list_site_analyses_async(resource_group_name, site_name, diagnostic_category, custom_headers:custom_headers).value! end
ruby
def list_site_analyses_with_http_info(resource_group_name, site_name, diagnostic_category, custom_headers:nil) list_site_analyses_async(resource_group_name, site_name, diagnostic_category, custom_headers:custom_headers).value! end
[ "def", "list_site_analyses_with_http_info", "(", "resource_group_name", ",", "site_name", ",", "diagnostic_category", ",", "custom_headers", ":", "nil", ")", "list_site_analyses_async", "(", "resource_group_name", ",", "site_name", ",", "diagnostic_category", ",", "custom_h...
Get Site Analyses Get Site Analyses @param resource_group_name [String] Name of the resource group to which the resource belongs. @param site_name [String] Site Name @param diagnostic_category [String] Diagnostic Category @param custom_headers [Hash{String => String}] A hash of custom headers that will be adde...
[ "Get", "Site", "Analyses" ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_web/lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb#L713-L715
train
Gets the list of site analyses.
[ 30522, 13366, 2862, 1035, 2609, 1035, 16478, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 7692, 1035, 2177, 1035, 2171, 30524, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 2862, 1035, 2609, 1035, 16478, 1035, 2004, 6038, 2278, 1006, 7692, 1035,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
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.execute_command_with_http_info
def execute_command_with_http_info(resource_group_name, container_group_name, container_name, container_exec_request, custom_headers:nil) execute_command_async(resource_group_name, container_group_name, container_name, container_exec_request, custom_headers:custom_headers).value! end
ruby
def execute_command_with_http_info(resource_group_name, container_group_name, container_name, container_exec_request, custom_headers:nil) execute_command_async(resource_group_name, container_group_name, container_name, container_exec_request, custom_headers:custom_headers).value! end
[ "def", "execute_command_with_http_info", "(", "resource_group_name", ",", "container_group_name", ",", "container_name", ",", "container_exec_request", ",", "custom_headers", ":", "nil", ")", "execute_command_async", "(", "resource_group_name", ",", "container_group_name", ",...
Executes a command in a specific container instance. Executes a command for a specific 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_n...
[ "Executes", "a", "command", "in", "a", "specific", "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#L175-L177
train
Execute a command on a container.
[ 30522, 13366, 15389, 1035, 3094, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 11661, 1035, 2177, 1035, 2171, 1010, 11661, 1035, 2171, 1010, 11661, 1035, 4654, 8586, 1035, 5227, 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_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/origins.rb
Azure::CDN::Mgmt::V2015_06_01.Origins.create
def create(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil) response = create_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def create(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil) response = create_async(origin_name, origin_properties, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "create", "(", "origin_name", ",", "origin_properties", ",", "endpoint_name", ",", "profile_name", ",", "resource_group_name", ",", "custom_headers", ":", "nil", ")", "response", "=", "create_async", "(", "origin_name", ",", "origin_properties", ",", "endpoin...
Creates a new CDN origin within an endpoint. @param origin_name [String] Name of the origin, an arbitrary value but it needs to be unique under endpoint @param origin_properties [OriginParameters] Origin properties @param endpoint_name [String] Name of the endpoint within the CDN profile. @param profile_name [Str...
[ "Creates", "a", "new", "CDN", "origin", "within", "an", "endpoint", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/origins.rb#L254-L257
train
Creates an origin.
[ 30522, 13366, 3443, 1006, 4761, 1035, 2171, 1010, 4761, 1035, 5144, 1010, 2203, 8400, 1035, 2171, 1010, 6337, 1035, 2171, 1010, 7692, 1035, 2177, 1035, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 3443, 1035, 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
roo-rb/roo
lib/roo/open_office.rb
Roo.OpenOffice.set_cell_values
def set_cell_values(sheet, x, y, i, v, value_type, formula, table_cell, str_v, style_name) key = [y, x + i] @cell_type[sheet] ||= {} @cell_type[sheet][key] = value_type.to_sym if value_type @formula[sheet] ||= {} if formula ['of:', 'oooc:'].each do |prefix| if formula[0, ...
ruby
def set_cell_values(sheet, x, y, i, v, value_type, formula, table_cell, str_v, style_name) key = [y, x + i] @cell_type[sheet] ||= {} @cell_type[sheet][key] = value_type.to_sym if value_type @formula[sheet] ||= {} if formula ['of:', 'oooc:'].each do |prefix| if formula[0, ...
[ "def", "set_cell_values", "(", "sheet", ",", "x", ",", "y", ",", "i", ",", "v", ",", "value_type", ",", "formula", ",", "table_cell", ",", "str_v", ",", "style_name", ")", "key", "=", "[", "y", ",", "x", "+", "i", "]", "@cell_type", "[", "sheet", ...
helper function to set the internal representation of cells
[ "helper", "function", "to", "set", "the", "internal", "representation", "of", "cells" ]
4ec1104f0c3c2a29711c0c907371cd2be12bcc3c
https://github.com/roo-rb/roo/blob/4ec1104f0c3c2a29711c0c907371cd2be12bcc3c/lib/roo/open_office.rb#L408-L447
train
set cell values
[ 30522, 13366, 2275, 1035, 3526, 1035, 5300, 1006, 7123, 1010, 1060, 1010, 1061, 1010, 1045, 1010, 1058, 1010, 3643, 1035, 2828, 1010, 5675, 1010, 2795, 1035, 3526, 1010, 2358, 2099, 1035, 1058, 1010, 2806, 1035, 2171, 1007, 3145, 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...
fluent/fluentd
lib/fluent/time.rb
Fluent.TimeParser.parse
def parse(value) unless value.is_a?(String) raise TimeParseError, "value must be string: #{value}" end if @cache1_key == value return @cache1_time elsif @cache2_key == value return @cache2_time else begin time = @parse.call(value) rescue =...
ruby
def parse(value) unless value.is_a?(String) raise TimeParseError, "value must be string: #{value}" end if @cache1_key == value return @cache1_time elsif @cache2_key == value return @cache2_time else begin time = @parse.call(value) rescue =...
[ "def", "parse", "(", "value", ")", "unless", "value", ".", "is_a?", "(", "String", ")", "raise", "TimeParseError", ",", "\"value must be string: #{value}\"", "end", "if", "@cache1_key", "==", "value", "return", "@cache1_time", "elsif", "@cache2_key", "==", "value"...
TODO: new cache mechanism using format string
[ "TODO", ":", "new", "cache", "mechanism", "using", "format", "string" ]
add2af9a5b7f74fc36957b8e6138b3c5a2871a92
https://github.com/fluent/fluentd/blob/add2af9a5b7f74fc36957b8e6138b3c5a2871a92/lib/fluent/time.rb#L224-L245
train
Parse a time value.
[ 30522, 13366, 11968, 3366, 1006, 3643, 1007, 4983, 3643, 1012, 2003, 1035, 1037, 1029, 1006, 5164, 1007, 5333, 2051, 19362, 19763, 18933, 2099, 1010, 1000, 3643, 2442, 2022, 5164, 1024, 1001, 1063, 3643, 1065, 1000, 2203, 2065, 1030, 17053,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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/group.rb
Aws::IAM.Group.create
def create(options = {}) options = options.merge(group_name: @name) resp = @client.create_group(options) Group.new( name: options[:group_name], data: resp.data.group, client: @client ) end
ruby
def create(options = {}) options = options.merge(group_name: @name) resp = @client.create_group(options) Group.new( name: options[:group_name], data: resp.data.group, client: @client ) end
[ "def", "create", "(", "options", "=", "{", "}", ")", "options", "=", "options", ".", "merge", "(", "group_name", ":", "@name", ")", "resp", "=", "@client", ".", "create_group", "(", "options", ")", "Group", ".", "new", "(", "name", ":", "options", "[...
@example Request syntax with placeholder values group = group.create({ path: "pathType", }) @param [Hash] options ({}) @option options [String] :path The path to the group. For more information about paths, see [IAM Identifiers][1] in the *IAM User Guide*. This parameter is optional. If it is no...
[ "@example", "Request", "syntax", "with", "placeholder", "values" ]
e28b8d320ddf7b6ee0161bdd9d00fb786d99b63d
https://github.com/aws/aws-sdk-ruby/blob/e28b8d320ddf7b6ee0161bdd9d00fb786d99b63d/gems/aws-sdk-iam/lib/aws-sdk-iam/group.rb#L283-L291
train
Creates a new group
[ 30522, 13366, 3443, 1006, 7047, 1027, 1063, 1065, 1007, 7047, 1027, 7047, 1012, 13590, 1006, 2177, 1035, 2171, 1024, 1030, 2171, 1007, 24501, 2361, 1027, 1030, 7396, 1012, 3443, 1035, 2177, 1006, 7047, 1007, 2177, 1012, 2047, 1006, 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...
mongodb/mongoid
lib/mongoid/inspectable.rb
Mongoid.Inspectable.inspect_fields
def inspect_fields fields.map do |name, field| unless name == "_id" as = field.options[:as] "#{name}#{as ? "(#{as})" : nil}: #{@attributes[name].inspect}" end end.compact end
ruby
def inspect_fields fields.map do |name, field| unless name == "_id" as = field.options[:as] "#{name}#{as ? "(#{as})" : nil}: #{@attributes[name].inspect}" end end.compact end
[ "def", "inspect_fields", "fields", ".", "map", "do", "|", "name", ",", "field", "|", "unless", "name", "==", "\"_id\"", "as", "=", "field", ".", "options", "[", ":as", "]", "\"#{name}#{as ? \"(#{as})\" : nil}: #{@attributes[name].inspect}\"", "end", "end", ".", ...
Get an array of inspected fields for the document. @api private @example Inspect the defined fields. document.inspect_fields @return [ String ] An array of pretty printed field values. @since 1.0.0
[ "Get", "an", "array", "of", "inspected", "fields", "for", "the", "document", "." ]
56976e32610f4c2450882b0bfe14da099f0703f4
https://github.com/mongodb/mongoid/blob/56976e32610f4c2450882b0bfe14da099f0703f4/lib/mongoid/inspectable.rb#L37-L44
train
inspect the fields
[ 30522, 13366, 22459, 1035, 4249, 4249, 1012, 4949, 2079, 1064, 2171, 1010, 2492, 1064, 4983, 2171, 1027, 1027, 1000, 1035, 8909, 1000, 2004, 1027, 2492, 1012, 7047, 1031, 1024, 2004, 1033, 1000, 1001, 1063, 2171, 1065, 1001, 1063, 2004, 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/managers.rb
Azure::StorSimple8000Series::Mgmt::V2017_06_01.Managers.list_feature_support_status_with_http_info
def list_feature_support_status_with_http_info(resource_group_name, manager_name, filter:nil, custom_headers:nil) list_feature_support_status_async(resource_group_name, manager_name, filter:filter, custom_headers:custom_headers).value! end
ruby
def list_feature_support_status_with_http_info(resource_group_name, manager_name, filter:nil, custom_headers:nil) list_feature_support_status_async(resource_group_name, manager_name, filter:filter, custom_headers:custom_headers).value! end
[ "def", "list_feature_support_status_with_http_info", "(", "resource_group_name", ",", "manager_name", ",", "filter", ":", "nil", ",", "custom_headers", ":", "nil", ")", "list_feature_support_status_async", "(", "resource_group_name", ",", "manager_name", ",", "filter", ":...
Lists the features and their support status @param resource_group_name [String] The resource group name @param manager_name [String] The manager name @param filter [String] OData Filter options @param custom_headers [Hash{String => String}] A hash of custom headers that will be added to the HTTP request. @retur...
[ "Lists", "the", "features", "and", "their", "support", "status" ]
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/managers.rb#L1204-L1206
train
Gets the feature support status of the specified resource group.
[ 30522, 13366, 2862, 1035, 3444, 1035, 2490, 1035, 3570, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 3208, 1035, 2171, 1010, 11307, 1024, 9152, 2140, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
github/linguist
samples/Ruby/inflector.rb
ActiveSupport.Inflector.underscore
def underscore(camel_cased_word) word = camel_cased_word.to_s.dup word.gsub!('::', '/') word.gsub!(/(?:([A-Za-z\d])|^)(#{inflections.acronym_regex})(?=\b|[^a-z])/) { "#{$1}#{$1 && '_'}#{$2.downcase}" } word.gsub!(/([A-Z\d]+)([A-Z][a-z])/,'\1_\2') word.gsub!(/([a-z\d])([A-Z])/,'\1_\2') ...
ruby
def underscore(camel_cased_word) word = camel_cased_word.to_s.dup word.gsub!('::', '/') word.gsub!(/(?:([A-Za-z\d])|^)(#{inflections.acronym_regex})(?=\b|[^a-z])/) { "#{$1}#{$1 && '_'}#{$2.downcase}" } word.gsub!(/([A-Z\d]+)([A-Z][a-z])/,'\1_\2') word.gsub!(/([a-z\d])([A-Z])/,'\1_\2') ...
[ "def", "underscore", "(", "camel_cased_word", ")", "word", "=", "camel_cased_word", ".", "to_s", ".", "dup", "word", ".", "gsub!", "(", "'::'", ",", "'/'", ")", "word", ".", "gsub!", "(", "/", "\\d", "#{", "inflections", ".", "acronym_regex", "}", "\\b",...
Makes an underscored, lowercase form from the expression in the string. Changes '::' to '/' to convert namespaces to paths. "ActiveModel".underscore # => "active_model" "ActiveModel::Errors".underscore # => "active_model/errors" As a rule of thumb you can think of +underscore+ as the inverse of +came...
[ "Makes", "an", "underscored", "lowercase", "form", "from", "the", "expression", "in", "the", "string", "." ]
9116c90fcbb82ac03b4b33c58cfbde1fcf745e99
https://github.com/github/linguist/blob/9116c90fcbb82ac03b4b33c58cfbde1fcf745e99/samples/Ruby/inflector.rb#L74-L83
train
Convert camel cased word to underscored word
[ 30522, 13366, 2104, 9363, 2890, 1006, 19130, 1035, 2553, 2094, 1035, 2773, 1007, 2773, 1027, 19130, 1035, 2553, 2094, 1035, 2773, 1012, 2000, 1035, 1055, 1012, 4241, 2361, 2773, 1012, 28177, 12083, 999, 1006, 1005, 1024, 1024, 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...
github/linguist
samples/Ruby/inflector.rb
ActiveSupport.Inflector.safe_constantize
def safe_constantize(camel_cased_word) begin constantize(camel_cased_word) rescue NameError => e raise unless e.message =~ /(uninitialized constant|wrong constant name) #{const_regexp(camel_cased_word)}$/ || e.name.to_s == camel_cased_word.to_s rescue ArgumentError => e ...
ruby
def safe_constantize(camel_cased_word) begin constantize(camel_cased_word) rescue NameError => e raise unless e.message =~ /(uninitialized constant|wrong constant name) #{const_regexp(camel_cased_word)}$/ || e.name.to_s == camel_cased_word.to_s rescue ArgumentError => e ...
[ "def", "safe_constantize", "(", "camel_cased_word", ")", "begin", "constantize", "(", "camel_cased_word", ")", "rescue", "NameError", "=>", "e", "raise", "unless", "e", ".", "message", "=~", "/", "#{", "const_regexp", "(", "camel_cased_word", ")", "}", "/", "|...
Tries to find a constant with the name specified in the argument string: "Module".safe_constantize # => Module "Test::Unit".safe_constantize # => Test::Unit The name is assumed to be the one of a top-level constant, no matter whether it starts with "::" or not. No lexical context is taken into account: ...
[ "Tries", "to", "find", "a", "constant", "with", "the", "name", "specified", "in", "the", "argument", "string", ":" ]
9116c90fcbb82ac03b4b33c58cfbde1fcf745e99
https://github.com/github/linguist/blob/9116c90fcbb82ac03b4b33c58cfbde1fcf745e99/samples/Ruby/inflector.rb#L249-L258
train
Return the result of the constantize method for the given camel_cased_word.
[ 30522, 13366, 3647, 1035, 5377, 4697, 1006, 19130, 1035, 2553, 2094, 1035, 2773, 1007, 4088, 5377, 4697, 1006, 19130, 1035, 2553, 2094, 1035, 2773, 1007, 5343, 2171, 2121, 29165, 1027, 1028, 1041, 5333, 4983, 1041, 1012, 4471, 1027, 1066, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
github/linguist
samples/Ruby/sinatra.rb
Sinatra.Helpers.stream
def stream(keep_open = false) scheduler = env['async.callback'] ? EventMachine : Stream current = @params.dup body Stream.new(scheduler, keep_open) { |out| with_params(current) { yield(out) } } end
ruby
def stream(keep_open = false) scheduler = env['async.callback'] ? EventMachine : Stream current = @params.dup body Stream.new(scheduler, keep_open) { |out| with_params(current) { yield(out) } } end
[ "def", "stream", "(", "keep_open", "=", "false", ")", "scheduler", "=", "env", "[", "'async.callback'", "]", "?", "EventMachine", ":", "Stream", "current", "=", "@params", ".", "dup", "body", "Stream", ".", "new", "(", "scheduler", ",", "keep_open", ")", ...
Allows to start sending data to the client even though later parts of the response body have not yet been generated. The close parameter specifies whether Stream#close should be called after the block has been executed. This is only relevant for evented servers like Thin or Rainbows.
[ "Allows", "to", "start", "sending", "data", "to", "the", "client", "even", "though", "later", "parts", "of", "the", "response", "body", "have", "not", "yet", "been", "generated", "." ]
9116c90fcbb82ac03b4b33c58cfbde1fcf745e99
https://github.com/github/linguist/blob/9116c90fcbb82ac03b4b33c58cfbde1fcf745e99/samples/Ruby/sinatra.rb#L343-L347
train
Creates a new Stream with the current params
[ 30522, 13366, 5460, 1006, 2562, 1035, 2330, 1027, 6270, 1007, 6134, 2099, 1027, 4372, 2615, 1031, 1005, 2004, 6038, 2278, 1012, 2655, 5963, 1005, 1033, 1029, 2724, 22911, 14014, 1024, 5460, 2783, 1027, 1030, 11498, 5244, 1012, 4241, 2361, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
projectcypress/health-data-standards
lib/hqmf-parser/2.0/precondition.rb
HQMF2.Precondition.to_model
def to_model pcs = @preconditions.collect(&:to_model) mr = @reference ? @reference.to_model : nil cc = @conjunction HQMF::Precondition.new(@id, pcs, mr, cc, @negation) end
ruby
def to_model pcs = @preconditions.collect(&:to_model) mr = @reference ? @reference.to_model : nil cc = @conjunction HQMF::Precondition.new(@id, pcs, mr, cc, @negation) end
[ "def", "to_model", "pcs", "=", "@preconditions", ".", "collect", "(", ":to_model", ")", "mr", "=", "@reference", "?", "@reference", ".", "to_model", ":", "nil", "cc", "=", "@conjunction", "HQMF", "::", "Precondition", ".", "new", "(", "@id", ",", "pcs", ...
Generates this classes hqmf-model equivalent
[ "Generates", "this", "classes", "hqmf", "-", "model", "equivalent" ]
252d4f0927c513eacde6b9ea41b76faa1423c34b
https://github.com/projectcypress/health-data-standards/blob/252d4f0927c513eacde6b9ea41b76faa1423c34b/lib/hqmf-parser/2.0/precondition.rb#L66-L71
train
Returns the model index for this condition.
[ 30522, 13366, 2000, 1035, 2944, 27019, 1027, 1030, 3653, 8663, 20562, 2015, 1012, 8145, 1006, 1004, 1024, 2000, 1035, 2944, 1007, 2720, 1027, 1030, 4431, 1029, 1030, 4431, 1012, 2000, 1035, 2944, 1024, 9152, 2140, 10507, 1027, 1030, 9595, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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/managers.rb
Azure::StorSimple8000Series::Mgmt::V2017_06_01.Managers.list_metrics_with_http_info
def list_metrics_with_http_info(resource_group_name, manager_name, filter, custom_headers:nil) list_metrics_async(resource_group_name, manager_name, filter, custom_headers:custom_headers).value! end
ruby
def list_metrics_with_http_info(resource_group_name, manager_name, filter, custom_headers:nil) list_metrics_async(resource_group_name, manager_name, filter, custom_headers:custom_headers).value! end
[ "def", "list_metrics_with_http_info", "(", "resource_group_name", ",", "manager_name", ",", "filter", ",", "custom_headers", ":", "nil", ")", "list_metrics_async", "(", "resource_group_name", ",", "manager_name", ",", "filter", ",", "custom_headers", ":custom_headers", ...
Gets the metrics for the specified manager. @param resource_group_name [String] The resource group name @param manager_name [String] The manager name @param filter [String] OData Filter options @param custom_headers [Hash{String => String}] A hash of custom headers that will be added to the HTTP request. @retur...
[ "Gets", "the", "metrics", "for", "the", "specified", "manager", "." ]
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/managers.rb#L1490-L1492
train
Gets metrics for the specified resource group.
[ 30522, 13366, 2862, 1035, 12046, 2015, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 3208, 1035, 2171, 1010, 11307, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 2862, 1035, 12046, 2015, 1035, 2004,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...