query_id stringlengths 32 32 | query stringlengths 7 6.75k | positive_passages listlengths 1 1 | negative_passages listlengths 88 101 |
|---|---|---|---|
d837d4aa1c67a3b600f7cf50cc485973 | Deletes records in batches. Returns the total number of rows affected. Person.in_batches.delete_all See Relationdelete_all for details of how each batch is deleted. | [
{
"docid": "2d9f9834807453c3ee3deacfae044253",
"score": "0.6247202",
"text": "def delete_all\n sum(&:delete_all)\n end",
"title": ""
}
] | [
{
"docid": "a4627d63b8451c586b588a4360044374",
"score": "0.65441495",
"text": "def purge_in_batches!\n scope = model\n scope = scope.where(@table.conditions) if @table.conditions\n\n instrumentation_name = 'next_batch.db_purger'\n start_instrumentation(instrumentation_name)\n\n ... |
1d5968e9e5b24396184dd84b567e8acc | def reset_ratings_counters self.doc_ratings_count = self.ratings.where.not(document_id: nil).count() self.art_ratings_count = self.ratings.where.not(artwork_id: nil).count() self.save end def update_avg_rating(type) if type == :document avg = ratings.where.not(document_id: nil).average(:rating_val) update_attribute(:do... | [
{
"docid": "26ba9e6185fdb22fcd8cf49b770681f1",
"score": "0.665715",
"text": "def avg_art_rating\n avg = ratings.where.not(document_id: nil).average(:rating_val)\n if avg then avg.round(2) else \"N/A\" end\n end",
"title": ""
}
] | [
{
"docid": "288757936d36c5b1ef2af1ac4ff74acc",
"score": "0.8186642",
"text": "def update_rating\n self.average_rating = user_ratings.average(:score,:conditions => ['is_pro IS NULL OR is_pro = 0'])\n #self.average_rating = user_ratings.average(:score)\n self.average_rating_pro = user_ratings.ave... |
56ab0cb982035f51a16dd12452c31909 | preorder, return array of values in dlr dfs traversal | [
{
"docid": "628f6d4e2407c6216acdd3611761e0ad",
"score": "0.56275636",
"text": "def preorder(current_node = root)\n return if current_node.nil?\n print \"#{current_node.value} \"\n inorder(current_node.left)\n inorder(current_node.right)\n end",
"title": ""
}
] | [
{
"docid": "eeee8be9b156b5880daab8b65746d588",
"score": "0.7373191",
"text": "def preorder_traversal_rec(root)\n res = []\n preorder_dfs(root, res)\n res\nend",
"title": ""
},
{
"docid": "5dfa95bf37416dec697ba7b6bd6fc1cb",
"score": "0.7016538",
"text": "def preorder\n nodelets_... |
f74c29bdfc4a183e1ec1b91334cd5be2 | Use callbacks to share common setup or constraints between actions. | [
{
"docid": "01d932abe5a564029938acdccd907d71",
"score": "0.0",
"text": "def set_anticoagulante\n @anticoagulante = Anticoagulante.find(params[:id])\n end",
"title": ""
}
] | [
{
"docid": "631f4c5b12b423b76503e18a9a606ec3",
"score": "0.60339177",
"text": "def process_action(...)\n run_callbacks(:process_action) do\n super\n end\n end",
"title": ""
},
{
"docid": "7b068b9055c4e7643d4910e8e694ecdc",
"score": "0.60135007",
"text": "d... |
6025447c5ba43b2e2c132114dce94d71 | specific list options for the image list: :removal_gesture, :gradient_color, :item_layout | [
{
"docid": "5653bb2c6d0cb197820a9df7b097b31f",
"score": "0.70604974",
"text": "def create_image_list images, border, options\r\n\r\n gradient_color = nil\r\n item_layout = :horizontal\r\n enable_removal_gesture = false\r\n \r\n if options[0].is_a?(Hash)\r\n \r\n pa... | [
{
"docid": "ad9a2f4aacf10162702f73055340b5e4",
"score": "0.64243555",
"text": "def image_list images, *options\r\n merge_defaults!(options, :item_layout => :horizontal)\r\n create_image_list images, org.codehaus.swiby.component.DefaultSelectionBorder.new, options\r\n end",
"title": ""
... |
88ca705f5099a0e4e52eb2683a6ebf25 | Set the error message on an entry. Implementations must implement this method. | [
{
"docid": "b3b8acd39de20df051cab3d79d4f8b28",
"score": "0.0",
"text": "def set_error!(error, retry_interval = nil)\n raise NotImplementedError.new(\"set_error!\")\n end",
"title": ""
}
] | [
{
"docid": "e805655506c975573d57348f1854fbfb",
"score": "0.7106295",
"text": "def error=(message)\n self[:error] = message\n end",
"title": ""
},
{
"docid": "9315e8b46a4cbbc1d15a7dd903f2d810",
"score": "0.6700378",
"text": "def set_error_message\n @error_message = Er... |
4a0e1fa9ca3874fa177b1eb5a82268e4 | Get a list of user schedule adherence records for the requested management unit | [
{
"docid": "eb4806d1a8bf8a3df2c2ba3756eebde3",
"score": "0.4988765",
"text": "def get_workforcemanagement_managementunit_adherence(management_unit_id, opts = {})\n data, _status_code, _headers = get_workforcemanagement_managementunit_adherence_with_http_info(management_unit_id, opts)\n return ... | [
{
"docid": "989c8825993effd09fd4bb81dab79c10",
"score": "0.5854892",
"text": "def current_user_scheduleled_assignements\n enrolment = Enrolment.user_enrolments(current_user)\n scheduled_assignment = ScheduledAssignment.joins(scheduled_lesson: [scheduled_course: :enrolments]).where(scheduled_lesson... |
f94806f90fa7be307956a0b7f159151e | Whether to use a simple primary key lookup on the associated class when loading. | [
{
"docid": "df175965e2e95b95a50cb19094af6a51",
"score": "0.73679304",
"text": "def load_with_primary_key_lookup?(opts, dynamic_opts)\n return false if dynamic_opts[:eager]\n super\n end",
"title": ""
}
] | [
{
"docid": "4aeeb9ed76e2afd20c6efb03a6c19527",
"score": "0.75271213",
"text": "def load_with_primary_key_lookup?(opts, dynamic_opts)\n false\n end",
"title": ""
},
{
"docid": "f098cf7ffc943cbe7d218072d7f9f54a",
"score": "0.7427243",
"text": "def primary_key\n ... |
694f8e80898c0b283a0e0d366fc7e6e1 | You shouldn't need to touch anything in these methods. | [
{
"docid": "510247cca556f3047b3a439c8edc928e",
"score": "0.0",
"text": "def parse(raw_request)\n pieces = raw_request.split(' ')\n method = pieces[0]\n uri = pieces[1]\n http_v = pieces[2]\n route, query_param_string = uri.split('?')\n uri_fragments = route.split('/')\n protocol = uri_fragment... | [
{
"docid": "6ab77a9219ee157923bc58599ba6aa77",
"score": "0.69447297",
"text": "def in_use; end",
"title": ""
},
{
"docid": "6ab77a9219ee157923bc58599ba6aa77",
"score": "0.69447297",
"text": "def in_use; end",
"title": ""
},
{
"docid": "33e1db3c06643dd523dcc31fccf3a005",
... |
386b24dec0aab8ab5c4c6f058bb97712 | This algorithm, invoked via the IRI Compaction algorithm, makes use of an active context's inverse context to find the term that is best used to compact an IRI. Other information about a value associated with the IRI is given, including which container mappings and which type mapping or language mapping would be best u... | [
{
"docid": "8f9c19f90646185d2f239868838bfa63",
"score": "0.55430996",
"text": "def select_term(iri, containers, type_language, preferred_values)\n # log_debug(\"select_term\") {\n # \"iri: #{iri.inspect}, \" +\n # \"containers: #{containers.inspect}, \" +\n # \"type_langua... | [
{
"docid": "3c95e678306bd6070b5e2e9d85b316b5",
"score": "0.6508968",
"text": "def compact_iri(iri, base: nil, reverse: false, value: nil, vocab: nil)\n return if iri.nil?\n\n iri = iri.to_s\n\n if vocab && inverse_context.key?(iri)\n default_language = if default_direction\... |
a2159bad1236f3f8ef90dc4e81772a0b | Intended to be overriden notifies itself that the transaction is now complete | [
{
"docid": "f915a818caa2b12996d79b38f796bbd8",
"score": "0.80134064",
"text": "def transaction_done\n puts \".........\" + self.class.name + \" has been notified\"\n end",
"title": ""
}
] | [
{
"docid": "e2b95a9bae8be681521ed151f1e90ebc",
"score": "0.74488866",
"text": "def within_transaction; end",
"title": ""
},
{
"docid": "e2b95a9bae8be681521ed151f1e90ebc",
"score": "0.74488866",
"text": "def within_transaction; end",
"title": ""
},
{
"docid": "f0d4da77b64b... |
3aad66d6e47d9792c9bdd9259fb89165 | Update Game State collects and stores important info for each object | [
{
"docid": "b4876dc740509044afab13d80393af47",
"score": "0.65141094",
"text": "def update_game_state\n @game_state[:paddle_left_y] = @paddle_left.y\n @game_state[:paddle_right_y] = @paddle_right.y\n @game_state[:ball_x] = @ball.x\n @game_state[:ball_y] = @ball.y\n @game_s... | [
{
"docid": "821b6e5de77eff709ac573b606d36ef4",
"score": "0.69181144",
"text": "def update_from_game_data; end",
"title": ""
},
{
"docid": "568a7232b35cdf6ec065a468dbb308b8",
"score": "0.6785629",
"text": "def update\n update_player # Checks and updates player related stuff\n ... |
a7a817661c0faa5c863dfc7d8fa829b2 | Returns the string representation of the object | [
{
"docid": "a408df9f3be79d7c20500741a990725c",
"score": "0.0",
"text": "def to_s\n to_hash.to_s\n end",
"title": ""
}
] | [
{
"docid": "e0c61d22481a9b8a23b7a0620c2b5f87",
"score": "0.901024",
"text": "def to_s\n @object.to_s\n end",
"title": ""
},
{
"docid": "fc45164ab937a7dc1e465646a36f565c",
"score": "0.89506465",
"text": "def to_s\n object.to_s\n end",
"title": ""
},
{
"doci... |
278a020f305453433cfd664a01cd764c | Server bind to port 1080 | [
{
"docid": "755ce9df43415e5bbfe113704763c322",
"score": "0.0",
"text": "def select_support_method(client)\n version, nmethods = client.read(2).unpack('CC')\n\n supported_methods = []\n nmethods.times {\n supported_methods << client.read(1).ord\n }\n supported_methods.first\nend",
"title": ""... | [
{
"docid": "f740860e39f443cb38f75f3b5bb597a1",
"score": "0.69907945",
"text": "def start_server!; @server = TCPServer.open($port) end",
"title": ""
},
{
"docid": "5cc3b32f0ae22ffa47d6c582f45c62a0",
"score": "0.68004614",
"text": "def bind(host, port = 0)\n @bind_host = host\n ... |
85af303f401c1e63987e7cf8e9527d9d | If emailid of contact is changed and it has associated matters, client's new user would get created | [
{
"docid": "9c679c6d05d868856d0cac67cf1aa1c0",
"score": "0.0",
"text": "def check_if_email_changed\n @email_changed = self.changed.include?('email')\n true\n end",
"title": ""
}
] | [
{
"docid": "d352d3208d22edf71f59e01f55cc28a1",
"score": "0.6770388",
"text": "def new_client\n @user = User.new\n @company = Company.find(params[:company_id])\n @contacts = Contact.clients(@company.id).find_all {|e| e.user_id.nil?}\n if params[:cont_id]\n @contact = Contact.find(params[... |
56e0620d964546f405c856e7a239d28e | Inserts a new element into the queue. Complexity O(1). | [
{
"docid": "f7842e4401c7c8c5ab23e818048d6be7",
"score": "0.0",
"text": "def enqueue data\n node = Node.new data\n unless head\n self.head = node\n else\n self.tail.next = node\n end\n self.tail = node\n self.length += 1\n end",
"titl... | [
{
"docid": "ebce9b76e3e8f23c1db2a0c9d78cc4dc",
"score": "0.7832811",
"text": "def insert(new_element)\n self.elements.push(new_element)\n self.heapify_from_tail\n end",
"title": ""
},
{
"docid": "6458b64ecb9fbca9a31c5f18d3379746",
"score": "0.7669937",
"text": "def enqueue(ele... |
c657de4b70d266e9a3a784b999ea9e60 | Never trust parameters from the scary internet, only allow the white list through. | [
{
"docid": "adabf65e92011c0d0433c6454273abeb",
"score": "0.0",
"text": "def teacher_params\n params.require(:teacher).permit(:name, :email, :password)\n end",
"title": ""
}
] | [
{
"docid": "e164094e79744552ae1c53246ce8a56c",
"score": "0.6981269",
"text": "def strong_params\n params.require(:user).permit(param_whitelist)\n end",
"title": ""
},
{
"docid": "e662f0574b56baff056c6fc4d8aa1f47",
"score": "0.6783559",
"text": "def strong_params\n params.requi... |
1e964d07109c7b06364443c8dcf3d446 | create ====== Send the email to the provided email addresses | [
{
"docid": "baff2f27ecc713e8c769dd809a204cc3",
"score": "0.7348336",
"text": "def create\n # Check that there is at least something entered in the recipients and body field\n if mail_params[:recipients].blank? || mail_params[:body].blank?\n flash[:error] = \"Either recipients or body missing.... | [
{
"docid": "a81f3b6dc0caa7e95b1e46fb27720202",
"score": "0.7092195",
"text": "def send_test(addresses)\n\n to_list = addresses\n cc_list = []\n subject = 'Test from PCB Tracker'\n\n mail( :to => to_list,\n :subject => subject,\n :cc => cc_list\n ) \n ... |
d0df87b1bea9b55706b1c7c4184cdaba | PATCH/PUT /posts/1 PATCH/PUT /posts/1.json | [
{
"docid": "efbdf43b437f4229e32bc412c2a07779",
"score": "0.0",
"text": "def update\n respond_to do |format|\n if @post.update(post_params)\n format.html { redirect_to @post, notice: 'Wpis został zmieniony.' }\n format.json { render :show, status: :ok, location: @post }\n else\... | [
{
"docid": "2a642a611c63a85b6ef6e72d09830e50",
"score": "0.71867543",
"text": "def update\n render json: Post.update(params[\"id\"], params[\"post\"])\n end",
"title": ""
},
{
"docid": "e2c68cadce474543233abd080997b452",
"score": "0.7042899",
"text": "def update\n respond_... |
5ae520c5b288dabbfa51a24397458ea2 | helper method to reverse each word in my_words (same as the reverse_string method) | [
{
"docid": "d280b20952dbfe16049fcff7f701b805",
"score": "0.0",
"text": "def reverse(my_words, start_index, end_index)\n while start_index < end_index\n temp = my_words[start_index]\n my_words[start_index] = my_words[end_index]\n my_words[end_index] = temp\n start_index += 1\n end_index -... | [
{
"docid": "f7a685b8d0d58c5ba55c6e13fbb7ee86",
"score": "0.8384493",
"text": "def reverse_each_word(words)\n words.split(\" \").collect{ |x| x.reverse}.join(\" \")\nend",
"title": ""
},
{
"docid": "4dbaf074883924b4d08d5e464d3228c7",
"score": "0.8172686",
"text": "def reverse_words (... |
e9efaaf79003aa558dc6266260229fc3 | Return the width of the given string if drawn by this Text object | [
{
"docid": "96af6696f50b5ab2be54cc44598b2ec4",
"score": "0.790218",
"text": "def text_width(text)\n end",
"title": ""
}
] | [
{
"docid": "3f5f2e351e2b732fe023e1246924021b",
"score": "0.8377437",
"text": "def string_width(string, font_size); end",
"title": ""
},
{
"docid": "3f5f2e351e2b732fe023e1246924021b",
"score": "0.8377437",
"text": "def string_width(string, font_size); end",
"title": ""
},
{
... |
277d986860347466db65df55bb19442d | GET /confeccion GET /confeccion.json | [
{
"docid": "28429b4aebf9c567fc7b3d148ddc03a9",
"score": "0.66785187",
"text": "def index\n @confeccion = Confeccion.all\n end",
"title": ""
}
] | [
{
"docid": "d76d2c39bafc37cdc3d96e03e2ea265c",
"score": "0.69002867",
"text": "def config\n do_get('/api/config')\n end",
"title": ""
},
{
"docid": "20359eb243c5001a2088b61ddac57c94",
"score": "0.65636355",
"text": "def config\n get('/_config')\n end",
"title"... |
c11fbf85f069efa3793ecd2d52827bf5 | Returns an array with adjacent states along an incoming edge (without duplicates). Returned array may be modified. | [
{
"docid": "5ddc5159d37c93278b8c9d08b6c323c0",
"score": "0.76892436",
"text": "def in_adjacent_states()\n (@in_edges.collect {|e| e.source}).uniq\n end",
"title": ""
}
] | [
{
"docid": "8bafabe5cbe8e76ea16abe54490d4aa9",
"score": "0.7726046",
"text": "def adjacent_states()\n (in_adjacent_states+out_adjacent_states).uniq\n end",
"title": ""
},
{
"docid": "3785d3a1f574baa19ccef2aeb4f413ee",
"score": "0.7459304",
"text": "def out_adjacent_states... |
57d09ac4af4b3a682545ed2b8dd7a365 | GET /new_reviews/1 GET /new_reviews/1.json | [
{
"docid": "7e6c790f041ca1f8dbfec7ad06c29a45",
"score": "0.0",
"text": "def show\n if user_signed_in? && current_user.admin?\n @new_review = NewReview.find(params[:id])\n\n respond_to do |format|\n format.html # show.html.erb\n format.json { render json: @new_review }\n end\n else... | [
{
"docid": "24ecb5e3aa3476114d10cf2ae8226e2c",
"score": "0.7634982",
"text": "def new\n @new_review = NewReview.new\n\n respond_to do |format|\n format.html # new.html.erb\n format.json { render json: @new_review }\n end\n end",
"title": ""
},
{
"docid": "b85baf4dce895583... |
531a2d4b02c02a8cb25c7372aae6c067 | The add_line method is used to add an edge to the collection of entities. This is not to be confused with the concept of a "line" from a geometric sense, which is an invisible object represented by an Array of a point and a vector. (See the Array class for more information on geometric lines in SketchUp.) This method i... | [
{
"docid": "0e121f1b5adbc16dac64984e5f11aca9",
"score": "0.6305823",
"text": "def add_line(point1, point2)\n end",
"title": ""
}
] | [
{
"docid": "ff9709ddfc8de07cca5f0e1e6fb40d57",
"score": "0.6186641",
"text": "def add_line(line)\n @lines << line\n line\n end",
"title": ""
},
{
"docid": "6431630c6a7da8011a8d8d77a5f72209",
"score": "0.6117533",
"text": "def add_line(line)\n\t\t@lines << lin... |
f74c29bdfc4a183e1ec1b91334cd5be2 | Use callbacks to share common setup or constraints between actions. | [
{
"docid": "e3bd35552499fe2939815f822a24e600",
"score": "0.0",
"text": "def set_posts_tag\n @posts_tag = PostsTag.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;... |
6fa3d28b442247b0791f1ce60e271748 | called privately by subclasses after parse() | [
{
"docid": "bd79518f23709f41898f1b3ca593c4ed",
"score": "0.0",
"text": "def _parse_load_commands()\n @load_commands = Array.new(@ncmds) do\n cmd = @fh.read_uint32le\n @fh.pos -= 4\n klass = MachO.reader_for_lc(cmd)\n ... | [
{
"docid": "40e303648ed6bac77c387bf9bd526951",
"score": "0.8099924",
"text": "def parse()\n #This is a stub, used for indexing\n end",
"title": ""
},
{
"docid": "cfc64655d8a635c2b0e52549825348ed",
"score": "0.8055185",
"text": "def parse; end",
"title": ... |
dbeef68fde956f407afc11d654a19e05 | TODO: add a class for owned vehicles | [
{
"docid": "554d4fd5d20bf0f95a80f0cebaeaa4cb",
"score": "0.61870146",
"text": "def klass\n object.is_owner ? 'own-vehicle' : 'others-vehicle'\n end",
"title": ""
}
] | [
{
"docid": "bb8178a92930659ee1a19d49bbbad726",
"score": "0.74079764",
"text": "def vehicles; end",
"title": ""
},
{
"docid": "f3719a7d077bb801e497896752e043cb",
"score": "0.7209585",
"text": "def vehicle; end",
"title": ""
},
{
"docid": "f3719a7d077bb801e497896752e043cb",... |
8b636865cb32935387cbc47a562a3356 | PUT /ownerships/1 PUT /ownerships/1.json | [
{
"docid": "4a229a2633bd209b9050cc1dec229e86",
"score": "0.7160416",
"text": "def update\n @ownership = ownerships.find(params[:id])\n\n respond_to do |format|\n if @ownership.update_attributes(params[:ownership])\n format.html { redirect_to my_games_path, notice: 'Your game was succes... | [
{
"docid": "88ef26efae6752237bfca1bf49f1335c",
"score": "0.6599548",
"text": "def set_Ownership(value)\n set_input(\"Ownership\", value)\n end",
"title": ""
},
{
"docid": "04209c36c104e1b0fab4df12a0bfba36",
"score": "0.65661484",
"text": "def update\n respond_to do |fo... |
41cb2dce7628e510a0d51999711196ab | , except: [:index, :new, :create] | [
{
"docid": "9f8968078e1adf385c2ec53695541ac7",
"score": "0.0",
"text": "def index\n @low_chamber_agendas = LowChamberAgenda.all\n\n respond_to do |format|\n format.html # index.html.erb\n format.json { render json: @low_chamber_agendas }\n end\n end",
"title": ""
}
] | [
{
"docid": "c12775ebe603a8e2251e5ad99a97ec67",
"score": "0.6800847",
"text": "def exclude_index_attributes\n %w(_id created_at updated_at)\n end",
"title": ""
},
{
"docid": "4b0084b3ea259adf6da84e146c883e19",
"score": "0.67503077",
"text": "def index\n forbidden\n end",
"... |
565d20b4240d183361daa39b172f5a3c | Converts the User object to a RSpotify user so that it can be used to issue requests to the Spotify API. | [
{
"docid": "187f2bd22e61b3ee7e2b805bfcd0acfd",
"score": "0.81950593",
"text": "def to_rspotify_user\n RSpotify::User.new({\"credentials\" => self.credentials})\n end",
"title": ""
}
] | [
{
"docid": "e2818aea2ef042f4e0c386b87f27a930",
"score": "0.7752327",
"text": "def rspotify_user\n @rspotify_user ||= RSpotify::User.new(self.to_rspotify_hash)\n end",
"title": ""
},
{
"docid": "bed37d4dfc7ac4f4f7fddea225e959df",
"score": "0.7638624",
"text": "def getSpotify... |
8ae384bb418228d96f2a1a43fbc299ee | Gets a random fortune and says it in chat. | [
{
"docid": "57be16e85e820e19d6691ed31ca13ecd",
"score": "0.0",
"text": "def execute(msg)\n return if Variables::Constants::IGNORED_USERS.include?(msg.user.nick)\n msg.reply(StringUtility.random_line(Variables::Constants::FORTUNE_PATH))\n end",
"title": ""
}
] | [
{
"docid": "b6f8d009db2240c6ec407377f780562b",
"score": "0.6804463",
"text": "def random_departure\n @reply_departure_text.sample\n end",
"title": ""
},
{
"docid": "2b60a04b33178a1b9842e1329b767d91",
"score": "0.67296356",
"text": "def greeting\n greetings = [\"Hello\", \"Hey\"... |
affb1fb8356b7269586f36dd6923d0fc | Retrieves the Pool Type short name | [
{
"docid": "86b6b1f2fd4fa66fdab5872bd0039fd7",
"score": "0.7815015",
"text": "def get_pool_type\n self.pool_type ? self.pool_type.i18n_short : '?'\n end",
"title": ""
}
] | [
{
"docid": "1d77680f597cd90b0d47902bb0b5eb86",
"score": "0.7842109",
"text": "def get_pool_type\n pool_type ? pool_type.i18n_short : '?'\n end",
"title": ""
},
{
"docid": "f0f3946dcf12ea723d324b8ce9a06250",
"score": "0.6901412",
"text": "def get_type_name\n\t\treturn campaign_typ... |
69e77864caa69796aab4cd1961e9342b | GET /objetivo_generales/1 GET /objetivo_generales/1.json | [
{
"docid": "e9d6a4627428bff9abb1d036aa7039b8",
"score": "0.0",
"text": "def show\n\t\traise CanCan::AccessDenied if !ObjetivoGeneral.accessible_by(current_ability, :show).include?(@objetivo_general) \n @proyecto = Proyecto.find(@objetivo_general.proyecto.id)\n end",
"title": ""
}
] | [
{
"docid": "0ce423749b12d275d640ce5dbb480eaa",
"score": "0.71468145",
"text": "def show\n @genere = Genere.find(params[:id])\n\n respond_to do |format|\n format.html # show.html.erb\n format.json { render json: @genere }\n end\n end",
"title": ""
},
{
"docid": "925c4a4c69... |
4ad5753ae89e9d35a29c793fe8238ef4 | Override prepare_cookbooks because we don't want any cookbook resolving to occur via kitchen through berks, policy | [
{
"docid": "472a1681e1c5c1b19adad12db11605b5",
"score": "0.85654545",
"text": "def prepare_cookbooks\n cp_cookbooks\n filter_only_cookbook_files\n end",
"title": ""
}
] | [
{
"docid": "759a5f53452f095bcc4a0e277da02662",
"score": "0.83884454",
"text": "def prepare_cookbooks\n if File.exist?(berksfile)\n resolve_with_berkshelf\n elsif File.exist?(cheffile)\n resolve_with_librarian\n elsif File.directory?(cookbooks_dir)\n cp_coo... |
cbd6b437e6ab0e5b19e309f4ef471b7b | Test if the subquery should use "" and not specify columns explicitly | [
{
"docid": "f6685c4db8996267480abf7c080da24e",
"score": "0.64932597",
"text": "def explicit_columns_in_subquery?\n @scope.include?(Algebra::Projection) ||\n @scope.include?(Algebra::Rename) ||\n @scope.include?(Algebra::Summarization)\n end",
"title": ""... | [
{
"docid": "ac4d6c37a0eb72e7c3c0d0b07d139594",
"score": "0.6672664",
"text": "def finding_with_ambiguous_select?(select_clause)\n !select_clause && columns.size != 2\n end",
"title": ""
},
{
"docid": "2178b37880669bfe47daf230e8991a88",
"score": "0.6259811",
"text": "d... |
f245890bdde377cc39d9bb59b9c90d38 | Protocol for attaching foregin functions. If attach_function fails to find a foreign function, this method will be called. Client code can provide an override to customize features. | [
{
"docid": "c1a66d1eb8d19299a968db5516664c07",
"score": "0.0",
"text": "def ffi_function_missing(cname, mname, args, ret)\n if func = Rubinius.find_method(self, :ffi_function_not_implemented)\n func = func[0].dup\n func.name = cname.to_sym\n add_function mname, func\n end\... | [
{
"docid": "cee6273094d1f7dcdd095f0cc091fae5",
"score": "0.6370449",
"text": "def attach_function(*args); end",
"title": ""
},
{
"docid": "ec9d4da2802272332afbd478078c9e34",
"score": "0.62918127",
"text": "def attach_function(name, a3, a4, a5=nil)\n if a5\n mname = a3\n ... |
76c6b294e52cf6ad67582bb88395c68d | Builds an child entry for a given name | [
{
"docid": "6d63cc9bde339540c74fb126d2f9d023",
"score": "0.68592745",
"text": "def child_entry(name)\n template.entry(path/name)\n end",
"title": ""
}
] | [
{
"docid": "967e21456c9c04bdcfc2976d5e8f6dd4",
"score": "0.68820554",
"text": "def child_entry(name)\n template.entry(path.nil? ? name : File.join(path, name))\n end",
"title": ""
},
{
"docid": "f55f224520c1f8424bce44fb7b1b622e",
"score": "0.6804311",
"text": "def create_... |
af630984682f1a0b5a68e6092af0d102 | Update properties of this object | [
{
"docid": "b1bc1a0c85c0435a0b7ee366a23c9e74",
"score": "0.0",
"text": "def update!(**args)\n @next_page_token = args[:next_page_token] if args.key?(:next_page_token)\n @sources = args[:sources] if args.key?(:sources)\n end",
"title": ""
}
] | [
{
"docid": "150fa2bdc1fc43d28ac45e2278a1f797",
"score": "0.7012263",
"text": "def update_properties(hash)\n hash.each do |key, value|\n setter_method = \"#{key}=\"\n if self.respond_to?(setter_method)\n self.send(setter_method, value)\n end\n end\n end",
"t... |
01327af0e46fb24c8bc6344a274cf1ce | Load Hashes full of font info for each of the readable fonts in the given +dir+ and return them in a Hash keyed by the font name. | [
{
"docid": "11fb140eca44f2d8586ed62eea2e591e",
"score": "0.80940855",
"text": "def load_fonts( dir )\n\tcount = 0\n\tfonts = {}\n\n\tDir[\"#{dir}/*.{otf,ttf}\"].each {|file|\n\t\tfile.untaint\n\t\tnext unless File.file?( file ) && File.readable?( file )\n\t\tface = nil\n\n\t\tcount += 1\n\t\tbegin\n\t\t... | [
{
"docid": "9627a2c893963f252e1c8a072e5cfe54",
"score": "0.60644156",
"text": "def fonts\n raw = `fc-list`\n fonts = []\n\n raw.lines.each do |line|\n line = line.strip\n font = {}\n\n path, details = line.split(': ')\n font['path'] = path\n\n names, styles = details.sp... |
0ddd7194843ace938863a849b7d76905 | This returns a weak ref to the controller. The controller may be destroyed and you will still have a pointer to it. Be mindful of that. When you call rmq within a controller or view, a new instance of RMQ is created with the selectors you may or may not have supplied. That instance will determine what view_controller i... | [
{
"docid": "3721163b878cf9ee49ed865ae129eb5d",
"score": "0.7495914",
"text": "def view_controller\n RMQ.weak_ref_to_strong_ref(self.weak_view_controller)\n end",
"title": ""
}
] | [
{
"docid": "5a6a4877ff18d745ac582d9969e06f08",
"score": "0.7291351",
"text": "def weak_view_controller\n if @_view_controller\n @_view_controller\n else\n if @context.is_a?(UIViewController)\n @context\n else # view\n vc = RMQ.controller_for_view(@context... |
25e024e0a8c40800bfed34595fb58804 | removes a given entities supplier/masheryid/user_id content and makes the entity inactive if the entity is unusable | [
{
"docid": "3e5545369d91b013d754ce1871a5c656",
"score": "0.55255216",
"text": "def postEntityPurge( entity_id, purge_masheryid, purge_supplier_id, purge_user_id, exclude, destructive)\n params = Hash.new\n params['entity_id'] = entity_id\n params['purge_masheryid'] = purge_masheryid\n params... | [
{
"docid": "4e975998efbeb765a76a98c774f970d3",
"score": "0.65070033",
"text": "def deleteEntityBy_supplier( entity_id, supplier_masheryid, supplier_id, supplier_user_id)\n params = Hash.new\n params['entity_id'] = entity_id\n params['supplier_masheryid'] = supplier_masheryid\n params['suppli... |
a2099a77c85e91272ae2f9e35b937953 | Only allow a trusted parameter "white list" through. | [
{
"docid": "c444214dcbccc0f97959aa5856c02c95",
"score": "0.0",
"text": "def macro_signal_params\n params.require(:macro_signal).permit(:update_date, :end_date, :time_stamp, :signal, :value, :machine_id)\n end",
"title": ""
}
] | [
{
"docid": "3663f9efd3f3bbf73f4830949ab0522b",
"score": "0.7943618",
"text": "def whitelisted_params\n super\n end",
"title": ""
},
{
"docid": "f6060519cb0c56a439976f0c978690db",
"score": "0.69572574",
"text": "def permitted_params\n params.permit!\n end",
"title"... |
eee84712e672b28de44b87a095216789 | T E S T S | [
{
"docid": "b42c2babd6054e09a951a310a7d31a69",
"score": "0.0",
"text": "def test_camel_case_to_english_should_transform_to_english\n\t\tprintTestHeader \"Lafcadio Additions: CamelCase to English\"\n\t\tres = nil\n\n\t\tCamelCaseStrings.each do |src, dst|\n\t\t\tassert_nothing_raised { res = src.en.camel... | [
{
"docid": "8d0e128ad87cd20a86507c09c46a6f67",
"score": "0.68394697",
"text": "def termitidae()\n end",
"title": ""
},
{
"docid": "2836c38d4773b1dedffca4dead1c2cf2",
"score": "0.65710264",
"text": "def t; end",
"title": ""
},
{
"docid": "ab21b7b3e3fbed0a659f17c5548ea7b... |
352e3c974781e5c19f0025f5fd6fe6d5 | New method : Setup camera reset | [
{
"docid": "7d37c8c0f352895687188854bca1f8c1",
"score": "0.8064217",
"text": "def setup_camera_reset\n return TSBS.error(@acts[0], 1, @used_sequence) if @acts.size < 2\n $tsbs_camera.move_camera(nil, 0, 0, @acts[1], 1.0, @acts[2] || \n DEFAULT_CAM_METHOD)\n end",
"title": ""
}
] | [
{
"docid": "e09ca3fcbd6ec0739191274b51b1de8e",
"score": "0.69793206",
"text": "def reset_tilt\n if( not @rep )\n # TODO we can activate the camera without having a camera rep\n # I need to add methods to just reset the view camera in this case\n UI.beep\n return\n end\n... |
14713210bbceb73f53e55e5152a51213 | POST /requests POST /requests.json | [
{
"docid": "42c4db23c97dad151f168a02e3255067",
"score": "0.0",
"text": "def create\n @request = Request.new(params[:request])\n\n @request.requester_email = current_user.email.strip.downcase\n @request.requested_at = Time.now\n @request.status = 'Pendiente'\n\n if @request.requester_email... | [
{
"docid": "4714a87ad0c5a705fa8788c80f9a4d03",
"score": "0.62527245",
"text": "def http_post(path, request)\n @http.post(\n :body => JSON(:request => request.to_hash),\n :headers => headers,\n :path => \"/api/v2/#{path}\",\n :expects => [200, 201, 202]\n ... |
453b82cbf33077dff4bf9bad72641e83 | Check existence of scripts in the script cache. O(N) with N being the number of scripts to check (so checking a single script is an O(1) operation). | [
{
"docid": "5fea78fa6d06895b51e5750de3ae5cad",
"score": "0.6409548",
"text": "def script_exists(*arguments)\n\t\t\t\t\tcall(\"SCRIPT EXISTS\", *arguments)\n\t\t\t\tend",
"title": ""
}
] | [
{
"docid": "61a686c264a746461ac9cb3d0d5cc39f",
"score": "0.6820229",
"text": "def checkcache(filename=nil, use_script_lines=false)\n\n if !filename\n filenames = @@file_cache.keys()\n elsif @@file_cache.member?(filename)\n filenames = [filename]\n else\n return nil\n end\n\n ... |
5063ee563c90a71e384be285e9102572 | Sets the attribute text | [
{
"docid": "98bb0fa3a2d7f5866365fe7d1b391b77",
"score": "0.0",
"text": "def text=(_arg0); end",
"title": ""
}
] | [
{
"docid": "5ad193b5dc2aceacbebc0d82bb02d970",
"score": "0.8735387",
"text": "def set_text(text)\n self.attr_state.attr_text = text\n end",
"title": ""
},
{
"docid": "e0c4db485be55a2c7179709940204442",
"score": "0.7806765",
"text": "def text(value)\n attributes[:text] ... |
41b5f3cf431c383aa5a6ed7c41e21cf7 | Print summary of both values (first + second) | [
{
"docid": "42dd2a1420478632245e91a3cbd093bb",
"score": "0.64732563",
"text": "def calc_sum_two(first, second)\n\n puts \"the sum of #{first} and #{second} is #{first + second}\"\n\nend",
"title": ""
}
] | [
{
"docid": "7102a600dbc30cb9e0d8a79f6b673c01",
"score": "0.65547305",
"text": "def print_summary\n stats = [statistics[:total_code_loc], statistics[:total_spec_loc]]\n stats.push(stats[1].to_f / stats[0].to_f)\n \n puts \" Code LOC: %s Test LOC: %s Code to Test Ratio... |
ac7354f821403be8cecbe338e0aa3f42 | Return user by Role | [
{
"docid": "d79c7e34d38554e3010895ebd86d4d15",
"score": "0.74715483",
"text": "def usersByRole\n if Spree::Role.where(:name => params[:role]).empty? == false\n case params[:role]\n when \"admin\"\n @User = Spree::User.admin\n when \"customer\"\n @User = Spree::Use... | [
{
"docid": "90d12e493cc6d88bf16352a825b2de9b",
"score": "0.78575945",
"text": "def get_user_in_role(role)\n Role.find_by_name(role).users\n end",
"title": ""
},
{
"docid": "b748ab02ad8447050725aefcf65bd0dc",
"score": "0.765147",
"text": "def users_with_role role_name\n users.w... |
5e509b670788f5eecc72b3735b41d195 | PATCH/PUT /location_levels/1 PATCH/PUT /location_levels/1.json | [
{
"docid": "e164a884595adb52851f3b3d5ed9b2da",
"score": "0.73542124",
"text": "def update\n respond_to do |format|\n if @location_level.update(location_level_params)\n format.html { redirect_to @location_level, notice: 'Location level was successfully updated.' }\n format.json { he... | [
{
"docid": "8db5cd687b9626a10e5b13b1041c1c20",
"score": "0.69466376",
"text": "def update\n respond_to do |format|\n if @level.update(level_params)\n format.html { redirect_to referential_level_path(@referential, @level), notice: 'Level was successfully updated.' }\n format.json { ... |
c657de4b70d266e9a3a784b999ea9e60 | Never trust parameters from the scary internet, only allow the white list through. | [
{
"docid": "5d31c6a2e21a2a3ce2ce7012bf74c199",
"score": "0.0",
"text": "def kontratum_params\n params.require(:kontratum).permit(:formulari_id, :punetori_id, :biznesi, :nr_biznesit, :emri, :emri_prindit, :mbiemri, :vendlindja, :ditelindja, :adresa, :qyteti, :shteti, :leternjoftimi, :pozita, :kontra... | [
{
"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... |
4bbc3669260a9e798b8c03128660af8f | TODO check if obsolete? | [
{
"docid": "1cdbd779cd0d2717d6281860db20a4a9",
"score": "0.0",
"text": "def owner=(value)\n self.person = value if a_person\n end",
"title": ""
}
] | [
{
"docid": "ef1e4c0cc26e4eec8642a7d74e09c9d1",
"score": "0.8204694",
"text": "def private; end",
"title": ""
},
{
"docid": "d8ae3e2b236950074c4632d180274b8a",
"score": "0.6932252",
"text": "def specie; end",
"title": ""
},
{
"docid": "d8ae3e2b236950074c4632d180274b8a",
... |
01d607cefa75eae5df9a751b36d067aa | Test the +each+ method. The +each+ method is required for the Enumerable mixin. | [
{
"docid": "4af888896afc899be4fde9457a0eba50",
"score": "0.7205535",
"text": "def test_0010_each\n @@log.debug \"test_0010_each starts\" if @@log.debug?\n count = 0\n @list.each do |elt|\n count += 1\n end\n assert_equal(4, count)\n @@log.debug \"test_0010_each ends\" if @@log.deb... | [
{
"docid": "fc7470cd57cf249d0ed05cb809679eb7",
"score": "0.73955905",
"text": "def test_each_is_a_method_on_arrays\n assert_equal true, [].methods.include?(as_name(:each))\n end",
"title": ""
},
{
"docid": "2bb3c501cb4185f142934bcbb2cec0fd",
"score": "0.70164937",
"text": "def ea... |
9bd2786258099961dccd9e04071fd174 | GET /articles GET /articles.json | [
{
"docid": "f85eddfc9a7e60548cf8ebc395fbc1fc",
"score": "0.0",
"text": "def index\n condition = { published: true }\n condition[:author] = params[:author] if params[:author]\n @articles = Article.find_with_pagination(params, condition)\n @first = true if [nil,\"1\"].include? params[:page] an... | [
{
"docid": "19a11bbe551c564fa7cca7d31c8cbc3f",
"score": "0.8121748",
"text": "def show\n @articles = Article.find(params[:id])\n render json: @articles\n end",
"title": ""
},
{
"docid": "d3f6690e96780612b04d7c8ac2519fb1",
"score": "0.7839019",
"text": "def index\n @articl... |
e372bad5cf6fe13ced6145bdad439bac | GET /post46s/new GET /post46s/new.xml | [
{
"docid": "9e2f15b480c2592bcfa73ce7e380cbb9",
"score": "0.74773115",
"text": "def new\n @post46 = Post46.new\n\n respond_to do |format|\n format.html # new.html.erb\n format.xml { render :xml => @post46 }\n end\n end",
"title": ""
}
] | [
{
"docid": "879cb66276bd00e582f27d8e6667c581",
"score": "0.76134783",
"text": "def new\n @post155 = Post155.new\n\n respond_to do |format|\n format.html # new.html.erb\n format.xml { render :xml => @post155 }\n end\n end",
"title": ""
},
{
"docid": "81b3f1a1b84b920cb9238... |
c95ea575cd8a62881e2b6687ac8bfa99 | List of available shares | [
{
"docid": "277c887064412d824ae31b85c629376d",
"score": "0.7094956",
"text": "def shares\n @users.map { |u| u.share }.uniq\n end",
"title": ""
}
] | [
{
"docid": "bc718e7f8192fe261ad3f60b5984a29a",
"score": "0.7828662",
"text": "def shares\n return @shares\n end",
"title": ""
},
{
"docid": "bc718e7f8192fe261ad3f60b5984a29a",
"score": "0.7828662",
"text": "def shares\n return @shares\n ... |
53a87a480d381be646d45ce559686667 | Return an array of time, starting from the trigger point | [
{
"docid": "3c4d6c7753f749190fa5df3c0c7a22b1",
"score": "0.7151326",
"text": "def generate_time\n\t\tret = Array.new\n\t\tcount unless @fileinfo[:count]\n\t\ttrigger unless @fileinfo[:trigger]\n\t\tsampling unless @fileinfo[:sampling]\n\n\t\t(0..@fileinfo[:count] - @fileinfo[:trigger] - 1).each {|i| \n\... | [
{
"docid": "24acce100c152af9d9970c903b24644f",
"score": "0.69327456",
"text": "def get_times_array(padding = true)\n @times = (padding) ? [@start_dt - 1.hour] : [@start_dt]\n \n # and including every 1/2 hour until one hour after the selected end time\n while true do\n tmp = @times.last ... |
a4631d00ea0e38674564724f42f7f156 | convert escaped strings, remove scritpts | [
{
"docid": "1f777249d578f1836c2560945e840b04",
"score": "0.0",
"text": "def to_html opts={}\r\n value = self.gsub(/</, '<').gsub(/>/, '>').gsub(/&/,'&')\r\n value = value.gsub(/<script/,'<script') unless opts[:script]\r\n value = value.gsub(/<link/,'<link') unless opts[:link]\r\... | [
{
"docid": "48d2b8d2230f5e56543feb5bf86b6e31",
"score": "0.7414532",
"text": "def parse_escaped_chars; end",
"title": ""
},
{
"docid": "4e2cba583451897060be2ae28efcbe12",
"score": "0.7140509",
"text": "def clean(str)\n str = str[1...(str.length - 1)] if literal\n escaped = ... |
0ca44e3e21933354f17537f1f5c4ae66 | Returns the generated thing. TODO generate klass, times = 1, &after_generation ? | [
{
"docid": "4ef4c62eb06e03c5b94148d62a3c8963",
"score": "0.6029605",
"text": "def generate klass\n generated = klass.new self.window\n generated.warp self.position * 1.0\n generated.show\n generated\n end",
"title": ""
}
] | [
{
"docid": "bda9517024cff71715a5865b5eefbf3c",
"score": "0.7056071",
"text": "def generate\n self \n end",
"title": ""
},
{
"docid": "d27f0f98dd116af648356a69eaecf752",
"score": "0.6644146",
"text": "def generate\n end",
"title": ""
},
{
"docid": "75daaf0c912852b6a... |
c657de4b70d266e9a3a784b999ea9e60 | Never trust parameters from the scary internet, only allow the white list through. | [
{
"docid": "e266f688590e909fe4cf045404ddc8c9",
"score": "0.0",
"text": "def answer_params\n params.require(:answer).permit(:contents, :points)\n end",
"title": ""
}
] | [
{
"docid": "3663f9efd3f3bbf73f4830949ab0522b",
"score": "0.7495027",
"text": "def whitelisted_params\n super\n end",
"title": ""
},
{
"docid": "13a61145b00345517e33319a34f7d385",
"score": "0.69566035",
"text": "def strong_params\n params.require(:request).permit(param_whit... |
bd3a7dfddc30bc69012064ac1ec450c4 | Given a hash with numeric values, return the key for the smallest value | [
{
"docid": "11400bfbf7632aab9972d6c0bca73c87",
"score": "0.0",
"text": "def key_for_min_value(name_hash)\n return nil if name_hash.empty?\n\n arr_new = []\n name_hash.each {|name, value| arr_new << value}\n\n min = arr_new[0]\n arr_new.each {|i| min = i if i < min}\n\n name_hash.each {|name, value... | [
{
"docid": "187165074e32a7573ee53a9cabb44ed4",
"score": "0.8880233",
"text": "def key_for_min_value(hash)\n lowest_key=nil \n lowest_value= Float::INFINITY\n hash.each do |name,number|\n if number < lowest_value\n lowest_value=number\n lowest_key= name\n end \n end\n lowest_key\nend... |
6a3b2ecec44b0179e63233464499eb77 | N.B. This method is a special case to address the bug described by 434. We are applying this special case for each only. Future bugs of this class will be handled by requesting users to patch their ruby implementation, to save adding too many methods in this class. | [
{
"docid": "9845c07fd2a0e648fc68a9ccf5acd60b",
"score": "0.0",
"text": "def each(*args, &block)\n @body.each(*args, &block)\n end",
"title": ""
}
] | [
{
"docid": "0c860d341b57fa9168894e792350480f",
"score": "0.6429512",
"text": "def missingimpl; end",
"title": ""
},
{
"docid": "c3285b979f713395f60cf13edce8a310",
"score": "0.6235923",
"text": "def methodmissing; end",
"title": ""
},
{
"docid": "2290804b238fc95bfd6b38f87c... |
6896140ef4999041492f7d132b1a998c | Normalizes all fields for the given data based on the fields list provided. | [
{
"docid": "c5dc4f3177c43dac01e36ab1e3c55aac",
"score": "0.86292285",
"text": "def normalize_fields(data, fields)\n fields.each do |field|\n field_name = field[:name]\n if data.include?(field_name)\n field_data = data[field_name]\n field_data = normalize_output_field... | [
{
"docid": "cc17b1ed09d0424c8aaf7fb58bc37864",
"score": "0.7017041",
"text": "def normalize(data)\n self.normalizeField(:\"#{self.name}\",data)\n end",
"title": ""
},
{
"docid": "dde1981344aeba7796c88f494e5be038",
"score": "0.6659308",
"text": "def normalise_form_fields( fields =... |
d3a3bc0b0b49e519cf6787562a8a61ae | POST /vertientes POST /vertientes.json | [
{
"docid": "aac2f4f8c3d19b5052acb7f96c7cd124",
"score": "0.68118477",
"text": "def create\n ActiveRecord::Base.transaction do\n @vertiente = Vertiente.new(vertiente_params)\n\n respond_to do |format|\n if @vertiente.save\n format.html { redirect_to @vertiente, notice: 'La Ve... | [
{
"docid": "bfd6bbab2ae6919ccbdaaf0054f1b6ab",
"score": "0.66447705",
"text": "def create\n @vente = Vente.new(vente_params)\n\n respond_to do |format|\n if @vente.save\n format.html { redirect_to @vente, notice: 'Vente was successfully created.' }\n format.json { render :show, ... |
b20ff3707273276a9b2773321b08e6bf | result = '' need_upper = true text.chars.each do |char| if char =~ /[^azAZ]/ result += char next elsif need_upper result += char.upcase else result += char.downcase end need_upper = !need_upper end result end alt w/ extra conditional def staggered_case(text) result = '' need_upper = true text.chars.each do |char| if ch... | [
{
"docid": "37eb04955ac2688b5373fb50624b1eb9",
"score": "0.83114976",
"text": "def staggered_case(text, only_letters=true)\n result = ''\n need_upper = true\n text.each_char do |char|\n if char =~ /[a-z]/i\n result += ( need_upper ? char.upcase : char.downcase )\n need_upper = !need_uppe... | [
{
"docid": "b81bc843d24a8506debb196c62b79678",
"score": "0.8121733",
"text": "def staggered_case(text, start_upper=true)\n result = ''\n start_upper == true ? need_upper = true : need_upper = false\n text.chars.each do |char|\n if need_upper\n result += char.upcase\n else\n result += ... |
c657de4b70d266e9a3a784b999ea9e60 | Never trust parameters from the scary internet, only allow the white list through. | [
{
"docid": "8bb7f94d089f36b1acb1a493fc827848",
"score": "0.0",
"text": "def campaign_params\n params.require(:campaign).permit(:displayname, :hooks_json_string)\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... |
3fa99f44742a36293a5c5b65c15c6019 | GET /knols GET /knols.json | [
{
"docid": "c998eb903a66fd3864e7253940e883e3",
"score": "0.7017866",
"text": "def index\n @knols = Knol.all\n end",
"title": ""
}
] | [
{
"docid": "611ecf3bca7834074b02f15bb000f5c2",
"score": "0.6424935",
"text": "def index\n @laws = Law.ordered_roots\n respond_to do |format|\n format.html # index.html.erb\n format.json { render json: @laws }\n end\n end",
"title": ""
},
{
"docid": "ad33b1d5a795f61dfd82b6... |
7c0bb8448066d03f3cbf948836a3334e | Returns true if the user is logged in, false otherwise. | [
{
"docid": "856929da72b819377741e64ea289dc22",
"score": "0.0",
"text": "def employee_logged_in?\n !current_employee.nil?\n end",
"title": ""
}
] | [
{
"docid": "31fb4132def094f5ed9925db932d58eb",
"score": "0.89972186",
"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.8901693"... |
e07399f12eebf395d5f380de98c6267a | Moves to the last page, and returns it. | [
{
"docid": "989b4d94074733bdf3625827a023ebf1",
"score": "0.7776726",
"text": "def last\n @curr = pages - 1\n curr\n end",
"title": ""
}
] | [
{
"docid": "e42d6f55fc3e0eecb61091a1948a78c2",
"score": "0.7780431",
"text": "def last_page\n page(page_count)\n end",
"title": ""
},
{
"docid": "b7d134823bded625d1aadb54a4db6839",
"score": "0.7745627",
"text": "def last_page\n self[page_count] \n end",
"title": "... |
7f46a9018c6e48e1aa2a2d211053673e | GET /maintenance_shop_lists GET /maintenance_shop_lists.json | [
{
"docid": "f21b7587c1ac4645aba810264a4d6a2e",
"score": "0.7990719",
"text": "def index\n @maintenance_shop_lists = MaintenanceShopList.all\n end",
"title": ""
}
] | [
{
"docid": "0a79270a70c597df1626d0ad0f85ea6e",
"score": "0.71197283",
"text": "def set_maintenance_shop_list\n @maintenance_shop_list = MaintenanceShopList.find(params[:id])\n end",
"title": ""
},
{
"docid": "2e70b027401b75a77393389f324eb65a",
"score": "0.70307696",
"text": "... |
f14cd2e35b436886d48d9e85b2fb114e | POST /planets planetcreate create a new planet | [
{
"docid": "96ee03f0f3bd0e7887b500e268757fd9",
"score": "0.8260696",
"text": "def create\n planet = Planet.create(planet_params)\n redirect_to \"/planets/#{ planet.id} \"\n end",
"title": ""
}
] | [
{
"docid": "143fb02e91ed7c7427741b96764fb9aa",
"score": "0.8532796",
"text": "def create\n Planet.create(\n name: params[:planet][:name],\n mass: params[:planet][:mass],\n orbit: params[:planet][:orbit],\n moons: params[:planet][:moons],\n image_url: params[:plane... |
be1989212fb8cbadde034941a5eef4fd | perform Author: mayur Date: 10/01/2019 Reviewed By: | [
{
"docid": "17fc4503e2390d5e508a6d2e5ee37f55",
"score": "0.0",
"text": "def perform\n r = validate_and_sanitize\n return r unless r.success?\n\n update_user_kyc_status\n\n update_aml_match_status\n\n send_approved_email\n\n success_with_data(@api_res... | [
{
"docid": "ed8f7b2514a2e125f2802739f2b1f35d",
"score": "0.646494",
"text": "def atest_ID_25863_reposted_review()\n # Need clarification\n end",
"title": ""
},
{
"docid": "a50cab5351863d3cda1f4f41d5672671",
"score": "0.60557693",
"text": "def review\n end",
"title": ""
},... |
45f498ff9126f9ec91903a31b141c29b | Updates attributes and saves this Resource instance, bypassing hooks | [
{
"docid": "8666e8773ca5da8f9314a02fc69355de",
"score": "0.0",
"text": "def update!(attributes = {})\n self.attributes = attributes\n\n if dirty_attributes.empty?\n true\n elsif dirty_attributes.any? { |property, value| !property.nullable? && value.nil? }\n false\n else... | [
{
"docid": "4851279a43eb1857f63f6836fcbb4b61",
"score": "0.7586573",
"text": "def update_attributes!(attributes)\n load(attributes) || raise(ResourceNotSaved)\n save! \n end",
"title": ""
},
{
"docid": "4366a1a6f3779a8448ceec3bad0f5410",
"score": "0.7457031",
"text": "def save... |
5b4216b0f26ef4305a30e50562328449 | return the list of specifications/value for the current products_query / knowledge | [
{
"docid": "683306f207f94f05bce3bac2a209ef32",
"score": "0.0",
"text": "def index\n @products = @current_products_query.execute_query\n end",
"title": ""
}
] | [
{
"docid": "9c7ef81792be83111848e434f5d2cf71",
"score": "0.66453314",
"text": "def values_with_products\n r = {}\n product_specifications.each do |product_specification|\n r[product_specification.value] ||= []\n r[product_specification.value] << product_specification.product\n end\n ... |
cd18aae0af8328411b7fcd5de2caec8d | Is this a scalene Triangle? ( | [
{
"docid": "239727a90ddc271511f1906cbd34a62f",
"score": "0.0",
"text": "def scalene?\n type == :scalene\n end",
"title": ""
}
] | [
{
"docid": "b12cf3bb4c4f0e2e0fa6b36b84145dce",
"score": "0.7487384",
"text": "def test_triangle\n if @side1.eql?(@side2) && @side2.eql?(@side3)\n \"It's an equilateral\"\n elsif @side1.eql?(@side2) || @side2.eql?(@side3)\n \"It's an isosceles\"\n elsif @side1.eql?(@side2) == false && ... |
67d64c81343eaee0482170c3ded67622 | Instantiates a new aadUserConversationMember and sets the default values. | [
{
"docid": "1b724823eac8f3ee56d068c887ed1bea",
"score": "0.7007518",
"text": "def initialize()\n super\n @odata_type = \"#microsoft.graph.aadUserConversationMember\"\n end",
"title": ""
}
] | [
{
"docid": "e730a741baa135cc46485366c67d5a60",
"score": "0.59556687",
"text": "def conversation_member_user=(value)\n @conversation_member_user = value\n end",
"title": ""
},
{
"docid": "cd65791926ab0a30cd70587bfc63a1ed",
"score": "0.58946663",
"text": "def ... |
9b58f2faa1996b7bd3f4f8fef0397541 | =========================== foreign key validations: =========================== | [
{
"docid": "06e86ebc34f9003c4610128f4c30db6f",
"score": "0.0",
"text": "def set_clothing_transaction_type\n\n\tclothing_transaction_type = ClothingTransactionType.find_by_clothing_transaction_type_code(self.clothing_transaction_type_code)\n\t if clothing_transaction_type != nil \n\t\t self.clothing_tran... | [
{
"docid": "00bc5acc5761e368c48c592feeb24adf",
"score": "0.7854644",
"text": "def all_foreign_keys_valid?; end",
"title": ""
},
{
"docid": "7330684b27116a767104ceb96457b05d",
"score": "0.7513045",
"text": "def validate_foreign_key(from_table, to_table = nil, **options)\n fk_... |
3ba0e568dbb035140d6188bed44e1637 | Extracts the :properties named option (for a Context) from the hash given and returns an FFI:Pointer to a 0 terminated list of properties | [
{
"docid": "fe34533ac4a2c8eb1dd222c2c4581e5b",
"score": "0.657019",
"text": "def get_context_properties( options )\n properties = nil\n if options[:properties] then\n properties = FFI::MemoryPointer::new( :cl_context_properties, options[:properties].length + 1 )\n options[:proper... | [
{
"docid": "4e5645b34a6ac832d14b1373f56dde34",
"score": "0.6390115",
"text": "def load_properties( hash )\n prop_hash = {}\n opt_list.each do |o|\n next unless hash.has_key?( o.long )\n prop_hash[o.property_name] = hash[o.long]\n end\n return Yacl::Properties.new( prop_... |
822df8797970a4039e5024a87aa44334 | Add the given association to the policy map. If an association between user_attribute and object_attribute already exists, then replace it with that given in the arguments. Returns true if the association was added and false otherwise. | [
{
"docid": "f0a342e9020e2a389e73535d99ef9e9c",
"score": "0.6511361",
"text": "def add_association(user_attribute, operation_set, object_attribute)\n if self.buffering?\n associate_later(user_attribute, operation_set, object_attribute)\n else\n PolicyElementAssociation.add_associa... | [
{
"docid": "e5be1e1864ddc2e72535fd2837db0498",
"score": "0.72484994",
"text": "def add_association(user_attribute, operation_set, object_attribute)\n # TODO: scope by policy machine uuid\n associations[user_attribute.unique_identifier + object_attribute.unique_identifier] =\n [user_att... |
eb0e27b195a0338a10fe9414ce1bbeaf | svcprop returns multivalue entries delimited with a space | [
{
"docid": "b2d7d9f212c3806cedfcc3dd5eab1113",
"score": "0.0",
"text": "def delimiter\n \" \"\n end",
"title": ""
}
] | [
{
"docid": "1fa9c278d6382c0fdfc904e67263017d",
"score": "0.59434044",
"text": "def property_details(separator = ': ')\n variant_properties.collect {|vp| [vp.property.display_name ,vp.description].join(separator) }\n end",
"title": ""
},
{
"docid": "d3c94ef8cab304d8e72f12674263f218",
... |
96e6031306e356c57d51a84f2023b749 | Create a bundle by checking out a github repo. | [
{
"docid": "cf5f5af7b2b178df97cc78947a79c0bc",
"score": "0.7731463",
"text": "def github_bundle(folder_name, repo_name) \n bundle(folder_name) {\n sh \"git clone --depth=1 https://github.com/#{repo_name}\"\n yield if block_given?\n }\nend",
"title": ""
}
] | [
{
"docid": "c9ed6a5123132d290b3eacba8b42de85",
"score": "0.70110136",
"text": "def release_to_github(bundle_path)\n if self.github_repo\n github = Yolo::Tools::Github.new\n notes = Yolo::Tools::Ios::ReleaseNotes.html\n github.repo = self.github_repo\n ... |
6019d88d731c2c74e0cd87515f4803db | Boost query, anything can filter first goes here | [
{
"docid": "96fb3dc37a4f2ffeb86c8421f9c18b07",
"score": "0.0",
"text": "def initial_query(arg)\n query = Hash.new\n\n if arg[:from].present? and arg[:to].present?\n from = Time.parse(arg[:from])\n to = Time.parse(arg[:to]).end_of_day\n query[:created_at] = from..to\n ... | [
{
"docid": "bbf0eb01c331852fa8b71de5bd326f20",
"score": "0.7297183",
"text": "def query\n process_filter(params)\n end",
"title": ""
},
{
"docid": "eb2996860362f20764d82a1c47575e1a",
"score": "0.711139",
"text": "def query_filters; end",
"title": ""
},
{
"docid": "27c... |
4900ed1e30ae6b6bb8f927f81c540526 | Create a new token | [
{
"docid": "8352fec2d5f22d931783317442088438",
"score": "0.0",
"text": "def initialize(arg = nil)\n @arg = arg\n\n @active = false\n end",
"title": ""
}
] | [
{
"docid": "c15a374e70d673684f55b54a49292b41",
"score": "0.80582225",
"text": "def create(body = {})\n @client.token.create(body)\n end",
"title": ""
},
{
"docid": "eae09d5bd720ecdc61a504827392d411",
"score": "0.78655595",
"text": "def create_token\n token = SecureRandom.h... |
695ee3ef3ebba57d000f3ddf40159f44 | Actualiza la informacion del telefono especifico de la persona especifica | [
{
"docid": "f40fa6321990f232a55b68d961d8158e",
"score": "0.657885",
"text": "def update\n @telefono = @persona.telefonos.find(params[:id])\n\n respond_to do |format|\n if @telefono.update_attributes(params[:telefono])\n flash[:notice] = \"El Telefono #{@telefono.numero.to_s} de #{@pers... | [
{
"docid": "6f0919867f9bcc307749faf709d4f7cb",
"score": "0.72540605",
"text": "def set_telefono\n @telefono = Telefono.find(params[:id])\n end",
"title": ""
},
{
"docid": "ef7a51a35bd395054f0f7a03b577e33f",
"score": "0.6720451",
"text": "def set_prospecto_telefono\n @pro... |
73e728f2de74b38e1767748b91bebc2d | GET /announcements/1 GET /announcements/1.json | [
{
"docid": "86d1ec4f7274f0773bf1d64e31d8fc7a",
"score": "0.0",
"text": "def show\n if not @announcement.global\n @employeeName = @announcement.employee.person.first_name + ' ' + @announcement.employee.person.last_name\n end\n end",
"title": ""
}
] | [
{
"docid": "7cf0ad24b9396b39592fb82898eef9a7",
"score": "0.793213",
"text": "def show\n @announcement = Announcement.find(params[:id])\n render json:@announcement\n end",
"title": ""
},
{
"docid": "b98a05d4c95418fe06741534767b8519",
"score": "0.7745622",
"text": "def show\n ... |
21fc9e75df63cd0be52f44bcb7438a8a | /serials/getDataForRecent at least one episode | [
{
"docid": "167de64fa194bcb114cd25990fa7618c",
"score": "0.6592541",
"text": "def get_data_for_recent\n begin\n data = []\n #valid_user = api_user.try(:check_login) || false\n serials = Serial.fetch_recent_watched_serials(limit: limit, offset: params[:skip].to_i).uniq\n serials.ea... | [
{
"docid": "1e09515ac99471f67924781b7d8c42e8",
"score": "0.62309504",
"text": "def recently_listened_episodes\n Episode\n .joins(:episode_datas)\n .order('episode_data.updated_at DESC')\n .where(['episode_data.updated_at > ?', 1.month.ago])\n .where(episode_data: { user_id: id })\... |
f74c29bdfc4a183e1ec1b91334cd5be2 | Use callbacks to share common setup or constraints between actions. | [
{
"docid": "e4a125c4021d5f40f8b5037b1565c544",
"score": "0.0",
"text": "def set_cardbox\n @cardbox = Cardbox.find(params[:id])\n end",
"title": ""
}
] | [
{
"docid": "631f4c5b12b423b76503e18a9a606ec3",
"score": "0.60339177",
"text": "def process_action(...)\n run_callbacks(:process_action) do\n super\n end\n end",
"title": ""
},
{
"docid": "7b068b9055c4e7643d4910e8e694ecdc",
"score": "0.60135007",
"text": "d... |
c657de4b70d266e9a3a784b999ea9e60 | Never trust parameters from the scary internet, only allow the white list through. | [
{
"docid": "b2d2e3b48f984bf7cd097a60763e557a",
"score": "0.0",
"text": "def course_params\n params.require(:course).permit(:course_number, :title, :description, :start_date, :end_date, :is_active, :notifications, :deadlines)\n end",
"title": ""
}
] | [
{
"docid": "e164094e79744552ae1c53246ce8a56c",
"score": "0.6981269",
"text": "def strong_params\n params.require(:user).permit(param_whitelist)\n end",
"title": ""
},
{
"docid": "e662f0574b56baff056c6fc4d8aa1f47",
"score": "0.6783559",
"text": "def strong_params\n params.requi... |
a6527a2ee7f77ed7a93a4b65ae76ef25 | Obtain an InputSet object, used to define inputs for an execution of this Choreo. | [
{
"docid": "4e5e6fceeb3b0a529319e7f30ecc74d3",
"score": "0.5842277",
"text": "def new_input_set()\n return UpdateActivityInputSet.new()\n end",
"title": ""
}
] | [
{
"docid": "64c57f88a4eac6079f885b7b88602378",
"score": "0.66497",
"text": "def execute(input_set = nil)\n # If the inputs are not configured, create a blank set.\n if input_set == nil\n input_set = InputSet.new()\n end\n param_map = {\"source_id\" => TembooSession.get_identifier()}\n ... |
382a3bcd7598da481d5389e1b65e3304 | DELETE /nhifs/1 DELETE /nhifs/1.xml | [
{
"docid": "c7ef0e749a57b931e773b9ad95b08900",
"score": "0.70157677",
"text": "def destroy\n @nhif = Nhif.find(params[:id])\n @nhif.destroy\n\n respond_to do |format|\n format.html { redirect_to(nhifs_url) }\n format.xml { head :ok }\n end\n end",
"title": ""
}
] | [
{
"docid": "d070d64dde297499698417fbb1cf9d33",
"score": "0.63121164",
"text": "def delete_rdns!(ip)\n path = \"/rdns/#{ip}\"\n perform_delete path\n end",
"title": ""
},
{
"docid": "df26116eb86dbadafed7137f9e3c2f9e",
"score": "0.6280001",
"text": "def delete!\r\n ... |
1ec00e4634a1a9da6a35e8eee7a08c71 | Derive a secret key from a seed, given an index. | [
{
"docid": "8d8bfca7e781c2b99cd8ef74dace1345",
"score": "0.9042043",
"text": "def derive_secret_key(seed, index)\n raise(\n ArgumentError, \"Seed is invalid\"\n ) unless Nano::Check.is_seed_valid?(seed)\n raise(\n ArgumentError, \"Index is invalid\"\n ) unless Nano::Che... | [
{
"docid": "146095581608e591a3a89e4eb1257ad9",
"score": "0.6178808",
"text": "def hash_key(key, index = nil)\n key = \"#{key}:#{index}\" if index\n Digest::MD5.hexdigest(key.to_s)[0..16].hex\n end",
"title": ""
},
{
"docid": "d39e1eeb5bbd8bf1afb3c4bf7773d0e6",
"score": "0.60... |
c657de4b70d266e9a3a784b999ea9e60 | Never trust parameters from the scary internet, only allow the white list through. | [
{
"docid": "5c60f16c891eba916da554e5622727b5",
"score": "0.0",
"text": "def shopping_cart_params\n params.require(:shopping_cart).permit(:total_cost, :order_number, :user_id, :active, :paid)\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... |
f4cccf7a40ae820bdd6d097d773a9e60 | iterates over that artist's songs and collects the genre of each song | [
{
"docid": "10638092036c9a8eef91d75b692bd5e7",
"score": "0.7703677",
"text": "def genres\n @songs.collect do |song|\n song.genre\n end\n end",
"title": ""
}
] | [
{
"docid": "2427b83c5f93eb6542f34c89e320f2f2",
"score": "0.80878794",
"text": "def genres\n songs.each.collect do |song|\n song.genre\n end\n end",
"title": ""
},
{
"docid": "af2853ca280a3f4a79c5083c612cec35",
"score": "0.80416983",
"text": "def genres\n#collects genres t... |
6ae9c8196adceb599f75b3ef934e7444 | finds reselling reservation with matching time/court assigns to user and converts into normal reservation makes it reversible by initial_membership_id | [
{
"docid": "5f3f4e2692404738a99888e4b9257f47",
"score": "0.6502474",
"text": "def take_matching_resell\n resell = Reservation.reselling.where(start_time: start_time, end_time: end_time, court: court).take\n if resell && resell.resellable?\n resell.assign_attributes( price: price,\n ... | [
{
"docid": "fc8b6f7189910603efe45ffeaac56b22",
"score": "0.6398583",
"text": "def take_matching_resell\n return self unless court.present? && start_time.present? && end_time.present?\n\n resell = find_matching_resell\n\n if resell && resell.resellable?\n resell.assign_attributes(base_resol... |
7b6885bf7c718e0d6f28bd7667e3f536 | Adds a judgement (Document, Query, relevancy) to the GoldStandard. All of those are represented as strings in the public interface. The user ID is an optional parameter that can be used to measure kappa later. Call this with: add_judgement :document => doc_id, :query => query_string, :relevant => boolean, :user => John | [
{
"docid": "79fe9837c833730e3ac3b28e235352f0",
"score": "0.8275446",
"text": "def add_judgement(args)\n document_id = args[:document]\n query_string = args[:query]\n relevant = args[:relevant]\n user_id = args[:user]\n \n \n unless document_id.nil? or query_string.nil?... | [
{
"docid": "878289ebb4ea5dcb932558250ee88607",
"score": "0.6464448",
"text": "def add_judgement(judgement)\n @judgements << judgement unless @judgements.include?(judgement)\n end",
"title": ""
},
{
"docid": "dbb642d4f1332aabf5d5352183057b30",
"score": "0.6227235",
"text": "de... |
009368d96cc238ecbfdc09c7b88fe9b1 | Disconnects from the server. | [
{
"docid": "779ac587629055413ecc4678a8a9dfcb",
"score": "0.763795",
"text": "def disconnect\n ensure_connected\n\n @socket.close\n @socket = nil\n end",
"title": ""
}
] | [
{
"docid": "f1b43b19e672a8f54bcaf3ecabc5f2fa",
"score": "0.8283728",
"text": "def disconnect\n try{ @server.disconnect }\n @server = nil\n end",
"title": ""
},
{
"docid": "426ce09f951acb239b50f2553c72008a",
"score": "0.79927534",
"text": "def disconnect\n... |
094398afd91b809bff83937f70ca4abe | Begin processing the document | [
{
"docid": "3229f876b528538e2e3be797b21c0584",
"score": "0.56025696",
"text": "def document (root)\n callback(:begin_document, [root])\n walk_pages(@xref.object(root[:Pages]))\n callback(:end_document)\n end",
"title": ""
}
] | [
{
"docid": "56633d7f70f7e65b862d990b7f6190d4",
"score": "0.7761111",
"text": "def start_document; end",
"title": ""
},
{
"docid": "56633d7f70f7e65b862d990b7f6190d4",
"score": "0.7761111",
"text": "def start_document; end",
"title": ""
},
{
"docid": "4e27d8be810382d2f36e30... |
7de840bf067d3b6658e59600ff40c815 | Twitter REST API Method: statuses mentions | [
{
"docid": "b5bb43840ed2cb741bf935670b493a64",
"score": "0.6691636",
"text": "def mentions( since_id = nil, max_id = nil , count = nil, page = nil )\n\t\tself.twitagent.mentions( since_id, max_id, count, page )\n\trescue => err\n\t\tRAILS_DEFAULT_LOGGER.error \"Failed to get mentions via OAuth for #{cur... | [
{
"docid": "d3fbe4c7e43487e36c09d033e07f136e",
"score": "0.81153923",
"text": "def mentions(params = {})\n get \"statuses/mentions\", params\n end",
"title": ""
},
{
"docid": "01eb0ebb7b40439d74f4b5c88c867f03",
"score": "0.7548176",
"text": "def mentions(options={})\n perfor... |
fdc44521f79c57f705ff8a1e7558eb9a | Orders the properties to export when this object is serialized to YAML return:: [Array] List of properties to export...used by YAML | [
{
"docid": "bed70551698e9f264dc81f82fa115fce",
"score": "0.7407783",
"text": "def to_yaml_properties\n ['@name', '@version', '@autoload', '@require_path', \n '@startup_module', '@properties_path', \n '@resource_path', '@load_dependencies', '@start_dependencies']\n end",
"title": ... | [
{
"docid": "271250feba6b9669493a535e51bad965",
"score": "0.7614471",
"text": "def to_yaml_properties\n ['@name', '@version', '@plugins']\n end",
"title": ""
},
{
"docid": "a2f1db6d508ec829ffd91f4239270f2c",
"score": "0.7571903",
"text": "def to_yaml_properties\n return ['@... |