query_id stringlengths 32 32 | query stringlengths 7 6.75k | positive_passages listlengths 1 1 | negative_passages listlengths 88 101 |
|---|---|---|---|
2cbc36b77551195726739271d4c96ef4 | Use this method to append a string value from a controlled vocabulary field to the solr document. It just puts a copy into the corresponding label field | [
{
"docid": "773a573cd293375af7d760698135c575",
"score": "0.6924501",
"text": "def append_label(solr_doc, solr_field_key, field_info, val)\n ActiveFedora::Indexing::Inserter.create_and_insert_terms(solr_field_key,\n val,\n ... | [
{
"docid": "86f905cc8a0c09ae16d0d4964fbab1b0",
"score": "0.65690494",
"text": "def append_to_solr_doc(solr_doc, solr_field_key, field_info, val)\n ActiveFedora::Indexing::Inserter.create_and_insert_terms(solr_field_key,\n solr_docume... |
cb0c7eac9ca49e8dc804e277ee3823f2 | returns the values for all headers whose labels match regex | [
{
"docid": "e63884fff35c862e314d0b3c86b0076d",
"score": "0.0",
"text": "def values(*args)\n fields(*args).map { |f| f.value }\n end",
"title": ""
}
] | [
{
"docid": "bf63306cbc9935f331723b664d35617c",
"score": "0.6363368",
"text": "def select_by_pattern(headers, pattern)\n return headers.select {|h| h.match(pattern)}\nend",
"title": ""
},
{
"docid": "f0e45a3651057ef1dda12a26425f443b",
"score": "0.6330339",
"text": "def select_by_patt... |
912d90c61c56887644d36638068e9f2b | todo: accept path as param? | [
{
"docid": "f52792eb425d4018502dc7200a2dd965",
"score": "0.0",
"text": "def initialize\n @scripts = enumerate_scripts\n end",
"title": ""
}
] | [
{
"docid": "413d5d663dd8489ce48a55ea1599d6b0",
"score": "0.81025356",
"text": "def by_path(path); end",
"title": ""
},
{
"docid": "3cf41c8c0db86e2b389bc04e8cb199b7",
"score": "0.78364336",
"text": "def path(*) end",
"title": ""
},
{
"docid": "ce306b5ee653880cf4910bccbae23... |
d4f70ef80440db1461ee7262ec0da0db | POST /events POST /events.xml | [
{
"docid": "b49ac6c22dbbfb157e5ae6d39b91ac66",
"score": "0.0",
"text": "def create\n @event = current_user.events.build(params[:event])\n \n if @event.save\n attendance = Attendance.create!( :event_id => @event.id, :inviting_id => current_user.id, :attending_id => current_user.id, :votes_r... | [
{
"docid": "1da98515e16ce7f6a536bbec1e36611d",
"score": "0.7437068",
"text": "def test_should_create_event_via_API_XML\r\n get \"/logout\"\r\n post \"/events.xml\", :api_key=>'testapikey',\r\n :event => {:name => 'Test API Event 1',\r\n ... |
3033610866d2fa38d2ed6f091144a433 | takes an authored section | [
{
"docid": "c7b617c27f04dc51fb39f14e11f74d57",
"score": "0.0",
"text": "def relatedQuestions(section)\n relQuestions = []\n \n questions = sectionQuestions(pretest())\n questions.each do |question|\n question.getActivityReferences.getVector.each do |reference|\n if section.equals(r... | [
{
"docid": "8fcc62a65bc45e47ee355d7ac561967e",
"score": "0.6545792",
"text": "def section; end",
"title": ""
},
{
"docid": "eb958c39f168d03db1650e40c53294ff",
"score": "0.62867063",
"text": "def initialize\n super\n @section = \"auth\"\n end",
"title": ""
},
{
... |
379ac1a896ae14aae0f8fc7f34b0175c | Get order overview information | [
{
"docid": "eab6a3e17fb32990a2ccca86a991fd0f",
"score": "0.8505017",
"text": "def get_order_overview_info\n summary = ''\n summary = order_summary_txt.text if has_order_summary_txt?\n\n {\n complete: order_complete_txt.text,\n details: order_details_txt.text,\n summary: summary\n... | [
{
"docid": "bea6bf73308df7c4f0fa89667cff2692",
"score": "0.8011338",
"text": "def get_order_overview_info\n { id: order_view.order_number_txt.text, \\\n customer: order_view.customer_txt.text, \\\n email: order_view.email_address_txt.text, \\\n status: order_view.status_txt.text, \\\n ... |
79a5c54246d9dde8c61d1d98b60da8f0 | RubyProf, making profiling Ruby pretty since 1899! | [
{
"docid": "2f363ebba16447b5a317814de9d63b5b",
"score": "0.7501882",
"text": "def profile(&b)\n result = RubyProf.profile &b\n\n printer = RubyProf::FlatPrinter.new(result)\n Pathname('profile_results.html').open('w+') do |file|\n printer.print(file, 0)\n end\nend",
"title": ""
}
] | [
{
"docid": "9004e1c90e59206bb07536480c539ff4",
"score": "0.81134015",
"text": "def ruby_prof\n result = RubyProf.profile do\n call_process\n end\n\n printer = RubyProf::CallTreePrinter.new(result)\n printer.print(:path => \"tmp/\", :profile => \"profile\")\n end",
"title": ""
},
... |
fd473ce7478dd38239f46ba19145fc1f | Main Functions get_all_das Parameters:: (Page) params:page Return:: All Development Applications from this council Author:: | [
{
"docid": "89b18cbadf76f9471c6dd3eadc88c6ba",
"score": "0.5597111",
"text": "def get_all_das(page)\n while (is_available(page)) do\n get_all_das_in_page(page)\n page = get_next_page(page)\n end\nend",
"title": ""
}
] | [
{
"docid": "49587e228fd40a906e88d08bd3859e95",
"score": "0.70171064",
"text": "def get_all_das_in_page(page)\n # Todo: For each element of the page that contains the Development Application, get Development Application Summary.\n # For example:\n page.search('table.ContentPanel tr[class$=ContentPanel... |
49c1ff97b5f4e2b9f733b8331f53436c | Change le pseudo du profil actuel | [
{
"docid": "ad47717827d0880fa9389a4681a4d3a2",
"score": "0.7918283",
"text": "def changerPseudo(unPseudo)\n\t\n\t\t@profil.pseudo = unPseudo\n\tend",
"title": ""
}
] | [
{
"docid": "272b271d51c75253867518c480e32f7d",
"score": "0.6811519",
"text": "def getPseudo\n\t\n\t\treturn @profil.pseudo\n\tend",
"title": ""
},
{
"docid": "461cdb766eac93555f46363af42158fc",
"score": "0.6571512",
"text": "def pseudo=(pseudo)\n self[:pseudo] = pseudo.strip if ps... |
157613dcd5e8de66d1e9b65aa3ff4ed7 | Parses payload and returns whether application should continue or not | [
{
"docid": "9ff82ca4afc4c9b57a1007af19500d4f",
"score": "0.57052356",
"text": "def parse(payload)\n parse_action(payload)\n end",
"title": ""
}
] | [
{
"docid": "b1f7d8061bd8f8bbd5a5f9001bc499a1",
"score": "0.6931786",
"text": "def handle_payloads\n payload = if current_service == 'twilio'\n current_message.message&.downcase&.strip\n else\n current_message.payload\n end\n\n case payload\n ... |
e71808ec23a1c3f4fba1c6101a6c2510 | TODO: move this to somewhere more generally useful | [
{
"docid": "4f0283a22200070035b734737eb58fd5",
"score": "0.0",
"text": "def json5_parse(data)\n # read with JSON5 to be more liberal about trailing commas.\n # But that doesn't have a 'symbolize_names' so rountrip through JSON\n JSON.parse(JSON5.parse(data).to_json, symbolize_names: true)\n en... | [
{
"docid": "ef1e4c0cc26e4eec8642a7d74e09c9d1",
"score": "0.7309801",
"text": "def private; end",
"title": ""
},
{
"docid": "0b8b7b9666e4ed32bfd448198778e4e9",
"score": "0.65476507",
"text": "def probers; end",
"title": ""
},
{
"docid": "d8ae3e2b236950074c4632d180274b8a",
... |
5ce6b6d4814eb2d6f2337ee7270839ef | GET /teams/new GET /teams/new.xml | [
{
"docid": "414699d794c5c7ba41e67de88949805b",
"score": "0.78231657",
"text": "def new\n @team = Team.new\n\n respond_to do |format|\n format.html # new.html.erb\n format.xml { render :xml => @team }\n end\n end",
"title": ""
}
] | [
{
"docid": "428ac173e3c41ec8d560312231499d2b",
"score": "0.78292775",
"text": "def new\n respond_to do |format|\n format.html # new.html.erb\n format.xml { render :xml => @team }\n end\n end",
"title": ""
},
{
"docid": "971c4c6b01841f45dbfec2c2d62f3aa9",
"score": "0.781... |
8bd686e8c2e09eeeb822975a766d08c0 | Return the string representation of the operation | [
{
"docid": "d8112572a52bd1ee6cd901c2ee32c725",
"score": "0.0",
"text": "def to_s\n empty? ? '' : \"NOT(#{operand.to_s})\"\n end",
"title": ""
}
] | [
{
"docid": "ef7f455e021c356b909b8bedf77e8872",
"score": "0.8363912",
"text": "def op_string; \" #{self.op} \" end",
"title": ""
},
{
"docid": "726bab7117f3412a6ddec8f404d8fb06",
"score": "0.7886063",
"text": "def to_s\n \"Command(#{@client}, #{@req_id}, #{@op})\"\n end",
... |
2342afbab63dea98fee439b3c8f0769f | GETs a user's payment information | [
{
"docid": "743b73ba91511ad1eb333576ff6ccbaf",
"score": "0.6237055",
"text": "def get_payment_information\n with_monitoring_and_error_handling do\n raw_response = perform(:get, 'paymentInformation', paymentType: 'CNP')\n PaymentInformationResponse.new(raw_response.status, raw_re... | [
{
"docid": "5f3738e391bbc0d881e08e6836549b81",
"score": "0.7312443",
"text": "def user_info\n @payment['requested_user_info']\n end",
"title": ""
},
{
"docid": "dfa608564c7e095a33fa69b3db8157a8",
"score": "0.7121997",
"text": "def show\n @payment = current_user... |
7dab18dd7ef06c8c9b0a06da005e517a | accepts the user's input (a string) as an argument | [
{
"docid": "e2738f6222bb1c617fc3b7e1dd6ec0c7",
"score": "0.0",
"text": "def input_to_index(input)\n #converts the user's input (a string) into an integer\n #converts the user's input from the user-friendly format (on a 1-9 scale) to the array-friendly format (where the first index starts at 0)\n in... | [
{
"docid": "d1cf53b8ddf46c5a39215deaf5d0de6c",
"score": "0.80785084",
"text": "def user_input\n\tgets\nend",
"title": ""
},
{
"docid": "41c7480a66ef20ff0aab7a92d3ab8a04",
"score": "0.78809077",
"text": "def user_input\n input = gets.chomp\n end",
"title": ""
},
{
"doc... |
924d3d7cf65558f53b3295e2b96b7028 | Delete custom IKE Profile Delete custom IKE Profile. Profile can not be deleted if profile has references to it. | [
{
"docid": "0f56b9aad939c76d78143eb171c37ab9",
"score": "0.0",
"text": "def delete_ip_sec_vpnike_profile(ipsec_vpn_ike_profile_id, opts = {})\n delete_ip_sec_vpnike_profile_with_http_info(ipsec_vpn_ike_profile_id, opts)\n nil\n end",
"title": ""
}
] | [
{
"docid": "c1f7f05484457e90d67c72dc6d9b391e",
"score": "0.758431",
"text": "def delete_profile\n super\n end",
"title": ""
},
{
"docid": "c1f7f05484457e90d67c72dc6d9b391e",
"score": "0.758431",
"text": "def delete_profile\n super\n end",
"title": ""
},
{
... |
deb720304a82ac8c73858eb48d4c1093 | Creates a PostgreSQL trigger. | [
{
"docid": "5383f7e9ca495fdd74f2a3ffc9d7c1cb",
"score": "0.75098115",
"text": "def create_trigger(trigger)\n repository.adapter.execute <<-SQL.compress_lines\n drop trigger if exists #{quote_name(trigger.name)} on #{quote_name(trigger.on)};\n create trigger #{quote_name(trigger.name... | [
{
"docid": "82c503129083f327e476fee6e1afc6dc",
"score": "0.75246793",
"text": "def pgt_trigger(table, trigger_name, function_name, events, definition, opts={})\n create_function(function_name, definition, :language=>:plpgsql, :returns=>:trigger, :replace=>true)\n create_trigger(table, trig... |
ea8614f26266167568d4cbccb4c86739 | Function to create parking history | [
{
"docid": "3749014fe28fbedf079fa869b47aab8d",
"score": "0.51480806",
"text": "def log_parking_history_out\n \t@history = ParkingHistory.where(vehicle_id: id, checkout_time: nil, parking_lot_id: parking_lot.id)\n \t\t\t\t\t\t\t\t\t\t\t\t\t .where.not(checkin_time: nil)\n \t\t\t\t\t\t\t\t\t\t\t\t .f... | [
{
"docid": "7e474e682a3a15073ba090343d54812f",
"score": "0.642666",
"text": "def log_parking_history_in\n \tparking_lot.parking_histories.create(checkin_time: Time.now, vehicle_id: id)\n end",
"title": ""
},
{
"docid": "74a517832a530415b8027990e3da9f4e",
"score": "0.63108253",
"tex... |
c657de4b70d266e9a3a784b999ea9e60 | Never trust parameters from the scary internet, only allow the white list through. | [
{
"docid": "aabda65755fdfc2fc1f09f90cb71635f",
"score": "0.0",
"text": "def ppb_params\n params.require(:ppb).permit(:avatar,:UCR_Number, :application_date)\n end",
"title": ""
}
] | [
{
"docid": "e164094e79744552ae1c53246ce8a56c",
"score": "0.69792545",
"text": "def strong_params\n params.require(:user).permit(param_whitelist)\n end",
"title": ""
},
{
"docid": "e662f0574b56baff056c6fc4d8aa1f47",
"score": "0.6781151",
"text": "def strong_params\n params.requ... |
557ec59127e5c4a4c9c17a991e96324f | GET /documents GET /documents.xml | [
{
"docid": "9899d04fb8d7c0eb14d84a374c166260",
"score": "0.0",
"text": "def index\n if Company.find(:all).empty?\n redirect_to (new_company_path)\n else \n @documents = Document.all\n\t\n# Auto update Date\n @documents.each do |document|\n if document.type==\"Quotation\"\n ... | [
{
"docid": "d2a99e8da401980123ae247607b6ca45",
"score": "0.7474943",
"text": "def documents(params={})\n server.get(\"#{name}/_all_docs\", params)\n end",
"title": ""
},
{
"docid": "c474703b08fb92e1e7da383246cd53e9",
"score": "0.71415854",
"text": "def index\n @docs = Doc.... |
28262b7218392967673284b4028e6c7f | Set of the user control activity | [
{
"docid": "bfcc7e9264756c49603ed867a3777864",
"score": "0.0",
"text": "def active=(active)\n @active = active\n @cRectangle.active = active\n @cFillRectangle.active = active\n if !@cBorder.nil?\n @cBorder.active = active\n end\n end",
"title": ""
}
] | [
{
"docid": "c330291349cf4924617f580acae073a6",
"score": "0.65790975",
"text": "def activity=(value)\n @activity = value\n end",
"title": ""
},
{
"docid": "c330291349cf4924617f580acae073a6",
"score": "0.65790975",
"text": "def activity=(value)\n ... |
dff8cb05a74eb1c62f51b045ce12f0be | PATCH/PUT /aws_route_table_propogates/1 PATCH/PUT /aws_route_table_propogates/1.json | [
{
"docid": "1cd692e4a4871c981011bd65f8604362",
"score": "0.74508077",
"text": "def update\n respond_to do |format|\n if @aws_route_table_propogate.update(aws_route_table_propogate_params)\n format.html { redirect_to @aws_route_table_propogate, notice: 'Aws route table propogate was succes... | [
{
"docid": "b0c8e071e7de660a210713ac0d2af5e7",
"score": "0.6644831",
"text": "def set_aws_route_table_propogate\n @aws_route_table_propogate = AwsRouteTablePropogate.find(params[:id])\n end",
"title": ""
},
{
"docid": "9be1cde5e311b6af572bd996f6ab6f53",
"score": "0.6148467",
... |
27b0a9935869987401279abdd7c3fcd6 | Input model_name: model name conditions: conditions in sql select refer_conditions: conditions related to other model it is an array of arraies. the inner one has four value, as following Refer_model: refer model name Refer_column: colum name Refer_by: equal, unequal, like, larger, less, larger_or_equal, less_or_equal ... | [
{
"docid": "df2e48c034250e80ac78c818f6222c23",
"score": "0.6177209",
"text": "def sort_page_model_refer( parameter )\n \n model_name = parameter[:model_name]\n #puts \"=====#{model_name}\"\n conditions = parameter[:conditions]\n joins = parameter[:joins]\n sort_by = parameter[:sort_by]... | [
{
"docid": "3ff978bbf882b3386a18965bc18e2c11",
"score": "0.6897128",
"text": "def search_sort_model_refer( model_name, joins = nil, conditions = nil, search_by = [], search_value = \"\", sort_refer_params = [nil, \"DESC\", false])\n sort_by = sort_refer_params[0]\n sort_order = sort_refer_params[1... |
76e83bf7be071e1793ba4ae9c56b06d0 | GET /votereplies/1 GET /votereplies/1.xml | [
{
"docid": "559ee5537268b5c6b3d98420a68b53bc",
"score": "0.6774389",
"text": "def show\n @votereply = Votereply.find(params[:id])\n\n respond_to do |format|\n format.html # show.html.erb\n format.xml { render :xml => @votereply }\n end\n end",
"title": ""
}
] | [
{
"docid": "35822616d4499ce895a9aea8391e30c0",
"score": "0.6604422",
"text": "def index\n @votes = @retort.votes.find(:all)\n\n respond_to do |format|\n format.html # index.html.erb\n format.xml { render :xml => @votes }\n end\n end",
"title": ""
},
{
"docid": "9794f6384... |
12f44ea3dd68770c39104756cee21c0c | Returns a smart WillPaginate::Collection | [
{
"docid": "b183c633e6cf07cd89b6a75fb21a58dc",
"score": "0.0",
"text": "def Model\n defself.search(query, page)\n paginate(:page => page, :per_page => 5, :conditions => [...])\n end",
"title": ""
}
] | [
{
"docid": "a679bf337bfe03aa61745f885cda8b6e",
"score": "0.7726818",
"text": "def collection\n @collection ||= end_of_association_chain.paginate :conditions => 'visible = 1', :page => params[:page], :per_page => 10, :order => 'created_at DESC'\n end",
"title": ""
},
{
"docid": "c0c904f9e... |
1267287164bab6c61d4313750b811b35 | Public: Delete a machine machine_id the machine to be deleted, please refer to Example machine = Machine.new(api_key) machine.delete(19796768) => '1' Returns '1' | [
{
"docid": "868813d3fca70aeebc07e4eb1a0a3126",
"score": "0.8550604",
"text": "def delete(machine_id)\n if expired?(@begin_time)\n @auth = get_auth(@api_key)\n end\n machine = RestClient.delete \"#{@base_url}#{@get_put_delete_url}#{machine_id}\", header\n end",
"title": ""
... | [
{
"docid": "c2aace49c940ccb8d44b6c65db6f3f36",
"score": "0.7513988",
"text": "def delete_machine(machine, opts= {})\n raise ArgumentError unless machine.is_a? String\n c = @client[\"#{@account}/machines/#{machine}\"]\n headers = gen_headers(opts)\n attempt(opts[:attempts]) do\n ... |
c2e008f7ca754180311688041b804f26 | write to xml file Parameters:: (xmlContent) params: xmlContent Return:: a file with xml format Author:: | [
{
"docid": "32c997a51ce6b7f228982da62feb13d2",
"score": "0.71979314",
"text": "def write_to_xml_file(xmlContent)\n # Create a new file and write to it \n File.open('carDataXml.xml', 'w') do |item| \n # use \"\\n\" for two lines of text \n item.puts xmlContent \n end \nend",
"title": ""... | [
{
"docid": "c0064867c1211c214e7caa014cb5ad9e",
"score": "0.700005",
"text": "def write(xml)\n end",
"title": ""
},
{
"docid": "c0a7904634f074a74681a46be0e5e876",
"score": "0.6878093",
"text": "def OutputTriggerFile(contents,id)\n\tFile.open(id+\".xml\", 'w'){ |f|\n\t\tf.write(co... |
f9aeb871bb1efff3e9eeee6586123034 | POST /events POST /events.json | [
{
"docid": "2347dd88f6ed15703ea3782bcfcfd511",
"score": "0.7251226",
"text": "def create\n \n respond_to do |format|\n if @event.save\n format.html { redirect_to @event, :notice => 'Event was successfully created.' }\n format.json { render :json => @event, :status => :created, :... | [
{
"docid": "d70601f4de46b4b99300c06b1751c4f2",
"score": "0.7714071",
"text": "def create_event event, data={}\n data[:event] = event\n post '/event', data\n end",
"title": ""
},
{
"docid": "4371023c2407f959006c288fddb278ad",
"score": "0.7611226",
"text": "def creat... |
647cc60e929efaec06b6000070cc5adf | Expire an activity feed after a set number of seconds. | [
{
"docid": "c98ae59abc5257f045bf5a72c14b4852",
"score": "0.78837985",
"text": "def expire_feed(user_id, seconds, aggregate = ActivityFeed.aggregate)\n ActivityFeed.redis.expire(ActivityFeed.feed_key(user_id, aggregate), seconds)\n end",
"title": ""
}
] | [
{
"docid": "46673f2d0d4ac7365c08ebbd85e85484",
"score": "0.6912235",
"text": "def expire_feed_at(user_id, timestamp, aggregate = ActivityFeed.aggregate)\n ActivityFeed.redis.expireat(ActivityFeed.feed_key(user_id, aggregate), timestamp)\n end",
"title": ""
},
{
"docid": "962bb00c512c... |
dae81f649ba6eda491027f8807e89cda | Needed for ActiveRecord polymorphic associations | [
{
"docid": "31af151c34a8109a5ec7caed5913e8f0",
"score": "0.0",
"text": "def base_class\n ActiveHash::Base\n end",
"title": ""
}
] | [
{
"docid": "20cdbf1795b0956575dafee9a5be3831",
"score": "0.7880515",
"text": "def polymorphic; end",
"title": ""
},
{
"docid": "98e3c23946b350c931e5ab6a367e9273",
"score": "0.7368893",
"text": "def associated_models\n polymorphic? ? polymorphic_associations : regular_association... |
6564f1ac8a0e10d7c5301f84cee5397d | Temporarily placed function to show FLV Player to play Guided Tours Video, untill Guided Tours panel is developed | [
{
"docid": "053d0865ede5e63314ed3d04acf9b78a",
"score": "0.77231735",
"text": "def guided_tour_video\n video_path = params[:video_path]\n render :partial => 'shared/flvplayer', :locals => { :video_path => video_path, :width => nil, :height => nil, :padding => nil }\n end",
"title": ""
}
] | [
{
"docid": "55e30e88117e2720439b3ab3b4c88a90",
"score": "0.68461865",
"text": "def render_video_player opts={}\n if @afdoc.videos[:access].count > 0\n if RH_CONFIG[\"video_player\"].nil?\n render :partial => \"video_player/jw_player\"\n else\n render :partial => \"video_player... |
f74c29bdfc4a183e1ec1b91334cd5be2 | Use callbacks to share common setup or constraints between actions. | [
{
"docid": "4bb0c7bfd9eb120c86bf66e099b79336",
"score": "0.0",
"text": "def set_service\n @service = Service.find(params[:id])\n end",
"title": ""
}
] | [
{
"docid": "631f4c5b12b423b76503e18a9a606ec3",
"score": "0.60328794",
"text": "def process_action(...)\n run_callbacks(:process_action) do\n super\n end\n end",
"title": ""
},
{
"docid": "7b068b9055c4e7643d4910e8e694ecdc",
"score": "0.6017492",
"text": "de... |
56e49a59e6f15408a6d0d5a01b60df03 | Calculates all the relative cumulative probabilities. | [
{
"docid": "6053b4c423d549cd83538af21deed153",
"score": "0.511688",
"text": "def recalc_all()\n @relative = @absolute.dup()\n @relative.each_pair do | a, hash |\n recalc(a) if @dirty[a]\n end\n end",
"title": ""
}
] | [
{
"docid": "44747669087b312e6f68a42e1b914fce",
"score": "0.69186753",
"text": "def prob()\n\t\t''' Returns a probability given its cummulative probability '''\n\n\t\t# Starting variables\n\t\ty = 1; @probability.push(@cum_prob[0])\n\n\t\twhile y < @cum_prob.size\n\t\t\t@probability << (@cum_prob[y] - @c... |
10d55a5a7796e6e845ecba42086c5674 | DELETE /email_templates/1 DELETE /email_templates/1.xml | [
{
"docid": "f10e3d0761b5349fca83120d27e1d497",
"score": "0.73281884",
"text": "def destroy\n @email_template = EmailTemplate.find(params[:id])\n @email_template.destroy\n\n respond_to do |format|\n format.html { redirect_to(email_templates_url(:farm_id => @farm.id)) }\n format.xml { ... | [
{
"docid": "eafb50b6419a9ff870ed8cef1cabeeeb",
"score": "0.7486339",
"text": "def destroy\n @administration_email_template.destroy\n\n respond_to do |format|\n format.html { redirect_to(administration_email_templates_url) }\n format.xml { head :ok }\n end\n end",
"title": ""
}... |
8deb8bf012dcdabf8c8757e4b7dff574 | See if the application has permission to retrieve user's info. If it does, redirect to oauth_callback_url, which is the "show" action in this case. | [
{
"docid": "37f1d4e34be3e884c470a39a426257df",
"score": "0.0",
"text": "def signin\n oauth_authorize\n end",
"title": ""
}
] | [
{
"docid": "9136f86c1700944a600d0e4bdc9dca7a",
"score": "0.6740701",
"text": "def authorize_callback\n @request_token = OAuth::RequestToken.new(@oauth,\n session[:request_token], \n session[:request_token_secret])\n\n @access_token = @request_token.get_access_token(:oauth... |
46273a2620695cb0b3352fa544c8cc54 | PATCH/PUT /cp/categories/1 PATCH/PUT /cp/categories/1.json | [
{
"docid": "f2d42573d3ab4096b150f1abc4d09005",
"score": "0.6329583",
"text": "def update\n respond_to do |format|\n if @cp_category.update(cp_category_params)\n format.html { redirect_to @cp_category, notice: 'Category was successfully updated.' }\n format.json { render :show, stat... | [
{
"docid": "d042a4b8d67e19e968d8c4f929e81e33",
"score": "0.76238096",
"text": "def UpdateCategory params = {}\n \n APICall(path: 'categories.json',method: 'PUT',payload: params.to_json)\n \n end",
"title": ""
},
{
"docid": "64342e33d137990e24b5fa224c350bd3",
"sc... |
87d6ecc2abd9a24f94e209e53a345f82 | End of OACIS interface functions. Debug function definitions. Calculate same order as R program. | [
{
"docid": "090c3388397bf3164530c5aaa2a3eb0e",
"score": "0.0",
"text": "def sampling_data(fun, v1=vv1, v2=vv2, repeat1=30, plan=NULL)\n len = v1.length\n data1 = Array.new(len, 0)\n len.times {|factor1|\n data1[factor1] = make_data_set(fun, v1, v2, factor1, repeat1, plan)\n }\n\n print \"samplin... | [
{
"docid": "4372fd4f69c6cbddd980211668e0d819",
"score": "0.6367856",
"text": "def debug; end",
"title": ""
},
{
"docid": "4372fd4f69c6cbddd980211668e0d819",
"score": "0.6367856",
"text": "def debug; end",
"title": ""
},
{
"docid": "4372fd4f69c6cbddd980211668e0d819",
"... |
260c0d7d0d2795dcd437bc705527c5db | GET /sulabh_loan_repay_actuals/1 GET /sulabh_loan_repay_actuals/1.json | [
{
"docid": "a81945373733e4951b987de6ea99f9a1",
"score": "0.0",
"text": "def show\n end",
"title": ""
}
] | [
{
"docid": "2651b736267ff2c6e3b002a87395ea97",
"score": "0.7619122",
"text": "def index\n @sulabh_loan_repay_actuals = SulabhLoanRepayActual.all\n end",
"title": ""
},
{
"docid": "2bc42c62d67dda11ae7934dfd4b01ec1",
"score": "0.7183245",
"text": "def set_sulabh_loan_repay_actual\n... |
c0ffb3f0b89cdd5694da7de240e05f4d | Returns a vector with the same direction and unit length | [
{
"docid": "6f4359732051d7d17f2ce7615b23b75b",
"score": "0.0",
"text": "def normalize\n self*(1.0/norm)\n end",
"title": ""
}
] | [
{
"docid": "21fd5092502157b068f9427e42cf3c77",
"score": "0.7674951",
"text": "def to_unit_vector\n DIRECTION_VECTORS[direction]\n end",
"title": ""
},
{
"docid": "6a8b58fb762907a646de2febcee6186d",
"score": "0.722971",
"text": "def rotation_as_vector length\n rotation ... |
0bf664aefd4af889613998bc14302c80 | Read a 'hyperflex.ServerFirmwareVersionEntry' resource. | [
{
"docid": "25c7fc1faa70942a6491ce99a4c8cb75",
"score": "0.65154004",
"text": "def get_hyperflex_server_firmware_version_entry_list(opts = {})\n data, _status_code, _headers = get_hyperflex_server_firmware_version_entry_list_with_http_info(opts)\n data\n end",
"title": ""
}
] | [
{
"docid": "8d60a7339054f95da41c53e7b6b657a8",
"score": "0.66403264",
"text": "def create_hyperflex_server_firmware_version_entry(hyperflex_server_firmware_version_entry, opts = {})\n data, _status_code, _headers = create_hyperflex_server_firmware_version_entry_with_http_info(hyperflex_server_firmw... |
5c0d0803801e3afe2a44f8a1901d0a44 | Whether this metadata is valid. In order to be valid, all required fields must be set. Chef's validation implementation checks the content of a given field when setting (and raises an error if the content does not meet the criteria), so the content of the fields is not considered when checking validity. === Returns val... | [
{
"docid": "8a7ea4e48d7140985465e9ae8559c6fc",
"score": "0.0",
"text": "def valid?\n run_validation\n @errors.empty?\n end",
"title": ""
}
] | [
{
"docid": "ab5fc8758680e257c3645781f2fa1877",
"score": "0.7448927",
"text": "def valid?\n each_field_with_value do |_, field, value|\n return false unless field.valid?(value)\n end\n true\n end",
"title": ""
},
{
"docid": "8548adaa05bd9bcc23c7ff5... |
03c9ccc13daa033c926833dc3102650c | Fetches the first matching key, or the default value if no match was found. If a block is given, it is passed the value containing the key (the parent), the value at the key, and the default value in that order. Note: Be careful when using blocks: it's return value becomes the match value. The typically correct behavio... | [
{
"docid": "6b960e1cdf161bd942a3eea73e7e6d7f",
"score": "0.7048292",
"text": "def recursive_fetch_one(key, default = nil, &block)\n # Start simple at the top level.\n # rubocop:disable Lint/HandleExceptions\n begin\n result = fetch(key, default)\n if result != default\n ... | [
{
"docid": "573899d940a91f7e4c390415410a9a05",
"score": "0.7079453",
"text": "def fetch(key, default_value = nil)\n raise ArgumentError, \"Block not given\" if (block_given? && default_value)\n self[key] || default_value || (self[key] = yield) # (*args))\n end",
"title": ""
},
{
"doci... |
1c73457fd809df7c2af9571bc1a53dfb | takes in an array of integers and returns the lowest value integer | [
{
"docid": "1e96d29a430d05ebd215ed6e6c66e081",
"score": "0.83183",
"text": "def find_min_value(array)\n return array.min\nend",
"title": ""
}
] | [
{
"docid": "ad55ce0f5ab782606a595d0ce9e93f50",
"score": "0.8516668",
"text": "def smallest_integer(array)\n array.min\nend",
"title": ""
},
{
"docid": "3691f2a38a2cdc5cd7423c0e2cfab73e",
"score": "0.84361815",
"text": "def find_smallest_int(arr)\n return arr.min\nend",
"title":... |
b397eaf523099e2d9e020db78c83d2e8 | current input file model: id,carrier_code,flight_number,flight_date def is_valid_id(value) true end | [
{
"docid": "a88fd44c692f2ed1d9edf18ca60f8d52",
"score": "0.0",
"text": "def is_valid_flight_date(value)\n # init\n return_value = { correct: false, reason: [] }\n\n # rule 1 - check if date is valid ISO8601 format (using standard library Date)\n begin\n # convert an ISO8601 date into UT... | [
{
"docid": "83832a224a63a33c8236dd8ebceb8fcf",
"score": "0.6919533",
"text": "def valid_id?(value)\n digits_only?(value)\n end",
"title": ""
},
{
"docid": "46fe71db4255133a5c7ad717cfab3aa7",
"score": "0.685245",
"text": "def valid_id_number; end",
"title": ""
},
{
"... |
1e43a323366d18cd26ac244ce366bc2e | Returns a provider with the specified ID. | [
{
"docid": "eaa290393310c74f9139ba733e45b066",
"score": "0.86875975",
"text": "def provider_by_id(id)\n providers.select { |provider| provider.id == id }.first\n end",
"title": ""
}
] | [
{
"docid": "bae39470847e833cccfe536523bb02f4",
"score": "0.7540932",
"text": "def get_provider\n @provider = Provider.find_by(id: params[:id])\n end",
"title": ""
},
{
"docid": "356ddc027a2797d2f412d735741d200d",
"score": "0.7504111",
"text": "def get_provider(name)\n... |
c3edba9999e46b50e92ed4511353b8c1 | GET /books/1 GET /books/1.json | [
{
"docid": "92bb77cbfc2c4ba8fc55954077586c5c",
"score": "0.6400351",
"text": "def show\n @book = Book.find(params[:id])\n\n respond_to do |format|\n format.html # show.html.erb\n format.xml { render xml: @book }\n format.json { render json: @book }\n end\n end",
"title": ""
... | [
{
"docid": "a613f6e6f0318023e97fa4ad7cee0b91",
"score": "0.763825",
"text": "def index\n base_url = 'https://www.googleapis.com/books/v1/volumes?q=fiction&maxResults=20'\n and_key = '&key='\n key = ENV['GOOGLE_BOOKS_API_KEY'] \n googleurl = base_url + and_key + key\n\n response = RestClient.get(goo... |
185db8d61a7a0f9a6044596baef55031 | PUT /change_items/1 PUT /change_items/1.xml | [
{
"docid": "f92f49c1b76bef7abf2e388de4537bcb",
"score": "0.6529303",
"text": "def update\n @change_item = ChangeItem.find(params[:id])\n\n respond_to do |format|\n if @change_item.update_list(params[:change_item])\n flash['notice'] = \"Change type '#{@change_item.name}' was successfull... | [
{
"docid": "c4f37e7732d2e246f0d63a10e5840c73",
"score": "0.685478",
"text": "def update\n @item = Items.find(params[:item])\n\n respond_to do |format|\n if @items.update_attributes(params[:items])\n flash[:notice] = 'Items was successfully updated.'\n format.html { redirect_to(@... |
5d0fd7b8a9c04be680426e51127b7d28 | Returns an order summary handling | [
{
"docid": "50b3beaaa7ec9d4cfe5833b8db4674cb",
"score": "0.6968127",
"text": "def order_summary_handling\n $tracer.trace(__method__)\n\t\t\t\treturn ToolTag.new(jquery(\"label[data-bind*='ShippingCost']\"), __method__)\n end",
"title": ""
}
] | [
{
"docid": "7b5885c4bc44cb9bf8190d332d4f35af",
"score": "0.7936087",
"text": "def summary\n render_success(Order.order_summary)\n end",
"title": ""
},
{
"docid": "bd26890dd7cdf36298647a4c0b280513",
"score": "0.7335995",
"text": "def get_order_summary\n json_response({ message:... |
960810491191d23d05a00491b4b3c712 | DELETE /photos/1 DELETE /photos/1.xml | [
{
"docid": "f3ceb4b6ef3ec83d63fe7eed36e7e85c",
"score": "0.0",
"text": "def destroy\n unless check_access(@photo)\n redirect_to(photos_url);\n return\n end\n \n flash[:notice] = \"Фотография <strong>#{@photo_id}</strong> удалена!\"\n @photo.current_state = :delete\n @photo.de... | [
{
"docid": "1ac8dc8eedd0d59c7054fcd5fad837f6",
"score": "0.7520519",
"text": "def destroy\n @photo = @album.photos.find(params[:id])\n @photo.destroy\n \n respond_to do |format|\n format.html { redirect_to(photos_url) }\n format.xml { head :ok }\n end\n end",
"title": ""
}... |
c657de4b70d266e9a3a784b999ea9e60 | Never trust parameters from the scary internet, only allow the white list through. | [
{
"docid": "ea6bcef47a6eb5bca771bd079bbf78fc",
"score": "0.0",
"text": "def authority_params\n params.require(:authority).permit(:title, :name, :surname, :position, :about, :dob, :sex,\n photos_attributes: [:file, :description, :id])\n end",
"title": ""
}
] | [
{
"docid": "3663f9efd3f3bbf73f4830949ab0522b",
"score": "0.7495027",
"text": "def whitelisted_params\n super\n end",
"title": ""
},
{
"docid": "13a61145b00345517e33319a34f7d385",
"score": "0.69566035",
"text": "def strong_params\n params.require(:request).permit(param_whit... |
b75793f2a5937b606ba79f2a7d6a0bdc | Used to authorize access to specific developer areas | [
{
"docid": "2508cc8b612c69a7b2775aecc7779620",
"score": "0.6582154",
"text": "def can_see_dashboard\n \tif current_developer\n \t\tredirect_to developer_home_path\n \telse\n \t\trequire_login\n \tend\n end",
"title": ""
}
] | [
{
"docid": "c70b489b7657c9530221c2289dfe3482",
"score": "0.7462784",
"text": "def authorize_developer\n deny_access I18n.translate('sessions.authorization.access_denied.developer') if !developer? && !staff? && !admin?\n end",
"title": ""
},
{
"docid": "a54d6ee604280999b94d995f7735369... |
ac98d8f292f48cddb1d15a5e5fffea21 | Returns a string of the format "January 2001". | [
{
"docid": "4adfae5f813845eb937c86d908a63b20",
"score": "0.7490488",
"text": "def to_s\n\t\tMonth.month_names[@month-1][0..2] + \" \" + @year.to_s\n\tend",
"title": ""
}
] | [
{
"docid": "ac9dd3a0d9f0a9e36fe65b018ea45efb",
"score": "0.7254579",
"text": "def month_name(number); end",
"title": ""
},
{
"docid": "860f26abd6e9eba6dfd6f6823c8fb116",
"score": "0.7096194",
"text": "def year_month_int_to_str(year_month)\n \"#{year_month / 12} #{MONTHS[year_month... |
80fcc624936a50d767c6661cb7432b26 | GET /st_items GET /st_items.json | [
{
"docid": "c926148610f552934e67d3110418a4e5",
"score": "0.7226928",
"text": "def index\n @st_items = StItem.all\n end",
"title": ""
}
] | [
{
"docid": "d57502db186679bf451e04276f7c18d6",
"score": "0.77635443",
"text": "def items\n get_request configure_payload('/items')\n end",
"title": ""
},
{
"docid": "005225439f5ef107aba338963dfc8a47",
"score": "0.753769",
"text": "def get_items\n render json: { items: @lis... |
0aed34641de3e104925fc9a077297e12 | checking to make sure range on month is valid | [
{
"docid": "0f47c04e810b98f3d90bc83409980798",
"score": "0.6699085",
"text": "def month_length(month)\n \t month >= 1 && month <= 12 \nend",
"title": ""
}
] | [
{
"docid": "88c8cfa8cfa672b5a6c01b3dc65ee9ba",
"score": "0.8509181",
"text": "def check_valid_month(month)\n month >= 1 && month <= 12\n end",
"title": ""
},
{
"docid": "b1c6482a91b939c0a7b891e0cf379c42",
"score": "0.8425357",
"text": "def is_month_valid?(month)\n month >= 1 && ... |
4dfdfca14467bc0f9221f80576769f02 | takes in a number returns an empty array if there are no primes below num does not return the number itself finds all primes less than the given number STRETCH | [
{
"docid": "3cdd8f39aa78e1145dc7399d66fc3ca0",
"score": "0.0",
"text": "def iterative_factorial(num)\n if num < 0 || !is_integer?(num)\n return Float::NAN \n end\n memo = 1 \n (1..num).each do |i|\n memo = memo*i\n end\n memo\nend",
"title": ""
}
] | [
{
"docid": "a6dc4a0bdf78c4285575895004581bf3",
"score": "0.78901535",
"text": "def primes_less_than\n primes = []\n (2..num-1).each do |n|\n if is_prime?(n)\n primes.push n\n end\n end\n primes\nend",
"title": ""
},
{
"docid": "8424e991332f8bc782190e8f4f168800",
"score": "... |
c6036ad6af0dde2045e9789f45ce201d | either retrieve from local db/file or from internet | [
{
"docid": "74e0f1b94ab4a66cbc695f21bc195a5a",
"score": "0.0",
"text": "def read_places_by_city_locality_cateogry(city_code, sublocality_name, category_name)\n \n # -------- sanity check if input params are valid ------\n allowed_cat = read_sub_categories_by_city_code(city_code)\n allowed_... | [
{
"docid": "a013303674d7be9ba1ce56ba50c60524",
"score": "0.6332906",
"text": "def fetch\n open(to_url) { |io| io.read }\n end",
"title": ""
},
{
"docid": "a013303674d7be9ba1ce56ba50c60524",
"score": "0.6332906",
"text": "def fetch\n open(to_url) { |io| io.read }\n end... |
eaed3795a9281e02d55a0be691a291f3 | Check if a particular controller is the current one args One or more controller names to check Examples On TreeController current_controller?(:tree) => true current_controller?(:commits) => false current_controller?(:commits, :tree) => true | [
{
"docid": "c6f4cc47c46021f86e57c0917ea863fb",
"score": "0.8507091",
"text": "def current_controller?(*args)\n args.any? { |v| v.to_s.downcase == controller.controller_path }\n end",
"title": ""
}
] | [
{
"docid": "a92fca088d5599059802ed3e80cccf37",
"score": "0.86596584",
"text": "def current_controller?(*args)\n args.any? do |v|\n v.to_s.downcase == controller.controller_name || v.to_s.downcase == controller.controller_path\n end\n end",
"title": ""
},
{
"docid": "a92fca088d559... |
92f608d8c3c817a363f716bda22dfce0 | GET /voucher_rows GET /voucher_rows.json | [
{
"docid": "0f258729ded8561efc0c525bb7665fee",
"score": "0.74372536",
"text": "def index\n @voucher_rows = VoucherRow.all\n end",
"title": ""
}
] | [
{
"docid": "2f0f785976a0ea0ae381463b046c7ad8",
"score": "0.7641863",
"text": "def rows\n @voucher = Voucher.unscoped.find(:first, conditions: { id: params[:voucher_id].to_i }, select: [:id, :bookkept_by_id])\n\n @activity_year = params[:activity_year]\n\n if params[:type] == 'account'\n ac... |
f74c29bdfc4a183e1ec1b91334cd5be2 | Use callbacks to share common setup or constraints between actions. | [
{
"docid": "60ebb659684778a0461588a136df91cd",
"score": "0.0",
"text": "def js_request?\n request.format.js?\n end",
"title": ""
}
] | [
{
"docid": "631f4c5b12b423b76503e18a9a606ec3",
"score": "0.60339177",
"text": "def process_action(...)\n run_callbacks(:process_action) do\n super\n end\n end",
"title": ""
},
{
"docid": "7b068b9055c4e7643d4910e8e694ecdc",
"score": "0.60135007",
"text": "d... |
f12afdc639807ebbf1da0b443ceb8cb8 | Checks if result of condition equals to True | [
{
"docid": "7db107b865f4aa0d7940059b6e443758",
"score": "0.0",
"text": "def assert(condition, message)\n if !condition\n line_number = caller.select { |l| l.match(/#{static_path}:\\d*:in `run'/) }.first[/\\d+/].to_i\n\n status.log_failure(\"ASSERTION FAILED in line #{line_number... | [
{
"docid": "2359022894c437746249418c57ec9e9f",
"score": "0.71157026",
"text": "def check_true(condition)\n\tcondition ? \"#{condition} is true\" : \"#{condition} is false\"\nend",
"title": ""
},
{
"docid": "b33ef1bd31e3f34c8de15c14d3d078bc",
"score": "0.70779836",
"text": "def assert... |
af630984682f1a0b5a68e6092af0d102 | Update properties of this object | [
{
"docid": "604f99b3d09e917590568578fb8ae912",
"score": "0.0",
"text": "def update!(**args)\n @type = args[:type] if args.key?(:type)\n end",
"title": ""
}
] | [
{
"docid": "150fa2bdc1fc43d28ac45e2278a1f797",
"score": "0.7012677",
"text": "def update_properties(hash)\n hash.each do |key, value|\n setter_method = \"#{key}=\"\n if self.respond_to?(setter_method)\n self.send(setter_method, value)\n end\n end\n end",
"t... |
c30ed56dc81295f97d2141e6e157e0f0 | Accuracy: ratio of total correct questions to total attended questions in % Personal best is the highest accuracy ever achieved by the user Learning curve is %increase in accuracy of current week and current month compared to previous week and previous month respectively | [
{
"docid": "0b6f7312847ffa1309922b11abc0d2b1",
"score": "0.7649465",
"text": "def accuracy\n @personal_best = current_user.reports.map(&:accuracy).max.round(2) rescue 0\n learning_curve 'accuracy'\n data_presenter 'accuracy'\n end",
"title": ""
}
] | [
{
"docid": "ef8247c71e6b05986938ba3f251e6f7c",
"score": "0.78034824",
"text": "def accuracy\n\n # Sum and square the error (difference) between predicted Y and actual Y\n summarization = @training_set.sum{|x, y| @hypothesis.error(x, y) ** 2}\n\n # Calculate the average of the errors\n ... |
c0d6be703d59b8d2167ce0f70826c114 | Defines a parameter yielded by a block. If you define the | [
{
"docid": "02a58f6e43001a2efa188f1b04f3a6a2",
"score": "0.63389254",
"text": "def yieldparam_tag(text); end",
"title": ""
}
] | [
{
"docid": "8eee99cec5bc3753fa39fa20d62d91cf",
"score": "0.74207795",
"text": "def yieldParameter\n yield(\"this was passed by yield\") if block_given? # brackets optional\nend",
"title": ""
},
{
"docid": "3dd66e153f414782471d6e3211ac4fd1",
"score": "0.73328847",
"text": "def defi... |
b790398fd420ea9787fac676aad77cdc | Returns the varnishd management host and port as "hostname:port" | [
{
"docid": "61805a0ef3c9e3676ed2de8f4da915d6",
"score": "0.6764295",
"text": "def server\n \"#{@host}:#{@port}\"\n end",
"title": ""
}
] | [
{
"docid": "875e028e4e92d109b68f8ba7d72d2b9b",
"score": "0.75576615",
"text": "def host_port\n \"#{host}:#{port}\"\n end",
"title": ""
},
{
"docid": "59ce07f27b253e53accc68e04bd6df7c",
"score": "0.7514878",
"text": "def host_with_port\n \"#{host}#{port_st... |
7881d31c914b8010306da809604c790e | Check if anything has changed in the tinker | [
{
"docid": "0c905cff73395a142da28dfeccc832d0",
"score": "0.0",
"text": "def dirty?\n\t\t@dirty\n\tend",
"title": ""
}
] | [
{
"docid": "3cd7d282b21d7b62855934d4f03c2bc7",
"score": "0.78462607",
"text": "def checkChanged?\n return true\n end",
"title": ""
},
{
"docid": "03af143515dc8cd8572d3edc264a775f",
"score": "0.7713675",
"text": "def changed?\n @changed ||= false\n end",
"title": ""
... |
d7dce13b7911b0ea8ea6862dadbcf1e3 | returns object with report build status (failed or success) Access Through : status.success, status.failed, status.errors | [
{
"docid": "d4eb0e04a43dfc1b36e76a3887d2e3f2",
"score": "0.7458136",
"text": "def status_report\n Status.new(!errors.present?,errors.present?, errors)\n end",
"title": ""
}
] | [
{
"docid": "2ff95bbacdc6e21ed9e9096323bfc601",
"score": "0.7628847",
"text": "def build_status(build_no = nil)\n response = job_build_data(build_no)\n # Now parse for the status and build id\n #log \"Raw Result: #{response.inspect}\"\n ans = {}\n ans[\"still_building\"] = response[\"data\... |
87ea9d51495d1dfa1aa30cfccf4b96b9 | run_test(k) runs the z.predict method on the first k ratings in the test set and returns a MovieTest object containing the results. The parameter k is optional and if omitted, all of the tests will be run. | [
{
"docid": "5e9067ff1f21efc567f3e16443f141bc",
"score": "0.8360246",
"text": "def run_test(k = nil)\n \tpredict_result = []\n \tif k.nil?\n \t\tk = test_set.size\n \tend\n \t(0..k-1).each do |i|\n \t\tpredict_result.push(predict(test_set[i][0],test_set[i][1]))\n \tend\n \ttest = ... | [
{
"docid": "6c585dc14b18757ab8d8cb13649f5294",
"score": "0.8555744",
"text": "def run_test(k = nil)\n if test_set.empty?\n return nil\n end\n predict_result = []\n if k.nil?\n k = test_set.size\n end\n (0..k-1).each do |i|\n pred... |
f49c7e962b283a8f029e17b81a04f0ef | defines a custom iterator for the puzzle class to go through the puzzle and return any cells that we dont know the value of | [
{
"docid": "109b2ffe36b0f648997c96515648c1fd",
"score": "0.72739005",
"text": "def each_unknown\n\t\t\t0.upto 8 do |row|\n\t\t\t\t0.upto 8 do |col|\n\t\t\t\t\tindex = row*9 + col \n\t\t\t\t\tnext if @grid[index]!=0 #continue if cell value known\n\t\t\t\t\tbox = BoxOfIndex[index]\n\t\t\t\t\tyield row, co... | [
{
"docid": "b9aef602ada0254f627cf0736ca2eaf9",
"score": "0.7029346",
"text": "def iterate\n @cells = @cells.map.with_index do |row, row_index|\n row.map.with_index do |cell, col_index|\n case count_neighbors(row_index, col_index)\n when 0..1\n Cell.new(false)\n when... |
74563ed3151ba63c6eb153702ecabc03 | Gets the calendars property value. The calendars in the calendar group. Navigation property. Readonly. Nullable. | [
{
"docid": "2a0a6aaa54fcc659d9657905296c41fc",
"score": "0.80670285",
"text": "def calendars\n return @calendars\n end",
"title": ""
}
] | [
{
"docid": "938d4da1634c64bb5f308ad625588caa",
"score": "0.7952702",
"text": "def calendars=(value)\n @calendars = value\n end",
"title": ""
},
{
"docid": "938d4da1634c64bb5f308ad625588caa",
"score": "0.7952702",
"text": "def calendars=(value)\n ... |
48e0d22c15477d1a76a3fe1fed18da2c | This triggers the change of schedule | [
{
"docid": "5f6cdc3594784ef0faacc1dcbca7dbba",
"score": "0.0",
"text": "def update\n @survey = Survey.find(params[:id])\n random_string = SecureRandom.hex\n app = Rpush::Apnsp8::App.new\n app.name = random_string\n file = File.join(Rails.root, 'app', 'AuthKey_U4TBQWBRJD.p8')\n app.apn_... | [
{
"docid": "0ef4806f020eae9204b96505473de6fc",
"score": "0.7853247",
"text": "def trigger\n\n schedule_next\n\n super\n\n #unschedule if @params[:dont_reschedule]\n # obsolete\n end",
"title": ""
},
{
"docid": "4b89fc309bdc09d2faf185471f38fc96",
"score": "0.77132... |
5bfd866a401f8cec5c0c28373f8469d3 | check the True/False options default = nil | [
{
"docid": "77889643eb6daab5587e4db68349a1fe",
"score": "0.0",
"text": "def host_notifications_enabled=(arg)\n @host_notifications_enabled = check_bool(arg)\n end",
"title": ""
}
] | [
{
"docid": "98341347bb2e14f2564414603c0f996d",
"score": "0.7456559",
"text": "def options_ok?\n end",
"title": ""
},
{
"docid": "ffea0c1fd8f1a4cad91357a0b08c87a6",
"score": "0.72262496",
"text": "def options?\n false\n end",
"title": ""
},
{
"docid": "ffe... |
421c16b66942b1ef5542259b6cd7e1bb | FIXME: Should probably throw exception | [
{
"docid": "a109c4b091c83e1d3f954f801c8f1eb1",
"score": "0.0",
"text": "def to_bmp_header\n self\n end",
"title": ""
}
] | [
{
"docid": "ef1e4c0cc26e4eec8642a7d74e09c9d1",
"score": "0.72440314",
"text": "def private; end",
"title": ""
},
{
"docid": "65ffca17e416f77c52ce148aeafbd826",
"score": "0.60980475",
"text": "def schubert; end",
"title": ""
},
{
"docid": "0b8b7b9666e4ed32bfd448198778e4e9"... |
f74c29bdfc4a183e1ec1b91334cd5be2 | Use callbacks to share common setup or constraints between actions. | [
{
"docid": "8591a0331a9596f944ffe61c74e560da",
"score": "0.0",
"text": "def set_cg_kind\n @cg_kind = Cg::Kind.find(params[:id])\n end",
"title": ""
}
] | [
{
"docid": "bd89022716e537628dd314fd23858181",
"score": "0.61642385",
"text": "def set_required_actions\n # TODO: check what fields change to asign required fields\n end",
"title": ""
},
{
"docid": "3db61e749c16d53a52f73ba0492108e9",
"score": "0.60448",
"text": "def action_hook; ... |
38f8c8a8a5a2787df7163fb00685a916 | Return platform (win, linux, or osx) | [
{
"docid": "bdbe081984dfa6b508a46c8d48d48770",
"score": "0.80932295",
"text": "def detect_platform(body)\n body.each_line do |ln|\n ln.chomp!\n case ln\n when /os\\.name = (.*)/\n os = $1\n case os\n when /Windows/\n return 'win'\n when /Linux/\n ... | [
{
"docid": "0ae3083f824589566df743e5cafcc7c8",
"score": "0.90512174",
"text": "def os\n\t\tif (/cygwin|mswin|mingw|bccwin|wince|emx/ =~ RUBY_PLATFORM) != nil\n\t\t\t\"WINDOWS\"\n\t\telsif (/darwin/ =~ RUBY_PLATFORM) != nil\n\t\t\t\"MAC\"\n\t\telse\n\t\t\t\"LINUX\"\n\t\tend\n\tend",
"title": ""
},
... |
4569ee7d095c2eabfc790f56043fb225 | Creates the metadata document for a new collection. | [
{
"docid": "ae896d3107c6e5d7c5ae9b7cc438230e",
"score": "0.57576877",
"text": "def init_metadata(db, coll_name, files, headers, samples)\n samples_field = []\n samples.each_with_index {|sublist, i| sublist.each {|s| samples_field << {'name' => s, 'vcfid' => i}}}\n\n meta = {\n ... | [
{
"docid": "e38e0516588441efdd3c955ad9d8eb40",
"score": "0.6812356",
"text": "def create_collection(collection_identifier, opts={})\n params = { :name => collection_identifier }\n params[:isVolatile] = true if opts[:is_volatile] == true\n params[:type] = COLLECTION_TYPES[opts[:conte... |
3f094f97c497e9e0ee971fe80a3defeb | When passed a block, yields MediaInstance records from the API. This operation lazily loads records as efficiently as possible until the limit is reached. source://twilioruby//lib/twilioruby/rest/api/v2010/account/message/media.rb88 | [
{
"docid": "abc7181aaa3fa40e9807e1a6e9021314",
"score": "0.0",
"text": "def each; end",
"title": ""
}
] | [
{
"docid": "f736730878a0e27c53d3b64cf91a2507",
"score": "0.6661654",
"text": "def user_media(id, options = {})\n last_page = false\n\n Enumerator.new do |yielder|\n begin\n loop do\n raise StopIteration if last_page\n\n log = build_log(:user_recent_media, [id, option... |
a5c0f5fbbff79f3b1d4ee965fa8f8bc9 | Determine if the ECO Task specification document is attached :callseq: specification_attached?() > boolean Returns a boolean value that is true when the specification document is attached. | [
{
"docid": "f7e357ae1707ba653dc0d57d7bdfd463",
"score": "0.82523507",
"text": "def specification_attached?\n self.eco_documents.detect { |d| d.specification? } != nil\n end",
"title": ""
}
] | [
{
"docid": "23eface957e5acc5572ada33186bd45c",
"score": "0.7666652",
"text": "def attached?\n attachment.present?\n end",
"title": ""
},
{
"docid": "f11d37f5ce518b594dbf16d95e2c332e",
"score": "0.75884676",
"text": "def attached?\n self.attachments.map(&:state).any? { ... |
3a382430e9abaa5891a191f22cab455d | GET /obmen GET /obmen.json | [
{
"docid": "4057bcebbc3f7cb0605f19b59f209041",
"score": "0.66137296",
"text": "def index\n @obmen = Obman.all\n end",
"title": ""
}
] | [
{
"docid": "a1f69b0cf34290856a33a9e5e6de3f90",
"score": "0.6805141",
"text": "def get_menu()\n res = get(\"menu/get\")\n return MultiJson.load(res.body)\n end",
"title": ""
},
{
"docid": "c8bcff8176e90f78aea0f16d606f01c0",
"score": "0.6581142",
"text": "def index\n @m... |
1625bb7748c7a9c84fb65bb55332cbbf | The ray t value of the first intersection point of the ray with self, or nil if no intersection occurs | [
{
"docid": "d0b531ef9669eaba9dabcd40070ee66a",
"score": "0.60766715",
"text": "def intersect(ray)\n return nil # FIX ME !!\n end",
"title": ""
}
] | [
{
"docid": "39c2e5a4760fa04414dd1e80c65f2800",
"score": "0.70327574",
"text": "def intersect(ray)\n t = nil\n q = @centre - ray.start\n vDotQ = ray.dir.dot(q)\n squareDiffs = q.dot(q) - @radius**2\n discrim = vDotQ * vDotQ - squareDiffs\n if discrim ... |
afdc4bc1eda206c81c413af23d55ed97 | Return the first record that matches the finder options. | [
{
"docid": "84922597a152870876d23dbce7e00f13",
"score": "0.6897009",
"text": "def find_initial(options)\n options.update(:limit => 1)\n\n if options[:scan_spec]\n find_by_options(options)\n else\n find_by_options(options).first\n end\n end",
"title"... | [
{
"docid": "2a336a451b6fa4d6f47647101621624b",
"score": "0.77304626",
"text": "def find_first(options = {})\n conditions, order = extract_conditions!(options)\n extract_id!(conditions)\n order = hasherize_order(order)\n\n result = klass.where(conditions)\n result = res... |
f465acdb8be6ab0919bd376766db9f23 | Find which host the given agent is on | [
{
"docid": "5c614311d93501a58592a34f952b26ee",
"score": "0.7307123",
"text": "def find(agent)\n agent_host = Sidekiq.redis { |c| c.hget(\"bixby:agents\", agent_id(agent)) }\n end",
"title": ""
}
] | [
{
"docid": "e6261be8e64a23fcf5694edcc5584585",
"score": "0.6927963",
"text": "def target_host\n\tself.scanner_hosts ||= {}\n\tself.scanner_hosts[Thread.current.to_s]\nend",
"title": ""
},
{
"docid": "05294b381070ae7c3b2ee0f7dc4c9608",
"score": "0.69262755",
"text": "def hostname\n ... |
96258e274f293034f4c70281204f5e9d | PUT /escalations/1 PUT /escalations/1.xml | [
{
"docid": "0a4f185505137d91582199125f39de46",
"score": "0.6950665",
"text": "def update\n @escalation = Escalation.find(params[:id])\n\n respond_to do |format|\n if @escalation.update_attributes(params[:escalation])\n flash[:notice] = 'Escalation was successfully updated.'\n fo... | [
{
"docid": "1c001166016bcc6b8d6c1ae29fca7522",
"score": "0.61324143",
"text": "def destroy\n @escalation = Escalation.find(params[:id])\n @escalation.destroy\n\n respond_to do |format|\n format.html { redirect_to(escalations_url) }\n format.xml { head :ok }\n end\n end",
"tit... |
dfb2fba10a9e7f49c23cd23b440b5273 | sleeve length related methods sleeve length selection box | [
{
"docid": "aa7924d26978e69ec08cd4fb69b211d4",
"score": "0.67568326",
"text": "def sleeve_length_select_box\n @page.find(:link_href_has, 'sleeve_length')\n end",
"title": ""
}
] | [
{
"docid": "8c70c50f110571204cd3291b631fd4f3",
"score": "0.6643142",
"text": "def select_sleeve_length(sleeve_length)\n @page.find(:div_id, \"formal-shirt-sleeve-length\").click_link(sleeve_length)\n end",
"title": ""
},
{
"docid": "a3f2ffd0bd1ffad728650730d9fd9000",
"score": "0.6380... |
d8e241c7db15db8cb755ebd486c0209d | The number of days the survey can be extended. If the survey is running, base this off of the end date. If the survey is stalled, base this off of the current date (the end date may be many days past). | [
{
"docid": "207674b74fa18e56ad4551d2f8fb1228",
"score": "0.70439196",
"text": "def days_until_extension_deadline\n extension_deadline.to_date - (self.running? ? self.end_date.to_date : Date.today)\n end",
"title": ""
}
] | [
{
"docid": "eae2039fb6b8b94e287c9b33fbed15ad",
"score": "0.73735946",
"text": "def recalculate_end_date\n if !self.days_to_extend.blank? then\n \n # If the survey is running, start extending from the end date\n self.end_date += self.days_to_extend.to_i.days if self.running?\n \n ... |
e1c700b53501f4ad88b3517a445feddf | PATCH/PUT /blog_apps/1 or /blog_apps/1.json | [
{
"docid": "04e901a025425c65dbc964f6d2ebb66d",
"score": "0.73731995",
"text": "def update\n respond_to do |format|\n if @blog_app.update(blog_app_params)\n format.html { redirect_to @blog_app, success: 'Blog app was successfully updated.' }\n format.json { render :show, status: :ok... | [
{
"docid": "cc7341a8909e45b05d2813bca1920e03",
"score": "0.67404723",
"text": "def update_api_app(opts)\n id = opts.delete(:client_id)\n path = '/api_app/' + id\n HelloSign::Resource::ApiApp.new put(path, :body => opts)\n end",
"title": ""
},
{
"docid": "1e8800aa681... |
be693c7bf4d555176a9bc83315f18bcf | Make setting value in underlying hash thread safe. | [
{
"docid": "143e404f7ef4e989648ad2ab4fa3d45e",
"score": "0.59241354",
"text": "def []=(key, value)\n @mutex.synchronize { @hash[key] = value }\n end",
"title": ""
}
] | [
{
"docid": "7d618b2e0aecee7b4591d04dfffd0f8c",
"score": "0.6499774",
"text": "def hash_set(hash, key, value)\n hash[key] = value.freeze\n end",
"title": ""
},
{
"docid": "ee48bc1cc34c52f07e7fd6fa42d5f523",
"score": "0.6463191",
"text": "def set(thing)\n @cache[se... |
a67433033548c66f2b0fed3b59904c28 | Returns the compact records for all attachments on the task. task [Gid] Globally unique identifier for the task. per_page [Integer] the number of records to fetch per page. options [Hash] the request I/O options. | [
{
"docid": "fb5fa73443ca72b4c2128f269b3e73cc",
"score": "0.7133446",
"text": "def find_by_task(client, task: required(\"task\"), per_page: 20, options: {})\n params = { limit: per_page }.reject { |_,v| v.nil? || Array(v).empty? }\n Collection.new(parse(client.get(\"/tasks/#{task}/attac... | [
{
"docid": "aa58c4083e2b1d11197946bb4cbab569",
"score": "0.67885625",
"text": "def paginate_by_task(task_id, page)\n att_file = AttachedFile.order(\"created_at DESC\").page(page).per(3).where(\"task_id =?\", task_id)\n puts att_file\n att_file\n end",
"title": ""
},
{
"doci... |
499a4ab0ea50432e3cdff3fe31044108 | get_pod get proofofdelivery info | [
{
"docid": "cf1fdcb5a987f521836ea5bdf61da944",
"score": "0.5589417",
"text": "def get_pod\n (!(self.pod_name.nil? && self.pod_date.nil?)) ? {:pod_name => self.pod_name, :pod_date => self.pod_date} : false\n end",
"title": ""
}
] | [
{
"docid": "bafeb5bbec42c0c636555877195b59a1",
"score": "0.5823066",
"text": "def pod(*args)\n pod_name = args[0]\n path = $development_pods[pod_name]\n puts pod_name\n if path then\n puts \"Using development pod `#{pod_name}`\"\n self.pod pod_name, :path => path\n else\n puts 'asdfds'\n ... |
f31a9151678250c8efeef39238019642 | test that deleting a relationship deletes dependent entries also | [
{
"docid": "b9993d4a93a3acdd92f2afd0f3eb9f6a",
"score": "0.83837986",
"text": "def test_relationship_deletion\n #This is a superwork work rel\n rel = Relationship.find(309)\n n_superwork_rels = SuperworkRelationship.count\n n_work_rels = WorkRelationship.count\n \n rel.destroy\n ass... | [
{
"docid": "d44eb2ef9d9909f9b207f8710b17c42c",
"score": "0.759741",
"text": "def test_single_frbr_deletion\n #find the total number of relationships - dont wanna delete more than we have to..\n total_rels = Relationship.count\n work_rels = WorkRelationship.count\n role_rels = RoleRelationshi... |
a415638a688e50b511a7893c151279b2 | removes all nodes associated with the merge field if the reference count is less than or equal to 1 source://sablon//lib/sablon/parser/mail_merge.rb24 | [
{
"docid": "2949c7700a1820b557591a05933d0f71",
"score": "0.5419967",
"text": "def remove_or_decrement_ref(*nodes); end",
"title": ""
}
] | [
{
"docid": "2ccefe28f0fab40ae558fc4dadc2390f",
"score": "0.5986143",
"text": "def un_merge\n Contact.transaction do\n self.parents.each do |contact|\n contact.update_attribute('merged_to_form_contact_id', 0)\n if contact.contact_type == Constants::CONTACT_TYPE::PROSPECT\n ... |
415de921e5aa1588387bb72c0c31d22b | maybe i will revisit this later | [
{
"docid": "f2fee97b8367ff3fb0ceedd56424aaf8",
"score": "0.0",
"text": "def run\n\n line1 = gets.strip.split(\" \").map!{ |e| e.to_i }\n\n number_of_lines = line1[0]\n m = line1[1]\n k = line1[2]\n q = line1[3]\n\n maxtrix = Hash.new\n number_of_lines.times do |row|\n line = gets.strip.split(\... | [
{
"docid": "ef1e4c0cc26e4eec8642a7d74e09c9d1",
"score": "0.7315653",
"text": "def private; end",
"title": ""
},
{
"docid": "0b8b7b9666e4ed32bfd448198778e4e9",
"score": "0.66592836",
"text": "def probers; end",
"title": ""
},
{
"docid": "65ffca17e416f77c52ce148aeafbd826",
... |
efba3b92990394e8a29981f799dfc3a1 | rubocop:enable Metrics/MethodLength rubocop:enable Metrics/AbcSize | [
{
"docid": "a23336f49bb4a53ac677bc4b0d5dd136",
"score": "0.0",
"text": "def test_default_parse_raises_not_implemented_error\n cls = Class.new AbstractSearch\n assert_raises(NotImplementedError) do\n cls.new(nil, nil).default_parse nil, nil\n end\n end",
"title": ""
}
] | [
{
"docid": "33e1db3c06643dd523dcc31fccf3a005",
"score": "0.6578019",
"text": "def used; end",
"title": ""
},
{
"docid": "33e1db3c06643dd523dcc31fccf3a005",
"score": "0.6578019",
"text": "def used; end",
"title": ""
},
{
"docid": "b6b2bcc0062aeb115edab7b10cbe6930",
"sc... |
a69ee9847574bddc6119fd6f93601932 | Name of the actual rakefile used. source://rake//lib/rake/application.rb30 | [
{
"docid": "d79e4cc3192592d2b5adc344f7b60cdf",
"score": "0.7262423",
"text": "def rakefile; end",
"title": ""
}
] | [
{
"docid": "8f00c628597c683db27788a5eef47a75",
"score": "0.7645729",
"text": "def rakefile\n 'Rakefile'\n end",
"title": ""
},
{
"docid": "d21aff565f084599185a371ee8735759",
"score": "0.7278956",
"text": "def rakefile\n 'Rakefile'\n end",
"title": ""
},
{
"doc... |
1dfb9d4b9b71e45d2b14971a6c7d836b | Truncate date/time to date. Returns a Date object for the given DateTime. | [
{
"docid": "9a4b9eda262f3b4abfccecd08a39cfb9",
"score": "0.0",
"text": "def to_date\n Date.new(year, month, day)\n end",
"title": ""
}
] | [
{
"docid": "b1916f03a70ecb159e33aca7d952221e",
"score": "0.549643",
"text": "def truncate_date_time(duration)\n ticker_time = time\n if duration == DURATION_5S\n new_sec = time.sec.floor / 5 * 5\n ticker_time = Time.new(\n time.year, time.month, time.day, time.hour, time.min, new_... |
d82bea7b3fe3d17d1730589cb9df8f00 | remove last element from list | [
{
"docid": "a6eb80d5ca997e3f7b6f72678e5b1f8d",
"score": "0.0",
"text": "def pop\n last = find_tail.data\n node = find_before(last)\n node.next = nil\n end",
"title": ""
}
] | [
{
"docid": "c0dc0480961971c01d250c90ca34f3eb",
"score": "0.7582747",
"text": "def remove_last\n raise 'Cannot remove element from an empty list.' if empty?\n\n # Extract the data off of the tail node\n # Move the tail to the previous node\n data = @tail.data\n \n if size < 2\n ret... |
9298b4cfc903db6cbcc7b8180d62a4df | hook called when callback is complete | [
{
"docid": "e34f974119e29f7766818a51eda5fdd9",
"score": "0.0",
"text": "def callback_complete(callback, result=true)\n case callback\n when :validate\n evaluate_validity(result)\n when :invalid\n invalid_input\n when :success, :failure\n finalize\n end\n ... | [
{
"docid": "0f0df8828d29d38b86967b897de598ca",
"score": "0.8133097",
"text": "def callback; end",
"title": ""
},
{
"docid": "0f0df8828d29d38b86967b897de598ca",
"score": "0.8133097",
"text": "def callback; end",
"title": ""
},
{
"docid": "0f0df8828d29d38b86967b897de598ca",... |
0c60df5b9ee8aae2af93a57a64af9f4b | account_information Account Information Methods ============================================== ========================================================================== Account Deposit Methods ================================================== | [
{
"docid": "eae9319945643fe074cf48fdcbcebb10",
"score": "0.0",
"text": "def deposit_checking funds\n @balance_checking += funds\n @balance_total += funds\n rebalance\n puts \"#{funds} has been deposited. Your new balance is #{@balance_checking}\"\n self\n end",
... | [
{
"docid": "d2a579e48508a5fc3075ba97ba3a0724",
"score": "0.74326426",
"text": "def account_information\n\t\t\t{\n\t\t\t\tid: @id,\n\t\t\t\tchecking: @checking,\n\t\t\t\tsaving: @saving,\n\t\t\t\ttotal: combined_capital,\n\t\t\t\tinterest_rate: @interest_rates\n\t\t\t}\n\t\tend",
"title": ""
},
{... |
bbfd68b8c891103b897b205ff6a2dc59 | validates :phone, presence: true validates :phone, uniqueness: true | [
{
"docid": "5bce3219af1d4425c2ac45af784a63d5",
"score": "0.0",
"text": "def title\n first_name\n end",
"title": ""
}
] | [
{
"docid": "72d9646438fadf705504662017bbfa30",
"score": "0.7909076",
"text": "def phone_is_valid\n errors.add(:phone, \"Invalid phone number entered.\") unless phone_is_valid?\n end",
"title": ""
},
{
"docid": "2ef71d89d45f52618704ce3437b0ed29",
"score": "0.74631006",
"text": "de... |
0c70cea6c521ff0075927d6e6fd5b9f8 | GET /home_icons GET /home_icons.json | [
{
"docid": "cffcfdb38859a217c7746ffaec1d2c17",
"score": "0.7973825",
"text": "def index\n @home_icons = HomeIcon.all\n end",
"title": ""
}
] | [
{
"docid": "76b3ac1ee4672b334c6e0c15b3b9c4f6",
"score": "0.75598544",
"text": "def index\n @icons = []\n Icon.all.each do |icon|\n @icons << {\n class_name: icon.class_name,\n data_uri_encoded_data: icon.data_uri_encoded_data,\n }\n end\n respond_to do |format|\n ... |
8d7cb09b7b997877c41e6db0be2fa085 | Parses the given CCloud config and returns a Hash of it | [
{
"docid": "df25430621d71847ded8ac3a797c3b93",
"score": "0.0",
"text": "def load_config(config_file)\n conf = File.read(config_file).lines\n .map(&:strip)\n .delete_if { |l| l.empty? || l.start_with?('#') }\n .each_with_object({}) do |line, config|\n par... | [
{
"docid": "99c0cb7bef6639d3dd61d88c636f4139",
"score": "0.67881256",
"text": "def parse_cloud_config\n cloud_config = YAML.load(File.read('config/cloud.yml'))\n check_cloud_config(cloud_config)\n\n cloud_config\n end",
"title": ""
},
{
"docid": "b3a5734297b9dc266733c49b1bb6200d",
... |