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
management/azure_mgmt_container_registry/lib/2017-06-01-preview/generated/azure_mgmt_container_registry/registries.rb
Azure::ContainerRegistry::Mgmt::V2017_06_01_preview.Registries.regenerate_credential_with_http_info
def regenerate_credential_with_http_info(resource_group_name, registry_name, regenerate_credential_parameters, custom_headers:nil) regenerate_credential_async(resource_group_name, registry_name, regenerate_credential_parameters, custom_headers:custom_headers).value! end
ruby
def regenerate_credential_with_http_info(resource_group_name, registry_name, regenerate_credential_parameters, custom_headers:nil) regenerate_credential_async(resource_group_name, registry_name, regenerate_credential_parameters, custom_headers:custom_headers).value! end
[ "def", "regenerate_credential_with_http_info", "(", "resource_group_name", ",", "registry_name", ",", "regenerate_credential_parameters", ",", "custom_headers", ":", "nil", ")", "regenerate_credential_async", "(", "resource_group_name", ",", "registry_name", ",", "regenerate_cr...
Regenerates one of the login credentials for the specified container registry. @param resource_group_name [String] The name of the resource group to which the container registry belongs. @param registry_name [String] The name of the container registry. @param regenerate_credential_parameters [RegenerateCredential...
[ "Regenerates", "one", "of", "the", "login", "credentials", "for", "the", "specified", "container", "registry", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_container_registry/lib/2017-06-01-preview/generated/azure_mgmt_container_registry/registries.rb#L668-L670
train
Regenerate credential for a container registry.
[ 30522, 13366, 19723, 24454, 3686, 1035, 13675, 14728, 19909, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 15584, 1035, 2171, 1010, 19723, 24454, 3686, 1035, 13675, 14728, 19909, 1035, 11709, 1010, 7661, 1035,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_storagesync/lib/2018-07-01/generated/azure_mgmt_storagesync/server_endpoints.rb
Azure::StorageSync::Mgmt::V2018_07_01.ServerEndpoints.list_by_sync_group_with_http_info
def list_by_sync_group_with_http_info(resource_group_name, storage_sync_service_name, sync_group_name, custom_headers:nil) list_by_sync_group_async(resource_group_name, storage_sync_service_name, sync_group_name, custom_headers:custom_headers).value! end
ruby
def list_by_sync_group_with_http_info(resource_group_name, storage_sync_service_name, sync_group_name, custom_headers:nil) list_by_sync_group_async(resource_group_name, storage_sync_service_name, sync_group_name, custom_headers:custom_headers).value! end
[ "def", "list_by_sync_group_with_http_info", "(", "resource_group_name", ",", "storage_sync_service_name", ",", "sync_group_name", ",", "custom_headers", ":", "nil", ")", "list_by_sync_group_async", "(", "resource_group_name", ",", "storage_sync_service_name", ",", "sync_group_n...
Get a ServerEndpoint list. @param resource_group_name [String] The name of the resource group. The name is case insensitive. @param storage_sync_service_name [String] Name of Storage Sync Service resource. @param sync_group_name [String] Name of Sync Group resource. @param custom_headers [Hash{String => String}]...
[ "Get", "a", "ServerEndpoint", "list", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_storagesync/lib/2018-07-01/generated/azure_mgmt_storagesync/server_endpoints.rb#L320-L322
train
Gets the list of all the documents in a sync group.
[ 30522, 13366, 2862, 1035, 2011, 1035, 26351, 1035, 2177, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 5527, 1035, 26351, 1035, 2326, 1035, 2171, 1010, 26351, 1035, 2177, 1035, 2171, 1010, 7661, 1035, 20346,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
data/azure_service_fabric/lib/6.2.0.9/generated/azure_service_fabric/service_fabric_client_apis.rb
Azure::ServiceFabric::V6_2_0_9.ServiceFabricClientAPIs.get_chaos_events
def get_chaos_events(continuation_token:nil, start_time_utc:nil, end_time_utc:nil, max_results:0, timeout:60, custom_headers:nil) response = get_chaos_events_async(continuation_token:continuation_token, start_time_utc:start_time_utc, end_time_utc:end_time_utc, max_results:max_results, timeout:timeout, custom_head...
ruby
def get_chaos_events(continuation_token:nil, start_time_utc:nil, end_time_utc:nil, max_results:0, timeout:60, custom_headers:nil) response = get_chaos_events_async(continuation_token:continuation_token, start_time_utc:start_time_utc, end_time_utc:end_time_utc, max_results:max_results, timeout:timeout, custom_head...
[ "def", "get_chaos_events", "(", "continuation_token", ":", "nil", ",", "start_time_utc", ":", "nil", ",", "end_time_utc", ":", "nil", ",", "max_results", ":", "0", ",", "timeout", ":", "60", ",", "custom_headers", ":", "nil", ")", "response", "=", "get_chaos...
Gets the next segment of the Chaos events based on the continuation token or the time range. To get the next segment of the Chaos events, you can specify the ContinuationToken. To get the start of a new segment of Chaos events, you can specify the time range through StartTimeUtc and EndTimeUtc. You cannot specify...
[ "Gets", "the", "next", "segment", "of", "the", "Chaos", "events", "based", "on", "the", "continuation", "token", "or", "the", "time", "range", "." ]
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#L18792-L18795
train
Gets the chaos events for a given Continuation Token.
[ 30522, 13366, 2131, 1035, 8488, 1035, 2824, 1006, 13633, 1035, 19204, 1024, 9152, 2140, 1010, 2707, 1035, 2051, 1035, 11396, 1024, 9152, 2140, 1010, 2203, 1035, 2051, 1035, 11396, 1024, 9152, 2140, 1010, 4098, 1035, 3463, 1024, 1014, 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_key_vault/lib/2016-10-01/generated/azure_key_vault/key_vault_client.rb
Azure::KeyVault::V2016_10_01.KeyVaultClient.get_key_with_http_info
def get_key_with_http_info(vault_base_url, key_name, key_version, custom_headers:nil) get_key_async(vault_base_url, key_name, key_version, custom_headers:custom_headers).value! end
ruby
def get_key_with_http_info(vault_base_url, key_name, key_version, custom_headers:nil) get_key_async(vault_base_url, key_name, key_version, custom_headers:custom_headers).value! end
[ "def", "get_key_with_http_info", "(", "vault_base_url", ",", "key_name", ",", "key_version", ",", "custom_headers", ":", "nil", ")", "get_key_async", "(", "vault_base_url", ",", "key_name", ",", "key_version", ",", "custom_headers", ":custom_headers", ")", ".", "val...
Gets the public part of a stored key. The get key operation is applicable to all key types. If the requested key is symmetric, then no key material is released in the response. This operation requires the keys/get permission. @param vault_base_url [String] The vault name, for example https://myvault.vault.azure....
[ "Gets", "the", "public", "part", "of", "a", "stored", "key", "." ]
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#L718-L720
train
Gets the key associated with the specified key version.
[ 30522, 13366, 2131, 1035, 3145, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 11632, 1035, 2918, 1035, 24471, 2140, 1010, 3145, 1035, 2171, 1010, 3145, 1035, 2544, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 2131, 1035, 3145, 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...
seejohnrun/ice_cube
lib/ice_cube/schedule.rb
IceCube.Schedule.conflicts_with?
def conflicts_with?(other_schedule, closing_time = nil) closing_time = TimeUtil.ensure_time(closing_time) unless terminating? || other_schedule.terminating? || closing_time raise ArgumentError, "One or both schedules must be terminating to use #conflicts_with?" end # Pick the terminating...
ruby
def conflicts_with?(other_schedule, closing_time = nil) closing_time = TimeUtil.ensure_time(closing_time) unless terminating? || other_schedule.terminating? || closing_time raise ArgumentError, "One or both schedules must be terminating to use #conflicts_with?" end # Pick the terminating...
[ "def", "conflicts_with?", "(", "other_schedule", ",", "closing_time", "=", "nil", ")", "closing_time", "=", "TimeUtil", ".", "ensure_time", "(", "closing_time", ")", "unless", "terminating?", "||", "other_schedule", ".", "terminating?", "||", "closing_time", "raise"...
Determine if this schedule conflicts with another schedule @param [IceCube::Schedule] other_schedule - The schedule to compare to @param [Time] closing_time - the last time to consider @return [Boolean] whether or not the schedules conflict at all
[ "Determine", "if", "this", "schedule", "conflicts", "with", "another", "schedule" ]
fb6c657bdc4f87dfda2bf83f15c5f487b78ccabd
https://github.com/seejohnrun/ice_cube/blob/fb6c657bdc4f87dfda2bf83f15c5f487b78ccabd/lib/ice_cube/schedule.rb#L257-L291
train
Returns true if this schedule conflicts with another schedule
[ 30522, 13366, 9755, 1035, 2007, 1029, 1006, 2060, 1035, 6134, 1010, 5494, 1035, 2051, 1027, 9152, 2140, 1007, 5494, 1035, 2051, 1027, 2051, 21823, 2140, 1012, 5676, 1035, 2051, 1006, 5494, 1035, 2051, 1007, 4983, 23552, 1029, 1064, 1064, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
cloudfoundry/bosh
src/bosh-director/lib/bosh/director/job_runner.rb
Bosh::Director.JobRunner.log_exception
def log_exception(exception) # Event log is being used here to propagate the error. # It's up to event log renderer to find the error and # signal it properly. director_error = DirectorError.create_from_exception(exception) Config.event_log.log_error(director_error) end
ruby
def log_exception(exception) # Event log is being used here to propagate the error. # It's up to event log renderer to find the error and # signal it properly. director_error = DirectorError.create_from_exception(exception) Config.event_log.log_error(director_error) end
[ "def", "log_exception", "(", "exception", ")", "# Event log is being used here to propagate the error.", "# It's up to event log renderer to find the error and", "# signal it properly.", "director_error", "=", "DirectorError", ".", "create_from_exception", "(", "exception", ")", "Con...
Logs the exception in the event log @param [Exception] exception
[ "Logs", "the", "exception", "in", "the", "event", "log" ]
2eaa7100879ddd20cd909cd698514746195e28b7
https://github.com/cloudfoundry/bosh/blob/2eaa7100879ddd20cd909cd698514746195e28b7/src/bosh-director/lib/bosh/director/job_runner.rb#L159-L165
train
Log the exception.
[ 30522, 13366, 8833, 1035, 6453, 1006, 6453, 1007, 1001, 2724, 8833, 2003, 2108, 2109, 2182, 2000, 17678, 16098, 2618, 1996, 7561, 1012, 1001, 2009, 1005, 1055, 2039, 2000, 2724, 8833, 17552, 2121, 2000, 2424, 1996, 7561, 1998, 1001, 4742, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
rails/rails
activesupport/lib/active_support/core_ext/range/include_time_with_zone.rb
ActiveSupport.IncludeTimeWithZone.include?
def include?(value) if first.is_a?(TimeWithZone) cover?(value) elsif last.is_a?(TimeWithZone) cover?(value) else super end end
ruby
def include?(value) if first.is_a?(TimeWithZone) cover?(value) elsif last.is_a?(TimeWithZone) cover?(value) else super end end
[ "def", "include?", "(", "value", ")", "if", "first", ".", "is_a?", "(", "TimeWithZone", ")", "cover?", "(", "value", ")", "elsif", "last", ".", "is_a?", "(", "TimeWithZone", ")", "cover?", "(", "value", ")", "else", "super", "end", "end" ]
:nodoc: Extends the default Range#include? to support ActiveSupport::TimeWithZone. (1.hour.ago..1.hour.from_now).include?(Time.current) # => true
[ ":", "nodoc", ":", "Extends", "the", "default", "Range#include?", "to", "support", "ActiveSupport", "::", "TimeWithZone", "." ]
85a8bc644be69908f05740a5886ec19cd3679df5
https://github.com/rails/rails/blob/85a8bc644be69908f05740a5886ec19cd3679df5/activesupport/lib/active_support/core_ext/range/include_time_with_zone.rb#L11-L19
train
Returns true if the time range contains the value.
[ 30522, 13366, 2421, 1029, 1006, 3643, 1007, 2065, 2034, 1012, 2003, 1035, 1037, 1029, 1006, 2051, 24415, 15975, 1007, 3104, 1029, 1006, 3643, 1007, 3449, 5332, 2546, 2197, 1012, 2003, 1035, 1037, 1029, 1006, 2051, 24415, 15975, 1007, 3104, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
sds/overcommit
lib/overcommit/hook_context/base.rb
Overcommit::HookContext.Base.filter_nonexistent
def filter_nonexistent(modified_files) modified_files.select do |file| File.exist?(file) || Overcommit::Utils.broken_symlink?(file) end end
ruby
def filter_nonexistent(modified_files) modified_files.select do |file| File.exist?(file) || Overcommit::Utils.broken_symlink?(file) end end
[ "def", "filter_nonexistent", "(", "modified_files", ")", "modified_files", ".", "select", "do", "|", "file", "|", "File", ".", "exist?", "(", "file", ")", "||", "Overcommit", "::", "Utils", ".", "broken_symlink?", "(", "file", ")", "end", "end" ]
Filter out non-existent files (unless it's a broken symlink, in which case it's a file that points to a non-existent file). This could happen if a file was renamed as part of an amendment, leading to the old file no longer existing.
[ "Filter", "out", "non", "-", "existent", "files", "(", "unless", "it", "s", "a", "broken", "symlink", "in", "which", "case", "it", "s", "a", "file", "that", "points", "to", "a", "non", "-", "existent", "file", ")", ".", "This", "could", "happen", "if...
35d60adb41da942178b789560968e3ad030b0ac7
https://github.com/sds/overcommit/blob/35d60adb41da942178b789560968e3ad030b0ac7/lib/overcommit/hook_context/base.rb#L124-L128
train
Filter nonexistent files
[ 30522, 13366, 11307, 1035, 3904, 9048, 16173, 2102, 1006, 6310, 1035, 6764, 1007, 6310, 1035, 6764, 1012, 7276, 2079, 1064, 5371, 1064, 5371, 1012, 4839, 1029, 1006, 5371, 1007, 1064, 1064, 2058, 9006, 22930, 1024, 1024, 21183, 12146, 1012,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_network/lib/2019-02-01/generated/azure_mgmt_network/express_route_circuits.rb
Azure::Network::Mgmt::V2019_02_01.ExpressRouteCircuits.get_peering_stats
def get_peering_stats(resource_group_name, circuit_name, peering_name, custom_headers:nil) response = get_peering_stats_async(resource_group_name, circuit_name, peering_name, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def get_peering_stats(resource_group_name, circuit_name, peering_name, custom_headers:nil) response = get_peering_stats_async(resource_group_name, circuit_name, peering_name, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "get_peering_stats", "(", "resource_group_name", ",", "circuit_name", ",", "peering_name", ",", "custom_headers", ":", "nil", ")", "response", "=", "get_peering_stats_async", "(", "resource_group_name", ",", "circuit_name", ",", "peering_name", ",", "custom_heade...
Gets all stats from an express route circuit in a resource group. @param resource_group_name [String] The name of the resource group. @param circuit_name [String] The name of the express route circuit. @param peering_name [String] The name of the peering. @param custom_headers [Hash{String => String}] A hash of cu...
[ "Gets", "all", "stats", "from", "an", "express", "route", "circuit", "in", "a", "resource", "group", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_network/lib/2019-02-01/generated/azure_mgmt_network/express_route_circuits.rb#L490-L493
train
Gets the stats for the specified express route circuit.
[ 30522, 13366, 2131, 1035, 16740, 1035, 26319, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 4984, 1035, 2171, 1010, 16740, 1035, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 2131, 1035, 16740, 1035, 26319, 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...
mhenrixon/sidekiq-unique-jobs
lib/sidekiq_unique_jobs/scripts.rb
SidekiqUniqueJobs.Scripts.handle_error
def handle_error(ex, file_name) if ex.message == "NOSCRIPT No matching script. Please use EVAL." SCRIPT_SHAS.delete(file_name) return yield if block_given? end raise ScriptError, file_name: file_name, source_exception: ex end
ruby
def handle_error(ex, file_name) if ex.message == "NOSCRIPT No matching script. Please use EVAL." SCRIPT_SHAS.delete(file_name) return yield if block_given? end raise ScriptError, file_name: file_name, source_exception: ex end
[ "def", "handle_error", "(", "ex", ",", "file_name", ")", "if", "ex", ".", "message", "==", "\"NOSCRIPT No matching script. Please use EVAL.\"", "SCRIPT_SHAS", ".", "delete", "(", "file_name", ")", "return", "yield", "if", "block_given?", "end", "raise", "ScriptError...
Handle errors to allow retrying errors that need retrying @param [Redis::CommandError] ex exception to handle @param [Symbol] file_name the name of the lua script @return [void] @yieldreturn [void] yields back to the caller when NOSCRIPT is raised
[ "Handle", "errors", "to", "allow", "retrying", "errors", "that", "need", "retrying" ]
2944b97c720528f53962ccfd17d43ac939a77f46
https://github.com/mhenrixon/sidekiq-unique-jobs/blob/2944b97c720528f53962ccfd17d43ac939a77f46/lib/sidekiq_unique_jobs/scripts.rb#L87-L94
train
Handle error
[ 30522, 13366, 5047, 1035, 7561, 1006, 4654, 1010, 5371, 1035, 2171, 1007, 2065, 4654, 1012, 4471, 1027, 1027, 1000, 16839, 23235, 2053, 9844, 5896, 1012, 3531, 2224, 9345, 2140, 1012, 1000, 5896, 1035, 21146, 2015, 1012, 3972, 12870, 1006, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
data/azure_cognitiveservices_luisauthoring/lib/2.0/generated/azure_cognitiveservices_luisauthoring/model.rb
Azure::CognitiveServices::LuisAuthoring::V2_0.Model.delete_regex_entity_role_with_http_info
def delete_regex_entity_role_with_http_info(app_id, version_id, entity_id, role_id, custom_headers:nil) delete_regex_entity_role_async(app_id, version_id, entity_id, role_id, custom_headers:custom_headers).value! end
ruby
def delete_regex_entity_role_with_http_info(app_id, version_id, entity_id, role_id, custom_headers:nil) delete_regex_entity_role_async(app_id, version_id, entity_id, role_id, custom_headers:custom_headers).value! end
[ "def", "delete_regex_entity_role_with_http_info", "(", "app_id", ",", "version_id", ",", "entity_id", ",", "role_id", ",", "custom_headers", ":", "nil", ")", "delete_regex_entity_role_async", "(", "app_id", ",", "version_id", ",", "entity_id", ",", "role_id", ",", "...
Delete a role for a given regular expression in a version of the application. @param app_id The application ID. @param version_id [String] The version ID. @param entity_id The entity ID. @param role_id The entity role Id. @param custom_headers [Hash{String => String}] A hash of custom headers that will be added ...
[ "Delete", "a", "role", "for", "a", "given", "regular", "expression", "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#L9949-L9951
train
Deletes a regex entity role.
[ 30522, 13366, 3972, 12870, 1035, 19723, 10288, 1035, 9178, 1035, 2535, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 10439, 1035, 8909, 1010, 2544, 1035, 8909, 1010, 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...
puppetlabs/puppet
lib/puppet/util/logging.rb
Puppet::Util.Logging.log_deprecations_to_file
def log_deprecations_to_file(deprecations_file, pattern = nil) # this method may get called lots and lots of times (e.g., from spec_helper config.after) without the global # list of deprecation warnings being cleared out. We don't want to keep logging the same offenders over and over, # so, we need to keep...
ruby
def log_deprecations_to_file(deprecations_file, pattern = nil) # this method may get called lots and lots of times (e.g., from spec_helper config.after) without the global # list of deprecation warnings being cleared out. We don't want to keep logging the same offenders over and over, # so, we need to keep...
[ "def", "log_deprecations_to_file", "(", "deprecations_file", ",", "pattern", "=", "nil", ")", "# this method may get called lots and lots of times (e.g., from spec_helper config.after) without the global", "# list of deprecation warnings being cleared out. We don't want to keep logging the same...
TODO: determine whether there might be a potential use for adding a puppet configuration option that would enable this deprecation logging. utility method that can be called, e.g., from spec_helper config.after, when tracking down calls to deprecated code. Parameters: [deprecations_file] relative or absolute path ...
[ "TODO", ":", "determine", "whether", "there", "might", "be", "a", "potential", "use", "for", "adding", "a", "puppet", "configuration", "option", "that", "would", "enable", "this", "deprecation", "logging", ".", "utility", "method", "that", "can", "be", "called...
4baeed97cbb7571ddc6635f0a24debe2e8b22cd3
https://github.com/puppetlabs/puppet/blob/4baeed97cbb7571ddc6635f0a24debe2e8b22cd3/lib/puppet/util/logging.rb#L216-L240
train
Logs deprecation warnings to a file
[ 30522, 13366, 8833, 1035, 2139, 28139, 10719, 2015, 1035, 2000, 1035, 5371, 1006, 2139, 28139, 10719, 2015, 1035, 5371, 1010, 5418, 1027, 9152, 2140, 1007, 1001, 2023, 4118, 2089, 2131, 2170, 7167, 1998, 7167, 1997, 2335, 1006, 1041, 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...
roo-rb/roo
lib/roo/open_office.rb
Roo.OpenOffice.formulas
def formulas(sheet = nil) sheet ||= default_sheet read_cells(sheet) return [] unless @formula[sheet] @formula[sheet].each.collect do |elem| [elem[0][0], elem[0][1], elem[1]] end end
ruby
def formulas(sheet = nil) sheet ||= default_sheet read_cells(sheet) return [] unless @formula[sheet] @formula[sheet].each.collect do |elem| [elem[0][0], elem[0][1], elem[1]] end end
[ "def", "formulas", "(", "sheet", "=", "nil", ")", "sheet", "||=", "default_sheet", "read_cells", "(", "sheet", ")", "return", "[", "]", "unless", "@formula", "[", "sheet", "]", "@formula", "[", "sheet", "]", ".", "each", ".", "collect", "do", "|", "ele...
returns each formula in the selected sheet as an array of elements [row, col, formula]
[ "returns", "each", "formula", "in", "the", "selected", "sheet", "as", "an", "array", "of", "elements", "[", "row", "col", "formula", "]" ]
4ec1104f0c3c2a29711c0c907371cd2be12bcc3c
https://github.com/roo-rb/roo/blob/4ec1104f0c3c2a29711c0c907371cd2be12bcc3c/lib/roo/open_office.rb#L124-L131
train
Returns an array of the formula objects in the given sheet.
[ 30522, 13366, 25814, 1006, 7123, 1027, 9152, 2140, 1007, 7123, 1064, 1064, 1027, 12398, 1035, 7123, 3191, 1035, 4442, 1006, 7123, 1007, 2709, 1031, 1033, 4983, 1030, 5675, 1031, 7123, 1033, 1030, 5675, 1031, 7123, 1033, 1012, 2169, 1012, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
data/azure_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
def get_storage_accounts_as_lazy(vault_base_url, maxresults:nil, custom_headers:nil) first_page = get_storage_accounts_as_lazy_as_lazy(vault_base_url, maxresults:maxresults, custom_headers:custom_headers) first_page.get_all_items end
ruby
def get_storage_accounts_as_lazy(vault_base_url, maxresults:nil, custom_headers:nil) first_page = get_storage_accounts_as_lazy_as_lazy(vault_base_url, maxresults:maxresults, custom_headers:custom_headers) first_page.get_all_items end
[ "def", "get_storage_accounts_as_lazy", "(", "vault_base_url", ",", "maxresults", ":", "nil", ",", "custom_headers", ":", "nil", ")", "first_page", "=", "get_storage_accounts_as_lazy_as_lazy", "(", "vault_base_url", ",", "maxresults", ":", "maxresults", ",", "custom_head...
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#L10553-L10556
train
Gets all the Azure Storage accounts in a specified vault.
[ 30522, 13366, 2131, 1035, 5527, 1035, 6115, 1035, 2004, 1035, 13971, 1006, 11632, 1035, 2918, 1035, 24471, 2140, 1010, 4098, 6072, 11314, 2015, 1024, 9152, 2140, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 2034, 30524, 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_luisauthoring/lib/2.0/generated/azure_cognitiveservices_luisauthoring/features.rb
Azure::CognitiveServices::LuisAuthoring::V2_0.Features.list_application_version_pattern_features_with_http_info
def list_application_version_pattern_features_with_http_info(app_id, version_id, skip:0, take:100, custom_headers:nil) list_application_version_pattern_features_async(app_id, version_id, skip:skip, take:take, custom_headers:custom_headers).value! end
ruby
def list_application_version_pattern_features_with_http_info(app_id, version_id, skip:0, take:100, custom_headers:nil) list_application_version_pattern_features_async(app_id, version_id, skip:skip, take:take, custom_headers:custom_headers).value! end
[ "def", "list_application_version_pattern_features_with_http_info", "(", "app_id", ",", "version_id", ",", "skip", ":", "0", ",", "take", ":", "100", ",", "custom_headers", ":", "nil", ")", "list_application_version_pattern_features_async", "(", "app_id", ",", "version_i...
[DEPRECATED NOTICE: This operation will soon be removed] Gets all the pattern features. @param app_id The application ID. @param version_id [String] The version ID. @param skip [Integer] The number of entries to skip. Default value is 0. @param take [Integer] The number of entries to return. Maximum page size is ...
[ "[", "DEPRECATED", "NOTICE", ":", "This", "operation", "will", "soon", "be", "removed", "]", "Gets", "all", "the", "pattern", "features", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_cognitiveservices_luisauthoring/lib/2.0/generated/azure_cognitiveservices_luisauthoring/features.rb#L57-L59
train
Gets the list of pattern features for the application version.
[ 30522, 13366, 2862, 1035, 4646, 1035, 2544, 1035, 5418, 1035, 2838, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 10439, 1035, 8909, 1010, 2544, 1035, 8909, 1010, 13558, 1024, 1014, 1010, 2202, 1024, 2531, 1010, 7661, 1035, 20346, 2015, 1024, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_web/lib/2018-02-01/generated/azure_mgmt_web/app_service_environments.rb
Azure::Web::Mgmt::V2018_02_01.AppServiceEnvironments.list_web_worker_usages_with_http_info
def list_web_worker_usages_with_http_info(resource_group_name, name, worker_pool_name, custom_headers:nil) list_web_worker_usages_async(resource_group_name, name, worker_pool_name, custom_headers:custom_headers).value! end
ruby
def list_web_worker_usages_with_http_info(resource_group_name, name, worker_pool_name, custom_headers:nil) list_web_worker_usages_async(resource_group_name, name, worker_pool_name, custom_headers:custom_headers).value! end
[ "def", "list_web_worker_usages_with_http_info", "(", "resource_group_name", ",", "name", ",", "worker_pool_name", ",", "custom_headers", ":", "nil", ")", "list_web_worker_usages_async", "(", "resource_group_name", ",", "name", ",", "worker_pool_name", ",", "custom_headers",...
Get usage metrics for a worker pool of an App Service Environment. Get usage metrics for a worker 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 worker_pool_name [St...
[ "Get", "usage", "metrics", "for", "a", "worker", "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#L4064-L4066
train
Gets the list of worker usages for a worker pool.
[ 30522, 13366, 2862, 1035, 4773, 1035, 7309, 1035, 8192, 2015, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 2171, 1010, 7309, 1035, 4770, 1035, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
gocardless/hutch
lib/hutch/broker.rb
Hutch.Broker.bindings
def bindings results = Hash.new { |hash, key| hash[key] = [] } api_client.bindings.each do |binding| next if binding['destination'] == binding['routing_key'] next unless binding['source'] == @config[:mq_exchange] next unless binding['vhost'] == @config[:mq_vhost] results[bind...
ruby
def bindings results = Hash.new { |hash, key| hash[key] = [] } api_client.bindings.each do |binding| next if binding['destination'] == binding['routing_key'] next unless binding['source'] == @config[:mq_exchange] next unless binding['vhost'] == @config[:mq_vhost] results[bind...
[ "def", "bindings", "results", "=", "Hash", ".", "new", "{", "|", "hash", ",", "key", "|", "hash", "[", "key", "]", "=", "[", "]", "}", "api_client", ".", "bindings", ".", "each", "do", "|", "binding", "|", "next", "if", "binding", "[", "'destinatio...
Return a mapping of queue names to the routing keys they're bound to.
[ "Return", "a", "mapping", "of", "queue", "names", "to", "the", "routing", "keys", "they", "re", "bound", "to", "." ]
9314b3b8c84abeb78170730757f3eb8ccc4f54c5
https://github.com/gocardless/hutch/blob/9314b3b8c84abeb78170730757f3eb8ccc4f54c5/lib/hutch/broker.rb#L182-L191
train
Returns a hash of all the bindings that are available for the current connection
[ 30522, 13366, 8031, 2015, 3463, 1027, 23325, 1012, 2047, 1063, 1064, 23325, 1010, 3145, 1064, 23325, 1031, 3145, 1033, 1027, 1031, 1033, 1065, 17928, 1035, 7396, 1012, 8031, 2015, 1012, 2169, 2079, 1064, 8031, 1064, 2279, 2065, 8031, 1031, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
rails/sprockets
lib/sprockets/path_utils.rb
Sprockets.PathUtils.path_parents
def path_parents(path, root = nil) root = "#{root}#{File::SEPARATOR}" if root parents = [] loop do parent = File.dirname(path) break if parent == path break if root && !path.start_with?(root) parents << path = parent end parents end
ruby
def path_parents(path, root = nil) root = "#{root}#{File::SEPARATOR}" if root parents = [] loop do parent = File.dirname(path) break if parent == path break if root && !path.start_with?(root) parents << path = parent end parents end
[ "def", "path_parents", "(", "path", ",", "root", "=", "nil", ")", "root", "=", "\"#{root}#{File::SEPARATOR}\"", "if", "root", "parents", "=", "[", "]", "loop", "do", "parent", "=", "File", ".", "dirname", "(", "path", ")", "break", "if", "parent", "==", ...
Internal: Returns all parents for path path - String absolute filename or directory root - String path to stop at (default: system root) Returns an Array of String paths.
[ "Internal", ":", "Returns", "all", "parents", "for", "path" ]
9e3f0d8e98c44f57e67bc138db87bb8469bf5ddd
https://github.com/rails/sprockets/blob/9e3f0d8e98c44f57e67bc138db87bb8469bf5ddd/lib/sprockets/path_utils.rb#L252-L264
train
Get the parents of a given path.
[ 30522, 13366, 4130, 1035, 3008, 1006, 4130, 1010, 7117, 1027, 9152, 2140, 1007, 7117, 1027, 1000, 1001, 1063, 7117, 1065, 1001, 1063, 5371, 1024, 1024, 19802, 25879, 2953, 1065, 1000, 2065, 7117, 3008, 1027, 1031, 1033, 7077, 2079, 6687, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_consumption/lib/2018-06-30/generated/azure_mgmt_consumption/usage_details.rb
Azure::Consumption::Mgmt::V2018_06_30.UsageDetails.list_by_enrollment_account
def list_by_enrollment_account(enrollment_account_id, expand:nil, filter:nil, skiptoken:nil, top:nil, query_options:nil, custom_headers:nil) first_page = list_by_enrollment_account_as_lazy(enrollment_account_id, expand:expand, filter:filter, skiptoken:skiptoken, top:top, query_options:query_options, custom_header...
ruby
def list_by_enrollment_account(enrollment_account_id, expand:nil, filter:nil, skiptoken:nil, top:nil, query_options:nil, custom_headers:nil) first_page = list_by_enrollment_account_as_lazy(enrollment_account_id, expand:expand, filter:filter, skiptoken:skiptoken, top:top, query_options:query_options, custom_header...
[ "def", "list_by_enrollment_account", "(", "enrollment_account_id", ",", "expand", ":", "nil", ",", "filter", ":", "nil", ",", "skiptoken", ":", "nil", ",", "top", ":", "nil", ",", "query_options", ":", "nil", ",", "custom_headers", ":", "nil", ")", "first_pa...
Lists the usage details by enrollmentAccountId for a scope by current billing period. Usage details are available via this API only for May 1, 2014 or later. @param enrollment_account_id [String] EnrollmentAccount ID @param expand [String] May be used to expand the properties/additionalProperties or properties/me...
[ "Lists", "the", "usage", "details", "by", "enrollmentAccountId", "for", "a", "scope", "by", "current", "billing", "period", ".", "Usage", "details", "are", "available", "via", "this", "API", "only", "for", "May", "1", "2014", "or", "later", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_consumption/lib/2018-06-30/generated/azure_mgmt_consumption/usage_details.rb#L950-L953
train
Gets all the items in a given enrollment account.
[ 30522, 13366, 2862, 1035, 2011, 1035, 10316, 1035, 4070, 1006, 10316, 1035, 4070, 1035, 8909, 1010, 7818, 1024, 9152, 2140, 1010, 11307, 1024, 9152, 2140, 1010, 13558, 18715, 2368, 1024, 9152, 2140, 1010, 2327, 1024, 9152, 2140, 1010, 23032...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
TrestleAdmin/trestle
app/helpers/trestle/pagination_helper.rb
Trestle.PaginationHelper.page_entries_info
def page_entries_info(collection, options = {}) entry_name = options[:entry_name] || "entry" entry_name = entry_name.pluralize unless collection.total_count == 1 if collection.total_pages < 2 t('trestle.helpers.page_entries_info.one_page.display_entries', entry_name: entry_name, count: collec...
ruby
def page_entries_info(collection, options = {}) entry_name = options[:entry_name] || "entry" entry_name = entry_name.pluralize unless collection.total_count == 1 if collection.total_pages < 2 t('trestle.helpers.page_entries_info.one_page.display_entries', entry_name: entry_name, count: collec...
[ "def", "page_entries_info", "(", "collection", ",", "options", "=", "{", "}", ")", "entry_name", "=", "options", "[", ":entry_name", "]", "||", "\"entry\"", "entry_name", "=", "entry_name", ".", "pluralize", "unless", "collection", ".", "total_count", "==", "1...
Custom version of Kaminari's page_entries_info helper to use a Trestle-scoped I18n key and add a delimiter to the total count.
[ "Custom", "version", "of", "Kaminari", "s", "page_entries_info", "helper", "to", "use", "a", "Trestle", "-", "scoped", "I18n", "key", "and", "add", "a", "delimiter", "to", "the", "total", "count", "." ]
fd5b8aeb5077e13d539cb5ddd99db1dd279f19ca
https://github.com/TrestleAdmin/trestle/blob/fd5b8aeb5077e13d539cb5ddd99db1dd279f19ca/app/helpers/trestle/pagination_helper.rb#L5-L18
train
Returns a list of page entries info
[ 30522, 13366, 3931, 1035, 10445, 1035, 18558, 1006, 3074, 1010, 7047, 1027, 1063, 1065, 1007, 4443, 1035, 2171, 1027, 7047, 1031, 1024, 4443, 1035, 2171, 1033, 1064, 1064, 1000, 4443, 1000, 4443, 1035, 2171, 1027, 4443, 1035, 2171, 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...
rmagick/rmagick
lib/rmagick_internal.rb
Magick.ImageList.set_current
def set_current(current) if length.zero? self.scene = nil return # Don't bother looking for current image elsif scene.nil? || scene >= length self.scene = length - 1 return elsif !current.nil? # Find last instance of "current" in the list. # If "cu...
ruby
def set_current(current) if length.zero? self.scene = nil return # Don't bother looking for current image elsif scene.nil? || scene >= length self.scene = length - 1 return elsif !current.nil? # Find last instance of "current" in the list. # If "cu...
[ "def", "set_current", "(", "current", ")", "if", "length", ".", "zero?", "self", ".", "scene", "=", "nil", "return", "# Don't bother looking for current image", "elsif", "scene", ".", "nil?", "||", "scene", ">=", "length", "self", ".", "scene", "=", "length", ...
Find old current image, update scene number current is the id of the old current image.
[ "Find", "old", "current", "image", "update", "scene", "number", "current", "is", "the", "id", "of", "the", "old", "current", "image", "." ]
ef6688ed9d76bf123c2ea1a483eff8635051adb7
https://github.com/rmagick/rmagick/blob/ef6688ed9d76bf123c2ea1a483eff8635051adb7/lib/rmagick_internal.rb#L1248-L1266
train
Set current image
[ 30522, 13366, 2275, 1035, 2783, 1006, 2783, 1007, 2065, 3091, 1012, 5717, 1029, 2969, 1012, 3496, 1027, 9152, 2140, 2709, 1001, 2123, 1005, 1056, 8572, 2559, 2005, 2783, 3746, 3449, 5332, 2546, 3496, 1012, 9152, 2140, 1029, 1064, 1064, 34...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
sinatra/sinatra
lib/sinatra/base.rb
Sinatra.Templates.find_template
def find_template(views, name, engine) yield ::File.join(views, "#{name}.#{@preferred_extension}") if Tilt.respond_to?(:mappings) Tilt.mappings.each do |ext, engines| next unless ext != @preferred_extension and engines.include? engine yield ::File.join(views, "#{name}.#{ext}") ...
ruby
def find_template(views, name, engine) yield ::File.join(views, "#{name}.#{@preferred_extension}") if Tilt.respond_to?(:mappings) Tilt.mappings.each do |ext, engines| next unless ext != @preferred_extension and engines.include? engine yield ::File.join(views, "#{name}.#{ext}") ...
[ "def", "find_template", "(", "views", ",", "name", ",", "engine", ")", "yield", "::", "File", ".", "join", "(", "views", ",", "\"#{name}.#{@preferred_extension}\"", ")", "if", "Tilt", ".", "respond_to?", "(", ":mappings", ")", "Tilt", ".", "mappings", ".", ...
Calls the given block for every possible template file in views, named name.ext, where ext is registered on engine.
[ "Calls", "the", "given", "block", "for", "every", "possible", "template", "file", "in", "views", "named", "name", ".", "ext", "where", "ext", "is", "registered", "on", "engine", "." ]
1aa64f9858edc3f93cc8d46e26f724c1ae103b1c
https://github.com/sinatra/sinatra/blob/1aa64f9858edc3f93cc8d46e26f724c1ae103b1c/lib/sinatra/base.rb#L786-L799
train
Find the template with the given name.
[ 30522, 13366, 2424, 1035, 23561, 1006, 5328, 1010, 2171, 1010, 3194, 1007, 10750, 1024, 1024, 5371, 1012, 3693, 1006, 5328, 1010, 1000, 1001, 1063, 2171, 1065, 1012, 1001, 1063, 1030, 6871, 1035, 5331, 1065, 1000, 1007, 2065, 17010, 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...
puppetlabs/puppet
lib/puppet/pops/merge_strategy.rb
Puppet::Pops.MergeStrategy.merge
def merge(e1, e2) checked_merge( assert_type('The first element of the merge', value_t, e1), assert_type('The second element of the merge', value_t, e2)) end
ruby
def merge(e1, e2) checked_merge( assert_type('The first element of the merge', value_t, e1), assert_type('The second element of the merge', value_t, e2)) end
[ "def", "merge", "(", "e1", ",", "e2", ")", "checked_merge", "(", "assert_type", "(", "'The first element of the merge'", ",", "value_t", ",", "e1", ")", ",", "assert_type", "(", "'The second element of the merge'", ",", "value_t", ",", "e2", ")", ")", "end" ]
Create a new instance of this strategy configured with the given _options_ @param merge_options [Hash<String,Object>] Merge options Merges the elements of _e1_ and _e2_ according to the rules of this strategy and options given when this instance was created @param e1 [Object] The first element @param e2 [Object] ...
[ "Create", "a", "new", "instance", "of", "this", "strategy", "configured", "with", "the", "given", "_options_", "@param", "merge_options", "[", "Hash<String", "Object", ">", "]", "Merge", "options", "Merges", "the", "elements", "of", "_e1_", "and", "_e2_", "acc...
4baeed97cbb7571ddc6635f0a24debe2e8b22cd3
https://github.com/puppetlabs/puppet/blob/4baeed97cbb7571ddc6635f0a24debe2e8b22cd3/lib/puppet/pops/merge_strategy.rb#L91-L95
train
Merge two arrays of elements
[ 30522, 13366, 13590, 1006, 1041, 2487, 1010, 1041, 2475, 1007, 7039, 1035, 13590, 1006, 20865, 1035, 2828, 1006, 1005, 1996, 2034, 5783, 1997, 1996, 13590, 1005, 1010, 3643, 1035, 1056, 1010, 1041, 2487, 1007, 1010, 20865, 1035, 2828, 1006,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
data/azure_cognitiveservices_face/lib/1.0/generated/azure_cognitiveservices_face/large_person_group_operations.rb
Azure::CognitiveServices::Face::V1_0.LargePersonGroupOperations.create_with_http_info
def create_with_http_info(large_person_group_id, name:nil, user_data:nil, recognition_model:nil, custom_headers:nil) create_async(large_person_group_id, name:name, user_data:user_data, recognition_model:recognition_model, custom_headers:custom_headers).value! end
ruby
def create_with_http_info(large_person_group_id, name:nil, user_data:nil, recognition_model:nil, custom_headers:nil) create_async(large_person_group_id, name:name, user_data:user_data, recognition_model:recognition_model, custom_headers:custom_headers).value! end
[ "def", "create_with_http_info", "(", "large_person_group_id", ",", "name", ":", "nil", ",", "user_data", ":", "nil", ",", "recognition_model", ":", "nil", ",", "custom_headers", ":", "nil", ")", "create_async", "(", "large_person_group_id", ",", "name", ":", "na...
Create a new large person group with user-specified largePersonGroupId, name, an optional userData and recognitionModel. <br /> A large person group is the container of the uploaded person data, including face images and face recognition feature, and up to 1,000,000 people. <br /> After creation, use [LargePersonG...
[ "Create", "a", "new", "large", "person", "group", "with", "user", "-", "specified", "largePersonGroupId", "name", "an", "optional", "userData", "and", "recognitionModel", ".", "<br", "/", ">", "A", "large", "person", "group", "is", "the", "container", "of", ...
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_cognitiveservices_face/lib/1.0/generated/azure_cognitiveservices_face/large_person_group_operations.rb#L112-L114
train
Creates a large person group.
[ 30522, 13366, 3443, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 2312, 1035, 2711, 1035, 2177, 1035, 8909, 1010, 2171, 1024, 9152, 2140, 1010, 5310, 1035, 2951, 1024, 9152, 2140, 1010, 5038, 1035, 2944, 1024, 9152, 2140, 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...
thoughtbot/clearance
lib/clearance/session.rb
Clearance.Session.add_cookie_to_headers
def add_cookie_to_headers(headers) if signed_in_with_remember_token? Rack::Utils.set_cookie_header!( headers, remember_token_cookie, cookie_options.merge( value: current_user.remember_token, ), ) end end
ruby
def add_cookie_to_headers(headers) if signed_in_with_remember_token? Rack::Utils.set_cookie_header!( headers, remember_token_cookie, cookie_options.merge( value: current_user.remember_token, ), ) end end
[ "def", "add_cookie_to_headers", "(", "headers", ")", "if", "signed_in_with_remember_token?", "Rack", "::", "Utils", ".", "set_cookie_header!", "(", "headers", ",", "remember_token_cookie", ",", "cookie_options", ".", "merge", "(", "value", ":", "current_user", ".", ...
@param env The current rack environment Called by {RackSession} to add the Clearance session cookie to a response. @return [void]
[ "@param", "env", "The", "current", "rack", "environment", "Called", "by", "{", "RackSession", "}", "to", "add", "the", "Clearance", "session", "cookie", "to", "a", "response", "." ]
1623cdeb648f33a55f0eb7be17e8f19a4291e1f2
https://github.com/thoughtbot/clearance/blob/1623cdeb648f33a55f0eb7be17e8f19a4291e1f2/lib/clearance/session.rb#L17-L27
train
Adds a cookie to the headers
[ 30522, 13366, 5587, 1035, 17387, 1035, 2000, 1035, 20346, 2015, 1006, 20346, 2015, 1007, 2065, 2772, 1035, 1999, 1035, 2007, 1035, 3342, 1035, 19204, 1029, 14513, 1024, 1024, 21183, 12146, 1012, 2275, 1035, 17387, 1035, 20346, 999, 1006, 20...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
puppetlabs/puppet
lib/puppet/network/http/connection.rb
Puppet::Network::HTTP.Connection.get
def get(path, headers = {}, options = {}) do_request(Net::HTTP::Get.new(path, headers), options) end
ruby
def get(path, headers = {}, options = {}) do_request(Net::HTTP::Get.new(path, headers), options) end
[ "def", "get", "(", "path", ",", "headers", "=", "{", "}", ",", "options", "=", "{", "}", ")", "do_request", "(", "Net", "::", "HTTP", "::", "Get", ".", "new", "(", "path", ",", "headers", ")", ",", "options", ")", "end" ]
Creates a new HTTP client connection to `host`:`port`. @param host [String] the host to which this client will connect to @param port [Integer] the port to which this client will connect to @param options [Hash] options influencing the properties of the created connection, @option options [Boolean] :use_ssl true...
[ "Creates", "a", "new", "HTTP", "client", "connection", "to", "host", ":", "port", ".", "@param", "host", "[", "String", "]", "the", "host", "to", "which", "this", "client", "will", "connect", "to", "@param", "port", "[", "Integer", "]", "the", "port", ...
4baeed97cbb7571ddc6635f0a24debe2e8b22cd3
https://github.com/puppetlabs/puppet/blob/4baeed97cbb7571ddc6635f0a24debe2e8b22cd3/lib/puppet/network/http/connection.rb#L89-L91
train
Get a single resource
[ 30522, 13366, 2131, 1006, 4130, 1010, 20346, 2015, 1027, 1063, 1065, 1010, 7047, 1027, 1063, 1065, 1007, 2079, 1035, 5227, 1006, 5658, 1024, 1024, 8299, 1024, 1024, 2131, 1012, 2047, 1006, 4130, 1010, 20346, 2015, 1007, 1010, 7047, 1007, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
hashicorp/vagrant
lib/vagrant/bundler.rb
Vagrant.Bundler.validate_configured_sources!
def validate_configured_sources! Gem.sources.each_source do |src| begin src.load_specs(:released) rescue Gem::Exception => source_error if ENV["VAGRANT_ALLOW_PLUGIN_SOURCE_ERRORS"] @logger.warn("Failed to load configured plugin source: #{src}!") @logger....
ruby
def validate_configured_sources! Gem.sources.each_source do |src| begin src.load_specs(:released) rescue Gem::Exception => source_error if ENV["VAGRANT_ALLOW_PLUGIN_SOURCE_ERRORS"] @logger.warn("Failed to load configured plugin source: #{src}!") @logger....
[ "def", "validate_configured_sources!", "Gem", ".", "sources", ".", "each_source", "do", "|", "src", "|", "begin", "src", ".", "load_specs", "(", ":released", ")", "rescue", "Gem", "::", "Exception", "=>", "source_error", "if", "ENV", "[", "\"VAGRANT_ALLOW_PLUGIN...
Iterates each configured RubyGem source to validate that it is properly available. If source is unavailable an exception is raised.
[ "Iterates", "each", "configured", "RubyGem", "source", "to", "validate", "that", "it", "is", "properly", "available", ".", "If", "source", "is", "unavailable", "an", "exception", "is", "raised", "." ]
c22a145c59790c098f95d50141d9afb48e1ef55f
https://github.com/hashicorp/vagrant/blob/c22a145c59790c098f95d50141d9afb48e1ef55f/lib/vagrant/bundler.rb#L426-L443
train
Validate the configured sources
[ 30522, 13366, 9398, 3686, 1035, 26928, 1035, 4216, 999, 17070, 1012, 4216, 1012, 2169, 1035, 3120, 2079, 1064, 5034, 2278, 1064, 4088, 5034, 2278, 1012, 7170, 1035, 28699, 2015, 1006, 1024, 2207, 1007, 5343, 17070, 1024, 1024, 6453, 1027, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
aws/aws-sdk-ruby
gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/instance.rb
Aws::AutoScaling.Instance.attach
def attach(options = {}) options = Aws::Util.deep_merge(options, auto_scaling_group_name: @group_name, instance_ids: [@id] ) resp = @client.attach_instances(options) resp.data end
ruby
def attach(options = {}) options = Aws::Util.deep_merge(options, auto_scaling_group_name: @group_name, instance_ids: [@id] ) resp = @client.attach_instances(options) resp.data end
[ "def", "attach", "(", "options", "=", "{", "}", ")", "options", "=", "Aws", "::", "Util", ".", "deep_merge", "(", "options", ",", "auto_scaling_group_name", ":", "@group_name", ",", "instance_ids", ":", "[", "@id", "]", ")", "resp", "=", "@client", ".", ...
@!group Actions @example Request syntax with placeholder values instance.attach() @param [Hash] options ({}) @return [EmptyStructure]
[ "@!group", "Actions", "@example", "Request", "syntax", "with", "placeholder", "values" ]
e28b8d320ddf7b6ee0161bdd9d00fb786d99b63d
https://github.com/aws/aws-sdk-ruby/blob/e28b8d320ddf7b6ee0161bdd9d00fb786d99b63d/gems/aws-sdk-autoscaling/lib/aws-sdk-autoscaling/instance.rb#L221-L228
train
Attaches this instance to the Auto Scaling group.
[ 30522, 13366, 22476, 1006, 7047, 1027, 1063, 1065, 1007, 7047, 1027, 22091, 2015, 1024, 1024, 21183, 4014, 1012, 2784, 1035, 13590, 1006, 7047, 1010, 8285, 1035, 25169, 1035, 2177, 1035, 2171, 1024, 1030, 2177, 1035, 2171, 1010, 6013, 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...
rmagick/rmagick
lib/rvg/rvg.rb
Magick.RVG.draw
def draw raise StandardError, 'draw not permitted in nested RVG objects' if @nested @canvas ||= new_canvas # allow drawing over existing canvas gc = Utility::GraphicContext.new add_outermost_primitives(gc) pp(self) if ENV['debug_rvg'] print_gc(gc) if ENV['debug_prim'] gc.draw(...
ruby
def draw raise StandardError, 'draw not permitted in nested RVG objects' if @nested @canvas ||= new_canvas # allow drawing over existing canvas gc = Utility::GraphicContext.new add_outermost_primitives(gc) pp(self) if ENV['debug_rvg'] print_gc(gc) if ENV['debug_prim'] gc.draw(...
[ "def", "draw", "raise", "StandardError", ",", "'draw not permitted in nested RVG objects'", "if", "@nested", "@canvas", "||=", "new_canvas", "# allow drawing over existing canvas", "gc", "=", "Utility", "::", "GraphicContext", ".", "new", "add_outermost_primitives", "(", "g...
Draw a +width+ x +height+ image. The image is specified by calling one or more drawing methods on the RVG object. You can group the drawing method calls in the optional associated block. The +x+ and +y+ arguments have no meaning for the outermost RVG object. On nested RVG objects [+x+, +y+] is the coordinate of the...
[ "Draw", "a", "+", "width", "+", "x", "+", "height", "+", "image", ".", "The", "image", "is", "specified", "by", "calling", "one", "or", "more", "drawing", "methods", "on", "the", "RVG", "object", ".", "You", "can", "group", "the", "drawing", "method", ...
ef6688ed9d76bf123c2ea1a483eff8635051adb7
https://github.com/rmagick/rmagick/blob/ef6688ed9d76bf123c2ea1a483eff8635051adb7/lib/rvg/rvg.rb#L231-L241
train
draw the current object in the specified array of objects
[ 30522, 13366, 4009, 5333, 3115, 2121, 29165, 1010, 1005, 4009, 2025, 7936, 1999, 9089, 2098, 27634, 2290, 5200, 1005, 2065, 1030, 9089, 2098, 1030, 10683, 1064, 1064, 1027, 2047, 1035, 10683, 1001, 3499, 5059, 2058, 4493, 10683, 1043, 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...
aws/aws-sdk-ruby
gems/aws-sdk-s3/lib/aws-sdk-s3/bucket_policy.rb
Aws::S3.BucketPolicy.put
def put(options = {}) options = options.merge(bucket: @bucket_name) resp = @client.put_bucket_policy(options) resp.data end
ruby
def put(options = {}) options = options.merge(bucket: @bucket_name) resp = @client.put_bucket_policy(options) resp.data end
[ "def", "put", "(", "options", "=", "{", "}", ")", "options", "=", "options", ".", "merge", "(", "bucket", ":", "@bucket_name", ")", "resp", "=", "@client", ".", "put_bucket_policy", "(", "options", ")", "resp", ".", "data", "end" ]
@example Request syntax with placeholder values bucket_policy.put({ content_md5: "ContentMD5", confirm_remove_self_bucket_access: false, policy: "Policy", # required }) @param [Hash] options ({}) @option options [String] :content_md5 @option options [Boolean] :confirm_remove_self_bucket_access ...
[ "@example", "Request", "syntax", "with", "placeholder", "values" ]
e28b8d320ddf7b6ee0161bdd9d00fb786d99b63d
https://github.com/aws/aws-sdk-ruby/blob/e28b8d320ddf7b6ee0161bdd9d00fb786d99b63d/gems/aws-sdk-s3/lib/aws-sdk-s3/bucket_policy.rb#L197-L201
train
Put a policy on the bucket
[ 30522, 13366, 2404, 1006, 7047, 1027, 1063, 1065, 1007, 7047, 1027, 7047, 1012, 13590, 1006, 13610, 1024, 1030, 13610, 1035, 2171, 1007, 24501, 2361, 1027, 1030, 7396, 1012, 2404, 1035, 13610, 1035, 3343, 1006, 7047, 1007, 24501, 2361, 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...
plataformatec/responders
lib/responders/controller_method.rb
Responders.ControllerMethod.responders
def responders(*responders) self.responder = responders.inject(Class.new(responder)) do |klass, responder| responder = case responder when Module responder when String, Symbol Responders.const_get("#{responder.to_s.camelize}Responder") else ...
ruby
def responders(*responders) self.responder = responders.inject(Class.new(responder)) do |klass, responder| responder = case responder when Module responder when String, Symbol Responders.const_get("#{responder.to_s.camelize}Responder") else ...
[ "def", "responders", "(", "*", "responders", ")", "self", ".", "responder", "=", "responders", ".", "inject", "(", "Class", ".", "new", "(", "responder", ")", ")", "do", "|", "klass", ",", "responder", "|", "responder", "=", "case", "responder", "when", ...
Adds the given responders to the current controller's responder, allowing you to cherry-pick which responders you want per controller. class InvitationsController < ApplicationController responders :flash, :http_cache end Takes symbols and strings and translates them to VariableResponder (eg. :flash beco...
[ "Adds", "the", "given", "responders", "to", "the", "current", "controller", "s", "responder", "allowing", "you", "to", "cherry", "-", "pick", "which", "responders", "you", "want", "per", "controller", "." ]
a1a2706091d4ffcbbe387407ddfc5671a59ad842
https://github.com/plataformatec/responders/blob/a1a2706091d4ffcbbe387407ddfc5671a59ad842/lib/responders/controller_method.rb#L19-L33
train
Set the responders to the current object
[ 30522, 13366, 6869, 2545, 1006, 1008, 6869, 2545, 1007, 2969, 1012, 6869, 2121, 1027, 6869, 2545, 1012, 1999, 20614, 1006, 2465, 1012, 2047, 1006, 6869, 2121, 1007, 1007, 2079, 1064, 1047, 27102, 1010, 6869, 2121, 1064, 6869, 2121, 1027, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Fullscreen/yt
lib/yt/request.rb
Yt.Request.set_request_headers!
def set_request_headers!(request) case @request_format when :json request.initialize_http_header 'Content-Type' => 'application/json' request.initialize_http_header 'Content-length' => '0' unless @body when :file request.initialize_http_header 'Content-Length' => @body.size.to_...
ruby
def set_request_headers!(request) case @request_format when :json request.initialize_http_header 'Content-Type' => 'application/json' request.initialize_http_header 'Content-length' => '0' unless @body when :file request.initialize_http_header 'Content-Length' => @body.size.to_...
[ "def", "set_request_headers!", "(", "request", ")", "case", "@request_format", "when", ":json", "request", ".", "initialize_http_header", "'Content-Type'", "=>", "'application/json'", "request", ".", "initialize_http_header", "'Content-length'", "=>", "'0'", "unless", "@b...
Adds the request headers to the request in the appropriate format. The User-Agent header is also set to recognize the request, and to tell the server that gzip compression can be used, since Net::HTTP supports it and automatically sets the Accept-Encoding header.
[ "Adds", "the", "request", "headers", "to", "the", "request", "in", "the", "appropriate", "format", ".", "The", "User", "-", "Agent", "header", "is", "also", "set", "to", "recognize", "the", "request", "and", "to", "tell", "the", "server", "that", "gzip", ...
bf5c33b977cb162bb7735ad5b80d1abdb5a38215
https://github.com/Fullscreen/yt/blob/bf5c33b977cb162bb7735ad5b80d1abdb5a38215/lib/yt/request.rb#L141-L153
train
Set the HTTP headers for the request
[ 30522, 13366, 2275, 1035, 5227, 1035, 20346, 2015, 999, 1006, 5227, 1007, 2553, 1030, 5227, 1035, 4289, 2043, 1024, 1046, 3385, 5227, 1012, 3988, 4697, 1035, 8299, 1035, 20346, 1005, 4180, 1011, 2828, 1005, 1027, 1028, 1005, 4646, 1013, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
data/azure_cognitiveservices_luisauthoring/lib/2.0/generated/azure_cognitiveservices_luisauthoring/model.rb
Azure::CognitiveServices::LuisAuthoring::V2_0.Model.delete_prebuilt
def delete_prebuilt(app_id, version_id, prebuilt_id, custom_headers:nil) response = delete_prebuilt_async(app_id, version_id, prebuilt_id, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def delete_prebuilt(app_id, version_id, prebuilt_id, custom_headers:nil) response = delete_prebuilt_async(app_id, version_id, prebuilt_id, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "delete_prebuilt", "(", "app_id", ",", "version_id", ",", "prebuilt_id", ",", "custom_headers", ":", "nil", ")", "response", "=", "delete_prebuilt_async", "(", "app_id", ",", "version_id", ",", "prebuilt_id", ",", "custom_headers", ":custom_headers", ")", "...
Deletes a prebuilt entity extractor from a version of the application. @param app_id The application ID. @param version_id [String] The version ID. @param prebuilt_id The prebuilt entity extractor ID. @param custom_headers [Hash{String => String}] A hash of custom headers that will be added to the HTTP request. ...
[ "Deletes", "a", "prebuilt", "entity", "extractor", "from", "a", "version", "of", "the", "application", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_cognitiveservices_luisauthoring/lib/2.0/generated/azure_cognitiveservices_luisauthoring/model.rb#L3541-L3544
train
Deletes the prebuilt product.
[ 30522, 13366, 3972, 12870, 1035, 3653, 30524, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 3972, 12870, 1035, 3653, 8569, 4014, 2102, 1035, 2004, 6038, 2278, 1006, 10439, 1035, 8909, 1010, 2544, 1035, 8909, 1010, 3653, 8569,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
oauth-xx/oauth2
lib/oauth2/client.rb
OAuth2.Client.connection
def connection @connection ||= Faraday.new(site, options[:connection_opts]) do |builder| oauth_debug_logging(builder) if options[:connection_build] options[:connection_build].call(builder) else builder.request :url_encoded # form-encode POS...
ruby
def connection @connection ||= Faraday.new(site, options[:connection_opts]) do |builder| oauth_debug_logging(builder) if options[:connection_build] options[:connection_build].call(builder) else builder.request :url_encoded # form-encode POS...
[ "def", "connection", "@connection", "||=", "Faraday", ".", "new", "(", "site", ",", "options", "[", ":connection_opts", "]", ")", "do", "|", "builder", "|", "oauth_debug_logging", "(", "builder", ")", "if", "options", "[", ":connection_build", "]", "options", ...
The Faraday connection object
[ "The", "Faraday", "connection", "object" ]
f08ff9da169136ab133aa2faab0d74a4407deffb
https://github.com/oauth-xx/oauth2/blob/f08ff9da169136ab133aa2faab0d74a4407deffb/lib/oauth2/client.rb#L57-L68
train
Returns a connection object for the current site
[ 30522, 13366, 4434, 1030, 4434, 1064, 1064, 1027, 2521, 28039, 1012, 2047, 1006, 2609, 1010, 7047, 1031, 1024, 4434, 1035, 23569, 2015, 1033, 1007, 2079, 1064, 12508, 1064, 1051, 4887, 2705, 1035, 2139, 8569, 2290, 1035, 15899, 1006, 12508,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/connection_operations.rb
Azure::Automation::Mgmt::V2015_10_31.ConnectionOperations.list_by_automation_account_as_lazy
def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers:nil) response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method ...
ruby
def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers:nil) response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method ...
[ "def", "list_by_automation_account_as_lazy", "(", "resource_group_name", ",", "automation_account_name", ",", "custom_headers", ":", "nil", ")", "response", "=", "list_by_automation_account_async", "(", "resource_group_name", ",", "automation_account_name", ",", "custom_headers...
Retrieve a list of connections. @param resource_group_name [String] Name of an Azure Resource group. @param automation_account_name [String] The name of the automation account. @param custom_headers [Hash{String => String}] A hash of custom headers that will be added to the HTTP request. @return [ConnectionListR...
[ "Retrieve", "a", "list", "of", "connections", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/connection_operations.rb#L658-L667
train
Gets the list of all the automation policies in a resource group.
[ 30522, 13366, 2862, 1035, 2011, 1035, 19309, 1035, 4070, 1035, 2004, 1035, 13971, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 19309, 1035, 4070, 1035, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 2862, 1035, 2011, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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_relay/lib/2016-07-01/generated/azure_mgmt_relay/hybrid_connections.rb
Azure::Relay::Mgmt::V2016_07_01.HybridConnections.get_authorization_rule_with_http_info
def get_authorization_rule_with_http_info(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers:nil) get_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers:custom_headers).value! end
ruby
def get_authorization_rule_with_http_info(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers:nil) get_authorization_rule_async(resource_group_name, namespace_name, hybrid_connection_name, authorization_rule_name, custom_headers:custom_headers).value! end
[ "def", "get_authorization_rule_with_http_info", "(", "resource_group_name", ",", "namespace_name", ",", "hybrid_connection_name", ",", "authorization_rule_name", ",", "custom_headers", ":", "nil", ")", "get_authorization_rule_async", "(", "resource_group_name", ",", "namespace_...
HybridConnection authorizationRule for a HybridConnection by name. @param resource_group_name [String] Name of the Resource group within the Azure subscription. @param namespace_name [String] The Namespace Name @param hybrid_connection_name [String] The hybrid connection name. @param authorization_rule_name [Stri...
[ "HybridConnection", "authorizationRule", "for", "a", "HybridConnection", "by", "name", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_relay/lib/2016-07-01/generated/azure_mgmt_relay/hybrid_connections.rb#L905-L907
train
Gets the authorization rule for a HybridConnection.
[ 30522, 13366, 2131, 1035, 20104, 1035, 3627, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 3415, 15327, 1035, 2171, 1010, 8893, 1035, 4434, 1035, 2171, 1010, 20104, 1035, 3627, 1035, 2171, 1010, 7661, 1035, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_reservations/lib/2017-11-01/generated/azure_mgmt_reservations/reservation.rb
Azure::Reservations::Mgmt::V2017_11_01.Reservation.update
def update(reservation_order_id, reservation_id, parameters, custom_headers:nil) response = update_async(reservation_order_id, reservation_id, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def update(reservation_order_id, reservation_id, parameters, custom_headers:nil) response = update_async(reservation_order_id, reservation_id, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "update", "(", "reservation_order_id", ",", "reservation_id", ",", "parameters", ",", "custom_headers", ":", "nil", ")", "response", "=", "update_async", "(", "reservation_order_id", ",", "reservation_id", ",", "parameters", ",", "custom_headers", ":custom_head...
Updates a `Reservation`. Updates the applied scopes of the `Reservation`. @param reservation_order_id [String] Order Id of the reservation @param reservation_id [String] Id of the Reservation Item @param parameters [Patch] Information needed to patch a reservation item @param custom_headers [Hash{String => Stri...
[ "Updates", "a", "Reservation", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_reservations/lib/2017-11-01/generated/azure_mgmt_reservations/reservation.rb#L363-L366
train
Updates a reservation s segmentation group.
[ 30522, 13366, 10651, 1006, 11079, 1035, 2344, 1035, 8909, 1010, 11079, 1035, 8909, 1010, 11709, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 10651, 1035, 2004, 6038, 2278, 1006, 11079, 1035, 2344, 1035, 8909, 1010, 110...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_labservices/lib/2018-10-15/generated/azure_mgmt_labservices/lab_accounts.rb
Azure::Labservices::Mgmt::V2018_10_15.LabAccounts.create_or_update_with_http_info
def create_or_update_with_http_info(resource_group_name, lab_account_name, lab_account, custom_headers:nil) create_or_update_async(resource_group_name, lab_account_name, lab_account, custom_headers:custom_headers).value! end
ruby
def create_or_update_with_http_info(resource_group_name, lab_account_name, lab_account, custom_headers:nil) create_or_update_async(resource_group_name, lab_account_name, lab_account, custom_headers:custom_headers).value! end
[ "def", "create_or_update_with_http_info", "(", "resource_group_name", ",", "lab_account_name", ",", "lab_account", ",", "custom_headers", ":", "nil", ")", "create_or_update_async", "(", "resource_group_name", ",", "lab_account_name", ",", "lab_account", ",", "custom_headers...
Create or replace an existing Lab Account. @param resource_group_name [String] The name of the resource group. @param lab_account_name [String] The name of the lab Account. @param lab_account [LabAccount] Represents a lab account. @param custom_headers [Hash{String => String}] A hash of custom headers that will b...
[ "Create", "or", "replace", "an", "existing", "Lab", "Account", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_labservices/lib/2018-10-15/generated/azure_mgmt_labservices/lab_accounts.rb#L363-L365
train
Creates or updates a lab account.
[ 30522, 13366, 3443, 1035, 2030, 1035, 10651, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 6845, 1035, 4070, 1035, 2171, 1010, 6845, 1035, 4070, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3443, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
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.begin_create_or_update_with_http_info
def begin_create_or_update_with_http_info(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:nil) begin_create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:custom_headers).value! end
ruby
def begin_create_or_update_with_http_info(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:nil) begin_create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers:custom_headers).value! end
[ "def", "begin_create_or_update_with_http_info", "(", "resource_group_name", ",", "circuit_name", ",", "authorization_name", ",", "authorization_parameters", ",", "custom_headers", ":", "nil", ")", "begin_create_or_update_async", "(", "resource_group_name", ",", "circuit_name", ...
Creates or updates an authorization in 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 authorization_parameters [Expr...
[ "Creates", "or", "updates", "an", "authorization", "in", "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#L420-L422
train
Creates or updates an express route circuit authorization.
[ 30522, 13366, 4088, 1035, 3443, 1035, 2030, 1035, 10651, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 4984, 1035, 2171, 1010, 20104, 1035, 2171, 1010, 20104, 1035, 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...
chaps-io/public_activity
lib/public_activity/renderable.rb
PublicActivity.Renderable.text
def text(params = {}) # TODO: some helper for key transformation for two supported formats k = key.split('.') k.unshift('activity') if k.first != 'activity' k = k.join('.') I18n.t(k, parameters.merge(params) || {}) end
ruby
def text(params = {}) # TODO: some helper for key transformation for two supported formats k = key.split('.') k.unshift('activity') if k.first != 'activity' k = k.join('.') I18n.t(k, parameters.merge(params) || {}) end
[ "def", "text", "(", "params", "=", "{", "}", ")", "# TODO: some helper for key transformation for two supported formats", "k", "=", "key", ".", "split", "(", "'.'", ")", "k", ".", "unshift", "(", "'activity'", ")", "if", "k", ".", "first", "!=", "'activity'", ...
Virtual attribute returning text description of the activity using the activity's key to translate using i18n.
[ "Virtual", "attribute", "returning", "text", "description", "of", "the", "activity", "using", "the", "activity", "s", "key", "to", "translate", "using", "i18n", "." ]
e4357cd14db67299e0cbbd656300f51b7069ea9b
https://github.com/chaps-io/public_activity/blob/e4357cd14db67299e0cbbd656300f51b7069ea9b/lib/public_activity/renderable.rb#L9-L16
train
Returns the text for this object
[ 30522, 13366, 3793, 1006, 11498, 5244, 1027, 1063, 1065, 1007, 1001, 28681, 2080, 1024, 2070, 2393, 2121, 2005, 3145, 8651, 2005, 2048, 3569, 11630, 1047, 1027, 3145, 1012, 3975, 1006, 1005, 1012, 1005, 1007, 1047, 1012, 4895, 6182, 6199, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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/traceability_helper.rb
Decidim.TraceabilityHelper.render_resource_last_editor
def render_resource_last_editor(resource) render partial: "decidim/shared/version_author", locals: { author: Decidim.traceability.last_editor(resource) } end
ruby
def render_resource_last_editor(resource) render partial: "decidim/shared/version_author", locals: { author: Decidim.traceability.last_editor(resource) } end
[ "def", "render_resource_last_editor", "(", "resource", ")", "render", "partial", ":", "\"decidim/shared/version_author\"", ",", "locals", ":", "{", "author", ":", "Decidim", ".", "traceability", ".", "last_editor", "(", "resource", ")", "}", "end" ]
Renders the avatar and author name of the author of the last version of the given resource. resource - an object implementing `Decidim::Traceable` Returns an HTML-safe String representing the HTML to render the author.
[ "Renders", "the", "avatar", "and", "author", "name", "of", "the", "author", "of", "the", "last", "version", "of", "the", "given", "resource", "." ]
6e2b14e559a63088669904e3c5c49a5180700cf7
https://github.com/decidim/decidim/blob/6e2b14e559a63088669904e3c5c49a5180700cf7/decidim-core/app/helpers/decidim/traceability_helper.rb#L13-L18
train
Render the last editor of the resource
[ 30522, 13366, 17552, 1035, 7692, 1035, 2197, 1035, 3559, 1006, 7692, 1007, 17552, 7704, 1024, 1000, 11703, 28173, 2213, 1013, 4207, 1013, 2544, 1035, 3166, 1000, 1010, 10575, 1024, 1063, 3166, 1024, 11703, 28173, 2213, 1012, 7637, 8010, 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_recovery_services_backup/lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/jobs.rb
Azure::RecoveryServicesBackup::Mgmt::V2016_06_01.Jobs.export
def export(vault_name, resource_group_name, filter:nil, custom_headers:nil) response = export_async(vault_name, resource_group_name, filter:filter, custom_headers:custom_headers).value! nil end
ruby
def export(vault_name, resource_group_name, filter:nil, custom_headers:nil) response = export_async(vault_name, resource_group_name, filter:filter, custom_headers:custom_headers).value! nil end
[ "def", "export", "(", "vault_name", ",", "resource_group_name", ",", "filter", ":", "nil", ",", "custom_headers", ":", "nil", ")", "response", "=", "export_async", "(", "vault_name", ",", "resource_group_name", ",", "filter", ":", "filter", ",", "custom_headers"...
Exports all jobs for a given Shared Access Signatures (SAS) URL. The SAS URL expires within 15 minutes of its creation. @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. @param filter ...
[ "Exports", "all", "jobs", "for", "a", "given", "Shared", "Access", "Signatures", "(", "SAS", ")", "URL", ".", "The", "SAS", "URL", "expires", "within", "15", "minutes", "of", "its", "creation", "." ]
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/jobs.rb#L45-L48
train
Export a list of documents to a vault.
[ 30522, 13366, 9167, 1006, 11632, 1035, 2171, 1010, 7692, 1035, 2177, 1035, 2171, 1010, 11307, 1024, 9152, 2140, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 9167, 1035, 2004, 6038, 2278, 1006, 11632, 1035, 2171, 1010, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_container_registry/lib/2017-06-01-preview/generated/azure_mgmt_container_registry/webhooks.rb
Azure::ContainerRegistry::Mgmt::V2017_06_01_preview.Webhooks.begin_delete_with_http_info
def begin_delete_with_http_info(resource_group_name, registry_name, webhook_name, custom_headers:nil) begin_delete_async(resource_group_name, registry_name, webhook_name, custom_headers:custom_headers).value! end
ruby
def begin_delete_with_http_info(resource_group_name, registry_name, webhook_name, custom_headers:nil) begin_delete_async(resource_group_name, registry_name, webhook_name, custom_headers:custom_headers).value! end
[ "def", "begin_delete_with_http_info", "(", "resource_group_name", ",", "registry_name", ",", "webhook_name", ",", "custom_headers", ":", "nil", ")", "begin_delete_async", "(", "resource_group_name", ",", "registry_name", ",", "webhook_name", ",", "custom_headers", ":custo...
Deletes a webhook from a container registry. @param resource_group_name [String] The name of the resource group to which the container registry belongs. @param registry_name [String] The name of the container registry. @param webhook_name [String] The name of the webhook. @param custom_headers [Hash{String => Str...
[ "Deletes", "a", "webhook", "from", "a", "container", "registry", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_container_registry/lib/2017-06-01-preview/generated/azure_mgmt_container_registry/webhooks.rb#L841-L843
train
Deletes the webhook.
[ 30522, 13366, 4088, 1035, 3972, 12870, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 15584, 1035, 2171, 1010, 4773, 6806, 6559, 1035, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 4088, 1035, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
hashicorp/vault-ruby
lib/vault/api/sys/audit.rb
Vault.Sys.audit_hash
def audit_hash(path, input) json = client.post("/v1/sys/audit-hash/#{encode_path(path)}", JSON.fast_generate(input: input)) json = json[:data] if json[:data] json[:hash] end
ruby
def audit_hash(path, input) json = client.post("/v1/sys/audit-hash/#{encode_path(path)}", JSON.fast_generate(input: input)) json = json[:data] if json[:data] json[:hash] end
[ "def", "audit_hash", "(", "path", ",", "input", ")", "json", "=", "client", ".", "post", "(", "\"/v1/sys/audit-hash/#{encode_path(path)}\"", ",", "JSON", ".", "fast_generate", "(", "input", ":", "input", ")", ")", "json", "=", "json", "[", ":data", "]", "i...
Generates a HMAC verifier for a given input. @example Vault.sys.audit_hash("file-audit", "my input") #=> "hmac-sha256:30aa7de18a5e90bbc1063db91e7c387b32b9fa895977eb8c177bbc91e7d7c542" @param [String] path the path of the audit backend @param [String] input the input to generate a HMAC for @return [Strin...
[ "Generates", "a", "HMAC", "verifier", "for", "a", "given", "input", "." ]
02f0532a802ba1a2a0d8703a4585dab76eb9d864
https://github.com/hashicorp/vault-ruby/blob/02f0532a802ba1a2a0d8703a4585dab76eb9d864/lib/vault/api/sys/audit.rb#L85-L89
train
Create a hash for a file
[ 30522, 13366, 15727, 1035, 23325, 1006, 4130, 1010, 7953, 1007, 1046, 3385, 1027, 7396, 1012, 2695, 1006, 1000, 1013, 1058, 2487, 1013, 25353, 2015, 1013, 15727, 1011, 23325, 1013, 1001, 1063, 4372, 16044, 1035, 4130, 1006, 4130, 1007, 1065...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
data/azure_service_fabric/lib/6.2.0.9/generated/azure_service_fabric/service_fabric_client_apis.rb
Azure::ServiceFabric::V6_2_0_9.ServiceFabricClientAPIs.get_backup_policy_list_with_http_info
def get_backup_policy_list_with_http_info(continuation_token:nil, max_results:0, timeout:60, custom_headers:nil) get_backup_policy_list_async(continuation_token:continuation_token, max_results:max_results, timeout:timeout, custom_headers:custom_headers).value! end
ruby
def get_backup_policy_list_with_http_info(continuation_token:nil, max_results:0, timeout:60, custom_headers:nil) get_backup_policy_list_async(continuation_token:continuation_token, max_results:max_results, timeout:timeout, custom_headers:custom_headers).value! end
[ "def", "get_backup_policy_list_with_http_info", "(", "continuation_token", ":", "nil", ",", "max_results", ":", "0", ",", "timeout", ":", "60", ",", "custom_headers", ":", "nil", ")", "get_backup_policy_list_async", "(", "continuation_token", ":continuation_token", ",",...
Gets all the backup policies configured. Get a list of all the backup policies configured. @param continuation_token [String] The continuation token parameter is used to obtain next set of results. A continuation token with a non empty value is included in the response of the API when the results from the system ...
[ "Gets", "all", "the", "backup", "policies", "configured", "." ]
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#L22477-L22479
train
Gets backup policy list.
[ 30522, 13366, 2131, 1035, 10200, 1035, 3343, 1035, 2862, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 13633, 1035, 19204, 1024, 9152, 2140, 1010, 4098, 1035, 3463, 1024, 1014, 1010, 2051, 5833, 1024, 3438, 1010, 7661, 1035, 20346, 2015, 1024,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
aws/aws-sdk-ruby
gems/aws-sdk-rds/lib/aws-sdk-rds/db_cluster.rb
Aws::RDS.DBCluster.create_snapshot
def create_snapshot(options = {}) options = options.merge(db_cluster_identifier: @id) resp = @client.create_db_cluster_snapshot(options) DBClusterSnapshot.new( cluster_id: resp.data.db_cluster_snapshot.db_cluster_identifier, snapshot_id: resp.data.db_cluster_snapshot.db_cluster_snapsho...
ruby
def create_snapshot(options = {}) options = options.merge(db_cluster_identifier: @id) resp = @client.create_db_cluster_snapshot(options) DBClusterSnapshot.new( cluster_id: resp.data.db_cluster_snapshot.db_cluster_identifier, snapshot_id: resp.data.db_cluster_snapshot.db_cluster_snapsho...
[ "def", "create_snapshot", "(", "options", "=", "{", "}", ")", "options", "=", "options", ".", "merge", "(", "db_cluster_identifier", ":", "@id", ")", "resp", "=", "@client", ".", "create_db_cluster_snapshot", "(", "options", ")", "DBClusterSnapshot", ".", "new...
@example Request syntax with placeholder values dbclustersnapshot = db_cluster.create_snapshot({ db_cluster_snapshot_identifier: "String", # required tags: [ { key: "String", value: "String", }, ], }) @param [Hash] options ({}) @option options [required, String] :...
[ "@example", "Request", "syntax", "with", "placeholder", "values" ]
e28b8d320ddf7b6ee0161bdd9d00fb786d99b63d
https://github.com/aws/aws-sdk-ruby/blob/e28b8d320ddf7b6ee0161bdd9d00fb786d99b63d/gems/aws-sdk-rds/lib/aws-sdk-rds/db_cluster.rb#L863-L872
train
Create a snapshot of this cluster
[ 30522, 13366, 3443, 1035, 20057, 12326, 1006, 7047, 1027, 1063, 1065, 1007, 7047, 1027, 7047, 1012, 13590, 1006, 16962, 1035, 9324, 1035, 8909, 4765, 18095, 1024, 1030, 8909, 1007, 24501, 2361, 1027, 1030, 7396, 1012, 3443, 1035, 16962, 103...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
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_info_list
def get_deployed_service_package_info_list(node_name, application_id, timeout:60, custom_headers:nil) response = get_deployed_service_package_info_list_async(node_name, application_id, timeout:timeout, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def get_deployed_service_package_info_list(node_name, application_id, timeout:60, custom_headers:nil) response = get_deployed_service_package_info_list_async(node_name, application_id, timeout:timeout, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "get_deployed_service_package_info_list", "(", "node_name", ",", "application_id", ",", "timeout", ":", "60", ",", "custom_headers", ":", "nil", ")", "response", "=", "get_deployed_service_package_info_list_async", "(", "node_name", ",", "application_id", ",", "t...
Gets the list of service packages deployed on a Service Fabric node. Returns the information about the service packages deployed on a Service Fabric node for the given application. @param node_name [String] The name of the node. @param application_id [String] The identity of the application. This is typically th...
[ "Gets", "the", "list", "of", "service", "packages", "deployed", "on", "a", "Service", "Fabric", "node", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_service_fabric/lib/6.2.0.9/generated/azure_service_fabric/service_fabric_client_apis.rb#L15984-L15987
train
Gets the list of deployed service package info for a node.
[ 30522, 13366, 2131, 1035, 7333, 1035, 2326, 1035, 7427, 1035, 18558, 1035, 2862, 1006, 13045, 1035, 2171, 1010, 4646, 1035, 8909, 1010, 2051, 5833, 1024, 3438, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 2131, 1035, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
data/azure_cognitiveservices_face/lib/1.0/generated/azure_cognitiveservices_face/large_person_group_person.rb
Azure::CognitiveServices::Face::V1_0.LargePersonGroupPerson.list_with_http_info
def list_with_http_info(large_person_group_id, start:nil, top:nil, custom_headers:nil) list_async(large_person_group_id, start:start, top:top, custom_headers:custom_headers).value! end
ruby
def list_with_http_info(large_person_group_id, start:nil, top:nil, custom_headers:nil) list_async(large_person_group_id, start:start, top:top, custom_headers:custom_headers).value! end
[ "def", "list_with_http_info", "(", "large_person_group_id", ",", "start", ":", "nil", ",", "top", ":", "nil", ",", "custom_headers", ":", "nil", ")", "list_async", "(", "large_person_group_id", ",", "start", ":", "start", ",", "top", ":", "top", ",", "custom...
List all persons in a large person group, and retrieve person information (including personId, name, userData and persistedFaceIds of registered faces of the person). @param large_person_group_id [String] Id referencing a particular large person group. @param start [String] Starting person id to return (used to l...
[ "List", "all", "persons", "in", "a", "large", "person", "group", "and", "retrieve", "person", "information", "(", "including", "personId", "name", "userData", "and", "persistedFaceIds", "of", "registered", "faces", "of", "the", "person", ")", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_cognitiveservices_face/lib/1.0/generated/azure_cognitiveservices_face/large_person_group_person.rb#L173-L175
train
Gets a list of large person groups.
[ 30522, 13366, 2862, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 2312, 1035, 2711, 1035, 2177, 1035, 8909, 1010, 2707, 1024, 9152, 2140, 1010, 2327, 1024, 9152, 2140, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 2862, 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...
Azure/azure-sdk-for-ruby
data/azure_service_fabric/lib/6.2.0.9/generated/azure_service_fabric/service_fabric_client_apis.rb
Azure::ServiceFabric::V6_2_0_9.ServiceFabricClientAPIs.get_deployed_application_info_with_http_info
def get_deployed_application_info_with_http_info(node_name, application_id, timeout:60, include_health_state:false, custom_headers:nil) get_deployed_application_info_async(node_name, application_id, timeout:timeout, include_health_state:include_health_state, custom_headers:custom_headers).value! end
ruby
def get_deployed_application_info_with_http_info(node_name, application_id, timeout:60, include_health_state:false, custom_headers:nil) get_deployed_application_info_async(node_name, application_id, timeout:timeout, include_health_state:include_health_state, custom_headers:custom_headers).value! end
[ "def", "get_deployed_application_info_with_http_info", "(", "node_name", ",", "application_id", ",", "timeout", ":", "60", ",", "include_health_state", ":", "false", ",", "custom_headers", ":", "nil", ")", "get_deployed_application_info_async", "(", "node_name", ",", "a...
Gets the information about an application deployed on a Service Fabric node. Gets the information about an application deployed on a Service Fabric node. This query returns system application information if the application ID provided is for system application. Results encompass deployed applications in active, ac...
[ "Gets", "the", "information", "about", "an", "application", "deployed", "on", "a", "Service", "Fabric", "node", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_service_fabric/lib/6.2.0.9/generated/azure_service_fabric/service_fabric_client_apis.rb#L8616-L8618
train
Gets the information about the deployment of the application.
[ 30522, 13366, 2131, 1035, 7333, 1035, 4646, 1035, 18558, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 13045, 1035, 2171, 1010, 4646, 1035, 8909, 1010, 2051, 5833, 1024, 3438, 1010, 2421, 1035, 2740, 1035, 2110, 1024, 6270, 1010, 7661, 1035, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
aws/aws-sdk-ruby
gems/aws-sdk-rds/lib/aws-sdk-rds/resource.rb
Aws::RDS.Resource.db_cluster_parameter_groups
def db_cluster_parameter_groups(options = {}) batches = Enumerator.new do |y| batch = [] resp = @client.describe_db_cluster_parameter_groups(options) resp.data.db_cluster_parameter_groups.each do |d| batch << DBClusterParameterGroup.new( name: d.db_cluster_parameter_g...
ruby
def db_cluster_parameter_groups(options = {}) batches = Enumerator.new do |y| batch = [] resp = @client.describe_db_cluster_parameter_groups(options) resp.data.db_cluster_parameter_groups.each do |d| batch << DBClusterParameterGroup.new( name: d.db_cluster_parameter_g...
[ "def", "db_cluster_parameter_groups", "(", "options", "=", "{", "}", ")", "batches", "=", "Enumerator", ".", "new", "do", "|", "y", "|", "batch", "=", "[", "]", "resp", "=", "@client", ".", "describe_db_cluster_parameter_groups", "(", "options", ")", "resp",...
@example Request syntax with placeholder values db_cluster_parameter_groups = rds.db_cluster_parameter_groups({ db_cluster_parameter_group_name: "String", filters: [ { name: "String", # required values: ["String"], # required }, ], max_records: 1, marker: "St...
[ "@example", "Request", "syntax", "with", "placeholder", "values" ]
e28b8d320ddf7b6ee0161bdd9d00fb786d99b63d
https://github.com/aws/aws-sdk-ruby/blob/e28b8d320ddf7b6ee0161bdd9d00fb786d99b63d/gems/aws-sdk-rds/lib/aws-sdk-rds/resource.rb#L1671-L1685
train
Returns a collection of all the DB cluster parameter groups in the cluster.
[ 30522, 13366, 16962, 1035, 9324, 1035, 16381, 1035, 2967, 1006, 7047, 1027, 1063, 1065, 1007, 14108, 2229, 1027, 4372, 17897, 16259, 1012, 2047, 2079, 1064, 1061, 1064, 14108, 1027, 1031, 1033, 24501, 2361, 1027, 1030, 7396, 1012, 6235, 103...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
ffaker/ffaker
lib/ffaker/identification_mx.rb
FFaker.IdentificationMX.rfc_persona_moral
def rfc_persona_moral consonants_n_amp = CONSONANTS + ['Ñ', '&'] all_letters = consonants_n_amp + VOWELS date = ::Time.at(rand * ::Time.now.to_f).strftime('%y%m%d') "#{fetch_sample(all_letters, count: 3).join}#{date}#{fetch_sample(HOMOCLAVE, count: 3).join}" end
ruby
def rfc_persona_moral consonants_n_amp = CONSONANTS + ['Ñ', '&'] all_letters = consonants_n_amp + VOWELS date = ::Time.at(rand * ::Time.now.to_f).strftime('%y%m%d') "#{fetch_sample(all_letters, count: 3).join}#{date}#{fetch_sample(HOMOCLAVE, count: 3).join}" end
[ "def", "rfc_persona_moral", "consonants_n_amp", "=", "CONSONANTS", "+", "[", "'Ñ',", " ", "&']", "", "all_letters", "=", "consonants_n_amp", "+", "VOWELS", "date", "=", "::", "Time", ".", "at", "(", "rand", "*", "::", "Time", ".", "now", ".", "to_f", ")"...
http://es.wikipedia.org/wiki/Registro_Federal_de_Contribuyentes_(M%C3%A9xico) Registro Federal de Contribuyentes (R.F.C.) para persona moral
[ "http", ":", "//", "es", ".", "wikipedia", ".", "org", "/", "wiki", "/", "Registro_Federal_de_Contribuyentes_", "(", "M%C3%A9xico", ")", "Registro", "Federal", "de", "Contribuyentes", "(", "R", ".", "F", ".", "C", ".", ")", "para", "persona", "moral" ]
9570ac54874fec66a99b9c86401fb878f1e3e951
https://github.com/ffaker/ffaker/blob/9570ac54874fec66a99b9c86401fb878f1e3e951/lib/ffaker/identification_mx.rb#L32-L37
train
Returns a random number of words for the rfc persona or al
[ 30522, 13366, 14645, 1035, 16115, 1035, 7191, 19694, 1035, 1050, 1035, 23713, 1027, 19694, 1009, 1031, 1005, 1050, 1005, 1010, 1005, 1004, 1005, 1033, 2035, 1035, 4144, 1027, 19694, 1035, 1050, 1035, 23713, 1009, 15260, 3058, 1027, 1024, 10...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_container_registry/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/builds.rb
Azure::ContainerRegistry::Mgmt::V2018_02_01_preview.Builds.update
def update(resource_group_name, registry_name, build_id, build_update_parameters, custom_headers:nil) response = update_async(resource_group_name, registry_name, build_id, build_update_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def update(resource_group_name, registry_name, build_id, build_update_parameters, custom_headers:nil) response = update_async(resource_group_name, registry_name, build_id, build_update_parameters, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "update", "(", "resource_group_name", ",", "registry_name", ",", "build_id", ",", "build_update_parameters", ",", "custom_headers", ":", "nil", ")", "response", "=", "update_async", "(", "resource_group_name", ",", "registry_name", ",", "build_id", ",", "buil...
Patch the build properties. @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 build_id [String] The build ID. @param build_update_parameters [BuildUpdateParameters] The build update ...
[ "Patch", "the", "build", "properties", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_container_registry/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/builds.rb#L253-L256
train
Updates a build.
[ 30522, 13366, 10651, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 15584, 1035, 2171, 1010, 3857, 1035, 8909, 1010, 3857, 1035, 10651, 1035, 11709, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 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...
randym/axlsx
lib/axlsx/workbook/shared_strings_table.rb
Axlsx.SharedStringsTable.resolve
def resolve(cells) cells.each do |cell| cell_hash = cell.value if index = @unique_cells[cell_hash] cell.send :ssti=, index else cell.send :ssti=, @index @shared_xml_string << '<si>' << CellSerializer.run_xml_string(cell) << '</si>' @unique_cells[cell...
ruby
def resolve(cells) cells.each do |cell| cell_hash = cell.value if index = @unique_cells[cell_hash] cell.send :ssti=, index else cell.send :ssti=, @index @shared_xml_string << '<si>' << CellSerializer.run_xml_string(cell) << '</si>' @unique_cells[cell...
[ "def", "resolve", "(", "cells", ")", "cells", ".", "each", "do", "|", "cell", "|", "cell_hash", "=", "cell", ".", "value", "if", "index", "=", "@unique_cells", "[", "cell_hash", "]", "cell", ".", "send", ":ssti=", ",", "index", "else", "cell", ".", "...
Interate over all of the cells in the array. if our unique cells array does not contain a sharable cell, add the cell to our unique cells array and set the ssti attribute on the index of this cell in the shared strings table if a sharable cell already exists in our unique_cells array, set the ssti attribute of the c...
[ "Interate", "over", "all", "of", "the", "cells", "in", "the", "array", ".", "if", "our", "unique", "cells", "array", "does", "not", "contain", "a", "sharable", "cell", "add", "the", "cell", "to", "our", "unique", "cells", "array", "and", "set", "the", ...
c593a08b2a929dac7aa8dc418b55e26b4c49dc34
https://github.com/randym/axlsx/blob/c593a08b2a929dac7aa8dc418b55e26b4c49dc34/lib/axlsx/workbook/shared_strings_table.rb#L63-L75
train
Resolve the cells to the correct XML string.
[ 30522, 13366, 10663, 1006, 4442, 1007, 4442, 1012, 2169, 2079, 1064, 3526, 1064, 3526, 1035, 23325, 1027, 3526, 1012, 3643, 2065, 5950, 1027, 1030, 4310, 1035, 4442, 1031, 3526, 1035, 23325, 1033, 3526, 1012, 4604, 1024, 7020, 3775, 1027, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/endpoints.rb
Azure::CDN::Mgmt::V2015_06_01.Endpoints.begin_update_with_http_info
def begin_update_with_http_info(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:nil) begin_update_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:custom_headers).value! end
ruby
def begin_update_with_http_info(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:nil) begin_update_async(endpoint_name, endpoint_properties, profile_name, resource_group_name, custom_headers:custom_headers).value! end
[ "def", "begin_update_with_http_info", "(", "endpoint_name", ",", "endpoint_properties", ",", "profile_name", ",", "resource_group_name", ",", "custom_headers", ":", "nil", ")", "begin_update_async", "(", "endpoint_name", ",", "endpoint_properties", ",", "profile_name", ",...
Updates an existing CDN endpoint with the specified parameters. Only tags and OriginHostHeader can be updated after creating an endpoint. To update origins, use the Update Origin operation. To update custom domains, use the Update Custom Domain operation. @param endpoint_name [String] Name of the endpoint within t...
[ "Updates", "an", "existing", "CDN", "endpoint", "with", "the", "specified", "parameters", ".", "Only", "tags", "and", "OriginHostHeader", "can", "be", "updated", "after", "creating", "an", "endpoint", ".", "To", "update", "origins", "use", "the", "Update", "Or...
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#L857-L859
train
Updates an existing endpoint.
[ 30522, 13366, 4088, 1035, 10651, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 2203, 8400, 1035, 2171, 1010, 2203, 8400, 1035, 5144, 1010, 6337, 1035, 2171, 1010, 7692, 1035, 2177, 1035, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
github-changelog-generator/github-changelog-generator
lib/github_changelog_generator/octo_fetcher.rb
GitHubChangelogGenerator.OctoFetcher.fetch_closed_issues_and_pr
def fetch_closed_issues_and_pr print "Fetching closed issues...\r" if @options[:verbose] issues = [] page_i = 0 count_pages = calculate_pages(@client, "issues", closed_pr_options) iterate_pages(@client, "issues", closed_pr_options) do |new_issues| page_i += PER_PAGE_NUMBER ...
ruby
def fetch_closed_issues_and_pr print "Fetching closed issues...\r" if @options[:verbose] issues = [] page_i = 0 count_pages = calculate_pages(@client, "issues", closed_pr_options) iterate_pages(@client, "issues", closed_pr_options) do |new_issues| page_i += PER_PAGE_NUMBER ...
[ "def", "fetch_closed_issues_and_pr", "print", "\"Fetching closed issues...\\r\"", "if", "@options", "[", ":verbose", "]", "issues", "=", "[", "]", "page_i", "=", "0", "count_pages", "=", "calculate_pages", "(", "@client", ",", "\"issues\"", ",", "closed_pr_options", ...
This method fetch all closed issues and separate them to pull requests and pure issues (pull request is kind of issue in term of GitHub) @return [Tuple] with (issues [Array <Hash>], pull-requests [Array <Hash>])
[ "This", "method", "fetch", "all", "closed", "issues", "and", "separate", "them", "to", "pull", "requests", "and", "pure", "issues", "(", "pull", "request", "is", "kind", "of", "issue", "in", "term", "of", "GitHub", ")" ]
f18c64b5cc0d7473b059275b88385ac11ca8b564
https://github.com/github-changelog-generator/github-changelog-generator/blob/f18c64b5cc0d7473b059275b88385ac11ca8b564/lib/github_changelog_generator/octo_fetcher.rb#L141-L159
train
Fetch the closed issues and pull requests
[ 30522, 13366, 18584, 1035, 2701, 1035, 3314, 1035, 1998, 1035, 10975, 6140, 1000, 18584, 2075, 2701, 3314, 1012, 1012, 1012, 1032, 1054, 1000, 2065, 1030, 7047, 1031, 1024, 12034, 9232, 1033, 3314, 1027, 1031, 1033, 3931, 1035, 1045, 1027, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
cloudfoundry/bosh
src/bosh-director/lib/bosh/director/nats_rpc.rb
Bosh::Director.NatsRpc.subscribe_inbox
def subscribe_inbox # double-check locking to reduce synchronization if @subject_id.nil? # nats lazy-load needs to be outside the synchronized block client = nats @lock.synchronize do if @subject_id.nil? @subject_id = client.subscribe("#{@inbox_name}.>") do |mes...
ruby
def subscribe_inbox # double-check locking to reduce synchronization if @subject_id.nil? # nats lazy-load needs to be outside the synchronized block client = nats @lock.synchronize do if @subject_id.nil? @subject_id = client.subscribe("#{@inbox_name}.>") do |mes...
[ "def", "subscribe_inbox", "# double-check locking to reduce synchronization", "if", "@subject_id", ".", "nil?", "# nats lazy-load needs to be outside the synchronized block", "client", "=", "nats", "@lock", ".", "synchronize", "do", "if", "@subject_id", ".", "nil?", "@subject_i...
subscribe to an inbox, if not already subscribed
[ "subscribe", "to", "an", "inbox", "if", "not", "already", "subscribed" ]
2eaa7100879ddd20cd909cd698514746195e28b7
https://github.com/cloudfoundry/bosh/blob/2eaa7100879ddd20cd909cd698514746195e28b7/src/bosh-director/lib/bosh/director/nats_rpc.rb#L114-L128
train
Subscribe to the inbox
[ 30522, 13366, 4942, 29234, 1035, 1999, 8758, 1001, 3313, 1011, 4638, 14889, 2000, 5547, 26351, 8093, 10698, 9276, 2065, 1030, 3395, 1035, 8909, 1012, 9152, 2140, 1029, 1001, 14085, 2015, 13971, 1011, 7170, 3791, 2000, 2022, 2648, 1996, 2554...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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/stylesheet/styles.rb
Axlsx.Styles.load_default_styles
def load_default_styles @numFmts = SimpleTypedList.new NumFmt, 'numFmts' @numFmts << NumFmt.new(:numFmtId => NUM_FMT_YYYYMMDD, :formatCode=> "yyyy/mm/dd") @numFmts << NumFmt.new(:numFmtId => NUM_FMT_YYYYMMDDHHMMSS, :formatCode=> "yyyy/mm/dd hh:mm:ss") @numFmts.lock @fonts = SimpleTypedLi...
ruby
def load_default_styles @numFmts = SimpleTypedList.new NumFmt, 'numFmts' @numFmts << NumFmt.new(:numFmtId => NUM_FMT_YYYYMMDD, :formatCode=> "yyyy/mm/dd") @numFmts << NumFmt.new(:numFmtId => NUM_FMT_YYYYMMDDHHMMSS, :formatCode=> "yyyy/mm/dd hh:mm:ss") @numFmts.lock @fonts = SimpleTypedLi...
[ "def", "load_default_styles", "@numFmts", "=", "SimpleTypedList", ".", "new", "NumFmt", ",", "'numFmts'", "@numFmts", "<<", "NumFmt", ".", "new", "(", ":numFmtId", "=>", "NUM_FMT_YYYYMMDD", ",", ":formatCode", "=>", "\"yyyy/mm/dd\"", ")", "@numFmts", "<<", "NumFmt...
Creates the default set of styles the exel requires to be valid as well as setting up the Axlsx::STYLE_THIN_BORDER
[ "Creates", "the", "default", "set", "of", "styles", "the", "exel", "requires", "to", "be", "valid", "as", "well", "as", "setting", "up", "the", "Axlsx", "::", "STYLE_THIN_BORDER" ]
c593a08b2a929dac7aa8dc418b55e26b4c49dc34
https://github.com/randym/axlsx/blob/c593a08b2a929dac7aa8dc418b55e26b4c49dc34/lib/axlsx/stylesheet/styles.rb#L375-L417
train
Load default styles
[ 30522, 13366, 7170, 1035, 12398, 1035, 6782, 1030, 16371, 2213, 16715, 3215, 30524, 2923, 1012, 2047, 16371, 2213, 16715, 2102, 1010, 1005, 16371, 2213, 16715, 3215, 1005, 1030, 16371, 2213, 16715, 3215, 1026, 1026, 16371, 2213, 16715, 2102, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
appium/ruby_lib
lib/appium_lib/driver.rb
Appium.Driver.appium_server_version
def appium_server_version @core.appium_server_version rescue Selenium::WebDriver::Error::WebDriverError => ex raise ::Appium::Core::Error::ServerError unless ex.message.include?('content-type=""') # server (TestObject for instance) does not respond to status call {} end
ruby
def appium_server_version @core.appium_server_version rescue Selenium::WebDriver::Error::WebDriverError => ex raise ::Appium::Core::Error::ServerError unless ex.message.include?('content-type=""') # server (TestObject for instance) does not respond to status call {} end
[ "def", "appium_server_version", "@core", ".", "appium_server_version", "rescue", "Selenium", "::", "WebDriver", "::", "Error", "::", "WebDriverError", "=>", "ex", "raise", "::", "Appium", "::", "Core", "::", "Error", "::", "ServerError", "unless", "ex", ".", "me...
Returns the server's version info @example { "build" => { "version" => "0.18.1", "revision" => "d242ebcfd92046a974347ccc3a28f0e898595198" } } @return [Hash]
[ "Returns", "the", "server", "s", "version", "info" ]
1f5898400dd1928bfe42ddd5f842d1f8738f2f76
https://github.com/appium/ruby_lib/blob/1f5898400dd1928bfe42ddd5f842d1f8738f2f76/lib/appium_lib/driver.rb#L375-L382
train
Returns the version number of the server
[ 30522, 13366, 10439, 5007, 1035, 8241, 1035, 2544, 1030, 4563, 1012, 10439, 5007, 1035, 8241, 1035, 2544, 5343, 7367, 7770, 5007, 1024, 1024, 4773, 23663, 2099, 1024, 1024, 7561, 1024, 1024, 4773, 23663, 14544, 29165, 1027, 1028, 4654, 5333...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
mojombo/chronic
lib/chronic/handlers.rb
Chronic.Handlers.handle_sy_sm_sd
def handle_sy_sm_sd(tokens, options) new_tokens = [tokens[1], tokens[2], tokens[0]] time_tokens = tokens.last(tokens.size - 3) handle_sm_sd_sy(new_tokens + time_tokens, options) end
ruby
def handle_sy_sm_sd(tokens, options) new_tokens = [tokens[1], tokens[2], tokens[0]] time_tokens = tokens.last(tokens.size - 3) handle_sm_sd_sy(new_tokens + time_tokens, options) end
[ "def", "handle_sy_sm_sd", "(", "tokens", ",", "options", ")", "new_tokens", "=", "[", "tokens", "[", "1", "]", ",", "tokens", "[", "2", "]", ",", "tokens", "[", "0", "]", "]", "time_tokens", "=", "tokens", ".", "last", "(", "tokens", ".", "size", "...
Handle scalar-year/scalar-month/scalar-day
[ "Handle", "scalar", "-", "year", "/", "scalar", "-", "month", "/", "scalar", "-", "day" ]
2b1eae7ec440d767c09e0b1a7f0e9bcf30ce1d6c
https://github.com/mojombo/chronic/blob/2b1eae7ec440d767c09e0b1a7f0e9bcf30ce1d6c/lib/chronic/handlers.rb#L238-L242
train
Handle the S - S - S - S - S - S - S - S - S - S - S - S - S - S - S - S - S - S - S - S - S - S - S - S - S - S - S - S - S - S - S - S - S - S - S - S - S - S - S - S - S - S - S - S - S - S - S - S -
[ 30522, 13366, 5047, 1035, 25353, 1035, 15488, 1035, 17371, 1006, 19204, 2015, 1010, 7047, 1007, 2047, 1035, 19204, 2015, 1027, 1031, 19204, 2015, 1031, 1015, 1033, 1010, 19204, 2015, 1031, 1016, 1033, 1010, 19204, 2015, 1031, 1014, 1033, 10...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_labservices/lib/2018-10-15/generated/azure_mgmt_labservices/lab_accounts.rb
Azure::Labservices::Mgmt::V2018_10_15.LabAccounts.update_with_http_info
def update_with_http_info(resource_group_name, lab_account_name, lab_account, custom_headers:nil) update_async(resource_group_name, lab_account_name, lab_account, custom_headers:custom_headers).value! end
ruby
def update_with_http_info(resource_group_name, lab_account_name, lab_account, custom_headers:nil) update_async(resource_group_name, lab_account_name, lab_account, custom_headers:custom_headers).value! end
[ "def", "update_with_http_info", "(", "resource_group_name", ",", "lab_account_name", ",", "lab_account", ",", "custom_headers", ":", "nil", ")", "update_async", "(", "resource_group_name", ",", "lab_account_name", ",", "lab_account", ",", "custom_headers", ":custom_header...
Modify properties of lab accounts. @param resource_group_name [String] The name of the resource group. @param lab_account_name [String] The name of the lab Account. @param lab_account [LabAccountFragment] Represents a lab account. @param custom_headers [Hash{String => String}] A hash of custom headers that will b...
[ "Modify", "properties", "of", "lab", "accounts", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_labservices/lib/2018-10-15/generated/azure_mgmt_labservices/lab_accounts.rb#L514-L516
train
Updates a lab account s index.
[ 30522, 13366, 10651, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 6845, 1035, 4070, 1035, 2171, 1010, 6845, 1035, 4070, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 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_cognitiveservices_face/lib/1.0/generated/azure_cognitiveservices_face/person_group_person.rb
Azure::CognitiveServices::Face::V1_0.PersonGroupPerson.get_face
def get_face(person_group_id, person_id, persisted_face_id, custom_headers:nil) response = get_face_async(person_group_id, person_id, persisted_face_id, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def get_face(person_group_id, person_id, persisted_face_id, custom_headers:nil) response = get_face_async(person_group_id, person_id, persisted_face_id, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "get_face", "(", "person_group_id", ",", "person_id", ",", "persisted_face_id", ",", "custom_headers", ":", "nil", ")", "response", "=", "get_face_async", "(", "person_group_id", ",", "person_id", ",", "persisted_face_id", ",", "custom_headers", ":custom_header...
Retrieve information about a persisted face (specified by persistedFaceId, personId and its belonging personGroupId). @param person_group_id [String] Id referencing a particular person group. @param person_id Id referencing a particular person. @param persisted_face_id Id referencing a particular persistedFaceId o...
[ "Retrieve", "information", "about", "a", "persisted", "face", "(", "specified", "by", "persistedFaceId", "personId", "and", "its", "belonging", "personGroupId", ")", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_cognitiveservices_face/lib/1.0/generated/azure_cognitiveservices_face/person_group_person.rb#L647-L650
train
Gets the persisted face.
[ 30522, 13366, 2131, 1035, 2227, 1006, 2711, 1035, 2177, 1035, 8909, 1010, 2711, 1035, 8909, 1010, 19035, 1035, 2227, 1035, 8909, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 2131, 1035, 2227, 1035, 2004, 6038, 2278, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_reservations/lib/2019-04-01-preview/generated/azure_mgmt_reservations/reservation_order.rb
Azure::Reservations::Mgmt::V2019_04_01_preview.ReservationOrder.purchase
def purchase(reservation_order_id, body, custom_headers:nil) response = purchase_async(reservation_order_id, body, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def purchase(reservation_order_id, body, custom_headers:nil) response = purchase_async(reservation_order_id, body, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "purchase", "(", "reservation_order_id", ",", "body", ",", "custom_headers", ":", "nil", ")", "response", "=", "purchase_async", "(", "reservation_order_id", ",", "body", ",", "custom_headers", ":custom_headers", ")", ".", "value!", "response", ".", "body",...
Purchase `ReservationOrder` Purchase `ReservationOrder` and create resource under the specified URI. @param reservation_order_id [String] Order Id of the reservation @param body [PurchaseRequest] Information needed for calculate or purchase reservation @param custom_headers [Hash{String => String}] A hash of cus...
[ "Purchase", "ReservationOrder" ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_reservations/lib/2019-04-01-preview/generated/azure_mgmt_reservations/reservation_order.rb#L230-L233
train
Purges a reservation order.
[ 30522, 13366, 5309, 1006, 11079, 1035, 2344, 1035, 8909, 1010, 2303, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 5309, 1035, 2004, 6038, 2278, 1006, 11079, 1035, 2344, 1035, 8909, 1010, 2303, 1010, 7661, 1035, 20346, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_locks/lib/2015-01-01/generated/azure_mgmt_locks/management_locks.rb
Azure::Locks::Mgmt::V2015_01_01.ManagementLocks.list_at_resource_group_level_with_http_info
def list_at_resource_group_level_with_http_info(resource_group_name, filter:nil, custom_headers:nil) list_at_resource_group_level_async(resource_group_name, filter:filter, custom_headers:custom_headers).value! end
ruby
def list_at_resource_group_level_with_http_info(resource_group_name, filter:nil, custom_headers:nil) list_at_resource_group_level_async(resource_group_name, filter:filter, custom_headers:custom_headers).value! end
[ "def", "list_at_resource_group_level_with_http_info", "(", "resource_group_name", ",", "filter", ":", "nil", ",", "custom_headers", ":", "nil", ")", "list_at_resource_group_level_async", "(", "resource_group_name", ",", "filter", ":", "filter", ",", "custom_headers", ":cu...
Gets all the management locks of a resource group. @param resource_group_name [String] Resource group name. @param filter [String] The filter to apply on the operation. @param custom_headers [Hash{String => String}] A hash of custom headers that will be added to the HTTP request. @return [MsRestAzure::AzureOpera...
[ "Gets", "all", "the", "management", "locks", "of", "a", "resource", "group", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_locks/lib/2015-01-01/generated/azure_mgmt_locks/management_locks.rb#L858-L860
train
Gets the list of the advisors in a resource group.
[ 30522, 13366, 2862, 1035, 2012, 1035, 7692, 1035, 2177, 1035, 2504, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 11307, 1024, 9152, 2140, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 2862, 1035, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
aws/aws-sdk-ruby
gems/aws-sdk-s3/lib/aws-sdk-s3/bucket_request_payment.rb
Aws::S3.BucketRequestPayment.put
def put(options = {}) options = options.merge(bucket: @bucket_name) resp = @client.put_bucket_request_payment(options) resp.data end
ruby
def put(options = {}) options = options.merge(bucket: @bucket_name) resp = @client.put_bucket_request_payment(options) resp.data end
[ "def", "put", "(", "options", "=", "{", "}", ")", "options", "=", "options", ".", "merge", "(", "bucket", ":", "@bucket_name", ")", "resp", "=", "@client", ".", "put_bucket_request_payment", "(", "options", ")", "resp", ".", "data", "end" ]
@!group Actions @example Request syntax with placeholder values bucket_request_payment.put({ content_md5: "ContentMD5", request_payment_configuration: { # required payer: "Requester", # required, accepts Requester, BucketOwner }, }) @param [Hash] options ({}) @option options [String] :co...
[ "@!group", "Actions", "@example", "Request", "syntax", "with", "placeholder", "values" ]
e28b8d320ddf7b6ee0161bdd9d00fb786d99b63d
https://github.com/aws/aws-sdk-ruby/blob/e28b8d320ddf7b6ee0161bdd9d00fb786d99b63d/gems/aws-sdk-s3/lib/aws-sdk-s3/bucket_request_payment.rb#L183-L187
train
Put a payment to the bucket
[ 30522, 13366, 2404, 1006, 7047, 1027, 1063, 1065, 1007, 7047, 1027, 7047, 1012, 13590, 1006, 13610, 1024, 1030, 13610, 1035, 2171, 1007, 24501, 2361, 1027, 1030, 7396, 1012, 2404, 1035, 13610, 1035, 5227, 1035, 7909, 1006, 7047, 1007, 24501...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
plaid/plaid-ruby
lib/plaid/products/sandbox.rb
Plaid.SandboxPublicToken.create
def create(institution_id:, initial_products:, webhook: nil, options: nil) options_payload = {} options_payload[:webhook] = webhook unless webhook.nil? options_payload = options_payload.merge(options) unless options.nil? post_with_public_key 'sandbo...
ruby
def create(institution_id:, initial_products:, webhook: nil, options: nil) options_payload = {} options_payload[:webhook] = webhook unless webhook.nil? options_payload = options_payload.merge(options) unless options.nil? post_with_public_key 'sandbo...
[ "def", "create", "(", "institution_id", ":", ",", "initial_products", ":", ",", "webhook", ":", "nil", ",", "options", ":", "nil", ")", "options_payload", "=", "{", "}", "options_payload", "[", ":webhook", "]", "=", "webhook", "unless", "webhook", ".", "ni...
Public: Creates a public token for sandbox testing. Does a POST /sandbox/public_token/create call which can be used to generate a public_token given an institution and list of products. institution_id - Specific institution id to generate token for. initial_products - Products for which generated token is vali...
[ "Public", ":", "Creates", "a", "public", "token", "for", "sandbox", "testing", "." ]
ce3da1c5559c739de88c5f59e54eef875f296673
https://github.com/plaid/plaid-ruby/blob/ce3da1c5559c739de88c5f59e54eef875f296673/lib/plaid/products/sandbox.rb#L63-L77
train
Create a new Sandbox
[ 30522, 13366, 3443, 1006, 5145, 1035, 8909, 1024, 1010, 3988, 1035, 3688, 1024, 1010, 4773, 6806, 6559, 1024, 9152, 2140, 1010, 7047, 1024, 9152, 2140, 1007, 7047, 1035, 18093, 1027, 1063, 1065, 7047, 1035, 18093, 1031, 1024, 4773, 6806, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
daddyz/phonelib
lib/phonelib/data_importer_helper.rb
Phonelib.DataImporterHelper.main_from_xml
def main_from_xml(file) xml_data = File.read(file) xml_data.force_encoding('utf-8') doc = Nokogiri::XML(xml_data) doc.elements.first.elements.first end
ruby
def main_from_xml(file) xml_data = File.read(file) xml_data.force_encoding('utf-8') doc = Nokogiri::XML(xml_data) doc.elements.first.elements.first end
[ "def", "main_from_xml", "(", "file", ")", "xml_data", "=", "File", ".", "read", "(", "file", ")", "xml_data", ".", "force_encoding", "(", "'utf-8'", ")", "doc", "=", "Nokogiri", "::", "XML", "(", "xml_data", ")", "doc", ".", "elements", ".", "first", "...
get main body from parsed xml document
[ "get", "main", "body", "from", "parsed", "xml", "document" ]
aa0023eab7c896b71275bf342bc7f49735cbdbbf
https://github.com/daddyz/phonelib/blob/aa0023eab7c896b71275bf342bc7f49735cbdbbf/lib/phonelib/data_importer_helper.rb#L110-L116
train
Reads the main element from a xml file
[ 30522, 13366, 2364, 1035, 2013, 1035, 20950, 1006, 5371, 1007, 20950, 1035, 2951, 1027, 5371, 1012, 3191, 1006, 5371, 1007, 20950, 1035, 2951, 1012, 2486, 1035, 17181, 1006, 1005, 21183, 2546, 1011, 1022, 1005, 1007, 9986, 1027, 2053, 3683,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/virtual_network_gateways.rb
Azure::Network::Mgmt::V2016_12_01.VirtualNetworkGateways.generatevpnclientpackage
def generatevpnclientpackage(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) response = generatevpnclientpackage_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def generatevpnclientpackage(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:nil) response = generatevpnclientpackage_async(resource_group_name, virtual_network_gateway_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "generatevpnclientpackage", "(", "resource_group_name", ",", "virtual_network_gateway_name", ",", "parameters", ",", "custom_headers", ":", "nil", ")", "response", "=", "generatevpnclientpackage_async", "(", "resource_group_name", ",", "virtual_network_gateway_name", "...
Generates VPN client package for P2S client of the virtual network gateway in the specified resource group. @param resource_group_name [String] The name of the resource group. @param virtual_network_gateway_name [String] The name of the virtual network gateway. @param parameters [VpnClientParameters] Parameters s...
[ "Generates", "VPN", "client", "package", "for", "P2S", "client", "of", "the", "virtual", "network", "gateway", "in", "the", "specified", "resource", "group", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/virtual_network_gateways.rb#L358-L361
train
Generates a VPN client package for P2S client.
[ 30522, 13366, 9699, 2615, 2361, 12273, 8751, 3372, 23947, 4270, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 7484, 1035, 2897, 1035, 11909, 1035, 2171, 1010, 11709, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 9699, 2615,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_consumption/lib/2018-06-30/generated/azure_mgmt_consumption/usage_details.rb
Azure::Consumption::Mgmt::V2018_06_30.UsageDetails.list_for_billing_period_by_billing_account
def list_for_billing_period_by_billing_account(billing_account_id, billing_period_name, expand:nil, filter:nil, skiptoken:nil, top:nil, query_options:nil, custom_headers:nil) first_page = list_for_billing_period_by_billing_account_as_lazy(billing_account_id, billing_period_name, expand:expand, filter:filter, skip...
ruby
def list_for_billing_period_by_billing_account(billing_account_id, billing_period_name, expand:nil, filter:nil, skiptoken:nil, top:nil, query_options:nil, custom_headers:nil) first_page = list_for_billing_period_by_billing_account_as_lazy(billing_account_id, billing_period_name, expand:expand, filter:filter, skip...
[ "def", "list_for_billing_period_by_billing_account", "(", "billing_account_id", ",", "billing_period_name", ",", "expand", ":", "nil", ",", "filter", ":", "nil", ",", "skiptoken", ":", "nil", ",", "top", ":", "nil", ",", "query_options", ":", "nil", ",", "custom...
Lists the usage details based on billingAccountId for a scope by billing period. Usage details are available via this API only for May 1, 2014 or later. @param billing_account_id [String] BillingAccount ID @param billing_period_name [String] Billing Period Name. @param expand [String] May be used to expand the p...
[ "Lists", "the", "usage", "details", "based", "on", "billingAccountId", "for", "a", "scope", "by", "billing", "period", ".", "Usage", "details", "are", "available", "via", "this", "API", "only", "for", "May", "1", "2014", "or", "later", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_consumption/lib/2018-06-30/generated/azure_mgmt_consumption/usage_details.rb#L496-L499
train
Gets all the artifacts under the billing period.
[ 30522, 13366, 2862, 1035, 2005, 1035, 25640, 1035, 2558, 1035, 2011, 1035, 25640, 1035, 4070, 1006, 25640, 1035, 4070, 1035, 8909, 1010, 25640, 1035, 2558, 1035, 2171, 1010, 7818, 1024, 9152, 2140, 1010, 11307, 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...
sds/haml-lint
lib/haml_lint/linter.rb
HamlLint.Linter.run
def run(document) @document = document @lints = [] visit(document.tree) @lints rescue Parser::SyntaxError => e location = e.diagnostic.location @lints << HamlLint::Lint.new( HamlLint::Linter::Syntax.new(config), document.file, location.line, ...
ruby
def run(document) @document = document @lints = [] visit(document.tree) @lints rescue Parser::SyntaxError => e location = e.diagnostic.location @lints << HamlLint::Lint.new( HamlLint::Linter::Syntax.new(config), document.file, location.line, ...
[ "def", "run", "(", "document", ")", "@document", "=", "document", "@lints", "=", "[", "]", "visit", "(", "document", ".", "tree", ")", "@lints", "rescue", "Parser", "::", "SyntaxError", "=>", "e", "location", "=", "e", ".", "diagnostic", ".", "location",...
Initializes a linter with the specified configuration. @param config [Hash] configuration for this linter Runs the linter against the given Haml document. @param document [HamlLint::Document]
[ "Initializes", "a", "linter", "with", "the", "specified", "configuration", "." ]
024c773667e54cf88db938c2b368977005d70ee8
https://github.com/sds/haml-lint/blob/024c773667e54cf88db938c2b368977005d70ee8/lib/haml_lint/linter.rb#L27-L42
train
Runs the linting process.
[ 30522, 13366, 2448, 1006, 6254, 1007, 1030, 6254, 1027, 6254, 1030, 11409, 3215, 1027, 1031, 1033, 3942, 1006, 6254, 1012, 3392, 1007, 1030, 11409, 3215, 5343, 11968, 8043, 1024, 1024, 20231, 2121, 29165, 1027, 1028, 1041, 3295, 1027, 1041,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_machine_learning/lib/2017-01-01/generated/azure_mgmt_machine_learning/web_services.rb
Azure::MachineLearning::Mgmt::V2017_01_01.WebServices.remove_async
def remove_async(resource_group_name, web_service_name, custom_headers:nil) # Send request promise = begin_remove_async(resource_group_name, web_service_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. deserialize_method = la...
ruby
def remove_async(resource_group_name, web_service_name, custom_headers:nil) # Send request promise = begin_remove_async(resource_group_name, web_service_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. deserialize_method = la...
[ "def", "remove_async", "(", "resource_group_name", ",", "web_service_name", ",", "custom_headers", ":", "nil", ")", "# Send request", "promise", "=", "begin_remove_async", "(", "resource_group_name", ",", "web_service_name", ",", "custom_headers", ":custom_headers", ")", ...
@param resource_group_name [String] Name of the resource group in which the web service is located. @param web_service_name [String] The name of the web service. @param custom_headers [Hash{String => String}] A hash of custom headers that will be added to the HTTP request. @return [Concurrent::Promise] promise wh...
[ "@param", "resource_group_name", "[", "String", "]", "Name", "of", "the", "resource", "group", "in", "which", "the", "web", "service", "is", "located", ".", "@param", "web_service_name", "[", "String", "]", "The", "name", "of", "the", "web", "service", ".", ...
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_machine_learning/lib/2017-01-01/generated/azure_mgmt_machine_learning/web_services.rb#L264-L278
train
Remove a web service from the specified resource group.
[ 30522, 13366, 6366, 1035, 2004, 6038, 2278, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 4773, 1035, 2326, 1035, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 1001, 4604, 5227, 4872, 1027, 4088, 1035, 6366, 1035, 2004, 6038, 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...
jekyll/jekyll
lib/jekyll/cache.rb
Jekyll.Cache.path_to
def path_to(hash = nil) @base_dir ||= File.join(Jekyll::Cache.cache_dir, @name) return @base_dir if hash.nil? File.join(@base_dir, hash[0..1], hash[2..-1]).freeze end
ruby
def path_to(hash = nil) @base_dir ||= File.join(Jekyll::Cache.cache_dir, @name) return @base_dir if hash.nil? File.join(@base_dir, hash[0..1], hash[2..-1]).freeze end
[ "def", "path_to", "(", "hash", "=", "nil", ")", "@base_dir", "||=", "File", ".", "join", "(", "Jekyll", "::", "Cache", ".", "cache_dir", ",", "@name", ")", "return", "@base_dir", "if", "hash", ".", "nil?", "File", ".", "join", "(", "@base_dir", ",", ...
Given a hashed key, return the path to where this item would be saved on disk.
[ "Given", "a", "hashed", "key", "return", "the", "path", "to", "where", "this", "item", "would", "be", "saved", "on", "disk", "." ]
fd74fe3e93a1fb506fa6621a2e271d7b9c5c3e3b
https://github.com/jekyll/jekyll/blob/fd74fe3e93a1fb506fa6621a2e271d7b9c5c3e3b/lib/jekyll/cache.rb#L145-L150
train
Returns the path to the cache file.
[ 30522, 13366, 4130, 1035, 2000, 1006, 23325, 1027, 9152, 2140, 1007, 1030, 2918, 1035, 16101, 1064, 1064, 1027, 5371, 1012, 3693, 1006, 15333, 4801, 3363, 1024, 1024, 17053, 1012, 17053, 1035, 16101, 1010, 1030, 2171, 1007, 2709, 1030, 2918...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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/resource_health_metadata_operations.rb
Azure::Web::Mgmt::V2018_02_01.ResourceHealthMetadataOperations.get_by_site_slot
def get_by_site_slot(resource_group_name, name, slot, custom_headers:nil) response = get_by_site_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def get_by_site_slot(resource_group_name, name, slot, custom_headers:nil) response = get_by_site_slot_async(resource_group_name, name, slot, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "get_by_site_slot", "(", "resource_group_name", ",", "name", ",", "slot", ",", "custom_headers", ":", "nil", ")", "response", "=", "get_by_site_slot_async", "(", "resource_group_name", ",", "name", ",", "slot", ",", "custom_headers", ":custom_headers", ")", ...
Gets the category of ResourceHealthMetadata to use for the given site Gets the category of ResourceHealthMetadata to use for the given site @param resource_group_name [String] Name of the resource group to which the resource belongs. @param name [String] Name of web app @param slot [String] Name of web app slot....
[ "Gets", "the", "category", "of", "ResourceHealthMetadata", "to", "use", "for", "the", "given", "site" ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_web/lib/2018-02-01/generated/azure_mgmt_web/resource_health_metadata_operations.rb#L566-L569
train
Gets the index of a given CDN site.
[ 30522, 13366, 2131, 1035, 2011, 1035, 2609, 1035, 10453, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 2171, 1010, 10453, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 30524, 2171, 1010, 10453, 1010, 7661, 1035, 20346, 2015, 1024, 7661, 1035...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_event_grid/lib/2018-01-01/generated/azure_mgmt_event_grid/event_subscriptions.rb
Azure::EventGrid::Mgmt::V2018_01_01.EventSubscriptions.get_full_url
def get_full_url(scope, event_subscription_name, custom_headers:nil) response = get_full_url_async(scope, event_subscription_name, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def get_full_url(scope, event_subscription_name, custom_headers:nil) response = get_full_url_async(scope, event_subscription_name, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "get_full_url", "(", "scope", ",", "event_subscription_name", ",", "custom_headers", ":", "nil", ")", "response", "=", "get_full_url_async", "(", "scope", ",", "event_subscription_name", ",", "custom_headers", ":custom_headers", ")", ".", "value!", "response", ...
Get full URL of an event subscription Get the full endpoint URL for an event subscription @param scope [String] The scope of the event subscription. The scope can be a subscription, or a resource group, or a top level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use '/...
[ "Get", "full", "URL", "of", "an", "event", "subscription" ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_event_grid/lib/2018-01-01/generated/azure_mgmt_event_grid/event_subscriptions.rb#L369-L372
train
Gets the full URL of the specified event subscription.
[ 30522, 13366, 2131, 1035, 2440, 1035, 24471, 2140, 1006, 9531, 1010, 2724, 1035, 15002, 1035, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 2131, 1035, 2440, 1035, 24471, 2140, 1035, 2004, 6038, 2278, 1006, 9531, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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.apply
def apply(snapshot_id, object_id, mode:nil, custom_headers:nil) response = apply_async(snapshot_id, object_id, mode:mode, custom_headers:custom_headers).value! nil end
ruby
def apply(snapshot_id, object_id, mode:nil, custom_headers:nil) response = apply_async(snapshot_id, object_id, mode:mode, custom_headers:custom_headers).value! nil end
[ "def", "apply", "(", "snapshot_id", ",", "object_id", ",", "mode", ":", "nil", ",", "custom_headers", ":", "nil", ")", "response", "=", "apply_async", "(", "snapshot_id", ",", "object_id", ",", "mode", ":", "mode", ",", "custom_headers", ":custom_headers", "...
Submit an operation to apply a snapshot to current subscription. For each snapshot, only subscriptions included in the applyScope of Snapshot - Take can apply it.<br /> The snapshot interfaces are for users to backup and restore their face data from one face subscription to another, inside same region or across reg...
[ "Submit", "an", "operation", "to", "apply", "a", "snapshot", "to", "current", "subscription", ".", "For", "each", "snapshot", "only", "subscriptions", "included", "in", "the", "applyScope", "of", "Snapshot", "-", "Take", "can", "apply", "it", ".", "<br", "/"...
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#L711-L714
train
Apply a snapshot to an object.
[ 30522, 13366, 6611, 1006, 20057, 12326, 1035, 8909, 1010, 4874, 1035, 8909, 1010, 5549, 1024, 9152, 2140, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 6611, 1035, 2004, 6038, 2278, 1006, 20057, 12326, 1035, 8909, 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_sqlvirtualmachine/lib/2017-03-01-preview/generated/azure_mgmt_sqlvirtualmachine/availability_group_listeners.rb
Azure::Sqlvirtualmachine::Mgmt::V2017_03_01_preview.AvailabilityGroupListeners.begin_delete_with_http_info
def begin_delete_with_http_info(resource_group_name, sql_virtual_machine_group_name, availability_group_listener_name, custom_headers:nil) begin_delete_async(resource_group_name, sql_virtual_machine_group_name, availability_group_listener_name, custom_headers:custom_headers).value! end
ruby
def begin_delete_with_http_info(resource_group_name, sql_virtual_machine_group_name, availability_group_listener_name, custom_headers:nil) begin_delete_async(resource_group_name, sql_virtual_machine_group_name, availability_group_listener_name, custom_headers:custom_headers).value! end
[ "def", "begin_delete_with_http_info", "(", "resource_group_name", ",", "sql_virtual_machine_group_name", ",", "availability_group_listener_name", ",", "custom_headers", ":", "nil", ")", "begin_delete_async", "(", "resource_group_name", ",", "sql_virtual_machine_group_name", ",", ...
Deletes an availability group listener. @param resource_group_name [String] Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. @param sql_virtual_machine_group_name [String] Name of the SQL virtual machine group. @param availability...
[ "Deletes", "an", "availability", "group", "listener", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_sqlvirtualmachine/lib/2017-03-01-preview/generated/azure_mgmt_sqlvirtualmachine/availability_group_listeners.rb#L507-L509
train
Deletes an availability group listener from a SQL virtual machine group.
[ 30522, 13366, 4088, 1035, 3972, 12870, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 29296, 1035, 7484, 1035, 3698, 1035, 2177, 1035, 2171, 1010, 11343, 1035, 2177, 1035, 19373, 1035, 2171, 1010, 7661, 1035,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
backup/backup
lib/backup/model.rb
Backup.Model.store_with
def store_with(name, storage_id = nil, &block) @storages << get_class_from_scope(Storage, name) .new(self, storage_id, &block) end
ruby
def store_with(name, storage_id = nil, &block) @storages << get_class_from_scope(Storage, name) .new(self, storage_id, &block) end
[ "def", "store_with", "(", "name", ",", "storage_id", "=", "nil", ",", "&", "block", ")", "@storages", "<<", "get_class_from_scope", "(", "Storage", ",", "name", ")", ".", "new", "(", "self", ",", "storage_id", ",", "block", ")", "end" ]
Adds an Storage. Multiple Storages may be added to the model.
[ "Adds", "an", "Storage", ".", "Multiple", "Storages", "may", "be", "added", "to", "the", "model", "." ]
64370f925e859f858766b674717a3dbee0de7a26
https://github.com/backup/backup/blob/64370f925e859f858766b674717a3dbee0de7a26/lib/backup/model.rb#L149-L152
train
Stores a new object in the storage.
[ 30522, 13366, 3573, 1035, 2007, 1006, 2171, 1010, 5527, 1035, 8909, 1027, 9152, 2140, 1010, 1004, 3796, 1007, 1030, 5527, 2015, 1026, 1026, 2131, 1035, 2465, 1035, 2013, 1035, 9531, 1006, 5527, 1010, 2171, 1007, 1012, 2047, 1006, 2969, 10...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/custom_domains.rb
Azure::CDN::Mgmt::V2015_06_01.CustomDomains.update
def update(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil) response = update_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! response.body unless re...
ruby
def update(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers:nil) response = update_async(custom_domain_name, custom_domain_properties, endpoint_name, profile_name, resource_group_name, custom_headers:custom_headers).value! response.body unless re...
[ "def", "update", "(", "custom_domain_name", ",", "custom_domain_properties", ",", "endpoint_name", ",", "profile_name", ",", "resource_group_name", ",", "custom_headers", ":", "nil", ")", "response", "=", "update_async", "(", "custom_domain_name", ",", "custom_domain_pr...
Updates an existing CDN custom domain within an endpoint. @param custom_domain_name [String] Name of the custom domain within an endpoint. @param custom_domain_properties [CustomDomainParameters] Custom domain properties to update. @param endpoint_name [String] Name of the endpoint within the CDN profile. @param...
[ "Updates", "an", "existing", "CDN", "custom", "domain", "within", "an", "endpoint", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_cdn/lib/2015-06-01/generated/azure_mgmt_cdn/custom_domains.rb#L311-L314
train
Updates a domain.
[ 30522, 13366, 10651, 1006, 7661, 1035, 5884, 1035, 2171, 1010, 7661, 1035, 5884, 1035, 5144, 1010, 2203, 8400, 1035, 2171, 1010, 6337, 1035, 2171, 1010, 7692, 1035, 2177, 1035, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
librariesio/bibliothecary
lib/bibliothecary/runner.rb
Bibliothecary.Runner.identify_manifests
def identify_manifests(file_list) ignored_dirs_with_slash = ignored_dirs.map { |d| if d.end_with?("/") then d else d + "/" end } allowed_file_list = file_list.reject do |f| ignored_dirs.include?(f) || f.start_with?(*ignored_dirs_with_slash) end allowed_file_list = allowed_file_list.rejec...
ruby
def identify_manifests(file_list) ignored_dirs_with_slash = ignored_dirs.map { |d| if d.end_with?("/") then d else d + "/" end } allowed_file_list = file_list.reject do |f| ignored_dirs.include?(f) || f.start_with?(*ignored_dirs_with_slash) end allowed_file_list = allowed_file_list.rejec...
[ "def", "identify_manifests", "(", "file_list", ")", "ignored_dirs_with_slash", "=", "ignored_dirs", ".", "map", "{", "|", "d", "|", "if", "d", ".", "end_with?", "(", "\"/\"", ")", "then", "d", "else", "d", "+", "\"/\"", "end", "}", "allowed_file_list", "="...
this skips manifests sometimes because it doesn't look at file contents and can't establish from only regexes that the thing is a manifest. We exclude rather than include ambiguous filenames because this API is used by libraries.io and we don't want to download all .xml files from GitHub.
[ "this", "skips", "manifests", "sometimes", "because", "it", "doesn", "t", "look", "at", "file", "contents", "and", "can", "t", "establish", "from", "only", "regexes", "that", "the", "thing", "is", "a", "manifest", ".", "We", "exclude", "rather", "than", "i...
c446640356d5d57ceebfd27327aecd1ef7a3cd01
https://github.com/librariesio/bibliothecary/blob/c446640356d5d57ceebfd27327aecd1ef7a3cd01/lib/bibliothecary/runner.rb#L79-L92
train
Identify the manifest files that are not in the ignored directories
[ 30522, 13366, 6709, 1035, 19676, 2015, 1006, 5371, 1035, 2862, 1007, 6439, 1035, 16101, 2015, 1035, 2007, 1035, 18296, 1027, 6439, 1035, 16101, 2015, 1012, 4949, 1063, 1064, 1040, 1064, 2065, 1040, 1012, 2203, 1035, 2007, 1029, 1006, 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_network/lib/2016-12-01/generated/azure_mgmt_network/virtual_network_gateways.rb
Azure::Network::Mgmt::V2016_12_01.VirtualNetworkGateways.get_advertised_routes
def get_advertised_routes(resource_group_name, virtual_network_gateway_name, peer, custom_headers:nil) response = get_advertised_routes_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def get_advertised_routes(resource_group_name, virtual_network_gateway_name, peer, custom_headers:nil) response = get_advertised_routes_async(resource_group_name, virtual_network_gateway_name, peer, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "get_advertised_routes", "(", "resource_group_name", ",", "virtual_network_gateway_name", ",", "peer", ",", "custom_headers", ":", "nil", ")", "response", "=", "get_advertised_routes_async", "(", "resource_group_name", ",", "virtual_network_gateway_name", ",", "peer"...
This operation retrieves a list of routes the virtual network gateway is advertising to the specified peer. @param resource_group_name [String] The name of the resource group. @param virtual_network_gateway_name [String] The name of the virtual network gateway. @param peer [String] The IP address of the peer @pa...
[ "This", "operation", "retrieves", "a", "list", "of", "routes", "the", "virtual", "network", "gateway", "is", "advertising", "to", "the", "specified", "peer", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_network/lib/2016-12-01/generated/azure_mgmt_network/virtual_network_gateways.rb#L567-L570
train
Gets the advertised routes for the virtual network gateway.
[ 30522, 13366, 2131, 1035, 17099, 1035, 5847, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 7484, 1035, 2897, 1035, 11909, 1035, 2171, 1010, 8152, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 2131, 1035, 17099, 1035, 5847, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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_with_http_info
def begin_failover_with_http_info(resource_group_name, server_name, disaster_recovery_configuration_name, custom_headers:nil) begin_failover_async(resource_group_name, server_name, disaster_recovery_configuration_name, custom_headers:custom_headers).value! end
ruby
def begin_failover_with_http_info(resource_group_name, server_name, disaster_recovery_configuration_name, custom_headers:nil) begin_failover_async(resource_group_name, server_name, disaster_recovery_configuration_name, custom_headers:custom_headers).value! end
[ "def", "begin_failover_with_http_info", "(", "resource_group_name", ",", "server_name", ",", "disaster_recovery_configuration_name", ",", "custom_headers", ":", "nil", ")", "begin_failover_async", "(", "resource_group_name", ",", "server_name", ",", "disaster_recovery_configura...
Fails over from the current primary server to this server. @param resource_group_name [String] The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. @param server_name [String] The name of the server. @param disaster_recovery_config...
[ "Fails", "over", "from", "the", "current", "primary", "server", "to", "this", "server", "." ]
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#L670-L672
train
Gets the next chunk of the failover of the server.
[ 30522, 13366, 4088, 1035, 8246, 7840, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 8241, 1035, 2171, 1010, 7071, 1035, 7233, 1035, 9563, 1035, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_network/lib/2019-02-01/generated/azure_mgmt_network/p2s_vpn_server_configurations.rb
Azure::Network::Mgmt::V2019_02_01.P2sVpnServerConfigurations.get_with_http_info
def get_with_http_info(resource_group_name, virtual_wan_name, p2svpn_server_configuration_name, custom_headers:nil) get_async(resource_group_name, virtual_wan_name, p2svpn_server_configuration_name, custom_headers:custom_headers).value! end
ruby
def get_with_http_info(resource_group_name, virtual_wan_name, p2svpn_server_configuration_name, custom_headers:nil) get_async(resource_group_name, virtual_wan_name, p2svpn_server_configuration_name, custom_headers:custom_headers).value! end
[ "def", "get_with_http_info", "(", "resource_group_name", ",", "virtual_wan_name", ",", "p2svpn_server_configuration_name", ",", "custom_headers", ":", "nil", ")", "get_async", "(", "resource_group_name", ",", "virtual_wan_name", ",", "p2svpn_server_configuration_name", ",", ...
Retrieves the details of a P2SVpnServerConfiguration. @param resource_group_name [String] The resource group name of the P2SVpnServerConfiguration. @param virtual_wan_name [String] The name of the VirtualWan. @param p2svpn_server_configuration_name [String] The name of the P2SVpnServerConfiguration. @param custo...
[ "Retrieves", "the", "details", "of", "a", "P2SVpnServerConfiguration", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_network/lib/2019-02-01/generated/azure_mgmt_network/p2s_vpn_server_configurations.rb#L55-L57
train
Gets the specified virtual wan.
[ 30522, 13366, 2131, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 7484, 1035, 14071, 1035, 2171, 1010, 1052, 2475, 2015, 2615, 2361, 2078, 1035, 8241, 1035, 9563, 1035, 2171, 1010, 7661, 1035, 20346, 2015, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/custom_domains.rb
Azure::CDN::Mgmt::V2017_04_02.CustomDomains.create
def create(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:nil) response = create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:custom_headers).value! response.body unless re...
ruby
def create(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:nil) response = create_async(resource_group_name, profile_name, endpoint_name, custom_domain_name, custom_domain_properties, custom_headers:custom_headers).value! response.body unless re...
[ "def", "create", "(", "resource_group_name", ",", "profile_name", ",", "endpoint_name", ",", "custom_domain_name", ",", "custom_domain_properties", ",", "custom_headers", ":", "nil", ")", "response", "=", "create_async", "(", "resource_group_name", ",", "profile_name", ...
Creates a new custom domain within an endpoint. @param resource_group_name [String] Name of the Resource group within the Azure subscription. @param profile_name [String] Name of the CDN profile which is unique within the resource group. @param endpoint_name [String] Name of the endpoint under the profile which i...
[ "Creates", "a", "new", "custom", "domain", "within", "an", "endpoint", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_cdn/lib/2017-04-02/generated/azure_mgmt_cdn/custom_domains.rb#L267-L270
train
Creates a new domain in the specified subscription.
[ 30522, 13366, 3443, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 6337, 1035, 2171, 1010, 2203, 8400, 1035, 2171, 1010, 7661, 1035, 5884, 1035, 2171, 1010, 7661, 1035, 5884, 1035, 5144, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_compute/lib/2018-06-01/generated/azure_mgmt_compute/gallery_images.rb
Azure::Compute::Mgmt::V2018_06_01.GalleryImages.begin_delete_with_http_info
def begin_delete_with_http_info(resource_group_name, gallery_name, gallery_image_name, custom_headers:nil) begin_delete_async(resource_group_name, gallery_name, gallery_image_name, custom_headers:custom_headers).value! end
ruby
def begin_delete_with_http_info(resource_group_name, gallery_name, gallery_image_name, custom_headers:nil) begin_delete_async(resource_group_name, gallery_name, gallery_image_name, custom_headers:custom_headers).value! end
[ "def", "begin_delete_with_http_info", "(", "resource_group_name", ",", "gallery_name", ",", "gallery_image_name", ",", "custom_headers", ":", "nil", ")", "begin_delete_async", "(", "resource_group_name", ",", "gallery_name", ",", "gallery_image_name", ",", "custom_headers",...
Delete a gallery image. @param resource_group_name [String] The name of the resource group. @param gallery_name [String] The name of the Shared Image Gallery in which the Image Definition is to be deleted. @param gallery_image_name [String] The name of the gallery Image Definition to be deleted. @param custom_he...
[ "Delete", "a", "gallery", "image", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_compute/lib/2018-06-01/generated/azure_mgmt_compute/gallery_images.rb#L493-L495
train
Deletes a gallery image.
[ 30522, 13366, 4088, 1035, 3972, 12870, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 3916, 1035, 2171, 1010, 3916, 1035, 3746, 1035, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 4088, 1035, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
hashicorp/vagrant
lib/vagrant/bundler.rb
Vagrant.Bundler.clean
def clean(plugins, **opts) @logger.debug("Cleaning Vagrant plugins of stale gems.") # Generate dependencies for all registered plugins plugin_deps = plugins.map do |name, info| gem_version = info['installed_gem_version'] gem_version = info['gem_version'] if gem_version.to_s.empty? ...
ruby
def clean(plugins, **opts) @logger.debug("Cleaning Vagrant plugins of stale gems.") # Generate dependencies for all registered plugins plugin_deps = plugins.map do |name, info| gem_version = info['installed_gem_version'] gem_version = info['gem_version'] if gem_version.to_s.empty? ...
[ "def", "clean", "(", "plugins", ",", "**", "opts", ")", "@logger", ".", "debug", "(", "\"Cleaning Vagrant plugins of stale gems.\"", ")", "# Generate dependencies for all registered plugins", "plugin_deps", "=", "plugins", ".", "map", "do", "|", "name", ",", "info", ...
Clean removes any unused gems.
[ "Clean", "removes", "any", "unused", "gems", "." ]
c22a145c59790c098f95d50141d9afb48e1ef55f
https://github.com/hashicorp/vagrant/blob/c22a145c59790c098f95d50141d9afb48e1ef55f/lib/vagrant/bundler.rb#L166-L247
train
Clean up the Vagrant plugins
[ 30522, 13366, 4550, 1006, 13354, 7076, 1010, 1008, 1008, 23569, 2015, 1007, 1030, 8833, 4590, 1012, 2139, 8569, 2290, 30524, 9699, 12530, 15266, 2005, 2035, 5068, 13354, 7076, 13354, 2378, 1035, 2139, 4523, 1027, 13354, 7076, 1012, 4949, 20...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/product_groups.rb
Azure::ApiManagement::Mgmt::V2016_07_07.ProductGroups.list_by_product_next
def list_by_product_next(next_page_link, custom_headers:nil) response = list_by_product_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def list_by_product_next(next_page_link, custom_headers:nil) response = list_by_product_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "list_by_product_next", "(", "next_page_link", ",", "custom_headers", ":", "nil", ")", "response", "=", "list_by_product_next_async", "(", "next_page_link", ",", "custom_headers", ":custom_headers", ")", ".", "value!", "response", ".", "body", "unless", "respon...
Lists the collection of developer groups associated with the specified product. @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 [GroupCollectio...
[ "Lists", "the", "collection", "of", "developer", "groups", "associated", "with", "the", "specified", "product", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/product_groups.rb#L406-L409
train
Gets the list of product objects in a product.
[ 30522, 13366, 2862, 1035, 2011, 1035, 4031, 1035, 2279, 1006, 2279, 1035, 3931, 1035, 4957, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 2862, 1035, 2011, 1035, 4031, 1035, 2279, 1035, 2004, 6038, 2278, 1006, 2279, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_network/lib/2018-07-01/generated/azure_mgmt_network/virtual_wans.rb
Azure::Network::Mgmt::V2018_07_01.VirtualWANs.begin_create_or_update
def begin_create_or_update(resource_group_name, virtual_wanname, wanparameters, custom_headers:nil) response = begin_create_or_update_async(resource_group_name, virtual_wanname, wanparameters, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def begin_create_or_update(resource_group_name, virtual_wanname, wanparameters, custom_headers:nil) response = begin_create_or_update_async(resource_group_name, virtual_wanname, wanparameters, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "begin_create_or_update", "(", "resource_group_name", ",", "virtual_wanname", ",", "wanparameters", ",", "custom_headers", ":", "nil", ")", "response", "=", "begin_create_or_update_async", "(", "resource_group_name", ",", "virtual_wanname", ",", "wanparameters", ",...
Creates a VirtualWAN resource if it doesn't exist else updates the existing VirtualWAN. @param resource_group_name [String] The resource group name of the VirtualWan. @param virtual_wanname [String] The name of the VirtualWAN being created or updated. @param wanparameters [VirtualWAN] Parameters supplied to crea...
[ "Creates", "a", "VirtualWAN", "resource", "if", "it", "doesn", "t", "exist", "else", "updates", "the", "existing", "VirtualWAN", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_network/lib/2018-07-01/generated/azure_mgmt_network/virtual_wans.rb#L448-L451
train
Creates or updates a virtual wan.
[ 30522, 13366, 4088, 1035, 3443, 1035, 2030, 1035, 10651, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 7484, 1035, 10587, 4168, 1010, 14071, 28689, 22828, 2015, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 4088, 1035, 3443...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
rails/rails
activerecord/lib/active_record/autosave_association.rb
ActiveRecord.AutosaveAssociation.save_collection_association
def save_collection_association(reflection) if association = association_instance_get(reflection.name) autosave = reflection.options[:autosave] # By saving the instance variable in a local variable, # we make the whole callback re-entrant. new_record_before_save = @new_r...
ruby
def save_collection_association(reflection) if association = association_instance_get(reflection.name) autosave = reflection.options[:autosave] # By saving the instance variable in a local variable, # we make the whole callback re-entrant. new_record_before_save = @new_r...
[ "def", "save_collection_association", "(", "reflection", ")", "if", "association", "=", "association_instance_get", "(", "reflection", ".", "name", ")", "autosave", "=", "reflection", ".", "options", "[", ":autosave", "]", "# By saving the instance variable in a local var...
Saves any new associated records, or all loaded autosave associations if <tt>:autosave</tt> is enabled on the association. In addition, it destroys all children that were marked for destruction with #mark_for_destruction. This all happens inside a transaction, _if_ the Transactions module is included into Active...
[ "Saves", "any", "new", "associated", "records", "or", "all", "loaded", "autosave", "associations", "if", "<tt", ">", ":", "autosave<", "/", "tt", ">", "is", "enabled", "on", "the", "association", "." ]
85a8bc644be69908f05740a5886ec19cd3679df5
https://github.com/rails/rails/blob/85a8bc644be69908f05740a5886ec19cd3679df5/activerecord/lib/active_record/autosave_association.rb#L376-L418
train
Save the association to the database
[ 30522, 13366, 3828, 1035, 3074, 1035, 2523, 1006, 9185, 1007, 2065, 2523, 1027, 2523, 1035, 6013, 1035, 2131, 1006, 9185, 1012, 2171, 1007, 8285, 3736, 3726, 1027, 9185, 1012, 7047, 1031, 1024, 8285, 3736, 3726, 1033, 1001, 2011, 7494, 19...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
forward3d/rbhive
lib/rbhive/t_c_l_i_connection.rb
RBHive.TCLIConnection.fetch_rows
def fetch_rows(op_handle, orientation = :first, max_rows = 1000) fetch_req = prepare_fetch_results(op_handle, orientation, max_rows) fetch_results = @client.FetchResults(fetch_req) raise_error_if_failed!(fetch_results) rows = fetch_results.results.rows TCLIResultSet.new(rows, TCLISchemaDef...
ruby
def fetch_rows(op_handle, orientation = :first, max_rows = 1000) fetch_req = prepare_fetch_results(op_handle, orientation, max_rows) fetch_results = @client.FetchResults(fetch_req) raise_error_if_failed!(fetch_results) rows = fetch_results.results.rows TCLIResultSet.new(rows, TCLISchemaDef...
[ "def", "fetch_rows", "(", "op_handle", ",", "orientation", "=", ":first", ",", "max_rows", "=", "1000", ")", "fetch_req", "=", "prepare_fetch_results", "(", "op_handle", ",", "orientation", ",", "max_rows", ")", "fetch_results", "=", "@client", ".", "FetchResult...
Pull rows from the query result
[ "Pull", "rows", "from", "the", "query", "result" ]
a630b57332f2face03501da3ecad2905c78056fa
https://github.com/forward3d/rbhive/blob/a630b57332f2face03501da3ecad2905c78056fa/lib/rbhive/t_c_l_i_connection.rb#L300-L306
train
Fetch the rows of a given operation handle.
[ 30522, 13366, 18584, 1035, 10281, 1006, 6728, 1035, 5047, 1010, 10296, 1027, 1024, 2034, 1010, 4098, 1035, 10281, 1027, 6694, 1007, 18584, 1035, 2128, 4160, 1027, 7374, 1035, 18584, 1035, 3463, 1006, 6728, 1035, 5047, 1010, 10296, 1010, 409...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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
deliver/lib/deliver/setup.rb
Deliver.Setup.generate_deliver_file
def generate_deliver_file(deliver_path, options) v = options[:app].latest_version metadata_path = options[:metadata_path] || File.join(deliver_path, 'metadata') generate_metadata_files(v, metadata_path) # Generate the final Deliverfile here return File.read(deliverfile_path) end
ruby
def generate_deliver_file(deliver_path, options) v = options[:app].latest_version metadata_path = options[:metadata_path] || File.join(deliver_path, 'metadata') generate_metadata_files(v, metadata_path) # Generate the final Deliverfile here return File.read(deliverfile_path) end
[ "def", "generate_deliver_file", "(", "deliver_path", ",", "options", ")", "v", "=", "options", "[", ":app", "]", ".", "latest_version", "metadata_path", "=", "options", "[", ":metadata_path", "]", "||", "File", ".", "join", "(", "deliver_path", ",", "'metadata...
This method takes care of creating a new 'deliver' folder, containing the app metadata and screenshots folders
[ "This", "method", "takes", "care", "of", "creating", "a", "new", "deliver", "folder", "containing", "the", "app", "metadata", "and", "screenshots", "folders" ]
457c5d647c77f0e078dafa5129da616914e002c5
https://github.com/fastlane/fastlane/blob/457c5d647c77f0e078dafa5129da616914e002c5/deliver/lib/deliver/setup.rb#L42-L49
train
Generate the Deliverfile
[ 30522, 13366, 9699, 1035, 8116, 1035, 5371, 1006, 8116, 1035, 4130, 1010, 7047, 1007, 1058, 1027, 7047, 1031, 1024, 10439, 1033, 1012, 6745, 1035, 2544, 27425, 1035, 4130, 1027, 7047, 1031, 1024, 27425, 1035, 4130, 1033, 1064, 1064, 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...
roo-rb/roo
lib/roo/open_office.rb
Roo.OpenOffice.cell
def cell(row, col, sheet = nil) sheet ||= default_sheet read_cells(sheet) row, col = normalize(row, col) if celltype(row, col, sheet) == :date yyyy, mm, dd = @cell[sheet][[row, col]].to_s.split('-') return Date.new(yyyy.to_i, mm.to_i, dd.to_i) end @cell[sheet][[row, ...
ruby
def cell(row, col, sheet = nil) sheet ||= default_sheet read_cells(sheet) row, col = normalize(row, col) if celltype(row, col, sheet) == :date yyyy, mm, dd = @cell[sheet][[row, col]].to_s.split('-') return Date.new(yyyy.to_i, mm.to_i, dd.to_i) end @cell[sheet][[row, ...
[ "def", "cell", "(", "row", ",", "col", ",", "sheet", "=", "nil", ")", "sheet", "||=", "default_sheet", "read_cells", "(", "sheet", ")", "row", ",", "col", "=", "normalize", "(", "row", ",", "col", ")", "if", "celltype", "(", "row", ",", "col", ",",...
Returns the content of a spreadsheet-cell. (1,1) is the upper left corner. (1,1), (1,'A'), ('A',1), ('a',1) all refers to the cell at the first line and first row.
[ "Returns", "the", "content", "of", "a", "spreadsheet", "-", "cell", ".", "(", "1", "1", ")", "is", "the", "upper", "left", "corner", ".", "(", "1", "1", ")", "(", "1", "A", ")", "(", "A", "1", ")", "(", "a", "1", ")", "all", "refers", "to", ...
4ec1104f0c3c2a29711c0c907371cd2be12bcc3c
https://github.com/roo-rb/roo/blob/4ec1104f0c3c2a29711c0c907371cd2be12bcc3c/lib/roo/open_office.rb#L93-L103
train
Return the cell at the given row and column.
[ 30522, 13366, 3526, 1006, 5216, 1010, 8902, 1010, 7123, 1027, 9152, 2140, 1007, 7123, 1064, 1064, 1027, 12398, 1035, 7123, 3191, 1035, 4442, 1006, 7123, 1007, 5216, 1010, 8902, 1027, 3671, 4697, 1006, 5216, 1010, 8902, 1007, 2065, 3526, 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...
httprb/http
lib/http/client.rb
HTTP.Client.make_request_uri
def make_request_uri(uri, opts) uri = uri.to_s if default_options.persistent? && uri !~ HTTP_OR_HTTPS_RE uri = "#{default_options.persistent}#{uri}" end uri = HTTP::URI.parse uri if opts.params && !opts.params.empty? uri.query_values = uri.query_values(Array).to_a.concat...
ruby
def make_request_uri(uri, opts) uri = uri.to_s if default_options.persistent? && uri !~ HTTP_OR_HTTPS_RE uri = "#{default_options.persistent}#{uri}" end uri = HTTP::URI.parse uri if opts.params && !opts.params.empty? uri.query_values = uri.query_values(Array).to_a.concat...
[ "def", "make_request_uri", "(", "uri", ",", "opts", ")", "uri", "=", "uri", ".", "to_s", "if", "default_options", ".", "persistent?", "&&", "uri", "!~", "HTTP_OR_HTTPS_RE", "uri", "=", "\"#{default_options.persistent}#{uri}\"", "end", "uri", "=", "HTTP", "::", ...
Merges query params if needed @param [#to_s] uri @return [URI]
[ "Merges", "query", "params", "if", "needed" ]
f37a10ea4fab3ee411907ea2e4251ddf0ca33a93
https://github.com/httprb/http/blob/f37a10ea4fab3ee411907ea2e4251ddf0ca33a93/lib/http/client.rb#L128-L147
train
Make a request URI
[ 30522, 13366, 2191, 1035, 5227, 1035, 24471, 2072, 1006, 24471, 2072, 1010, 23569, 2015, 1007, 24471, 2072, 1027, 24471, 2072, 1012, 2000, 1035, 1055, 2065, 12398, 1035, 7047, 1012, 14516, 1029, 1004, 1004, 24471, 2072, 999, 1066, 8299, 103...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
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_pattern_any_entity_role_with_http_info
def get_pattern_any_entity_role_with_http_info(app_id, version_id, entity_id, role_id, custom_headers:nil) get_pattern_any_entity_role_async(app_id, version_id, entity_id, role_id, custom_headers:custom_headers).value! end
ruby
def get_pattern_any_entity_role_with_http_info(app_id, version_id, entity_id, role_id, custom_headers:nil) get_pattern_any_entity_role_async(app_id, version_id, entity_id, role_id, custom_headers:custom_headers).value! end
[ "def", "get_pattern_any_entity_role_with_http_info", "(", "app_id", ",", "version_id", ",", "entity_id", ",", "role_id", ",", "custom_headers", ":", "nil", ")", "get_pattern_any_entity_role_async", "(", "app_id", ",", "version_id", ",", "entity_id", ",", "role_id", ",...
Get one role for a given Pattern.any entity in a version of the application. @param app_id The application ID. @param version_id [String] The version ID. @param entity_id entity ID. @param role_id entity role ID. @param custom_headers [Hash{String => String}] A hash of custom headers that will be added to the HT...
[ "Get", "one", "role", "for", "a", "given", "Pattern", ".", "any", "entity", "in", "a", "version", "of", "the", "application", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_cognitiveservices_luisauthoring/lib/2.0/generated/azure_cognitiveservices_luisauthoring/model.rb#L10359-L10361
train
Gets the pattern any entity role.
[ 30522, 13366, 2131, 1035, 5418, 1035, 30524, 1035, 2535, 1035, 2004, 6038, 2278, 1006, 10439, 1035, 8909, 1010, 2544, 1035, 8909, 1010, 9178, 1035, 8909, 1010, 2535, 1035, 8909, 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...
petergoldstein/dalli
lib/dalli/server.rb
Dalli.Server.request
def request(op, *args) verify_state raise Dalli::NetworkError, "#{name} is down: #{@error} #{@msg}. If you are sure it is running, ensure memcached version is > 1.4." unless alive? begin send(op, *args) rescue Dalli::MarshalError => ex Dalli.logger.error "Marshalling error for ke...
ruby
def request(op, *args) verify_state raise Dalli::NetworkError, "#{name} is down: #{@error} #{@msg}. If you are sure it is running, ensure memcached version is > 1.4." unless alive? begin send(op, *args) rescue Dalli::MarshalError => ex Dalli.logger.error "Marshalling error for ke...
[ "def", "request", "(", "op", ",", "*", "args", ")", "verify_state", "raise", "Dalli", "::", "NetworkError", ",", "\"#{name} is down: #{@error} #{@msg}. If you are sure it is running, ensure memcached version is > 1.4.\"", "unless", "alive?", "begin", "send", "(", "op", ",",...
Chokepoint method for instrumentation
[ "Chokepoint", "method", "for", "instrumentation" ]
5755dbfd06e333a8239f976d4b10492b4555b726
https://github.com/petergoldstein/dalli/blob/5755dbfd06e333a8239f976d4b10492b4555b726/lib/dalli/server.rb#L66-L83
train
Send a request to the memcached server.
[ 30522, 13366, 5227, 1006, 6728, 1010, 1008, 12098, 5620, 1007, 20410, 1035, 2110, 5333, 17488, 3669, 1024, 1024, 2897, 2121, 29165, 1010, 1000, 1001, 1063, 2171, 1065, 2003, 2091, 1024, 1001, 1063, 1030, 7561, 1065, 1001, 1063, 1030, 5796, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_storagesync/lib/2018-07-01/generated/azure_mgmt_storagesync/cloud_endpoints.rb
Azure::StorageSync::Mgmt::V2018_07_01.CloudEndpoints.pre_restore_async
def pre_restore_async(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, parameters, custom_headers:nil) # Send request promise = begin_pre_restore_async(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, parameters, custom_headers:custom...
ruby
def pre_restore_async(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, parameters, custom_headers:nil) # Send request promise = begin_pre_restore_async(resource_group_name, storage_sync_service_name, sync_group_name, cloud_endpoint_name, parameters, custom_headers:custom...
[ "def", "pre_restore_async", "(", "resource_group_name", ",", "storage_sync_service_name", ",", "sync_group_name", ",", "cloud_endpoint_name", ",", "parameters", ",", "custom_headers", ":", "nil", ")", "# Send request", "promise", "=", "begin_pre_restore_async", "(", "reso...
@param resource_group_name [String] The name of the resource group. The name is case insensitive. @param storage_sync_service_name [String] Name of Storage Sync Service resource. @param sync_group_name [String] Name of Sync Group resource. @param cloud_endpoint_name [String] Name of Cloud Endpoint object. @param ...
[ "@param", "resource_group_name", "[", "String", "]", "The", "name", "of", "the", "resource", "group", ".", "The", "name", "is", "case", "insensitive", ".", "@param", "storage_sync_service_name", "[", "String", "]", "Name", "of", "Storage", "Sync", "Service", "...
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_storagesync/lib/2018-07-01/generated/azure_mgmt_storagesync/cloud_endpoints.rb#L474-L488
train
Pre - Restore a CloudEndpoint.
[ 30522, 13366, 3653, 1035, 9239, 1035, 2004, 6038, 2278, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 5527, 1035, 26351, 1035, 2326, 1035, 2171, 1010, 26351, 1035, 2177, 1035, 2171, 1010, 6112, 1035, 2203, 8400, 1035, 2171, 1010, 11709, 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_application_backup_list
def get_application_backup_list(application_id, timeout:60, latest:false, start_date_time_filter:nil, end_date_time_filter:nil, continuation_token:nil, max_results:0, custom_headers:nil) response = get_application_backup_list_async(application_id, timeout:timeout, latest:latest, start_date_time_filter:start_date_...
ruby
def get_application_backup_list(application_id, timeout:60, latest:false, start_date_time_filter:nil, end_date_time_filter:nil, continuation_token:nil, max_results:0, custom_headers:nil) response = get_application_backup_list_async(application_id, timeout:timeout, latest:latest, start_date_time_filter:start_date_...
[ "def", "get_application_backup_list", "(", "application_id", ",", "timeout", ":", "60", ",", "latest", ":", "false", ",", "start_date_time_filter", ":", "nil", ",", "end_date_time_filter", ":", "nil", ",", "continuation_token", ":", "nil", ",", "max_results", ":",...
Gets the list of backups available for every partition in this application. Returns a list of backups available for every partition in this Service Fabric application. The server enumerates all the backups available at the backup location configured in the backup policy. It also allows filtering of the result base...
[ "Gets", "the", "list", "of", "backups", "available", "for", "every", "partition", "in", "this", "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#L23404-L23407
train
Gets the backup list of the applications.
[ 30522, 13366, 2131, 1035, 4646, 1035, 10200, 1035, 2862, 1006, 4646, 1035, 8909, 1010, 2051, 5833, 1024, 3438, 1010, 6745, 1024, 6270, 1010, 2707, 1035, 3058, 1035, 2051, 1035, 11307, 1024, 9152, 2140, 1010, 2203, 1035, 3058, 1035, 2051, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_datalake_store/lib/2015-10-01-preview/generated/azure_mgmt_datalake_store/account.rb
Azure::DataLakeStore::Mgmt::V2015_10_01_preview.Account.list_firewall_rules_next
def list_firewall_rules_next(next_page_link, custom_headers:nil) response = list_firewall_rules_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def list_firewall_rules_next(next_page_link, custom_headers:nil) response = list_firewall_rules_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "list_firewall_rules_next", "(", "next_page_link", ",", "custom_headers", ":", "nil", ")", "response", "=", "list_firewall_rules_next_async", "(", "next_page_link", ",", "custom_headers", ":custom_headers", ")", ".", "value!", "response", ".", "body", "unless", ...
Lists the Data Lake Store firewall rules within the specified Data Lake Store account. @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 [DataLak...
[ "Lists", "the", "Data", "Lake", "Store", "firewall", "rules", "within", "the", "specified", "Data", "Lake", "Store", "account", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_datalake_store/lib/2015-10-01-preview/generated/azure_mgmt_datalake_store/account.rb#L1418-L1421
train
Gets the firewall rules for a resource group.
[ 30522, 13366, 2862, 1035, 2543, 9628, 1035, 3513, 1035, 2279, 1006, 2279, 1035, 3931, 1035, 4957, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 2862, 1035, 2543, 9628, 1035, 3513, 1035, 2279, 1035, 2004, 6038, 2278, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_network/lib/2018-10-01/generated/azure_mgmt_network/connection_monitors.rb
Azure::Network::Mgmt::V2018_10_01.ConnectionMonitors.start_async
def start_async(resource_group_name, network_watcher_name, connection_monitor_name, custom_headers:nil) # Send request promise = begin_start_async(resource_group_name, network_watcher_name, connection_monitor_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining...
ruby
def start_async(resource_group_name, network_watcher_name, connection_monitor_name, custom_headers:nil) # Send request promise = begin_start_async(resource_group_name, network_watcher_name, connection_monitor_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining...
[ "def", "start_async", "(", "resource_group_name", ",", "network_watcher_name", ",", "connection_monitor_name", ",", "custom_headers", ":", "nil", ")", "# Send request", "promise", "=", "begin_start_async", "(", "resource_group_name", ",", "network_watcher_name", ",", "con...
@param resource_group_name [String] The name of the resource group containing Network Watcher. @param network_watcher_name [String] The name of the Network Watcher resource. @param connection_monitor_name [String] The name of the connection monitor. @param custom_headers [Hash{String => String}] A hash of custom h...
[ "@param", "resource_group_name", "[", "String", "]", "The", "name", "of", "the", "resource", "group", "containing", "Network", "Watcher", ".", "@param", "network_watcher_name", "[", "String", "]", "The", "name", "of", "the", "Network", "Watcher", "resource", "."...
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_network/lib/2018-10-01/generated/azure_mgmt_network/connection_monitors.rb#L294-L308
train
Starts a connection monitor.
[ 30522, 13366, 2707, 1035, 2004, 6038, 2278, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 2897, 1035, 3422, 2121, 1035, 2171, 1010, 4434, 1035, 8080, 1035, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 1001, 4604, 5227, 4872, 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_storage/lib/2018-11-01/generated/azure_mgmt_storage/storage_accounts.rb
Azure::Storage::Mgmt::V2018_11_01.StorageAccounts.begin_failover
def begin_failover(resource_group_name, account_name, custom_headers:nil) response = begin_failover_async(resource_group_name, account_name, custom_headers:custom_headers).value! nil end
ruby
def begin_failover(resource_group_name, account_name, custom_headers:nil) response = begin_failover_async(resource_group_name, account_name, custom_headers:custom_headers).value! nil end
[ "def", "begin_failover", "(", "resource_group_name", ",", "account_name", ",", "custom_headers", ":", "nil", ")", "response", "=", "begin_failover_async", "(", "resource_group_name", ",", "account_name", ",", "custom_headers", ":custom_headers", ")", ".", "value!", "n...
Failover request can be triggered for a storage account in case of availability issues. The failover occurs from the storage account's primary cluster to secondary cluster for RA-GRS accounts. The secondary cluster will become primary after failover. @param resource_group_name [String] The name of the resource gro...
[ "Failover", "request", "can", "be", "triggered", "for", "a", "storage", "account", "in", "case", "of", "availability", "issues", ".", "The", "failover", "occurs", "from", "the", "storage", "account", "s", "primary", "cluster", "to", "secondary", "cluster", "fo...
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_storage/lib/2018-11-01/generated/azure_mgmt_storage/storage_accounts.rb#L1510-L1513
train
Gets the next chunk of the elastic network account.
[ 30522, 13366, 4088, 1035, 8246, 7840, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 4070, 1035, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 4088, 1035, 8246, 7840, 1035, 2004, 6038, 2278, 1006, 7692, 1035, 2177, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_network/lib/2018-07-01/generated/azure_mgmt_network/virtual_network_gateway_connections.rb
Azure::Network::Mgmt::V2018_07_01.VirtualNetworkGatewayConnections.reset_shared_key_async
def reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) # Send request promise = begin_reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers) promise = promise.the...
ruby
def reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:nil) # Send request promise = begin_reset_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers:custom_headers) promise = promise.the...
[ "def", "reset_shared_key_async", "(", "resource_group_name", ",", "virtual_network_gateway_connection_name", ",", "parameters", ",", "custom_headers", ":", "nil", ")", "# Send request", "promise", "=", "begin_reset_shared_key_async", "(", "resource_group_name", ",", "virtual_...
@param resource_group_name [String] The name of the resource group. @param virtual_network_gateway_connection_name [String] The virtual network gateway connection reset shared key Name. @param parameters [ConnectionResetSharedKey] Parameters supplied to the begin reset virtual network gateway connection shared key ...
[ "@param", "resource_group_name", "[", "String", "]", "The", "name", "of", "the", "resource", "group", ".", "@param", "virtual_network_gateway_connection_name", "[", "String", "]", "The", "virtual", "network", "gateway", "connection", "reset", "shared", "key", "Name"...
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#L535-L551
train
Resets the shared key of the virtual network gateway connection.
[ 30522, 13366, 25141, 1035, 4207, 1035, 3145, 1035, 2004, 6038, 2278, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 7484, 1035, 2897, 1035, 11909, 1035, 4434, 1035, 2171, 1010, 11709, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 1001, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
sunspot/sunspot
sunspot/lib/sunspot/session.rb
Sunspot.Session.remove
def remove(*objects, &block) if block types = objects conjunction = Query::Connective::Conjunction.new if types.length == 1 conjunction.add_positive_restriction(TypeField.instance, Query::Restriction::EqualTo, types.first) else conjunction.add_positive_restricti...
ruby
def remove(*objects, &block) if block types = objects conjunction = Query::Connective::Conjunction.new if types.length == 1 conjunction.add_positive_restriction(TypeField.instance, Query::Restriction::EqualTo, types.first) else conjunction.add_positive_restricti...
[ "def", "remove", "(", "*", "objects", ",", "&", "block", ")", "if", "block", "types", "=", "objects", "conjunction", "=", "Query", "::", "Connective", "::", "Conjunction", ".", "new", "if", "types", ".", "length", "==", "1", "conjunction", ".", "add_posi...
See Sunspot.remove
[ "See", "Sunspot", ".", "remove" ]
31dd76cd7a14a4ef7bd541de97483d8cd72ff685
https://github.com/sunspot/sunspot/blob/31dd76cd7a14a4ef7bd541de97483d8cd72ff685/sunspot/lib/sunspot/session.rb#L137-L156
train
Remove the objects from the index.
[ 30522, 13366, 6366, 1006, 1008, 5200, 1010, 1004, 3796, 1007, 2065, 3796, 4127, 1027, 5200, 9595, 1027, 23032, 1024, 1024, 7532, 3512, 1024, 1024, 9595, 1012, 2047, 2065, 4127, 1012, 3091, 1027, 1027, 1015, 9595, 1012, 5587, 30524, 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...