repo
stringclasses
235 values
path
stringlengths
11
168
func_name
stringlengths
12
143
original_string
stringlengths
83
6.91k
language
stringclasses
1 value
code
stringlengths
83
6.91k
code_tokens
listlengths
15
1.01k
docstring
stringlengths
5
25.7k
docstring_tokens
listlengths
1
427
sha
stringclasses
235 values
url
stringlengths
99
268
partition
stringclasses
1 value
summary
stringlengths
7
202
input_ids
listlengths
502
502
token_type_ids
listlengths
502
502
attention_mask
listlengths
502
502
labels
listlengths
502
502
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.create_certificate
def create_certificate(vault_base_url, certificate_name, certificate_policy:nil, certificate_attributes:nil, tags:nil, custom_headers:nil) response = create_certificate_async(vault_base_url, certificate_name, certificate_policy:certificate_policy, certificate_attributes:certificate_attributes, tags:tags, custom_h...
ruby
def create_certificate(vault_base_url, certificate_name, certificate_policy:nil, certificate_attributes:nil, tags:nil, custom_headers:nil) response = create_certificate_async(vault_base_url, certificate_name, certificate_policy:certificate_policy, certificate_attributes:certificate_attributes, tags:tags, custom_h...
[ "def", "create_certificate", "(", "vault_base_url", ",", "certificate_name", ",", "certificate_policy", ":", "nil", ",", "certificate_attributes", ":", "nil", ",", "tags", ":", "nil", ",", "custom_headers", ":", "nil", ")", "response", "=", "create_certificate_async...
Creates a new certificate. If this is the first version, the certificate resource is created. This operation requires the certificates/create permission. @param vault_base_url [String] The vault name, for example https://myvault.vault.azure.net. @param certificate_name [String] The name of the certificate. @par...
[ "Creates", "a", "new", "certificate", "." ]
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#L5160-L5163
train
Creates a new certificate in the specified vault.
[ 30522, 13366, 3443, 1035, 8196, 1006, 11632, 1035, 2918, 1035, 24471, 2140, 1010, 8196, 1035, 2171, 1010, 8196, 1035, 3343, 1024, 9152, 2140, 1010, 8196, 1035, 12332, 1024, 9152, 2140, 1010, 22073, 1024, 9152, 2140, 1010, 7661, 1035, 20346,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
awesome-print/awesome_print
lib/awesome_print/ext/nokogiri.rb
AwesomePrint.Nokogiri.awesome_nokogiri_xml_node
def awesome_nokogiri_xml_node(object) if object.is_a?(::Nokogiri::XML::NodeSet) && object.empty? return '[]' end xml = object.to_xml(indent: 2) # # Colorize tag, id/class name, and contents. # xml.gsub!(/(<)(\/?[A-Za-z1-9]+)/) { |tag| "#{$1}#{colorize($2, :keyword)}" } ...
ruby
def awesome_nokogiri_xml_node(object) if object.is_a?(::Nokogiri::XML::NodeSet) && object.empty? return '[]' end xml = object.to_xml(indent: 2) # # Colorize tag, id/class name, and contents. # xml.gsub!(/(<)(\/?[A-Za-z1-9]+)/) { |tag| "#{$1}#{colorize($2, :keyword)}" } ...
[ "def", "awesome_nokogiri_xml_node", "(", "object", ")", "if", "object", ".", "is_a?", "(", "::", "Nokogiri", "::", "XML", "::", "NodeSet", ")", "&&", "object", ".", "empty?", "return", "'[]'", "end", "xml", "=", "object", ".", "to_xml", "(", "indent", ":...
------------------------------------------------------------------------------
[ "------------------------------------------------------------------------------" ]
4564fd74721562cbef2443f7d97109bf9192343d
https://github.com/awesome-print/awesome_print/blob/4564fd74721562cbef2443f7d97109bf9192343d/lib/awesome_print/ext/nokogiri.rb#L26-L41
train
Returns a string representation of the given object as a Nokogiri XML node.
[ 30522, 13366, 12476, 1035, 2053, 3683, 23243, 1035, 20950, 1035, 13045, 1006, 4874, 1007, 2065, 4874, 1012, 2003, 1035, 1037, 1029, 1006, 1024, 1024, 2053, 3683, 23243, 1024, 1024, 20950, 1024, 1024, 14164, 3388, 1007, 1004, 1004, 4874, 101...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/disaster_recovery_configurations.rb
Azure::SQL::Mgmt::V2014_04_01.DisasterRecoveryConfigurations.begin_failover_allow_data_loss_with_http_info
def begin_failover_allow_data_loss_with_http_info(resource_group_name, server_name, disaster_recovery_configuration_name, custom_headers:nil) begin_failover_allow_data_loss_async(resource_group_name, server_name, disaster_recovery_configuration_name, custom_headers:custom_headers).value! end
ruby
def begin_failover_allow_data_loss_with_http_info(resource_group_name, server_name, disaster_recovery_configuration_name, custom_headers:nil) begin_failover_allow_data_loss_async(resource_group_name, server_name, disaster_recovery_configuration_name, custom_headers:custom_headers).value! end
[ "def", "begin_failover_allow_data_loss_with_http_info", "(", "resource_group_name", ",", "server_name", ",", "disaster_recovery_configuration_name", ",", "custom_headers", ":", "nil", ")", "begin_failover_allow_data_loss_async", "(", "resource_group_name", ",", "server_name", ","...
Fails over from the current primary server to this server. This operation might result in data loss. @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 t...
[ "Fails", "over", "from", "the", "current", "primary", "server", "to", "this", "server", ".", "This", "operation", "might", "result", "in", "data", "loss", "." ]
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#L766-L768
train
Enables data loss of the specified server.
[ 30522, 13366, 4088, 1035, 8246, 7840, 1035, 3499, 1035, 2951, 1035, 3279, 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, 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_api_management/lib/2018-01-01/generated/azure_mgmt_api_management/subscription.rb
Azure::ApiManagement::Mgmt::V2018_01_01.Subscription.update_with_http_info
def update_with_http_info(resource_group_name, service_name, sid, parameters, if_match, notify:nil, custom_headers:nil) update_async(resource_group_name, service_name, sid, parameters, if_match, notify:notify, custom_headers:custom_headers).value! end
ruby
def update_with_http_info(resource_group_name, service_name, sid, parameters, if_match, notify:nil, custom_headers:nil) update_async(resource_group_name, service_name, sid, parameters, if_match, notify:notify, custom_headers:custom_headers).value! end
[ "def", "update_with_http_info", "(", "resource_group_name", ",", "service_name", ",", "sid", ",", "parameters", ",", "if_match", ",", "notify", ":", "nil", ",", "custom_headers", ":", "nil", ")", "update_async", "(", "resource_group_name", ",", "service_name", ","...
Updates the details of a subscription specified by its identifier. @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 association between a user and a ...
[ "Updates", "the", "details", "of", "a", "subscription", "specified", "by", "its", "identifier", "." ]
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#L563-L565
train
Updates a service s index.
[ 30522, 13366, 10651, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 2326, 1035, 2171, 1010, 15765, 1010, 11709, 1010, 2065, 1035, 2674, 1010, 2025, 8757, 1024, 9152, 2140, 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_cognitiveservices_face/lib/1.0/generated/azure_cognitiveservices_face/snapshot_operations.rb
Azure::CognitiveServices::Face::V1_0.SnapshotOperations.take
def take(type, object_id, apply_scope, user_data:nil, custom_headers:nil) response = take_async(type, object_id, apply_scope, user_data:user_data, custom_headers:custom_headers).value! nil end
ruby
def take(type, object_id, apply_scope, user_data:nil, custom_headers:nil) response = take_async(type, object_id, apply_scope, user_data:user_data, custom_headers:custom_headers).value! nil end
[ "def", "take", "(", "type", ",", "object_id", ",", "apply_scope", ",", "user_data", ":", "nil", ",", "custom_headers", ":", "nil", ")", "response", "=", "take_async", "(", "type", ",", "object_id", ",", "apply_scope", ",", "user_data", ":user_data", ",", "...
Submit an operation to take a snapshot of face list, large face list, person group or large person group, with user-specified snapshot type, source object id, apply scope and an optional user data.<br /> The snapshot interfaces are for users to backup and restore their face data from one face subscription to anothe...
[ "Submit", "an", "operation", "to", "take", "a", "snapshot", "of", "face", "list", "large", "face", "list", "person", "group", "or", "large", "person", "group", "with", "user", "-", "specified", "snapshot", "type", "source", "object", "id", "apply", "scope", ...
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_cognitiveservices_face/lib/1.0/generated/azure_cognitiveservices_face/snapshot_operations.rb#L75-L78
train
Take a sequence of objects of the specified type.
[ 30522, 13366, 2202, 1006, 2828, 1010, 4874, 1035, 8909, 1010, 6611, 1035, 9531, 1010, 5310, 1035, 2951, 1024, 9152, 2140, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 2202, 1035, 2004, 6038, 2278, 1006, 2828, 1010, 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...
rails/sprockets
lib/sprockets/dependencies.rb
Sprockets.Dependencies.register_dependency_resolver
def register_dependency_resolver(scheme, &block) self.config = hash_reassoc(config, :dependency_resolvers) do |hash| hash.merge(scheme => block) end end
ruby
def register_dependency_resolver(scheme, &block) self.config = hash_reassoc(config, :dependency_resolvers) do |hash| hash.merge(scheme => block) end end
[ "def", "register_dependency_resolver", "(", "scheme", ",", "&", "block", ")", "self", ".", "config", "=", "hash_reassoc", "(", "config", ",", ":dependency_resolvers", ")", "do", "|", "hash", "|", "hash", ".", "merge", "(", "scheme", "=>", "block", ")", "en...
Public: Register new dependency URI resolver. scheme - String scheme block - environment - Environment uri - String dependency URI Returns nothing.
[ "Public", ":", "Register", "new", "dependency", "URI", "resolver", "." ]
9e3f0d8e98c44f57e67bc138db87bb8469bf5ddd
https://github.com/rails/sprockets/blob/9e3f0d8e98c44f57e67bc138db87bb8469bf5ddd/lib/sprockets/dependencies.rb#L37-L41
train
Register a dependency resolver for a given scheme.
[ 30522, 13366, 4236, 1035, 24394, 1035, 10663, 2099, 1006, 5679, 1010, 1004, 3796, 1007, 2969, 1012, 9530, 8873, 2290, 1027, 23325, 1035, 2128, 12054, 10085, 1006, 9530, 8873, 2290, 1010, 1024, 24394, 1035, 10663, 2869, 1007, 2079, 1064, 233...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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/vpc.rb
Aws::EC2.Vpc.delete
def delete(options = {}) options = options.merge(vpc_id: @id) resp = @client.delete_vpc(options) resp.data end
ruby
def delete(options = {}) options = options.merge(vpc_id: @id) resp = @client.delete_vpc(options) resp.data end
[ "def", "delete", "(", "options", "=", "{", "}", ")", "options", "=", "options", ".", "merge", "(", "vpc_id", ":", "@id", ")", "resp", "=", "@client", ".", "delete_vpc", "(", "options", ")", "resp", ".", "data", "end" ]
@example Request syntax with placeholder values vpc.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 have the requi...
[ "@example", "Request", "syntax", "with", "placeholder", "values" ]
e28b8d320ddf7b6ee0161bdd9d00fb786d99b63d
https://github.com/aws/aws-sdk-ruby/blob/e28b8d320ddf7b6ee0161bdd9d00fb786d99b63d/gems/aws-sdk-ec2/lib/aws-sdk-ec2/vpc.rb#L512-L516
train
Delete a VPC
[ 30522, 13366, 3972, 12870, 1006, 7047, 1027, 1063, 1065, 1007, 7047, 1027, 7047, 1012, 13590, 1006, 21210, 2278, 1035, 8909, 1024, 30524, 1030, 7396, 1012, 3972, 12870, 1035, 21210, 2278, 1006, 7047, 1007, 24501, 2361, 1012, 2951, 2203, 102...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_api_management/lib/2019-01-01/generated/azure_mgmt_api_management/user_identities.rb
Azure::ApiManagement::Mgmt::V2019_01_01.UserIdentities.list
def list(resource_group_name, service_name, user_id, custom_headers:nil) first_page = list_as_lazy(resource_group_name, service_name, user_id, custom_headers:custom_headers) first_page.get_all_items end
ruby
def list(resource_group_name, service_name, user_id, custom_headers:nil) first_page = list_as_lazy(resource_group_name, service_name, user_id, custom_headers:custom_headers) first_page.get_all_items end
[ "def", "list", "(", "resource_group_name", ",", "service_name", ",", "user_id", ",", "custom_headers", ":", "nil", ")", "first_page", "=", "list_as_lazy", "(", "resource_group_name", ",", "service_name", ",", "user_id", ",", "custom_headers", ":custom_headers", ")",...
List of all user identities. @param resource_group_name [String] The name of the resource group. @param service_name [String] The name of the API Management service. @param user_id [String] User identifier. Must be unique in the current API Management service instance. @param custom_headers [Hash{String => String...
[ "List", "of", "all", "user", "identities", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_api_management/lib/2019-01-01/generated/azure_mgmt_api_management/user_identities.rb#L36-L39
train
Gets all the items in a given user s list of a given VulnerabilityAssessment.
[ 30522, 13366, 2862, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 2326, 1035, 2171, 1010, 5310, 1035, 8909, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 2034, 1035, 3931, 1027, 2862, 1035, 2004, 1035, 13971, 1006, 7692, 1035, 2177, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_recovery_services_backup/lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/operation.rb
Azure::RecoveryServicesBackup::Mgmt::V2017_07_01.Operation.validate_with_http_info
def validate_with_http_info(vault_name, resource_group_name, parameters, custom_headers:nil) validate_async(vault_name, resource_group_name, parameters, custom_headers:custom_headers).value! end
ruby
def validate_with_http_info(vault_name, resource_group_name, parameters, custom_headers:nil) validate_async(vault_name, resource_group_name, parameters, custom_headers:custom_headers).value! end
[ "def", "validate_with_http_info", "(", "vault_name", ",", "resource_group_name", ",", "parameters", ",", "custom_headers", ":", "nil", ")", "validate_async", "(", "vault_name", ",", "resource_group_name", ",", "parameters", ",", "custom_headers", ":custom_headers", ")",...
Validate operation for specified backed up item. This is a synchronous operation. @param vault_name [String] The name of the recovery services vault. @param resource_group_name [String] The name of the resource group where the recovery services vault is present. @param parameters [ValidateOperationRequest] resour...
[ "Validate", "operation", "for", "specified", "backed", "up", "item", ".", "This", "is", "a", "synchronous", "operation", "." ]
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/operation.rb#L61-L63
train
Validates the specified data set.
[ 30522, 13366, 9398, 3686, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 11632, 1035, 2171, 1010, 7692, 1035, 2177, 1035, 2171, 1010, 11709, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 9398, 3686, 1035, 2004, 6038, 2278, 1006, 11632,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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/error.rb
SquareConnect.Error.category=
def category=(category) validator = EnumAttributeValidator.new('String', ["API_ERROR", "AUTHENTICATION_ERROR", "INVALID_REQUEST_ERROR", "RATE_LIMIT_ERROR", "PAYMENT_METHOD_ERROR", "REFUND_ERROR"]) unless validator.valid?(category) fail ArgumentError, "invalid value for 'category', must be one of #{v...
ruby
def category=(category) validator = EnumAttributeValidator.new('String', ["API_ERROR", "AUTHENTICATION_ERROR", "INVALID_REQUEST_ERROR", "RATE_LIMIT_ERROR", "PAYMENT_METHOD_ERROR", "REFUND_ERROR"]) unless validator.valid?(category) fail ArgumentError, "invalid value for 'category', must be one of #{v...
[ "def", "category", "=", "(", "category", ")", "validator", "=", "EnumAttributeValidator", ".", "new", "(", "'String'", ",", "[", "\"API_ERROR\"", ",", "\"AUTHENTICATION_ERROR\"", ",", "\"INVALID_REQUEST_ERROR\"", ",", "\"RATE_LIMIT_ERROR\"", ",", "\"PAYMENT_METHOD_ERROR...
Custom attribute writer method checking allowed values (enum). @param [Object] category 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/error.rb#L124-L130
train
Sets the category of the request.
[ 30522, 13366, 4696, 1027, 1006, 4696, 1007, 9398, 8844, 1027, 4372, 12248, 4779, 3089, 8569, 2618, 10175, 8524, 4263, 1012, 2047, 1006, 1005, 5164, 1005, 1010, 1031, 1000, 17928, 1035, 7561, 1000, 1010, 1000, 27280, 1035, 7561, 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...
Azure/azure-sdk-for-ruby
data/azure_service_fabric/lib/6.2.0.9/generated/azure_service_fabric/service_fabric_client_apis.rb
Azure::ServiceFabric::V6_2_0_9.ServiceFabricClientAPIs.get_deployed_service_package_health
def get_deployed_service_package_health(node_name, application_id, service_package_name, events_health_state_filter:0, timeout:60, custom_headers:nil) response = get_deployed_service_package_health_async(node_name, application_id, service_package_name, events_health_state_filter:events_health_state_filter, timeou...
ruby
def get_deployed_service_package_health(node_name, application_id, service_package_name, events_health_state_filter:0, timeout:60, custom_headers:nil) response = get_deployed_service_package_health_async(node_name, application_id, service_package_name, events_health_state_filter:events_health_state_filter, timeou...
[ "def", "get_deployed_service_package_health", "(", "node_name", ",", "application_id", ",", "service_package_name", ",", "events_health_state_filter", ":", "0", ",", "timeout", ":", "60", ",", "custom_headers", ":", "nil", ")", "response", "=", "get_deployed_service_pac...
Gets the information about health of an service package for a specific application deployed for a Service Fabric node and application. Gets the information about health of service package for a specific application deployed on a Service Fabric node. Use EventsHealthStateFilter to optionally filter for the collecti...
[ "Gets", "the", "information", "about", "health", "of", "an", "service", "package", "for", "a", "specific", "application", "deployed", "for", "a", "Service", "Fabric", "node", "and", "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#L16311-L16314
train
Gets the health of the service package deployed to a Service Fabric node.
[ 30522, 13366, 2131, 1035, 7333, 1035, 2326, 1035, 7427, 1035, 2740, 1006, 13045, 1035, 2171, 1010, 4646, 1035, 8909, 1010, 2326, 1035, 7427, 1035, 2171, 1010, 2824, 1035, 2740, 1035, 2110, 1035, 11307, 1024, 1014, 1010, 2051, 5833, 1024, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_hdinsight/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/configurations.rb
Azure::Hdinsight::Mgmt::V2018_06_01_preview.Configurations.begin_update
def begin_update(resource_group_name, cluster_name, configuration_name, parameters, custom_headers:nil) response = begin_update_async(resource_group_name, cluster_name, configuration_name, parameters, custom_headers:custom_headers).value! nil end
ruby
def begin_update(resource_group_name, cluster_name, configuration_name, parameters, custom_headers:nil) response = begin_update_async(resource_group_name, cluster_name, configuration_name, parameters, custom_headers:custom_headers).value! nil end
[ "def", "begin_update", "(", "resource_group_name", ",", "cluster_name", ",", "configuration_name", ",", "parameters", ",", "custom_headers", ":", "nil", ")", "response", "=", "begin_update_async", "(", "resource_group_name", ",", "cluster_name", ",", "configuration_name...
Configures the HTTP settings on the specified cluster. This API is deprecated, please use UpdateGatewaySettings in cluster endpoint instead. @param resource_group_name [String] The name of the resource group. @param cluster_name [String] The name of the cluster. @param configuration_name [String] The name of the c...
[ "Configures", "the", "HTTP", "settings", "on", "the", "specified", "cluster", ".", "This", "API", "is", "deprecated", "please", "use", "UpdateGatewaySettings", "in", "cluster", "endpoint", "instead", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_hdinsight/lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/configurations.rb#L288-L291
train
Updates a cluster configuration.
[ 30522, 13366, 4088, 1035, 10651, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 9324, 1035, 2171, 1010, 9563, 1035, 2171, 1010, 11709, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 4088, 1035, 10651, 1035, 2004, 6038, 2278, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
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.delete_image_store_upload_session
def delete_image_store_upload_session(session_id, timeout:60, custom_headers:nil) response = delete_image_store_upload_session_async(session_id, timeout:timeout, custom_headers:custom_headers).value! nil end
ruby
def delete_image_store_upload_session(session_id, timeout:60, custom_headers:nil) response = delete_image_store_upload_session_async(session_id, timeout:timeout, custom_headers:custom_headers).value! nil end
[ "def", "delete_image_store_upload_session", "(", "session_id", ",", "timeout", ":", "60", ",", "custom_headers", ":", "nil", ")", "response", "=", "delete_image_store_upload_session_async", "(", "session_id", ",", "timeout", ":", "timeout", ",", "custom_headers", ":cu...
Cancels an image store upload session. The DELETE request will cause the existing upload session to expire and remove any previously uploaded file chunks. @param session_id A GUID generated by the user for a file uploading. It identifies an image store upload session which keeps track of all file chunks until it...
[ "Cancels", "an", "image", "store", "upload", "session", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_service_fabric/lib/6.2.0.9/generated/azure_service_fabric/service_fabric_client_apis.rb#L19731-L19734
train
Deletes an image store upload session.
[ 30522, 13366, 3972, 12870, 1035, 3746, 1035, 3573, 1035, 2039, 11066, 1035, 5219, 1006, 5219, 1035, 8909, 1010, 2051, 5833, 1024, 3438, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 3972, 12870, 1035, 3746, 1035, 3573, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
randym/axlsx
lib/axlsx/drawing/one_cell_anchor.rb
Axlsx.OneCellAnchor.to_xml_string
def to_xml_string(str = '') str << '<xdr:oneCellAnchor>' str << '<xdr:from>' from.to_xml_string(str) str << '</xdr:from>' str << ('<xdr:ext cx="' << ext[:cx].to_s << '" cy="' << ext[:cy].to_s << '"/>') @object.to_xml_string(str) str << '<xdr:clientData/>' str << '</xdr:on...
ruby
def to_xml_string(str = '') str << '<xdr:oneCellAnchor>' str << '<xdr:from>' from.to_xml_string(str) str << '</xdr:from>' str << ('<xdr:ext cx="' << ext[:cx].to_s << '" cy="' << ext[:cy].to_s << '"/>') @object.to_xml_string(str) str << '<xdr:clientData/>' str << '</xdr:on...
[ "def", "to_xml_string", "(", "str", "=", "''", ")", "str", "<<", "'<xdr:oneCellAnchor>'", "str", "<<", "'<xdr:from>'", "from", ".", "to_xml_string", "(", "str", ")", "str", "<<", "'</xdr:from>'", "str", "<<", "(", "'<xdr:ext cx=\"'", "<<", "ext", "[", ":cx",...
Serializes the object @param [String] str @return [String]
[ "Serializes", "the", "object" ]
c593a08b2a929dac7aa8dc418b55e26b4c49dc34
https://github.com/randym/axlsx/blob/c593a08b2a929dac7aa8dc418b55e26b4c49dc34/lib/axlsx/drawing/one_cell_anchor.rb#L76-L85
train
Returns the XML string for this cell.
[ 30522, 13366, 2000, 1035, 20950, 1035, 5164, 1006, 2358, 2099, 1027, 1005, 1005, 1007, 2358, 2099, 1026, 1026, 1005, 1026, 1060, 13626, 1024, 2028, 29109, 5802, 9905, 2099, 1028, 1005, 2358, 2099, 1026, 1026, 1005, 1026, 1060, 13626, 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...
devise-security/devise-security
lib/devise-security/schema.rb
DeviseSecurity.Schema.password_archivable
def password_archivable apply_devise_schema :encrypted_password, String, limit: 128, null: false apply_devise_schema :password_salt, String apply_devise_schema :password_archivable_id, Integer, null: false apply_devise_schema :password_archivable_type, String, null: false apply_devise_sche...
ruby
def password_archivable apply_devise_schema :encrypted_password, String, limit: 128, null: false apply_devise_schema :password_salt, String apply_devise_schema :password_archivable_id, Integer, null: false apply_devise_schema :password_archivable_type, String, null: false apply_devise_sche...
[ "def", "password_archivable", "apply_devise_schema", ":encrypted_password", ",", "String", ",", "limit", ":", "128", ",", "null", ":", "false", "apply_devise_schema", ":password_salt", ",", "String", "apply_devise_schema", ":password_archivable_id", ",", "Integer", ",", ...
Add password_archivable columns Examples create_table :old_passwords do t.password_archivable end add_index :old_passwords, [:password_archivable_type, :password_archivable_id], name: 'index_password_archivable'
[ "Add", "password_archivable", "columns" ]
d0b44a7bb249f6763641f45d34dd52e7fda3fca2
https://github.com/devise-security/devise-security/blob/d0b44a7bb249f6763641f45d34dd52e7fda3fca2/lib/devise-security/schema.rb#L34-L40
train
Apply the password archivable schema to the object.
[ 30522, 13366, 20786, 1035, 7905, 11444, 3468, 6611, 1035, 14386, 3366, 1035, 8040, 28433, 1024, 4372, 26775, 22571, 3064, 1035, 20786, 1010, 5164, 1010, 5787, 1024, 11899, 1010, 19701, 1024, 6270, 6611, 1035, 14386, 3366, 1035, 8040, 28433, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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_detector_responses_as_lazy
def list_site_detector_responses_as_lazy(resource_group_name, site_name, custom_headers:nil) response = list_site_detector_responses_async(resource_group_name, site_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page...
ruby
def list_site_detector_responses_as_lazy(resource_group_name, site_name, custom_headers:nil) response = list_site_detector_responses_async(resource_group_name, site_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page...
[ "def", "list_site_detector_responses_as_lazy", "(", "resource_group_name", ",", "site_name", ",", "custom_headers", ":", "nil", ")", "response", "=", "list_site_detector_responses_async", "(", "resource_group_name", ",", "site_name", ",", "custom_headers", ":custom_headers", ...
List Site Detector Responses List Site Detector Responses @param resource_group_name [String] Name of the resource group to which the resource belongs. @param site_name [String] Site Name @param custom_headers [Hash{String => String}] A hash of custom headers that will be added to the HTTP request. @return [D...
[ "List", "Site", "Detector", "Responses" ]
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#L3595-L3604
train
Gets the list of detector responses for a site.
[ 30522, 13366, 2862, 1035, 2609, 1035, 19034, 1035, 10960, 1035, 2004, 1035, 13971, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 2609, 1035, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 2862, 1035, 2609, 1035, 19034,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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_transactions_api.rb
SquareConnect.V1TransactionsApi.update_order
def update_order(location_id, order_id, body, opts = {}) data, _status_code, _headers = update_order_with_http_info(location_id, order_id, body, opts) return data end
ruby
def update_order(location_id, order_id, body, opts = {}) data, _status_code, _headers = update_order_with_http_info(location_id, order_id, body, opts) return data end
[ "def", "update_order", "(", "location_id", ",", "order_id", ",", "body", ",", "opts", "=", "{", "}", ")", "data", ",", "_status_code", ",", "_headers", "=", "update_order_with_http_info", "(", "location_id", ",", "order_id", ",", "body", ",", "opts", ")", ...
UpdateOrder Updates the details of an online store order. Every update you perform on an order corresponds to one of three actions: @param location_id The ID of the order&#39;s associated location. @param order_id The order&#39;s Square-issued ID. You obtain this value from Order objects returned by the List Orders ...
[ "UpdateOrder", "Updates", "the", "details", "of", "an", "online", "store", "order", ".", "Every", "update", "you", "perform", "on", "an", "order", "corresponds", "to", "one", "of", "three", "actions", ":" ]
798eb9ded716f23b9f1518386f1c311a34bca8bf
https://github.com/square/connect-ruby-sdk/blob/798eb9ded716f23b9f1518386f1c311a34bca8bf/lib/square_connect/api/v1_transactions_api.rb#L672-L675
train
UpdateOrder Update an order
[ 30522, 13366, 10651, 1035, 2344, 1006, 3295, 1035, 8909, 1010, 2344, 1035, 8909, 1010, 2303, 1010, 23569, 2015, 1027, 1063, 1065, 1007, 30524, 1035, 8299, 1035, 18558, 1006, 3295, 1035, 8909, 1010, 2344, 1035, 8909, 1010, 2303, 1010, 23569,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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.amendments_for
def amendments_for(amendable) return unless amendable.amendable? && amendable.emendations.count.positive? content = content_tag(:h2, class: "section-heading", id: "amendments") do t("section_heading", scope: "decidim.amendments.amendable", count: amendable.emendations.count) end conten...
ruby
def amendments_for(amendable) return unless amendable.amendable? && amendable.emendations.count.positive? content = content_tag(:h2, class: "section-heading", id: "amendments") do t("section_heading", scope: "decidim.amendments.amendable", count: amendable.emendations.count) end conten...
[ "def", "amendments_for", "(", "amendable", ")", "return", "unless", "amendable", ".", "amendable?", "&&", "amendable", ".", "emendations", ".", "count", ".", "positive?", "content", "=", "content_tag", "(", ":h2", ",", "class", ":", "\"section-heading\"", ",", ...
Renders the emendations of an amendable resource Returns Html grid of CardM.
[ "Renders", "the", "emendations", "of", "an", "amendable", "resource" ]
6e2b14e559a63088669904e3c5c49a5180700cf7
https://github.com/decidim/decidim/blob/6e2b14e559a63088669904e3c5c49a5180700cf7/decidim-core/app/helpers/decidim/amendments_helper.rb#L9-L23
train
Returns a list of amendments for the given amendable.
[ 30522, 13366, 16051, 1035, 2005, 1006, 27950, 3085, 1007, 2709, 4983, 27950, 3085, 1012, 27950, 3085, 1029, 1004, 1004, 27950, 3085, 1012, 7861, 10497, 10708, 1012, 4175, 1012, 3893, 1029, 4180, 1027, 4180, 1035, 6415, 1006, 1024, 1044, 247...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
oauth-xx/oauth2
lib/oauth2/client.rb
OAuth2.Client.build_access_token
def build_access_token(response, access_token_opts, access_token_class) access_token_class.from_hash(self, response.parsed.merge(access_token_opts)).tap do |access_token| access_token.response = response if access_token.respond_to?(:response=) end end
ruby
def build_access_token(response, access_token_opts, access_token_class) access_token_class.from_hash(self, response.parsed.merge(access_token_opts)).tap do |access_token| access_token.response = response if access_token.respond_to?(:response=) end end
[ "def", "build_access_token", "(", "response", ",", "access_token_opts", ",", "access_token_class", ")", "access_token_class", ".", "from_hash", "(", "self", ",", "response", ".", "parsed", ".", "merge", "(", "access_token_opts", ")", ")", ".", "tap", "do", "|", ...
Builds the access token from the response of the HTTP call @return [AccessToken] the initialized AccessToken
[ "Builds", "the", "access", "token", "from", "the", "response", "of", "the", "HTTP", "call" ]
f08ff9da169136ab133aa2faab0d74a4407deffb
https://github.com/oauth-xx/oauth2/blob/f08ff9da169136ab133aa2faab0d74a4407deffb/lib/oauth2/client.rb#L221-L225
train
Builds an access token from a response hash
[ 30522, 13366, 3857, 1035, 3229, 1035, 19204, 1006, 3433, 1010, 3229, 1035, 19204, 1035, 23569, 2015, 1010, 3229, 1035, 19204, 1035, 2465, 1007, 3229, 1035, 19204, 1035, 2465, 1012, 2013, 1035, 23325, 1006, 2969, 1010, 3433, 1012, 11968, 692...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
sporkmonger/addressable
lib/addressable/uri.rb
Addressable.URI.normalized_authority
def normalized_authority return nil unless self.authority @normalized_authority ||= begin authority = String.new if self.normalized_userinfo != nil authority << "#{self.normalized_userinfo}@" end authority << self.normalized_host if self.normalized_port != n...
ruby
def normalized_authority return nil unless self.authority @normalized_authority ||= begin authority = String.new if self.normalized_userinfo != nil authority << "#{self.normalized_userinfo}@" end authority << self.normalized_host if self.normalized_port != n...
[ "def", "normalized_authority", "return", "nil", "unless", "self", ".", "authority", "@normalized_authority", "||=", "begin", "authority", "=", "String", ".", "new", "if", "self", ".", "normalized_userinfo", "!=", "nil", "authority", "<<", "\"#{self.normalized_userinfo...
The authority component for this URI, normalized. @return [String] The authority component, normalized.
[ "The", "authority", "component", "for", "this", "URI", "normalized", "." ]
5894c95a7768435cb46d1355954611dbd194832e
https://github.com/sporkmonger/addressable/blob/5894c95a7768435cb46d1355954611dbd194832e/lib/addressable/uri.rb#L1221-L1239
train
Returns the authority of the URI.
[ 30522, 13366, 3671, 3550, 1035, 3691, 2709, 9152, 2140, 4983, 2969, 1012, 3691, 1030, 3671, 3550, 1035, 3691, 1064, 1064, 1027, 4088, 3691, 1027, 5164, 1012, 2047, 2065, 2969, 1012, 3671, 3550, 1035, 5310, 2378, 14876, 999, 1027, 9152, 21...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
samvera/hyrax
app/helpers/hyrax/hyrax_helper_behavior.rb
Hyrax.HyraxHelperBehavior.iconify_auto_link
def iconify_auto_link(field, show_link = true) if field.is_a? Hash options = field[:config].separator_options || {} text = field[:value].to_sentence(options) else text = field end # this block is only executed when a link is inserted; # if we pass text containing no...
ruby
def iconify_auto_link(field, show_link = true) if field.is_a? Hash options = field[:config].separator_options || {} text = field[:value].to_sentence(options) else text = field end # this block is only executed when a link is inserted; # if we pass text containing no...
[ "def", "iconify_auto_link", "(", "field", ",", "show_link", "=", "true", ")", "if", "field", ".", "is_a?", "Hash", "options", "=", "field", "[", ":config", "]", ".", "separator_options", "||", "{", "}", "text", "=", "field", "[", ":value", "]", ".", "t...
Uses Rails auto_link to add links to fields @param field [String,Hash] string to format and escape, or a hash as per helper_method @option field [SolrDocument] :document @option field [String] :field name of the solr field @option field [Blacklight::Configuration::IndexField, Blacklight::Configuration::ShowField] ...
[ "Uses", "Rails", "auto_link", "to", "add", "links", "to", "fields" ]
e2b4f56e829a53b1f11296324736e9d5b8c9ee5f
https://github.com/samvera/hyrax/blob/e2b4f56e829a53b1f11296324736e9d5b8c9ee5f/app/helpers/hyrax/hyrax_helper_behavior.rb#L171-L183
train
Returns a string with the iconified text.
[ 30522, 13366, 12696, 8757, 1035, 8285, 1035, 4957, 1006, 2492, 1010, 2265, 1035, 4957, 1027, 2995, 1007, 2065, 2492, 1012, 2003, 1035, 1037, 1029, 23325, 7047, 1027, 2492, 1031, 1024, 9530, 8873, 2290, 1033, 1012, 19802, 25879, 2953, 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/lib/fastlane/plugins/plugin_manager.rb
Fastlane.PluginManager.attach_plugins_to_gemfile!
def attach_plugins_to_gemfile!(path_to_gemfile) content = gemfile_content || (AUTOGENERATED_LINE + GEMFILE_SOURCE_LINE) # We have to make sure fastlane is also added to the Gemfile, since we now use # bundler to run fastlane content += "\ngem 'fastlane'\n" unless available_gems.include?('fastla...
ruby
def attach_plugins_to_gemfile!(path_to_gemfile) content = gemfile_content || (AUTOGENERATED_LINE + GEMFILE_SOURCE_LINE) # We have to make sure fastlane is also added to the Gemfile, since we now use # bundler to run fastlane content += "\ngem 'fastlane'\n" unless available_gems.include?('fastla...
[ "def", "attach_plugins_to_gemfile!", "(", "path_to_gemfile", ")", "content", "=", "gemfile_content", "||", "(", "AUTOGENERATED_LINE", "+", "GEMFILE_SOURCE_LINE", ")", "# We have to make sure fastlane is also added to the Gemfile, since we now use", "# bundler to run fastlane", "conte...
Modify the user's Gemfile to load the plugins
[ "Modify", "the", "user", "s", "Gemfile", "to", "load", "the", "plugins" ]
457c5d647c77f0e078dafa5129da616914e002c5
https://github.com/fastlane/fastlane/blob/457c5d647c77f0e078dafa5129da616914e002c5/fastlane/lib/fastlane/plugins/plugin_manager.rb#L142-L151
train
Attach plugins to the gemfile
[ 30522, 13366, 22476, 1035, 13354, 7076, 1035, 2000, 1035, 17070, 8873, 2571, 999, 1006, 4130, 1035, 2000, 1035, 17070, 8873, 2571, 1007, 4180, 1027, 17070, 8873, 2571, 1035, 4180, 1064, 1064, 1006, 8285, 6914, 16848, 1035, 2240, 1009, 17070...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
interagent/committee
lib/committee/schema_validator/hyper_schema/response_validator.rb
Committee.SchemaValidator::HyperSchema::ResponseValidator.target_schema
def target_schema(link) if link.target_schema link.target_schema elsif legacy_hyper_schema_rel?(link) link.parent end end
ruby
def target_schema(link) if link.target_schema link.target_schema elsif legacy_hyper_schema_rel?(link) link.parent end end
[ "def", "target_schema", "(", "link", ")", "if", "link", ".", "target_schema", "link", ".", "target_schema", "elsif", "legacy_hyper_schema_rel?", "(", "link", ")", "link", ".", "parent", "end", "end" ]
Gets the target schema of a link. This is normally just the standard response schema, but we allow some legacy behavior for hyper-schema links tagged with rel=instances to instead use the schema of their parent resource.
[ "Gets", "the", "target", "schema", "of", "a", "link", ".", "This", "is", "normally", "just", "the", "standard", "response", "schema", "but", "we", "allow", "some", "legacy", "behavior", "for", "hyper", "-", "schema", "links", "tagged", "with", "rel", "=", ...
810fadcea1bc1c529627d47325c1008b5c33b0a4
https://github.com/interagent/committee/blob/810fadcea1bc1c529627d47325c1008b5c33b0a4/lib/committee/schema_validator/hyper_schema/response_validator.rb#L69-L75
train
Returns the target schema for the given link.
[ 30522, 13366, 4539, 1035, 8040, 28433, 1006, 4957, 1007, 2065, 4957, 1012, 4539, 1035, 8040, 28433, 4957, 1012, 4539, 1035, 8040, 28433, 3449, 5332, 2546, 8027, 1035, 23760, 1035, 8040, 28433, 1035, 2128, 2140, 1029, 1006, 4957, 1007, 4957,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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/user.rb
Aws::IAM.User.update
def update(options = {}) options = options.merge(user_name: @name) resp = @client.update_user(options) User.new( name: options[:new_user_name], client: @client ) end
ruby
def update(options = {}) options = options.merge(user_name: @name) resp = @client.update_user(options) User.new( name: options[:new_user_name], client: @client ) end
[ "def", "update", "(", "options", "=", "{", "}", ")", "options", "=", "options", ".", "merge", "(", "user_name", ":", "@name", ")", "resp", "=", "@client", ".", "update_user", "(", "options", ")", "User", ".", "new", "(", "name", ":", "options", "[", ...
@example Request syntax with placeholder values user = user.update({ new_path: "pathType", new_user_name: "userNameType", }) @param [Hash] options ({}) @option options [String] :new_path New path for the IAM user. Include this parameter only if you're changing the user's path. This paramete...
[ "@example", "Request", "syntax", "with", "placeholder", "values" ]
e28b8d320ddf7b6ee0161bdd9d00fb786d99b63d
https://github.com/aws/aws-sdk-ruby/blob/e28b8d320ddf7b6ee0161bdd9d00fb786d99b63d/gems/aws-sdk-iam/lib/aws-sdk-iam/user.rb#L656-L663
train
Update the user
[ 30522, 13366, 10651, 1006, 7047, 1027, 1063, 1065, 1007, 7047, 1027, 7047, 1012, 13590, 1006, 5310, 1035, 2171, 1024, 1030, 2171, 1007, 24501, 2361, 1027, 1030, 7396, 1012, 10651, 1035, 5310, 1006, 7047, 1007, 5310, 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...
decidim/decidim
decidim-core/app/services/decidim/notification_generator.rb
Decidim.NotificationGenerator.generate
def generate return unless resource return unless event_class.types.include?(:notification) followers.each do |recipient| generate_notification_for(recipient, user_role: :follower) if ["all", "followed-only"].include?(recipient.notification_types) end affected_users.each do |reci...
ruby
def generate return unless resource return unless event_class.types.include?(:notification) followers.each do |recipient| generate_notification_for(recipient, user_role: :follower) if ["all", "followed-only"].include?(recipient.notification_types) end affected_users.each do |reci...
[ "def", "generate", "return", "unless", "resource", "return", "unless", "event_class", ".", "types", ".", "include?", "(", ":notification", ")", "followers", ".", "each", "do", "|", "recipient", "|", "generate_notification_for", "(", "recipient", ",", "user_role", ...
Initializes the class. event - A String with the name of the event. event_class - A class that wraps the event. resource - an instance of a class implementing the `Decidim::Resource` concern. followers - a collection of Users that receive the notification because they're following it affected_users - a collect...
[ "Initializes", "the", "class", "." ]
6e2b14e559a63088669904e3c5c49a5180700cf7
https://github.com/decidim/decidim/blob/6e2b14e559a63088669904e3c5c49a5180700cf7/decidim-core/app/services/decidim/notification_generator.rb#L35-L46
train
Generate the unique notification object for the event
[ 30522, 13366, 9699, 2709, 4983, 7692, 2709, 4983, 2724, 1035, 2465, 30524, 1064, 7799, 1064, 9699, 1035, 26828, 1035, 2005, 1006, 7799, 1010, 5310, 1035, 2535, 1024, 1024, 22399, 1007, 2065, 1031, 1000, 2035, 1000, 1010, 1000, 2628, 1011, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
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.get_with_http_info
def get_with_http_info(location, api_version, subscription_id, cluster_version, custom_headers:nil) get_async(location, api_version, subscription_id, cluster_version, custom_headers:custom_headers).value! end
ruby
def get_with_http_info(location, api_version, subscription_id, cluster_version, custom_headers:nil) get_async(location, api_version, subscription_id, cluster_version, custom_headers:custom_headers).value! end
[ "def", "get_with_http_info", "(", "location", ",", "api_version", ",", "subscription_id", ",", "cluster_version", ",", "custom_headers", ":", "nil", ")", "get_async", "(", "location", ",", "api_version", ",", "subscription_id", ",", "cluster_version", ",", "custom_h...
Get cluster code versions Get 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 @param cluster_ve...
[ "Get", "cluster", "code", "versions" ]
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#L61-L63
train
Gets the cluster specification.
[ 30522, 13366, 2131, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 3295, 1010, 17928, 1035, 2544, 1010, 15002, 1035, 8909, 1010, 9324, 1035, 2544, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 2131, 1035, 2004, 6038, 2278, 1006, 3295, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
randym/axlsx
lib/axlsx/drawing/drawing.rb
Axlsx.Drawing.images
def images images = @anchors.select { |a| a.object.is_a?(Pic) } images.map { |a| a.object } end
ruby
def images images = @anchors.select { |a| a.object.is_a?(Pic) } images.map { |a| a.object } end
[ "def", "images", "images", "=", "@anchors", ".", "select", "{", "|", "a", "|", "a", ".", "object", ".", "is_a?", "(", "Pic", ")", "}", "images", ".", "map", "{", "|", "a", "|", "a", ".", "object", "}", "end" ]
An array of image objects that are associated with this drawing's anchors @return [Array]
[ "An", "array", "of", "image", "objects", "that", "are", "associated", "with", "this", "drawing", "s", "anchors" ]
c593a08b2a929dac7aa8dc418b55e26b4c49dc34
https://github.com/randym/axlsx/blob/c593a08b2a929dac7aa8dc418b55e26b4c49dc34/lib/axlsx/drawing/drawing.rb#L118-L121
train
Returns the array of image objects for the image.
[ 30522, 13366, 4871, 4871, 1027, 1030, 24674, 1012, 7276, 1063, 1064, 1037, 1064, 1037, 1012, 4874, 1012, 2003, 1035, 1037, 1029, 1006, 27263, 1007, 1065, 4871, 1012, 4949, 1063, 1064, 1037, 1064, 1037, 1012, 4874, 1065, 2203, 102, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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/2017-12-01/generated/azure_mgmt_compute/virtual_machines.rb
Azure::Compute::Mgmt::V2017_12_01.VirtualMachines.run_command
def run_command(resource_group_name, vm_name, parameters, custom_headers:nil) response = run_command_async(resource_group_name, vm_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def run_command(resource_group_name, vm_name, parameters, custom_headers:nil) response = run_command_async(resource_group_name, vm_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "run_command", "(", "resource_group_name", ",", "vm_name", ",", "parameters", ",", "custom_headers", ":", "nil", ")", "response", "=", "run_command_async", "(", "resource_group_name", ",", "vm_name", ",", "parameters", ",", "custom_headers", ":custom_headers", ...
Run command on the VM. @param resource_group_name [String] The name of the resource group. @param vm_name [String] The name of the virtual machine. @param parameters [RunCommandInput] Parameters supplied to the Run command operation. @param custom_headers [Hash{String => String}] A hash of custom headers that wi...
[ "Run", "command", "on", "the", "VM", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_compute/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machines.rb#L1266-L1269
train
Runs a command on a virtual machine.
[ 30522, 13366, 2448, 1035, 3094, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 1058, 2213, 1035, 2171, 1010, 11709, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 2448, 1035, 3094, 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
data/azure_cognitiveservices_luisauthoring/lib/2.0/generated/azure_cognitiveservices_luisauthoring/model.rb
Azure::CognitiveServices::LuisAuthoring::V2_0.Model.create_custom_prebuilt_entity_role
def create_custom_prebuilt_entity_role(app_id, version_id, entity_id, entity_role_create_object, custom_headers:nil) response = create_custom_prebuilt_entity_role_async(app_id, version_id, entity_id, entity_role_create_object, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def create_custom_prebuilt_entity_role(app_id, version_id, entity_id, entity_role_create_object, custom_headers:nil) response = create_custom_prebuilt_entity_role_async(app_id, version_id, entity_id, entity_role_create_object, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "create_custom_prebuilt_entity_role", "(", "app_id", ",", "version_id", ",", "entity_id", ",", "entity_role_create_object", ",", "custom_headers", ":", "nil", ")", "response", "=", "create_custom_prebuilt_entity_role_async", "(", "app_id", ",", "version_id", ",", ...
Create a role for a prebuilt entity in a version of the application. @param app_id The application ID. @param version_id [String] The version ID. @param entity_id The entity model ID. @param entity_role_create_object [EntityRoleCreateObject] An entity role object containing the name of role. @param custom_header...
[ "Create", "a", "role", "for", "a", "prebuilt", "entity", "in", "a", "version", "of", "the", "application", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_cognitiveservices_luisauthoring/lib/2.0/generated/azure_cognitiveservices_luisauthoring/model.rb#L7832-L7835
train
Creates an entity role for a prebuilt entity in a version of the application.
[ 30522, 13366, 3443, 1035, 7661, 1035, 3653, 8569, 4014, 2102, 1035, 9178, 1035, 2535, 1006, 10439, 1035, 8909, 1010, 2544, 1035, 8909, 1010, 9178, 1035, 8909, 1010, 9178, 1035, 2535, 1035, 3443, 1035, 4874, 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_iot_hub/lib/2018-04-01/generated/azure_mgmt_iot_hub/resource_provider_common.rb
Azure::IotHub::Mgmt::V2018_04_01.ResourceProviderCommon.get_subscription_quota
def get_subscription_quota(custom_headers:nil) response = get_subscription_quota_async(custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def get_subscription_quota(custom_headers:nil) response = get_subscription_quota_async(custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "get_subscription_quota", "(", "custom_headers", ":", "nil", ")", "response", "=", "get_subscription_quota_async", "(", "custom_headers", ":custom_headers", ")", ".", "value!", "response", ".", "body", "unless", "response", ".", "nil?", "end" ]
Get the number of iot hubs in the subscription Get the number of free and paid iot hubs in the subscription @param custom_headers [Hash{String => String}] A hash of custom headers that will be added to the HTTP request. @return [UserSubscriptionQuotaListResult] operation results.
[ "Get", "the", "number", "of", "iot", "hubs", "in", "the", "subscription" ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_iot_hub/lib/2018-04-01/generated/azure_mgmt_iot_hub/resource_provider_common.rb#L34-L37
train
Gets the quota of the specified resource group.
[ 30522, 13366, 2131, 1035, 15002, 1035, 20563, 1006, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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.revoke_access
def revoke_access(resource_group_name, disk_name, custom_headers:nil) response = revoke_access_async(resource_group_name, disk_name, custom_headers:custom_headers).value! nil end
ruby
def revoke_access(resource_group_name, disk_name, custom_headers:nil) response = revoke_access_async(resource_group_name, disk_name, custom_headers:custom_headers).value! nil end
[ "def", "revoke_access", "(", "resource_group_name", ",", "disk_name", ",", "custom_headers", ":", "nil", ")", "response", "=", "revoke_access_async", "(", "resource_group_name", ",", "disk_name", ",", "custom_headers", ":custom_headers", ")", ".", "value!", "nil", "...
Revokes access to 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 c...
[ "Revokes", "access", "to", "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#L496-L499
train
Revoke access to a disk.
[ 30522, 13366, 7065, 11045, 1035, 3229, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 9785, 1035, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 7065, 11045, 1035, 3229, 1035, 2004, 6038, 2278, 1006, 7692, 1035, 2177, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_compute/lib/2018-09-30/generated/azure_mgmt_compute/disks.rb
Azure::Compute::Mgmt::V2018_09_30.Disks.create_or_update
def create_or_update(resource_group_name, disk_name, disk, custom_headers:nil) response = create_or_update_async(resource_group_name, disk_name, disk, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def create_or_update(resource_group_name, disk_name, disk, custom_headers:nil) response = create_or_update_async(resource_group_name, disk_name, disk, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "create_or_update", "(", "resource_group_name", ",", "disk_name", ",", "disk", ",", "custom_headers", ":", "nil", ")", "response", "=", "create_or_update_async", "(", "resource_group_name", ",", "disk_name", ",", "disk", ",", "custom_headers", ":custom_headers"...
Creates or updates 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 ...
[ "Creates", "or", "updates", "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#L38-L41
train
Creates or updates a disk in a specified resource group.
[ 30522, 13366, 3443, 1035, 2030, 1035, 30524, 6038, 2278, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 9785, 1035, 2171, 1010, 9785, 1010, 7661, 1035, 20346, 2015, 1024, 7661, 1035, 20346, 2015, 1007, 1012, 3643, 999, 3433, 1012, 2303, 4983, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_sql/lib/2017-03-01-preview/generated/azure_mgmt_sql/job_executions.rb
Azure::SQL::Mgmt::V2017_03_01_preview.JobExecutions.list_by_agent_as_lazy
def list_by_agent_as_lazy(resource_group_name, server_name, job_agent_name, create_time_min:nil, create_time_max:nil, end_time_min:nil, end_time_max:nil, is_active:nil, skip:nil, top:nil, custom_headers:nil) response = list_by_agent_async(resource_group_name, server_name, job_agent_name, create_time_min:create_ti...
ruby
def list_by_agent_as_lazy(resource_group_name, server_name, job_agent_name, create_time_min:nil, create_time_max:nil, end_time_min:nil, end_time_max:nil, is_active:nil, skip:nil, top:nil, custom_headers:nil) response = list_by_agent_async(resource_group_name, server_name, job_agent_name, create_time_min:create_ti...
[ "def", "list_by_agent_as_lazy", "(", "resource_group_name", ",", "server_name", ",", "job_agent_name", ",", "create_time_min", ":", "nil", ",", "create_time_max", ":", "nil", ",", "end_time_min", ":", "nil", ",", "end_time_max", ":", "nil", ",", "is_active", ":", ...
Lists all executions in a job agent. @param resource_group_name [String] The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. @param server_name [String] The name of the server. @param job_agent_name [String] The name of the job ag...
[ "Lists", "all", "executions", "in", "a", "job", "agent", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_sql/lib/2017-03-01-preview/generated/azure_mgmt_sql/job_executions.rb#L1051-L1060
train
Gets a list of all the job agents in a server.
[ 30522, 13366, 2862, 1035, 2011, 1035, 4005, 1035, 2004, 1035, 13971, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 8241, 1035, 2171, 1010, 3105, 1035, 4005, 1035, 2171, 1010, 3443, 1035, 2051, 1035, 8117, 1024, 9152, 2140, 1010, 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...
Azure/azure-sdk-for-ruby
management/azure_mgmt_compute/lib/2018-04-01/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb
Azure::Compute::Mgmt::V2018_04_01.VirtualMachineScaleSets.perform_maintenance_async
def perform_maintenance_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) # Send request promise = begin_perform_maintenance_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers) promise = promise.then do |re...
ruby
def perform_maintenance_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil) # Send request promise = begin_perform_maintenance_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers) promise = promise.then do |re...
[ "def", "perform_maintenance_async", "(", "resource_group_name", ",", "vm_scale_set_name", ",", "vm_instance_ids", ":", "nil", ",", "custom_headers", ":", "nil", ")", "# Send request", "promise", "=", "begin_perform_maintenance_async", "(", "resource_group_name", ",", "vm_...
@param resource_group_name [String] The name of the resource group. @param vm_scale_set_name [String] The name of the VM scale set. @param vm_instance_ids [VirtualMachineScaleSetVMInstanceIDs] A list of virtual machine instance IDs from the VM scale set. @param custom_headers [Hash{String => String}] A hash of cust...
[ "@param", "resource_group_name", "[", "String", "]", "The", "name", "of", "the", "resource", "group", ".", "@param", "vm_scale_set_name", "[", "String", "]", "The", "name", "of", "the", "VM", "scale", "set", ".", "@param", "vm_instance_ids", "[", "VirtualMachi...
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_compute/lib/2018-04-01/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb#L991-L1005
train
Perform maintenance of virtual machines in a VM scale set.
[ 30522, 13366, 4685, 1035, 6032, 1035, 2004, 6038, 2278, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 1058, 2213, 1035, 4094, 1035, 2275, 1035, 2171, 1010, 1058, 2213, 1035, 6013, 1035, 8909, 2015, 1024, 9152, 2140, 1010, 7661, 1035, 20346, 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...
seejohnrun/ice_cube
lib/ice_cube/schedule.rb
IceCube.Schedule.to_hash
def to_hash data = {} data[:start_time] = TimeUtil.serialize_time(start_time) data[:start_date] = data[:start_time] if IceCube.compatibility <= 11 data[:end_time] = TimeUtil.serialize_time(end_time) if end_time data[:rrules] = recurrence_rules.map(&:to_hash) if IceCube.compatibility ...
ruby
def to_hash data = {} data[:start_time] = TimeUtil.serialize_time(start_time) data[:start_date] = data[:start_time] if IceCube.compatibility <= 11 data[:end_time] = TimeUtil.serialize_time(end_time) if end_time data[:rrules] = recurrence_rules.map(&:to_hash) if IceCube.compatibility ...
[ "def", "to_hash", "data", "=", "{", "}", "data", "[", ":start_time", "]", "=", "TimeUtil", ".", "serialize_time", "(", "start_time", ")", "data", "[", ":start_date", "]", "=", "data", "[", ":start_time", "]", "if", "IceCube", ".", "compatibility", "<=", ...
Convert the schedule to a hash
[ "Convert", "the", "schedule", "to", "a", "hash" ]
fb6c657bdc4f87dfda2bf83f15c5f487b78ccabd
https://github.com/seejohnrun/ice_cube/blob/fb6c657bdc4f87dfda2bf83f15c5f487b78ccabd/lib/ice_cube/schedule.rb#L357-L373
train
Returns a hash of the current object.
[ 30522, 13366, 2000, 1035, 23325, 2951, 1027, 1063, 1065, 2951, 1031, 1024, 2707, 1035, 2051, 1033, 1027, 2051, 21823, 2140, 1012, 7642, 4697, 1035, 2051, 1006, 2707, 1035, 2051, 1007, 2951, 1031, 1024, 2707, 1035, 3058, 1033, 1027, 2951, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
data/azure_cognitiveservices_luisauthoring/lib/2.0/generated/azure_cognitiveservices_luisauthoring/model.rb
Azure::CognitiveServices::LuisAuthoring::V2_0.Model.get_hierarchical_entity_role_with_http_info
def get_hierarchical_entity_role_with_http_info(app_id, version_id, h_entity_id, role_id, custom_headers:nil) get_hierarchical_entity_role_async(app_id, version_id, h_entity_id, role_id, custom_headers:custom_headers).value! end
ruby
def get_hierarchical_entity_role_with_http_info(app_id, version_id, h_entity_id, role_id, custom_headers:nil) get_hierarchical_entity_role_async(app_id, version_id, h_entity_id, role_id, custom_headers:custom_headers).value! end
[ "def", "get_hierarchical_entity_role_with_http_info", "(", "app_id", ",", "version_id", ",", "h_entity_id", ",", "role_id", ",", "custom_headers", ":", "nil", ")", "get_hierarchical_entity_role_async", "(", "app_id", ",", "version_id", ",", "h_entity_id", ",", "role_id"...
Get one role for a given hierarchical entity in a version of the application. @param app_id The application ID. @param version_id [String] The version ID. @param h_entity_id The hierarchical entity extractor ID. @param role_id entity role ID. @param custom_headers [Hash{String => String}] A hash of custom headers...
[ "Get", "one", "role", "for", "a", "given", "hierarchical", "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#L10670-L10672
train
Gets the role of the specified hierarchical entity.
[ 30522, 13366, 2131, 1035, 25835, 1035, 9178, 1035, 2535, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 10439, 1035, 8909, 1010, 2544, 1035, 8909, 1010, 1044, 1035, 9178, 1035, 8909, 1010, 2535, 1035, 8909, 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...
fastlane/fastlane
fastlane/lib/fastlane/runner.rb
Fastlane.Runner.class_reference_from_action_alias
def class_reference_from_action_alias(method_sym) alias_found = find_alias(method_sym.to_s) return nil unless alias_found class_reference_from_action_name(alias_found.to_sym) end
ruby
def class_reference_from_action_alias(method_sym) alias_found = find_alias(method_sym.to_s) return nil unless alias_found class_reference_from_action_name(alias_found.to_sym) end
[ "def", "class_reference_from_action_alias", "(", "method_sym", ")", "alias_found", "=", "find_alias", "(", "method_sym", ".", "to_s", ")", "return", "nil", "unless", "alias_found", "class_reference_from_action_name", "(", "alias_found", ".", "to_sym", ")", "end" ]
Pass a action alias symbol (e.g. :enable_automatic_code_signing) and this method will return a reference to the action class if it exists. In case the action with this alias can't be found this method will return nil.
[ "Pass", "a", "action", "alias", "symbol", "(", "e", ".", "g", ".", ":", "enable_automatic_code_signing", ")", "and", "this", "method", "will", "return", "a", "reference", "to", "the", "action", "class", "if", "it", "exists", ".", "In", "case", "the", "ac...
457c5d647c77f0e078dafa5129da616914e002c5
https://github.com/fastlane/fastlane/blob/457c5d647c77f0e078dafa5129da616914e002c5/fastlane/lib/fastlane/runner.rb#L108-L113
train
Returns the class reference from the action name
[ 30522, 13366, 2465, 1035, 4431, 1035, 2013, 1035, 2895, 1035, 14593, 1006, 4118, 1035, 25353, 2213, 1007, 14593, 1035, 2179, 1027, 2424, 1035, 14593, 1006, 4118, 1035, 25353, 2213, 1012, 2000, 1035, 1055, 1007, 2709, 9152, 2140, 4983, 14593...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_storage/lib/2018-07-01/generated/azure_mgmt_storage/blob_services.rb
Azure::Storage::Mgmt::V2018_07_01.BlobServices.get_service_properties
def get_service_properties(resource_group_name, account_name, custom_headers:nil) response = get_service_properties_async(resource_group_name, account_name, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def get_service_properties(resource_group_name, account_name, custom_headers:nil) response = get_service_properties_async(resource_group_name, account_name, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "get_service_properties", "(", "resource_group_name", ",", "account_name", ",", "custom_headers", ":", "nil", ")", "response", "=", "get_service_properties_async", "(", "resource_group_name", ",", "account_name", ",", "custom_headers", ":custom_headers", ")", ".", ...
Gets the properties of a storage account’s Blob service, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules. @param resource_group_name [String] The name of the resource group within the user's subscription. The name is case insensitive. @param account_name [String] The name ...
[ "Gets", "the", "properties", "of", "a", "storage", "account’s", "Blob", "service", "including", "properties", "for", "Storage", "Analytics", "and", "CORS", "(", "Cross", "-", "Origin", "Resource", "Sharing", ")", "rules", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_storage/lib/2018-07-01/generated/azure_mgmt_storage/blob_services.rb#L167-L170
train
Gets the service properties of the specified HDInsight account.
[ 30522, 13366, 2131, 1035, 2326, 1035, 5144, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 4070, 1035, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 2131, 1035, 2326, 1035, 5144, 1035, 2004, 6038, 2278, 1006, 7692, 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_container_registry/lib/2017-03-01/generated/azure_mgmt_container_registry/registries.rb
Azure::ContainerRegistry::Mgmt::V2017_03_01.Registries.begin_create
def begin_create(resource_group_name, registry_name, registry_create_parameters, custom_headers:nil) response = begin_create_async(resource_group_name, registry_name, registry_create_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def begin_create(resource_group_name, registry_name, registry_create_parameters, custom_headers:nil) response = begin_create_async(resource_group_name, registry_name, registry_create_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "begin_create", "(", "resource_group_name", ",", "registry_name", ",", "registry_create_parameters", ",", "custom_headers", ":", "nil", ")", "response", "=", "begin_create_async", "(", "resource_group_name", ",", "registry_name", ",", "registry_create_parameters", ...
Creates a container registry with the specified parameters. @param resource_group_name [String] The name of the resource group to which the container registry belongs. @param registry_name [String] The name of the container registry. @param registry_create_parameters [RegistryCreateParameters] The parameters for ...
[ "Creates", "a", "container", "registry", "with", "the", "specified", "parameters", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_container_registry/lib/2017-03-01/generated/azure_mgmt_container_registry/registries.rb#L883-L886
train
Creates a new container registry.
[ 30522, 13366, 4088, 1035, 3443, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 15584, 1035, 2171, 1010, 15584, 1035, 3443, 1035, 11709, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 4088, 1035, 3443, 1035, 2004, 6038, 2278, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
boazsegev/combine_pdf
lib/combine_pdf/pdf_public.rb
CombinePDF.PDF.to_pdf
def to_pdf(options = {}) # reset version if not specified @version = 1.5 if @version.to_f == 0.0 # set info for merged file @info[:ModDate] = @info[:CreationDate] = Time.now.strftime "D:%Y%m%d%H%M%S%:::z'00" @info[:Subject] = options[:subject] if options[:subject] @info[:Producer] = ...
ruby
def to_pdf(options = {}) # reset version if not specified @version = 1.5 if @version.to_f == 0.0 # set info for merged file @info[:ModDate] = @info[:CreationDate] = Time.now.strftime "D:%Y%m%d%H%M%S%:::z'00" @info[:Subject] = options[:subject] if options[:subject] @info[:Producer] = ...
[ "def", "to_pdf", "(", "options", "=", "{", "}", ")", "# reset version if not specified", "@version", "=", "1.5", "if", "@version", ".", "to_f", "==", "0.0", "# set info for merged file", "@info", "[", ":ModDate", "]", "=", "@info", "[", ":CreationDate", "]", "...
Formats the data to PDF formats and returns a binary string that represents the PDF file content. This method is used by the save(file_name) method to save the content to a file. use this to export the PDF file without saving to disk (such as sending through HTTP ect').
[ "Formats", "the", "data", "to", "PDF", "formats", "and", "returns", "a", "binary", "string", "that", "represents", "the", "PDF", "file", "content", "." ]
09054051019c069f551f3e60be789577c0f93900
https://github.com/boazsegev/combine_pdf/blob/09054051019c069f551f3e60be789577c0f93900/lib/combine_pdf/pdf_public.rb#L174-L215
train
Create a PDF file
[ 30522, 13366, 2000, 1035, 11135, 1006, 7047, 1027, 1063, 1065, 1007, 1001, 25141, 2544, 2065, 2025, 9675, 1030, 2544, 1027, 1015, 1012, 1019, 2065, 1030, 2544, 1012, 2000, 1035, 1042, 1027, 1027, 1014, 1012, 1014, 1001, 2275, 18558, 2005, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_network/lib/2017-11-01/generated/azure_mgmt_network/express_route_circuit_authorizations.rb
Azure::Network::Mgmt::V2017_11_01.ExpressRouteCircuitAuthorizations.get_with_http_info
def get_with_http_info(resource_group_name, circuit_name, authorization_name, custom_headers:nil) get_async(resource_group_name, circuit_name, authorization_name, custom_headers:custom_headers).value! end
ruby
def get_with_http_info(resource_group_name, circuit_name, authorization_name, custom_headers:nil) get_async(resource_group_name, circuit_name, authorization_name, custom_headers:custom_headers).value! end
[ "def", "get_with_http_info", "(", "resource_group_name", ",", "circuit_name", ",", "authorization_name", ",", "custom_headers", ":", "nil", ")", "get_async", "(", "resource_group_name", ",", "circuit_name", ",", "authorization_name", ",", "custom_headers", ":custom_header...
Gets the specified authorization from the specified express route circuit. @param resource_group_name [String] The name of the resource group. @param circuit_name [String] The name of the express route circuit. @param authorization_name [String] The name of the authorization. @param custom_headers [Hash{String => ...
[ "Gets", "the", "specified", "authorization", "from", "the", "specified", "express", "route", "circuit", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_network/lib/2017-11-01/generated/azure_mgmt_network/express_route_circuit_authorizations.rb#L91-L93
train
Gets the specified route circuit authorization.
[ 30522, 13366, 2131, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 4984, 1035, 2171, 1010, 20104, 1035, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 2131, 1035, 2004, 6038, 2278, 1006, 7692, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
rails/rails
actionview/lib/action_view/rendering.rb
ActionView.Rendering.process
def process(*) #:nodoc: old_config, I18n.config = I18n.config, I18nProxy.new(I18n.config, lookup_context) super ensure I18n.config = old_config end
ruby
def process(*) #:nodoc: old_config, I18n.config = I18n.config, I18nProxy.new(I18n.config, lookup_context) super ensure I18n.config = old_config end
[ "def", "process", "(", "*", ")", "#:nodoc:", "old_config", ",", "I18n", ".", "config", "=", "I18n", ".", "config", ",", "I18nProxy", ".", "new", "(", "I18n", ".", "config", ",", "lookup_context", ")", "super", "ensure", "I18n", ".", "config", "=", "old...
Overwrite process to setup I18n proxy.
[ "Overwrite", "process", "to", "setup", "I18n", "proxy", "." ]
85a8bc644be69908f05740a5886ec19cd3679df5
https://github.com/rails/rails/blob/85a8bc644be69908f05740a5886ec19cd3679df5/actionview/lib/action_view/rendering.rb#L37-L42
train
This method is called by the I18nProxy class to process the I18n object.
[ 30522, 13366, 2832, 1006, 1008, 1007, 1001, 1024, 7293, 10085, 1024, 2214, 1035, 9530, 8873, 2290, 1010, 1045, 15136, 2078, 1012, 9530, 8873, 2290, 1027, 1045, 15136, 2078, 1012, 9530, 8873, 2290, 1010, 1045, 15136, 16275, 3217, 18037, 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...
mislav/will_paginate
lib/will_paginate/view_helpers.rb
WillPaginate.ViewHelpers.will_paginate
def will_paginate(collection, options = {}) # early exit if there is nothing to render return nil unless collection.total_pages > 1 options = WillPaginate::ViewHelpers.pagination_options.merge(options) options[:previous_label] ||= will_paginate_translate(:previous_label) { '&#8592; Previous' }...
ruby
def will_paginate(collection, options = {}) # early exit if there is nothing to render return nil unless collection.total_pages > 1 options = WillPaginate::ViewHelpers.pagination_options.merge(options) options[:previous_label] ||= will_paginate_translate(:previous_label) { '&#8592; Previous' }...
[ "def", "will_paginate", "(", "collection", ",", "options", "=", "{", "}", ")", "# early exit if there is nothing to render", "return", "nil", "unless", "collection", ".", "total_pages", ">", "1", "options", "=", "WillPaginate", "::", "ViewHelpers", ".", "pagination_...
Returns HTML representing page links for a WillPaginate::Collection-like object. In case there is no more than one page in total, nil is returned. ==== Options * <tt>:class</tt> -- CSS class name for the generated DIV (default: "pagination") * <tt>:previous_label</tt> -- default: "« Previous" * <tt>:next_label</t...
[ "Returns", "HTML", "representing", "page", "links", "for", "a", "WillPaginate", "::", "Collection", "-", "like", "object", ".", "In", "case", "there", "is", "no", "more", "than", "one", "page", "in", "total", "nil", "is", "returned", "." ]
63e84fb7e7508231ca83d94c524bfab5fbe9a578
https://github.com/mislav/will_paginate/blob/63e84fb7e7508231ca83d94c524bfab5fbe9a578/lib/will_paginate/view_helpers.rb#L71-L97
train
render the pagination
[ 30522, 13366, 2097, 1035, 6643, 20876, 2618, 1006, 3074, 1010, 7047, 1027, 1063, 1065, 1007, 1001, 2220, 6164, 2065, 2045, 2003, 2498, 2000, 17552, 2709, 9152, 2140, 4983, 3074, 1012, 2561, 1035, 5530, 1028, 1015, 7047, 1027, 2097, 4502, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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/utils.rb
TTY.Utils.extract_options
def extract_options(args) options = args.last options.respond_to?(:to_hash) ? options.to_hash.dup : {} end
ruby
def extract_options(args) options = args.last options.respond_to?(:to_hash) ? options.to_hash.dup : {} end
[ "def", "extract_options", "(", "args", ")", "options", "=", "args", ".", "last", "options", ".", "respond_to?", "(", ":to_hash", ")", "?", "options", ".", "to_hash", ".", "dup", ":", "{", "}", "end" ]
Extract options hash from array argument @param [Array[Object]] args @api public
[ "Extract", "options", "hash", "from", "array", "argument" ]
b1ff627afff98fa6477e5ef3ac4a718c52eff05a
https://github.com/piotrmurach/tty-prompt/blob/b1ff627afff98fa6477e5ef3ac4a718c52eff05a/lib/tty/prompt/utils.rb#L14-L17
train
Extract the options from the args
[ 30522, 13366, 14817, 1035, 7047, 1006, 12098, 5620, 1007, 7047, 1027, 12098, 5620, 1012, 2197, 7047, 1012, 6869, 1035, 2000, 1029, 1006, 1024, 2000, 1035, 23325, 1007, 1029, 7047, 1012, 2000, 1035, 23325, 1012, 4241, 2361, 1024, 1063, 1065,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
rails/rails
railties/lib/rails/engine.rb
Rails.Engine.load_seed
def load_seed seed_file = paths["db/seeds.rb"].existent.first return unless seed_file if config.try(:active_job)&.queue_adapter == :async with_inline_jobs { load(seed_file) } else load(seed_file) end end
ruby
def load_seed seed_file = paths["db/seeds.rb"].existent.first return unless seed_file if config.try(:active_job)&.queue_adapter == :async with_inline_jobs { load(seed_file) } else load(seed_file) end end
[ "def", "load_seed", "seed_file", "=", "paths", "[", "\"db/seeds.rb\"", "]", ".", "existent", ".", "first", "return", "unless", "seed_file", "if", "config", ".", "try", "(", ":active_job", ")", "&.", "queue_adapter", "==", ":async", "with_inline_jobs", "{", "lo...
Load data from db/seeds.rb file. It can be used in to load engines' seeds, e.g.: Blog::Engine.load_seed
[ "Load", "data", "from", "db", "/", "seeds", ".", "rb", "file", ".", "It", "can", "be", "used", "in", "to", "load", "engines", "seeds", "e", ".", "g", ".", ":" ]
85a8bc644be69908f05740a5886ec19cd3679df5
https://github.com/rails/rails/blob/85a8bc644be69908f05740a5886ec19cd3679df5/railties/lib/rails/engine.rb#L551-L560
train
Load the seed file
[ 30522, 13366, 7170, 1035, 6534, 6534, 1035, 5371, 1027, 10425, 1031, 1000, 16962, 1013, 8079, 1012, 21144, 1000, 1033, 1012, 25953, 1012, 2034, 2709, 4983, 6534, 1035, 5371, 2065, 9530, 8873, 2290, 1012, 3046, 1006, 1024, 3161, 1035, 3105, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
rmagick/rmagick
lib/rmagick_internal.rb
Magick.Draw.gravity
def gravity(grav) Kernel.raise ArgumentError, 'Unknown text positioning gravity' unless GRAVITY_NAMES.key?(grav.to_i) primitive "gravity #{GRAVITY_NAMES[grav.to_i]}" end
ruby
def gravity(grav) Kernel.raise ArgumentError, 'Unknown text positioning gravity' unless GRAVITY_NAMES.key?(grav.to_i) primitive "gravity #{GRAVITY_NAMES[grav.to_i]}" end
[ "def", "gravity", "(", "grav", ")", "Kernel", ".", "raise", "ArgumentError", ",", "'Unknown text positioning gravity'", "unless", "GRAVITY_NAMES", ".", "key?", "(", "grav", ".", "to_i", ")", "primitive", "\"gravity #{GRAVITY_NAMES[grav.to_i]}\"", "end" ]
Specify the text positioning gravity, one of: NorthWest, North, NorthEast, West, Center, East, SouthWest, South, SouthEast
[ "Specify", "the", "text", "positioning", "gravity", "one", "of", ":", "NorthWest", "North", "NorthEast", "West", "Center", "East", "SouthWest", "South", "SouthEast" ]
ef6688ed9d76bf123c2ea1a483eff8635051adb7
https://github.com/rmagick/rmagick/blob/ef6688ed9d76bf123c2ea1a483eff8635051adb7/lib/rmagick_internal.rb#L363-L366
train
Returns the positioning gravity of the text.
[ 30522, 13366, 8992, 1006, 24665, 11431, 1007, 16293, 1012, 5333, 6685, 2121, 29165, 1010, 1005, 4242, 3793, 19120, 8992, 1005, 4983, 8992, 1035, 3415, 1012, 3145, 1029, 1006, 24665, 11431, 1012, 2000, 1035, 1045, 1007, 10968, 1000, 8992, 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...
sporkmonger/addressable
lib/addressable/uri.rb
Addressable.URI.normalized_password
def normalized_password return nil unless self.password return @normalized_password if defined?(@normalized_password) @normalized_password ||= begin if self.normalized_scheme =~ /https?/ && self.password.strip.empty? && (!self.user || self.user.strip.empty?) nil e...
ruby
def normalized_password return nil unless self.password return @normalized_password if defined?(@normalized_password) @normalized_password ||= begin if self.normalized_scheme =~ /https?/ && self.password.strip.empty? && (!self.user || self.user.strip.empty?) nil e...
[ "def", "normalized_password", "return", "nil", "unless", "self", ".", "password", "return", "@normalized_password", "if", "defined?", "(", "@normalized_password", ")", "@normalized_password", "||=", "begin", "if", "self", ".", "normalized_scheme", "=~", "/", "/", "&...
The password component for this URI, normalized. @return [String] The password component, normalized.
[ "The", "password", "component", "for", "this", "URI", "normalized", "." ]
5894c95a7768435cb46d1355954611dbd194832e
https://github.com/sporkmonger/addressable/blob/5894c95a7768435cb46d1355954611dbd194832e/lib/addressable/uri.rb#L965-L984
train
Returns the normalized password for this URI.
[ 30522, 13366, 3671, 3550, 1035, 20786, 2709, 9152, 2140, 4983, 2969, 1012, 20786, 2709, 1030, 3671, 3550, 1035, 20786, 2065, 4225, 1029, 1006, 1030, 3671, 3550, 1035, 20786, 1007, 1030, 3671, 3550, 1035, 20786, 1064, 1064, 1027, 4088, 2065,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
fastlane/fastlane
fastlane/lib/fastlane/runner.rb
Fastlane.Runner.execute
def execute(lane, platform = nil, parameters = nil) UI.crash!("No lane given") unless lane self.current_lane = lane.to_sym self.current_platform = (platform ? platform.to_sym : nil) lane_obj = lanes.fetch(current_platform, {}).fetch(current_lane, nil) UI.user_error!("Could not find lane...
ruby
def execute(lane, platform = nil, parameters = nil) UI.crash!("No lane given") unless lane self.current_lane = lane.to_sym self.current_platform = (platform ? platform.to_sym : nil) lane_obj = lanes.fetch(current_platform, {}).fetch(current_lane, nil) UI.user_error!("Could not find lane...
[ "def", "execute", "(", "lane", ",", "platform", "=", "nil", ",", "parameters", "=", "nil", ")", "UI", ".", "crash!", "(", "\"No lane given\"", ")", "unless", "lane", "self", ".", "current_lane", "=", "lane", ".", "to_sym", "self", ".", "current_platform", ...
This will take care of executing **one** lane. That's when the user triggers a lane from the CLI for example This method is **not** executed when switching a lane @param lane_name The name of the lane to execute @param platform The name of the platform to execute @param parameters [Hash] The parameters passed from ...
[ "This", "will", "take", "care", "of", "executing", "**", "one", "**", "lane", ".", "That", "s", "when", "the", "user", "triggers", "a", "lane", "from", "the", "CLI", "for", "example", "This", "method", "is", "**", "not", "**", "executed", "when", "swit...
457c5d647c77f0e078dafa5129da616914e002c5
https://github.com/fastlane/fastlane/blob/457c5d647c77f0e078dafa5129da616914e002c5/fastlane/lib/fastlane/runner.rb#L21-L73
train
Execute a lane
[ 30522, 13366, 15389, 1006, 4644, 1010, 4132, 1027, 9152, 2140, 1010, 11709, 1027, 9152, 2140, 1007, 21318, 1012, 5823, 999, 1006, 1000, 2053, 4644, 2445, 1000, 1007, 4983, 4644, 2969, 1012, 2783, 1035, 4644, 1027, 4644, 1012, 2000, 1035, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/databases.rb
Azure::SQL::Mgmt::V2014_04_01.Databases.begin_pause
def begin_pause(resource_group_name, server_name, database_name, custom_headers:nil) response = begin_pause_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value! nil end
ruby
def begin_pause(resource_group_name, server_name, database_name, custom_headers:nil) response = begin_pause_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value! nil end
[ "def", "begin_pause", "(", "resource_group_name", ",", "server_name", ",", "database_name", ",", "custom_headers", ":", "nil", ")", "response", "=", "begin_pause_async", "(", "resource_group_name", ",", "server_name", ",", "database_name", ",", "custom_headers", ":cus...
Pauses a data warehouse. @param resource_group_name [String] The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. @param server_name [String] The name of the server. @param database_name [String] The name of the data warehouse to p...
[ "Pauses", "a", "data", "warehouse", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/databases.rb#L1342-L1345
train
Pause a database.
[ 30522, 13366, 4088, 1035, 8724, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 8241, 1035, 2171, 1010, 7809, 1035, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 4088, 1035, 8724, 1035, 2004, 6038, 2278, 1006, 7692, 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...
plaid/plaid-ruby
lib/plaid/products/institutions.rb
Plaid.Institutions.get_by_id
def get_by_id(institution_id, options: nil) payload = { institution_id: institution_id } payload[:options] = options unless options.nil? post_with_public_key 'institutions/get_by_id', SingleInstitutionResponse, payload end
ruby
def get_by_id(institution_id, options: nil) payload = { institution_id: institution_id } payload[:options] = options unless options.nil? post_with_public_key 'institutions/get_by_id', SingleInstitutionResponse, payload end
[ "def", "get_by_id", "(", "institution_id", ",", "options", ":", "nil", ")", "payload", "=", "{", "institution_id", ":", "institution_id", "}", "payload", "[", ":options", "]", "=", "options", "unless", "options", ".", "nil?", "post_with_public_key", "'institutio...
Public: Get information about a Plaid institution by ID. Does a POST /institutions/get_by_id call which allows you to pull information for an institution by ID. institution_id - Specific institution id to fetch information for. options - Options for filtering institutions. Returns a SingleInstitutionResponse in...
[ "Public", ":", "Get", "information", "about", "a", "Plaid", "institution", "by", "ID", "." ]
ce3da1c5559c739de88c5f59e54eef875f296673
https://github.com/plaid/plaid-ruby/blob/ce3da1c5559c739de88c5f59e54eef875f296673/lib/plaid/products/institutions.rb#L33-L41
train
Get an institution by ID
[ 30522, 13366, 2131, 1035, 2011, 1035, 8909, 1006, 5145, 1035, 8909, 30524, 1027, 7047, 4983, 7047, 1012, 9152, 2140, 1029, 2695, 1035, 2007, 1035, 2270, 1035, 3145, 1005, 4896, 1013, 2131, 1035, 2011, 1035, 8909, 1005, 1010, 2309, 7076, 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...
Azure/azure-sdk-for-ruby
management/azure_mgmt_compute/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb
Azure::Compute::Mgmt::V2017_12_01.VirtualMachineScaleSetVMs.begin_power_off_with_http_info
def begin_power_off_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! end
ruby
def begin_power_off_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil) begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value! end
[ "def", "begin_power_off_with_http_info", "(", "resource_group_name", ",", "vm_scale_set_name", ",", "instance_id", ",", "custom_headers", ":", "nil", ")", "begin_power_off_async", "(", "resource_group_name", ",", "vm_scale_set_name", ",", "instance_id", ",", "custom_headers...
Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges. @param resource_group_name [String] The name of the resource group. @param vm_scale_set_name [String] The name ...
[ "Power", "off", "(", "stop", ")", "a", "virtual", "machine", "in", "a", "VM", "scale", "set", ".", "Note", "that", "resources", "are", "still", "attached", "and", "you", "are", "getting", "charged", "for", "the", "resources", ".", "Instead", "use", "deal...
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_compute/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb#L1323-L1325
train
Power off the virtual machine in a VM scale set.
[ 30522, 13366, 4088, 1035, 2373, 1035, 2125, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 1058, 2213, 1035, 4094, 1035, 2275, 1035, 2171, 1010, 6013, 1035, 8909, 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...
refinery/refinerycms
core/app/helpers/refinery/meta_helper.rb
Refinery.MetaHelper.page_title
def page_title(options = {}) object = options.fetch(:object, @meta) options.delete(:object) options = Refinery::Pages.page_title.merge(options) title = [] objects = (options[:chain_page_title] and object.respond_to?(:ancestors)) ? [object.ancestors, object] : [object] objects.flatt...
ruby
def page_title(options = {}) object = options.fetch(:object, @meta) options.delete(:object) options = Refinery::Pages.page_title.merge(options) title = [] objects = (options[:chain_page_title] and object.respond_to?(:ancestors)) ? [object.ancestors, object] : [object] objects.flatt...
[ "def", "page_title", "(", "options", "=", "{", "}", ")", "object", "=", "options", ".", "fetch", "(", ":object", ",", "@meta", ")", "options", ".", "delete", "(", ":object", ")", "options", "=", "Refinery", "::", "Pages", ".", "page_title", ".", "merge...
you can override the object used for the title by supplying options[:object]
[ "you", "can", "override", "the", "object", "used", "for", "the", "title", "by", "supplying", "options", "[", ":", "object", "]" ]
67f117f937c5264ec0aeabe8e7eac1d562c5bc7b
https://github.com/refinery/refinerycms/blob/67f117f937c5264ec0aeabe8e7eac1d562c5bc7b/core/app/helpers/refinery/meta_helper.rb#L15-L49
train
Returns the page title for the object.
[ 30522, 13366, 3931, 1035, 2516, 1006, 7047, 1027, 1063, 1065, 1007, 4874, 1027, 7047, 1012, 18584, 1006, 1024, 4874, 1010, 1030, 18804, 1007, 7047, 1012, 3972, 12870, 1006, 1024, 4874, 1007, 7047, 1027, 21034, 1024, 1024, 5530, 1012, 3931, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/group_users.rb
Azure::ApiManagement::Mgmt::V2016_07_07.GroupUsers.list_by_group_with_http_info
def list_by_group_with_http_info(resource_group_name, service_name, group_id, filter:nil, top:nil, skip:nil, custom_headers:nil) list_by_group_async(resource_group_name, service_name, group_id, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! end
ruby
def list_by_group_with_http_info(resource_group_name, service_name, group_id, filter:nil, top:nil, skip:nil, custom_headers:nil) list_by_group_async(resource_group_name, service_name, group_id, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value! end
[ "def", "list_by_group_with_http_info", "(", "resource_group_name", ",", "service_name", ",", "group_id", ",", "filter", ":", "nil", ",", "top", ":", "nil", ",", "skip", ":", "nil", ",", "custom_headers", ":", "nil", ")", "list_by_group_async", "(", "resource_gro...
Lists a collection of the members of the group, specified by its identifier. @param resource_group_name [String] The name of the resource group. @param service_name [String] The name of the API Management service. @param group_id [String] Group identifier. Must be unique in the current API Management service insta...
[ "Lists", "a", "collection", "of", "the", "members", "of", "the", "group", "specified", "by", "its", "identifier", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/group_users.rb#L91-L93
train
Gets the list of all the segmentation elements in a group.
[ 30522, 13366, 2862, 1035, 2011, 1035, 2177, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 2326, 1035, 2171, 1010, 2177, 1035, 8909, 1010, 11307, 1024, 9152, 2140, 1010, 2327, 1024, 9152, 2140, 1010, 13558, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
aws/aws-sdk-ruby
gems/aws-sdk-sqs/lib/aws-sdk-sqs/resource.rb
Aws::SQS.Resource.get_queue_by_name
def get_queue_by_name(options = {}) resp = @client.get_queue_url(options) Queue.new( url: resp.data.queue_url, client: @client ) end
ruby
def get_queue_by_name(options = {}) resp = @client.get_queue_url(options) Queue.new( url: resp.data.queue_url, client: @client ) end
[ "def", "get_queue_by_name", "(", "options", "=", "{", "}", ")", "resp", "=", "@client", ".", "get_queue_url", "(", "options", ")", "Queue", ".", "new", "(", "url", ":", "resp", ".", "data", ".", "queue_url", ",", "client", ":", "@client", ")", "end" ]
@example Request syntax with placeholder values queue = sqs.get_queue_by_name({ queue_name: "String", # required queue_owner_aws_account_id: "String", }) @param [Hash] options ({}) @option options [required, String] :queue_name The name of the queue whose URL must be fetched. Maximum 80 charact...
[ "@example", "Request", "syntax", "with", "placeholder", "values" ]
e28b8d320ddf7b6ee0161bdd9d00fb786d99b63d
https://github.com/aws/aws-sdk-ruby/blob/e28b8d320ddf7b6ee0161bdd9d00fb786d99b63d/gems/aws-sdk-sqs/lib/aws-sdk-sqs/resource.rb#L200-L206
train
Get a queue by name
[ 30522, 13366, 2131, 1035, 24240, 1035, 2011, 1035, 2171, 1006, 7047, 1027, 1063, 1065, 1007, 24501, 2361, 1027, 1030, 7396, 1012, 2131, 1035, 24240, 1035, 24471, 2140, 1006, 7047, 1007, 24240, 1012, 2047, 1006, 24471, 2140, 1024, 24501, 236...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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_employees_api.rb
SquareConnect.V1EmployeesApi.update_employee_role
def update_employee_role(role_id, body, opts = {}) data, _status_code, _headers = update_employee_role_with_http_info(role_id, body, opts) return data end
ruby
def update_employee_role(role_id, body, opts = {}) data, _status_code, _headers = update_employee_role_with_http_info(role_id, body, opts) return data end
[ "def", "update_employee_role", "(", "role_id", ",", "body", ",", "opts", "=", "{", "}", ")", "data", ",", "_status_code", ",", "_headers", "=", "update_employee_role_with_http_info", "(", "role_id", ",", "body", ",", "opts", ")", "return", "data", "end" ]
UpdateEmployeeRole Modifies the details of an employee role. @param role_id The ID of the role to modify. @param body An object containing the fields to POST for the request. See the corresponding object definition for field details. @param [Hash] opts the optional parameters @return [V1EmployeeRole]
[ "UpdateEmployeeRole", "Modifies", "the", "details", "of", "an", "employee", "role", "." ]
798eb9ded716f23b9f1518386f1c311a34bca8bf
https://github.com/square/connect-ruby-sdk/blob/798eb9ded716f23b9f1518386f1c311a34bca8bf/lib/square_connect/api/v1_employees_api.rb#L885-L888
train
Update Employee Role Returns the Employee
[ 30522, 13366, 10651, 1035, 7904, 1035, 2535, 1006, 2535, 1035, 8909, 1010, 2303, 1010, 23569, 2015, 1027, 1063, 1065, 1007, 2951, 1010, 1035, 3570, 1035, 3642, 1010, 1035, 20346, 2015, 1027, 10651, 1035, 7904, 1035, 2535, 1035, 2007, 1035, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
mongodb/mongo-ruby-driver
profile/benchmarking/helper.rb
Mongo.Benchmarking.parse_json
def parse_json(document) JSON.parse(document).tap do |doc| if doc['_id'] && doc['_id']['$oid'] doc['_id'] = BSON::ObjectId.from_string(doc['_id']['$oid']) end end end
ruby
def parse_json(document) JSON.parse(document).tap do |doc| if doc['_id'] && doc['_id']['$oid'] doc['_id'] = BSON::ObjectId.from_string(doc['_id']['$oid']) end end end
[ "def", "parse_json", "(", "document", ")", "JSON", ".", "parse", "(", "document", ")", ".", "tap", "do", "|", "doc", "|", "if", "doc", "[", "'_id'", "]", "&&", "doc", "[", "'_id'", "]", "[", "'$oid'", "]", "doc", "[", "'_id'", "]", "=", "BSON", ...
Load a json document as a Hash and convert BSON-specific types. Replace the _id field as an BSON::ObjectId if it's represented as '$oid'. @example Parse a json document. Benchmarking.parse_json(document) @param [ Hash ] The json document. @return [ Hash ] An extended-json document. @since 2.2.3
[ "Load", "a", "json", "document", "as", "a", "Hash", "and", "convert", "BSON", "-", "specific", "types", ".", "Replace", "the", "_id", "field", "as", "an", "BSON", "::", "ObjectId", "if", "it", "s", "represented", "as", "$oid", "." ]
dca26d0870cb3386fad9ccc1d17228097c1fe1c8
https://github.com/mongodb/mongo-ruby-driver/blob/dca26d0870cb3386fad9ccc1d17228097c1fe1c8/profile/benchmarking/helper.rb#L37-L43
train
Parse JSON document
[ 30522, 13366, 11968, 3366, 1035, 1046, 3385, 1006, 6254, 1007, 1046, 3385, 1012, 11968, 3366, 1006, 6254, 1007, 1012, 11112, 2079, 1064, 9986, 1064, 2065, 9986, 1031, 1005, 1035, 8909, 1005, 1033, 1004, 1004, 9986, 1031, 1005, 1035, 8909, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
watir/watir
lib/watir/elements/file_field.rb
Watir.FileField.value=
def value=(path) path = path.gsub(File::SEPARATOR, File::ALT_SEPARATOR) if File::ALT_SEPARATOR element_call { @element.send_keys path } end
ruby
def value=(path) path = path.gsub(File::SEPARATOR, File::ALT_SEPARATOR) if File::ALT_SEPARATOR element_call { @element.send_keys path } end
[ "def", "value", "=", "(", "path", ")", "path", "=", "path", ".", "gsub", "(", "File", "::", "SEPARATOR", ",", "File", "::", "ALT_SEPARATOR", ")", "if", "File", "::", "ALT_SEPARATOR", "element_call", "{", "@element", ".", "send_keys", "path", "}", "end" ]
Sets the file field to the given path @param [String] path
[ "Sets", "the", "file", "field", "to", "the", "given", "path" ]
2d8db09811c6221ae401b85b2f61f5fa66e463a3
https://github.com/watir/watir/blob/2d8db09811c6221ae401b85b2f61f5fa66e463a3/lib/watir/elements/file_field.rb#L22-L25
train
Set the value of the element.
[ 30522, 13366, 3643, 1027, 1006, 4130, 1007, 4130, 1027, 4130, 1012, 28177, 12083, 1006, 5371, 1024, 1024, 19802, 25879, 2953, 1010, 5371, 1024, 1024, 12456, 1035, 19802, 25879, 2953, 1007, 2065, 5371, 1024, 1024, 12456, 1035, 19802, 25879, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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/file_list.rb
Rake.FileList.sub
def sub(pat, rep) inject(self.class.new) { |res, fn| res << fn.sub(pat, rep) } end
ruby
def sub(pat, rep) inject(self.class.new) { |res, fn| res << fn.sub(pat, rep) } end
[ "def", "sub", "(", "pat", ",", "rep", ")", "inject", "(", "self", ".", "class", ".", "new", ")", "{", "|", "res", ",", "fn", "|", "res", "<<", "fn", ".", "sub", "(", "pat", ",", "rep", ")", "}", "end" ]
Return a new FileList with the results of running +sub+ against each element of the original list. Example: FileList['a.c', 'b.c'].sub(/\.c$/, '.o') => ['a.o', 'b.o']
[ "Return", "a", "new", "FileList", "with", "the", "results", "of", "running", "+", "sub", "+", "against", "each", "element", "of", "the", "original", "list", "." ]
1c22b490ee6cb8bd614fa8d0d6145f671466206b
https://github.com/ruby/rake/blob/1c22b490ee6cb8bd614fa8d0d6145f671466206b/lib/rake/file_list.rb#L242-L244
train
Subtraction of the sequence of sequences
[ 30522, 13366, 4942, 1006, 6986, 1010, 16360, 1007, 1999, 20614, 1006, 2969, 1012, 2465, 1012, 2047, 1007, 1063, 1064, 24501, 1010, 1042, 2078, 1064, 24501, 1026, 1026, 1042, 2078, 1012, 4942, 1006, 6986, 1010, 16360, 1007, 1065, 2203, 102, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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_description
def get_service_description(service_id, timeout:60, custom_headers:nil) response = get_service_description_async(service_id, timeout:timeout, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def get_service_description(service_id, timeout:60, custom_headers:nil) response = get_service_description_async(service_id, timeout:timeout, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "get_service_description", "(", "service_id", ",", "timeout", ":", "60", ",", "custom_headers", ":", "nil", ")", "response", "=", "get_service_description_async", "(", "service_id", ",", "timeout", ":", "timeout", ",", "custom_headers", ":custom_headers", ")"...
Gets the description of an existing Service Fabric service. Gets the description of an existing Service Fabric service. A service must be created before its description can be obtained. @param service_id [String] The identity of the service. This is typically the full name of the service without the 'fabric:' URI...
[ "Gets", "the", "description", "of", "an", "existing", "Service", "Fabric", "service", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_service_fabric/lib/6.2.0.9/generated/azure_service_fabric/service_fabric_client_apis.rb#L10692-L10695
train
Gets the description of the specified service.
[ 30522, 13366, 2131, 1035, 2326, 1035, 6412, 1006, 2326, 1035, 8909, 1010, 2051, 5833, 1024, 3438, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 2131, 1035, 2326, 1035, 6412, 1035, 2004, 6038, 2278, 1006, 2326, 1035, 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...
castwide/solargraph
lib/solargraph/source.rb
Solargraph.Source.location
def location st = Position.new(0, 0) en = Position.from_offset(code, code.length) range = Range.new(st, en) Location.new(filename, range) end
ruby
def location st = Position.new(0, 0) en = Position.from_offset(code, code.length) range = Range.new(st, en) Location.new(filename, range) end
[ "def", "location", "st", "=", "Position", ".", "new", "(", "0", ",", "0", ")", "en", "=", "Position", ".", "from_offset", "(", "code", ",", "code", ".", "length", ")", "range", "=", "Range", ".", "new", "(", "st", ",", "en", ")", "Location", ".",...
A location representing the file in its entirety. @return [Location]
[ "A", "location", "representing", "the", "file", "in", "its", "entirety", "." ]
47badb5d151aca775ccbe6c470236089eae7839d
https://github.com/castwide/solargraph/blob/47badb5d151aca775ccbe6c470236089eae7839d/lib/solargraph/source.rb#L255-L260
train
Returns the location of the code in the code file.
[ 30522, 13366, 3295, 2358, 1027, 2597, 1012, 2047, 1006, 1014, 1010, 1014, 1007, 4372, 1027, 2597, 1012, 2013, 1035, 16396, 1006, 3642, 1010, 3642, 1012, 3091, 1007, 2846, 1027, 2846, 1012, 2047, 1006, 2358, 1010, 4372, 1007, 3295, 1012, 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...
decidim/decidim
decidim-core/lib/decidim/data_portability_file_reader.rb
Decidim.DataPortabilityFileReader.file_path
def file_path directory_name = Rails.root.join(Decidim::DataPortabilityUploader.new.store_dir) FileUtils.mkdir_p(directory_name) unless File.exist?(directory_name) directory_name + file_name end
ruby
def file_path directory_name = Rails.root.join(Decidim::DataPortabilityUploader.new.store_dir) FileUtils.mkdir_p(directory_name) unless File.exist?(directory_name) directory_name + file_name end
[ "def", "file_path", "directory_name", "=", "Rails", ".", "root", ".", "join", "(", "Decidim", "::", "DataPortabilityUploader", ".", "new", ".", "store_dir", ")", "FileUtils", ".", "mkdir_p", "(", "directory_name", ")", "unless", "File", ".", "exist?", "(", "...
Returns a String with the absolute file_path to be read or generate.
[ "Returns", "a", "String", "with", "the", "absolute", "file_path", "to", "be", "read", "or", "generate", "." ]
6e2b14e559a63088669904e3c5c49a5180700cf7
https://github.com/decidim/decidim/blob/6e2b14e559a63088669904e3c5c49a5180700cf7/decidim-core/lib/decidim/data_portability_file_reader.rb#L30-L34
train
Returns the path to the file with the highest priority.
[ 30522, 13366, 5371, 30524, 1012, 12395, 4305, 2099, 1035, 1052, 1006, 14176, 1035, 2171, 1007, 4983, 5371, 1012, 4839, 1029, 1006, 14176, 1035, 2171, 1007, 14176, 1035, 2171, 1009, 5371, 1035, 2171, 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_sql/lib/2014-04-01/generated/azure_mgmt_sql/replication_links.rb
Azure::SQL::Mgmt::V2014_04_01.ReplicationLinks.failover_allow_data_loss_async
def failover_allow_data_loss_async(resource_group_name, server_name, database_name, link_id, custom_headers:nil) # Send request promise = begin_failover_allow_data_loss_async(resource_group_name, server_name, database_name, link_id, custom_headers:custom_headers) promise = promise.then do |response| ...
ruby
def failover_allow_data_loss_async(resource_group_name, server_name, database_name, link_id, custom_headers:nil) # Send request promise = begin_failover_allow_data_loss_async(resource_group_name, server_name, database_name, link_id, custom_headers:custom_headers) promise = promise.then do |response| ...
[ "def", "failover_allow_data_loss_async", "(", "resource_group_name", ",", "server_name", ",", "database_name", ",", "link_id", ",", "custom_headers", ":", "nil", ")", "# Send request", "promise", "=", "begin_failover_allow_data_loss_async", "(", "resource_group_name", ",", ...
@param resource_group_name [String] The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. @param server_name [String] The name of the server. @param database_name [String] The name of the database that has the replication link to be ...
[ "@param", "resource_group_name", "[", "String", "]", "The", "name", "of", "the", "resource", "group", "that", "contains", "the", "resource", ".", "You", "can", "obtain", "this", "value", "from", "the", "Azure", "Resource", "Manager", "API", "or", "the", "por...
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/replication_links.rb#L313-L327
train
Allow data loss of a database.
[ 30522, 13366, 8246, 7840, 1035, 3499, 1035, 2951, 1035, 3279, 1035, 2004, 6038, 2278, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 8241, 1035, 2171, 1010, 7809, 1035, 2171, 1010, 4957, 1035, 8909, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/databases.rb
Azure::SQL::Mgmt::V2014_04_01.Databases.delete_with_http_info
def delete_with_http_info(resource_group_name, server_name, database_name, custom_headers:nil) delete_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value! end
ruby
def delete_with_http_info(resource_group_name, server_name, database_name, custom_headers:nil) delete_async(resource_group_name, server_name, database_name, custom_headers:custom_headers).value! end
[ "def", "delete_with_http_info", "(", "resource_group_name", ",", "server_name", ",", "database_name", ",", "custom_headers", ":", "nil", ")", "delete_async", "(", "resource_group_name", ",", "server_name", ",", "database_name", ",", "custom_headers", ":custom_headers", ...
Deletes a database. @param resource_group_name [String] The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. @param server_name [String] The name of the server. @param database_name [String] The name of the database to be deleted. ...
[ "Deletes", "a", "database", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/databases.rb#L251-L253
train
Deletes a database in a server.
[ 30522, 13366, 3972, 12870, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 8241, 1035, 2171, 1010, 7809, 1035, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3972, 12870, 1035, 2004, 6038, 2278, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
rails/sprockets
lib/sprockets/uri_utils.rb
Sprockets.URIUtils.parse_file_digest_uri
def parse_file_digest_uri(uri) scheme, _, path, _ = split_file_uri(uri) unless scheme == 'file-digest'.freeze raise URI::InvalidURIError, "expected file-digest scheme: #{uri}" end path end
ruby
def parse_file_digest_uri(uri) scheme, _, path, _ = split_file_uri(uri) unless scheme == 'file-digest'.freeze raise URI::InvalidURIError, "expected file-digest scheme: #{uri}" end path end
[ "def", "parse_file_digest_uri", "(", "uri", ")", "scheme", ",", "_", ",", "path", ",", "_", "=", "split_file_uri", "(", "uri", ")", "unless", "scheme", "==", "'file-digest'", ".", "freeze", "raise", "URI", "::", "InvalidURIError", ",", "\"expected file-digest ...
Internal: Parse file-digest dependency URI. Examples parse("file-digest:/tmp/js/application.js") # => "/tmp/js/application.js" uri - String file-digest URI Returns String path.
[ "Internal", ":", "Parse", "file", "-", "digest", "dependency", "URI", "." ]
9e3f0d8e98c44f57e67bc138db87bb8469bf5ddd
https://github.com/rails/sprockets/blob/9e3f0d8e98c44f57e67bc138db87bb8469bf5ddd/lib/sprockets/uri_utils.rb#L128-L136
train
Parse a file - digest URI
[ 30522, 13366, 11968, 3366, 1035, 5371, 1035, 17886, 1035, 24471, 2072, 1006, 24471, 2072, 1007, 5679, 1010, 1035, 1010, 4130, 1010, 1035, 1027, 3975, 1035, 5371, 1035, 24471, 2072, 1006, 24471, 2072, 1007, 4983, 5679, 1027, 1027, 1005, 5371...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
aws/aws-sdk-ruby
gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/auto_scaling_group.rb
Aws::AutoScaling.AutoScalingGroup.activities
def activities(options = {}) batches = Enumerator.new do |y| options = options.merge(auto_scaling_group_name: @name) resp = @client.describe_scaling_activities(options) resp.each_page do |page| batch = [] page.data.activities.each do |a| batch << Activity.ne...
ruby
def activities(options = {}) batches = Enumerator.new do |y| options = options.merge(auto_scaling_group_name: @name) resp = @client.describe_scaling_activities(options) resp.each_page do |page| batch = [] page.data.activities.each do |a| batch << Activity.ne...
[ "def", "activities", "(", "options", "=", "{", "}", ")", "batches", "=", "Enumerator", ".", "new", "do", "|", "y", "|", "options", "=", "options", ".", "merge", "(", "auto_scaling_group_name", ":", "@name", ")", "resp", "=", "@client", ".", "describe_sca...
@!group Associations @example Request syntax with placeholder values activities = auto_scaling_group.activities({ activity_ids: ["XmlString"], }) @param [Hash] options ({}) @option options [Array<String>] :activity_ids The activity IDs of the desired scaling activities. You can specify up to 50 IDs...
[ "@!group", "Associations", "@example", "Request", "syntax", "with", "placeholder", "values" ]
e28b8d320ddf7b6ee0161bdd9d00fb786d99b63d
https://github.com/aws/aws-sdk-ruby/blob/e28b8d320ddf7b6ee0161bdd9d00fb786d99b63d/gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/auto_scaling_group.rb#L947-L964
train
Returns an array of all activities in the auto scaling group.
[ 30522, 13366, 3450, 1006, 7047, 1027, 1063, 1065, 1007, 14108, 2229, 1027, 4372, 17897, 16259, 1012, 2047, 2079, 1064, 1061, 1064, 7047, 1027, 7047, 1012, 13590, 1006, 8285, 1035, 25169, 1035, 2177, 1035, 2171, 1024, 1030, 2171, 1007, 24501...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
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.restart_node_with_http_info
def restart_node_with_http_info(node_name, restart_node_description, timeout:60, custom_headers:nil) restart_node_async(node_name, restart_node_description, timeout:timeout, custom_headers:custom_headers).value! end
ruby
def restart_node_with_http_info(node_name, restart_node_description, timeout:60, custom_headers:nil) restart_node_async(node_name, restart_node_description, timeout:timeout, custom_headers:custom_headers).value! end
[ "def", "restart_node_with_http_info", "(", "node_name", ",", "restart_node_description", ",", "timeout", ":", "60", ",", "custom_headers", ":", "nil", ")", "restart_node_async", "(", "node_name", ",", "restart_node_description", ",", "timeout", ":", "timeout", ",", ...
Restarts a Service Fabric cluster node. Restarts a Service Fabric cluster node that is already started. @param node_name [String] The name of the node. @param restart_node_description [RestartNodeDescription] The instance of the node to be restarted and a flag indicating the need to take dump of the fabric proce...
[ "Restarts", "a", "Service", "Fabric", "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#L4554-L4556
train
Restarts a node.
[ 30522, 13366, 23818, 1035, 13045, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 13045, 1035, 2171, 1010, 23818, 1035, 13045, 1035, 6412, 1010, 2051, 5833, 1024, 3438, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 23818, 1035, 13045, 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...
jekyll/jekyll
lib/jekyll/configuration.rb
Jekyll.Configuration.check_plugins
def check_plugins(config) if config.key?("plugins") && config["plugins"].is_a?(String) Jekyll.logger.error "Configuration Error:", "You specified the" \ " `plugins` config in your configuration file as a string, please" \ " use an array instead. If you wanted to set the directory of yo...
ruby
def check_plugins(config) if config.key?("plugins") && config["plugins"].is_a?(String) Jekyll.logger.error "Configuration Error:", "You specified the" \ " `plugins` config in your configuration file as a string, please" \ " use an array instead. If you wanted to set the directory of yo...
[ "def", "check_plugins", "(", "config", ")", "if", "config", ".", "key?", "(", "\"plugins\"", ")", "&&", "config", "[", "\"plugins\"", "]", ".", "is_a?", "(", "String", ")", "Jekyll", ".", "logger", ".", "error", "\"Configuration Error:\"", ",", "\"You specif...
Private: Checks if the `plugins` config is a String config - the config hash Raises a Jekyll::Errors::InvalidConfigurationError if the config `plugins` is a string
[ "Private", ":", "Checks", "if", "the", "plugins", "config", "is", "a", "String" ]
fd74fe3e93a1fb506fa6621a2e271d7b9c5c3e3b
https://github.com/jekyll/jekyll/blob/fd74fe3e93a1fb506fa6621a2e271d7b9c5c3e3b/lib/jekyll/configuration.rb#L395-L405
train
Check the plugins config
[ 30522, 13366, 4638, 1035, 13354, 7076, 1006, 9530, 8873, 2290, 1007, 2065, 9530, 8873, 2290, 1012, 3145, 1029, 1006, 1000, 13354, 7076, 1000, 1007, 1004, 1004, 9530, 8873, 2290, 1031, 1000, 13354, 7076, 1000, 1033, 1012, 2003, 1035, 1037, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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/2016-06-01/generated/azure_mgmt_recovery_services_backup/job_cancellations.rb
Azure::RecoveryServicesBackup::Mgmt::V2016_06_01.JobCancellations.trigger_with_http_info
def trigger_with_http_info(vault_name, resource_group_name, job_name, custom_headers:nil) trigger_async(vault_name, resource_group_name, job_name, custom_headers:custom_headers).value! end
ruby
def trigger_with_http_info(vault_name, resource_group_name, job_name, custom_headers:nil) trigger_async(vault_name, resource_group_name, job_name, custom_headers:custom_headers).value! end
[ "def", "trigger_with_http_info", "(", "vault_name", ",", "resource_group_name", ",", "job_name", ",", "custom_headers", ":", "nil", ")", "trigger_async", "(", "vault_name", ",", "resource_group_name", ",", "job_name", ",", "custom_headers", ":custom_headers", ")", "."...
Cancels the job. This is an asynchronous operation. To know the status of the cancellation, call the GetCancelOperationResult API. @param vault_name [String] The name of the Recovery Services vault. @param resource_group_name [String] The name of the resource group associated with the Recovery Services vault. @pa...
[ "Cancels", "the", "job", ".", "This", "is", "an", "asynchronous", "operation", ".", "To", "know", "the", "status", "of", "the", "cancellation", "call", "the", "GetCancelOperationResult", "API", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/job_cancellations.rb#L58-L60
train
Trigger a specified job.
[ 30522, 13366, 9495, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 11632, 1035, 2171, 1010, 7692, 1035, 2177, 1035, 2171, 1010, 3105, 1035, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 9495, 1035, 2004, 6038, 2278, 1006, 11632, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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/lib/2016-02-01/generated/azure_mgmt_resources/resource_groups.rb
Azure::Resources::Mgmt::V2016_02_01.ResourceGroups.list_resources_next
def list_resources_next(next_page_link, custom_headers:nil) response = list_resources_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def list_resources_next(next_page_link, custom_headers:nil) response = list_resources_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "list_resources_next", "(", "next_page_link", ",", "custom_headers", ":", "nil", ")", "response", "=", "list_resources_next_async", "(", "next_page_link", ",", "custom_headers", ":custom_headers", ")", ".", "value!", "response", ".", "body", "unless", "response...
Get all of the resources under a subscription. @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 [ResourceListResult] operation results.
[ "Get", "all", "of", "the", "resources", "under", "a", "subscription", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_resources/lib/2016-02-01/generated/azure_mgmt_resources/resource_groups.rb#L876-L879
train
Gets the list of all the managed managed
[ 30522, 13366, 2862, 1035, 4219, 1035, 2279, 1006, 2279, 1035, 3931, 1035, 4957, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 2862, 1035, 4219, 1035, 2279, 1035, 2004, 6038, 2278, 1006, 2279, 1035, 3931, 1035, 4957, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/network_status.rb
Azure::ApiManagement::Mgmt::V2016_10_10.NetworkStatus.get_by_service
def get_by_service(resource_group_name, service_name, custom_headers:nil) response = get_by_service_async(resource_group_name, service_name, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def get_by_service(resource_group_name, service_name, custom_headers:nil) response = get_by_service_async(resource_group_name, service_name, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "get_by_service", "(", "resource_group_name", ",", "service_name", ",", "custom_headers", ":", "nil", ")", "response", "=", "get_by_service_async", "(", "resource_group_name", ",", "service_name", ",", "custom_headers", ":custom_headers", ")", ".", "value!", "r...
Gets the Connectivity Status to the external resources on which the Api Management service depends from inside the Cloud Service. This also returns the DNS Servers as visible to the CloudService. @param resource_group_name [String] The name of the resource group. @param service_name [String] The name of the API Ma...
[ "Gets", "the", "Connectivity", "Status", "to", "the", "external", "resources", "on", "which", "the", "Api", "Management", "service", "depends", "from", "inside", "the", "Cloud", "Service", ".", "This", "also", "returns", "the", "DNS", "Servers", "as", "visible...
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/network_status.rb#L36-L39
train
Gets the specified service.
[ 30522, 13366, 2131, 1035, 2011, 1035, 2326, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 2326, 1035, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 2131, 1035, 2011, 1035, 2326, 1035, 2004, 6038, 2278, 1006, 7692, 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...
hanami/hanami
lib/hanami/server.rb
Hanami.Server._extract_options
def _extract_options environment.to_options.merge( config: rackup, Host: environment.host, Port: environment.port, AccessLog: [] ) end
ruby
def _extract_options environment.to_options.merge( config: rackup, Host: environment.host, Port: environment.port, AccessLog: [] ) end
[ "def", "_extract_options", "environment", ".", "to_options", ".", "merge", "(", "config", ":", "rackup", ",", "Host", ":", "environment", ".", "host", ",", "Port", ":", "environment", ".", "port", ",", "AccessLog", ":", "[", "]", ")", "end" ]
Options for Rack::Server superclass @since 0.8.0 @api private
[ "Options", "for", "Rack", "::", "Server", "superclass" ]
8c6e5147e92ef869b25379448572da3698eacfdc
https://github.com/hanami/hanami/blob/8c6e5147e92ef869b25379448572da3698eacfdc/lib/hanami/server.rb#L84-L91
train
Extract the options from the environment
[ 30522, 13366, 1035, 14817, 1035, 7047, 4044, 1012, 2000, 1035, 7047, 1012, 13590, 1006, 9530, 8873, 2290, 1024, 14513, 6279, 1010, 3677, 1024, 4044, 1012, 3677, 1010, 3417, 1024, 4044, 1012, 3417, 1010, 3229, 21197, 1024, 1031, 1033, 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...
meew0/discordrb
lib/discordrb/commands/rate_limiter.rb
Discordrb::Commands.Bucket.clean
def clean(rate_limit_time = nil) rate_limit_time ||= Time.now @bucket.delete_if do |_, limit_hash| # Time limit has not run out return false if @time_span && rate_limit_time < (limit_hash[:set_time] + @time_span) # Delay has not run out return false if @delay && rate_limit_...
ruby
def clean(rate_limit_time = nil) rate_limit_time ||= Time.now @bucket.delete_if do |_, limit_hash| # Time limit has not run out return false if @time_span && rate_limit_time < (limit_hash[:set_time] + @time_span) # Delay has not run out return false if @delay && rate_limit_...
[ "def", "clean", "(", "rate_limit_time", "=", "nil", ")", "rate_limit_time", "||=", "Time", ".", "now", "@bucket", ".", "delete_if", "do", "|", "_", ",", "limit_hash", "|", "# Time limit has not run out", "return", "false", "if", "@time_span", "&&", "rate_limit_t...
Makes a new bucket @param limit [Integer, nil] How many requests the user may perform in the given time_span, or nil if there should be no limit. @param time_span [Integer, nil] The time span after which the request count is reset, in seconds, or nil if the bucket should never be reset. (If this is nil, limit should ...
[ "Makes", "a", "new", "bucket" ]
764298a1ff0be69a1853b510d736f21c2b91a2fe
https://github.com/meew0/discordrb/blob/764298a1ff0be69a1853b510d736f21c2b91a2fe/lib/discordrb/commands/rate_limiter.rb#L23-L35
train
Clean the bucket
[ 30522, 13366, 4550, 1006, 3446, 1035, 5787, 1035, 2051, 1027, 9152, 2140, 1007, 3446, 1035, 5787, 1035, 2051, 1064, 1064, 1027, 2051, 1012, 2085, 1030, 13610, 1012, 3972, 12870, 1035, 2065, 2079, 1064, 1035, 1010, 5787, 1035, 23325, 1064, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
heroku/legacy-cli
lib/heroku/command/addons.rb
Heroku::Command.Addons.upgrade
def upgrade addon_name, plan = args.shift, args.shift if addon_name && !plan # If invocated as `addons:Xgrade service:plan` deprecate("No add-on name specified (see `heroku help #{current_command}`)") addon = nil plan = addon_name service = plan.split(':').first ac...
ruby
def upgrade addon_name, plan = args.shift, args.shift if addon_name && !plan # If invocated as `addons:Xgrade service:plan` deprecate("No add-on name specified (see `heroku help #{current_command}`)") addon = nil plan = addon_name service = plan.split(':').first ac...
[ "def", "upgrade", "addon_name", ",", "plan", "=", "args", ".", "shift", ",", "args", ".", "shift", "if", "addon_name", "&&", "!", "plan", "# If invocated as `addons:Xgrade service:plan`", "deprecate", "(", "\"No add-on name specified (see `heroku help #{current_command}`)\"...
addons:upgrade ADDON_NAME ADDON_SERVICE:PLAN upgrade an existing add-on resource to PLAN
[ "addons", ":", "upgrade", "ADDON_NAME", "ADDON_SERVICE", ":", "PLAN" ]
6f18521a258394bfb79e6b36f7160ad8559a8e16
https://github.com/heroku/legacy-cli/blob/6f18521a258394bfb79e6b36f7160ad8559a8e16/lib/heroku/command/addons.rb#L234-L275
train
Upgrade an add - on to a new plan
[ 30522, 13366, 12200, 5587, 2239, 1035, 2171, 1010, 2933, 1027, 12098, 5620, 1012, 5670, 1010, 12098, 5620, 1012, 5670, 2065, 5587, 2239, 1035, 2171, 1004, 1004, 999, 2933, 1001, 2065, 1999, 6767, 12921, 2004, 1036, 5587, 5644, 1024, 1060, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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/virtual_network_gateway_connections.rb
Azure::Network::Mgmt::V2018_07_01.VirtualNetworkGatewayConnections.begin_delete
def begin_delete(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) response = begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:custom_headers).value! nil end
ruby
def begin_delete(resource_group_name, virtual_network_gateway_connection_name, custom_headers:nil) response = begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers:custom_headers).value! nil end
[ "def", "begin_delete", "(", "resource_group_name", ",", "virtual_network_gateway_connection_name", ",", "custom_headers", ":", "nil", ")", "response", "=", "begin_delete_async", "(", "resource_group_name", ",", "virtual_network_gateway_connection_name", ",", "custom_headers", ...
Deletes the specified virtual network Gateway connection. @param resource_group_name [String] The name of the resource group. @param virtual_network_gateway_connection_name [String] The name of the virtual network gateway connection. @param custom_headers [Hash{String => String}] A hash of custom headers that wil...
[ "Deletes", "the", "specified", "virtual", "network", "Gateway", "connection", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_network/lib/2018-07-01/generated/azure_mgmt_network/virtual_network_gateway_connections.rb#L685-L688
train
Deletes a virtual network gateway connection.
[ 30522, 13366, 4088, 1035, 3972, 12870, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 7484, 1035, 2897, 1035, 11909, 1035, 4434, 1035, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 4088, 1035, 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...
aws/aws-sdk-ruby
gems/aws-sdk-cloudwatch/lib/aws-sdk-cloudwatch/metric.rb
Aws::CloudWatch.Metric.put_data
def put_data(options = {}) options = Aws::Util.deep_merge(options, namespace: @namespace, metric_data: [{ metric_name: @name }] ) resp = @client.put_metric_data(options) resp.data end
ruby
def put_data(options = {}) options = Aws::Util.deep_merge(options, namespace: @namespace, metric_data: [{ metric_name: @name }] ) resp = @client.put_metric_data(options) resp.data end
[ "def", "put_data", "(", "options", "=", "{", "}", ")", "options", "=", "Aws", "::", "Util", ".", "deep_merge", "(", "options", ",", "namespace", ":", "@namespace", ",", "metric_data", ":", "[", "{", "metric_name", ":", "@name", "}", "]", ")", "resp", ...
@example Request syntax with placeholder values metric.put_data({ metric_data: [ # required { metric_name: "MetricName", # required dimensions: [ { name: "DimensionName", # required value: "DimensionValue", # required }, ], ...
[ "@example", "Request", "syntax", "with", "placeholder", "values" ]
e28b8d320ddf7b6ee0161bdd9d00fb786d99b63d
https://github.com/aws/aws-sdk-ruby/blob/e28b8d320ddf7b6ee0161bdd9d00fb786d99b63d/gems/aws-sdk-cloudwatch/lib/aws-sdk-cloudwatch/metric.rb#L583-L590
train
Put metric data
[ 30522, 13366, 2404, 1035, 2951, 1006, 7047, 1027, 1063, 1065, 1007, 7047, 1027, 22091, 2015, 1024, 1024, 21183, 4014, 1012, 2784, 1035, 13590, 1006, 7047, 1010, 3415, 15327, 1024, 1030, 3415, 15327, 1010, 12046, 1035, 2951, 1024, 1031, 1063...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
data/azure_key_vault/lib/2016-10-01/generated/azure_key_vault/key_vault_client.rb
Azure::KeyVault::V2016_10_01.KeyVaultClient.get_storage_accounts_as_lazy_with_http_info
def get_storage_accounts_as_lazy_with_http_info(vault_base_url, maxresults:nil, custom_headers:nil) get_storage_accounts_as_lazy_async(vault_base_url, maxresults:maxresults, custom_headers:custom_headers).value! end
ruby
def get_storage_accounts_as_lazy_with_http_info(vault_base_url, maxresults:nil, custom_headers:nil) get_storage_accounts_as_lazy_async(vault_base_url, maxresults:maxresults, custom_headers:custom_headers).value! end
[ "def", "get_storage_accounts_as_lazy_with_http_info", "(", "vault_base_url", ",", "maxresults", ":", "nil", ",", "custom_headers", ":", "nil", ")", "get_storage_accounts_as_lazy_async", "(", "vault_base_url", ",", "maxresults", ":", "maxresults", ",", "custom_headers", ":...
List storage accounts managed by the specified key vault. This operation requires the storage/list permission. @param vault_base_url [String] The vault name, for example https://myvault.vault.azure.net. @param maxresults [Integer] Maximum number of results to return in a page. If not specified the service will re...
[ "List", "storage", "accounts", "managed", "by", "the", "specified", "key", "vault", ".", "This", "operation", "requires", "the", "storage", "/", "list", "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#L10571-L10573
train
Gets the storage accounts for the specified vault.
[ 30522, 13366, 2131, 1035, 5527, 1035, 6115, 1035, 2004, 1035, 13971, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 11632, 1035, 2918, 1035, 24471, 2140, 1010, 4098, 6072, 11314, 2015, 1024, 9152, 2140, 1010, 7661, 1035, 20346, 2015, 1024, 9152...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
aws/aws-sdk-ruby
gems/aws-sdk-ec2/lib/aws-sdk-ec2/network_interface.rb
Aws::EC2.NetworkInterface.modify_attribute
def modify_attribute(options = {}) options = options.merge(network_interface_id: @id) resp = @client.modify_network_interface_attribute(options) resp.data end
ruby
def modify_attribute(options = {}) options = options.merge(network_interface_id: @id) resp = @client.modify_network_interface_attribute(options) resp.data end
[ "def", "modify_attribute", "(", "options", "=", "{", "}", ")", "options", "=", "options", ".", "merge", "(", "network_interface_id", ":", "@id", ")", "resp", "=", "@client", ".", "modify_network_interface_attribute", "(", "options", ")", "resp", ".", "data", ...
@example Request syntax with placeholder values network_interface.modify_attribute({ attachment: { attachment_id: "String", delete_on_termination: false, }, description: "value", # value <Hash,Array,String,Numeric,Boolean,IO,Set,nil> dry_run: false, groups: ["String"], so...
[ "@example", "Request", "syntax", "with", "placeholder", "values" ]
e28b8d320ddf7b6ee0161bdd9d00fb786d99b63d
https://github.com/aws/aws-sdk-ruby/blob/e28b8d320ddf7b6ee0161bdd9d00fb786d99b63d/gems/aws-sdk-ec2/lib/aws-sdk-ec2/network_interface.rb#L468-L472
train
Modify the attributes of the network interface.
[ 30522, 13366, 19933, 1035, 17961, 1006, 7047, 1027, 1063, 1065, 1007, 7047, 1027, 7047, 1012, 13590, 1006, 2897, 1035, 8278, 1035, 8909, 1024, 1030, 8909, 1007, 24501, 2361, 1027, 1030, 7396, 1012, 19933, 1035, 2897, 1035, 8278, 1035, 17961...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/endpoints.rb
Azure::CDN::Mgmt::V2015_06_01.Endpoints.stop
def stop(endpoint_name, profile_name, resource_group_name, custom_headers:nil) response = stop_async(endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def stop(endpoint_name, profile_name, resource_group_name, custom_headers:nil) response = stop_async(endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "stop", "(", "endpoint_name", ",", "profile_name", ",", "resource_group_name", ",", "custom_headers", ":", "nil", ")", "response", "=", "stop_async", "(", "endpoint_name", ",", "profile_name", ",", "resource_group_name", ",", "custom_headers", ":custom_headers"...
Stops an existing running CDN endpoint. @param endpoint_name [String] Name of the endpoint within the CDN profile. @param profile_name [String] Name of the CDN profile within the resource group. @param resource_group_name [String] Name of the resource group within the Azure subscription. @param custom_headers [H...
[ "Stops", "an", "existing", "running", "CDN", "endpoint", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/endpoints.rb#L435-L438
train
Stops an endpoint.
[ 30522, 13366, 2644, 1006, 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, 2644, 1035, 2004, 6038, 2278, 1006, 2203, 8400, 1035, 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...
sds/overcommit
lib/overcommit/git_repo.rb
Overcommit.GitRepo.restore_merge_state
def restore_merge_state if @merge_head FileUtils.touch(File.expand_path('MERGE_MODE', Overcommit::Utils.git_dir)) File.open(File.expand_path('MERGE_HEAD', Overcommit::Utils.git_dir), 'w') do |f| f.write(@merge_head) end @merge_head = nil end if @merge_msg ...
ruby
def restore_merge_state if @merge_head FileUtils.touch(File.expand_path('MERGE_MODE', Overcommit::Utils.git_dir)) File.open(File.expand_path('MERGE_HEAD', Overcommit::Utils.git_dir), 'w') do |f| f.write(@merge_head) end @merge_head = nil end if @merge_msg ...
[ "def", "restore_merge_state", "if", "@merge_head", "FileUtils", ".", "touch", "(", "File", ".", "expand_path", "(", "'MERGE_MODE'", ",", "Overcommit", "::", "Utils", ".", "git_dir", ")", ")", "File", ".", "open", "(", "File", ".", "expand_path", "(", "'MERGE...
Restore any relevant files that were present when repo was in the middle of a merge.
[ "Restore", "any", "relevant", "files", "that", "were", "present", "when", "repo", "was", "in", "the", "middle", "of", "a", "merge", "." ]
35d60adb41da942178b789560968e3ad030b0ac7
https://github.com/sds/overcommit/blob/35d60adb41da942178b789560968e3ad030b0ac7/lib/overcommit/git_repo.rb#L175-L191
train
Restore the merge state of the current branch.
[ 30522, 13366, 9239, 1035, 13590, 1035, 2110, 2065, 1030, 13590, 1035, 2132, 5371, 21823, 4877, 1012, 3543, 1006, 5371, 1012, 7818, 1035, 4130, 1006, 1005, 13590, 1035, 5549, 1005, 1010, 2058, 9006, 22930, 1024, 1024, 21183, 12146, 1012, 210...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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/endpoints.rb
Azure::CDN::Mgmt::V2017_04_02.Endpoints.begin_delete
def begin_delete(resource_group_name, profile_name, endpoint_name, custom_headers:nil) response = begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! nil end
ruby
def begin_delete(resource_group_name, profile_name, endpoint_name, custom_headers:nil) response = begin_delete_async(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers).value! nil end
[ "def", "begin_delete", "(", "resource_group_name", ",", "profile_name", ",", "endpoint_name", ",", "custom_headers", ":", "nil", ")", "response", "=", "begin_delete_async", "(", "resource_group_name", ",", "profile_name", ",", "endpoint_name", ",", "custom_headers", "...
Deletes an existing CDN endpoint with the specified endpoint name under the specified subscription, resource group and profile. @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 gro...
[ "Deletes", "an", "existing", "CDN", "endpoint", "with", "the", "specified", "endpoint", "name", "under", "the", "specified", "subscription", "resource", "group", "and", "profile", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/endpoints.rb#L1138-L1141
train
Deletes an endpoint.
[ 30522, 13366, 4088, 1035, 3972, 12870, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 6337, 1035, 2171, 1010, 2203, 8400, 1035, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 4088, 1035, 3972, 12870, 1035, 2004, 6038, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
data/azure_cognitiveservices_face/lib/1.0/generated/azure_cognitiveservices_face/face.rb
Azure::CognitiveServices::Face::V1_0.Face.group
def group(face_ids, custom_headers:nil) response = group_async(face_ids, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def group(face_ids, custom_headers:nil) response = group_async(face_ids, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "group", "(", "face_ids", ",", "custom_headers", ":", "nil", ")", "response", "=", "group_async", "(", "face_ids", ",", "custom_headers", ":custom_headers", ")", ".", "value!", "response", ".", "body", "unless", "response", ".", "nil?", "end" ]
Divide candidate faces into groups based on face similarity.<br /> * The output is one or more disjointed face groups and a messyGroup. A face group contains faces that have similar looking, often of the same person. Face groups are ranked by group size, i.e. number of faces. Notice that faces belonging to a same p...
[ "Divide", "candidate", "faces", "into", "groups", "based", "on", "face", "similarity", ".", "<br", "/", ">", "*", "The", "output", "is", "one", "or", "more", "disjointed", "face", "groups", "and", "a", "messyGroup", ".", "A", "face", "group", "contains", ...
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_cognitiveservices_face/lib/1.0/generated/azure_cognitiveservices_face/face.rb#L308-L311
train
Gets the list of faces in a given group.
[ 30522, 13366, 2177, 1006, 2227, 1035, 8909, 2015, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 2177, 1035, 2004, 6038, 2278, 1006, 2227, 1035, 8909, 2015, 1010, 7661, 1035, 20346, 2015, 1024, 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...
typhoeus/typhoeus
lib/typhoeus/easy_factory.rb
Typhoeus.EasyFactory.set_callback
def set_callback if request.streaming? response = nil easy.on_headers do |easy| response = Response.new(Ethon::Easy::Mirror.from_easy(easy).options) request.execute_headers_callbacks(response) end request.on_body.each do |callback| easy.on_body do |chu...
ruby
def set_callback if request.streaming? response = nil easy.on_headers do |easy| response = Response.new(Ethon::Easy::Mirror.from_easy(easy).options) request.execute_headers_callbacks(response) end request.on_body.each do |callback| easy.on_body do |chu...
[ "def", "set_callback", "if", "request", ".", "streaming?", "response", "=", "nil", "easy", ".", "on_headers", "do", "|", "easy", "|", "response", "=", "Response", ".", "new", "(", "Ethon", "::", "Easy", "::", "Mirror", ".", "from_easy", "(", "easy", ")",...
Sets on_complete callback on easy in order to be able to track progress. @example Set callback. easy_factory.set_callback @return [ Ethon::Easy ] The easy.
[ "Sets", "on_complete", "callback", "on", "easy", "in", "order", "to", "be", "able", "to", "track", "progress", "." ]
d072aaf6edcf46d54d6a6bce45286629bf4e5af6
https://github.com/typhoeus/typhoeus/blob/d072aaf6edcf46d54d6a6bce45286629bf4e5af6/lib/typhoeus/easy_factory.rb#L141-L170
train
set callback for each request
[ 30522, 13366, 2275, 1035, 2655, 5963, 2065, 5227, 1012, 11058, 1029, 3433, 1027, 9152, 2140, 3733, 1012, 2006, 1035, 20346, 2015, 2079, 1064, 3733, 1064, 3433, 1027, 3433, 1012, 2047, 1006, 3802, 8747, 1024, 1024, 3733, 1024, 1024, 5259, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
cloudfoundry/bosh
src/bosh-director/lib/bosh/director/links/links_manager.rb
Bosh::Director::Links.LinksManager.find_or_create_provider_intent
def find_or_create_provider_intent(link_provider:, link_original_name:, link_type:) intent = Bosh::Director::Models::Links::LinkProviderIntent.find( link_provider: link_provider, original_name: link_original_name, ) if intent.nil? intent = Bosh::Director::Models::Links::LinkPr...
ruby
def find_or_create_provider_intent(link_provider:, link_original_name:, link_type:) intent = Bosh::Director::Models::Links::LinkProviderIntent.find( link_provider: link_provider, original_name: link_original_name, ) if intent.nil? intent = Bosh::Director::Models::Links::LinkPr...
[ "def", "find_or_create_provider_intent", "(", "link_provider", ":", ",", "link_original_name", ":", ",", "link_type", ":", ")", "intent", "=", "Bosh", "::", "Director", "::", "Models", "::", "Links", "::", "LinkProviderIntent", ".", "find", "(", "link_provider", ...
Used by provider, not using alias because want to update existing provider intent when alias changes
[ "Used", "by", "provider", "not", "using", "alias", "because", "want", "to", "update", "existing", "provider", "intent", "when", "alias", "changes" ]
2eaa7100879ddd20cd909cd698514746195e28b7
https://github.com/cloudfoundry/bosh/blob/2eaa7100879ddd20cd909cd698514746195e28b7/src/bosh-director/lib/bosh/director/links/links_manager.rb#L46-L64
train
Find or create a link provider intent
[ 30522, 13366, 2424, 1035, 2030, 1035, 3443, 1035, 10802, 1035, 7848, 1006, 4957, 1035, 10802, 1024, 1010, 4957, 1035, 2434, 1035, 2171, 1024, 1010, 4957, 1035, 2828, 1024, 1007, 7848, 1027, 8945, 4095, 1024, 1024, 2472, 1024, 1024, 4275, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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/ui/github_issue_inspector_reporter.rb
Fastlane.InspectorReporter.inspector_started_query
def inspector_started_query(query, inspector) puts("") puts("Looking for related GitHub issues on #{inspector.repo_owner}/#{inspector.repo_name}...") puts("Search query: #{query}") if FastlaneCore::Globals.verbose? puts("") end
ruby
def inspector_started_query(query, inspector) puts("") puts("Looking for related GitHub issues on #{inspector.repo_owner}/#{inspector.repo_name}...") puts("Search query: #{query}") if FastlaneCore::Globals.verbose? puts("") end
[ "def", "inspector_started_query", "(", "query", ",", "inspector", ")", "puts", "(", "\"\"", ")", "puts", "(", "\"Looking for related GitHub issues on #{inspector.repo_owner}/#{inspector.repo_name}...\"", ")", "puts", "(", "\"Search query: #{query}\"", ")", "if", "FastlaneCore...
Called just as the investigation has begun.
[ "Called", "just", "as", "the", "investigation", "has", "begun", "." ]
457c5d647c77f0e078dafa5129da616914e002c5
https://github.com/fastlane/fastlane/blob/457c5d647c77f0e078dafa5129da616914e002c5/fastlane_core/lib/fastlane_core/ui/github_issue_inspector_reporter.rb#L11-L16
train
Called when a search is started
[ 30522, 13366, 7742, 1035, 2318, 1035, 23032, 1006, 23032, 1010, 7742, 1007, 8509, 1006, 1000, 1000, 1007, 8509, 1006, 1000, 2559, 2005, 3141, 21025, 2705, 12083, 3314, 2006, 1001, 1063, 7742, 1012, 16360, 2080, 1035, 3954, 1065, 1013, 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...
CanCanCommunity/cancancan
lib/cancan/ability.rb
CanCan.Ability.cannot
def cannot(action = nil, subject = nil, *attributes_and_conditions, &block) add_rule(Rule.new(false, action, subject, *attributes_and_conditions, &block)) end
ruby
def cannot(action = nil, subject = nil, *attributes_and_conditions, &block) add_rule(Rule.new(false, action, subject, *attributes_and_conditions, &block)) end
[ "def", "cannot", "(", "action", "=", "nil", ",", "subject", "=", "nil", ",", "*", "attributes_and_conditions", ",", "&", "block", ")", "add_rule", "(", "Rule", ".", "new", "(", "false", ",", "action", ",", "subject", ",", "attributes_and_conditions", ",", ...
Defines an ability which cannot be done. Accepts the same arguments as "can". can :read, :all cannot :read, Comment A block can be passed just like "can", however if the logic is complex it is recommended to use the "can" method. cannot :read, Product do |product| product.invisible? end
[ "Defines", "an", "ability", "which", "cannot", "be", "done", ".", "Accepts", "the", "same", "arguments", "as", "can", "." ]
b2e5660c6b9b683fc45b8f425b90c4d06e2f24bf
https://github.com/CanCanCommunity/cancancan/blob/b2e5660c6b9b683fc45b8f425b90c4d06e2f24bf/lib/cancan/ability.rb#L160-L162
train
Add a rule that cannot be performed.
[ 30522, 13366, 3685, 1006, 2895, 1027, 9152, 2140, 1010, 3395, 1027, 9152, 2140, 1010, 1008, 12332, 1035, 1998, 1035, 3785, 1010, 1004, 3796, 1007, 5587, 1035, 3627, 1006, 3627, 1012, 2047, 1006, 6270, 1010, 2895, 1010, 3395, 1010, 1008, 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_locks/lib/2015-01-01/generated/azure_mgmt_locks/management_locks.rb
Azure::Locks::Mgmt::V2015_01_01.ManagementLocks.create_or_update_at_resource_group_level_with_http_info
def create_or_update_at_resource_group_level_with_http_info(resource_group_name, lock_name, parameters, custom_headers:nil) create_or_update_at_resource_group_level_async(resource_group_name, lock_name, parameters, custom_headers:custom_headers).value! end
ruby
def create_or_update_at_resource_group_level_with_http_info(resource_group_name, lock_name, parameters, custom_headers:nil) create_or_update_at_resource_group_level_async(resource_group_name, lock_name, parameters, custom_headers:custom_headers).value! end
[ "def", "create_or_update_at_resource_group_level_with_http_info", "(", "resource_group_name", ",", "lock_name", ",", "parameters", ",", "custom_headers", ":", "nil", ")", "create_or_update_at_resource_group_level_async", "(", "resource_group_name", ",", "lock_name", ",", "param...
Create or update a management lock at the resource group level. @param resource_group_name [String] The resource group name. @param lock_name [String] The lock name. @param parameters [ManagementLockObject] The management lock parameters. @param custom_headers [Hash{String => String}] A hash of custom headers that...
[ "Create", "or", "update", "a", "management", "lock", "at", "the", "resource", "group", "level", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_locks/lib/2015-01-01/generated/azure_mgmt_locks/management_locks.rb#L51-L53
train
Creates or updates a lock at resource group level.
[ 30522, 13366, 3443, 1035, 2030, 1035, 10651, 1035, 2012, 1035, 7692, 1035, 2177, 1035, 2504, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 5843, 1035, 2171, 1010, 11709, 1010, 7661, 1035, 20346, 2015, 1024, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
decidim/decidim
decidim-core/app/helpers/decidim/orders_helper.rb
Decidim.OrdersHelper.order_selector
def order_selector(orders, options = {}) render partial: "decidim/shared/orders", locals: { orders: orders, i18n_scope: options[:i18n_scope] } end
ruby
def order_selector(orders, options = {}) render partial: "decidim/shared/orders", locals: { orders: orders, i18n_scope: options[:i18n_scope] } end
[ "def", "order_selector", "(", "orders", ",", "options", "=", "{", "}", ")", "render", "partial", ":", "\"decidim/shared/orders\"", ",", "locals", ":", "{", "orders", ":", "orders", ",", "i18n_scope", ":", "options", "[", ":i18n_scope", "]", "}", "end" ]
Public: It renders the order selector for the provided orders (Note) This method requires the javascript 'decidim/orders' to be present in the page. orders - An array of order criterias options - An optional hash of options * i18n_scope - The scope of the i18n translations
[ "Public", ":", "It", "renders", "the", "order", "selector", "for", "the", "provided", "orders", "(", "Note", ")", "This", "method", "requires", "the", "javascript", "decidim", "/", "orders", "to", "be", "present", "in", "the", "page", "." ]
6e2b14e559a63088669904e3c5c49a5180700cf7
https://github.com/decidim/decidim/blob/6e2b14e559a63088669904e3c5c49a5180700cf7/decidim-core/app/helpers/decidim/orders_helper.rb#L13-L18
train
render order selector
[ 30522, 13366, 2344, 1035, 27000, 1006, 4449, 1010, 7047, 1027, 1063, 1065, 1007, 17552, 7704, 1024, 1000, 11703, 28173, 2213, 1013, 4207, 1013, 4449, 1000, 1010, 10575, 1024, 1063, 4449, 1024, 4449, 1010, 1045, 15136, 2078, 1035, 9531, 1024...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
aws/aws-sdk-ruby
gems/aws-sdk-ec2/lib/aws-sdk-ec2/vpc.rb
Aws::EC2.Vpc.network_acls
def network_acls(options = {}) batches = Enumerator.new do |y| options = Aws::Util.deep_merge(options, filters: [{ name: "vpc-id", values: [@id] }]) resp = @client.describe_network_acls(options) resp.each_page do |page| batch = [] page.data.n...
ruby
def network_acls(options = {}) batches = Enumerator.new do |y| options = Aws::Util.deep_merge(options, filters: [{ name: "vpc-id", values: [@id] }]) resp = @client.describe_network_acls(options) resp.each_page do |page| batch = [] page.data.n...
[ "def", "network_acls", "(", "options", "=", "{", "}", ")", "batches", "=", "Enumerator", ".", "new", "do", "|", "y", "|", "options", "=", "Aws", "::", "Util", ".", "deep_merge", "(", "options", ",", "filters", ":", "[", "{", "name", ":", "\"vpc-id\""...
@example Request syntax with placeholder values network_acls = vpc.network_acls({ filters: [ { name: "String", values: ["String"], }, ], dry_run: false, network_acl_ids: ["String"], }) @param [Hash] options ({}) @option options [Array<Types::Filter>] :filters...
[ "@example", "Request", "syntax", "with", "placeholder", "values" ]
e28b8d320ddf7b6ee0161bdd9d00fb786d99b63d
https://github.com/aws/aws-sdk-ruby/blob/e28b8d320ddf7b6ee0161bdd9d00fb786d99b63d/gems/aws-sdk-ec2/lib/aws-sdk-ec2/vpc.rb#L1242-L1262
train
Returns a list of NetworkAcls
[ 30522, 13366, 2897, 1035, 9353, 4877, 1006, 7047, 1027, 1063, 1065, 1007, 14108, 2229, 1027, 4372, 17897, 16259, 1012, 2047, 2079, 1064, 1061, 1064, 7047, 1027, 22091, 2015, 1024, 1024, 21183, 4014, 1012, 2784, 1035, 13590, 1006, 7047, 1010...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_consumption/lib/2018-01-31/generated/azure_mgmt_consumption/reservations_summaries.rb
Azure::Consumption::Mgmt::V2018_01_31.ReservationsSummaries.list_by_reservation_order_next
def list_by_reservation_order_next(next_page_link, custom_headers:nil) response = list_by_reservation_order_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def list_by_reservation_order_next(next_page_link, custom_headers:nil) response = list_by_reservation_order_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "list_by_reservation_order_next", "(", "next_page_link", ",", "custom_headers", ":", "nil", ")", "response", "=", "list_by_reservation_order_next_async", "(", "next_page_link", ",", "custom_headers", ":custom_headers", ")", ".", "value!", "response", ".", "body", ...
Lists the reservations summaries for daily or monthly grain. @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 [ReservationSummariesListResult] op...
[ "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/2018-01-31/generated/azure_mgmt_consumption/reservations_summaries.rb#L245-L248
train
Gets the list of the elastic product terms.
[ 30522, 13366, 2862, 1035, 2011, 1035, 11079, 1035, 2344, 1035, 2279, 1006, 2279, 1035, 3931, 1035, 4957, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 2862, 1035, 2011, 1035, 11079, 1035, 2344, 1035, 2279, 1035, 2004, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kpumuk/meta-tags
lib/meta_tags/renderer.rb
MetaTags.Renderer.render_links
def render_links(tags) [ :amphtml, :canonical, :prev, :next, :image_src ].each do |tag_name| href = meta_tags.extract(tag_name) if href.present? @normalized_meta_tags[tag_name] = href tags << Tag.new(:link, rel: tag_name, href: href) end end end
ruby
def render_links(tags) [ :amphtml, :canonical, :prev, :next, :image_src ].each do |tag_name| href = meta_tags.extract(tag_name) if href.present? @normalized_meta_tags[tag_name] = href tags << Tag.new(:link, rel: tag_name, href: href) end end end
[ "def", "render_links", "(", "tags", ")", "[", ":amphtml", ",", ":canonical", ",", ":prev", ",", ":next", ",", ":image_src", "]", ".", "each", "do", "|", "tag_name", "|", "href", "=", "meta_tags", ".", "extract", "(", "tag_name", ")", "if", "href", ".",...
Renders links. @param [Array<Tag>] tags a buffer object to store tag in.
[ "Renders", "links", "." ]
03585f95edf96cd17024c5c155ce46ec8bc47232
https://github.com/kpumuk/meta-tags/blob/03585f95edf96cd17024c5c155ce46ec8bc47232/lib/meta_tags/renderer.rb#L152-L160
train
render links
[ 30522, 13366, 17552, 1035, 6971, 1006, 22073, 1007, 1031, 1024, 23713, 11039, 19968, 1010, 1024, 18562, 1010, 1024, 3653, 2615, 1010, 1024, 2279, 1010, 1024, 3746, 1035, 5034, 2278, 1033, 1012, 2169, 2079, 1064, 6415, 1035, 2171, 1064, 1785...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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/events/message.rb
Discordrb::Events.Respondable.drain_into
def drain_into(result) return if result.is_a?(Discordrb::Message) result = (@saved_message.nil? ? '' : @saved_message.to_s) + (result.nil? ? '' : result.to_s) drain result end
ruby
def drain_into(result) return if result.is_a?(Discordrb::Message) result = (@saved_message.nil? ? '' : @saved_message.to_s) + (result.nil? ? '' : result.to_s) drain result end
[ "def", "drain_into", "(", "result", ")", "return", "if", "result", ".", "is_a?", "(", "Discordrb", "::", "Message", ")", "result", "=", "(", "@saved_message", ".", "nil?", "?", "''", ":", "@saved_message", ".", "to_s", ")", "+", "(", "result", ".", "ni...
Drains the currently saved message into a result string. This prepends it before that string, clears the saved message and returns the concatenation. @param result [String] The result string to drain into. @return [String] a string formed by concatenating the saved message and the argument.
[ "Drains", "the", "currently", "saved", "message", "into", "a", "result", "string", ".", "This", "prepends", "it", "before", "that", "string", "clears", "the", "saved", "message", "and", "returns", "the", "concatenation", "." ]
764298a1ff0be69a1853b510d736f21c2b91a2fe
https://github.com/meew0/discordrb/blob/764298a1ff0be69a1853b510d736f21c2b91a2fe/lib/discordrb/events/message.rb#L62-L68
train
Drain into the given result object.
[ 30522, 13366, 12475, 1035, 2046, 1006, 2765, 1007, 2709, 2065, 2765, 1012, 2003, 1035, 1037, 1029, 1006, 12532, 4103, 15185, 1024, 1024, 4471, 1007, 2765, 1027, 1006, 1030, 5552, 1035, 4471, 1012, 9152, 2140, 1029, 1029, 1005, 1005, 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...
ai/autoprefixer-rails
lib/autoprefixer-rails/processor.rb
AutoprefixerRails.Processor.convert_options
def convert_options(opts) converted = {} opts.each_pair do |name, value| if /_/ =~ name name = name.to_s.gsub(/_\w/) { |i| i.delete("_").upcase }.to_sym end value = convert_options(value) if value.is_a? Hash converted[name] = value end converted en...
ruby
def convert_options(opts) converted = {} opts.each_pair do |name, value| if /_/ =~ name name = name.to_s.gsub(/_\w/) { |i| i.delete("_").upcase }.to_sym end value = convert_options(value) if value.is_a? Hash converted[name] = value end converted en...
[ "def", "convert_options", "(", "opts", ")", "converted", "=", "{", "}", "opts", ".", "each_pair", "do", "|", "name", ",", "value", "|", "if", "/", "/", "=~", "name", "name", "=", "name", ".", "to_s", ".", "gsub", "(", "/", "\\w", "/", ")", "{", ...
Convert ruby_options to jsOptions
[ "Convert", "ruby_options", "to", "jsOptions" ]
22543372b33c688c409b46adfef4d1763041961f
https://github.com/ai/autoprefixer-rails/blob/22543372b33c688c409b46adfef4d1763041961f/lib/autoprefixer-rails/processor.rb#L107-L119
train
Convert options to a Hash
[ 30522, 13366, 10463, 1035, 7047, 1006, 23569, 2015, 1007, 4991, 1027, 1063, 1065, 23569, 2015, 1012, 2169, 1035, 3940, 2079, 1064, 2171, 1010, 3643, 1064, 2065, 1013, 1035, 1013, 1027, 1066, 2171, 2171, 1027, 2171, 1012, 30524, 1012, 2003, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
AaronLasseigne/active_interaction
lib/active_interaction/base.rb
ActiveInteraction.Base.inputs
def inputs self.class.filters.keys.each_with_object({}) do |name, h| h[name] = public_send(name) end end
ruby
def inputs self.class.filters.keys.each_with_object({}) do |name, h| h[name] = public_send(name) end end
[ "def", "inputs", "self", ".", "class", ".", "filters", ".", "keys", ".", "each_with_object", "(", "{", "}", ")", "do", "|", "name", ",", "h", "|", "h", "[", "name", "]", "=", "public_send", "(", "name", ")", "end", "end" ]
@param inputs [Hash{Symbol => Object}] Attribute values to set. @private @!method compose(other, inputs = {}) Run another interaction and return its result. If the other interaction fails, halt execution. @param other (see ActiveInteraction::Runnable#compose) @param inputs (see ActiveInteraction::Base...
[ "@param", "inputs", "[", "Hash", "{", "Symbol", "=", ">", "Object", "}", "]", "Attribute", "values", "to", "set", "." ]
fdc00a041e939ef48948baa2f7fd1ce2e4d66982
https://github.com/AaronLasseigne/active_interaction/blob/fdc00a041e939ef48948baa2f7fd1ce2e4d66982/lib/active_interaction/base.rb#L197-L201
train
Returns the array of the inputs that are available for the current class.
[ 30522, 13366, 20407, 2969, 1012, 2465, 1012, 17736, 1012, 6309, 1012, 2169, 1035, 2007, 1035, 4874, 1006, 1063, 1065, 1007, 2079, 1064, 2171, 1010, 1044, 1064, 1044, 1031, 2171, 1033, 1027, 2270, 1035, 4604, 1006, 2171, 1007, 2203, 2203, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
deivid-rodriguez/byebug
lib/byebug/frame.rb
Byebug.Frame.deco_args
def deco_args return "" if args.empty? my_args = args.map do |arg| prefix, default = prefix_and_default(arg[0]) kls = use_short_style?(arg) ? "" : "##{locals[arg[1]].class}" "#{prefix}#{arg[1] || default}#{kls}" end "(#{my_args.join(', ')})" end
ruby
def deco_args return "" if args.empty? my_args = args.map do |arg| prefix, default = prefix_and_default(arg[0]) kls = use_short_style?(arg) ? "" : "##{locals[arg[1]].class}" "#{prefix}#{arg[1] || default}#{kls}" end "(#{my_args.join(', ')})" end
[ "def", "deco_args", "return", "\"\"", "if", "args", ".", "empty?", "my_args", "=", "args", ".", "map", "do", "|", "arg", "|", "prefix", ",", "default", "=", "prefix_and_default", "(", "arg", "[", "0", "]", ")", "kls", "=", "use_short_style?", "(", "arg...
Builds a string containing all available args in the frame number, in a verbose or non verbose way according to the value of the +callstyle+ setting
[ "Builds", "a", "string", "containing", "all", "available", "args", "in", "the", "frame", "number", "in", "a", "verbose", "or", "non", "verbose", "way", "according", "to", "the", "value", "of", "the", "+", "callstyle", "+", "setting" ]
bf41a63858a648baa7fb621600d6451786d1572a
https://github.com/deivid-rodriguez/byebug/blob/bf41a63858a648baa7fb621600d6451786d1572a/lib/byebug/frame.rb#L89-L101
train
Returns the number of arguments that are required to be decoized.
[ 30522, 13366, 21933, 1035, 12098, 5620, 2709, 1000, 1000, 2065, 12098, 5620, 1012, 4064, 1029, 2026, 1035, 12098, 5620, 1027, 12098, 5620, 1012, 4949, 2079, 1064, 12098, 2290, 1064, 17576, 1010, 12398, 1027, 17576, 1035, 1998, 1035, 12398, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
hashicorp/vault-ruby
lib/vault/api/auth_token.rb
Vault.AuthToken.create
def create(options = {}) headers = extract_headers!(options) json = client.post("/v1/auth/token/create", JSON.fast_generate(options), headers) return Secret.decode(json) end
ruby
def create(options = {}) headers = extract_headers!(options) json = client.post("/v1/auth/token/create", JSON.fast_generate(options), headers) return Secret.decode(json) end
[ "def", "create", "(", "options", "=", "{", "}", ")", "headers", "=", "extract_headers!", "(", "options", ")", "json", "=", "client", ".", "post", "(", "\"/v1/auth/token/create\"", ",", "JSON", ".", "fast_generate", "(", "options", ")", ",", "headers", ")",...
Create an authentication token. Note that the parameters specified below are not validated and passed directly to the Vault server. Depending on the version of Vault in operation, some of these options may not work, and newer options may be available that are not listed here. @example Creating a token Vault.aut...
[ "Create", "an", "authentication", "token", ".", "Note", "that", "the", "parameters", "specified", "below", "are", "not", "validated", "and", "passed", "directly", "to", "the", "Vault", "server", ".", "Depending", "on", "the", "version", "of", "Vault", "in", ...
02f0532a802ba1a2a0d8703a4585dab76eb9d864
https://github.com/hashicorp/vault-ruby/blob/02f0532a802ba1a2a0d8703a4585dab76eb9d864/lib/vault/api/auth_token.rb#L67-L71
train
Create a new token
[ 30522, 13366, 3443, 1006, 7047, 1027, 1063, 1065, 1007, 20346, 2015, 1027, 14817, 1035, 20346, 2015, 999, 1006, 7047, 1007, 1046, 3385, 1027, 7396, 1012, 2695, 1006, 1000, 1013, 1058, 2487, 1013, 8740, 2705, 1013, 19204, 1013, 3443, 1000, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_web/lib/2018-02-01/generated/azure_mgmt_web/app_service_environments.rb
Azure::Web::Mgmt::V2018_02_01.AppServiceEnvironments.list_multi_role_metric_definitions
def list_multi_role_metric_definitions(resource_group_name, name, custom_headers:nil) first_page = list_multi_role_metric_definitions_as_lazy(resource_group_name, name, custom_headers:custom_headers) first_page.get_all_items end
ruby
def list_multi_role_metric_definitions(resource_group_name, name, custom_headers:nil) first_page = list_multi_role_metric_definitions_as_lazy(resource_group_name, name, custom_headers:custom_headers) first_page.get_all_items end
[ "def", "list_multi_role_metric_definitions", "(", "resource_group_name", ",", "name", ",", "custom_headers", ":", "nil", ")", "first_page", "=", "list_multi_role_metric_definitions_as_lazy", "(", "resource_group_name", ",", "name", ",", "custom_headers", ":custom_headers", ...
Get metric definitions for a multi-role pool of an App Service Environment. Get metric definitions for a multi-role pool of 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 cu...
[ "Get", "metric", "definitions", "for", "a", "multi", "-", "role", "pool", "of", "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#L1918-L1921
train
Gets all the metric definitions for a multi - role.
[ 30522, 13366, 2862, 1035, 4800, 1035, 2535, 1035, 12046, 1035, 15182, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 2034, 1035, 3931, 1027, 2862, 1035, 4800, 1035, 2535, 1035, 12046, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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_multi_role_metric_definitions_next
def list_multi_role_metric_definitions_next(next_page_link, custom_headers:nil) response = list_multi_role_metric_definitions_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def list_multi_role_metric_definitions_next(next_page_link, custom_headers:nil) response = list_multi_role_metric_definitions_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "list_multi_role_metric_definitions_next", "(", "next_page_link", ",", "custom_headers", ":", "nil", ")", "response", "=", "list_multi_role_metric_definitions_next_async", "(", "next_page_link", ",", "custom_headers", ":custom_headers", ")", ".", "value!", "response", ...
Get metric definitions for a multi-role pool of an App Service Environment. Get metric definitions for a multi-role pool of an App Service Environment. @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 h...
[ "Get", "metric", "definitions", "for", "a", "multi", "-", "role", "pool", "of", "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#L5714-L5717
train
Gets the list of metric definitions for a multi - role role.
[ 30522, 13366, 2862, 1035, 4800, 1035, 2535, 1035, 12046, 1035, 15182, 1035, 2279, 1006, 2279, 1035, 3931, 1035, 4957, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 2862, 1035, 4800, 1035, 2535, 1035, 12046, 1035, 15182,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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/text_normalizer.rb
MetaTags.TextNormalizer.truncate_array
def truncate_array(string_array, limit = nil, separator = '', natural_separator = ' ') return string_array if limit.nil? || limit <= 0 length = 0 result = [] string_array.each do |string| limit_left = calculate_limit_left(limit, length, result, separator) if string.length > li...
ruby
def truncate_array(string_array, limit = nil, separator = '', natural_separator = ' ') return string_array if limit.nil? || limit <= 0 length = 0 result = [] string_array.each do |string| limit_left = calculate_limit_left(limit, length, result, separator) if string.length > li...
[ "def", "truncate_array", "(", "string_array", ",", "limit", "=", "nil", ",", "separator", "=", "''", ",", "natural_separator", "=", "' '", ")", "return", "string_array", "if", "limit", ".", "nil?", "||", "limit", "<=", "0", "length", "=", "0", "result", ...
Truncates a string to a specific limit. @param [Array<String>] string_array input strings. @param [Integer,nil] limit characters number to truncate to. @param [String] separator separator that will be used to join array later. @param [String] natural_separator natural separator to truncate at. @return [String] tr...
[ "Truncates", "a", "string", "to", "a", "specific", "limit", "." ]
03585f95edf96cd17024c5c155ce46ec8bc47232
https://github.com/kpumuk/meta-tags/blob/03585f95edf96cd17024c5c155ce46ec8bc47232/lib/meta_tags/text_normalizer.rb#L158-L180
train
Truncate a string array to a limit of length
[ 30522, 13366, 19817, 4609, 16280, 1035, 9140, 1006, 5164, 1035, 9140, 1010, 5787, 1027, 9152, 2140, 1010, 19802, 25879, 2953, 1027, 1005, 1005, 1010, 3019, 1035, 19802, 25879, 2953, 1027, 1005, 1005, 1007, 2709, 5164, 1035, 9140, 2065, 5787...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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_hub/lib/2017-04-01/generated/azure_mgmt_event_hub/consumer_groups.rb
Azure::EventHub::Mgmt::V2017_04_01.ConsumerGroups.list_by_event_hub_with_http_info
def list_by_event_hub_with_http_info(resource_group_name, namespace_name, event_hub_name, skip:nil, top:nil, custom_headers:nil) list_by_event_hub_async(resource_group_name, namespace_name, event_hub_name, skip:skip, top:top, custom_headers:custom_headers).value! end
ruby
def list_by_event_hub_with_http_info(resource_group_name, namespace_name, event_hub_name, skip:nil, top:nil, custom_headers:nil) list_by_event_hub_async(resource_group_name, namespace_name, event_hub_name, skip:skip, top:top, custom_headers:custom_headers).value! end
[ "def", "list_by_event_hub_with_http_info", "(", "resource_group_name", ",", "namespace_name", ",", "event_hub_name", ",", "skip", ":", "nil", ",", "top", ":", "nil", ",", "custom_headers", ":", "nil", ")", "list_by_event_hub_async", "(", "resource_group_name", ",", ...
Gets all the consumer groups in a Namespace. An empty feed is returned if no consumer group exists in the Namespace. @param resource_group_name [String] Name of the resource group within the azure subscription. @param namespace_name [String] The Namespace name @param event_hub_name [String] The Event Hub name @p...
[ "Gets", "all", "the", "consumer", "groups", "in", "a", "Namespace", ".", "An", "empty", "feed", "is", "returned", "if", "no", "consumer", "group", "exists", "in", "the", "Namespace", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_event_hub/lib/2017-04-01/generated/azure_mgmt_event_hub/consumer_groups.rb#L403-L405
train
Gets the list of all the events in an event hub.
[ 30522, 13366, 2862, 1035, 2011, 1035, 2724, 1035, 9594, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 7692, 1035, 2177, 1035, 2171, 30524, 2171, 1010, 2724, 1035, 9594, 1035, 2171, 1010, 13558, 1024, 9152, 2140, 1010, 2327, 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...
etewiah/property_web_builder
app/controllers/pwb/api/v1/translations_controller.rb
Pwb.Api::V1::TranslationsController.create_translation_value
def create_translation_value batch_key = params[:batch_key] # batch_key might be "extra" or .. i18n_key = params[:i18n_key].sub(/^[.]*/, "") # regex above just incase there is a leading . full_i18n_key = batch_key.underscore.camelcase(:lower) + "." + i18n_key # eg propertyTypes.flat ...
ruby
def create_translation_value batch_key = params[:batch_key] # batch_key might be "extra" or .. i18n_key = params[:i18n_key].sub(/^[.]*/, "") # regex above just incase there is a leading . full_i18n_key = batch_key.underscore.camelcase(:lower) + "." + i18n_key # eg propertyTypes.flat ...
[ "def", "create_translation_value", "batch_key", "=", "params", "[", ":batch_key", "]", "# batch_key might be \"extra\" or ..", "i18n_key", "=", "params", "[", ":i18n_key", "]", ".", "sub", "(", "/", "/", ",", "\"\"", ")", "# regex above just incase there is a leading ."...
# below called for completely new set of translations
[ "#", "below", "called", "for", "completely", "new", "set", "of", "translations" ]
fba4e6d4ffa7bc1f4d3b50dfa5a6a9fbfee23f21
https://github.com/etewiah/property_web_builder/blob/fba4e6d4ffa7bc1f4d3b50dfa5a6a9fbfee23f21/app/controllers/pwb/api/v1/translations_controller.rb#L62-L92
train
Creates a translation value for the given key.
[ 30522, 13366, 3443, 1035, 5449, 1035, 3643, 14108, 1035, 3145, 1027, 11498, 5244, 1031, 1024, 14108, 1035, 3145, 1033, 1001, 14108, 1035, 3145, 2453, 2022, 1000, 4469, 1000, 2030, 1012, 1012, 1045, 15136, 2078, 1035, 3145, 1027, 11498, 5244...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...