query_id stringlengths 32 32 | query stringlengths 7 6.75k | positive_passages listlengths 1 1 | negative_passages listlengths 88 101 |
|---|---|---|---|
20d89b9784e111bc05bf92c8a6a7bb14 | pass login params to this method; | [
{
"docid": "dfff7e00d3dec80b501a6a5dd5686900",
"score": "0.0",
"text": "def can_login?(password)\n if disabled?\n errors.add :base, :account_disable\n return false\n end\n\n unless authenticate(password)\n errors.add :base, :wrong_name_or_password\n return fals... | [
{
"docid": "6a17649a2df77580cfb36f7b61d71aea",
"score": "0.78917396",
"text": "def login\n \tauthenticate(params)\n end",
"title": ""
},
{
"docid": "096656013ed38b7b1dbeeac711e44c18",
"score": "0.76790535",
"text": "def login; end",
"title": ""
},
{
"docid": "05d1926ee7... |
fead98796e758e836bd33f6ff0203f45 | Marks a file as conflicted according to the merge state. Basic form of merge conflict resolution that all repositories must support. | [
{
"docid": "65b9bca4754fbf78ac1d923187f1a335",
"score": "0.83440804",
"text": "def mark_conflicted(filename)\n merge_state.mark_conflicted filename\n end",
"title": ""
}
] | [
{
"docid": "59b2e553f1c65c56a417ebb6a417bdfa",
"score": "0.7130593",
"text": "def try_resolve_conflict\n # retry the merge\n working_changeset = self[nil]\n merge_changeset = working_changeset.parents.last\n \n # backup the current file to a .resolve file (bu... |
3a4d547b36434f414de27127a7ecdb34 | schedule associated with this voyage | [
{
"docid": "b192b93c9031b2c9fe50e03e5502a306",
"score": "0.0",
"text": "def initialize (number, schedule)\n # TODO: add exception checking for invalid (null) values\n\n @number = number\n @schedule = schedule\n end",
"title": ""
}
] | [
{
"docid": "6f37d58d9bd04d76182918df7859d42b",
"score": "0.7571595",
"text": "def schedule\n @schedule ||= Sidetiq::Schedule.new\n end",
"title": ""
},
{
"docid": "3fc1e42732db3ac8bd2d24dd021821d6",
"score": "0.7412966",
"text": "def schedule=(value)\n ... |
2606690f9fbaa5b83b34e5e569a3fc86 | Get the user who is logging in now | [
{
"docid": "3162a21eaecbeb8def6ecee6a1ea9b06",
"score": "0.0",
"text": "def current_user\n if ( user_id = session[:user_id])\n @current_user ||= User.find_by(id: user_id)\n elsif ( user_id = cookies.signed[:user_id])\n user = User.find_by(id: user_id)\n if user && user.authenticated... | [
{
"docid": "c5b38f29ef9f156b82201a8ba9a4f714",
"score": "0.7766984",
"text": "def user\n return Etc.getlogin\n end",
"title": ""
},
{
"docid": "331390a58f12fc379954854fa0d7d6fc",
"score": "0.75867474",
"text": "def logged_in_user\n if (!logged_in?)\n return Us... |
af630984682f1a0b5a68e6092af0d102 | Update properties of this object | [
{
"docid": "55fdd10eb33dae713395d345bea2fdd4",
"score": "0.0",
"text": "def update!(**args)\n @contexts = args[:contexts] if args.key?(:contexts)\n @disapproval_reasons = args[:disapproval_reasons] if args.key?(:disapproval_reasons)\n @status = args[:status] if args.key?(:stat... | [
{
"docid": "184b1b1ed771473d3eb9f338c0734c38",
"score": "0.73066413",
"text": "def update *args\n opts = args.extract_options!\n fill_properties opts\n self.save\n end",
"title": ""
},
{
"docid": "5076c5a88404ae72986f958710f5687a",
"score": "0.72631145",
"text": "def update... |
09ab5110ac3b3fa49136946e69674bfb | GET /planned_times/1 GET /planned_times/1.json | [
{
"docid": "3052313011945d263b5339fde522fbe6",
"score": "0.77009135",
"text": "def show\n @planned_time = PlannedTime.find(params[:id])\n\n respond_to do |format|\n format.html # show.html.erb\n format.json { render json: @planned_time }\n end\n end",
"title": ""
}
] | [
{
"docid": "ab76ebca5f4e218b1076cf694353cb74",
"score": "0.7012073",
"text": "def new\n @planned_time = PlannedTime.new\n\n respond_to do |format|\n format.html # new.html.erb\n format.json { render json: @planned_time }\n end\n end",
"title": ""
},
{
"docid": "7e30d713ba... |
98e3a179ed27135da2732409c7a80a19 | Remove comment to run! introduce_myself 56 Local Variables Confined to a specific environment Global variable: expression = "I am gorgeous" | [
{
"docid": "edc774e817b36afc9c39cec240a7821d",
"score": "0.65414864",
"text": "def introduce_myself\n # Local variable\n expression = \"I am a genious\"\n puts expression\nend",
"title": ""
}
] | [
{
"docid": "ab790e0e1ba45ff0aeb5434072ebf0bf",
"score": "0.618344",
"text": "def intro_to_variables\n expression = \"Ruby is Elegant.\" #Local Varible\n puts expression\nend",
"title": ""
},
{
"docid": "b149e39008f0aa27a649e73adea48285",
"score": "0.5783821",
"text": "def give_... |
09c1750244a32f5fb792b3475475060e | exercise6([1, 2, 3, 4, 5, 6, 7, 8, 9, 11,3]) | [
{
"docid": "4afdeaae0c7ede7a8a8fed8b2604d572",
"score": "0.0",
"text": "def exercise8\n hash = {:height => 170} # old syntax\n hash = {height: 170} # new syntax\nend",
"title": ""
}
] | [
{
"docid": "756762389eed8ab63adfac2a2bb4011a",
"score": "0.6702838",
"text": "def solution(number)\r\n num= (1..number-1).to_a\r\n arry=[]\r\n for i in num \r\n if i % 3 == 0 or i % 5 == 0\r\n arry << i \r\n end\r\n end\r\n p arry.sum \r\nend",
"title": ""
},
{
"docid": "... |
c657de4b70d266e9a3a784b999ea9e60 | Never trust parameters from the scary internet, only allow the white list through. | [
{
"docid": "ea2ce32a9f1076e3f550a4f60bf6e6e4",
"score": "0.0",
"text": "def sunsystem_params\n params.require(:sunsystem).permit(:y, :name)\n end",
"title": ""
}
] | [
{
"docid": "e164094e79744552ae1c53246ce8a56c",
"score": "0.6979893",
"text": "def strong_params\n params.require(:user).permit(param_whitelist)\n end",
"title": ""
},
{
"docid": "e662f0574b56baff056c6fc4d8aa1f47",
"score": "0.6781746",
"text": "def strong_params\n params.requi... |
a2099a77c85e91272ae2f9e35b937953 | Only allow a trusted parameter "white list" through. | [
{
"docid": "29559717caac59828448a8d09aa333ed",
"score": "0.0",
"text": "def transaction_params\n new_hash = {}\n params[:data][:attributes].each do |key, value|\n new_hash[key.to_s.gsub(\"-\",\"_\")] = value\n end\n params[:data][:relationships].each do |key, value|\n if va... | [
{
"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"... |
5979159062a3e8bf21fb6a3f4c119fa9 | Is the record valid? | [
{
"docid": "4141def7ed9fcaae1c5d8a8750d27513",
"score": "0.0",
"text": "def valid?\n !name.nil?\n end",
"title": ""
}
] | [
{
"docid": "80429a6a68067d7cdbc0d024d6872b8a",
"score": "0.7693334",
"text": "def valid?\n true\n end",
"title": ""
},
{
"docid": "3c91f4dcccf1fe91785da7cfdc4f9bad",
"score": "0.7670369",
"text": "def valid?\n true\n end",
"title": ""
},
{
"doc... |
af630984682f1a0b5a68e6092af0d102 | Update properties of this object | [
{
"docid": "3b4fa27320224b43fbebe21e92bf3f82",
"score": "0.0",
"text": "def update!(**args)\n @devtools_frame_id = args[:devtools_frame_id] if args.key?(:devtools_frame_id)\n @target_type = args[:target_type] if args.key?(:target_type)\n end",
"title": ""
}
] | [
{
"docid": "150fa2bdc1fc43d28ac45e2278a1f797",
"score": "0.7012677",
"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... |
59d213c9665871af26bca8a1cd945368 | POST /plans POST /plans.xml | [
{
"docid": "3849569ffd437b08785d4f04ef56e8d1",
"score": "0.65734375",
"text": "def create\n @plan = Plan.new(params[:plan])\n @plan.creator_id = current_user.id\n\n respond_to do |format|\n if @plan.save\n format.html { redirect_to(@plan, :notice => 'Successfully created plan') }\n ... | [
{
"docid": "f853bc95a50a1f388ebadd3f2d500b9c",
"score": "0.70898",
"text": "def create_plan(options = {})\n build_response(make_request(:post, url: 'plans', options: options))\n end",
"title": ""
},
{
"docid": "5aab92c2a47ef912bcda6abdf72ce959",
"score": "0.68864346",
"text":... |
2d5cac80b3ffde5a897ce1e1eaa3b392 | Retrieve Host information for a single vCenter server using the uid | [
{
"docid": "1ceb41aa169c18f92f5f64e6ec0cbe24",
"score": "0.55550975",
"text": "def get_vcenter_hosts(vcenter_id=nil, auth=nil, cert=nil)\n check_vcenter(vcenter_id)\n rest_get(\"#{@base_url}/compute/vcenters/#{vcenter_id}/hosts\", auth.nil? ? @auth_token : auth, cert.nil? ? @verify_cert : cert)\n ... | [
{
"docid": "a5c0b5f61061dd59db5f0356f4f7237d",
"score": "0.635925",
"text": "def host\n attributes['host']\n end",
"title": ""
},
{
"docid": "fe37db6f29b3c040eda4eca7338efb2b",
"score": "0.6356751",
"text": "def host_detail(scan_id, host_id)\n res = http_get(:uri=>\"... |
dea141a8afa23dc3efbc3ac7227cba2f | Returns a default scope instance. | [
{
"docid": "5e3f5512c1277fd2f7432b30f3ced86b",
"score": "0.7843011",
"text": "def default_scope\n Configuration::Scope.new(Configuration.new)\n end",
"title": ""
}
] | [
{
"docid": "7468db54a226dbc07e108eaaf99db06a",
"score": "0.7587832",
"text": "def default_scope; end",
"title": ""
},
{
"docid": "c285d3df3f8f3d2206d10c3d2b30322b",
"score": "0.7141401",
"text": "def default_object\n @_scope.respond_to?(:controller) ?\n instance_variable_... |
945c4a01bf631c224b8cbdc922f381f4 | PATCH/PUT /country_masters/1 PATCH/PUT /country_masters/1.json | [
{
"docid": "4e89d1180fd0fece7fd839f0917fc6ef",
"score": "0.6439613",
"text": "def update\n respond_to do |format|\n if @country_master.update(country_master_params)\n format.js { flash.now[:notice] = \"Country was successfully updated.\" }\n format.html { redirect_to @country_mast... | [
{
"docid": "fc135d4e69908dd12d4659fc2e89e9b4",
"score": "0.6657794",
"text": "def update\n @continents = [[\"Africa\",\"Africa\"],[\"America\",\"America\"],[\"Asia\",\"Asia\"],[\"Australia\",\"Australia\"],[\"Europe\",\"Europe\"]]\n\n respond_to do |format|\n if @country_master.update(country... |
a837929bfab49e4826237ed8f3a07b6a | need code to allow only Submission Admin or System Admin to do this | [
{
"docid": "831a5e5db01e7dae17a3a673436e8e3d",
"score": "0.0",
"text": "def remove_user_from_submission\n SubmissUser.delete_all('user_id = ' + params[:id] + ' and submission_id = ' + session[:submiss_id])\n redirect_to(:controller => 'submission', :action => 'list_users')\n end",
"title": ""... | [
{
"docid": "756e6a905a4f8d9c27470f60afe2478b",
"score": "0.7181017",
"text": "def edit_allowed\n if current_user.nil?\n return false\n end\n if current_user.admin?\n return true\n end\n if @submission.nil?\n return false\n end\n if @submission.user == current_user\n ... |
023c17f583bd5d52b4bae0d286a59b60 | Update the tiles animation | [
{
"docid": "2218a59ff3e7ec2b71310fdce2c6d01e",
"score": "0.71976393",
"text": "def update_tiles_animation\n result = false\n @board_tiles.each do |tile|\n temp = tile.update_animation\n result ||= temp # not called if result != nil\n end\n unless @no_animati... | [
{
"docid": "2d4cb58a7ccab516d546eb832543dfbb",
"score": "0.7420308",
"text": "def update_animation\n @frame_count = (@frame_count + 1) % @frame_interval\n if @frame_count == 0\n @frame = (@frame + 1) % 3\n if @frame > 2\n @layers[0].bitmap = @layer_bitmaps[1]#.clone\n else\n ... |
5a4e4a81ceaba12a751125e9c5220ea7 | GET /sex_eds/1 GET /sex_eds/1.json | [
{
"docid": "a81945373733e4951b987de6ea99f9a1",
"score": "0.0",
"text": "def show\n end",
"title": ""
}
] | [
{
"docid": "fcd5bc24a2ca87c0d1436d9fec12cd5e",
"score": "0.7394737",
"text": "def show\n @sex = Sex.find(params[:id])\n\n respond_to do |format|\n format.html # show.html.erb\n format.json { render :json => @sex }\n end\n end",
"title": ""
},
{
"docid": "9c4aef10f6ac717c9... |
5a912000f4c927d9eb761e2c26992540 | Do the actual substitution of credential values into the bundle | [
{
"docid": "00f0c84139d3598ebf1af1ea2c04df7c",
"score": "0.0",
"text": "def substitute_parameters\n @executables_inputs.each_pair do |exe, inputs|\n inputs.each_pair do |name, value|\n case exe\n when RightScale::RecipeInstantiation\n exe.attributes[name] = v... | [
{
"docid": "e53ddb36203e0ea96d5d5a36c98cebcb",
"score": "0.6338263",
"text": "def credentials=(_arg0); end",
"title": ""
},
{
"docid": "e53ddb36203e0ea96d5d5a36c98cebcb",
"score": "0.6338263",
"text": "def credentials=(_arg0); end",
"title": ""
},
{
"docid": "36c28f561184... |
6ad702f50ca52aab29e51fc7a9887d8b | List of default builders for this scaper === Return Array:: Default builders | [
{
"docid": "1b2a7ffe62739434dec5d1082942a657",
"score": "0.7127475",
"text": "def default_builders\n [RightScraper::Builders::Filesystem]\n end",
"title": ""
}
] | [
{
"docid": "e5bd81d85db2b4442f431316e5427cea",
"score": "0.7352258",
"text": "def builders\n return @options[:builders]\n end",
"title": ""
},
{
"docid": "b52030512607d3d1c0e9aa28167cb1bf",
"score": "0.71104956",
"text": "def default_builders\n [RightScraper::Builders:... |
ab075cfd6db5278f83ab87b4a72bd8f0 | Returns the value of the `effective_user` attribute. | [
{
"docid": "84574d04b3b2e36185cbc1926873ac52",
"score": "0.8695124",
"text": "def effective_user\n @effective_user\n end",
"title": ""
}
] | [
{
"docid": "56ea0ab552944d70a2bbdfa8500de4dd",
"score": "0.7349155",
"text": "def effective_user\n current_user || User.find(user_id_from_token)\n end",
"title": ""
},
{
"docid": "cf3767c0fa84cc3263b195dfffb20443",
"score": "0.7233826",
"text": "def effective_user\n us... |
bf97fc8dd2135097a45106007ef4c71f | displays movies based on sorting parameters | [
{
"docid": "5364168e4d65255203761642f362dc00",
"score": "0.71743625",
"text": "def display_movies\n\n # get all info from params[] and session[]\n @sort = params[:sort_by] || session[:sort_by]\n @all_ratings = Movie.all_ratings\n @selected_ratings = params[:ratings] || session[:ratings] || {... | [
{
"docid": "28c4a4abb234c610acff36bca10a90f8",
"score": "0.8074302",
"text": "def index\n # displays the movies based on what we are sorting by \n display_movies\n end",
"title": ""
},
{
"docid": "7d423d36d62713b09a8ef1b485df27d5",
"score": "0.77384365",
"text": "def display_a... |
87106e9c5447a9191376235d6bd70b54 | Defaults state to RacingAssociation.current.state, date to today, name to New Event mmddyyyy NumberIssuer: RacingAssociation.current.short_name Child events use their parent's values unless explicity overriden. And you cannot override parent values by passing in blank or nil attributes to initialize, as there is no way... | [
{
"docid": "c2b28f59348fd802d2e417bddaae38b4",
"score": "0.60128385",
"text": "def set_defaults\n if new_record?\n set_propogated_attributes\n self.bar_points = default_bar_points if self[:bar_points].nil?\n self.date = default_date if self[:date].nil?\n... | [
{
"docid": "d799a6523d449e769950747df45e5a68",
"score": "0.79228294",
"text": "def initialize(attributes = nil)\n super\n if state == nil then write_attribute(:state, ASSOCIATION.state) end\n if self.date.nil?\n self.date = Date.today\n end\n if name == nil || name == \"\"\n if ... |
ab72459783fe7a5928a4ec579341e346 | I worked on this challenge with Jen Tutu. 2. Pseudocode 3. Initial Solution | [
{
"docid": "27c597b9bb0b5568dbca3501404e7bca",
"score": "0.0",
"text": "def in_words(num)\nif num < 0 || num > 100\n raise \"Please insert number between 0 & 100 inclusive\"\nend\nnum_words_hash = {0=>\"zero\",1=>\"one\",2=>\"two\",3=>\"three\",4=>\"four\",5=>\"five\",6=>\"six\",7=>\"seven\",8=>\"eig... | [
{
"docid": "4f7342b3592ec209d29fa49774767bb7",
"score": "0.6684842",
"text": "def solve\n d = %w(1 2 3 4 5 6 7 8 9).permutation.map {|i| i.join}.select {|i| i >= '918273645'}.reverse\n \n d.each do |i|\n 1.upto( 4 ) do |j|\n s = i[0, j]\n n = s.to_i\n\n 2.upto( 5 ) do |k|... |
8fe5cc0e192b287ccd8b3a1d129c8428 | ref. Documentation for Faker gem | [
{
"docid": "7063077ccb501f89212c15f389987e0e",
"score": "0.0",
"text": "def db_seed\n 10.times do \n \tProduct.create(brand: Faker::Company.name, name: Faker::App.name, price: Faker::Commerce.price)\n end\nend",
"title": ""
}
] | [
{
"docid": "09596245bc56904c01b607c25b472ed5",
"score": "0.67795247",
"text": "def full_name\n Faker::Name.name\n end",
"title": ""
},
{
"docid": "09596245bc56904c01b607c25b472ed5",
"score": "0.67795247",
"text": "def full_name\n Faker::Name.name\n end",
"title": ... |
c657de4b70d266e9a3a784b999ea9e60 | Never trust parameters from the scary internet, only allow the white list through. | [
{
"docid": "abbb873b49eba8436f01523e81dec519",
"score": "0.0",
"text": "def alegeri_user_tema_params\n params.require(:alegeri_user_tema).permit(:user_id, :tema_id, :status_profesor, :status_student)\n end",
"title": ""
}
] | [
{
"docid": "e164094e79744552ae1c53246ce8a56c",
"score": "0.69792545",
"text": "def strong_params\n params.require(:user).permit(param_whitelist)\n end",
"title": ""
},
{
"docid": "e662f0574b56baff056c6fc4d8aa1f47",
"score": "0.6781151",
"text": "def strong_params\n params.requ... |
a020ceb472a0f5859d01eb29d27a948c | Creates the thumbnail and returns it. Author:: Yann Azoury Version:: 8 Last Update:: 20130903 16:56:08 UTC Status:: Validated | [
{
"docid": "16904acaa0dd029d312fb9438c753f41",
"score": "0.6592684",
"text": "def thumbnail(sid, opts={})\r\n\r\n maxwidth\t= (opts[:maxwidth] || 128).to_f\r\n maxheight\t= (opts[:maxheight] || 128).to_f\r\n aspectratio\t= maxwidth / maxheight\r\n path\t\t= nil\r\n dest_path\t= nil\r\n ... | [
{
"docid": "10407256678f8161b733e80fd2718aee",
"score": "0.85160404",
"text": "def create_thumbnail\n return create_resized_pic(THUMBNAIL_HEIGHT, THUMBNAIL_WIDTH, SIZE_THUMBNAIL)\n end",
"title": ""
},
{
"docid": "345f42adb41b18d839b9d7e468340f61",
"score": "0.8278642",
"text": "... |
fa533e41c417635a16b71ef8131d9618 | lexer rule while! (WHILE) (in Hephaestus.g) | [
{
"docid": "96f43dbd0678c9ba0113349727573418",
"score": "0.84320176",
"text": "def while!\n # -> uncomment the next line to manually enable rule tracing\n # trace_in( __method__, 20 )\n\n\n\n type = WHILE\n channel = ANTLR3::DEFAULT_CHANNEL\n # - - - - label initialization - - - -... | [
{
"docid": "9148a2c2faa87897db65fd3bffe39f06",
"score": "0.8661442",
"text": "def while!\n # -> uncomment the next line to manually enable rule tracing\n # trace_in( __method__, 29 )\n\n type = WHILE\n channel = ANTLR3::DEFAULT_CHANNEL\n\n \n # - - - - main rule block - - -... |
e8c66b596c76d3acc991cc095f4c92ce | Set the value of the Playlist input for this Choreo. | [
{
"docid": "2789a58093756c0a9e00968acb76db17",
"score": "0.77324545",
"text": "def set_Playlist(value)\n set_input(\"Playlist\", value)\n end",
"title": ""
}
] | [
{
"docid": "2382fd2d5fb55b499d2911a65ff70996",
"score": "0.7247484",
"text": "def set_playlist\n @playlist = Playlist.find params[:id]\n end",
"title": ""
},
{
"docid": "57cbf482863bb9019cd67d9267f1cc2f",
"score": "0.7055038",
"text": "def set_playlist\n @playlist = ... |
31f6fc35594c225317e004d49f9b5a44 | Load user info, statuses, friends/followers unless we already got them | [
{
"docid": "b4cc59c977ebcd203c41a3f97bdfc9c2",
"score": "0.66631323",
"text": "def load_user_data(username_or_id)\n if (File.exist? USERS_DIR + \"%s.txt\" % username_or_id.to_s) or (File.exist? USERS_SUSPENDED_DIR + \"%s.txt\" % username_or_id.to_s) or (File.symlink? USERS_SN_DIR + \"%s.txt\" % usernam... | [
{
"docid": "c00bc736b251202066e293f307704a4a",
"score": "0.7023562",
"text": "def load_info\n unless @info_loaded\n xml = Base.request 'user.getinfo', :user => @name\n if xml.root['status'] == 'ok' and xml.root.children.first.name == 'user'\n load_from_xml xml.root.children.f... |
0f73ad1433f958cc0c09c393ca546305 | def index perform a paginated query: | [
{
"docid": "3d9fb0770d07252eb7a7db6738474b00",
"score": "0.0",
"text": "def current\n redirect_to current_user\n end",
"title": ""
}
] | [
{
"docid": "70313bd35d74e55f7ff028297ba20e49",
"score": "0.77889216",
"text": "def index\n begin\n \n @parcel = get_paginated_records_for(\n :for => Account,\n :start_index => params[:start_index],\n :max_results => params[:max_results],\n :order_by ... |
26ae1408d114ffc1aba68a158343c609 | When you need to collect or merge objects over a complex enumeration use a temporary variable to hold the collection or merged value | [
{
"docid": "9ee58dab2e2f86a845aad90184a2731b",
"score": "0.0",
"text": "def deep_copy\n answer = []\n %w[1 2 3 4 5 6].each do |elem|\n answer << elem.dup\n end\n answer\nend",
"title": ""
}
] | [
{
"docid": "fa32d8dec01736128f60416a02ba6c31",
"score": "0.6095519",
"text": "def coerce(value)\n coerced = super\n return coerced unless coerced.respond_to?(:each_with_object)\n coerced.each_with_object(new_collection) do |entry, collection|\n coerce_and_append_mem... |
6bfa1acd9b1ee160ac00b5631f9b8ea4 | POST /arena_services POST /arena_services.json | [
{
"docid": "6d3d06ea9d59671cb1d298f79e2554f7",
"score": "0.76222396",
"text": "def create\n @arena_service = ArenaService.new(arena_service_params)\n\n respond_to do |format|\n if @arena_service.save\n format.html { redirect_to @arena_service, notice: 'Arena service was successfully cr... | [
{
"docid": "44d1c1a6d5f4ab2e9dc2fedb734830be",
"score": "0.6794736",
"text": "def create\n @client.service_create(params[:id], params[:app_id], params[:vendor_id].pop)\n @service = @client.service(params[:id], params[:app_id])\n\n respond_to do |format|\n format.html { redirect_to app_se... |
abfaea599997c0f6b120b5c3d918554c | PATCH/PUT /insurances/1 PATCH/PUT /insurances/1.json | [
{
"docid": "7651a889ad6ac227b3687364f1217316",
"score": "0.63678324",
"text": "def update\n # @insurance = load_insurance\n\n respond_to do |format|\n if @insurance.update(insurance_params)\n format.html { redirect_to @insurance, success: t('activerecord.messages.successfull.updated', ... | [
{
"docid": "a54a5b4d0a8ba68ecc468dbb77c14ed1",
"score": "0.6768296",
"text": "def update\n @interest = Interest.find(params[:id])\n \n respond_to do |format|\n if @interest.update_attributes(params[:interest])\n format.json { head :ok }\n else\n format.json { render :jso... |
af11c888cd6f264b489392190e7d5e4d | PATCH/PUT /survey_results/1 PATCH/PUT /survey_results/1.json | [
{
"docid": "8f34e6ba00bc1e5e9c7810ff4196d803",
"score": "0.6957329",
"text": "def update\n respond_to do |format|\n if @survey_result.update(survey_result_params)\n format.html { redirect_to @survey_result, notice: 'Survey result was successfully updated.' }\n format.json {... | [
{
"docid": "29fd4b965be1cf47624ba4497990cee6",
"score": "0.7057146",
"text": "def update\n survey = Survey.find(params[:id])\n survey.update(JSON.parse(params[:survey]))\n render :json => survey.to_json\n end",
"title": ""
},
{
"docid": "5429babedb6c82b6a013205f341d9f91",
"scor... |
5bc6b2fe00cd74c4244cc16e4e50200a | Returns a list of all files that have been added, modified or renamed. `git.modified_files` might contain paths that already have been renamed, so we need to remove them from the list. Considering these changes: A new_file.rb D deleted_file.rb M modified_file.rb R renamed_file_before.rb > renamed_file_after.rb it will ... | [
{
"docid": "529b3be2878ab223cdd1dbdcecc57e0d",
"score": "0.79878557",
"text": "def all_changed_files\n Set.new\n .merge(git.added_files.to_a)\n .merge(git.modified_files.to_a)\n .merge(git.renamed_files.map { |x| x[:after] })\n .subtract(git.renamed_files.m... | [
{
"docid": "4c42395e98df1c25a082bb1a4870212c",
"score": "0.8049185",
"text": "def get_modified_files_list()\n\t\tmodified_files = Array.new\n\t\tDir.open(@currentDir).each do |file|\n\t\t\tif !file.start_with?('@') && !file.start_with?('.')\n\t\t\t\ttype = File.extname(file)\n\t\t\t\tfile.slice!(type)\n... |
0c6b424938a75728d537cc07a1158246 | Finds all of the positive integers that evenly divide a given positive integer n, excluding n itself. Returns an array of positive integers sorted in descending order. | [
{
"docid": "90abdf0d3c9f552cf6e59225b2845813",
"score": "0.0",
"text": "def proper_divisors\n self.factors << 1\n end",
"title": ""
}
] | [
{
"docid": "599f47664fa36f67a98883c32f85c849",
"score": "0.7552622",
"text": "def divisors(n)\n results = []\n max = Math.sqrt(n).floor\n (1..(max)).each do |div|\n # next if results.include?(div)\n x, y = n.divmod(div)\n results << x << div if y == 0\n end\n results.uniq.sort\nend",
"... |
0595b3d83ffb79b2a1a337d67a1578d5 | POST /holydays POST /holydays.json | [
{
"docid": "a5ba4931d0819ea79d047b45a8dc2f60",
"score": "0.7129004",
"text": "def create\n @holyday = Holyday.new(holyday_params)\n\n respond_to do |format|\n if @holyday.save\n format.html { redirect_to @holyday, notice: 'Holyday was successfully created.' }\n format.json { ren... | [
{
"docid": "0168dc8cf7776591133ac8a5823685cf",
"score": "0.6956104",
"text": "def create\n @hollyday = Hollyday.new(params[:hollyday])\n\n respond_to do |format|\n if @hollyday.save\n format.html { redirect_to @hollyday, :notice => 'Hollyday was successfully created.' }\n format... |
e561e11bcf379ef5dc139c210017366b | Only allow a list of trusted parameters through. | [
{
"docid": "a7aae295c9f9d39861adf9e4a652d16b",
"score": "0.0",
"text": "def transaction_params\n params.require(:transaction).permit(:title, :amount, :user_id, :group_id)\n end",
"title": ""
}
] | [
{
"docid": "3663f9efd3f3bbf73f4830949ab0522b",
"score": "0.74768823",
"text": "def whitelisted_params\n super\n end",
"title": ""
},
{
"docid": "36956168ba2889cff7bf17d9f1db41b8",
"score": "0.71700543",
"text": "def set_param_whitelist(*param_list)\n self.param_whitelist... |
e67310e028583d985203689ce9aae461 | DELETE /events/1 DELETE /events/1.xml | [
{
"docid": "85463be940c5cd78fed2a2e56e0cf11b",
"score": "0.671202",
"text": "def destroy\n @event = Event.find(params[:id])\n @event.destroy\n\n respond_to do |format|\n format.html { redirect_to(admin_magazine_events_url, :notice => 'Event został prawidłowo usunięty') }\n format.xml ... | [
{
"docid": "ec97fe041915de0db875875b05c1d323",
"score": "0.7211856",
"text": "def destroy\n @event1 = Event1.find(params[:id])\n @event1.destroy\n\n respond_to do |format|\n format.html { redirect_to(event1s_url) }\n format.xml { head :ok }\n end\n end",
"title": ""
},
{
... |
f334f2742a32bb2c27203923343fdf6a | Set the value of the CouponId input for this Choreo. | [
{
"docid": "ee09a80d3dffb39702415ee7fb85266b",
"score": "0.74439865",
"text": "def set_CouponId(value)\n set_input(\"CouponId\", value)\n end",
"title": ""
}
] | [
{
"docid": "bfadda488b4138d1ab48923c8cbfe744",
"score": "0.6864021",
"text": "def set_CouponID(value)\n set_input(\"CouponID\", value)\n end",
"title": ""
},
{
"docid": "bfadda488b4138d1ab48923c8cbfe744",
"score": "0.6864021",
"text": "def set_CouponID(value)\n set... |
f66910a562c64017c128286a83dd6b7a | Assigns the hits. This hits assignment is temporary. It is not saved in the DB for now. | [
{
"docid": "f38777fabb789522962ebad01a8b63c3",
"score": "0.7571744",
"text": "def assign_hits!( hits )\n if hits > 0\n if resistance\n assign_hits_with_resistance!( hits )\n else\n assign_hits_without_resistance!( hits )\n end\n end\n end",
"title"... | [
{
"docid": "cd7489f772382eb9a57848ecc449c005",
"score": "0.6830942",
"text": "def hits=(value)\n @hits = value\n end",
"title": ""
},
{
"docid": "0c016f29de25a1d0e6a3708751e0f1ce",
"score": "0.6734196",
"text": "def make_hits\n @hits.hits = @dist.hits\n ... |
077d8018cc3e0c1c3dd72c2e1394299c | Team Benutzer Testet, ob ein Administrator eingeloggt ist | [
{
"docid": "d1162d1e360d3649780a2e3f1e8ad576",
"score": "0.0",
"text": "def check_admin\n @admin = session[:admin]\n if @admin!=true\n if session[:current_user_id].nil?\n redirect_to root_url, :notice => \"Du bist kein Administrator!\"\n else\n redirect_to curri... | [
{
"docid": "6fb47dfd00c161afbe4a36cfd9d6b2f1",
"score": "0.74205613",
"text": "def test_create_team_manager\n buser = User.find_by_login \"mark\"\n assert_not_nil buser\n assert buser.team_admin?\n assert !buser.league_admin?\n assert !buser.scout_admin?\n end",
"title": ""
},
{
... |
7a2c1cbcb812a6b1ee59d6d0b7b6ad2a | Overriden in prepended modules. | [
{
"docid": "185f142216f92bc634fe0dd0afba0a7d",
"score": "0.0",
"text": "def lock(**options)\n end",
"title": ""
}
] | [
{
"docid": "0c173795977c867082c6b1b5ddc84405",
"score": "0.72479916",
"text": "def supports_module_prepend?; end",
"title": ""
},
{
"docid": "af70ab9d13c6ea06357da91184b1808d",
"score": "0.6990988",
"text": "def on_module_created(instance)\n\tend",
"title": ""
},
{
"docid... |
6a31982f4ced748c1e27d68b301fe132 | GET /users/new GET /users/new.json | [
{
"docid": "9703cd42cab89c818d250b9b4da4be6a",
"score": "0.0",
"text": "def new\n type = params[:param]\n if type == nil\n add_breadcrumb \"Support Staff\", \"support_users_path\"\n add_breadcrumb \"Add new\", ''\n else \n systype = type+'type'\n systypename = ENV[systype]\... | [
{
"docid": "10579c3d3cc989fec15a1ace9f9c505e",
"score": "0.8287397",
"text": "def new\n @newuser = Newuser.new\n\n respond_to do |format|\n format.html # new.html.erb\n format.json { render json: @newuser }\n end\n end",
"title": ""
},
{
"docid": "4e4b24e3210b5e1807092741... |
b6f2c9fac69596c88a898b9835191a16 | Perform a count operation based on the current view. If the view can be reduced, the reduce will be performed and return the first value. This is okay for most simple queries, but may provide unexpected results if your reduce method does not calculate the total number of documents in a result set. Trying to use this me... | [
{
"docid": "0f34d99216d2fcd8474b4f80397dd5fa",
"score": "0.8759326",
"text": "def count\n raise \"View#count cannot be used with group options\" if query[:group]\n if can_reduce?\n row = reduce.skip(0).limit(1).rows.first\n row.nil? ? 0 : row.value\n else... | [
{
"docid": "806b39bad24f1eaa373ee10076bfec2c",
"score": "0.7597779",
"text": "def count(view = :all, *args, &block)\n if view == :all\n return super({}, *args) \n end\n \n if has_view?(view)\n query = args.shift || {}\n result = view(view, {:reduce ... |
d1b9a190b45b9816491b042cbbda65ef | POST /countries POST /countries.xml | [
{
"docid": "faff9501cabd97ea4cbd3ff3038e74b5",
"score": "0.6202003",
"text": "def create\n @country = Country.new(params[:country])\n\n respond_to do |format|\n if @country.save\n format.html { redirect_to(@country, :notice => 'Country was successfully created.') }\n format.xml ... | [
{
"docid": "e0c194ca135333f831515e5db3ceb2b9",
"score": "0.6797983",
"text": "def create\n @countries = Countries.new(params[:countries])\n\n respond_to do |format|\n if @countries.save\n flash[:notice] = 'Countries was successfully created.'\n format.html { redirect_to(@countri... |
563518816314ea05bb8dd81396e43978 | Default implementation for build_failed_hook. To use this hook, define a build_failed_hook(build) method in your plugin Params: build: build that holds info that can be used for your plugins | [
{
"docid": "eb19365938730c0249a2eb7a7bb66f0d",
"score": "0.81635857",
"text": "def build_failed_hook(build)\n {not_implemented: 'Build Failed Hook'}\n end",
"title": ""
}
] | [
{
"docid": "adce8bdd84bbc3d1a203c958680a6e72",
"score": "0.8610804",
"text": "def run_build_failed_hook(build)\n run_hook(build.project) do |plugin|\n plugin.build_failed_hook(build)\n end\n end",
"title": ""
},
{
"docid": "684ccd5149c2cb2cfbbbf682d35be869",
"score": "0.78394... |
8bf6c4e26408b60a27d4dbdd6a553a38 | POST /bets POST /bets.json | [
{
"docid": "cece771305cc1c1b7318d36582e3ccec",
"score": "0.5983531",
"text": "def create\n @bet = Bet.new(bet_params)\n respond_to do |format|\n if @bet.save\n format.html { redirect_to new_bet_position_path(@bet) }\n format.html { render json: @bet, status: :created, location: ... | [
{
"docid": "4d61dd01a1b5713fd86cc2b5c6d0f127",
"score": "0.6470212",
"text": "def create\n @beet = Beet.new(params[:beet])\n\n respond_to do |format|\n if @beet.save\n format.html { redirect_to @beet, notice: 'Beet was successfully created.' }\n format.json { render json: @beet,... |
28f3ca590b1f6c8aa3503be6e3ae9f76 | Gets the remote layer ID for this view | [
{
"docid": "de230f9dc596ac32f338b0828aa60781",
"score": "0.74130785",
"text": "def layer_id()\n # We only need to fetch the layer ID once since it never changes for a given instance\n @layer_id = @driver.get_sc_property_string_value(abs_path, \"layerId\") if @layer_id.nil?\n r... | [
{
"docid": "0cf97abcc4e1ef4b7a69911d9639cdc1",
"score": "0.67926687",
"text": "def id\n remote[:id]\n end",
"title": ""
},
{
"docid": "21b43bcb884cc4ed182931530e1f8e7b",
"score": "0.6463194",
"text": "def _remote_id\n self.class.find(unique_by_query(self.serialize))&.i... |
ddc0444c3e98bbfefd3db698bcf8082b | Setting up a Mock to simulate the requests. | [
{
"docid": "b3c0e56539e96c96eb699857bb73e8e9",
"score": "0.78294784",
"text": "def setup\n @requester = Rack::MockRequest.new(SampleApp)\n end",
"title": ""
}
] | [
{
"docid": "87e8b57e47690498d8848ed8e250d5d6",
"score": "0.7825937",
"text": "def setup\n @requester = Rack::MockRequest.new(App)\n end",
"title": ""
},
{
"docid": "87e8b57e47690498d8848ed8e250d5d6",
"score": "0.7825937",
"text": "def setup\n @requester = Rack::MockRequest.new... |
d3d5a1b109e2bcec75a6ecf62d4f0b7b | This is the path of the URI, suitable for accessing directly from the shell. | [
{
"docid": "4fe14dfa69827d3f6da118ac042dee15",
"score": "0.80574805",
"text": "def shell_path\n self.class.human_readable(@uri.path)\n end",
"title": ""
}
] | [
{
"docid": "cb1301fade8037c4240b1217d65d40a5",
"score": "0.7957065",
"text": "def path\n @uri.path if @uri\n end",
"title": ""
},
{
"docid": "9182af04b009e1039f0c2c713554038f",
"score": "0.7939125",
"text": "def path\n URI.parse(uri).path\n end",
"title": ""
},
... |
f74c29bdfc4a183e1ec1b91334cd5be2 | Use callbacks to share common setup or constraints between actions. | [
{
"docid": "2deaaa52d2254154962ee26fa775629f",
"score": "0.0",
"text": "def set_budget\n @budget = Budget.find(params[:id])\n end",
"title": ""
}
] | [
{
"docid": "bd89022716e537628dd314fd23858181",
"score": "0.6163163",
"text": "def set_required_actions\n # TODO: check what fields change to asign required fields\n end",
"title": ""
},
{
"docid": "3db61e749c16d53a52f73ba0492108e9",
"score": "0.6045976",
"text": "def action_hook;... |
0d0bae6e3f3f93c90e94bf581b3d2ac7 | GET /book_playlists/1 GET /book_playlists/1.json | [
{
"docid": "a81945373733e4951b987de6ea99f9a1",
"score": "0.0",
"text": "def show\n end",
"title": ""
}
] | [
{
"docid": "f453ea6c3a953a3201a89790009fe38a",
"score": "0.74584883",
"text": "def playlists\n playlists = @user.playlists\n render json: playlists\n end",
"title": ""
},
{
"docid": "506b5a47de14166ea6258a61195307d7",
"score": "0.72878176",
"text": "def index\n @playlists =... |
b2cb1342e864ef5192908b0e70a881b5 | PUT /projects/1 PUT /projects/1.json | [
{
"docid": "b1041f7ce8a9b7c23155e0eb7753fa1b",
"score": "0.0",
"text": "def update\n @project = Project.find(params[:id])\n @project.data = params[:prj]\n @project.lock_version = params[:lock_version]\n last_edit_user = @project.last_edit_user\n @project.last_edit_user = current_user.emai... | [
{
"docid": "e7f8ee5641911e33622dcbebcce61d0d",
"score": "0.75496864",
"text": "def update\n @project.update_attributes!(project_params)\n json_response(@project)\n end",
"title": ""
},
{
"docid": "1ccd064902bda09d4ae7f92d826f3d43",
"score": "0.7390651",
"text": "def update\n ... |
0b43ed4681b2a004cb5955369b15443c | Preps input data from New User List | [
{
"docid": "82d2e496495b5693ec8df8192432e20a",
"score": "0.0",
"text": "def process_template(header, row)\n\n # Assemble User data from input file\n this_user = {}\n this_username_field = row[header[0]]\n this_lastname_field = row[header[1]]\n this_firstname_field = row... | [
{
"docid": "d164c081f6ab99848ce009527925b05d",
"score": "0.65124285",
"text": "def enter_users(test_data)\n test_users = test_data[CoreUseOfCollectionsData::USER_GRP.name]\n hide_notifications_bar\n test_users = [{CoreUseOfCollectionsData::USER.name => '', CoreUseOfCollectionsData::USER_TYPE.na... |
227252e4df3220ee8f0a297688b008a9 | PATCH/PUT /insurance_companies/1 PATCH/PUT /insurance_companies/1.json | [
{
"docid": "1b415915fed3839dba79ed7da81b579b",
"score": "0.0",
"text": "def update\n respond_to do |format|\n if @insurance_company.update(insurance_company_params)\n @insurance_company.track 'Note Created', current_user, @insurance_company.notes.last if insurance_company_params[:notes_at... | [
{
"docid": "1c35f89f4e93251128bbf53c08021b3d",
"score": "0.7406212",
"text": "def update\n @company_id = company_params[:company_id]\n @reponse = HTTParty.put(\"https://rails-api-ipo.herokuapp.com/api/v1/companies/#{@company_id}.json\",\n :body => {:company_name => company_params[:company_name]... |
b10035a1a37e55021973405167042406 | GET /feedbacks/1 GET /feedbacks/1.json | [
{
"docid": "6cb5882e2ec062b1ccde00b57e87bb95",
"score": "0.6442199",
"text": "def show\n @feedback = Feedback.find(params[:id])\n @idea_posting = IdeaPosting.find(params[:idea_posting_id])\n respond_to do |format|\n format.html # show.html.erb\n format.json { render json: @feedback }\... | [
{
"docid": "401d463a960f141742d971657b98b30d",
"score": "0.77464354",
"text": "def show\n @feedback = Feedback.find(params[:id])\n render json: @feedback\n end",
"title": ""
},
{
"docid": "11e609d060a674d59be2e683d430e530",
"score": "0.7709457",
"text": "def index\n @feedba... |
eea0fc458fabb11a2f1b7867e9e26075 | GET /admins GET /admins.json | [
{
"docid": "386bd1aa94a28d877d6c96875ec3138d",
"score": "0.6062031",
"text": "def index\n add_breadcrumb I18n.t('navs.backend.admins_index'), :backend_admins_path\n @qr = params.fetch(:query){Hash.new}.permit(:key, :status)\n @qr = @qr.select { |k, v| { k => v } unless v.blank? }\n\n ... | [
{
"docid": "60b96471a6471e61d945a2b646037c74",
"score": "0.7761844",
"text": "def index\n @admins = Admin.all\n\n render json: @admins\n end",
"title": ""
},
{
"docid": "5490186ba13c57e69f3b5c7c57e8a94a",
"score": "0.7712036",
"text": "def list_admins\n service_response = M... |
0efd3f7ac29fa54a6c14e1f76838cb39 | GET /appreciation_merits/new GET /appreciation_merits/new.json | [
{
"docid": "35d3c679625e5ee6d575854e79aea21b",
"score": "0.8036629",
"text": "def new\n @appreciation_merit = AppreciationMerit.new\n\n respond_to do |format|\n format.html # new.html.erb\n format.json { render json: @appreciation_merit }\n end\n end",
"title": ""
}
] | [
{
"docid": "46983aa9edc6eadc7396a0afe20b1329",
"score": "0.73521143",
"text": "def new\n @appreciation = Appreciation.new\n\n respond_to do |format|\n format.html # new.html.erb\n format.json { render json: @appreciation }\n end\n end",
"title": ""
},
{
"docid": "e33b0f5a... |
1420b0babf7d9ea1a411ac9173747585 | DELETE /fabrics/1 DELETE /fabrics/1.json | [
{
"docid": "278b476c966f9f2bf980557510008421",
"score": "0.69328415",
"text": "def destroy\n @fabric.destroy\n respond_to do |format|\n format.html { redirect_to fabrics_url, notice: 'Fabric was successfully destroyed.' }\n format.json { head :no_content }\n end\n end",
"title": ... | [
{
"docid": "0b24cbc6495df3923ea7679acbcd8deb",
"score": "0.6866191",
"text": "def delete_floor_plan(args = {}) \n delete(\"/files.json/floorplan/images\", args)\nend",
"title": ""
},
{
"docid": "b1a17c1ee1af05c79fe156622df44818",
"score": "0.6856118",
"text": "def delete(path)\n ... |
07edf9faf59efafa684186e1c4fa6758 | makes sure to either `p my_output` or `puts my_output`. `p _variablename_` prints the full Object `puts _variablename_` prints the Object.to_s (.toString()) to run, just `ruby reps.rb` 1 Write a function `lengths` that accepts a single parameter as an argument, namely an array of strings. The function should return an ... | [
{
"docid": "08fc2c9902a90c891463062f3f78203d",
"score": "0.5840359",
"text": "def lengths arr \n\tother = []\n\tarr.each do |numbers|\n\t\tresult = numbers.length\n\t\tother.push(result)\n\tend\n\tother\nend",
"title": ""
}
] | [
{
"docid": "fefe4182b6737a2e93f6f4cb4252f93e",
"score": "0.7200333",
"text": "def lengths array_of_strings\n\tp array_of_strings.map{|elem| elem.length}\nend",
"title": ""
},
{
"docid": "331b1cb3de06e160fe37813d681daa24",
"score": "0.713072",
"text": "def lengths(words)\n numbers = ... |
2d9348995bbd34f0e1a4b1de2453cb96 | return true if the user is logged in, false otherwise. | [
{
"docid": "be70d9e2f2572b85d49bb87417a80770",
"score": "0.0",
"text": "def logged_in?\n !current_user.nil?\n end",
"title": ""
}
] | [
{
"docid": "31fb4132def094f5ed9925db932d58eb",
"score": "0.8977632",
"text": "def user_is_logged_in\n if session[:current_user] != nil\n return true\n else\n return false\n end\n end",
"title": ""
},
{
"docid": "5e8797ab67adadcb571fb446716121fe",
"score": "0.8950193",... |
2f2df034b479e6671f32e8201253da26 | GET /pitcher_list_rankings GET /pitcher_list_rankings.json | [
{
"docid": "dd5ab4fed93eada3a8a95883f88647f4",
"score": "0.8262715",
"text": "def index\n @pitcher_list_rankings = get_rankings\n @pitcher_list_rankings_stub = []\n end",
"title": ""
}
] | [
{
"docid": "1d85045c983e2cae068a814a77637301",
"score": "0.7430276",
"text": "def show_rankings()\n players = Player.all\n rankings = Array.new\n players.each do |r|\n player << r.id\n played = Result.where(:player_id => player).count\n ranking = Ranking.where(:player_id => playe... |
a7b21f902c1825e200e45f57ce96f2f6 | The unique species within the zoo | [
{
"docid": "3741f337e59eb6c7c5f1be41f795c086",
"score": "0.7009214",
"text": "def animal_species\n animals.map do |animal| \n # binding.pry \n animal.species\n end.uniq\n end",
"title": ""
}
] | [
{
"docid": "ffbf14fd1b7b4ecca4eceae5f2708ecc",
"score": "0.772136",
"text": "def animal_species\n arr = Animal.all.select do |a|\n a.zoo == self\n end\n arr.collect do |a|\n a.species\n end.uniq\n end",
"title": ""
},
{
"docid": "d12b1ed7e... |
b724ca343c6b7c4c4a8206661d6dab70 | GET /posts GET /posts.json | [
{
"docid": "5b1851ee89a0688b07caf2f8836bc8e0",
"score": "0.0",
"text": "def index\n @visit = params[:visit]\n @year = params[:year].present? ? params[:year] : ''\n if params[:section_id].present?\n @section = Section.joins(:category).where('sections.id = ? and categories.link = ?', params[... | [
{
"docid": "915c0178f9e4347098d8a463c2cbe6b0",
"score": "0.7865315",
"text": "def show\n @posts = Post.find(params[:id])\n render json: @posts\n end",
"title": ""
},
{
"docid": "9e4bfaa87507d05255fbaeadc1ecb1d6",
"score": "0.7494904",
"text": "def index\n @posts = Post.all\... |
81115024c7c65da1b2ce8f778f64e13b | return the route that matches this request | [
{
"docid": "5440283c3c056a351a2c5b6890a38406",
"score": "0.6835848",
"text": "def match(req)\n @routes.find { |route| route.matches?(req) }\n end",
"title": ""
}
] | [
{
"docid": "17b0caddfe912c2e7fdd175c90d2093a",
"score": "0.8132401",
"text": "def route\n @route ||= Role.available_routes.find {|r| r.conditions[:path_info].to_s == path_info && r.conditions[:request_method].to_s == request_method}\n end",
"title": ""
},
{
"docid": "39fa18824acdd672... |
78adead9d5532342e5bb80494b3426d9 | Check that the user is logged in, and send back an error if they are not | [
{
"docid": "00186effe35f55804b7a04c72efea2a8",
"score": "0.0",
"text": "def require_login\n @user = User.find_by(id: session[:user_id])\n head :unauthorized unless @user\n end",
"title": ""
}
] | [
{
"docid": "33195f0caf30a2520e8b57aeed7b4b75",
"score": "0.80003107",
"text": "def logged_in_user\n unless logged_in?\n flash[:danger] = \"Insufficient access, not logged in!\"\n redirect_to login_url # Go to the login page with the above error\n end\n end",
"title": ""
... |
9d33c9f37d0dad4a0a087d22c832a129 | POST /kategori_atms POST /kategori_atms.json | [
{
"docid": "59e682fd58a26615fcf721ac5745eb6d",
"score": "0.7595284",
"text": "def create\n @kategori_atm = KategoriAtm.new(params[:kategori_atm])\n\n respond_to do |format|\n if @kategori_atm.save\n format.html { redirect_to @kategori_atm, notice: 'Kategori atm was successfully created... | [
{
"docid": "874c60c1f5216a1451cf6de50ef7ed7c",
"score": "0.69139785",
"text": "def new\n @kategori_atm = KategoriAtm.new\n\n respond_to do |format|\n format.html # new.html.erb\n format.json { render json: @kategori_atm }\n end\n end",
"title": ""
},
{
"docid": "0f5f47a6d... |
066675d4dedb4f6f6bebce652b9d552f | Execute the Choreo using the specified InputSet as parameters, wait for the Choreo to complete and return a ResultSet containing the execution results. | [
{
"docid": "6c841eed5c7bd98d76217bfc26d5cf14",
"score": "0.0",
"text": "def execute(input_set = nil)\n resp = super(input_set)\n results = InitializeOAuthResultSet.new(resp)\n return results\n end",
"title": ""
}
] | [
{
"docid": "ea872306361fc864408e8279b0199bbe",
"score": "0.7593966",
"text": "def execute(input_set = nil)\n resp = super(input_set)\n results = QueryResultSet.new(resp)\n return results\n end",
"title": ""
},
{
"docid": "bf6609d69b18cbe3a5f620c672c2cbbf",
"score": "0.7... |
72973fddb0d43724093f3326f0aef51f | GET /clients/1 GET /clients/1.json | [
{
"docid": "a81945373733e4951b987de6ea99f9a1",
"score": "0.0",
"text": "def show\n end",
"title": ""
}
] | [
{
"docid": "c0ffa931d98d5ce1e2041a93d545d9ea",
"score": "0.7765875",
"text": "def index\n @clients = Client.all\n\n render json: @clients\n end",
"title": ""
},
{
"docid": "11367d36e4c90c8a0de89176b3b870a4",
"score": "0.77151966",
"text": "def index\n @clients = current_use... |
5c1f928a8d7eb115213324f4934664a3 | GET /ligafuts/new GET /ligafuts/new.xml | [
{
"docid": "1b8b5ac42b44060e56c500704dd034a9",
"score": "0.71830314",
"text": "def new\n @ligafut = Ligafut.new\n\n respond_to do |format|\n format.html # new.html.erb\n format.xml { render :xml => @ligafut }\n end\n end",
"title": ""
}
] | [
{
"docid": "aeb5863732ee8ef632a8b3943da08995",
"score": "0.72325677",
"text": "def new\n @liga = Liga.new\n\n respond_to do |format|\n format.html # new.html.erb\n format.xml { render :xml => @liga }\n end\n end",
"title": ""
},
{
"docid": "ff5fb78848adb362df58edfe8b45ab... |
d8d6c2df91e6c100d0f35dffeda878f3 | Duplicates information from a child element to this data criteria if none exits. If the duplication requires that come values should be overwritten, do so only in the function calling this. | [
{
"docid": "26b7f471953d8018b3357dbcc4a9699e",
"score": "0.6521391",
"text": "def duplicate_child_info(child_ref)\n @title ||= child_ref.title\n @type ||= child_ref.subset_operators\n @definition ||= child_ref.definition\n @status ||= child_ref.status\n @code_list_id ||= child_r... | [
{
"docid": "d7dbb41a0bccb967010fc906e7102570",
"score": "0.6697652",
"text": "def handle_derived_specific_occurrence_variable\n # If the first child is all the exists, and it has been marked as a \"group\" element, switch this over to map to\n # the new element.\n if !@data_criteria_refer... |
1b2a85a4c75376f6a72e2840b6f9b360 | Switch to stream mode. Stream mode turns off caching. | [
{
"docid": "37a97246646b3a9c45adc02cde83f36b",
"score": "0.78763896",
"text": "def stream_mode\n set_stream_mode\n end",
"title": ""
}
] | [
{
"docid": "7167ff373e8420ac9a394f5b166e3872",
"score": "0.79125947",
"text": "def set_stream_mode\n @stream_mode = true\n whdr TYPE_EXTRA, XT_STREAM_MODE\n @cache = { nil => 0 }\n end",
"title": ""
},
{
"docid": "5a02b1fbbca966a9d4cdf93287f0a0ed",
"score": "0.6147561",... |
ae6179012c5d4e1aec806c08057ee814 | SHOW ALL USERS LIST | [
{
"docid": "7ff8ddcab5c816cf08acb1feb4f25bbf",
"score": "0.0",
"text": "def index\n\t\t@user = User.all\n\tend",
"title": ""
}
] | [
{
"docid": "1a6db0404b238a2d0f5e67314efbb515",
"score": "0.78522265",
"text": "def list_users\n cmd = inspec.command(list_users_cmd)\n return [] if cmd.exit_status != 0\n cmd.stdout.chomp.lines\n end",
"title": ""
},
{
"docid": "ff7af2d161bc35e2db549d592e68ec31",
"score... |
0a9f50cc12327e615afbb88cd75daea1 | GET /master/categories/new GET /master/categories/new.xml | [
{
"docid": "755e9b207888262bd6c3ab5b6f81f086",
"score": "0.7198539",
"text": "def new\n @master_category = Master::Category.new\n\n respond_to do |format|\n format.html # new.html.erb\n format.xml { render :xml => @master_category }\n end\n end",
"title": ""
}
] | [
{
"docid": "40e362931c1bbbc502b6fa90585992d1",
"score": "0.7581607",
"text": "def new\n @category = Category.new\n\n respond_to do |format|\n format.xml\n end\n end",
"title": ""
},
{
"docid": "ef829d68dad7e6d9fad73a225541f787",
"score": "0.7405216",
"text": "def new\n... |
31b5a95f75a9f3a5c899d08c85ae882d | Called when there is an inactivity timeout | [
{
"docid": "ce58a0769ea0e2b70ccdb2097f90b4a0",
"score": "0.8368434",
"text": "def on_inactivity_timeout(error:); end",
"title": ""
}
] | [
{
"docid": "6d00a5830f013d7e1f922971b84bc88b",
"score": "0.8078434",
"text": "def inactivity_timeout\n @inactivity_timeout\n end",
"title": ""
},
{
"docid": "902213f8395f37264908f4f18ec4fb8c",
"score": "0.7745574",
"text": "def on_timeout\n #\n end",
"titl... |
4168cba13719db5796ce6a7ec35522ee | star(9) Analysis: It works, but these variables are confusing. Launch school's solution uses Stringcenter, which is much more efficient, and a variable "distance_from_center". They extracted the printing of a line to a method, which is something I thought about doing (but didn't because I'd have to give it so many vari... | [
{
"docid": "1ee3834d61af5d6e789ea3348b53d675",
"score": "0.0",
"text": "def transpose(matrix)\n new_matrix = [[], [], []]\n matrix.each do |array|\n 3.times do |i|\n new_matrix[i] << array[i]\n end\n end\n new_matrix\nend",
"title": ""
}
] | [
{
"docid": "00b7f3f4ba7ac05473f819f6e7716483",
"score": "0.6372245",
"text": "def print_row(grid_size, distance_from_center)\n number_of_spaces = distance_from_center - 1\n spaces = ' ' * number_of_spaces\n output = Array.new(3, '*').join(spaces)\n puts output.center(grid_size)\nend",
"title": "... |
73063f420a339870dfe3e899670fd275 | Region prefixes are in range 02..09 with length of 3 to 5 digits | [
{
"docid": "1aeb9df1f5bbc508b62ef68ffe29eb87",
"score": "0.70889956",
"text": "def region_prefix(leading_zero = true)\n region_prefix = rand(2..9).to_s + FFaker.numerify('#' * rand(1..3)).to_s\n region_prefix = '0' + region_prefix if leading_zero\n region_prefix\n end",
"title": ""... | [
{
"docid": "63a4eb571725d2f0684daea4a2803272",
"score": "0.62395686",
"text": "def region_fix(region)\n region.gsub(/-1/,'').gsub(/-/,'_')\n end",
"title": ""
},
{
"docid": "39c3ca1a6615b260e507889ab98b6980",
"score": "0.61267376",
"text": "def prefix\n number[3..5]\n end... |
ad10799461efbd303a0b302f31d75947 | Create a report object from the current edit fields | [
{
"docid": "9f07d1d7cd6e0cc0e711ab9614f8124c",
"score": "0.66365933",
"text": "def create_report_object\n rpt_rec = MiqReport.new # Create a new report record\n set_record_vars(rpt_rec) # Set the fields into the record\n rpt_rec # Create a report object from the record\n end"... | [
{
"docid": "d12d16bc3650330461d4ce13f200c4e4",
"score": "0.71913356",
"text": "def set_form_vars\n @edit = {}\n @edit[:rpt_id] = @rpt.id # Save a record id to use it later to look a record\n @edit[:rpt_title] = @rpt.title\n @edit[:rpt_name] = @rpt.name\n @edit[:new] = {}\n @edit[:key] ... |
66898d1932ca889da28ad3805712c18a | Insert a default profile association Profile 1 = QWERTY / Unknown Keyboard This can be changed later by the user, but it needs to be set so that records can be stored correctly | [
{
"docid": "d705d6421daabc016fa1b2d36f64b7a2",
"score": "0.7515832",
"text": "def insert_default_profile\n self.profiles << Profile.find(1)\n end",
"title": ""
}
] | [
{
"docid": "6dc911b22cea67198ca6e20991f364ae",
"score": "0.68904644",
"text": "def set_default_profile \n\n profile = Profile.new \n profile.nombres = ''\n profile.user_id = self.id\n profile.save \n \n # Numero de Celular\n profile_phone = ProfilePhone.new \n profile_phone... |
be7ec135a63bdf43ceb169d93cca4e79 | The actual contents of this stylesheet as a Hash from stylename to properties. | [
{
"docid": "43ddc8171c5b24dae0d242f69f19cffe",
"score": "0.7203546",
"text": "def styles\n @styles ||= Hash.new{ |h, k| h[k] = {} }\n end",
"title": ""
}
] | [
{
"docid": "6ab9e78a3d054174288745a658624d20",
"score": "0.7083855",
"text": "def styles\n @styles ||= Hash.new do |_styles, stylename|\n _styles[stylename] = Style.new\n _styles[stylename].stylename = stylename\n _styles[stylename].stylesheet = self\n _styles[stylename]... |
1828b6d3a5d9b9e9c019bbde38328ba4 | POST /goal_progresses POST /goal_progresses.json | [
{
"docid": "2e984945b805e899260668cd118383df",
"score": "0.51895183",
"text": "def create\n @goal_progress = GoalProgress.new(params[:goal_progress])\n\n respond_to do |format|\n if @goal_progress.save\n format.html { redirect_to @goal_progress, notice: 'Goal progress was successfully ... | [
{
"docid": "38052e2f8a6f9ad2afd294b60f008f0f",
"score": "0.6406655",
"text": "def index\n @goal_progresses = GoalProgress.all\n end",
"title": ""
},
{
"docid": "73fe2bfa2d343040ce0e3b357d544ff2",
"score": "0.62377816",
"text": "def index\n @progresses = @task.progresses\n\n ... |
f7f64d510f62c9c2949395f82dd83d56 | DELETE /information/1 DELETE /information/1.json | [
{
"docid": "3d1c9882e974ba7b5f9794ff8c1d86ac",
"score": "0.7262166",
"text": "def destroy\n @information.destroy\n respond_to do |format|\n format.html { redirect_to information_index_url, notice: 'Information was successfully destroyed.' }\n format.json { head :no_content }\n end\n ... | [
{
"docid": "e072f495f8b73a6d47f91d1724b01c9c",
"score": "0.7522905",
"text": "def destroy\n @information = Information.find(params[:id])\n @information.destroy\n\n respond_to do |format|\n format.html { redirect_to information_index_url }\n format.json { head :no_content }\n end\n ... |
89b406b9d0ec6bc5983005e9c99db7fa | POST /acontecimentos POST /acontecimentos.json | [
{
"docid": "3fabef9206e69c12d9f31828d1a94bf1",
"score": "0.60157627",
"text": "def create\n @acontecimento = Acontecimento.new(acontecimento_params)\n\n respond_to do |format|\n if @acontecimento.save\n format.html { redirect_to @acontecimento, notice: 'Acontecimento was successfully c... | [
{
"docid": "eb33e115bf9ec336c3bbb0b2de70736a",
"score": "0.65428394",
"text": "def sentiment(text)\n RestClient.post \"http://api.datumbox.com/1.0/SentimentAnalysis.json\", {api_key: '', text: text}, {content_type: :json, accept: :json}\nend",
"title": ""
},
{
"docid": "08ce6eff307085118e27... |
c657de4b70d266e9a3a784b999ea9e60 | Never trust parameters from the scary internet, only allow the white list through. | [
{
"docid": "fcb1a84ebae27fbf0b1150c1fe17814c",
"score": "0.0",
"text": "def school_params\n params.require(:school).permit(:name, :address, :city, :state, :zip, :mascot)\n end",
"title": ""
}
] | [
{
"docid": "3663f9efd3f3bbf73f4830949ab0522b",
"score": "0.74939764",
"text": "def whitelisted_params\n super\n end",
"title": ""
},
{
"docid": "13a61145b00345517e33319a34f7d385",
"score": "0.6955084",
"text": "def strong_params\n params.require(:request).permit(param_whit... |
fea48c4ab7c2fbf9e8c26668f2e7a34d | Are both objects unrestricted, or are both roles identical? | [
{
"docid": "a263c39c5b35eb75f3c983c897ad849b",
"score": "0.0",
"text": "def roles_match?(obj)\n obj_roles = EffectiveRoles.roles_for(obj)\n matching_roles = (roles & obj_roles)\n matching_roles.length == roles.length && matching_roles.length == obj_roles.length\n end",
"title": ""
}
] | [
{
"docid": "cf5244cbe94356274c9f14837d907a70",
"score": "0.6788604",
"text": "def is_permitted_for?( comparison_user )\n shared? or comparison_user == user or comparison_user.privileged? \n end",
"title": ""
},
{
"docid": "b9c4fd12c1963d958a101221f4e9a603",
"score": "0.6507037",
... |
62b49ae39ed79fa2711778a853f9df82 | Adds a rule to the repository on the grammar. | [
{
"docid": "428b9da845deac3fc658f8a2a092f1b0",
"score": "0.8281282",
"text": "def add_rule(name, rule)\n @repository[name] = rule\n end",
"title": ""
}
] | [
{
"docid": "93b234c5a1043d0712f614350db7d87d",
"score": "0.7782388",
"text": "def add_rule(rule)\n @rules << rule\n end",
"title": ""
},
{
"docid": "dac4788615c1a5516c30a92fe79b1b97",
"score": "0.7716871",
"text": "def add_rule(rule); end",
"title": ""
},
{
"d... |
099e32859126c4f606cb38b6ea5686cb | Dumps wav file from MKV | [
{
"docid": "9b911d798aa362bdeffab429a6c0848a",
"score": "0.5909512",
"text": "def mkvwav ( input, output )\n system \"ffmpeg -i #{input} -acodec pcm_s16le -ac 2 #{output}\"\nend",
"title": ""
}
] | [
{
"docid": "ff13602303e2982de66984844b4a85cd",
"score": "0.604565",
"text": "def dump_format\n FFI::Libav.av_dump_format(@av_format_ctx, 0, @filename, 0)\n end",
"title": ""
},
{
"docid": "284117cea5d33be21a23da7723b7b9de",
"score": "0.6024361",
"text": "def save(filename)\n ... |
5e1b91047e992ac69c5c2b6be2a24e53 | Returns whether the console is currently running in protected mode or not. | [
{
"docid": "4000235f04acddd7b3b328699515804e",
"score": "0.70174277",
"text": "def running_protected_environment?\n protected_environments.collect(&:to_sym).include?(Rails.env.to_sym)\n end",
"title": ""
}
] | [
{
"docid": "531774020a04a6f12033bda9f674beb0",
"score": "0.7118785",
"text": "def privileged?\n get_mode == :privileged\n end",
"title": ""
},
{
"docid": "79fd32e675a8e2237e97279c256960b3",
"score": "0.66405547",
"text": "def readable?\n status_flag?(:kSecReadPermStatus)... |
e6133d68c575d27c5c599c4c37920307 | for this to work with negative shift_factor it would have to wrap around az and also around AZ but a big absolute value of shift_factor may cause a change in the capitalization of the final result, to avoid this and aso make the code simpler we could store "caps state" at the start then process everything in lowcase, a... | [
{
"docid": "8b8c5d916e01985fa0f5eb3bbbfd1217",
"score": "0.6282018",
"text": "def wrap_char_code(char_code_shifted)\n if char_code_shifted.between?(\"a\".ord, \"z\".ord) || char_code_shifted.between?(\"A\".ord, \"Z\".ord)\n return char_code_shifted\n else\n return char_code_shifted -= (\"z\".ord... | [
{
"docid": "2079b7655463518a1080b72aa06d8d4b",
"score": "0.6790218",
"text": "def caesar_cipher(name,shift)\r\n\r\n return_value = \"\"\r\n lower_case_min = 'a'.ord\r\n lower_case_max = 'z'.ord\r\n upper_case_min = 'A'.ord\r\n upper_case_max = 'Z'.ord \r\n\r\n name.scan /./ do |i|\r\n\r\n ord ... |
c657de4b70d266e9a3a784b999ea9e60 | Never trust parameters from the scary internet, only allow the white list through. | [
{
"docid": "35bc4d04766735c2c00dd04cf403ff4a",
"score": "0.0",
"text": "def post_code_params\n params.require(:post_code).permit(:code)\n end",
"title": ""
}
] | [
{
"docid": "e164094e79744552ae1c53246ce8a56c",
"score": "0.6979893",
"text": "def strong_params\n params.require(:user).permit(param_whitelist)\n end",
"title": ""
},
{
"docid": "e662f0574b56baff056c6fc4d8aa1f47",
"score": "0.6781746",
"text": "def strong_params\n params.requi... |
a4f7ae3283936e83e41920ee8a49db1b | Checks equality by comparing each attribute. | [
{
"docid": "b75683ad70775a66a7737bbab13179ef",
"score": "0.0",
"text": "def ==(o)\n return true if self.equal?(o)\n self.class == o.class &&\n created == o.created &&\n changed_by == o.changed_by &&\n updated == o.updated &&\n id == o.id &&\n organi... | [
{
"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... |
5768f25aa012dd137410280057f1e4dc | Only update when mode is passed | [
{
"docid": "432eb82a41a0d1c6b318d617154d9a4d",
"score": "0.0",
"text": "def update_linkedin_info(omniauth, mode=nil)\n case mode\n when :skills\n build_skills(omniauth)\n when :education\n build_education(omniauth)\n when :employment\n build_employment(omniauth)\n ... | [
{
"docid": "17ac0478f7b81599ad32c0cf4775f606",
"score": "0.8257465",
"text": "def update!(**args)\n @mode = args[:mode] if args.key?(:mode)\n end",
"title": ""
},
{
"docid": "17ac0478f7b81599ad32c0cf4775f606",
"score": "0.8257465",
"text": "def update!(**args)\n ... |
1446e31d74a3716d47a2fa8c0759c124 | ===================== previous song ====================== | [
{
"docid": "ff6678f9883d827498cbfdbfe736bd23",
"score": "0.8250149",
"text": "def previous_song()\n @current_song_index -= 1\n build_default_screen\nend",
"title": ""
}
] | [
{
"docid": "95d51016b643914d3933fbb47a0b8378",
"score": "0.8738664",
"text": "def previous\n changeCurrentSong(:backward)\n end",
"title": ""
},
{
"docid": "d21e79731e499b8117e2522991184083",
"score": "0.86584425",
"text": "def previous\n puts \"Playing previous song\"\n ... |
fdd3e9cb6ab24a4ac55a6dca74207f7c | FIXME: update this to support multiple NICs | [
{
"docid": "b1f08adbba1dd82aef5c46a25d1fd5c1",
"score": "0.5842603",
"text": "def networking\n networking = {}\n if advanced_networking.nil? \n networking['eth0'] = {}\n networking['eth0']['dns'] = dns unless dns.nil?\n networking['eth0']['seclists'] = seclists unless (sec... | [
{
"docid": "d7fde76ad6ced13fc737deee6c87a096",
"score": "0.69110477",
"text": "def read_network_interfaces\n end",
"title": ""
},
{
"docid": "05197de3aaa9d7d1ab5e759d8e7971a7",
"score": "0.6755145",
"text": "def nic\n a = execute_wmi_query(\"select * from Win32_Networ... |
479bfa846fff14a52e91cb71c366e0a2 | Proxy over a list of Java declared fields that have the same name as some methods. Add to this list as needed. | [
{
"docid": "693d9c91df051cf4000e75f20adf7246",
"score": "0.7508404",
"text": "def proxy_java_fields\n fields = %w[key frameRate mousePressed keyPressed]\n methods = fields.map { |field| java_class.declared_field(field) }\n @declared_fields = Hash[fields.zip(methods)]\n end",
"title... | [
{
"docid": "1909873a4c4e8492b0cb584300e52d9d",
"score": "0.6895728",
"text": "def proxy_java_fields\n @declared_fields = {}\n fields = %w(sketchPath key frameRate frame)\n fields.each {|f| @declared_fields[f] = java_class.declared_field(f) }\n end",
"title": ""
},
{
"docid"... |
693b4a57992a5aba8623a9a96a724ab2 | Total requests per day: 10,000 Records per request: 1,000 Maximum records per search: 2,000 | [
{
"docid": "4ed3bcdd27372bd474635a541e6e947c",
"score": "0.0",
"text": "def ingest_pets\n count = 100\n reps = 50\n counter = 0\n offset = 0\n p = count\n sizes = [\"S\", \"M\", \"L\"]\n round = 0\n\n while p == count && counter < reps && round < sizes.length\n p = PetfinderApi.load_pets('dog... | [
{
"docid": "b97eee34dce4cd6fd3a2d417c9a419a7",
"score": "0.7069752",
"text": "def requests_per_day\n group_by_day.map { |date, ents|\n [date, ents.size]\n }.sort { |a,b|\n a[0] <=> b[0]\n }\n end",
"title": ""
},
{
"docid": "a21672ca478046cf57a028876691f940",
... |
dc120350466bc0cce07dd64ab2dc41ed | The main and related ISBNs. | [
{
"docid": "b1755435bb9a5b51251ef853e9768bab",
"score": "0.0",
"text": "def all_isbns\n [isbn, *related_isbns]\n end",
"title": ""
}
] | [
{
"docid": "e95cfad9c46711f2a05857f5bcaad7b7",
"score": "0.65620315",
"text": "def main\n\n end",
"title": ""
},
{
"docid": "e95cfad9c46711f2a05857f5bcaad7b7",
"score": "0.65620315",
"text": "def main\n\n end",
"title": ""
},
{
"docid": "29aef565d7d0070815d0d310... |