query_id
stringlengths
32
32
query
stringlengths
7
6.75k
positive_passages
listlengths
1
1
negative_passages
listlengths
88
101
5b76ee25bb4dbf10c029ce1bac062948
returns an httpclient response object (HTTP::Message) responds to content, status, reason, and contenttype.
[ { "docid": "c904673300b8bbbb860402eaf71d935e", "score": "0.0", "text": "def raw_post(url, data = nil, headers = {})\n @log.debug \"Performing POST on url #{url}\"\n @log.debug \"DATA: #{data}\"\n response = @raw_http_client.post(url, data, @extra_headers.merge(headers))\n ret...
[ { "docid": "aee4dc3670590339af79a5039bdf40ff", "score": "0.7201098", "text": "def response_from_http\n RedboothRuby::Request::Response.new(headers: raw_response.to_hash,\n body: raw_response.body,\n status: raw_...
780d3241f3f289b74dec388ca9e02b87
Get a list of available makes and models to create a new Phone Base Settings
[ { "docid": "e806de65eee19495a2c80e45d9a82061", "score": "0.0", "text": "def get_telephony_providers_edges_phonebasesettings_availablemetabases_with_http_info(opts = {})\n if @api_client.config.debugging\n @api_client.config.logger.debug \"Calling API: TelephonyProvidersEdgeApi.get_telephony_...
[ { "docid": "77e1d233b9db36c2d8e6881372381d5c", "score": "0.576443", "text": "def settings_list\n setting.list\n end", "title": "" }, { "docid": "e3a9108ab74d64fe0397637464d43154", "score": "0.56567675", "text": "def get_makes\n @make = Make.all\n end", "title"...
09773ffaffd638790dca2ffb4012b616
++ reballance node body process (bad performance)
[ { "docid": "ba4fb7541f53184016960dd1faaba44b", "score": "0.0", "text": "def reballanceNode(deepP = true)\n r = false ;\n if(!isBottom()) then\n depthRange = getDepthRange() ;\n if(depthRange[1] - depthRange[0] > 1) then\n if(deepP) then\n @children...
[ { "docid": "248efd74c8978c3d1847f9563b3f6d9a", "score": "0.62270695", "text": "def visit_next(node); end", "title": "" }, { "docid": "4f34db36c662281e392869ca7451d6fd", "score": "0.6158469", "text": "def advance_n_nodes()\nend", "title": "" }, { "docid": "3763a820e3c49d0f...
f74c29bdfc4a183e1ec1b91334cd5be2
Use callbacks to share common setup or constraints between actions.
[ { "docid": "4dae0ba7de55664571bec93bb973f01c", "score": "0.0", "text": "def set_note\n @note = Note.find(params[:id])\n\n set_breadcrumbs\n\n add_breadcrumb @note.id, @note\n\n\n if @note.is_a? PostNote\n @breadcrumbs = []\n elsif @note.is_a? ClientJournalNote\n @breadcrumbs = [...
[ { "docid": "bd89022716e537628dd314fd23858181", "score": "0.6163163", "text": "def set_required_actions\n # TODO: check what fields change to asign required fields\n end", "title": "" }, { "docid": "3db61e749c16d53a52f73ba0492108e9", "score": "0.6045976", "text": "def action_hook;...
dbd2363ec804b6304110593cf2a3b3f4
check_access is implemented in most subclassed controllers (where needed)
[ { "docid": "e38945539050dbeb161e7d670c8f1518", "score": "0.7567477", "text": "def check_access\n return true if params[:controller] =~ /newrelic|login|heartbeat|awstats/\n\n #if params[:controller] =~ \"api_login\"\n # logger.info \"APILOGIN: #{params.inspect}\"\n #end\n # check controll...
[ { "docid": "77f516df9e9ebe1bfec96f5de84dfe63", "score": "0.8604054", "text": "def checkAccess\n end", "title": "" }, { "docid": "6e5f810929ff8ed836920b0478003f39", "score": "0.7891193", "text": "def check_access\n return true if params[:controller] =~ /newrelic|login/\n # chec...
8649c8bc4070734b2e4e827146c47d99
'title' in the html usage of the word
[ { "docid": "e050cd6e3de0c996ac137dd146e44a1f", "score": "0.0", "text": "def title; [name,description].compact.join(\": \").to_s end", "title": "" } ]
[ { "docid": "e1c4f4b409eaccc81c7de6f838a6399e", "score": "0.7543839", "text": "def title(str = t(:'.title'))\n\t @_title = str\n\t content_tag :h1, str\n\tend", "title": "" }, { "docid": "8dfd9c954c30552507e6deb49c0f9ef3", "score": "0.7411572", "text": "def title\n t(\".title\")\...
c1e40f4742d34ff2c44dde6dfc01a5ee
Return string for all atoms in xyz trajectory format.
[ { "docid": "34d7d58c5d25c5bf554f4f318f7257ce", "score": "0.69490445", "text": "def getXyz\n xyzString = \"\"\n if @dimension == 2\n 0.upto(@positions.length-1) do |i|\n xyzString += \"#{i} \" + \"%.3f\" % @newPositions[i].x + \" \" +\n \"%.3f\" % @newPositions[i].y ...
[ { "docid": "9f89f06a9e3b73c4d1300971ecfd4f9a", "score": "0.7057474", "text": "def format_xyz(title = \"Aims Geoemtry\")\n output = self.atoms.size.to_s + \"\\n\"\n output << \"#{title} \\n\"\n self.atoms.each{ |a| \n output << [a.species, a.x.to_s, a.y.to_s, a.z.to_s].join(\"\\t\")...
27e88a98029713370d1c82f91fe817b3
Usertop_three_recipes should return the top three highest rated recipes for this user.
[ { "docid": "c5116ae55fb7d0c2ddac5e5b1ec43c8f", "score": "0.7853471", "text": "def top_three_recipes\n top_three_cards = recipe_cards.sort_by { |card| card.rating}.reverse.slice(0, 3)\n top_three_cards.map { |c| c.recipe }\n end", "title": "" } ]
[ { "docid": "59464b2cb618d69d19f279563db1589e", "score": "0.8272072", "text": "def top_three_recipes\n top_three = RecipeCard.all.select {|atr| atr.user == self}\n top_three.sort_by {|atr| atr.rating}.reverse\n top_three[0..2]\n end", "title": "" }, { "docid": "0d53901d5cdf16f4bbc2c...
6fd4862b3d16e12e69704bb688fb0f8b
Set the value for 'download_reports'
[ { "docid": "a54f6e3ec88ad2816f31d4577fb55f44", "score": "0.82707655", "text": "def download_reports=(value)\n if [true, false].include?(value)\n @download_reports = value\n else\n raise ArgumentError, \"Invalid value for 'download_reports'. Only true or false allowed.\"\n...
[ { "docid": "ac4d324e0cd1111f6b8f6505a53c51b2", "score": "0.74061334", "text": "def reports=(value)\n @reports = value\n end", "title": "" }, { "docid": "2e7e9af2589d22e519c4ef66bde8b208", "score": "0.7132017", "text": "def defender_scan_downloads=(value)\n ...
b338d02d0aa1a7b76c2341f22a4bef68
GET /roles/1 GET /roles/1.json
[ { "docid": "99ec0eac7082b93b7face76e5ac1e9d2", "score": "0.0", "text": "def show\n\t\tunless current_admin.full_access? || current_admin.partial_access?\n\t\t\tredirect_to \"/404.html\"# configurar pagina 403\n\t\tend\n\tend", "title": "" } ]
[ { "docid": "fd6d98644a771196d9eeee6e36f133d8", "score": "0.7850137", "text": "def roles\n render :json => {:roles => User.roles}, :status => 200\n end", "title": "" }, { "docid": "6fb8d08b0bffe213eb526b64c8d0d4cf", "score": "0.7785784", "text": "def show(id)\n response = req...
d1e795d3c3266dc20395e4ea7749fc1e
Yield each subscription belonging to this account.
[ { "docid": "97c574c9b198cc819b775dad60ec1c7b", "score": "0.76317734", "text": "def each\n next_token = nil\n begin\n opts = request_opts\n opts[:next_token] = next_token if next_token\n resp = client.send(list_request, opts)\n resp.subscriptions.each do ...
[ { "docid": "51d283af6b5ab0d5e81cae03acde91b6", "score": "0.72584325", "text": "def subscriptions(&block)\n @nr.chunkedIterator(APIInfo[:subscriptions], {metricId:@id}, block)\n return self\n end", "title": "" }, { "docid": "e4a7d7c3be4ecbdac5fd65a3c2929209", "score": "0....
84f50530495633f9ffa60a5316b558fa
1. DRIVER TESTS GO BELOW THIS LINE
[ { "docid": "24677fe0ade3909022284cd9d6ffc498", "score": "0.0", "text": "def assert\n raise \"something is wrong!\" unless yield\nend", "title": "" } ]
[ { "docid": "35a51327dd0b5c9a884bb0e6f7155697", "score": "0.7101672", "text": "def testing\n # ...\n end", "title": "" }, { "docid": "8fbc98d9068bd9c82033a031286f0a1e", "score": "0.70860887", "text": "def tests; end", "title": "" }, { "docid": "8fbc98d9068bd9c8...
e7ed8901ab79b0657f560ce4f309738b
Hook to grab the run_status. We also make the decision to run or not run here (our config has been parsed so we should know if we need to run, we unregister if we do not want to run). (see EventDispatch::Baserun_start)
[ { "docid": "0fceaf9531a84ed847dbeab58f5b5d8b", "score": "0.65367943", "text": "def run_start(chef_version, run_status)\n events.unregister(self) unless Chef::DataCollector::ConfigValidation.should_be_enabled?\n @run_status = run_status\n end", "title": "" } ]
[ { "docid": "9a5b2dc13c2b4c6c763532d398b5c0f2", "score": "0.6336658", "text": "def run_started(run_status)\n Chef::DataCollector::ConfigValidation.validate_server_url!\n Chef::DataCollector::ConfigValidation.validate_output_locations!\n\n send_run_start\n end", "title": "" ...
665a116f5c0f3ccf7b1dee117925fe9f
Deletes a domain using an asynchronous longrunning operation. Prior to calling forceDelete, you must update or remove any references to Exchange as the provisioning service. The following actions are performed as part of this operation: After the domain deletion completes, API operations for the deleted domain will ret...
[ { "docid": "e38d36ea79801b18fe7733fa8b92dc00", "score": "0.0", "text": "def post(body, request_configuration=nil)\n raise StandardError, 'body cannot be null' if body.nil?\n request_info = self.to_post_request_information(\n body, ...
[ { "docid": "82cf56910af1b142261850478af0ca3b", "score": "0.69521147", "text": "def delete_domain(domain)\n _params = {:domain => domain}\n return @master.call 'inbound/delete-domain', _params\n end", "title": "" }, { "docid": "d1adc9b5f339a2197c06932b7d1a017b", "score": "0.6...
5421697539c7611e99ed0d33571f0082
merges the properties given into a not_configured hash
[ { "docid": "7bb86b96814ca9f6630591d4892d1467", "score": "0.7188053", "text": "def nested_merge_not_configured_hash(*properties, &block)\n nested = properties.last.is_a?(Hash) ? properties.pop : {}\n nested = ingest_configuration_block!(nested, &block)\n props = zip_to_hash(block, *p...
[ { "docid": "14856dbe4f2d16e007391e62953c13d0", "score": "0.72529256", "text": "def merge_properties!(props = {})\n @hash[:properties].deep_merge!(props)\n end", "title": "" }, { "docid": "cf13f551ce64096eefa56ed7b0d78804", "score": "0.65635", "text": "def deep_merge_hashes!(t...
66c18dd86074fe21d77de8e7f7ba82be
////////////////////////////////////////////////////////////////////////// Private Methods ////////////////////////////////////////////////////////////////////////// Determine rectangles to positions controls in the user control rect : base rectangle to position the controls spacing : spacing between controls
[ { "docid": "e1a52e1ad727ce81f5adb249f4294c66", "score": "0.6923177", "text": "def determine_rects(rect, spacing)\n rects = []\n \n # Rects Initialization\n rects[0] = Rect.new(rect.x,rect.y,24,rect.height)\n rects[1] = Rect.new(rect.x,rect.y,rect.width,rect.height)\n rects[2] = Rect.ne...
[ { "docid": "84472f17967bcae3a4d7ab17a3d81f3d", "score": "0.6966744", "text": "def determine_rects(rect, spacing)\n rects = []\n \n # Rects Initialization\n rects[0] = [Rect.new(rect.x,rect.y,24,24),\n Rect.new(rect.x,rect.y,80,24),\n Rect.new(rect.x,rect.y,rect....
9c315f881c5e77f71e4f80205f0538e1
Public: Composes the authentication URL, where the user should be redirected to to log in. nonce Unique value associated with the request. Same value needs to be passed to the authenticate method (this value is stored in the user session) Returns the authentication URL
[ { "docid": "303031f7bbf646c112f3557f8fd38d40", "score": "0.68491805", "text": "def auth_uri(nonce)\n client.authorization_uri(\n scope: %i[user_group_path email profile esdl-mapeditor microprofile-jwt user_group],\n state: nonce,\n nonce: nonce\n )\n end", "title": "" } ]
[ { "docid": "7d086a83b2469444ad7f7f6b9349bd49", "score": "0.6701941", "text": "def authentication_url(params={})\n @request_token.authorize_url params\n end", "title": "" }, { "docid": "6f78ebaf017c1b46923bd25bee1ea285", "score": "0.6334766", "text": "def login_url(params, ses...
31d7dc006c8528b216247399878f0b18
XXX: little bit hackish
[ { "docid": "68ef2625ee52e9fac31df22bd3b20981", "score": "0.0", "text": "def to_pml\n @data = { 'loop' => @loop.qname,\n 'step' => @step,\n 'offset' => @offset }\n @data['callsite'] = @callsite.qname if @callsite\n @data\n end", "title": "" } ]
[ { "docid": "b6b2bcc0062aeb115edab7b10cbe6930", "score": "0.6259849", "text": "def desired; end", "title": "" }, { "docid": "794a198d95cf296afde54486d8c4e262", "score": "0.58428437", "text": "def avail_out=(*) end", "title": "" }, { "docid": "9dcc74dd11eb115d21bf9af45b3ec4...
e9d6966bdb70e54ff215f31282469b43
GET /pictures/new GET /pictures/new.xml
[ { "docid": "c433ff37f023185d0eb3f52e6511b25d", "score": "0.7557399", "text": "def new\n @picture = Picture.new\n\n respond_to do |format|\n format.html # new.html.erb\n format.xml { render :xml => @picture }\n end\n end", "title": "" } ]
[ { "docid": "0b07d18cb6b35c4f3295f196e652d021", "score": "0.7501984", "text": "def new\n @picture = Picture.new\n\n respond_to do |wants|\n wants.html # new.html.erb\n wants.xml { render :xml => @picture }\n end\n end", "title": "" }, { "docid": "7c270e4fdc428f9d12e69b6e6...
c0ffc0e3a1d773d746cd970d39aed3cc
If our sweeper detects that a MenuLiveEvent was updated call this
[ { "docid": "ad65487341ced4df79e8474bc2af1384", "score": "0.69364315", "text": "def after_update(menu_live_event)\n expire_cache_for(menu_live_event)\n end", "title": "" } ]
[ { "docid": "212f3f5cc944b42aa5ef123ac5eb8f77", "score": "0.66919684", "text": "def update\n\t\tsuper\n\t\t@current_menu.update\n\tend", "title": "" }, { "docid": "76ecefb3192460b8a06a24d2525655c9", "score": "0.6509302", "text": "def update_call_menu\n if Input.trigger?(Input::B)\n...
1f921218a85b63dca8ac113d1e6598d5
Ensure that datetimes are always saved as UTC
[ { "docid": "3c226c00afaf628d5070f24140236dcd", "score": "0.5728633", "text": "def format_datetime\n self.start_time = self.start_time.in_time_zone(\"UTC\")\n end", "title": "" } ]
[ { "docid": "2b5767113830adb0055609573b26f604", "score": "0.6987269", "text": "def utc?() end", "title": "" }, { "docid": "f8d50dc470ba77d7c541e513b38d1bce", "score": "0.66975725", "text": "def utc() end", "title": "" }, { "docid": "19dbcc4a4104f126811cee6276dc01c5", "...
fabbaee4a4a430c6344b184044fa8277
Determines if the server is a bare metal server In ASM terminology a Bare Metal machine is one without any clustering or storage on top, it's just a managed machine with an OS and potentially some related switches
[ { "docid": "fea451df9b78044a97584a0f292d05e6", "score": "0.8035411", "text": "def baremetal?\n if dell_server?\n !related_switches.empty? && related_volumes.empty? && related_clusters.empty?\n else\n related_volumes.empty? && related_clusters.empty?\n end\n en...
[ { "docid": "d86b83940e4b82ee829378195aa41a23", "score": "0.72430706", "text": "def bare_metal_tagged_network?(network, server)\n if network.type == \"PXE\"\n server.os_installed?\n elsif server.workload_network_vlans.size > 1\n true\n elsif workload_network_count(n...
6b7d5a6b81b2930ea5fb1151d6fb06a0
GET /admin/departamentos GET /admin/departamentos.json
[ { "docid": "632b53eec1d51902bf0536f007ea828d", "score": "0.73484796", "text": "def index\n @admin_departamentos = Admin::Departamento.all\n end", "title": "" } ]
[ { "docid": "48dce95b67df2b651d466bbe0a1dd349", "score": "0.78316295", "text": "def index\n @departamentos = Departamento.all\n\n render json: @departamentos\n end", "title": "" }, { "docid": "c8be0c5e99a7430c4a39a56eacea3164", "score": "0.74342585", "text": "def show\n rend...
a2099a77c85e91272ae2f9e35b937953
Only allow a trusted parameter "white list" through.
[ { "docid": "b9d5f536e222f56029976c424b11ad26", "score": "0.0", "text": "def enrollment_params\n params.require(:enrollment).permit(:student_id, :course_id)\n end", "title": "" } ]
[ { "docid": "3663f9efd3f3bbf73f4830949ab0522b", "score": "0.7943618", "text": "def whitelisted_params\n super\n end", "title": "" }, { "docid": "f6060519cb0c56a439976f0c978690db", "score": "0.69572574", "text": "def permitted_params\n params.permit!\n end", "title"...
610525befaed1b38d0c0147857ec1fea
Returns the referral leaderboard. Args : access_token > the oauth token to use work correctly as expected. Returns : JSON an array leaderboard objects Raises : ++ >
[ { "docid": "102298eb9c30a29970e0ce68575662e2", "score": "0.6589686", "text": "def referral\n expose Leaderboard.referral(@oauth_token)\n end", "title": "" } ]
[ { "docid": "3a256399bcdfd762fa8b8354900c70a8", "score": "0.6365108", "text": "def friends_leaderboard\n get(\"user/#{user_id}/friends/leaderboard.json\")\n end", "title": "" }, { "docid": "f09d34d666e01ade44a836af34f040de", "score": "0.63548386", "text": "def get_leaderboard(...
096744b4d98d5b73c1fc910e44b66378
Begin a page that is view//index.html.erb. You may want to override this for your app. This returns "List Objects".
[ { "docid": "3c0ed7ba2d1ba8899e9707eb3bc8a89c", "score": "0.67523956", "text": "def begin_view_index(objects_locale_key)\n begin_view(t(objects_locale_key))\n #begin_view(t(:List),\" \",t(objects_locale_key))\n end", "title": "" } ]
[ { "docid": "899a72b2170d19ea47acf935393a9ea9", "score": "0.7442222", "text": "def index\n\t\tlist\n\t\trender('list')\n\tend", "title": "" }, { "docid": "899a72b2170d19ea47acf935393a9ea9", "score": "0.7442222", "text": "def index\n\t\tlist\n\t\trender('list')\n\tend", "title": ""...
7262f53bb44d61b0036fd25bb04c8066
GET /project_roles/1 GET /project_roles/1.json
[ { "docid": "a81945373733e4951b987de6ea99f9a1", "score": "0.0", "text": "def show\n end", "title": "" } ]
[ { "docid": "7b440ec3ea3a5288b739e331b63a114c", "score": "0.7758174", "text": "def index\n @project_roles = ProjectRole.all\n end", "title": "" }, { "docid": "7b440ec3ea3a5288b739e331b63a114c", "score": "0.7758174", "text": "def index\n @project_roles = ProjectRole.all\n end",...
aa05e10dde0591f9685e35f4f118eab2
donne le jour d'achat pour lequel on peut avoir la plus grosse plusvalue
[ { "docid": "a0eddca0be5aeeecf6a884107e670a00", "score": "0.0", "text": "def day_optimized(benefits_exit)\n return benefits_exit.index { |num| num == benefits_exit.max } \nend", "title": "" } ]
[ { "docid": "c2bdc581e37828f085814cb97df1bde5", "score": "0.67342436", "text": "def grasa\n\t\t1.2 * imc + 0.23 * @edad - 10.8 * ( sexo ? 1 : 0) - 5.4\n\tend", "title": "" }, { "docid": "250207c5000fb41fcb8325f36a759181", "score": "0.6311515", "text": "def porcentajegrasa\n\t\t1.2 * i...
d5c585c9a1265e46049222455a617cc8
Show list of current portfolio this year
[ { "docid": "90cf1c531539864cf0ca0ec72acb7f5e", "score": "0.7074466", "text": "def current\n if params[:year]\n @portfolios = Portfolio.search_portfolio(params[:year]).page(params[:page]).per(10)\n elsif params[:search]\n @portfolios = Portfolio.approved_search(params[:search]).page(params[:pag...
[ { "docid": "a1fe6ee39094388d2256cf0bd4ab6c9c", "score": "0.7126713", "text": "def show\n @folios = @establecimiento.folios.order(:year)\n end", "title": "" }, { "docid": "90154f646bc5b695aa627be173dc08fb", "score": "0.70177007", "text": "def index\n @programme2013s = Programme20...
a3edd5dc76ac37de0f17767a0f8c8b45
Si el arbol es demasiado grande, entonces lo recorta, bajando todo el arbol y la hoja esta a una profundidad mayor a la altura maxima entonces se dispone subir hasta encontrar el nivel que debe de ser hoja y genera uno random.
[ { "docid": "f856c8f4e891ac9c8e592e378e68c6bd", "score": "0.0", "text": "def podaArbol(parent,maxDepth)\n parent.tree.children {\n |child|\n child.children {\n |grandChild|\n parent = child.name + \" \" + grandChild.name\n podaArbolAux(0,child.name,grandChild,maxDepth,pa...
[ { "docid": "2463d6788b1e1ac1f3b8e04688a2b6b1", "score": "0.6214496", "text": "def search_weapon\n level = rand(1..6)\n print \"Tu as trouvé une arme de niveau #{level} !\"\n if level > @weapon_level\n @weapon_level = level\n puts 'Génial cette armes est meilleure que ton arme actuelle...
d11d7c0ed37351e9519540c943e11664
GET /admin/merchandise/pieces/new GET /admin/merchandise/pieces/new.json
[ { "docid": "e7e31e0fa2a909395a09479595d5ea1a", "score": "0.77560306", "text": "def new\n @admin_merchandise_piece = Admin::Merchandise::Piece.new\n\n respond_to do |format|\n format.html # new.html.erb\n format.json { render json: @admin_merchandise_piece }\n end\n end", "title":...
[ { "docid": "8253358893cdef5690b1f218cf29dfee", "score": "0.8374312", "text": "def new\n unless current_user.try(:admin?)\n redirect_to \"/\"\n end\n @page = \"pieces\"\n @piece = Piece.new\n @creators = Creator.find(:all)\n @galleries = Gallery.find(:all)\n\n respond_to do |for...
afbc56ddc1a611336503a4de64a688ad
Send comment with danger's warn or fail method.
[ { "docid": "89016aa75b970bdd3d350a79d6a725d9", "score": "0.6922959", "text": "def send_comment(results)\n dir = \"#{Dir.pwd}/\"\n filename = results['name'].gsub(dir, '')\n method = results['ruleSeverity'] == 'ERROR' ? 'fail' : 'warn'\n line = results['endPosition']['line'] + 1\n ...
[ { "docid": "947b36f5ed06ceb2eb8bfa0c3c566a63", "score": "0.6888892", "text": "def comment(username, msg)\n raise \"unimplemented!\"\n end", "title": "" }, { "docid": "cde39bb84233144ac32e19508f9e9b6b", "score": "0.65988743", "text": "def notify_comment_target\n send_notificati...
b19f62d8d9157fa4f53b9b8b8e1eccc0
Returns true if the current job is completed by this user.
[ { "docid": "5649687191473a399b2dd106de3ed5dc", "score": "0.7199794", "text": "def completed_by_user?(user)\n completing_interpreters.include?(user)\n end", "title": "" } ]
[ { "docid": "0fda9df0cb42113ed397bd2b7c5be63a", "score": "0.82533103", "text": "def completed?\n job_completed?\n end", "title": "" }, { "docid": "36e831845e4775c2a486a7e3ccd0d85d", "score": "0.77214664", "text": "def completed?\n self.status == STATUS_COMPLETED\n ...
8ee72d229c693cf4eee1622fa3dedebc
method with no parameter pasrsed
[ { "docid": "7c83b40799d1fb7bee0cc823af316f7b", "score": "0.0", "text": "def helloWorld\n puts \"hello world\"\nend", "title": "" } ]
[ { "docid": "8a0745994786cb3bb4db076439d4882a", "score": "0.775373", "text": "def method(arg0)\n end", "title": "" }, { "docid": "8a0745994786cb3bb4db076439d4882a", "score": "0.775373", "text": "def method(arg0)\n end", "title": "" }, { "docid": "6913f6b705277ca3809f0b17...
b17562610e4ada0e9a367464e7858306
PATCH/PUT /schedules/1 PATCH/PUT /schedules/1.json
[ { "docid": "3615968077d045e9417ecd7c8667ae63", "score": "0.7380528", "text": "def update\n respond_to do |format|\n if @schedule.update(schedule_params)\n format.html { redirect_to @schedule, notice: 'Schedule was successfully updated.' }\n format.json { render :show, status: :ok, ...
[ { "docid": "6e01ac95c7a68ebe5f38f8517063fbcf", "score": "0.7587268", "text": "def update\n @schedule = Schedule.find(params[:id])\n\n if @schedule.update(params[:schedule])\n head :no_content\n else\n render json: @schedule.errors, status: :unprocessable_entity\n end\n end", "...
f74c29bdfc4a183e1ec1b91334cd5be2
Use callbacks to share common setup or constraints between actions.
[ { "docid": "4f0154cbc5c00a2eade49f2d71fd26e9", "score": "0.0", "text": "def set_state_public_sector2\n @state_public_sector2 = StatePublicSector2.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...
ccc541f229d1325d56aaed47045b943f
adds _type single collection inheritance scope for models that need it
[ { "docid": "bb8d4b7a2d4992128738189da499b4c1", "score": "0.7592543", "text": "def add_sci_scope(model, criteria)\n if model.single_collection_inherited?\n criteria[:_type] = model.to_s\n end\n end", "title": "" } ]
[ { "docid": "1cff3c376ec8e68e5752ee28f9f6fc1b", "score": "0.7968689", "text": "def add_sci_scope\n if @model.single_collection_inherited?\n @conditions[:_type] = @model.to_s\n end\n end", "title": "" }, { "docid": "1cff3c376ec8e68e5752ee28f9f6fc1b", "score": "0...
93f4637bf703fdb4c6d1a30b5ff99622
No sense in extracting any of this to concerns, they're simple enough. Although I didn't implement and auth/user functionality, I've included a user_id field anyway.
[ { "docid": "7e80d05c59e652a79383d797db36e003", "score": "0.0", "text": "def index \n render json: Favorite.where(user_id: 1).pluck(:image_id)\n end", "title": "" } ]
[ { "docid": "4455b8743eb88893dc6cc1804292d190", "score": "0.7531565", "text": "def user_id\n id\n end", "title": "" }, { "docid": "10638d19457874ce810b0f99f0aa704a", "score": "0.75237817", "text": "def user_id\n super\n end", "title": "" }, { "docid": "48d12499...
768f0ada818778e862d0285764918223
Checks if `exception` is in `exceptions`
[ { "docid": "5aaab0f55fd16a87ee99d9ff04e31a7d", "score": "0.73627067", "text": "def matches_exceptions?(exceptions, exception)\n return true unless exceptions\n exceptions.any? do |exception_klass|\n exception.is_a?(exception_klass)\n end\n end", "title": "" } ]
[ { "docid": "2f9d0097378e4abd327098868403440c", "score": "0.7210391", "text": "def exceptions?\n !@exceptions.empty?\n end", "title": "" }, { "docid": "bdf84f0df8e971b2cd9c4af71b50a668", "score": "0.71495354", "text": "def is_exception?\n inheritance_tree.reverse.any? {|o| BU...
8491fca3a477a38654fcc299fac1e185
Verify the access after Main Rights verification
[ { "docid": "f94f1fd1dd46241bf5d3b8f8b20f8b8d", "score": "0.0", "text": "def object_has_access? (rights, pAccessList = @rAcl)\n\t\tret_access = pAccessList.user_is?([:moderator_products, :admin, :super_admin])\n\t\t\n\t\tif(!ret_access && !MARKETPLACE_MODE_ONLINE_SHOP && (self.seller_id != 0))\n\t\t\t@se...
[ { "docid": "c588ad6f126ffe9061bb9be75985a1a0", "score": "0.72499734", "text": "def verify_rights\n access_allowed?(controller_action_options) || permission_denied\n end", "title": "" }, { "docid": "3af34224e2ad06100cb274d3190654bc", "score": "0.70577925", "text": "def verify_...
f74c29bdfc4a183e1ec1b91334cd5be2
Use callbacks to share common setup or constraints between actions.
[ { "docid": "40cf986ce04542a153b2af36ff8ad040", "score": "0.0", "text": "def set_available_email\n @available_email = AvailableEmail.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...
ad19a30f98b47936c83d48d07f689830
GET /lotacaos/1 GET /lotacaos/1.xml
[ { "docid": "05761a9dada6f2d35f9072f4f4b7e98c", "score": "0.6548969", "text": "def show\n @lotacao = Lotacao.find(params[:id])\n\n respond_to do |format|\n format.html # show.html.erb\n format.xml { render :xml => @lotacao }\n end\n end", "title": "" } ]
[ { "docid": "1af3b7b81a1badbc7d9ff32eba2a3030", "score": "0.62810034", "text": "def download_xml\r\n\t\turi = URI.parse(\"http://www.esmadrid.com/opendata/alojamientos_v1_es.xml\")\r\n\t\tresponse = Net::HTTP.get_response(uri)\r\n\t\tcontent = response.body\r\n\r\n\t\txml = REXML::Document.new(content)\r...
a78f6f6e07e1f2d38ebea42fd2e5a7a9
name : name of entry. e.g. "CVE20162034" date_str : date of update e.g. '20160308'
[ { "docid": "702f7eb8f4095964999b00cc5ef83f13", "score": "0.67957467", "text": "def on_entry_str(name, date_str, str, ext)\n\n return if ext == 'xml' && @enable_xml === false\n\n year = NvdFileSystem::year_from_name(name)\n\n path = \"#{@nvdfs.root_path}/#{year}\"\n Dir.mkdir path unl...
[ { "docid": "d6a752e5c09c93d07e06bfdd6be33b00", "score": "0.57190406", "text": "def on_entry_json(name, date_str, json_string)\n on_entry_str(name, date_str, json_string, \"json\")\n end", "title": "" }, { "docid": "66d4218038af9f2e19f3663c6376732d", "score": "0.5691615", "tex...
19482cbb5b38d3f40450f2bbb172fb90
Associate to an user an already existing identity Associate to an user of the organization an already existing identity of a provider. The _provider_data_ field is an object and is different for each provider. The minimum set of information to provide as provider_data is the following: aruba _auth_domain_ : string _use...
[ { "docid": "8aa0b8c0414e839088a5d89b7fd421f5", "score": "0.0", "text": "def associate_identity_with_http_info(organization_id, user_id, identity_association, opts = {})\n if @api_client.config.debugging\n @api_client.config.logger.debug 'Calling API: IdentitiesApi.associate_identity ...'\n ...
[ { "docid": "b24896a3fdb73f018b8a485b5b33bdee", "score": "0.69161224", "text": "def add_provider_auth(auth_info)\n pa = self.provider_authorizations.build\n pa.assign_auth_info(auth_info)\n pa.auth_info = auth_info\n pa.save\n pa\n end", "title": "" }, { "docid": "9ada173d14af...
a1a4294358577f2cbf73244073691f39
Check if a device is subscribed to a queue
[ { "docid": "6e3d6513ec7432da94f19168fc262c55", "score": "0.6251149", "text": "def check_subscription(user, device_id, sub)\n if @subscriptionLists.hasKey device_id\n device = @subscriptionLists.getRepositoryObject(device_id).getObject\n return \"{\\\"subscribed\\\": \\\"#{device.hasSubscrip...
[ { "docid": "ca5fba75b6947483c32459cb063cfbc7", "score": "0.70573455", "text": "def subscribed?(event)\n subscriptions.include?(event)\n end", "title": "" }, { "docid": "b24a3d31082dbfac5d32162da414ee2c", "score": "0.70529956", "text": "def subscribed?\n !ended? && !unsubscri...
4c4c5e3465a054c799ceccd37d64658e
GET /liders GET /liders.json
[ { "docid": "272f4b18d45a57f4d1ca528b2ba2bc05", "score": "0.74382263", "text": "def index\n @liders = Lider.all\n end", "title": "" } ]
[ { "docid": "e2c5493c7e4babc0e6cc65ed39e252ea", "score": "0.6995734", "text": "def list\n @sliders = Admin::Slider.names\n\n render json: { sliders: @sliders }\n end", "title": "" }, { "docid": "d86808804f2d25cf51f107c630373de4", "score": "0.64652324", "text": "def index\n @...
3ea9ccf3b4bcfbb29bb3f2366697fffd
Xor string with key
[ { "docid": "a32d5643f2cbedf7c7a6d6cce9fa92c6", "score": "0.8220381", "text": "def xor_string key, str\n\tarr = str.unpack(\"C*\").each_with_index.map do |ch, i| ch^(key[i%key.length]) end\n\tarr.pack(\"C*\")\nend", "title": "" } ]
[ { "docid": "1441f35d45035c4d15cff76817cada4a", "score": "0.798074", "text": "def repeating_key_xor(string, key)\n counter = 0\n encrypted = []\n string.bytes.each do |byte|\n encrypted << (byte ^ key.bytes[counter])\n \n counter = counter == 2 ? 0 : counter += 1\n end\n # b...
83a5fc7907d40fa5c6c364a77640bc2e
def create_adobe_connect require 'mechanize' agent = Mechanize.new agent.get(ADOBE_CONNECT_NEW_USER_URL) do |login_page| login_page.login = ADOBE_CONNECT_USERNAME login_page.password = ADOBE_CONNECT_PASSWORD reset_result_page = page.form_with(:action => '/do/resetpasswd/Main/WebHome') do |reset_page| reset_page.LoginNa...
[ { "docid": "a33bed565b6c8dcd1d5483ead857ebf0", "score": "0.0", "text": "def past_teams\n Team.find_by_sql([\"SELECT t.* FROM teams t INNER JOIN teams_people tp ON ( t.id = tp.team_id) INNER JOIN users u ON (tp.person_id = u.id) INNER JOIN courses c ON (t.course_id = c.id) WHERE u.id = ? AND (c.semes...
[ { "docid": "e1647ef2af8ec7462683cadfff0cd6e9", "score": "0.7031371", "text": "def login(name,password)\n\tmechanize = Mechanize.new\n\tagent = mechanize.get('https://catalog.denverlibrary.org/logon.aspx')\n\tform = agent.form_with(:action=> '/Mobile/MyAccount/Logon')\n \n\tuser_field = form.field_with...
04625ff7d72ee5f91731e890ab423281
POST /reqdevstatuses POST /reqdevstatuses.json
[ { "docid": "f7fa42bd0c91f15e6b4f6197804c1f21", "score": "0.5633157", "text": "def create\n @reqdevstatus = Reqdevstatus.new(reqdevstatus_params)\n\n respond_to do |format|\n if @reqdevstatus.save\n format.html { redirect_to @reqdevstatus, notice: 'Reqdevstatus was successfully created....
[ { "docid": "702b552b6f1b01fec2c33623059ab6e1", "score": "0.613132", "text": "def create_statuses\n end", "title": "" }, { "docid": "702b552b6f1b01fec2c33623059ab6e1", "score": "0.613132", "text": "def create_statuses\n end", "title": "" }, { "docid": "c28ad5d86fbc4bc993...
4288a368f9271de40611375a3d2efd84
GET /self_customers GET /self_customers.json
[ { "docid": "811d12d099c5b4426bbfc7b9cff911cb", "score": "0.0", "text": "def index\n @self_customers = @SelfActiveRecord.all\n # raise @self_customers.inspect\n end", "title": "" } ]
[ { "docid": "ab3a471dfd63ac01284c3074cfbcb883", "score": "0.74439144", "text": "def customer\n fetcher.get(Customer, customer_id)\n end", "title": "" }, { "docid": "44d5c99d89ab374d2baf04ebcdda12b5", "score": "0.7432457", "text": "def getcustsjson\n render :json => @custome...
3b37da775b7d211bff97e48e0c4bab46
GET /readbooks/1 GET /readbooks/1.json
[ { "docid": "a81945373733e4951b987de6ea99f9a1", "score": "0.0", "text": "def show\n end", "title": "" } ]
[ { "docid": "a613f6e6f0318023e97fa4ad7cee0b91", "score": "0.7259489", "text": "def index\n base_url = 'https://www.googleapis.com/books/v1/volumes?q=fiction&maxResults=20'\n and_key = '&key='\n key = ENV['GOOGLE_BOOKS_API_KEY'] \n googleurl = base_url + and_key + key\n\n response = RestClient.get(go...
a2df13ab33ba3c2fcea8e525b15d7fdd
GET /nautical_sports GET /nautical_sports.json
[ { "docid": "ef829d535917162c00add7081fd098c5", "score": "0.7662101", "text": "def index\n @nautical_sports = NauticalSport.all\n end", "title": "" } ]
[ { "docid": "61b6dfa2549164c7f1d23d1b32163379", "score": "0.7466122", "text": "def get_nautical_sports_by_user\n @nautical_sports = UserNauticalSport.where(user_id: params[:id]).map { |f| f.nautical_sport }\n end", "title": "" }, { "docid": "e2491e3060fe0134394bf086b141a5da", "score":...
e6bbdaf0d637acb300fca9bdb4429054
Forcefully destroys given node
[ { "docid": "53ced2e60b0a820d852fbb2c80795b75", "score": "0.72385645", "text": "def destroy_node(node, logger)\n logger.info(\"Destroying '#{node}' node.\")\n DestroyCommand.execute([\"#{@config.path}/#{node}\"], @env, logger, { keep_template: true })\n end", "title": "" } ]
[ { "docid": "ac22ec307e89be488bd4d50de655da4b", "score": "0.74447054", "text": "def destroy\n @node.destroy\n\n head :no_content\n end", "title": "" }, { "docid": "6ce311d98b025e0387f6321b02f4d8c2", "score": "0.7184464", "text": "def remove_node( node )\n\t\t@nodes.delete( node...
7c093222d5fd81607a360ce79d39f559
Checks all bookings in the database to see if the current space has been booked for the time in the newly created booking
[ { "docid": "e32b4d003dee7efc1a04ddd8c87df0b2", "score": "0.737152", "text": "def check_overlap\n bookings = @parking_space.booking.all\n booking = booking_params.values\n for currentBooking in bookings\n if booking.at(3).to_i < currentBooking.finish_time.to_i && currentBooking.start_time.t...
[ { "docid": "5189b5925f484abc0280016208ffbb0a", "score": "0.74929714", "text": "def checkIfBooked\n booking_start_time = Time.parse(get_booking[\"date\"].to_s)\n hours_booked = get_booking[\"hours_booked\"].to_i\n booking_stop_time = booking_start_time + (3600 * hours_booked)\n ...
82befc038aa5c1101705d6b7afd8021e
++ Show meeting results for Team's Goggle Cup (if any) === Params: id: Meeting row id. team_id: Team id.
[ { "docid": "e275abbe2f1e59a20a73cf236da50f61", "score": "0.7043193", "text": "def show_goggle_cup_results\n\n unless @team.has_goggle_cup_at?( @meeting.header_date )\n flash[:error] = I18n.t(:no_result_to_show)\n redirect_to( meetings_current_path() ) and return\n end\n\n @goggle_cup ...
[ { "docid": "d0cd686029b5040e4681533f7d5792f3", "score": "0.6167522", "text": "def show\n\t\t@team = Team.find(params[:id])\n\t\tquery = @team.name\n\n\t\t# Pulls news articles about each team through Google RSS\n\t\tdata = party_time(\"https://news.google.com/news/feeds?q=#{query.downcase.gsub(/\\s/, '+...
e5b4a22f197abb0bb2468e355cb9a679
Squash the last two commits of buildbottlepr. Usage: brew buildbottlepr foo brew pull bottle 123 brew squashbottlepr
[ { "docid": "8985c6aa106a52f9464d3273cf0d1735", "score": "0.7886674", "text": "def squash_bottle_pr\n unless Utils.popen_read(\"git\", \"log\", \"-n1\", \"--pretty=%s\", \"HEAD~1\") =~ /: Build a bottle for Linuxbrew$/\n opoo \"No build-bottle-pr commit was found\"\n return\n end\n\n h...
[ { "docid": "cf2a85fe1d9834b3f9fe28ff0db71390", "score": "0.55017364", "text": "def clean_up\n %x[rm -rf #{BUILD_DIR}]\n checkout_result = %x[git checkout -f]\n checkout_result = %x[git stash apply]\nend", "title": "" }, { "docid": "ece0fe770655a9c7c9374f5a87c56a8f", "score": "0.5353...
d4a1edaae4d92d004632cf64501ce2e7
DELETE /users/1 DELETE /users/1.json
[ { "docid": "ee73a1756f86744ba92f76d2c886ae25", "score": "0.0", "text": "def destroy\n authorize! :destroy, User\n @user = User.find(params[:id])\n if @user.present?\n @user.destroy\n respond_to do |format|\n flash[:success] = 'Usuário deletado co...
[ { "docid": "be9d8ff5c0124f1d5efc98ec2baa3fc1", "score": "0.7590564", "text": "def test_delete_user\n delete '/users/2'\n data = JSON.parse last_response.body\n\n assert_equal 'Daniel', data['name'], 'Propiedad name incorrecta'\n assert_equal 'Arbelaez', data['last_name'], 'Propiedad last_nam...
84337c4b17c37acd54e0c65859174178
PATCH/PUT /pcs/1 perform update: need permission to modify; check for update closed PCP Subjects is performed implicitly by whitelisting only :archived flag for closed PCP Subjects
[ { "docid": "31b764e8a6cdb682d2c2ea9e6f27b997", "score": "0.72099084", "text": "def update\n unless permission_to_modify?\n render_no_permission\n return\n end\n respond_to do |format|\n if @pcp_subject.update( pcp_subject_params )\n format.html { redirect_to @pcp_subject, ...
[ { "docid": "84e1e69ab964ce5c377226c92258fcd2", "score": "0.62117237", "text": "def update\n respond_to do |format|\n if @civil_subject.update(civil_subject_params)\n format.html { redirect_to admin_civil_subjects_path, notice: 'Civil subject was successfully updated.' }\n f...
5266ce550f0f67e0dff146def4a7904e
DOC curl X GET u your_api_key:
[ { "docid": "72c950f0927cbfda158519b9df99ea40", "score": "0.0", "text": "def get_details(wallet_id)\n\t\t\t\tJuspayCheckout::ExpressCheckout.request(\"/wallets/#{wallet_id}\", 'get')\n\t\t\tend", "title": "" } ]
[ { "docid": "7e921075ba6c38c732a416ca0e61fd33", "score": "0.7301648", "text": "def api_keys; rest_query(:api_key); end", "title": "" }, { "docid": "7e921075ba6c38c732a416ca0e61fd33", "score": "0.7301648", "text": "def api_keys; rest_query(:api_key); end", "titl...
39d6dfbb6943d5a911896e35ea480128
Using the Ruby language, have the function BasicRomanNumerals(str) read str which will be a string of Roman numerals. The numerals being used are: I for 1, V for 5, X for 10, L for 50, C for 100, D for 500 and M for 1000. In Roman numerals, to create a number like 11 you simply add a 1 after the 10, so you get XI. But ...
[ { "docid": "520b07070fb989bda480c3c0e9344ffc", "score": "0.7721798", "text": "def basic_roman_numerals(str)\n roman_numerals = { 'I' => 1, 'V' => 5, 'X' => 10, 'L' => 50, 'C' => 100,\n 'D' => 500, 'M' => 1000 }\n fours = { 'CM' => 'DCCCC', 'CD' => 'CCCC', 'XC' => 'LXXXX', 'XL' => '...
[ { "docid": "feb139dade3583676e9000f274db77a9", "score": "0.81536436", "text": "def roman_to_integer roman\n roman_lookup = {'i' => 1,\n 'v' => 5,\n 'x' => 10,\n 'l' => 50,\n 'c' => 100,\n 'd' => 500,\n ...
72c3f74aca395d4c55c970e3ae92ed68
GET /best_users/1 GET /best_users/1.json
[ { "docid": "a81945373733e4951b987de6ea99f9a1", "score": "0.0", "text": "def show\n end", "title": "" } ]
[ { "docid": "fc9b9ffb53bd7db285df48aedd87e626", "score": "0.7375231", "text": "def index\n @best_users = BestUser.all\n end", "title": "" }, { "docid": "4152fb6556ae83f7cdd6c362f17ad9bf", "score": "0.68292105", "text": "def index\n if params[:single]\n\t url = \"#{API_BASE_URL...
7a3198cc9c30b14fc20664aa00224e63
Define the workflow method :start. It will take in an input hash that contains the root template (:definition) and the arguments to the template (:args).
[ { "docid": "71af789bf732a8d6cccbe5da7f19f405", "score": "0.7836493", "text": "def start(input)\n\n raise ArgumentError, \"Workflow input must be a Hash\" unless input.is_a?(Hash)\n raise ArgumentError, \"Input hash must contain key :definition\" if input[:definition].nil?\n ra...
[ { "docid": "6c5f513b8f85f92e716403c3b10ddbff", "score": "0.6025385", "text": "def start\n create('start')\n end", "title": "" }, { "docid": "544ad9c6c1b92b769486c79355c4f56a", "score": "0.60197234", "text": "def start(args={})\n\t\t\tcapture(args)\n\t\tend", ...
0d766fec3f6053f192b62e0384a59b4f
A list of all the albums in a user's library, with play counts and tag counts.
[ { "docid": "a61cfe69eaaac9113f232161c8887d67", "score": "0.75058734", "text": "def albums(options={})\n options = {:force => false, :all => true}.merge options\n options[:user] = @user.name\n albums = []\n if options[:all]\n doc = Base.request('library.getalbums', ...
[ { "docid": "8f4076f9b37a78b6d620b747e302396c", "score": "0.7366058", "text": "def get_albums_list\n url = \"https://picasaweb.google.com/data/feed/api/user/default\"\n\n response = http_request(:get, url, nil, default_headers)\n\n if response.code =~ /20[01]/\n albums_list response...
f74c29bdfc4a183e1ec1b91334cd5be2
Use callbacks to share common setup or constraints between actions.
[ { "docid": "a21293abe013e24557a8858fa7054cf7", "score": "0.0", "text": "def set_video\n @video = Video.find(params[:id])\n end", "title": "" } ]
[ { "docid": "631f4c5b12b423b76503e18a9a606ec3", "score": "0.60315156", "text": "def process_action(...)\n run_callbacks(:process_action) do\n super\n end\n end", "title": "" }, { "docid": "7b068b9055c4e7643d4910e8e694ecdc", "score": "0.6018921", "text": "de...
1e9efd49c72ca283a95ddf5da2525bdc
Returns true if the value has been set, false if not
[ { "docid": "e5f4d686cb21b9a65e4bd2e96c97bd2b", "score": "0.80178165", "text": "def has_value?\n\t\t!self.value.blank?\n\tend", "title": "" } ]
[ { "docid": "47136ad4b20886a386e56311c74fd389", "score": "0.8568667", "text": "def set?\n !@value.nil?\n end", "title": "" }, { "docid": "4c69e8be830b4935bd4fee56f235d3a1", "score": "0.8180226", "text": "def has_value?\n @has_value\n end", "title": "" }, { "d...
f74c29bdfc4a183e1ec1b91334cd5be2
Use callbacks to share common setup or constraints between actions.
[ { "docid": "7660b2106ed98fc31e10838677fb2e35", "score": "0.0", "text": "def set_unit\n @unit = Unit.find(params[:id])\n end", "title": "" } ]
[ { "docid": "bd89022716e537628dd314fd23858181", "score": "0.6163163", "text": "def set_required_actions\n # TODO: check what fields change to asign required fields\n end", "title": "" }, { "docid": "3db61e749c16d53a52f73ba0492108e9", "score": "0.6045976", "text": "def action_hook;...
f208b892afa3cf67a6dbd4bcf6aafb8d
makes sure that the process is labeled as +busy+ while the given block is being run.
[ { "docid": "3b46c569b08c35171e65b2c8b32a622b", "score": "0.7566523", "text": "def busy\n @busy = true\n yield\n ensure\n @busy = false\n end", "title": "" } ]
[ { "docid": "457e19cce8096e90312c3eebe048bd53", "score": "0.6450465", "text": "def busy( &block )\n self.connection.status( :dnd, \"Working...\" )\n yield\n self.connection.status( :chat, \"JabberListener waiting for instructions\" )\n end", "title": "" }, { "docid":...
0d58394e71b1d7a9ed3d4f219290867e
moves the rover right
[ { "docid": "d6c909f98d71b79dc67bc77b1385d12c", "score": "0.0", "text": "def E\n @x += 1\n end", "title": "" } ]
[ { "docid": "dd44b4122f3cd896b811ef2ae409c97e", "score": "0.82254356", "text": "def move_right\n\t\tmove([1,0])\n\tend", "title": "" }, { "docid": "9805df28c15975501008bfa36e5265c4", "score": "0.7771812", "text": "def move_right\r\n if @x + @vel_x < SCREEN_WIDTH - GAME_PRESET[\"pla...
2d6661fd4c6aa6b76904a7f876389a12
PATCH/PUT /stockroom_items/1 PATCH/PUT /stockroom_items/1.json
[ { "docid": "5d5b73a44f5fb7a7948e7588ce844a71", "score": "0.721905", "text": "def update\n respond_to do |format|\n if @stockroom_item.update(stockroom_item_params)\n format.html { redirect_to @stockroom_item, notice: 'Item foi atualizado com sucesso.' }\n format.json { render :show...
[ { "docid": "1b345254a6a1e72b01ba2fb50a96f738", "score": "0.75720537", "text": "def update\n @stocker_item.update(stocker_item_params)\n render json: @stocker_item\n end", "title": "" }, { "docid": "bf474487d511d55243dd4e9f12143690", "score": "0.7026597", "text": "def update\n ...
ed8f9e75289c76692aebd4be4a50bbe5
POST /project_sites POST /project_sites.json
[ { "docid": "13c240b18ace918eab1fa38915b10783", "score": "0.6903117", "text": "def create\n @project_site = ProjectSite.new(project_site_params)\n\n respond_to do |format|\n if @project_site.save\n format.html { redirect_to @project_site, notice: 'Project site was successfully created.'...
[ { "docid": "0295b48b9f3ea5f2ce47a8523c583e7a", "score": "0.6824445", "text": "def create_sites\n params[:sites].select { |hash| hash[:name].present? }.each do |hash|\n site = @project.sites.find_by(id: hash[:id])\n if site\n if hash[:name] == \"Default Site\"\n site.update(n...
89878a4835d3479e1e27a46b148825b4
def find_longest_word (string) array = string.split(" ") count_array = [""] i = 0 array.length.times do split = array[i].split('') j = 0 split.length.times do split[j] j=j+1 end count_array "longest"What is the longest word in this phrase? split = ["W", "h", "a", "t"] j = 0 split.length.times do p split[j] j+=1 end p j...
[ { "docid": "6e15233991832f49781c32a9fb1c4b4f", "score": "0.8728278", "text": "def find_longest_word(string)\n array = string.split(\" \")\n p array\n array.max_by(&:length) \nend", "title": "" } ]
[ { "docid": "39c4e800bb790a66c97c488bb3d1d147", "score": "0.87809885", "text": "def find_longest_word(input_string)\n array = input_string.split(\" \")\n array.max_by {|word| word.length}\nend", "title": "" }, { "docid": "2ce4a14e0428bc8f24a7fd22abb11f1e", "score": "0.8591637", "tex...
2910ff7c7936ccc6ef234a396bdfc397
Same as +sub+ except that the original file list is modified. source://rake//lib/rake/file_list.rb258
[ { "docid": "737cddbc09b36c95a669a3f8a76bb332", "score": "0.0", "text": "def sub!(pat, rep); end", "title": "" } ]
[ { "docid": "8f04b04d7290c98bd6439d0870ba518a", "score": "0.6499746", "text": "def sub(pat, rep)\n inject(FileList.new) { |res, fn| res << fn.sub(pat,rep) }\n end", "title": "" }, { "docid": "33ec2f7dc0c3ffb52254c9e68bddf46b", "score": "0.5824883", "text": "def file_list(list)...
dddc013a5fbfec2d1f9b552da06e3822
The computername as seen by the operating system This might be different to the VM name as seen in Azure
[ { "docid": "ae46df399466fbea0a9f6c8791f05462", "score": "0.8602622", "text": "def computername\n vm.os_profile.computer_name\n end", "title": "" } ]
[ { "docid": "2ff676de9d8416d7ad4374cd35c8b01c", "score": "0.7192158", "text": "def machine_name\n @values.fetch('ai.device.machineName') { \n @values['ai.device.machineName'] = nil\n }\n end", "title": "" }, { "docid": "4014ec2b69e6d7927aa6704cabd78455", ...
96fbcf5d01850847b837e0ee5fa2a34e
Merge two objects with same type
[ { "docid": "87c4b4dafdbb56a03784ed298f25fee9", "score": "0.5724332", "text": "def merge(object_type, public_merge_input, opts = {})\n data, _status_code, _headers = merge_with_http_info(object_type, public_merge_input, opts)\n data\n end", "title": "" } ]
[ { "docid": "b6dce7e7d3fd67f60ef9918bcbdada35", "score": "0.7328217", "text": "def merge(other); end", "title": "" }, { "docid": "0f0bb9bfbdfd75be3042d12941c2d3ff", "score": "0.71096015", "text": "def merge(other)\n self.class[Utils.merge(to_h, other)]\n end", "title": "" },...
0c103cdf983da2f0402c86057d18f8a5
Get the goal data index (if array like items / speak_to return the index of the goal in the array info from data/quest data)
[ { "docid": "e8152672c788dcbd33f38df33e3e5776", "score": "0.711104", "text": "def get_goal_data_index(quest_id, goal_index)\n if (quest = @active_quests.fetch(quest_id, nil)).nil?\n if (quest = @finished_quests.fetch(quest_id, nil)).nil?\n return 0 if (quest = @failed_quests.fetch(qu...
[ { "docid": "e739b421332fffbe72afcb132ee1e0e2", "score": "0.6581799", "text": "def index\n @data[:index]\n end", "title": "" }, { "docid": "62b024386d55cb7c3c2a3c223398f4b4", "score": "0.64333653", "text": "def play_index\n return first_or_map :idx\n end", "title":...
5767f2f56c08274c23749773e347fa72
associates the question as being asked from a specific company or community
[ { "docid": "120390b8e930c03f9ff37833ee08e641", "score": "0.0", "text": "def associate_member_with_community\n self.community.members << self.member unless self.community.members.include? self.member\n end", "title": "" } ]
[ { "docid": "ae06938b37d3ae4ee1f358505785d49c", "score": "0.65080476", "text": "def assign_question_to_campaign\n return if campaign.questions.include?(question)\n campaign.substitution_questions << question\n end", "title": "" }, { "docid": "8ac56c1592d696adb8dd1207c07f9b17", ...
c70fffdf12d341bcf1b29d000c3702df
GET /events/1 GET /events/1.json
[ { "docid": "a81945373733e4951b987de6ea99f9a1", "score": "0.0", "text": "def show\n end", "title": "" } ]
[ { "docid": "2d5580b43c7c18bcd8a06713fa4be0f1", "score": "0.75926495", "text": "def show\n\t\tevent_id = params[:id]\n\t\tif event_id.present?\n\t\t\t@event = Com::Nbos::Events::Event.active_events.where(:id => event_id)\n\t\t\trender :json => @event\n\t\telse\n\t\t\trender :json => {status: 400, message...
f1ddd543108d7b10f0377be33f92ec6a
Set the default membership. Will mark the given membership as the default and the other memberships (if any) as nondefault
[ { "docid": "b1e13b4d5d7843213e68176b32457d4e", "score": "0.7918003", "text": "def set_default_membership(default_membership)\n raise \"Membership must belong to account!\" unless default_membership.account_id==self.id\n self.memberships.each do | membership |\n membership.update_attributes({ ...
[ { "docid": "3c2f3fd3bcc5d55c646fad401e469c9d", "score": "0.6623985", "text": "def set_as_user_default\n self.default = true if (self.user && self.user.groups.count == 0)\n end", "title": "" }, { "docid": "b70719a677b3d3b3f3c0546ad2798a7b", "score": "0.6567457", "text": "def defau...
80b68d4c78d988fe15dde19bc871cf46
Returns a Fasta::Entry initialized using str
[ { "docid": "3c12d4c50459e049dc488903cb71f252", "score": "0.7596648", "text": "def str_to_entry(str)\r\n Entry.parse(str)\r\n end", "title": "" } ]
[ { "docid": "4b2a01a347b55931353ccf0bcf26c9b2", "score": "0.75577664", "text": "def str_to_entry(str)\r\n Entry.parse(str)\r\n end", "title": "" }, { "docid": "1316ddc4fb63e4dea905ae6291f1add0", "score": "0.625257", "text": "def initialize(str)\n @definition = str...
fad5fd123fc09671584a123cefc37969
This method is mainly from WEBrick::HTTPProxyServer. To allow upstream proxy authentication, it operate 407 response from an upstream proxy. see: rubocop:disable all
[ { "docid": "784ca9344a0535520c6f616a62a19df6", "score": "0.603651", "text": "def do_CONNECT(req, res)\n # Proxy Authentication\n proxy_auth(req, res)\n\n ua = Thread.current[:WEBrickSocket] # User-Agent\n raise WEBrick::HTTPStatus::InternalServerError,\n \"[BUG] cannot get so...
[ { "docid": "e8c25f8e5b00dea1023af2b2ba35104d", "score": "0.6594947", "text": "def proxy_response_headers; end", "title": "" }, { "docid": "bacd7e87fa5482f3e348497c64889c8b", "score": "0.656534", "text": "def proxy_pass; end", "title": "" }, { "docid": "a0ed39d6607a4495467...
3f16ac1eba51e0fc2a6566cd9f5db7d6
True if all the pins are exported, set as input, and pulled up
[ { "docid": "50204034bfc1548e7f966bbd54247021", "score": "0.7062676", "text": "def ready?\n pins.all?(&:exported) &&\n pins.all? { |n| n.direction == :in } &&\n pins.all? { |n| n.pull != :down }\n end", "title": "" } ]
[ { "docid": "22ca05e06b49b466a97a9352c9719b05", "score": "0.61464304", "text": "def ground_pins?\n @ground_pins\n end", "title": "" }, { "docid": "601ca8c6bb2b82cdc3ed3cccbc3f9f7a", "score": "0.60173213", "text": "def other_pins?\n @other_pins\n end", "titl...
6ebc67c6e54ecce9dc57ba7ce29a9371
Pseudocode input: hash, updated age output: original hash modified Steps: Go through each value in Hash and add user given number. Initial Solution source.each do |k, v| source[k] = v + thing_to_modify end end
[ { "docid": "92fd034e60dfddb768b5dd98f55e3af6", "score": "0.67982394", "text": "def my_hash_modification_method!(source, thing_to_modify)\n source.each {|k, v| source[k] = v + thing_to_modify}\nend", "title": "" } ]
[ { "docid": "9c36f23d5bcb641c300b133b2129c7da", "score": "0.74984753", "text": "def my_hash_modification_method!(hash, years_passed)\n hash.each_pair do |petname, age|\n age += years_passed\n hash[petname] = age\n end\n p hash\n return hash\nend", "title": "" }, { "docid": "fbbe17c3...
745a1fdc8602e50f61e3871dcde0c823
GET /diet_ingredient_types GET /diet_ingredient_types.json
[ { "docid": "d167d096a36099f065f94941c8c894cc", "score": "0.72700024", "text": "def index\n @diet_ingredient_types = DietIngredientType.all\n end", "title": "" } ]
[ { "docid": "f8722fa4d0ebf102be1ebdee6987edf6", "score": "0.7087955", "text": "def ingredient_data\n respond_to do |format|\n format.json { render json: helpers.get_ingredient(params[:ingredient_type], params[:ingredient_id]) }\n end\n end", "title": "" }, { "docid": "cfaecbf1aae0...
49ea6b835c4ef0536c67ed22036db26c
Trading fee of this trade
[ { "docid": "1e8e6a696c8d61efc60bc306d87b6ec6", "score": "0.8243364", "text": "def trading_fee\n return exchange_trading_fee if exchange_trading_fee > 0\n system_calculated_trading_fee\n end", "title": "" } ]
[ { "docid": "3b5acb46e6c36153cfe49f1634a753de", "score": "0.7607419", "text": "def transaction_fee\n Money.new(-WITHDRAWAL_FEE_IN_CENTS, self.currency)\n end", "title": "" }, { "docid": "bf3d6a2d3250d5764d865ca4c9585f17", "score": "0.71974546", "text": "def fee\n @fee || DEFA...
f13e016ca5db82a57ff6d31d71c8ef81
adding a negative amount of something is kinda dumb split into specific methods consider what other classes will need to call on Inventory, ie what features and methods it needs to provide, and how to do that so that it reads nicely
[ { "docid": "c43df50d298950b1bfff1c0dd6646002", "score": "0.0", "text": "def add_lemons(number_of_lemons)\n raise 'cannot add negative lemons' if number_of_lemons < 0\n @lemons += number_of_lemons\n end", "title": "" } ]
[ { "docid": "fb139887e8984ddff7416935bedc48d2", "score": "0.656015", "text": "def build_inventory\n add_to_inventory(\"cats\", 4, 50.0)\n add_to_inventory(\"dogs\", 10, 150.0)\n add_to_inventory(\"unicorn\", 1, 1000.0)\nend", "title": "" }, { "docid": "79a20b8f5c324795bfbf2ea080f1e1bd", ...
f74c29bdfc4a183e1ec1b91334cd5be2
Use callbacks to share common setup or constraints between actions.
[ { "docid": "2b683bbf491f0884b6f4f7ad99dbb1db", "score": "0.0", "text": "def set_socioeduk_tipo_telefone\n @socioeduk_tipo_telefone = Socioeduk::TipoTelefone.find(params[:id])\n end", "title": "" } ]
[ { "docid": "bd89022716e537628dd314fd23858181", "score": "0.6163163", "text": "def set_required_actions\n # TODO: check what fields change to asign required fields\n end", "title": "" }, { "docid": "3db61e749c16d53a52f73ba0492108e9", "score": "0.6045976", "text": "def action_hook;...
ae107cfde80328dc362a03de019a3581
Replace the process by running the given external command.
[ { "docid": "b6005b8295814a65ce62e73a80edb69f", "score": "0.0", "text": "def exec(bin, *args)\n Process.exec(bin, *args)\n rescue SystemCallError\n abort \"command not found: #{bin}\", 127\n end", "title": "" } ]
[ { "docid": "5530c8cff20613c5509f301a01da3362", "score": "0.7104504", "text": "def exec(cmd, replace_current_process=false)\n if replace_current_process\n Kernel.exec cmd\n else\n %x!#{cmd}!\n end\n end", "title": "" }, { "docid": "fd5d8408f4f8291dc882e4883e594...
564e74d0073a55dd761e84117a5097d0
Filter the member ids and return only the FileSet ids (filter out child works)
[ { "docid": "87902fd96aed29a515b6128a41855c8a", "score": "0.754073", "text": "def file_set_ids(work)\n ::FileSet.search_with_conditions(id: work.member_ids).map(&:id)\n end", "title": "" } ]
[ { "docid": "9f421241211e0693fc8ea42f4c42aa7b", "score": "0.756745", "text": "def file_set_ids(work)\n # ::FileSet.search_with_conditions(id: work.member_ids).map(&:id)\n work.ordered_member_ids\n end", "title": "" }, { "docid": "53de70a77391bc6c35b2086f3134dc71", "scor...
d76d7fa8915e75d31aa04169b69de330
assigns a key value pair
[ { "docid": "9dcd5bf77ef06eed34c675c93eac3734", "score": "0.6747041", "text": "def []=(k, v) \n @data[k] = v\n end", "title": "" } ]
[ { "docid": "d49a7256948ce963ae8fb80c71a6966e", "score": "0.7406969", "text": "def set(key, value); end", "title": "" }, { "docid": "d49a7256948ce963ae8fb80c71a6966e", "score": "0.7406969", "text": "def set(key, value); end", "title": "" }, { "docid": "d49a7256948ce963ae8f...
10bae78df6365f4630179a6833132e12
GET /invoices/new GET /invoices/new.json
[ { "docid": "df82921d3f1bd68f9cc1aace35d1a55d", "score": "0.7666737", "text": "def new\n @invoice = Invoice.new\n prepFormVariables(@invoice)\n\n respond_to do |format|\n format.html # new.html.erb\n format.json { render json: @invoice }\n end\n end", ...
[ { "docid": "30720d366d9771abfec8a87fcacbb949", "score": "0.83345807", "text": "def new\n @invoice = Invoice.new\n @invoices = Invoice.all\n\n respond_to do |format|\n format.html # new.html.erb\n format.json { render json: @invoice }\n end\n end", "title": "" }, { "doc...
e794019703bdce06a4a1d7a27e5c6ae5
This cannot be run in parallel because it needs to manipulate the global log level
[ { "docid": "27969d752dfe8ef032bf1178910d598f", "score": "0.0", "text": "def test_create_secrets_from_ejson\n logger.level = ::Logger::DEBUG # for assertions that we don't log secret data\n\n # Create secrets\n ejson_cloud = FixtureSetAssertions::EjsonCloud.new(@namespace)\n ejson_cloud.creat...
[ { "docid": "196c52bf72ba879b1e8be39fcabc995d", "score": "0.7259461", "text": "def log_level=(level); end", "title": "" }, { "docid": "2ccb492dbcfb77061c2bb480bf33e4c1", "score": "0.7229308", "text": "def log_level; end", "title": "" }, { "docid": "2ccb492dbcfb77061c2bb480...
c4342096ba168c4637dad0cec096654d
Get a bitmap resized to a given size if it differs from it Parameters:: iBitmap (Wx::Bitmap): The original bitmap iWidth (_Integer_): The width of the resized bitmap iHeight (_Integer_): The height of the resized bitmap Return:: Wx::Bitmap: The resized bitmap (can be the same object as iBitmap)
[ { "docid": "b6f33d0e24caac2692f27f0c92f9c40f", "score": "0.82256824", "text": "def getResizedBitmap(iBitmap, iWidth, iHeight)\n rResizedBitmap = iBitmap\n\n if ((iBitmap.width != iWidth) or\n (iBitmap.height != iHeight))\n rResizedBitmap = Wx::Bitmap.new(iBitmap.convert_to_imag...
[ { "docid": "42cef18e4ecbd30dbe36fa215e02ef83", "score": "0.6108238", "text": "def update_bitmap_size(width, height)\n @bitmap = Bitmap.update_bitmap_size(@bitmap, width, height)\n if @window != nil\n @window.contents = @bitmap\n elsif @sprite != nil\n @sprite.bitmap = @bitmap\n end...
42d8054f202dc8db87a6dcfe49ddeecb
output array is kept: this does not provide protection against reading the same value multiple times
[ { "docid": "bd665045a34af283fb53d42493124ffb", "score": "0.0", "text": "def last_color_output\n return @output_array[-2]\n end", "title": "" } ]
[ { "docid": "d140ed4a7866a537b309fdced5f0ddde", "score": "0.5986811", "text": "def output\n []\n end", "title": "" }, { "docid": "4b20d240d4021cb911e27f92685afe15", "score": "0.5960777", "text": "def value_written; end", "title": "" }, { "docid": "d7ea23260382f1025...
240c4f852593b1ef476355c193ab0e4f
or with one line
[ { "docid": "900fff8ab52d956381dc0b627f44e07f", "score": "0.0", "text": "def oneliner(a)\n a.sort!.each_with_index.map { |n, i| (1 << i) * (n - a[a.size - 1 - i]) }.reduce(:+) % (10**9 + 7)\nend", "title": "" } ]
[ { "docid": "5790abc786f0bb43920573d27d12cd10", "score": "0.7291843", "text": "def or\n end", "title": "" }, { "docid": "424c8e65e3184b78f1d2e7674fd42263", "score": "0.7243852", "text": "def or(right); end", "title": "" }, { "docid": "3608e51948f4077591a036346ba604ec", ...
97125d696445ff81b3b0feb49f538d91
Measures the median number of characters of a set of tweets
[ { "docid": "2a906cb34042da19743768bc0b142d5e", "score": "0.7830577", "text": "def median_number_of_characters(array_of_text)\n array_of_numbers = number_of_characters(array_of_text)\n return median(array_of_numbers)\n end", "title": "" } ]
[ { "docid": "515022584ee8268dc0b71e2713245ef9", "score": "0.63409257", "text": "def get_density(number_of_tweets=50)\n \n tweets = $redis.lrange self.term, (-number_of_tweets), -1\n if tweets.count > 1\n # calculate the timespan and then tweets per minute\n # of the result set\n start...
7ca2ff6a0dc39f0c8fee9d29f682d1b5
Returns a new Time representing the start of the year (1st of january, 0:00)
[ { "docid": "03ef5fc4b4c761a25dc5175a08fb8d7c", "score": "0.78706264", "text": "def beginning_of_year\n change(:month => 1,:day => 1,:hour => 0, :min => 0, :sec => 0, :usec => 0)\n end", "title": "" } ]
[ { "docid": "0bf7975859472a5a92d0b7bf7a0cc031", "score": "0.7384511", "text": "def beginning_of_year\n change(month: 1).beginning_of_month\n end", "title": "" }, { "docid": "2468cd44942fcb09d6afb7969baafa5b", "score": "0.7080429", "text": "def start_of_year\n @start_of_ye...
11007373710144246a3cef4e3501bf4f
GET /properties/1 GET /properties/1.json
[ { "docid": "f1b547120b16a5e0d467fecb4d3b1fd5", "score": "0.0", "text": "def show\n address = Address.where([\"address_id = ? and user_email = ?\", @property.address_id, current_user.email]).first\n citystate = address.city << \", \" << address.state\n @data = Rubillow::PropertyDetails.deep_sear...
[ { "docid": "11b54af87a7bad5d0f1bea0734511e6e", "score": "0.7648456", "text": "def show\n @properties_path = PropertiesPath.find(params[:id])\n\n respond_to do |format|\n format.html # show.html.erb\n format.json { render json: @properties_path }\n end\n end", "title": "" }, {...
af3b928267f5f92f98ee470fd9c1e2eb
Fetch any new files by copying them to the +project_dir+.
[ { "docid": "6ba05f1c4d9bebcb97ce403101f2b938", "score": "0.6593044", "text": "def fetch\n log.info(log_key) { \"Copying from `#{source_file}'\" }\n\n create_required_directories\n FileUtils.cp(source_file, target_file)\n # Reset target shasum on every fetch\n @target_shasum = ni...
[ { "docid": "c3f8c38f8e9e46f01ef01772cfbd20bc", "score": "0.6513685", "text": "def fetch\n log.info(log_key) { \"Fetching from `#{source_url}'\" }\n create_required_directories\n\n if cloned?\n git_fetch\n else\n force_recreate_project_dir! unless dir_empty?(project_dir)...
ca4a224ecf11b1f72ce291c7b56d1e8a
This API is used to update the Multifactor authentication phone number by sending the verification OTP to the provided phone number
[ { "docid": "9e99cae7b6ae13bb21a52ddf2bb60d44", "score": "0.65643317", "text": "def mfa_update_phone_number_by_token(access_token, phone_no2_f_a, sms_template2_f_a = '')\n if isNullOrWhiteSpace(access_token)\n raise LoginRadius::Error.new, getValidationMessage('access_token')\n end\n ...
[ { "docid": "a872257e70bd6604e71ceb2063e09690", "score": "0.77586526", "text": "def phone_resend_verification_otp(phone, sms_template = '')\n if isNullOrWhiteSpace(phone)\n raise LoginRadius::Error.new, getValidationMessage('phone')\n end\n\n query_parameters = {}\n query_param...
b3bd4142acce4b2588c28fd885de4e72
The path used after sign up.
[ { "docid": "e8f014f24083f9601e1427ca19553975", "score": "0.0", "text": "def after_sign_up_path_for(resource)\n super(resource)\n end", "title": "" } ]
[ { "docid": "bfb89bf9d88aa9e59a143eb02f412e81", "score": "0.7807393", "text": "def signup_path\n \"/auth/dailycred\"\n end", "title": "" }, { "docid": "5d3967801c75d5e16e6e82cc5a0bcb17", "score": "0.7593997", "text": "def client_signed_up_path\n path_from_cookie(:after_account_...