query_id stringlengths 32 32 | query stringlengths 7 6.75k | positive_passages listlengths 1 1 | negative_passages listlengths 88 101 |
|---|---|---|---|
be9ec93ea0d2758de26c84513632de41 | The Add method should throw an exception when called with an input starting with a separator or containing multiple separators following each other. | [
{
"docid": "ff0a9af43d81145592070f53a49ffefe",
"score": "0.0",
"text": "def test_Add_Should_ThrowException_When_CalledWithInputContainsTwoOrMoreSeparatorsNext4\n # Arrange.\n @inputValue = '1\\n\\n2'\n @errorMessage = \"Number expected but '\\\\n' found at position 3.\"\n\n #... | [
{
"docid": "a4c7a94250afc931f5286d90fbd61f6d",
"score": "0.7603663",
"text": "def test_Add_Should_ThrowException_When_CalledWithInputContainsTwoOrMoreSeparatorsNextWithCustomSeparatorDeclaration108\n # Arrange.\n @inputValue = '//[sep1][sep2][sep3]\\nsep21sep32'\n @errorMessage = \"... |
940850f5cd95e7d091a8fb48422419e3 | What if you cannot use additional data structures? | [
{
"docid": "fee2a89c72ca27c82588e0cf75412b56",
"score": "0.0",
"text": "def methodChecksIfStringUnique(parameter_string) \n\thash_to_return = {}\n\n\tparameter_string.each_char do |char|\n\t\thash_to_return[char].nil? ? hash_to_return[char] = true : (return false)\n\tend\n\n\ttrue\n\t\nend",
"title"... | [
{
"docid": "ef1e4c0cc26e4eec8642a7d74e09c9d1",
"score": "0.5597221",
"text": "def private; end",
"title": ""
},
{
"docid": "cf862ee5a12d195b7c191da90773b8cf",
"score": "0.55954015",
"text": "def another; return []; end",
"title": ""
},
{
"docid": "cc599f7e10ed6a27eb8fa522... |
c3e6ac3c3a0e2e39863cf319b437b6ea | The method called by the engine when it has a workitem for this participant. | [
{
"docid": "28eeaf712694bea31dca059a75b2eaa8",
"score": "0.51227134",
"text": "def consume (workitem)\n\n #first, we specify the reply queue for the 'real' participant. \n\n workitem.reply_queue = workitem.params['reply_queue'] ||= @queue_name+\"_FIN\"\n workitem.pid = workitem.params['pi... | [
{
"docid": "7b65ce6642adea5411664899a8d32ab7",
"score": "0.6678005",
"text": "def _on_workitem(wi)\n Ruote.participant_send(\n self, [ :on_workitem, :consume ], 'workitem' => wi)\n end",
"title": ""
},
{
"docid": "12b8081727c942c782eb31994206ad5b",
"score": "0.6601763",
... |
c7e8bc03d49c911b12448f425268b1b6 | DELETE /admin/selling/config/prices/1 DELETE /admin/selling/config/prices/1.json | [
{
"docid": "3aa20286e55c2837a01f1a956a568c30",
"score": "0.6986639",
"text": "def destroy\n @admin_selling_config_price.destroy\n respond_to do |format|\n format.html { redirect_to admin_furniture_furnitures_path, notice: mk_notice(@admin_selling_config_price, @furniture.name, 'تنظیمات قیمتگ... | [
{
"docid": "b8804644d778ef9138b03908809f3262",
"score": "0.6972842",
"text": "def destroy\n @admin_price = Admin::Price.find(params[:id])\n @admin_price.destroy\n\n respond_to do |format|\n format.html { redirect_to(admin_prices_url) }\n format.xml { head :ok }\n end\n end",
... |
f74c29bdfc4a183e1ec1b91334cd5be2 | Use callbacks to share common setup or constraints between actions. | [
{
"docid": "9e71af60ac950d8518eb762f118f978c",
"score": "0.0",
"text": "def set_housing_type\n @housing_type = HousingType.find(params[:id])\n end",
"title": ""
}
] | [
{
"docid": "bd89022716e537628dd314fd23858181",
"score": "0.6163163",
"text": "def set_required_actions\n # TODO: check what fields change to asign required fields\n end",
"title": ""
},
{
"docid": "3db61e749c16d53a52f73ba0492108e9",
"score": "0.6045976",
"text": "def action_hook;... |
7ee3e74cc10e2781226af302c211b669 | DELETE /aws_network_acl_entries/1 DELETE /aws_network_acl_entries/1.json | [
{
"docid": "3d556064f969027a8bf394526a9cd10c",
"score": "0.7886504",
"text": "def destroy\n @aws_network_acl_entry.destroy\n respond_to do |format|\n format.html { redirect_to aws_network_acl_entries_url, notice: 'Aws network acl entry was successfully destroyed.' }\n format.json { head ... | [
{
"docid": "8208e6d7d290cf90e7bcd34bd446fb5b",
"score": "0.7511046",
"text": "def delete\n client.delete_network_acl(:network_acl_id => network_acl_id)\n nil\n end",
"title": ""
},
{
"docid": "7be5279ae5a3ee84e3956b869c56d931",
"score": "0.6946002",
"text": "def de... |
1def764f75a75229294a61279e259e84 | Gathers new results by executing the resource action | [
{
"docid": "31d7965423acf3ffa612fee0e75b0e02",
"score": "0.0",
"text": "def execute\n ns = RSpecSystem::NodeSet.create\n\n result = ns.rcp(opts)\n { :success => result }\n end",
"title": ""
}
] | [
{
"docid": "0fda700dd65ce72e22ff2eee0f3c5924",
"score": "0.6776948",
"text": "def execute\n results\n end",
"title": ""
},
{
"docid": "0fda700dd65ce72e22ff2eee0f3c5924",
"score": "0.6776948",
"text": "def execute\n results\n end",
"title": ""
},
{
... |
70227da9ced9355f56676faf7fb4f0ba | function for creating master histogram | [
{
"docid": "f7add19d1db9a3ed273dd18fb289cbcc",
"score": "0.0",
"text": "def checkStrings(st1, st2)\n\n\tdups = {}\n\n\tst1.each_key { | key | \n\t\t#puts \"key is #{key}\"\n\t\tif st2.has_key?(key) == true \n\t\t\tval1 = st1.values_at(key).join.to_i\n\t\t\tval2 = st2.values_at(key).join.to_i\n\t\t\tif ... | [
{
"docid": "794be6c17a33b6d2a0b7014d6f8c396d",
"score": "0.677172",
"text": "def histogram\n if @histogram.nil?\n @histogram = Hash[*BINS.map{ |elt| [elt, 0] }.flatten]\n authors.each do |name, num_commits|\n bottom = 0\n BINS.each do |top|\n if num_commits >= bottom and num_comm... |
04ffbf2463c3bbff81ad9e3f154dabfb | =begin students = input_students print_header print(students) print_footer(students) =end | [
{
"docid": "9802c5138f8bc9b791453e55849900a1",
"score": "0.0",
"text": "def print_menu\n puts \"1. Input the students\"\n puts \"2. Show the students\"\n puts \"3. Save list to file\"\n puts \"4. Load list from file\"\n puts \"9. Exit\"\nend",
"title": ""
}
] | [
{
"docid": "847bad258a422a062d1c426a06f8a348",
"score": "0.80615324",
"text": "def print_students(students = @students)\n print_header\n looping_via_students(students)\n print_footer(students)\nend",
"title": ""
},
{
"docid": "22c445b7252616e90f8fbe12ae40b7df",
"score": "0.77764064",
... |
f74c29bdfc4a183e1ec1b91334cd5be2 | Use callbacks to share common setup or constraints between actions. | [
{
"docid": "a112e25120e5e8457d2fd7abafdb955a",
"score": "0.0",
"text": "def set_expenditure_management\n @expenditure_management = Qualityofexpenditure.find(params[:id])\n end",
"title": ""
}
] | [
{
"docid": "631f4c5b12b423b76503e18a9a606ec3",
"score": "0.6032574",
"text": "def process_action(...)\n run_callbacks(:process_action) do\n super\n end\n end",
"title": ""
},
{
"docid": "7b068b9055c4e7643d4910e8e694ecdc",
"score": "0.6015663",
"text": "def... |
c70fffdf12d341bcf1b29d000c3702df | GET /events/1 GET /events/1.json | [
{
"docid": "fd4f904f8660fd2a480da2e3cf07a455",
"score": "0.0",
"text": "def show\n if current_user.is_client? && !@event.approved\n redirect_to events_path\n else\n respond_to do |format|\n format.html\n format.json\n format.pdf do\n return render pdf: \"#{@... | [
{
"docid": "2d5580b43c7c18bcd8a06713fa4be0f1",
"score": "0.75926495",
"text": "def show\n\t\tevent_id = params[:id]\n\t\tif event_id.present?\n\t\t\t@event = Com::Nbos::Events::Event.active_events.where(:id => event_id)\n\t\t\trender :json => @event\n\t\telse\n\t\t\trender :json => {status: 400, message... |
4a3c5ccb65dbce196471213aeba5bc65 | Takes an Sexp like (:hash, (:lit, :key), (:str, "value")) and yields the key and value pairs to the given block. For example: h = Sexp.new(:hash, (:lit, :name), (:str, "bob"), (:lit, :name), (:str, "jane")) names = [] hash_iterate(h) do |key, value| if symbol? key and key[1] == :name names << value[1] end end names ["b... | [
{
"docid": "09b72fab24d6a67ab53199705e4d0b8f",
"score": "0.6295558",
"text": "def hash_iterate hash\n 1.step(hash.length - 1, 2) do |i|\n yield hash[i], hash[i + 1]\n end\n end",
"title": ""
}
] | [
{
"docid": "f84c6c306eb81a38d341f513b5ee8afa",
"score": "0.64607114",
"text": "def each\n clear_disposed\n @hash.each { |s| yield s[1] if block_given? }\n end",
"title": ""
},
{
"docid": "af15058ff1f7f1561488840e6741301a",
"score": "0.6321693",
"text": "def each_hash\n wh... |
b5a8e9f73ce977322acef95a454c7b7b | Returns relationships object. Relationships added with relate, relate_if, relate_each and include (with :relate option). | [
{
"docid": "762222a67720fe362374839049ccb731",
"score": "0.6489654",
"text": "def relationships\n @relationships.each do |k, v|\n if v.respond_to?(:uniq!)\n v.uniq!\n @relationships[k] = v.first if v.length == 1\n end\n end\n @relationships\n end",
"... | [
{
"docid": "71694067a50086b47a38aa5f7d7c2871",
"score": "0.7547389",
"text": "def relationships\n @relationships ||= Relationship.from_associations(self, associations)\n end",
"title": ""
},
{
"docid": "0f271b4fa6670599519f7c0944d3e4e1",
"score": "0.72382826",
"text": "def re... |
f74c29bdfc4a183e1ec1b91334cd5be2 | Use callbacks to share common setup or constraints between actions. | [
{
"docid": "754ccfd9cb8cfccc5767f62a9885c319",
"score": "0.0",
"text": "def set_question\n @question = Question.find(params[:id])\n end",
"title": ""
}
] | [
{
"docid": "631f4c5b12b423b76503e18a9a606ec3",
"score": "0.603186",
"text": "def process_action(...)\n run_callbacks(:process_action) do\n super\n end\n end",
"title": ""
},
{
"docid": "7b068b9055c4e7643d4910e8e694ecdc",
"score": "0.6015241",
"text": "def ... |
22893c7b6b807e5f0c8bbcd8fb04f466 | Set the value of the Fields input for this Choreo. | [
{
"docid": "5404b1622c01dfdb7ba232bb9b1dea0f",
"score": "0.74632776",
"text": "def set_Fields(value)\n set_input(\"Fields\", value)\n end",
"title": ""
}
] | [
{
"docid": "ceae0a84f166e85e124fd38c50b670f9",
"score": "0.73505765",
"text": "def set_Fields(value)\n set_input(\"Fields\", value)\n end",
"title": ""
},
{
"docid": "ceae0a84f166e85e124fd38c50b670f9",
"score": "0.73505765",
"text": "def set_Fields(value)\n s... |
6d6b998e4e432cbfb26d1888381256c9 | GET /engines/new GET /engines/new.json | [
{
"docid": "0426a35606ba6973329992ec273444a9",
"score": "0.7369784",
"text": "def new\n add_breadcrumb \"Engines\", :engines_path\n @engine = Engine.new\n @fuel_types = Fuel.all \n respond_to do |format|\n format.html # new.html.erb\n format.json { render json: @engine }\n end\... | [
{
"docid": "5fd1ca671df4eecb36a5b929c33bca81",
"score": "0.7336033",
"text": "def new\n @engine_model = EngineModel.new\n\n respond_to do |format|\n format.html # new.html.erb\n format.json { render json: @engine_model }\n end\n end",
"title": ""
},
{
"docid": "47f1ac7aa1... |
9b67ba1f411518ba0b3e0b5d1a10087d | up to 8 integers representing the up to 8 tiles around a grid location. | [
{
"docid": "258fcb4e9c39616c55909b8dde6461af",
"score": "0.0",
"text": "def all_surrounding_spaces(spot)\n to_check = []\n to_check << spot - 1 if (spot % @columns_size != 0)\n to_check << (spot - @columns_size - 1) if (spot % @columns_size != 0)\n to_check << (spot + @columns_size - 1) if (... | [
{
"docid": "fcf1f5b05f5ed43f4230f932f8b05b88",
"score": "0.6829333",
"text": "def get_surrounding_tiles(row, column, cell)\n surrounding_tiles = []\n index = GAME_BOARD[column-1].index(cell)\n if column == 1 \n if index == 0\n surrounding_tiles << GAME_BOARD[column-1][index+1]\n ... |
13cc3b10486c14516c00ac583e7de192 | Sets the attribute level | [
{
"docid": "85ea436f97b5f1fe2f0e7f1ebb26a3a3",
"score": "0.56434184",
"text": "def level=(_arg0); end",
"title": ""
}
] | [
{
"docid": "42b6e98f96579c846a99d55e2d8181a3",
"score": "0.7782256",
"text": "def attribute_level=(value_)\n if value_.kind_of?(Level)\n @attribute_level = value_\n else\n level_obj_ = @level_group.get(value_)\n if level_obj_.nil?\n raise Errors::UnknownLevelError... |
5b212fafd695f819f9c94a6ba34df4c4 | Update of Facebook profile, triggered after creation or update of a post. | [
{
"docid": "23563850e9c5f10746f4429f7e99adba",
"score": "0.7616673",
"text": "def update_facebook_profile\n \n # Only update profile if the owner of this has linked their facebook account \n # Also never update Facebook from the development environment\n if RAILS_ENV != 'development' && user... | [
{
"docid": "3fb62b04c2599e32621d19d9f2445ecf",
"score": "0.7898439",
"text": "def update_facebook_profile\n \n # Only update profile if the owner of the post this picture is attached to \n # has linked their facebook account \n # Also never publish to Facebook from the development environmen... |
a56f1b5a2f3c14a9351a0b036370c683 | Perform readonly actions on the DMG. | [
{
"docid": "5d84e0c05485a876c243166e692a9aa1",
"score": "0.0",
"text": "def show &block\n HDIUtil.read(@url, &block)\n end",
"title": ""
}
] | [
{
"docid": "1a553dbd96f74cdc1909b119e5e3ed45",
"score": "0.72814614",
"text": "def readonly!\n @readonly = true\n end",
"title": ""
},
{
"docid": "1a553dbd96f74cdc1909b119e5e3ed45",
"score": "0.72814614",
"text": "def readonly!\n @readonly = true\n end",
"... |
bf11ad5ad82a82df29d12d26af3eafff | Sets the event_end_date and event_end_time | [
{
"docid": "771832354bc3287bcd755394b0580a45",
"score": "0.69576174",
"text": "def close(now = Time.now)\n self.event_end_date = now.to_date\n self.event_end_time = now.strftime(\"%H:%M\")\n end",
"title": ""
}
] | [
{
"docid": "cad154a535dc96ec772dee3e8a4f39bc",
"score": "0.8243419",
"text": "def event_end_time=(value)\n @event_end_time = value\n end",
"title": ""
},
{
"docid": "3b803e5f13de40f4a3e731c72731d0b9",
"score": "0.77718383",
"text": "def end_date_time=(value)... |
46a35a3bab32c8f7391fd5399ae955b2 | tree needs to grow | [
{
"docid": "5f5e5fc83418f65cd5354ebf01a7c250",
"score": "0.0",
"text": "def water\n @size += 1\n end",
"title": ""
}
] | [
{
"docid": "4737ba28144be7d17ac4411d8fd0d4fa",
"score": "0.7578591",
"text": "def grow_tree\n dataset.order_transaction_items(candidate_items).each do |transaction|\n add_transaction(transaction, root)\n end\n calculate_header_support\n end",
"title": ""
},
{
"docid": "dc6d853... |
f74c29bdfc4a183e1ec1b91334cd5be2 | Use callbacks to share common setup or constraints between actions. | [
{
"docid": "f54a99f0625bf1d59b7dcef799c575bb",
"score": "0.0",
"text": "def set_health_goal\n @health_goal = HealthGoal.find(params[:id])\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... |
8086a66676c6908ee8dc02297fce9b92 | POST /students POST /students.json | [
{
"docid": "6d9d488f846befe3f1dc1db2a6aa7264",
"score": "0.6289095",
"text": "def create\n @student = Student.new(student_params)\n\n respond_to do |format|\n if @student.save\n format.html { redirect_to @student, notice: 'Student was successfully created.' }\n format.json { ren... | [
{
"docid": "b9fc48e0487439541cd53042b4f0ea70",
"score": "0.7277736",
"text": "def create\n @student = Student.new(student_params)\n\n if @student.save\n render json: @student, status: :created\n else\n render json: @student.errors, status: :unprocessable_entity\n end\n end",
... |
427fdb7353405bca414b92163ba6a1e4 | GET /companies_hrs GET /companies_hrs.json | [
{
"docid": "1d478b0cffb8ab13afe0c82f5ded8f6c",
"score": "0.6409788",
"text": "def index\n @companies_hrs = CompaniesHr.all\n @students = Student.all\n end",
"title": ""
}
] | [
{
"docid": "d4287da67b092b8aeb0972f0ade03d36",
"score": "0.6625947",
"text": "def set_companies_hr\n @companies_hr = CompaniesHr.find(params[:id])\n end",
"title": ""
},
{
"docid": "3e0d48128968895128056bd5dfb72515",
"score": "0.6594802",
"text": "def index\n @hrs = Hr.all... |
f8a733735ea9ea41999fc4463008fd8b | PATCH/PUT /books/1 PATCH/PUT /books/1.json | [
{
"docid": "ecf7fe29bfb03567508197d8f8f362b1",
"score": "0.0",
"text": "def update\n respond_to do |format|\n @book.availability = @book.is_checked_out\n\n if @book.update(book_params)\n format.html { redirect_to @book, notice: 'Book was successfully updated.' }\n format.json ... | [
{
"docid": "2e156f2716fdd381bcb0213d3459a7e7",
"score": "0.6979014",
"text": "def update\n @books = Books.find(params[:id])\n\n respond_to do |format|\n if @books.update_attributes(params[:book])\n format.html { redirect_to @books, :notice => 'Book was successfully updated.' }\n ... |
e1e930c2b0b7bf9f0ad8910b79e493a1 | def add_animal(new_animal) cages.each do |cage| if cage.empty? cage.animal = new_animal return end end "Your zoo is already at capacity!" end | [
{
"docid": "55e797cd8fd6e5677f9cbaebf883cb56",
"score": "0.0",
"text": "def visit\n visit_string = \"\"\n employees.each do |employee|\n visit_string += \"#{employee.greet}\\n\" \n end\n cages.each do |cage|\n if !cage.empty? \n visit_string += \"#{cage.animal.speak}\\n\"\n ... | [
{
"docid": "138c0e2f0e8817d815726942a0522aeb",
"score": "0.7372739",
"text": "def animal_add(animal)\n @animals << animal\n end",
"title": ""
},
{
"docid": "6c06a3897fe991ec75249cec16a53f22",
"score": "0.7106084",
"text": "def animal_add(animal)\n @animals << animal\n ... |
a2099a77c85e91272ae2f9e35b937953 | Only allow a trusted parameter "white list" through. | [
{
"docid": "013f5519228a40fe08ae5aba065c6faa",
"score": "0.0",
"text": "def marca_params\n params.require(:marca).permit(:nome, :created_by, :updated_by)\n end",
"title": ""
}
] | [
{
"docid": "3663f9efd3f3bbf73f4830949ab0522b",
"score": "0.7943618",
"text": "def whitelisted_params\n super\n end",
"title": ""
},
{
"docid": "f6060519cb0c56a439976f0c978690db",
"score": "0.69572574",
"text": "def permitted_params\n params.permit!\n end",
"title"... |
2b19106b16e5e569a095d6e82eef04e8 | Description: It is a METHOD for invoking the Razoo Site | [
{
"docid": "eb1bf6efb0085690cec925641af07859",
"score": "0.0",
"text": "def invokeRedmineSite()\n\t\n\tputs \"************** START : Invoke Razoo Application ****************\"\t\n\t# Create a new instance of the Selenium-Client driver.\n\t$browser = Selenium::Client::Driver.new \\\n\t\t:host => \"local... | [
{
"docid": "b0f5e152764f751c7a6a6ed5c331b99a",
"score": "0.6982859",
"text": "def site; end",
"title": ""
},
{
"docid": "b0f5e152764f751c7a6a6ed5c331b99a",
"score": "0.6982859",
"text": "def site; end",
"title": ""
},
{
"docid": "b0f5e152764f751c7a6a6ed5c331b99a",
"sc... |
a2a9142f596cbdee9f2a123c4ba1263c | create a new affiliation object from a list of string values | [
{
"docid": "a1a136d88b96890b15b57385e8af45ac",
"score": "0.6376343",
"text": "def create_affi_obj(lines_list, auth_id)\n tkn_idx = 0\n auth_affi = Author_Affiliation.new()\n auth_affi.article_author_id = auth_id\n inst_found = \"\"\n #while tkn_idx < lines_list.count\n while tkn_idx < lines_list.c... | [
{
"docid": "fcb319fbdae516e2cb652a2f88d82045",
"score": "0.68373233",
"text": "def affiliations=(value)\n @affiliations = []\n value&.each do |affil|\n @affiliations << if affil.is_a?(Affiliation)\n affil\n else\n ... |
1cee3c26f3fd6c73d38e1394d4cc1a77 | Sets traversing breadth first (default). This is the default ordering if none is defined. The pre_or_post parameter parameter can have two values: :pre or :post :pre Traversing breadth first, visiting each node before visiting its child nodes (default) :post Traversing breadth first, visiting each node after visiting i... | [
{
"docid": "c8a857267b8df31ecf60a35001b74a36",
"score": "0.7429524",
"text": "def breadth_first(pre_or_post = :pre)\n case pre_or_post\n when :pre then @td = @td.order(org.neo4j.kernel.Traversal.preorderBreadthFirst())\n when :post then @td = @td.order(org.neo4j.kernel.Traversal... | [
{
"docid": "606effa59500bffb9916b779a598507e",
"score": "0.6484477",
"text": "def pre_order_traversal(tree=root, ordering=[])\n end",
"title": ""
},
{
"docid": "8de62807e45bf799d18a515df174a707",
"score": "0.6353325",
"text": "def depth_first(pre_or_post = :pre)\n case pre_or... |
88d938b2c519ad2d480941408d4d895a | function to update user's info | [
{
"docid": "0d6dce023c5826f83f20b144338c7d59",
"score": "0.0",
"text": "def update\n session_id = params[:session_id]\n session_token = params[:session_token]\n \n if params[:avatar]\n io = V1::FileStringUpload.new(Base64.decode64(params[:avatar]))\n io.original_filenam... | [
{
"docid": "ffdb59071a95a760c0eeba26eabc1d3a",
"score": "0.8027594",
"text": "def update_user(options); end",
"title": ""
},
{
"docid": "130789e2bf15a3c3c882630f433059b9",
"score": "0.78554153",
"text": "def user_update(new_username = nil, new_password = nil)\n if new_username.pre... |
3c4d8099a25714c0c32f1f885b3d8177 | Detail view delegate method | [
{
"docid": "183fe9c798e9b099996e09869eebbe09",
"score": "0.0",
"text": "def detailViewControllerDone(detailViewController)\n \n item = detailViewController.titleText\n description = detailViewController.descriptionText\n \n @description[item] = description\n\n path = self.tableView.ind... | [
{
"docid": "599c466a8cf687bf65005ca5257bbf60",
"score": "0.7101865",
"text": "def detail; end",
"title": ""
},
{
"docid": "599c466a8cf687bf65005ca5257bbf60",
"score": "0.7101865",
"text": "def detail; end",
"title": ""
},
{
"docid": "599c466a8cf687bf65005ca5257bbf60",
... |
4991f3d5bcf434343db8cbb1aa70cb9d | DELETE /prints/1 DELETE /prints/1.json | [
{
"docid": "c2263ad44215be6bd819efe9237ac7f8",
"score": "0.7003727",
"text": "def destroy\n @print.destroy\n respond_with :prints\n end",
"title": ""
}
] | [
{
"docid": "1faf63121da190fe7dc5fe39fd26e6ee",
"score": "0.7362889",
"text": "def destroy\n @print.destroy\n respond_to do |format|\n format.html { redirect_to prints_url }\n format.json { head :no_content }\n end\n end",
"title": ""
},
{
"docid": "1faf63121da190fe7dc5fe3... |
ac4c77bc4818a608e034c946fea25bbd | Public: Called by declarative authorization if permission is denied for an action. | [
{
"docid": "a3118cd19ab1d0fbe11e64644f72d53a",
"score": "0.6663156",
"text": "def permission_denied\n #flash.alert = \"Sorry! You are not allowed on that page.\"\n if current_user.present? && current_user.kind_of?(User)\n redirect_to dashboard_account_path\n else\n session[:unauthoriz... | [
{
"docid": "2604dbbd9276824cd58210df073af4c5",
"score": "0.80248266",
"text": "def permission_denied\n raise Authorization::NotAuthorized\n end",
"title": ""
},
{
"docid": "dd858b375b764d3dd56581b0561cb6d9",
"score": "0.7963115",
"text": "def denied\r\n handle_permission_d... |
2fdfbf79c6fc81c0ccdb70b59405eb5d | Poltergeist will append HTTP_ to headers variables, but since we check for either when testing, it doesn't matter. | [
{
"docid": "b76ddf72e3c52fd7d7469d97f6b2b42e",
"score": "0.0",
"text": "def request_headers(user = nil)\n return {} unless user\n\n { 'REMOTE_USER' => user.login }\n end",
"title": ""
}
] | [
{
"docid": "3ce5369c874d54bb815ba93f4006e05c",
"score": "0.7180543",
"text": "def http_headers=(env)\n @http_headers = env.select {|header, value| header.to_s.start_with? \"HTTP_\"}\n end",
"title": ""
},
{
"docid": "f964a1a7e498ac3b39c2c19897c88c55",
"score": "0.70684916",
"text... |
686080642eabe71d6327d8233b6ea29b | Verifies that the value of the foundation date (if any) matches the corresponding field in a given set of test data. Returns an array of mismatches. | [
{
"docid": "85564fc3dceebd9c76013bcd4ec5f6e1",
"score": "0.71625805",
"text": "def verify_foundation_date(test_data)\n errors = []\n text_values_match?(test_data[CoreOrgData::FOUNDING_DATE.name], element_value(foundation_date_input), errors)\n errors\n end",
"title": ""
}
] | [
{
"docid": "869ba88ed354f504280a31175423c7b1",
"score": "0.6697144",
"text": "def verify_dissolution_date(test_data)\n errors = []\n text_values_match?(test_data[CoreOrgData::DISSOLUTION_DATE.name], element_value(dissolution_date_input), errors)\n errors\n end",
"title": ""
},
{
"d... |
200fa8ef07aa9a866fb564fbc0d72c09 | DELETE /removes/1 DELETE /removes/1.json | [
{
"docid": "35ad3cfef4ca01711087fbc581eb722f",
"score": "0.6747728",
"text": "def destroy\n @remove.destroy\n respond_to do |format|\n format.html { redirect_to removes_url, notice: 'Remove was successfully destroyed.' }\n format.json { head :no_content }\n end\n end",
"title": "... | [
{
"docid": "822ddea2e45bf78350003645efcbdb54",
"score": "0.6921869",
"text": "def delete uri, args = {}; Request.new(DELETE, uri, args).execute; end",
"title": ""
},
{
"docid": "c53a7ddfb5f66bdab62b1fc4305a0473",
"score": "0.68940365",
"text": "def delete *args\n make_request :del... |
7671ef8d4f3b96366f98e100a7c32d1d | gets a smartcar API service/client | [
{
"docid": "1a802c55ceaca1c1a7176a1cd52c2254",
"score": "0.0",
"text": "def service\n @service ||= Faraday.new(url: SITE, request: { timeout: REQUEST_TIMEOUT })\n end",
"title": ""
}
] | [
{
"docid": "605e27c13847e687e6be0e3ea2056c5c",
"score": "0.6824094",
"text": "def api_client\n Api::Client.new\n end",
"title": ""
},
{
"docid": "bc35be31612e746b534492ecd10a3de1",
"score": "0.66803235",
"text": "def get\n service_response = ClientManagement::GetClientInfo... |
65889d0e02cfbd77a486b9d35cd206a9 | POST /development_works POST /development_works.json | [
{
"docid": "46211d204f09e49481933084ca1dc5c2",
"score": "0.76286924",
"text": "def create\n @development_work = DevelopmentWork.new(development_work_params)\n\n respond_to do |format|\n if @development_work.save\n format.html { redirect_to @development_work, notice: 'Development work w... | [
{
"docid": "b7e236cfcb7ec5dfdbf393ac5e355519",
"score": "0.6593391",
"text": "def create\n @work = Work.new(params[:work])\n\n respond_to do |format|\n if @work.save\n format.html { redirect_to @work, notice: 'Work was successfully created.' }\n format.json { render json: @work,... |
469fef6f0f55a858d6dbc55d8f60a5ce | manual setter with conditional judgement | [
{
"docid": "b437dc057a58b3aaed6c405cc7693953",
"score": "0.0",
"text": "def age= (new_age)\n @age = new_age unless new_age > 120\n end",
"title": ""
}
] | [
{
"docid": "9dc9860ca99411c880f86ebefbfcf23d",
"score": "0.6625808",
"text": "def setter?( m_name )\n ( m_name.to_s.strip =~/(.+)=$/ ) ? true : false\n end",
"title": ""
},
{
"docid": "fbbeb8d6a6282e6ea720719e412a3201",
"score": "0.6545488",
"text": "def method_missing(meth, *... |
b55e86235d5eed0511a2330c1923f680 | Computing LQRX segments according to the Patient Type(InPatient or OutPatient) | [
{
"docid": "b20c6cfe789234ba5efe71ee8dc48cf2",
"score": "0.7632002",
"text": "def compute_lq(patient_type)\n segments = []\n patient_code = service.send(\"#{patient_type}patient_code\")\n facility_payer_information = FacilitiesPayersInformation.find_by_payer_id_and_facility_id(payer.id, facilit... | [
{
"docid": "59199b27b4f6ec46a8783dbbe6ca2417",
"score": "0.6101805",
"text": "def health_remark_code_segments\n @eob = service.insurance_payment_eob\n facility = @eob.check_information.job.batch.facility\n health_remark_code_segments = []\n health_remark_code_segments << compute_lq(\"in\")\n... |
8e276886f79a91845d835a69d2bb35ec | Named accessors Get the value of option +element+. Returns an array of ComplexType_elementType objects. Returns +nil+ if not the option. | [
{
"docid": "c48ebdeea15ad2a7dd7128cef621c539",
"score": "0.0",
"text": "def element\n (0 == @_index) ? @_value : nil\n end",
"title": ""
}
] | [
{
"docid": "ca83ce2881ff3b12be8e8ab1b80f2d30",
"score": "0.5477133",
"text": "def get_complex_types(node)\n return REXML::XPath.each(node, 'complexType').to_a\n end",
"title": ""
},
{
"docid": "198213185b6d1bf2209712c45a0970f2",
"score": "0.5294482",
"text": "def get_elem... |
012b5fb58174346ced65cf677c9aaa65 | count tags' article amount an return the count num | [
{
"docid": "deaf952b4261bb699f87077ec229de5a",
"score": "0.8187936",
"text": "def count_tag_article(name)\n count = Article.tagged_with(name).count\n return count\n end",
"title": ""
}
] | [
{
"docid": "152324b8cebdd7448f4690cebef926f5",
"score": "0.8161518",
"text": "def count_articles_tagged(tag)\n tag = Tag.first(:name => tag)\n return 0 unless tag\n self.taggings.count(:tag_id => tag.id)\n end",
"title": ""
},
{
"docid": "b3ba826f9533a28947d215c09f0ca39c",
"sco... |
c737683fe86bd7cccc24ae5be6c4dbd7 | GET /carts/new GET /carts/new.json | [
{
"docid": "bb121b2aacbdf4346229f53c78b945a6",
"score": "0.82178146",
"text": "def new\n @cart = Cart.new\n\n respond_to do |format|\n format.html # new.html.erb\n format.json { render json: @cart }\n end\n end",
"title": ""
}
] | [
{
"docid": "37474aa19908f22213dfe0c864060009",
"score": "0.8646201",
"text": "def new\n \t\"puts get carts new\"\n @cart = Cart.new\n\n respond_to do |format|\n format.html # new.html.erb\n format.json { render json: @cart }\n end\n end",
"title": ""
},
{
"docid": "dd79d... |
f0c3df4ffead72c4fc9fdc4b3d891a50 | Method that declares the winner of the game by checking the token value of the won? method. Returns nil if there is no winner (yet). | [
{
"docid": "04240855c9b5f685734bf4a17905de24",
"score": "0.71251327",
"text": "def winner(board)\n won = won?(board)\n if won != false\n if board[won[0]] == \"X\"\n return \"X\"\n elsif board[won[0]] == \"O\"\n return \"O\"\n end\n else\n return nil\n end\nend",
"title": ""... | [
{
"docid": "a0212a6a471438d4f6918d5e78cb8f02",
"score": "0.82895154",
"text": "def winner\n if won?\n win_combination = won?\n token = @board[win_combination[0]]\n return token\n end\n end",
"title": ""
},
{
"docid": "b84464906c8137efc6267ab1d7ac281c",
"score": "0.8... |
ce15269e68b0840144bb0dcf2a835660 | adds the ship to players ships and removes it from the unset | [
{
"docid": "1b16ee9d4bac533257b328d9323c37de",
"score": "0.6330168",
"text": "def ship_ready(ship)\n ship_type = SHIP_SET.reverse[ship.size-1]\n @ships.push ship\n @ships_unset[ship_type] = @ships_unset[ship_type] - 1\n end",
"title": ""
}
] | [
{
"docid": "79bc0bfc6b01c1590b601bc570e3f054",
"score": "0.735337",
"text": "def remove_ship\n if @fleet.empty?\n return press_enter { \"You haven't placed any ships! Press ENTER to continue.\" }\n end\n\n choice = preview(@fleet)\n if choice\n @ships_unplac... |
961b2e2c7b50f8be736fd856bc39f30a | Turn up ALL channels | [
{
"docid": "93e190eb6a3e5817274bdbf5a6fd7f3f",
"score": "0.7857455",
"text": "def turnUpAllChannels()\n result = ''\n @base.cmd(\"conf t\") { |c| result += c }\n @base.cmd(\"int ca1/0\") { |c| result += c }\n (0..5).each do |ch|\n @base.cmd(\"no cable upstream #{ch} shutdown\") { |c| re... | [
{
"docid": "dfcc52bb14aef00db6e87c29bcfaac3a",
"score": "0.7233476",
"text": "def turnDownAllChannels()\n result = ''\n @base.cmd(\"conf t\") { |c| result += c }\n @base.cmd(\"int ca1/0\") { |c| result += c }\n (0..5).each do |ch|\n @base.cmd(\"cable upstream #{ch} shutdown\") { |c| res... |
f74c29bdfc4a183e1ec1b91334cd5be2 | Use callbacks to share common setup or constraints between actions. | [
{
"docid": "686e1d0d778b68470345400343acfaec",
"score": "0.0",
"text": "def set_entries\n @pool = Pool.find(params[:pool_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; ... |
fd26a7a088702408066069d826a093d0 | Subject can be set in your I18n file at config/locales/en.yml with the following lookup: en.system_mailer.contact_message.subject | [
{
"docid": "8f686f1ed3251e01d3cd620c8ec7bdbc",
"score": "0.5876698",
"text": "def contact_message(contact, store, email)\n @contact = contact\n @store = store\n\n mail(to: email, subject: 'Thanks for contact us')\n end",
"title": ""
}
] | [
{
"docid": "8780eaf874a22b8575f2c8ae110d8df9",
"score": "0.7878423",
"text": "def message_subject=(value)\n @message_subject = value\n end",
"title": ""
},
{
"docid": "f3c6c5e6185dd926ede5b19d88f3b473",
"score": "0.74747044",
"text": "def subject (recipient)... |
c657de4b70d266e9a3a784b999ea9e60 | Never trust parameters from the scary internet, only allow the white list through. | [
{
"docid": "25999d2ba7f0e0a3e2e432285e7efaaa",
"score": "0.0",
"text": "def quiz_params\n params.require(:quiz).permit(:quiz_title, :owner_user_id, :quiz_text, :project_id, :quiz_parts1, :quiz_parts2, :quiz_parts3, :quiz_parts4, :order, :answer )\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... |
2da6021d12ab57cac570608656147482 | => "uv" because uqrssrqvtt > uqrrqvtt > uqqvtt > uvtt > uv ARRANGE I AM HAPPYYYYYYYYYYYYY !!!!!! | [
{
"docid": "e294a27b34ff50234d8c3f95ea4de325",
"score": "0.0",
"text": "def same_char_collapse(str)\n\n counter = Hash.new(0)\n str.each_char do |char|\n counter[char] += 1\n end \n\n unique = []\n counter.each_key do |k|\n unique << k+k\n end \n\n new = {}\n uniq... | [
{
"docid": "606402ec6a132a6e962e3a3d7bc5fff4",
"score": "0.5544591",
"text": "def check_range_name str\n return downcase_keys(list_ranges)[str.downcase]\n rescue => e\n raise SystemError, \"Can't check drupal database for embargo ranges\"\n end",
"title": ""
},
{
"docid": "8a61c29324... |
e0878e503c9bfb5692168489da5139d7 | sorted by the length of the word. Time complexity: 0(n) n being the length a loop based off of n Space complexity: ? | [
{
"docid": "f930679c96a71e823867fc492316d581",
"score": "0.6970412",
"text": "def sort_by_length(my_sentence)\n # verify input. if only one word, return word\n if my_sentence.length == 1\n return []\n elsif\n # split input sentence into array\n my_sentence_array = my_sentence.split\n # sa... | [
{
"docid": "e387e9f6d316f38532b0af1bd46d41cf",
"score": "0.8059226",
"text": "def sort_by_length(my_sentence)\n array_of_word = my_sentence.split(\" \")\n i = 0\n while i < array_of_word.length - 1\n j = 0\n while j < array_of_word.length - i - 1\n if array_of_word[j].length > array_of_wor... |
b6b9cd199dfaed08c4c534812e0ac109 | Check to see if the all the properties in the model are valid | [
{
"docid": "af273056b27b2137c130160c6cde1a6b",
"score": "0.0",
"text": "def valid?\n \n \n \n \n \n \n if @nome.nil?\n return false\n end\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ... | [
{
"docid": "162d0e63d65b0cd6795543bab63498f2",
"score": "0.78992486",
"text": "def validate_properties\n true\n end",
"title": ""
},
{
"docid": "162d0e63d65b0cd6795543bab63498f2",
"score": "0.78992486",
"text": "def validate_properties\n true\n end",
"title": ""
... |
f46a2f7ffd4967d7add9a7493d367618 | GET /properties/new GET /properties/new.xml | [
{
"docid": "8acabe0f8b7fe62192e470b756a6d04c",
"score": "0.0",
"text": "def new\n @property = Property.new\n end",
"title": ""
}
] | [
{
"docid": "b1f5a7bfd2f8b7e496c947a7c76ee304",
"score": "0.7490042",
"text": "def new\n @property = Property.new\n\n respond_to do |format|\n format.html # new.html.erb\n format.xml { render :xml => @property }\n end\n end",
"title": ""
},
{
"docid": "b1f5a7bfd2f8b7e496c... |
f46f7bb0f8a6be0ed2061766269d244b | The body content needs to be a json. | [
{
"docid": "41d9ea58b851c55945756e2a9135a1b1",
"score": "0.0",
"text": "def post_accounts(new_account)\n @options = {path: '/accounts/content',\n body: Megam::JSONCompat.to_json(new_account)}.merge(@options)\n\n request(\n :expects => 201,\n :method => :post,... | [
{
"docid": "8dd5f9bcef71b09bf348475a5ea089bf",
"score": "0.8154448",
"text": "def json_body; end",
"title": ""
},
{
"docid": "23c4f1c3582bb14125dc7994224af4e9",
"score": "0.8036816",
"text": "def json_body\n if @body\n @json_body ||= JSON.parse(@body)\n end\n end"... |
ada8cfae8a16b8f43d704c7caef259a6 | Colorize UNIX output blue | [
{
"docid": "ecbbdca753dfa4b10d9616aba5077bc3",
"score": "0.0",
"text": "def blue(string) \n \"\\e[34m#{string}\\e[0m\"\n end",
"title": ""
}
] | [
{
"docid": "aedc1aff99c9ccebf8d08a79552e0ffa",
"score": "0.73532134",
"text": "def red_command\n self.class.colourise_output ? \"\\e\\[31m\" : nil\n end",
"title": ""
},
{
"docid": "f111725776e5021741bac03f02249da1",
"score": "0.71105736",
"text": "def green_command\n se... |
a2099a77c85e91272ae2f9e35b937953 | Only allow a trusted parameter "white list" through. | [
{
"docid": "4aaabebdb1712305bb42af851010aaaf",
"score": "0.0",
"text": "def payment_plan_params\n params.require(:payment_plan).permit(:title, :description, :starting_date)\n end",
"title": ""
}
] | [
{
"docid": "c1f317213d917a1e3cfa584197f82e6c",
"score": "0.7121862",
"text": "def allowed_params\n ALLOWED_PARAMS\n end",
"title": ""
},
{
"docid": "b32229655ba2c32ebe754084ef912a1a",
"score": "0.70524937",
"text": "def expected_permitted_parameter_names; end",
"title": "... |
c25846ebb824e986ac6554cc37845930 | Convenience method to determine the particular options this model delivers | [
{
"docid": "344a14012ca0eef6850cb9dda9a925a2",
"score": "0.0",
"text": "def delivers?(opt)\n self.class.delivery_options.include?(opt.to_s)\n end",
"title": ""
}
] | [
{
"docid": "d48f0f3f204455c16b217a15dabd2d6e",
"score": "0.74831164",
"text": "def options\n self.class.meta[:options]\n end",
"title": ""
},
{
"docid": "bd05089e3cfc678ca5ebeba29a17958e",
"score": "0.72850066",
"text": "def get_options; end",
"title": ""
},
{
"do... |
56e218e76dc370016fe85216f413df6c | DELETE /marcas/1 DELETE /marcas/1.xml | [
{
"docid": "efc4591327107469501b4b63b6482685",
"score": "0.7039998",
"text": "def destroy\n @marca = Marca.find(params[:id])\n @marca.destroy\n\n respond_to do |format|\n format.html { redirect_to(marcas_url) }\n format.xml { head :ok }\n end\n end",
"title": ""
}
] | [
{
"docid": "29c23d2214fc5d6ea0838effb28e240a",
"score": "0.67628396",
"text": "def destroy\n @tipo_marca = TipoMarca.find(params[:id])\n @tipo_marca.destroy\n\n respond_to do |format|\n format.html { redirect_to(tipo_marcas_url) }\n format.xml { head :ok }\n end\n end",
"titl... |
a4bac165dbf3b57c7047508b21260f5a | From here we have methods that are used in boards view | [
{
"docid": "781e67f47fbc5c52d43c44914b3a0d5b",
"score": "0.0",
"text": "def start\n action = \"\"\n until action == \"exit\"\n print_boards\n action, id = main_menu\n return if action == \"exit\"\n\n action_sym = \"#{action}_board\".to_sym\n methods.include?(action_sym) ? ... | [
{
"docid": "ad84e455068a44cc8c2a6fa157602cf5",
"score": "0.76134497",
"text": "def boards\n\n end",
"title": ""
},
{
"docid": "63a9c766aad7ed5bbcf97fe892c86949",
"score": "0.75792366",
"text": "def boards; end",
"title": ""
},
{
"docid": "26e77cb0e021b9f6c004b6a8e9b2aa1a... |
7ade82a506ee4043072445e571635efb | Generate path to file. Redefine this method if you want another naming logic. | [
{
"docid": "0ebc091f9853b4d9dcf17e0b02a1a29c",
"score": "0.7295533",
"text": "def file_path\n \"#{Time.now.to_f}.#{filename}\"\n end",
"title": ""
}
] | [
{
"docid": "dd6f321ebd7a3c5ec5cf28f088bd940f",
"score": "0.7332844",
"text": "def new_file name\n raise \"Not a Valid Directory\" unless valid_directory?\n\n file_name = \"#{Time.now.strftime(\"%Y%m%d%H%M%S\")}_#{name}.txt\"\n \"#{output_directory_path}#{file_name}\"\n end",
"title": ""
... |
17ba69429642b016cd5133b7514d4e6e | The right presenter class based on the specs. | [
{
"docid": "463e854add1baa6bcdabebd56990eba2",
"score": "0.74692595",
"text": "def presenter\n if @spec[:type] || @spec[:attribute]\n Presenter::PropertyPresenter.new(@spec, matchers)\n else\n Presenter::ConnectionPresenter.new(@spec, matchers)\n end\n end",
"title": ... | [
{
"docid": "67e6dbc0505ceec9a7efdb4d537bff62",
"score": "0.74366796",
"text": "def presenter_klass(klass)\n \"#{klass.name}Presenter\".safe_constantize ||\n \"#{klass.base_class.name}Presenter\".safe_constantize ||\n \"ApplicationApiPresenter\".safe_constantize ||\n ApiPresen... |
c7eb5ce5d007a05c5db4eb15e01ee111 | Uses SessionsHelper to determine if a user is logged in. If not they are redirected to login_url | [
{
"docid": "0c51301658823c1d4992e185b4e9b346",
"score": "0.0",
"text": "def logged_in_user\n unless logged_in?\n store_location\n flash[:danger] = \"Please log in\"\n redirect_to login_url\n end\n end",
"title": ""
}
] | [
{
"docid": "b4b54d1003be81298f30395ceb9d7abd",
"score": "0.82455635",
"text": "def logged_in_user\n unless logged_in?\n redirect_to login_url\n end\n end",
"title": ""
},
{
"docid": "b143eb4d822f5f930d8af50bfa34c963",
"score": "0.81416816",
"text": "def logged_in_... |
f74c29bdfc4a183e1ec1b91334cd5be2 | Use callbacks to share common setup or constraints between actions. | [
{
"docid": "84c199adeed84683d60940f1cfdbcc0b",
"score": "0.0",
"text": "def set_client\n @client = Client.find_by(reference_number: params[:id])\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... |
c69547c36a21b11c548a14942ff406bc | Add a category to this property | [
{
"docid": "2eb873aec6b06b072d2cee49aa97f00f",
"score": "0.73674077",
"text": "def add_category(cat)\n @categories << cat\n end",
"title": ""
}
] | [
{
"docid": "bb5191185452484ecccab26268b7cd2a",
"score": "0.7164578",
"text": "def add_category(category)\r\n OpportunityCategory.create(opportunity_id: opportunity_id, category: category)\r\n end",
"title": ""
},
{
"docid": "917cee99f1c080a5b327686ef6bff964",
"score": "0.69208676",
... |
f61cedcdc1c68d82c426a996df49e55e | TODO: this method is doing too much, as you can see by the heavily stubbed tests | [
{
"docid": "90cdc8a451664680d9fe329f2f7aa6c0",
"score": "0.0",
"text": "def locate_boundary( image, start_index = 0, invert_direction = false )\n # The default direction is left to right, top to bottom.\n # To go from right to left, or bottom to top, we invert_direction.\n detector.runs <... | [
{
"docid": "6513ed80c07083afaa67e08a17d5b972",
"score": "0.6595768",
"text": "def stubbed?; end",
"title": ""
},
{
"docid": "072514f3348fe62556dcdfd4b06e3d08",
"score": "0.61080027",
"text": "def spec; end",
"title": ""
},
{
"docid": "072514f3348fe62556dcdfd4b06e3d08",
... |
8f2f0020ac7f725058bb9c07c8b2ce93 | applies a proc constraint to form[key] | [
{
"docid": "73ff17364957075d9d139c308c410b80",
"score": "0.7902476",
"text": "def apply_proc_constraint(key, constraint)\n if res = constraint.call(@form[key])\n if untaint?(key)\n @form[key] = res \n @form[key].untaint\n end\n else\n @form.delete(key)\n ... | [
{
"docid": "dd849e3ed55848bd6146e22d81d6e892",
"score": "0.6611226",
"text": "def apply_hash_constraint(key, constraint)\n name = constraint[\"name\"]\n action = constraint[\"constraint\"]\n params = constraint[\"params\"]\n res = false\n skip_end = false\n\n #... |
5132a6249c810260677fa689ce22eea1 | POST /experiments POST /experimentsxml | [
{
"docid": "43591dc4b905165c09ecd46e022d15d4",
"score": "0.5223266",
"text": "def create\n logger.debug \"::::::::::::::::::::microarray experiments create action (\" + current_user.name + \"):::::::::::::::::::: \"\n \n @experiment = Experiment.new(params[:experiment])\n @title = \"Microar... | [
{
"docid": "24a202edf6898c53fac84baca230c1d7",
"score": "0.56393194",
"text": "def create\n @experiment = Experiment.new(experiment_params)\n\n respond_to do |format|\n if @experiment.save\n format.html { redirect_to @experiment, notice: 'Experiment was successfully created.' }\n ... |
4619b8a0c53553601ef10ce07052c41a | List ContainerGroups for ContainerNode Returns an array of ContainerGroup objects | [
{
"docid": "9f166f9dfdadcdbe72b8e18dcc8f03d6",
"score": "0.0",
"text": "def list_container_node_container_groups_with_http_info(id, opts = {})\n if @api_client.config.debugging\n @api_client.config.logger.debug 'Calling API: DefaultApi.list_container_node_container_groups ...'\n end\n ... | [
{
"docid": "aa70499747aae688ff67b7cc5ed4f4f1",
"score": "0.8086495",
"text": "def groups\n all_groups = []\n\n @containers.each do |container|\n all_groups += container.groups\n end\n\n all_groups\n end",
"title": ""
},
{
"docid": "f505d120f09c1f48e5dbad15ebf5b9... |
dea4a59a5903e18f0323e50da7b68aa1 | Extract the whole hash from a node of type `:hash` | [
{
"docid": "6d3cd0d20c10159e121294dd11766f1b",
"score": "0.73872465",
"text": "def extract_hash(node)\n return {} if node.nil?\n\n if node.type == :hash\n node.children.each_with_object({}) do |pair, h|\n key = pair.children[0].children[0].to_s\n value = pair.children[... | [
{
"docid": "df7ae2115219af0d2fb0b675f4b441e7",
"score": "0.8474849",
"text": "def extract_hash(node); end",
"title": ""
},
{
"docid": "34c10d1f1b73ebaa51c390d4d25a5794",
"score": "0.7370378",
"text": "def visit_hash(node); end",
"title": ""
},
{
"docid": "fa0f0a45afdd20bc... |
86c3fc935fb4794d54807aff43fa4f5e | Replace a vertical line (column) of the image. | [
{
"docid": "445314c17f937bbcf24d3ce214fa3ecf",
"score": "0.62114185",
"text": "def replaceVertical(y, arr)\n @modified.replace_column!(y, arr)\n @modified\n end",
"title": ""
}
] | [
{
"docid": "e5198ccc6fca7308e1e7bd2effaa0472",
"score": "0.7036957",
"text": "def verticalLines\n (0...@width).inject([]) { |arr, column| arr << @modified.column(column) }\n end",
"title": ""
},
{
"docid": "77f02ae933f10237c51e982124c071fa",
"score": "0.7030456",
"text": "def... |
f167e87b8dc391d75faffc86868b0b59 | read the xls until he find a different sku then send all the previous to build the release | [
{
"docid": "bb794dc88d5b6a1c695739163ace55ee",
"score": "0.6002296",
"text": "def readXls(ws,xml)\n package = Array.new\n i = 4\n j = 0\n while ws.rows[i]\n # pp ws.rows[i]\n if ws.rows[i] == nil\n break\n end\n if ws.rows[i][1] == $catalog_current\n ... | [
{
"docid": "385fb168fb3aec5efc304e01978ed4f2",
"score": "0.6224984",
"text": "def import_product_stock\n @seller = Spree::Seller.find(params[:seller_id])\n if !@seller.present?\n flash[:error] = \"Please select seller\"\n redirect_to import_stock_admin_sellers_path\n return\n ... |
ec1b6e702f8b06cc532e923b02bb62ba | POST /mileages POST /mileages.json | [
{
"docid": "c19e70fb7a85e76811a6d6175e83d709",
"score": "0.6667063",
"text": "def create\n @mileage = Mileage.new(params[:mileage])\n \n # @mileage = Mileage.new(:start => params[:start], :end => params[:end], :date => params[:date])\n\n respond_to do |format|\n if @mileage.save\n ... | [
{
"docid": "9cf89afeef10a56ffbcd5ef33f84347e",
"score": "0.72092056",
"text": "def create\n @admin_mileage = Admin::Mileage.new(params[:admin_mileage])\n\n respond_to do |format|\n if @admin_mileage.save\n format.html { redirect_to admin_mileages_url }\n format.json { render jso... |
5cd8cdf57adf965955179bdcd8c8b641 | Find all phenotype IDs which collapsed into this one phenotype ID. | [
{
"docid": "1071c4effb2f313316f63b5737187171",
"score": "0.50427055",
"text": "def equivalent_phenotype_ids id\n if @skip_table.has_key?(id)\n skip_ids = @skip_table[id]\n if skip_ids.is_a?(Array)\n skip_ids + [id]\n else\n [skip_ids, id]\n end\n e... | [
{
"docid": "dd3f03e3970164bbd22f11946b9f9199",
"score": "0.5784254",
"text": "def all_ids\n @all_ids ||= @ids_fenotypes.keys\n @all_ids\n end",
"title": ""
},
{
"docid": "38b5f235e5b586b6ad64e4e55ec396b2",
"score": "0.5327872",
"text": "def ids\n self.is_leaf? ? [@i... |
7e4e6723a8bd0e2e451c5512419f1502 | GET /entry_points/new GET /entry_points/new.xml | [
{
"docid": "ad968ca1c8b2f557c0f4a53bbb28e5eb",
"score": "0.76227784",
"text": "def new\n @entry_point = EntryPoint.new\n\n respond_to do |format|\n format.html # new.html.erb\n format.xml { render :xml => @entry_point }\n end\n end",
"title": ""
}
] | [
{
"docid": "b38664a6c3a39fe4a638aa6cc28b6d00",
"score": "0.68945014",
"text": "def new\n @old_point = OldPoint.new\n\n respond_to do |format|\n format.html # new.html.erb\n format.xml { render :xml => @old_point }\n end\n end",
"title": ""
},
{
"docid": "6f1cd0d8a9913fdc... |
af630984682f1a0b5a68e6092af0d102 | Update properties of this object | [
{
"docid": "c185ed47a60d985c65611053ee48e075",
"score": "0.0",
"text": "def update!(**args)\n end",
"title": ""
}
] | [
{
"docid": "184b1b1ed771473d3eb9f338c0734c38",
"score": "0.73066413",
"text": "def update *args\n opts = args.extract_options!\n fill_properties opts\n self.save\n end",
"title": ""
},
{
"docid": "5076c5a88404ae72986f958710f5687a",
"score": "0.72631145",
"text": "def update... |
2a97a0a2bdbce8e51ab9647518bd8c17 | this method can be made better | [
{
"docid": "04e71600be1f10b48a8efd8c5e59ddac",
"score": "0.0",
"text": "def adjust_stats(game, removed_item=nil)\n\t\tarray = [@armor_head, @armor_neck, @armor_body, @armor_arms, @armor_hands, @armor_legs, @armor_feet, @weapon]\n\t\tif removed_item == nil\n\t\t\tarray.each do |item|\n\t\t\t\tif item.is_... | [
{
"docid": "9dcc74dd11eb115d21bf9af45b3ec4e3",
"score": "0.60469383",
"text": "def bodystmt; end",
"title": ""
},
{
"docid": "9dcc74dd11eb115d21bf9af45b3ec4e3",
"score": "0.60469383",
"text": "def bodystmt; end",
"title": ""
},
{
"docid": "9dcc74dd11eb115d21bf9af45b3ec4e3... |
c3619a4256cd2938fc98c0ddb21ddda0 | Sends an email when an assigned task is marked complete | [
{
"docid": "d6835cc4e24058102d5fb35f27794dc8",
"score": "0.81976664",
"text": "def task_completed(user, task)\n @user = user\n @task = task\n \n mail(:to => user.email, :subject => \"Your task has been completed\")\n end",
"title": ""
}
] | [
{
"docid": "b8df96f2ddae27b542ba70afaaf5a4c9",
"score": "0.8148636",
"text": "def task_finished(task)\n @task = task\n @user = User.find(@task.user_id)\n mail(:to => @user.email, :subject => \"Your task has completed\")\n end",
"title": ""
},
{
"docid": "55ce55756d85491a6bf2bda0a1a... |
2536818b4929222ed594e029ab7fffab | DELETE /headlines/1 DELETE /headlines/1.json | [
{
"docid": "eaf8f2a2e7fc78b501e1d8a51aeff81d",
"score": "0.76396996",
"text": "def destroy\n @headline.destroy\n respond_to do |format|\n format.html { redirect_to headlines_url }\n format.json { head :no_content }\n end\n end",
"title": ""
}
] | [
{
"docid": "34a3ab60959c1c574a70926b286a26f7",
"score": "0.74581385",
"text": "def destroy\n @headline.destroy\n respond_to do |format|\n format.html { redirect_to headlines_url, notice: \"Headline was successfully destroyed.\" }\n format.json { head :no_content }\n end\n end",
"... |
ffb965fde0da358f20fe095c351ce027 | Control comes here if the uploaded file is SCORM, NonSCORM. It takes the needed paths as arguments, reads the uploaded file, unzips,checks for virus and saves to db. Also returns a variable is_saved as true if the upload process and saving process is done perfectly else returns false. | [
{
"docid": "28ef170bbe4924491bd90428a7d90967",
"score": "0.0",
"text": "def elearning(new_path,extension,uploaded_file,error_file_path,basepath,course_file_name)\n new_path = new_path + extension\n File.open(new_path, \"wb\") { |f| f.write(uploaded_file.read) }\n scan_value = virus_scan(new_pat... | [
{
"docid": "04b7ff3c4f7e0de45915e1a9b4114540",
"score": "0.6431252",
"text": "def save\n if !super\n cleanup_file_to_upload\n return false\n else\n return true\n end\n end",
"title": ""
},
{
"docid": "fed29dbb1e61ab953c1a9cd9e047d445",
"score": "0.6348936",
"... |
3addfb0e7f06eb14c1736784604871ce | Performs postparse processing on options | [
{
"docid": "82ff6c2f29ff8a484a977d398cab62d3",
"score": "0.0",
"text": "def process_options\n if @options.filename\n @log = Logger.new(@options.filename)\n else\n @log = Logger.new(STDOUT)\n end\n @log.level = Logger::WARN\n @log.level = Logger::INFO if @options.verbose\n @lo... | [
{
"docid": "64387b49ac4941dcaaa52168e56a52e5",
"score": "0.7552417",
"text": "def _process_options(options); end",
"title": ""
},
{
"docid": "64387b49ac4941dcaaa52168e56a52e5",
"score": "0.7552417",
"text": "def _process_options(options); end",
"title": ""
},
{
"docid": "... |
11b4dc61a27ea5316d0373923fc61555 | PATCH/PUT /admin/categorias/1 PATCH/PUT /admin/categorias/1.json | [
{
"docid": "6c8e221fb412d82b8856a1c164021fcd",
"score": "0.6946077",
"text": "def update\n respond_to do |format|\n if @categoria.update(categoria_params)\n format.html { redirect_to @categoria, notice: 'Servico was successfully updated.' }\n format.json { render :show, status: :ok... | [
{
"docid": "714ebab248463d4c0336fb502d897086",
"score": "0.6897343",
"text": "def update\n @categoria = Categoria.find(params[:id])\n\n respond_to do |format|\n if @categoria.update_attributes(params[:categoria])\n format.html { redirect_to @categoria, notice: 'Categoria was successful... |
bd3a7dfddc30bc69012064ac1ec450c4 | Given a hash with numeric values, return the key for the smallest value | [
{
"docid": "88ee3ac068fbc5ba79a642519fde52d9",
"score": "0.0",
"text": "def key_for_min_value(name_hash)\n smallest = \"\"\n previous = \"\"\n if name_hash.empty?\n nil\n else\n name_hash.each do |key, value|\n if ((smallest == \"\") || (smallest > value))\n smallest = value\n ... | [
{
"docid": "187165074e32a7573ee53a9cabb44ed4",
"score": "0.8880233",
"text": "def key_for_min_value(hash)\n lowest_key=nil \n lowest_value= Float::INFINITY\n hash.each do |name,number|\n if number < lowest_value\n lowest_value=number\n lowest_key= name\n end \n end\n lowest_key\nend... |
aae62fd372378a84867628ac9d9a0904 | GET /runs GET /runs.json | [
{
"docid": "2a0c43f3bdfda3459be169d537f29aa1",
"score": "0.7372436",
"text": "def index\n @runs = Run.all\n end",
"title": ""
}
] | [
{
"docid": "1bc823f713576b94f27eb6e18044c4a1",
"score": "0.8002509",
"text": "def runs(project_id)\n get(\"get_runs/#{project_id}\")\n end",
"title": ""
},
{
"docid": "49eeaa136034d58d0ea366f08d52070a",
"score": "0.7854679",
"text": "def runs_for_run_id(run_id)\n dat... |
57cf82b105993037acb727177cd97356 | PUT /products/1 PUT /products/1.json | [
{
"docid": "ce25c747bcbe07a833b602a0eba53228",
"score": "0.0",
"text": "def update\n @recommendation = Recommendation.find(params[:id])\n @users=User.all\n @products=Product.all\n @occasions=Occasion.all\n respond_to do |format|\n if @recommendation.update_attributes(params[:recommen... | [
{
"docid": "fa2eeaa45445dd76141374dc13ffab6d",
"score": "0.7537158",
"text": "def update\n begin\n @api_v1_product.update!(api_v1_product_params)\n head :no_content\n rescue => ex\n json_response({error: ex.message}, :unprocessable_entity)\n end\n end",
"title": ""
},
{
... |
53ab4d9f3188bfc74943d66cc57d2fdb | Set the value of the Album input for this Choreo. | [
{
"docid": "2641de91683183a2a85316df39bd7b8c",
"score": "0.79564875",
"text": "def set_Album(value)\n set_input(\"Album\", value)\n end",
"title": ""
}
] | [
{
"docid": "99b586352ce8ce208fcd570cdaeae0d2",
"score": "0.80617744",
"text": "def set_Album(value)\n set_input(\"Album\", value)\n end",
"title": ""
},
{
"docid": "99b586352ce8ce208fcd570cdaeae0d2",
"score": "0.80617744",
"text": "def set_Album(value)\n set_... |
a2099a77c85e91272ae2f9e35b937953 | Only allow a trusted parameter "white list" through. | [
{
"docid": "55db63d2d6bb2359ba26fd9820082ab5",
"score": "0.0",
"text": "def cadin_params\n params.require(:cadin).permit(:number_control, :name, :born, :process, :occurrence_cadin_id, :signed_instrument_id, :place_birth, :uf_born, :address, :cep, :city_id, :cpf, :rg, :distribution_date, :percenta... | [
{
"docid": "3663f9efd3f3bbf73f4830949ab0522b",
"score": "0.7942467",
"text": "def whitelisted_params\n super\n end",
"title": ""
},
{
"docid": "f6060519cb0c56a439976f0c978690db",
"score": "0.6957796",
"text": "def permitted_params\n params.permit!\n end",
"title":... |
69beaa3e957d1fc356539d0314d703e1 | Custom attribute writer method checking allowed values (enum). | [
{
"docid": "0fb32b85121228c6aa3cf70a909e42a1",
"score": "0.0",
"text": "def frequency_unit=(frequency_unit)\n validator = EnumAttributeValidator.new('String', ['year', 'six_months', 'quarter', 'month', 'two_weeks', 'week'])\n unless validator.valid?(frequency_unit)\n fail ArgumentError,... | [
{
"docid": "8146b840a980695b919bbb80892fcc0c",
"score": "0.6161179",
"text": "def valid?\n type_validator = EnumAttributeValidator.new('String', [\"GPA_CREDIT_PENDING\", \"GPA_CREDIT_PENDING_REVERSAL\", \"GPA_CREDIT_REVERSAL\", \"GPA_CREDIT\", \"GPA_DEBIT\", \"GPA_DEBIT_PENDING_REVERSAL\", \"GPA_DE... |
9aa6b42e18e08de79f24d0e780662b1f | Aruba unnecessarily creates new Announcer instance on each invocation | [
{
"docid": "8382c42d6905f162c73d66ad5d82c672",
"score": "0.6134991",
"text": "def announcer\n @announcer ||= super\n end",
"title": ""
}
] | [
{
"docid": "89fc2a1873363265c15fe70284438adc",
"score": "0.5963935",
"text": "def new\n @annonce = Annonce.new\n end",
"title": ""
},
{
"docid": "52705689e1372e9d615d49f7dbc853e1",
"score": "0.5695152",
"text": "def instantiate!; end",
"title": ""
},
{
"docid": "44be4... |
204576b7dba3b8926aaf74df95d17dee | for ux/view, return behavior square type | [
{
"docid": "73dcb72575a2b677c353dbf3ea95d947",
"score": "0.0",
"text": "def ux_event_behavior_square_type( event)\n sq = Square.find( event.behavior_square_id)\n if sq.tracking_type == Square::COUNTER\n \"Counter\"\n elsif sq.tracking_type == Square::TIMER\n \"Timer\"\n else\n ... | [
{
"docid": "5b822d3ea4409723729c22d36d70df3d",
"score": "0.61246705",
"text": "def shape2d?()\n self== Range2d or self== Union2d\nend",
"title": ""
},
{
"docid": "c2491104081c97d8f96464fc8e7b1279",
"score": "0.6017492",
"text": "def to_view(type)\n return self.value.to_view(typ... |
888db938c0643df10c6108a580900dcb | Tells if the expression is a right value. | [
{
"docid": "1143d4601ef686ca6742b6fe3003005c",
"score": "0.7170118",
"text": "def rightvalue?\n return !self.leftvalue?\n end",
"title": ""
}
] | [
{
"docid": "9d0999f1cdd6b46ab4cccf942ff33241",
"score": "0.70955235",
"text": "def right_matches?(value)\n right.matches?(value)\n end",
"title": ""
},
{
"docid": "7478b56beacef99fb8574723041fc0bc",
"score": "0.6718252",
"text": "def right?\n instance_of?(Right)\n ... |
e561e11bcf379ef5dc139c210017366b | Only allow a list of trusted parameters through. | [
{
"docid": "aacd1016b799e12d272b4164ec4e8232",
"score": "0.0",
"text": "def region_params\n params.require(:region).permit(:title, :country_details, :tax_details, :currency_details)\n end",
"title": ""
}
] | [
{
"docid": "3663f9efd3f3bbf73f4830949ab0522b",
"score": "0.74768823",
"text": "def whitelisted_params\n super\n end",
"title": ""
},
{
"docid": "36956168ba2889cff7bf17d9f1db41b8",
"score": "0.71700543",
"text": "def set_param_whitelist(*param_list)\n self.param_whitelist... |
b6ca2fad5bf682a744315e757dec555e | PATCH/PUT /incarnations/1 PATCH/PUT /incarnations/1.json | [
{
"docid": "68aab2ac5d048637cbd4b2c1b4e0a4c5",
"score": "0.7008845",
"text": "def update\n respond_to do |format|\n if @incarnation.update(incarnation_params)\n format.html { redirect_to @incarnation, notice: 'Incarnation was successfully updated.' }\n format.json { render :show, s... | [
{
"docid": "7e0f6128d77bf57d3aea81302302f6d0",
"score": "0.66810566",
"text": "def update\n if @inciting_incident.update(inciting_incident_params)\n render json: @inciting_incident\n else\n render json: @inciting_incident.errors, status: :unprocessable_entity\n end\n end",
"title... |
163f47404e88e165727af8e3aac1fe77 | GET /customers/1 PRINT TEST GET /customers/1.xml | [
{
"docid": "9cf6fda6c1973311be96854715229738",
"score": "0.6679654",
"text": "def printview\n @customer = Customer.find(params[:id])\n\n respond_to do |format|\n format.html # show.html.erb\n format.xml { render :xml => @customer }\n end\n end",
"title": ""
}
] | [
{
"docid": "0bab4581e717b8b7cf93cab6d6c3b68c",
"score": "0.64527464",
"text": "def show\n @customer = Customer.find(params[:id])\n\n respond_to do |format|\n format.html # show.html.erb\n format.xml { render :xml => @customer }\n end\n end",
"title": ""
},
{
"docid": "0b... |
bd34172a7797a272fbaac5299fef31eb | Update displayed user name. | [
{
"docid": "e45081cdd1b3c0db88dcd248f00e3c82",
"score": "0.6678026",
"text": "def update_user_name(uid, name)\n @scores[uid]['name'] = name\n end",
"title": ""
}
] | [
{
"docid": "17cdc9fdc76efc56b06926b27fb037df",
"score": "0.7942635",
"text": "def update_name(new_name)\n self.update(name: new_name)\n self\n puts \"Your username has been updated.\".colorize(:magenta)\n end",
"title": ""
},
{
"docid": "424cfe50b3d52f90eb5944a1b29143cf",
... |
b73847bd83c862e55f30c1f9b69f38ab | protect key for xsalsa20, xchacha20, and hybrid | [
{
"docid": "4f7585f66ffa450a9070d4f17e5a3bbd",
"score": "0.0",
"text": "def inspect\n to_s\n end",
"title": ""
}
] | [
{
"docid": "e8e2a21bb892d753e385d2017ab090cf",
"score": "0.6177342",
"text": "def recover_key\n 0.upto(255).each do |ch|\n @fpga_key = [@puf, [ch].pack('C')].join\n if @syndrome == Crypto.sk_encrypt(@fpga_key, (0..32).to_a.pack('C*'))\n break \n end\n end\n end",
"title"... |
4252817bd51a40c154cb2be13ea62e65 | GET /complaints/new GET /complaints/new.xml | [
{
"docid": "5f835d906c15afd47bba34f8de82112d",
"score": "0.0",
"text": "def new\n @complaint = Complaint.new\n\t@complaints = Complaint.find(:all,:order=>\"created_at desc\" ,:conditions => \"status='NOT COMPLEATED'\")\n respond_to do |format|\n format.html # new.html.erb\n format.xml {... | [
{
"docid": "76b13e8cedec3a32ab7fc5e61c881833",
"score": "0.7365057",
"text": "def new\n @complaint = Complaint.new\n\n respond_to do |format|\n format.html # new.html.erb\n format.xml { render :xml => @complaint }\n end\n end",
"title": ""
},
{
"docid": "081ce7b032f17103... |
aa4a429d36423ab1314e3f2d236e70cf | Tag an image with a list of tags. | [
{
"docid": "ecb22f613ab19cd95b675a823a02fc04",
"score": "0.59255725",
"text": "def tag_with(tag_names)\n _tags = []\n Tag.parse(tag_names).each do |tag_name|\n _tags << Tag.find_or_create_by_name(tag_name.downcase)\n end\n self.tags = _tags.uniq\n end",
"title": ""
}
] | [
{
"docid": "6898e5554430d4766cb35c5c40e7621b",
"score": "0.8055661",
"text": "def image_tags(*tags)\n tags.map do |tag|\n {image_tag: tag}\n end\n end",
"title": ""
},
{
"docid": "e031433833ec10c233a68245b5f3ff6d",
"score": "0.7395051",
"text": "def add_ta... |
c31479a76ffd168b92ef580c94d79d68 | An option checkbox for a bulk delete form. | [
{
"docid": "cda4cc3b91077ed271e8596d1b85d5c6",
"score": "0.6358835",
"text": "def bulk_delete_option(f, param, value = nil, **opt)\n opt[:labels] ||= BULK_DELETE_LABEL\n bulk_option(f, param, value, **opt)\n end",
"title": ""
}
] | [
{
"docid": "6bef291b8db3c3897cf6c01e73213c5b",
"score": "0.6711669",
"text": "def set_DeleteOptions(value)\n set_input(\"DeleteOptions\", value)\n end",
"title": ""
},
{
"docid": "6bef291b8db3c3897cf6c01e73213c5b",
"score": "0.6711309",
"text": "def set_DeleteOpti... |