repo
stringclasses
235 values
path
stringlengths
11
168
func_name
stringlengths
12
143
original_string
stringlengths
83
6.91k
language
stringclasses
1 value
code
stringlengths
83
6.91k
code_tokens
listlengths
15
1.01k
docstring
stringlengths
5
25.7k
docstring_tokens
listlengths
1
427
sha
stringclasses
235 values
url
stringlengths
99
268
partition
stringclasses
1 value
summary
stringlengths
7
202
input_ids
listlengths
502
502
token_type_ids
listlengths
502
502
attention_mask
listlengths
502
502
labels
listlengths
502
502
Azure/azure-sdk-for-ruby
data/azure_cognitiveservices_computervision/lib/2.0/generated/azure_cognitiveservices_computervision/computer_vision_client.rb
Azure::CognitiveServices::ComputerVision::V2_0.ComputerVisionClient.detect_objects_in_stream
def detect_objects_in_stream(image, custom_headers:nil) response = detect_objects_in_stream_async(image, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def detect_objects_in_stream(image, custom_headers:nil) response = detect_objects_in_stream_async(image, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "detect_objects_in_stream", "(", "image", ",", "custom_headers", ":", "nil", ")", "response", "=", "detect_objects_in_stream_async", "(", "image", ",", "custom_headers", ":custom_headers", ")", ".", "value!", "response", ".", "body", "unless", "response", "."...
Performs object detection on the specified image. Two input methods are supported -- (1) Uploading an image or (2) specifying an image URL. A successful response will be returned in JSON. If the request failed, the response will contain an error code and a message to help understand what went wrong. @param image...
[ "Performs", "object", "detection", "on", "the", "specified", "image", ".", "Two", "input", "methods", "are", "supported", "--", "(", "1", ")", "Uploading", "an", "image", "or", "(", "2", ")", "specifying", "an", "image", "URL", ".", "A", "successful", "r...
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_cognitiveservices_computervision/lib/2.0/generated/azure_cognitiveservices_computervision/computer_vision_client.rb#L2258-L2261
train
Detects the objects in an image in an image stream.
[ 30522, 13366, 11487, 1035, 5200, 1035, 1999, 1035, 5460, 1006, 3746, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 11487, 1035, 5200, 1035, 1999, 1035, 5460, 1035, 2004, 6038, 2278, 1006, 3746, 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...
Katello/katello
app/models/katello/repository.rb
Katello.Repository.destroyable?
def destroyable? if self.environment.try(:library?) && self.content_view.default? if self.environment.organization.being_deleted? return true elsif self.custom? && self.deletable? return true elsif !self.custom? && self.redhat_deletable? return true el...
ruby
def destroyable? if self.environment.try(:library?) && self.content_view.default? if self.environment.organization.being_deleted? return true elsif self.custom? && self.deletable? return true elsif !self.custom? && self.redhat_deletable? return true el...
[ "def", "destroyable?", "if", "self", ".", "environment", ".", "try", "(", ":library?", ")", "&&", "self", ".", "content_view", ".", "default?", "if", "self", ".", "environment", ".", "organization", ".", "being_deleted?", "return", "true", "elsif", "self", "...
deleteable? is already taken by the authorization mixin
[ "deleteable?", "is", "already", "taken", "by", "the", "authorization", "mixin" ]
a1c9280067607999cae43bab89b53ba870856b76
https://github.com/Katello/katello/blob/a1c9280067607999cae43bab89b53ba870856b76/app/models/katello/repository.rb#L575-L591
train
Returns true if the repository is destroyable.
[ 30522, 13366, 6033, 3085, 1029, 2065, 2969, 1012, 4044, 1012, 3046, 1006, 1024, 3075, 1029, 1007, 1004, 1004, 2969, 1012, 4180, 1035, 3193, 1012, 12398, 1029, 2065, 2969, 1012, 4044, 1012, 3029, 1012, 2108, 1035, 17159, 1029, 2709, 2995, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_network/lib/2018-08-01/generated/azure_mgmt_network/network_watchers.rb
Azure::Network::Mgmt::V2018_08_01.NetworkWatchers.get_troubleshooting_result
def get_troubleshooting_result(resource_group_name, network_watcher_name, parameters, custom_headers:nil) response = get_troubleshooting_result_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def get_troubleshooting_result(resource_group_name, network_watcher_name, parameters, custom_headers:nil) response = get_troubleshooting_result_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "get_troubleshooting_result", "(", "resource_group_name", ",", "network_watcher_name", ",", "parameters", ",", "custom_headers", ":", "nil", ")", "response", "=", "get_troubleshooting_result_async", "(", "resource_group_name", ",", "network_watcher_name", ",", "param...
Get the last completed troubleshooting result on a specified resource @param resource_group_name [String] The name of the resource group. @param network_watcher_name [String] The name of the network watcher resource. @param parameters [QueryTroubleshootingParameters] Parameters that define the resource to query t...
[ "Get", "the", "last", "completed", "troubleshooting", "result", "on", "a", "specified", "resource" ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_network/lib/2018-08-01/generated/azure_mgmt_network/network_watchers.rb#L854-L857
train
Gets the troubleshooting result of a specified resource group.
[ 30522, 13366, 2131, 1035, 13460, 23416, 2075, 1035, 2765, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 2897, 1035, 3422, 2121, 1035, 2171, 1010, 11709, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 2131, 1035, 13460, 23416...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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/digest_utils.rb
Sprockets.DigestUtils.pack_urlsafe_base64digest
def pack_urlsafe_base64digest(bin) str = pack_base64digest(bin) str.tr!('+/'.freeze, '-_'.freeze) str.tr!('='.freeze, ''.freeze) str end
ruby
def pack_urlsafe_base64digest(bin) str = pack_base64digest(bin) str.tr!('+/'.freeze, '-_'.freeze) str.tr!('='.freeze, ''.freeze) str end
[ "def", "pack_urlsafe_base64digest", "(", "bin", ")", "str", "=", "pack_base64digest", "(", "bin", ")", "str", ".", "tr!", "(", "'+/'", ".", "freeze", ",", "'-_'", ".", "freeze", ")", "str", ".", "tr!", "(", "'='", ".", "freeze", ",", "''", ".", "free...
Internal: Pack a binary digest to a urlsafe base64 encoded string. bin - String bytes Returns urlsafe base64 String.
[ "Internal", ":", "Pack", "a", "binary", "digest", "to", "a", "urlsafe", "base64", "encoded", "string", "." ]
9e3f0d8e98c44f57e67bc138db87bb8469bf5ddd
https://github.com/rails/sprockets/blob/9e3f0d8e98c44f57e67bc138db87bb8469bf5ddd/lib/sprockets/digest_utils.rb#L146-L151
train
Pack the binary into a urlsafe base64 - encoded string
[ 30522, 13366, 5308, 1035, 24471, 4877, 10354, 2063, 1035, 2918, 21084, 4305, 8449, 2102, 1006, 8026, 1007, 2358, 2099, 1027, 5308, 1035, 2918, 21084, 4305, 8449, 2102, 1006, 8026, 1007, 2358, 2099, 1012, 19817, 999, 1006, 1005, 1009, 1013, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_network/lib/2018-10-01/generated/azure_mgmt_network/packet_captures.rb
Azure::Network::Mgmt::V2018_10_01.PacketCaptures.begin_delete_with_http_info
def begin_delete_with_http_info(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) begin_delete_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:custom_headers).value! end
ruby
def begin_delete_with_http_info(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:nil) begin_delete_async(resource_group_name, network_watcher_name, packet_capture_name, custom_headers:custom_headers).value! end
[ "def", "begin_delete_with_http_info", "(", "resource_group_name", ",", "network_watcher_name", ",", "packet_capture_name", ",", "custom_headers", ":", "nil", ")", "begin_delete_async", "(", "resource_group_name", ",", "network_watcher_name", ",", "packet_capture_name", ",", ...
Deletes the specified packet capture session. @param resource_group_name [String] The name of the resource group. @param network_watcher_name [String] The name of the network watcher. @param packet_capture_name [String] The name of the packet capture session. @param custom_headers [Hash{String => String}] A hash o...
[ "Deletes", "the", "specified", "packet", "capture", "session", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_network/lib/2018-10-01/generated/azure_mgmt_network/packet_captures.rb#L527-L529
train
Deletes a packet capture.
[ 30522, 13366, 4088, 1035, 3972, 12870, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 2897, 1035, 3422, 2121, 1035, 2171, 1010, 14771, 1035, 5425, 1035, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
elastic/apm-agent-ruby
lib/elastic_apm/stacktrace_builder.rb
ElasticAPM.StacktraceBuilder.parse_line
def parse_line(line) ruby_match = line.match(RUBY_FORMAT) if ruby_match _, file, number, method = ruby_match.to_a file.sub!(/\.class$/, '.rb') module_name = nil else java_match = line.match(JAVA_FORMAT) _, module_name, method, file, number = java_match.to_a ...
ruby
def parse_line(line) ruby_match = line.match(RUBY_FORMAT) if ruby_match _, file, number, method = ruby_match.to_a file.sub!(/\.class$/, '.rb') module_name = nil else java_match = line.match(JAVA_FORMAT) _, module_name, method, file, number = java_match.to_a ...
[ "def", "parse_line", "(", "line", ")", "ruby_match", "=", "line", ".", "match", "(", "RUBY_FORMAT", ")", "if", "ruby_match", "_", ",", "file", ",", "number", ",", "method", "=", "ruby_match", ".", "to_a", "file", ".", "sub!", "(", "/", "\\.", "/", ",...
rubocop:enable Metrics/AbcSize, Metrics/MethodLength
[ "rubocop", ":", "enable", "Metrics", "/", "AbcSize", "Metrics", "/", "MethodLength" ]
82190d1a9ba22af3b2c2c6fe6d23cc471f2e7ff6
https://github.com/elastic/apm-agent-ruby/blob/82190d1a9ba22af3b2c2c6fe6d23cc471f2e7ff6/lib/elastic_apm/stacktrace_builder.rb#L52-L65
train
Parse a line of a Ruby file.
[ 30522, 13366, 11968, 3366, 1035, 2240, 1006, 2240, 1007, 10090, 1035, 2674, 1027, 2240, 1012, 2674, 1006, 10090, 1035, 4289, 1007, 2065, 10090, 1035, 2674, 30524, 1012, 21144, 1005, 1007, 11336, 1035, 2171, 1027, 9152, 2140, 2842, 9262, 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...
square/connect-ruby-sdk
lib/square_connect/api/o_auth_api.rb
SquareConnect.OAuthApi.revoke_token
def revoke_token(body, opts = {}) data, _status_code, _headers = revoke_token_with_http_info(body, opts) return data end
ruby
def revoke_token(body, opts = {}) data, _status_code, _headers = revoke_token_with_http_info(body, opts) return data end
[ "def", "revoke_token", "(", "body", ",", "opts", "=", "{", "}", ")", "data", ",", "_status_code", ",", "_headers", "=", "revoke_token_with_http_info", "(", "body", ",", "opts", ")", "return", "data", "end" ]
RevokeToken Revokes an access token generated with the OAuth flow. If an account has more than one OAuth access token for your application, this endpoint revokes all of them, regardless of which token you specify. When an OAuth access token is revoked, all of the active subscriptions associated with that OAuth token ...
[ "RevokeToken", "Revokes", "an", "access", "token", "generated", "with", "the", "OAuth", "flow", ".", "If", "an", "account", "has", "more", "than", "one", "OAuth", "access", "token", "for", "your", "application", "this", "endpoint", "revokes", "all", "of", "t...
798eb9ded716f23b9f1518386f1c311a34bca8bf
https://github.com/square/connect-ruby-sdk/blob/798eb9ded716f23b9f1518386f1c311a34bca8bf/lib/square_connect/api/o_auth_api.rb#L139-L142
train
Revoke a token
[ 30522, 13366, 7065, 11045, 1035, 19204, 1006, 2303, 1010, 23569, 2015, 1027, 1063, 1065, 1007, 2951, 1010, 1035, 3570, 1035, 3642, 1010, 1035, 20346, 2015, 1027, 7065, 11045, 30524, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
cloudfoundry/bosh
src/bosh-director/lib/bosh/director/lock.rb
Bosh::Director.Lock.lock
def lock acquire @refresh_thread = Thread.new do renew_interval = [1.0, @expiration/2].max begin done_refreshing = false until @unlock || done_refreshing @refresh_mutex.synchronize do @refresh_signal.wait(@refresh_mutex, renew_interval) ...
ruby
def lock acquire @refresh_thread = Thread.new do renew_interval = [1.0, @expiration/2].max begin done_refreshing = false until @unlock || done_refreshing @refresh_mutex.synchronize do @refresh_signal.wait(@refresh_mutex, renew_interval) ...
[ "def", "lock", "acquire", "@refresh_thread", "=", "Thread", ".", "new", "do", "renew_interval", "=", "[", "1.0", ",", "@expiration", "/", "2", "]", ".", "max", "begin", "done_refreshing", "=", "false", "until", "@unlock", "||", "done_refreshing", "@refresh_mut...
Creates new lock with the given name. @param name lock name @option opts [Number] timeout how long to wait before giving up @option opts [Number] expiration how long to wait before expiring an old lock Acquire a lock. @yield [void] optional block to do work before automatically releasing the lock. @return...
[ "Creates", "new", "lock", "with", "the", "given", "name", "." ]
2eaa7100879ddd20cd909cd698514746195e28b7
https://github.com/cloudfoundry/bosh/blob/2eaa7100879ddd20cd909cd698514746195e28b7/src/bosh-director/lib/bosh/director/lock.rb#L36-L84
train
Lock the object
[ 30522, 13366, 5843, 9878, 1030, 25416, 21898, 1035, 11689, 1027, 11689, 1012, 2047, 2079, 20687, 1035, 13483, 1027, 1031, 1015, 1012, 1014, 1010, 1030, 4654, 16781, 1013, 1016, 1033, 1012, 4098, 4088, 2589, 1035, 27150, 1027, 6270, 2127, 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...
daddyz/phonelib
lib/phonelib/phone_analyzer_helper.rb
Phonelib.PhoneAnalyzerHelper.country_can_dp?
def country_can_dp?(country) Phonelib.phone_data[country] && Phonelib.phone_data[country][Core::DOUBLE_COUNTRY_PREFIX_FLAG] && !original_starts_with_plus? end
ruby
def country_can_dp?(country) Phonelib.phone_data[country] && Phonelib.phone_data[country][Core::DOUBLE_COUNTRY_PREFIX_FLAG] && !original_starts_with_plus? end
[ "def", "country_can_dp?", "(", "country", ")", "Phonelib", ".", "phone_data", "[", "country", "]", "&&", "Phonelib", ".", "phone_data", "[", "country", "]", "[", "Core", "::", "DOUBLE_COUNTRY_PREFIX_FLAG", "]", "&&", "!", "original_starts_with_plus?", "end" ]
defines whether country can have double country prefix in number
[ "defines", "whether", "country", "can", "have", "double", "country", "prefix", "in", "number" ]
aa0023eab7c896b71275bf342bc7f49735cbdbbf
https://github.com/daddyz/phonelib/blob/aa0023eab7c896b71275bf342bc7f49735cbdbbf/lib/phonelib/phone_analyzer_helper.rb#L48-L52
train
Returns true if the country can be dp
[ 30522, 13366, 2406, 1035, 2064, 1035, 1040, 2361, 1029, 1006, 2406, 1007, 3042, 29521, 1012, 3042, 1035, 2951, 1031, 2406, 1033, 1004, 1004, 3042, 29521, 1012, 3042, 1035, 2951, 1031, 2406, 1033, 1031, 4563, 1024, 1024, 3313, 1035, 2406, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_consumption/lib/2018-06-30/generated/azure_mgmt_consumption/usage_details.rb
Azure::Consumption::Mgmt::V2018_06_30.UsageDetails.list_for_billing_period_by_billing_account_as_lazy
def list_for_billing_period_by_billing_account_as_lazy(billing_account_id, billing_period_name, expand:nil, filter:nil, skiptoken:nil, top:nil, query_options:nil, custom_headers:nil) response = list_for_billing_period_by_billing_account_async(billing_account_id, billing_period_name, expand:expand, filter:filter, ...
ruby
def list_for_billing_period_by_billing_account_as_lazy(billing_account_id, billing_period_name, expand:nil, filter:nil, skiptoken:nil, top:nil, query_options:nil, custom_headers:nil) response = list_for_billing_period_by_billing_account_async(billing_account_id, billing_period_name, expand:expand, filter:filter, ...
[ "def", "list_for_billing_period_by_billing_account_as_lazy", "(", "billing_account_id", ",", "billing_period_name", ",", "expand", ":", "nil", ",", "filter", ":", "nil", ",", "skiptoken", ":", "nil", ",", "top", ":", "nil", ",", "query_options", ":", "nil", ",", ...
Lists the usage details based on billingAccountId for a scope by billing period. Usage details are available via this API only for May 1, 2014 or later. @param billing_account_id [String] BillingAccount ID @param billing_period_name [String] Billing Period Name. @param expand [String] May be used to expand the p...
[ "Lists", "the", "usage", "details", "based", "on", "billingAccountId", "for", "a", "scope", "by", "billing", "period", ".", "Usage", "details", "are", "available", "via", "this", "API", "only", "for", "May", "1", "2014", "or", "later", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_consumption/lib/2018-06-30/generated/azure_mgmt_consumption/usage_details.rb#L2116-L2125
train
Gets all the resources under the billing account.
[ 30522, 13366, 2862, 1035, 2005, 1035, 25640, 1035, 2558, 1035, 2011, 1035, 25640, 1035, 4070, 1035, 2004, 1035, 13971, 1006, 25640, 1035, 4070, 1035, 8909, 1010, 25640, 1035, 2558, 1035, 2171, 1010, 7818, 1024, 9152, 2140, 1010, 11307, 1024...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
aws/aws-sdk-ruby
gems/aws-sdk-sqs/lib/aws-sdk-sqs/queue.rb
Aws::SQS.Queue.change_message_visibility_batch
def change_message_visibility_batch(options = {}) options = options.merge(queue_url: @url) resp = @client.change_message_visibility_batch(options) resp.data end
ruby
def change_message_visibility_batch(options = {}) options = options.merge(queue_url: @url) resp = @client.change_message_visibility_batch(options) resp.data end
[ "def", "change_message_visibility_batch", "(", "options", "=", "{", "}", ")", "options", "=", "options", ".", "merge", "(", "queue_url", ":", "@url", ")", "resp", "=", "@client", ".", "change_message_visibility_batch", "(", "options", ")", "resp", ".", "data",...
@example Request syntax with placeholder values queue.change_message_visibility_batch({ entries: [ # required { id: "String", # required receipt_handle: "String", # required visibility_timeout: 1, }, ], }) @param [Hash] options ({}) @option options [required, ...
[ "@example", "Request", "syntax", "with", "placeholder", "values" ]
e28b8d320ddf7b6ee0161bdd9d00fb786d99b63d
https://github.com/aws/aws-sdk-ruby/blob/e28b8d320ddf7b6ee0161bdd9d00fb786d99b63d/gems/aws-sdk-sqs/lib/aws-sdk-sqs/queue.rb#L143-L147
train
Change message visibility batch
[ 30522, 13366, 2689, 1035, 4471, 1035, 16476, 1035, 14108, 1006, 7047, 1027, 1063, 1065, 1007, 7047, 1027, 7047, 1012, 13590, 1006, 24240, 1035, 24471, 2140, 1024, 1030, 24471, 2140, 1007, 24501, 2361, 1027, 1030, 7396, 1012, 2689, 1035, 447...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
guard/guard
lib/guard/dsl.rb
Guard.Dsl.guard
def guard(name, options = {}) @plugin_options = options.merge(watchers: [], callbacks: []) yield if block_given? @current_groups ||= [] groups = @current_groups && @current_groups.last || [:default] groups.each do |group| opts = @plugin_options.merge(group: group) # TODO:...
ruby
def guard(name, options = {}) @plugin_options = options.merge(watchers: [], callbacks: []) yield if block_given? @current_groups ||= [] groups = @current_groups && @current_groups.last || [:default] groups.each do |group| opts = @plugin_options.merge(group: group) # TODO:...
[ "def", "guard", "(", "name", ",", "options", "=", "{", "}", ")", "@plugin_options", "=", "options", ".", "merge", "(", "watchers", ":", "[", "]", ",", "callbacks", ":", "[", "]", ")", "yield", "if", "block_given?", "@current_groups", "||=", "[", "]", ...
Declares a Guard plugin to be used when running `guard start`. The name parameter is usually the name of the gem without the 'guard-' prefix. The available options are different for each Guard implementation. @example Declare a Guard without `watch` patterns guard :rspec @example Declare a Guard with a `wat...
[ "Declares", "a", "Guard", "plugin", "to", "be", "used", "when", "running", "guard", "start", "." ]
e2508cd83badf0d537dbaba35d307adc35d92e4f
https://github.com/guard/guard/blob/e2508cd83badf0d537dbaba35d307adc35d92e4f/lib/guard/dsl.rb#L175-L189
train
Creates a new Guard instance.
[ 30522, 13366, 3457, 1006, 2171, 1010, 7047, 1027, 1063, 1065, 1007, 1030, 13354, 2378, 1035, 7047, 1027, 7047, 1012, 13590, 1006, 3422, 2545, 1024, 1031, 1033, 1010, 2655, 12221, 1024, 1031, 1033, 1007, 10750, 2065, 3796, 1035, 2445, 1029, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_logic/lib/2016-06-01/generated/azure_mgmt_logic/schemas.rb
Azure::Logic::Mgmt::V2016_06_01.Schemas.get_with_http_info
def get_with_http_info(resource_group_name, integration_account_name, schema_name, custom_headers:nil) get_async(resource_group_name, integration_account_name, schema_name, custom_headers:custom_headers).value! end
ruby
def get_with_http_info(resource_group_name, integration_account_name, schema_name, custom_headers:nil) get_async(resource_group_name, integration_account_name, schema_name, custom_headers:custom_headers).value! end
[ "def", "get_with_http_info", "(", "resource_group_name", ",", "integration_account_name", ",", "schema_name", ",", "custom_headers", ":", "nil", ")", "get_async", "(", "resource_group_name", ",", "integration_account_name", ",", "schema_name", ",", "custom_headers", ":cus...
Gets an integration account schema. @param resource_group_name [String] The resource group name. @param integration_account_name [String] The integration account name. @param schema_name [String] The integration account schema name. @param custom_headers [Hash{String => String}] A hash of custom headers that will...
[ "Gets", "an", "integration", "account", "schema", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_logic/lib/2016-06-01/generated/azure_mgmt_logic/schemas.rb#L152-L154
train
Gets the specified schema s index.
[ 30522, 13366, 2131, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 8346, 1035, 4070, 1035, 2171, 1010, 8040, 28433, 1035, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 2131, 1035, 2004, 6038, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
meew0/discordrb
lib/discordrb/bot.rb
Discordrb.Bot.delete_guild_member
def delete_guild_member(data) server_id = data['guild_id'].to_i server = self.server(server_id) user_id = data['user']['id'].to_i server.delete_member(user_id) rescue Discordrb::Errors::NoPermission Discordrb::LOGGER.warn("delete_guild_member attempted to access a server for which the...
ruby
def delete_guild_member(data) server_id = data['guild_id'].to_i server = self.server(server_id) user_id = data['user']['id'].to_i server.delete_member(user_id) rescue Discordrb::Errors::NoPermission Discordrb::LOGGER.warn("delete_guild_member attempted to access a server for which the...
[ "def", "delete_guild_member", "(", "data", ")", "server_id", "=", "data", "[", "'guild_id'", "]", ".", "to_i", "server", "=", "self", ".", "server", "(", "server_id", ")", "user_id", "=", "data", "[", "'user'", "]", "[", "'id'", "]", ".", "to_i", "serv...
Internal handler for GUILD_MEMBER_DELETE
[ "Internal", "handler", "for", "GUILD_MEMBER_DELETE" ]
764298a1ff0be69a1853b510d736f21c2b91a2fe
https://github.com/meew0/discordrb/blob/764298a1ff0be69a1853b510d736f21c2b91a2fe/lib/discordrb/bot.rb#L883-L891
train
Delete a member of a guild
[ 30522, 13366, 3972, 12870, 1035, 9054, 1035, 2266, 1006, 2951, 1007, 8241, 1035, 8909, 1027, 2951, 1031, 1005, 9054, 1035, 8909, 1005, 1033, 1012, 2000, 1035, 1045, 8241, 1027, 2969, 1012, 8241, 1006, 8241, 1035, 8909, 1007, 5310, 1035, 8...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
square/connect-ruby-sdk
lib/square_connect/models/address.rb
SquareConnect.Address.country=
def country=(country) validator = EnumAttributeValidator.new('String', ["ZZ", "AD", "AE", "AF", "AG", "AI", "AL", "AM", "AO", "AQ", "AR", "AS", "AT", "AU", "AW", "AX", "AZ", "BA", "BB", "BD", "BE", "BF", "BG", "BH", "BI", "BJ", "BL", "BM", "BN", "BO", "BQ", "BR", "BS", "BT", "BV", "BW", "BY", "BZ", "CA", "CC", "C...
ruby
def country=(country) validator = EnumAttributeValidator.new('String', ["ZZ", "AD", "AE", "AF", "AG", "AI", "AL", "AM", "AO", "AQ", "AR", "AS", "AT", "AU", "AW", "AX", "AZ", "BA", "BB", "BD", "BE", "BF", "BG", "BH", "BI", "BJ", "BL", "BM", "BN", "BO", "BQ", "BR", "BS", "BT", "BV", "BW", "BY", "BZ", "CA", "CC", "C...
[ "def", "country", "=", "(", "country", ")", "validator", "=", "EnumAttributeValidator", ".", "new", "(", "'String'", ",", "[", "\"ZZ\"", ",", "\"AD\"", ",", "\"AE\"", ",", "\"AF\"", ",", "\"AG\"", ",", "\"AI\"", ",", "\"AL\"", ",", "\"AM\"", ",", "\"AO\"...
Custom attribute writer method checking allowed values (enum). @param [Object] country Object to be assigned
[ "Custom", "attribute", "writer", "method", "checking", "allowed", "values", "(", "enum", ")", "." ]
798eb9ded716f23b9f1518386f1c311a34bca8bf
https://github.com/square/connect-ruby-sdk/blob/798eb9ded716f23b9f1518386f1c311a34bca8bf/lib/square_connect/models/address.rb#L211-L217
train
Returns the index of the specified country.
[ 30522, 13366, 2406, 1027, 1006, 2406, 1007, 9398, 8844, 1027, 4372, 12248, 4779, 3089, 8569, 2618, 10175, 8524, 4263, 1012, 2047, 1006, 1005, 5164, 1005, 1010, 1031, 1000, 1062, 2480, 1000, 1010, 1000, 4748, 1000, 1010, 1000, 29347, 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...
tongueroo/jets
lib/jets/controller/rack/adapter.rb
Jets::Controller::Rack.Adapter.process
def process status, headers, body = Jets.application.call(env) convert_to_api_gateway(status, headers, body) end
ruby
def process status, headers, body = Jets.application.call(env) convert_to_api_gateway(status, headers, body) end
[ "def", "process", "status", ",", "headers", ",", "body", "=", "Jets", ".", "application", ".", "call", "(", "env", ")", "convert_to_api_gateway", "(", "status", ",", "headers", ",", "body", ")", "end" ]
1. Convert API Gateway event event to Rack env 2. Process using full Rack middleware stack 3. Convert back to API gateway response structure payload
[ "1", ".", "Convert", "API", "Gateway", "event", "event", "to", "Rack", "env", "2", ".", "Process", "using", "full", "Rack", "middleware", "stack", "3", ".", "Convert", "back", "to", "API", "gateway", "response", "structure", "payload" ]
46943a519224067e58aa3e2d5656e3ca083150f9
https://github.com/tongueroo/jets/blob/46943a519224067e58aa3e2d5656e3ca083150f9/lib/jets/controller/rack/adapter.rb#L20-L23
train
process
[ 30522, 13366, 2832, 3570, 1010, 20346, 2015, 1010, 2303, 1027, 9924, 1012, 4646, 1012, 2655, 1006, 4372, 2615, 1007, 10463, 1035, 2000, 1035, 17928, 1035, 11909, 1006, 3570, 1010, 20346, 2015, 1010, 2303, 1007, 2203, 102, 0, 0, 0, 0, 0,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
puppetlabs/puppet
lib/puppet/type.rb
Puppet.Type.[]=
def []=(name,value) name = name.intern fail("no parameter named '#{name}'") unless self.class.validattr?(name) if name == :name && nv = name_var name = nv end raise Puppet::Error.new("Got nil value for #{name}") if value.nil? property = self.newattr(name) if property begin ...
ruby
def []=(name,value) name = name.intern fail("no parameter named '#{name}'") unless self.class.validattr?(name) if name == :name && nv = name_var name = nv end raise Puppet::Error.new("Got nil value for #{name}") if value.nil? property = self.newattr(name) if property begin ...
[ "def", "[]=", "(", "name", ",", "value", ")", "name", "=", "name", ".", "intern", "fail", "(", "\"no parameter named '#{name}'\"", ")", "unless", "self", ".", "class", ".", "validattr?", "(", "name", ")", "if", "name", "==", ":name", "&&", "nv", "=", "...
Sets the 'should' (wanted state) value of a property, or the value of a parameter. @return @raise [Puppet::Error] if the setting of the value fails, or if the given name is nil. @raise [Puppet::ResourceError] when the parameter validation raises Puppet::Error or ArgumentError
[ "Sets", "the", "should", "(", "wanted", "state", ")", "value", "of", "a", "property", "or", "the", "value", "of", "a", "parameter", "." ]
4baeed97cbb7571ddc6635f0a24debe2e8b22cd3
https://github.com/puppetlabs/puppet/blob/4baeed97cbb7571ddc6635f0a24debe2e8b22cd3/lib/puppet/type.rb#L665-L690
train
Set a parameter on the object.
[ 30522, 13366, 1031, 1033, 1027, 1006, 2171, 1010, 3643, 1007, 2171, 1027, 2171, 1012, 25204, 8246, 1006, 1000, 2053, 16381, 2315, 1005, 1001, 1063, 2171, 1065, 1005, 1000, 1007, 4983, 2969, 1012, 2465, 1012, 9398, 19321, 2099, 1029, 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_computervision/lib/1.0/generated/azure_cognitiveservices_computervision/computer_vision_client.rb
Azure::CognitiveServices::ComputerVision::V1_0.ComputerVisionClient.recognize_text_in_stream_with_http_info
def recognize_text_in_stream_with_http_info(image, detect_handwriting:false, custom_headers:nil) recognize_text_in_stream_async(image, detect_handwriting:detect_handwriting, custom_headers:custom_headers).value! end
ruby
def recognize_text_in_stream_with_http_info(image, detect_handwriting:false, custom_headers:nil) recognize_text_in_stream_async(image, detect_handwriting:detect_handwriting, custom_headers:custom_headers).value! end
[ "def", "recognize_text_in_stream_with_http_info", "(", "image", ",", "detect_handwriting", ":", "false", ",", "custom_headers", ":", "nil", ")", "recognize_text_in_stream_async", "(", "image", ",", "detect_handwriting", ":detect_handwriting", ",", "custom_headers", ":custom...
Recognize Text operation. When you use the Recognize Text interface, the response contains a field called 'Operation-Location'. The 'Operation-Location' field contains the URL that you must use for your Get Handwritten Text Operation Result operation. @param image An image stream. @param detect_handwriting [Boole...
[ "Recognize", "Text", "operation", ".", "When", "you", "use", "the", "Recognize", "Text", "interface", "the", "response", "contains", "a", "field", "called", "Operation", "-", "Location", ".", "The", "Operation", "-", "Location", "field", "contains", "the", "UR...
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_cognitiveservices_computervision/lib/1.0/generated/azure_cognitiveservices_computervision/computer_vision_client.rb#L2177-L2179
train
Recognizes text in a text stream.
[ 30522, 13366, 6807, 1035, 3793, 1035, 1999, 1035, 5460, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 3746, 30524, 2015, 1024, 7661, 1035, 20346, 2015, 1007, 1012, 3643, 999, 2203, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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/origins.rb
Azure::CDN::Mgmt::V2017_04_02.Origins.list_by_endpoint
def list_by_endpoint(resource_group_name, profile_name, endpoint_name, custom_headers:nil) first_page = list_by_endpoint_as_lazy(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers) first_page.get_all_items end
ruby
def list_by_endpoint(resource_group_name, profile_name, endpoint_name, custom_headers:nil) first_page = list_by_endpoint_as_lazy(resource_group_name, profile_name, endpoint_name, custom_headers:custom_headers) first_page.get_all_items end
[ "def", "list_by_endpoint", "(", "resource_group_name", ",", "profile_name", ",", "endpoint_name", ",", "custom_headers", ":", "nil", ")", "first_page", "=", "list_by_endpoint_as_lazy", "(", "resource_group_name", ",", "profile_name", ",", "endpoint_name", ",", "custom_h...
Lists all of the existing origins 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 w...
[ "Lists", "all", "of", "the", "existing", "origins", "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/origins.rb#L40-L43
train
Gets all the available vulnerability assessment rules for the endpoint.
[ 30522, 13366, 2862, 1035, 2011, 1035, 2203, 8400, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 6337, 1035, 2171, 1010, 2203, 8400, 1035, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 2034, 1035, 3931, 1027, 2862, 1035, 2011, 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...
grpc/grpc
src/ruby/lib/grpc/generic/active_call.rb
GRPC.ActiveCall.remote_send
def remote_send(req, marshalled = false) send_initial_metadata GRPC.logger.debug("sending #{req}, marshalled? #{marshalled}") payload = marshalled ? req : @marshal.call(req) @call.run_batch(SEND_MESSAGE => payload) end
ruby
def remote_send(req, marshalled = false) send_initial_metadata GRPC.logger.debug("sending #{req}, marshalled? #{marshalled}") payload = marshalled ? req : @marshal.call(req) @call.run_batch(SEND_MESSAGE => payload) end
[ "def", "remote_send", "(", "req", ",", "marshalled", "=", "false", ")", "send_initial_metadata", "GRPC", ".", "logger", ".", "debug", "(", "\"sending #{req}, marshalled? #{marshalled}\"", ")", "payload", "=", "marshalled", "?", "req", ":", "@marshal", ".", "call",...
remote_send sends a request to the remote endpoint. It blocks until the remote endpoint accepts the message. @param req [Object, String] the object to send or it's marshal form. @param marshalled [false, true] indicates if the object is already marshalled.
[ "remote_send", "sends", "a", "request", "to", "the", "remote", "endpoint", "." ]
f3937f0e55227a4ef3a23f895d3b204a947610f8
https://github.com/grpc/grpc/blob/f3937f0e55227a4ef3a23f895d3b204a947610f8/src/ruby/lib/grpc/generic/active_call.rb#L191-L196
train
Send a request to the remote server.
[ 30522, 30524, 1006, 1000, 6016, 1001, 1063, 2128, 4160, 1065, 1010, 5832, 2098, 1029, 1001, 1063, 5832, 2098, 1065, 1000, 1007, 18093, 1027, 5832, 2098, 1029, 2128, 4160, 1024, 1030, 8610, 1012, 2655, 1006, 2128, 4160, 1007, 1030, 2655, 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_service_fabric/lib/6.2.0.9/generated/azure_service_fabric/service_fabric_client_apis.rb
Azure::ServiceFabric::V6_2_0_9.ServiceFabricClientAPIs.report_application_health_with_http_info
def report_application_health_with_http_info(application_id, health_information, immediate:false, timeout:60, custom_headers:nil) report_application_health_async(application_id, health_information, immediate:immediate, timeout:timeout, custom_headers:custom_headers).value! end
ruby
def report_application_health_with_http_info(application_id, health_information, immediate:false, timeout:60, custom_headers:nil) report_application_health_async(application_id, health_information, immediate:immediate, timeout:timeout, custom_headers:custom_headers).value! end
[ "def", "report_application_health_with_http_info", "(", "application_id", ",", "health_information", ",", "immediate", ":", "false", ",", "timeout", ":", "60", ",", "custom_headers", ":", "nil", ")", "report_application_health_async", "(", "application_id", ",", "health...
Sends a health report on the Service Fabric application. Reports health state of the specified Service Fabric application. The report must contain the information about the source of the health report and property on which it is reported. The report is sent to a Service Fabric gateway Application, which forwards t...
[ "Sends", "a", "health", "report", "on", "the", "Service", "Fabric", "application", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_service_fabric/lib/6.2.0.9/generated/azure_service_fabric/service_fabric_client_apis.rb#L7602-L7604
train
Report application health.
[ 30522, 13366, 3189, 1035, 4646, 1035, 2740, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 4646, 1035, 8909, 1010, 2740, 1035, 2592, 1010, 6234, 1024, 6270, 1010, 2051, 5833, 1024, 3438, 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...
sporkmonger/addressable
lib/addressable/uri.rb
Addressable.URI.normalized_userinfo
def normalized_userinfo return nil unless self.userinfo return @normalized_userinfo if defined?(@normalized_userinfo) @normalized_userinfo ||= begin current_user = self.normalized_user current_password = self.normalized_password if !current_user && !current_password n...
ruby
def normalized_userinfo return nil unless self.userinfo return @normalized_userinfo if defined?(@normalized_userinfo) @normalized_userinfo ||= begin current_user = self.normalized_user current_password = self.normalized_password if !current_user && !current_password n...
[ "def", "normalized_userinfo", "return", "nil", "unless", "self", ".", "userinfo", "return", "@normalized_userinfo", "if", "defined?", "(", "@normalized_userinfo", ")", "@normalized_userinfo", "||=", "begin", "current_user", "=", "self", ".", "normalized_user", "current_...
The userinfo component for this URI, normalized. @return [String] The userinfo component, normalized.
[ "The", "userinfo", "component", "for", "this", "URI", "normalized", "." ]
5894c95a7768435cb46d1355954611dbd194832e
https://github.com/sporkmonger/addressable/blob/5894c95a7768435cb46d1355954611dbd194832e/lib/addressable/uri.rb#L1035-L1054
train
Returns the normalized userinfo object for this object.
[ 30522, 13366, 3671, 3550, 1035, 5310, 2378, 14876, 2709, 9152, 2140, 4983, 2969, 1012, 5310, 2378, 14876, 2709, 1030, 3671, 3550, 1035, 5310, 2378, 14876, 2065, 4225, 1029, 1006, 1030, 3671, 3550, 1035, 5310, 2378, 14876, 1007, 1030, 3671, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
data/azure_cognitiveservices_luisauthoring/lib/2.0/generated/azure_cognitiveservices_luisauthoring/model.rb
Azure::CognitiveServices::LuisAuthoring::V2_0.Model.update_hierarchical_entity_with_http_info
def update_hierarchical_entity_with_http_info(app_id, version_id, h_entity_id, hierarchical_model_update_object, custom_headers:nil) update_hierarchical_entity_async(app_id, version_id, h_entity_id, hierarchical_model_update_object, custom_headers:custom_headers).value! end
ruby
def update_hierarchical_entity_with_http_info(app_id, version_id, h_entity_id, hierarchical_model_update_object, custom_headers:nil) update_hierarchical_entity_async(app_id, version_id, h_entity_id, hierarchical_model_update_object, custom_headers:custom_headers).value! end
[ "def", "update_hierarchical_entity_with_http_info", "(", "app_id", ",", "version_id", ",", "h_entity_id", ",", "hierarchical_model_update_object", ",", "custom_headers", ":", "nil", ")", "update_hierarchical_entity_async", "(", "app_id", ",", "version_id", ",", "h_entity_id...
Updates the name and children of a hierarchical entity model in a version of the application. @param app_id The application ID. @param version_id [String] The version ID. @param h_entity_id The hierarchical entity extractor ID. @param hierarchical_model_update_object [HierarchicalEntityModel] Model containing na...
[ "Updates", "the", "name", "and", "children", "of", "a", "hierarchical", "entity", "model", "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#L2548-L2550
train
Updates a hierarchical entity.
[ 30522, 13366, 10651, 1035, 25835, 1035, 9178, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 10439, 1035, 8909, 1010, 2544, 1035, 8909, 1010, 1044, 1035, 9178, 1035, 8909, 1010, 25835, 1035, 2944, 1035, 10651, 1035, 4874, 1010, 7661, 1035, 2034...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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/attachments_helper.rb
Decidim.AttachmentsHelper.attachment_title
def attachment_title(attachment) attachment.title.is_a?(Hash) ? translated_attribute(attachment.title) : attachment.title end
ruby
def attachment_title(attachment) attachment.title.is_a?(Hash) ? translated_attribute(attachment.title) : attachment.title end
[ "def", "attachment_title", "(", "attachment", ")", "attachment", ".", "title", ".", "is_a?", "(", "Hash", ")", "?", "translated_attribute", "(", "attachment", ".", "title", ")", ":", "attachment", ".", "title", "end" ]
Renders the attachment's title. Checks if the attachment's title is translated or not and use the correct render method. attachment - An Attachment object Returns String.
[ "Renders", "the", "attachment", "s", "title", ".", "Checks", "if", "the", "attachment", "s", "title", "is", "translated", "or", "not", "and", "use", "the", "correct", "render", "method", "." ]
6e2b14e559a63088669904e3c5c49a5180700cf7
https://github.com/decidim/decidim/blob/6e2b14e559a63088669904e3c5c49a5180700cf7/decidim-core/app/helpers/decidim/attachments_helper.rb#L23-L25
train
Returns the title of the attachment
[ 30522, 13366, 14449, 1035, 2516, 1006, 14449, 1007, 14449, 1012, 2516, 1012, 2003, 1035, 1037, 1029, 1006, 23325, 1007, 1029, 5421, 1035, 17961, 1006, 14449, 1012, 30524, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
piotrmurach/github
lib/github_api/client/git_data/references.rb
Github.Client::GitData::References.get
def get(*args) arguments(args, required: [:user, :repo, :ref]) validate_reference arguments.ref params = arguments.params get_request("/repos/#{arguments.user}/#{arguments.repo}/git/refs/#{arguments.ref}", params) end
ruby
def get(*args) arguments(args, required: [:user, :repo, :ref]) validate_reference arguments.ref params = arguments.params get_request("/repos/#{arguments.user}/#{arguments.repo}/git/refs/#{arguments.ref}", params) end
[ "def", "get", "(", "*", "args", ")", "arguments", "(", "args", ",", "required", ":", "[", ":user", ",", ":repo", ",", ":ref", "]", ")", "validate_reference", "arguments", ".", "ref", "params", "=", "arguments", ".", "params", "get_request", "(", "\"/repo...
Get a reference The ref in the URL must be formatted as <tt>heads/branch</tt>, not just branch. For example, the call to get the data for a branch named sc/featureA would be formatted as heads/sc/featureA @example github = Github.new github.git_data.references.get 'user-name', 'repo-name', 'heads/branch' @a...
[ "Get", "a", "reference" ]
8702452c66bea33c9388550aed9e9974f76aaef1
https://github.com/piotrmurach/github/blob/8702452c66bea33c9388550aed9e9974f76aaef1/lib/github_api/client/git_data/references.rb#L59-L65
train
Get a reference
[ 30522, 13366, 2131, 1006, 1008, 12098, 5620, 1007, 9918, 1006, 12098, 5620, 1010, 3223, 1024, 1031, 1024, 5310, 1010, 1024, 16360, 2080, 1010, 1024, 25416, 1033, 1007, 9398, 3686, 1035, 4431, 9918, 1012, 25416, 11498, 5244, 1027, 9918, 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...
mongodb/mongoid
lib/mongoid/changeable.rb
Mongoid.Changeable.reset_attribute!
def reset_attribute!(attr) attr = database_field_name(attr) attributes[attr] = changed_attributes.delete(attr) if attribute_changed?(attr) end
ruby
def reset_attribute!(attr) attr = database_field_name(attr) attributes[attr] = changed_attributes.delete(attr) if attribute_changed?(attr) end
[ "def", "reset_attribute!", "(", "attr", ")", "attr", "=", "database_field_name", "(", "attr", ")", "attributes", "[", "attr", "]", "=", "changed_attributes", ".", "delete", "(", "attr", ")", "if", "attribute_changed?", "(", "attr", ")", "end" ]
Set the attribute back to its old value. @example Reset the attribute. model.reset_attribute!("name") @param [ String ] attr The name of the attribute. @return [ Object ] The old value. @since 2.4.0
[ "Set", "the", "attribute", "back", "to", "its", "old", "value", "." ]
56976e32610f4c2450882b0bfe14da099f0703f4
https://github.com/mongodb/mongoid/blob/56976e32610f4c2450882b0bfe14da099f0703f4/lib/mongoid/changeable.rb#L245-L248
train
Reset the attribute to the original value
[ 30522, 13366, 25141, 1035, 17961, 999, 1006, 2012, 16344, 1007, 2012, 16344, 1027, 7809, 1035, 2492, 1035, 2171, 1006, 2012, 16344, 1007, 12332, 1031, 2012, 16344, 1033, 1027, 2904, 1035, 12332, 1012, 3972, 12870, 1006, 2012, 16344, 1007, 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...
mongodb/mongo-ruby-driver
lib/mongo/bulk_write.rb
Mongo.BulkWrite.execute
def execute operation_id = Monitoring.next_operation_id result_combiner = ResultCombiner.new operations = op_combiner.combine client.send(:with_session, @options) do |session| operations.each do |operation| if single_statement?(operation) write_with_retry(session, ...
ruby
def execute operation_id = Monitoring.next_operation_id result_combiner = ResultCombiner.new operations = op_combiner.combine client.send(:with_session, @options) do |session| operations.each do |operation| if single_statement?(operation) write_with_retry(session, ...
[ "def", "execute", "operation_id", "=", "Monitoring", ".", "next_operation_id", "result_combiner", "=", "ResultCombiner", ".", "new", "operations", "=", "op_combiner", ".", "combine", "client", ".", "send", "(", ":with_session", ",", "@options", ")", "do", "|", "...
Execute the bulk write operation. @example Execute the bulk write. bulk_write.execute @return [ Mongo::BulkWrite::Result ] The result. @since 2.1.0
[ "Execute", "the", "bulk", "write", "operation", "." ]
dca26d0870cb3386fad9ccc1d17228097c1fe1c8
https://github.com/mongodb/mongo-ruby-driver/blob/dca26d0870cb3386fad9ccc1d17228097c1fe1c8/lib/mongo/bulk_write.rb#L53-L85
train
Execute the sequence of operations in the cluster.
[ 30522, 13366, 15389, 3169, 1035, 8909, 1027, 8822, 1012, 2279, 1035, 3169, 1035, 8909, 2765, 1035, 11506, 2099, 1027, 2765, 18274, 26455, 1012, 2047, 3136, 1027, 6728, 1035, 11506, 2099, 1012, 11506, 7396, 1012, 4604, 1006, 1024, 2007, 1035...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
aws/aws-sdk-ruby
gems/aws-sdk-core/lib/aws-sdk-core/client_stubs.rb
Aws.ClientStubs.stub_data
def stub_data(operation_name, data = {}) Stubbing::StubData.new(config.api.operation(operation_name)).stub(data) end
ruby
def stub_data(operation_name, data = {}) Stubbing::StubData.new(config.api.operation(operation_name)).stub(data) end
[ "def", "stub_data", "(", "operation_name", ",", "data", "=", "{", "}", ")", "Stubbing", "::", "StubData", ".", "new", "(", "config", ".", "api", ".", "operation", "(", "operation_name", ")", ")", ".", "stub", "(", "data", ")", "end" ]
Generates and returns stubbed response data from the named operation. s3 = Aws::S3::Client.new s3.stub_data(:list_buckets) #=> #<struct Aws::S3::Types::ListBucketsOutput buckets=[], owner=#<struct Aws::S3::Types::Owner display_name="DisplayName", id="ID">> In addition to generating default stubs, you ...
[ "Generates", "and", "returns", "stubbed", "response", "data", "from", "the", "named", "operation", "." ]
e28b8d320ddf7b6ee0161bdd9d00fb786d99b63d
https://github.com/aws/aws-sdk-ruby/blob/e28b8d320ddf7b6ee0161bdd9d00fb786d99b63d/gems/aws-sdk-core/lib/aws-sdk-core/client_stubs.rb#L224-L226
train
Stubs the data for the operation
[ 30522, 13366, 24646, 2497, 1035, 2951, 1006, 3169, 1035, 2171, 1010, 2951, 1027, 1063, 1065, 1007, 24646, 23200, 1024, 1024, 24646, 2497, 2850, 2696, 1012, 2047, 1006, 9530, 8873, 2290, 1012, 17928, 1012, 3169, 1006, 3169, 1035, 2171, 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_dns/lib/2017-09-01/generated/azure_mgmt_dns/record_sets.rb
Azure::Dns::Mgmt::V2017_09_01.RecordSets.list_by_dns_zone_next
def list_by_dns_zone_next(next_page_link, custom_headers:nil) response = list_by_dns_zone_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def list_by_dns_zone_next(next_page_link, custom_headers:nil) response = list_by_dns_zone_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "list_by_dns_zone_next", "(", "next_page_link", ",", "custom_headers", ":", "nil", ")", "response", "=", "list_by_dns_zone_next_async", "(", "next_page_link", ",", "custom_headers", ":custom_headers", ")", ".", "value!", "response", ".", "body", "unless", "resp...
Lists all record sets in a DNS zone. @param next_page_link [String] The NextLink from the previous successful call to List operation. @param custom_headers [Hash{String => String}] A hash of custom headers that will be added to the HTTP request. @return [RecordSetListResult] operation results.
[ "Lists", "all", "record", "sets", "in", "a", "DNS", "zone", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_dns/lib/2017-09-01/generated/azure_mgmt_dns/record_sets.rb#L928-L931
train
Gets the list of all the DNS rules in a DNS zone.
[ 30522, 13366, 2862, 1035, 2011, 1035, 1040, 3619, 1035, 4224, 1035, 2279, 1006, 2279, 1035, 3931, 1035, 4957, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 2862, 1035, 2011, 1035, 1040, 3619, 1035, 4224, 1035, 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_web/lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb
Azure::Web::Mgmt::V2018_02_01.Diagnostics.get_site_analysis
def get_site_analysis(resource_group_name, site_name, diagnostic_category, analysis_name, custom_headers:nil) response = get_site_analysis_async(resource_group_name, site_name, diagnostic_category, analysis_name, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def get_site_analysis(resource_group_name, site_name, diagnostic_category, analysis_name, custom_headers:nil) response = get_site_analysis_async(resource_group_name, site_name, diagnostic_category, analysis_name, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "get_site_analysis", "(", "resource_group_name", ",", "site_name", ",", "diagnostic_category", ",", "analysis_name", ",", "custom_headers", ":", "nil", ")", "response", "=", "get_site_analysis_async", "(", "resource_group_name", ",", "site_name", ",", "diagnostic...
Get Site Analysis Get Site Analysis @param resource_group_name [String] Name of the resource group to which the resource belongs. @param site_name [String] Site Name @param diagnostic_category [String] Diagnostic Category @param analysis_name [String] Analysis Name @param custom_headers [Hash{String => String}...
[ "Get", "Site", "Analysis" ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_web/lib/2018-02-01/generated/azure_mgmt_web/diagnostics.rb#L803-L806
train
Gets the specified site analysis.
[ 30522, 13366, 2131, 1035, 2609, 1035, 4106, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 2609, 1035, 2171, 1010, 16474, 1035, 4696, 1010, 4106, 1035, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 2131, 1035, 2609, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
piotrmurach/github
lib/github_api/client/issues/milestones.rb
Github.Client::Issues::Milestones.list
def list(*args) arguments(args, required: [:user, :repo]) do permit VALID_MILESTONE_OPTIONS.keys assert_values VALID_MILESTONE_OPTIONS end response = get_request("/repos/#{arguments.user}/#{arguments.repo}/milestones", arguments.params) return response unless block_given? ...
ruby
def list(*args) arguments(args, required: [:user, :repo]) do permit VALID_MILESTONE_OPTIONS.keys assert_values VALID_MILESTONE_OPTIONS end response = get_request("/repos/#{arguments.user}/#{arguments.repo}/milestones", arguments.params) return response unless block_given? ...
[ "def", "list", "(", "*", "args", ")", "arguments", "(", "args", ",", "required", ":", "[", ":user", ",", ":repo", "]", ")", "do", "permit", "VALID_MILESTONE_OPTIONS", ".", "keys", "assert_values", "VALID_MILESTONE_OPTIONS", "end", "response", "=", "get_request...
:nodoc: List milestones for a repository @param [Hash] params @option params [String] :state The state of the milestone. Either open, closed, or all. Default: open @option params [String] :sort What to sort results by. Either due_date or completeness. Default: due_date @option params [String] :direction ...
[ ":", "nodoc", ":", "List", "milestones", "for", "a", "repository" ]
8702452c66bea33c9388550aed9e9974f76aaef1
https://github.com/piotrmurach/github/blob/8702452c66bea33c9388550aed9e9974f76aaef1/lib/github_api/client/issues/milestones.rb#L41-L50
train
List all milestones
[ 30522, 13366, 2862, 1006, 1008, 12098, 5620, 1007, 9918, 1006, 12098, 5620, 1010, 3223, 1024, 1031, 1024, 5310, 1010, 1024, 16360, 2080, 1033, 1007, 2079, 9146, 9398, 1035, 19199, 1035, 7047, 1012, 6309, 20865, 1035, 5300, 9398, 1035, 19199...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
hashicorp/vagrant
lib/vagrant/machine_index.rb
Vagrant.MachineIndex.lock_machine
def lock_machine(uuid) lock_path = @data_dir.join("#{uuid}.lock") lock_file = lock_path.open("w+") if lock_file.flock(File::LOCK_EX | File::LOCK_NB) === false lock_file.close lock_file = nil end lock_file end
ruby
def lock_machine(uuid) lock_path = @data_dir.join("#{uuid}.lock") lock_file = lock_path.open("w+") if lock_file.flock(File::LOCK_EX | File::LOCK_NB) === false lock_file.close lock_file = nil end lock_file end
[ "def", "lock_machine", "(", "uuid", ")", "lock_path", "=", "@data_dir", ".", "join", "(", "\"#{uuid}.lock\"", ")", "lock_file", "=", "lock_path", ".", "open", "(", "\"w+\"", ")", "if", "lock_file", ".", "flock", "(", "File", "::", "LOCK_EX", "|", "File", ...
Locks a machine exclusively to us, returning the file handle that holds the lock. If the lock cannot be acquired, then nil is returned. This should be called within an index lock. @return [File]
[ "Locks", "a", "machine", "exclusively", "to", "us", "returning", "the", "file", "handle", "that", "holds", "the", "lock", "." ]
c22a145c59790c098f95d50141d9afb48e1ef55f
https://github.com/hashicorp/vagrant/blob/c22a145c59790c098f95d50141d9afb48e1ef55f/lib/vagrant/machine_index.rb#L255-L264
train
Lock a machine
[ 30522, 13366, 5843, 1035, 3698, 1006, 1057, 21272, 1007, 5843, 1035, 4130, 1027, 1030, 2951, 1035, 16101, 1012, 3693, 1006, 1000, 1001, 1063, 1057, 21272, 1065, 1012, 5843, 1000, 1007, 5843, 1035, 5371, 1027, 5843, 1035, 4130, 1012, 2330, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
fastlane/fastlane
spaceship/lib/spaceship/client.rb
Spaceship.Client.fastlane_user_dir
def fastlane_user_dir path = File.expand_path(File.join(Dir.home, ".fastlane")) FileUtils.mkdir_p(path) unless File.directory?(path) return path end
ruby
def fastlane_user_dir path = File.expand_path(File.join(Dir.home, ".fastlane")) FileUtils.mkdir_p(path) unless File.directory?(path) return path end
[ "def", "fastlane_user_dir", "path", "=", "File", ".", "expand_path", "(", "File", ".", "join", "(", "Dir", ".", "home", ",", "\".fastlane\"", ")", ")", "FileUtils", ".", "mkdir_p", "(", "path", ")", "unless", "File", ".", "directory?", "(", "path", ")", ...
This is a duplicate method of fastlane_core/fastlane_core.rb#fastlane_user_dir
[ "This", "is", "a", "duplicate", "method", "of", "fastlane_core", "/", "fastlane_core", ".", "rb#fastlane_user_dir" ]
457c5d647c77f0e078dafa5129da616914e002c5
https://github.com/fastlane/fastlane/blob/457c5d647c77f0e078dafa5129da616914e002c5/spaceship/lib/spaceship/client.rb#L277-L281
train
Returns the path to the fastlane user directory.
[ 30522, 13366, 3435, 20644, 1035, 5310, 1035, 16101, 4130, 1027, 5371, 1012, 7818, 1035, 4130, 1006, 5371, 1012, 3693, 1006, 16101, 1012, 2188, 1010, 1000, 1012, 3435, 20644, 1000, 1007, 1007, 5371, 21823, 4877, 1012, 12395, 4305, 2099, 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_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/group_users.rb
Azure::ApiManagement::Mgmt::V2016_07_07.GroupUsers.add_with_http_info
def add_with_http_info(resource_group_name, service_name, group_id, uid, custom_headers:nil) add_async(resource_group_name, service_name, group_id, uid, custom_headers:custom_headers).value! end
ruby
def add_with_http_info(resource_group_name, service_name, group_id, uid, custom_headers:nil) add_async(resource_group_name, service_name, group_id, uid, custom_headers:custom_headers).value! end
[ "def", "add_with_http_info", "(", "resource_group_name", ",", "service_name", ",", "group_id", ",", "uid", ",", "custom_headers", ":", "nil", ")", "add_async", "(", "resource_group_name", ",", "service_name", ",", "group_id", ",", "uid", ",", "custom_headers", ":c...
Adds a user to the specified group. @param resource_group_name [String] The name of the resource group. @param service_name [String] The name of the API Management service. @param group_id [String] Group identifier. Must be unique in the current API Management service instance. @param uid [String] User identifier...
[ "Adds", "a", "user", "to", "the", "specified", "group", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/group_users.rb#L221-L223
train
Adds a new group to the list of existing groups.
[ 30522, 13366, 5587, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 2326, 1035, 2171, 1010, 2177, 1035, 8909, 1010, 21318, 2094, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 5587, 1035, 2004, 6038, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Katello/katello
app/models/katello/content_view.rb
Katello.ContentView.as_json
def as_json(options = {}) result = self.attributes result['organization'] = self.organization.try(:name) result['environments'] = environments.map { |e| e.try(:name) } result['versions'] = versions.map(&:version) result['versions_details'] = versions.map do |v| { :version...
ruby
def as_json(options = {}) result = self.attributes result['organization'] = self.organization.try(:name) result['environments'] = environments.map { |e| e.try(:name) } result['versions'] = versions.map(&:version) result['versions_details'] = versions.map do |v| { :version...
[ "def", "as_json", "(", "options", "=", "{", "}", ")", "result", "=", "self", ".", "attributes", "result", "[", "'organization'", "]", "=", "self", ".", "organization", ".", "try", "(", ":name", ")", "result", "[", "'environments'", "]", "=", "environment...
NOTE: this function will most likely become obsolete once we drop api v1
[ "NOTE", ":", "this", "function", "will", "most", "likely", "become", "obsolete", "once", "we", "drop", "api", "v1" ]
a1c9280067607999cae43bab89b53ba870856b76
https://github.com/Katello/katello/blob/a1c9280067607999cae43bab89b53ba870856b76/app/models/katello/content_view.rb#L187-L205
train
Returns a hash of the attributes as JSON.
[ 30522, 13366, 2004, 1035, 1046, 3385, 1006, 7047, 1027, 1063, 1065, 1007, 2765, 1027, 2969, 1012, 12332, 2765, 1031, 1005, 3029, 1005, 1033, 1027, 2969, 1012, 3029, 1012, 3046, 1006, 1024, 2171, 1007, 2765, 1031, 1005, 10058, 1005, 1033, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
data/azure_service_fabric/lib/6.2.0.9/generated/azure_service_fabric/service_fabric_client_apis.rb
Azure::ServiceFabric::V6_2_0_9.ServiceFabricClientAPIs.cancel_operation_with_http_info
def cancel_operation_with_http_info(operation_id, force, timeout:60, custom_headers:nil) cancel_operation_async(operation_id, force, timeout:timeout, custom_headers:custom_headers).value! end
ruby
def cancel_operation_with_http_info(operation_id, force, timeout:60, custom_headers:nil) cancel_operation_async(operation_id, force, timeout:timeout, custom_headers:custom_headers).value! end
[ "def", "cancel_operation_with_http_info", "(", "operation_id", ",", "force", ",", "timeout", ":", "60", ",", "custom_headers", ":", "nil", ")", "cancel_operation_async", "(", "operation_id", ",", "force", ",", "timeout", ":", "timeout", ",", "custom_headers", ":cu...
Cancels a user-induced fault operation. The following is a list of APIs that start fault operations that may be cancelled using CancelOperation - - StartDataLoss - StartQuorumLoss - StartPartitionRestart - StartNodeTransition If force is false, then the specified user-induced operation will be gracefully stop...
[ "Cancels", "a", "user", "-", "induced", "fault", "operation", "." ]
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#L22113-L22115
train
Cancels an operation.
[ 30522, 13366, 17542, 1035, 3169, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 3169, 1035, 8909, 1010, 2486, 1010, 2051, 5833, 1024, 3438, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 17542, 1035, 3169, 1035, 2004, 6038, 2278, 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...
jnunemaker/flipper
lib/flipper/dsl.rb
Flipper.DSL.feature
def feature(name) if !name.is_a?(String) && !name.is_a?(Symbol) raise ArgumentError, "#{name} must be a String or Symbol" end @memoized_features[name.to_sym] ||= Feature.new(name, @adapter, instrumenter: instrumenter) end
ruby
def feature(name) if !name.is_a?(String) && !name.is_a?(Symbol) raise ArgumentError, "#{name} must be a String or Symbol" end @memoized_features[name.to_sym] ||= Feature.new(name, @adapter, instrumenter: instrumenter) end
[ "def", "feature", "(", "name", ")", "if", "!", "name", ".", "is_a?", "(", "String", ")", "&&", "!", "name", ".", "is_a?", "(", "Symbol", ")", "raise", "ArgumentError", ",", "\"#{name} must be a String or Symbol\"", "end", "@memoized_features", "[", "name", "...
Public: Access a feature instance by name. name - The String or Symbol name of the feature. Returns an instance of Flipper::Feature.
[ "Public", ":", "Access", "a", "feature", "instance", "by", "name", "." ]
df0352b663ad3ed45d68710f10a8170249ff9d78
https://github.com/jnunemaker/flipper/blob/df0352b663ad3ed45d68710f10a8170249ff9d78/lib/flipper/dsl.rb#L177-L183
train
Creates a new feature object for the given name.
[ 30522, 13366, 3444, 1006, 2171, 1007, 2065, 999, 2171, 1012, 2003, 1035, 1037, 1029, 1006, 5164, 1007, 1004, 1004, 999, 2171, 1012, 2003, 1035, 1037, 1029, 1006, 6454, 1007, 5333, 6685, 30524, 6602, 2121, 1007, 2203, 102, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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_usages
def list_usages(resource_group_name, name, filter:nil, custom_headers:nil) first_page = list_usages_as_lazy(resource_group_name, name, filter:filter, custom_headers:custom_headers) first_page.get_all_items end
ruby
def list_usages(resource_group_name, name, filter:nil, custom_headers:nil) first_page = list_usages_as_lazy(resource_group_name, name, filter:filter, custom_headers:custom_headers) first_page.get_all_items end
[ "def", "list_usages", "(", "resource_group_name", ",", "name", ",", "filter", ":", "nil", ",", "custom_headers", ":", "nil", ")", "first_page", "=", "list_usages_as_lazy", "(", "resource_group_name", ",", "name", ",", "filter", ":", "filter", ",", "custom_header...
Get global usage metrics of an App Service Environment. Get global usage metrics 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 filter [String] Return only usages/metrics...
[ "Get", "global", "usage", "metrics", "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#L2931-L2934
train
Gets all the usages of a virtual machine.
[ 30522, 13366, 2862, 1035, 8192, 2015, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 2171, 1010, 11307, 1024, 9152, 2140, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 2034, 1035, 3931, 1027, 2862, 1035, 8192, 2015, 1035, 2004, 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_stor_simple8000_series/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/backup_schedules.rb
Azure::StorSimple8000Series::Mgmt::V2017_06_01.BackupSchedules.create_or_update_async
def create_or_update_async(device_name, backup_policy_name, backup_schedule_name, parameters, resource_group_name, manager_name, custom_headers:nil) # Send request promise = begin_create_or_update_async(device_name, backup_policy_name, backup_schedule_name, parameters, resource_group_name, manager_name, cus...
ruby
def create_or_update_async(device_name, backup_policy_name, backup_schedule_name, parameters, resource_group_name, manager_name, custom_headers:nil) # Send request promise = begin_create_or_update_async(device_name, backup_policy_name, backup_schedule_name, parameters, resource_group_name, manager_name, cus...
[ "def", "create_or_update_async", "(", "device_name", ",", "backup_policy_name", ",", "backup_schedule_name", ",", "parameters", ",", "resource_group_name", ",", "manager_name", ",", "custom_headers", ":", "nil", ")", "# Send request", "promise", "=", "begin_create_or_upda...
@param device_name [String] The device name @param backup_policy_name [String] The backup policy name. @param backup_schedule_name [String] The backup schedule name. @param parameters [BackupSchedule] The backup schedule. @param resource_group_name [String] The resource group name @param manager_name [String] The ...
[ "@param", "device_name", "[", "String", "]", "The", "device", "name", "@param", "backup_policy_name", "[", "String", "]", "The", "backup", "policy", "name", ".", "@param", "backup_schedule_name", "[", "String", "]", "The", "backup", "schedule", "name", ".", "@...
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_stor_simple8000_series/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/backup_schedules.rb#L267-L283
train
Creates or updates a backup schedule.
[ 30522, 13366, 3443, 1035, 2030, 1035, 10651, 1035, 2004, 6038, 2278, 1006, 5080, 1035, 2171, 1010, 10200, 1035, 3343, 1035, 2171, 1010, 10200, 1035, 6134, 1035, 2171, 1010, 11709, 1010, 7692, 1035, 2177, 1035, 2171, 1010, 3208, 1035, 2171, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_logic/lib/2016-06-01/generated/azure_mgmt_logic/partners.rb
Azure::Logic::Mgmt::V2016_06_01.Partners.create_or_update
def create_or_update(resource_group_name, integration_account_name, partner_name, partner, custom_headers:nil) response = create_or_update_async(resource_group_name, integration_account_name, partner_name, partner, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def create_or_update(resource_group_name, integration_account_name, partner_name, partner, custom_headers:nil) response = create_or_update_async(resource_group_name, integration_account_name, partner_name, partner, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "create_or_update", "(", "resource_group_name", ",", "integration_account_name", ",", "partner_name", ",", "partner", ",", "custom_headers", ":", "nil", ")", "response", "=", "create_or_update_async", "(", "resource_group_name", ",", "integration_account_name", ","...
Creates or updates an integration account partner. @param resource_group_name [String] The resource group name. @param integration_account_name [String] The integration account name. @param partner_name [String] The integration account partner name. @param partner [IntegrationAccountPartner] The integration accoun...
[ "Creates", "or", "updates", "an", "integration", "account", "partner", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_logic/lib/2016-06-01/generated/azure_mgmt_logic/partners.rb#L233-L236
train
Creates or updates an integration account partner.
[ 30522, 13366, 3443, 1035, 2030, 1035, 10651, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 8346, 1035, 4070, 1035, 2171, 1010, 4256, 1035, 2171, 1010, 4256, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 3443, 1035, 2030, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
rails/rails
actionview/lib/action_view/renderer/template_renderer.rb
ActionView.TemplateRenderer.render_template
def render_template(view, template, layout_name, locals) render_with_layout(view, template, layout_name, locals) do |layout| instrument(:template, identifier: template.identifier, layout: layout.try(:virtual_path)) do template.render(view, locals) { |*name| view._layout_for(*name) } ...
ruby
def render_template(view, template, layout_name, locals) render_with_layout(view, template, layout_name, locals) do |layout| instrument(:template, identifier: template.identifier, layout: layout.try(:virtual_path)) do template.render(view, locals) { |*name| view._layout_for(*name) } ...
[ "def", "render_template", "(", "view", ",", "template", ",", "layout_name", ",", "locals", ")", "render_with_layout", "(", "view", ",", "template", ",", "layout_name", ",", "locals", ")", "do", "|", "layout", "|", "instrument", "(", ":template", ",", "identi...
Renders the given template. A string representing the layout can be supplied as well.
[ "Renders", "the", "given", "template", ".", "A", "string", "representing", "the", "layout", "can", "be", "supplied", "as", "well", "." ]
85a8bc644be69908f05740a5886ec19cd3679df5
https://github.com/rails/rails/blob/85a8bc644be69908f05740a5886ec19cd3679df5/actionview/lib/action_view/renderer/template_renderer.rb#L56-L62
train
Renders a template with the given name.
[ 30522, 13366, 17552, 1035, 23561, 1006, 3193, 1010, 23561, 1010, 9621, 1035, 2171, 1010, 10575, 1007, 17552, 1035, 2007, 1035, 9621, 1006, 3193, 1010, 23561, 1010, 9621, 1035, 2171, 1010, 10575, 1007, 2079, 1064, 9621, 1064, 6602, 1006, 102...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_labservices/lib/2018-10-15/generated/azure_mgmt_labservices/environments.rb
Azure::Labservices::Mgmt::V2018_10_15.Environments.claim
def claim(resource_group_name, lab_account_name, lab_name, environment_setting_name, environment_name, custom_headers:nil) response = claim_async(resource_group_name, lab_account_name, lab_name, environment_setting_name, environment_name, custom_headers:custom_headers).value! nil end
ruby
def claim(resource_group_name, lab_account_name, lab_name, environment_setting_name, environment_name, custom_headers:nil) response = claim_async(resource_group_name, lab_account_name, lab_name, environment_setting_name, environment_name, custom_headers:custom_headers).value! nil end
[ "def", "claim", "(", "resource_group_name", ",", "lab_account_name", ",", "lab_name", ",", "environment_setting_name", ",", "environment_name", ",", "custom_headers", ":", "nil", ")", "response", "=", "claim_async", "(", "resource_group_name", ",", "lab_account_name", ...
Claims the environment and assigns it to the user @param resource_group_name [String] The name of the resource group. @param lab_account_name [String] The name of the lab Account. @param lab_name [String] The name of the lab. @param environment_setting_name [String] The name of the environment Setting. @param env...
[ "Claims", "the", "environment", "and", "assigns", "it", "to", "the", "user" ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_labservices/lib/2018-10-15/generated/azure_mgmt_labservices/environments.rb#L551-L554
train
Claim a managed environment.
[ 30522, 13366, 4366, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 6845, 1035, 4070, 1035, 2171, 1010, 6845, 1035, 2171, 1010, 4044, 1035, 4292, 1035, 2171, 1010, 4044, 1035, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
data/azure_key_vault/lib/2016-10-01/generated/azure_key_vault/key_vault_client.rb
Azure::KeyVault::V2016_10_01.KeyVaultClient.get_key_versions_next
def get_key_versions_next(next_page_link, custom_headers:nil) response = get_key_versions_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def get_key_versions_next(next_page_link, custom_headers:nil) response = get_key_versions_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "get_key_versions_next", "(", "next_page_link", ",", "custom_headers", ":", "nil", ")", "response", "=", "get_key_versions_next_async", "(", "next_page_link", ",", "custom_headers", ":custom_headers", ")", ".", "value!", "response", ".", "body", "unless", "resp...
Retrieves a list of individual key versions with the same key name. The full key identifier, attributes, and tags are provided in the response. This operation requires the keys/list permission. @param next_page_link [String] The NextLink from the previous successful call to List operation. @param custom_headers ...
[ "Retrieves", "a", "list", "of", "individual", "key", "versions", "with", "the", "same", "key", "name", "." ]
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#L8258-L8261
train
Gets the key versions of the specified key.
[ 30522, 13366, 2131, 1035, 3145, 1035, 4617, 1035, 2279, 1006, 2279, 1035, 3931, 1035, 4957, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 2131, 1035, 3145, 1035, 4617, 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_media_services/lib/2015-10-01/generated/azure_mgmt_media_services/media_service_operations.rb
Azure::MediaServices::Mgmt::V2015_10_01.MediaServiceOperations.delete
def delete(resource_group_name, media_service_name, custom_headers:nil) response = delete_async(resource_group_name, media_service_name, custom_headers:custom_headers).value! nil end
ruby
def delete(resource_group_name, media_service_name, custom_headers:nil) response = delete_async(resource_group_name, media_service_name, custom_headers:custom_headers).value! nil end
[ "def", "delete", "(", "resource_group_name", ",", "media_service_name", ",", "custom_headers", ":", "nil", ")", "response", "=", "delete_async", "(", "resource_group_name", ",", "media_service_name", ",", "custom_headers", ":custom_headers", ")", ".", "value!", "nil",...
Deletes a Media Service. @param resource_group_name [String] Name of the resource group within the Azure subscription. @param media_service_name [String] Name of the Media Service. @param custom_headers [Hash{String => String}] A hash of custom headers that will be added to the HTTP request.
[ "Deletes", "a", "Media", "Service", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_media_services/lib/2015-10-01/generated/azure_mgmt_media_services/media_service_operations.rb#L436-L439
train
Deletes a given Media Service resource.
[ 30522, 13366, 3972, 12870, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 2865, 1035, 2326, 1035, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 3972, 12870, 1035, 2004, 6038, 2278, 1006, 7692, 1035, 2177, 1035, 2171, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
rails/rails
activerecord/lib/active_record/database_configurations.rb
ActiveRecord.DatabaseConfigurations.to_h
def to_h configs = configurations.reverse.inject({}) do |memo, db_config| memo.merge(db_config.to_legacy_hash) end Hash[configs.to_a.reverse] end
ruby
def to_h configs = configurations.reverse.inject({}) do |memo, db_config| memo.merge(db_config.to_legacy_hash) end Hash[configs.to_a.reverse] end
[ "def", "to_h", "configs", "=", "configurations", ".", "reverse", ".", "inject", "(", "{", "}", ")", "do", "|", "memo", ",", "db_config", "|", "memo", ".", "merge", "(", "db_config", ".", "to_legacy_hash", ")", "end", "Hash", "[", "configs", ".", "to_a"...
Returns the DatabaseConfigurations object as a Hash.
[ "Returns", "the", "DatabaseConfigurations", "object", "as", "a", "Hash", "." ]
85a8bc644be69908f05740a5886ec19cd3679df5
https://github.com/rails/rails/blob/85a8bc644be69908f05740a5886ec19cd3679df5/activerecord/lib/active_record/database_configurations.rb#L78-L84
train
Convert the database to a hash
[ 30522, 13366, 2000, 1035, 1044, 9530, 8873, 5620, 1027, 22354, 1012, 7901, 1012, 1999, 20614, 1006, 1063, 1065, 1007, 2079, 1064, 24443, 1010, 16962, 1035, 9530, 8873, 2290, 1064, 24443, 1012, 13590, 1006, 16962, 1035, 9530, 8873, 2290, 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_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/api_management_services.rb
Azure::ApiManagement::Mgmt::V2016_10_10.ApiManagementServices.begin_backup_with_http_info
def begin_backup_with_http_info(resource_group_name, service_name, parameters, custom_headers:nil) begin_backup_async(resource_group_name, service_name, parameters, custom_headers:custom_headers).value! end
ruby
def begin_backup_with_http_info(resource_group_name, service_name, parameters, custom_headers:nil) begin_backup_async(resource_group_name, service_name, parameters, custom_headers:custom_headers).value! end
[ "def", "begin_backup_with_http_info", "(", "resource_group_name", ",", "service_name", ",", "parameters", ",", "custom_headers", ":", "nil", ")", "begin_backup_async", "(", "resource_group_name", ",", "service_name", ",", "parameters", ",", "custom_headers", ":custom_head...
Creates a backup of the API Management service to the given Azure Storage Account. This is long running operation and could take several minutes to complete. @param resource_group_name [String] The name of the resource group. @param service_name [String] The name of the API Management service. @param parameters [...
[ "Creates", "a", "backup", "of", "the", "API", "Management", "service", "to", "the", "given", "Azure", "Storage", "Account", ".", "This", "is", "long", "running", "operation", "and", "could", "take", "several", "minutes", "to", "complete", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_api_management/lib/2016-10-10/generated/azure_mgmt_api_management/api_management_services.rb#L1363-L1365
train
Creates a backup of the specified elastic network service.
[ 30522, 13366, 4088, 1035, 10200, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 2326, 1035, 2171, 1010, 11709, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 4088, 1035, 10200, 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_automation/lib/2015-10-31/generated/azure_mgmt_automation/job_operations.rb
Azure::Automation::Mgmt::V2015_10_31.JobOperations.list_by_automation_account_next
def list_by_automation_account_next(next_page_link, custom_headers:nil) response = list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def list_by_automation_account_next(next_page_link, custom_headers:nil) response = list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "list_by_automation_account_next", "(", "next_page_link", ",", "custom_headers", ":", "nil", ")", "response", "=", "list_by_automation_account_next_async", "(", "next_page_link", ",", "custom_headers", ":custom_headers", ")", ".", "value!", "response", ".", "body",...
Retrieve a list of jobs. @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 [JobListResult] operation results.
[ "Retrieve", "a", "list", "of", "jobs", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/job_operations.rb#L820-L823
train
Gets the list of all the automation products under the Azure subscription.
[ 30522, 13366, 2862, 1035, 2011, 1035, 19309, 1035, 4070, 1035, 2279, 1006, 2279, 1035, 3931, 1035, 4957, 1010, 7661, 1035, 20346, 2015, 1024, 30524, 1029, 2203, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
piotrmurach/github
lib/github_api/client/issues/labels.rb
Github.Client::Issues::Labels.replace
def replace(*args) arguments(args, required: [:user, :repo, :number]) params = arguments.params params['data'] = arguments.remaining unless arguments.remaining.empty? put_request("/repos/#{arguments.user}/#{arguments.repo}/issues/#{arguments.number}/labels", params) end
ruby
def replace(*args) arguments(args, required: [:user, :repo, :number]) params = arguments.params params['data'] = arguments.remaining unless arguments.remaining.empty? put_request("/repos/#{arguments.user}/#{arguments.repo}/issues/#{arguments.number}/labels", params) end
[ "def", "replace", "(", "*", "args", ")", "arguments", "(", "args", ",", "required", ":", "[", ":user", ",", ":repo", ",", ":number", "]", ")", "params", "=", "arguments", ".", "params", "params", "[", "'data'", "]", "=", "arguments", ".", "remaining", ...
Replace all labels for an issue Sending an empty array ([]) will remove all Labels from the Issue. @example github = Github.new github.issues.labels.replace 'user-name', 'repo-name', 'issue-number', 'label1', 'label2', ... @api public
[ "Replace", "all", "labels", "for", "an", "issue" ]
8702452c66bea33c9388550aed9e9974f76aaef1
https://github.com/piotrmurach/github/blob/8702452c66bea33c9388550aed9e9974f76aaef1/lib/github_api/client/issues/labels.rb#L181-L187
train
Replace a label
[ 30522, 13366, 5672, 1006, 1008, 12098, 5620, 1007, 9918, 1006, 12098, 5620, 1010, 3223, 1024, 1031, 1024, 5310, 1010, 1024, 16360, 2080, 1010, 1024, 2193, 1033, 1007, 11498, 5244, 1027, 9918, 1012, 11498, 5244, 11498, 5244, 1031, 1005, 2951...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
jekyll/jekyll
lib/jekyll/regenerator.rb
Jekyll.Regenerator.add
def add(path) return true unless File.exist?(path) metadata[path] = { "mtime" => File.mtime(path), "deps" => [], } cache[path] = true end
ruby
def add(path) return true unless File.exist?(path) metadata[path] = { "mtime" => File.mtime(path), "deps" => [], } cache[path] = true end
[ "def", "add", "(", "path", ")", "return", "true", "unless", "File", ".", "exist?", "(", "path", ")", "metadata", "[", "path", "]", "=", "{", "\"mtime\"", "=>", "File", ".", "mtime", "(", "path", ")", ",", "\"deps\"", "=>", "[", "]", ",", "}", "ca...
Add a path to the metadata Returns true, also on failure.
[ "Add", "a", "path", "to", "the", "metadata" ]
fd74fe3e93a1fb506fa6621a2e271d7b9c5c3e3b
https://github.com/jekyll/jekyll/blob/fd74fe3e93a1fb506fa6621a2e271d7b9c5c3e3b/lib/jekyll/regenerator.rb#L40-L48
train
Add a file to the cache
[ 30522, 13366, 5587, 1006, 4130, 1007, 2709, 2995, 4983, 5371, 1012, 4839, 1029, 1006, 4130, 1007, 27425, 1031, 4130, 1033, 1027, 1063, 1000, 11047, 14428, 1000, 1027, 1028, 5371, 1012, 11047, 14428, 1006, 4130, 1007, 1010, 1000, 2139, 4523,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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/compressing.rb
Sprockets.Compressing.gzip=
def gzip=(gzip) self.config = config.merge(gzip_enabled: gzip).freeze case gzip when false, nil self.unregister_exporter Exporters::ZlibExporter self.unregister_exporter Exporters::ZopfliExporter when :zopfli self.unregister_exporter Exporters::ZlibExporter self....
ruby
def gzip=(gzip) self.config = config.merge(gzip_enabled: gzip).freeze case gzip when false, nil self.unregister_exporter Exporters::ZlibExporter self.unregister_exporter Exporters::ZopfliExporter when :zopfli self.unregister_exporter Exporters::ZlibExporter self....
[ "def", "gzip", "=", "(", "gzip", ")", "self", ".", "config", "=", "config", ".", "merge", "(", "gzip_enabled", ":", "gzip", ")", ".", "freeze", "case", "gzip", "when", "false", ",", "nil", "self", ".", "unregister_exporter", "Exporters", "::", "ZlibExpor...
Public: Enable or disable the creation of Gzip files. To disable gzip generation set to a falsey value: environment.gzip = false To enable set to a truthy value. By default zlib wil be used to gzip assets. If you have the Zopfli gem installed you can specify the zopfli algorithm to be used instead: e...
[ "Public", ":", "Enable", "or", "disable", "the", "creation", "of", "Gzip", "files", "." ]
9e3f0d8e98c44f57e67bc138db87bb8469bf5ddd
https://github.com/rails/sprockets/blob/9e3f0d8e98c44f57e67bc138db87bb8469bf5ddd/lib/sprockets/compressing.rb#L116-L132
train
Returns the best best
[ 30522, 13366, 1043, 5831, 2361, 1027, 1006, 1043, 5831, 2361, 1007, 2969, 1012, 9530, 8873, 2290, 1027, 9530, 8873, 2290, 1012, 13590, 1006, 1043, 5831, 2361, 1035, 9124, 1024, 1043, 5831, 2361, 1007, 1012, 13184, 2553, 1043, 5831, 2361, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
data/azure_cognitiveservices_luisauthoring/lib/2.0/generated/azure_cognitiveservices_luisauthoring/model.rb
Azure::CognitiveServices::LuisAuthoring::V2_0.Model.list_entity_suggestions_with_http_info
def list_entity_suggestions_with_http_info(app_id, version_id, entity_id, take:100, custom_headers:nil) list_entity_suggestions_async(app_id, version_id, entity_id, take:take, custom_headers:custom_headers).value! end
ruby
def list_entity_suggestions_with_http_info(app_id, version_id, entity_id, take:100, custom_headers:nil) list_entity_suggestions_async(app_id, version_id, entity_id, take:take, custom_headers:custom_headers).value! end
[ "def", "list_entity_suggestions_with_http_info", "(", "app_id", ",", "version_id", ",", "entity_id", ",", "take", ":", "100", ",", "custom_headers", ":", "nil", ")", "list_entity_suggestions_async", "(", "app_id", ",", "version_id", ",", "entity_id", ",", "take", ...
Get suggested example utterances that would improve the accuracy of the entity model in a version of the application. @param app_id The application ID. @param version_id [String] The version ID. @param entity_id The target entity extractor model to enhance. @param take [Integer] The number of entries to return. M...
[ "Get", "suggested", "example", "utterances", "that", "would", "improve", "the", "accuracy", "of", "the", "entity", "model", "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#L3996-L3998
train
Gets a list of entity suggestions for a version of the application.
[ 30522, 13366, 2862, 1035, 9178, 1035, 15690, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 10439, 1035, 8909, 1010, 2544, 1035, 8909, 1010, 9178, 1035, 8909, 1010, 2202, 1024, 2531, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 2862, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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/values/time_zone.rb
ActiveSupport.TimeZone.period_for_local
def period_for_local(time, dst = true) tzinfo.period_for_local(time, dst) { |periods| periods.last } end
ruby
def period_for_local(time, dst = true) tzinfo.period_for_local(time, dst) { |periods| periods.last } end
[ "def", "period_for_local", "(", "time", ",", "dst", "=", "true", ")", "tzinfo", ".", "period_for_local", "(", "time", ",", "dst", ")", "{", "|", "periods", "|", "periods", ".", "last", "}", "end" ]
Available so that TimeZone instances respond like TZInfo::Timezone instances.
[ "Available", "so", "that", "TimeZone", "instances", "respond", "like", "TZInfo", "::", "Timezone", "instances", "." ]
85a8bc644be69908f05740a5886ec19cd3679df5
https://github.com/rails/rails/blob/85a8bc644be69908f05740a5886ec19cd3679df5/activesupport/lib/active_support/values/time_zone.rb#L523-L525
train
Returns the last period for the given time
[ 30522, 13366, 2558, 1035, 2005, 1035, 2334, 1006, 30524, 1006, 2051, 1010, 16233, 2102, 1007, 1063, 1064, 6993, 1064, 6993, 1012, 2197, 1065, 2203, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
middleman/middleman
middleman-core/lib/middleman-core/application.rb
Middleman.Application.prune_tilt_templates!
def prune_tilt_templates! mapping = ::Tilt.default_mapping mapping.lazy_map.each_key do |key| begin mapping[key] rescue LoadError, NameError end end mapping.lazy_map.clear end
ruby
def prune_tilt_templates! mapping = ::Tilt.default_mapping mapping.lazy_map.each_key do |key| begin mapping[key] rescue LoadError, NameError end end mapping.lazy_map.clear end
[ "def", "prune_tilt_templates!", "mapping", "=", "::", "Tilt", ".", "default_mapping", "mapping", ".", "lazy_map", ".", "each_key", "do", "|", "key", "|", "begin", "mapping", "[", "key", "]", "rescue", "LoadError", ",", "NameError", "end", "end", "mapping", "...
Clean up missing Tilt exts
[ "Clean", "up", "missing", "Tilt", "exts" ]
a0dd9f78094813162895511e8516e0c5507cee50
https://github.com/middleman/middleman/blob/a0dd9f78094813162895511e8516e0c5507cee50/middleman-core/lib/middleman-core/application.rb#L344-L353
train
Pruning the Tilt templates
[ 30522, 13366, 10975, 9816, 1035, 17010, 1035, 23561, 2015, 999, 12375, 1027, 1024, 1024, 17010, 1012, 12398, 1035, 12375, 12375, 1012, 13971, 1035, 4949, 1012, 2169, 1035, 3145, 2079, 1064, 3145, 1064, 4088, 12375, 1031, 3145, 1033, 5343, 7...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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/android/common/helper.rb
Appium.Android.get_android_inspect
def get_android_inspect(class_name = false) source = get_source doctype_string = '<!doctyp' source_header = source[0..doctype_string.length].downcase source_is_html = source_header.start_with?(doctype_string, '<html') parser = if source_is_html # parse html from webview ...
ruby
def get_android_inspect(class_name = false) source = get_source doctype_string = '<!doctyp' source_header = source[0..doctype_string.length].downcase source_is_html = source_header.start_with?(doctype_string, '<html') parser = if source_is_html # parse html from webview ...
[ "def", "get_android_inspect", "(", "class_name", "=", "false", ")", "source", "=", "get_source", "doctype_string", "=", "'<!doctyp'", "source_header", "=", "source", "[", "0", "..", "doctype_string", ".", "length", "]", ".", "downcase", "source_is_html", "=", "s...
class AndroidElements Android only. Returns a string containing interesting elements. The text, content description, and id are returned. @param class_name [String] the class name to filter on. if false (default) then all classes will be inspected @return [String]
[ "class", "AndroidElements", "Android", "only", ".", "Returns", "a", "string", "containing", "interesting", "elements", ".", "The", "text", "content", "description", "and", "id", "are", "returned", "." ]
1f5898400dd1928bfe42ddd5f842d1f8738f2f76
https://github.com/appium/ruby_lib/blob/1f5898400dd1928bfe42ddd5f842d1f8738f2f76/lib/appium_lib/android/common/helper.rb#L95-L113
train
Get the Android inspect
[ 30522, 13366, 2131, 1035, 11924, 1035, 22459, 1006, 2465, 1035, 2171, 1027, 6270, 1007, 3120, 1027, 2131, 1035, 3120, 9986, 13874, 1035, 5164, 1027, 1005, 1026, 999, 9986, 3723, 2361, 1005, 3120, 1035, 20346, 1027, 3120, 1031, 1014, 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_resources/lib/2018-05-01/generated/azure_mgmt_resources/deployment_operations.rb
Azure::Resources::Mgmt::V2018_05_01.DeploymentOperations.list_at_subscription_scope_with_http_info
def list_at_subscription_scope_with_http_info(deployment_name, top:nil, custom_headers:nil) list_at_subscription_scope_async(deployment_name, top:top, custom_headers:custom_headers).value! end
ruby
def list_at_subscription_scope_with_http_info(deployment_name, top:nil, custom_headers:nil) list_at_subscription_scope_async(deployment_name, top:top, custom_headers:custom_headers).value! end
[ "def", "list_at_subscription_scope_with_http_info", "(", "deployment_name", ",", "top", ":", "nil", ",", "custom_headers", ":", "nil", ")", "list_at_subscription_scope_async", "(", "deployment_name", ",", "top", ":", "top", ",", "custom_headers", ":custom_headers", ")",...
Gets all deployments operations for a deployment. @param deployment_name [String] The name of the deployment with the operation to get. @param top [Integer] The number of results to return. @param custom_headers [Hash{String => String}] A hash of custom headers that will be added to the HTTP request. @return [M...
[ "Gets", "all", "deployments", "operations", "for", "a", "deployment", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_resources/lib/2018-05-01/generated/azure_mgmt_resources/deployment_operations.rb#L146-L148
train
Gets the list of the availability of the specified deployment.
[ 30522, 13366, 2862, 1035, 2012, 1035, 15002, 1035, 9531, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 10813, 1035, 2171, 1010, 2327, 1024, 9152, 2140, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 2862, 1035, 2012, 1035, 15002, 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...
puppetlabs/puppet
lib/puppet/util.rb
Puppet.Util.uri_encode
def uri_encode(path, opts = { :allow_fragment => false }) raise ArgumentError.new(_('path may not be nil')) if path.nil? # ensure string starts as UTF-8 for the sake of Ruby 1.9.3 encoded = ''.encode!(Encoding::UTF_8) # parse uri into named matches, then reassemble properly encoded parts = path.ma...
ruby
def uri_encode(path, opts = { :allow_fragment => false }) raise ArgumentError.new(_('path may not be nil')) if path.nil? # ensure string starts as UTF-8 for the sake of Ruby 1.9.3 encoded = ''.encode!(Encoding::UTF_8) # parse uri into named matches, then reassemble properly encoded parts = path.ma...
[ "def", "uri_encode", "(", "path", ",", "opts", "=", "{", ":allow_fragment", "=>", "false", "}", ")", "raise", "ArgumentError", ".", "new", "(", "_", "(", "'path may not be nil'", ")", ")", "if", "path", ".", "nil?", "# ensure string starts as UTF-8 for the sake ...
Percent-encodes a URI string per RFC3986 - https://tools.ietf.org/html/rfc3986 Properly handles escaping rules for paths, query strings and fragments independently The output is safe to pass to URI.parse or URI::Generic.build and will correctly round-trip through URI.unescape @param [String path] A URI string t...
[ "Percent", "-", "encodes", "a", "URI", "string", "per", "RFC3986", "-", "https", ":", "//", "tools", ".", "ietf", ".", "org", "/", "html", "/", "rfc3986" ]
4baeed97cbb7571ddc6635f0a24debe2e8b22cd3
https://github.com/puppetlabs/puppet/blob/4baeed97cbb7571ddc6635f0a24debe2e8b22cd3/lib/puppet/util.rb#L444-L476
train
Encode a URI path
[ 30522, 13366, 24471, 2072, 1035, 4372, 16044, 1006, 4130, 1010, 23569, 2015, 1027, 1063, 1024, 3499, 1035, 15778, 1027, 1028, 6270, 1065, 1007, 5333, 6685, 2121, 29165, 1012, 2047, 1006, 1035, 1006, 1005, 4130, 2089, 2025, 2022, 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...
zendesk/ruby-kafka
lib/kafka/cluster.rb
Kafka.Cluster.fetch_cluster_info
def fetch_cluster_info errors = [] @seed_brokers.shuffle.each do |node| @logger.info "Fetching cluster metadata from #{node}" begin broker = @broker_pool.connect(node.hostname, node.port) cluster_info = broker.fetch_metadata(topics: @target_topics) if cluster...
ruby
def fetch_cluster_info errors = [] @seed_brokers.shuffle.each do |node| @logger.info "Fetching cluster metadata from #{node}" begin broker = @broker_pool.connect(node.hostname, node.port) cluster_info = broker.fetch_metadata(topics: @target_topics) if cluster...
[ "def", "fetch_cluster_info", "errors", "=", "[", "]", "@seed_brokers", ".", "shuffle", ".", "each", "do", "|", "node", "|", "@logger", ".", "info", "\"Fetching cluster metadata from #{node}\"", "begin", "broker", "=", "@broker_pool", ".", "connect", "(", "node", ...
Fetches the cluster metadata. This is used to update the partition leadership information, among other things. The methods will go through each node listed in `seed_brokers`, connecting to the first one that is available. This node will be queried for the cluster metadata. @raise [ConnectionError] if none of the ...
[ "Fetches", "the", "cluster", "metadata", "." ]
2a73471b6a607a52dc85c79301ba522acb4566b5
https://github.com/zendesk/ruby-kafka/blob/2a73471b6a607a52dc85c79301ba522acb4566b5/lib/kafka/cluster.rb#L367-L397
train
Fetch cluster metadata from all seed brokers
[ 30522, 13366, 18584, 1035, 9324, 1035, 18558, 10697, 1027, 1031, 1033, 1030, 6534, 1035, 20138, 2015, 1012, 23046, 1012, 2169, 2079, 1064, 13045, 1064, 1030, 8833, 4590, 1012, 18558, 1000, 18584, 2075, 9324, 27425, 2013, 1001, 1063, 13045, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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.Image.color_point
def color_point(x, y, fill) f = copy f.pixel_color(x, y, fill) f end
ruby
def color_point(x, y, fill) f = copy f.pixel_color(x, y, fill) f end
[ "def", "color_point", "(", "x", ",", "y", ",", "fill", ")", "f", "=", "copy", "f", ".", "pixel_color", "(", "x", ",", "y", ",", "fill", ")", "f", "end" ]
Set the color at x,y
[ "Set", "the", "color", "at", "x", "y" ]
ef6688ed9d76bf123c2ea1a483eff8635051adb7
https://github.com/rmagick/rmagick/blob/ef6688ed9d76bf123c2ea1a483eff8635051adb7/lib/rmagick_internal.rb#L763-L767
train
Color the point at the specified coordinates.
[ 30522, 13366, 3609, 1035, 2391, 1006, 1060, 1010, 1061, 1010, 6039, 1007, 1042, 1027, 6100, 1042, 1012, 22138, 1035, 3609, 1006, 1060, 1010, 1061, 1010, 6039, 1007, 1042, 2203, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_datalake_analytics/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/accounts.rb
Azure::DataLakeAnalytics::Mgmt::V2016_11_01.Accounts.list_by_resource_group
def list_by_resource_group(resource_group_name, filter:nil, top:nil, skip:nil, select:nil, orderby:nil, count:nil, custom_headers:nil) first_page = list_by_resource_group_as_lazy(resource_group_name, filter:filter, top:top, skip:skip, select:select, orderby:orderby, count:count, custom_headers:custom_headers) ...
ruby
def list_by_resource_group(resource_group_name, filter:nil, top:nil, skip:nil, select:nil, orderby:nil, count:nil, custom_headers:nil) first_page = list_by_resource_group_as_lazy(resource_group_name, filter:filter, top:top, skip:skip, select:select, orderby:orderby, count:count, custom_headers:custom_headers) ...
[ "def", "list_by_resource_group", "(", "resource_group_name", ",", "filter", ":", "nil", ",", "top", ":", "nil", ",", "skip", ":", "nil", ",", "select", ":", "nil", ",", "orderby", ":", "nil", ",", "count", ":", "nil", ",", "custom_headers", ":", "nil", ...
Gets the first page of Data Lake Analytics accounts, if any, within a specific resource group. This includes a link to the next page, if any. @param resource_group_name [String] The name of the Azure resource group. @param filter [String] OData filter. Optional. @param top [Integer] The number of items to return. ...
[ "Gets", "the", "first", "page", "of", "Data", "Lake", "Analytics", "accounts", "if", "any", "within", "a", "specific", "resource", "group", ".", "This", "includes", "a", "link", "to", "the", "next", "page", "if", "any", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_datalake_analytics/lib/2016-11-01/generated/azure_mgmt_datalake_analytics/accounts.rb#L179-L182
train
Gets all the segmentation products under a resource group.
[ 30522, 13366, 2862, 1035, 2011, 1035, 7692, 1035, 2177, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 11307, 1024, 9152, 2140, 1010, 2327, 1024, 9152, 2140, 1010, 13558, 1024, 9152, 2140, 1010, 7276, 1024, 9152, 2140, 1010, 2344, 3762, 1024, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
data/azure_key_vault/lib/2016-10-01/generated/azure_key_vault/key_vault_client.rb
Azure::KeyVault::V2016_10_01.KeyVaultClient.encrypt_with_http_info
def encrypt_with_http_info(vault_base_url, key_name, key_version, algorithm, value, custom_headers:nil) encrypt_async(vault_base_url, key_name, key_version, algorithm, value, custom_headers:custom_headers).value! end
ruby
def encrypt_with_http_info(vault_base_url, key_name, key_version, algorithm, value, custom_headers:nil) encrypt_async(vault_base_url, key_name, key_version, algorithm, value, custom_headers:custom_headers).value! end
[ "def", "encrypt_with_http_info", "(", "vault_base_url", ",", "key_name", ",", "key_version", ",", "algorithm", ",", "value", ",", "custom_headers", ":", "nil", ")", "encrypt_async", "(", "vault_base_url", ",", "key_name", ",", "key_version", ",", "algorithm", ",",...
Encrypts an arbitrary sequence of bytes using an encryption key that is stored in a key vault. The ENCRYPT operation encrypts an arbitrary sequence of bytes using an encryption key that is stored in Azure Key Vault. Note that the ENCRYPT operation only supports a single block of data, the size of which is depende...
[ "Encrypts", "an", "arbitrary", "sequence", "of", "bytes", "using", "an", "encryption", "key", "that", "is", "stored", "in", "a", "key", "vault", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_key_vault/lib/2016-10-01/generated/azure_key_vault/key_vault_client.rb#L1364-L1366
train
Encrypt the specified key.
[ 30522, 13366, 4372, 26775, 22571, 2102, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 30524, 1010, 9896, 1010, 3643, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 4372, 26775, 22571, 2102, 1035, 2004, 6038, 2278, 1006, 11632, 1035, 29...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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
actionmailer/lib/action_mailer/log_subscriber.rb
ActionMailer.LogSubscriber.deliver
def deliver(event) info do perform_deliveries = event.payload[:perform_deliveries] if perform_deliveries "Delivered mail #{event.payload[:message_id]} (#{event.duration.round(1)}ms)" else "Skipped delivery of mail #{event.payload[:message_id]} as `perform_deliveries` is...
ruby
def deliver(event) info do perform_deliveries = event.payload[:perform_deliveries] if perform_deliveries "Delivered mail #{event.payload[:message_id]} (#{event.duration.round(1)}ms)" else "Skipped delivery of mail #{event.payload[:message_id]} as `perform_deliveries` is...
[ "def", "deliver", "(", "event", ")", "info", "do", "perform_deliveries", "=", "event", ".", "payload", "[", ":perform_deliveries", "]", "if", "perform_deliveries", "\"Delivered mail #{event.payload[:message_id]} (#{event.duration.round(1)}ms)\"", "else", "\"Skipped delivery of ...
An email was delivered.
[ "An", "email", "was", "delivered", "." ]
85a8bc644be69908f05740a5886ec19cd3679df5
https://github.com/rails/rails/blob/85a8bc644be69908f05740a5886ec19cd3679df5/actionmailer/lib/action_mailer/log_subscriber.rb#L10-L21
train
Deliver the message to the server
[ 30522, 13366, 8116, 1006, 2724, 1007, 18558, 2079, 4685, 1035, 23534, 1027, 2724, 1012, 18093, 1031, 1024, 4685, 1035, 23534, 1033, 2065, 4685, 1035, 23534, 1000, 5359, 5653, 1001, 1063, 2724, 1012, 18093, 1031, 1024, 4471, 1035, 8909, 1033...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
awesome-print/awesome_print
lib/awesome_print/ext/sequel.rb
AwesomePrint.Sequel.awesome_sequel_document
def awesome_sequel_document(object) data = object.values.sort_by { |key| key.to_s }.inject({}) do |hash, c| hash[c[0].to_sym] = c[1] hash end data = { errors: object.errors, values: data } if !object.errors.empty? "#{object} #{awesome_hash(data)}" end
ruby
def awesome_sequel_document(object) data = object.values.sort_by { |key| key.to_s }.inject({}) do |hash, c| hash[c[0].to_sym] = c[1] hash end data = { errors: object.errors, values: data } if !object.errors.empty? "#{object} #{awesome_hash(data)}" end
[ "def", "awesome_sequel_document", "(", "object", ")", "data", "=", "object", ".", "values", ".", "sort_by", "{", "|", "key", "|", "key", ".", "to_s", "}", ".", "inject", "(", "{", "}", ")", "do", "|", "hash", ",", "c", "|", "hash", "[", "c", "[",...
Format Sequel Document object. ------------------------------------------------------------------------------
[ "Format", "Sequel", "Document", "object", ".", "------------------------------------------------------------------------------" ]
4564fd74721562cbef2443f7d97109bf9192343d
https://github.com/awesome-print/awesome_print/blob/4564fd74721562cbef2443f7d97109bf9192343d/lib/awesome_print/ext/sequel.rb#L30-L37
train
Generate a new object for the given object.
[ 30522, 13366, 12476, 1035, 8297, 1035, 6254, 1006, 4874, 1007, 2951, 1027, 4874, 1012, 5300, 1012, 4066, 1035, 2011, 1063, 1064, 3145, 1064, 3145, 1012, 2000, 1035, 1055, 1065, 1012, 1999, 20614, 1006, 1063, 1065, 1007, 2079, 1064, 23325, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
kpumuk/meta-tags
lib/meta_tags/meta_tags_collection.rb
MetaTags.MetaTagsCollection.extract_noindex_attribute
def extract_noindex_attribute(name) noindex = extract(name) noindex_name = noindex.kind_of?(String) ? noindex : 'robots' noindex_value = noindex ? name.to_s : nil [ noindex_name, noindex_value ] end
ruby
def extract_noindex_attribute(name) noindex = extract(name) noindex_name = noindex.kind_of?(String) ? noindex : 'robots' noindex_value = noindex ? name.to_s : nil [ noindex_name, noindex_value ] end
[ "def", "extract_noindex_attribute", "(", "name", ")", "noindex", "=", "extract", "(", "name", ")", "noindex_name", "=", "noindex", ".", "kind_of?", "(", "String", ")", "?", "noindex", ":", "'robots'", "noindex_value", "=", "noindex", "?", "name", ".", "to_s"...
Extracts noindex attribute name and value without deleting it from meta tags list. @param [String, Symbol] name noindex attribute name. @return [Array<String>] pair of noindex attribute name and value.
[ "Extracts", "noindex", "attribute", "name", "and", "value", "without", "deleting", "it", "from", "meta", "tags", "list", "." ]
03585f95edf96cd17024c5c155ce46ec8bc47232
https://github.com/kpumuk/meta-tags/blob/03585f95edf96cd17024c5c155ce46ec8bc47232/lib/meta_tags/meta_tags_collection.rb#L198-L204
train
Extract the noindex attribute from the object
[ 30522, 13366, 14817, 1035, 2053, 22254, 10288, 1035, 17961, 1006, 2171, 1007, 2053, 22254, 10288, 1027, 14817, 1006, 2171, 1007, 2053, 22254, 10288, 1035, 2171, 1027, 2053, 22254, 10288, 1012, 2785, 1035, 1997, 1029, 1006, 5164, 1007, 1029, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
github/linguist
lib/linguist/generated.rb
Linguist.Generated.generated_gamemakerstudio?
def generated_gamemakerstudio? return false unless ['.yy', '.yyp'].include? extname return false unless lines.count > 3 return lines[2].match(/\"modelName\"\:\s*\"GM/) || lines[0] =~ /^\d\.\d\.\d.+\|\{/ end
ruby
def generated_gamemakerstudio? return false unless ['.yy', '.yyp'].include? extname return false unless lines.count > 3 return lines[2].match(/\"modelName\"\:\s*\"GM/) || lines[0] =~ /^\d\.\d\.\d.+\|\{/ end
[ "def", "generated_gamemakerstudio?", "return", "false", "unless", "[", "'.yy'", ",", "'.yyp'", "]", ".", "include?", "extname", "return", "false", "unless", "lines", ".", "count", ">", "3", "return", "lines", "[", "2", "]", ".", "match", "(", "/", "\\\"", ...
Internal: Is this a generated Game Maker Studio (2) metadata file? All Game Maker Studio 2 generated files will be JSON, .yy or .yyp, and have a part that looks like "modelName: GMname" on the 3rd line Return true or false
[ "Internal", ":", "Is", "this", "a", "generated", "Game", "Maker", "Studio", "(", "2", ")", "metadata", "file?" ]
9116c90fcbb82ac03b4b33c58cfbde1fcf745e99
https://github.com/github/linguist/blob/9116c90fcbb82ac03b4b33c58cfbde1fcf745e99/lib/linguist/generated.rb#L594-L599
train
Returns true if the generated gamemakerstudio file is a gamemakerstudio file.
[ 30522, 13366, 7013, 1035, 2208, 12088, 8525, 20617, 1029, 2709, 6270, 4983, 1031, 1005, 1012, 1061, 2100, 1005, 1010, 1005, 1012, 1061, 22571, 1005, 1033, 1012, 2421, 1029, 4654, 2102, 18442, 2709, 6270, 4983, 3210, 1012, 4175, 1028, 1017, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_stor_simple8000_series/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/device_settings.rb
Azure::StorSimple8000Series::Mgmt::V2017_06_01.DeviceSettings.begin_update_network_settings
def begin_update_network_settings(device_name, parameters, resource_group_name, manager_name, custom_headers:nil) response = begin_update_network_settings_async(device_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def begin_update_network_settings(device_name, parameters, resource_group_name, manager_name, custom_headers:nil) response = begin_update_network_settings_async(device_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "begin_update_network_settings", "(", "device_name", ",", "parameters", ",", "resource_group_name", ",", "manager_name", ",", "custom_headers", ":", "nil", ")", "response", "=", "begin_update_network_settings_async", "(", "device_name", ",", "parameters", ",", "r...
Updates the network settings on the specified device. @param device_name [String] The device name @param parameters [NetworkSettingsPatch] The network settings to be updated. @param resource_group_name [String] The resource group name @param manager_name [String] The manager name @param custom_headers [Hash{Strin...
[ "Updates", "the", "network", "settings", "on", "the", "specified", "device", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_stor_simple8000_series/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/device_settings.rb#L763-L766
train
Updates network settings of the specified device.
[ 30522, 13366, 4088, 1035, 10651, 1035, 2897, 1035, 10906, 1006, 5080, 1035, 2171, 1010, 11709, 1010, 7692, 1035, 2177, 1035, 2171, 1010, 3208, 1035, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 4088, 1035, 10651,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
ilyakatz/data-migrate
lib/data_migrate/data_schema.rb
DataMigrate.Data.define
def define(info) DataMigrate::DataMigrator.assure_data_schema_table return if info[:version].blank? version = info[:version].to_i unless migrated.include?(version) execute "INSERT INTO #{sm_table} (version) VALUES ('#{version}')" end insert(version) end
ruby
def define(info) DataMigrate::DataMigrator.assure_data_schema_table return if info[:version].blank? version = info[:version].to_i unless migrated.include?(version) execute "INSERT INTO #{sm_table} (version) VALUES ('#{version}')" end insert(version) end
[ "def", "define", "(", "info", ")", "DataMigrate", "::", "DataMigrator", ".", "assure_data_schema_table", "return", "if", "info", "[", ":version", "]", ".", "blank?", "version", "=", "info", "[", ":version", "]", ".", "to_i", "unless", "migrated", ".", "inclu...
This method is based on the following two methods ActiveRecord::Schema#define ActiveRecord::ConnectionAdapters::SchemaStatements #assume_migrated_upto_version
[ "This", "method", "is", "based", "on", "the", "following", "two", "methods", "ActiveRecord", "::", "Schema#define", "ActiveRecord", "::", "ConnectionAdapters", "::", "SchemaStatements", "#assume_migrated_upto_version" ]
2fc2266a9a9dbb4f799417902a0ab19f06a762da
https://github.com/ilyakatz/data-migrate/blob/2fc2266a9a9dbb4f799417902a0ab19f06a762da/lib/data_migrate/data_schema.rb#L11-L23
train
Define a new version of the data schema
[ 30522, 13366, 9375, 1006, 18558, 1007, 2951, 4328, 22780, 1024, 1024, 2951, 4328, 17643, 30524, 1024, 2544, 1033, 1012, 8744, 1029, 2544, 1027, 18558, 1031, 1024, 2544, 1033, 1012, 2000, 1035, 1045, 4983, 13447, 1012, 2421, 1029, 1006, 2544...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_network/lib/2019-02-01/generated/azure_mgmt_network/express_route_links.rb
Azure::Network::Mgmt::V2019_02_01.ExpressRouteLinks.get_with_http_info
def get_with_http_info(resource_group_name, express_route_port_name, link_name, custom_headers:nil) get_async(resource_group_name, express_route_port_name, link_name, custom_headers:custom_headers).value! end
ruby
def get_with_http_info(resource_group_name, express_route_port_name, link_name, custom_headers:nil) get_async(resource_group_name, express_route_port_name, link_name, custom_headers:custom_headers).value! end
[ "def", "get_with_http_info", "(", "resource_group_name", ",", "express_route_port_name", ",", "link_name", ",", "custom_headers", ":", "nil", ")", "get_async", "(", "resource_group_name", ",", "express_route_port_name", ",", "link_name", ",", "custom_headers", ":custom_he...
Retrieves the specified ExpressRouteLink resource. @param resource_group_name [String] The name of the resource group. @param express_route_port_name [String] The name of the ExpressRoutePort resource. @param link_name [String] The name of the ExpressRouteLink resource. @param custom_headers [Hash{String => Strin...
[ "Retrieves", "the", "specified", "ExpressRouteLink", "resource", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_network/lib/2019-02-01/generated/azure_mgmt_network/express_route_links.rb#L53-L55
train
Gets the specified ExpressRouteLink.
[ 30522, 13366, 2131, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 4671, 1035, 2799, 1035, 3417, 1035, 2171, 1010, 4957, 1035, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 2131, 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.3.0.9/generated/azure_service_fabric/service_fabric_client_apis.rb
Azure::ServiceFabric::V6_3_0_9.ServiceFabricClientAPIs.get_replica_with_http_info
def get_replica_with_http_info(application_resource_name, service_resource_name, replica_name, custom_headers:nil) get_replica_async(application_resource_name, service_resource_name, replica_name, custom_headers:custom_headers).value! end
ruby
def get_replica_with_http_info(application_resource_name, service_resource_name, replica_name, custom_headers:nil) get_replica_async(application_resource_name, service_resource_name, replica_name, custom_headers:custom_headers).value! end
[ "def", "get_replica_with_http_info", "(", "application_resource_name", ",", "service_resource_name", ",", "replica_name", ",", "custom_headers", ":", "nil", ")", "get_replica_async", "(", "application_resource_name", ",", "service_resource_name", ",", "replica_name", ",", "...
Gets a specific replica of a given service in an application resource. Gets the information about the specified replica of a given service of an application. The information includes the runtime properties of the replica instance. @param application_resource_name [String] Service Fabric application resource name...
[ "Gets", "a", "specific", "replica", "of", "a", "given", "service", "in", "an", "application", "resource", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/data/azure_service_fabric/lib/6.3.0.9/generated/azure_service_fabric/service_fabric_client_apis.rb#L29956-L29958
train
Gets the replica for the specified service resource.
[ 30522, 13366, 2131, 1035, 15059, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 4646, 1035, 7692, 1035, 2171, 1010, 2326, 1035, 7692, 1035, 2171, 1010, 15059, 1035, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 2131, 1035, 15059,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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_search/lib/2015-08-19/generated/azure_mgmt_search/services.rb
Azure::Search::Mgmt::V2015_08_19.Services.check_name_availability
def check_name_availability(name, search_management_request_options:nil, custom_headers:nil) response = check_name_availability_async(name, search_management_request_options:search_management_request_options, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def check_name_availability(name, search_management_request_options:nil, custom_headers:nil) response = check_name_availability_async(name, search_management_request_options:search_management_request_options, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "check_name_availability", "(", "name", ",", "search_management_request_options", ":", "nil", ",", "custom_headers", ":", "nil", ")", "response", "=", "check_name_availability_async", "(", "name", ",", "search_management_request_options", ":search_management_request_op...
Checks whether or not the given Search service name is available for use. Search service names must be globally unique since they are part of the service URI (https://<name>.search.windows.net). @param name [String] The Search service name to validate. Search service names must only contain lowercase letters, digi...
[ "Checks", "whether", "or", "not", "the", "given", "Search", "service", "name", "is", "available", "for", "use", ".", "Search", "service", "names", "must", "be", "globally", "unique", "since", "they", "are", "part", "of", "the", "service", "URI", "(", "http...
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_search/lib/2015-08-19/generated/azure_mgmt_search/services.rb#L555-L558
train
Checks whether the name is available for a given App Service Environment.
[ 30522, 13366, 4638, 1035, 2171, 1035, 11343, 1006, 2171, 1010, 3945, 1035, 2968, 1035, 5227, 1035, 7047, 1024, 9152, 2140, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 4638, 1035, 2171, 1035, 11343, 1035, 2004, 6038, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_policy_insights/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/remediations.rb
Azure::PolicyInsights::Mgmt::V2018_07_01_preview.Remediations.list_deployments_at_resource
def list_deployments_at_resource(resource_id, remediation_name, query_options:nil, custom_headers:nil) first_page = list_deployments_at_resource_as_lazy(resource_id, remediation_name, query_options:query_options, custom_headers:custom_headers) first_page.get_all_items end
ruby
def list_deployments_at_resource(resource_id, remediation_name, query_options:nil, custom_headers:nil) first_page = list_deployments_at_resource_as_lazy(resource_id, remediation_name, query_options:query_options, custom_headers:custom_headers) first_page.get_all_items end
[ "def", "list_deployments_at_resource", "(", "resource_id", ",", "remediation_name", ",", "query_options", ":", "nil", ",", "custom_headers", ":", "nil", ")", "first_page", "=", "list_deployments_at_resource_as_lazy", "(", "resource_id", ",", "remediation_name", ",", "qu...
Gets all deployments for a remediation at resource scope. @param resource_id [String] Resource ID. @param remediation_name [String] The name of the remediation. @param query_options [QueryOptions] Additional parameters for the operation @param custom_headers [Hash{String => String}] A hash of custom headers that ...
[ "Gets", "all", "deployments", "for", "a", "remediation", "at", "resource", "scope", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_policy_insights/lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/remediations.rb#L1772-L1775
train
Gets all deployments at resource scope.
[ 30522, 13366, 2862, 1035, 10813, 2015, 1035, 2012, 1035, 7692, 1006, 7692, 1035, 8909, 1010, 2128, 16969, 3508, 1035, 2171, 1010, 23032, 1035, 7047, 1024, 9152, 2140, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 2034, 1035, 3931, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
mikker/passwordless
app/controllers/passwordless/sessions_controller.rb
Passwordless.SessionsController.create
def create session = build_passwordless_session(find_authenticatable) if session.save Passwordless.after_session_save.call(session) end render end
ruby
def create session = build_passwordless_session(find_authenticatable) if session.save Passwordless.after_session_save.call(session) end render end
[ "def", "create", "session", "=", "build_passwordless_session", "(", "find_authenticatable", ")", "if", "session", ".", "save", "Passwordless", ".", "after_session_save", ".", "call", "(", "session", ")", "end", "render", "end" ]
post '/sign_in' Creates a new Session record then sends the magic link renders sessions/create.html.erb. @see Mailer#magic_link Mailer#magic_link
[ "post", "/", "sign_in", "Creates", "a", "new", "Session", "record", "then", "sends", "the", "magic", "link", "renders", "sessions", "/", "create", ".", "html", ".", "erb", "." ]
80d3e00c78114aed01f336514a236dfc17d0a91a
https://github.com/mikker/passwordless/blob/80d3e00c78114aed01f336514a236dfc17d0a91a/app/controllers/passwordless/sessions_controller.rb#L25-L33
train
Create a new object for the current user
[ 30522, 13366, 3443, 5219, 1027, 3857, 1035, 20786, 3238, 1035, 5219, 1006, 2424, 1035, 14469, 27892, 1007, 2065, 5219, 1012, 3828, 20786, 3238, 1012, 2044, 1035, 5219, 1035, 3828, 1012, 2655, 1006, 5219, 1007, 2203, 17552, 2203, 102, 0, 0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
slim-template/slim
lib/slim/command.rb
Slim.Command.process
def process args = @args.dup unless @options[:input] file = args.shift if file @options[:file] = file @options[:input] = File.open(file, 'r') else @options[:file] = 'STDIN' @options[:input] = $stdin end end locals = @option...
ruby
def process args = @args.dup unless @options[:input] file = args.shift if file @options[:file] = file @options[:input] = File.open(file, 'r') else @options[:file] = 'STDIN' @options[:input] = $stdin end end locals = @option...
[ "def", "process", "args", "=", "@args", ".", "dup", "unless", "@options", "[", ":input", "]", "file", "=", "args", ".", "shift", "if", "file", "@options", "[", ":file", "]", "=", "file", "@options", "[", ":input", "]", "=", "File", ".", "open", "(", ...
Process command
[ "Process", "command" ]
ae8e7338fcfb67256d2f6b50c64fc317210e31a2
https://github.com/slim-template/slim/blob/ae8e7338fcfb67256d2f6b50c64fc317210e31a2/lib/slim/command.rb#L89-L126
train
Process the arguments
[ 30522, 13366, 2832, 12098, 5620, 1027, 1030, 12098, 5620, 1012, 4241, 2361, 4983, 1030, 7047, 1031, 1024, 7953, 1033, 5371, 1027, 12098, 5620, 1012, 5670, 2065, 5371, 1030, 7047, 1031, 1024, 5371, 1033, 1027, 5371, 1030, 7047, 1031, 1024, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
aws/aws-sdk-ruby
gems/aws-sdk-ec2/lib/aws-sdk-ec2/instance.rb
Aws::EC2.Instance.attach_volume
def attach_volume(options = {}) options = options.merge(instance_id: @id) resp = @client.attach_volume(options) resp.data end
ruby
def attach_volume(options = {}) options = options.merge(instance_id: @id) resp = @client.attach_volume(options) resp.data end
[ "def", "attach_volume", "(", "options", "=", "{", "}", ")", "options", "=", "options", ".", "merge", "(", "instance_id", ":", "@id", ")", "resp", "=", "@client", ".", "attach_volume", "(", "options", ")", "resp", ".", "data", "end" ]
@example Request syntax with placeholder values instance.attach_volume({ device: "String", # required volume_id: "String", # required dry_run: false, }) @param [Hash] options ({}) @option options [required, String] :device The device name (for example, `/dev/sdh` or `xvdh`). @option options ...
[ "@example", "Request", "syntax", "with", "placeholder", "values" ]
e28b8d320ddf7b6ee0161bdd9d00fb786d99b63d
https://github.com/aws/aws-sdk-ruby/blob/e28b8d320ddf7b6ee0161bdd9d00fb786d99b63d/gems/aws-sdk-ec2/lib/aws-sdk-ec2/instance.rb#L584-L588
train
Attaches a volume to this instance
[ 30522, 13366, 22476, 1035, 3872, 1006, 7047, 1027, 1063, 1065, 1007, 7047, 1027, 7047, 1012, 13590, 1006, 6013, 1035, 8909, 1024, 1030, 8909, 1007, 24501, 2361, 1027, 1030, 7396, 1012, 22476, 1035, 3872, 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...
etewiah/property_web_builder
app/controllers/pwb/api/v1/properties_controller.rb
Pwb.Api::V1::PropertiesController.update_extras
def update_extras property = Prop.find(params[:id]) # The set_features method goes through ea property.set_features = params[:extras].to_unsafe_hash property.save! return render json: property.features end
ruby
def update_extras property = Prop.find(params[:id]) # The set_features method goes through ea property.set_features = params[:extras].to_unsafe_hash property.save! return render json: property.features end
[ "def", "update_extras", "property", "=", "Prop", ".", "find", "(", "params", "[", ":id", "]", ")", "# The set_features method goes through ea", "property", ".", "set_features", "=", "params", "[", ":extras", "]", ".", "to_unsafe_hash", "property", ".", "save!", ...
TODO: rename to update_features:
[ "TODO", ":", "rename", "to", "update_features", ":" ]
fba4e6d4ffa7bc1f4d3b50dfa5a6a9fbfee23f21
https://github.com/etewiah/property_web_builder/blob/fba4e6d4ffa7bc1f4d3b50dfa5a6a9fbfee23f21/app/controllers/pwb/api/v1/properties_controller.rb#L81-L87
train
Update the features of a given property
[ 30522, 13366, 10651, 1035, 26279, 3200, 1027, 17678, 1012, 2424, 1006, 11498, 5244, 1031, 1024, 8909, 1033, 1007, 1001, 1996, 2275, 1035, 2838, 4118, 3632, 2083, 19413, 3200, 1012, 2275, 1035, 2838, 1027, 11498, 5244, 1031, 1024, 26279, 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...
appsignal/rdkafka-ruby
lib/rdkafka/consumer.rb
Rdkafka.Consumer.committed
def committed(list=nil, timeout_ms=1200) if list.nil? list = assignment elsif !list.is_a?(TopicPartitionList) raise TypeError.new("list has to be nil or a TopicPartitionList") end tpl = list.to_native_tpl response = Rdkafka::Bindings.rd_kafka_committed(@native_kafka, tpl, t...
ruby
def committed(list=nil, timeout_ms=1200) if list.nil? list = assignment elsif !list.is_a?(TopicPartitionList) raise TypeError.new("list has to be nil or a TopicPartitionList") end tpl = list.to_native_tpl response = Rdkafka::Bindings.rd_kafka_committed(@native_kafka, tpl, t...
[ "def", "committed", "(", "list", "=", "nil", ",", "timeout_ms", "=", "1200", ")", "if", "list", ".", "nil?", "list", "=", "assignment", "elsif", "!", "list", ".", "is_a?", "(", "TopicPartitionList", ")", "raise", "TypeError", ".", "new", "(", "\"list has...
Return the current committed offset per partition for this consumer group. The offset field of each requested partition will either be set to stored offset or to -1001 in case there was no stored offset for that partition. @param list [TopicPartitionList, nil] The topic with partitions to get the offsets for or nil ...
[ "Return", "the", "current", "committed", "offset", "per", "partition", "for", "this", "consumer", "group", ".", "The", "offset", "field", "of", "each", "requested", "partition", "will", "either", "be", "set", "to", "stored", "offset", "or", "to", "-", "1001"...
87b3e0ddae5ea576847cb67228fcea06ec2a24d6
https://github.com/appsignal/rdkafka-ruby/blob/87b3e0ddae5ea576847cb67228fcea06ec2a24d6/lib/rdkafka/consumer.rb#L165-L177
train
Commit the current assignment to the Kafka broker.
[ 30522, 13366, 5462, 1006, 2862, 1027, 9152, 2140, 1010, 2051, 5833, 1035, 5796, 1027, 14840, 1007, 2065, 2862, 1012, 9152, 2140, 1029, 2862, 1027, 8775, 3449, 5332, 2546, 999, 2862, 1012, 2003, 1035, 1037, 1029, 1006, 8476, 19362, 3775, 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...
rails/rails
actionpack/lib/abstract_controller/translation.rb
AbstractController.Translation.translate
def translate(key, options = {}) options = options.dup if key.to_s.first == "." path = controller_path.tr("/", ".") defaults = [:"#{path}#{key}"] defaults << options[:default] if options[:default] options[:default] = defaults.flatten key = "#{path}.#{action_name}#{key...
ruby
def translate(key, options = {}) options = options.dup if key.to_s.first == "." path = controller_path.tr("/", ".") defaults = [:"#{path}#{key}"] defaults << options[:default] if options[:default] options[:default] = defaults.flatten key = "#{path}.#{action_name}#{key...
[ "def", "translate", "(", "key", ",", "options", "=", "{", "}", ")", "options", "=", "options", ".", "dup", "if", "key", ".", "to_s", ".", "first", "==", "\".\"", "path", "=", "controller_path", ".", "tr", "(", "\"/\"", ",", "\".\"", ")", "defaults", ...
Delegates to <tt>I18n.translate</tt>. Also aliased as <tt>t</tt>. When the given key starts with a period, it will be scoped by the current controller and action. So if you call <tt>translate(".foo")</tt> from <tt>PeopleController#index</tt>, it will convert the call to <tt>I18n.translate("people.index.foo")</tt>....
[ "Delegates", "to", "<tt", ">", "I18n", ".", "translate<", "/", "tt", ">", ".", "Also", "aliased", "as", "<tt", ">", "t<", "/", "tt", ">", "." ]
85a8bc644be69908f05740a5886ec19cd3679df5
https://github.com/rails/rails/blob/85a8bc644be69908f05740a5886ec19cd3679df5/actionpack/lib/abstract_controller/translation.rb#L13-L23
train
Translate the given key to the correct language.
[ 30522, 13366, 17637, 1006, 3145, 1010, 7047, 1027, 1063, 1065, 1007, 7047, 1027, 7047, 1012, 4241, 2361, 2065, 3145, 1012, 2000, 1035, 1055, 1012, 2034, 1027, 1027, 1000, 1012, 1000, 4130, 1027, 11486, 1035, 4130, 1012, 19817, 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_api_management/lib/2017-03-01/generated/azure_mgmt_api_management/api_issue.rb
Azure::ApiManagement::Mgmt::V2017_03_01.ApiIssue.head_with_http_info
def head_with_http_info(resource_group_name, service_name, api_id, issue_id, custom_headers:nil) head_async(resource_group_name, service_name, api_id, issue_id, custom_headers:custom_headers).value! end
ruby
def head_with_http_info(resource_group_name, service_name, api_id, issue_id, custom_headers:nil) head_async(resource_group_name, service_name, api_id, issue_id, custom_headers:custom_headers).value! end
[ "def", "head_with_http_info", "(", "resource_group_name", ",", "service_name", ",", "api_id", ",", "issue_id", ",", "custom_headers", ":", "nil", ")", "head_async", "(", "resource_group_name", ",", "service_name", ",", "api_id", ",", "issue_id", ",", "custom_headers...
Gets the entity state (Etag) version of the Issue for an API specified by its identifier. @param resource_group_name [String] The name of the resource group. @param service_name [String] The name of the API Management service. @param api_id [String] API identifier. Must be unique in the current API Management ser...
[ "Gets", "the", "entity", "state", "(", "Etag", ")", "version", "of", "the", "Issue", "for", "an", "API", "specified", "by", "its", "identifier", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_api_management/lib/2017-03-01/generated/azure_mgmt_api_management/api_issue.rb#L58-L60
train
Gets the list of all the documents in an API.
[ 30522, 13366, 2132, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 2326, 1035, 2171, 1010, 17928, 1035, 8909, 1010, 3277, 1035, 8909, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 2132, 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...
rails/rails
activestorage/lib/active_storage/service/s3_service.rb
ActiveStorage.Service::S3Service.stream
def stream(key) object = object_for(key) chunk_size = 5.megabytes offset = 0 raise ActiveStorage::FileNotFoundError unless object.exists? while offset < object.content_length yield object.get(range: "bytes=#{offset}-#{offset + chunk_size - 1}").body.string.force_enco...
ruby
def stream(key) object = object_for(key) chunk_size = 5.megabytes offset = 0 raise ActiveStorage::FileNotFoundError unless object.exists? while offset < object.content_length yield object.get(range: "bytes=#{offset}-#{offset + chunk_size - 1}").body.string.force_enco...
[ "def", "stream", "(", "key", ")", "object", "=", "object_for", "(", "key", ")", "chunk_size", "=", "5", ".", "megabytes", "offset", "=", "0", "raise", "ActiveStorage", "::", "FileNotFoundError", "unless", "object", ".", "exists?", "while", "offset", "<", "...
Reads the object for the given key in chunks, yielding each to the block.
[ "Reads", "the", "object", "for", "the", "given", "key", "in", "chunks", "yielding", "each", "to", "the", "block", "." ]
85a8bc644be69908f05740a5886ec19cd3679df5
https://github.com/rails/rails/blob/85a8bc644be69908f05740a5886ec19cd3679df5/activestorage/lib/active_storage/service/s3_service.rb#L102-L114
train
Get the contents of a single file in the cache.
[ 30522, 13366, 5460, 1006, 3145, 1007, 4874, 1027, 4874, 1035, 2005, 1006, 3145, 1007, 20000, 1035, 2946, 1027, 1019, 30524, 10750, 4874, 1012, 2131, 1006, 2846, 1024, 1000, 27507, 1027, 1001, 1063, 16396, 1065, 1011, 1001, 1063, 16396, 1009...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_logic/lib/2016-06-01/generated/azure_mgmt_logic/workflow_triggers.rb
Azure::Logic::Mgmt::V2016_06_01.WorkflowTriggers.run_with_http_info
def run_with_http_info(resource_group_name, workflow_name, trigger_name, custom_headers:nil) run_async(resource_group_name, workflow_name, trigger_name, custom_headers:custom_headers).value! end
ruby
def run_with_http_info(resource_group_name, workflow_name, trigger_name, custom_headers:nil) run_async(resource_group_name, workflow_name, trigger_name, custom_headers:custom_headers).value! end
[ "def", "run_with_http_info", "(", "resource_group_name", ",", "workflow_name", ",", "trigger_name", ",", "custom_headers", ":", "nil", ")", "run_async", "(", "resource_group_name", ",", "workflow_name", ",", "trigger_name", ",", "custom_headers", ":custom_headers", ")",...
Runs a workflow trigger. @param resource_group_name [String] The resource group name. @param workflow_name [String] The workflow name. @param trigger_name [String] The workflow trigger name. @param custom_headers [Hash{String => String}] A hash of custom headers that will be added to the HTTP request. @return [...
[ "Runs", "a", "workflow", "trigger", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_logic/lib/2016-06-01/generated/azure_mgmt_logic/workflow_triggers.rb#L330-L332
train
Runs a workflow trigger.
[ 30522, 13366, 2448, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 2147, 12314, 1035, 2171, 1010, 9495, 1035, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 2448, 1035, 2004, 6038, 2278, 1006, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_scheduler/lib/2016-03-01/generated/azure_mgmt_scheduler/jobs.rb
Azure::Scheduler::Mgmt::V2016_03_01.Jobs.delete_with_http_info
def delete_with_http_info(resource_group_name, job_collection_name, job_name, custom_headers:nil) delete_async(resource_group_name, job_collection_name, job_name, custom_headers:custom_headers).value! end
ruby
def delete_with_http_info(resource_group_name, job_collection_name, job_name, custom_headers:nil) delete_async(resource_group_name, job_collection_name, job_name, custom_headers:custom_headers).value! end
[ "def", "delete_with_http_info", "(", "resource_group_name", ",", "job_collection_name", ",", "job_name", ",", "custom_headers", ":", "nil", ")", "delete_async", "(", "resource_group_name", ",", "job_collection_name", ",", "job_name", ",", "custom_headers", ":custom_header...
Deletes a job. @param resource_group_name [String] The resource group name. @param job_collection_name [String] The job collection name. @param job_name [String] The job name. @param custom_headers [Hash{String => String}] A hash of custom headers that will be added to the HTTP request. @return [MsRestAzure::Az...
[ "Deletes", "a", "job", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_scheduler/lib/2016-03-01/generated/azure_mgmt_scheduler/jobs.rb#L370-L372
train
Deletes a job from the job collection.
[ 30522, 13366, 3972, 12870, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 3105, 1035, 3074, 1035, 2171, 1010, 3105, 1035, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3972, 12870, 1035, 2004, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_policy_insights/lib/2018-04-04/generated/azure_mgmt_policy_insights/policy_states.rb
Azure::PolicyInsights::Mgmt::V2018_04_04.PolicyStates.summarize_for_management_group
def summarize_for_management_group(management_group_name, query_options:nil, custom_headers:nil) response = summarize_for_management_group_async(management_group_name, query_options:query_options, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def summarize_for_management_group(management_group_name, query_options:nil, custom_headers:nil) response = summarize_for_management_group_async(management_group_name, query_options:query_options, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "summarize_for_management_group", "(", "management_group_name", ",", "query_options", ":", "nil", ",", "custom_headers", ":", "nil", ")", "response", "=", "summarize_for_management_group_async", "(", "management_group_name", ",", "query_options", ":query_options", ",...
Summarizes policy states for the resources under the management group. @param management_group_name [String] Management group name. @param query_options [QueryOptions] Additional parameters for the operation @param custom_headers [Hash{String => String}] A hash of custom headers that will be added to the HTTP requ...
[ "Summarizes", "policy", "states", "for", "the", "resources", "under", "the", "management", "group", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_policy_insights/lib/2018-04-04/generated/azure_mgmt_policy_insights/policy_states.rb#L166-L169
train
Gets the number of documents in a management group.
[ 30522, 13366, 7680, 7849, 4697, 1035, 2005, 1035, 2968, 1035, 2177, 1006, 2968, 1035, 2177, 1035, 2171, 1010, 23032, 1035, 7047, 1024, 9152, 2140, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 7680, 7849, 4697, 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...
cloudfoundry/bosh
src/spec/support/director.rb
Bosh::Spec.Director.wait_for_vm
def wait_for_vm(instance_group_name, index, timeout_seconds, options = {deployment_name: Deployments::DEFAULT_DEPLOYMENT_NAME}) start_time = Time.now loop do vm = instances(options).detect { |vm| !vm.vm_cid.empty? && vm.instance_group_name == instance_group_name && vm.index == index && vm.last_known...
ruby
def wait_for_vm(instance_group_name, index, timeout_seconds, options = {deployment_name: Deployments::DEFAULT_DEPLOYMENT_NAME}) start_time = Time.now loop do vm = instances(options).detect { |vm| !vm.vm_cid.empty? && vm.instance_group_name == instance_group_name && vm.index == index && vm.last_known...
[ "def", "wait_for_vm", "(", "instance_group_name", ",", "index", ",", "timeout_seconds", ",", "options", "=", "{", "deployment_name", ":", "Deployments", "::", "DEFAULT_DEPLOYMENT_NAME", "}", ")", "start_time", "=", "Time", ".", "now", "loop", "do", "vm", "=", ...
wait_for_vm either returns a vm or nil after waiting for X seconds (Do not add default timeout value to be more explicit in tests)
[ "wait_for_vm", "either", "returns", "a", "vm", "or", "nil", "after", "waiting", "for", "X", "seconds", "(", "Do", "not", "add", "default", "timeout", "value", "to", "be", "more", "explicit", "in", "tests", ")" ]
2eaa7100879ddd20cd909cd698514746195e28b7
https://github.com/cloudfoundry/bosh/blob/2eaa7100879ddd20cd909cd698514746195e28b7/src/spec/support/director.rb#L72-L83
train
Wait for a VM to be available
[ 30522, 13366, 3524, 1035, 2005, 1035, 1058, 2213, 1006, 6013, 1035, 2177, 1035, 2171, 1010, 5950, 1010, 2051, 5833, 1035, 3823, 1010, 7047, 1027, 1063, 10813, 1035, 2171, 1024, 10813, 2015, 1024, 1024, 12398, 1035, 10813, 1035, 2171, 1065, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_network/lib/2019-02-01/generated/azure_mgmt_network/express_route_connections.rb
Azure::Network::Mgmt::V2019_02_01.ExpressRouteConnections.create_or_update_async
def create_or_update_async(resource_group_name, express_route_gateway_name, connection_name, put_express_route_connection_parameters, custom_headers:nil) # Send request promise = begin_create_or_update_async(resource_group_name, express_route_gateway_name, connection_name, put_express_route_connection_param...
ruby
def create_or_update_async(resource_group_name, express_route_gateway_name, connection_name, put_express_route_connection_parameters, custom_headers:nil) # Send request promise = begin_create_or_update_async(resource_group_name, express_route_gateway_name, connection_name, put_express_route_connection_param...
[ "def", "create_or_update_async", "(", "resource_group_name", ",", "express_route_gateway_name", ",", "connection_name", ",", "put_express_route_connection_parameters", ",", "custom_headers", ":", "nil", ")", "# Send request", "promise", "=", "begin_create_or_update_async", "(",...
@param resource_group_name [String] The name of the resource group. @param express_route_gateway_name [String] The name of the ExpressRoute gateway. @param connection_name [String] The name of the connection subresource. @param put_express_route_connection_parameters [ExpressRouteConnection] Parameters required in...
[ "@param", "resource_group_name", "[", "String", "]", "The", "name", "of", "the", "resource", "group", ".", "@param", "express_route_gateway_name", "[", "String", "]", "The", "name", "of", "the", "ExpressRoute", "gateway", ".", "@param", "connection_name", "[", "...
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_connections.rb#L57-L73
train
Creates or updates an express route connection in the specified ExpressRoute gateway.
[ 30522, 13366, 3443, 1035, 2030, 1035, 10651, 1035, 2004, 6038, 2278, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 4671, 1035, 2799, 1035, 11909, 1035, 2171, 1010, 4434, 1035, 2171, 1010, 2404, 1035, 4671, 1035, 2799, 1035, 4434, 1035, 11709, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_web/lib/2018-02-01/generated/azure_mgmt_web/app_service_environments.rb
Azure::Web::Mgmt::V2018_02_01.AppServiceEnvironments.list_usages_as_lazy
def list_usages_as_lazy(resource_group_name, name, filter:nil, custom_headers:nil) response = list_usages_async(resource_group_name, name, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| ...
ruby
def list_usages_as_lazy(resource_group_name, name, filter:nil, custom_headers:nil) response = list_usages_async(resource_group_name, name, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| ...
[ "def", "list_usages_as_lazy", "(", "resource_group_name", ",", "name", ",", "filter", ":", "nil", ",", "custom_headers", ":", "nil", ")", "response", "=", "list_usages_async", "(", "resource_group_name", ",", "name", ",", "filter", ":", "filter", ",", "custom_he...
Get global usage metrics of an App Service Environment. Get global usage metrics 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 filter [String] Return only usages/metrics...
[ "Get", "global", "usage", "metrics", "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#L7801-L7810
train
Gets a list of all the available managed managed
[ 30522, 13366, 2862, 1035, 8192, 2015, 1035, 2004, 1035, 13971, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 2171, 1010, 11307, 1024, 9152, 2140, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 30524, 1010, 11307, 1024, 11307, 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_sql/lib/2017-03-01-preview/generated/azure_mgmt_sql/long_term_retention_backups.rb
Azure::SQL::Mgmt::V2017_03_01_preview.LongTermRetentionBackups.delete_async
def delete_async(location_name, long_term_retention_server_name, long_term_retention_database_name, backup_name, custom_headers:nil) # Send request promise = begin_delete_async(location_name, long_term_retention_server_name, long_term_retention_database_name, backup_name, custom_headers:custom_headers) ...
ruby
def delete_async(location_name, long_term_retention_server_name, long_term_retention_database_name, backup_name, custom_headers:nil) # Send request promise = begin_delete_async(location_name, long_term_retention_server_name, long_term_retention_database_name, backup_name, custom_headers:custom_headers) ...
[ "def", "delete_async", "(", "location_name", ",", "long_term_retention_server_name", ",", "long_term_retention_database_name", ",", "backup_name", ",", "custom_headers", ":", "nil", ")", "# Send request", "promise", "=", "begin_delete_async", "(", "location_name", ",", "l...
@param location_name [String] The location of the database @param long_term_retention_server_name [String] The name of the server @param long_term_retention_database_name [String] The name of the database @param backup_name [String] The backup name. @param custom_headers [Hash{String => String}] A hash of custom he...
[ "@param", "location_name", "[", "String", "]", "The", "location", "of", "the", "database", "@param", "long_term_retention_server_name", "[", "String", "]", "The", "name", "of", "the", "server", "@param", "long_term_retention_database_name", "[", "String", "]", "The"...
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_sql/lib/2017-03-01-preview/generated/azure_mgmt_sql/long_term_retention_backups.rb#L153-L167
train
Deletes a long term retention database.
[ 30522, 13366, 3972, 12870, 1035, 2004, 6038, 2278, 1006, 3295, 1035, 2171, 1010, 2146, 1035, 2744, 1035, 20125, 1035, 8241, 1035, 2171, 1010, 2146, 1035, 2744, 1035, 20125, 1035, 7809, 1035, 2171, 1010, 10200, 1035, 2171, 1010, 7661, 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_batch/lib/2015-12-01/generated/azure_mgmt_batch/application_operations.rb
Azure::Batch::Mgmt::V2015_12_01.ApplicationOperations.update
def update(resource_group_name, account_name, application_id, parameters, custom_headers:nil) response = update_async(resource_group_name, account_name, application_id, parameters, custom_headers:custom_headers).value! nil end
ruby
def update(resource_group_name, account_name, application_id, parameters, custom_headers:nil) response = update_async(resource_group_name, account_name, application_id, parameters, custom_headers:custom_headers).value! nil end
[ "def", "update", "(", "resource_group_name", ",", "account_name", ",", "application_id", ",", "parameters", ",", "custom_headers", ":", "nil", ")", "response", "=", "update_async", "(", "resource_group_name", ",", "account_name", ",", "application_id", ",", "paramet...
Updates settings for the specified application. @param resource_group_name [String] The name of the resource group that contains the Batch account. @param account_name [String] The name of the Batch account. @param application_id [String] The ID of the application. @param parameters [UpdateApplicationParameters] ...
[ "Updates", "settings", "for", "the", "specified", "application", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_batch/lib/2015-12-01/generated/azure_mgmt_batch/application_operations.rb#L345-L348
train
Updates an existing application.
[ 30522, 13366, 10651, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 4070, 1035, 2171, 1010, 4646, 1035, 8909, 1010, 11709, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 10651, 1035, 2004, 6038, 2278, 1006, 7692, 1035, 2177, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
ruby/rake
lib/rake/task_manager.rb
Rake.TaskManager.find_location
def find_location locations = caller i = 0 while locations[i] return locations[i + 1] if locations[i] =~ /rake\/dsl_definition.rb/ i += 1 end nil end
ruby
def find_location locations = caller i = 0 while locations[i] return locations[i + 1] if locations[i] =~ /rake\/dsl_definition.rb/ i += 1 end nil end
[ "def", "find_location", "locations", "=", "caller", "i", "=", "0", "while", "locations", "[", "i", "]", "return", "locations", "[", "i", "+", "1", "]", "if", "locations", "[", "i", "]", "=~", "/", "\\/", "/", "i", "+=", "1", "end", "nil", "end" ]
Find the location that called into the dsl layer.
[ "Find", "the", "location", "that", "called", "into", "the", "dsl", "layer", "." ]
1c22b490ee6cb8bd614fa8d0d6145f671466206b
https://github.com/ruby/rake/blob/1c22b490ee6cb8bd614fa8d0d6145f671466206b/lib/rake/task_manager.rb#L241-L249
train
Find the location of the current object.
[ 30522, 13366, 2424, 1035, 3295, 5269, 1027, 20587, 1045, 1027, 1014, 2096, 5269, 1031, 1045, 1033, 2709, 5269, 1031, 1045, 1009, 1015, 1033, 2065, 5269, 1031, 1045, 1033, 1027, 1066, 1013, 26008, 1032, 1013, 16233, 2140, 1035, 6210, 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/action_controller/respond_with.rb
ActionController.RespondWith.collect_mimes_from_class_level
def collect_mimes_from_class_level #:nodoc: action = action_name.to_sym self.class.mimes_for_respond_to.keys.select do |mime| config = self.class.mimes_for_respond_to[mime] if config[:except] !config[:except].include?(action) elsif config[:only] config[:only].in...
ruby
def collect_mimes_from_class_level #:nodoc: action = action_name.to_sym self.class.mimes_for_respond_to.keys.select do |mime| config = self.class.mimes_for_respond_to[mime] if config[:except] !config[:except].include?(action) elsif config[:only] config[:only].in...
[ "def", "collect_mimes_from_class_level", "#:nodoc:", "action", "=", "action_name", ".", "to_sym", "self", ".", "class", ".", "mimes_for_respond_to", ".", "keys", ".", "select", "do", "|", "mime", "|", "config", "=", "self", ".", "class", ".", "mimes_for_respond_...
Collect mimes declared in the class method respond_to valid for the current action.
[ "Collect", "mimes", "declared", "in", "the", "class", "method", "respond_to", "valid", "for", "the", "current", "action", "." ]
a1a2706091d4ffcbbe387407ddfc5671a59ad842
https://github.com/plataformatec/responders/blob/a1a2706091d4ffcbbe387407ddfc5671a59ad842/lib/action_controller/respond_with.rb#L240-L254
train
Collect the mime types from the class level
[ 30522, 13366, 8145, 1035, 2771, 7834, 1035, 2013, 1035, 2465, 1035, 2504, 1001, 1024, 7293, 10085, 1024, 2895, 1027, 2895, 1035, 2171, 1012, 2000, 1035, 25353, 2213, 2969, 1012, 2465, 1012, 2771, 7834, 1035, 2005, 1035, 6869, 1035, 2000, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
opal/opal
opal/corelib/marshal/read_buffer.rb
Marshal.ReadBuffer.read_float
def read_float s = read_string(cache: false) result = if s == 'nan' 0.0 / 0 elsif s == 'inf' 1.0 / 0 elsif s == '-inf' -1.0 / 0 else s.to_f end @object_cache << result ...
ruby
def read_float s = read_string(cache: false) result = if s == 'nan' 0.0 / 0 elsif s == 'inf' 1.0 / 0 elsif s == '-inf' -1.0 / 0 else s.to_f end @object_cache << result ...
[ "def", "read_float", "s", "=", "read_string", "(", "cache", ":", "false", ")", "result", "=", "if", "s", "==", "'nan'", "0.0", "/", "0", "elsif", "s", "==", "'inf'", "1.0", "/", "0", "elsif", "s", "==", "'-inf'", "-", "1.0", "/", "0", "else", "s"...
Reads and returns Float from an input stream @example 123.456 Is encoded as 'f', '123.456'
[ "Reads", "and", "returns", "Float", "from", "an", "input", "stream" ]
41aedc0fd62aab00d3c117ba0caf00206bedd981
https://github.com/opal/opal/blob/41aedc0fd62aab00d3c117ba0caf00206bedd981/opal/corelib/marshal/read_buffer.rb#L155-L168
train
Read a float object from the file.
[ 30522, 13366, 3191, 1035, 14257, 1055, 1027, 3191, 1035, 5164, 1006, 17053, 1024, 6270, 1007, 2765, 1027, 2065, 1055, 1027, 1027, 1005, 16660, 1005, 1014, 1012, 1014, 1013, 1014, 3449, 5332, 2546, 1055, 1027, 1027, 1005, 1999, 2546, 1005, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
hanami/hanami
lib/hanami/hanamirc.rb
Hanami.Hanamirc.parse_file
def parse_file(path) {}.tap do |hash| File.readlines(path).each do |line| key, value = line.split(SEPARATOR) hash[key] = value.strip end end end
ruby
def parse_file(path) {}.tap do |hash| File.readlines(path).each do |line| key, value = line.split(SEPARATOR) hash[key] = value.strip end end end
[ "def", "parse_file", "(", "path", ")", "{", "}", ".", "tap", "do", "|", "hash", "|", "File", ".", "readlines", "(", "path", ")", ".", "each", "do", "|", "line", "|", "key", ",", "value", "=", "line", ".", "split", "(", "SEPARATOR", ")", "hash", ...
Read hanamirc file and parse it's values @since 0.8.0 @api private @return [Hash] hanamirc parsed values
[ "Read", "hanamirc", "file", "and", "parse", "it", "s", "values" ]
8c6e5147e92ef869b25379448572da3698eacfdc
https://github.com/hanami/hanami/blob/8c6e5147e92ef869b25379448572da3698eacfdc/lib/hanami/hanamirc.rb#L136-L143
train
Parse a file into a hash of the correct size
[ 30522, 13366, 11968, 3366, 1035, 5371, 1006, 4130, 1007, 1063, 1065, 1012, 11112, 2079, 1064, 23325, 1064, 5371, 1012, 3191, 12735, 1006, 4130, 1007, 1012, 2169, 2079, 1064, 2240, 1064, 3145, 1010, 3643, 1027, 2240, 1012, 3975, 1006, 19802,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/databases.rb
Azure::SQL::Mgmt::V2014_04_01.Databases.begin_create_import_operation
def begin_create_import_operation(resource_group_name, server_name, database_name, parameters, custom_headers:nil) response = begin_create_import_operation_async(resource_group_name, server_name, database_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def begin_create_import_operation(resource_group_name, server_name, database_name, parameters, custom_headers:nil) response = begin_create_import_operation_async(resource_group_name, server_name, database_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "begin_create_import_operation", "(", "resource_group_name", ",", "server_name", ",", "database_name", ",", "parameters", ",", "custom_headers", ":", "nil", ")", "response", "=", "begin_create_import_operation_async", "(", "resource_group_name", ",", "server_name", ...
Creates an import operation that imports a bacpac into an existing database. The existing database must be empty. @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] ...
[ "Creates", "an", "import", "operation", "that", "imports", "a", "bacpac", "into", "an", "existing", "database", ".", "The", "existing", "database", "must", "be", "empty", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_sql/lib/2014-04-01/generated/azure_mgmt_sql/databases.rb#L1885-L1888
train
Creates an import operation.
[ 30522, 13366, 4088, 1035, 3443, 1035, 12324, 1035, 3169, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 8241, 1035, 2171, 1010, 7809, 1035, 2171, 1010, 11709, 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...
Azure/azure-sdk-for-ruby
management/azure_mgmt_network/lib/2018-07-01/generated/azure_mgmt_network/azure_firewalls.rb
Azure::Network::Mgmt::V2018_07_01.AzureFirewalls.delete
def delete(resource_group_name, azure_firewall_name, custom_headers:nil) response = delete_async(resource_group_name, azure_firewall_name, custom_headers:custom_headers).value! nil end
ruby
def delete(resource_group_name, azure_firewall_name, custom_headers:nil) response = delete_async(resource_group_name, azure_firewall_name, custom_headers:custom_headers).value! nil end
[ "def", "delete", "(", "resource_group_name", ",", "azure_firewall_name", ",", "custom_headers", ":", "nil", ")", "response", "=", "delete_async", "(", "resource_group_name", ",", "azure_firewall_name", ",", "custom_headers", ":custom_headers", ")", ".", "value!", "nil...
Deletes the specified Azure Firewall. @param resource_group_name [String] The name of the resource group. @param azure_firewall_name [String] The name of the Azure Firewall. @param custom_headers [Hash{String => String}] A hash of custom headers that will be added to the HTTP request.
[ "Deletes", "the", "specified", "Azure", "Firewall", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_network/lib/2018-07-01/generated/azure_mgmt_network/azure_firewalls.rb#L32-L35
train
Deletes the specified Azure Firewall.
[ 30522, 13366, 3972, 12870, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 24296, 1035, 2543, 9628, 1035, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 3972, 12870, 1035, 2004, 6038, 2278, 1006, 7692, 1035, 2177, 1035, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_datalake_analytics/lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb
Azure::DataLakeAnalytics::Mgmt::V2015_10_01_preview.Account.list_data_lake_store_accounts
def list_data_lake_store_accounts(resource_group_name, account_name, filter:nil, top:nil, skip:nil, expand:nil, select:nil, orderby:nil, count:nil, search:nil, format:nil, custom_headers:nil) first_page = list_data_lake_store_accounts_as_lazy(resource_group_name, account_name, filter:filter, top:top, skip:skip, e...
ruby
def list_data_lake_store_accounts(resource_group_name, account_name, filter:nil, top:nil, skip:nil, expand:nil, select:nil, orderby:nil, count:nil, search:nil, format:nil, custom_headers:nil) first_page = list_data_lake_store_accounts_as_lazy(resource_group_name, account_name, filter:filter, top:top, skip:skip, e...
[ "def", "list_data_lake_store_accounts", "(", "resource_group_name", ",", "account_name", ",", "filter", ":", "nil", ",", "top", ":", "nil", ",", "skip", ":", "nil", ",", "expand", ":", "nil", ",", "select", ":", "nil", ",", "orderby", ":", "nil", ",", "c...
Gets the first page of Data Lake Store accounts linked to the specified Data Lake Analytics account. The response includes a link to the next page, if any. @param resource_group_name [String] The name of the Azure resource group that contains the Data Lake Analytics account. @param account_name [String] The name ...
[ "Gets", "the", "first", "page", "of", "Data", "Lake", "Store", "accounts", "linked", "to", "the", "specified", "Data", "Lake", "Analytics", "account", ".", "The", "response", "includes", "a", "link", "to", "the", "next", "page", "if", "any", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_datalake_analytics/lib/2015-10-01-preview/generated/azure_mgmt_datalake_analytics/account.rb#L1315-L1318
train
Gets all the data lake store accounts.
[ 30522, 13366, 2862, 1035, 2951, 1035, 2697, 1035, 3573, 1035, 6115, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 4070, 1035, 2171, 1010, 11307, 1024, 9152, 2140, 1010, 2327, 1024, 9152, 2140, 1010, 13558, 1024, 9152, 2140, 1010, 7818, 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...
sds/overcommit
lib/overcommit/printer.rb
Overcommit.Printer.synchronize_all_methods
def synchronize_all_methods methods = self.class.instance_methods - self.class.superclass.instance_methods methods.each do |method_name| old_method = :"old_#{method_name}" new_method = :"synchronized_#{method_name}" self.class.__send__(:alias_method, old_method, method_name) ...
ruby
def synchronize_all_methods methods = self.class.instance_methods - self.class.superclass.instance_methods methods.each do |method_name| old_method = :"old_#{method_name}" new_method = :"synchronized_#{method_name}" self.class.__send__(:alias_method, old_method, method_name) ...
[ "def", "synchronize_all_methods", "methods", "=", "self", ".", "class", ".", "instance_methods", "-", "self", ".", "class", ".", "superclass", ".", "instance_methods", "methods", ".", "each", "do", "|", "method_name", "|", "old_method", "=", ":\"", "#{", "meth...
Get all public methods that were defined on this class and wrap them with synchronization locks so we ensure the output isn't interleaved amongst the various threads.
[ "Get", "all", "public", "methods", "that", "were", "defined", "on", "this", "class", "and", "wrap", "them", "with", "synchronization", "locks", "so", "we", "ensure", "the", "output", "isn", "t", "interleaved", "amongst", "the", "various", "threads", "." ]
35d60adb41da942178b789560968e3ad030b0ac7
https://github.com/sds/overcommit/blob/35d60adb41da942178b789560968e3ad030b0ac7/lib/overcommit/printer.rb#L126-L141
train
Synchronize all methods of the class.
[ 30522, 13366, 26351, 8093, 10698, 4371, 1035, 2035, 1035, 4725, 4725, 1027, 2969, 1012, 2465, 1012, 6013, 1035, 4725, 1011, 2969, 1012, 2465, 1012, 3565, 26266, 1012, 6013, 1035, 4725, 4725, 1012, 2169, 2079, 1064, 4118, 1035, 2171, 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...
projectcypress/health-data-standards
lib/hqmf-parser/2.0/types.rb
HQMF2.Value.inclusive_length_of_stay?
def inclusive_length_of_stay? # lengthOfStay - EH111, EH108 less_than_equal_los = attr_val('../cda:low/@nullFlavor') == 'NINF' && attr_val('../@highClosed') != 'false' greater_than_equal_los = attr_val('../cda:high/@nullFlavor') == 'PINF' && ...
ruby
def inclusive_length_of_stay? # lengthOfStay - EH111, EH108 less_than_equal_los = attr_val('../cda:low/@nullFlavor') == 'NINF' && attr_val('../@highClosed') != 'false' greater_than_equal_los = attr_val('../cda:high/@nullFlavor') == 'PINF' && ...
[ "def", "inclusive_length_of_stay?", "# lengthOfStay - EH111, EH108", "less_than_equal_los", "=", "attr_val", "(", "'../cda:low/@nullFlavor'", ")", "==", "'NINF'", "&&", "attr_val", "(", "'../@highClosed'", ")", "!=", "'false'", "greater_than_equal_los", "=", "attr_val", "("...
Check whether the length of stay should be inclusive.
[ "Check", "whether", "the", "length", "of", "stay", "should", "be", "inclusive", "." ]
252d4f0927c513eacde6b9ea41b76faa1423c34b
https://github.com/projectcypress/health-data-standards/blob/252d4f0927c513eacde6b9ea41b76faa1423c34b/lib/hqmf-parser/2.0/types.rb#L59-L68
train
Returns true if the element is inclusive length of stay
[ 30522, 13366, 18678, 1035, 3091, 1035, 1997, 1035, 2994, 1029, 1001, 3091, 11253, 9153, 2100, 1011, 15501, 14526, 2487, 1010, 15501, 10790, 2620, 2625, 1035, 2084, 1035, 5020, 1035, 3050, 1027, 2012, 16344, 1035, 11748, 1006, 1005, 1012, 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_edgegateway/lib/2019-03-01/generated/azure_mgmt_edgegateway/triggers.rb
Azure::EdgeGateway::Mgmt::V2019_03_01.Triggers.list_by_data_box_edge_device_with_http_info
def list_by_data_box_edge_device_with_http_info(device_name, resource_group_name, expand:nil, custom_headers:nil) list_by_data_box_edge_device_async(device_name, resource_group_name, expand:expand, custom_headers:custom_headers).value! end
ruby
def list_by_data_box_edge_device_with_http_info(device_name, resource_group_name, expand:nil, custom_headers:nil) list_by_data_box_edge_device_async(device_name, resource_group_name, expand:expand, custom_headers:custom_headers).value! end
[ "def", "list_by_data_box_edge_device_with_http_info", "(", "device_name", ",", "resource_group_name", ",", "expand", ":", "nil", ",", "custom_headers", ":", "nil", ")", "list_by_data_box_edge_device_async", "(", "device_name", ",", "resource_group_name", ",", "expand", ":...
Lists all the triggers configured in the device. @param device_name [String] The device name. @param resource_group_name [String] The resource group name. @param expand [String] Specify $filter='CustomContextTag eq <tag>' to filter on custom context tag property @param custom_headers [Hash{String => String}] A ha...
[ "Lists", "all", "the", "triggers", "configured", "in", "the", "device", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_edgegateway/lib/2019-03-01/generated/azure_mgmt_edgegateway/triggers.rb#L53-L55
train
Gets the list of all the data box edge devices in a resource group.
[ 30522, 13366, 2862, 1035, 2011, 1035, 2951, 1035, 3482, 1035, 3341, 30524, 6038, 2278, 1006, 5080, 1035, 2171, 1010, 7692, 1035, 2177, 1035, 2171, 1010, 7818, 1024, 7818, 1010, 7661, 1035, 20346, 2015, 1024, 7661, 1035, 20346, 2015, 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/vpn_connections.rb
Azure::Network::Mgmt::V2019_02_01.VpnConnections.begin_create_or_update_with_http_info
def begin_create_or_update_with_http_info(resource_group_name, gateway_name, connection_name, vpn_connection_parameters, custom_headers:nil) begin_create_or_update_async(resource_group_name, gateway_name, connection_name, vpn_connection_parameters, custom_headers:custom_headers).value! end
ruby
def begin_create_or_update_with_http_info(resource_group_name, gateway_name, connection_name, vpn_connection_parameters, custom_headers:nil) begin_create_or_update_async(resource_group_name, gateway_name, connection_name, vpn_connection_parameters, custom_headers:custom_headers).value! end
[ "def", "begin_create_or_update_with_http_info", "(", "resource_group_name", ",", "gateway_name", ",", "connection_name", ",", "vpn_connection_parameters", ",", "custom_headers", ":", "nil", ")", "begin_create_or_update_async", "(", "resource_group_name", ",", "gateway_name", ...
Creates a vpn connection to a scalable vpn gateway if it doesn't exist else updates the existing connection. @param resource_group_name [String] The resource group name of the VpnGateway. @param gateway_name [String] The name of the gateway. @param connection_name [String] The name of the connection. @param vpn_...
[ "Creates", "a", "vpn", "connection", "to", "a", "scalable", "vpn", "gateway", "if", "it", "doesn", "t", "exist", "else", "updates", "the", "existing", "connection", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_network/lib/2019-02-01/generated/azure_mgmt_network/vpn_connections.rb#L346-L348
train
Creates or updates a vpn connection in the specified gateway.
[ 30522, 13366, 4088, 1035, 3443, 1035, 2030, 1035, 10651, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 7692, 1035, 2177, 1035, 2171, 1010, 11909, 1035, 2171, 1010, 4434, 1035, 2171, 1010, 21210, 2078, 1035, 4434, 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
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_fault_operation_list
def get_fault_operation_list(type_filter, state_filter, timeout:60, custom_headers:nil) response = get_fault_operation_list_async(type_filter, state_filter, timeout:timeout, custom_headers:custom_headers).value! response.body unless response.nil? end
ruby
def get_fault_operation_list(type_filter, state_filter, timeout:60, custom_headers:nil) response = get_fault_operation_list_async(type_filter, state_filter, timeout:timeout, custom_headers:custom_headers).value! response.body unless response.nil? end
[ "def", "get_fault_operation_list", "(", "type_filter", ",", "state_filter", ",", "timeout", ":", "60", ",", "custom_headers", ":", "nil", ")", "response", "=", "get_fault_operation_list_async", "(", "type_filter", ",", "state_filter", ",", "timeout", ":", "timeout",...
Gets a list of user-induced fault operations filtered by provided input. Gets the a list of user-induced fault operations filtered by provided input. @param type_filter [Integer] Used to filter on OperationType for user-induced operations. 65535 - select all 1 - select PartitionDataLoss. 2 - select Part...
[ "Gets", "a", "list", "of", "user", "-", "induced", "fault", "operations", "filtered", "by", "provided", "input", "." ]
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#L21885-L21888
train
Gets the list of fault operations.
[ 30522, 13366, 2131, 1035, 6346, 1035, 3169, 1035, 2862, 1006, 2828, 1035, 11307, 1010, 2110, 1035, 11307, 1010, 2051, 5833, 1024, 3438, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3433, 1027, 2131, 1035, 6346, 1035, 3169, 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...
piotrmurach/github
lib/github_api/client/issues/comments.rb
Github.Client::Issues::Comments.edit
def edit(*args) arguments(args, required: [:user, :repo, :id]) do permit VALID_ISSUE_COMMENT_PARAM_NAME assert_required %w[ body ] end patch_request("/repos/#{arguments.user}/#{arguments.repo}/issues/comments/#{arguments.id}", arguments.params) end
ruby
def edit(*args) arguments(args, required: [:user, :repo, :id]) do permit VALID_ISSUE_COMMENT_PARAM_NAME assert_required %w[ body ] end patch_request("/repos/#{arguments.user}/#{arguments.repo}/issues/comments/#{arguments.id}", arguments.params) end
[ "def", "edit", "(", "*", "args", ")", "arguments", "(", "args", ",", "required", ":", "[", ":user", ",", ":repo", ",", ":id", "]", ")", "do", "permit", "VALID_ISSUE_COMMENT_PARAM_NAME", "assert_required", "%w[", "body", "]", "end", "patch_request", "(", "\...
Edit a comment @param [Hash] params @option params [String] :body Required string @example github = Github.new github.issues.comments.edit 'owner-name', 'repo-name', 'id', body: 'a new comment' @example github.issues.comments.edit user: 'owner-name', repo: 'repo-name', id: 'comment-...
[ "Edit", "a", "comment" ]
8702452c66bea33c9388550aed9e9974f76aaef1
https://github.com/piotrmurach/github/blob/8702452c66bea33c9388550aed9e9974f76aaef1/lib/github_api/client/issues/comments.rb#L118-L125
train
Edit an existing issue comment
[ 30522, 13366, 10086, 1006, 1008, 12098, 5620, 1007, 9918, 1006, 12098, 5620, 1010, 3223, 1024, 1031, 1024, 5310, 1010, 1024, 16360, 2080, 1010, 1024, 8909, 1033, 1007, 2079, 9146, 9398, 1035, 3277, 1035, 7615, 1035, 11498, 2213, 1035, 2171,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Azure/azure-sdk-for-ruby
management/azure_mgmt_advisor/lib/2017-03-31/generated/azure_mgmt_advisor/suppressions.rb
Azure::Advisor::Mgmt::V2017_03_31.Suppressions.delete_with_http_info
def delete_with_http_info(resource_uri, recommendation_id, name, custom_headers:nil) delete_async(resource_uri, recommendation_id, name, custom_headers:custom_headers).value! end
ruby
def delete_with_http_info(resource_uri, recommendation_id, name, custom_headers:nil) delete_async(resource_uri, recommendation_id, name, custom_headers:custom_headers).value! end
[ "def", "delete_with_http_info", "(", "resource_uri", ",", "recommendation_id", ",", "name", ",", "custom_headers", ":", "nil", ")", "delete_async", "(", "resource_uri", ",", "recommendation_id", ",", "name", ",", "custom_headers", ":custom_headers", ")", ".", "value...
Enables the activation of a snoozed or dismissed recommendation. The snoozed or dismissed attribute of a recommendation is referred to as a suppression. @param resource_uri [String] The fully qualified Azure Resource Manager identifier of the resource to which the recommendation applies. @param recommendation_id [...
[ "Enables", "the", "activation", "of", "a", "snoozed", "or", "dismissed", "recommendation", ".", "The", "snoozed", "or", "dismissed", "attribute", "of", "a", "recommendation", "is", "referred", "to", "as", "a", "suppression", "." ]
78eedacf8f8cbd65c2d8a2af421405eaa4373d8e
https://github.com/Azure/azure-sdk-for-ruby/blob/78eedacf8f8cbd65c2d8a2af421405eaa4373d8e/management/azure_mgmt_advisor/lib/2017-03-31/generated/azure_mgmt_advisor/suppressions.rb#L270-L272
train
Deletes a recommendation.
[ 30522, 13366, 3972, 12870, 1035, 2007, 1035, 8299, 1035, 18558, 1006, 7692, 1035, 24471, 2072, 1010, 12832, 1035, 8909, 1010, 2171, 1010, 7661, 1035, 20346, 2015, 1024, 9152, 2140, 1007, 3972, 12870, 1035, 2004, 6038, 2278, 1006, 7692, 1035...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...