query_id stringlengths 32 32 | query stringlengths 7 6.75k | positive_passages listlengths 1 1 | negative_passages listlengths 88 101 |
|---|---|---|---|
4813533d582298c10e0a2f74973feb76 | DELETE /cultivars/1 DELETE /cultivars/1.xml | [
{
"docid": "4203e8e0a746beed567c445e297e4a58",
"score": "0.6471079",
"text": "def destroy\n @cultivar = Cultivar.find(params[:id])\n @cultivar.destroy\n\n respond_to do |format|\n format.html { redirect_to(cultivars_url) }\n format.xml { head :ok }\n format.csv { head :ok }\n ... | [
{
"docid": "c1592c9a7c989d01a99d8c2f4e789eab",
"score": "0.6586113",
"text": "def netdev_resxml_delete( xml )\n top = netdev_resxml_top( xml )\n par = top.instance_variable_get(:@parent)\n par['delete'] = 'delete'\n end",
"title": ""
},
{
"docid": "e1d6f603cb5ea1e475ea71422432aeae"... |
550890e4839a426c5f1e94bd82bb3c5c | DELETE /disappeareds/1 DELETE /disappeareds/1.json | [
{
"docid": "5f6e8e75b73986cc3e8ecb5093d0743a",
"score": "0.64833385",
"text": "def destroy\n @disappearance.destroy\n respond_to do |format|\n format.html { redirect_to site_profile_relative_disappeared_disappearances_path(@relative, @disappeared), notice: t('.destroyed') }\n format.json... | [
{
"docid": "9b0352e007af6f6a4dec4b609fdbacc4",
"score": "0.7372066",
"text": "def destroy\n @disappeared.destroy\n respond_to do |format|\n format.html { redirect_to disappeareds_url, notice: 'Disappeared was successfully destroyed.' }\n format.json { head :no_content }\n end\n end",... |
68b09f7be80da08ffba60bc77c163366 | Convert this hash to a simple xml representation. | [
{
"docid": "60b01e7dffc5b8c9200324bc9e2f862a",
"score": "0.82431704",
"text": "def to_xml\n Hash::XML.to_xml(self)\n end",
"title": ""
}
] | [
{
"docid": "18342d58a1d05892b9c5b8cdc3b67233",
"score": "0.7522546",
"text": "def to_xml\n h = self.to_hash\n h[:id] = self.id if self.id\n h[:rev] = self.rev if self.rev\n h.to_xml(:root => self.class.to_s)\n end",
"title": ""
},
{
"docid": "9fae4d948189057f86b1b55f... |
f511491c4c8f894cb920584eb1f43be8 | DELETE /compta/accounts/1 DELETE /compta/accounts/1.json | [
{
"docid": "f6bdeacddbee55c2b8d12215be418334",
"score": "0.0",
"text": "def destroy\n @compta_account = Account.find(params[:id])\n if @compta_account.destroy\n flash[:notice]= \"Le compte #{@compta_account.number} - #{@compta_account.title} a été supprimé\"\n else\n flash[:alert]= @c... | [
{
"docid": "4c1c164b581dbae14285797e584e8fb7",
"score": "0.72263247",
"text": "def delete_tenant_circle(args = {}) \n delete(\"/tenantcircles.json/#{args[:circleId]}\", args)\nend",
"title": ""
},
{
"docid": "f26cf609a1446d7a54f16883bc338571",
"score": "0.7124213",
"text": "def delet... |
f87763fc38dca8863866dcb4086f9ba4 | GET /questions GET /questions.xml | [
{
"docid": "482f3c440e89ab0d1ae45dd41b1073e4",
"score": "0.70434326",
"text": "def index\n @exam = Exam.find(params[:exam_id])\n @questions = @exam.question\n\n respond_to do |format|\n format.html # index.html.erb\n format.xml { render :xml => @questions }\n end\n end",
"tit... | [
{
"docid": "f21bdf5068d061850a35a8ce3e340eba",
"score": "0.7777713",
"text": "def questions\n self.class.get('/2.2/questions', @options)\n end",
"title": ""
},
{
"docid": "4d0208e7b8e4c89bad251ec25f7b5f03",
"score": "0.7430585",
"text": "def show\n @questions = @test.questions... |
3245b84e2f4a4502468aba1ad578edf3 | DELETE /fashion_style_garments/1 DELETE /fashion_style_garments/1.json | [
{
"docid": "4fbb9bb49cfdfafc2c1d5443a57c7782",
"score": "0.7699384",
"text": "def destroy\n @fashion_style_garment.destroy\n respond_to do |format|\n format.html { redirect_to fashion_style_garments_url, notice: 'Fashion style garment was successfully destroyed.' }\n format.json { head :... | [
{
"docid": "7055cf38320ed45e3c5459a135c66940",
"score": "0.7135653",
"text": "def destroy\n @functional_fashion = FunctionalFashion.find(params[:id])\n @functional_fashion.destroy\n\n respond_to do |format|\n format.html { redirect_to functional_fashions_url }\n format.json { head :no... |
22ca8e1a23f97018b22b517cc4bd303b | GET /ambulanceinfos GET /ambulanceinfos.json | [
{
"docid": "11a5418ecc5de32faaf85adeda7df863",
"score": "0.7619989",
"text": "def index\n @ambulanceinfos = Ambulanceinfo.all\n end",
"title": ""
}
] | [
{
"docid": "00d830f8b3208b5c29199bc072e5beeb",
"score": "0.6669721",
"text": "def show\n @ambiance = Ambiance.find(params[:id])\n\n respond_to do |format|\n format.html # show.html.erb\n format.xml { render :xml => @ambiance }\n end\n end",
"title": ""
},
{
"docid": "374... |
79ec44913b26ed26e5f11482977185f5 | Overwrite the default accessor that will force all session access to a subhash keyed on the restricted subdomain symbol. Only works if the current subdomain is found, gracefully degrades if missing. | [
{
"docid": "5ee03498d092fafc96d1cc65357ad5fb",
"score": "0.5786671",
"text": "def session\n if((current_subdomain rescue nil))\n request.session[current_subdomain_symbol] ||= {}\n request.session[current_subdomain_symbol]\n else\n request.session\n end\n ... | [
{
"docid": "4f9d71a14a6aa5923ab5e462f000512e",
"score": "0.6292445",
"text": "def reset_session\n if current_subdomain\n copier = lambda { |sess, (key, val)| sess[key] = val unless key == current_subdomain_symbol; sess }\n new_session = request.session.inject({}, &copier)\n ... |
3d9f343f8c5e2d743b1581ba8b8eb56e | Updating is not supported. | [
{
"docid": "6c35d985e6aaaef23c1b021a16bc8e86",
"score": "0.0",
"text": "def update(uid, params={})\n raise '`update` method is not supported for this resource.'\n end",
"title": ""
}
] | [
{
"docid": "576f27e4c99d0868b0454fedc7deba0c",
"score": "0.7835923",
"text": "def update # PATCH\n raise NotImplementedError\n end",
"title": ""
},
{
"docid": "3deef831d3e34d9f9e737f8aa4f4c771",
"score": "0.7743027",
"text": "def update\n render :text=>\"update not support... |
46c0d4169d374d0f2e6479937e15be69 | Terminar el metodo new_task. | [
{
"docid": "d9b103ae70e70b4b1aad200f9ac0221c",
"score": "0.61267376",
"text": "def created_task(task) #Crear un metodo que recibe un argumento y nos imprimira la nueva task.\n puts \"Created Task '#{task.text}'\" #Imprimir el string con la task que agrego el usuario.\n end",
"title": ""
}
] | [
{
"docid": "edeffe8e1dc126179634eab2eaab4b0d",
"score": "0.68244475",
"text": "def new_task\n @task = Task.new\n end",
"title": ""
},
{
"docid": "8ada9a39aa4e1f9d039bed2ccce6ec27",
"score": "0.67794454",
"text": "def destroy\n @task.destroy\n\n if @task.destroy\n H... |
8342d30d87d2cface55e2aacc420b952 | function for extracting the credentials | [
{
"docid": "56bc06ca8ee08df924d5d749d03895ec",
"score": "0.7135451",
"text": "def extract_creds(path)\n\taccounts_xml = \"\"\n\tcreds = \"\"\n\tprint_status(\"Reading accounts.xml file...\")\n\t### modified to use pidgin_path, which already has .purple in it\n\taccount_file = @client.fs.file.new(path + ... | [
{
"docid": "0002f17fe540e2cb2ae64a2e211ffe0d",
"score": "0.7640376",
"text": "def credentials\n auth_hash['credentials']\n end",
"title": ""
},
{
"docid": "8cf8fb66accc1767968b80ba9154b845",
"score": "0.75807625",
"text": "def credentials; end",
"title": ""
},
... |
a25603711a254ae916d0d2c243c2002a | TODO: look at Rails standard ways to report/format backtrace | [
{
"docid": "f5c3699635f6223fda81754593886622",
"score": "0.69908386",
"text": "def to_backtrace(e)\n backtrace = e.respond_to?(:backtrace) && e.backtrace ? e.backtrace.join(\"\\n\") : ''\n \"#{e.class}: #{e}\\n#{backtrace}\"\n end",
"title": ""
}
] | [
{
"docid": "05a7d259fd8ed1be66e314870f8c28c5",
"score": "0.87247145",
"text": "def formatted_backtrace; end",
"title": ""
},
{
"docid": "ca25df88e425b4f805079e6b476322cc",
"score": "0.85346967",
"text": "def use_full_backtrace; end",
"title": ""
},
{
"docid": "8d510d20485... |
f29d942e7c90fca8beef1556e39c0e9f | Returns a command string which installs the Jamie Runner (jr), installs all required jr plugins for the suite. If no work needs to be performed, for example if there are no tests for the given suite, then `nil` will be returned. | [
{
"docid": "fe107761b59ecadc48258b86f6b0b4d5",
"score": "0.5799962",
"text": "def setup_cmd\n @setup_cmd ||= if local_suite_files.empty?\n nil\n else\n <<-INSTALL_CMD.gsub(/ {10}/, '')\n #{sudo}#{ruby_bin} -e \"$(cat <<\"EOF\"\n #{install_script}\n EOF\... | [
{
"docid": "fd90fd71b8f96fac2058da88665030e8",
"score": "0.57642645",
"text": "def run_cmd\n @run_cmd ||= local_suite_files.empty? ? nil : \"#{sudo}#{jr_bin} test\"\n end",
"title": ""
},
{
"docid": "72fab0fd3b17b751d723781023a28566",
"score": "0.5492898",
"text": "def to_gem... |
c39ab27eae322710c52bca31d4d9d747 | Write the bit value on silicon. This method will update the data value of the bits and then call $top.write_register passing the owning register as the first argument. This method is expected to handle writing the current state of the register to silicon. | [
{
"docid": "d26d00a2600b10af849e0feb54b53d8a",
"score": "0.57898444",
"text": "def write!(value = nil, options = {})\n value, options = nil, value if value.is_a?(Hash)\n write(value, options) if value\n if block_given?\n yield size == @reg.size ? @reg : self\n end\n ... | [
{
"docid": "3185ccb3ba419163b09f5ff550f5d686",
"score": "0.6397522",
"text": "def write pin, value\n if value == 0\n set_int_at(GPCLR0 + PI_BANK(pin), PI_BIT(pin))\n else\n set_int_at(GPSET0 + PI_BANK(pin), PI_BIT(pin))\n end\n end",
"title": ""
},
{
"docid": "48664468575... |
ae764079a2501d38c6f44485829e3b9f | Returns the current position of the robot in readable form | [
{
"docid": "0e95215908a787d8a93ecfe674fe2d24",
"score": "0.77754927",
"text": "def current_position\n \"#{@x_position},#{@y_position},#{@direction}\"\n end",
"title": ""
}
] | [
{
"docid": "8707cf776e4919834e0e753cb5aeb6c7",
"score": "0.7938558",
"text": "def position\n robot_location\n end",
"title": ""
},
{
"docid": "9530d601ed2ed0ff17cd696391e50fe2",
"score": "0.7775688",
"text": "def current_position\n \"#{position_x} #{position_y} #{direction}\... |
f260b0743e3635ff851ba1fb8f391b00 | GET /users/1 GET /users/1.json | [
{
"docid": "a2250472e6113849e0f4f64d07efe4f1",
"score": "0.0",
"text": "def show\n @user = User.find(params[:id])\n\n respond_to do |format|\n format.html # show.html.erb\n format.json { render :json => @user }\n end\n end",
"title": ""
}
] | [
{
"docid": "9f7c735ace683c5c2b12c914cc9ad8a8",
"score": "0.771752",
"text": "def get\n users = User.all.as_json\n render(json: users.as_json, status: :ok)\n end",
"title": ""
},
{
"docid": "a95dfe28d6b386aafc5fb53749e84258",
"score": "0.75107867",
"text": "def user\n... |
97e113b983cebcfc8160db04f0f8bc20 | Insert rows at position and updates row positions | [
{
"docid": "15369620da1548782db4eda8acf93493",
"score": "0.73624915",
"text": "def insert_rows_at_position(new_rows, position)\n validated_position = position_boundary_check_for_create(position)\n response = true\n response = false unless increment_row_positions(all_rows_from_position(validated... | [
{
"docid": "c032cb6510f5c500e1eba2f4fe005b9c",
"score": "0.78788686",
"text": "def insert_row_pos; end",
"title": ""
},
{
"docid": "60502a5b465fde0359ec82e7b85cef62",
"score": "0.71491134",
"text": "def insert_row row_index\n die \"invalid row_index #{row_index}\" unless row_ind... |
5a308ea02c91b044aed2621c31dc25c8 | Private: Determines if the noreferrer rel attribute value should be added based on the specified config values. Returns true if noreferrer is false in config. | [
{
"docid": "6ab1cbc5d084247a5adb59c920cc2bdb",
"score": "0.82437617",
"text": "def should_not_include_noreferrer?\n config = @target_blank_config\n case config\n when nil, NilClass\n false\n else\n noreferrer = config.fetch(\"noreferrer\", true)\n i... | [
{
"docid": "462242cea33ef7979e7e44ede44d2673",
"score": "0.7693332",
"text": "def noreferrer?\n rel?('noreferrer')\n end",
"title": ""
},
{
"docid": "925bd147a030e0928beaf2b84846d7ee",
"score": "0.7268285",
"text": "def add_default_rel_attributes?\n @should_add_noopener = ... |
d0471a14827d8a82ba07b7a1d216edb9 | GET /related_courses/1 GET /related_courses/1.xml | [
{
"docid": "62ab1e9e92b0c05add225c033101a691",
"score": "0.69207746",
"text": "def show\r\n @related_course = RelatedCourse.find(params[:id])\r\n\r\n respond_to do |format|\r\n format.html # show.html.erb\r\n format.xml { render :xml => @related_course }\r\n end\r\n end",
"title... | [
{
"docid": "826e3e961db48c5ce065c52992725ac0",
"score": "0.67581385",
"text": "def list_courses\n if current_user.is_admin?\n @user = User.find(params[:id])\n @courses = @user.courses\n respond_to do |format|\n format.xml { render :xml => @courses }\n end\n else\n ... |
494a5ec8b775e2694a9aff932d721672 | Sends output to the UI | [
{
"docid": "9ea27fcc6131fb24b0548508e628068d",
"score": "0.6994203",
"text": "def output(message)\n UI.puts(message)\n end",
"title": ""
}
] | [
{
"docid": "5f22f1d7c0c7cad85b2ac16273b58b58",
"score": "0.70180696",
"text": "def send_to_output!\n @sous_output.call(run_data: run_data, node_data: node_data, resources_data: @processed)\n rescue => e\n logger.warn(\"Output failed: #{e.message}\")\n end",
"title": ""
},
{
"... |
339039b54a23c80df6583a8f574cea56 | GET /catalogs/siteviews/1 GET /catalogs/siteviews/1.json | [
{
"docid": "a81945373733e4951b987de6ea99f9a1",
"score": "0.0",
"text": "def show\n end",
"title": ""
}
] | [
{
"docid": "84165ca5222548dccf71afb091f58d51",
"score": "0.7699781",
"text": "def index\n @catalogs_siteviews = Catalogs::Siteview.all\n end",
"title": ""
},
{
"docid": "3ed5923c99290c69f37d1cb5f036c19f",
"score": "0.7127939",
"text": "def index\n @siteviews = Siteview.all\n ... |
af0022dd6c2d78bd77907d0104b6e0e0 | PATCH/PUT /goals/1 PATCH/PUT /goals/1.json | [
{
"docid": "0b41b07b4a04bc240de1ee17721aee79",
"score": "0.70402366",
"text": "def update\n respond_to do |format|\n if @goal.update(goal_params)\n format.html { redirect_to '/misc_tasks', notice: 'Goal was successfully updated.' }\n format.json { render :show, status: :ok, locatio... | [
{
"docid": "c1ce37391efb1725d5ad8dfc631e0c25",
"score": "0.74016756",
"text": "def update\n @goal = Goal.find(params[:id])\n\n respond_to do |format|\n if @goal.update_attributes(params[:goal])\n format.html { redirect_to @goal, notice: 'Goal was successfully updated.' }\n forma... |
23a71c8902680298dd1c967094742aff | GET /subcontracts/1 GET /subcontracts/1.json | [
{
"docid": "54591e9732df49728a8bbf3525680391",
"score": "0.7486098",
"text": "def show\n @subcontract = Subcontract.find(params[:id])\n\n respond_to do |format|\n format.html # show.html.erb\n format.json { render json: @subcontract }\n end\n end",
"title": ""
}
] | [
{
"docid": "69949d9bdc050534b6789d44c3a554d0",
"score": "0.7548476",
"text": "def index\n @subcontracts = Subcontract.all\n\n respond_to do |format|\n format.html # index.html.erb\n format.json { render json: @subcontracts }\n end\n end",
"title": ""
},
{
"docid": "f3bfec... |
f46a705b176012c634104c1a2406a41c | after you give it data, it needs to be able to reset to start a new game | [
{
"docid": "027ac6b71f6fac6f2c2e8fc35147ce26",
"score": "0.0",
"text": "def initialize\n reset!\n end",
"title": ""
}
] | [
{
"docid": "fc52c2d0483125eb4e3d84b03e4b03f6",
"score": "0.7138877",
"text": "def resets; end",
"title": ""
},
{
"docid": "fe8bb5f933be36bad10b14c63a5128cc",
"score": "0.7094206",
"text": "def reset_game\n @current_room_id = 9\n find_room_by_id(9).isLocked = true\n find_item... |
a486334fe1f89cc47735caa391d5ff76 | a somewhat incomplete list of toplevel domain suffix to language code mappings | [
{
"docid": "6063c0b816b23894896827f20b03f118",
"score": "0.5492748",
"text": "def country_to_language(country_code)\n\n # sources:\n # http://en.wikipedia.org/wiki/List_of_Internet_top-level_domains\n # http://www.w3.org/WAI/ER/IG/ert/iso639.htm\n # http://msdn.microsoft.com/en-us/li... | [
{
"docid": "0eb77892d14ffa3c939f6924e387b55e",
"score": "0.6100558",
"text": "def get_suffixes\n find_all{|entry| entry.type==Morpheme::SUFFIX}\n end",
"title": ""
},
{
"docid": "abaa2f9f091fac652a6220eb2f805723",
"score": "0.607571",
"text": "def domain_parts\n PublicSuffix.p... |
7367aac68179ef635db01e8c2731c58b | GET /quizzes GET /quizzes.json | [
{
"docid": "eaddf9f2c7c4356050fa5a54fb8d3374",
"score": "0.724557",
"text": "def index\n @quizzes = Quiz.all\n end",
"title": ""
}
] | [
{
"docid": "4f6131d9074fe6f95a24ec5b9e9d98d0",
"score": "0.7750826",
"text": "def index\n @quizzes = Quiz.all \n \n respond_to do |format|\n format.html # index.html.erb\n format.json { render json: @quizzes }\n end\n end",
"title": ""
},
{
"docid": "c5867010fbf... |
f25e208ec923594ef7c0da3c16780803 | Sets the attribute hide_warnings | [
{
"docid": "aac77dae6b89421d2db1141d286800d5",
"score": "0.7188908",
"text": "def hide_warnings=(_arg0); end",
"title": ""
}
] | [
{
"docid": "c31ed0ef4f6f3e92bc5562ba9ebc6234",
"score": "0.731976",
"text": "def disallowed_warnings=(disallowed_warnings)\n set_option(:disallowed_warnings, disallowed_warnings)\n end",
"title": ""
},
{
"docid": "80d0b280b95bd4e9d66e54b2cb6ff8b0",
"score": "0.7115907",
"... |
a4a5be140810d88e59e3dd5bbd23d555 | Check if `create` action is authorized for current user | [
{
"docid": "2e6c5bd0f34594154d7076cc9721936f",
"score": "0.0",
"text": "def create?\n true\n end",
"title": ""
}
] | [
{
"docid": "c866bfe80bd878b3b89b547478340b9f",
"score": "0.82971215",
"text": "def authorized_for_create?\n return (!current_user.nil? && (current_user.has_role?(:member) || current_user.has_role?(:admin)))\n end",
"title": ""
},
{
"docid": "221543e9603b504c412b735af919edf8",
"score"... |
7f8947dba15957ae58b00b7835010eba | GET /employees/1 GET /employees/1.json | [
{
"docid": "5603f485f1c62e1b270f62bc437dfa4d",
"score": "0.0",
"text": "def show\n authorize! :read, Employee\n end",
"title": ""
}
] | [
{
"docid": "46e7d46832c6f11101dbce58c898db96",
"score": "0.767327",
"text": "def show\n employee_id = params[:id]\n employee = Employee.find(employee_id)\n render json: employee\n end",
"title": ""
},
{
"docid": "6baa24774dd4a166a3d6b9c49c063612",
"score": "0.7607109",
"tex... |
98822c8feebbeadfffbd1d2e329a2408 | CEP invalido com um exemplo de erro esperado pelo teste | [
{
"docid": "d82c76022ccd494b0fad77db4cceb103",
"score": "0.6472687",
"text": "def test_invalid_cep\n assert_raise JSON::ParserError do\n response = HTTParty.get('http://cep.correiocontrol.com.br/00000000.json')\n \n addressVO = AddressVO.new(response.body)\n end\n end",
"title"... | [
{
"docid": "310754416909d0c896dbe2e32fb79906",
"score": "0.63228726",
"text": "def test_invalid_politic_value\n politic_obj = Politic.new(:name => 'Liberty Party > Free Soil Party')\n assert !politic_obj.valid?\n assert politic_obj.errors.invalid?(:name)\n end",
"title": ""
},
{
"d... |
94a6b5c63e8458b98c82d8f94fcadef0 | Freeze for immutability, first reindexing if needed. A frozen FieldMap is safe for concurrent access, and also can more easily avoid accidental reindexing on even readonly use. | [
{
"docid": "f31aa5f2570d464cb05830274f551962",
"score": "0.59786093",
"text": "def freeze\n reindex unless @clean\n super\n end",
"title": ""
}
] | [
{
"docid": "02f6b586eb8969fe8cf1c148d90f4778",
"score": "0.5969891",
"text": "def freeze\n @deserialization_map.freeze\n @serialization_map.freeze\n @serialization_module.freeze if @serialization_module\n\n super\n end",
"title": ""
},
{
"docid": "d... |
9e25d4440ab1999386d911d16791a823 | The deserialization information for the current model | [
{
"docid": "c4f08f2be977247e7daa0b74b2cf4dd3",
"score": "0.0",
"text": "def get_field_deserializers()\n return super.merge({\n \"format\" => lambda {|n| @format = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::WorkbookChartAxisFormat.create_from_discriminator_v... | [
{
"docid": "613f62eeb3655523fae5d548dc6e7875",
"score": "0.6580273",
"text": "def get_field_deserializers()\n return {\n \"downloadUrl\" => lambda {|n| @download_url = n.get_string_value() },\n \"fileName\" => lambda {|n| @file_name = n.get_string_val... |
89adec6e35eaec260e2f8ea35d2baec6 | Returns a Pathname object of the public folder of the current Rails project, otherwise it returns +nil+ if there is no project: Rails.public_path => | [
{
"docid": "89f4438f66117bb1bc2763e4242b8803",
"score": "0.7251047",
"text": "def public_path; end",
"title": ""
}
] | [
{
"docid": "8d0e96bc81e51802e91b3424753f7735",
"score": "0.85473603",
"text": "def public_path\n application && Pathname.new(application.paths[\"public\"].first)\n end",
"title": ""
},
{
"docid": "e9ab9ec8246347941a579dc8f6b01d83",
"score": "0.82126844",
"text": "def public_p... |
19c943231f784a449f0f92407e4fc42d | Array of node ids | [
{
"docid": "5b7508562f8aa5d2f6798d6db1d42b70",
"score": "0.6530137",
"text": "def nids\n# @table_lock.synchronize { @nid_peers.keys }\n @nid_peers.keys\n end",
"title": ""
}
] | [
{
"docid": "c18343406938c18d1de582c8ceb7b2b5",
"score": "0.8966512",
"text": "def node_ids\n # The .to_a call is used to return a copy of the array so it cannot be modified from the outside.\n @nodes_by_id.keys.to_a\n end",
"title": ""
},
{
"docid": "4efa20995d414feb6c4c88b577d4... |
1913676fdf2bad559aa7d07b8b7e6744 | possible solution to error | [
{
"docid": "0982583edf6012ea5fa3284516d2bdf4",
"score": "0.0",
"text": "def activation_mail(user)\n @user = user\n mail(:to => user.mail, :subject =>\"Registration\")\n end",
"title": ""
}
] | [
{
"docid": "33cb725c78d997115b4cd22cacceea0d",
"score": "0.7370926",
"text": "def inner_error; end",
"title": ""
},
{
"docid": "33cb725c78d997115b4cd22cacceea0d",
"score": "0.7370926",
"text": "def inner_error; end",
"title": ""
},
{
"docid": "0aa0db9270c5a88c81da713a1ee0... |
7a993a4d2e1c85440003aafc29136d09 | POST /domains POST /domains.json Used on search submission | [
{
"docid": "5bd1e9660afedc7550cdcc22991e386f",
"score": "0.0",
"text": "def create\n parsed_domain = Domain.parse(domain_params[:name])\n if parsed_domain\n @domain = Domain.where(name: parsed_domain).first_or_create\n else\n @domain = Domain.create(name: domain_params[:name])\n en... | [
{
"docid": "140311881388785286e37c55e8855b6d",
"score": "0.63312966",
"text": "def create_domains(domains, subdomains = [])\n if domains.length > 100\n raise \"Limit is 100 entities per request (including records)\"\n end\n post \"domains\", {}, \"domains\" => domains, \"subdomains... |
80f8cfc954647262184f73ce7a2aa36d | 16.1: flog total 16.1: flog/method average 16.1: mainupdate app/views/controllers/statuses_controller.rb | [
{
"docid": "0f6b06b74f56b02fb60743f704fbd6ca",
"score": "0.6162488",
"text": "def update\n @status = current_account.statuses.find(params[:id])\n if @status.update_attributes(params[:status])\n flash[:notice] = 'Status was successfully updated.'\n redirect_to(statuses_path)\n else\n render :... | [
{
"docid": "a7c13900baaf0e211fb9b48de98aa361",
"score": "0.658472",
"text": "def update_status(task, stats)\n \n end",
"title": ""
},
{
"docid": "fd609b1876a35c7db8d9295fecb949b1",
"score": "0.65732414",
"text": "def update_status\n\n $line_num.to_s + \" \" + $prev_line_num.to... |
d1369cda6b68a6112163acc39767caca | There are several hidden parameters in the bulk email compose form that hold state on how the user got here, what product(s) the mail is about, and how the recipients were chosen. If there is a form error, these params need to be set to keep that state in the redisplayed form. | [
{
"docid": "cee7aaf091bf7b950cffe4c2f643b845",
"score": "0.54825705",
"text": "def populate_flow_state_params\n return if params[:bulk_email_delivery_form].blank?\n search_criteria = JSON.parse(params[:bulk_email_delivery_form][:search_criteria])\n params.merge!(search_criteria.slice(\"bu... | [
{
"docid": "3c54334e32824e3b9269ead07ba90f55",
"score": "0.606071",
"text": "def additional_options\n puts self.recipient_email_address_checkbox\n errors.add_to_base(\"Enter your recipient's email address\") if self.recipient_email_address_checkbox == \"1\" and (!self.recipient_email_address or s... |
af630984682f1a0b5a68e6092af0d102 | Update properties of this object | [
{
"docid": "a9891e88679112508ad4725e3702073b",
"score": "0.0",
"text": "def update!(**args)\n @buttons = args[:buttons] if args.key?(:buttons)\n @image = args[:image] if args.key?(:image)\n @key_value = args[:key_value] if args.key?(:key_value)\n @text_paragraph = arg... | [
{
"docid": "150fa2bdc1fc43d28ac45e2278a1f797",
"score": "0.7012263",
"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... |
cc3b18074040f1a60165af2d02763d8e | POST /vacation_itineraries POST /vacation_itineraries.json | [
{
"docid": "2bb13d93db5df84a4511c5e3f9df0504",
"score": "0.7320346",
"text": "def create\n @vacation_itinerary = VacationItinerary.new(vacation_itinerary_params)\n\n respond_to do |format|\n if @vacation_itinerary.save\n format.html { redirect_to @vacation_itinerary, notice: 'Vacation ... | [
{
"docid": "c1cfd20aec061bfef28813a08608f22f",
"score": "0.7004107",
"text": "def create\n itinerary = current_user.itineraries.create!(itinerary_params)\n itinerary_id = current_user.itineraries.last\n \n events = params[:events]\n events.each do |event|\n itinerary_id = current_use... |
f74c29bdfc4a183e1ec1b91334cd5be2 | Use callbacks to share common setup or constraints between actions. | [
{
"docid": "583cf5d90849df27b0a7ffbbc5157ecc",
"score": "0.0",
"text": "def set_discipleship\n @discipleship = Discipleship.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;... |
da6256819d3d4b647bded8e9c43c8213 | Adds a HTTP header to the request | [
{
"docid": "8d386f84375cfb4ccbbe08fa82324d1d",
"score": "0.66601586",
"text": "def with_header(header, value)\n Validation.assert_is_a(String, header, 'header')\n Validation.assert_is_a(String, value, 'value')\n @headers[header] = value\n self\n end",
"title": ""
}
] | [
{
"docid": "2db2dd0299ab959b6423cdf6af087028",
"score": "0.7826792",
"text": "def add_headers\n @headers.each do |field, value|\n @request_header << \"#{field}: #{value}\"\n end\n end",
"title": ""
},
{
"docid": "5f54d53310d69b9b34497d27902bb4fd",
"score": "0.... |
0db0e7e2e1f4a02bc2507274ce5257d7 | Note: if key does not exist it will be initialized and return '0'. | [
{
"docid": "3d121020f0083b441de968ca73263d9c",
"score": "0.0",
"text": "def decrement(key, amount = 1)\n @data.decrby(key, amount)\n end",
"title": ""
}
] | [
{
"docid": "47a6b9dcf6a8a0ca08b5cf823af7dd83",
"score": "0.7138707",
"text": "def [](key)\r\r\n if @data[key] == nil\r\r\n return 0\r\r\n else\r\r\n return @data[key]\r\r\n end\r\r\n end",
"title": ""
},
{
"docid": "93167b3a387b5cb70ce5a4fc94b7a914",
"score": "0.70359... |
d908e90f5d6f203171de1d5e1f13c8bd | Get mutual friends (options target_uids is required) | [
{
"docid": "937f05a3136f37b1ee8125a2a2a84296",
"score": "0.71190625",
"text": "def mutual_friends(options={})\n response = user.friends.getMutual(options)\n\n return {} unless response.is_a?(Array)\n \n response.inject({}) {|h, a| h.merge!(a[\"id\"].to_s => a[\"common_count\"... | [
{
"docid": "a30ddc6ef3d956c7d04e7b06dd4ef349",
"score": "0.82457554",
"text": "def get_mutual_friend_fbids(target_fbid)\n graph_url = \"https://api.facebook.com/method/friends.getMutualFriends?target_uid=#{target_fbid}&access_token=TOKEN&format=JSON\"\n parsed_resp = query_graph(graph_url)\n friends ... |
c1f09587834be16d963343720ad15529 | POST /destinations POST /destinations.json | [
{
"docid": "f31cb98645df92deb7e9905c2dd3e423",
"score": "0.61749613",
"text": "def create\n @destination = Destination.new(destination_params)\n @destination.user = current_user\n\n respond_to do |format|\n if @destination.save\n format.html { redirect_to @destination, notice: 'Dest... | [
{
"docid": "0f0d64f95c51280925fd8526369e2046",
"score": "0.68324953",
"text": "def create\n @destination = Destination.new(params[:destination])\n\n if @destination.save\n render json: @destination, status: :created, location: @destination\n else\n render json: @destination.errors, st... |
dfd56c95af7600903d24cf8c3d13c625 | def after_sign_up_path_for(resource) new_user_session_path end | [
{
"docid": "b51bf4e1f2deb6939c627eaef3db3c0e",
"score": "0.0",
"text": "def after_sign_in_path_for(resource)\n articles_path\n end",
"title": ""
}
] | [
{
"docid": "f24b282bb7b63f1aca1ec221f459a43b",
"score": "0.98730826",
"text": "def after_sign_up_path_for(_resource)\n new_user_session_path\n end",
"title": ""
},
{
"docid": "3203703352c7d1ecd7125190cd27c329",
"score": "0.9867846",
"text": "def after_sign_up_path_for(resource)\n... |
92feb4230eb3ba767a53e1088c055c4c | Tries to open the specified file object or full path | [
{
"docid": "12bbee71ade09abb0b75eb6e56776ccd",
"score": "0.7866963",
"text": "def open_file(handle)\n (handle.respond_to?(:path) ? handle : File.open(handle.to_s))\n rescue Errno::ENOENT\n nil\n end",
"title": ""
}
] | [
{
"docid": "bbb94feddcbaef9d58ff0f3b17942970",
"score": "0.71501386",
"text": "def open_file(io)\n io.kind_of?(File) ? io : File.open(io)\n end",
"title": ""
},
{
"docid": "a57509402c46ea2277947fc856bd61d2",
"score": "0.700591",
"text": "def open_path(path)\n begin\n ... |
d5e3da11aab0e42525c45af56b215a16 | Given a timestamp and job (klass + args) it removes all instances and returns the count of jobs removed. O(N) where N is the number of jobs scheduled to fire at the given timestamp | [
{
"docid": "8d4907e9d27a5994075577532d2945e1",
"score": "0.7582869",
"text": "def remove_delayed_job_from_timestamp(timestamp, klass, *args)\n return 0 if Resque.inline?\n\n job_hash = job_to_hash(klass, args)\n\n redis.srem(\"timestamps:#{encode(job_hash)}\", \"delayed:#{timestamp.... | [
{
"docid": "428bcc998cfea6e2f46a7291d97f872e",
"score": "0.7757325",
"text": "def remove_delayed_job_from_timestamp(timestamp, klass, *args)\n key = \"delayed:#{timestamp.to_i}\"\n count = redis.lrem key, 0, encode(job_to_hash(klass, args))\n clean_up_timestamp(key, timestamp)\n count\n end... |
d9dc496691d3ae597cbc98e0a344007b | Determine the extname the outputted file should have Returns String the output extname including the leading period. | [
{
"docid": "d854a43b5f40646905712a7f47dba898",
"score": "0.0",
"text": "def output_ext\n @output_ext ||= (permalink_ext || converter_output_ext)\n end",
"title": ""
}
] | [
{
"docid": "e592c6abe885116e2c461ec933cf7154",
"score": "0.89455783",
"text": "def output_ext\n File.extname(name)\n end",
"title": ""
},
{
"docid": "53967f70672ec3021a8bc7dc1c229f3d",
"score": "0.83438075",
"text": "def ext_of(filename)\n filename =~ extension_regex ? $... |
4e2e9dd741e9e9641933e18444dccb80 | Showing the comics created by the user | [
{
"docid": "41bf06be760a401cf981c69585fb3594",
"score": "0.0",
"text": "def index\n @user = current_user\n @category = params.has_key?(:category) ? params[:category] : \"newest-oldest\"\n @comics = Kaminari.paginate_array(Search.new.filter_comics_with_category(@user, @category)).page(params[:pa... | [
{
"docid": "ac1390e4c6aa37be008277c97f50e579",
"score": "0.62445855",
"text": "def create\n authorize! :create , Comic\n @comic = Comic.new(comic_params)\n @comic.user_id = current_user.id\n\n respond_to do |format|\n if @comic.save\n format.html { redirect_to @comic, notice: 'Co... |
f74c29bdfc4a183e1ec1b91334cd5be2 | Use callbacks to share common setup or constraints between actions. | [
{
"docid": "732401ab888c45782e646b42f7ba3a15",
"score": "0.0",
"text": "def set_income_summary\n @income_summary = IncomeSummary.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... |
af4e3db2bf3accf731b5324688d9d490 | Public: Deactivates Heroku maintenance mode. | [
{
"docid": "d24eede56ac1aa0fc0a0a67a68ee49df",
"score": "0.8281503",
"text": "def deactivate_maintenance_mode\n return unless maintenance_necessary?\n callback(:deactivate_maintenance_mode) do\n notify(:deactivate_maintenance_mode)\n heroku.app_maintenance_off\n end\n end... | [
{
"docid": "12ca4b6b7d596279475b7c4c449145eb",
"score": "0.8232765",
"text": "def off\n Heroku::JSPlugin.install('heroku-apps')\n Heroku::JSPlugin.run('maintenance', 'off', ARGV[1..-1])\n end",
"title": ""
},
{
"docid": "5d2bb1198055b7a9fa2efc66502ca69a",
"score": "0.8065862",
... |
1097a7e7758f08d32addfc88ea3fdcab | GET /users GET /users.json | [
{
"docid": "8b1dbac81472eff58cb602a4a1473ebb",
"score": "0.0",
"text": "def index\n @users = User.all\n end",
"title": ""
}
] | [
{
"docid": "9f7c735ace683c5c2b12c914cc9ad8a8",
"score": "0.84081405",
"text": "def get\n users = User.all.as_json\n render(json: users.as_json, status: :ok)\n end",
"title": ""
},
{
"docid": "543509c6588e2f79a8dbcd1cdcdaf7b9",
"score": "0.836071",
"text": "def users\... |
a2099a77c85e91272ae2f9e35b937953 | Only allow a trusted parameter "white list" through. | [
{
"docid": "1d3a7479057fd852909d74fbc3ec9f9d",
"score": "0.0",
"text": "def project_params\n params.permit(:slug, :name, :description, :url, :main_color, :avatar)\n end",
"title": ""
}
] | [
{
"docid": "c1f317213d917a1e3cfa584197f82e6c",
"score": "0.7121987",
"text": "def allowed_params\n ALLOWED_PARAMS\n end",
"title": ""
},
{
"docid": "b32229655ba2c32ebe754084ef912a1a",
"score": "0.70541996",
"text": "def expected_permitted_parameter_names; end",
"title": "... |
f30d55e8e5fb0e9193e7bdf86b0b1780 | Critical: making the connection between each new song and this artist. | [
{
"docid": "40ba2a027a286636ba0d771424be0a49",
"score": "0.629106",
"text": "def add_song(song)\n song.artist = self #associate the song with this artist\n end",
"title": ""
}
] | [
{
"docid": "41ed7e5961780040ab4fe8d145712c13",
"score": "0.66713554",
"text": "def add_song(song)\n @songs << song\n song.artist = self\nend",
"title": ""
},
{
"docid": "ca172427a007e8b247cc3cc6639713df",
"score": "0.6646111",
"text": "def add_song(song)\n @songs << song\n s... |
c657de4b70d266e9a3a784b999ea9e60 | Never trust parameters from the scary internet, only allow the white list through. | [
{
"docid": "490eea43b6f89b37c3a07f286ac98e22",
"score": "0.0",
"text": "def sale_material_params\n params.require(:sale_material).permit(:nombre, :acuenta, :saldo, :total, :cantidad, products_attributes: [:id, :material_id, :sale_material_id, :cantidad, :_destroy])\n end",
"title": ""
}
] | [
{
"docid": "3663f9efd3f3bbf73f4830949ab0522b",
"score": "0.7498391",
"text": "def whitelisted_params\n super\n end",
"title": ""
},
{
"docid": "13a61145b00345517e33319a34f7d385",
"score": "0.6958937",
"text": "def strong_params\n params.require(:request).permit(param_white... |
7798e2e8a538b7b31c7011d6cdfed0db | GET /ad_movies/1 GET /ad_movies/1.json | [
{
"docid": "a81945373733e4951b987de6ea99f9a1",
"score": "0.0",
"text": "def show\n end",
"title": ""
}
] | [
{
"docid": "a3a230da5bc052ab1d352e62f1c7ab9a",
"score": "0.7767196",
"text": "def movies\n Birdman::Requester.get(\"people/#{id}/movies\")\n end",
"title": ""
},
{
"docid": "73668b26b2a1848f14079c06ddd24866",
"score": "0.7752947",
"text": "def show\n @movie = Movie.find_by_imd... |
9ad65787be27af7a7cc01a9e26cff5f0 | Add a blip to blips (Use an Operation to actually add the blip to the Wave). Returns: The blip [Blip]. | [
{
"docid": "6db44fa7d131a76c0e8f0459959366e8",
"score": "0.7848708",
"text": "def add_blip(blip) # :nodoc:\n @blips[blip.id] = blip\n blip.context = self\n blip\n end",
"title": ""
}
] | [
{
"docid": "9854e4b86d0f3be9b2d4891a04f0d59d",
"score": "0.8122821",
"text": "def create_blip\n #TODO\n blip = Blip.new(:wave_id => @wave_id, :wavelet_id => @id)\n @context.operations << Operation.new(:type => Operation::WAVELET_APPEND_BLIP, :wave_id => @wave_id, :wavelet_id => @id,... |
a794708fefbd9bb5df44a2ce193ae82a | auth:token display your api token | [
{
"docid": "f9e15d59f3de03e31c50d2dedb335242",
"score": "0.8323067",
"text": "def token\n display \"=> Your personal API token is: #{Nimbu::Auth.token}\"\n end",
"title": ""
}
] | [
{
"docid": "a35fff3c7be93ad8ed44beb923d6a87d",
"score": "0.8153522",
"text": "def token\n validate_arguments!\n\n display Pebbles::Auth.api_key\n end",
"title": ""
},
{
"docid": "47cca78052522d3964174e0f1792ff0f",
"score": "0.79457194",
"text": "def token\n validate_argumen... |
347591ddf01f0e54ce1c4ebd8e45c445 | acts similar to the built in rails helper link_to_unless_current | [
{
"docid": "9b3a3fc40a1cb12f3834e74d07a8b911",
"score": "0.65029037",
"text": "def link_to_remote_facebox_unless_current(name, url_options = {}, html_options = {})\n current_page?(url_options) ? name : link_to_remote_facebox(name, url_options, html_options)\n end",
"title": ""
}
] | [
{
"docid": "522b84bf5ad6513a0634a03c698afa19",
"score": "0.8251111",
"text": "def link_unless_current(text, link = text, options = {})\n link_to_unless((link == request.fullpath), text, link, options)\n end",
"title": ""
},
{
"docid": "2d78563ba1448a929b80783fec7bd578",
"scor... |
f3ce0b76c7b8f7d16fea787e041879c0 | updating token for logout operation | [
{
"docid": "b2fc70d23d27c22a3d3d8d7114314bd1",
"score": "0.0",
"text": "def invalidate_token\n self.update_columns(token: nil)\n end",
"title": ""
}
] | [
{
"docid": "8c810de7b3a8fc829e8d22dcad4009e4",
"score": "0.76657885",
"text": "def logout\n @base.token = nil\n end",
"title": ""
},
{
"docid": "8da00f87c7bf8b7983c3887016a10c17",
"score": "0.7578596",
"text": "def logout\n clear_token\n end",
"title": ""
},
{... |
c657de4b70d266e9a3a784b999ea9e60 | Never trust parameters from the scary internet, only allow the white list through. | [
{
"docid": "f4efeec06ad9dd483d47ba67873a2316",
"score": "0.0",
"text": "def recipe_params\n params.require(:recipe).permit(:user_id, :title, :image_url, :description, :cuisine_id, :category_id, :cook_time, :serving_num, :instruction, :ingredients_attributes => [:id, :recipe_id, :quantity, :unit, :i... | [
{
"docid": "e164094e79744552ae1c53246ce8a56c",
"score": "0.6981269",
"text": "def strong_params\n params.require(:user).permit(param_whitelist)\n end",
"title": ""
},
{
"docid": "e662f0574b56baff056c6fc4d8aa1f47",
"score": "0.6783559",
"text": "def strong_params\n params.requi... |
4128a4df21296a9a17173e7429e2361f | POST /workings POST /workings.json | [
{
"docid": "dd3b310ab595a1e9293fb38bac51fb38",
"score": "0.60343957",
"text": "def create\n respond_to do |format|\n if @working.save\n format.html { redirect_to sprints_path, notice: 'Working was successfully created.' }\n format.json { render json: @working, status: :created, loc... | [
{
"docid": "107d45d78230ce0052e0a7a80b372f27",
"score": "0.6602039",
"text": "def create\n @worked_on = WorkedOn.new(params[:worked_on])\n\n respond_to do |format|\n if @worked_on.save\n format.json { render json: @worked_on, status: :created, location: @worked_on }\n else\n ... |
21951dea3b22f842565ca027639f6866 | ==== Summary Load the JSON file and retuns it, also the JSON | [
{
"docid": "5d403a7a6c29d5e4047302d8d56e27e1",
"score": "0.6696232",
"text": "def loadJSON(json)\n json_instance = Checks::CheckJson.new(json)\n errors = json_instance.check()\n if errors.size > 0\n puts errors.to_s\n if json_instance.fatal()\n exit\n end\n ... | [
{
"docid": "ed4e80851c6b0e0638de61fd79717635",
"score": "0.82555777",
"text": "def load_json(filename); end",
"title": ""
},
{
"docid": "29e5d1f01fa2ca0915af483201f2448f",
"score": "0.7559581",
"text": "def read\n return nil unless File.file?(\"./#{filename}\")\n JSON.p... |
9edb26f36fbd567fc5f7f83f0088bb34 | reduced? returns something truthy if the split preceding (or starting, depending on how you look at it) this segment was skipped, or something falsey otherwise. Something truthy means the "duration" of this segment is artificially long. For example, in a run with segments a, b, and c, with splits start>a, a>b, b>c, and... | [
{
"docid": "444eef7bfb10155af52e3804043c0597",
"score": "0.53981936",
"text": "def reduced?(timing)\n case timing\n when Run::REAL\n realtime_reduced?\n when Run::GAME\n gametime_reduced?\n end\n end",
"title": ""
}
] | [
{
"docid": "53db06c4cb6decd447d268db61b5c380",
"score": "0.63774854",
"text": "def is_reduced\n return @reduced\n end",
"title": ""
},
{
"docid": "858fd0d2780560a69717b71e5f837e84",
"score": "0.6019088",
"text": "def reduced?\n @options[:reduced] == true\n end",
... |
324dec57a9dd91237f08764ab4826e16 | Get particular attribute value of an element | [
{
"docid": "f5d59eb45b2c1a933cbeca359d46e366",
"score": "0.6777605",
"text": "def attribute(name, driver = $focus_driver)\n driver.find_element(self).attribute(name)\n end",
"title": ""
}
] | [
{
"docid": "2546493d4cff6c5076357f774466de4f",
"score": "0.79513943",
"text": "def get_attr(el, attr)\n return el.attributes[attr]\nend",
"title": ""
},
{
"docid": "f35be0dca1cfb657dc6d38b4a322468b",
"score": "0.77511996",
"text": "def get_attr(name)\n @elem.attributes[name.to_... |
c6668514d832a87547bf9458b279e7f4 | GET /hotels/new GET /hotels/new.json | [
{
"docid": "7d3fed70cc678248acc3be97950bae03",
"score": "0.7765262",
"text": "def new\n @hotel = Hotel.new\n respond_to do |format|\n format.html # new.html.erb\n format.json { render json: @hotel }\n end\n end",
"title": ""
}
] | [
{
"docid": "8916bcbc28ab3a2e95afa7bccc52310c",
"score": "0.7781455",
"text": "def new\n @hotel = Hotel.new\n\n respond_to do |format|\n format.html # new.html.erb\n format.json { render json: @hotel }\n end\n end",
"title": ""
},
{
"docid": "8916bcbc28ab3a2e95afa7bccc5231... |
bef848d89675f9b900800eccaff1a859 | Creates a new LoopControl object given its type | [
{
"docid": "bf691e37ff4d30a87d995db4c0e2611d",
"score": "0.4722503",
"text": "def initialize(type)\n raise ArgumentError, \"Type must be one of #{TYPES}\" unless\n TYPES.include?(type)\n @type = type\n end",
"title": ""
}
] | [
{
"docid": "8ff1e7f8f419ce4d6c662898b509421a",
"score": "0.6288555",
"text": "def new\n create(UV.loop_new)\n end",
"title": ""
},
{
"docid": "07d845f571b566f30841151d25d08da7",
"score": "0.6252192",
"text": "def factory(loop_name)\r\n loop = @x12_definition[X12::Loo... |
a1ff598535948cdb846fe85f27b0dc47 | Find a record for model klazz, looking up on field containing search_terms Responds to global Options : :add_prefix : Add a prefix to each search term :case_sensitive : Default is a case insensitive lookup. :use_like : Attempts a lookup using like and x% rather than equality Returns nil if no record found | [
{
"docid": "6748729dc979b962c1969c17d5023cbd",
"score": "0.67106336",
"text": "def get_record_by(klazz, field, search_term, split_on = ' ', options = {})\n\n split_on_prefix = options[:add_prefix]\n\n find_search_term = split_on_prefix ? \"#{split_on_prefix}#{search_term}\" : search_term\n\n ... | [
{
"docid": "3dffc89d9871eee2a28a7b2cf6bf71b9",
"score": "0.7709823",
"text": "def search_for_record(klazz, field, search_term, options = {})\n\n begin\n return klazz.send(\"find_by_#{field}\", search_term) if options[:case_sensitive]\n\n return klazz.where(\"#{field} like ?\", \"#{sea... |
438f5531cdbadf0debe71ced662f87e0 | no_cheese = ["ham", "cellphone", "computer"] snacks = ["crackers", "gouda", "thyme"] soup = ["tomato soup", "cheddar", "oyster crackers", "gouda"] | [
{
"docid": "5ab86227358782df9d6696820b02d21b",
"score": "0.0",
"text": "def find_the_cheese(food) #method and argument\n cheese_types = [\"cheddar\", \"gouda\", \"camembert\"] #array\n food.find do |i|\n if cheese_types.include?(i)\n return i\n else\n end\n nil\n end\nend",
"titl... | [
{
"docid": "66dfd417815497e023665186b61eb215",
"score": "0.7101683",
"text": "def find_the_cheese(snacks)\n cheeses = %w(gouda cheddar camembert)\n snacks.find do |maybe_cheese|\n cheeses.include?(maybe_cheese)\n end\nend",
"title": ""
},
{
"docid": "9ed8a12b6dff3be92c2557ca20ca31e4",
... |
2a918b9e9af9ad4d9ff2774e82122563 | multiplies all the integers together, divides that by the number of integers, and prints the result rounded to 3 decimal places. | [
{
"docid": "bc001e38ac0276efe64e2eab9c144b33",
"score": "0.69780046",
"text": "def show_multiplicative_average(array) \n multiplicative_average = array.inject(&:*) / array.size.to_f\n puts format(\"The result is %.3f\", multiplicative_average.round(3))\nend",
"title": ""
}
] | [
{
"docid": "c8ec2c123be56aead96875b165fe2c76",
"score": "0.7511682",
"text": "def show_multiplicative_average(ints)\n result = ints.reduce(:*).to_f / ints.size\n puts format('%.3f', result)\nend",
"title": ""
},
{
"docid": "cbca2f646775e9a10958febd8f580f0f",
"score": "0.7328772",
"... |
d36389ce5aec3fef35048baacac4a875 | GET /entities GET /entities.xml | [
{
"docid": "be701ac0f96c938c22663cf1665c6612",
"score": "0.58111066",
"text": "def index\n @entities = Entity.find(:all,@conditions)\n options = {:methods => [:omrl]}\n if params[:entity_type] == \"currencies\"\n if params[:used_by]\n account_omrl = OMRL.new(params[:used_by]).to_s\n... | [
{
"docid": "eb934a3853c99619ce2818884eb5bffd",
"score": "0.8022392",
"text": "def entities\n path = '/entities'\n req_uri = build_uri(path)\n logger.info \"GET #{req_uri}\" if logger\n resp = get(req_uri.request_uri)\n logger.info \" Response: #{resp.body.inspect}\" i... |
60592cbaaf1c831ede565208362075fa | makes the selected option readable | [
{
"docid": "52f053904fe7107cc888a668128d7fc2",
"score": "0.5448898",
"text": "def choice\n @choice\n end",
"title": ""
}
] | [
{
"docid": "bc9eaeee324923868ab48cfbcacb2143",
"score": "0.6487193",
"text": "def selected_options; end",
"title": ""
},
{
"docid": "bc9eaeee324923868ab48cfbcacb2143",
"score": "0.6487193",
"text": "def selected_options; end",
"title": ""
},
{
"docid": "40d5fc6aaea8a103ba... |
782f81f2f57dcfd4a2a1bceb49c2c93f | )( ) Overwrite Method: max_gold ( )( | [
{
"docid": "dd8d88749513bac42d56eb624f2331c1",
"score": "0.7607191",
"text": "def max_gold\n MAX_GOLD_VARIABLE == -1 ? MAX_GOLD : $game_variables[MAX_GOLD_VARIABLE]\n end",
"title": ""
}
] | [
{
"docid": "b609e88f0c0ebd95db2a9635acf69e04",
"score": "0.69920444",
"text": "def max; end",
"title": ""
},
{
"docid": "b609e88f0c0ebd95db2a9635acf69e04",
"score": "0.69920444",
"text": "def max; end",
"title": ""
},
{
"docid": "cfd5506d5b0e47a7b254cd3d03052ef2",
"sc... |
c41bf37c8473a75f33e3f059f02ed4dd | Locates the service corresponding to the given path. | [
{
"docid": "a7d82aa6154225dffec9dcc7607649f1",
"score": "0.0",
"text": "def service(path)\n if path.nil? || path == ''\n return self\n end\n index = path.index('/')\n if index.nil?\n return attachment_service(path)\n end\n return attachment_service(path[0..(in... | [
{
"docid": "e8e807e295b3bc4c300490e3f7c21425",
"score": "0.72740424",
"text": "def service(path)\n if path.nil? || path == ''\n return self\n end\n index = path.index('/')\n if index.nil?\n return operating_system_service(path)\n end\n return operating_system_... |
19b2f5d99dc06ddd2f29df3042c362b1 | POST /start_male_pole_jumps POST /start_male_pole_jumps.json | [
{
"docid": "2531436d32fba55017ae29c13dee26b4",
"score": "0.7541246",
"text": "def create\n @start_male_pole_jump = StartMalePoleJump.new(start_male_pole_jump_params)\n\n respond_to do |format|\n if @start_male_pole_jump.save\n format.html { redirect_to action:index, notice: 'Start male... | [
{
"docid": "bdb6186db24fecae76064b70b59aa053",
"score": "0.71989906",
"text": "def set_start_male_pole_jump\n @start_male_pole_jump = StartMalePoleJump.find(params[:id])\n end",
"title": ""
},
{
"docid": "efe82e0222a23888ffa3dfae09ca7ec7",
"score": "0.71111876",
"text": "def ... |
ffbf8ed32e97469644a0d64375e46e77 | When the boolean is true, return a new string containing all the odd characters. When the boolean is false, return a new string containing all the even characters. If you have no idea where to begin, remember to check out the cheatsheets for string and logic/control | [
{
"docid": "bb759ef6460a7c3120f88c57e8342555",
"score": "0.7296128",
"text": "def odds_and_evens(string, return_odds)\n\treturn_this = \"\"\n \tstring.size.times do |x|\n \tnext if return_odds == true && x % 2 == 0\n \tnext if return_odds == false && x % 2 != 0\n \treturn_this << string[x]\n ... | [
{
"docid": "8f5a53f4e2e08eb2afebf1eb2e3e0265",
"score": "0.784543",
"text": "def odds_and_evens(string, return_odds)\n\n even = []\n odd = []\n arr = string.each_char.to_a\n arr.each_index{|index| index % 2 == 0 ? even << arr[index] : odd << arr[index]}\n if return_odds == true\n return odd.... |
a660ac9e6d4378c2246e98d0eb2a4d02 | Use this method when a new artifact is generated. In almost cases, it's called from Sitespec::Artifact class. | [
{
"docid": "3def48a72a8ecd1943a560b5fb7d3dc6",
"score": "0.0",
"text": "def increment_artifacts_count\n @artifacts_count = artifacts_count + 1\n end",
"title": ""
}
] | [
{
"docid": "356c7b99c08a56478a2b1dc305f1faaf",
"score": "0.6718398",
"text": "def create\n @artifact = Artifact.new(params[:artifact])\n @artifact.project = session[:project_id]\n\n change = copy_to_change(@artifact)\n change.version = 1\n\n respond_to do |format|\n if @artifact.save... |
f4444c8f3c4fc039d9f618aa944ec923 | advance the specified date by 24 hours | [
{
"docid": "442f658a2010d1800f044b81d52b5022",
"score": "0.7098298",
"text": "def next_day(date)\n date + (60 * 60 * 24)\n end",
"title": ""
}
] | [
{
"docid": "ef2909eb99f291e1555ec16b27110f09",
"score": "0.69941074",
"text": "def advance(date, time)\n date.advance(hours: time.hour, minutes: time.min, seconds: time.sec)\n end",
"title": ""
},
{
"docid": "826d8754b8b5dd8b6cdefacefd3a0071",
"score": "0.6841838",
"text": "def a... |
ff321624b8eb57e7c5848d3f0ca78cc8 | GET /membership_types/1 GET /membership_types/1.xml | [
{
"docid": "2c8ead56e7a58d813c08a1cd044d7fb0",
"score": "0.72982305",
"text": "def show\n @membership_type = MembershipType.find(params[:id])\n\n respond_to do |format|\n format.html # show.html.erb\n format.xml { render :xml => @membership_type }\n end\n end",
"title": ""
}
] | [
{
"docid": "7b5365f472fcdad9e553ba81a9c2cd02",
"score": "0.69314915",
"text": "def index\n @membership_types = MembershipType.all\n\n respond_to do |format|\n format.html # index.html.erb\n format.json { render json: @membership_types }\n end\n end",
"title": ""
},
{
"doc... |
a2099a77c85e91272ae2f9e35b937953 | Only allow a trusted parameter "white list" through. | [
{
"docid": "c3527257f95cbe17da620806fe806134",
"score": "0.0",
"text": "def reservation_params\n params.require(:reservation).permit(:check,:minibar,:user_name,:user_phone,:user_email,:user_membership,:day_in,:day_out,:room_id,:user_name)\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"... |
e89389e626a5aeb5158b1a7409ae543a | PATCH/PUT /recipes/1 PATCH/PUT /recipes/1.json | [
{
"docid": "62d79bcbf2cc0be283b8cfa0e1ad9e93",
"score": "0.0",
"text": "def update\n respond_to do |format|\n if @recipe.update(recipe_params)\n format.html { redirect_to edit_user_recipe_path(@recipe.author, @recipe), notice: 'Recipe was successfully updated.' }\n format.json { re... | [
{
"docid": "1121b8fe100de7b7e220b09a42a9377b",
"score": "0.7511238",
"text": "def update\n @recipe = Recipe.find(params[:id])\n @recipe.update(recipe_params)\n render json: @recipe\n end",
"title": ""
},
{
"docid": "9049f8c4fc85ec90aa5727e4655a9bc3",
"score": "0.6978191",
"... |
9ca350c752dfe95adbb9ea4d767b6dac | Will be removed when cookbook shadowing is removed, do NOT create new consumers of this API. | [
{
"docid": "7dd5bdaa5a55da1daf4306e6ca801ec5",
"score": "0.5668682",
"text": "def load_cookbooks_without_shadow_warning\n preload_cookbooks\n @loaders_by_name.each do |cookbook_name, _loaders|\n load_cookbook(cookbook_name)\n end\n @cookbooks_by_name\n end",
"title": ""... | [
{
"docid": "efd364fc9827cea1b784450915703484",
"score": "0.6114934",
"text": "def synchronized_cookbook(cookbook_name, cookbook); end",
"title": ""
},
{
"docid": "7d0bfbe3c5b5fbff359c6089b2e5fb0c",
"score": "0.59694636",
"text": "def cookbook_clean_start\n end",
"title": ""
... |
fb5a6eb5010b315e101895e0de8596a0 | GET /tasks/1 GET /tasks/1.json | [
{
"docid": "a81945373733e4951b987de6ea99f9a1",
"score": "0.0",
"text": "def show\n end",
"title": ""
}
] | [
{
"docid": "1a71110c0b7b1341c80bd129acb3b511",
"score": "0.76096785",
"text": "def show\n @task = Task.find(params[:id])\n\n render json: @task\n end",
"title": ""
},
{
"docid": "8232c50468301a185d8ad9f041957c9f",
"score": "0.7555889",
"text": "def task(name)\n get \"#{... |
d02607fcf8a622df33ea11dee991a280 | The `enable` action for the `monit` resource. | [
{
"docid": "b549fdcbd58e58d5c26e76852ffc8fc0",
"score": "0.66940594",
"text": "def action_enable\n notifying_block do\n install_monit\n end\n # Split into two converges because we need to know what version is\n # installed to write the config in some cases.\n ... | [
{
"docid": "e2df7fca3952953b1b3295c9ebcef965",
"score": "0.74151087",
"text": "def action_enable\n notify_if_service do\n service_resource.run_action(:enable)\n end\n end",
"title": ""
},
{
"docid": "f39cb3cfedd7f24400c1618de0b1c251",
"score": "0.6988464",
... |
7c4b9bb6f0d044fecb302409182570ba | Create with an IO object source and a tokeniser. | [
{
"docid": "c773ae7cd7fa98b60a8607af52d0badd",
"score": "0.7147487",
"text": "def initialize(sources, tokeniser)\n @sources = (sources.is_a?(Array) ? sources : [sources]) # accept an array or a single item\n @tokeniser = tokeniser\n reset\n\n # Check it's possible to act... | [
{
"docid": "ff4f289fb7119008c8bed5d9a501157b",
"score": "0.6467274",
"text": "def initialize( token_source, options = {} )\n case token_source\n when CommonTokenStream\n # this is useful in cases where you want to convert a CommonTokenStream\n # to a RewriteTokenStream or other variation... |
c657de4b70d266e9a3a784b999ea9e60 | Never trust parameters from the scary internet, only allow the white list through. | [
{
"docid": "9edffdf44460abfe09bf15b6f672e904",
"score": "0.0",
"text": "def front_page_text_params\n params.require(:front_page_text).permit(:string_input, :text_input, :image_input, :front_page_id, :show_default_image)\n end",
"title": ""
}
] | [
{
"docid": "3663f9efd3f3bbf73f4830949ab0522b",
"score": "0.7496024",
"text": "def whitelisted_params\n super\n end",
"title": ""
},
{
"docid": "13a61145b00345517e33319a34f7d385",
"score": "0.69581187",
"text": "def strong_params\n params.require(:request).permit(param_whit... |
8c1ba4dbe92b8b099340da4a751ed7bd | Clocks EN to latch command | [
{
"docid": "cb3e9328d4173b296421de9d3cf32437",
"score": "0.50763327",
"text": "def strobe(data)\n @device.write(data | BIT_EN | FLAG_BACKLIGHT)\n sleep(0.0005)\n @device.write(((data & ~BIT_EN) | FLAG_BACKLIGHT))\n sleep(0.001)\n end",
"title": ""
}
] | [
{
"docid": "0478f2d7644c0379d489d52f6b90c519",
"score": "0.622512",
"text": "def do_clock(*a)\n clock = MIDIMessage::SystemRealtime[\"Clock\"].new\n emit(clock)\n !@devices.empty?\n end",
"title": ""
},
{
"docid": "23144e4a1533493c29b97da367c2a841",
"score": "0.6066492"... |
357831be150d7177d6263dba2090b8d3 | Local validation before send request to the core. Used because core could be remote and we make both validations. | [
{
"docid": "af4b076654baf78c8cf56724a4d094f4",
"score": "0.0",
"text": "def could_be_valid_move?\n return @board_gfx.is_draggingpiece_valid?\n end",
"title": ""
}
] | [
{
"docid": "09c20f43e6072cc1995485670c515eca",
"score": "0.65605146",
"text": "def validate_request(call)\n call.validate_request\n end",
"title": ""
},
{
"docid": "6a5d7f9aa3a63ee90f8e0a968dec189f",
"score": "0.6372475",
"text": "def validate_and_sanitize\n\n r = ... |
5484bad70f3a812105fb5ac29ee24d12 | GET /appointments GET /appointments.xml | [
{
"docid": "f2f08d9535f4f8060338116fce533d2e",
"score": "0.0",
"text": "def index\n p \">>INICIO >>>>>>>>\"\n @appointments= Appointment.all\n p \">>>>>>>>>>\"\n y @appointments[0]\n if current_user.role.eql? \"Paciente\"\n #@appointments.where(:id => current_user.id, :user => @appo... | [
{
"docid": "5cdfe36465aecbf90bd2c375216ec813",
"score": "0.7887449",
"text": "def appointments(params = {})\n scope 'user_schedule'\n get('schedule/appointments/', params)\n end",
"title": ""
},
{
"docid": "069ff3a1d45820930661efc8370ea3a7",
"score": "0.76294184",
"text"... |
eb76e2fa8b3cec0d8ca45efba5b0c5eb | Returns the UserAgent of the client. Defaults to: "sunstoneruby/SUNSTONE_VERSION RUBY_VERSIONpPATCH_LEVEL PLATFORM" | [
{
"docid": "855c59731c23fe0f0c730f886514943c",
"score": "0.82270575",
"text": "def user_agent\n [\n @user_agent,\n \"Sunstone/#{Sunstone::VERSION}\",\n \"Ruby/#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}\",\n RUBY_PLATFORM\n ].compact.join(' ')\n end",
"title": ""
}... | [
{
"docid": "709ba35422bb8343ae94423974159ecc",
"score": "0.7424119",
"text": "def user_agent\n values = {\n 'razor' => MK::VERSION,\n 'facter' => Facter.version, # sigh\n 'ruby' => RUBY_VERSION,\n # @todo danielp 2013-07-30: I can't find a better way to do this...\n 'kerne... |
e413eb974677079e2d42e4c9ab3c0bf9 | Convert raw ranks (number of better pilots + 1) into average ranks, in which tied pilots have rank equal to the average of the positions they would hold. Average ranks are decimal values, not integers This is for the Spearman corellation coefficient (rho) computation | [
{
"docid": "15eb3adf098417ad55e3a02a19f055fb",
"score": "0.77477527",
"text": "def average_ranks(ranks)\n sorted_ranks = ranks.sort\n rank_conv = []\n w = 0\n v = sorted_ranks[0]\n (1 .. ranks.length).each do |r|\n if r == ranks.length || sorted_ranks[r] != v\n v... | [
{
"docid": "4133cfff3b6b5fa6185ac96d16809ed0",
"score": "0.6698785",
"text": "def ranks( already_sorted = false )\n a = already_sorted ? self : sort\n map{ |i| (a.index(i) + a.rindex(i)) / 2.0 }\n end",
"title": ""
},
{
"docid": "35442a8a23c53e89d866d8d9fcb6ef83",
"score": "... |
d87d87c92da0765bfd0b9bb4621075ff | Supports oldstyle requests where specific request was a separate table connected as a resource | [
{
"docid": "46c0b73c878d8b4d2c34c4aaade3af19",
"score": "0.0",
"text": "def resource\n self\n end",
"title": ""
}
] | [
{
"docid": "b10a191adf1935d5b3faeb57e54358c0",
"score": "0.54031014",
"text": "def table\n Response\n end",
"title": ""
},
{
"docid": "bedf1828ae233069f246559e88c81e55",
"score": "0.533942",
"text": "def compatible (requests, request)\n requests.\n select {|r| request.id ... |
5984c39571c6eb851412c5279b25c6ea | Instantiate the new cluster. | [
{
"docid": "d9fe94c0621b843dc6514ce927a308a9",
"score": "0.0",
"text": "def initialize(seeds, monitoring, options = Options::Redacted.new)\n if seeds.nil?\n raise ArgumentError, 'Seeds cannot be nil'\n end\n\n options = options.dup\n if options[:monitoring_io] == false && !opt... | [
{
"docid": "b759c0460142ff25bbdd2b30998bc8a3",
"score": "0.7322417",
"text": "def create_cluster(cfg)\n msg = \"Creating OpenNebula cluster: #{cfg['cluster']['name']}\"\n\n OneProvisionLogger.debug(msg)\n\n # create new cluster\n cluster = Cluster.new\n ... |
2793038e428cc4d2fe26c177d1f53d82 | To execute test in new thread | [
{
"docid": "facb22b62ca7c2725c0fad64a904fd2a",
"score": "0.66510093",
"text": "def new_thread (thread_method_name, *args, &block)\n @any_threads = true\n Thread.new {\n Thread.current[:thread_method_name] = thread_method_name\n ret = \"\"\n begin\n #Thread start tim... | [
{
"docid": "13581ebc8c96ce29b241a4722243f894",
"score": "0.7238418",
"text": "def execute_tests\n instance_exec(&Thread.current[:test_block]) if Thread.current[:test_block]\n end",
"title": ""
},
{
"docid": "8070cf01e82acc4e4d86843e06ba340a",
"score": "0.70388365",
"text"... |
fd5982a2f46c906e74f3702b38108ef2 | abstraction for `operation.run` useful when there is no logic needed for deciding what to do with an operation or if there is no logic to decide which operation to use | [
{
"docid": "cab4a4efa6798a079d2c8b75513bb3fb",
"score": "0.0",
"text": "def model\n @model ||= operation.run\n end",
"title": ""
}
] | [
{
"docid": "834ecd8a0836b3fbc2211d7e97ee7817",
"score": "0.7213001",
"text": "def run\n handle_options()\n execute_operation()\n end",
"title": ""
},
{
"docid": "6474c734c9dccfab4e6180a68ac671be",
"score": "0.7122259",
"text": "def perform(operation, *args)\n runner... |
7a2bdf2074fcb4695d4bb9471f3637ed | Retrieve a single page of ConferenceParticipantInstance records from the API. Request is executed immediately. | [
{
"docid": "948669ef7af19c2131c5b1926af072d3",
"score": "0.5980718",
"text": "def get_page(target_url)\n response = @version.domain.request(\n 'GET',\n target_url\n )\n ConferencePartic... | [
{
"docid": "aed27d358abde5549eca1580db6f6ff1",
"score": "0.64385295",
"text": "def index\n page_id = params[:page] || 1\n @conferences = Conference.page(page_id)\n\n respond_to do |format|\n format.html # index.html.erb\n format.json { render json: @conferences }\n end\n end",
... |
a42655ed81ca1f9248ac5d85024f9fcd | are new registrations allowed | [
{
"docid": "27d7f617f84fc3c1694cf9df9dca943b",
"score": "0.65356064",
"text": "def new_registration_closed?\n new_reg_closed && !authorized_laptop && !late_registrant?\n end",
"title": ""
}
] | [
{
"docid": "e50553ef0322f12b44bcf176f2416745",
"score": "0.736872",
"text": "def registered?; end",
"title": ""
},
{
"docid": "ef5c7010d21348594d410e697bb7bc50",
"score": "0.72224855",
"text": "def new_registration?\n\t\t\t\tnew_registration || !new_registration.nil?\n\t\t\tend",
... |
bbf32173c6236b55f42bc1fb35224ef5 | The timestamp to stop enumerating at. | [
{
"docid": "00f0cb33ea9076bf1f8b9113b8177202",
"score": "0.0",
"text": "def end(value)\n merge(bkend: value.iso8601)\n end",
"title": ""
}
] | [
{
"docid": "b78ceb434c1197767154482f3fa02c9a",
"score": "0.7045415",
"text": "def stop_time\n Time.at(super.to_i)\n end",
"title": ""
},
{
"docid": "ecd135a85aef07eded20264d432b6474",
"score": "0.6631412",
"text": "def end_time\n if ev = stop_event.last\n ... |
be4147521e05b3940a6da02d19d6d847 | List all actions of a request Return actions in a given request, available for admin/approver | [
{
"docid": "75677a8ff198079def9e167f4a4b0dff",
"score": "0.0",
"text": "def list_actions_by_request_with_http_info(request_id, opts = {})\n if @api_client.config.debugging\n @api_client.config.logger.debug 'Calling API: ActionApi.list_actions_by_request ...'\n end\n # verify the re... | [
{
"docid": "a37e714d4752bec2a3f244f5e6c60561",
"score": "0.7240312",
"text": "def actions\n return @actions if @actions\n @actions = Client.get(\"/lists/#{id}/actions\").json_into(Action)\n end",
"title": ""
},
{
"docid": "0f7524fe20ab3fdd760b609cf0a3ee0d",
"score": "0.72192... |