query_id stringlengths 32 32 | query stringlengths 7 6.75k | positive_passages listlengths 1 1 | negative_passages listlengths 88 101 |
|---|---|---|---|
ac35d1d2659852b669e87d1714a16a8e | Invoke the MetaChannels Shows API to retreive a single show id The id of the metachannels show args TBD | [
{
"docid": "1b2dbd2f3d5a41fb6428ac6cd32b8fc7",
"score": "0.7809948",
"text": "def show(id, *args) #TODO rename as get_show, alias\n raise ArgumentError.new('apikey not specified') if @api_key.blank?\n parameters = args.extract_options!\n\n uri()[\"/shows/#{id}\"].get(parameters, {'Channels-Auth... | [
{
"docid": "d071d4ea0f9e50633a9472ce85dc40da",
"score": "0.69635344",
"text": "def show(show)\n log_debug\n show_id = api_show_id(show)\n\n if show_id\n log_debug \"thetvdb show : #{show} : show_id : #{show_id}\"\n api_series(show_id,show) \n end\n \n end",
"title": ""
}... |
29fc4d7232c0fcb6ab1238a132323f21 | PATCH/PUT /vacations/1 PATCH/PUT /vacations/1.json | [
{
"docid": "28d6467875f3a031b4471fdd852545fc",
"score": "0.63236004",
"text": "def update\n \n respond_to do |format|\n if @vacation.update(vacation_params)\n format.html { redirect_to @vacation, notice: 'Vacation was successfully updated.' }\n format.json { render :show, status:... | [
{
"docid": "424b44576d530a54e741d0a7dc1568a3",
"score": "0.73015237",
"text": "def update\n @vacation = Vacation.find(params[:id])\n\n if @vacation.update(vacation_params)\n head :no_content\n else\n render json: @vacation.errors, status: :unprocessable_entity\n end\n end",
"t... |
9592ba84106184b7f508a8b6a29c6a83 | Path to directory in which to extract zip file | [
{
"docid": "e775c94db0fb8c1a4794a189efeab3cf",
"score": "0.7859215",
"text": "def zip_file_directory\n # Get the base file name and remove problematic parens\n basename = File.basename(filename, \".zip\").delete(\"(\").delete(\")\")\n \"#{File.dirname(filename)}/#{basename}\"\n end",
"titl... | [
{
"docid": "b9a02f786199b7642be058bd7860ef73",
"score": "0.8202472",
"text": "def zip_file_directory\n \"#{File.dirname(filename)}/#{File.basename(filename, '.zip')}\"\n end",
"title": ""
},
{
"docid": "5d133b2c93bbccf9397d0f375acfb845",
"score": "0.8170722",
"text": "def output_... |
1b8da333a5bddd4765979b2e1a226aba | O P E R A T I O N S If attempting an operation with a scalar as the reciever and a measure as the message, swap their roles. Note this works for addition and multipliation, but not for division or subtraction, and other noncommunative operations (TODO: Any way to fix?). | [
{
"docid": "659f9dcaf1ac4620cc540c65753a455c",
"score": "0.0",
"text": "def coerce(other)\n return self, other\n end",
"title": ""
}
] | [
{
"docid": "c91299ec5322818135969362b8f310dd",
"score": "0.5801309",
"text": "def operation_to_message(op)\n answer = case op\n when '1'\n 'Adding'\n when '2'\n 'Subtracting'\n when '3'\n 'Multiplying'\n when '4'\n 'Dividing'\n end\n # extra code?\n answer\nend",
"title": ""
},... |
f74c29bdfc4a183e1ec1b91334cd5be2 | Use callbacks to share common setup or constraints between actions. | [
{
"docid": "5d7fc57a76e1a6c59509b801e47cbfd1",
"score": "0.0",
"text": "def set_turtle\n @turtle = Turtle.find_by_id(params[:id])\n end",
"title": ""
}
] | [
{
"docid": "631f4c5b12b423b76503e18a9a606ec3",
"score": "0.60310465",
"text": "def process_action(...)\n run_callbacks(:process_action) do\n super\n end\n end",
"title": ""
},
{
"docid": "7b068b9055c4e7643d4910e8e694ecdc",
"score": "0.60152966",
"text": "d... |
a2099a77c85e91272ae2f9e35b937953 | Only allow a trusted parameter "white list" through. | [
{
"docid": "27d59ddc74c785e6c47878b22fc5e4ba",
"score": "0.0",
"text": "def team_params\n params.require(:team).permit(:name, :description, :icon_path, :league_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"... |
3349c16fc48bfaa646a99915e05b5566 | Returns the regular expressions used to determine which urls to exclude from adjustment. | [
{
"docid": "d4dc858a704587ef4a490914845322ea",
"score": "0.5773592",
"text": "def adjust_urls_except\n Links.adjust_urls_except\n end",
"title": ""
}
] | [
{
"docid": "1b40e53483b23eda1b6f417418fd779c",
"score": "0.688167",
"text": "def exclude_pattern; end",
"title": ""
},
{
"docid": "4c5df29e8e24e0188498c75764829492",
"score": "0.6799571",
"text": "def ignore_urls\n @url_rules.reject\n end",
"title": ""
},
{
"docid... |
dc0d2133e218c2200f075597583f2e17 | Provides writing apartments to file | [
{
"docid": "5e5f09f0d8db99095796286ec78e5326",
"score": "0.6795523",
"text": "def write(apartments)\n raise NotImplementedError\n end",
"title": ""
}
] | [
{
"docid": "ce7bad8f29bf317ca911454b55f50e1e",
"score": "0.81677085",
"text": "def write(apartments)\n CSV.open(@path, 'w') do |f|\n apartments.each { |apartment| apartment.description.to_a.each { |element| f << element } }\n end\n end",
"title": ""
},
{
"docid": "de2bacbf33c6a9d... |
66a55d2f7e4ce2d56b25dabb96164ea1 | seconds, renew all can take a really long time, sorry. need to provide the current logged in BL user, so we can get HIP borrower etc if needed. Need to provide the current controller session object, so we can store our hip session there. | [
{
"docid": "3cf89882cb79c8e81431ad8ed713bc1e",
"score": "0.0",
"text": "def initialize(current_user, rails_session, options = {})\n\n # HIP has been marked as disabled, perhaps because we are\n # doint Horizon maintenance. Refuse to contact HIP, instead\n # raise, and we'll give them a nice err... | [
{
"docid": "50648470d93bbc479485c1c81efffacd",
"score": "0.6627169",
"text": "def seconds_remaining\n if @key.nil?\n raise Error, \"Cannot calculate time remaining; session key has not \"\\\n \"yet been requested using #activate_for_user.\" \n end\n SESSION_EXPI... |
96742af299c89898f1058b094fe38cd5 | keeps paragraphs and linebreaks | [
{
"docid": "dd1536740075e7a0903424898b95db1b",
"score": "0.0",
"text": "def simple_format(string, options = {})\n options.to_options!\n\n options[:paragraphs] = options.delete(:p) if options.has_key?(:p)\n options[:paragraphs] = true unless options.has_key?(:paragraphs)\n\n content = string.... | [
{
"docid": "559b4da628570278a2d4bea8f93942f2",
"score": "0.7222096",
"text": "def remove_paragraph_tags mytext\n mytext.sub!(/^<p>\\s*<\\/p>/,\"\")\n mytext.sub!(/(<br>)*<p>\\s*<\\/p>$/,\"\")\n mytext.sub!(/^<p>/,'')\n mytext.sub!(/<\\/p>?/,'')\n return mytext\n end... |
54c6f93fe3957f52b3849b9d206ebcb4 | rubocop:disable Metrics/CyclomaticComplexity rubocop:disable Metrics/PerceivedComplexity | [
{
"docid": "5151a6c6c64a29d10d91518ca0ae6798",
"score": "0.0",
"text": "def access_token(options = {})\n valid_signature = options.key?(:valid_signature) ? options[:valid_signature] : true\n issuer = options.key?(:issuer) ? options[:issuer] : issuer_url\n aud = options.key?(:audience) ? options... | [
{
"docid": "33e1db3c06643dd523dcc31fccf3a005",
"score": "0.6555037",
"text": "def used; end",
"title": ""
},
{
"docid": "33e1db3c06643dd523dcc31fccf3a005",
"score": "0.6555037",
"text": "def used; end",
"title": ""
},
{
"docid": "b6b2bcc0062aeb115edab7b10cbe6930",
"sc... |
740772eb739f5bed7f9171665e720e90 | GET /textblocks/new GET /textblocks/new.xml | [
{
"docid": "f9cca72e53dcdb70713698470f282476",
"score": "0.7233444",
"text": "def new\n @textblock = Textblock.new\n\n respond_to do |format|\n format.html # new.html.erb\n format.xml { render :xml => @textblock }\n end\n end",
"title": ""
}
] | [
{
"docid": "0a1fd1846680483c7a6f84d3dff7e027",
"score": "0.68631786",
"text": "def new\n @text_block = TextBlock.new\n \n respond_to do |format|\n format.html # new.html.erb\n format.json { render json: @text_block }\n end\n end",
"title": ""
},
{
"docid": "c... |
29ad284e1d554025d7047de21bac2a6f | Extracts the contents of a directory from this result data. | [
{
"docid": "1d4b29f61376e52de900cca5f3bf8269",
"score": "0.6479885",
"text": "def extract_dir(dir_name, dest)\n @zip_file.glob(\"#{dir_name}/*\") do |entry|\n dest_path = File.join(dest, entry.name)\n dest_dir = File.dirname(dest_path)\n FileUtils.mkdir_p(dest_dir) unless File.... | [
{
"docid": "db09a3079df58488d899520bcc1ccb32",
"score": "0.7621372",
"text": "def directory\n extract\n @directory\n end",
"title": ""
},
{
"docid": "870d143ec92ed3c9605353935afa7476",
"score": "0.65601456",
"text": "def each_directory(&block)\n Reader::read(self, :... |
b4ac3278c80d00e65a4e992d86f2774a | Saturn longitudes (IERS 2003) | [
{
"docid": "a75b7004404b99ca466fb06da10e3ae7",
"score": "0.0",
"text": "def calc_sa_iers2003(t)\n return (0.874016757 + 21.3299104960 * t) % PI2\n rescue => e\n raise\n end",
"title": ""
}
] | [
{
"docid": "1d70e2d3c2ef7d10f78f110a536db362",
"score": "0.77428323",
"text": "def longitude #λ₀\n (n + ec + εg) % 360\n end",
"title": ""
},
{
"docid": "1904ae4940016d1fbe939982994498ee",
"score": "0.71748954",
"text": "def longitude\n longitude_times_1000000.nil? ? nil : lon... |
e1d1dbfe8a1a2d4b7583fd592033f3e4 | Clones the specified sharelevel snapshot. | [
{
"docid": "e723a60071b346d3e1463a09b6ca55f1",
"score": "0.56043947",
"text": "def clone_share_snapshot_post(clone_share_snapshot_param, opts = {})\n clone_share_snapshot_post_with_http_info(clone_share_snapshot_param, opts)\n return nil\n end",
"title": ""
}
] | [
{
"docid": "05c3424fefe1e559c8ce444df3beba82",
"score": "0.629905",
"text": "def clone_snapshot(snapshot_name, table, restore_acl = false, clone_sft = nil)\n @admin.cloneSnapshot(snapshot_name, TableName.valueOf(table), restore_acl, clone_sft)\n end",
"title": ""
},
{
"docid": "77b5f... |
b44ed5a46142310336e04379f98a0beb | Currently handles user_extracurricular_activity_detail POST as well. POST /users/:user_id/user_extracurricular_activity | [
{
"docid": "43f1cc5a05fabe056f359499000adeae",
"score": "0.7574851",
"text": "def create\n new_extracurricular_activity = params[:user_extracurricular_activity]\n new_extracurricular_detail = params[:user_extracurricular_detail]\n userId = params[:user_extracurricular_activity][:user_id].to_i\n... | [
{
"docid": "6cd7516d089eddf94b37a3e85b53a3a8",
"score": "0.6494959",
"text": "def update\n extracurricularActivityId = params[:id].to_i\n updated_extracurricular_activity = params[:user_extracurricular_activity]\n updated_extracurricular_detail = params[:user_extracurricular_detail]\n\n user... |
0ce96b0c1b078cb70180c0025748e16b | The FCK Cleanup is responsible for converting known characters that the FCK WYSIWYG Editor tends to introduce Please do not modify this method for any reason as all page, snippet, and widget content passes through this method on its way to the database. | [
{
"docid": "7f6b963234138e5db95b25db074734ca",
"score": "0.7555262",
"text": "def fck_cleanup\n # Change the following from their named entity to their decimal entity\n gsub!(\" \",\" \")\n gsub!(\"&\",\"&\")\n\n # Turn ' back into `'` because IE6 is a \"speci... | [
{
"docid": "0dee1f4416bbe96fb7254d85a1507b68",
"score": "0.6313087",
"text": "def clean()\n #strip all illegal content here. (scripts, shit that will break layout, etc.)\n end",
"title": ""
},
{
"docid": "bbb231721821c3a5933d0d3746abd3f4",
"score": "0.63018996",
"text": "def clea... |
00524545234a18752505b6ab3b6f5a3a | play_sound relies on SoX play being installed | [
{
"docid": "6719e790b7461bd2e8eefba45fd08b5a",
"score": "0.7647817",
"text": "def play_sound \n system\"play #{@sound_file}\"\n end",
"title": ""
}
] | [
{
"docid": "c0ae4919b2449863f7dd4e642ce99173",
"score": "0.75727683",
"text": "def playSound _args\n \"playSound _args;\" \n end",
"title": ""
},
{
"docid": "4fbe855cfcc79a6cdf7350ba0fde5060",
"score": "0.73601735",
"text": "def play_sound\n system 'afplay ./app/sounds/tes... |
582592e2c6fde6c9fbde2542d3c7e516 | DELETE /client_needs/1 DELETE /client_needs/1.json | [
{
"docid": "ab146757ad06d78bc6fd6e1da14d65a0",
"score": "0.7750304",
"text": "def destroy\n @client_need = ClientNeed.find(params[:id])\n @client_need.destroy\n\n respond_to do |format|\n format.html { redirect_to client_needs_url }\n format.json { head :no_content }\n end\n end",... | [
{
"docid": "fb622696b3cadaef2a0d459cf3572785",
"score": "0.6973007",
"text": "def destroy\n client=Client.find_by_id(params[:id])\n if client != nil\n if client.destroy\n head 204\n end\n else\n head 404\n end\n end",
"title": ""
},
{
"docid": "689d5a07a40... |
c657de4b70d266e9a3a784b999ea9e60 | Never trust parameters from the scary internet, only allow the white list through. | [
{
"docid": "fb7fcbc2101aa15afc635276718e5a30",
"score": "0.0",
"text": "def calculator_params\n params.fetch(:expression, {})\n end",
"title": ""
}
] | [
{
"docid": "3663f9efd3f3bbf73f4830949ab0522b",
"score": "0.7495027",
"text": "def whitelisted_params\n super\n end",
"title": ""
},
{
"docid": "13a61145b00345517e33319a34f7d385",
"score": "0.69566035",
"text": "def strong_params\n params.require(:request).permit(param_whit... |
bd3a7dfddc30bc69012064ac1ec450c4 | Given a hash with numeric values, return the key for the smallest value | [
{
"docid": "9404c7d524e744983e6941440a61ed9d",
"score": "0.0",
"text": "def key_for_min_value(name_hash)\n\nif name_hash.empty?\n return nil\n end\n\nminVal=100000000\nminName=\"\"\n\n\nif name_hash.empty?\n nil\n else\nname_hash.collect do |name, num|\n if num<minVal\n minName=name\n min... | [
{
"docid": "187165074e32a7573ee53a9cabb44ed4",
"score": "0.88803446",
"text": "def key_for_min_value(hash)\n lowest_key=nil \n lowest_value= Float::INFINITY\n hash.each do |name,number|\n if number < lowest_value\n lowest_value=number\n lowest_key= name\n end \n end\n lowest_key\nen... |
f74c29bdfc4a183e1ec1b91334cd5be2 | Use callbacks to share common setup or constraints between actions. | [
{
"docid": "46fbbd4eed0f0f422c2b32700bb16e5a",
"score": "0.0",
"text": "def set_survivor\n begin\n @survivor = Survivor.find(params[:id])\n rescue ActiveRecord::RecordNotFound\n response = {error: \"Survivor not found.\"}\n render json: response, status: :not_fou... | [
{
"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... |
e83cc3b33982868b91968ca8f15b80b1 | DELETE /weights/1 DELETE /weights/1.json | [
{
"docid": "3fa64a5a869450643c74805388b0a1dd",
"score": "0.72846204",
"text": "def destroy\n @weight.destroy\n respond_to do |format|\n format.html { redirect_to weights_url, notice: 'Weight was successfully destroyed.' }\n format.json { head :no_content }\n end\n end",
"title": ... | [
{
"docid": "b2c6d0390d6afc0d525e1da2dd092c31",
"score": "0.7664669",
"text": "def destroy\n @weight = Weight.find(params[:id])\n @weight.destroy\n\n respond_to do |format|\n format.html { redirect_to weights_url }\n format.json { head :no_content }\n end\n end",
"title": ""
... |
6e3f1dec0570616d11e680f0ec65fa29 | Does the related RegisteredDownload require an employee number? | [
{
"docid": "c4d6dbfc10103820505861da9319bf43",
"score": "0.8733497",
"text": "def require_employee_number?\n !!(self.registered_download.require_employee_number?)\n end",
"title": ""
}
] | [
{
"docid": "394476ee8d335998f51c9c4bf836aa8d",
"score": "0.68668795",
"text": "def require_serial_number?\n !!(self.registered_download.require_serial_number?)\n end",
"title": ""
},
{
"docid": "8f4c5d357c91749ed6cc46a39cbfb366",
"score": "0.65874827",
"text": "def require_store_... |
c657de4b70d266e9a3a784b999ea9e60 | Never trust parameters from the scary internet, only allow the white list through. | [
{
"docid": "5bf75a6b00676eb8770b2a0312a441d4",
"score": "0.0",
"text": "def metric_params\n params.require(:metric).permit(:name, :description, :duser_id, :unit_id,:series_color)\n end",
"title": ""
}
] | [
{
"docid": "3663f9efd3f3bbf73f4830949ab0522b",
"score": "0.74959",
"text": "def whitelisted_params\n super\n end",
"title": ""
},
{
"docid": "13a61145b00345517e33319a34f7d385",
"score": "0.6957448",
"text": "def strong_params\n params.require(:request).permit(param_whiteli... |
ebaf5270912ed37edf5ee11bf1f8bc29 | GET /permissions GET /permissions.json | [
{
"docid": "131b10ed7db7fad396bb236714ccc89e",
"score": "0.6882481",
"text": "def index\n @permissions = Permission.all\n end",
"title": ""
}
] | [
{
"docid": "77e82402739d854a49967918cacdaf8b",
"score": "0.85603946",
"text": "def permissions\n response = request(:get, '/permissions.json')\n response.collect { |perm| perm['permission'] }\n end",
"title": ""
},
{
"docid": "77e82402739d854a49967918cacdaf8b",
"score": "0.8... |
d20fea21d86a3e506c741699f3c81c8e | valid_emblem_id Is the emblem a valid one? | [
{
"docid": "eedb441772c0e42fd19ad76bebe31905",
"score": "0.78578484",
"text": "def valid_emblem_id( emb_id )\n for sid in @valid_emblem_ids.compact\n sta = $data_states[sid]\n #next if sta == nil\n return true if sta.emb_id == emb_id\n end \n return false\n end",
"title": "... | [
{
"docid": "ab6a836facb61c8302d459a9226c0dfb",
"score": "0.67392737",
"text": "def emb_id\n iex_emblem_cache unless @emb_cache_complete\n return @emb_id\n end",
"title": ""
},
{
"docid": "d643776d336b5e79e785d47db6eb5172",
"score": "0.6297631",
"text": "def negate_emblem?( nem... |
a2c0c3274d3640de4c9405352611ed88 | GET /topics/1 GET /topics/1.json | [
{
"docid": "9828bc961cd56186e927d1148b0fee84",
"score": "0.7309439",
"text": "def show\n @topic = Topic.find(params[:id])\n\n respond_to do |format|\n format.html # show.html.erb\n format.json { render json: @topic }\n end\n end",
"title": ""
}
] | [
{
"docid": "fe18025fbabf7960adf3714a0950bff8",
"score": "0.7909809",
"text": "def GetTopic id\n\n APICall(path: \"topics/#{id}.json\")\n\n end",
"title": ""
},
{
"docid": "d8a4c42e40f0a1d5ca7f328b40e41c2e",
"score": "0.75292104",
"text": "def get(*topics)\n # FIXME: im... |
72809a0d2c46ca95a7796efd7a7561d4 | set a value at key | [
{
"docid": "ff852904f0c2b31a86116b9d3629dfa2",
"score": "0.0",
"text": "def set(key, val)\n\n #::Chef::Log.info(\"#{key} = #{val}\")\n if val.is_a?(String)\n if val != \"on\" && val != \"off\"\n if !val.match(/^-?\\d+/)\n val = \"'#{val.gsub(/^'|'$/, \"\")}'\"\n ... | [
{
"docid": "d04338d62f17471eb952d5d71b5bcac5",
"score": "0.85465837",
"text": "def set key, value\n run_method(:set, key, value)\n end",
"title": ""
},
{
"docid": "d49a7256948ce963ae8fb80c71a6966e",
"score": "0.85386825",
"text": "def set(key, value); end",
"title": ""
},
... |
fc429aa76677ae77572c507cad6b3f89 | GET /meal_categories/1 GET /meal_categories/1.json | [
{
"docid": "a81945373733e4951b987de6ea99f9a1",
"score": "0.0",
"text": "def show\n end",
"title": ""
}
] | [
{
"docid": "605be22ed2d4b16f3112a55461502586",
"score": "0.7724965",
"text": "def index\n @meal_categories = MealCategory.all\n\n respond_to do |format|\n format.html # index.html.erb\n format.json { render json: @meal_categories }\n end\n end",
"title": ""
},
{
"docid": ... |
9b7644f5bdf4a91cff9fae6e3688d01a | sends out a password reset mail. | [
{
"docid": "f8a98412080652e9137680d1cd9a27fd",
"score": "0.8250478",
"text": "def send_password_reset_mail\n Notifications.deliver_password_reset(self)\n end",
"title": ""
}
] | [
{
"docid": "95c04b5ea7a82e24c03fd16b72a94938",
"score": "0.8325078",
"text": "def send_password_reset_notification\n deliver_email(:password_reset, :subject => (MaSM[:password_reset_subject] || \"Request to change your password\"))\n end",
"title": ""
},
{
"docid": "7163d... |
9e6a691dea44418623765b7d05f6a6ce | def update_timeslots_alt bookings = Booking.where(room_id: params[:id]) Booking.where(room_id: params[:id], start_date: params[:start_date]) | [
{
"docid": "84bc079baf4f4ec1ce6e03ef5078e023",
"score": "0.8130536",
"text": "def update_timeslots\n room_bookings = Booking.where(room_id: params[:id]) #Booking.where(room_id: params[:id], start_date: params[:start_date])\n next_day = (params[:start_date].to_datetime + 1.day).to_date\n booking... | [
{
"docid": "22f8d9ce251b897f446b999be1a8d09a",
"score": "0.7160002",
"text": "def find\n @booking = Booking.new\n @booking.user_id = current_user.id\n @booking.room_id = params[:id]\n if(!params[:date].nil?)\n @booking.date = Time.parse(params[:date]).strftime('%Y-%m-%d')\n @bookin... |
b9cb51b47a4d2633ad80fa052ef57bb2 | Returns a list of available AMI images filtered by any environment or role specified in the options passed to the constructor. Each image is represented by an OpenStruct with the following keys/methods: image_id: the ID of the AMI or image type: the type of AMI or image public: a flag indicating if the image is public ... | [
{
"docid": "a947a7adcb8d6eb0492a2edd0908d004",
"score": "0.70554894",
"text": "def images\n @images ||= aws_client.images(owners: ['self'], filters: image_filters).map do |image|\n OpenStruct.new(\n with_tags(image, image_id: image.image_id,\n type:... | [
{
"docid": "bf1b504c8ff2f0bb211dc110c9844159",
"score": "0.6893581",
"text": "def list_virtual_machine_images(imageType=:all)\n images = Array.new\n if imageType == :public or imageType == :all\n public_images = list_public_virtual_machine_images\n images.concat public_im... |
9e25d4440ab1999386d911d16791a823 | The deserialization information for the current model | [
{
"docid": "af291e11062c3907253189b45a59f765",
"score": "0.6173917",
"text": "def get_field_deserializers()\n return {\n \"applicationVersion\" => lambda {|n| @application_version = n.get_string_value() },\n \"headerValue\" => lambda {|n| @header_valu... | [
{
"docid": "8c867fd2c80799d10790d2085d14eba7",
"score": "0.6510734",
"text": "def deserialized\n @deserialized ||= @serializer.deserialize @serialized_object\n end",
"title": ""
},
{
"docid": "be6df54ff4d9ca8c6dd1eaa5e0a0615d",
"score": "0.63224316",
"text": "def get_fiel... |
775a556ecfd4d4a254fba195092902a6 | rubocop:enable Metrics/MethodLength rubocop:disable Metrics/MethodLength | [
{
"docid": "551d3cef71f9e7be72eb7584704e613d",
"score": "0.0",
"text": "def deny_encryption_using_incorrect_key_statement(\n bucket_name,\n kms_key_arn\n )\n {\n effect: 'Deny',\n principal: '*',\n action: 's3:PutObject',\n resource: \"arn:aws:s3:::#{bucket_name}/*\",\n ... | [
{
"docid": "ef1e4c0cc26e4eec8642a7d74e09c9d1",
"score": "0.78097546",
"text": "def private; end",
"title": ""
},
{
"docid": "0b8b7b9666e4ed32bfd448198778e4e9",
"score": "0.6550692",
"text": "def probers; end",
"title": ""
},
{
"docid": "3660c5f35373aec34a5a7b0869a4a8bd",
... |
36b2f9dc0dfbe83ef733e50c3cfb92d7 | Show a specific digest record. Returns the data for the specific digest record matching the bag's uuid and the digest algorithm. These two values always uniquely identify a digest. | [
{
"docid": "9d10350165c86a4bd80f84d0f7dd705b",
"score": "0.5384897",
"text": "def bag_uuid_digest_algorithm_get(uuid, algorithm, opts = {})\n data, _status_code, _headers = bag_uuid_digest_algorithm_get_with_http_info(uuid, algorithm, opts)\n return data\n end",
"title": ""
}
] | [
{
"docid": "d05867e52810fd37bc32f810fc19743a",
"score": "0.63558614",
"text": "def bag_uuid_digest_get(uuid, page, page_size, opts = {})\n data, _status_code, _headers = bag_uuid_digest_get_with_http_info(uuid, page, page_size, opts)\n return data\n end",
"title": ""
},
{
"docid... |
4f40b41f4dc38e6951af618f966ac81b | new video, upload to Facebook + analyze | [
{
"docid": "fa286c0f56eafa3b0af18b2312208f1c",
"score": "0.74481136",
"text": "def create\n logger.info \"---in video.create\"\n unless !signed_in? || !params[:video]\n logger.info \"---creating video with \" + params.to_s\n more_params = {:user_id => current_user.id, :duration => 0} #te... | [
{
"docid": "622f22961e89ae26411de0c2dfa1c8a9",
"score": "0.743343",
"text": "def upload\n\t\tcourse = Course.find_by :year => course_params[:year], :code => course_params[:code]\n\t\tbox_video_id ||= params[:video][:box_video_id]\n\t\tbox_video_path ||= params[:video][:box_video_path]\n\t\t# fix this\n\... |
b9b750c0584acdf1f5c2923c585a08ed | Handles actually sending response data to the client. | [
{
"docid": "825e0ffddf0eee70ecfc3deab5acee1d",
"score": "0.0",
"text": "def respond_to(request, opts = {})\n from = request.from\n status = opts[:status] or 200\n data = opts[:data] or ''\n resp = \"#{request.hash}:#{opts[:status]}\"\n unless data.to_s.empty?\n resp += ('... | [
{
"docid": "6e022790d717c94c954f471da6a6a0f6",
"score": "0.74056554",
"text": "def _send_response resp\n Handler.log.debug \"Sending response : #{resp}\"\n send_data resp.to_s + \"\\n\"\n resp\n end",
"title": ""
},
{
"docid": "6fa19865cfad98d1157e95d4e68987dd",
... |
d3c7edc9b88a87942d598ed5a91118db | Returns the login in user. This is always the user with which you Initialized this classes Check this object to see if the user is active and have API access. | [
{
"docid": "866e6081fc1bd7f90fdef3da382679a1",
"score": "0.0",
"text": "def current_user\n if @_curent_user.nil?\n user = User.new(@base_url, @username, @password)\n @_curent_user = user.load(@username)\n end\n @_curent_user\n end",
"title": ""
}
] | [
{
"docid": "3329b5dc0380194f485579d46b532e17",
"score": "0.7823732",
"text": "def current_user\n where(:login => true).first\n end",
"title": ""
},
{
"docid": "b83c98f3d5522da5d487b814d7f812e0",
"score": "0.7589297",
"text": "def current_user\n @current_user ||= User.w... |
fb6d05a12172f450c263f5cf2d4b86f0 | Read a &39;storage.PureVolumeSnapshot&39; resource. | [
{
"docid": "e751ad71ed0b95eb1f0e9f0336592b25",
"score": "0.54153293",
"text": "def get_storage_pure_volume_snapshot_list_with_http_info(opts = {})\n if @api_client.config.debugging\n @api_client.config.logger.debug 'Calling API: StorageApi.get_storage_pure_volume_snapshot_list ...'\n en... | [
{
"docid": "9d7bea5adad16f7f92400d6c816cfdfc",
"score": "0.5797926",
"text": "def get_storage_pure_volume_snapshot_by_moid(moid, opts = {})\n data, _status_code, _headers = get_storage_pure_volume_snapshot_by_moid_with_http_info(moid, opts)\n data\n end",
"title": ""
},
{
"docid... |
de7e814824e46a1b615b5e17743f0c8c | Returns +true+, since this connection adapter supports prepared statement caching. | [
{
"docid": "7e6a72a9115e300130df4fade662aae1",
"score": "0.8098858",
"text": "def supports_statement_cache?\n true\n end",
"title": ""
}
] | [
{
"docid": "cb3c1229889ad47fa692ba2a100fdc5a",
"score": "0.7892225",
"text": "def supports_statement_cache?\n false\n end",
"title": ""
},
{
"docid": "cb3c1229889ad47fa692ba2a100fdc5a",
"score": "0.7892225",
"text": "def supports_statement_cache?\n false\n end... |
fb71e71d9cff7a6a17e2c40ac44cf7c3 | End the operation turn This action is called then the current company finishes their turn. Any end of turn effects will be placed here. | [
{
"docid": "b2688561e94384bc136ef92f72f11b77",
"score": "0.0",
"text": "def done(_)\n end",
"title": ""
}
] | [
{
"docid": "c850fc284c43b47962e116e73348f1fb",
"score": "0.7357533",
"text": "def turnEnd()\n @isActive = false\n end",
"title": ""
},
{
"docid": "8e6319a15e4082b40b4bc00f3d7a43cf",
"score": "0.7297726",
"text": "def finish_turn\n send \"<finishTurn/>\"\n end",
... |
cb58ededc10cbfa4f5cf799e6a78f880 | The method used by Modulorails::LogsForMethodService to log the service name | [
{
"docid": "4fe2c78dad75446012570eab13394ffe",
"score": "0.0",
"text": "def to_tag\n self.class.to_s\n end",
"title": ""
}
] | [
{
"docid": "4f0da025b256fc049c75179253d5be60",
"score": "0.7659482",
"text": "def name\n @service.name.to_s\n end",
"title": ""
},
{
"docid": "75f261b4d1fa6dc9abb133f4599a8da4",
"score": "0.75512505",
"text": "def service(name)\n \"#{SERVICE_NAME} #{name}\"\n end",
... |
a32c96005562fcbafdda985ae750ca0f | Waits for every queued ajax to finish. | [
{
"docid": "f71e1163c5bd936d70b0ccbc016ea059",
"score": "0.71689487",
"text": "def wait_for_ajax_complete\n wait_for_page_load\n wait_for_ajax\n end",
"title": ""
}
] | [
{
"docid": "f526f14bbaddbbb9026fbd525e310ea1",
"score": "0.7551413",
"text": "def wait_for_all_requests\n wait_for('pending requests complete') do\n finished_all_rack_reqiests? &&\n finished_all_js_requests?\n end\n end",
"title": ""
},
{
"docid": "f526f14bbaddbbb9026fbd52... |
2566cec188669539fbd31576827c0038 | To redirect create and update actions redirect to index page upon submit. | [
{
"docid": "aaf7a7f52444f931763dd3c2904763e9",
"score": "0.0",
"text": "def create\n super do |format|\n redirect_to collection_url and return if resource.valid?\n end\n end",
"title": ""
}
] | [
{
"docid": "d381d5da1558a6c88b3f848384bb5221",
"score": "0.775569",
"text": "def index\n redirect_to :action => \"new_or_edit\"\n end",
"title": ""
},
{
"docid": "41c4125007fb26c07b73bc4bf1764a44",
"score": "0.770124",
"text": "def index\n redirect_to :action => \"edit\" and r... |
df3da2e74d6c5f853ad56834786c967a | POST /vendors POST /vendors.json | [
{
"docid": "182d74d93463f9a6d169106256e8ec73",
"score": "0.6133071",
"text": "def create\n @vendor = Vendor.new(params[:vendor])\n if @vendor.save\n redirect_to @vendor, notice: 'Vendor was successfully created.'\n else\n render action: \"new\"\n end\n end",
"title": ""
... | [
{
"docid": "4013a4ab67ef2cd623e2005251e6ff81",
"score": "0.70283103",
"text": "def create\n @vendor = current_user.vendors.new(vendor_params)\n\n respond_to do |format|\n if @vendor.save\n format.html { redirect_to @vendor, notice: 'Vendor was successfully created.' }\n format.j... |
300213e69eeb3cfea1472948f1454955 | Returns the count of siblings with this element's tag return:: [Integer] The number of sibling elements | [
{
"docid": "8477f2ff00422ed1bd033a067b15b796",
"score": "0.7269853",
"text": "def count\n return @element_parent.element_children[@element_tag].size if @element_parent\n return 0\n end",
"title": ""
}
] | [
{
"docid": "428ffe9b40877b22cd0d47e04d3cf1e4",
"score": "0.7718444",
"text": "def getNumberOfSiblings(node)\n return getIndexAndOrNumber(node,NUMBER)\n end",
"title": ""
},
{
"docid": "1149efbe1c87118edb138405c8c526ca",
"score": "0.77172965",
"text": "def getNumberOfSiblings(... |
ebd0b303234dd8c38f10d0b16cadfbb3 | necessary for tasks this really should be on the shift model I think | [
{
"docid": "f9a08dc6a5f59a46152857b23f975113",
"score": "0.0",
"text": "def shifts_between(start_time, end_time)\n start_time = start_time.to_time\n end_time = end_time.to_time\n shifts = Shift.where(\"start >= ? AND end <= ? AND location_id = ? AND active = ?\", start_time, end_time, self.id, ... | [
{
"docid": "635288ac8dd59f85def0b1984cdafba0",
"score": "0.5770782",
"text": "def workflow\n end",
"title": ""
},
{
"docid": "e0d430f6255377d68fd05dc0921d27fc",
"score": "0.57211894",
"text": "def optimize_workflow\n end",
"title": ""
},
{
"docid": "a0c57bec8211534acaa1... |
7a73048ef2b99a519ce7feeb0e22766f | is the current disk already claimed? then use the claimed unique_name | [
{
"docid": "e492b3dd81ce2f5cf3ad90e570b4c76e",
"score": "0.7480613",
"text": "def unique_name_already_claimed_by\n @node[:crowbar_wall] ||= Mash.new\n claimed_disks = @node[:crowbar_wall][:claimed_disks] || []\n cm = claimed_disks.find do |claimed_name, v|\n begin\n... | [
{
"docid": "e537a0a13c4484eef53d13da2a867ac5",
"score": "0.56998074",
"text": "def claimed?\n !claimant.nil?\n end",
"title": ""
},
{
"docid": "e499a5c61bbea735e637c46f6decd7a3",
"score": "0.5687584",
"text": "def claimed?\n ! @claim.nil?\n end",
"titl... |
242a670b9e5a7d54b73692870891f9b5 | Time Complexity: ? Space Complexity: ? | [
{
"docid": "e9fdd9f0cb87fdb7e12263ae30153f37",
"score": "0.0",
"text": "def evaluate_postfix(postfix_expression)\n raise NotImplementedError, \"Not implemented yet\"\nend",
"title": ""
}
] | [
{
"docid": "27f29666484272c0d973e8400c4c357c",
"score": "0.62920946",
"text": "def hash_two_sum?(arr, num)\n hash = Hash.new(0) #O(1) work\n arr.each do |ele| # N times\n return true if hash.has_key?(num - ele) # O(1) work\n hash[ele]+= 1 # O(1) work\n end\n false\nend",
"t... |
f74c29bdfc4a183e1ec1b91334cd5be2 | Use callbacks to share common setup or constraints between actions. | [
{
"docid": "742cea7ba0fcc43caf8778ff7eae231f",
"score": "0.0",
"text": "def set_saved_song\n @saved_song = SavedSong.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... |
f74c29bdfc4a183e1ec1b91334cd5be2 | Use callbacks to share common setup or constraints between actions. | [
{
"docid": "edfa36d70ea28712c7488440b99e43c4",
"score": "0.0",
"text": "def set_minus_operation\n @minus_operation = MinusOperation.find(params[:id])\n end",
"title": ""
}
] | [
{
"docid": "631f4c5b12b423b76503e18a9a606ec3",
"score": "0.603186",
"text": "def process_action(...)\n run_callbacks(:process_action) do\n super\n end\n end",
"title": ""
},
{
"docid": "7b068b9055c4e7643d4910e8e694ecdc",
"score": "0.6015241",
"text": "def ... |
65b53d1e98365b64e4ea63c3d9bc1ee1 | remove a component and any nolongerneeded dependencies | [
{
"docid": "86db4384b6f451b3b789b991dee888ad",
"score": "0.668142",
"text": "def remove_component (component, is_recursive)\n if @installed.include? component\n # fetch any components that may still need this as a dependency\n is_needed_by = @needed_by.detect{|comp| comp[:name] == compo... | [
{
"docid": "d8cbd31c4cd76bd9ca02911fa28ff9b6",
"score": "0.71248555",
"text": "def remove\n changed!\n @dependencies = nil\n end",
"title": ""
},
{
"docid": "d8cbd31c4cd76bd9ca02911fa28ff9b6",
"score": "0.71248555",
"text": "def remove\n changed!\n @dependencie... |
07aa12ee2f1d9e7cf1ad5b227d27eca7 | Extract document sound annotation content to storage | [
{
"docid": "c79c20096c62731118252421f8f344c5",
"score": "0.5026862",
"text": "def put_sound_annotation_data_extract_with_http_info(name, annotation_id, out_file_path, opts = {})\n if @api_client.config.debugging\n @api_client.config.logger.debug \"Calling API: PdfApi.put_sound_annotation_dat... | [
{
"docid": "0fa27a85abd9191a58d546e87d537ae5",
"score": "0.648736",
"text": "def extract_metadata\n path = audio.queued_for_write[:original].path\n open_opts = { :encoding => 'utf-8' }\n TagLib::FileRef.open(path) do |fileref|\n tag = fileref.tag\n properties = fileref.audio_propertie... |
a651dfaa1828bb55f7406edd4cdbb2b2 | Switch on, or enable power on a given port +port+ the port option, default is all | [
{
"docid": "999f300849eff17bf6b5f6c09655dc89",
"score": "0.8105728",
"text": "def switch_on port=-1\n run(:func => \"relayWrite\", :port => port, :value => 1)\n end",
"title": ""
}
] | [
{
"docid": "4b3a011c4dd336dbc63f69428dce3ad5",
"score": "0.7159463",
"text": "def enable_write port=-1\n run(:func => \"enableWrite\", :port => port, :value => 1)\n end",
"title": ""
},
{
"docid": "1a1b1039af48d7bffbae855bfdaf4889",
"score": "0.71056694",
"text": "def set_pow... |
a2099a77c85e91272ae2f9e35b937953 | Only allow a trusted parameter "white list" through. | [
{
"docid": "7575291d8a062fb12e019436224e9243",
"score": "0.0",
"text": "def client_params\n params.require(:client).permit(:name, :r_date, :v_uf)\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"... |
b20b5372884d4b9547bef51d77d60a34 | Returns the Time number of seconds ago. (e.g., expiration > 2.hours.ago ) | [
{
"docid": "a6e14526cf9e05fbe041d68c803ebf57",
"score": "0.7495611",
"text": "def ago\n\t\treturn self.before( ::Time.now )\n\tend",
"title": ""
}
] | [
{
"docid": "9afdb657695ff70a6dbac0635aeca6c7",
"score": "0.803177",
"text": "def time_ago_in_seconds(x)\n DateTime.now.strftime(\"%s\").to_i - DateTime.parse(x).strftime(\"%s\").to_i\n end",
"title": ""
},
{
"docid": "ebd0e13121daa28eb776cd961c21b3b4",
"score": "0.78515905",
... |
6926290533c7041f35426964bed1cab8 | prettyprint a file size. num is the size of the file in bytes. | [
{
"docid": "9eb27d6dcb7ce869a8cb5f0abe85a522",
"score": "0.72753584",
"text": "def pp_file_size( num )\n num = num.to_i;\n return pp_number( num / 1024 ) + \" kb\";\n end",
"title": ""
}
] | [
{
"docid": "0146f4fd40eaf75d5939ea30426c6ae8",
"score": "0.6403033",
"text": "def filesize_format(int); end",
"title": ""
},
{
"docid": "0146f4fd40eaf75d5939ea30426c6ae8",
"score": "0.6403033",
"text": "def filesize_format(int); end",
"title": ""
},
{
"docid": "0146f4fd40... |
dc3d09a8818c851c4a6fc4dc265c9c4f | Return true if the user name is the current agent process owner. | [
{
"docid": "8752cbe269525d0f576ad6806999d1f2",
"score": "0.73309493",
"text": "def current?(user)\n Process.uid == Etc.getpwnam(user).uid\n rescue\n false\n end",
"title": ""
}
] | [
{
"docid": "4c8d59993936f967f2659a511cef0453",
"score": "0.7489279",
"text": "def is_owner?(username)\n User.get_user(username).eql?(self.owner)\n end",
"title": ""
},
{
"docid": "51f63e86fb5e7a949320afba4562544f",
"score": "0.7390802",
"text": "def owner? (user)\n user ... |
d8b0ed0b7514e595e20d77762900e333 | method for searching a keyword | [
{
"docid": "98e37c67d217988b9c468e9cbaff83f9",
"score": "0.0",
"text": "def search(keyword)\n begin\n url = \"https://www.googleapis.com/books/v1/volumes?q=#{keyword}&maxResults=5&key=#{$apikey}\"\n response = HTTParty.get(url)\n result = response.parsed_response\n File.wr... | [
{
"docid": "5f29bf4e326e1f635303b53f83ae4195",
"score": "0.86430347",
"text": "def search(search_word)\n \n end",
"title": ""
},
{
"docid": "f683bd54cfbeb88f5fcc68d409e90e07",
"score": "0.85150516",
"text": "def search(word)\n \n end",
"title": ""
},
{
... |
94cd2d7e98ea739dc993589b4285c6d5 | Return the amount still owed, based on the current payments made. balance_owed is positive if payment is still required. Negative if there has been an overpayment | [
{
"docid": "aea91a0475489ac6362d55705220ebb0",
"score": "0.7031924",
"text": "def balance_owed\n discounted_price - amount_paid\n end",
"title": ""
}
] | [
{
"docid": "345fc48637136cd29c8045de3a3136c3",
"score": "0.760779",
"text": "def payment_owed\n if workshop_price&.recurring_payments?\n to_pay = recurring_what_should_be_paid_by_now - amount_paid\n to_pay.negative? ? Money.new(0, workshop_price.price.currency) : to_pay\n ... |
842fa5c954abdd26abf582da7f190759 | Names (and URL) : | [
{
"docid": "d6391dce7e5422c0e9c749b239b8c9f6",
"score": "0.0",
"text": "def get_all_the_urls_of_townhalls(name_departement)\n url_array = []\n\t\tdoc = Nokogiri::HTML(open(\"http://annuaire-des-mairies.com/\" + \"#{name_departement}\" + \".html\"))\n\t\tdoc.xpath('//a[@class = \"lientxt\"]').each do... | [
{
"docid": "3cb517a5de1e3e02c24fcbf64c540f38",
"score": "0.71665543",
"text": "def spell_url(name)\n puts name.name\n puts name.url\n end",
"title": ""
},
{
"docid": "fc7d87ec60e15b0c3d50e0c99ffe3ac7",
"score": "0.70614415",
"text": "def url\n self.name\n end",
... |
92bc5e0c582783fc91ea12b28bcfea06 | DELETE /scripts/1 DELETE /scripts/1.json | [
{
"docid": "d38c739555280b2c9a5947d1c044c619",
"score": "0.67285746",
"text": "def destroy\n @project=Project.find(params[:project_id])\n @script = @project.scripts.find(params[:id])\n @script.destroy\n\n respond_to do |format|\n format.html { redirect_to project_scripts_path(@project) ... | [
{
"docid": "9944ff7efae561ee2cd1ac6b647d3c18",
"score": "0.717701",
"text": "def destroy\n @script = Script.find(params[:id])\n @script.destroy\n# delete script file\n script_name = \"script_#{@script.id}.sh\"\n File.delete(\"script/#{script_name}\")\n\n# Delete error/success logs\nerror_l... |
36aea61718508361c5b6543b409b81f0 | The button with the name "welt" is called | [
{
"docid": "fd4015d7ea2f17ac3c439d461a4d0eb1",
"score": "0.69783777",
"text": "def rpc_button_welt( session, *args )\n reply( :update, :welcome => \"Hallo Welt\" )\n end",
"title": ""
}
] | [
{
"docid": "2fd4c8454a3c3d89af6945626318cf5e",
"score": "0.69171494",
"text": "def buttons; end",
"title": ""
},
{
"docid": "09f742de9a89904b3fd89c0257173dc7",
"score": "0.66295767",
"text": "def button_up(id); end",
"title": ""
},
{
"docid": "38c1b7a79286763457c781acd936... |
c657de4b70d266e9a3a784b999ea9e60 | Never trust parameters from the scary internet, only allow the white list through. | [
{
"docid": "34a763c41cd9a65c6f5826be447f2209",
"score": "0.0",
"text": "def food_feed_params\n params.require(:food_feed).permit(:title, :description, :url, :image)\n end",
"title": ""
}
] | [
{
"docid": "3663f9efd3f3bbf73f4830949ab0522b",
"score": "0.7497917",
"text": "def whitelisted_params\n super\n end",
"title": ""
},
{
"docid": "13a61145b00345517e33319a34f7d385",
"score": "0.69572496",
"text": "def strong_params\n params.require(:request).permit(param_whit... |
fecc3a1b41b32123b3f98e7362348de4 | Returns the value of attribute method_name. source://rbs//lib/rbs/errors.rb272 | [
{
"docid": "a265fe5e200ae985db3fc3d804b9fd77",
"score": "0.5988412",
"text": "def method_name; end",
"title": ""
}
] | [
{
"docid": "4dd49254e291569509e7f6939b0959cd",
"score": "0.6839185",
"text": "def method\n @attributes[:method]\n end",
"title": ""
},
{
"docid": "1003acbc53207b1f970192a17defa116",
"score": "0.67312384",
"text": "def attribute_from_method( methodname )\n\n\t\tcase methodname... |
18a2ced66c8d3be06dcce28e15a36981 | Initialize new HTML node | [
{
"docid": "23231eeb9f85af1a9eaca20b34db27c8",
"score": "0.0",
"text": "def initialize(node)\n @node = node\n end",
"title": ""
}
] | [
{
"docid": "57cc49bc35ffc26b9268f3d3a8057c14",
"score": "0.7086972",
"text": "def initialize(html)\n doc = (html.is_a?(Nokogiri::HTML::Document) ? html : Nokogiri::HTML(html.to_s))\n @root_node = HashTML::Node.new(doc)\n end",
"title": ""
},
{
"docid": "73ef7800762be001110c9be9... |
a3a672ff1ee2a767e3add860a5e9b446 | Coerces the given value into an SSL verification mode | [
{
"docid": "4267cf54065d88aeae937616591c0c9f",
"score": "0.7583837",
"text": "def coerce(value)\n value = value.to_s\n return Object.const_get(\"OpenSSL::SSL::#{value}\") if VALID_MODES.include?(value)\n\n ContainerConfig.logger.warn do\n \"Could not convert #{value.inspect... | [
{
"docid": "254eb6b7c51aff3b96e3c180f6545a9f",
"score": "0.74134207",
"text": "def openssl_opt_from_string(val)\n case val\n when 'VERIFY_NONE'\n OpenSSL::SSL::VERIFY_NONE\n when 'VERIFY_PEER'\n OpenSSL::SSL::VERIFY_PEER\n when 'VERIFY_FAIL_IF_NO_PEER_CERT'\n OpenSSL::SSL::VER... |
f8174cce376f0babddfafbbe3b531ce4 | PUT /recipients/1 PUT /recipients/1.xml | [
{
"docid": "a26ee8a50d8a8fee9caf4d418105b9c3",
"score": "0.5726665",
"text": "def update\n @recipient = Recipient.find(params[:id])\n if params[:recipient][:bio]\n bio_params = params[:recipient][:bio]\n bio_params[:contribution_methods] = format_to_html(bio_params[:contribution_methods]... | [
{
"docid": "9141d255ea1a0ca0cfcb30b953293c09",
"score": "0.67742753",
"text": "def update\n @recipient = Recipient.find(params[:id])\n\n respond_to do |format|\n if @recipient.update_attributes(params[:recipient])\n flash[:notice] = 'Recipient was successfully updated.'\n format... |
76717720f802a0d6b551c60bc728fa1b | Returns the value of attribute reporters. source://minitestreporters//lib/minitest/reporters.rb22 | [
{
"docid": "70b5c4dac70f39a395415d8328809ccc",
"score": "0.5772788",
"text": "def reporters; end",
"title": ""
}
] | [
{
"docid": "0d7d1ac163662db74d2a3f335a2c3e80",
"score": "0.7538231",
"text": "def reporters\n raw_data['reporters']\n end",
"title": ""
},
{
"docid": "73886ba7e7e0a3fbd421df4254479e92",
"score": "0.5668669",
"text": "def watchers\n attributes.fetch(:watchers)\n ... |
d1ce989bbb58fb331a45e378a20df5fd | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^END OF FIND CARTONS CODE ^^^^^^^^^^^^^^^^^^^^^^^^^^ <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< FIND PALLETS CODE <<<<<<<<<<<<<<<<<<<<<<<<<<<<<< | [
{
"docid": "693a3771856f2405c6069180da73e0d5",
"score": "0.0",
"text": "def find_pallets\n render :inline => %{\n\t\t<% @content_header_caption = \"'find pallets'\"%> \n\n\t\t<%= build_pallet_search_form()%>\n\n\t\t}, :layout => 'content'\n \n end",
"title": ""
}
] | [
{
"docid": "b7c485ee87a743f8138277118869db2e",
"score": "0.57991534",
"text": "def roads_and_libraries(n, c_lib, c_road, cities)\n \nend",
"title": ""
},
{
"docid": "b9c1e50e924c833a116f73b9a23c17c9",
"score": "0.5704728",
"text": "def jumpingOnClouds(c)\n\n\nend",
"title": ""
... |
6b2374a340e98187a4d2f7f488997b91 | To distinguish with `Barbeque::Message::InvalidMessage` | [
{
"docid": "3c91f4dcccf1fe91785da7cfdc4f9bad",
"score": "0.0",
"text": "def valid?\n true\n end",
"title": ""
}
] | [
{
"docid": "813776933a1747fdc5dba2a8084d460f",
"score": "0.768199",
"text": "def not_valid_message; nil; end",
"title": ""
},
{
"docid": "813776933a1747fdc5dba2a8084d460f",
"score": "0.768199",
"text": "def not_valid_message; nil; end",
"title": ""
},
{
"docid": "f2d3cec3... |
466656eb3cecb27d0ea4f1ece08d4ebb | PATCH/PUT /customers/1 PATCH/PUT /customers/1.json | [
{
"docid": "ba0eaaf0fc6edfdd474ceabd51da3400",
"score": "0.0",
"text": "def update\n if params[:customer].blank?\n params[:customer] =params\n end\n @customer.user_id = params[:customer][:user_id].present? ? params[:customer][:user_id] : @customer.user_id\n logger.debug(\"THIS IS THE CU... | [
{
"docid": "2c60a533470d8275139b2f9c3fe9d1a4",
"score": "0.6988014",
"text": "def update_customer(id, data)\n put(\"customers/#{id}\", { body: data })\n end",
"title": ""
},
{
"docid": "2c60a533470d8275139b2f9c3fe9d1a4",
"score": "0.6988014",
"text": "def update_customer(id, data... |
af630984682f1a0b5a68e6092af0d102 | Update properties of this object | [
{
"docid": "cdadff349c0013adbcae2791ef9fa4c5",
"score": "0.0",
"text": "def update!(**args)\n @integer_faceting_options = args[:integer_faceting_options] if args.key?(:integer_faceting_options)\n @maximum_value = args[:maximum_value] if args.key?(:maximum_value)\n @minimum_val... | [
{
"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... |
6cd3003dbde07fe2834a789e384d33d5 | POST /listas POST /listas.json | [
{
"docid": "f01701ab552e505823c7b01c306764c1",
"score": "0.66391104",
"text": "def create\n @lista = Lista.new(lista_params)\n\n respond_to do |format|\n if @lista.save\n format.html { redirect_to @lista, notice: 'Lista was successfully created.' }\n format.json { render action:... | [
{
"docid": "bc0644ebfcc94a9c311b617427eda554",
"score": "0.6722607",
"text": "def create\n @lista = Lista.new(params[:lista])\n\n respond_to do |format|\n if @lista.save\n format.html { redirect_to @lista, notice: 'Lista was successfully created.' }\n format.json { render json: ... |
016bb4999e0877eade41f006f90e3bb2 | === update_groups_order Updates groups' order by Ajax. | [
{
"docid": "b27dafeceac7758b713bbd850533e8d2",
"score": "0.8589463",
"text": "def update_groups_order\n Log.add_info(request, params.inspect)\n\n raise(RequestPostOnlyException) unless request.post?\n\n order_arr = params[:groups_order]\n\n groups = Group.get_childs(params[:id], false, false... | [
{
"docid": "b0a978290b330b36afe0c35cb6142646",
"score": "0.83638734",
"text": "def update_groups_order\n Log.add_info(request, params.inspect)\n\n raise(RequestPostOnlyException) unless request.post?\n\n order_ary = params[:groups_order]\n\n Research.set_statistics_groups(order_ary)\n\n r... |
3176c899499f62d01b46234210c236f0 | GET /smarts/new GET /smarts/new.xml | [
{
"docid": "1e4df18d734273c31a6abef42247f040",
"score": "0.73134106",
"text": "def new\n @smart = current_user.smarts.new\n #Smart.new\n\n\n respond_to do |format|\n format.html # new.html.erb\n format.xml { render :xml => @smart }\n end\n end",
"title": ""
}
] | [
{
"docid": "a83173640f77272bfb6f58a0a65c7e67",
"score": "0.6971127",
"text": "def new\n respond_to do |format|\n format.html # new.html.erb\n format.xml { render :xml => new_vurl }\n end\n end",
"title": ""
},
{
"docid": "568152442b2baecfc154a9b07c145a71",
"score": "0.6... |
65733fae7d6902e676c7235ba583b099 | print out student information | [
{
"docid": "2784319c36ebc8a563bc2e9bedc4ffc8",
"score": "0.69933057",
"text": "def show_students\n print_header\n print_students\n print_footer\nend",
"title": ""
}
] | [
{
"docid": "e28aa2b5a86ef97a8f2221e90abf0e1c",
"score": "0.7984921",
"text": "def print_students\n\tif @students.empty? \n\t\tputs \"There are no students in the database!\"\n\telse\n\t\tputs \"This is a list of all students in the Makers Academy database\"\n\t\t@students.each.with_index(1) do |student,... |
2a5aee9ceb71e2212723a0ce72f01ed6 | this test accepts one array with a longest valid word of 5 | [
{
"docid": "87c621484edfc4a6387c1eb7085b4f3a",
"score": "0.69497454",
"text": "def test_longest_valid_2\n file = ['kitty','hig', 'hyi', 'dig', 'dok']\n find = Finder.new\n result = find.longest_valid(file)\n arr = [\"KITTY\"] \n assert_equal arr, find.valid_arr\n assert_equal 5, resu... | [
{
"docid": "211375a658a7cffbdf1170a27d0be95d",
"score": "0.79297733",
"text": "def test_longest_words_1\n find = Finder.new\n find.valid_arr = [\"SUNSHINE\", \"DOG\", \"CAT\", \"JOY\", \"GREAT\", \"WEEKENDS\"] \n result = find.longest_words(8)\n expected = [\"SUNSHINE\", \"WEEKENDS\"]\n ... |
c08203e2e8b77397b82b4e58ae8c0558 | calculates and returns the url to which the user should be redirected, to get authenticated at the external provider's site. | [
{
"docid": "ca362e3b43d7fbaa7187bef016a6d54d",
"score": "0.0",
"text": "def login_url(params, session)\n req_token = get_request_token\n session[:request_token] = req_token.token\n session[:request_token_secret] = req_token.secret\n authorize_url({ request_token: req... | [
{
"docid": "e44551b2bf6f3ace712e10b5ce0964ee",
"score": "0.712523",
"text": "def redirect_url\n if @next_url.present?\n @next_url = CGI.unescape(@next_url)\n @next_url = nil if !ValidateLink.is_valid_redirect_path?(@next_url)\n end\n\n if !@has_valid_mfa_session\n ... |
ac3838a580b020a6950f920051cf673c | GET /saturdays/1 GET /saturdays/1.json | [
{
"docid": "a81945373733e4951b987de6ea99f9a1",
"score": "0.0",
"text": "def show\n end",
"title": ""
}
] | [
{
"docid": "4c9ad11e7df0edaff0a2d8d9140425c5",
"score": "0.690859",
"text": "def index\n @saturdays = Saturday.all\n end",
"title": ""
},
{
"docid": "89df12c97e95a0b737b8af3ecc41654e",
"score": "0.68836516",
"text": "def show\n @day = Day.find(params[:id])\n\n render json: ... |
869114be05d2521ecfad9b59efadde5d | Problem Write a method that takes a positive integer or zero, and converts it to a string. No using standard Ruby conversion methods. Examples integer_to_string(4321) == '4321' integer_to_string(0) == '0' integer_to_string(5000) == '5000' Data Structures just arrays Algorithm 1) determine the number of digits in the in... | [
{
"docid": "a24c3fee2526be7a6be9010864a68fc8",
"score": "0.7889189",
"text": "def integer_to_string(int)\n num_digits = 1\n loop do\n quotient = int / 10**num_digits\n break if quotient == 0\n num_digits += 1\n end\n \n digits_arr = []\n for i in (1..num_digits)\n digits_arr.unshift(in... | [
{
"docid": "714d22839cc5f72ba8a344d67e4d83ec",
"score": "0.8095368",
"text": "def integer_to_string(int)\n\n arr_int = []\n\n while int >= 0\n temp_num = int % 10\n arr_int.unshift(temp_num)\n int /= 10\n break if int <= 0\n end\n\n arr_int.join\nend",
"title": ""
},
{
"docid... |
1cd3152b34241f1e5c66a5460d5ecb8c | Returns true if the current user likes the likeable | [
{
"docid": "a78ab8f1b769a9dc34aebd1e58ad5cc7",
"score": "0.7735869",
"text": "def like?(likeable)\n likes.where(likeable: likeable).present?\n end",
"title": ""
}
] | [
{
"docid": "babefaeb579c318f58b4b76efa6c776a",
"score": "0.8222459",
"text": "def liked_by?(liking_user)\n if check_user(liking_user)\n new_like = Like.new(:user_id => liking_user.id, :post_id => self.id)\n !new_like.valid?\n else\n false\n end\n end",
"title": ""
},
{
... |
2229a4b44db7841cd07b0a3e28ec6960 | Defines "print_a_line" function with value of "F" and "line_count", counts the lines in the file | [
{
"docid": "edd89fc5db2fd5dbff2002ff8aafe207",
"score": "0.0",
"text": "def print_a_line(line_count, f)\n puts \"#{line_count}, #{f.gets.chomp}\"\nend",
"title": ""
}
] | [
{
"docid": "41589a1d748f2c23e22a2ba896730823",
"score": "0.81319827",
"text": "def print_a_line(line_count, f)\n\t puts \"#{line_count} #{f.readline()}\"\nend",
"title": ""
},
{
"docid": "61516f77f5282d2aa42ba83deabfdbdc",
"score": "0.8098457",
"text": "def print_a_line(line_count, f... |
31e6505074f75035367048616c402977 | PUT /collaborators/1 PUT /collaborators/1.xml | [
{
"docid": "b89e87ecca0fbcc5c02ff111efe84668",
"score": "0.5844317",
"text": "def update\n @collaborator = Collaborator.find(params[:id])\n unless params[\"new_association\"].nil?\n resource_id_array = params[\"new_association\"][:resource_ids]\n end\n unless resource_id_array.nil?\n ... | [
{
"docid": "5d1d4005b78566e3b1b146c1892c2d51",
"score": "0.6695515",
"text": "def update\n @collaborator = Collaborator.find(params[:id])\n\n respond_to do |format|\n if @collaborator.update_attributes(params[:collaborator])\n format.html { redirect_to(@collaborator, :notice => 'Collab... |
ccf94d2bf8e97cc20b69089c5e2df530 | =begin redundant, same as delta momentum pinball: Street Smarts, page 51 def lbr(no_recs=data_points,field="close") dates(no_recs).each_cons(2).map do |curr,prev| (data_set[curr][field].to_f data_set[prev][field].to_f).round(2) end end =end | [
{
"docid": "9ccf097401a9f56358ef364077ae2e1f",
"score": "0.0",
"text": "def consecutive_down_days(field=\"close\")\n cnt = 0\n dates(max_data_points).each_cons(2).each do |curr,prev|\n #puts \"consecutive_down_days: #{data_set[curr][field]} < #{data_set[prev][field]}\"\n break unless dat... | [
{
"docid": "15bce9c7de31de4160deb5fb514113ad",
"score": "0.6189014",
"text": "def compute_bollinger(pricelist)\n bollinger_bands=[]\n\n i=0\n size=pricelist.size\n pricelist.each do |x|\n if i + @num_periods > size\n n=size-i\n else\n n=@num_periods\n end\n \n ... |
0b36f3855ba0af86031e289a8c8e4959 | Format output for display to user === Parameter result(Object):: JSONcompatible data structure (array, hash, etc) format(String):: how to print output json, yaml, text === Return a String containing the specified output format | [
{
"docid": "44f72511f8fcad0cf2e361f874f360b4",
"score": "0.86509854",
"text": "def format_output(result, format)\n case format\n when /^jso?n?$/, nil\n JSON.pretty_generate(result)\n when /^ya?ml$/\n YAML.dump(result)\n when /^te?xt$/, /^sh(ell)?/, 'list'\n ... | [
{
"docid": "6274c9ade4caa807f703c0e00f4246ce",
"score": "0.7557771",
"text": "def report_as format\n case format\n when :json\n JSON.pretty_generate @result\n when :yml\n YAML.dump @result\n else\n raise ArgumentError, \"Unknown format: #{format}\"\n end\n ... |
b61fd2ac11a3217461b1481fdd8e6e88 | Make sure error result from query is wrapped and returned. | [
{
"docid": "f45548dcb7a3c38feff9885726278be6",
"score": "0.0",
"text": "def test_WAPI_do_request_unauthorized\n\n skip(\"problem on build server with user-agent mismatch\")\n stub_request(:get, \"https://start/hey\").\n with(:headers => {'Accept' => 'application/json', 'Accept-Encoding' => ... | [
{
"docid": "cf48f7f3e64fb6ac4b6fbb3977d24538",
"score": "0.6680122",
"text": "def results(query)\n fail\n end",
"title": ""
},
{
"docid": "bc6f0be035839b73c884692bb156f159",
"score": "0.66213757",
"text": "def results(query)\r\n fail\r\n end",
"title": ""
... |
ad2cc1b7d86ffcd9b70cae40e0ac6791 | DELETE /zona_producciones/1 DELETE /zona_producciones/1.json | [
{
"docid": "fa8686c8902f59f2af7dfdeaa582a45d",
"score": "0.7120125",
"text": "def destroy\n respond_to do |format|\n if @zona_produccion.destroy\n format.html { redirect_to zona_producciones_url, notice: 'Zona producción eliminada exitosamente.' }\n format.json { head :no_content }... | [
{
"docid": "343ecfc841e94777fc98fb2f72522828",
"score": "0.7306896",
"text": "def destroy\n @zona = Zona.find(params[:id])\n @zona.destroy\n\n respond_to do |format|\n format.html { redirect_to zone_url }\n format.json { head :no_content }\n end\n end",
"title": ""
},
{
... |
83e056626507468385501d7a38c5c28f | Another DSpace publication helper method. NoCC license theses with a dc.rights statement of 'In Copyright Educational Use Permitted' as a result of Licensemap_license_type should also have the corresponding dc.rights.uri. We do this here rather than modifying the database to minimize the risk of publishing the wrong ri... | [
{
"docid": "dd1920df08e0ddee53b9c23edd3e5f88",
"score": "0.67052674",
"text": "def evaluate_license_url\n if url\n url.to_s\n elsif license_type == 'No Creative Commons License'\n 'https://rightsstatements.org/page/InC-EDU/1.0/'\n end\n end",
"title": ""
}
] | [
{
"docid": "7f3ddd1b04cf5da4d39e7fed25e9175f",
"score": "0.71045774",
"text": "def map_license_type\n if license_type == 'No Creative Commons License'\n 'In Copyright - Educational Use Permitted'\n else\n license_type.to_s\n end\n end",
"title": ""
},
{
"docid": "01ae4720... |
837599f0ac6978610e91f7bbefd3604c | Make a sample log of entries day = Date.new(2017,02,28) 60.times do generate a random systolic number between 100180 sys = (100..180).to_a.sample generate a random diastolic number 70110 dia = (70..110).to_a.sample a recurring day 201706(0130) day = day.next_day new_entry((day.to_s), sys, dia, 3) end Display option of ... | [
{
"docid": "a3f85b18b135a635d712f3bd19ac7002",
"score": "0.0",
"text": "def last_n_entries(user_id, days_request)\n id = user_id\n number = days_request\n results = $BP.execute(\n \"SELECT * FROM (SELECT * FROM bloodpressure WHERE user_id = (?)ORDER BY bp_id DESC LIMIT (?))\n ORDER BY bp_id ASC... | [
{
"docid": "102a5f807680254d43b1ae05af6123e9",
"score": "0.63785106",
"text": "def generate_daytime_distribution \n \n end",
"title": ""
},
{
"docid": "0efe99e54477b9ed7dad742fbeb3dbb0",
"score": "0.6125757",
"text": "def generate_entry\n all_the_feels = $feelings.values.flatt... |
be7c9db12f058a2b0b989c3eb059fe4b | encrypts and returns the package specified by the file name | [
{
"docid": "d9110c87a8a2fa4616cc3e95f70127d5",
"score": "0.8507184",
"text": "def encrypted_package\n @encrypted_package ||= encrypt_package(file_name)\n end",
"title": ""
}
] | [
{
"docid": "23606080d92230a346cce0c3ba75ca80",
"score": "0.7778446",
"text": "def encrypt_package(file_name) \n package = File.open(file_name, 'r')\n crypt_pack = encrypt(package.read) \n [crypt_pack.size].pack('q') + crypt_pack\n end",
"title": ""
},
{
"docid": "... |
4ea813a14c128e50fa89580db9a6d50b | DELETE /all_reports/1 DELETE /all_reports/1.json | [
{
"docid": "42d5b487fea588365dce2f48062d409b",
"score": "0.75827247",
"text": "def destroy\n @all_report.destroy\n respond_to do |format|\n format.html { redirect_to all_reports_url, notice: 'All report was successfully destroyed.' }\n format.json { head :no_content }\n end\n end",
... | [
{
"docid": "e3b6d71d47030315e5f4eb5726c80dde",
"score": "0.76894754",
"text": "def destroy\n @report.destroy!\n render json: {status: :ok}\n end",
"title": ""
},
{
"docid": "988d3b3b4cb6675f47827d60a8000bd3",
"score": "0.7472062",
"text": "def destroy\n @report.destroy\n ... |
eae4c1e52109b581cc1b3af831d80589 | BezierBuilder compute overloading. See code for algorithm | [
{
"docid": "840d1b811e326b9a3584cafb661b86ea",
"score": "0.52123636",
"text": "def compute\n p1, p2 = self.support\n onethird = (1.0 / 3.0)\n p1top2 = p2 - p1\n pp1 = p1 + p1top2.ortho.*(@height)\n pp2 = pp1 + ( p1top2 * @curvature )\n\n p1topp2 = pp2 - p1\n pc1 = p1 +... | [
{
"docid": "c72617152b1402d7c67e553262d83435",
"score": "0.57152396",
"text": "def bezier x1, y1, cx1, cy1, cx2, cy2, x2, y2, c, l = 7\n h = self.h\n screen.draw_bezier x1, h-y1, cx1, h-cy1, cx2, h-cy2, x2, h-y2, l, color[c], :antialiased\n end",
"title": ""
},
{
"docid": "84c61fd7b5e... |
4df37b4951da15d056412fe730fd522b | PUT /topics/1 PUT /topics/1.xml | [
{
"docid": "4d60d38da6be5564769a0e35f02f1942",
"score": "0.6184064",
"text": "def update\n @topic = Topic.find(params[:id])\n params[:topic][:forum_id] = @forum.id\n respond_to do |format|\n if @topic.update_attributes(params[:topic])\n format.html { redirect_to(forum_topic_path(@fo... | [
{
"docid": "2f43d79cb8ce757f5e82d8476fd01962",
"score": "0.7155586",
"text": "def test_should_update_topic_via_API_XML\r\n get \"/logout\"\r\n put \"/forum_topics/1.xml\", :forum_topic => {:title=>'Updated API Test Topic',\r\n :description=>'Updated T... |
2bfea8cb4d4ad4f13e87d88a4561cba9 | Function that render the set up quiz page | [
{
"docid": "d015bb2d7ae677472f11edc51f415575",
"score": "0.6817288",
"text": "def start_quiz\r\n @title_page = 'Quiz'\r\n erb :start, layout: :template\r\nend",
"title": ""
}
] | [
{
"docid": "d8d75b378aa921e6d3812010801a4043",
"score": "0.7089186",
"text": "def quiz\n end",
"title": ""
},
{
"docid": "ed9508380fa02fe1d50b61dcc1233fde",
"score": "0.665241",
"text": "def aboutQuizme\n end",
"title": ""
},
{
"docid": "baba246228573b85d62d4cfe059b5b... |
fb5a6eb5010b315e101895e0de8596a0 | GET /tasks/1 GET /tasks/1.json | [
{
"docid": "a81945373733e4951b987de6ea99f9a1",
"score": "0.0",
"text": "def show\n end",
"title": ""
}
] | [
{
"docid": "6369065fe2a43f0985bd65ea3e736786",
"score": "0.76285976",
"text": "def show\n @task = Task.find(params[:id])\n render json: @task\n end",
"title": ""
},
{
"docid": "6369065fe2a43f0985bd65ea3e736786",
"score": "0.76285976",
"text": "def show\n @task = Task.find(p... |
c21117447fc6a64d14bd132ed3913832 | Set the title string of this document. If a title element is already present, its content is replaced with the given text. Otherwise, this method tries to create one at an appropriate place supplying head and/or html elements as necessary, which is inside a head element if any, right after a meta encoding/charset tag i... | [
{
"docid": "19fed838abadaeeb8241386f58422371",
"score": "0.5979142",
"text": "def title=(text); end",
"title": ""
}
] | [
{
"docid": "474f9bede92d67e41998775f8e34d236",
"score": "0.7254671",
"text": "def setTitle(title)\n if title\n DOM.setAttribute(@element, \"title\", title)\n else\n DOM.removeAttribute(@element, \"title\")\n end\n end",
"title": ""
},
{
"docid": "e3f1386cbcc8b0e042bc1a908... |
ced984dc862eae68315ffcf386e7cac9 | Clear the a method cache from a given model | [
{
"docid": "64b378c0c116a191d4a44c596521e30c",
"score": "0.6161597",
"text": "def benny_method_cache_delete(model_id, data_index)\n full_index = self.benny_method_cache_full_index(model_id, data_index)\n\n keys = BennyCache::Config.store.fetch(full_index)\n\n unless (keys.nil? || k... | [
{
"docid": "432bf2cf424ed8bafa0a334412b9dc21",
"score": "0.8079539",
"text": "def clear!(model)\n @cache.delete(model)\n end",
"title": ""
},
{
"docid": "8183f7643798dfd505ba354925a47d58",
"score": "0.73839235",
"text": "def cache_delete\n model.send(:cache_delete, cache... |
4b980465f51eb910f2da884d1d23ad56 | Provides operations to call the requestRemoteAssistance method. | [
{
"docid": "1e2452d4f23245727d08794ee2770b6b",
"score": "0.7096446",
"text": "def request_remote_assistance()\n return MicrosoftGraph::Users::Item::ManagedDevices::Item::RequestRemoteAssistance::RequestRemoteAssistanceRequestBuilder.new(@path_parameters, @request_adapter)\n ... | [
{
"docid": "45786b61efb1f02ea7a19ac3cccd7d0e",
"score": "0.5413471",
"text": "def perform_get_request\n # Validate preventing request error\n\n # setup params, like API Key if needed\n\n # Perform the request\n get_request\n end",
"title": ""
},
{
"docid": "4... |