query_id stringlengths 32 32 | query stringlengths 7 6.75k | positive_passages listlengths 1 1 | negative_passages listlengths 88 101 |
|---|---|---|---|
70768ee635744e52d497e72598e6f238 | Convert nanoseconds to seconds | [
{
"docid": "4a8cc190e4a963b610a5d7468b913be2",
"score": "0.64034486",
"text": "def nanosToMillis(c)\n return (c) / 1e6\n end",
"title": ""
}
] | [
{
"docid": "6e6d05c7d9f41fbdb87e31bee033b393",
"score": "0.81439674",
"text": "def seconds\n nanoseconds / UNITS[:s]\n end",
"title": ""
},
{
"docid": "53f9bbb2695ec7825b5a42738f839a32",
"score": "0.77108055",
"text": "def to_secs\n to_nanos / 1_000_000_000.0\n end",
... |
cf7b7e9adf464cbe251464313004ebe4 | If an AWS STS ROLE is defined, configure the AWS SDK to assume it | [
{
"docid": "ab82619da0a94aa5e873ddbe970e9d14",
"score": "0.7804709",
"text": "def maybe_assume_role\n if ENV['AWS_STS_ROLE_ARN']\n Aws.config.update(\n credentials: Aws::AssumeRoleCredentials.new(\n role_arn: ENV['AWS_STS_ROLE_ARN'],\n role_session_name: \"cog-... | [
{
"docid": "ec553817f381d73dd89c2ebebf0f99ef",
"score": "0.71948",
"text": "def assume_aws_role(role_arn:)\n session_name = \"#{role_arn.split('/')[-1]}_#{SecureRandom.hex(8)}\"\n Aws.config.update(\n credentials: Aws::AssumeRoleCredentials.new(\n role_arn: role_arn,\n ... |
f74c29bdfc4a183e1ec1b91334cd5be2 | Use callbacks to share common setup or constraints between actions. | [
{
"docid": "5abe0db5b13d585a318727d33a52f219",
"score": "0.0",
"text": "def set_reservation\n @reservation = Reservation.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... |
27437d357766cbab82c3d6797a6856b1 | Create or update a Tier0 static routes If static routes for routeid are not already present, create static routes. If it already exists, update static routes for routeid. | [
{
"docid": "b1af7683cc0a042bd10c3f877bfc9d66",
"score": "0.72306687",
"text": "def patch_tier0_static_routes(tier_0_id, route_id, static_routes, opts = {})\n patch_tier0_static_routes_with_http_info(tier_0_id, route_id, static_routes, opts)\n nil\n end",
"title": ""
}
] | [
{
"docid": "3a862b1608d09f1f41bc5d64cbd569f4",
"score": "0.73913765",
"text": "def create_or_replace_tier0_static_routes(tier_0_id, route_id, static_routes, opts = {})\n data, _status_code, _headers = create_or_replace_tier0_static_routes_with_http_info(tier_0_id, route_id, static_routes, opts)\n ... |
3b826b26e95f6641981684ee5ff65358 | Provide a user friendly representation | [
{
"docid": "b7863f7874a26014f00f3e586420b7c7",
"score": "0.0",
"text": "def to_s\n '#<Twilio.Messaging.V1.DomainConfigList>'\n end",
"title": ""
}
] | [
{
"docid": "8813d23ea53482a215f5e5b971468e2d",
"score": "0.75752455",
"text": "def representation; end",
"title": ""
},
{
"docid": "dad7e7041772f906c35bc43f5390a274",
"score": "0.70985687",
"text": "def to_human\n super\n end",
"title": ""
},
{
"docid": "1e72b... |
26d687d3428314f8592070838303ded1 | Processes the translation for palindrome testing. | [
{
"docid": "5d226f1a3a652756962e095f36958097",
"score": "0.0",
"text": "def processed_content\r\n processor(translation)\r\n end",
"title": ""
}
] | [
{
"docid": "a4bb87c9dceaaf64338c553fadd6e1e4",
"score": "0.6732435",
"text": "def palindrome?\n processed_content == processed_content.reverse\n end",
"title": ""
},
{
"docid": "cc9179a51141e9f7d573953ef6f1840f",
"score": "0.6712242",
"text": "def palindrome?\n processed_content... |
3de449a62265a53ac4f4cab7971a22fb | :callseq: set_selection(cell_or_cell_range) Set which cell or cells are selected in a worksheet. | [
{
"docid": "490dc56f9b2b10deb76c65638ebad33b",
"score": "0.74155813",
"text": "def set_selection(*args)\n return if args.empty?\n\n if (row_col_array = row_col_notation(args.first))\n row_first, col_first, row_last, col_last = row_col_array\n else\n row_first, col_first, row... | [
{
"docid": "25c8fa975b10f39daa0d0ea2cfca9631",
"score": "0.7133536",
"text": "def set_selection(*args)\n # Check for a cell reference in A1 notation and substitute row and column\n args = row_col_notation(args)\n\n @selection = args\n end",
"title": ""
},
{
"docid": "1d782cead7169c... |
3f68d1565aae54bd6220d3979935e2bb | Closes the current entry and opens a new for writing. +entry+ can be a ZipEntry object or a string. | [
{
"docid": "06bf1630a457b505400babb55317aeeb",
"score": "0.6880851",
"text": "def put_next_entry(entry, level = Zlib::DEFAULT_COMPRESSION)\n raise ZipError, \"zip stream is closed\" if @closed\n newEntry = entry.kind_of?(ZipEntry) ? entry : ZipEntry.new(@fileName, entry.to_s)\n init_next_... | [
{
"docid": "3566078199b107903f30c3efaa977a13",
"score": "0.6587678",
"text": "def entry(entry_name)\n ::Zip::Entry.new(name, entry_name)\n end",
"title": ""
},
{
"docid": "39badbf498a47ed3b51779851e570724",
"score": "0.6506401",
"text": "def put_next_entry(entryname, comment ... |
bae570936e30a361ec51910520e73cce | Creates a message addressed to the Bug's assigned User, informing them that the Bug has been assigned to them. | [
{
"docid": "687ee820430cd306c7c26a55fa6617fa",
"score": "0.5876839",
"text": "def assign(bug, assigner, assignee)\n @bug = bug\n @assigner = assigner\n\n return nil unless should_send?(bug, assignee)\n return nil unless Membership.for(assignee, bug.environment.project_id).first.send_ass... | [
{
"docid": "578553055765454f55c063b328db5dbc",
"score": "0.6587107",
"text": "def new_user_message(user)\n @user = user\n mail(:to => @user.email, :subject => \"New Employee Account Created at A&M Creamery\")\n end",
"title": ""
},
{
"docid": "e978114ad582b1ff94fbffefb01124e7",
"s... |
d1f6054f5d12ca4edfe521ce984924ef | Changes current pipeline stage for the opportunity. | [
{
"docid": "837b5108c0798f8d5926db098f9d50a0",
"score": "0.0",
"text": "def update_pipeline_stage(id, api_stage_change, opts = {})\n data, status_code, headers = update_pipeline_stage_with_http_info(id, api_stage_change, opts)\n return data\n end",
"title": ""
}
] | [
{
"docid": "83dee4cccf0e0f15d8ca96511c60231f",
"score": "0.69168746",
"text": "def stage=(value)\n @stage = value\n end",
"title": ""
},
{
"docid": "184714c99eef5b34f60f22d62988f60f",
"score": "0.6892529",
"text": "def stage=(value)\n @stage = value\n ... |
4976685aba462cd869ee05d84c33402f | Parses any parameters in the URL and adds them to the params | [
{
"docid": "14d97df21f6f906f03b864a0b624d9d9",
"score": "0.7953352",
"text": "def parse_url_params \n return if !Caboose.use_url_params \n url = \"#{request.fullpath}\"\n url[0] = \"\" if url.starts_with?('/') \n url = url.split('?')[0] if url.include?('?') \n ... | [
{
"docid": "a8b88649e553859717e38bbf1a62f974",
"score": "0.75687134",
"text": "def extract_params_from_url\n # extract_params\n # return if ENV['QUERY_STRING'].nil?\n # qstring = CGI::parse(CGI::unescape(ENV['QUERY_STRING']))\n # dbg qstring.inspect\n # # Rack::Utils.parse_neste... |
e5699969b3b3c4310191eb206b6fc0f1 | Changes the field value units that changed in the newer version | [
{
"docid": "93fa7dea09ce58b730d8254a0be1c4a5",
"score": "0.8037431",
"text": "def change_field_value_units(value)\n return if value.nil? || value.type != 'IVL_PQ'\n # Update units from simple_xml version, mm[Hg], to new mmHg version\n if value.low && value.low.unit == 'mm[Hg]'\n value.low.... | [
{
"docid": "c452277bd5fccb1831d23668fe7a337d",
"score": "0.7300178",
"text": "def update_units()\n if @user_units and @database_units\n @records.set(GRT_UNITS, [@user_units, @database_units])\n else\n @records.set(GRT_UNITS, nil)\n end\n end",
"title": ""
},
{
... |
753a6c4ad646648313f93ff9777f544d | GET /orders/1 GET /orders/1.json | [
{
"docid": "a81945373733e4951b987de6ea99f9a1",
"score": "0.0",
"text": "def show\n end",
"title": ""
}
] | [
{
"docid": "23052f52af86f70778b67e0afeeea3d4",
"score": "0.75512165",
"text": "def getorders(args={})\n {\n :method=> \"GetOrders\"\n }.to_json\n end",
"title": ""
},
{
"docid": "45d40d4eb7c605b195ee60f1fcb2b6ab",
"score": "0.7489203",
"text": "def index\n @ord... |
7cb44ed19d67b50c7560bfad4858b9e4 | Only update the attributes given in allowed_fields | [
{
"docid": "444abfaf74b679c8d7d0ac293d6ce675",
"score": "0.6985752",
"text": "def update_scaffold_attributes(allowed_fields, new_attributes)\n return if new_attributes.nil?\n attributes = new_attributes.dup\n attributes.stringify_keys!\n attributes.delete_if{|k,v| !allowed_fields.inc... | [
{
"docid": "1646815468f98f4c57325ce40c143707",
"score": "0.7754037",
"text": "def update(attributes = {}, *allowed)\n attributes = attributes.only(*allowed) if allowed.any?\n dirty_attributes = model.new(attributes).dirty_attributes\n dirty_attributes.empty? || all? { |r| r.update(attribu... |
0832bacb9a6c9e7c13306ec8848ff51e | this AJAX endpoint should create a new calendar event and return it | [
{
"docid": "600b7802edaa227123e07298ee5a1ddf",
"score": "0.76656055",
"text": "def create\n event = CalEvent.new({\n :summary => params[:summary],\n :start => to_utc(params[:start]),\n :end => to_utc(params[:end]),\n :creator_id => current_user.id,\n :description =>... | [
{
"docid": "0f7a2f0bf700c14cf9107b34bee4e24f",
"score": "0.7999018",
"text": "def create\n respond_to do |format|\n if @calendar_event.save\n format.html { redirect_to @calendar, notice: 'Calendar Event was successfully created.' }\n format.json { render :show, status: :created, lo... |
2c40d662221c11f2fe6a16bb25d53b43 | Returns the additional libraries. | [
{
"docid": "cfdea8aae3f358f7f9b4dbd6846972be",
"score": "0.79356074",
"text": "def additional_libraries\n JavaBuildpack::Util::LibraryUtils.lib_jars @lib_directory\n end",
"title": ""
}
] | [
{
"docid": "511206bcfcca83456e12c545a8e37dfe",
"score": "0.7836787",
"text": "def libraries\n @libraries ||= []\n end",
"title": ""
},
{
"docid": "3af99b76a3b95098ec593dc391c27025",
"score": "0.76218563",
"text": "def libs; end",
"title": ""
},
{
"docid": "c9f... |
012c3b11a4e928b19f16023e28e25e44 | Access to Repos::Commits API | [
{
"docid": "8b07a297630d3b1d9a43d120939d3191",
"score": "0.0",
"text": "def changesets\n @changesets ||= ApiFactory.new 'Repos::Changesets'\n end",
"title": ""
}
] | [
{
"docid": "c35d8ab9fee0b2d3c9d2410b84b4ec76",
"score": "0.76364595",
"text": "def commits\n @commits ||= ApiFactory.new 'GitData::Commits'\n end",
"title": ""
},
{
"docid": "9cbb15767713959105741493687d6faa",
"score": "0.7549414",
"text": "def commits\n @commits ||= Api... |
f3d44d8b30331c78e17275ba8a63f8a5 | POST /blacklists POST /blacklists.xml | [
{
"docid": "5ce031126f2a234ed913a5ccc52d94a5",
"score": "0.5775053",
"text": "def create\n ip = retrieve_ip(params[:uid])\n @blacklist = Blacklist.new(:remote_ip => ip)\n\n respond_to do |format|\n if @blacklist.save\n vids = Video.find_all_by_remote_ip(ip)\n vids.each do |vi... | [
{
"docid": "90d26fd53c6ceec912b4fdb61d579489",
"score": "0.69350374",
"text": "def create\n @black_list = BlackList.new(params[:black_list])\n\n respond_to do |format|\n if @black_list.save\n format.html { redirect_to black_lists_path, notice: 'Balck list was successfully created.' }\n... |
0105540c9b04fef959461b7e27aea404 | ========================================= Binary counter for increasing the state one at a time. Return value true/false, changing state itself! ========================================= | [
{
"docid": "4098dfbeb8fe4a8a7d6b5f545bc11477",
"score": "0.5468386",
"text": "def increase_state(state, domain, sorted_params, fixed_ass)\n#\tp $conditionals\n#\terr\n\tfor param in sorted_params\n\t\tnext if fixed_ass.key?(param)\n\t\t\n\t\t#=== If parameter is conditional, skip it if it is inactive.\n... | [
{
"docid": "c9c1daa984e31595f971d6a118673b16",
"score": "0.7076603",
"text": "def next_state\n\t\t\t\t@state+= 1\n\t\t\tend",
"title": ""
},
{
"docid": "eb630e21dfe5157cb67d6b7d782fd75e",
"score": "0.6654367",
"text": "def increment_loop_state!\n @iteration_count += 1\n end",... |
8bc295844bce46dbdcbe2e45198769de | GET /tests GET /tests.json | [
{
"docid": "4e96efb85b28110b8a306c4a0e967a8f",
"score": "0.0",
"text": "def index\n @tests = @quiz.tests\n end",
"title": ""
}
] | [
{
"docid": "dd9894340d4cf16757baca74371f9f43",
"score": "0.77281153",
"text": "def test\n get(\"/help/test.json\")\n end",
"title": ""
},
{
"docid": "dd9894340d4cf16757baca74371f9f43",
"score": "0.77281153",
"text": "def test\n get(\"/help/test.json\")\n end",
"ti... |
24246f40a07673e53e5ed3124841f344 | determine if a cookbook file is available in the run | [
{
"docid": "b509e9e3acba131ebf9138212dad2ee1",
"score": "0.81162363",
"text": "def has_cookbook_file?(fn)\n run_context.has_cookbook_file_in_cookbook?(cookbook_name, fn)\n end",
"title": ""
}
] | [
{
"docid": "64369b75163ef4f87b34c6faa718a933",
"score": "0.7897427",
"text": "def has_cookbook_file?(fn)\n run_context.has_cookbook_file_in_cookbook?(new_resource.cookbook, fn)\n end",
"title": ""
},
{
"docid": "f861f5fe1606cacffe3b3237352ad89a",
"score": "0.75194716",
"t... |
e2cf1f7043dc42058a4d94f7ae40d926 | DELETE /utility_items/1 DELETE /utility_items/1.json | [
{
"docid": "347f5276ef0beea7e2a70ec860ab3ead",
"score": "0.74842703",
"text": "def destroy\n @utility_item.destroy\n respond_to do |format|\n format.html { redirect_to utility_items_url, notice: 'Utility item was successfully destroyed.' }\n format.json { head :no_content }\n end\n e... | [
{
"docid": "045d637d57ef73d144cab34aa71a6ec0",
"score": "0.72955143",
"text": "def delete(item)\n end",
"title": ""
},
{
"docid": "7ba3ffc3f842560fa1fbcad79adc92a0",
"score": "0.7293055",
"text": "def delete_item\n @item.destroy!\n render json: { }\n end",
"title": ""
}... |
0155611332f00c960fa055c66ed3c58f | Applies environment variable overrides in +env+ to the global environment (+ENV+) for the duration of each test. If a key's value in +env+ is nil, this key is removed from +ENV+. When the test finishes, the values in original +ENV+ that were overridden by +env+ are restored. If a key was not in original +ENV+ and was o... | [
{
"docid": "eaefbfa13e73f1ebf9e2c28007c6763b",
"score": "0.7202438",
"text": "def local_env(env = nil, &block)\n around do |example|\n env ||= block.call\n\n # This duplicates ENV.\n # Note that ENV.dup produces an Object which does not behave like\n # the original ENV, ... | [
{
"docid": "63dc02d747b268562d82b332bf8d099f",
"score": "0.70956594",
"text": "def with_environment(env)\n old_env = {}\n env.each do |var, value|\n old_env[var] = ENV[var.to_s]\n ENV[var.to_s] = value\n end\n\n yield\n ensure\n old_env.each { |var, value| ENV[v... |
a0c876a59f74868d1c2f7278af4aedea | GET /empanadas/1 GET /empanadas/1.json | [
{
"docid": "a81945373733e4951b987de6ea99f9a1",
"score": "0.0",
"text": "def show\n end",
"title": ""
}
] | [
{
"docid": "0a1cba2ae963f1eb86fe11cc9cf44408",
"score": "0.7453395",
"text": "def get_enterprise\n empresa = Enterprise.find(params[:idEmpresa].to_i)\n\n respond_to do |format|\n format.json {render json: empresa}\n end \n \n end",
"title": ""
},
{
"docid": "c5d461e5a5a89... |
fde737143013335fba965882d4844886 | Handels the event, when the editbutton has been clicked. | [
{
"docid": "96cf11772bd48ce6b36762894d21b3c6",
"score": "0.0",
"text": "def EditClicked\n require_once(\"win_dbprofiles_edit.php\")\n\n value = treeview_getSelection(@tv_profiles)\n unless value\n msgbox(_(\"Warning\"), _(\"You have to choose a profile to edit first.\"), \"warning\")\n ... | [
{
"docid": "7a50b8dde89fe9290163ca8e27a336fe",
"score": "0.6960258",
"text": "def edit; end",
"title": ""
},
{
"docid": "7a50b8dde89fe9290163ca8e27a336fe",
"score": "0.6960258",
"text": "def edit; end",
"title": ""
},
{
"docid": "7a50b8dde89fe9290163ca8e27a336fe",
"sc... |
2e59867e3505fa5f4fc5a038c25064a8 | POST /transfers POST /transfers.json | [
{
"docid": "ab2952c1c335102e89f96f3c7a6515c7",
"score": "0.56179893",
"text": "def create\n transfer = Transfer.new()\n transfer.product_req_id = (params[:product_req_id])\n transfer.product_offer_id = (params[:product_offer_id])\n transfer.user_id = (params[:user_id])\n transfe... | [
{
"docid": "a5cf0d44b0e40048e67f526a6e260a56",
"score": "0.74257064",
"text": "def create_transfer(options = {})\n build_response(make_request(:post, url: 'transfers', options: options))\n end",
"title": ""
},
{
"docid": "2ae107f20c82b1975fc13388c134b388",
"score": "0.7183928",
... |
65388d266bee31d54a8b0450c0f11375 | don't rename without updating Controller returns a client's controller | [
{
"docid": "6674e21c3329a4c55ff3ec0bb34ce949",
"score": "0.6656284",
"text": "def controller client\n client.env[CONTROLLER_NAME]\n end",
"title": ""
}
] | [
{
"docid": "388965cc1f78d7feb4ddb8f895ad5825",
"score": "0.71170074",
"text": "def controller_name\n @controller_name ||= controller.class.to_s.sub('Controller', '').underscore\nend",
"title": ""
},
{
"docid": "6b43d893e237e16627dc8d5f95cd5512",
"score": "0.7072298",
"text": "def co... |
c97dca0acf0e31f58c6de8914eb0dfba | GET /tipo_denuncia/1 GET /tipo_denuncia/1.json | [
{
"docid": "a81945373733e4951b987de6ea99f9a1",
"score": "0.0",
"text": "def show\n end",
"title": ""
}
] | [
{
"docid": "3ae85848340fa5da14e1bc5967a682c9",
"score": "0.70069337",
"text": "def show\n @tipo = Tipo.find(params[:id])\n\n respond_to do |format|\n format.html # show.html.erb\n format.json { render json: @tipo }\n end\n end",
"title": ""
},
{
"docid": "a5d4128f9a065abb... |
7c373624fba16857acef2d89bcccef3f | select max from gpa in the students table | [
{
"docid": "2c1496f0d46bb6f37c8a9981f606a618",
"score": "0.76473564",
"text": "def highest_student_gpa\n \"SELECT MAX(gpa) as highest_gpa FROM students;\"\nend",
"title": ""
}
] | [
{
"docid": "e9b283651d20555b970f57ad8340e67b",
"score": "0.8209399",
"text": "def highest_student_gpa\nSELECT MAX (gpa)\nFROM students;\nend",
"title": ""
},
{
"docid": "287c10c6a54139578d16e50a863a076c",
"score": "0.76326466",
"text": "def highest_student_gpa\n \"SELECT MAX(gpa) FR... |
e1676110e2fe311d731bc0da8488effc | Get a particular instance endpoint for a service instance. Returns detailed Endpoint information for a given InstanceEndpoint. | [
{
"docid": "7f326363ba5a70473ac282dfb86b8647",
"score": "0.7529488",
"text": "def get_instance_endpoint(service_id, service_instance_id, instance_endpoint, opts = {})\n data, _status_code, _headers = get_instance_endpoint_with_http_info(service_id, service_instance_id, instance_endpoint, opts)\n ... | [
{
"docid": "9019d8226ec103c69ed845148578264a",
"score": "0.76515377",
"text": "def get_instance_endpoint(service_id, service_instance_id, instance_endpoint_id, opts = {})\n data, _status_code, _headers = get_instance_endpoint_with_http_info(service_id, service_instance_id, instance_endpoint_id, opt... |
e86b1eba6d926ebad227f8d18e5a9ffc | Takes over the validation for ActiveSources | [
{
"docid": "23cf73b2130a78db3f3853bc34d2432b",
"score": "0.0",
"text": "def validate\n self.class\n end",
"title": ""
}
] | [
{
"docid": "2a2cdc4d6dd215b8a67ae826777369dc",
"score": "0.70218885",
"text": "def valid_source?\r\n\r\n end",
"title": ""
},
{
"docid": "26681d6252dc887fa1c952645bd3e703",
"score": "0.69956595",
"text": "def validate_source\n invalid_source = @params[:sources].find { |source... |
130d7ea74ba152d914b7a24c4a2c99ae | Look up unassigned objects of the given type and attempt to assign them to orgchart objects (setting orgchart_id). | [
{
"docid": "ad5206bc72afe26447acd0b8c6a579ec",
"score": "0.67876476",
"text": "def assign_by_name(type, args = {})\n et_by_name = self.send(\"unassigned_#{type}s_by_name\")\n oc_by_name = self.send(\"oc_#{type}s_by_name\")\n\n et_by_name.each do |name,et_objects|\n next unless et_o... | [
{
"docid": "6978477c9927457b64de497caef01faa",
"score": "0.6501176",
"text": "def assign_type_membership_object_type(object_type); end",
"title": ""
},
{
"docid": "7fad32a8bab7cdda4d82712374449f45",
"score": "0.5896978",
"text": "def assign_type_membership_object_type(object_type)\n ... |
6a09e8b698d61ce28071c95cfc0a6ef1 | Create gps location for a given stream | [
{
"docid": "f352717b2a7459fd4f8f65180fd96cfd",
"score": "0.60058635",
"text": "def status\n metadata = stream_params.fetch(:metadata)\n gps_data = metadata.fetch(:gps){ {} }\n\n begin\n @stream.update! metadata: metadata.to_json\n @stream.gps_locations << GpsLocati... | [
{
"docid": "1a9c702af8dbc69763eeda3149238d40",
"score": "0.6455698",
"text": "def push_geo(stream, lat, long, color=nil)\n post stream, 'latitude' => lat, 'longitude' => long, 'color' => color\n end",
"title": ""
},
{
"docid": "d5f75c52d471f758554affc2c3eda293",
"score": "0.55128235"... |
efec8622c63ad7b477b8e9f0f4b25c69 | GET /calendars_hitches/1 GET /calendars_hitches/1.json | [
{
"docid": "a81945373733e4951b987de6ea99f9a1",
"score": "0.0",
"text": "def show\n end",
"title": ""
}
] | [
{
"docid": "f87052fa5844ccb8ad8fc318cc9faa44",
"score": "0.7588324",
"text": "def index\n @calendars_hitches = CalendarsHitch.all\n end",
"title": ""
},
{
"docid": "93e221f52a1fb29f9fa66aa41392b614",
"score": "0.6835139",
"text": "def index\n json_response(@calendar.events)\n ... |
d1ea72b39b10a4bb2a156d7ef65f80a7 | return a hash of page and per_page that can be used to build a will_paginate collection the per_page figure can be set in several ways: | [
{
"docid": "b9548cd3b17a46ef4ca26a514e415f9e",
"score": "0.7481931",
"text": "def pagination_parameters\n pp = params[:pp] || TrustyCms.config['admin.pagination.per_page']\n pp = (self.class.default_per_page || 50) if pp.blank?\n {\n page: (params[:p] || 1).to_i,\n per_page: pp.to_i,\... | [
{
"docid": "85d0dc822f66b63514eaadb1c71ead08",
"score": "0.7492322",
"text": "def page_params\n [ :per_page, :page ]\n end",
"title": ""
},
{
"docid": "8104b3014c1134f63817097ac64c71a0",
"score": "0.74830425",
"text": "def page_data\n return {\n :per_page => ... |
a023fe6692c4df5c1504790f048838e2 | Creates an order for the given team | [
{
"docid": "fbabe36a65be9c10878e03bc1c5ccf7b",
"score": "0.8431056",
"text": "def create_order(team_id, params)\n c_r Lokalise::Resources::Order, :create, team_id, params\n end",
"title": ""
}
] | [
{
"docid": "6290d199581fe731ab6a021dd425a6b4",
"score": "0.7793369",
"text": "def create_order(team_id, req_params)\n params = { query: team_id, req: req_params }\n\n response = endpoint(name: 'Orders', params: params).do_post\n\n # We must patch content because the API does not ret... |
aa906b3c7de46846a3f88d230ccc1149 | PATCH/PUT /grocey_items/1 PATCH/PUT /grocey_items/1.json | [
{
"docid": "822edf5fe72943e323e83c7f9ad4c70f",
"score": "0.70118123",
"text": "def update\n @grocery_list = @grocey_item.grocery_list\n respond_to do |format|\n if @grocey_item.update(grocey_item_params)\n format.html { redirect_to @grocery_list, notice: 'Grocey item was successfully u... | [
{
"docid": "64f057bcf82c68fb96b7daca3e2c3bfb",
"score": "0.7105114",
"text": "def update\n @grocery_item = GroceryItem.where(\n grocery_list_id: params[:grocery_list_id],\n id: params[:id]\n )\n\n if @grocery_item.update(grocery_item_params)\n render json: @grocery_item\n else... |
4d8279ad517c446a2b4b37b7073c876d | Using the stories array Test your cat, pig, and candy upvote conditional logic. (cats get double upvotes, pigs half of upvotes, candy gest +1 upvote) | [
{
"docid": "fcf3ef578ad3b5edb26b4eddc8c4b771",
"score": "0.59325045",
"text": "def test_bonus(stories_collection, bonus_points)\n\t\tif bonus_points==1\n\t\t\tputs \"Bonus points! It's a cat, pig or candy story.\"\n\t\tend\n\tend",
"title": ""
}
] | [
{
"docid": "7c527687865da18f848174b14d7ee2c6",
"score": "0.79610044",
"text": "def calculate_upvotes(story)\n upvotes = 1\n title = story[:title]\n cateogry = story[:category]\n\n if story.downcase.include? 'cat'\n upvotes *= 5\n elsif story.downcase.include? 'bacon'\n upvotes *= 8\n end\n\n... |
3f88e1682259007c28a45820f8758f38 | returns true if locked | [
{
"docid": "abfe3b02dc554f07c67a37aba3cb205b",
"score": "0.0",
"text": "def expect_pre_launch?\n Project.pre_launch? && (Rails.env == \"production\" || !session[:open_sesame]) \n end",
"title": ""
}
] | [
{
"docid": "a8b8c0073281ece26257006562911615",
"score": "0.9073986",
"text": "def locked?\n end",
"title": ""
},
{
"docid": "ef6fb3733ed27e765962bd5b2aa8c511",
"score": "0.89876884",
"text": "def locked?() end",
"title": ""
},
{
"docid": "b3b5c07772e08f5ea05ae0709afa3b... |
e7eebf8a600af1fc7ccb6f315345a300 | reception d'un message param message : Message | [
{
"docid": "884448f76fa599eabe0253eabd24cb4a",
"score": "0.0",
"text": "def recevoirMessage(message)\r\n\t\t@lstMessages[message.id] = message\r\n\tend",
"title": ""
}
] | [
{
"docid": "30a2ede5c172ea4115470110815bf796",
"score": "0.81021076",
"text": "def message(message) end",
"title": ""
},
{
"docid": "22a909f89a9a3cddaf7dd4c15337db0d",
"score": "0.79719317",
"text": "def message( message )\n\tend",
"title": ""
},
{
"docid": "a0f96f2353b75... |
f74c29bdfc4a183e1ec1b91334cd5be2 | Use callbacks to share common setup or constraints between actions. | [
{
"docid": "4f41fd165b86aa895505283bba5c3f63",
"score": "0.0",
"text": "def set_cleaning\n @cleaning = Cleaning.find(params[:id])\n end",
"title": ""
}
] | [
{
"docid": "bd89022716e537628dd314fd23858181",
"score": "0.61642385",
"text": "def set_required_actions\n # TODO: check what fields change to asign required fields\n end",
"title": ""
},
{
"docid": "3db61e749c16d53a52f73ba0492108e9",
"score": "0.60448",
"text": "def action_hook; ... |
65b4778570589a88e402af5d2811b84b | It is safer not to have the method "shape" to avoid misconfusion of shape_ul0 and shape_current: | [
{
"docid": "20d12f921910ad84a19b9cd2687951f1",
"score": "0.8495031",
"text": "def shape\n\t raise \"The shape method is not available. Use shape_ul0 or shape_current instead.\"\n end",
"title": ""
}
] | [
{
"docid": "aad92453b7d69cc75e723c0a2624890b",
"score": "0.8499816",
"text": "def shape\n raise \"The shape method is not available. Use shape_ul0 or shape_current instead.\"\n end",
"title": ""
},
{
"docid": "aa757bf1757bd920cc73c0252155e298",
"score": "0.7839353",
"tex... |
e0fb8f5f4cbfc906407a5c52cfed5874 | Arma el ID de redis | [
{
"docid": "a2a2b1a6f08c82d1a957ae6cbcb12ace",
"score": "0.78380847",
"text": "def asigna_redis_id\n # El 2 inicial es para saber que es un region\n # El 0 en la segunda posicion denota que es un estado\n # Y despues se ajusta a 8 digitos el numero de estado, para dar un total de 10 digitos\n ... | [
{
"docid": "08204f796af1b4246d83856f001c09a6",
"score": "0.7834615",
"text": "def asigna_redis_id\n # El 2 inicial es para saber que es un region\n # El 2 en la segunda posicion denota que es una ANP\n # Y despues se ajusta a 8 digitos, para dar un total de 10 digitos\n self.redis = {} unles... |
f74c29bdfc4a183e1ec1b91334cd5be2 | Use callbacks to share common setup or constraints between actions. | [
{
"docid": "12b7ed893d5aaad2df6ebc20996e112b",
"score": "0.0",
"text": "def set_cio\n @cio = Cio.find(params[:id])\n end",
"title": ""
}
] | [
{
"docid": "bd89022716e537628dd314fd23858181",
"score": "0.6163821",
"text": "def set_required_actions\n # TODO: check what fields change to asign required fields\n end",
"title": ""
},
{
"docid": "3db61e749c16d53a52f73ba0492108e9",
"score": "0.6045432",
"text": "def action_hook;... |
383348c9fa738f07d1484b3957adbee1 | Returns content for palindrom testing. | [
{
"docid": "63c8a5d2bbba223636d3b40044f6dff0",
"score": "0.0",
"text": "def processed_content\n self.downcase\n end",
"title": ""
}
] | [
{
"docid": "a4bb87c9dceaaf64338c553fadd6e1e4",
"score": "0.66661394",
"text": "def palindrome?\n processed_content == processed_content.reverse\n end",
"title": ""
},
{
"docid": "cc9179a51141e9f7d573953ef6f1840f",
"score": "0.6655325",
"text": "def palindrome?\n processed_conten... |
2259d0ae29bdfee9a781785592060e89 | Generate and then set a token | [
{
"docid": "fc753993280cbe76f6a0885924fefa55",
"score": "0.0",
"text": "def set_pin(key)\n self.set(key => self.generate_pin(key))\n end",
"title": ""
}
] | [
{
"docid": "39738dc1d7f33d6a44a3563c7bd40c75",
"score": "0.84578174",
"text": "def generate_token! # :nodoc:\n generate_token\n save\n end",
"title": ""
},
{
"docid": "a2d21f307865adf87d3508daa7f55910",
"score": "0.81636554",
"text": "def generate_token\n\t\ttoken_gen = ... |
dce4c2df43e436ce440ada4512db933d | GET /positions/admin Admin shows all of the different positions and organizations and allows you to click on them to edit them. | [
{
"docid": "47f905bca6d24fc77d0ccbf3165ef5f3",
"score": "0.7187529",
"text": "def admin\n @organizations = Organization.all\n @positions = Position.all.joins(:job).order('jobs.organization_id').reverse_order\n end",
"title": ""
}
] | [
{
"docid": "56b8f4d3601004a2f01f14d716b76c8c",
"score": "0.6700971",
"text": "def index\n pos = current_user&.role == 'admin' ? Position.all : current_user.positions\n\n render json: serialize(pos)\n end",
"title": ""
},
{
"docid": "9ea17ec3e0f79a8e615a43d82f572605",
"score": "0.6... |
3920045c7aa6f2b5215b993c255be1fa | reduce 0 omitted source://actionpack//lib/action_dispatch/journey/parser.rb137 | [
{
"docid": "8eccc29825a89db39f0d3249934df340",
"score": "0.0",
"text": "def _reduce_1(val, _values); end",
"title": ""
}
] | [
{
"docid": "2f2e4ba19bf54ad23e510f9c7effcca9",
"score": "0.6683065",
"text": "def _reduce_109(val, _values, result)\n lexer.lex_state = :expr_end\n result = val[0]\n \n result\nend",
"title": ""
},
{
"docid": "2f2e4ba19bf54ad23e... |
0a630b776b5be42f2c9b168bc3a67240 | DELETE /customers/1 DELETE /customers/1.json | [
{
"docid": "4f239ea86ea51571512c3ff176ed6a44",
"score": "0.0",
"text": "def destroy\n # as = User.where(:id=>@customer.id)\n as = User.find_by_id(@customer.id)\n\n sc = Scustomer.new(:id=>@customer.id.to_s, :username=>as.username, :password=>as.pwd, :is_rticket=>as.is_rticket,:is_wticket=>as.is... | [
{
"docid": "93d388920d3b2a8503a9842b3c29b282",
"score": "0.74892676",
"text": "def delete(options = nil)\n request = Request.new(@client)\n path = \"/customers/\" + CGI.escape(@id) + \"\"\n data = {\n\n }\n\n response = Response.new(request.delete(path, data, options))\n ... |
1e5df270cdbcfa76e99dfb644e502bb7 | Public: Return the current user Doesn't need to handle cases where the current user might not be set, because that is handled inside the authentication logic itself Returns: nothing. | [
{
"docid": "38afe8ad6d32fa3f22e55a42b60e6fe5",
"score": "0.0",
"text": "def get\n render json: serialize_user(@current_user)\n end",
"title": ""
}
] | [
{
"docid": "870dfc400ad36146469b2f74873ff2f0",
"score": "0.88598573",
"text": "def current_user\n unless defined?(@current_user)\n if @current_user = login_from_session || login_from_basic_auth\n @current_user = nil unless @current_user.can_login?\n end\n end\n @current_user\n ... |
75dd4d05150cf79338d80fe880aeac62 | Scenario outline example row | [
{
"docid": "0edc7caac59f4e0a34e41a594deab8f7",
"score": "0.6915522",
"text": "def example_row\n @example_row ||= begin\n scneario_examples = scenario_source.examples.table_body.index { |row| row.id == scenario_source.row.id } + 1\n\n \"Examples (##{scneario_examples})\"\n end\n ... | [
{
"docid": "9213ac15210998bbb5980dda01f65a2d",
"score": "0.69433933",
"text": "def before_table_row(table_row)\n if @scenario_outline && !@header_row && !@in_multiline_arg\n @tracker.scenario_name = \"#{@scenario_outline_name}: #{table_row.values.join(' | ')}\"\n start_test\n end... |
186b08cfc2113a110ba92b3a52bd76dd | Asserts that there is an error on +field+ of type +type+. | [
{
"docid": "dd89eadaf3d19e991abbcc4e607fd3b2",
"score": "0.7626273",
"text": "def assert_error_on(field, type)\n error_message = ActiveRecord::Errors.default_error_messages[type]\n assert_select \"div.errorExplanation li\",\n :text => /^#{field} #{error_message}/i\n end",
"ti... | [
{
"docid": "11a965c375905bde2d1606fb5f3d55fa",
"score": "0.7583009",
"text": "def assert_error_on(field, type)\n error_message = ActiveRecord::Errors.default_error_messages[type]\n error_regex = /^#{field} #{error_message}/i\n assert_tag :tag => 'div', :attributes => { :class => 'errorExplanati... |
c3c579244ed97215107e2adf3bae0d6b | what happens at which command | [
{
"docid": "4b95b9ad9e11165681b5a97fc4e321fd",
"score": "0.0",
"text": "def give_command(command)\n\t\tif command.start_with? \"PLACE\"\n\t\t\tif @robot.robot_placed?\n\t\t\t\tputs \"\"\n\t\t\t\tputs \"Only one robot permitted in this small world\"\n\t\t\telse\n\t\t\t\tplace(command)\n\t\t\tend\n\t\tels... | [
{
"docid": "b696a2a3562456fa86c6227c5ba7a0ff",
"score": "0.7705088",
"text": "def which(cmd); end",
"title": ""
},
{
"docid": "b696a2a3562456fa86c6227c5ba7a0ff",
"score": "0.7705088",
"text": "def which(cmd); end",
"title": ""
},
{
"docid": "b696a2a3562456fa86c6227c5ba7a0... |
425201777b16b78d35ccd97cba4a27d0 | GET /mg/choices/1 GET /mg/coihces/1.xml | [
{
"docid": "4ca00fab4801461c36b65f3899e89ed9",
"score": "0.5842268",
"text": "def show\n @choice = Mg::Choice.find(params[:id])\n\n respond_to do |format|\n format.html # show.html.erb\n format.xml { render :xml => @choice }\n end\n end",
"title": ""
}
] | [
{
"docid": "25d1aa0fa2d9678f19d0f79e3bc9e260",
"score": "0.581699",
"text": "def index\n @components_cogs = Components::Cog.all\n\n respond_to do |format|\n format.html # index.html.erb\n format.xml { render :xml => @components_cogs }\n end\n end",
"title": ""
},
{
"doci... |
4519976f4f39c53b8a21cfcfa3fd9f19 | Handle a GET request | [
{
"docid": "21f3e942c9b937f73c5967dcee328e65",
"score": "0.6568719",
"text": "def handle_GET resource_path\n\tresource_path = resource_path[1..-1] if resource_path[0] == '/'\n\n\tif File.exist?(resource_path)\n\t\tcreate_found_response(resource_path)\n\telse\n\t\tcreate_not_found_response(resource_path)... | [
{
"docid": "1350c4978794235e6e922377f84d3b73",
"score": "0.79333556",
"text": "def handle_get\n if URLHandler.routable? @request_url\n handler = URLHandler.new(@request_url)\n content = handler.get_generated_content\n code = handler.get_response_code\n mime = handler.get_mim... |
708c66a5b3c05e0da03367ff039cff0c | GET /work_tasks GET /work_tasks.json finished this for the next change for the cluster changing slots into dynamic slots | [
{
"docid": "5fb937c48b6462aee764847e4fe6ea29",
"score": "0.59849524",
"text": "def index()\n\t\t#need to change to delete the tasks from today only\n\t\tsch_day = params[:sch_day].to_time\n\t\tWorkTask.delete_all\n\t\t#WorkDay.select{|wt| wt.start_time.end_of_day != DateTime.now.end_of_day}.each do |wt|... | [
{
"docid": "e674f697c732527370428519e63c1671",
"score": "0.6477947",
"text": "def get_tasks\n end",
"title": ""
},
{
"docid": "d36b26043005ba60e6a8d0b574182ae4",
"score": "0.6380927",
"text": "def tasks\n\t\trender json: Timesheet.tasks(project), each_serializer: TimesheetTaskSerial... |
f843c68079bf688bea52780abb62863b | Destroys a record in Quickbooks. Note that even though Quickbooks will destroy the record, the record's ListID and DeletedTime can be accessed by doing a query for deleted objects of the appropriate type. | [
{
"docid": "d7291f6223d7c4995fed2ee35c89549d",
"score": "0.0",
"text": "def destroy\n self.class.query(self, :delete).nil?\n end",
"title": ""
}
] | [
{
"docid": "902239385b47ec65d5f7a4f11bbf7eac",
"score": "0.7460961",
"text": "def destroy\n before_destroy\n \n entities_for_delete = [\"INVOICE\", \"PAYMENT\", \"SALESRECEIPT\", \"REFUNDRECEIPT\"]\n \n raise RecordDeleteError, \"Can't delete record without ID\" if self[\"Id\"].... |
1660813e9fb408f5465f8634676cc178 | Step forward one day at a time until we reach +max+ (inclusive), yielding each date as we go. | [
{
"docid": "f5c7652ac263a9b3d5f9f4f60f4c43b7",
"score": "0.6703677",
"text": "def upto max, &block # :yield: date\n step max, 1, &block\n end",
"title": ""
}
] | [
{
"docid": "3b160e8358e27b6561d5fa55daa86ba8",
"score": "0.69610006",
"text": "def upto(max, &block) # :yield: date\n step(max, +1, &block)\n end",
"title": ""
},
{
"docid": "0e9962bce5c2159609c640b1307ca0d9",
"score": "0.66295475",
"text": "def each(current=Time.now, max=31)\... |
6fabb2c7b3e451036faf31236f76cf74 | posts shown on the newsfeed | [
{
"docid": "d0aef0ad34e5264c8932e1b8da1fc9b7",
"score": "0.0",
"text": "def newsfeed_posts\n feed_ids = friends.ids.concat([id])\n Post\n .order_created\n .where('author_id IN (:feed_ids) OR postable_id IN (:feed_ids)',\n feed_ids: feed_ids)\n end",
"title": ""
}
] | [
{
"docid": "00ad5b0578e2812bfb824ea77735ef17",
"score": "0.7454405",
"text": "def feed\n @posts = Post.all\n\n render_view(:feed)\n end",
"title": ""
},
{
"docid": "076ac687b686ee8bc040b3379d538d89",
"score": "0.7444753",
"text": "def posts; end",
"title": ""
},
{
... |
b86c37e27a43b0cfb2e9b0e08df0801f | U2.W4: I worked on this challenge [by myself, with: ]. With: Myself 2. Pseudocode create a method with an array variable assign it properties of title, person, gender, place, topic, date, thesis use if/else statements to return varrying sentences Input: A method, with an array, that includes title, person, gender, plac... | [
{
"docid": "8824e1a2977f859926cdad2b9cc3aab9",
"score": "0.65991205",
"text": "def essay_writer(title, person, gender, place, topic, date, thesis)\n if (gender == \"male\")\n \treturn\n \t\t\"#{person} isn't really a #{title}. They wish they were born in #{place} but not as a #{gender}. The topic of ... | [
{
"docid": "49d1037c1a3f6032aed38140aa96f742",
"score": "0.70205176",
"text": "def essay_writer(title, topic, date, thesis, pronoun)\n if pronoun == \"female\"\n return \"#{title}. #{topic} was born in #{date}. She changed the world and is someone we should all learn about further. \n ... |
faa8b96c992666479510456594b82f1c | DELETE /email_listings/1 DELETE /email_listings/1.json | [
{
"docid": "80c2197407ec2379bb55709351092cb1",
"score": "0.7509268",
"text": "def destroy\n @email_listing = EmailListing.find(params[:id])\n @email_listing.destroy\n\n respond_to do |format|\n format.html { redirect_to email_listings_url }\n format.json { head :no_content }\n end\... | [
{
"docid": "b98f15bb2ad2e195ca2fc9660f2438b2",
"score": "0.7194846",
"text": "def delete(email, list_id = nil)\n query = \"email=#{CGI.escape(email)}\"\n query += \"&list_id=#{list_id}\" if list_id\n\n del \"#{@endpoint}?#{query}\", nil\n end",
"title": ""
},
{
"docid": "c6... |
f5e4f571094213db90c857a7a0a46ecc | Create a new group for an org unit. | [
{
"docid": "2183f2392e9f06c707a1f2ed8ad1f0f8",
"score": "0.74813324",
"text": "def create_org_unit_group(org_unit_id, group_category_id, group_data)\n payload =\n {\n \"Name\" => \"string\",\n \"Code\" => \"string\",\n \"Description\" => {}\n }.merge!(group_data)\n # Requires: JSON block of... | [
{
"docid": "20e3b163ee7ac73b165ece89ad4b13c4",
"score": "0.7195921",
"text": "def create\n Group.transaction do\n if self.group.save\n self.add_creator_as_group_admin\n self.add_creator_in_users_unit\n end\n end\n end",
"title": ""
},
{
"docid": "821c279faa1719... |
2c63530a809cd28305737b51f2fb3d0c | PATCH/PUT /home_pictures/1 PATCH/PUT /home_pictures/1.json | [
{
"docid": "a607dda0855ca75d178e7abc928b7f25",
"score": "0.70724756",
"text": "def update\n respond_to do |format|\n if @home_picture.update(home_picture_params)\n format.html { redirect_to @home_picture, notice: 'Home picture was successfully updated.' }\n format.json { head :no_c... | [
{
"docid": "5b0d8d06c174da529a1eb32668101521",
"score": "0.71816325",
"text": "def update\n @picture = Picture.find(params[:id])\n\n respond_to do |format|\n if @picture.update_attributes(params[:picture])\n format.html { redirect_to pictures_path }\n format.json { head :no_cont... |
47a6c9a589eb0f1e04cabc17fab40a5a | POST /profiles POST /profiles.json | [
{
"docid": "2f142819272a6530b2fd7063159722e9",
"score": "0.6571651",
"text": "def create\n profile = Payments::Profile.new(profile_params)\n profile.user = current_user\n\n respond_to do |format|\n if profile.save\n format.html {redirect_to payments_profiles_path}\n else\n ... | [
{
"docid": "b9844e899055456315fae7a29b82c988",
"score": "0.7368123",
"text": "def create\n @profile = current_user.profiles.build(profile_params)\n\n respond_to do |format|\n if @profile.save\n format.html { redirect_to @profile, notice: 'Profile was successfully created.' }\n f... |
4ed8901a624d40c40736d4a8f9b1dfcd | var_ functions handle variable assginments if var != nil, assume the caller wants their data => strings | [
{
"docid": "58ff79da2796c41a39b0e5e07320c185",
"score": "0.6347329",
"text": "def var_string(asgn, var = nil)\n asgn = handle(asgn)\n return asgn unless var\n puts \"var_string: #{var} = #{asgn}\"\n @@install << \"export #{var}=\\\"#{asgn}\\\"\"\n end",
"title": ""
}
] | [
{
"docid": "2603a149a74cf09e5b9ac995a592b312",
"score": "0.6501708",
"text": "def print_var(str, name, val)\n return if val.nil?\n return if val.class == String && val.empty?\n\n str << \"#{name}=\\\"#{val}\\\"\\n\"\n end",
"title": ""
},
{
"docid": "71a759962d17c9e3c... |
ab4a60916cf8842f1884599b09db2111 | :category: Formatting Format date to TeX documents as ISO strings but with endashes | [
{
"docid": "3f20797846cc975b708dcfa03d213c50",
"score": "0.61386275",
"text": "def tex_quote\n strftime('%Y--%m--%d').tex_quote\n end",
"title": ""
}
] | [
{
"docid": "6e6e46ecc7482c41d2d657102419f13a",
"score": "0.7374208",
"text": "def format_date(date); end",
"title": ""
},
{
"docid": "b30cca8646630a4ca6c598341fff3efc",
"score": "0.70331895",
"text": "def render_compact_date(time)\n time.strftime(\"%-m/%e/%y\")\n end",
"title... |
cf8e5ee376ee227211df4d64e9127684 | Returns a date representing Easter From | [
{
"docid": "8614f8a31c6397ddbb902bbf96042e83",
"score": "0.7577922",
"text": "def easter\n y = year\n a = y % 19\n b = y / 100\n c = y % 100\n d = b / 4\n e = b % 4\n f = (b + 8) / 25\n g = (b - f + 1) / 3;\n h = (19 * a + b - d - g + 15) % 30\n i = c / ... | [
{
"docid": "b135008f3f23ce0a3fdcd922136e0021",
"score": "0.6318451",
"text": "def claim_from_date\n unless eob.claim_from_date.blank?\n Output835.log.info \"Claim From Date:#{eob.claim_from_date}\"\n claim_date_elements = []\n claim_date_elements << 'DTM'\n claim_date_elements << ... |
e481e0d539a504bcc8d4c2062ac624fe | PUT /goods/1 PUT /goods/1.json | [
{
"docid": "5f8b4d0bd4cecc760681d7d699c9f17b",
"score": "0.63498276",
"text": "def update\n @good = Good.find(params[:id])\n\n respond_to do |format|\n if @good.update_attributes(params[:good])\n format.html { redirect_to :action => \"index\" }\n format.json { head :no_content }... | [
{
"docid": "855f81d29ee8ff100cfefb3479cedcdd",
"score": "0.63589704",
"text": "def update(url, data)\n RestClient.put url, data, :content_type => :json\nend",
"title": ""
},
{
"docid": "1167cd27cd1fb43f4943b64e7be17837",
"score": "0.6297019",
"text": "def update\n ingredient.... |
dc671c1b30b4a56aec5437c89ca0e3bc | Prints a list of rows with errors, and lists their errors | [
{
"docid": "56c8804fe0aaafaaf4438e211670f260",
"score": "0.8891043",
"text": "def print_errors(rows)\n print \"Errors:\\n\"\n rows.each do |row|\n print \"Row #{row[:row_number]} rejected: #{row[:validation_errors].join(\", \")}\\n\"\n\n end\n print \"\\n\"\n end",
"title": ""
}
... | [
{
"docid": "03957fa7dc5d28d40726b9be20e9ae55",
"score": "0.7250214",
"text": "def errors_for row\n ie = insert_error_for row\n return ie.errors if ie\n []\n end",
"title": ""
},
{
"docid": "5ef38b6aa74a309a372de512188efd03",
"score": "0.70000374",
"t... |
f4d0007b61142fc41472de814c582b54 | Returns the _typecasted_ value of this object. | [
{
"docid": "29a8ad6841a7adbf4200964458fb52d6",
"score": "0.0",
"text": "def to_bool() false end",
"title": ""
}
] | [
{
"docid": "51677ac73c07aae9669d0e9f98cdf1d0",
"score": "0.8232769",
"text": "def value\n @casted_value ||= type_cast_value(@value)\n end",
"title": ""
},
{
"docid": "13ac7088361a7851fe35987bf254ad9c",
"score": "0.77120394",
"text": "def typecasted_value\n typecaster.p... |
5bae6b68c9c56190a7021f2d5771a716 | Returns a new hash where only keys and nested keys indicated by +key_hash+ are kept. Modifies the receiver in place. | [
{
"docid": "f8ad99a07336b441ea6c08dcdc222cee",
"score": "0.6818316",
"text": "def my_deep_filter!(key_hash)\n each_pair do |k,v|\n if ov = key_hash[k]\n v.my_deep_filter!(ov) if ov.is_a?(Hash)\n else\n delete(k)\n end\n end\n self\n end",
"tit... | [
{
"docid": "64142a3166c134fa6a7dc681dadff73e",
"score": "0.7009317",
"text": "def my_deep_remove!(key_hash)\n key_hash.each_pair do |k,ov|\n if ov\n if ov.is_a?(Hash)\n self[k].deep_remove!(ov)\n else\n delete(k)\n end\n end\n end\... |
cff1b826e7b172d72d01ab8e7d69253c | PUT /components/categories/1 PUT /components/categories/1.json | [
{
"docid": "8e0aa857849998562f0955171978edeb",
"score": "0.6624437",
"text": "def update\n @components_category = Components::Category.find(params[:id])\n index\n respond_to do |format|\n if @components_category.update_attributes(params[:components_category])\n format.js { \n ... | [
{
"docid": "d042a4b8d67e19e968d8c4f929e81e33",
"score": "0.7607476",
"text": "def UpdateCategory params = {}\n \n APICall(path: 'categories.json',method: 'PUT',payload: params.to_json)\n \n end",
"title": ""
},
{
"docid": "64342e33d137990e24b5fa224c350bd3",
"sco... |
a58343c99ad5874680d33ff25686088e | Prints out the list of students | [
{
"docid": "24438f903b2e0c48aef07ad241ae27d8",
"score": "0.7869199",
"text": "def show_students\n print_header\n print_students_list\n print_footer\nend",
"title": ""
}
] | [
{
"docid": "1a49b102ad0cb84588e1102b6c6f5c3f",
"score": "0.83193207",
"text": "def print_students_list\n\t@students.each do |student|\n\t\tputs \"#{student[:name]} (#{student[:cohort]} cohort)\"\n\tend\nend",
"title": ""
},
{
"docid": "51942821d7a010290fc2ba067c8116f3",
"score": "0.82288... |
6c82585396a0083dc64319758909e01e | Returns single payment amount (sum of net amount and taxes) | [
{
"docid": "f4f581a27c2ed6e9abe2b733cb0c9630",
"score": "0.73525923",
"text": "def amount\n self.net_amount+self.taxes_amount\n end",
"title": ""
}
] | [
{
"docid": "54bd79e42ca3ef65cd3d6785441fafa1",
"score": "0.81171817",
"text": "def payment_amount\n amount - tax\n end",
"title": ""
},
{
"docid": "69a5ca33082df37b94ed4b9fe25075bb",
"score": "0.7490367",
"text": "def payment_amount\n end",
"title": ""
},
{
"do... |
1ee1b54a8aebf66546f00e19ba9c2266 | display the form to enter reject message | [
{
"docid": "e72d0c43755f14fc903be38b77e209af",
"score": "0.6133853",
"text": "def editreject\n\t\t@article = Article.find(params[:id])\n\t\t# only submitted articles can be rejected\n\t\tif @article.state != 1\n\t\t\tflash[:notice] = 'Only submitted articles can be rejected.'\n\t\t\tredirect_to :action ... | [
{
"docid": "35ac3883effa858104c6e037fec4c2db",
"score": "0.66513693",
"text": "def reject\n\t\t@article = Article.find(params[:id])\n\n\t\tif @article.state == 1\n\t if params[:article][:message]\n\t @article.state = 2\n\t @article.message = params[:article][:message] \n\t @article.fre... |
e8919bdd818866b6ec335bc699cc0e1f | parse the data in the new parser (the data already set through the initialize / new method) | [
{
"docid": "55ad1f45705be1311958d1d17c696b27",
"score": "0.0",
"text": "def parse\n return [] if @string_to_parse.empty?\n return @parsed unless @parsed.empty?\n @scanner = StringScanner.new @string_to_parse\n @scanner.pos = 0\n @scanner.skip(/[^%]*/) if @scanner.exist?(/%PDF/i)... | [
{
"docid": "35ecb122268dcde888027c8e52d5cb6b",
"score": "0.79771256",
"text": "def parse_data\n end",
"title": ""
},
{
"docid": "7b3ae544db71e55fb31744dfad208455",
"score": "0.7885672",
"text": "def parse data\n parse! parser data\n end",
"title": ""
},
{
"doci... |
7c0bb8448066d03f3cbf948836a3334e | Returns true if the user is logged in, false otherwise. | [
{
"docid": "be70d9e2f2572b85d49bb87417a80770",
"score": "0.0",
"text": "def logged_in?\n !current_user.nil?\n end",
"title": ""
}
] | [
{
"docid": "4d66ee4f19ef7a74bdda55e8eac57564",
"score": "0.9082417",
"text": "def user_is_logged_in()\n user = get_user()\n if user != nil\n true\n else\n false\n end\n end",
"title": ""
},
{
"docid": "e2e16a22248dff1cb465205088ea33b3",
"score": "0.8764097",
"t... |
af630984682f1a0b5a68e6092af0d102 | Update properties of this object | [
{
"docid": "6f21afd51fb148ca017dae68c085810b",
"score": "0.0",
"text": "def update!(**args)\n @keys = args[:keys] if args.key?(:keys)\n @next_page_token = args[:next_page_token] if args.key?(:next_page_token)\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... |
7ae60a34a12d8547192c7994b9665080 | POST /emergency_notifications_group POST /emergency_notifications_group.json | [
{
"docid": "3769d599dc600c42dabf2da1b087e1be",
"score": "0.7116711",
"text": "def createGroup\n #create new Notification with parameters passed in\n @emergency_notification = EmergencyNotification.new(emergency_notification_params)\n #print notification details to logs and console for debug pur... | [
{
"docid": "34f02dedfb2c61f0b8a736744918380c",
"score": "0.6845486",
"text": "def invite_to_group\n group = Group.find params[:group_id]\n user = User.find params[:user_id]\n\n notif = Notification.create(sender: current_user, receiver: user,\n entity: group, even... |
fcfb98c7e5e7ec0df81ab2424f0de48a | get_word checks to see if the word length is greater than or equal to 2 | [
{
"docid": "b5d829da2fde520ab503a9cd519dcfca",
"score": "0.69167143",
"text": "def get_word\n word = gets.chomp\n until (word.length >= 2)\n puts \"Please enter a word that is at least 2 characters long\"\n word = gets.chomp\n end\n return word\nend",
"title": ""
}
] | [
{
"docid": "aa7221cdac822eafccdf0a767a9ace84",
"score": "0.76582885",
"text": "def word_check(word)\n if word.length < 6\n return \"short\"\n elsif word.length == 6\n return \"medium\"\n elsif word.length > 6\n return \"long\"\n end\nend",
"title": ""
},
{
"docid": "9879d5b4a99d... |
fcf86b89f83018c17ab29492f88c72a5 | PATCH/PUT /skillsets/1 PATCH/PUT /skillsets/1.json | [
{
"docid": "8f3ebd808c1da10304cc16cc450f0c51",
"score": "0.6323708",
"text": "def update\n @employee = Employee.find(params['skillset']['employee_id'])\n respond_to do |format|\n if @skillset.update(skillset_params)\n # format.html { redirect_to @skillset, notice: 'Skillset was success... | [
{
"docid": "943cf18882bc4aee1eaceefa27672918",
"score": "0.7581184",
"text": "def update\n @skill_set = SkillSet.find(params[:id])\n\n respond_to do |format|\n if @skill_set.update_attributes(params[:skill_set])\n format.html { redirect_to @skill_set, notice: 'Skill set was successfull... |
ca826ff7f4b37f3a16aa3a9ad9420181 | The edit and update methods grab a user based on the url? id. The update method runs the update_attributes method that takes in the private user_params method and redirects to the user prof if successful. If not sucessful, the edit page is rerendered. | [
{
"docid": "d7d85e225a5e57a35a973fd017983c0f",
"score": "0.0",
"text": "def edit\n @user = User.find(params[:id])\n end",
"title": ""
}
] | [
{
"docid": "fe1987671bc716b46d2ae58a00019b74",
"score": "0.77040267",
"text": "def edit\n\t @user = User.find(params[:id])\n\t\tif @user.update_attributes(params[:user])\n\t\t\tredirect_to user_root_path\n\t\telse\n\t\tend\n\tend",
"title": ""
},
{
"docid": "ada60e91178852a404b77c49d60985... |
5e462b9288aa55f058ab7551e82862d3 | DO NOT OVERLOAD output: if : TorrentList instance (can be empty thought) | [
{
"docid": "d511901c468f4123ced241838d3e1ede",
"score": "0.44905618",
"text": "def extract_torrents_from_page\n list = TorrentList.new\n torrents_unparsed.each do |unparsed_torrent|\n torrent = extract_torrent(unparsed_torrent)\n list << torrent\n end\n list\n end",
... | [
{
"docid": "69e9fa21cccf27a256e5098100325a52",
"score": "0.64173526",
"text": "def refresh_local_torrents\n changed = false\n list = self.torrent_list\n if list == false\n return false\n end\n local_list = self.torrents\n # Add torrents if the backend server has them and we don't\... |
d8f7b43dbb29e4e282f5fbd27795a5d8 | Removes all the data from the collector | [
{
"docid": "476169d2747a9b7591e7f5ad930536c2",
"score": "0.0",
"text": "def clear\n instance.clear\n end",
"title": ""
}
] | [
{
"docid": "52d4b2d87d793c691411bd494eaf4e45",
"score": "0.7374658",
"text": "def clear ; @data.clear ; end",
"title": ""
},
{
"docid": "ee3b6fd90b2e98c0adc4feb4be6e4eea",
"score": "0.7351112",
"text": "def clear_all\n data.delete_all\n self\n end",
"title": ""
},
... |
6e30d36fdab9348a8181a31962b28c97 | TO DELET LOOK AT PUNDIT SCOPE | [
{
"docid": "671fa3fb58cc95547dadb6720785c16f",
"score": "0.0",
"text": "def index\n save_user_pref(current_user)\n @menu = current_user.menus.empty? ? create_menu : current_user.menus.last \n \n if current_user.user_ingredients.count == 0 \n @menu.recipes.each do |recipe|\n recip... | [
{
"docid": "a1fe3f5537fe974aa74f0623ce02b5a7",
"score": "0.66456926",
"text": "def pop_tool\n end",
"title": ""
},
{
"docid": "612bbdd3cc54a1097e9f052f32fab9ff",
"score": "0.6556493",
"text": "def to_unload; end",
"title": ""
},
{
"docid": "8930a74c7fb0e72218c980495d1dca... |
1e8bec8bb7ca9c6da759a7fbf32a06b9 | Returns the daily number of commits created by day. | [
{
"docid": "b3ff259b61229a8f8f22f5ad947d3d99",
"score": "0.60263544",
"text": "def daily_commits_created\n respond_with Commit.daily_commits_created\n end",
"title": ""
}
] | [
{
"docid": "4171674c10cfb64b5703153c3f32fbc3",
"score": "0.6706585",
"text": "def n_commits(date)\n 30\nend",
"title": ""
},
{
"docid": "f28386b661dc020718305b5e668b1157",
"score": "0.635028",
"text": "def daily\n (0..Stats.days_in_month).collect { |d| redis.get(\"#{prefix_da... |
f5951430fa65edfd17e42c0f3b46cb07 | PATCH/PUT /todos/1 PATCH/PUT /todos/1.json | [
{
"docid": "ef9e37fbafcfb2937db4c1b9d0df38e5",
"score": "0.6751128",
"text": "def update\n respond_to do |format|\n if @todo.update(todo_params)\n format.html { redirect_to @todo, notice: 'Todo was successfully updated.' }\n format.json { render :show, status: :ok, location: @todo ... | [
{
"docid": "d82922d817e18abb4b75ac4131e38978",
"score": "0.7150866",
"text": "def update\n\n if @todo.update(todo_params)\n render json: @todo, status: :ok\n else\n render json: @todo.errors, status: :unprocessable_entity\n end\n \n end",
"title": ""
},
{
"do... |
c594bd9d8afd60f0b719fdbbfeb0ecb2 | start at the beginning of original string return value should be shortest to longest substring Use StringChars to form an array Iniitalize a result array Iterate through the array.size.times concatenate all the chars and send to the result array use pop to get rid of the last element and repeat use Arraysort at the end | [
{
"docid": "421775617f720b019ba45d4dbf90bec6",
"score": "0.7494336",
"text": "def substrings_at_start(string)\n result = []\n string = string.chars\n string.size.times do\n result << string.join('')\n string.pop\n end\n\n result.sort\nend",
"title": ""
}
] | [
{
"docid": "956aac408f3d9e5add94aefc7e7d42fe",
"score": "0.73817116",
"text": "def find_longest_sorted_substring(str)\n results = []\n\n 0.upto(str.length-1).each do |i|\n results << longest_head_substring(str[i..-1])\n end\n\n results.sort_by {|el| el.length}.last\nend",
"title": ""
},
{... |
7e41aec887de7e12d728ebe046f9bd13 | DELETE /roads/1 DELETE /roads/1.json | [
{
"docid": "db7a5ffac5ae191087e08632495a3683",
"score": "0.7872252",
"text": "def destroy\n @road = Road.find(params[:id])\n @road.destroy\n\n respond_to do |format|\n format.html { redirect_to roads_url }\n format.json { head :no_content }\n end\n end",
"title": ""
}
] | [
{
"docid": "f050fda09cc5ed8896a8d6b55f519f31",
"score": "0.7461137",
"text": "def destroy\n @medium_road = MediumRoad.find(params[:id])\n @medium_road.destroy\n\n respond_to do |format|\n format.html { redirect_to medium_roads_url }\n format.json { head :no_content }\n end\n end",... |
5f20c0ca176c12cceed2f6885a9beee6 | GET /buyer_leads_zip_codes GET /buyer_leads_zip_codes.json | [
{
"docid": "7e6f812b517612e023147cb108aa00f2",
"score": "0.70057994",
"text": "def index\n if @party \n @buyer_leads_zip_codes = @party.buyer_leads_zip_codes\n else\n @buyer_leads_zip_codes = BuyerLeadsZipCode.all\n end\n \n respond_to do |format|\n format.html # index.ht... | [
{
"docid": "8cf3d38186afa07d3da8b1838b1d2551",
"score": "0.7283483",
"text": "def show\n @buyer_leads_zip_code = BuyerLeadsZipCode.find(params[:id])\n\n respond_to do |format|\n format.html # show.html.erb\n format.json { render json: @buyer_leads_zip_code }\n end\n end",
"title"... |
00a5936b192152861479bf9d3153f16c | The Add method should throw an exception when called with an input containing at least one negative number. | [
{
"docid": "a79b9e52a58fcbd651c1d92d8faadff2",
"score": "0.62845355",
"text": "def test_Add_Should_ThrowException_When_CalledWithInputContainingNegativeNumberWithCustomSeparatorDeclaration115\n # Arrange.\n @inputValue = '//[?][??][???]\\n-1??2'\n @errorMessage = 'Negatives not allo... | [
{
"docid": "387b2052e1c0ddadc67b2625b7d6c6cf",
"score": "0.71164185",
"text": "def add_nums(num_1, num_2)\n return num_1.to_i + num_2.to_i\n raise ArgumentError, \"Enter Positive Number\" unless num_1 > 0\nend",
"title": ""
},
{
"docid": "887280f7b72bd208cc53c339757a7946",
"score":... |
7c1849916d27b2e8ef6d299464ca9337 | Called when a rescue statement is found. | [
{
"docid": "45777e4d27ae283652c0acac6e5e29a8",
"score": "0.0",
"text": "def on_rescue(exceptions, variable, value, list)\n source = code(lineno)\n col = calculate_column(source, 'rescue')\n\n token = Token::StatementToken.new(\n :type => :rescue,\n :statement => [exc... | [
{
"docid": "8f58b306a8219da794fe3b7854794cd1",
"score": "0.74426675",
"text": "def on_rescue(exceptions, variable, statements, consequent); end",
"title": ""
},
{
"docid": "bc278dd23a8f741724982bfba5e804fe",
"score": "0.7405911",
"text": "def Rescue(keyword, exception, statements, co... |
6ec651874bc76a99c18b38f4e2368694 | A helper method that returns an array of content datastreams | [
{
"docid": "b8763ec40bc4c4680a0b4bb1326c2960",
"score": "0.7537635",
"text": "def content_datastreams \n ds_array = []\n # Iterate through the datastreams and build ds_id array..\n self.datastreams.each_key do |key| ds_array << key end \n content_ds = ds_array.select do |s| if s != 'con... | [
{
"docid": "89c81ea8217de43b57366a3ec026b872",
"score": "0.6996756",
"text": "def streams\n @streams || []\n end",
"title": ""
},
{
"docid": "4e2ef9d12914d81004cd3a5e7c92cc95",
"score": "0.66333604",
"text": "def streams\n return @streams\n end",... |
f6ecb2bb031f8ce060b8eac14ece8322 | GET /admin/users/1 GET /admin/users/1.json | [
{
"docid": "adf5030751d33a9ad93e572dea725e36",
"score": "0.0",
"text": "def show\n @admin_user = Admin::User.find(params[:id])\n render :layout => 'interna'\n end",
"title": ""
}
] | [
{
"docid": "430706e49237e520d33d6c2eaffa95b2",
"score": "0.74659705",
"text": "def index\n set_users_for_admin\n\n respond_to do |format|\n format.html # index.html.erb\n format.json { render json: @users }\n end\n end",
"title": ""
},
{
"docid": "9f7c735ace683c5c2b12c914... |
566bb4b35aedb16dc7c08b0f3b2ecdcb | BreadthFirst Search searches branch levels before moving to children | [
{
"docid": "79024d63560e67c65f344695035af9ad",
"score": "0.6405584",
"text": "def breadthFirstSearch(target, node)\n\tqueue = []\n\tqueue << node # creates array\n\tqueue.each do |n| # checks each child\n\t\treturn n if n.data == target\n\t\tn.children.each { |c| queue.push(c) }\n\tend\n\treturn nil # r... | [
{
"docid": "2e60dfa05a5492f442e4bd6b913fedd9",
"score": "0.69953966",
"text": "def use_breadth_first(item, graph, logic_function = ->(x){graph[x].empty?} , returned = \"steps\" )\r\n search_queue = []\r\n steps = {}\r\n search_queue = search_queue.concat(graph[item])\r\n searched = []\r\n ... |
851e03c2399ac0fec74aee551f6b02ad | GET /creations/new GET /creations/new.xml | [
{
"docid": "9e3fadf1fc941e200f58d40d8c699f77",
"score": "0.77050555",
"text": "def new\n @creation = Creation.new\n\n respond_to do |format|\n format.html # new.html.erb\n format.xml { render :xml => @creation }\n end\n end",
"title": ""
}
] | [
{
"docid": "359033d1a01508006b411026c92bf525",
"score": "0.746275",
"text": "def new\n @crew = Crew.new\n\n respond_to do |format|\n format.html # new.html.erb\n format.xml { render :xml => @crew }\n end\n end",
"title": ""
},
{
"docid": "c8e503ed938051f8a0b27a8b5cc2a68e... |
011351ccca3a690b0beb2cd8016d4200 | def new_car(make, model, classification) | [
{
"docid": "3ab62fd5f72ebdbba7a4c8095606ace7",
"score": "0.0",
"text": "def all_cars\n Car.all.select { |car| car.owner == self }\n end",
"title": ""
}
] | [
{
"docid": "20cbb35839f2011cdcba6ad5479840ef",
"score": "0.6973058",
"text": "def createModel(model, trim, km, year, type, driveTrain, trans, id, status, fuel, features)\n @carModel = CarModel.new(model, trim, km, year, type, driveTrain, trans, id, status, fuel, features)\n self.model = model\n ... |
89ef3e9a56d319a3ff11a2cc8aa4739c | Generate the stylesheet tags for a batch of packages, with options, by yielding each package to a block. | [
{
"docid": "1dff7280cc044c70868b30292b1b14bf",
"score": "0.7115617",
"text": "def tags_with_options(packages, options)\n packages = packages.dup\n packages.map! {|package| yield package }.flatten!\n packages.push(options) unless options.empty?\n stylesheet_link_tag(*packages)\n en... | [
{
"docid": "4417dc51d181ca54a30224ea778acf08",
"score": "0.66416985",
"text": "def individual_stylesheets(packages, options)\n tags_with_options(packages, options) {|p| Jammit.packager.individual_urls(p.to_sym, :css) }\n end",
"title": ""
},
{
"docid": "2892dfddec7a0c42b8a2af2fead7f8... |
c657de4b70d266e9a3a784b999ea9e60 | Never trust parameters from the scary internet, only allow the white list through. | [
{
"docid": "cade4af602d2fd7b7cb6a17920299611",
"score": "0.0",
"text": "def word_params\n params.require(:word).permit(:word, :title, :creation_date, :published, :content, :author)\n end",
"title": ""
}
] | [
{
"docid": "e164094e79744552ae1c53246ce8a56c",
"score": "0.69792545",
"text": "def strong_params\n params.require(:user).permit(param_whitelist)\n end",
"title": ""
},
{
"docid": "e662f0574b56baff056c6fc4d8aa1f47",
"score": "0.6781151",
"text": "def strong_params\n params.requ... |
030b0fa100e68869746ef182bc8093ee | Notify the builder that the construction is over | [
{
"docid": "f7917f44729c2d21acea9b0424deeec0",
"score": "0.0",
"text": "def done!\n # Do nothing\n end",
"title": ""
}
] | [
{
"docid": "d86860606b14dcd285d9d66e973ea46f",
"score": "0.65668935",
"text": "def begin_build\n build_stack.push(true)\n end",
"title": ""
},
{
"docid": "770551544aa14d410d1a733ca7f9d386",
"score": "0.63829297",
"text": "def build!\n end",
"title": ""
},
{
"do... |