query_id stringlengths 32 32 | query stringlengths 7 6.75k | positive_passages listlengths 1 1 | negative_passages listlengths 88 101 |
|---|---|---|---|
a4f7ae3283936e83e41920ee8a49db1b | Checks equality by comparing each attribute. | [
{
"docid": "b08a52758f448df8f6c8f4efe95ba06b",
"score": "0.0",
"text": "def ==(o)\n return true if self.equal?(o)\n self.class == o.class &&\n apple_private_key == o.apple_private_key &&\n apple_private_key_id == o.apple_private_key_id &&\n apple_team_id == o.apple_t... | [
{
"docid": "153b45ee9e17f104e42417688976c51c",
"score": "0.768239",
"text": "def compare_attributes(attrs)\n\t\t\t\tattrs.each do |name, value|\n\t\t\t\t\tnext true if compare_attribute(name, value)\n\t\t\t\t\tbreak false\n\t\t\t\tend\n\t\t\tend",
"title": ""
},
{
"docid": "6c59827132384193c... |
6f0eb9bb067efd6a192dcb9a89a1b6be | Gets all provisionable module | [
{
"docid": "5ce30df5c46a5649e24f081ff110f2fb",
"score": "0.0",
"text": "def list\n super\n end",
"title": ""
}
] | [
{
"docid": "c92b7478e1a2dad8f69751c3565a9b8f",
"score": "0.7052173",
"text": "def all\n @modules ||= []\n end",
"title": ""
},
{
"docid": "51c3def0e96301c882730a4c8c7a015d",
"score": "0.70144933",
"text": "def list_modules\n pal.list_modules\n end",
"title... |
de8f24a7c25c1987384b6be5cb244ec6 | Get all necessary information (test cases, hints, incorrect outputs) to test code problems | [
{
"docid": "2bfe3393473b6de29e813ae1d7847c94",
"score": "0.6939478",
"text": "def get_all_tests_info\n info = {}\n\n # A map of hint.id to the hint object\n info[:hints] = {}\n self.hints.each do |hint|\n info[:hints][hint.id] = hint\n end\n\n # A map... | [
{
"docid": "8b50d7b0cdf69e5943d465025a3935d2",
"score": "0.6864728",
"text": "def failure_details(io)\n super\n unless test_case.input.empty?\n format_block(io, \"Input\", test_case.input)\n end\n format_block(io, \"Evaluated commands\", test_case.evaluated_commands)\n co... |
c8d1145569d5fc097876ce7a42f4b569 | Test Download CSV Format button From test case 25 to 31, test manually | [
{
"docid": "fddcc0f816e1606a0d86ab3683d4ac0a",
"score": "0.0",
"text": "def test_dtm_st_025\n printf \"\\n+ Test 025\"\n assert true\n end",
"title": ""
}
] | [
{
"docid": "626883f358f1fea1261ecb68102f25bd",
"score": "0.6847118",
"text": "def download\n test = current_user.product_tests.find(params[:id])\n format = params[:format]\n file = Cypress::CreateDownloadZip.create_test_zip(test.id,format)\n\n if format == 'csv'\n send_file file.path, :... |
c3791cac0b20d968b9617dc067a8cdf3 | User and Group share this method, which returns login and name respectively | [
{
"docid": "ca1f1b6e948b9eea3ebf35c1bb3818ad",
"score": "0.0",
"text": "def ident; name; end",
"title": ""
}
] | [
{
"docid": "5c808c955d1b55bf2e239a1987563825",
"score": "0.7789189",
"text": "def user_name\n self.user.login\n end",
"title": ""
},
{
"docid": "ebaff6c33bff6b4184fe5242f3fddeb1",
"score": "0.74758077",
"text": "def login_name() nil end",
"title": ""
},
{
"docid": "d... |
f9e0a34140be62194fa4ffb0fe275fee | DELETE /asignatura_nivel_bases/1 or /asignatura_nivel_bases/1.json | [
{
"docid": "829208aad61a3d1ada9d13bde8e86880",
"score": "0.6954716",
"text": "def destroy\n set_redireccion\n @objeto.destroy\n respond_to do |format|\n format.html { redirect_to @redireccion, notice: \"Asignatura nivel base was successfully destroyed.\" }\n format.json { head :no_con... | [
{
"docid": "a536585cf1aee7a042057d4ece4b6031",
"score": "0.7016674",
"text": "def destroy\n set_redireccion\n @objeto.destroy\n respond_to do |format|\n format.html { redirect_to @redireccion, notice: \"Nivel base was successfully destroyed.\" }\n format.json { head :no_content }\n ... |
0fab42509116a092ef658b8c6be9786f | Performs a single antialiasing pass on the image | [
{
"docid": "54622e01e22d1a8645563396979ae3b1",
"score": "0.7780499",
"text": "def antialias\n new_pixels = []\n @height.times {|i| new_pixels << []; @width.times {new_pixels[i] << 0}}\n @height.times do |i|\n @width.times do |j|\n # Sample each surrounding pixel\n surrounding... | [
{
"docid": "4dc61309d3985442d2041c41fc5775df",
"score": "0.7529057",
"text": "def antialias\n @bitmap.antialias\n @rows = bitmap_to_truecolor\n end",
"title": ""
},
{
"docid": "ff6fb919191d1350cb7a909a921d01cf",
"score": "0.6705401",
"text": "def draw_antialias_pixel(x,y,r,g,b... |
c12083f92af8d2a335ea579b1ca2f205 | Called if it is taking longer than a second to pull down the results. This offers a chance to offer feedback to the user that it's not frozen. | [
{
"docid": "e83eb74ff6cb305cf94adc2978fdb67a",
"score": "0.0",
"text": "def inspector_is_still_investigating(_query, _inspector)\n print \".\"\n end",
"title": ""
}
] | [
{
"docid": "6582a0371b491a3c671eb5ab49a338b0",
"score": "0.6812242",
"text": "def wait_results_load\n sleep 2\n end",
"title": ""
},
{
"docid": "518ac467d21f5e1f2b24706bccda4b86",
"score": "0.6100586",
"text": "def wait_if_necessary\n if seconds = ::Nomics.configuration.wait... |
a1afb2493463a01b06fee513da2be4f3 | Adds either a number or another sparse vector to the current sparse vector. If a number is provided, only nonzero items will be included in the addition. | [
{
"docid": "8fd2e07936b71dc626632bb17cfbf95d",
"score": "0.78525114",
"text": "def +(other)\n case\n when other.is_a?(Numeric)\n map { |_, v| v + other }\n when other.is_a?(SparseVector)\n sum = copy\n other.each { |index, value| sum[index] += value }\n sum\n ... | [
{
"docid": "0c5302347b819883feb26c0f727e3408",
"score": "0.6579184",
"text": "def scalar_add!(i)\n to_sparse!(to_matrix.scalar_add(i))\n end",
"title": ""
},
{
"docid": "56c4fddd649af679c0dcda18a9a83ad4",
"score": "0.6389325",
"text": "def +(vector)\n Vector.new(*to_a.zip(vect... |
dbda63affc3988a3fdfb0220e4a2d3be | Returns a new Array by removing items from self for which block is true. An Array is also returned when invoked on subclasses. See reject! | [
{
"docid": "d2ced4ba712b801c3efc0d15fda1e553",
"score": "0.7462787",
"text": "def reject(&block)\n return to_enum :reject unless block_given?\n Array.new(self).reject!(&block) || self\n end",
"title": ""
}
] | [
{
"docid": "6c67a90c857302cdb7e161fc8fa9cbf7",
"score": "0.814901",
"text": "def reject(&block)\n Array.new(self).reject!(&block) || self\n end",
"title": ""
},
{
"docid": "d14335a2ee4392b0dc5c3739370f2238",
"score": "0.74420285",
"text": "def reject!(&block)\n unless block_gi... |
f74c29bdfc4a183e1ec1b91334cd5be2 | Use callbacks to share common setup or constraints between actions. | [
{
"docid": "ed361cc69904c9520d97467c984b93f7",
"score": "0.0",
"text": "def set_user\n @user = User.find_by_email(params[:email])\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... |
d63d1bd856bb60e7e6926e0d589d9c58 | Sets the maximum number of worker threads. | [
{
"docid": "38598bb6df1719fe6e99461e12b7e679",
"score": "0.81900716",
"text": "def max_threads=(value)\n raise ArgumentError, \"the maximum number of threads must be positive\" if value and value <= 0\n @max_threads = value || 1.0/0\n end",
"title": ""
}
] | [
{
"docid": "1aa60c1fb457172888fdc074b421c153",
"score": "0.84309286",
"text": "def max_threads=(number)\n @max_threads = number.to_i > 0 ? number.to_i : 1\n hydra.max_concurrency = @max_threads\n end",
"title": ""
},
{
"docid": "1aa60c1fb457172888fdc074b421c153",
"score": "0... |
b44f49e7805266f3a9adab99fa3875e5 | True if this task can be started | [
{
"docid": "7ef5f909d45dca5d5c56f0544e2c88c5",
"score": "0.0",
"text": "def pending?; !failed_to_start? && !starting? && !started? &&\n (!execution_engine || !execution_engine.has_error_from?(self))\n end",
"title": ""
}
] | [
{
"docid": "8bc87a84acaf580e3a878881c37e8713",
"score": "0.79054147",
"text": "def can_start?\n status.in? [Status::NOT_STARTED, Status::IN_PROGRESS]\n end",
"title": ""
},
{
"docid": "05d88f91c518a6a296522c322fb77ea3",
"score": "0.74720806",
"text": "def can_start?\n true... |
c657de4b70d266e9a3a784b999ea9e60 | Never trust parameters from the scary internet, only allow the white list through. | [
{
"docid": "e676c7f5ba2250ba9e95285f21882e8e",
"score": "0.0",
"text": "def animal_type_params\n params.require(:animal_type).permit(:name)\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... |
39705727beb7fabf01cb51f652562302 | Parse through the request options and return a hash compatible with rubynagios | [
{
"docid": "35dd2e39cbbab0dd0ded01444a007193",
"score": "0.6013565",
"text": "def parse_request\n data = request.data\n acknowledged = data.fetch(:acknowledged, nil)\n action = data.fetch(:action, nil)\n forhost = data.fetch(:forhost, [])\n listhosts = data.fetch(:list... | [
{
"docid": "63fa4cace064d0782cbcd4a33c98bb50",
"score": "0.6852419",
"text": "def options\n OPTIONS.each_with_object({}) do |name, hash|\n hash[name] = raw.fetch(name, nil)\n end\n end",
"title": ""
},
{
"docid": "63fa4cace064d0782cbcd4a33c98bb50",
"sc... |
722e039cc0686b6883e7ad02074b8767 | PATCH/PUT /empresas/1 PATCH/PUT /empresas/1.json | [
{
"docid": "861eb7544505fde0b6d7e32cadddd54a",
"score": "0.63531077",
"text": "def update\n respond_to do |format|\n if @empresa.update(empresa_params)\n format.html { redirect_to empresas_url, notice: 'Empresa atualizada com sucesso.' }\n format.json { render :show, status: :ok, l... | [
{
"docid": "cee77a842090272c383a9428b455ebb5",
"score": "0.67830276",
"text": "def update\n @emprestimo = Emprestimo.find(params[:id])\n\n respond_to do |format|\n if @emprestimo.update_attributes(params[:emprestimo])\n format.html { redirect_to @emprestimo, notice: 'Emprestimo was suc... |
dde7c81f7b3286d46dc923616211baa4 | Validates the size of an uploaded picture. | [
{
"docid": "b5545c2b02193e4910bb2410fe8474fa",
"score": "0.0",
"text": "def picture_size\n \t\tif picture.size > 1.megabyte\n \t\t\terrors.add(:picture, \"should be less than 1MB\")\n \t\tend\n \tend",
"title": ""
}
] | [
{
"docid": "a31b346949fda86b85ea594d036065e5",
"score": "0.8327756",
"text": "def picture_size#[Jerry] Add image size validations\n\n if picture.size > 5.megabytes\n errors.add(:picture, \"should be less than 5MB\")\n end\n\n end",
"title": ""
},
{
"docid": "7c469276757001f46568e... |
da63168af1a3c1a297e80b6baadee585 | Creates the session and authenticates the user | [
{
"docid": "81d114cf154086cfc1141d15144ed0f4",
"score": "0.0",
"text": "def create\n @user = User.find_by(email: params[:user][:email])\n if @user && @user.authenticate(params[:user][:password])\n session[:user_id] = @user.id.to_s \n redirect_to admin_path\n else\n flash.now[:dan... | [
{
"docid": "2a19bf7f69a0e27c2073cfe508e405a5",
"score": "0.8114375",
"text": "def create_session\n\n # Fetching the user data (email / username is case insensitive.)\n @user = User.where(\"LOWER(email) = LOWER('#{params['email']}')\").first\n\n # If the user exists with the given username... |
d901cecb652775fe046b69c99fc1b98a | before_action :ensure_user_owns_reservation, except: [:new, :create] | [
{
"docid": "657d9364c54a0b51d5e6e3cbe9801337",
"score": "0.0",
"text": "def load_reservation\n @reservation = Reservation.find(params[:id])\n end",
"title": ""
}
] | [
{
"docid": "c2441b302a03ec8af9f31f283b99aa9b",
"score": "0.6976305",
"text": "def set_reservation\n @reservation = Reservation.find(params[:id])\n authorize @reservation\n end",
"title": ""
},
{
"docid": "637ea37fb7fb2a3e2e56adab85df6deb",
"score": "0.6875806",
"text": "def sh... |
c4ce30466a5cdc74013f23ea5121dbb3 | PATCH/PUT /standard_pet_templates/1 PATCH/PUT /standard_pet_templates/1.json | [
{
"docid": "ea06d6af3d09949f30cabb1311f3ea18",
"score": "0.5734863",
"text": "def update\n\n uploaded_file = params[:standard_pet_template][:uploaded_file]\n if uploaded_file && (Dimensions.width(uploaded_file.tempfile) > 48 || Dimensions.width(uploaded_file.tempfile) > 48)\n flash[:alert] = ... | [
{
"docid": "222ba1d2e4d37f12357c9928442fa34a",
"score": "0.6362728",
"text": "def update\n @pet = Pet.find(params[:id])\n if @pet.update(pet_params)\n render json: @pet\n else\n render json: @pet.errors, status: :unprocessable_entity\n end\n end",
"title": ""
},
{
"doc... |
b1fd5790511dc317127375de15296be6 | Hit or Stay Handler | [
{
"docid": "cad2c623cc17f0c55d04c793915f0515",
"score": "0.5284775",
"text": "def hit_stay\n\t@players.each_key {\n\t\t|player|\n\t\t\tplayer_hit_or_stay(player)\t\t\t\n\t}\n\nend",
"title": ""
}
] | [
{
"docid": "3a7e234fcb998fc6c6318a9f18d55857",
"score": "0.60930747",
"text": "def on_leave\n @state = :NORMAL # duplicating since often these are inside containers\n #@focussed = false\n if @handler && @handler.has_key?(:LEAVE)\n fire_handler :LEAVE, self\n end\n end",
"title":... |
f74c29bdfc4a183e1ec1b91334cd5be2 | Use callbacks to share common setup or constraints between actions. | [
{
"docid": "6b575726f6dfccda8c8c7bee2d72e1b6",
"score": "0.0",
"text": "def set_user\n @user = current_user.decorate\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... |
5d23cf2e1f3a1dcd99acfd58d5ff501b | function for listing all tags | [
{
"docid": "d35c708c15b788f36383a8b7ce83089c",
"score": "0.0",
"text": "def index\n end",
"title": ""
}
] | [
{
"docid": "466bc3faa461b646f1a7c5a7d86727be",
"score": "0.8633376",
"text": "def get_all_tags; end",
"title": ""
},
{
"docid": "e99e59c3f0956d291b8df03cf9b5a80c",
"score": "0.8359252",
"text": "def all_tags\n request(:get,\"/tags\")\n end",
"title": ""
},
{
"doci... |
345487f50d0291d4335b8f0238eb0e0a | parser rule procedure (in orasource.ruby.g) 89:1: procedure : 'PROCEDURE' oracle_object_name ; | [
{
"docid": "ed6fcff00dc9cb55c5727c05fabf71d3",
"score": "0.795011",
"text": "def procedure\n # -> uncomment the next line to manually enable rule tracing\n # trace_in( __method__, 7 )\n return_value = ProcedureReturnValue.new\n\n # $rule.start = the first token seen before matching\n... | [
{
"docid": "6a6a017c6ef131a634be42d7f059e685",
"score": "0.69861084",
"text": "def procedure_spec\n # -> uncomment the next line to manually enable rule tracing\n # trace_in( __method__, 35 )\n return_value = ProcedureSpecReturnValue.new\n\n # $rule.start = the first token seen befor... |
91d5978b8a74fa018590434f91e8f7d6 | DELETE /api/friends/1 DELETE /api/friends/1.json | [
{
"docid": "70107d717acdd4da6893b7483f1355cb",
"score": "0.0",
"text": "def destroy\n @user.break_with! params[:id]\n render_accepted\n end",
"title": ""
}
] | [
{
"docid": "ad0a9de64952e83fbcbe59ecc9e2000f",
"score": "0.7819264",
"text": "def destroy\n @friend.destroy\n render json: {}\n end",
"title": ""
},
{
"docid": "5bae8c4c28efa80a34bd90eb1c634b09",
"score": "0.7711527",
"text": "def destroy\n @friend.destroy\n respond_to d... |
c657de4b70d266e9a3a784b999ea9e60 | Never trust parameters from the scary internet, only allow the white list through. | [
{
"docid": "fbf0186e57fdc096c954afb5dbcb9b5d",
"score": "0.0",
"text": "def astek_params\n params[:astek]\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... |
d9c08c86d6d0c8ee051303c5bfa250d6 | GET /hackathons/1 GET /hackathons/1.json | [
{
"docid": "aaaade3c8b826b2a695765d3bc71ca9f",
"score": "0.58550125",
"text": "def show\n @hackathon = current_hackathon#Hackathon.find_by_subdomain!(request.subdomain)\n end",
"title": ""
}
] | [
{
"docid": "8fefc2512f54e22c4c48bd3b2365e17a",
"score": "0.7159786",
"text": "def show\n @hack = Hack.find(params[:id])\n\n respond_to do |format|\n format.html # show.html.erb\n format.json { render :json => @hack }\n end\n end",
"title": ""
},
{
"docid": "277963703d47ff... |
c718a79bef68dcd62b2216b68375a6a0 | Paragraph = (ExplicitParagraph | ImplicitParagraph) | [
{
"docid": "23c54111c53b7ac1d1609b91807c39de",
"score": "0.807395",
"text": "def _Paragraph\n\n _save = self.pos\n while true # choice\n _tmp = apply(:_ExplicitParagraph)\n break if _tmp\n self.pos = _save\n _tmp = apply(:_ImplicitParagraph)\n break if _tmp\n self.pos... | [
{
"docid": "ec05955ec89dd86cca1283e4a3f53774",
"score": "0.73700607",
"text": "def wrapped_by_paragraph; end",
"title": ""
},
{
"docid": "212dd87607af303e62b21df0f4a0ce18",
"score": "0.71471757",
"text": "def parse_paragraph; end",
"title": ""
},
{
"docid": "fe76ffb786f96... |
71d837202e5f5fe19226920c61e79db2 | Sends requested intructions to reset password | [
{
"docid": "634400866d521f8d594b55b0f56cb870",
"score": "0.0",
"text": "def password_reset_instructions(user)\n @user = user\n #default_url_options[:host] = \"authlogic_example.binarylogic.com\"\n mail to: user.email, subject: 'Password reset for HiKultura'\n \n \n end",
"title": ""
... | [
{
"docid": "bea63928173ba3c4081798550d8ecc66",
"score": "0.7800017",
"text": "def send_reset_password_instructions\n end",
"title": ""
},
{
"docid": "673ec6b9ce5e891d97eabd34141da219",
"score": "0.7668118",
"text": "def send_reset_password_instructions; end",
"title": ""
}... |
b1b6b8c2a68036b2dfc454b449617d07 | return array of teams names | [
{
"docid": "e9e088f66f553218d8d84a54067e2ce2",
"score": "0.76458216",
"text": "def team_names\n return game_hash.reduce([]) do |memo, (teams, info)|\n memo << info[:team_name]\n end\nend",
"title": ""
}
] | [
{
"docid": "675eaf4c4b71e8fa8d5946bfa17d2e62",
"score": "0.85384494",
"text": "def print_team_names\r\n names = []\r\n @teams.each do |team|\r\n names << team.name \r\n end\r\n return names\r\n end",
"title": ""
},
{
"docid": "91f9c02c7285e52b3663991... |
94187059c0b8c0d0e95bb42374aaeab4 | A palindrome is a word or sequence of words that reads the same backwards as forwards. Write a method that returns the length of the longest palindrome in a given string. If there is no palindrome longer than two letters, return false. | [
{
"docid": "491d445d186df854654d9abe07479a26",
"score": "0.8286128",
"text": "def longest_palindrome(string)\n\nend",
"title": ""
}
] | [
{
"docid": "da1d4e8343cda4ff62d72738524e1f66",
"score": "0.8752934",
"text": "def longest_palindrome(string)\n string.length.downto(3) do |length|\n string.chars.each_cons(length) do |substr_arr|\n return substr_arr.length if palindrome?(substr_arr.join)\n end\n end\n false\nend",
"tit... |
c31a5b11de82342f3c356ec8abc768ef | Main functions This function takes a PDQ ID as input and returns relevant rurality data in a JSON | [
{
"docid": "321d911075d788617dd38b67c7e5d185",
"score": "0.66814125",
"text": "def getRuralityData(prop_data, rurality_names)\r\n\t\tputs \"In getRuralityData function\"\r\n\r\n # Set up storage; collect House, Location, PDQ ID\r\n results = Hash.new\r\n results['Id'] = prop_data.id\r\n resu... | [
{
"docid": "68cf5ad06ef387bdd4132d17b4908ddb",
"score": "0.6763708",
"text": "def ruralityData\r\n \talldata = Output.find_by(id: params[:id])\r\n if alldata != nil\r\n @Output = ResearchFunctions.getRuralityData(alldata, @@rurality_names)\r\n else\r\n @Output = {name: \"Does not exist\... |
6cf36e26958e3318c37ab1d50baef553 | POST /measurement_logs POST /measurement_logs.xml | [
{
"docid": "4193ff069b3491a5ba25689d4453e088",
"score": "0.64195764",
"text": "def create\n @measurement = current_account.measurements.find(params[:measurement_log][:measurement_id])\n authorize! :manage, @measurement\n @measurement_log = @measurement.measurement_logs.new(measurement_log_param... | [
{
"docid": "4840c9f571d113ea7b22b0ea2bf58a54",
"score": "0.5957889",
"text": "def feed(measure)\n args = \"value=#{measure[:value]}&ts=#{measure[:ts]}\"\n api_call(:post, 'measurement/'+@container, args )\n end",
"title": ""
},
{
"docid": "b4c23046ed9d2e9cdf0b15a34ed4570a",
"score... |
92209a0702b432c7cc2ef1ae6447fd00 | print status, and add to the info database | [
{
"docid": "ef96ef67dfa30601dae185f46522585e",
"score": "0.0",
"text": "def report_info(resp, type3_hash)\n data = get_hash_info(type3_hash)\n\n # no need to generically always grab everything, but grab common config options\n # and the response, some may be set to nil and that's fine\n data... | [
{
"docid": "67b8e606575f78753c1f7e88c3fd7f97",
"score": "0.7405363",
"text": "def printstatus\n \t@status\n end",
"title": ""
},
{
"docid": "0d5cc3ffc0b74c4297b6b0e499988a29",
"score": "0.70650554",
"text": "def print_status\n puts \"As a weary adventurer, you find yourself in a... |
fc08a62a99098ed3d4d8051b4abdec87 | gets base board without user input digits | [
{
"docid": "0bc44b9d02d2d31155a6ae2ebccbcd45",
"score": "0.64872915",
"text": "def getBaseBoard\n baseBoard = Array.new(9) {Array.new(9)}\n for i in 0..8 do\n for j in 0..8 do\n if(@board[i][j].isEditable)\n baseBoard[i][j] = 0\n else\n baseBoard[i][j] = @board... | [
{
"docid": "a90e3ffeedadd509c617b464661bc9b5",
"score": "0.6705038",
"text": "def blank_board\n 0b111111100000100000100000100000100000100000100000100000100000100000\nend",
"title": ""
},
{
"docid": "124576d8e31f0d2e4384a96b2f5d5f06",
"score": "0.65737486",
"text": "def read_input()\... |
8df42190079c8d81bd1eca39729ecf35 | POST /tagsearches POST /tagsearches.json | [
{
"docid": "ef0a1f7b87adc0c0389fd7cdbffa6d16",
"score": "0.6800098",
"text": "def create\n @tagsearch = Tagsearch.new(params[:tagsearch])\n\n respond_to do |format|\n if @tagsearch.save\n format.html { redirect_to @tagsearch, notice: 'Tagsearch was successfully created.' }\n for... | [
{
"docid": "36bad259975f7c314f564d272bf70da1",
"score": "0.64401853",
"text": "def tags\n query = params[:q]\n if query[-1,1] == \" \"\n query = query.gsub(\" \", \"\")\n Tag.find_or_create_by_name(query)\n end\n\n #Do the search in memory for better performance\n\n @tags = Acts... |
a53044348ba505c91dd7caf0c733a30e | Returns the source for the module. This source is for the primary candidate, if you would like source for other candidates use `WrappedModulecandidate` to select the candidate you're interested in. | [
{
"docid": "f2703cf5fb8818dd9734fe8bc6cf576d",
"score": "0.0",
"text": "def source; end",
"title": ""
}
] | [
{
"docid": "473ff7c0cb47b1887a53a34270c9a969",
"score": "0.6891014",
"text": "def source\n @source ||= begin\n source_opts = {\n :folder => File.join(options(:root), options(:source)),\n :modulr => options(:modulr).merge(Rack::Modulr.config.modulr)\n }\n Sourc... |
b260cc16bb16736c6d8337909f41d254 | DELETE /questions/1 DELETE /questions/1.json | [
{
"docid": "6e5b9559719ed350e9aeddd015c40d4e",
"score": "0.0",
"text": "def destroy\n @question = Question.find(params[:id])\n @question.destroy\n \n respond_to do |format|\n format.html { redirect_to @question.assessment }\n format.json { head :ok }\n end\n end",
... | [
{
"docid": "002f0e620d952c742bb3ab0e5bccc559",
"score": "0.78165984",
"text": "def destroy\n @v1_question = V1::Question.find(params[:id])\n @v1_question.destroy\n\n head :no_content\n end",
"title": ""
},
{
"docid": "e030cbcfdf71c561a228839806401f6e",
"score": "0.77959085",
... |
046b02cae29b302eefc6412440e94e1f | DELETE /appointments/1 DELETE /appointments/1.json | [
{
"docid": "fe73e4b5536a184b7fa622b64d285ef1",
"score": "0.7486059",
"text": "def destroy\n @appointment = Appointment.find(params[:id])\n\t\t\n @appointment.destroy\n\n respond_to do |format|\n format.html { redirect_to @appointment.allocation.episode.client, :notice => 'Appointment was s... | [
{
"docid": "bf8c21831c69d832d807c39d5bf67394",
"score": "0.8034218",
"text": "def delete_appointment\n\t\tid = grab_id(\"delete\")\n\t\taddress = @url + \"/\" + id\n\t\tresponse = HTTParty.delete(address)\n\t\tresponse.body\n\tend",
"title": ""
},
{
"docid": "761cfe19688ad8e3010fa2e15ee3cba... |
caaa53f1de2af1f33c58488c167c98bc | Set the value of the Domain input for this Choreo. | [
{
"docid": "2f14a428534a544420dd3fea01560088",
"score": "0.79354274",
"text": "def set_Domain(value)\n set_input(\"Domain\", value)\n end",
"title": ""
}
] | [
{
"docid": "937e6d347d42e4497a5e74034b203768",
"score": "0.81053364",
"text": "def set_Domain(value)\n set_input(\"Domain\", value)\n end",
"title": ""
},
{
"docid": "b7430dac1108927ee10a6312c9ff47d2",
"score": "0.77607644",
"text": "def domain=(value)\n @domain = va... |
9f7103a744e6f17162527f7aae2e438f | PATCH/PUT /perfil/ PATCH/PUT /perfil/.json | [
{
"docid": "9d24eb133549f979b74b4b8dc10540e5",
"score": "0.6717432",
"text": "def update\n respond_to do |format|\n if @perfil.update(perfil_params)\n format.html { redirect_to perfil_path, notice: 'Perfil was successfully updated.' }\n format.json { render :show, status: :ok, loca... | [
{
"docid": "357cf1be9dfc47d1a81d204e92456613",
"score": "0.69167393",
"text": "def update\n @perfil = Perfil.find(params[:id])\n\n respond_to do |format|\n if @perfil.update_attributes(params[:perfil])\n format.html { redirect_to @perfil }\n format.json { head :no_content }\n ... |
73864719cd1215c6be7e4f3f6b84a6af | dirty nasty ugly hack TODO get this into the controller!!! | [
{
"docid": "7ec03420cb59efcfaef05c3eaa35875d",
"score": "0.0",
"text": "def sections(form_state = nil)\n if form_state.nil?\n return :general\n else\n case form_state\n when :general\n puts \"Hello world now 1 in perfect method case latest\" \n\t { :title=>'... | [
{
"docid": "ef1e4c0cc26e4eec8642a7d74e09c9d1",
"score": "0.6248862",
"text": "def private; end",
"title": ""
},
{
"docid": "c5036a247d6d36888e108137980f43eb",
"score": "0.55940914",
"text": "def request; end",
"title": ""
},
{
"docid": "c5036a247d6d36888e108137980f43eb",
... |
7777688cf6250d0afc2a294c15497c0b | Add targets to this event. May not be called after or during dispatch | [
{
"docid": "ecca38140045b0a056d7a6cf94256887",
"score": "0.72080976",
"text": "def target *targets\n raise \"Event#target is disallowed after Event#dispatch is called\" unless @state == :ready\n targets.each { |target| @targets << target }\n nil\n end",
"title": ""
}
] | [
{
"docid": "99c2e09183f99982611bc9055b0f2ee4",
"score": "0.73633355",
"text": "def add_targets args\n args.each { |t|\n raise \"Bad object (expected Target): #{t.class.name}\" if !t.is_a? Target\n raise \"Duplicate target: #{t.path}\" if @all_targets.key? t.path\n @all_targets[ t.path ... |
231bba5ec50aebc00cab09d3e2c1f68a | tags_list_name = 'list_' + tag_name | [
{
"docid": "d7ace2b8d26e62512ed1a1f460ac28fb",
"score": "0.8728304",
"text": "def tag_list_name tag_name\n \"list_#{tag_name}\".to_sym\n end",
"title": ""
}
] | [
{
"docid": "a70e4414594e602abef59b506106d1bd",
"score": "0.75831956",
"text": "def tag_list=(list)\r\n tag_with(list)\r\n end",
"title": ""
},
{
"docid": "7cd09a7472f889276cf154cd7b651075",
"score": "0.7310305",
"text": "def tag_list\n # Redefined later to avoid ... |
fe9455c0605079462b9c34ced24b740f | Save and serve up the Records associated with this ProductTest. Filetype is specified by :format | [
{
"docid": "bce03cbc162cfc994ae2c98f6a06a37c",
"score": "0.5335687",
"text": "def download\n format = params[:format] || 'qrda'\n\n file = if format == 'qrda' && @product_test.patient_archive.file\n @product_test.patient_archive.file\n else\n Cypress::CreateDownlo... | [
{
"docid": "f264298ec784d2c90c1edf0d12575d8d",
"score": "0.6037369",
"text": "def create\n @testfile = Testfile.new(testfile_params)\n\n respond_to do |format|\n if @testfile.save\n format.html { redirect_to @testfile, notice: 'Testfile was successfully created.' }\n format.json... |
4b2d14f7b762491ee27c6eec3496ed4f | prevent the system to have two likes for the same user on the same photo | [
{
"docid": "3854beea72cbbbc560a1f68b0105a6ad",
"score": "0.0",
"text": "def cannot_follow_same_user_twice\n\t\tsameFriendships = Friendship.where(:user_id => self.user_id, :followee_id => self.followee_id)\n\t\tif sameFriendships.count >= 1\n\t\t\terrors.add(:base, \"cannot make friend twice\")\n\t\tend... | [
{
"docid": "9503e1b64660010ffc085393792da6e1",
"score": "0.73515695",
"text": "def already_liked?(photo)\n @liked_pic_ids ||= self.likes.pluck(:photo_id)\n @liked_pic_ids.include?(photo.id)\n end",
"title": ""
},
{
"docid": "975733df9e276207a568fe144a66e37e",
"score": "0.69333786"... |
65cec5add7368fd52c965f7e34fa8b56 | TODO: Move this to a module | [
{
"docid": "3d8626e984c5f512a13bbdb20ab614a8",
"score": "0.0",
"text": "def collectable?(x_threshold, y_threshold, star_x, star_y)\n Gosu.distance(x_threshold, y_threshold, star_x, star_y) < 10\n end",
"title": ""
}
] | [
{
"docid": "9de4306501711176ab8084b28395030d",
"score": "0.6372526",
"text": "def module; end",
"title": ""
},
{
"docid": "9dcc74dd11eb115d21bf9af45b3ec4e3",
"score": "0.63339454",
"text": "def bodystmt; end",
"title": ""
},
{
"docid": "9dcc74dd11eb115d21bf9af45b3ec4e3",
... |
91be7121052076691ec1416968efb436 | Compare one foreign key with another one. | [
{
"docid": "b8bde9a7948d392650f44f89387a759e",
"score": "0.72334915",
"text": "def == other\n other.is_a?( ForeignKey ) &&\n columns == other.columns &&\n table_name == other.table_name &&\n canonic_opts == other.canonic_opts\n end",
"title": ""
}
] | [
{
"docid": "981292bd70d0d10d59e3359dde6a6686",
"score": "0.6210493",
"text": "def ==(other)\r\n self.id == other.id\r\n end",
"title": ""
},
{
"docid": "264924356d5bd1ed9089da7d3d5d28d8",
"score": "0.62019694",
"text": "def ==(other)\n self.id == other.id\n ... |
3a1c38f299906bc847cd65cea1dece38 | GET /cookings/1 or /cookings/1.json | [
{
"docid": "c423e7d653fed5c3f733937d7d2bb9c6",
"score": "0.0",
"text": "def show\n # The user can request to receive this resource as HTML or PDF.\n @cooking = Cooking.find(params[:id])\n \n respond_to do |format|\n format.html\n format.pdf {render pdf: generate_pdf(@cooking)}\n ... | [
{
"docid": "18246489f5bf412bbae8b75bbde35082",
"score": "0.6842183",
"text": "def show\n @cook = Cook.find(params[:id])\n\n respond_to do |format|\n format.html # show.html.erb\n format.json { render json: @cook }\n end\n end",
"title": ""
},
{
"docid": "18246489f5bf412bb... |
bc0521aec6bf9fe031e6b9c82aee59ea | Appends an array of documents to the association. Performs a batch insert of the documents instead of persisting one at a time. | [
{
"docid": "1772ac60b1b57f93475d226147a9dfca",
"score": "0.63835275",
"text": "def concat(docs)\n batch_insert(docs) unless docs.empty?\n self\n end",
"title": ""
}
] | [
{
"docid": "81e4d9b5e070c6c90bbb5031e037a91e",
"score": "0.72214156",
"text": "def append_document(doc, ids, docs, inserts)\n return unless doc\n\n append(doc)\n\n pk = doc.public_send(_association.primary_key)\n if persistable? || _creating?\n id... |
0cabab10c6b0235971f34b8d27fb4c87 | POST /providers POST /providers.json | [
{
"docid": "9168a4761c2467b6ccc8435254675ba4",
"score": "0.62948346",
"text": "def create\n @provider = Provider.new(provider_params)\n @provider.user = current_user\n\n respond_to do |format|\n if @provider.save\n format.html { redirect_to profile_path, notice: 'Espere la activació... | [
{
"docid": "fc59f86c608f412aa38702bbf8e72b83",
"score": "0.7196066",
"text": "def create\n @provider = Provider.new(provider_params)\n\n if @provider.save\n render json: @provider, status: :created, location: @provider\n else\n render json: @provider.errors, status: :unprocessable_ent... |
c657de4b70d266e9a3a784b999ea9e60 | Never trust parameters from the scary internet, only allow the white list through. | [
{
"docid": "0bb0e9d6927caf4a98a4386d264140e0",
"score": "0.0",
"text": "def customer_set_params\n params.require(:customer_set).permit(:name, :rule, :value, :comparison, :field, :start, :end, :date_comparison, custom_queries_attributes: [:id, :field, :comparison, :value, :_destroy] )\n end",
... | [
{
"docid": "e164094e79744552ae1c53246ce8a56c",
"score": "0.6980384",
"text": "def strong_params\n params.require(:user).permit(param_whitelist)\n end",
"title": ""
},
{
"docid": "e662f0574b56baff056c6fc4d8aa1f47",
"score": "0.6782743",
"text": "def strong_params\n params.requi... |
f7d61791c3c029789ca501dc3fa695d6 | checks if guess is in secret_word, replaces placeholer _ with letter or wrong letter | [
{
"docid": "47119a3b30a6042c85628a7fba6f4458",
"score": "0.6834792",
"text": "def compare\n\t\tif @secret_word.include?(@guess)\n\t\t\t@secret_word.each_index do |x|\n\t\t\t\tif @secret_word[x] == @guess\n\t\t\t\t\t@placeholder[x] = @guess\n\t\t\t\tend\n\t\t\tend\n\t\telsif @guess == \"SAVE\"\n\t\t\t$sa... | [
{
"docid": "3823d53274c587cd203c48e7aa241c56",
"score": "0.851982",
"text": "def replace_correct_letters\n result = @secret_word\n @secret_word.split('').each do |letter|\n unless @characters_guessed_correctly.include? letter\n result = result.gsub(letter, '_')\n end\n end\n ... |
053a8bef7f133dea54610603998fe8d3 | DELETE /menu_bars/1 DELETE /menu_bars/1.xml | [
{
"docid": "960dbefe488820643276276cf38ff12c",
"score": "0.682294",
"text": "def destroy\n @menu_bar = MenuBar.find(params[:id])\n \n @menu_bar.link_pages.each do |lp|\n lp.sequence = LinkPage::NOT_USED\n @menu_bar.link_pages.delete(lp)\n lp.save\n end\n \n @menu_bar.des... | [
{
"docid": "beb6f5d6391350c823f6bd48bbf2ab64",
"score": "0.6670348",
"text": "def destroy\n @menu = Menu.find( params[:id] )\n @menu.destroy\n \n respond_to do |format|\n format.html { redirect_to( menus_url ) }\n format.xml { head( :ok ) }\n end\n end",
"title": ""
},
... |
a48a7476ef7f8773ed358b8b5627564a | every year in between which doesn't have a repeat digit. it uses the helper funtion no_repeat?(num). | [
{
"docid": "c3789890e462a40997557a6bbf1cb7f7",
"score": "0.794504",
"text": "def no_repeat?(num)\n num = num.to_s # convert to string (to use .length)\n l = 0 # left side index start\n while l < num.length \n r = l+1 # right side index st... | [
{
"docid": "93be48b76f6285823bdafc25cb1cfc5c",
"score": "0.80669445",
"text": "def no_repeat_year(year)\n year_digits = year.to_s.chars\n year_digits == year_digits.uniq\nend",
"title": ""
},
{
"docid": "507b1c083237669d90c4c9c17f75a6bc",
"score": "0.80621344",
"text": "def no_repe... |
8767cd16d6ddc820d9094789daef59e4 | Returns the current client version. | [
{
"docid": "166afac0e143f4a66d9a56d85e305ae0",
"score": "0.0",
"text": "def web3_client_version\n payload = {\n method: 'web3_clientVersion'\n }\n\n post(payload)\n end",
"title": ""
}
] | [
{
"docid": "408d78c31d0af565eab812907fe4d5d7",
"score": "0.84730905",
"text": "def client_version\n ClientVersion\n end",
"title": ""
},
{
"docid": "44d433d983ff11a14c7e4c844e472851",
"score": "0.8287797",
"text": "def server_version\n client.get_version\n ... |
f5bd5256798eb0f97d17f358ff401b63 | load trending 20 users/ideas/feedbacks | [
{
"docid": "77649894590c0c7caa6608236cf7cbe8",
"score": "0.5775317",
"text": "def trending_20\n key = \"trending_20_#{to_s.pluralize.downcase}\"\n Rails.cache.fetch(key, expires_in: 2.hours) do\n where(id: trending.revrange(0, 20))\n .order_as_specified(id: trending\n .r... | [
{
"docid": "d58ea96223da161e0eee14f5cd6f0f2f",
"score": "0.62153596",
"text": "def trending; end",
"title": ""
},
{
"docid": "01afaf710123b1c8a91b8fe619a3cb78",
"score": "0.61004525",
"text": "def trending\n @ideas = Idea.find(Idea.trending.revrange(0, 20))\n respond_to do |for... |
edf7a29025ed9daed7a880eb0fa17730 | Turns a hash of key/value pairs in to a key1="value1" key2="value2" key3="value3" | [
{
"docid": "7a3c0519856a0ffd5f700c15c01f4ae6",
"score": "0.0",
"text": "def hash_to_props(opt={})\n props=[]\n opt.each { | key, value | \n props.push(\"#{key.to_s}=\\\"#{value}\\\"\")\n }\n return \" #{props.join(\" \")}\" if props.length > 0\n return \"\"\n end",
... | [
{
"docid": "fc1926026cd279ff442a7581a4fb9022",
"score": "0.6844894",
"text": "def switch_keys_and_key_values(input_hash)\n\n\nend",
"title": ""
},
{
"docid": "5dab4317eb7b2e0fa60f1c2a95516964",
"score": "0.68266463",
"text": "def convert_hash(hash)\n Hash[hash.map { |k, v| [k.u... |
8efa0f0f0c3615515859359eb214c287 | Returns an ordidinal date eg July 22 2007 > July 22nd 2007 | [
{
"docid": "74f094b407f1fd2e66411d60158c806a",
"score": "0.6053798",
"text": "def ordinalize(date)\n date = datetime(date)\n \"#{date.strftime('%b')} #{ordinal(date.strftime('%e').to_i)}, #{date.strftime('%Y')}\"\n end",
"title": ""
}
] | [
{
"docid": "a9866d8d7e5730dca6e70ed8ef90e427",
"score": "0.6920679",
"text": "def ordinalDate\n \n end",
"title": ""
},
{
"docid": "f87b810ec1c84a97a24475db5614eea5",
"score": "0.66190606",
"text": "def date_as_ordinal(date)\n num = date.day.to_s\n if num[-1] > \"3\" || num... |
8bb108d090668c663da4d2fcdc4358a6 | Return an enumeration of a series of strings, separated by ',' except for the last two separated by 'and' RETURN BLANK STRING IF STRS ARE EMPTY | [
{
"docid": "2e89fd4543ea935958bd3eaddaab5311",
"score": "0.616162",
"text": "def strjoin strs, before = \"\", after = \"\", joiner = ',', line_end=' '\n if strs.keep_if { |str| !str.blank? }.size > 0\n last = strs.pop\n liststr = strs.join (joiner+line_end)\n liststr += \" and#{line_end}\" unl... | [
{
"docid": "e94a08731cc6dfa37f36737a1b9ee2d8",
"score": "0.70336866",
"text": "def andify(list)\n return list.first || '' if list.size <= 1 \n \"#{list[0...-1].join(\", \")} and #{list[-1]}\"\nend",
"title": ""
},
{
"docid": "970a8539775d1d9300da5cf6a095f7b6",
"score": "0.6757412",
... |
1d3d2047f829b16f07952630450bfe5c | Add linguistics functions for the specified languages to Ruby's core classes. The interface to all linguistic functions for a given language is through a method which is the same the language's international 2 or 3letter code (ISO 639). You can also specify a Hash of configuration options which control which classes ar... | [
{
"docid": "b57be5156bbbafbc92241140eef83c72",
"score": "0.6540742",
"text": "def use( *languages )\n\t\tconfig = {}\n\t\tconfig = languages.pop if languages.last.is_a?( Hash )\n\n\t\tclasses = config.key?( :classes ) ? config[:classes] : DefaultExtClasses\n\t\tclasses = [ classes ] unless classes.is_a?... | [
{
"docid": "6947a6b9e882f1ec50f377a416b10d65",
"score": "0.6010472",
"text": "def load_programming_language(ext)\n return @language_map[ext] if @language_map[ext]\n programming_language_class = constantize(\"Cucumber::#{ext.capitalize}Support::#{ext.capitalize}Language\")\n programming_la... |
2fdb25cfc6b8d008b4619ff142411afe | return an SR record from the name_label | [
{
"docid": "3c73e65a021717507e62550829643329",
"score": "0.67711616",
"text": "def get_sr_by_name(name)\n sr_ref = xapi.SR.get_by_name_label(name)[0]\n if sr_ref.empty? || sr_ref.nil?\n ui.error \"SR name #{h.color(name) } not found\"\n return nil\n end\n sr_ref\n en... | [
{
"docid": "610743e2a248f177babdb1e5fe2f4fba",
"score": "0.7043629",
"text": "def get_sr_by_name(name)\n sr_ref = xapi.SR.get_by_name_label(name)\n if sr_ref.empty? or sr_ref.nil?\n ui.error \"SR name #{h.color( name ) } not found\"\n return nil\n end\n sr = xapi.SR.get... |
0cb9b5d37c0b580d8181e5f4777bf20f | TODO: probably all those event's will generate too many synchronous calls which may slow down scrapping process. Consider switching to kafka for event notifications. | [
{
"docid": "23136442af86db54f351fb2dbd36a524",
"score": "0.0",
"text": "def scrapping_error_handler(task, job_id)\n -> (uri, ex) do\n Api::Scrapping::Failure.new.call(\n exception: ex, \n url: uri,\n task_id: task.id,\n job_id: job_id\n ... | [
{
"docid": "f395567b5553c413369d5a6476d6116b",
"score": "0.7066684",
"text": "def send_events; end",
"title": ""
},
{
"docid": "ff1cb32628977acc28cd1a7e6b85541e",
"score": "0.6527947",
"text": "def events; end",
"title": ""
},
{
"docid": "ff1cb32628977acc28cd1a7e6b85541e"... |
eacae7927050613f12df8f38e0180c2e | PUT /tipomedallas/1 PUT /tipomedallas/1.json | [
{
"docid": "a4ce4b2c306d7f99a3a207e65b541b1a",
"score": "0.6661455",
"text": "def update\n @tipomedalla = Tipomedalla.find(params[:id])\n\n respond_to do |format|\n if @tipomedalla.update_attributes(params[:tipomedalla])\n format.html { redirect_to @tipomedalla, notice: 'Tipomedalla wa... | [
{
"docid": "20b70eda0f36bbb63d7b47dbc499eaa1",
"score": "0.62673306",
"text": "def update\n @tip_so = TipSo.find(params[:id])\n\n respond_to do |format|\n if @tip_so.update_attributes(params[:tip_so])\n format.html { redirect_to @tip_so, notice: 'Tip so was successfully updated.' }\n ... |
401f30584c40de63bac82527fbf97955 | Methods for Akismet spam checks | [
{
"docid": "0cf10cda6da882f7c1dd7fb05dbe837d",
"score": "0.0",
"text": "def akismet_enabled?\n @@akismet_enabled\n end",
"title": ""
}
] | [
{
"docid": "ce5ef44a52800699c12474f80bd034b4",
"score": "0.75310886",
"text": "def train_as_spam\n spam! if Rakismet.key\n end",
"title": ""
},
{
"docid": "86691e009b823f4f0266e6b9350e3246",
"score": "0.7503379",
"text": "def spam? \n spam = Akismet.spam?(akismet_attribu... |
f9fb665338fd3be4e84f187e7578e1db | Initialise the objects array. There are 24 objects in total. These objects are grouped into three pages. Pages are ARMOURY,ACCOUTREMENTS,EMPORIUM, each item has a cost, strength factor and character flags (ie can be used by a type of character) | [
{
"docid": "f77d4c7bce634a54c4678c02e4c11906",
"score": "0.7411616",
"text": "def set_up_objects\n ob = {}\n #weapons\n ob[:page_1] = [{:name => '2 HAND SWORD', :cost => 20, :power => 5, :flags => CHAR_F_BARB},\n {:name => 'BROADSWORD', :cost => 16, :power => 4, :flags... | [
{
"docid": "a703faa3518247d87bed6442a070486b",
"score": "0.6308089",
"text": "def create_cards\n @cards = Array.new\n #add every combination of the base properties as card objects into the cards array\n for shape in @shapes\n for color in @colors\n for fill in @fills\n f... |
54c8e3b1f8286e339ab271ab90707d0e | this method marks a given ticket as having a status of "3", or "solved" | [
{
"docid": "c99238efa98a6e05678c5d303dd5515d",
"score": "0.5962852",
"text": "def update_ticket(ticket_num)\n \n url = ['/tickets/',ticket_num,'.xml'].join\n result = @connection.put url, \n (\n xml = Builder::XmlMarkup.new( :indent => 2 )\n xml.instruct! :xml, :encoding => \... | [
{
"docid": "fe5b5fa5d66206563397648298f73269",
"score": "0.72840315",
"text": "def update_ticket\n if @issue.status.name == \"New\"\n @issue.assign @config[:jira][:username]\n @issue.status.advance\n @issue.comment \"Claiming ticket and starting work.\"\n elsif @... |
2e5fd51dff95d9e15b355ea3da9c2306 | PATCH/PUT /footballs/1 PATCH/PUT /footballs/1.json | [
{
"docid": "37da41b2507f935d81bdcb1b061e1f89",
"score": "0.7333158",
"text": "def update\n respond_to do |format|\n if @football.update(football_params)\n format.html { redirect_to @football, notice: 'Football was successfully updated.' }\n format.json { render :show, status: :ok, ... | [
{
"docid": "457fe9972352fd9c551db39f5712f816",
"score": "0.6530315",
"text": "def update\n respond_to do |format|\n if @football_game.update(football_game_params)\n format.html { redirect_to @football_game, notice: 'Football game was successfully updated.' }\n format.json { render ... |
848afda5e4136118f5dc511ae7956a44 | Generates an api path for orphaned content | [
{
"docid": "f0a9fe9719342bc4d08b200469fc6dab",
"score": "0.65141547",
"text": "def orphan_path(type_id = nil)\n path = 'content/orphans/'\n path << \"#{type_id}/\" if type_id\n path\n end",
"title": ""
}
] | [
{
"docid": "4121f94b98b06cc6eadc63a5a62a0c03",
"score": "0.6468022",
"text": "def api_path\n parent.api_path\n end",
"title": ""
},
{
"docid": "f42ba42ba9a7ebaaf45d9990abd5a5a0",
"score": "0.6229448",
"text": "def build_path\n path = %w(api where)\n path... |
f2b76c9c3c5d0a04f58328128efe33e3 | GET /weedpens GET /weedpens.json | [
{
"docid": "4b8d6073245188d30f76c36b98dc21e3",
"score": "0.61552525",
"text": "def index\n if params[:search].present?\n @weedpens = Weedpen.near(params[:search], 50, :order => :distance)\n else\n @weedpens = Weedpen.all\n end\n end",
"title": ""
}
] | [
{
"docid": "96c7c1fb4a48ac9ee68d4c8bf7fcbbb0",
"score": "0.6538035",
"text": "def index\n @waivers = Waiver.all\n\n respond_to do |format|\n format.html # index.html.erb\n format.json { render json: @waivers }\n end\n end",
"title": ""
},
{
"docid": "6d5a931ed9c08b4378726... |
3084908ff3d3b50b126a7c637e97aab2 | GET /anotacaos/1 GET /anotacaos/1.json | [
{
"docid": "a81945373733e4951b987de6ea99f9a1",
"score": "0.0",
"text": "def show\n end",
"title": ""
}
] | [
{
"docid": "f835dd603ce08f39a89a1350066b11a9",
"score": "0.70172864",
"text": "def index\n @orgaos = Orgao.all\n\n render json: @orgaos\n end",
"title": ""
},
{
"docid": "069969be67b3388c87adb70941984287",
"score": "0.69794905",
"text": "def show\n @agronomiadecanato = Agro... |
6b5d37cf33965e6275a08b6a12873c07 | Entry point for the application object. | [
{
"docid": "610013c7421e632a37d681f9fcb6c50a",
"score": "0.0",
"text": "def run!(theCmdLineArgs)\n @options = options_from(theCmdLineArgs)\n return unless options[:setup]\n \n options[:setup].each do |a_path|\n setup_project(a_path)\n end\n end",
"title": ""
}
] | [
{
"docid": "c15dfedd7107cb6b4fa66c5c93dbcf6f",
"score": "0.7931986",
"text": "def app; end",
"title": ""
},
{
"docid": "c15dfedd7107cb6b4fa66c5c93dbcf6f",
"score": "0.7931986",
"text": "def app; end",
"title": ""
},
{
"docid": "c15dfedd7107cb6b4fa66c5c93dbcf6f",
"scor... |
2c710ea3da02998f7724b9aff978e710 | Private: finds source vertices those that don't have any incoming edges | [
{
"docid": "81dd2987c271f0aa20bbfa950dbe7443",
"score": "0.71214813",
"text": "def find_indexes_of_source_vertices\n # start with all vertices' indexes\n indexes = [*0..@vertices.length-1]\n\n @vertices.each do |vertex|\n vertex.neighbours.each_with_index do |value, neighbour_index|\n ... | [
{
"docid": "6b0306772eba28bf9c9e4ae40b73f1c5",
"score": "0.6962171",
"text": "def isolates\n edges.inject(Set.new(vertices)) { |iso, e| iso -= [e.source, e.target] }\n end",
"title": ""
},
{
"docid": "483bed8841c2512fb6d482b17e0bccb3",
"score": "0.6448972",
"text": "def sourc... |
cf1a4576d28ce529c464f2173d5c1340 | Visits a set value. | [
{
"docid": "6bf7a0e21b6889592378556a7889d6cb",
"score": "0.56079644",
"text": "def visit_set(binding_type)\n raise NotImplementedError\n end",
"title": ""
}
] | [
{
"docid": "31cc6245260db3d07b0e5a6fa60f0536",
"score": "0.66446394",
"text": "def set(value); end",
"title": ""
},
{
"docid": "ca818263a98137101a9dec9391a9726f",
"score": "0.6536755",
"text": "def set_Set(value)\n set_input(\"Set\", value)\n end",
"title": ""
}... |
74160d0335860cd62aeea79c31840e73 | returns name of the commons institution | [
{
"docid": "5c416c0e894a58f755a96d0144f25e0c",
"score": "0.0",
"text": "def owner_name\n @delegated_to_object.name\n end",
"title": ""
}
] | [
{
"docid": "5004abdfee51adc4c887809f8713bdcc",
"score": "0.7381223",
"text": "def institution\n default = \"[INSTITUTION]\"\n result = local_study_affiliate\n result.blank? ? default : result\n end",
"title": ""
},
{
"docid": "9d732d141e31de22b7cfc4ddd7ad95e1",
"score":... |
07fec1dad6b48b0c35a360a53571f047 | PUT /daily_lineups/1 PUT /daily_lineups/1.json | [
{
"docid": "9486e027211131aa74f3efa32f13f66c",
"score": "0.7115826",
"text": "def update\n @daily_lineup = DailyLineup.find(params[:id])\n\n respond_to do |format|\n if @daily_lineup.update_attributes(params[:daily_lineup])\n format.html { redirect_to @daily_lineup, notice: 'Daily line... | [
{
"docid": "61bc83e28e4843247da77512c1df3183",
"score": "0.6262556",
"text": "def create\n @daily_lineup = DailyLineup.new(params[:daily_lineup])\n\n respond_to do |format|\n if @daily_lineup.save\n format.html { redirect_to @daily_lineup, notice: 'Daily lineup was successfully created... |
be1bd210a9f86548fa220554f0fa52de | Process the given CLI options and isolate default values from user provided values | [
{
"docid": "d78c7cf41754bba3dbb03a5c3ee37360",
"score": "0.65340453",
"text": "def process_cli_options(cli_opts)\n unless(cli_opts.is_a?(Slop))\n raise TypeError.new \"Expecting type `Slop` but received type `#{cli_opts.class}`\"\n end\n @options = Smash.new\n @defau... | [
{
"docid": "f4c7c6e3e0bfd874e287702503330913",
"score": "0.76278657",
"text": "def process_cli_options(cli_opts)\n @options = Smash.new\n @defaults = Smash.new\n cli_opts.each_pair do |key, value|\n unless value.nil?\n if cli_opts.default?(key)\n @de... |
c657de4b70d266e9a3a784b999ea9e60 | Never trust parameters from the scary internet, only allow the white list through. | [
{
"docid": "7f776b85a13f6542182960e40bfe9a74",
"score": "0.0",
"text": "def payment_params\n params.require(:payment).permit(:friend_id, :amount)\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... |
a6527a2ee7f77ed7a93a4b65ae76ef25 | Obtain an InputSet object, used to define inputs for an execution of this Choreo. | [
{
"docid": "8fa7318f13587f278468dc1b0ce2ff44",
"score": "0.0",
"text": "def new_input_set()\n return GetUnsettledTransactionListInputSet.new()\n end",
"title": ""
}
] | [
{
"docid": "d8eb34cfc5a1e737977f7023d4849c46",
"score": "0.67396337",
"text": "def new_input_set()\n return CreateObjectInputSet.new()\n end",
"title": ""
},
{
"docid": "7c0d7c433cd4eb8e36bdc3a383e9ec33",
"score": "0.6579591",
"text": "def new_input_set()\n return Ru... |
a8bf8dfc125fdc3a0e0399b3b026cd8a | Define if current operation is Incoming | [
{
"docid": "f8a2dca3e330bf4286c3a7f7472b50e3",
"score": "0.0",
"text": "def incoming?\n self.amount >= 0 || ((self.amount == 0) && (IncomeCategory.all.include?(self.category)))\n end",
"title": ""
}
] | [
{
"docid": "c43b57dfcfd83b4344c199ec6259a5e3",
"score": "0.7451673",
"text": "def incoming?\n !!self.incoming\n end",
"title": ""
},
{
"docid": "b853bba983ef22dee0036b02b5344619",
"score": "0.69064623",
"text": "def incoming?\n correspondence_type == 0\n end",
... |
9be2e8323732e43767f536f4d2ff6c7e | Retrieve active user orders | [
{
"docid": "8fe2d6ec8a1d47ca8c318cf923eb35b7",
"score": "0.0",
"text": "def orders\n client.get \"orders\"\n end",
"title": ""
}
] | [
{
"docid": "9cf3b34d0afe65273e706f891c1ab7d3",
"score": "0.76981145",
"text": "def index\n @orders = current_end_user.orders\n end",
"title": ""
},
{
"docid": "c5c8ac72a73de09160bcdd7d7f466d29",
"score": "0.76781625",
"text": "def index\n @orders = Order.user_orders(current_us... |
c6ef00903658c26e890e4b9f3b6a3e0a | Don't override this at home, kids | [
{
"docid": "71a38cae67af585ec4bc1df49c9c1f0c",
"score": "0.0",
"text": "def _json_data_for_exception(exception)\n {\n maintenance: false,\n action: \"#{controller_name}##{action_name}\",\n exception: {\n class: exception.class.name,\n message: exception.mes... | [
{
"docid": "2290804b238fc95bfd6b38f87c6d2895",
"score": "0.71253455",
"text": "def override; end",
"title": ""
},
{
"docid": "6ab77a9219ee157923bc58599ba6aa77",
"score": "0.7006695",
"text": "def in_use; end",
"title": ""
},
{
"docid": "6ab77a9219ee157923bc58599ba6aa77",
... |
43550a43da54bdf84a98da02ab79ae7b | Thread that reduces penalty for QueueObjects | [
{
"docid": "320f51c668bbfa74b9f62349862bd0cf",
"score": "0.66096026",
"text": "def fair_queue\n worker_threaded do\n while @connected\n sleep(Ricer4::Queue::Frame::SECONDS * 2)\n @queue_lock.synchronize do\n @queue.each{|to, queue| queue.reduce_penalty }\n ... | [
{
"docid": "297660be774ade2b85af2f5827d7240c",
"score": "0.729671",
"text": "def queue; end",
"title": ""
},
{
"docid": "297660be774ade2b85af2f5827d7240c",
"score": "0.729671",
"text": "def queue; end",
"title": ""
},
{
"docid": "81fe30cfd6e068a38cc88003863d820d",
"sc... |
ee9fe2e0508334ef095154d9d9cc99c0 | Is this a singleton class? | [
{
"docid": "2becc9d994417ca5a581f5530428bc0b",
"score": "0.84854245",
"text": "def singleton_class?; end",
"title": ""
}
] | [
{
"docid": "a3860511f4560931f84dc7532c454e34",
"score": "0.83014256",
"text": "def singleton_instance; end",
"title": ""
},
{
"docid": "9b193ec1ce72da7c819d1dfd5e5c1a49",
"score": "0.8096579",
"text": "def singleton?\n false\n end",
"title": ""
},
{
"docid... |
ae2600e4ea9745158f02b6b1384af195 | GET /secrets/1 GET /secrets/1.xml | [
{
"docid": "22a4ae8a81111d45f5f12d6fae6c8e95",
"score": "0.66900015",
"text": "def show\n @secret = Secret.find(params[:id])\n\n respond_to do |format|\n format.html # show.html.erb\n format.xml { render :xml => @secret }\n end\n end",
"title": ""
}
] | [
{
"docid": "4732a75c2bf4ac25349bf49933de625e",
"score": "0.6470065",
"text": "def show\n @admin_secret = Admin::Secret.find(params[:id])\n\n respond_to do |format|\n format.html # show.html.erb\n format.xml { render :xml => @admin_secret }\n end\n end",
"title": ""
},
{
... |
f74c29bdfc4a183e1ec1b91334cd5be2 | Use callbacks to share common setup or constraints between actions. | [
{
"docid": "c4abd42e92c124683a86e36a800ae782",
"score": "0.0",
"text": "def set_user_prroject\n @user_prroject = UserPrroject.find(params[:id])\n end",
"title": ""
}
] | [
{
"docid": "631f4c5b12b423b76503e18a9a606ec3",
"score": "0.60310596",
"text": "def process_action(...)\n run_callbacks(:process_action) do\n super\n end\n end",
"title": ""
},
{
"docid": "7b068b9055c4e7643d4910e8e694ecdc",
"score": "0.6014974",
"text": "de... |
b6dfe32be1ac077c03cdaa7a1c2959a1 | Destroy the existing bundle, if it exists. | [
{
"docid": "8101efecb9a28e4a75ebedb1f0c2c024",
"score": "0.63279355",
"text": "def remove_bundle_root\n FileUtils.rm_rf bundle_root if File.exist?(bundle_root)\n end",
"title": ""
}
] | [
{
"docid": "2f5dd3550523df81c6e6b970a2a22630",
"score": "0.7508298",
"text": "def delete\n validate_presence_of :name\n wrapper.delete_bundle(@name) || raise(OperationFailed)\n end",
"title": ""
},
{
"docid": "f05cc7d8b7880a45abf1f9c32b636786",
"score": "0.7302717",
"tex... |
37f0720d1393e7f2bcd6ac568a20f10f | Here, I am initializing with just a discount, per the test, setting it to 0. Items is also initialized. I could not make items a class variable, as it didn't pass the test. Why? Because it wouldn't be an instance variable, it would be a class variable available for the whole CashRegister class which | [
{
"docid": "7fce8c69f50bc093a6cd6e9bf486832d",
"score": "0.0",
"text": "def add_item(item, price, quantity = 1)\n @price = price\n @total += price * quantity\n @items.fill(item, @items.size, quantity)\n end",
"title": ""
}
] | [
{
"docid": "6bafd9529f6d26ec687f28259dce5423",
"score": "0.828496",
"text": "def initialize(discount=0)\n @total = 0\n @discount = discount\n @items = []\n \n end",
"title": ""
},
{
"docid": "34bd54ebe1bdc5b9e9d6512a6ab75562",
"score": "0.82696086",
"text": "def initiali... |
616a303ed2b49b023e63aac147189279 | find a current listing so that we may generate a form for it | [
{
"docid": "d55ef34e2a1757a21b4339259370f8a7",
"score": "0.0",
"text": "def edit\n @listing = Listing.find(params[:id])\n end",
"title": ""
}
] | [
{
"docid": "d2a9960fc25966265d58dc21cb9c18f4",
"score": "0.7384868",
"text": "def listing\n @listing ||= Listing.find(params[:id])\n end",
"title": ""
},
{
"docid": "af274ab97e73c68f9fb12a0b4623eae7",
"score": "0.7182289",
"text": "def set_listing\n @listing = Listing.friend... |
5950bc2761709a8fe45c08307026f060 | Wikitext to send to Parsoid to convert to HTML (paction=parsefragment). | [
{
"docid": "9421800097e102c81c0a1cf8c28ed3fd",
"score": "0.0",
"text": "def wikitext(value)\n merge(wikitext: value.to_s)\n end",
"title": ""
}
] | [
{
"docid": "0db3a121aca24a7abb7d08d9f6e1d278",
"score": "0.6347921",
"text": "def to_html\n CGI.unescapeHTML(Riki::Base.api_request({'action' => 'parse', 'page' => @title}).first.find('/m:api/m:parse/m:text/text()').first.to_s)\n end",
"title": ""
},
{
"docid": "196e8f1dad4247e04f3a7... |
546d86780886088f116042ec215a4a1b | updates a particular word's gender | [
{
"docid": "40b44427c610c53168ecfa479c8f0265",
"score": "0.8054745",
"text": "def update\n word = Word.find(params[:id])\n word.gender = params[:gender]\n if word.save\n head :ok\n end\n end",
"title": ""
}
] | [
{
"docid": "111cacebeecf17a3f0ee80e309300665",
"score": "0.6787611",
"text": "def gender=(new_gender)\n\t\t@gender = new_gender\n\tend",
"title": ""
},
{
"docid": "111cacebeecf17a3f0ee80e309300665",
"score": "0.6787611",
"text": "def gender=(new_gender)\n\t\t@gender = new_gender\n\te... |
315c24895d17db371edbb21025355bce | Fetch all descendents which are named in COLLECTION_CLASSES for this fedora object. | [
{
"docid": "3a9b9842b2740b2251a9b2566278e409",
"score": "0.5926736",
"text": "def descendent_collections(as = :models) \n new_query.get_descendent_collections as \n end",
"title": ""
}
] | [
{
"docid": "28a7535d967aaddbd01f5907a469aabd",
"score": "0.7284149",
"text": "def descendents\n Sequel.synchronize{subclasses.dup}.map{|x| [x] + x.send(:descendents)}.flatten\n end",
"title": ""
},
{
"docid": "1fa541bd41d268e3eb7a29ce1833d1c3",
"score": "0.68759495",
... |
af630984682f1a0b5a68e6092af0d102 | Update properties of this object | [
{
"docid": "f70b225ee2669759443260c558362e2d",
"score": "0.0",
"text": "def update!(**args)\n @next_page_token = args[:next_page_token] if args.key?(:next_page_token)\n @unreachable = args[:unreachable] if args.key?(:unreachable)\n @workstations = args[:workstations] if args.k... | [
{
"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... |
fdcda80fac4727585822e65a8b74cdc4 | Return whether or not the completed push job was successful. | [
{
"docid": "90bd70467228deee99823c76ee1e2780",
"score": "0.6479616",
"text": "def successful?\n complete? && all_nodes_succeeded?\n end",
"title": ""
}
] | [
{
"docid": "d2854f1552e77f42092c978056f9136e",
"score": "0.7521023",
"text": "def complete?\n case @status\n when 'new', 'voting', 'running'\n false\n when 'complete'\n true\n else\n fail Exceptions::PushJobError, @job\n end\n end",
"title": ""
},
... |
ba9f6de22519a071d19aea93f2c36fd5 | Constructor initializes repos array and frequencies hash. | [
{
"docid": "a66f0ce0b6d6593e9646cfaa29a7bbf1",
"score": "0.8804174",
"text": "def initialize\n @repos = []\n @frequencies = Hash.new(0)\n end",
"title": ""
}
] | [
{
"docid": "5404c9d17d97b65d2e59213684813d6b",
"score": "0.6823045",
"text": "def initialize(repo)\n @additions = 0\n @commits = []\n @deletions = 0\n @repo = repo\n end",
"title": ""
},
{
"docid": "09ecb83ac60e5bdb8d3d40bf4b1c2f8a",
"score": "0.67694104",
... |
d327de4252ef3e70d908895f9bf00ae4 | Check for changes to graded test case booleans for autograded assessments. | [
{
"docid": "187b348b22423c744c85c6a4a40b0861",
"score": "0.638578",
"text": "def regrade_programming_answers?\n (previous_changes.keys & ['use_private', 'use_public', 'use_evaluation']).any? && autograded?\n end",
"title": ""
}
] | [
{
"docid": "884b26943f569417eb713d8fef14178b",
"score": "0.6419285",
"text": "def autograded?\n @test_params.key?(:autograded) && (@test_params[:autograded] == true || @test_params[:autograded] == 'true')\n end",
"title": ""
},
{
"docid": "8be1bd462fbd36f34b1b2d86a24e2536",
"score": ... |
89f0ba5e371c5883847bdd3430dd5c01 | GET /pictures/1 GET /pictures/1.json | [
{
"docid": "a81945373733e4951b987de6ea99f9a1",
"score": "0.0",
"text": "def show\n end",
"title": ""
}
] | [
{
"docid": "bbf8a21fd9d89e915d4a49ab0060b6ec",
"score": "0.77218854",
"text": "def index\n @pictures = Picture.page(params[:page]).per(params[:per])\n render json: @pictures\n end",
"title": ""
},
{
"docid": "6b21ae899533bf245bac34b8d6179688",
"score": "0.76912487",
... |
21fd96bbc5aba54c312322d77ab84340 | Copies images of specified type from source directory to destination, converted with given parameters | [
{
"docid": "37e2a037184d87b16b096f48523ba1b3",
"score": "0.70172054",
"text": "def copy_and_convert_image\n source_file = Item.new(Path.new(params[:source] + \".\" + params[:source_type]))\n destination_type = params[:dest_type] || params[:source_type]\n dest_file = Item.new(Path.new(params[:de... | [
{
"docid": "0e9b3053b6170d6ce9c78c6fa1f2fdda",
"score": "0.72548306",
"text": "def copy_and_convert_images\n source_dir = Item.new(Path.new(params[:source]))\n dest_dir = Item.new(Path.new(params[:dest]))\n source_type = params[:source_type]\n dest_type = params[:dest_type]\n quality = pa... |
acda21ee8c981cb8583811fb5698874f | searchable do text :key text :file do content end end | [
{
"docid": "48424baea08e54d207c0e8a7acf08375",
"score": "0.0",
"text": "def initialize(lang, section, key, file)\n @lang = lang\n @section = section\n @key = key\n @file = file\n end",
"title": ""
}
] | [
{
"docid": "c3a8754ae8fb54b86402686619374b58",
"score": "0.6420943",
"text": "def search_for_file(file)\n xml_doc = Nokogiri::XML(file)\n xml_doc.remove_namespaces!\n solr_document = indexer.map_record(xml_doc)\n query_by_id(id: solr_document[\"id\"])\n end",
"title": ""
},
{
"d... |
cf5a19a850c3fdf57affbf267116bc75 | Opens custom url OR dates.txt OR challenge data url (in that order) | [
{
"docid": "d970a08b3a236164302a5e4e909d6599",
"score": "0.60016847",
"text": "def get_dates(options = {})\n # networks and user input and file io, oh my!\n begin\n if options[:url]\n date_file = open(options[:url]) { |f| f.read }\n File.write('dates.txt', date_file)\n elsif File.exist... | [
{
"docid": "af6e09a83f594f22306d620c7b04b710",
"score": "0.6870164",
"text": "def user_open_url(path)\n open_url(\"http://#{amee.server}/data#{path}\")\n end",
"title": ""
},
{
"docid": "73a2cdfa188696374dd547eb71965db8",
"score": "0.6035021",
"text": "def open url\r\n command... |