query_id stringlengths 32 32 | query stringlengths 7 6.75k | positive_passages listlengths 1 1 | negative_passages listlengths 88 101 |
|---|---|---|---|
330a5e4b1a75059bdda7ce5dd6fc3323 | don't have to worry about published: false here because those aren't built by default | [
{
"docid": "9a63255275fada0dee2727b1532e6066",
"score": "0.0",
"text": "def non_draft_articles(articles)\n articles.select { |a| !a.data[:draft] }\n end",
"title": ""
}
] | [
{
"docid": "53bfa14609fefd898b0c26fdc77f9d3c",
"score": "0.73897356",
"text": "def publishable?; false; end",
"title": ""
},
{
"docid": "876f9f521687d6e4834972817d4e02d5",
"score": "0.711054",
"text": "def publish\n self.published = true\n end",
"title": ""
},
{
"doci... |
c50b8eaa961baf6c5b6a18f7b32b66c2 | PDF Reference 6th Edition, Version 1.7, November 2006 page 606 The annotation name, a text string uniquely identifying it among all the annotations on its page. | [
{
"docid": "62d69fce03854f56009cea29d25bd374",
"score": "0.0",
"text": "def name\n data[:NM]\n end",
"title": ""
}
] | [
{
"docid": "5256e1c5fffdb79000cc1bcf975e2027",
"score": "0.6421303",
"text": "def _addTextAnnotations(text, annotations)\n # Index annotations by their start and end positions.\n annotation_index_by_start = {}\n annotation_index_by_end = {}\n\n for a in annotations do\n if not annotat... |
893c343d7409dc8e52926e85bc07f310 | DELETE /tags/1 DELETE /tags/1.xml | [
{
"docid": "ed8ca37dc1df8604e6057d25058947b5",
"score": "0.72433907",
"text": "def destroy\n @tag = Tag.find(params[:id])\n @tag.destroy\n\n respond_to do |format|\n format.html { redirect_to(tags_url) }\n format.xml { head :ok }\n end\n end",
"title": ""
}
] | [
{
"docid": "d67c29208071bc07677edfe1b1e5ef52",
"score": "0.78166556",
"text": "def tagDelete(tag)\n http, req = initReq(\"tags/#{tag}\", \"DELETE\")\n http.request(req).body\nend",
"title": ""
},
{
"docid": "d67c29208071bc07677edfe1b1e5ef52",
"score": "0.78166556",
"text": "def tag... |
431b75b0c24fcdd7c5fce7c5c4babffb | POST /tickets POST /tickets.json | [
{
"docid": "6fc8e5d3f73c41bc9ea657b466a13135",
"score": "0.0",
"text": "def create\n @ticket = Ticket.new(params[:ticket])\n if params[:ticket][:user]\n @ticket.user = current_user\n end\n @ticket.url = request.original_url\n respond_to do |format|\n if @ticket.save\n fla... | [
{
"docid": "622fb8d5f95dbd5f8ca6652206fabcbc",
"score": "0.78806764",
"text": "def CreateTicket params = {}\n\n APICall(path: 'tickets.json',method: 'POST',payload: {ticket: params}.to_json)\n \n end",
"title": ""
},
{
"docid": "1508f8bd77f136b34c1b8528244a5c01",
"scor... |
ecfc2884ee03bc89d7fa59e2f6368ec8 | Sets game state to over | [
{
"docid": "2ed6cbeb11bc829cb2f6ae7ca901d3d0",
"score": "0.7041975",
"text": "def game_end\n @game_over = true\n end",
"title": ""
}
] | [
{
"docid": "701a7d7195d50fb84a03750f0f14f6f4",
"score": "0.74240327",
"text": "def start_game_over\n @img_game_over = Game.images[\"gameover\"]\n @game_over = true\n end",
"title": ""
},
{
"docid": "4000957054f3ff81a7514712a5171e46",
"score": "0.73737866",
"text": "def f... |
fbba3b360b50605d4e2d72c3f03cf70c | keywords functions POST /users/1/keywords | [
{
"docid": "32404953ddbae9735f92cc77cf68d003",
"score": "0.5824928",
"text": "def add_keyword\n raise UnprocessableEntityError.new(@customer.errors) unless @customer.add_keyword(params[:keyword])\n render :json => { :keyword => params[:keyword] }\n end",
"title": ""
}
] | [
{
"docid": "fe9ac09ff53f2b88f75fc5cab279de5f",
"score": "0.7492714",
"text": "def keywords_params\r\n params.require(:user).permit(:keywords)\r\n end",
"title": ""
},
{
"docid": "ce239385ec650c73e5d96ae95638149a",
"score": "0.69673866",
"text": "def register(params)\n @keywords ... |
a47a2bef385bc5623cf5bc7aff16637d | Defines a callback that will get called right after the job's perform method has finished. class VideoProcessJob < ActiveJob::Base queue_as :default after_perform do |job| UserMailer.notify_video_processed(job.arguments.first) end def perform(video_id) Video.find(video_id).process end end source://activejob//lib/active... | [
{
"docid": "717ab42f488e6aa6d1e843af780c0c16",
"score": "0.0",
"text": "def after_perform(*filters, &blk); end",
"title": ""
}
] | [
{
"docid": "657aadf1ce0599ba7034139ac8a62f76",
"score": "0.6422999",
"text": "def perform\n video = FFMPEG::Movie.new(self[:videoPath])\n @newFilePath = '/uploads/' + self[:multimedia_id].to_s + '.mp4'\n delayed_job = DelayedJob.where(\"handler REGEXP ?\", @regex_pattern).to_a[0]\n\n ... |
0073b8fe4386632ef08c6d501bc46b02 | Mark the given constant as unloadable. Unloadable constants are removed each time dependencies are cleared. Note that marking a constant for unloading need only be done once. Setup or init scripts may list each unloadable constant that may need unloading; each constant will be removed for every subsequent clear, as opp... | [
{
"docid": "debefc8c0c251ff661ee6270744936fa",
"score": "0.7112527",
"text": "def unloadable(const_desc)\n Dependencies.mark_for_unload const_desc\n end",
"title": ""
}
] | [
{
"docid": "e600f508894ad95fc364ca1ff11952fe",
"score": "0.78384775",
"text": "def mark_for_unload(const_desc)\n name = to_constant_name const_desc\n if explicitly_unloadable_constants.include? name\n false\n else\n explicitly_unloadable_constants << name\n true\n ... |
af630984682f1a0b5a68e6092af0d102 | Update properties of this object | [
{
"docid": "a184ac60f0d038aff90c50b2981bab5b",
"score": "0.0",
"text": "def update!(**args)\n @items = args[:items] if args.key?(:items)\n end",
"title": ""
}
] | [
{
"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... |
6ddae37a7eecf0312c94dc0dd56a134c | PATCH/PUT /teams/1 PATCH/PUT /teams/1.json | [
{
"docid": "57641c13115272d10b5084e6766f1d4a",
"score": "0.0",
"text": "def update\n p = params.require(:team).permit(:name, :description)\n change_name_description(@team, :team, p, team: @team.name)\n end",
"title": ""
}
] | [
{
"docid": "6d7c0acb1e790e4f00d3ae13b83415cc",
"score": "0.72904956",
"text": "def update\n @team = Team.find(params[:id])\n\n if @team.update_attributes(params[:team])\n head :no_content\n else\n render json: @team.errors, status: :unprocessable_entity\n end\n end",
"title": ... |
93040fb2cf7f60f764fe51b607343ade | Converts a numeric value to binary and adds it to the object table | [
{
"docid": "019870439fe10e7b2a7c8c6179057287",
"score": "0.7999949",
"text": "def num_to_binary(value)\n saved_object_count = @written_object_count\n @written_object_count += 1\n\n val = \"\"\n if(value.is_a?(CFInteger)) then\n val = int_to_binary(value.value)\n else\n ... | [
{
"docid": "b660b6cef3d93f7db15f36fbf1289068",
"score": "0.7372401",
"text": "def data_to_binary(val)\n saved_object_count = @written_object_count\n @written_object_count += 1\n\n bdata = Binary.type_bytes(\"4\", val.bytesize) # a is 1000, type indicator for data\n @object_table[save... |
d7468a428ebb23b7dc01a59ec725d407 | PUT /games/1 PUT /games/1.xml | [
{
"docid": "4c2efcbe66c31a53d81e85a20eafd793",
"score": "0.59359264",
"text": "def update\n @game = Game.find(params[:id])\n @game.active_frame = params[:active_frame]\n @game.save!\n\n respond_to do |format|\n if @game.update_attributes(params[:game])\n format.html { redirect_to... | [
{
"docid": "7dcf61d28367255f0ec9cea7ade341de",
"score": "0.6579802",
"text": "def update(id, name=\"Updated Name\", published=\"false\", genre=\"movie\")\r\n xml_req =\r\n \"<?xml version='1.0' encoding='UTF-8'?>\r\n <timeline>\r\n <published type='string'>#{published}</published>\r\n ... |
0f6f36be5ffd9d2d734da50d3ffef66a | Store a message in the result array | [
{
"docid": "283e3e50e965d33e8bd81e2ca27256d3",
"score": "0.58401144",
"text": "def keep message\n @messages << message\n end",
"title": ""
}
] | [
{
"docid": "99000c00fd0151d2e7682b65be99d6c8",
"score": "0.68374443",
"text": "def message_results\n @message_results\n end",
"title": ""
},
{
"docid": "7a370a0bd42bd511cb15f0b3ec534c55",
"score": "0.682338",
"text": "def message_results=(value)\n @mess... |
f96c9d1e8b42d5928d0989c2859609cf | Creates the S3 bucket and config directory. Deploys the config templates and creates the sqlite database. | [
{
"docid": "32c71e4434e4693ef252c98a108f9b06",
"score": "0.66426194",
"text": "def create(bucket_name)\n create_bucket(bucket_name)\n deploy_templates(bucket_name)\n load_database\n\n status_message(bucket_name, 'created')\n end",
"title": ""
}
] | [
{
"docid": "aa4802e7c1f600bb6b758bb142dfd969",
"score": "0.69232976",
"text": "def configure_s3_bucket\n connection = Fog::Storage.new(:provider => 'AWS',\n :aws_access_key_id => Constants::S3_ACCESS_KEY_ID,\n :aws_sec... |
97d3ed0ae90f5bb9acad6e8a2fa3806d | Give true when "Due Date" changes happens in past and its alert already sent. | [
{
"docid": "3f288ec4c95748bfb79f6ee2c3d611e6",
"score": "0.0",
"text": "def obsolete?\n @when < @since\n end",
"title": ""
}
] | [
{
"docid": "06283023d1707b42cda8e706ac1ce9a6",
"score": "0.74849534",
"text": "def due_later?\n @due_date > Date.today\n end",
"title": ""
},
{
"docid": "94848949209cbfb1c0506f746aba11a9",
"score": "0.738243",
"text": "def overdue?\n self.due_date < Date.today ? true : false\n... |
e7b0e56535278e7daf30061b80d2658f | Returns an ActiveRecord relation containing people whos name includes the passed string | [
{
"docid": "693ea4823e56d60f919808cb6083a832",
"score": "0.6281191",
"text": "def name_like(name)\n name = SqlHelper::escapeWildcards(name)\n where{first_name.op('||', ' ').op('||', last_name).like(\"%#{name}%\")}\n end",
"title": ""
}
] | [
{
"docid": "b9a501ef73ec517e7632848f8b451a74",
"score": "0.64200985",
"text": "def for(name, obj = nil)\n on(obj).where(:name => name.to_s.downcase)\n end",
"title": ""
},
{
"docid": "d898771cedb869220298ef89e8be791e",
"score": "0.62816495",
"text": "def scoped_name_is(name)\... |
70cce8426975edc45d82595b87b95aaa | PATCH/PUT /carasols/1 PATCH/PUT /carasols/1.json | [
{
"docid": "5d750030e19c42c6a60d47f85f0a0d1c",
"score": "0.0",
"text": "def update\n if @carasol.update(carasol_params)\n redirect_to @carasol, notice: 'Carasol was successfully updated.'\n else\n render :edit\n end\n end",
"title": ""
}
] | [
{
"docid": "0f7695554316cd28127c2a028c409b62",
"score": "0.6253025",
"text": "def update\n # { clinic: {id: references, \"license_id\"=>nil, \"name\"=>string } }\n \n if @clinic.update_attributes(params[:clinic].except(:api_license_id))\n head :no_content\n ... |
00a9216cb1d4856e6a45ce26ccfcb0e9 | Caseinsensitive version of String. "abcdef".casecmp("abcde") => 1 "aBcDeF".casecmp("abcdef") => 0 "abcdef".casecmp("abcdefg") => 1 "abcdef".casecmp("ABCDEF") => 0 | [
{
"docid": "6cb612fc7f4f16fa6f9fd0224c5c4efd",
"score": "0.65428925",
"text": "def casecmp(to)\n to = StringValue(to)\n order = @num_bytes - to.num_bytes\n size = order < 0 ? @num_bytes : to.num_bytes\n\n ctype = Rubinius::CType\n\n i = 0\n while i < size\n a = @data[i]\n b =... | [
{
"docid": "afb551000c0d21b6aa5b50c5d87340e6",
"score": "0.7502996",
"text": "def str_cmp(str1, str2)\n str1.downcase.eql?(str2.downcase)\nend",
"title": ""
},
{
"docid": "89211e84bcbdde528a5d53ce67c10bc9",
"score": "0.74801815",
"text": "def casecmp(str)\n self.downcase <=> str.... |
e66c4647d98a0e7f86b857f499954c54 | Add user method that ensure user also adds posts | [
{
"docid": "c66cab6c02639f2c9e4d6ae53eea133d",
"score": "0.0",
"text": "def initialize(answers_hash)\n answers_hash.each {|key, value| self.send(\"#{key}=\", value)}\n user = User.create(self.username, self.reputation)\n self.user = user\n add_answer_to_post\n @@all << self\n end",
"... | [
{
"docid": "4db7bcc2d305975e1c4197cf6a01a491",
"score": "0.7309052",
"text": "def add_post\n if current_user.id.to_s == params[:user_id].to_s\n post = Post.new(:user_id => params[:user_id], :content => params[:content],\\\n :title => params[:title], :upvotes => 0, :downvotes => 0, :rank =>... |
97489c6ea1f085e667e47a2af7754006 | set path to '/' | [
{
"docid": "16a5d2937ebcfdd204e92858d2df9f87",
"score": "0.0",
"text": "def urify(url)\n url = url.to_s.downcase\n if %r(^https://) !~ url\n url = 'https://' + url\n end\n URI.parse(url) + '/'\n end",
"title": ""
}
] | [
{
"docid": "9e16bf28e483281d6b012aa74e5bf29d",
"score": "0.74343234",
"text": "def path=(path)\n path = \"#{path}/\" unless path[path.size - 1, 1] == '/'\n @paths = { :default => path }\n end",
"title": ""
},
{
"docid": "6c4bb6f56c2034b13ebc00ee6f0e2e64",
"score": "0.7263812... |
92e14207b00a0fa4ca0c5978e4b7cd24 | sets value of date time picker input by label or id. | [
{
"docid": "dc7d44626d2243855f3e53b3de4d5dd8",
"score": "0.8059165",
"text": "def set_date_time(field, text)\n # date time picker can't be found by label\n # so we need to find it by input id\n input = field_input(field, exact: true)\n input.set(text)\n end",
"title": ""
}
] | [
{
"docid": "662f55fe9d4b1623e376d992a74545fe",
"score": "0.6739302",
"text": "def set_Date(value)\n set_input(\"Date\", value)\n end",
"title": ""
},
{
"docid": "662f55fe9d4b1623e376d992a74545fe",
"score": "0.6739302",
"text": "def set_Date(value)\n set... |
b4f72dafef5ccf2acb3fd542b4f31e3b | Sets the attribute from_table | [
{
"docid": "babae20cdfefa4c1706424fd241fbad0",
"score": "0.74998796",
"text": "def from_table=(_); end",
"title": ""
}
] | [
{
"docid": "0de29aa35cc5ec9d24e577b86f36924e",
"score": "0.7202069",
"text": "def set_table(t)\n @table = t\n end",
"title": ""
},
{
"docid": "229ad15c34db384a8a263ec92de1d9e3",
"score": "0.7157236",
"text": "def table(table)\n @table = table\n self\n end",
"... |
07feadba95ba60a47c5fadaba2794cde | The SPARQL gem stomps on the Rails definition of deep_dup and gives us a Hash instead of a HashWithIndifferentAccess. This is an ugly workaround to get the right contract with the upstream class. | [
{
"docid": "5219201183decf21e85e7e000e654c44",
"score": "0.0",
"text": "def to_hash\n super.with_indifferent_access\n end",
"title": ""
}
] | [
{
"docid": "3aa25d96536088252008ace87d426b09",
"score": "0.7552678",
"text": "def deep_dup; end",
"title": ""
},
{
"docid": "3aa25d96536088252008ace87d426b09",
"score": "0.7552678",
"text": "def deep_dup; end",
"title": ""
},
{
"docid": "3aa25d96536088252008ace87d426b09",... |
2164dd898bad9c4ec96888d7275e8362 | Recursive method that parses all of Sequel's internal datastructures, adding the appropriate nodes and transitions to the internal +dot+ structure. | [
{
"docid": "516c22dfa612bae503210683b39575dd",
"score": "0.0",
"text": "def v(e, l)\n @i += 1\n dot(l, \"#{@stack.last} -> #{@i}\") if l\n @stack.push(@i)\n case e\n when LiteralString\n dot \"#{e.inspect}.lit\" # core_sql use\n when Symbol, Numeric, String, Class, T... | [
{
"docid": "1e7f48c0b3618c6ecd51428a3ee11007",
"score": "0.5830498",
"text": "def load_objects! # rubocop:disable Metrics/CyclomaticComplexity\n @tables = [] # types: select, dml, ddl\n @cte_names = []\n @aliases = {}\n @functions = [] # types: call, ddl\n\n statements = @tree.s... |
d00278263073a7ccdc89c82dee463259 | Rack compatible call. If matching route is found, and +dest+ value responds to call, processing will pass to the matched route. Otherwise, the default application will be called. The router will be available in the env under the key router. And parameters matched will be available under the key router.params. The HttpR... | [
{
"docid": "27e59837ac871331fbd081dc97645877",
"score": "0.61494803",
"text": "def call(env)\n request = ::Rack::Request.new(env)\n if redirect_trailing_slash? && (request.head? || request.get?) && request.path_info[-1] == ?/\n response = ::Rack::Response.new\n response.redirect(request.... | [
{
"docid": "fee653cd43acf3f79509571c887c6376",
"score": "0.7543839",
"text": "def call(env)\n request = Rack::Request.new(env)\n if redirect_trailing_slash? && (request.head? || request.get?) && request.path_info[-1] == ?/\n response = Rack::Response.new\n response.redirect(request.path_... |
e925af10f74896474dae2be001f92677 | Return Running Software Version. This endpoint returns the version of Ory Kratos. If the service supports TLS Edge Termination, this endpoint does not require the `XForwardedProto` header to be set. Be aware that if you are running multiple nodes of this service, the version will never refer to the cluster state, only ... | [
{
"docid": "847413cadfbd96cfd6d3895af01d9d4d",
"score": "0.6157631",
"text": "def get_version(opts = {})\n data, _status_code, _headers = get_version_with_http_info(opts)\n data\n end",
"title": ""
}
] | [
{
"docid": "624dfbb0421e8f6b1ca72a96ca11326e",
"score": "0.68436193",
"text": "def get_version\n request('getVersion')\n end",
"title": ""
},
{
"docid": "03722e34dfcfe0773e53f562fb44741b",
"score": "0.68400264",
"text": "def version\n fetch('vehicle.version')\n en... |
97e01bf860bca386faa856c2324c070e | PUT /featured_users/1 PUT /featured_users/1.json | [
{
"docid": "44ff405a6b2c6f6ce9d8614e4f527ba8",
"score": "0.76024723",
"text": "def update\n @featured_user = FeaturedUser.find(params[:id])\n\n respond_to do |format|\n if @featured_user.update_attributes(params[:featured_user])\n format.html { redirect_to @featured_user, notice: 'Feat... | [
{
"docid": "4b44e9903119735bc4a6269aa8cd1206",
"score": "0.7172071",
"text": "def update\n @featured_user = FeaturedUser.find(params[:id])\n\n respond_to do |format|\n if @featured_user.update_attributes(params[:featured_user])\n format.html { redirect_to admin_featured_users_url, noti... |
d888dc08402a86cfea16da7e53fc67dd | GET /users/:user_id/user_assignment Returns all UserAssignments for the given User | [
{
"docid": "e92fd8e8d30ed8ee8e97c960483cc763",
"score": "0.7506308",
"text": "def index\n userId = params[:user_id]\n\n if !can?(current_user, :get_user_assignments, User.where(id: params[:user_id]).first)\n render status: :forbidden, json: {}\n return\n end\n\n result = @assignmen... | [
{
"docid": "b53aa5bbaeaea589489e5317580fd9d3",
"score": "0.73798126",
"text": "def assignments\n begin\n display_options = {:except =>[:user_id], :include => {:user => {:except => [:undoable_date]}}}\n user = User.find(params[:id])\n result = user.get_assignments\n generate_respon... |
0808e857cea1272b28c1277cce815be6 | Write a method to_initials that takes in a person's name string and returns a string representing their initials. | [
{
"docid": "c3e82758ba1e7f3628bd66235f94c021",
"score": "0.691654",
"text": "def to_initials(name)\n \n new_arr = name.split(\" \")\n ele1 = new_arr[0][0]\n ele2 = new_arr[1][0]\n\n initials = ele1 + ele2\n return initials\n\nend",
"title": ""
}
] | [
{
"docid": "c766179d28b2acad58d83947ecd98e5f",
"score": "0.7732954",
"text": "def to_initials(name)\n array = name.split(' ')\n initials = ''\n array.each { |part| initials += part[0] }\n initials\n end",
"title": ""
},
{
"docid": "2943499b3ea4b013bdef3e6074ef6a76",
"score": "0.76588... |
c657de4b70d266e9a3a784b999ea9e60 | Never trust parameters from the scary internet, only allow the white list through. | [
{
"docid": "4525759ff2f112d8470a078b179027d2",
"score": "0.0",
"text": "def nonprofit_organization_params\n params.require(:nonprofit_organization).permit(:name, :mission, :type, :phone, :address_1, :address_2, :city, :state, :zip)\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... |
7945dfa485475c4d7c74b10b9679296c | This is a super hack define. It was stupid to have getters for everything, so I just made one instead. This returns a hash with all of the expected values in place and you simply have to fetch the one you want. I suppose this works almost like prefetching but without the magic. | [
{
"docid": "535ad4913fe65a00fba0d2e8bd9f561b",
"score": "0.0",
"text": "def retrieve\n if not @perm_values then\n if not File.readable?(\"#{@perm_target}/tasks\") then\n raise Puppet::Error, \"You do not appear to have a cgroup mounted at '#{@perm_target}'\"\n end\n\n @perm_valu... | [
{
"docid": "5a3dc0e6482d536f380828c82e0f7fb7",
"score": "0.61250025",
"text": "def getters; end",
"title": ""
},
{
"docid": "d7379dc39e5e5fe8a95e16bf8f08315a",
"score": "0.5781976",
"text": "def properties\n self.persistent_class.property_iterator.to_a.inject({}) do |h, value|\n... |
8916b197967a6064d76f85fb4597f25b | Build a nominal type | [
{
"docid": "6ce4d6390c441117c6d1de4992061dd3",
"score": "0.6223959",
"text": "def Nominal(klass)\n if klass <= ::Array\n Array.new(klass)\n elsif klass <= ::Hash\n Hash.new(klass)\n else\n Nominal.new(klass)\n end\n end",
"title": ""
}
] | [
{
"docid": "9613e701b358bccd95006849d4a21979",
"score": "0.61291337",
"text": "def build(attrs = {})\n attrs[:type] ? attrs[:type].constantize.new(attrs) : new(attrs)\n end",
"title": ""
},
{
"docid": "8b9ce21a96b1b87e6ad552a1be3745f1",
"score": "0.6021723",
"text": "def ... |
6a257c19498b6f205b23e086d1f0a495 | DELETE /indicadores/1 DELETE /indicadores/1.json | [
{
"docid": "15264650111cd54d1fdb57c7b5301c57",
"score": "0.7477726",
"text": "def destroy\n @indicador = Indicador.find(params[:id])\n @indicador.destroy\n\n respond_to do |format|\n format.html { redirect_to indicadores_url }\n format.json { head :no_content }\n end\n end",
"... | [
{
"docid": "028cc9b12323557ddb50144effeb82f3",
"score": "0.7492347",
"text": "def destroy\n @indicador.destroy\n respond_to do |format|\n format.html { redirect_to indicadores_url }\n format.json { head :no_content }\n end\n end",
"title": ""
},
{
"docid": "e08abdd5f90793... |
af630984682f1a0b5a68e6092af0d102 | Update properties of this object | [
{
"docid": "c50bee46cfd64df3c17b15bdd44606b6",
"score": "0.0",
"text": "def update!(**args)\n @kind = args[:kind] if args.key?(:kind)\n @regions = args[:regions] if args.key?(:regions)\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... |
62160ac374077a3e3ae92e777f604b87 | Awaken the specified VM and resume it on a particular Host. This can only be called when the VM is in the Suspended state. | [
{
"docid": "6b29b08095a58bd23e0ac52310ae0249",
"score": "0.5950331",
"text": "def resume_on!(host, start_paused=false, force=false)\n host = model_instance(host, 'Host')\n proxy.resume_on(host, (!!start_paused).to_s, (!!force).to_s)\n nil\n end",
"title": ""
}
] | [
{
"docid": "1b5de009f24b48b91c33d91c4dc94063",
"score": "0.6387513",
"text": "def resume\n @logger.debug(\"Resuming paused VM...\")\n domain = @conn.lookup_domain_by_uuid(@uuid)\n domain.resume\n true\n end",
"title": ""
},
{
"docid": "1b5de009f24b4... |
491de5a435a5f55eb4b46617c15d05b1 | GET /list_values/1 GET /list_values/1.json | [
{
"docid": "a81945373733e4951b987de6ea99f9a1",
"score": "0.0",
"text": "def show\n end",
"title": ""
}
] | [
{
"docid": "89bf097d9838c541ce5b628d7637c1fa",
"score": "0.711664",
"text": "def index\n @list_values = ListValue.all\n end",
"title": ""
},
{
"docid": "3c855b963a7b3fbea2299dc4db3e10b7",
"score": "0.70863974",
"text": "def values(params = {})\n @client.get(\"#{path}/values\",... |
d7a1b4383b79da8f03a621edcdb6ab41 | GET /programs/1 GET /programs/1.json | [
{
"docid": "4057af06f1e081cf6fbaffb9ae352871",
"score": "0.7734154",
"text": "def show\n @program = Program.find(params[:id])\n\n respond_to do |format|\n format.html # show.html.erb\n format.json { render json: @program }\n end\n end",
"title": ""
}
] | [
{
"docid": "293796fa8885732939310d444cb7815e",
"score": "0.768321",
"text": "def show\n @program = Program.find(params[:id])\n\n respond_to do |format|\n format.html # show.html.erb\n format.json { render :json => @program }\n end\n end",
"title": ""
},
{
"docid": "a102fa... |
894ff31595fe7affa090d1a3bc6ceb36 | def method_name(argument or parameter?) logic in here end call the method. here we "pass" arguments to the method method_name(argument) say.rb puts "hello" puts "hi" puts "how are you" puts "i'm fine" say.rb refactored def say(words) puts words + '.' end say("hello") say("hi") say("how are you") say("i'm fine") refacto... | [
{
"docid": "5b614e3eb83788b876a538af5877d7e1",
"score": "0.0",
"text": "def say(words='hello')\n p words + '.'\nend",
"title": ""
}
] | [
{
"docid": "11469b91c9fa926fee7d3f86f791f11c",
"score": "0.8049486",
"text": "def say_hi(name =\"no name\", age = 0) # you can add parameters to the method, you can also set defualt values to the parameters as across\r\n puts \"Hello #{name} you are #{age}\"\r\nend",
"title": ""
},
{
"docid... |
e65b5e33f3acd93125d7efb45fd5b4dc | Check if a concept is activated for doing | [
{
"docid": "90a218504c6453fcb9cf4113bacaa74f",
"score": "0.0",
"text": "def add_enabled_stage submission, concept\n if Assessment::GuidanceConceptOption.can_enter_with concept\n concept_stage = submission.concept_stages.new\n concept_stage.topicconcept_id = concept.id\n concept... | [
{
"docid": "5c19962fe7bdc1fc6451cc47313f7c57",
"score": "0.6254718",
"text": "def can_act?(entity)\n active_step&.current_entity == entity\n end",
"title": ""
},
{
"docid": "673b978c6d0d29681c2a1af704458e92",
"score": "0.62097055",
"text": "def awardable_act?\n !(import_... |
c269cfa65d9f5e7653868419ba042a3e | PATCH/PUT /pages/1 PATCH/PUT /pages/1.json | [
{
"docid": "f7a6c82d61b15bdd81ff4764313cb707",
"score": "0.65576476",
"text": "def update\n respond_to do |format|\n if @page.update(page_params)\n format.html { redirect_to page_url(id: @page.page_name),\n notice: t('.page_was_successfully_updated') }\n format... | [
{
"docid": "f22e4955b6955e8dc626f577bf35ca61",
"score": "0.68406874",
"text": "def update\n puts \"UPDATE\"\n @page = Page.get(params[:id])\n\n respond_to do |format|\n attrs = params[:page]\n no = attrs[\"no\"]\n if no.is_a?(String) && /\\d+/ =~ no\n attrs[\"no\"] = no.to_i\n ... |
654e8ed8d4aa1d2a7e2d7068ff30f1ab | Returns the wrapped iOS MKMapPoint object Returns : A MKMapPoint representation of self | [
{
"docid": "505d106dbf6f19bfdda9096abf4e3ac5",
"score": "0.5809813",
"text": "def api\n MKMapPointMake(@x, @y)\n end",
"title": ""
}
] | [
{
"docid": "207aae57eaf809e7f423f6fb716f9e7d",
"score": "0.6359304",
"text": "def point\n Point.new(latitude, longitude)\n end",
"title": ""
},
{
"docid": "a8d781ede0320f70957b1277b53c81e1",
"score": "0.6131926",
"text": "def point\n return { \"type\": \"Point\", \"coordinates... |
8896e6630175238bfa7e981ff209a39f | Prevent Bold, Emphasised or Linked text breaking if it's short. | [
{
"docid": "1533146e93e98bb794b5881c17998d74",
"score": "0.5534388",
"text": "def emphasis(text)\n \"<em>#{do_not_break_string(text)}</em>\"\n end",
"title": ""
}
] | [
{
"docid": "de75f91be1b2ccba781121be23d7798d",
"score": "0.65828335",
"text": "def allow_short_words?\n not @emphasis[:ignore_short_words]\n end",
"title": ""
},
{
"docid": "8a870861d88de778650b47f89c45f260",
"score": "0.64815605",
"text": "def do_not_break_string(min_words =... |
f74c29bdfc4a183e1ec1b91334cd5be2 | Use callbacks to share common setup or constraints between actions. | [
{
"docid": "0e90773126c11894403f0f2db669aef6",
"score": "0.0",
"text": "def set_card\n @card = Card.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... |
45aa9c5f614c63b0d8f71fe823a74f8c | prevent authenticate_user! from running before the desktop_version action | [
{
"docid": "380d323e53840b38ca9aa0799008ed9e",
"score": "0.0",
"text": "def requested_public_url?\n request.env['PATH_INFO'].ends_with?('/desktop_client/version')\n end",
"title": ""
}
] | [
{
"docid": "8d3c51ac44973274aa8a6cacd94586b5",
"score": "0.6504932",
"text": "def authorized!\n redirect_to root_url, alert: \"You need to be set up for receiving whispers first\" and return unless current_user\n end",
"title": ""
},
{
"docid": "f4f130b4eece3d313f9a8611495f2ef5",
"sc... |
44b4249a999757ccdc1605d4e074deb0 | reduce 605 omitted reduce 606 omitted | [
{
"docid": "eff450c3370fac5a7267229271b47ba9",
"score": "0.0",
"text": "def _reduce_607(val, _values, result)\n _, (id, line) = val\n identifier = id.to_sym\n\n self.env[identifier] = :lvar\n result = [\"&#{identifier}\"... | [
{
"docid": "a72ccd2cf9eac3ad24d997538b04c62e",
"score": "0.72208107",
"text": "def _reduce_605(val, _values, result)\n result = nil\n \n result\nend",
"title": ""
},
{
"docid": "dd458ee5bd7f974c08686357ef463ece",
"score": "0.71560144",
"text": "... |
8315288d0c34ac17206b35e2a5c4a1ef | Adds auc_pagination_meta to rack env to be used by middlewares Sets has_more field value by checking if resultset has more elements than limit Chops result array to size of limit Has to be handled here as default params (limit=?) are not accessible in rack env | [
{
"docid": "70c8cb13b3fd0bffba655b4601ef1d73",
"score": "0.6690393",
"text": "def paginated(result, params, with = API::Entities::Notification)\n env['auc_pagination_meta'] = params.to_hash\n if result.respond_to?(:count) && result.count > params[:limit]\n env['auc_pagination_meta... | [
{
"docid": "b3dd9497eb1de7ae631258f8ab80fa4c",
"score": "0.6063316",
"text": "def fetch_more?(options, resp)\n page_size = options[:_pageSize] || options['_pageSize']\n\n return unless page_size && resp.is_a?(Array)\n resp.pop while resp.length > page_size\n\n resp.length < page_size\n end"... |
0038dcda11b36f5124dc69b2b287b866 | Removes and then stores the files placed in the removal and storage queues, repectively. | [
{
"docid": "b61e9f1380036e5d095646233249ca4e",
"score": "0.5987108",
"text": "def flush\n remove!\n store!\n end",
"title": ""
}
] | [
{
"docid": "9546796b931c496dbdfc6ed126e29e06",
"score": "0.71593064",
"text": "def remove!\n @queue_for_removal.each do |path|\n FileUtils.rm(path) if File.exist?(path)\n end\n @removed = @queue_for_removal.dup\n @queue_for_removal.clear\n end",
"title": ""
... |
886f55ae9c34405b532b8705ba29033a | Gets the appManagementPolicies property value. The appManagementPolicy applied to this application. | [
{
"docid": "f84b1f7b3887c5bca64816b2b5115d63",
"score": "0.815786",
"text": "def app_management_policies\n return @app_management_policies\n end",
"title": ""
}
] | [
{
"docid": "3b3ad772162a58bf65eca087b60730ca",
"score": "0.79251957",
"text": "def app_management_policies=(value)\n @app_management_policies = value\n end",
"title": ""
},
{
"docid": "c8065298726c91cab672c00176454f9d",
"score": "0.772579",
"text": "def mana... |
c5d2e5a71683bf52d3a7e79610ca7b0a | POST /projects POST /projects.json | [
{
"docid": "fe950416dc752a5e614b3319375c3de0",
"score": "0.0",
"text": "def create\n @project = Project.new(project_params)\n @tags = params[:tags].split(',')\n @tagged = []\n @project.user_id = current_user.id\n respond_to do |format|\n if @project.save\n @activity = Activit... | [
{
"docid": "3987b362caed851c61fc0c13c211f4a8",
"score": "0.7338948",
"text": "def create\n @project = Project.new(params[:project])\n\n respond_to do |format|\n if @project.save\n format.json { render :json => @project, :status => :created, :location => @project }\n format.html ... |
e8375aa0cc012201d3bac68068aa4881 | This is the max capacity of the docking station def initialize(capacity) | [
{
"docid": "9b54d740faec19986a146b3ed6e31ab4",
"score": "0.7784528",
"text": "def initialize(capacity=DEFAULT_CAPACITY)\n @capacity = capacity\n @docked_bikes = []\n # @capacity = DEFAULT_CAPACITY\n end",
"title": ""
}
] | [
{
"docid": "d1df195f456065c066c7b3ecbc4cb8f7",
"score": "0.82873595",
"text": "def initialize(capacity = 20)\n @docking_station = []\n @capacity = capacity\n end",
"title": ""
},
{
"docid": "625177530e224cec0ec4a4b9bc8d0e97",
"score": "0.7829309",
"text": "def initialize\n \t\... |
41879a8341676c69890bf8be3cf57f30 | Retrieves all projects. Note: this requires project manager or administrator authorization. | [
{
"docid": "b541f14cf08c08847c2efa1a65529ffa",
"score": "0.0",
"text": "def all(*)\n super\n rescue NotFound => e\n raise NotFound.new(e.response, e.params, \"Do you have sufficient privileges? If not, consider using time.trackable_projects instead.\")\n end",
"title": ""
}... | [
{
"docid": "4a454f57d2fc22894901471feb24af9e",
"score": "0.84131116",
"text": "def all_projects\n resp = @conn.get 'projects.json'\n resp.body\n end",
"title": ""
},
{
"docid": "bab4e5c3d0fbbbb8103433e7b8671be3",
"score": "0.78268266",
"text": "def projects\n exec... |
10091b903cae3bdb1ab3d8386f413fd9 | The do_pick method is used to perform the initial pick. This method is generally called before any other methods in the PickHelper class. Returns the number of entities picked. The x and y values are the screen coordinates of the point at which would want to do a pick. | [
{
"docid": "254babd50e0b07cd5d2ee465657f732f",
"score": "0.5669763",
"text": "def do_pick(x, y, aperture = 0)\n end",
"title": ""
}
] | [
{
"docid": "bd1acdc15885954f92b91ac039f3528b",
"score": "0.62733483",
"text": "def random_picks\n if @selected_entities.length.zero?\n raise StandardError\n elsif @random_num.zero?\n @selected_entities.each_slice(@per_page).to_a[@page - 1]\n else\n @select... |
419ead58fc1e436c9a4d7cbb6b3128c7 | Returns a valid record candidate as an IndividualRecord instance and his encoded key as a twoitem array [encoded_key, record_candidate], while updating the internal cache key list. | [
{
"docid": "bcdf37617cc0d3467ee6fafc36538833",
"score": "0.660052",
"text": "def get_record_candidate_and_key(individual_result_or_record, record_type_code)\n if individual_result_or_record\n record_candidate = get_record_candidate(individual_result_or_record, record_type_code)\n [\n ... | [
{
"docid": "f628c5245a19026496351631e755bd20",
"score": "0.6035732",
"text": "def get_record_candidate(individual_result_or_record, record_type_code)\n if individual_result_or_record.respond_to?(:id) && individual_result_or_record.respond_to?(:updated_at)\n @cached_ids << individual_result_or_re... |
3b41ad975e275ab252f7ad4a41711dfb | POST /tweets or /tweets.json | [
{
"docid": "8013b2b95f2e3d4722ee6fbd3a002be8",
"score": "0.65950865",
"text": "def create\n @tweet = Tweet.new(tweet_params.merge(user: current_user))\n @tweet.user_id = current_user.id\n respond_to do |format|\n if @tweet.save\n format.html { redirect_to @tweet, notice: 'Tweet was ... | [
{
"docid": "7babd598e03cbdeb59c3c06682cb70b0",
"score": "0.7577518",
"text": "def post(tweet=nil)\n @res = access_token.post(\n 'http://twitter.com/statuses/update.json',\n 'status'=> tweet\n )\n end",
"title": ""
},
{
"docid": "7f8b5d003d06f779768460d3a87765aa",
"score"... |
af630984682f1a0b5a68e6092af0d102 | Update properties of this object | [
{
"docid": "3aa339ca8eb9962db878fa1c4634dab2",
"score": "0.0",
"text": "def update!(**args)\n @resource_display_name = args[:resource_display_name] if args.key?(:resource_display_name)\n @resource_name = args[:resource_name] if args.key?(:resource_name)\n @resource_owners = ar... | [
{
"docid": "184b1b1ed771473d3eb9f338c0734c38",
"score": "0.7309485",
"text": "def update *args\n opts = args.extract_options!\n fill_properties opts\n self.save\n end",
"title": ""
},
{
"docid": "5076c5a88404ae72986f958710f5687a",
"score": "0.7264897",
"text": "def update(p... |
0c3f1e13b4e0235a20330fd659348b3c | An aggressive plugin can get more details from : /xampp/start.php Operating System /xampp/phpinfo.php phpinfo() /xampp/navi.php Installed Apps (phpMyAdmin, Webalizer, FileZilla, etc) Aggressive | [
{
"docid": "7824e512cf92c43600dec1955f9b61cf",
"score": "0.5796767",
"text": "def aggressive(target)\n m = []\n\n # Extract details from /phpinfo.php\n url = URI.join(target.uri.to_s, \"/xampp/phpinfo.php\").to_s\n new_target = WhatWeb::Target.new(url)\n\n # Check if the document is a val... | [
{
"docid": "15519973f522082809370865995f0ce5",
"score": "0.5737699",
"text": "def admin(type='php', verbose=true)\n trap(\"SIGINT\") {\n print_error(\"CTRL+C! Returning to Previous Menu....\")\n return\n }\n common_admin = [ \"@dmin/\", \"_admin/\", \"_adm/\", \"admin/\", \"adm/\", \"... |
81687e6ca12b4e853acad0c8c5d5a1ee | handle toggling of comp mirror control | [
{
"docid": "3404458d1f68840a27d8ceb29d5d0919",
"score": "0.8099473",
"text": "def on_CompToggle_toggled\n if @automirror\n @automirror = false\n report(\"Automatic Comp Mirror control disabled.\")\n else\n @automirror = true\n report(\"Automatic Comp Mirror control enabled.\")\... | [
{
"docid": "88d6db13bdad478343c7bdb4b5386c46",
"score": "0.72399527",
"text": "def on_CompMirror_clicked\n get_mirror\n if @mirror_stat =~ /IN/\n Thread.new {\n move_mirror(\"out\")\n }\n end\n if @mirror_stat =~ /OUT/\n Thread.new {\n move_mirror(\"in\")\n ... |
efd91a789cdb1670f18a3685ce80667b | GET /boards GET /boards.json | [
{
"docid": "3331dd8ea8d7bc7a1113c342fd1770f8",
"score": "0.6404243",
"text": "def index\n @boards = Board.all\n render :layout => 'home'\n end",
"title": ""
}
] | [
{
"docid": "ea3299e54cb35af5ca2c0297873bbd76",
"score": "0.8206462",
"text": "def get_all_boards\n request(Net::HTTP::Get, \"/api/#{API_VERSION}/#{RESOURCE_NAME}\", nil, nil, false)\n end",
"title": ""
},
{
"docid": "8c4a007aecc67eaaf38769c8e9cc1156",
"score": "0.80803424",
... |
5f5c8ee9abd41fb016260a494d5c6370 | Adds a single course session to the calendar. | [
{
"docid": "647958dfe36d9f992c7cd136512f3368",
"score": "0.84732985",
"text": "def add_course_session(session)\n invalidate_calendar\n @sessions << session\n end",
"title": ""
}
] | [
{
"docid": "cc8b71c20dd76df9432c9d12b13396cc",
"score": "0.75449395",
"text": "def add_course_sessions(sessions)\n\n invalidate_calendar\n \n #If this isn't a collection, retrieve all course sessions for the given object.\n sessions = @schedule_of_classes.get_course_sessions(sessions) unless se... |
1d0bc73ce95dce1afc6f50309f78d9b6 | returns a boolean array with the log info of the last 5 days | [
{
"docid": "0eceb1e0404e1f0e43fdd1d9d633239a",
"score": "0.5041566",
"text": "def current_streak\n log_history = self.days.map {|day| day.logs_date }\n log_history.sort! {|a, b| b <=> a }\n log_history = log_history[0..4]\n\n days_since_habit_creation = (Time.now.to_date - se... | [
{
"docid": "df96fc77543b7d291af2e32a95f5eb6f",
"score": "0.6189947",
"text": "def logs_by_date(date)\n my_logs.select{|log| log.date == date}\n end",
"title": ""
},
{
"docid": "df96fc77543b7d291af2e32a95f5eb6f",
"score": "0.6189947",
"text": "def logs_by_date(date)\n ... |
8d0ea730f2e47b9b38d0f9121938671a | DELETE /coupons/1 DELETE /coupons/1.json | [
{
"docid": "1e205fd8982967bc27b48f05d35cb3cc",
"score": "0.64713866",
"text": "def destroy\n @coupon.destroy\n DateUpdate.new().save\n respond_to do |format|\n format.html { redirect_to local_store_path(@local, @store), notice: 'Coupon was successfully destroyed.' }\n format.json { he... | [
{
"docid": "037e2673c239777565ce1728bbaf33dd",
"score": "0.7825561",
"text": "def destroy\n @coupone.destroy\n respond_to do |format|\n format.html { redirect_to admin_coupones_url }\n format.json { head :no_content }\n end\n end",
"title": ""
},
{
"docid": "67e5602347fde... |
747270de6dbb196eb338a7605a5e8431 | Parse the given location into a bucket and a prefix. This is not used by the SCP driver. | [
{
"docid": "05befbe991284147f52d2d6616ccb30d",
"score": "0.8070752",
"text": "def parse_location(location)\n location = location.split('/')\n {:bucket => location.join('/'), :prefix => \"backup\"}\n end",
"title": ""
}
] | [
{
"docid": "1c7d75697148e2429e2dd79da7b37adc",
"score": "0.8483958",
"text": "def parse_location(location)\n location = location.split('/')\n\n {:bucket => location.first, :prefix => location[1..-1].join('/')}\n end",
"title": ""
},
{
"docid": "d282d5c44c47664c0bf3b5c9c753f6f4",... |
0e9aa87f5ab59193e7dde74146faef1c | GET /rubidevices GET /rubidevices.json | [
{
"docid": "5702b57f660d58d066144e9b47f5b938",
"score": "0.6543256",
"text": "def index\n @rubidevices = Rubidevice.accessible_by(current_ability)\n end",
"title": ""
}
] | [
{
"docid": "3ea6e1f687701eb9adcb9d0b4b75faae",
"score": "0.6966897",
"text": "def get_all_device_info\n # @device = Device.where(\"user_id = ?\",current_user[:id])\n # render json: @device\n @devices = User.get_all_user_devices(current_user[:id])\n render json: @devices\n end",
"title... |
bf466398cbdcc373c792b9ae2106dc39 | Fin de def generatePDFsportif Genere un PDF de la liste des users non sportif voulant faire du sport | [
{
"docid": "3b2d2a44c990130db21c915362301913",
"score": "0.86636144",
"text": "def generatePDFnonSportif(all_users) \n Prawn::Document.generate(\"public/listUsers.pdf\", :page_layout => :landscape) do |pdf|\n \n table_data = [[\"Nom\", \"Email\", \"Date de naissance\", \"Poids actuel\", \... | [
{
"docid": "ef20afef6b7126c20d85968ca0abada3",
"score": "0.84078646",
"text": "def generatePDF(all_users) \n Prawn::Document.generate(\"public/listUsers.pdf\", :page_layout => :landscape) do |pdf|\n \n table_data = [[\"Nom\", \"Email\", \"Date de naissance\", \"Poids actuel\", \"Poids Idé... |
4ff8236f7c23cc62f685fe594c603dae | Validate a user and change his password | [
{
"docid": "08cd33b55c59d4bde8130697b1a4825f",
"score": "0.0",
"text": "def change_pass(user, oldpass, newpass)\n return false if !validate_user(user, oldpass)\n if $SAFE >= 1 && (user.tainted? || pass.tainted? || newpass.tainted?)\n raise SecurityError\n end\n\n b... | [
{
"docid": "74ec863e8ecc4c905200967bef19524b",
"score": "0.79137325",
"text": "def call\n validate_equality\n user = context.user\n return if user.update(password: context.user_password_params[:password])\n\n context.fail!(message: user.errors.full_messages)\n end",
"title": ""
},
{... |
ecd03bbe63a5bc23a7453ca8a98977dd | Second: get the currency name | [
{
"docid": "cc9c2874921b41702aa6e13f7962a922",
"score": "0.0",
"text": "def crypto_name\n\tcrypto_name_array = doc.xpath('//tr[*]/td[3]').collect(&:text) #put into texct\nreturn crypto_name_array\nend",
"title": ""
}
] | [
{
"docid": "e23d0b91590ddb1f872bbc63ea68a4dd",
"score": "0.8548447",
"text": "def get_currency_name\n currency_id = get_default_currency_id()\n begin\n LeCurrency.find( currency_id ).name\n rescue\n \"\"\n end\n end",
"title": ""
},
{
"docid": "754f06cd83a24cd0c4245170... |
18f90bfc54fefedc0fe5973a14ac4ef3 | POST /occupants POST /occupants.xml | [
{
"docid": "e4fd07eb6c3a7496f23e18b6903b94df",
"score": "0.693732",
"text": "def create\n @occupant = Occupant.new(params[:occupant])\n\n respond_to do |format|\n if @occupant.save\n format.html { redirect_to(@occupant, :notice => 'Occupant was successfully created.') }\n format... | [
{
"docid": "2eed53043dc0fff029a199e8ba5cfc9f",
"score": "0.674481",
"text": "def create\n @occupant = Occupant.new(occupant_params)\n\n respond_to do |format|\n if @occupant.save\n format.html { redirect_to @occupant, notice: 'Occupant was successfully created.' }\n format.json ... |
0283585e2386c86edc9ec7f649f8ad34 | Called when the document parsing ends | [
{
"docid": "3b38c1accca6b51f9604faff94b86b19",
"score": "0.68514687",
"text": "def end_document\n @state.clear\n end",
"title": ""
}
] | [
{
"docid": "0a778fb6ac8ae40a59955c3edeb59d1f",
"score": "0.762805",
"text": "def parserDidEndDocument(parser)\n puts \"done parsing\" if debug\n self.state = :is_done unless self.state == :errors\n end",
"title": ""
},
{
"docid": "bbcfbd57ad9110efb4a70a21f8788193",
"score": ... |
9df8fd649f13451cffbc3639af2bcac8 | GET /user_location_changes GET /user_location_changes.json | [
{
"docid": "95e61031a14a6b78461bf7b661834d5f",
"score": "0.77264744",
"text": "def index\n @user_location_changes = UserLocationChange.all\n end",
"title": ""
}
] | [
{
"docid": "b3973a0a10f830c336de7eb4b30845e8",
"score": "0.68184847",
"text": "def update\n respond_to do |format|\n if @user_location_change.update(user_location_change_params)\n format.html { redirect_to @user_location_change, notice: 'User location change was successfully updated.' }\n... |
288361f4150ab7554df005f5d8e1c6ac | Replaces the include directive in ouput with a notice that it has not been resolved. | [
{
"docid": "6362c8dedd35c3d339abe8ca3484363f",
"score": "0.6521131",
"text": "def unresolved_include!(target, reader)\n reader.unshift_line(\"Unresolved directive in #{reader.path} - include::#{target}[]\")\n end",
"title": ""
}
] | [
{
"docid": "4167205e70705354671d6bf73aea2840",
"score": "0.6056843",
"text": "def debug_include\n'#ifndef NDEBUG\n#include <iostream>\n#endif'\n end",
"title": ""
},
{
"docid": "7480b6503065a55d9909ec200d0d6b5c",
"score": "0.5776933",
"text": "def insert_includes\n # match all va... |
5a5bb879ef5726d14dae57871d225b4c | Returns and reduces the reserve by a random card. | [
{
"docid": "b8aca7cfa62fa5f9bcf8ff61192bd66b",
"score": "0.7298104",
"text": "def draw_card\n card = @reserve.sample\n @reserve -= [card]\n return card\n end",
"title": ""
}
] | [
{
"docid": "4b491f121e17e27a1fd28ee88115a8c2",
"score": "0.6643487",
"text": "def deal_card\n rand(1..11)\nend",
"title": ""
},
{
"docid": "5e05244065148a72ffd239c91271a551",
"score": "0.65699077",
"text": "def card\n\t1 + rand(11)\nend",
"title": ""
},
{
"docid": "27a94... |
7fc85590e5626845900364065c6b63c2 | Method to add rooms | [
{
"docid": "ce7ca35b1bad3515a6290576cd58e47a",
"score": "0.7609845",
"text": "def add_room(reference, name, description, connections, items, enemies)\n @rooms << Room.new(reference, name, description, connections, items, enemies)\n end",
"title": ""
}
] | [
{
"docid": "1bc10acc71682e0030ee7eea228eb4e2",
"score": "0.78601235",
"text": "def add_room(room)\n\t\t@rooms.push(room)\n\tend",
"title": ""
},
{
"docid": "4a6648f0c37f7dbd5fd6f041149081a0",
"score": "0.7526126",
"text": "def add_room reference, name, description, connections\n\t\t@... |
6a86ed10a902ff29e30d57f31e105f6a | Get the title string of this document. Return nil if there is no title tag. | [
{
"docid": "e4d08ff156ae44c2ce1a9a33962d30e9",
"score": "0.0",
"text": "def title; end",
"title": ""
}
] | [
{
"docid": "a0d870e32f154a2789f5e4d498292c3a",
"score": "0.8311655",
"text": "def title\n @title ||= parsed_document.css('title').inner_text rescue nil\n end",
"title": ""
},
{
"docid": "5f14dcf14b8a2ebedc3161d020dbb7a3",
"score": "0.81023645",
"text": "def title\n @data... |
0a1531884966c87628963bc59de08996 | input: string of items separated by spaces (example: "carrots apples cereal pizza") steps: Split string into an array, convert to hash set default quantity print list output: return updated hash Method to add an item to a list input: item and optional quantity steps: update list with new quantity output: new list Metho... | [
{
"docid": "bb51545fbafa89571f66d1982b47f03c",
"score": "0.0",
"text": "def mainList (string)\n\tmainArray = string.split(\" \")\n\tlist = Hash.new \n\tfor i in 0...mainArray.length\n\t\tlist[mainArray[i]] = 1\n\tend\n\tlistOutput(list)\n\tlist\nend",
"title": ""
}
] | [
{
"docid": "46e248e84aa527b9b35c199974e72993",
"score": "0.81901026",
"text": "def create_list(string_of_items)\n# input: string of items separated by spaces (example: \"carrots apples cereal pizza\")\n# steps: \n # split string into separate items\n items_in_array = string_of_items.split(\" \")\n # ... |
d22dd8f63972a0991422fa779653248b | define the arguments that the user will input | [
{
"docid": "39226e2820767c61caa29715a43bd45f",
"score": "0.0",
"text": "def arguments(model)\n args = OpenStudio::Ruleset::OSArgumentVector.new\n\n return args\n end",
"title": ""
}
] | [
{
"docid": "c62750f6e8d591e4a244028ec8cd5a7a",
"score": "0.74187624",
"text": "def arguments\n end",
"title": ""
},
{
"docid": "49665d066ffcf52f2c37b2b1c268e6fd",
"score": "0.7376284",
"text": "def arguments; end",
"title": ""
},
{
"docid": "49665d066ffcf52f2c37b2b1c26... |
17c51727f67130d3e5e8176c252ea706 | add this line right below our list of fields | [
{
"docid": "6d2c8ac139a07d0c53894782ab0dd92c",
"score": "0.0",
"text": "def password=(unencrypted_password)\n unless unencrypted_password.empty?\n @password = unencrypted_password\n self.password_digest = BCrypt::Password.create(unencrypted_password)\n end\n end",
"title": ""
}
] | [
{
"docid": "802a0c373125773dfc96d538a8b8ba13",
"score": "0.6567861",
"text": "def add_field(field)\n\t\tend",
"title": ""
},
{
"docid": "0ed231129f5e36e7b4ee9a52e9a32ed4",
"score": "0.63935906",
"text": "def add_fields(fields)\n\t\tend",
"title": ""
},
{
"docid": "237f675... |
4964c6d3bfdc2f070ffb94bf3ac0a08f | Get all the totals (for current month) | [
{
"docid": "c047a19db1b7c5fe1ee66e221c85fb25",
"score": "0.62615234",
"text": "def getTotals\n totals = calculateTotals(@bankAccountBalances)\n @totalAvailable = totals[:totalAvailable]\n @totalCreditUsed = totals[:totalCreditUsed]\n @totalCredit = totals[:tota... | [
{
"docid": "4112fec5b39149e560d889ee9f7bd2f8",
"score": "0.73564315",
"text": "def days_totals\n totals(:day)\n end",
"title": ""
},
{
"docid": "c852f11b1ea23226805507fb6040f982",
"score": "0.7079741",
"text": "def index\n @orders = Order.all\n\n @orders_this_month = Order.... |
cb423370f4e6868f079b00738945958b | DELETE /tanks/1 DELETE /tanks/1.json | [
{
"docid": "7c15cf89dfae5071cbaf14ca3c8f4bd4",
"score": "0.63277817",
"text": "def destroy\n @tank.destroy\n respond_to do |format|\n format.js { }\n end\n end",
"title": ""
}
] | [
{
"docid": "442ebeb596a7ab6eabe6e143366e5cb3",
"score": "0.7560147",
"text": "def destroy\n @tank = Tank.find(params[:id])\n @tank.destroy\n\n respond_to do |format|\n format.html { redirect_to tanks_url }\n format.json { head :no_content }\n end\n end",
"title": ""
},
{
... |
ca01e82d3032dded4350a0aafb845713 | Creates a Del text fragment (short for "deleted") which defaults to text with a single strikethrough in its middle. | [
{
"docid": "b39fa57df13168f613cb33fdc2cdc4e9",
"score": "0.63883173",
"text": "def del(text)\n # returns Shoes::Del\n throw NotImplementedError\n end",
"title": ""
}
] | [
{
"docid": "da19668744ca3f9ddf52c0fd788a6ba6",
"score": "0.6690911",
"text": "def strikethrough(display_text)\n %Q{<del>#{display_text}</del>}\n end",
"title": ""
},
{
"docid": "cf113d322a45f10bf36a66ea03616c10",
"score": "0.6373676",
"text": "def non_disposal_delete_text\n ... |
f375c3105d7338cecccea204c27f4caa | find schedule_ids during the dates(range, db format) for user | [
{
"docid": "915c9d23fed2e9e05659f01a601e5e74",
"score": "0.6572482",
"text": "def schedule_ids_during(date_cond, user = @current_user)\n # regarding space schedule condition\n a_net = [] << Basic_A_Net\n \n if @display_mode == \"space_schedules\"\n @space_span = @background_params[:spac... | [
{
"docid": "1187738bb8df83118da37c830beed778",
"score": "0.6832059",
"text": "def article_schedule(date_cond)\n # current_user's schedules\n schedule_ids = schedule_ids_during(date_cond, @current_user)\n \n unless @other_user.blank?\n other_schedule_ids = schedule_ids_during(date_cond, ... |
56c47f5cc6412f0278dcc4b793c57d3c | return array of all (or a quantity of) recent reviews by a user | [
{
"docid": "b1ead74f082bb6869d836736aae83d3d",
"score": "0.7343127",
"text": "def recent_reviews(quantity=nil)\n\t\tif quantity\n\t\t\tself.reviews.sort_by{ |review| review.id }.reverse[0..quantity-1]\n\t\telse\n\t\t\tself.reviews.sort_by{ |review| review.id }.reverse\n\t\tend\n\tend",
"title": ""
... | [
{
"docid": "ae59affb8a47a358d2bd70a51ff1af48",
"score": "0.741565",
"text": "def reviews\n reviews = []\n katas = Kata.all\n katas.each { |k| reviews += k.reviews.where(user_id: self.id) }\n return reviews\n end",
"title": ""
},
{
"docid": "013bf053f8d8c9d67d4edf54ac1e2812",
... |
7d64aef40aca6f92b26ba77bfcc6b0c3 | This method provides a short cut means of creating a bold command node. The method accepts a block that will be passed a single parameter which will be a reference to the bold node created. After the block is complete the bold node is appended to the end of the child nodes on the object that the method is call against. | [
{
"docid": "5f728880796c2e7068107ed3d653932a",
"score": "0.7149511",
"text": "def bold\n style = CharacterStyle.new\n style.bold = true\n if block_given?\n apply(style) {|node| yield node}\n else\n apply(style)\n end\n end",
"ti... | [
{
"docid": "dc7f27e211c3c868b0c70719ada8b490",
"score": "0.6411623",
"text": "def node_class\n BoldNode\n end",
"title": ""
},
{
"docid": "6a492dbebc0fd782d6a9e4923112f798",
"score": "0.60837114",
"text": "def bold; @bold = true; self; end",
"title": ""
},
{
... |
82bf2afdc25ddf3e718fa624579bd746 | GET /companies GET /companies.json | [
{
"docid": "f715b55d7e6955f3df966f6cd2d24559",
"score": "0.0",
"text": "def index\n @companies = Company.where(\"approved = true\")\n\n # Not used yet\n if params[:search]\n @display = Company.all.where(type_of: params[:search])\n else\n @display = Company.all\n end\n\n @hash... | [
{
"docid": "22c56365e2c2c2899f91afe56d9295f3",
"score": "0.790148",
"text": "def companies\n render \"company/companies.json.jbuilder\", status: :ok\n end",
"title": ""
},
{
"docid": "44e7ae9d8ffc58dfb2c5b2d4eb1efe8f",
"score": "0.7858296",
"text": "def index\n @companies = Co... |
69c445f0ec42b2bd8215a58566868377 | GET /ofrendatris/1 GET /ofrendatris/1.json | [
{
"docid": "73c4e0c81986e2dd6f5c29dd0b383e78",
"score": "0.71022123",
"text": "def show\n @ofrendatris = Ofrendatri.find(params[:id])\n end",
"title": ""
}
] | [
{
"docid": "b069e473ee191208492027df1118aee2",
"score": "0.69289935",
"text": "def index\n @ofrendatris = Ofrendatri.all\n end",
"title": ""
},
{
"docid": "bc37730b6c9943de7d7d793ce8411e0e",
"score": "0.6643345",
"text": "def index\n \n @trends = Trend.order(\"as_of DESC\")... |
8c301933e8e678064a23773d8eecb27d | Flattens the Ohai structure into something like: "languages.java.version"=>"1.6.0" | [
{
"docid": "20990f5b3c0c1dac19964a1076cd408e",
"score": "0.47400734",
"text": "def ohai_flatten(key, val, keys, result)\n keys << key\n if val.is_a?(Mash)\n val.each_pair do |nkey, nval|\n ohai_flatten(nkey, nval, keys, result)\n\n ... | [
{
"docid": "7ce19b4808910d49ae352cf7ed925725",
"score": "0.5425971",
"text": "def parse_to_v1_format!(json)\n # discusting nested loops, but much easier than writing a generic DFS solution or something\n json.each do |platform, platform_value|\n next if platform.to_s == \"run_data\"\n pl... |
ddc5339c5e0216e6d25f3469ff187bc0 | POST /web/v1/testmonials POST /web/v1/testmonials.json | [
{
"docid": "beb7be0441d1e78a0bdc23d0fb074eca",
"score": "0.7515772",
"text": "def create\n @testmonial = Testmonial.new(testmonial_params)\n\n if @testmonial.save\n render json: @testmonial, status: :created\n else\n render json: @testmonial.errors, status: :unprocessable_entity\n ... | [
{
"docid": "c63214a71f6c847325525ae3ea759085",
"score": "0.6686562",
"text": "def test!\n @@api.post(endpoint: self.endpoint + ['test'])\n end",
"title": ""
},
{
"docid": "68da2491e5f4741b1a98b781d8bbb927",
"score": "0.6682446",
"text": "def index\n @testmonials = Testmoni... |
7edcb4625f232dd20b9ab01983862bc6 | zapis obecne do bytecodu | [
{
"docid": "ec11bbe668f052c783e5a2d9ed10947e",
"score": "0.0",
"text": "def write_bytecode(value)\n write_bytecode_to(value, @temp_bytecode)\n end",
"title": ""
}
] | [
{
"docid": "2113d29027286e8d7d6e2fdfe784b64d",
"score": "0.6837067",
"text": "def bytes; end",
"title": ""
},
{
"docid": "cc248a3ffdfc6730589c36ae97644230",
"score": "0.6795334",
"text": "def getbyte\n end",
"title": ""
},
{
"docid": "cc248a3ffdfc6730589c36ae97644230",
... |
98291bda244b3909538b9e9d300fb650 | Verifico la ruta que se envia junto a la materia del docente al metodo subir que se encuentra en el modelo | [
{
"docid": "13c4feb7dd6d02b9ed8328f53e3bf824",
"score": "0.0",
"text": "def enviar\n\t\t@archivo = Archivo.new(secure_params)\n\t\tif @archivo.valid?\n\t\t\t@archivo.subir(session['materiaDocente'])\n\t\t\t#UsuarioCorreo.contacto_email(@contacto).deliver\n\t\t\tflash[:notice] = \"La carga se realizo exi... | [
{
"docid": "0dae81da6ff61f6c41517698d10fca6d",
"score": "0.6446966",
"text": "def modelo_path(o, posfijo_path = true)\n if o.nil?\n return main_app.root_path\n end\n if o.id\n n = self.nombreobj(o, false) + \"_path\"\n else \n n = 'crea_' + self.nombreobj(o, true... |
3e51e5e82ae4407b3792591975a0e473 | Creates a new Vedeu::Views::Composition which may contain one or more views (Vedeu::Views::View objects). | [
{
"docid": "5835a3dc393733e28981b8492707fa46",
"score": "0.6513943",
"text": "def composition(client, &block)\n Vedeu::Views::Composition.build(client: client, &block)\n end",
"title": ""
}
] | [
{
"docid": "9aa2510060bb7979eccb095aabe9ecf8",
"score": "0.6488938",
"text": "def views(&block)\n API::Composition.build(&block)\n end",
"title": ""
},
{
"docid": "1d4748a54fb64b7952b9316818f30013",
"score": "0.59693897",
"text": "def composition\n @_composition ||= Comp... |
e09b5a1332f27188ac7e0c093d7a85ee | GET /item_definitions GET /item_definitions.json | [
{
"docid": "6645243267a5deac089c80800cc689ab",
"score": "0.69421655",
"text": "def index\n if params[:query]\n @item_definitions = ItemDefinition.connection.execute(\"SELECT * FROM item_definitions where name like '#{ params[:query] }'\")\n else\n @item_definitions = ItemDefinition.all\n... | [
{
"docid": "1d1b399580fa0a0b639255bd4fa0026d",
"score": "0.6904359",
"text": "def index\n @item_defs = ItemDef.all\n end",
"title": ""
},
{
"docid": "19c8f1a713351ad0aeda6fa802508616",
"score": "0.62738556",
"text": "def set_item_definition\n @item_definition = ItemDefinitio... |
37ed3de1dd24833a8e33a0a29f4b7e2e | Setup instance variables for kinesis access | [
{
"docid": "1c40330f8e0ac903c4d57501a416d645",
"score": "0.0",
"text": "def initialize(options)\n @verbose = options[:verbose] || false\n @logger = options[:logger]\n if @logger == nil\n @logger = Logger.new(STDOUT)\n end\n @options=options\n end",
"title": ""
}
... | [
{
"docid": "3470292563d1e864dc301b15970ec5db",
"score": "0.65756124",
"text": "def initialize\n self.access_key_id = ''\n self.secret_access_key = ''\n self.region = ''\n self.env = :development\n end",
"title": ""
},
{
"docid": "188aab12618bd9d35b624d9e5b1c9... |
f785b7683b722bbefc4bc2e1d05084ee | DELETE /pharmacists/1 DELETE /pharmacists/1.json | [
{
"docid": "14b3f52c362dd56d227dacbb059f29bc",
"score": "0.738185",
"text": "def destroy\n authorize :'Pharmacist::Pharmacist'\n \n @pharmacist.destroy\n respond_to do |format|\n format.html { redirect_to pharmacist_pharmacists_url, notice: 'Pharmacist was successfully destroyed.' }\n ... | [
{
"docid": "2da8430f7ef87e039d62af04189057e7",
"score": "0.7558331",
"text": "def destroy\n @pharmacist.destroy\n respond_to do |format|\n format.html { redirect_to admin_pharmacists_url, notice: 'Pharmacist was successfully destroyed.' }\n format.json { head :no_content }\n end\n en... |
ecfb4eb41f0a336f427601026d124303 | GET /flats/1 GET /flats/1.json | [
{
"docid": "aea93a0f2edbff555d5cecd02f3ae299",
"score": "0.0",
"text": "def show\n @review = Review.new\n end",
"title": ""
}
] | [
{
"docid": "086d0c97b2cec5057abb75997d1cfbad",
"score": "0.8313989",
"text": "def index\n # url = \"https://raw.githubusercontent.com/lewagon/flats-boilerplate/master/flats.json\"\n # @flats = JSON.parse(open(url).read)\n end",
"title": ""
},
{
"docid": "eef759f012202ed51d2f959c24047c... |
95b9ed2d660f3db8d34e8450397700a5 | PUT /biru_users/1 PUT /biru_users/1.json | [
{
"docid": "0c888d46bba63d15271d6bc916a65b20",
"score": "0.67139614",
"text": "def update\n @biru_user = BiruUser.find(params[:id])\n\n respond_to do |format|\n if @biru_user.update_attributes(params[:biru_user])\n format.html { redirect_to @biru_user, notice: 'Biru user was successful... | [
{
"docid": "832c248ba3eb8c446af4c6ce62926569",
"score": "0.72471917",
"text": "def update\n if @api_v1_user.update(api_v1_user_params)\n render json: @api_v1_user\n else\n render json: @api_v1_user.errors, status: :unprocessable_entity\n end\n end",
"title": ""
},
{
"doci... |
bebe7c3807a669d3e84cc98b39547176 | Returns +true+ if the secure flag is set | [
{
"docid": "2bfff8a367ec51d093e97d76484386f6",
"score": "0.9005328",
"text": "def secure?\n\t\treturn @secure ? true : false\n\tend",
"title": ""
}
] | [
{
"docid": "71ef2a9dd5a18827ba4c31aa3ed01336",
"score": "0.8995521",
"text": "def secure?\n @secure\n end",
"title": ""
},
{
"docid": "591fce36edcd89f02fc5157deb1faf28",
"score": "0.8938163",
"text": "def secure?\n !!@opts[:secure]\n end",
"title": ""
},
{
... |
76cf7c35f7e779051329e7dda81c144f | returns all the users created in this Harvest account see for data available | [
{
"docid": "6838e916480033f7a432cc644851165a",
"score": "0.0",
"text": "def users(params={})\n request(\"/people\", params).users\n end",
"title": ""
}
] | [
{
"docid": "64a5fabad6696b9341c55818473e710c",
"score": "0.76523674",
"text": "def list_users\n GoodData::Domain.list_users(name)\n end",
"title": ""
},
{
"docid": "d3dd679c9135a7c25a9fd07b448140e5",
"score": "0.74457467",
"text": "def all\n ret = []\n @data.eac... |
f74c29bdfc4a183e1ec1b91334cd5be2 | Use callbacks to share common setup or constraints between actions. | [
{
"docid": "add82219109f90aa9ec2577c1010cf28",
"score": "0.0",
"text": "def set_log\n\t @log = Log.find(params[:id])\n\t 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... |
3a4b2718f8779b7fef74f5ea7ebbf543 | GET /animals GET /animals.json | [
{
"docid": "635a1fef07c913f541743113dfd1b3c6",
"score": "0.0",
"text": "def index\n @pagy, @animals = pagy(current_owner.animals.all)\n end",
"title": ""
}
] | [
{
"docid": "c9e2f36aeb7af3dfb323244e89f08c45",
"score": "0.77653694",
"text": "def index\n animals = Animal.all\n render json: animals\n end",
"title": ""
},
{
"docid": "821b7d4596593f0e14d89f3c8bdf60d6",
"score": "0.7548003",
"text": "def show\n @animal = Animal.find(param... |
eca85839484e28273dbc5280f90ccc57 | DATA PROCESSING Utility that replaces buildsystem tokens with actual values | [
{
"docid": "9749821c6a026da7b3df46bd6088da05",
"score": "0.4773845",
"text": "def corto_replace(str)\n str = str.gsub(\"$(CORTO_OS)\", CORTO_OS)\n str = str.gsub(\"$(CORTO_MACHINE)\", CORTO_MACHINE)\n str = str.gsub(\"$(CORTO_PLATFORM)\", CORTO_PLATFORM)\n str = str.gsub(\"$(CORTO_TARGET)\",... | [
{
"docid": "943e6e2a1447e46c91ad80c6a43ceaa0",
"score": "0.5912582",
"text": "def replace_all_tokens(target)\n find_and_replace_all(target, '{{NAME}}', projectify(target))\n find_and_replace_all(target, '{{CAPSNAME}}', classify(target))\n find_and_replace_all(target, '{{EMAIL}}', Radon::Util.get_emai... |
9b4df35663e71cd78d3d08b7852dad3d | Called to announce that this task has been killed. +result+ is the corresponding Process::Status object. | [
{
"docid": "f5e79abcfb6eec4e845eeffb486c1f14",
"score": "0.513839",
"text": "def dead!(result)\n if !result\n failed_event.emit\n elsif result.success?\n success_event.emit\n elsif result.signaled?\n si... | [
{
"docid": "e4c95e636eb9873ca6d11cf7248fde45",
"score": "0.63627154",
"text": "def finished!(process_status)\n summary = \"(#{@pid}/#{@pids.inspect}/self_started=#{@self_started}/killed=#{@killed})\"\n if process_status.nil? && !@self_started\n log :debug, \"#{summary} I am no longer bl... |