query
stringlengths
7
9.55k
document
stringlengths
10
363k
metadata
dict
negatives
listlengths
0
101
negative_scores
listlengths
0
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
create colors for Flavor List on About page
def generate_color colors= [ "#FF3AAE", "#B9D61A", "#952DE1", "#A4D789", "#51A3A3", "#D96C06", "#039be5" ]; @p_colors=[] cnt=Flavor.all.length colors.cycle(cnt) do |color| @p_colors.push(color) @cnt=1 end end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def colors; end", "def list_colors\n color_string = \"\\nThe available colors are \"\n COLORS.each_with_index do |color, index|\n if index%2 == 0\n color_string += \"\\n\"\n end\n color_string += color + \" \"\n end\n puts color_string\n end", "def colors\n Outpost::Config...
[ "0.6602376", "0.6425603", "0.63745344", "0.61671686", "0.6091545", "0.6075925", "0.60741377", "0.60438085", "0.5970609", "0.5891239", "0.58699924", "0.5834377", "0.5814983", "0.58072644", "0.5797445", "0.57895315", "0.576246", "0.57360786", "0.57248354", "0.5717024", "0.57001...
0.6595495
1
Gets the authenticationConfiguration property value. Configuration for securing the API call to the logic app. For example, using OAuth client credentials flow.
def authentication_configuration return @authentication_configuration end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def authentication_configuration=(value)\n @authentication_configuration = value\n end", "def api_connector_configuration\n return @api_connector_configuration\n end", "def auth\n cfg_get(:auth)\n end", "def authentication\n if @property_hash...
[ "0.7428794", "0.62221205", "0.61769605", "0.6136105", "0.6065013", "0.59788036", "0.59498817", "0.58623785", "0.5769386", "0.56917673", "0.56702137", "0.5660071", "0.5660071", "0.5659464", "0.5654233", "0.5611192", "0.56078506", "0.5600149", "0.55505663", "0.552818", "0.55163...
0.79016024
0
Sets the authenticationConfiguration property value. Configuration for securing the API call to the logic app. For example, using OAuth client credentials flow.
def authentication_configuration=(value) @authentication_configuration = value end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def authentication_configuration\n return @authentication_configuration\n end", "def api_connector_configuration=(value)\n @api_connector_configuration = value\n end", "def set_AuthenticationToken(value)\n set_input(\"AuthenticationToken\", value)\n ...
[ "0.62557405", "0.57645583", "0.56482756", "0.56482756", "0.54519737", "0.5443476", "0.53830785", "0.53354716", "0.53053707", "0.53053164", "0.5297756", "0.5273331", "0.5259089", "0.52559584", "0.5249627", "0.52089", "0.5208254", "0.5204205", "0.51970655", "0.51808316", "0.513...
0.8014117
0
Gets the clientConfiguration property value. HTTP connection settings that define how long Azure AD can wait for a connection to a logic app, how many times you can retry a timedout connection and the exception scenarios when retries are allowed.
def client_configuration return @client_configuration end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def client_configuration=(value)\n @client_configuration = value\n end", "def client config = {}\n client_config = self.config.merge(config)\n if config.empty? or @config_hash.nil? or (client_config.hash == @config_hash)\n @config_hash = client_config.hash\n url ...
[ "0.64182746", "0.60474277", "0.60379213", "0.59218425", "0.59079677", "0.58127666", "0.5734466", "0.5730258", "0.5682821", "0.56278837", "0.5583346", "0.5559197", "0.5551939", "0.5461016", "0.545964", "0.5444042", "0.5421738", "0.53996027", "0.5349923", "0.5297001", "0.526830...
0.7162134
0
Sets the clientConfiguration property value. HTTP connection settings that define how long Azure AD can wait for a connection to a logic app, how many times you can retry a timedout connection and the exception scenarios when retries are allowed.
def client_configuration=(value) @client_configuration = value end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def client config = {}\n client_config = self.config.merge(config)\n if config.empty? or @config_hash.nil? or (client_config.hash == @config_hash)\n @config_hash = client_config.hash\n url = client_config[:url]\n client_config.delete_if { |k,v| not VALID_CLIENT_OPTIONS.include?(k) }\...
[ "0.64297974", "0.6047577", "0.59203404", "0.55798507", "0.5568651", "0.5484817", "0.54803276", "0.54684097", "0.54141283", "0.5315077", "0.5295524", "0.52529573", "0.52379036", "0.52378964", "0.5195221", "0.5176624", "0.51424456", "0.5122979", "0.51103574", "0.51011103", "0.5...
0.71485984
0
Instantiates a new customCalloutExtension and sets the default values.
def initialize() super end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def initialize()\n super\n @odata_type = \"#microsoft.graph.identityGovernance.customTaskExtensionCalloutData\"\n end", "def custom_extension_callout_instances=(value)\n @custom_extension_callout_instances = value\n end", "def initialize()\n ...
[ "0.6845944", "0.623667", "0.573717", "0.56646967", "0.5610975", "0.5542656", "0.5475975", "0.537802", "0.537802", "0.53288543", "0.5270364", "0.5228261", "0.516457", "0.516457", "0.51387274", "0.5110691", "0.51015735", "0.5093206", "0.5041892", "0.50306135", "0.50264055", "...
0.0
-1
Gets the description property value. Description for the customCalloutExtension object.
def description return @description end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_description\n return @m_description\n end", "def get_description\n return @m_description\n end", "def getDescription\r\n\t\t\t\t\treturn @description\r\n\t\t\t\tend", "def getDescription\r\n\t\t\t\t\treturn @description\r\n\t\t\t\tend", "def description\n @dat...
[ "0.71630687", "0.71630687", "0.6917369", "0.6917369", "0.68999064", "0.68555355", "0.6825633", "0.6813244", "0.6804009", "0.6799328", "0.6799328", "0.6771623", "0.6771623", "0.6770029", "0.67639786", "0.67639786", "0.67460924", "0.6736659", "0.67197454", "0.6714352", "0.67117...
0.6770902
36
Sets the description property value. Description for the customCalloutExtension object.
def description=(value) @description = value end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def description(value)\n @ole.Description = value\n nil\n end", "def description(value)\n @ole.Description = value\n nil\n end", "def description=(v)\n @description = v\n end", "def description=(val)\n self[:description] = val\n end", "def set_description(description)\n ...
[ "0.70115817", "0.70115817", "0.67756516", "0.67525095", "0.6739688", "0.6625119", "0.6563497", "0.6502624", "0.6502624", "0.648408", "0.64810264", "0.64649194", "0.64642584", "0.6463137", "0.64238435", "0.64238435", "0.64238435", "0.64238435", "0.64238435", "0.64238435", "0.6...
0.70883626
22
Gets the displayName property value. Display name for the customCalloutExtension object.
def display_name return @display_name end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def display_name\n @json['profile']['displayName'] rescue nil\n end", "def display_name\n @data['display_name']\n end", "def display_name\n @hash['display_name']\n end", "def display_name\n return @display_name\n end", "def name\n ...
[ "0.73382527", "0.72413456", "0.72393304", "0.7093861", "0.7052196", "0.7014089", "0.7012526", "0.69610924", "0.69289255", "0.68914926", "0.68657166", "0.68510664", "0.6784953", "0.6703927", "0.66883343", "0.66883343", "0.6666865", "0.6639834", "0.65269625", "0.65014756", "0.6...
0.7191236
37
Sets the displayName property value. Display name for the customCalloutExtension object.
def display_name=(value) @display_name = value end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def display_name=(value)\n @display_name = value\n end", "def display_name=(value)\n @display_name = value\n end", "def display_name=(value)\n @children['display-name'][:value] = value\n end", ...
[ "0.67930627", "0.6741615", "0.65400475", "0.6470727", "0.6423938", "0.6317072", "0.6282651", "0.61771584", "0.61771584", "0.61771584", "0.6167414", "0.6144297", "0.6102219", "0.60804045", "0.5948311", "0.5948311", "0.5948311", "0.59431374", "0.58864474", "0.5841514", "0.57722...
0.6822962
36
Gets the endpointConfiguration property value. The type and details for configuring the endpoint to call the logic app's workflow.
def endpoint_configuration return @endpoint_configuration end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def endpoint_configuration=(value)\n @endpoint_configuration = value\n end", "def endpoint_type\n return @endpoint_type\n end", "def endpoint\n @endpoint ||= begin\n if self.endpoint_type && self.endpoint_id\n self.endpoint_type.con...
[ "0.7231304", "0.6955254", "0.64906204", "0.64906204", "0.6312578", "0.61996096", "0.61744297", "0.5946924", "0.59467477", "0.5924137", "0.58962613", "0.58962613", "0.58810055", "0.58810055", "0.58810055", "0.5832077", "0.5824659", "0.5760125", "0.57184917", "0.5715808", "0.56...
0.8008234
0
Sets the endpointConfiguration property value. The type and details for configuring the endpoint to call the logic app's workflow.
def endpoint_configuration=(value) @endpoint_configuration = value end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def endpoint_type=(value)\n @endpoint_type = value\n end", "def endpoint_configuration\n return @endpoint_configuration\n end", "def api_connector_configuration=(value)\n @api_connector_configuration = value\n end", "def set_Endpoi...
[ "0.6700718", "0.63087946", "0.61754483", "0.61327094", "0.61327094", "0.61327094", "0.61327094", "0.61327094", "0.6132575", "0.608865", "0.608865", "0.608865", "0.608865", "0.608865", "0.6033081", "0.58682066", "0.5828947", "0.57804906", "0.5772256", "0.56774616", "0.5671572"...
0.81536555
0
The deserialization information for the current model
def get_field_deserializers() return super.merge({ "authenticationConfiguration" => lambda {|n| @authentication_configuration = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::CustomExtensionAuthenticationConfiguration.create_from_discriminator_value(pn) }) }, "clientConfiguration" => lambda {|n| @client_configuration = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::CustomExtensionClientConfiguration.create_from_discriminator_value(pn) }) }, "description" => lambda {|n| @description = n.get_string_value() }, "displayName" => lambda {|n| @display_name = n.get_string_value() }, "endpointConfiguration" => lambda {|n| @endpoint_configuration = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::CustomExtensionEndpointConfiguration.create_from_discriminator_value(pn) }) }, }) end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def deserialized\n @deserialized ||= @serializer.deserialize @serialized_object\n end", "def get_field_deserializers()\n return super.merge({\n \"detectionStatus\" => lambda {|n| @detection_status = n.get_enum_value(MicrosoftGraph::Models::SecurityDetectionStatus) },...
[ "0.6510734", "0.63224316", "0.6322254", "0.63094735", "0.62954384", "0.6238735", "0.6232461", "0.62155676", "0.6200175", "0.6199403", "0.6173917", "0.61733985", "0.61705345", "0.61631054", "0.61620396", "0.6158031", "0.6156071", "0.6142402", "0.613998", "0.6138061", "0.612005...
0.0
-1
Serializes information the current object
def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_object_value("authenticationConfiguration", @authentication_configuration) writer.write_object_value("clientConfiguration", @client_configuration) writer.write_string_value("description", @description) writer.write_string_value("displayName", @display_name) writer.write_object_value("endpointConfiguration", @endpoint_configuration) end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def serialize\n end", "def serialize(object) end", "def serialize; end", "def serialize; end", "def serialize\n \n end", "def serialize\n raise NotImplementedError\n end", "def serialize\n raise NotImplementedError\n end", "def dump\r\n super + to_s\r\n end", ...
[ "0.7951372", "0.7645999", "0.7579812", "0.7579812", "0.7440032", "0.720861", "0.720861", "0.7207583", "0.7016516", "0.70007193", "0.6992252", "0.69838214", "0.69723576", "0.69666415", "0.69666415", "0.6942002", "0.69417155", "0.6933786", "0.6913977", "0.6891677", "0.68810964"...
0.65174305
72
Santa's senior gift organizer Elf developed a way to represent up to 26 gifts by assigning a unique alphabetical character to each gift. After each gift was assigned a character, the gift organizer Elf then joined the characters to form the gift ordering code. Santa asked his organizer to order the characters in alphabetical order, but the Elf fell asleep from consuming too much hot chocolate and candy canes! Can you help him out? Sort the Gift Code Write a function called sortGiftCode (sort_gift_code in Ruby) that accepts a string containing up to 26 unique alphabetical characters, and returns a string containing the same characters in alphabetical order.
def sort_gift_code(str) str.split('').sort.join('') end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sort_gift_code(code)\n code.chars.sort.join\nend", "def sort_gift_code(code)\n code.downcase.chars.sort.join\nend", "def sort_gift_code code\n code.split('').sort.join\nend", "def sort_gift_code code\n return nil if code.nil?\n\n # In-place insertion sort with a worst case O(n^2) time complexity, an...
[ "0.8398874", "0.8345212", "0.7997576", "0.7151406", "0.6687016", "0.65889966", "0.65751934", "0.6556865", "0.65260535", "0.6485258", "0.63672405", "0.63672405", "0.63672405", "0.63462824", "0.63279575", "0.63279575", "0.6288201", "0.6256378", "0.6245072", "0.62347287", "0.619...
0.78664654
3
Write a method sum that accepts an unlimited number of integer arguments, and adds all of them together. The method should reject any arguments that are not integers, and sum the remaining integers.
def sum(*integers) array = [] array.push(*integers) array.reject! {|num| num.class !=Fixnum} sum = 0 array.each {|num| sum += num} sum end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sum(*nums)\n total = 0\n nums.each do |num|\n num.is_a?(Integer) ? total += num : nil\n end\n total\nend", "def sum(*arguments)\n sum = 0\n arguments.each {|arg| sum += arg}\n sum\nend", "def add(*params)\n params.inject(0) do |sum, num|\n sum + num if num.is_a?(Integer)\n end\nend", "def ...
[ "0.8036338", "0.79253364", "0.7761085", "0.77043426", "0.7550549", "0.7550549", "0.7496071", "0.74687463", "0.7441262", "0.74192625", "0.7403645", "0.73373103", "0.7304929", "0.72714174", "0.7269726", "0.71123385", "0.70913845", "0.7086064", "0.70361096", "0.70222443", "0.700...
0.78754646
2
Christmas is coming and many people dreamed of having a ride with Santa's sleigh. But, of course, only Santa himself is allowed to use this wonderful transportation. And in order to make sure, that only he can board the sleigh, there's an authentication mechanism. Your task is to implement the authenticate() method of the sleigh, which takes the name of the person, who wants to board the sleigh and a secret password. If, and only if, the name equals "Santa Claus" and the password is "Ho Ho Ho!" (yes, even Santa has a secret password with uppercase and lowercase letters and special characters :D), the return value must be true. Otherwise it should return false.
def authenticate(name, password) if name != "Santa Claus" || password != "Ho Ho Ho!" return false end true end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sleigh(name, password)\n return true if name == \"Santa Claus\" && password == \"Ho Ho Ho!\"\n return false\nend", "def authenticate(rank, name, credentials)\n if (rank == \"007\" && name == \"James Bond\") || credentials == \"Secret Agent\"\n# puts \"Access granted.\"\n else\n# puts \"Access denie...
[ "0.8124254", "0.72363806", "0.6964328", "0.6912046", "0.68965155", "0.6884862", "0.677578", "0.677578", "0.67201674", "0.6705317", "0.67031866", "0.6604363", "0.6580088", "0.6531563", "0.6506351", "0.64944696", "0.64857185", "0.6480668", "0.6412478", "0.6396737", "0.63840884"...
0.80870575
1
Instance methods should follow Alphabet rules
def get_message(patient_name: nil, doctor_name: nil) doctor_sms = nil doctor_push = nil patient_sms = nil patient_push = nil reason_code_static_name = reason_code.try(:static_name) case event.static_name when "Cancelation - GPDQ Error" case reason_code_static_name when "GPDQ Platform Error" doctor_sms = "Dear Dr #{doctor_name}, We have cancelled your next appointment due to a technical error. Please email your GPDQ account manager for further information" when "Back office mistake", "Tech error", "Unspecified" doctor_sms = "Yes" end when "Patient Cancellation" case reason_code_static_name when "Patient Cancelled via app" doctor_sms = "Dear Dr #{doctor_name}, #{patient_name} has now cancelled booking ref #{appointment_id}. Cancellation credits may be applicable, please contact your account manager for further information" patient_sms = "Your cancellation was successful. A cancellation fee will be deducted from your account if the doctor has been despatched to your booking" when "Patient didn't answer door" patient_sms = "Dear #{patient_name}, your booking ref #{appointment_id} has been cancelled as the doctor was unable to locate you. As per our t&c's a cancellation fee is applicable" when "Due to delay" doctor_sms = "Dear Dr #{doctor_name}, we have now cancelled your next appt as the patient has informed us they are unable to wait any longer" when "Due to return" doctor_sms = "Dear Dr #{doctor_name}, your recent return resulted in cancellation by the patient. As per our terms and conditions a customer compensation credit is required." when "Prior to doctor confirming on route" doctor_sms = "Dear Dr #{doctor_name}, we wanted to inform you that the booking in your dashboard has now been cancelled by the patient. Please do not proceed to the appointment" when "Serious medical issue with Patient" doctor_sms = "Dear Dr #{doctor_name}, your upcoming booking has been cancelled by the patient due to a serious medical emergency." end when "Doctor Return" case reason_code_static_name when "60 mins before ETA", "30 mins before ETA" patient_sms = " dr #{doctor_name} has just informed us he/she will be unable to complete your appt due to an unexpected issue. GPDQ has found you a replacement doctor , track him/her here!" when "15 mins before ETA" patient_sms = " dr #{doctor_name} has just informed us he/she will be unable to complete your appt due to an unexpected issue. GPDQ has found you a replacement doctor who will arrive within 15 minutes , track him/her here!" end when "Doctor delayed" case reason_code_static_name when "Late >10 minutes" patient_sms = "Dr #{doctor_name} is running 10 minutes late, apologies for the inconvenience" when "Late >20 minutes" patient_sms = "Doctor #{doctor_name} is running late due to traffic and will be with you as soon as possible." when "Late >40 minutes" patient_sms = "Unfotunately Dr #{doctor_name} has been delayed due to an extention with his previous patient & will be with you shortly. A member of our team will contact you to resolve this" end when "Other Customer Service Event" patient_sms = "Reactive" patient_push = "Reactive" when "Booking confirmed" patient_sms = "Yes" when "Dispached to doctor" doctor_sms = "Dear Dr #{doctor_name}, your next appointment is waiting for acceptance." doctor_push = "You have a new appointment awaiting acceptance" when "Doctor not yet confirmed on way when due" doctor_sms = "Dear Dr #{doctor_name}, please accept your next booking or contact us if you are unable to fulfill this" when "Doctor confirmed on way" patient_sms = "Hi #{patient_name}, your booking ref #{appointment_id} is confirmed and doctor #{doctor_name} is on his way. Track him here <link>/track on link" when "Reminder to Doctor that appt ends in 5 minutes" doctor_push = "Dr #{doctor_name}, your appointment is coming to an end in 5 minutes. If you need an extension, please inform the patient" when "Appointment extension in 5 min increments (increment + 3 mins is regarded as the lower increment)" case reason_code_static_name when "5 minute extension" patient_sms = "Hi #{patient_name}, Your appointment has been extended and any applicable charges will be available to view on your receipt" end when "Additional Onsite Consultation" case reason_code_static_name when "New Patient" patient_sms = "You have requested an additional consultation with Dr #{doctor_name} which will be deducted from your chosen payment method" end end message = { doctor_sms: doctor_sms, doctor_push: doctor_push, patient_sms: patient_sms, patient_push: patient_push } end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def alphabetize\n\nend", "def get_alpha\n@alphabet\nend", "def calculate_alphabet(str)\nend", "def alphabet\n ('A'..'Z').to_a\n end", "def alphabet\n ('A'..'Z').to_a\n end", "def alphabet\n ('a'..'z').to_a\n end", "def alphabet\n 'abcdefghijklmnopqrstuvwxyz'\n end", "def hows_by_a...
[ "0.78855467", "0.71844023", "0.70982933", "0.69863355", "0.69863355", "0.6958435", "0.69453466", "0.677577", "0.66892135", "0.6671907", "0.6671907", "0.6671907", "0.6671907", "0.66327804", "0.66123766", "0.66094446", "0.6578841", "0.65633196", "0.6541149", "0.6540277", "0.651...
0.0
-1
strips any entered scheme from url and www if url is not a numerical ip addr then prepends https and stores to dB
def parse_url_host url = self.url.gsub(/^https?\:\/\//, '') url = url.gsub(/www\./, '') unless (url.match(/www\./).blank? && url.gsub(/www\./, '').match(/[A-Za-z]/)) self.url = "https://" + url end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sanitize_url(url)\n # URL matches 'www'\n if url =~ /w{3}/\n sterilize url.split(/\\./)[1]\n # URL does not match 'www'\n else\n first_parts = url.split(/\\./)[0..1]\n scheme_eliminated = first_parts.map {|part| part.gsub(/[a-zA-Z]+\\W+/, '')}.join(' ')\n sterilize(scheme_elimin...
[ "0.7828597", "0.75466067", "0.73650926", "0.726612", "0.72570723", "0.71544456", "0.71328354", "0.7105092", "0.7068181", "0.70451283", "0.7023858", "0.7003826", "0.698957", "0.6976626", "0.69628936", "0.69560623", "0.69495976", "0.6930231", "0.6912786", "0.68988025", "0.68877...
0.7635658
1
Distance between two points on Earth computed via Haversine formula. Ruby implementation taken from
def distance_between # convert to coord arrays point1 = extract_coords([user.current_latitude, user.current_longitude]) point2 = extract_coords([connection.current_latitude, connection.current_longitude]) # convert degrees to radians point1 = to_radians(point1) point2 = to_radians(point2) # compute deltas dlat = point2[0] - point1[0] dlon = point2[1] - point1[1] a = (Math.sin(dlat / 2)) ** 2 + Math.cos(point1[0]) * (Math.sin(dlon / 2)) ** 2 * Math.cos(point2[0]) c = 2 * Math.atan2( Math.sqrt(a), Math.sqrt(1-a)) c * earth_radius end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def haversine_distance( lat1, lon1, lat2, lon2 )\n\n dlon = lon2 - lon1\n dlat = lat2 - lat1\n\n dlon_rad = dlon * RAD_PER_DEG\n dlat_rad = dlat * RAD_PER_DEG\n\n lat1_rad = lat1 * RAD_PER_DEG\n lon1_rad = lon1 * RAD_PER_DEG\n\n lat2_rad = lat2 * RAD_PER_DEG\n lon2_rad = lon2 * RAD_PER_DEG\...
[ "0.8251802", "0.8207188", "0.81773204", "0.81653696", "0.8155535", "0.81397545", "0.80693436", "0.8068547", "0.80557925", "0.79362345", "0.7815037", "0.7751881", "0.77176154", "0.7686976", "0.7587454", "0.7583232", "0.75755495", "0.7568377", "0.7561354", "0.7561354", "0.74854...
0.7109342
41
design a stack which has a function to return the min element in 0(1) time
def question_one stack = Stack.new stack.push(3) stack.push(5) stack.push(2) stack.push(4) stack.push(1) stack.pop stack.pop stack.pop stack.min end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_min()\n # smallest = Float::INFINITY\n # @stack.each do |item|\n # if item < smallest\n # smallest = item\n # end\n # end\n # return smallest\n @stack.min\n end", "def min()\n return \"Stack ...
[ "0.80007076", "0.78975594", "0.78537023", "0.78212935", "0.7787444", "0.7715407", "0.76227015", "0.7537512", "0.74317884", "0.73699236", "0.71678793", "0.6970484", "0.6970484", "0.69394296", "0.69184583", "0.6898688", "0.68943745", "0.68899435", "0.687731", "0.687731", "0.686...
0.7711629
6
puts question_one design a set of stacks, which initialize with a given capacity, and creates a new stack whenever one is at capacity. Calling push and pop in the set should still act as if they were a single stack. Bonus: add a function to pop at a particular index (of the set of stacks). Remember to reshuffle the stacks to account for popping at a stack not at the end of the set.
def question_two set = SetOfStacks.new(5) set.push(3) set.push(2) set.push(5) set.push(1) set.push(7) set.push(4) set.push(2) set.push(8) set.push(2) set.push(1) set.push(3) set.push(5) set.pop set.pop_at(1) set end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def question_one\n stack = Stack.new\n stack.push(3)\n stack.push(5)\n stack.push(2)\n stack.push(4)\n stack.push(1)\n stack.pop\n stack.pop\n stack.pop\n stack.min\nend", "def push_reset\n @stack << Set.new\n end", "def test_full_stack_push_and_pop\n puts \"test_full_stack_push_and_po...
[ "0.67169845", "0.60868114", "0.5727895", "0.5604344", "0.5569703", "0.5539646", "0.5528882", "0.5502673", "0.54474705", "0.5444448", "0.54226047", "0.5417121", "0.5389287", "0.5387379", "0.5386199", "0.5385833", "0.536609", "0.5351307", "0.53417605", "0.5307624", "0.5307624",...
0.75130516
0
p question_two.to_s implement a myQueue class which implements a queue using two stacks
def question_three dequeued = [] my_queue = MyQueue.new my_queue.enqueue(5) my_queue.enqueue(3) my_queue.enqueue(2) my_queue.enqueue(7) my_queue.enqueue(1) my_queue.enqueue(2) my_queue.enqueue(4) dequeued << my_queue.dequeue my_queue.enqueue(3) my_queue.enqueue(7) my_queue.enqueue(1) dequeued << my_queue.dequeue [my_queue.to_s,dequeued] end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def push(x)\n q = @queue1.empty? ? @queue2 : @queue1\n q.push x\n end", "def pop\n until @queue_1.size == 1\n @queue_2 << @queue_1.shift\n end\n\n # popped_element = @queue_1.shift\n # @queue_1 = @queue_2\n # @queue_2 = []\n # popped_element\n\n # ..is the same as..\n\n # q1 h...
[ "0.67159617", "0.668524", "0.64871514", "0.6462128", "0.6430491", "0.6419147", "0.6416026", "0.63223946", "0.63028276", "0.62758344", "0.62758344", "0.6264278", "0.6264278", "0.6113086", "0.6092225", "0.60713464", "0.6065184", "0.60640025", "0.6041122", "0.6040112", "0.602908...
0.7241949
0
p question_three write a program that will sort a stack so that the smallest items are on the top. You may only use one additional stack for storage, but no other data structures (such as an array).
def stack_sort(stack) min = 1.0/0.0 count = 0 length = stack.length to_sort = stack storage = Stack.new until count == length sorted = true until to_sort.is_empty? test_el = to_sort.pop min = test_el < min ? test_el : min storage.push(test_el) end count += 1 until storage.length < count test_el = storage.pop if test_el == min temp_var = test_el until storage.length < count to_sort.push(storage.pop) end else to_sort.push(test_el) end end storage.push(temp_var) min = 1.0/0.0 end storage.length.times do to_sort.push(storage.pop) end to_sort end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sort_stack(stack)\n temp = Stack.new\n\n until stack.empty?\n # Move all items to temp stack and track the minimum value\n min = nil\n until stack.empty?\n val = stack.pop\n min = min.nil? ? val : [val, min].min\n temp.push(val)\n end\n\n # Move all back except the minimum value...
[ "0.8075303", "0.78782034", "0.7820256", "0.77732575", "0.77030426", "0.72726357", "0.69126266", "0.6744116", "0.65452254", "0.64637953", "0.6410511", "0.62373275", "0.6221705", "0.61945254", "0.61909825", "0.61162096", "0.6097377", "0.6087685", "0.60550016", "0.605343", "0.60...
0.81868464
0
Deletes a emergency group by ID
def delete_architect_emergencygroup(emergency_group_id, opts = {}) delete_architect_emergencygroup_with_http_info(emergency_group_id, opts) return nil end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def delete_group(id)\n delete(\"groups/#{id}\")\n end", "def delete_group(group)\n\t\t\tend", "def delete_group(group)\n\t\t\tend", "def DeleteGroup id\n \n APICall(path: \"groups/#{id}.json\",method: 'DELETE')\n \n end", "def del(id)\n if id.is_a?(Fixnum)\n ...
[ "0.7560683", "0.73281443", "0.73281443", "0.7268903", "0.72589815", "0.7198673", "0.7177556", "0.71544147", "0.712937", "0.706376", "0.70377743", "0.6993799", "0.6983373", "0.69767874", "0.69343626", "0.686889", "0.6852399", "0.68497676", "0.6839678", "0.67914784", "0.6767562...
0.0
-1
Deletes a emergency group by ID
def delete_architect_emergencygroup_with_http_info(emergency_group_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi.delete_architect_emergencygroup ..." end # verify the required parameter 'emergency_group_id' is set fail ArgumentError, "Missing the required parameter 'emergency_group_id' when calling ArchitectApi.delete_architect_emergencygroup" if emergency_group_id.nil? # resource path local_var_path = "/api/v2/architect/emergencygroups/{emergencyGroupId}".sub('{format}','json').sub('{' + 'emergencyGroupId' + '}', emergency_group_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud OAuth'] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#delete_architect_emergencygroup\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def delete_group(id)\n delete(\"groups/#{id}\")\n end", "def delete_group(group)\n\t\t\tend", "def delete_group(group)\n\t\t\tend", "def DeleteGroup id\n \n APICall(path: \"groups/#{id}.json\",method: 'DELETE')\n \n end", "def del(id)\n if id.is_a?(Fixnum)\n ...
[ "0.7560683", "0.73281443", "0.73281443", "0.7268903", "0.72589815", "0.7198673", "0.7177556", "0.71544147", "0.712937", "0.706376", "0.70377743", "0.6993799", "0.6983373", "0.69767874", "0.69343626", "0.686889", "0.6852399", "0.68497676", "0.6839678", "0.67914784", "0.6767562...
0.64334077
48
Delete an IVR Config.
def delete_architect_ivr(ivr_id, opts = {}) delete_architect_ivr_with_http_info(ivr_id, opts) return nil end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def delete_at index\n @config.delete_at index\n end", "def destroy\n @ddconfig.destroy\n end", "def delete(key)\n @config.delete(key.to_s)\n end", "def delete(key)\n load_config unless @config\n @config.delete(key)\n save_config\n end", "def delete(key)\n self.con...
[ "0.72118694", "0.7145409", "0.70277077", "0.70246106", "0.7007999", "0.68827564", "0.6879511", "0.6835397", "0.673013", "0.66797525", "0.6645344", "0.6642264", "0.6635647", "0.66325575", "0.6616162", "0.66032386", "0.6584069", "0.6546115", "0.6536819", "0.6536819", "0.6530864...
0.0
-1
Delete an IVR Config.
def delete_architect_ivr_with_http_info(ivr_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi.delete_architect_ivr ..." end # verify the required parameter 'ivr_id' is set fail ArgumentError, "Missing the required parameter 'ivr_id' when calling ArchitectApi.delete_architect_ivr" if ivr_id.nil? # resource path local_var_path = "/api/v2/architect/ivrs/{ivrId}".sub('{format}','json').sub('{' + 'ivrId' + '}', ivr_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud OAuth'] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#delete_architect_ivr\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def delete_at index\n @config.delete_at index\n end", "def destroy\n @ddconfig.destroy\n end", "def delete(key)\n @config.delete(key.to_s)\n end", "def delete(key)\n load_config unless @config\n @config.delete(key)\n save_config\n end", "def delete(key)\n self.con...
[ "0.72118694", "0.7145409", "0.70277077", "0.70246106", "0.7007999", "0.68827564", "0.6879511", "0.6835397", "0.673013", "0.66797525", "0.6645344", "0.6642264", "0.6635647", "0.66325575", "0.6616162", "0.66032386", "0.6584069", "0.6546115", "0.6536819", "0.6536819", "0.6530864...
0.0
-1
Delete specified user prompt
def delete_architect_prompt(prompt_id, opts = {}) delete_architect_prompt_with_http_info(prompt_id, opts) return nil end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def remove_client_prompt\n\t\tname = prompt_input('To unsubscribe, please enter your first name:').capitalize\n\t\tputs \"Sorry to see you go, #{name}, but hope you'll be back again.\"\n\t\t$shelter.clients.delete(name)\n\tend", "def delete_user\n system('clear')\n puts \"Type \" + \"DELETE\".red.u...
[ "0.736713", "0.73197997", "0.71394134", "0.7121536", "0.69671696", "0.6946122", "0.69263166", "0.68387824", "0.68023115", "0.6798241", "0.6700496", "0.66746116", "0.6612568", "0.65583396", "0.6545014", "0.6539675", "0.65322393", "0.64492345", "0.63958305", "0.63782465", "0.63...
0.0
-1
Delete specified user prompt
def delete_architect_prompt_with_http_info(prompt_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi.delete_architect_prompt ..." end # verify the required parameter 'prompt_id' is set fail ArgumentError, "Missing the required parameter 'prompt_id' when calling ArchitectApi.delete_architect_prompt" if prompt_id.nil? # resource path local_var_path = "/api/v2/architect/prompts/{promptId}".sub('{format}','json').sub('{' + 'promptId' + '}', prompt_id.to_s) # query parameters query_params = {} query_params[:'allResources'] = opts[:'all_resources'] if opts[:'all_resources'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud OAuth'] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#delete_architect_prompt\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def remove_client_prompt\n\t\tname = prompt_input('To unsubscribe, please enter your first name:').capitalize\n\t\tputs \"Sorry to see you go, #{name}, but hope you'll be back again.\"\n\t\t$shelter.clients.delete(name)\n\tend", "def delete_user\n system('clear')\n puts \"Type \" + \"DELETE\".red.u...
[ "0.736713", "0.73197997", "0.71394134", "0.7121536", "0.69671696", "0.6946122", "0.69263166", "0.68387824", "0.68023115", "0.6798241", "0.6700496", "0.66746116", "0.6612568", "0.65583396", "0.6545014", "0.6539675", "0.65322393", "0.64492345", "0.63958305", "0.63782465", "0.63...
0.0
-1
Delete specified user prompt resource
def delete_architect_prompt_resource(prompt_id, language_code, opts = {}) delete_architect_prompt_resource_with_http_info(prompt_id, language_code, opts) return nil end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def deleteFW (path)\n choose = prompt(text: \"delete \" + path.to_s + \"?\\n press 1 to continue, 0 to exit: \").to_i\n if choose.to_i == 0 \n abort UI.user_error!(\"program was forced exit by user\")\nelse\n sh(\"rm -rf \" + path.to_s)\n end\nend", "def destroy\n prompt = current_user.pr...
[ "0.7113285", "0.69132537", "0.6711234", "0.66499233", "0.6626295", "0.65782785", "0.65721905", "0.65721905", "0.65157104", "0.64641756", "0.6437316", "0.6422723", "0.6389612", "0.6375326", "0.6325095", "0.6296788", "0.62913567", "0.62567484", "0.6197623", "0.61974144", "0.617...
0.0
-1
Delete specified user prompt resource
def delete_architect_prompt_resource_with_http_info(prompt_id, language_code, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi.delete_architect_prompt_resource ..." end # verify the required parameter 'prompt_id' is set fail ArgumentError, "Missing the required parameter 'prompt_id' when calling ArchitectApi.delete_architect_prompt_resource" if prompt_id.nil? # verify the required parameter 'language_code' is set fail ArgumentError, "Missing the required parameter 'language_code' when calling ArchitectApi.delete_architect_prompt_resource" if language_code.nil? # resource path local_var_path = "/api/v2/architect/prompts/{promptId}/resources/{languageCode}".sub('{format}','json').sub('{' + 'promptId' + '}', prompt_id.to_s).sub('{' + 'languageCode' + '}', language_code.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud OAuth'] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#delete_architect_prompt_resource\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def deleteFW (path)\n choose = prompt(text: \"delete \" + path.to_s + \"?\\n press 1 to continue, 0 to exit: \").to_i\n if choose.to_i == 0 \n abort UI.user_error!(\"program was forced exit by user\")\nelse\n sh(\"rm -rf \" + path.to_s)\n end\nend", "def destroy\n prompt = current_user.pr...
[ "0.7113285", "0.69132537", "0.6711234", "0.66499233", "0.6626295", "0.65782785", "0.65721905", "0.65721905", "0.65157104", "0.64641756", "0.6437316", "0.6422723", "0.6389612", "0.6375326", "0.6325095", "0.6296788", "0.62913567", "0.62567484", "0.6197623", "0.61974144", "0.617...
0.0
-1
Delete specified user prompt resource audio
def delete_architect_prompt_resource_audio(prompt_id, language_code, opts = {}) delete_architect_prompt_resource_audio_with_http_info(prompt_id, language_code, opts) return nil end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def deleteFW (path)\n choose = prompt(text: \"delete \" + path.to_s + \"?\\n press 1 to continue, 0 to exit: \").to_i\n if choose.to_i == 0 \n abort UI.user_error!(\"program was forced exit by user\")\nelse\n sh(\"rm -rf \" + path.to_s)\n end\nend", "def remove_sound(name)\n music = MSPhysi...
[ "0.64733315", "0.6427093", "0.6412839", "0.63576794", "0.63469064", "0.63367647", "0.63367647", "0.62903297", "0.62618893", "0.62046874", "0.61865616", "0.6181472", "0.6172934", "0.60952795", "0.6085419", "0.6073048", "0.60632443", "0.603914", "0.60286134", "0.6022457", "0.60...
0.61408335
13
Delete specified user prompt resource audio
def delete_architect_prompt_resource_audio_with_http_info(prompt_id, language_code, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi.delete_architect_prompt_resource_audio ..." end # verify the required parameter 'prompt_id' is set fail ArgumentError, "Missing the required parameter 'prompt_id' when calling ArchitectApi.delete_architect_prompt_resource_audio" if prompt_id.nil? # verify the required parameter 'language_code' is set fail ArgumentError, "Missing the required parameter 'language_code' when calling ArchitectApi.delete_architect_prompt_resource_audio" if language_code.nil? # resource path local_var_path = "/api/v2/architect/prompts/{promptId}/resources/{languageCode}/audio".sub('{format}','json').sub('{' + 'promptId' + '}', prompt_id.to_s).sub('{' + 'languageCode' + '}', language_code.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud OAuth'] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#delete_architect_prompt_resource_audio\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def deleteFW (path)\n choose = prompt(text: \"delete \" + path.to_s + \"?\\n press 1 to continue, 0 to exit: \").to_i\n if choose.to_i == 0 \n abort UI.user_error!(\"program was forced exit by user\")\nelse\n sh(\"rm -rf \" + path.to_s)\n end\nend", "def remove_sound(name)\n music = MSPhysi...
[ "0.64733315", "0.6427093", "0.6412839", "0.63576794", "0.63469064", "0.63367647", "0.63367647", "0.62903297", "0.62618893", "0.62046874", "0.61865616", "0.6172934", "0.61408335", "0.60952795", "0.6085419", "0.6073048", "0.60632443", "0.603914", "0.60286134", "0.6022457", "0.6...
0.6181472
11
Delete a schedule by id
def delete_architect_schedule(schedule_id, opts = {}) delete_architect_schedule_with_http_info(schedule_id, opts) return nil end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def deleteschedule(scid)\r\n scrbslog(\"======Begin to delete a schedule======\")\r\n @schedule = Schedule.find(scid)\r\n @user = User.find(@schedule.user_id)\r\n scrbslog(\"Author:\" + @user.name)\r\n @status = Status.find_by_scheduleid(@schedule.id)\r\n scrbslog(@schedule.title + \" \" + @sched...
[ "0.8206917", "0.77422696", "0.7671136", "0.7639833", "0.76387453", "0.74252176", "0.7379897", "0.7379897", "0.7379897", "0.7379897", "0.7379897", "0.73679096", "0.7349875", "0.7349875", "0.7349875", "0.73209506", "0.73135287", "0.72386223", "0.72273815", "0.7211314", "0.71870...
0.0
-1
Delete a schedule by id
def delete_architect_schedule_with_http_info(schedule_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi.delete_architect_schedule ..." end # verify the required parameter 'schedule_id' is set fail ArgumentError, "Missing the required parameter 'schedule_id' when calling ArchitectApi.delete_architect_schedule" if schedule_id.nil? # resource path local_var_path = "/api/v2/architect/schedules/{scheduleId}".sub('{format}','json').sub('{' + 'scheduleId' + '}', schedule_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud OAuth'] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#delete_architect_schedule\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def deleteschedule(scid)\r\n scrbslog(\"======Begin to delete a schedule======\")\r\n @schedule = Schedule.find(scid)\r\n @user = User.find(@schedule.user_id)\r\n scrbslog(\"Author:\" + @user.name)\r\n @status = Status.find_by_scheduleid(@schedule.id)\r\n scrbslog(@schedule.title + \" \" + @sched...
[ "0.8206917", "0.77422696", "0.7671136", "0.7639833", "0.76387453", "0.74252176", "0.7379897", "0.7379897", "0.7379897", "0.7379897", "0.7379897", "0.73679096", "0.7349875", "0.7349875", "0.7349875", "0.73209506", "0.73135287", "0.72386223", "0.72273815", "0.7211314", "0.71870...
0.6508251
88
Deletes a schedule group by ID
def delete_architect_schedulegroup(schedule_group_id, opts = {}) delete_architect_schedulegroup_with_http_info(schedule_group_id, opts) return nil end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def delete_group(id)\n delete(\"groups/#{id}\")\n end", "def DeleteGroup id\n \n APICall(path: \"groups/#{id}.json\",method: 'DELETE')\n \n end", "def remove_group(id)\n delete(\"/groups/#{id}\")\n end", "def destroy\n @schedule = Schedule.find(params[:id]...
[ "0.74858385", "0.72111374", "0.70574635", "0.6993384", "0.69597995", "0.6855373", "0.6850001", "0.6788618", "0.67747337", "0.67574567", "0.67574567", "0.6717887", "0.67140174", "0.6668678", "0.6664855", "0.6661405", "0.6655299", "0.65987754", "0.65966296", "0.65286225", "0.65...
0.0
-1
Deletes a schedule group by ID
def delete_architect_schedulegroup_with_http_info(schedule_group_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi.delete_architect_schedulegroup ..." end # verify the required parameter 'schedule_group_id' is set fail ArgumentError, "Missing the required parameter 'schedule_group_id' when calling ArchitectApi.delete_architect_schedulegroup" if schedule_group_id.nil? # resource path local_var_path = "/api/v2/architect/schedulegroups/{scheduleGroupId}".sub('{format}','json').sub('{' + 'scheduleGroupId' + '}', schedule_group_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud OAuth'] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#delete_architect_schedulegroup\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def delete_group(id)\n delete(\"groups/#{id}\")\n end", "def DeleteGroup id\n \n APICall(path: \"groups/#{id}.json\",method: 'DELETE')\n \n end", "def remove_group(id)\n delete(\"/groups/#{id}\")\n end", "def destroy\n @schedule = Schedule.find(params[:id]...
[ "0.74858385", "0.72111374", "0.70574635", "0.6993384", "0.69597995", "0.6855373", "0.6850001", "0.6788618", "0.67747337", "0.67574567", "0.67574567", "0.6717887", "0.67140174", "0.6668678", "0.6664855", "0.6661405", "0.6655299", "0.65987754", "0.65966296", "0.65286225", "0.65...
0.64909476
24
Delete a system prompt resource override.
def delete_architect_systemprompt_resource(prompt_id, language_code, opts = {}) delete_architect_systemprompt_resource_with_http_info(prompt_id, language_code, opts) return nil end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uninstall\n yaourt('--noconfirm', '-R', @resource[:name])\n end", "def destroy\n debug('Removing resource default')\n cmd = [command(:pcs), 'resource', 'defaults', (@property_hash[:name]).to_s + '=']\n self.class.run_command_in_cib(cmd, @resource[:cib])\n @property_hash.clear\n end", "def ...
[ "0.63166225", "0.6292608", "0.62074786", "0.61108965", "0.5970841", "0.58741486", "0.58714217", "0.58081645", "0.58053666", "0.5743185", "0.5731276", "0.5655626", "0.56485194", "0.56485194", "0.5641538", "0.5580274", "0.5571427", "0.5568806", "0.55391896", "0.5534644", "0.543...
0.49321896
87
Delete a system prompt resource override.
def delete_architect_systemprompt_resource_with_http_info(prompt_id, language_code, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi.delete_architect_systemprompt_resource ..." end # verify the required parameter 'prompt_id' is set fail ArgumentError, "Missing the required parameter 'prompt_id' when calling ArchitectApi.delete_architect_systemprompt_resource" if prompt_id.nil? # verify the required parameter 'language_code' is set fail ArgumentError, "Missing the required parameter 'language_code' when calling ArchitectApi.delete_architect_systemprompt_resource" if language_code.nil? # resource path local_var_path = "/api/v2/architect/systemprompts/{promptId}/resources/{languageCode}".sub('{format}','json').sub('{' + 'promptId' + '}', prompt_id.to_s).sub('{' + 'languageCode' + '}', language_code.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud OAuth'] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#delete_architect_systemprompt_resource\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uninstall\n yaourt('--noconfirm', '-R', @resource[:name])\n end", "def destroy\n debug('Removing resource default')\n cmd = [command(:pcs), 'resource', 'defaults', (@property_hash[:name]).to_s + '=']\n self.class.run_command_in_cib(cmd, @resource[:cib])\n @property_hash.clear\n end", "def ...
[ "0.63166225", "0.6292608", "0.62074786", "0.61108965", "0.5970841", "0.58741486", "0.58714217", "0.58081645", "0.58053666", "0.5743185", "0.5731276", "0.5655626", "0.56485194", "0.56485194", "0.5641538", "0.5580274", "0.5571427", "0.5568806", "0.55391896", "0.5534644", "0.543...
0.499225
67
deletes a specific datatable by id Deletes an entire datatable (including the schema and data) with a given datatableId
def delete_flows_datatable(datatable_id, opts = {}) delete_flows_datatable_with_http_info(datatable_id, opts) return nil end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def delete_table dataset_id, table_id\n execute { service.delete_table @project, dataset_id, table_id }\n end", "def delete(record_id)\n CONNECTION.execute(\"DELETE FROM #{get_table_name} WHERE id = #{record_id}\")\n end", "def destroy\n @datasource = Datasource.find(params[:datasource_i...
[ "0.7366895", "0.6985771", "0.6927585", "0.6892197", "0.6788788", "0.678171", "0.67741495", "0.67555135", "0.6657841", "0.655511", "0.65169585", "0.64864177", "0.64833176", "0.64823216", "0.6387933", "0.6356344", "0.6350146", "0.6349028", "0.63205624", "0.63120914", "0.6308229...
0.63118017
20
deletes a specific datatable by id Deletes an entire datatable (including the schema and data) with a given datatableId
def delete_flows_datatable_with_http_info(datatable_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi.delete_flows_datatable ..." end # verify the required parameter 'datatable_id' is set fail ArgumentError, "Missing the required parameter 'datatable_id' when calling ArchitectApi.delete_flows_datatable" if datatable_id.nil? # resource path local_var_path = "/api/v2/flows/datatables/{datatableId}".sub('{format}','json').sub('{' + 'datatableId' + '}', datatable_id.to_s) # query parameters query_params = {} query_params[:'force'] = opts[:'force'] if opts[:'force'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud OAuth'] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#delete_flows_datatable\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def delete_table dataset_id, table_id\n execute { service.delete_table @project, dataset_id, table_id }\n end", "def delete(record_id)\n CONNECTION.execute(\"DELETE FROM #{get_table_name} WHERE id = #{record_id}\")\n end", "def destroy\n @datasource = Datasource.find(params[:datasource_i...
[ "0.73670834", "0.6985235", "0.69281626", "0.6891886", "0.6789056", "0.6781592", "0.67733186", "0.67549", "0.66577554", "0.655519", "0.6516823", "0.64861214", "0.64831215", "0.64825016", "0.63882583", "0.63566893", "0.6350434", "0.6348668", "0.6320767", "0.6312415", "0.6311397...
0.62844926
25
Delete a row entry Deletes a row with a given rowId (the value of the key field).
def delete_flows_datatable_row(datatable_id, row_id, opts = {}) delete_flows_datatable_row_with_http_info(datatable_id, row_id, opts) return nil end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def delete_row(key)\n hbase.deleteAllRow(table_name, key)\n end", "def delete_row(row_id); rest_delete(\"#{link('rows')}/#{row_id}\"); nil; end", "def delete_entry(params)\n dd = DBDeleter.new(params)\n dd.delete\n end", "def delete row_ind\n key, row = @row_refs.at row_ind\n ...
[ "0.76431185", "0.7432335", "0.6831026", "0.6817927", "0.6795052", "0.6777551", "0.67540246", "0.67310804", "0.6631991", "0.6597141", "0.6575957", "0.6553308", "0.65438354", "0.6497159", "0.6406781", "0.63963604", "0.63901806", "0.63129973", "0.6308977", "0.629851", "0.6270669...
0.58973944
44
Delete a row entry Deletes a row with a given rowId (the value of the key field).
def delete_flows_datatable_row_with_http_info(datatable_id, row_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi.delete_flows_datatable_row ..." end # verify the required parameter 'datatable_id' is set fail ArgumentError, "Missing the required parameter 'datatable_id' when calling ArchitectApi.delete_flows_datatable_row" if datatable_id.nil? # verify the required parameter 'row_id' is set fail ArgumentError, "Missing the required parameter 'row_id' when calling ArchitectApi.delete_flows_datatable_row" if row_id.nil? # resource path local_var_path = "/api/v2/flows/datatables/{datatableId}/rows/{rowId}".sub('{format}','json').sub('{' + 'datatableId' + '}', datatable_id.to_s).sub('{' + 'rowId' + '}', row_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud OAuth'] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#delete_flows_datatable_row\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def delete_row(key)\n hbase.deleteAllRow(table_name, key)\n end", "def delete_row(row_id); rest_delete(\"#{link('rows')}/#{row_id}\"); nil; end", "def delete_entry(params)\n dd = DBDeleter.new(params)\n dd.delete\n end", "def delete row_ind\n key, row = @row_refs.at row_ind\n ...
[ "0.76426315", "0.7430694", "0.68284976", "0.68163294", "0.6794561", "0.6776255", "0.675277", "0.6729893", "0.6630649", "0.6595091", "0.6573157", "0.6551768", "0.654222", "0.6496059", "0.6404287", "0.6395393", "0.6388776", "0.6312151", "0.63076454", "0.6297149", "0.62688094", ...
0.0
-1
Get Dependency Tracking objects that have a given display name
def get_architect_dependencytracking(name, opts = {}) data, _status_code, _headers = get_architect_dependencytracking_with_http_info(name, opts) return data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def find_object(name); end", "def find_by_name(name)\r\n @internal_list.find {|album| album.name == name}\r\n end", "def find name\n object = objects.find { |o| o.name == name.to_s }\n end", "def find_by_name(entry)\n names = []\n self.all.each do |item|\n if item.name.downca...
[ "0.5402787", "0.53854734", "0.5344884", "0.53159446", "0.52654386", "0.5184484", "0.5174187", "0.5152986", "0.5148403", "0.5147619", "0.5147619", "0.5144473", "0.50929856", "0.5086247", "0.5080161", "0.5033306", "0.5032571", "0.5028562", "0.50157547", "0.5010884", "0.50000596...
0.0
-1
Get Dependency Tracking objects that have a given display name
def get_architect_dependencytracking_with_http_info(name, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi.get_architect_dependencytracking ..." end # verify the required parameter 'name' is set fail ArgumentError, "Missing the required parameter 'name' when calling ArchitectApi.get_architect_dependencytracking" if name.nil? # resource path local_var_path = "/api/v2/architect/dependencytracking".sub('{format}','json') # query parameters query_params = {} query_params[:'name'] = name query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number'] query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size'] query_params[:'objectType'] = @api_client.build_collection_param(opts[:'object_type'], :multi) if opts[:'object_type'] query_params[:'consumedResources'] = opts[:'consumed_resources'] if opts[:'consumed_resources'] query_params[:'consumingResources'] = opts[:'consuming_resources'] if opts[:'consuming_resources'] query_params[:'consumedResourceType'] = @api_client.build_collection_param(opts[:'consumed_resource_type'], :multi) if opts[:'consumed_resource_type'] query_params[:'consumingResourceType'] = @api_client.build_collection_param(opts[:'consuming_resource_type'], :multi) if opts[:'consuming_resource_type'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud OAuth'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'DependencyObjectEntityListing') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#get_architect_dependencytracking\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def find_object(name); end", "def find_by_name(name)\r\n @internal_list.find {|album| album.name == name}\r\n end", "def find name\n object = objects.find { |o| o.name == name.to_s }\n end", "def find_by_name(entry)\n names = []\n self.all.each do |item|\n if item.name.downca...
[ "0.5402787", "0.53854734", "0.5344884", "0.53159446", "0.52654386", "0.5184484", "0.5174187", "0.5152986", "0.5148403", "0.5147619", "0.5147619", "0.5144473", "0.50929856", "0.5086247", "0.5080161", "0.5033306", "0.5032571", "0.5028562", "0.50157547", "0.5010884", "0.50000596...
0.0
-1
Get Dependency Tracking build status for an organization
def get_architect_dependencytracking_build(opts = {}) data, _status_code, _headers = get_architect_dependencytracking_build_with_http_info(opts) return data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def build_status(devs = nil)\n devs = self.devices if not devs\n devs = [devs].flatten\n ptr = MemoryPointer::new( :cl_build_status )\n return devs.collect { |dev|\n error = OpenCL.clGetProgramBuildInfo(self, dev, BUILD_STATUS, ptr.size, ptr, nil)\n error_check(error)\n [de...
[ "0.64404166", "0.6440068", "0.6384553", "0.6242992", "0.6063386", "0.6042038", "0.5962861", "0.58753127", "0.585889", "0.5825469", "0.5798681", "0.57979065", "0.57067513", "0.5578944", "0.5545929", "0.5497128", "0.5458905", "0.5425748", "0.5392563", "0.5390838", "0.53830475",...
0.56490743
14
Get Dependency Tracking build status for an organization
def get_architect_dependencytracking_build_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi.get_architect_dependencytracking_build ..." end # resource path local_var_path = "/api/v2/architect/dependencytracking/build".sub('{format}','json') # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud OAuth'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'DependencyStatus') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#get_architect_dependencytracking_build\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def build_status(devs = nil)\n devs = self.devices if not devs\n devs = [devs].flatten\n ptr = MemoryPointer::new( :cl_build_status )\n return devs.collect { |dev|\n error = OpenCL.clGetProgramBuildInfo(self, dev, BUILD_STATUS, ptr.size, ptr, nil)\n error_check(error)\n [de...
[ "0.64404166", "0.6440068", "0.6384553", "0.6242992", "0.6042038", "0.5962861", "0.58753127", "0.585889", "0.5825469", "0.5798681", "0.57979065", "0.57067513", "0.56490743", "0.56490743", "0.5578944", "0.5545929", "0.5497128", "0.5458905", "0.5425748", "0.5392563", "0.5390838"...
0.6063386
4
Get resources that are consumed by a given Dependency Tracking object
def get_architect_dependencytracking_consumedresources(id, version, object_type, opts = {}) data, _status_code, _headers = get_architect_dependencytracking_consumedresources_with_http_info(id, version, object_type, opts) return data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def resources\n @resources ||=\n query_service.custom_queries.find_by_property(property: :source_metadata_identifier, value: [], lazy: true).select do |resource|\n id = resource.source_metadata_identifier.first\n next if /99.*3506421/.match?(id)\n next if transform_id(id).len...
[ "0.61724865", "0.59210324", "0.5742621", "0.567371", "0.5665476", "0.56529117", "0.56466925", "0.5626731", "0.5626731", "0.5607175", "0.56002724", "0.55951756", "0.55884486", "0.5583444", "0.55653816", "0.5560717", "0.5558322", "0.5537206", "0.5517614", "0.5515695", "0.551569...
0.585604
3
Get resources that are consumed by a given Dependency Tracking object
def get_architect_dependencytracking_consumedresources_with_http_info(id, version, object_type, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi.get_architect_dependencytracking_consumedresources ..." end # verify the required parameter 'id' is set fail ArgumentError, "Missing the required parameter 'id' when calling ArchitectApi.get_architect_dependencytracking_consumedresources" if id.nil? # verify the required parameter 'version' is set fail ArgumentError, "Missing the required parameter 'version' when calling ArchitectApi.get_architect_dependencytracking_consumedresources" if version.nil? # verify the required parameter 'object_type' is set fail ArgumentError, "Missing the required parameter 'object_type' when calling ArchitectApi.get_architect_dependencytracking_consumedresources" if object_type.nil? # verify enum value unless ['ACDLANGUAGE', 'ACDSKILL', 'ACDWRAPUPCODE', 'BOTFLOW', 'BRIDGEACTION', 'COMMONMODULEFLOW', 'COMPOSERSCRIPT', 'CONTACTLIST', 'DATAACTION', 'DATATABLE', 'DIALOGENGINEBOT', 'DIALOGENGINEBOTVERSION', 'DIALOGFLOWAGENT', 'EMAILROUTE', 'EMERGENCYGROUP', 'FLOWACTION', 'FLOWDATATYPE', 'FLOWOUTCOME', 'GROUP', 'INBOUNDCALLFLOW', 'INBOUNDCHATFLOW', 'INBOUNDEMAILFLOW', 'INBOUNDSHORTMESSAGEFLOW', 'INQUEUECALLFLOW', 'IVRCONFIGURATION', 'LANGUAGE', 'LEXBOT', 'LEXBOTALIAS', 'NLUDOMAIN', 'OUTBOUNDCALLFLOW', 'QUEUE', 'RECORDINGPOLICY', 'RESPONSE', 'SCHEDULE', 'SCHEDULEGROUP', 'SECUREACTION', 'SECURECALLFLOW', 'SURVEYINVITEFLOW', 'SYSTEMPROMPT', 'TTSENGINE', 'TTSVOICE', 'USER', 'USERPROMPT', 'WIDGET', 'WORKFLOW'].include?(object_type) fail ArgumentError, "invalid value for 'object_type', must be one of ACDLANGUAGE, ACDSKILL, ACDWRAPUPCODE, BOTFLOW, BRIDGEACTION, COMMONMODULEFLOW, COMPOSERSCRIPT, CONTACTLIST, DATAACTION, DATATABLE, DIALOGENGINEBOT, DIALOGENGINEBOTVERSION, DIALOGFLOWAGENT, EMAILROUTE, EMERGENCYGROUP, FLOWACTION, FLOWDATATYPE, FLOWOUTCOME, GROUP, INBOUNDCALLFLOW, INBOUNDCHATFLOW, INBOUNDEMAILFLOW, INBOUNDSHORTMESSAGEFLOW, INQUEUECALLFLOW, IVRCONFIGURATION, LANGUAGE, LEXBOT, LEXBOTALIAS, NLUDOMAIN, OUTBOUNDCALLFLOW, QUEUE, RECORDINGPOLICY, RESPONSE, SCHEDULE, SCHEDULEGROUP, SECUREACTION, SECURECALLFLOW, SURVEYINVITEFLOW, SYSTEMPROMPT, TTSENGINE, TTSVOICE, USER, USERPROMPT, WIDGET, WORKFLOW" end # resource path local_var_path = "/api/v2/architect/dependencytracking/consumedresources".sub('{format}','json') # query parameters query_params = {} query_params[:'id'] = id query_params[:'version'] = version query_params[:'objectType'] = object_type query_params[:'resourceType'] = @api_client.build_collection_param(opts[:'resource_type'], :multi) if opts[:'resource_type'] query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number'] query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud OAuth'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ConsumedResourcesEntityListing') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#get_architect_dependencytracking_consumedresources\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def resources\n @resources ||=\n query_service.custom_queries.find_by_property(property: :source_metadata_identifier, value: [], lazy: true).select do |resource|\n id = resource.source_metadata_identifier.first\n next if /99.*3506421/.match?(id)\n next if transform_id(id).len...
[ "0.61724865", "0.59210324", "0.585604", "0.585604", "0.5742621", "0.567371", "0.5665476", "0.56529117", "0.56466925", "0.5626731", "0.5626731", "0.5607175", "0.56002724", "0.55951756", "0.55884486", "0.5583444", "0.55653816", "0.5560717", "0.5558322", "0.5537206", "0.5517614"...
0.53248143
37
Get resources that consume a given Dependency Tracking object
def get_architect_dependencytracking_consumingresources(id, object_type, opts = {}) data, _status_code, _headers = get_architect_dependencytracking_consumingresources_with_http_info(id, object_type, opts) return data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def resources\n @resources ||=\n query_service.custom_queries.find_by_property(property: :source_metadata_identifier, value: [], lazy: true).select do |resource|\n id = resource.source_metadata_identifier.first\n next if /99.*3506421/.match?(id)\n next if transform_id(id).len...
[ "0.60551065", "0.594627", "0.5940805", "0.5917575", "0.59111005", "0.5849564", "0.5742604", "0.5742604", "0.5663889", "0.5629242", "0.5619414", "0.5575137", "0.55650854", "0.5534056", "0.55293584", "0.55266076", "0.5513253", "0.5508883", "0.5483155", "0.5467706", "0.54506814"...
0.52555835
41
Get resources that consume a given Dependency Tracking object
def get_architect_dependencytracking_consumingresources_with_http_info(id, object_type, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi.get_architect_dependencytracking_consumingresources ..." end # verify the required parameter 'id' is set fail ArgumentError, "Missing the required parameter 'id' when calling ArchitectApi.get_architect_dependencytracking_consumingresources" if id.nil? # verify the required parameter 'object_type' is set fail ArgumentError, "Missing the required parameter 'object_type' when calling ArchitectApi.get_architect_dependencytracking_consumingresources" if object_type.nil? # verify enum value unless ['ACDLANGUAGE', 'ACDSKILL', 'ACDWRAPUPCODE', 'BOTFLOW', 'BRIDGEACTION', 'COMMONMODULEFLOW', 'COMPOSERSCRIPT', 'CONTACTLIST', 'DATAACTION', 'DATATABLE', 'DIALOGENGINEBOT', 'DIALOGENGINEBOTVERSION', 'DIALOGFLOWAGENT', 'EMAILROUTE', 'EMERGENCYGROUP', 'FLOWACTION', 'FLOWDATATYPE', 'FLOWOUTCOME', 'GROUP', 'INBOUNDCALLFLOW', 'INBOUNDCHATFLOW', 'INBOUNDEMAILFLOW', 'INBOUNDSHORTMESSAGEFLOW', 'INQUEUECALLFLOW', 'IVRCONFIGURATION', 'LANGUAGE', 'LEXBOT', 'LEXBOTALIAS', 'NLUDOMAIN', 'OUTBOUNDCALLFLOW', 'QUEUE', 'RECORDINGPOLICY', 'RESPONSE', 'SCHEDULE', 'SCHEDULEGROUP', 'SECUREACTION', 'SECURECALLFLOW', 'SURVEYINVITEFLOW', 'SYSTEMPROMPT', 'TTSENGINE', 'TTSVOICE', 'USER', 'USERPROMPT', 'WIDGET', 'WORKFLOW'].include?(object_type) fail ArgumentError, "invalid value for 'object_type', must be one of ACDLANGUAGE, ACDSKILL, ACDWRAPUPCODE, BOTFLOW, BRIDGEACTION, COMMONMODULEFLOW, COMPOSERSCRIPT, CONTACTLIST, DATAACTION, DATATABLE, DIALOGENGINEBOT, DIALOGENGINEBOTVERSION, DIALOGFLOWAGENT, EMAILROUTE, EMERGENCYGROUP, FLOWACTION, FLOWDATATYPE, FLOWOUTCOME, GROUP, INBOUNDCALLFLOW, INBOUNDCHATFLOW, INBOUNDEMAILFLOW, INBOUNDSHORTMESSAGEFLOW, INQUEUECALLFLOW, IVRCONFIGURATION, LANGUAGE, LEXBOT, LEXBOTALIAS, NLUDOMAIN, OUTBOUNDCALLFLOW, QUEUE, RECORDINGPOLICY, RESPONSE, SCHEDULE, SCHEDULEGROUP, SECUREACTION, SECURECALLFLOW, SURVEYINVITEFLOW, SYSTEMPROMPT, TTSENGINE, TTSVOICE, USER, USERPROMPT, WIDGET, WORKFLOW" end if opts[:'flow_filter'] && !['checkedIn', 'published'].include?(opts[:'flow_filter']) fail ArgumentError, 'invalid value for "flow_filter", must be one of checkedIn, published' end # resource path local_var_path = "/api/v2/architect/dependencytracking/consumingresources".sub('{format}','json') # query parameters query_params = {} query_params[:'id'] = id query_params[:'objectType'] = object_type query_params[:'resourceType'] = @api_client.build_collection_param(opts[:'resource_type'], :multi) if opts[:'resource_type'] query_params[:'version'] = opts[:'version'] if opts[:'version'] query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number'] query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size'] query_params[:'flowFilter'] = opts[:'flow_filter'] if opts[:'flow_filter'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud OAuth'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ConsumingResourcesEntityListing') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#get_architect_dependencytracking_consumingresources\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def resources\n @resources ||=\n query_service.custom_queries.find_by_property(property: :source_metadata_identifier, value: [], lazy: true).select do |resource|\n id = resource.source_metadata_identifier.first\n next if /99.*3506421/.match?(id)\n next if transform_id(id).len...
[ "0.60551065", "0.594627", "0.5940805", "0.5917575", "0.59111005", "0.5849564", "0.5742604", "0.5742604", "0.5663889", "0.5629242", "0.5619414", "0.5575137", "0.55650854", "0.5534056", "0.55293584", "0.55266076", "0.5513253", "0.5508883", "0.5483155", "0.5467706", "0.54506814"...
0.50711596
83
Get Dependency Tracking objects that consume deleted resources
def get_architect_dependencytracking_deletedresourceconsumers(opts = {}) data, _status_code, _headers = get_architect_dependencytracking_deletedresourceconsumers_with_http_info(opts) return data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def referenced_objects\n return @referenced_objects\n end", "def changed_associated_objects\n cao = []\n changed_associations.each do |ca|\n __send__(ca).select{|obj| !obj.destroyed? }.each do |obj|\n\n # If the persisted object is not a subresour...
[ "0.6301238", "0.5920398", "0.58998024", "0.5644837", "0.5628594", "0.55734515", "0.5513452", "0.55103904", "0.5489563", "0.5488938", "0.54657704", "0.5453796", "0.5443041", "0.54363126", "0.5425863", "0.54112506", "0.54112506", "0.54112506", "0.54064417", "0.5406114", "0.5406...
0.5036939
79
Get Dependency Tracking objects that consume deleted resources
def get_architect_dependencytracking_deletedresourceconsumers_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi.get_architect_dependencytracking_deletedresourceconsumers ..." end if opts[:'flow_filter'] && !['checkedIn', 'published'].include?(opts[:'flow_filter']) fail ArgumentError, 'invalid value for "flow_filter", must be one of checkedIn, published' end # resource path local_var_path = "/api/v2/architect/dependencytracking/deletedresourceconsumers".sub('{format}','json') # query parameters query_params = {} query_params[:'name'] = opts[:'name'] if opts[:'name'] query_params[:'objectType'] = @api_client.build_collection_param(opts[:'object_type'], :multi) if opts[:'object_type'] query_params[:'flowFilter'] = opts[:'flow_filter'] if opts[:'flow_filter'] query_params[:'consumedResources'] = opts[:'consumed_resources'] if opts[:'consumed_resources'] query_params[:'consumedResourceType'] = @api_client.build_collection_param(opts[:'consumed_resource_type'], :multi) if opts[:'consumed_resource_type'] query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number'] query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud OAuth'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'DependencyObjectEntityListing') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#get_architect_dependencytracking_deletedresourceconsumers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def referenced_objects\n return @referenced_objects\n end", "def changed_associated_objects\n cao = []\n changed_associations.each do |ca|\n __send__(ca).select{|obj| !obj.destroyed? }.each do |obj|\n\n # If the persisted object is not a subresour...
[ "0.6301238", "0.5920398", "0.58998024", "0.5644837", "0.5628594", "0.55734515", "0.5513452", "0.55103904", "0.5489563", "0.5488938", "0.54657704", "0.5453796", "0.5443041", "0.54363126", "0.5425863", "0.54112506", "0.54112506", "0.54112506", "0.54064417", "0.5406114", "0.5406...
0.0
-1
Get a Dependency Tracking object
def get_architect_dependencytracking_object(id, opts = {}) data, _status_code, _headers = get_architect_dependencytracking_object_with_http_info(id, opts) return data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ga_get_tracker\n return GoogleAnalytics::get_instance(@context).new_tracker(@property_id)\n end", "def d(*args)\n Dependency.new(*args)\n end", "def as_a_dependency\n Aws::Templates::Utils::Dependency.new(object)\n end", "def dependency_cache\n @dependency_cache |...
[ "0.60947317", "0.5963754", "0.5891483", "0.5672121", "0.55167603", "0.5485502", "0.5485502", "0.54144037", "0.5406569", "0.5319561", "0.52949715", "0.52949715", "0.52898484", "0.5249638", "0.52364135", "0.5233582", "0.5198659", "0.5184015", "0.5105183", "0.5102709", "0.510236...
0.5645581
5
Get a Dependency Tracking object
def get_architect_dependencytracking_object_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi.get_architect_dependencytracking_object ..." end # verify the required parameter 'id' is set fail ArgumentError, "Missing the required parameter 'id' when calling ArchitectApi.get_architect_dependencytracking_object" if id.nil? if opts[:'object_type'] && !['ACDLANGUAGE', 'ACDSKILL', 'ACDWRAPUPCODE', 'BOTFLOW', 'BRIDGEACTION', 'COMMONMODULEFLOW', 'COMPOSERSCRIPT', 'CONTACTLIST', 'DATAACTION', 'DATATABLE', 'DIALOGENGINEBOT', 'DIALOGENGINEBOTVERSION', 'DIALOGFLOWAGENT', 'EMAILROUTE', 'EMERGENCYGROUP', 'FLOWACTION', 'FLOWDATATYPE', 'FLOWOUTCOME', 'GROUP', 'INBOUNDCALLFLOW', 'INBOUNDCHATFLOW', 'INBOUNDEMAILFLOW', 'INBOUNDSHORTMESSAGEFLOW', 'INQUEUECALLFLOW', 'IVRCONFIGURATION', 'LANGUAGE', 'LEXBOT', 'LEXBOTALIAS', 'NLUDOMAIN', 'OUTBOUNDCALLFLOW', 'QUEUE', 'RECORDINGPOLICY', 'RESPONSE', 'SCHEDULE', 'SCHEDULEGROUP', 'SECUREACTION', 'SECURECALLFLOW', 'SURVEYINVITEFLOW', 'SYSTEMPROMPT', 'TTSENGINE', 'TTSVOICE', 'USER', 'USERPROMPT', 'WIDGET', 'WORKFLOW'].include?(opts[:'object_type']) fail ArgumentError, 'invalid value for "object_type", must be one of ACDLANGUAGE, ACDSKILL, ACDWRAPUPCODE, BOTFLOW, BRIDGEACTION, COMMONMODULEFLOW, COMPOSERSCRIPT, CONTACTLIST, DATAACTION, DATATABLE, DIALOGENGINEBOT, DIALOGENGINEBOTVERSION, DIALOGFLOWAGENT, EMAILROUTE, EMERGENCYGROUP, FLOWACTION, FLOWDATATYPE, FLOWOUTCOME, GROUP, INBOUNDCALLFLOW, INBOUNDCHATFLOW, INBOUNDEMAILFLOW, INBOUNDSHORTMESSAGEFLOW, INQUEUECALLFLOW, IVRCONFIGURATION, LANGUAGE, LEXBOT, LEXBOTALIAS, NLUDOMAIN, OUTBOUNDCALLFLOW, QUEUE, RECORDINGPOLICY, RESPONSE, SCHEDULE, SCHEDULEGROUP, SECUREACTION, SECURECALLFLOW, SURVEYINVITEFLOW, SYSTEMPROMPT, TTSENGINE, TTSVOICE, USER, USERPROMPT, WIDGET, WORKFLOW' end # resource path local_var_path = "/api/v2/architect/dependencytracking/object".sub('{format}','json') # query parameters query_params = {} query_params[:'id'] = id query_params[:'version'] = opts[:'version'] if opts[:'version'] query_params[:'objectType'] = opts[:'object_type'] if opts[:'object_type'] query_params[:'consumedResources'] = opts[:'consumed_resources'] if opts[:'consumed_resources'] query_params[:'consumingResources'] = opts[:'consuming_resources'] if opts[:'consuming_resources'] query_params[:'consumedResourceType'] = @api_client.build_collection_param(opts[:'consumed_resource_type'], :multi) if opts[:'consumed_resource_type'] query_params[:'consumingResourceType'] = @api_client.build_collection_param(opts[:'consuming_resource_type'], :multi) if opts[:'consuming_resource_type'] query_params[:'consumedResourceRequest'] = opts[:'consumed_resource_request'] if opts[:'consumed_resource_request'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud OAuth'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'DependencyObject') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#get_architect_dependencytracking_object\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ga_get_tracker\n return GoogleAnalytics::get_instance(@context).new_tracker(@property_id)\n end", "def d(*args)\n Dependency.new(*args)\n end", "def as_a_dependency\n Aws::Templates::Utils::Dependency.new(object)\n end", "def dependency_cache\n @dependency_cache |...
[ "0.60947317", "0.5963754", "0.5891483", "0.5672121", "0.5645581", "0.5645581", "0.55167603", "0.5485502", "0.5485502", "0.54144037", "0.5406569", "0.5319561", "0.52949715", "0.52949715", "0.52898484", "0.5249638", "0.52364135", "0.5233582", "0.5198659", "0.5184015", "0.510518...
0.4733639
70
Get a Dependency Tracking type.
def get_architect_dependencytracking_type(type_id, opts = {}) data, _status_code, _headers = get_architect_dependencytracking_type_with_http_info(type_id, opts) return data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def type\n types.first\n end", "def type\n types.first\n end", "def get_type\n\n end", "def type\n return @type if @type != \"unknown\"\n info\n @type\n end", "def type\n return nil if reference?\n @grpc.type\n end", "def type\n TYP...
[ "0.60058534", "0.598463", "0.5962432", "0.5926467", "0.58821934", "0.58222014", "0.5771089", "0.57582134", "0.57464886", "0.57381856", "0.57334256", "0.56891954", "0.56880236", "0.56875414", "0.56309074", "0.5601754", "0.5601131", "0.5601131", "0.55966395", "0.559114", "0.559...
0.63583404
1
Get a Dependency Tracking type.
def get_architect_dependencytracking_type_with_http_info(type_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi.get_architect_dependencytracking_type ..." end # verify the required parameter 'type_id' is set fail ArgumentError, "Missing the required parameter 'type_id' when calling ArchitectApi.get_architect_dependencytracking_type" if type_id.nil? # resource path local_var_path = "/api/v2/architect/dependencytracking/types/{typeId}".sub('{format}','json').sub('{' + 'typeId' + '}', type_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud OAuth'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'DependencyType') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#get_architect_dependencytracking_type\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_architect_dependencytracking_type(type_id, opts = {})\n data, _status_code, _headers = get_architect_dependencytracking_type_with_http_info(type_id, opts)\n return data\n end", "def get_architect_dependencytracking_type(type_id, opts = {})\n data, _status_code, _headers = get_architect_...
[ "0.63583404", "0.63583404", "0.60058534", "0.598463", "0.5962432", "0.5926467", "0.58821934", "0.58222014", "0.5771089", "0.57582134", "0.57464886", "0.57381856", "0.57334256", "0.56891954", "0.56880236", "0.56875414", "0.56309074", "0.5601754", "0.5601131", "0.5601131", "0.5...
0.54971594
46
Get Dependency Tracking types.
def get_architect_dependencytracking_types(opts = {}) data, _status_code, _headers = get_architect_dependencytracking_types_with_http_info(opts) return data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def types\n get_metadata unless @types\n return @types\n end", "def _tracker_constant_names_for_type(value)\n case value.downcase\n when 'github' then %w(Github::Repository)\n when 'bitbucket' then %w(Bitbucket::Tracker)\n when 'bugzilla' then %w(Bugzilla::Tracker)\n when...
[ "0.669465", "0.6659308", "0.6592056", "0.6543222", "0.65037876", "0.6415155", "0.6358149", "0.6262138", "0.6237487", "0.62299395", "0.61607033", "0.6158117", "0.61272913", "0.60846853", "0.60760885", "0.6059574", "0.6033257", "0.60156024", "0.60116434", "0.5980584", "0.596406...
0.70179063
1
Get Dependency Tracking types.
def get_architect_dependencytracking_types_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi.get_architect_dependencytracking_types ..." end # resource path local_var_path = "/api/v2/architect/dependencytracking/types".sub('{format}','json') # query parameters query_params = {} query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number'] query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud OAuth'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'DependencyTypeEntityListing') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#get_architect_dependencytracking_types\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_architect_dependencytracking_types(opts = {})\n data, _status_code, _headers = get_architect_dependencytracking_types_with_http_info(opts)\n return data\n end", "def get_architect_dependencytracking_types(opts = {})\n data, _status_code, _headers = get_architect_dependencytracking_types...
[ "0.70179063", "0.70179063", "0.669465", "0.6659308", "0.6592056", "0.6543222", "0.65037876", "0.6415155", "0.6358149", "0.6262138", "0.6237487", "0.62299395", "0.61607033", "0.6158117", "0.61272913", "0.60846853", "0.60760885", "0.6059574", "0.6033257", "0.60156024", "0.60116...
0.5522559
63
Get Dependency Tracking objects that depend on updated resources
def get_architect_dependencytracking_updatedresourceconsumers(opts = {}) data, _status_code, _headers = get_architect_dependencytracking_updatedresourceconsumers_with_http_info(opts) return data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def refresh_dependents(options = {}); end", "def cached_dependencies\n @dependencies ||= enumerate_dependencies.compact\n end", "def dependencies\n @dependencies ||= {}\n end", "def dependency_cache\n @dependency_cache ||= {}\n end", "def local_deps\n @local_deps ||= build_...
[ "0.6357233", "0.61895835", "0.61812526", "0.61408573", "0.6100846", "0.59839326", "0.59291124", "0.59233457", "0.59233457", "0.59233457", "0.59233457", "0.5909104", "0.59080374", "0.588913", "0.5878976", "0.58405775", "0.5822333", "0.5819972", "0.5800478", "0.5800176", "0.579...
0.0
-1
Get Dependency Tracking objects that depend on updated resources
def get_architect_dependencytracking_updatedresourceconsumers_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi.get_architect_dependencytracking_updatedresourceconsumers ..." end # resource path local_var_path = "/api/v2/architect/dependencytracking/updatedresourceconsumers".sub('{format}','json') # query parameters query_params = {} query_params[:'name'] = opts[:'name'] if opts[:'name'] query_params[:'objectType'] = @api_client.build_collection_param(opts[:'object_type'], :multi) if opts[:'object_type'] query_params[:'consumedResources'] = opts[:'consumed_resources'] if opts[:'consumed_resources'] query_params[:'consumedResourceType'] = @api_client.build_collection_param(opts[:'consumed_resource_type'], :multi) if opts[:'consumed_resource_type'] query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number'] query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud OAuth'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'DependencyObjectEntityListing') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#get_architect_dependencytracking_updatedresourceconsumers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def refresh_dependents(options = {}); end", "def cached_dependencies\n @dependencies ||= enumerate_dependencies.compact\n end", "def dependencies\n @dependencies ||= {}\n end", "def dependency_cache\n @dependency_cache ||= {}\n end", "def local_deps\n @local_deps ||= build_...
[ "0.6357233", "0.61895835", "0.61812526", "0.61408573", "0.6100846", "0.59839326", "0.59291124", "0.59233457", "0.59233457", "0.59233457", "0.59233457", "0.5909104", "0.59080374", "0.588913", "0.5878976", "0.58405775", "0.5822333", "0.5819972", "0.5800478", "0.5800176", "0.579...
0.0
-1
Gets a emergency group by ID
def get_architect_emergencygroup(emergency_group_id, opts = {}) data, _status_code, _headers = get_architect_emergencygroup_with_http_info(emergency_group_id, opts) return data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_group_by_id(id)\n $r.hgetall(\"group:#{id}\")\n end", "def get_group_by_id(id)\n get(\"/groups/#{id}\")\n end", "def group\n Group.get!(gidnumber)\n end", "def group_for_id(id)\n find_groups if @groups.nil?\n @groups.detect { |g| g.include? id }\n end", "def find_group(id...
[ "0.7592479", "0.744664", "0.7138546", "0.70490897", "0.7048008", "0.69993347", "0.68659973", "0.68296295", "0.67045367", "0.66814154", "0.66129386", "0.6598808", "0.6430641", "0.64173084", "0.6415423", "0.6415423", "0.6367322", "0.63451684", "0.6322834", "0.6282745", "0.62575...
0.0
-1
Gets a emergency group by ID
def get_architect_emergencygroup_with_http_info(emergency_group_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi.get_architect_emergencygroup ..." end # verify the required parameter 'emergency_group_id' is set fail ArgumentError, "Missing the required parameter 'emergency_group_id' when calling ArchitectApi.get_architect_emergencygroup" if emergency_group_id.nil? # resource path local_var_path = "/api/v2/architect/emergencygroups/{emergencyGroupId}".sub('{format}','json').sub('{' + 'emergencyGroupId' + '}', emergency_group_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud OAuth'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'EmergencyGroup') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#get_architect_emergencygroup\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_group_by_id(id)\n $r.hgetall(\"group:#{id}\")\n end", "def get_group_by_id(id)\n get(\"/groups/#{id}\")\n end", "def group\n Group.get!(gidnumber)\n end", "def group_for_id(id)\n find_groups if @groups.nil?\n @groups.detect { |g| g.include? id }\n end", "def find_group(id...
[ "0.7592479", "0.744664", "0.7138546", "0.70490897", "0.7048008", "0.69993347", "0.68659973", "0.68296295", "0.67045367", "0.66814154", "0.66129386", "0.6598808", "0.6430641", "0.64173084", "0.6415423", "0.6415423", "0.6367322", "0.63451684", "0.6322834", "0.6282745", "0.62575...
0.5557661
100
Get a list of emergency groups.
def get_architect_emergencygroups(opts = {}) data, _status_code, _headers = get_architect_emergencygroups_with_http_info(opts) return data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_device_group_list\n query_api('device-groups')\n end", "def get_groups\n `id -nG #{name}`.split(' ')\n end", "def groups\n Vedeu::Groups.registered\n end", "def groups\n return [] if self.group_list.nil?\n self.group_list\n end", "def groups\n\t\t\t@groups...
[ "0.68947613", "0.6442203", "0.63842076", "0.6351572", "0.6351285", "0.6313318", "0.6313318", "0.6308425", "0.63060606", "0.6227932", "0.62189656", "0.620575", "0.6175196", "0.6172027", "0.6164305", "0.6160621", "0.6146411", "0.6135458", "0.6134725", "0.6100451", "0.6083432", ...
0.66187096
1
Get a list of emergency groups.
def get_architect_emergencygroups_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi.get_architect_emergencygroups ..." end # resource path local_var_path = "/api/v2/architect/emergencygroups".sub('{format}','json') # query parameters query_params = {} query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number'] query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size'] query_params[:'sortBy'] = opts[:'sort_by'] if opts[:'sort_by'] query_params[:'sortOrder'] = opts[:'sort_order'] if opts[:'sort_order'] query_params[:'name'] = opts[:'name'] if opts[:'name'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud OAuth'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'EmergencyGroupListing') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#get_architect_emergencygroups\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_device_group_list\n query_api('device-groups')\n end", "def get_architect_emergencygroups(opts = {})\n data, _status_code, _headers = get_architect_emergencygroups_with_http_info(opts)\n return data\n end", "def get_groups\n `id -nG #{name}`.split(' ')\n end", "de...
[ "0.68947613", "0.66187096", "0.6442203", "0.63842076", "0.6351572", "0.6351285", "0.6313318", "0.6313318", "0.6308425", "0.63060606", "0.6227932", "0.62189656", "0.620575", "0.6175196", "0.6172027", "0.6164305", "0.6160621", "0.6146411", "0.6135458", "0.6134725", "0.6100451",...
0.0
-1
Get an IVR config.
def get_architect_ivr(ivr_id, opts = {}) data, _status_code, _headers = get_architect_ivr_with_http_info(ivr_id, opts) return data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def config\n @config ||= read_config\n end", "def get_config()\n return @api.do_request(\"GET\", get_base_api_path() + \"/config\")\n end", "def config_get(id)\n Configuration.get(id)\n end", "def config\n PrcLib.runtime_fail 'No config object loaded.' unless @config\n @co...
[ "0.66218454", "0.65724665", "0.65656674", "0.6530264", "0.63745123", "0.6361969", "0.63537914", "0.6289579", "0.6265134", "0.6238379", "0.62172085", "0.6183304", "0.61727923", "0.6171312", "0.61543256", "0.61356497", "0.6111179", "0.6097632", "0.6092185", "0.6045765", "0.6024...
0.0
-1
Get an IVR config.
def get_architect_ivr_with_http_info(ivr_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi.get_architect_ivr ..." end # verify the required parameter 'ivr_id' is set fail ArgumentError, "Missing the required parameter 'ivr_id' when calling ArchitectApi.get_architect_ivr" if ivr_id.nil? # resource path local_var_path = "/api/v2/architect/ivrs/{ivrId}".sub('{format}','json').sub('{' + 'ivrId' + '}', ivr_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud OAuth'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'IVR') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#get_architect_ivr\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def config\n @config ||= read_config\n end", "def get_config()\n return @api.do_request(\"GET\", get_base_api_path() + \"/config\")\n end", "def config_get(id)\n Configuration.get(id)\n end", "def config\n PrcLib.runtime_fail 'No config object loaded.' unless @config\n @co...
[ "0.66218454", "0.65724665", "0.65656674", "0.6530264", "0.63745123", "0.6361969", "0.63537914", "0.6289579", "0.6265134", "0.6238379", "0.62172085", "0.6183304", "0.61727923", "0.6171312", "0.61543256", "0.61356497", "0.6111179", "0.6097632", "0.6092185", "0.6045765", "0.6024...
0.0
-1
Get specified user prompt
def get_architect_prompt(prompt_id, opts = {}) data, _status_code, _headers = get_architect_prompt_with_http_info(prompt_id, opts) return data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def prompt\n case @@prompt\n when Symbol \n self.send @@prompt\n when Proc \n @@prompt.call\n else \n @@prompt\n end.to_s\n end", "def prompt\n gets.strip\nend", "def prompt_params\n params[:prompt]\n end", "def get_user_input(prompt...
[ "0.77516186", "0.7405906", "0.7374746", "0.73645914", "0.73645043", "0.7320314", "0.7291604", "0.72854745", "0.7209515", "0.7209515", "0.7209515", "0.7209515", "0.72064775", "0.7205699", "0.71842414", "0.71453065", "0.7145223", "0.71292955", "0.7115629", "0.71108365", "0.7109...
0.0
-1
Get specified user prompt
def get_architect_prompt_with_http_info(prompt_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi.get_architect_prompt ..." end # verify the required parameter 'prompt_id' is set fail ArgumentError, "Missing the required parameter 'prompt_id' when calling ArchitectApi.get_architect_prompt" if prompt_id.nil? # resource path local_var_path = "/api/v2/architect/prompts/{promptId}".sub('{format}','json').sub('{' + 'promptId' + '}', prompt_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud OAuth'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Prompt') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#get_architect_prompt\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def prompt\n case @@prompt\n when Symbol \n self.send @@prompt\n when Proc \n @@prompt.call\n else \n @@prompt\n end.to_s\n end", "def prompt\n gets.strip\nend", "def prompt_params\n params[:prompt]\n end", "def get_user_input(prompt...
[ "0.77516186", "0.7405906", "0.7374746", "0.73645914", "0.73645043", "0.7320314", "0.7291604", "0.72854745", "0.7209515", "0.7209515", "0.7209515", "0.7209515", "0.72064775", "0.7205699", "0.71842414", "0.71453065", "0.7145223", "0.71292955", "0.7115629", "0.71108365", "0.7109...
0.0
-1
Get generated prompt history
def get_architect_prompt_history_history_id(prompt_id, history_id, opts = {}) data, _status_code, _headers = get_architect_prompt_history_history_id_with_http_info(prompt_id, history_id, opts) return data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cmd_history argv\n setup argv\n msg run_cmd(\"history\")\n end", "def get_string_with_history prompt\n $shell_history ||= []\n cmd = get_string(prompt, :maxlen => 50) do |f|\n require 'canis/core/include/rhistory'\n f.extend(FieldHistory)\n f.history($shell_history)\n end\n if cmd && !cmd...
[ "0.73944527", "0.7372364", "0.68344903", "0.67386234", "0.6669224", "0.6596697", "0.65184075", "0.65184075", "0.65184075", "0.6452296", "0.6428426", "0.6417512", "0.6377392", "0.6365175", "0.63625276", "0.6360395", "0.6360395", "0.6345084", "0.62879586", "0.62772673", "0.6239...
0.0
-1
Get generated prompt history
def get_architect_prompt_history_history_id_with_http_info(prompt_id, history_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi.get_architect_prompt_history_history_id ..." end # verify the required parameter 'prompt_id' is set fail ArgumentError, "Missing the required parameter 'prompt_id' when calling ArchitectApi.get_architect_prompt_history_history_id" if prompt_id.nil? # verify the required parameter 'history_id' is set fail ArgumentError, "Missing the required parameter 'history_id' when calling ArchitectApi.get_architect_prompt_history_history_id" if history_id.nil? if opts[:'sort_by'] && !['action', 'timestamp', 'user'].include?(opts[:'sort_by']) fail ArgumentError, 'invalid value for "sort_by", must be one of action, timestamp, user' end # resource path local_var_path = "/api/v2/architect/prompts/{promptId}/history/{historyId}".sub('{format}','json').sub('{' + 'promptId' + '}', prompt_id.to_s).sub('{' + 'historyId' + '}', history_id.to_s) # query parameters query_params = {} query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number'] query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size'] query_params[:'sortOrder'] = opts[:'sort_order'] if opts[:'sort_order'] query_params[:'sortBy'] = opts[:'sort_by'] if opts[:'sort_by'] query_params[:'action'] = @api_client.build_collection_param(opts[:'action'], :multi) if opts[:'action'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud OAuth'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'HistoryListing') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#get_architect_prompt_history_history_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cmd_history argv\n setup argv\n msg run_cmd(\"history\")\n end", "def get_string_with_history prompt\n $shell_history ||= []\n cmd = get_string(prompt, :maxlen => 50) do |f|\n require 'canis/core/include/rhistory'\n f.extend(FieldHistory)\n f.history($shell_history)\n end\n if cmd && !cmd...
[ "0.73944527", "0.7372364", "0.68344903", "0.67386234", "0.6669224", "0.6596697", "0.65184075", "0.65184075", "0.65184075", "0.6452296", "0.6428426", "0.6417512", "0.6377392", "0.6365175", "0.63625276", "0.6360395", "0.6360395", "0.6345084", "0.62879586", "0.62772673", "0.6239...
0.0
-1
Get specified user prompt resource
def get_architect_prompt_resource(prompt_id, language_code, opts = {}) data, _status_code, _headers = get_architect_prompt_resource_with_http_info(prompt_id, language_code, opts) return data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def prompt\n self.class.prompt\n end", "def obtain(prompt, default = '')\n Settings.console.ask \"#{prompt}: \" do |answer|\n answer.default = default\n end\n end", "def show #show specific prompt\n @pid = current_user\n @prompt = Prompt.find(params[:id])\n end", "def prompt\n ...
[ "0.6764807", "0.67025185", "0.6654083", "0.6611314", "0.654033", "0.6537069", "0.6532288", "0.65220666", "0.6510967", "0.64886385", "0.63788474", "0.63785076", "0.63657916", "0.63657916", "0.63657916", "0.63657916", "0.63422245", "0.63307273", "0.6249602", "0.6240202", "0.623...
0.0
-1
Get specified user prompt resource
def get_architect_prompt_resource_with_http_info(prompt_id, language_code, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi.get_architect_prompt_resource ..." end # verify the required parameter 'prompt_id' is set fail ArgumentError, "Missing the required parameter 'prompt_id' when calling ArchitectApi.get_architect_prompt_resource" if prompt_id.nil? # verify the required parameter 'language_code' is set fail ArgumentError, "Missing the required parameter 'language_code' when calling ArchitectApi.get_architect_prompt_resource" if language_code.nil? # resource path local_var_path = "/api/v2/architect/prompts/{promptId}/resources/{languageCode}".sub('{format}','json').sub('{' + 'promptId' + '}', prompt_id.to_s).sub('{' + 'languageCode' + '}', language_code.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud OAuth'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'PromptAsset') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#get_architect_prompt_resource\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def prompt\n self.class.prompt\n end", "def obtain(prompt, default = '')\n Settings.console.ask \"#{prompt}: \" do |answer|\n answer.default = default\n end\n end", "def show #show specific prompt\n @pid = current_user\n @prompt = Prompt.find(params[:id])\n end", "def prompt\n ...
[ "0.6764807", "0.67025185", "0.6654083", "0.6611314", "0.654033", "0.6537069", "0.6532288", "0.65220666", "0.6510967", "0.64886385", "0.63788474", "0.63785076", "0.63657916", "0.63657916", "0.63657916", "0.63657916", "0.63422245", "0.63307273", "0.6249602", "0.6240202", "0.623...
0.0
-1
Get a pageable list of user prompt resources The returned list is pageable, and query parameters can be used for filtering.
def get_architect_prompt_resources(prompt_id, opts = {}) data, _status_code, _headers = get_architect_prompt_resources_with_http_info(prompt_id, opts) return data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def index #determine which prompts to display in index\n @prompts = Prompt.all\n end", "def index\n @users = policy_scope(User).page(params.fetch(:page, 1)).per(params.fetch(:per, 25))\n end", "def index\n @prompts = Prompt.all\n end", "def list\n @search = {}\n @search[:editor] = true if f...
[ "0.60026425", "0.59665483", "0.5936193", "0.5926525", "0.58747673", "0.5869149", "0.5851215", "0.5798116", "0.57467777", "0.57322776", "0.5707907", "0.5649911", "0.5646144", "0.5641215", "0.56323767", "0.5611627", "0.5606269", "0.5602943", "0.56022847", "0.5593953", "0.559273...
0.0
-1
Get a pageable list of user prompt resources The returned list is pageable, and query parameters can be used for filtering.
def get_architect_prompt_resources_with_http_info(prompt_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi.get_architect_prompt_resources ..." end # verify the required parameter 'prompt_id' is set fail ArgumentError, "Missing the required parameter 'prompt_id' when calling ArchitectApi.get_architect_prompt_resources" if prompt_id.nil? # resource path local_var_path = "/api/v2/architect/prompts/{promptId}/resources".sub('{format}','json').sub('{' + 'promptId' + '}', prompt_id.to_s) # query parameters query_params = {} query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number'] query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud OAuth'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'PromptAssetEntityListing') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#get_architect_prompt_resources\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def index #determine which prompts to display in index\n @prompts = Prompt.all\n end", "def index\n @users = policy_scope(User).page(params.fetch(:page, 1)).per(params.fetch(:per, 25))\n end", "def index\n @prompts = Prompt.all\n end", "def list\n @search = {}\n @search[:editor] = true if f...
[ "0.6001011", "0.5966598", "0.593537", "0.5926806", "0.58742523", "0.5867779", "0.58512706", "0.57978994", "0.5745863", "0.57311577", "0.5708714", "0.5648742", "0.56460977", "0.56414986", "0.56310064", "0.56115264", "0.5611498", "0.5606008", "0.5601898", "0.55949956", "0.55925...
0.0
-1
Get a pageable list of user prompts The returned list is pageable, and query parameters can be used for filtering. Multiple names can be specified, in which case all matching prompts will be returned, and no other filters will be evaluated.
def get_architect_prompts(opts = {}) data, _status_code, _headers = get_architect_prompts_with_http_info(opts) return data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def index #determine which prompts to display in index\n @prompts = Prompt.all\n end", "def index\n @prompts = Prompt.all\n end", "def get_prompts(opts = {})\n data, _status_code, _headers = get_prompts_with_http_info(opts)\n data\n end", "def prompts\n return ...
[ "0.65125275", "0.6225486", "0.6181362", "0.61714995", "0.5966819", "0.58338165", "0.56595194", "0.5651531", "0.5572863", "0.54140025", "0.52869177", "0.5130544", "0.51205856", "0.51047796", "0.50947183", "0.5087319", "0.50823337", "0.50498796", "0.50284094", "0.5025412", "0.5...
0.0
-1
Get a pageable list of user prompts The returned list is pageable, and query parameters can be used for filtering. Multiple names can be specified, in which case all matching prompts will be returned, and no other filters will be evaluated.
def get_architect_prompts_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi.get_architect_prompts ..." end # resource path local_var_path = "/api/v2/architect/prompts".sub('{format}','json') # query parameters query_params = {} query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number'] query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size'] query_params[:'name'] = @api_client.build_collection_param(opts[:'name'], :multi) if opts[:'name'] query_params[:'description'] = opts[:'description'] if opts[:'description'] query_params[:'nameOrDescription'] = opts[:'name_or_description'] if opts[:'name_or_description'] query_params[:'sortBy'] = opts[:'sort_by'] if opts[:'sort_by'] query_params[:'sortOrder'] = opts[:'sort_order'] if opts[:'sort_order'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud OAuth'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'PromptEntityListing') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#get_architect_prompts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def index #determine which prompts to display in index\n @prompts = Prompt.all\n end", "def index\n @prompts = Prompt.all\n end", "def get_prompts(opts = {})\n data, _status_code, _headers = get_prompts_with_http_info(opts)\n data\n end", "def prompts\n return ...
[ "0.65123314", "0.6225002", "0.61806566", "0.6170797", "0.59662604", "0.583302", "0.5661197", "0.56517434", "0.5573573", "0.54130507", "0.528558", "0.51315", "0.51208323", "0.51053107", "0.50941974", "0.508757", "0.50832075", "0.50498575", "0.50259703", "0.50254035", "0.501637...
0.0
-1
Get a schedule by ID
def get_architect_schedule(schedule_id, opts = {}) data, _status_code, _headers = get_architect_schedule_with_http_info(schedule_id, opts) return data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_schedule_by_id(authorization, \n id)\n\n # prepare query url\n _query_builder = Configuration.get_base_uri()\n _query_builder << '/schedules/{id}'\n _query_builder = APIHelper.append_url_with_template_parameters _query_builder, {\n 'id' => id\n }\n ...
[ "0.7693765", "0.7384817", "0.72173154", "0.7079364", "0.6916581", "0.6900524", "0.68912816", "0.68912816", "0.68912816", "0.68912816", "0.68912816", "0.6867144", "0.6816171", "0.6816171", "0.6816171", "0.6816171", "0.6816171", "0.6816171", "0.6816171", "0.6816171", "0.6816171...
0.0
-1
Get a schedule by ID
def get_architect_schedule_with_http_info(schedule_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi.get_architect_schedule ..." end # verify the required parameter 'schedule_id' is set fail ArgumentError, "Missing the required parameter 'schedule_id' when calling ArchitectApi.get_architect_schedule" if schedule_id.nil? # resource path local_var_path = "/api/v2/architect/schedules/{scheduleId}".sub('{format}','json').sub('{' + 'scheduleId' + '}', schedule_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud OAuth'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Schedule') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#get_architect_schedule\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_schedule_by_id(authorization, \n id)\n\n # prepare query url\n _query_builder = Configuration.get_base_uri()\n _query_builder << '/schedules/{id}'\n _query_builder = APIHelper.append_url_with_template_parameters _query_builder, {\n 'id' => id\n }\n ...
[ "0.7693765", "0.7384817", "0.72173154", "0.7079364", "0.6916581", "0.6900524", "0.68912816", "0.68912816", "0.68912816", "0.68912816", "0.68912816", "0.6867144", "0.6816171", "0.6816171", "0.6816171", "0.6816171", "0.6816171", "0.6816171", "0.6816171", "0.6816171", "0.6816171...
0.0
-1
Gets a schedule group by ID
def get_architect_schedulegroup(schedule_group_id, opts = {}) data, _status_code, _headers = get_architect_schedulegroup_with_http_info(schedule_group_id, opts) return data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_group_by_id(id)\n get(\"/groups/#{id}\")\n end", "def get_group_by_id(id)\n $r.hgetall(\"group:#{id}\")\n end", "def group_for_id(id)\n find_groups if @groups.nil?\n @groups.detect { |g| g.include? id }\n end", "def find_group(id)\n id = id.to_s\n groups.select{|g...
[ "0.7486023", "0.7413726", "0.7237648", "0.7179644", "0.6967066", "0.69523513", "0.66581595", "0.6627128", "0.6561381", "0.65301305", "0.6462566", "0.6421676", "0.6419399", "0.64119095", "0.6315935", "0.63014996", "0.62795", "0.61978644", "0.6195429", "0.6166883", "0.6149452",...
0.0
-1
Gets a schedule group by ID
def get_architect_schedulegroup_with_http_info(schedule_group_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi.get_architect_schedulegroup ..." end # verify the required parameter 'schedule_group_id' is set fail ArgumentError, "Missing the required parameter 'schedule_group_id' when calling ArchitectApi.get_architect_schedulegroup" if schedule_group_id.nil? # resource path local_var_path = "/api/v2/architect/schedulegroups/{scheduleGroupId}".sub('{format}','json').sub('{' + 'scheduleGroupId' + '}', schedule_group_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud OAuth'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ScheduleGroup') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#get_architect_schedulegroup\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_group_by_id(id)\n get(\"/groups/#{id}\")\n end", "def get_group_by_id(id)\n $r.hgetall(\"group:#{id}\")\n end", "def group_for_id(id)\n find_groups if @groups.nil?\n @groups.detect { |g| g.include? id }\n end", "def find_group(id)\n id = id.to_s\n groups.select{|g...
[ "0.7486023", "0.7413726", "0.7237648", "0.7179644", "0.6967066", "0.69523513", "0.66581595", "0.6627128", "0.6561381", "0.65301305", "0.6462566", "0.6421676", "0.6419399", "0.64119095", "0.6315935", "0.63014996", "0.62795", "0.61978644", "0.6195429", "0.6166883", "0.6149452",...
0.54669076
64
Get a list of schedule groups.
def get_architect_schedulegroups(opts = {}) data, _status_code, _headers = get_architect_schedulegroups_with_http_info(opts) return data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def groups\n return [] if new_record?\n cached_groups do\n fetch_groups!\n end\n end", "def get_groups(params)\n send_get \"get_groups\", params\n end", "def get_groups\n\t\tgroup0 = course_groups.find_all_by_group(0).collect(&:user_id)\n\t\tgroup1 = course_groups.find_all_by_group(1...
[ "0.7030351", "0.6843889", "0.68251055", "0.6816775", "0.6816775", "0.681587", "0.66592073", "0.66592073", "0.665032", "0.6605897", "0.65827924", "0.6578341", "0.6573271", "0.65643877", "0.6563915", "0.65502006", "0.65415525", "0.6537131", "0.6533954", "0.65247905", "0.6491511...
0.62207454
44
Get a list of schedule groups.
def get_architect_schedulegroups_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi.get_architect_schedulegroups ..." end # resource path local_var_path = "/api/v2/architect/schedulegroups".sub('{format}','json') # query parameters query_params = {} query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number'] query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size'] query_params[:'sortBy'] = opts[:'sort_by'] if opts[:'sort_by'] query_params[:'sortOrder'] = opts[:'sort_order'] if opts[:'sort_order'] query_params[:'name'] = opts[:'name'] if opts[:'name'] query_params[:'scheduleIds'] = opts[:'schedule_ids'] if opts[:'schedule_ids'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud OAuth'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ScheduleGroupEntityListing') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#get_architect_schedulegroups\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def groups\n return [] if new_record?\n cached_groups do\n fetch_groups!\n end\n end", "def get_groups(params)\n send_get \"get_groups\", params\n end", "def get_groups\n\t\tgroup0 = course_groups.find_all_by_group(0).collect(&:user_id)\n\t\tgroup1 = course_groups.find_all_by_group(1...
[ "0.7030351", "0.6843889", "0.68251055", "0.6816775", "0.6816775", "0.681587", "0.66592073", "0.66592073", "0.665032", "0.6605897", "0.65827924", "0.6578341", "0.6573271", "0.65643877", "0.6563915", "0.65502006", "0.65415525", "0.6537131", "0.6533954", "0.65247905", "0.6491511...
0.0
-1
Get a list of schedules.
def get_architect_schedules(opts = {}) data, _status_code, _headers = get_architect_schedules_with_http_info(opts) return data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def schedules\n params = init_params\n request_url = UrlGenerator.url_for(\"schedules\")\n asgn = SignatureGenerator.signature_for(http_verb: 'GET', url: request_url, params: params)\n\n res = self.get(request_url, query: params.merge!({asgn: asgn}))\n if res[\"status\"] == \"SUC...
[ "0.8429467", "0.8112092", "0.78336525", "0.7786829", "0.75587827", "0.7548256", "0.7350397", "0.7335084", "0.7166174", "0.71370184", "0.713291", "0.7114681", "0.7114681", "0.7114681", "0.7114681", "0.7114681", "0.7114681", "0.7114681", "0.7114681", "0.7114681", "0.7114681", ...
0.6415041
66
Get a list of schedules.
def get_architect_schedules_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi.get_architect_schedules ..." end # resource path local_var_path = "/api/v2/architect/schedules".sub('{format}','json') # query parameters query_params = {} query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number'] query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size'] query_params[:'sortBy'] = opts[:'sort_by'] if opts[:'sort_by'] query_params[:'sortOrder'] = opts[:'sort_order'] if opts[:'sort_order'] query_params[:'name'] = opts[:'name'] if opts[:'name'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud OAuth'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ScheduleEntityListing') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#get_architect_schedules\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def schedules\n params = init_params\n request_url = UrlGenerator.url_for(\"schedules\")\n asgn = SignatureGenerator.signature_for(http_verb: 'GET', url: request_url, params: params)\n\n res = self.get(request_url, query: params.merge!({asgn: asgn}))\n if res[\"status\"] == \"SUC...
[ "0.8429467", "0.8112092", "0.78336525", "0.7786829", "0.75587827", "0.7548256", "0.7350397", "0.7335084", "0.7166174", "0.71370184", "0.713291", "0.7114681", "0.7114681", "0.7114681", "0.7114681", "0.7114681", "0.7114681", "0.7114681", "0.7114681", "0.7114681", "0.7114681", ...
0.0
-1
Get a system prompt
def get_architect_systemprompt(prompt_id, opts = {}) data, _status_code, _headers = get_architect_systemprompt_with_http_info(prompt_id, opts) return data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def prompt\n case @@prompt\n when Symbol \n self.send @@prompt\n when Proc \n @@prompt.call\n else \n @@prompt\n end.to_s\n end", "def prompt\r\n vm = Thread.current[:vm]\r\n '>' * vm.level + '\"' * vm.quotes\r\n end", "def prompt_in...
[ "0.7698822", "0.75698274", "0.74908537", "0.7406322", "0.73948765", "0.7342285", "0.73200995", "0.7317086", "0.7298764", "0.72894984", "0.7272283", "0.7271706", "0.72682434", "0.7263438", "0.7258938", "0.7258938", "0.7258938", "0.7258938", "0.7258938", "0.7258938", "0.7258938...
0.0
-1
Get a system prompt
def get_architect_systemprompt_with_http_info(prompt_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi.get_architect_systemprompt ..." end # verify the required parameter 'prompt_id' is set fail ArgumentError, "Missing the required parameter 'prompt_id' when calling ArchitectApi.get_architect_systemprompt" if prompt_id.nil? # resource path local_var_path = "/api/v2/architect/systemprompts/{promptId}".sub('{format}','json').sub('{' + 'promptId' + '}', prompt_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud OAuth'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'SystemPrompt') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#get_architect_systemprompt\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def prompt\n case @@prompt\n when Symbol \n self.send @@prompt\n when Proc \n @@prompt.call\n else \n @@prompt\n end.to_s\n end", "def prompt\r\n vm = Thread.current[:vm]\r\n '>' * vm.level + '\"' * vm.quotes\r\n end", "def prompt_in...
[ "0.7698822", "0.75698274", "0.74908537", "0.7406322", "0.73948765", "0.7342285", "0.73200995", "0.7317086", "0.7298764", "0.72894984", "0.7272283", "0.7271706", "0.72682434", "0.7263438", "0.7258938", "0.7258938", "0.7258938", "0.7258938", "0.7258938", "0.7258938", "0.7258938...
0.0
-1
Get generated prompt history
def get_architect_systemprompt_history_history_id(prompt_id, history_id, opts = {}) data, _status_code, _headers = get_architect_systemprompt_history_history_id_with_http_info(prompt_id, history_id, opts) return data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cmd_history argv\n setup argv\n msg run_cmd(\"history\")\n end", "def get_string_with_history prompt\n $shell_history ||= []\n cmd = get_string(prompt, :maxlen => 50) do |f|\n require 'canis/core/include/rhistory'\n f.extend(FieldHistory)\n f.history($shell_history)\n end\n if cmd && !cmd...
[ "0.73944527", "0.7372364", "0.68344903", "0.67386234", "0.6669224", "0.6596697", "0.65184075", "0.65184075", "0.65184075", "0.6452296", "0.6428426", "0.6417512", "0.6377392", "0.6365175", "0.63625276", "0.6360395", "0.6360395", "0.6345084", "0.62879586", "0.62772673", "0.6239...
0.0
-1
Get generated prompt history
def get_architect_systemprompt_history_history_id_with_http_info(prompt_id, history_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi.get_architect_systemprompt_history_history_id ..." end # verify the required parameter 'prompt_id' is set fail ArgumentError, "Missing the required parameter 'prompt_id' when calling ArchitectApi.get_architect_systemprompt_history_history_id" if prompt_id.nil? # verify the required parameter 'history_id' is set fail ArgumentError, "Missing the required parameter 'history_id' when calling ArchitectApi.get_architect_systemprompt_history_history_id" if history_id.nil? if opts[:'sort_by'] && !['action', 'timestamp', 'user'].include?(opts[:'sort_by']) fail ArgumentError, 'invalid value for "sort_by", must be one of action, timestamp, user' end # resource path local_var_path = "/api/v2/architect/systemprompts/{promptId}/history/{historyId}".sub('{format}','json').sub('{' + 'promptId' + '}', prompt_id.to_s).sub('{' + 'historyId' + '}', history_id.to_s) # query parameters query_params = {} query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number'] query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size'] query_params[:'sortOrder'] = opts[:'sort_order'] if opts[:'sort_order'] query_params[:'sortBy'] = opts[:'sort_by'] if opts[:'sort_by'] query_params[:'action'] = @api_client.build_collection_param(opts[:'action'], :multi) if opts[:'action'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud OAuth'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'HistoryListing') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#get_architect_systemprompt_history_history_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cmd_history argv\n setup argv\n msg run_cmd(\"history\")\n end", "def get_string_with_history prompt\n $shell_history ||= []\n cmd = get_string(prompt, :maxlen => 50) do |f|\n require 'canis/core/include/rhistory'\n f.extend(FieldHistory)\n f.history($shell_history)\n end\n if cmd && !cmd...
[ "0.73944527", "0.7372364", "0.68344903", "0.67386234", "0.6669224", "0.6596697", "0.65184075", "0.65184075", "0.65184075", "0.6452296", "0.6428426", "0.6417512", "0.6377392", "0.6365175", "0.63625276", "0.6360395", "0.6360395", "0.6345084", "0.62879586", "0.62772673", "0.6239...
0.0
-1
Get a system prompt resource.
def get_architect_systemprompt_resource(prompt_id, language_code, opts = {}) data, _status_code, _headers = get_architect_systemprompt_resource_with_http_info(prompt_id, language_code, opts) return data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def prompt\n @prompt ||= begin\n require \"tty-prompt\"\n TTY::Prompt.new(interrupt: :exit)\n end\n end", "def prompt\n case @@prompt\n when Symbol \n self.send @@prompt\n when Proc \n @@prompt.call\n else \n @@prompt\n...
[ "0.676627", "0.6614883", "0.6576", "0.6537021", "0.639772", "0.62805104", "0.6278393", "0.62492204", "0.624444", "0.6183257", "0.6157747", "0.61053866", "0.6096072", "0.6062895", "0.6054919", "0.6009483", "0.5964555", "0.59196794", "0.5914215", "0.5914215", "0.5914215", "0....
0.0
-1
Get a system prompt resource.
def get_architect_systemprompt_resource_with_http_info(prompt_id, language_code, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi.get_architect_systemprompt_resource ..." end # verify the required parameter 'prompt_id' is set fail ArgumentError, "Missing the required parameter 'prompt_id' when calling ArchitectApi.get_architect_systemprompt_resource" if prompt_id.nil? # verify the required parameter 'language_code' is set fail ArgumentError, "Missing the required parameter 'language_code' when calling ArchitectApi.get_architect_systemprompt_resource" if language_code.nil? # resource path local_var_path = "/api/v2/architect/systemprompts/{promptId}/resources/{languageCode}".sub('{format}','json').sub('{' + 'promptId' + '}', prompt_id.to_s).sub('{' + 'languageCode' + '}', language_code.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud OAuth'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'SystemPromptAsset') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#get_architect_systemprompt_resource\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def prompt\n @prompt ||= begin\n require \"tty-prompt\"\n TTY::Prompt.new(interrupt: :exit)\n end\n end", "def prompt\n case @@prompt\n when Symbol \n self.send @@prompt\n when Proc \n @@prompt.call\n else \n @@prompt\n...
[ "0.676627", "0.6614883", "0.6576", "0.6537021", "0.639772", "0.62805104", "0.6278393", "0.62492204", "0.624444", "0.6183257", "0.6157747", "0.61053866", "0.6096072", "0.6062895", "0.6054919", "0.6009483", "0.5964555", "0.59196794", "0.5914215", "0.5914215", "0.5914215", "0....
0.0
-1
Get system prompt resources.
def get_architect_systemprompt_resources(prompt_id, opts = {}) data, _status_code, _headers = get_architect_systemprompt_resources_with_http_info(prompt_id, opts) return data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def prompts\n return @prompts\n end", "def get_prompts(opts = {})\n data, _status_code, _headers = get_prompts_with_http_info(opts)\n data\n end", "def prompt_stack\n @prompt_stack ||= []\n end", "def get_architect_prompt_resources(prompt_id,...
[ "0.6456258", "0.618237", "0.5873338", "0.5740371", "0.5740371", "0.56518775", "0.5587999", "0.55350596", "0.5435407", "0.53856325", "0.52505547", "0.5245724", "0.52298224", "0.5192264", "0.5174095", "0.51597786", "0.5158557", "0.5155994", "0.5131899", "0.51188856", "0.5102696...
0.5901506
3
Get system prompt resources.
def get_architect_systemprompt_resources_with_http_info(prompt_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi.get_architect_systemprompt_resources ..." end # verify the required parameter 'prompt_id' is set fail ArgumentError, "Missing the required parameter 'prompt_id' when calling ArchitectApi.get_architect_systemprompt_resources" if prompt_id.nil? # resource path local_var_path = "/api/v2/architect/systemprompts/{promptId}/resources".sub('{format}','json').sub('{' + 'promptId' + '}', prompt_id.to_s) # query parameters query_params = {} query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number'] query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size'] query_params[:'sortBy'] = opts[:'sort_by'] if opts[:'sort_by'] query_params[:'sortOrder'] = opts[:'sort_order'] if opts[:'sort_order'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud OAuth'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'SystemPromptAssetEntityListing') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#get_architect_systemprompt_resources\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def prompts\n return @prompts\n end", "def get_prompts(opts = {})\n data, _status_code, _headers = get_prompts_with_http_info(opts)\n data\n end", "def get_architect_systemprompt_resources(prompt_id, opts = {})\n data, _status_code, _headers =...
[ "0.6456258", "0.618237", "0.5901506", "0.5901506", "0.5873338", "0.5740371", "0.5740371", "0.56518775", "0.5587999", "0.55350596", "0.5435407", "0.53856325", "0.52505547", "0.5245724", "0.52298224", "0.5192264", "0.5174095", "0.51597786", "0.5158557", "0.5155994", "0.5131899"...
0.4904541
43
Get generated flow history
def get_flow_history_history_id(flow_id, history_id, opts = {}) data, _status_code, _headers = get_flow_history_history_id_with_http_info(flow_id, history_id, opts) return data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_history\n events = []\n # Get the first page of the workflow history\n page = get_history_page\n page[\"events\"].each { |x| events << x }\n\n # Get the remaining pages of the workflow history\n until page[\"nextPageToken\"].nil?\n page = get...
[ "0.76210403", "0.7602637", "0.74848473", "0.74848473", "0.7386339", "0.737427", "0.73186916", "0.73186916", "0.73186916", "0.7281126", "0.725185", "0.72327524", "0.71021223", "0.70169014", "0.70056623", "0.6975702", "0.69439787", "0.6889093", "0.6889093", "0.6867032", "0.6864...
0.0
-1
Get generated flow history
def get_flow_history_history_id_with_http_info(flow_id, history_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi.get_flow_history_history_id ..." end # verify the required parameter 'flow_id' is set fail ArgumentError, "Missing the required parameter 'flow_id' when calling ArchitectApi.get_flow_history_history_id" if flow_id.nil? # verify the required parameter 'history_id' is set fail ArgumentError, "Missing the required parameter 'history_id' when calling ArchitectApi.get_flow_history_history_id" if history_id.nil? if opts[:'sort_by'] && !['action', 'timestamp', 'user'].include?(opts[:'sort_by']) fail ArgumentError, 'invalid value for "sort_by", must be one of action, timestamp, user' end # resource path local_var_path = "/api/v2/flows/{flowId}/history/{historyId}".sub('{format}','json').sub('{' + 'flowId' + '}', flow_id.to_s).sub('{' + 'historyId' + '}', history_id.to_s) # query parameters query_params = {} query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number'] query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size'] query_params[:'sortOrder'] = opts[:'sort_order'] if opts[:'sort_order'] query_params[:'sortBy'] = opts[:'sort_by'] if opts[:'sort_by'] query_params[:'action'] = @api_client.build_collection_param(opts[:'action'], :multi) if opts[:'action'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud OAuth'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'HistoryListing') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#get_flow_history_history_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_history\n events = []\n # Get the first page of the workflow history\n page = get_history_page\n page[\"events\"].each { |x| events << x }\n\n # Get the remaining pages of the workflow history\n until page[\"nextPageToken\"].nil?\n page = get...
[ "0.76210403", "0.7602637", "0.74848473", "0.74848473", "0.7386339", "0.737427", "0.73186916", "0.73186916", "0.73186916", "0.7281126", "0.725185", "0.72327524", "0.71021223", "0.70169014", "0.70056623", "0.6975702", "0.69439787", "0.6889093", "0.6889093", "0.6867032", "0.6864...
0.0
-1
Get the latest configuration for flow
def get_flow_latestconfiguration(flow_id, opts = {}) data, _status_code, _headers = get_flow_latestconfiguration_with_http_info(flow_id, opts) return data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_actual_config\n @config\n end", "def config\n @payload.fetch('config')\n end", "def actual_config\n Config.instance\n end", "def config\n @config ||= read_config\n end", "def config\r\n @configuration\r\n end", "def get_config\n\t\tend", "def config\n...
[ "0.69394994", "0.6693074", "0.64972377", "0.64020604", "0.6371308", "0.63634425", "0.6318764", "0.6286207", "0.6246343", "0.6246343", "0.62000763", "0.6193189", "0.6187381", "0.61478966", "0.61395496", "0.613687", "0.6115956", "0.6111793", "0.60983866", "0.60983866", "0.60964...
0.61399484
15
Get the latest configuration for flow
def get_flow_latestconfiguration_with_http_info(flow_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi.get_flow_latestconfiguration ..." end # verify the required parameter 'flow_id' is set fail ArgumentError, "Missing the required parameter 'flow_id' when calling ArchitectApi.get_flow_latestconfiguration" if flow_id.nil? # resource path local_var_path = "/api/v2/flows/{flowId}/latestconfiguration".sub('{format}','json').sub('{' + 'flowId' + '}', flow_id.to_s) # query parameters query_params = {} query_params[:'deleted'] = opts[:'deleted'] if opts[:'deleted'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud OAuth'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Object') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#get_flow_latestconfiguration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_actual_config\n @config\n end", "def config\n @payload.fetch('config')\n end", "def actual_config\n Config.instance\n end", "def config\n @config ||= read_config\n end", "def config\r\n @configuration\r\n end", "def get_config\n\t\tend", "def config\n...
[ "0.69394994", "0.6693074", "0.64972377", "0.64020604", "0.6371308", "0.63634425", "0.6318764", "0.6286207", "0.6246343", "0.6246343", "0.62000763", "0.6193189", "0.6187381", "0.61478966", "0.61399484", "0.61399484", "0.61395496", "0.6115956", "0.6111793", "0.60983866", "0.609...
0.613687
17
Create flow version configuration
def get_flow_version_configuration(flow_id, version_id, opts = {}) data, _status_code, _headers = get_flow_version_configuration_with_http_info(flow_id, version_id, opts) return data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def version_config version, data\n end", "def init\n create_file options[:inventory_config] do\n<<-YML\n# sources:\n# - \"https://supermarket.getchef.com\"\n# cookbooks:\n# cookbook-name:\n# versions:\n# - \"~> 4.0.2\"\n# - \"> 5.0.0\"\n# git:\n# location: url | path\n# ...
[ "0.6355597", "0.5767145", "0.5693122", "0.565078", "0.5602868", "0.5602868", "0.5567622", "0.55589634", "0.55532235", "0.5504494", "0.5422312", "0.5357557", "0.53371733", "0.5296189", "0.5291679", "0.5277673", "0.52661", "0.5228141", "0.51653016", "0.51605606", "0.5155223", ...
0.0
-1
Create flow version configuration
def get_flow_version_configuration_with_http_info(flow_id, version_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi.get_flow_version_configuration ..." end # verify the required parameter 'flow_id' is set fail ArgumentError, "Missing the required parameter 'flow_id' when calling ArchitectApi.get_flow_version_configuration" if flow_id.nil? # verify the required parameter 'version_id' is set fail ArgumentError, "Missing the required parameter 'version_id' when calling ArchitectApi.get_flow_version_configuration" if version_id.nil? # resource path local_var_path = "/api/v2/flows/{flowId}/versions/{versionId}/configuration".sub('{format}','json').sub('{' + 'flowId' + '}', flow_id.to_s).sub('{' + 'versionId' + '}', version_id.to_s) # query parameters query_params = {} query_params[:'deleted'] = opts[:'deleted'] if opts[:'deleted'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/json'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['PureCloud OAuth'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Object') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#get_flow_version_configuration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def version_config version, data\n end", "def init\n create_file options[:inventory_config] do\n<<-YML\n# sources:\n# - \"https://supermarket.getchef.com\"\n# cookbooks:\n# cookbook-name:\n# versions:\n# - \"~> 4.0.2\"\n# - \"> 5.0.0\"\n# git:\n# location: url | path\n# ...
[ "0.6355597", "0.5767145", "0.5693122", "0.5602868", "0.5602868", "0.5567622", "0.55589634", "0.55532235", "0.5504494", "0.5422312", "0.5357557", "0.53371733", "0.5296189", "0.5291679", "0.5277673", "0.52661", "0.5228141", "0.51653016", "0.51605606", "0.5155223", "0.51416886",...
0.565078
3