query_id stringlengths 32 32 | query stringlengths 7 6.75k | positive_passages listlengths 1 1 | negative_passages listlengths 88 101 |
|---|---|---|---|
f3d3ecdacb28fcf62581441c050888ac | Instance Methods For sessions / Validations, etc.. | [
{
"docid": "3d764ef1c7542071e3908f3cd96b0b41",
"score": "0.0",
"text": "def anonymous?\n\t\tself.id == 1\n\tend",
"title": ""
}
] | [
{
"docid": "f5e381a9d712d236d474f350645249c6",
"score": "0.7746778",
"text": "def valid_session\n \n end",
"title": ""
},
{
"docid": "866c51f6d858fec6004532b66a8a2d55",
"score": "0.7511816",
"text": "def session; end",
"title": ""
},
{
"docid": "866c51f6d858fec6004532... |
975fbc223207a66723cf51a758679722 | Callback triggered when labeling a new edge. Does nothing by default. Labeling strategies may implement their own logic and call super to chain callbacks, or impose their behavior (caution!). | [
{
"docid": "91a323d3566000fdd520efbe882a71a3",
"score": "0.7101307",
"text": "def _edge_labeling_inc\n end",
"title": ""
}
] | [
{
"docid": "ec5f2bb3a17502748a8d8887bd6e23aa",
"score": "0.6489644",
"text": "def label_on\n Kernel.raise NotImplementedError\n end",
"title": ""
},
{
"docid": "69b6202d00150f1318f0223e9eace9b1",
"score": "0.61057013",
"text": "def parse_for_edge_label\n return unless la... |
f2640795b6dc3755ba37c0e925586947 | Adds CLI options for all defined input | [
{
"docid": "42a8e31110b91e07fae0d22e918d29e9",
"score": "0.0",
"text": "def create_task_options(task, environment, application)\n meta = task_metadata(task, environment)\n\n return if meta[\"metadata\"][\"parameters\"].nil? || meta[\"metadata\"][\"parameters\"].empty?\n\n meta... | [
{
"docid": "fe51fe9a7142f3c469184bdf11db07f4",
"score": "0.7418377",
"text": "def add_cli_options(application, set_required=false)\n @inputs.add_cli_options(application, set_required)\n end",
"title": ""
},
{
"docid": "d3e54c76b4994a32658c9045c3634150",
"score": "0.72929126",... |
4d9aa9215345e44f1e5f875a4b028d0c | checks if a user owns a place to ensure that a user can't edit other user's entries | [
{
"docid": "35b0e23425026615cf6af539e7bb058b",
"score": "0.78293794",
"text": "def owned_place \n unless current_user == @place.user\n flash[:alert] = \"That place doesn't belong to you!\"\n redirect_to root_path\n end\n end",
"title": ""
}
] | [
{
"docid": "607deb7e753c00192a14bb94c40a4605",
"score": "0.7742007",
"text": "def only_owner_of bit; raise ParkPlace::AccessDenied unless bit.owned_by? @user end",
"title": ""
},
{
"docid": "608c14d8160cdae0856c241eebab50bf",
"score": "0.7277665",
"text": "def owns?(place) \n \t# ST... |
4ad7a5afe00ae2a68094940035f6f3cf | GET /configattribincls GET /configattribincls.json | [
{
"docid": "b784b24da46e72b655b3a5effd0dcd08",
"score": "0.75696653",
"text": "def index\n @configattribincls = Configattribincl.all\n end",
"title": ""
}
] | [
{
"docid": "c6327de20c0814f27e3c14cb1b58859d",
"score": "0.6022494",
"text": "def set_configattribincl\n @configattribincl = Configattribincl.find(params[:id])\n end",
"title": ""
},
{
"docid": "172c1ed181fbbadd47e52eb98f09dec4",
"score": "0.59385943",
"text": "def set_config... |
9d5d5a5c2c77ee9977cf5ab226ead516 | Generate fish completions definitions for docker | [
{
"docid": "f1a8e52e3420b2b015dc620da772ca8c",
"score": "0.0",
"text": "def generate\n puts header, \"\\n\", common_options, \"\\n\", subcommands\n end",
"title": ""
}
] | [
{
"docid": "04e25ebab4558f5c7612b55c848aef6f",
"score": "0.55884576",
"text": "def custom_completions; end",
"title": ""
},
{
"docid": "04e25ebab4558f5c7612b55c848aef6f",
"score": "0.55884576",
"text": "def custom_completions; end",
"title": ""
},
{
"docid": "04e25ebab455... |
3816cc4cc09f834b1b9979c674983ee9 | fetch value of variable/constant to right of the 2 word command eg: value of in command "print b" or "a b". b can be a constant number/variable | [
{
"docid": "9003698dafc6dcb5f6cf993ccee994da",
"score": "0.62345594",
"text": "def fetch_value(cmd, h)\n if(h[cmd[1].to_sym] == nil) # data not available in hash (h)\n begin\n v = eval(cmd[1].to_s) || 0 # it's a number\n rescue Exception => e\n v = 0 # it's an undefined variab... | [
{
"docid": "f4bb0f009ce8c8995fe3729888c026ba",
"score": "0.65971744",
"text": "def command_value(command)\n return split_place_command(command) if place_command_and_valid?(command)\n\n command\n end",
"title": ""
},
{
"docid": "406d0afaefba8f0ee6f758f6aee03cdd",
"score": "0.638375... |
d62ed48214dad23f3b11140643fdde30 | POST /admin/gallery_items POST /admin/gallery_items.json | [
{
"docid": "b570e250a8e90f5eafe0af04fc0fa9c1",
"score": "0.76059186",
"text": "def create\n @admin_gallery_item = Admin::GalleryItem.new(params[:admin_gallery_item])\n\n respond_to do |format|\n if @admin_gallery_item.save\n format.html { redirect_to admin_gallery_items_path, notice: '... | [
{
"docid": "1b28f4b1b85bd797d12bd414f831e23a",
"score": "0.7493818",
"text": "def create\n @gallery = Gallery.new(gallery_params)\n respond_to do |format|\n if @gallery.save\n # @gallery.published!\n @gallery.gallery_items_ol = gallery_params[:gallery_items_ol]\n if @gall... |
7e96c3a2942e949443ea930d6149b32a | returns true if the model instance has been saved to the database | [
{
"docid": "34d6c23b24d82a6ba67139bdb759cad7",
"score": "0.0",
"text": "def persisted?\n !@id.nil?\n end",
"title": ""
}
] | [
{
"docid": "4dedf328a73d93533f13bf68524be9c0",
"score": "0.8130306",
"text": "def save?\n @save\n end",
"title": ""
},
{
"docid": "d54c0bc01558741847fd0a18e1e1254c",
"score": "0.80858546",
"text": "def save\n return false unless valid?\n !!(new_record? ? create : up... |
a2099a77c85e91272ae2f9e35b937953 | Only allow a trusted parameter "white list" through. | [
{
"docid": "2afef09b0ead542c82274815f28e0780",
"score": "0.0",
"text": "def stock_params\n params.require(:stock).permit(:altas, :bajas, :item_id)\n end",
"title": ""
}
] | [
{
"docid": "c1f317213d917a1e3cfa584197f82e6c",
"score": "0.7121987",
"text": "def allowed_params\n ALLOWED_PARAMS\n end",
"title": ""
},
{
"docid": "b32229655ba2c32ebe754084ef912a1a",
"score": "0.70541996",
"text": "def expected_permitted_parameter_names; end",
"title": "... |
5b89c91e2abab435c8cba63f3007c55a | difference between date_of_booking and date_of_service, booking is a booked service, while we can have a serviceable vehicle without a booked service service: Serviceable, you can use => service.fleet or service.service_type.name | [
{
"docid": "d325075c83fd084ac2f6e7f868df8243",
"score": "0.5301685",
"text": "def date_of_service(service)\n notification = Notification.find_by_name()\n vehicle = service.fleet\n setting = vehicle.truck_fleet.setting.email_notifications.find_by_notification_id(notification.id)\n emails = se... | [
{
"docid": "0309684a0d1d105c264d414dd20de437",
"score": "0.60974276",
"text": "def date_of_booking(service)\n notification = Notification.find_by_name(\"Overdue service\")\n vehicle = service.fleet\n setting = vehicle.truck_fleet.setting.email_notifications.find_by_notification_id(notification.... |
67a5e23792bdd56d0e6d44eaa1839b0a | Convert Ruby value to XML | [
{
"docid": "74b3fff6af8aab8bbfc909bb0cd05609",
"score": "0.6914937",
"text": "def to_xml(value, options = {})\n if value.is_a?(Exchanger::Element)\n if value.is_a?(Exchanger::Body)\n # tag_name isn't being correctly set on Update operation -- it's being set as \"Text\"\n va... | [
{
"docid": "a5f6f680490409e2b4566458554ab48a",
"score": "0.794312",
"text": "def to_xml_text(value)\n value.to_s\n end",
"title": ""
},
{
"docid": "e3f6454aecaffc31f04ed2b644afb660",
"score": "0.7929782",
"text": "def to_xml\n format_tag(tag, { }, format_for_xml(valu... |
a2099a77c85e91272ae2f9e35b937953 | Only allow a trusted parameter "white list" through. | [
{
"docid": "d8beba528236714e3e99f596b5def224",
"score": "0.0",
"text": "def slot_params\n params.require(:slot).permit(:location, :weekday, :start_time, :end_time)\n end",
"title": ""
}
] | [
{
"docid": "c1f317213d917a1e3cfa584197f82e6c",
"score": "0.7121987",
"text": "def allowed_params\n ALLOWED_PARAMS\n end",
"title": ""
},
{
"docid": "b32229655ba2c32ebe754084ef912a1a",
"score": "0.70541996",
"text": "def expected_permitted_parameter_names; end",
"title": "... |
6ca137a997a32f84076c14838e63a113 | The ISBNs aren't normalized, so we need to convert them to isbn13s if necessary. | [
{
"docid": "aecefa8ba9eca7aac1b5034cc7265858",
"score": "0.5288037",
"text": "def isbn\n isbn_node = self.product.css(\"isbn\").first\n return \"\" if isbn_node.nil?\n\n isbn = isbn_node.text\n if isbn.length == 10\n isbn = DocumentIdentifier.isbn10_to_13(isbn)\n end\n ... | [
{
"docid": "054dc9f45e4ed3cb1b375b6604f06329",
"score": "0.6815546",
"text": "def convert_to_13(isbn10 = self.isbn10)\n base = '978' << isbn10[0..8]\n base << checkdigit_13(base)\n end",
"title": ""
},
{
"docid": "732d3b7cb98247a3bf123fa52ab02b55",
"score": "0.67695653",
... |
248af454557d875a6ef39fcb093a5d9b | DELETE /estadoprocesos/1 DELETE /estadoprocesos/1.json | [
{
"docid": "b6925ae9b4723b4f152c52e66d2a182d",
"score": "0.7238676",
"text": "def destroy\n @estadoproceso.destroy\n respond_to do |format|\n format.html { redirect_to estadoprocesos_url, notice: 'Estadoproceso was successfully destroyed.' }\n format.json { head :no_content }\n end\n ... | [
{
"docid": "777d02bc3dcdb47c348b58cd9663ec54",
"score": "0.729866",
"text": "def destroy\n @estadopro.destroy\n respond_to do |format|\n format.html { redirect_to estadopros_url, notice: 'Estadopro was successfully destroyed.' }\n format.json { head :no_content }\n end\n end",
"t... |
d38e8c122e280abe8eaee232373433b5 | Produce a link to retrieve an ACE file. | [
{
"docid": "acbc53f836ba0eef1018ab4572bd4dd8",
"score": "0.6015881",
"text": "def ace_retrieval_link(label, url, **opt)\n ia_retrieval_link(label, url, **opt)\n end",
"title": ""
}
] | [
{
"docid": "ea88aebd048f9b5d414da9f59cbeb7f6",
"score": "0.6333835",
"text": "def download_link\n url = client.get(\"/#{id}/content\", :download => true, :suppress_redirects => true)[\"location\"]\n end",
"title": ""
},
{
"docid": "2adae4c471e47e943316b88d9839ba78",
"score": "0.6... |
e54cc2ed526aed61a69daf85c34a6785 | assembles a string from the 856 subfields y to use for the URL text | [
{
"docid": "0489113835608bd94497a77c1050d6d4",
"score": "0.70113295",
"text": "def url_text(field)\n subfield_values_y = collect_subfield_values_by_code(field, 'y')\n [subfield_values_y.join(' ')].reject(&:empty?).join(' ')\n end",
"title": ""
}
] | [
{
"docid": "0877ba337a8f006204a89fa7439e8a1a",
"score": "0.6923601",
"text": "def url_text(field)\n subfield_values_y = collect_subfield_values_by_code(field, 'y')\n [subfield_values_y.join(' ')].reject(&:empty?)\n .reject { |v| v.match(/get\\s*it@... |
294cc238ffbb0029c142618fe0a2cc5a | Get a single challenge template Permissions Needed: TEMPLATE_ADMIN or CHALLENGES_ADMIN | [
{
"docid": "3a9ced901e0effa9e2cc74a4e0b9ad46",
"score": "0.0",
"text": "def get_challenge_template(id, opts = {})\n data, _status_code, _headers = get_challenge_template_with_http_info(id, opts)\n return data\n end",
"title": ""
}
] | [
{
"docid": "ce75637a8b1e7a3167289d9f62d2a84b",
"score": "0.6548679",
"text": "def find_permission_template\n if admin_set?\n @permission_template = PermissionTemplate.find_by(source_id: params[:admin_set_id])\n elsif collection?\n @permission_template = PermissionTemplate... |
de99c8cb78654182033a7abc2304fb24 | Ensures that by default, Zend_Acl denies access to everything for a particular Role | [
{
"docid": "df172e12d8884c8fcd58f659e98f51d8",
"score": "0.75636655",
"text": "def test_role_default_deny\n role_guest = Rend::Acl::Role.new('guest')\n @acl.add_role!(role_guest)\n assert_equal false, @acl.allowed?(role_guest)\n end",
"title": ""
}
] | [
{
"docid": "86b63621ffdaa562c02f284db7abad77",
"score": "0.7494753",
"text": "def test_role_default_privilege_deny\n role_guest = Rend::Acl::Role.new('guest')\n @acl.add_role!(role_guest)\n assert_equal false, @acl.allowed?(role_guest, nil, 'some_privilege')\n end",
"title": ""
},
{
... |
17620763da897e91b31b260d4b2d9358 | wraps link_to_unless_current to provide Foundation6 friendly tags | [
{
"docid": "14675979857e85c90bfb79ef5f5c939b",
"score": "0.73164976",
"text": "def navigation_link_to(*args)\n link_to_unless_current(*args) do\n content_tag(:a, args.first, class: \"active\", disabled: true)\n end\n end",
"title": ""
}
] | [
{
"docid": "522b84bf5ad6513a0634a03c698afa19",
"score": "0.7636502",
"text": "def link_unless_current(text, link = text, options = {})\n link_to_unless((link == request.fullpath), text, link, options)\n end",
"title": ""
},
{
"docid": "adfd91105954bca499c6308f7ee7d614",
"scor... |
28fb00ba26333e89779ecee36be060e4 | Set the value of the TokenSecret input for this Choreo. | [
{
"docid": "c2c1dfda457b63ae0f8a1706243caeb9",
"score": "0.79860467",
"text": "def set_TokenSecret(value)\n set_input(\"TokenSecret\", value)\n end",
"title": ""
}
] | [
{
"docid": "3feb10ed7e0cb0c49dba9f8585eed537",
"score": "0.7072474",
"text": "def set_AccessTokenSecret(value)\n set_input(\"AccessTokenSecret\", value)\n end",
"title": ""
},
{
"docid": "3feb10ed7e0cb0c49dba9f8585eed537",
"score": "0.7072474",
"text": "def set_AccessToke... |
7e0d1f69faff34fc508c4120019ea30e | return a list of tokens | [
{
"docid": "862c976050920d4f579da17613439b69",
"score": "0.0",
"text": "def tokenise(s)\n words = s.split(@split).delete_if {|w| w.nil? || w.strip.empty? }\n puts \"WORDS: #{words}\" \n words.map! do |word|\n p = @parsers.find {|p| p.match(word.strip) }\n p ? p... | [
{
"docid": "1e94e18c0d8c9867683f1b32112ffb72",
"score": "0.883073",
"text": "def get_tokens\r\n ret = []\r\n scan_all{|t| ret << t}\r\n ret\r\n end",
"title": ""
},
{
"docid": "77bd7e2ce72b82e9527e53006e571917",
"score": "0.8163752",
"text": "def tokens(force ... |
8c9302d8624ee75b1709a64ad398e64e | Link to view the outbox | [
{
"docid": "a53ccd7d1b207a265e472d0fddcc6512",
"score": "0.7726849",
"text": "def rezm_link_to_outbox\n link_to \"Outbox\", outbox_profile_emails_path\n end",
"title": ""
}
] | [
{
"docid": "7d8701417bc18e3fb07c56814259bc4b",
"score": "0.79207885",
"text": "def rezm_link_to_outbox\n link_to \"Outbox\"[], outbox_messages_path\n end",
"title": ""
},
{
"docid": "2f57cfc90dfeb8967ea4a37d1cb2658d",
"score": "0.6939578",
"text": "def boxview_link_for_object(o, ... |
56b4714af8203ff8abf35e0712d2d0e6 | Return the class name of the worker. | [
{
"docid": "1d5c79ddb86000ab34505c7a51719456",
"score": "0.7741657",
"text": "def job_class_name\n self.class.to_s\n end",
"title": ""
}
] | [
{
"docid": "2417ab533cde465d737690331a5682e4",
"score": "0.8860662",
"text": "def worker_class_name\n payload[:worker]\n end",
"title": ""
},
{
"docid": "c838cc86e020a761595818861785914c",
"score": "0.843981",
"text": "def job_class_name\n worker_name\n end",
... |
ea0b7958e73256e992317c0a0ee7d8f9 | association_cache is assumed to exist by ActiveRecord::Associations | [
{
"docid": "85ceffa65b1a2416c7069fc7fbf78766",
"score": "0.8499424",
"text": "def initialize_association_cache\n @association_cache = {}\n end",
"title": ""
}
] | [
{
"docid": "edbb4ca38ce7da1a70abf3855ca6bad2",
"score": "0.88808465",
"text": "def cached_association; end",
"title": ""
},
{
"docid": "edbb4ca38ce7da1a70abf3855ca6bad2",
"score": "0.88808465",
"text": "def cached_association; end",
"title": ""
},
{
"docid": "8205b30255a5... |
83a457107debc7e6ea5a9afdc0980ba4 | Sets the similarityThreshold property value. Specifies the similarity level for documents to be put in the same near duplicate set. To learn more, see Document and email similarity threshold. | [
{
"docid": "cc0e24ec50cf18a0e59e46566ad6f876",
"score": "0.8367665",
"text": "def similarity_threshold=(value)\n @similarity_threshold = value\n end",
"title": ""
}
] | [
{
"docid": "0505b0f4ae69cbf948392487dac36dd3",
"score": "0.6785947",
"text": "def similarity_threshold\n return @similarity_threshold\n end",
"title": ""
},
{
"docid": "2205b64ba453b33790090ce191d515ee",
"score": "0.55323136",
"text": "def similarity_limit\n... |
f6ee6c13f92ba53b0039147af187389f | JSON response with message; Status code 422 unprocessable entity | [
{
"docid": "22e8f2810c31c15e597835a06c0fead1",
"score": "0.6366773",
"text": "def four_twenty_two(e)\n json_response({ message: e.message }, :unprocessable_entity)\n end",
"title": ""
}
] | [
{
"docid": "6825e29ba1425057a82fbd6d01e453d9",
"score": "0.81310195",
"text": "def status_code; 422; end",
"title": ""
},
{
"docid": "6825e29ba1425057a82fbd6d01e453d9",
"score": "0.81310195",
"text": "def status_code; 422; end",
"title": ""
},
{
"docid": "6825e29ba1425057... |
845160bd74b7f3b81b42d466546feb84 | GET /site_elements/1 GET /site_elements/1.xml | [
{
"docid": "7c3a2afdfa437bd401fc1ef3370ea8aa",
"score": "0.6137115",
"text": "def show\n @product_site_element = ProductSiteElement.new(site_element_id: @site_element.id)\n @site_element_attachment = SiteElementAttachment.new\n respond_to do |format|\n format.html # show.html.erb\n fo... | [
{
"docid": "57a1e16eddfb86978e7983e0927c495c",
"score": "0.6393615",
"text": "def index\n @site_attributes = @site.site_attributes\n\n respond_to do |format|\n format.html # index.html.erb\n format.xml { render :xml => @site_attributes }\n end\n end",
"title": ""
},
{
"d... |
f6ed1c3da6fdee67ffa757b44c5ce33c | GET /workflows/new GET /workflows/new.xml | [
{
"docid": "4cbdefa8da9c3f56b3ff63489a6d26a6",
"score": "0.7983569",
"text": "def new\n @workflow = Workflow.new\n\n respond_to do |format|\n format.html # new.html.erb\n format.xml { render :xml => @workflow }\n end\n end",
"title": ""
}
] | [
{
"docid": "c5669524e07ebba1cd64a052b7e3b9d0",
"score": "0.76168406",
"text": "def new\n @workflow = Workflow.new\n \n respond_to do |format|\n format.html # new.html.erb\n format.json { render json: @workflow }\n end\n end",
"title": ""
},
{
"docid": "e9fec7... |
50332a67670397c23ffdd44cb4296e0a | Allows you to customize the channel fantasy trigger for your channel. This is particularly useful if you have channel bots that conflict with ChanServ's default fantasy prefix. Providing no prefix argument (or DEFAULT) resets the channel fantasy prefix to the network default prefix | [
{
"docid": "68e1a0b780bb32a648b468902cbc02c2",
"score": "0.62205905",
"text": "def prefix!(prefix=\"DEFAULT\")\n @session.chanserv.set(self.name, :prefix, prefix)\n end",
"title": ""
}
] | [
{
"docid": "1023ee11efded86f3e15ea4902daa12f",
"score": "0.61805034",
"text": "def channel_with_prefix(channel); end",
"title": ""
},
{
"docid": "f44aad04a6ba80c6413574bbd55d5e2a",
"score": "0.52433956",
"text": "def prefix(prefix = nil, &block)\n raise ArgumentError if prefix... |
7240bc44f0438891938c4818b8c28efb | Retrieve UDN from USN | [
{
"docid": "5dc614e91a8a5d182e175fa9818c62f9",
"score": "0.70281994",
"text": "def usn2udn(usn)\n rex = '([A-Fa-f0-9]{8,8}(-[A-Fa-f0-9]{4,4}){3,3}-[A-Fa-f0-9]{12,12})'\n usn.match(/#{rex}/)[1]\n end",
"title": ""
}
] | [
{
"docid": "f748d38a88667e0ee6760893b1e9a13b",
"score": "0.6589887",
"text": "def ssdp_usn_to_id(usn); usn.split(/:/, 3)[1].split(/-/).last; end",
"title": ""
},
{
"docid": "de2d6c046e99f352129bb77a92c3c686",
"score": "0.63888645",
"text": "def guess_from_dn(dn)\n return nil if ... |
e866804389844a7c3bf4f77d50399e07 | you should override this! in your inherted class | [
{
"docid": "08635073dc80cc79168a9cd0d3020e23",
"score": "0.0",
"text": "def subsystem\n \"unknown\"\n end",
"title": ""
}
] | [
{
"docid": "9ebb90d88dd859732a968c062fcf5659",
"score": "0.7505601",
"text": "def initialize\n super\n end",
"title": ""
},
{
"docid": "9ebb90d88dd859732a968c062fcf5659",
"score": "0.7505601",
"text": "def initialize\n super\n end",
"title": ""
}... |
6c731a5d5b757b49d2d4620553d7e6ef | Insert the keystroke verbatim | [
{
"docid": "11863a91f16f3b20a8a00fe3c2995f5d",
"score": "0.73170274",
"text": "def verbatim_insert(buffer); end",
"title": ""
}
] | [
{
"docid": "c352efdf4e70519aca306496a52ac386",
"score": "0.7943774",
"text": "def verbatim(buffer, _action)\n char = buffer.events.last.unicode\n buffer.insert(:insert, char)\n end",
"title": ""
},
{
"docid": "46f1cec819931c2e81aca39b86821232",
"score": "0.6971278",
... |
9a4cc07b56927b5c8445c18c0987324f | Try to delegate uncaught messages to static imports | [
{
"docid": "6d1d6f02eec318c81a51dd03b7716244",
"score": "0.55064446",
"text": "def method_missing(sym,*args)\r\n STATIC_IMPORTS.each{|si|\r\n if si.respond_to?(sym)\r\n return si.send(sym,*args)\r\n end\r\n }\r\n super(sym,*args)\r\n end",
"title": ""
}
] | [
{
"docid": "9b8da0b8cc04672de7e8156a51c9bfaf",
"score": "0.62847376",
"text": "def unhandled; end",
"title": ""
},
{
"docid": "08c09e41f0351d35a11fef26bba131c1",
"score": "0.587828",
"text": "def unhandled_overridden?; end",
"title": ""
},
{
"docid": "202d9416336cde85fb98... |
8895e52eb8918a36b4c7e7d04c066f88 | GET /users or /users.json | [
{
"docid": "f33c67653534710230069b360e0929f9",
"score": "0.0",
"text": "def login \n isPasswordCorrect = AuthenticationHelper::Auth.instance.checkPassword( request.body )\n params = JSON.parse( request.body.read )\n emailParams = params[\"email\"]\n \n if ( isPass... | [
{
"docid": "8a29471646191d84def95f7af1e081bf",
"score": "0.8060106",
"text": "def users(args = {})\n get(\"/users.json\",args)\n end",
"title": ""
},
{
"docid": "4152fb6556ae83f7cdd6c362f17ad9bf",
"score": "0.7743066",
"text": "def index\n if params[:single]\n\t url =... |
52a58b1e06a54e688a75f9b352d76a5c | Creates/updates the document named +name+ with +content+ (either String or XmlDocument). | [
{
"docid": "2f3bfdb131f18bf9eb1079735c955044",
"score": "0.7929501",
"text": "def []=( name, content )\n doc = nil\n if String === content\n doc = manager.createDocument\n doc.name = name\n doc.content = content\n elsif content.kind_of? XmlDocument\n doc = content\n else\... | [
{
"docid": "efae288ddcebad63e5140d09316bb26f",
"score": "0.7956622",
"text": "def save(name, content)\n return if document_name_exists?(name)\n save_document_name(name)\n save_content(content)\n end",
"title": ""
},
{
"docid": "3ba79a526adeab0ed6ce9061409f8624",
... |
d48a43d1299ba1f30497eb815918ac89 | GET /tasks/new GET /tasks/new.xml | [
{
"docid": "9de879395eec7ea1411422a40f260199",
"score": "0.0",
"text": "def new\n @board = Board.find(params[:board_id])\n @task = @board.tasks.build\n\n respond_to do |format|\n format.html # new.html.erb\n format.xml { render :xml => @task }\n end\n end",
"title": ""
}
] | [
{
"docid": "1a6851582ea9dbaf58d271a51828f9c4",
"score": "0.80346465",
"text": "def new\n @newtask = Newtask.new\n\n respond_to do |format|\n format.html # new.html.erb\n format.xml { render :xml => @newtask }\n end\n end",
"title": ""
},
{
"docid": "2fb0a66443a30d4b15293... |
3dd06b727fd3df50e7b1dcbeedffa9b9 | Allow for exact permission state matches OR any wildcard matches | [
{
"docid": "fb3ab021112278803c7b7550d3acf635",
"score": "0.68461055",
"text": "def add_wildcard_conditions_for_permission_state_check(query, state_column)\n query.where(\n table[:permission_states][:name].eq(state_column).or(\n table[:permission_states][:name].eq(PermissionState::WI... | [
{
"docid": "841085a96173ba53bd9872e45892d21b",
"score": "0.5745038",
"text": "def allow(pattern)\n # a simple way to allow anyone at all to connect\n if pattern == \"*\"\n @globalallow = true\n else\n store(:allow, pattern)\n end\n\n nil\n end",
"title": ""
... |
af630984682f1a0b5a68e6092af0d102 | Update properties of this object | [
{
"docid": "ae234a93c24600b86706e82957f02753",
"score": "0.0",
"text": "def update!(**args)\n @permissions = args[:permissions] if args.key?(:permissions)\n end",
"title": ""
}
] | [
{
"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... |
ca8b2c38dbe055029e03d5821c71e107 | DISABLED def notify_coaches_of_checkin Notify coaches and supporters of the checkin people_notified = Hash.new if program_player.present? and program_player.program_coach.present? program_player.program_coach.user.contact_them(:sms, :coached_player_checked_in, self) people_notified[program_player.program_coach.user_id]... | [
{
"docid": "212317aac282eb7719e49d411f5ef7d5",
"score": "0.0",
"text": "def post_remotely\n if Rails.env.production?\n self.delay.post_remotely_as_delayed_job\n else\n self.post_remotely_as_delayed_job\n end\n end",
"title": ""
}
] | [
{
"docid": "3d63d8ea4cf562443fa7ce9d5aecfd79",
"score": "0.61245406",
"text": "def report_eligibility\n report_cutoff_time = Time.now.getlocal('-04:00').beginning_of_day\n reporting_period = (ADMIN_OPTIONS['monitoring_period_days'] + 1).days.ago\n eligible = true\n sent = false\n reported... |
f74c29bdfc4a183e1ec1b91334cd5be2 | Use callbacks to share common setup or constraints between actions. | [
{
"docid": "b87eea9c2b45ec5d4ce3f673fe61dea1",
"score": "0.0",
"text": "def set_user\n\t\t \t@user =(params[:user_id] ? User.find(params[:user_id]) : current_user)\n\t\t 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;... |
e2c8917e98ea747df94fc579d2f9bb68 | Creates a new TCPServer and invokes init_workers | [
{
"docid": "a4aa938303a76259cebe594a5c7b53da",
"score": "0.6288201",
"text": "def start\n trap(\"INT\") { stop }\n @socket = TCPServer.new(@host, @port)\n @socket.listen(1024)\n ::BasicSocket.do_not_reverse_lookup=true\n log \"Yarn started #{@num_workers} workers and is listenin... | [
{
"docid": "8ba699542d247a8b2acbbe36af151d93",
"score": "0.7184334",
"text": "def start_server\n fail \"Master#start_server called in worker process\" if worker_process?\n File.unlink(@socket) if File.exist?(@socket)\n @server = UNIXServer.new(@socket)\n @server.listen(worker_count)\... |
b01026a726cbd3b6c4b745a5b749122d | rubocop:enable Metrics/AbcSize, Metrics/MethodLength rubocop:enable Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity Extract the 1st email | [
{
"docid": "4a65102af2f666870ca89761e38bb9e8",
"score": "0.0",
"text": "def extract_omniauth_email(hash:)\n return nil if hash.blank?\n\n emails = hash.fetch('email', '')\n emails = '' if emails.nil?\n emails = emails.split(';')\n emails.any? ? emails.first.downcase : ... | [
{
"docid": "d8f7691509377c4ca90bccf00c523ab5",
"score": "0.733677",
"text": "def get_an_email\n result = email_1\n \n if result.blank?\n result = email_2\n \n if result.blank?\n result = email_3\n end\n \n if result.blank?\n result = ... |
fa068567faacc1ac11fb8c4f0494d54e | Instructs node to send rpc request, and wait for and return response Implementation of RJR::Nodeinvoke If strictly confirming to other nodes, this would use event machine to launch a thread pool job to dispatch request and block on result. Optimized for performance reasons but recognize that the semantics of using the ... | [
{
"docid": "f38f685466f311c7e0897a503ef30c46",
"score": "0.63480365",
"text": "def invoke(rpc_method, *args)\n 0.upto(args.size).each { |i| args[i] = args[i].to_s if args[i].is_a?(Symbol) }\n message = Messages::Request.new(:method => rpc_method,\n :args => arg... | [
{
"docid": "b50670163242f1acaf6f89dd76306abc",
"score": "0.704262",
"text": "def invoke_request(uri, rpc_method, *args)\n uri = URI.parse(uri)\n host,port = uri.host, uri.port\n\n message = RequestMessage.new :method => rpc_method,\n :args => args,\n ... |
4f034faf4b62829f626237b07256c4f6 | => claims finished or concluded | [
{
"docid": "2d9bfa5142f75958e081fd90809444ac",
"score": "0.592401",
"text": "def concluded\n claims.select { |claim| !claim.pendiente?}\n end",
"title": ""
}
] | [
{
"docid": "8fb315700580ea796b2547a3ea02daa6",
"score": "0.65080297",
"text": "def claim\n end",
"title": ""
},
{
"docid": "f048be94dab4da853029e9125430c850",
"score": "0.6118215",
"text": "def resource_completed(resource); end",
"title": ""
},
{
"docid": "c5a531125c0cbd... |
1841229f69461d906eb77fe360f087fb | GET /rewards GET /rewards.json | [
{
"docid": "0a4675b760f9156f36b4156291104964",
"score": "0.75895315",
"text": "def index\n if user_signed_in?\n @rewards = current_user.rewards.all\n\n respond_to do |format|\n format.html # index.html.erb\n format.json { render json: @rewards }\n end\n end\n end",
... | [
{
"docid": "307fbdfc6ef4aa4832f7e209403bc5a1",
"score": "0.7615127",
"text": "def won_rewards(options={})\n response = connection.get do |req|\n req.url \"won_rewards\", options\n end\n return_error_or_body(response)\n end",
"title": ""
},
{
"docid": "6be241587a3edce... |
28654fd9b8f6dc5b88e30ac4c97ef8c6 | Find a matching language entry. | [
{
"docid": "adcfaa8c0b4b245d955d730b7c31d8e5",
"score": "0.6621253",
"text": "def find(value)\n # @type [Array<ISO_639>] entries\n entries = ISO_639.search(value = value.to_s.strip.downcase)\n if entries.size <= 1\n entries.first\n else\n # @type [ISO_639] entry\n ... | [
{
"docid": "aada23055cd2deb9db66c743338d5cdc",
"score": "0.75646037",
"text": "def find(language, *sections)\n language = language.to_sym\n if @@cached_language_data.empty? or not @@cached_language_data[language]\n raise LangFileNotLoaded.new(language, loaded_languages)\n ... |
05c7cb75ff0de6e74f56a2994ac3a976 | Define the position of the sprite | [
{
"docid": "dedbb16b3234716b107c999ba3a54868",
"score": "0.7128794",
"text": "def set_position(x, y)\n end",
"title": ""
}
] | [
{
"docid": "c2abc8ac0fde1c181b08b8240704c024",
"score": "0.78767866",
"text": "def position(x=nil,y=nil)\n @x = x if !x.nil?\n @y = y if !y.nil?\n @sprites[\"logo1\"].x = x.nil? ? self.x : x\n @sprites[\"logo1\"].y = y.nil? ? self.y : y\n @sprites[\"logo2\"].x = x.nil? ? self.x : x\n @... |
d2677b2a8b2e166027918be1483a07b5 | DELETE /beers/1 DELETE /beers/1.json | [
{
"docid": "782719b321a18af88762dc8636173f18",
"score": "0.7682132",
"text": "def destroy\n @beer = Beer.find(params[:id])\n @beer.destroy\n\n respond_to do |format|\n format.html { redirect_to beers_url }\n format.json { head :no_content }\n end\n end",
"title": ""
}
] | [
{
"docid": "7e2b904e1d1752bd71353cd4bab2e2b1",
"score": "0.76973045",
"text": "def destroy\n @beer = Beer.find(params[:id])\n @beer.destroy\n\n respond_to do |format|\n format.html { redirect_to beers_url }\n format.json { head :ok }\n end\n end",
"title": ""
},
{
"doc... |
567a00ef521c65cdc1b2da0e9a9ed41c | Public: Parse the media type and assign any options necessary. This should extract: `app.api.version`: The requested API version (such as "v4"). `app.api.mediatypeoptions`: An Array with any extra options passed in the media type. `HTTP_ACCEPT`: If we parsed the requested HTTP_ACCEPT, then this middleware will reset it... | [
{
"docid": "3798b110b78e6264e7763335629a8274",
"score": "0.69310844",
"text": "def call(env)\n if scan_accept_header(env[\"HTTP_ACCEPT\"])\n env[\"app.api.version\"] = version\n env[\"app.api.media-type-options\"] = media_type_options\n env[\"HTTP_ACCEPT\"] = content_type\n end\n\n ... | [
{
"docid": "62df401cab7b57e25f23fb223d41c36b",
"score": "0.71671116",
"text": "def response_media_type(options={})\n options = {:halt_if_unacceptable => false}.merge(options)\n accept = env['HTTP_ACCEPT']\n if accept =~ /\\S/\n begin\n best_media_type = env['rack-accept.re... |
26793661ce274616550665ba1db3783e | Returns an array of possibly accepted answers. | [
{
"docid": "290f55abcaee3fc971de152e276ba116",
"score": "0.8063617",
"text": "def accepted_answers\n # Remove cruft from the correct answer\n normalized_answer = normalize(answer)\n\n # Consider text in parentheses as optional\n without_parentheses = normalized_answer.gsub(/\\(.*\\)/, \"\")\... | [
{
"docid": "8cd81de487f595117349a1e04ab6d32e",
"score": "0.6734389",
"text": "def answers\n all_answers.map(&:to_answer).uniq\n end",
"title": ""
},
{
"docid": "4da21a82a490c4890aa1288963d866fc",
"score": "0.6719399",
"text": "def missing_answers\n @missing_answers ||= visible... |
2186db8c97f62cee4fe275a8cad5790f | Portbind hash to string | [
{
"docid": "634f441d0b5e9e13cc90a5de8fb6b1de",
"score": "0.0",
"text": "def portbind_to_s(portbind)\n \"#{portbind[:address]}:#{portbind[:port]}/#{portbind[:protocol]}\"\n end",
"title": ""
}
] | [
{
"docid": "12e03e2f19e8569f66b5edfe84a15ea4",
"score": "0.7182747",
"text": "def hash_string\n hash_value.to_s(36)\n end",
"title": ""
},
{
"docid": "bde090c14d8c7d296401e9f8ce876419",
"score": "0.7119741",
"text": "def connect_hash_to_string(hash); end",
"title": ""
},
... |
a7bd14e29b2e6e447c76708e0700aae3 | has every rule/leaf required by some rule been defined? | [
{
"docid": "60f821341adf7b5a100f57cac76c6d15",
"score": "0.6356838",
"text": "def completeness_check\n available = (@rules + @leaves).map(&:name).to_set\n sought = @rules.flat_map(&:seeking).uniq.to_set\n problems = sought.reject { |s| available.include? s }\n raise Error, \"the following ru... | [
{
"docid": "8ee1880b565d5a2fbc6654cf685df77c",
"score": "0.6652619",
"text": "def required?\n @rule == :required\n end",
"title": ""
},
{
"docid": "0efbd4fa8ab116b7d220bb794089c9c8",
"score": "0.6303865",
"text": "def rule?\n kind == :rule\n end",
"title": ""
... |
787b3460af7cec35d9bcb325be6d31a2 | Update a rate limiter Update a rate limiter by its ID. | [
{
"docid": "6e2eb6ae677b5598a39f961ec4de8a0f",
"score": "0.67853415",
"text": "def update_rate_limiter(opts = {})\n data, _status_code, _headers = update_rate_limiter_with_http_info(opts)\n data\n end",
"title": ""
}
] | [
{
"docid": "345d92e9c67c85b84294fa789c7c2a1e",
"score": "0.6550412",
"text": "def update(id:, match:, action:, threshold:, period:, disabled: nil, description: nil, bypass: nil)\n id_check('id', id)\n common_checks(match, action, threshold, period)\n\n data = {match: match, thresh... |
ae4c61447e4fcc61a17ab6d976ccb48d | def put_change_password GET /usrs | [
{
"docid": "354e2bfe13435d3be509723a4feab15a",
"score": "0.0",
"text": "def index\n # I want all usrs except Guest:\n @usrs = Usr.where(\"id > 1\").order(:name).page params[:page]\n end",
"title": ""
}
] | [
{
"docid": "121a35e079a78a4c5ef08f767681a19d",
"score": "0.7940687",
"text": "def update_current_logged_in_users_password(args = {}) \n put(\"/users.json/current/password\", args)\nend",
"title": ""
},
{
"docid": "58f5fa7fa10bceaa6fdde47d7addf751",
"score": "0.78077525",
"text": "def... |
32f0379c17d5eb475b5a8757d9ae0f01 | Number of times the code has been used overall | [
{
"docid": "22f103aee15555d84d4124e1bd4f40e9",
"score": "0.0",
"text": "def usage_count\n adjustment_promotion_scope(Spree::Adjustment.eligible).count\n end",
"title": ""
}
] | [
{
"docid": "061e69cf83bf44cf26e44dfbc77fc65b",
"score": "0.7327147",
"text": "def count\n count = 0\n each { count += 1 }\n count\n end",
"title": ""
},
{
"docid": "8b1177bb0468193d36b7bbb1a6cc3b3c",
"score": "0.7310932",
"text": "def call_counts; end",
"title":... |
1410e519ab736c03a330f5f9ce56ea03 | Used in ETag generation. | [
{
"docid": "67dec4cd378ec5e27537c7622efa6bfc",
"score": "0.0",
"text": "def cache_key\r\n attributes.to_s\r\n end",
"title": ""
}
] | [
{
"docid": "abc825fc40d92dd80e13f4ef98f65422",
"score": "0.74222755",
"text": "def strong_etag?; end",
"title": ""
},
{
"docid": "a53366e32a733ede775c8a74552867df",
"score": "0.7420563",
"text": "def etag\n end",
"title": ""
},
{
"docid": "68776580fa4a1deabb83c3fcd9c03... |
16871712a3f3f5268bdcb048ef3be940 | PUT /preventivos/1 PUT /preventivos/1.xml | [
{
"docid": "6ac85af69cc99d19a7ab26fb7c973f8e",
"score": "0.65343165",
"text": "def update\n @preventivo = Preventivo.find(params[:id])\n\n respond_to do |format|\n if @preventivo.update_attributes(params[:preventivo])\n format.html { redirect_to(@preventivo, :notice => 'Preventivo was ... | [
{
"docid": "38979984bdedacd95706689e25f09f9e",
"score": "0.62587696",
"text": "def put(document, method='')\n @resource[method].put(document.to_s, :content_type => 'text/xml')\n end",
"title": ""
},
{
"docid": "dabaaacc799019b0211d250061f3be92",
"score": "0.5994124",
"text": ... |
d6ada620b7e34ab2c961cac781424fac | Instantiates a new iosVppApp and sets the default values. | [
{
"docid": "19450cae222a1d43740dfd55303e2d3b",
"score": "0.6335324",
"text": "def initialize()\n super\n @odata_type = \"#microsoft.graph.iosVppApp\"\n end",
"title": ""
}
] | [
{
"docid": "468b6a10b5efc68c40de9e44284059b2",
"score": "0.6569897",
"text": "def initialize_custom_app(options)\n @custom_app_id = init_optional(:custom_app_id, options, nil)\n @custom_app_version = init_optional(:custom_app_version, options, nil)\n end",
"title": ""
},
{
... |
e3fa3038cda1ce5787ac45cb80fd247c | add new test from instructor | [
{
"docid": "beeb23e6c09fb005fd5865a488d19f95",
"score": "0.5731967",
"text": "def add_boating_test(student, test_name, test_status)\n BoatingTest.new(student, test_name, test_status, self)\n end",
"title": ""
}
] | [
{
"docid": "1347854187cd24579684068d85ec5737",
"score": "0.7406094",
"text": "def add_test( t )\n ensure_valid\n @tests.add(self, t )\n end",
"title": ""
},
{
"docid": "628ce53e239f7d68c480fb7f2e46976c",
"score": "0.7323403",
"text": "def add_boating_test(student, test_name, s... |
f6d5d14b1926d4b46bb8e0fac409cbb2 | Create a new Domains REST client object. | [
{
"docid": "0aebb928b4f29a9681dc14b56e25b9cd",
"score": "0.5854856",
"text": "def initialize\n # Create the configuration object\n @config = Configuration.new Client.configure\n\n # Yield the configuration if needed\n yield @config if block_giv... | [
{
"docid": "99b3283ca17f0155dde3305e29a8ca59",
"score": "0.6773493",
"text": "def create\n @domain = Domain.new(domain_params)\n\n url = URI.parse(@domain.url)\n if url.scheme == 'https'\n begin\n res = Net::HTTP.get_response(url)\n rescue\n end\n end\n\n if res.is_a... |
977968a070b9579b9e91e1503700d99c | Method for updating the speciality and sub speciality names | [
{
"docid": "c3a0006537e1a27bdb5497e79b5b8b86",
"score": "0.6519125",
"text": "def update_specialist\n\t\t # update the speciality name ans sub speciality\n\t\tif @user.update_attributes(specialist_name:params[:specialist_name],sub_speciality_name:params[:sub_speciality_name])\n\t\t # response to the JSO... | [
{
"docid": "44e629976500add1bb2e9480e6df1a34",
"score": "0.6363289",
"text": "def profile_setting_specialist_params\n\t\tparams.require(:profile_setting).permit(:specialist_name,sub_speciality_names_attributes: [:id, :text, :_destroy])\n\tend",
"title": ""
},
{
"docid": "1f2700490b800b0d15dc... |
08af1b632aff7f625401d9d06c1b4f91 | Called after every test method runs. Can be used to tear down fixture information. | [
{
"docid": "dbec4fc1db03e421aa4eeb1f20a41d24",
"score": "0.0",
"text": "def teardown\n # Do nothing\n end",
"title": ""
}
] | [
{
"docid": "c7d7081d44951e29ba9332608ddf6f3e",
"score": "0.82948345",
"text": "def testFixtureTearDown()\n end",
"title": ""
},
{
"docid": "c7d7081d44951e29ba9332608ddf6f3e",
"score": "0.82948345",
"text": "def testFixtureTearDown()\n end",
"title": ""
},
{
"docid": "ad... |
46b949ea41e223e7c2f287345635282c | POST /voucher_accounts POST /voucher_accounts.json | [
{
"docid": "b14d49bab6b9d383d60819586d038812",
"score": "0.7146458",
"text": "def create\n @voucher_account = VoucherAccount.new(params[:voucher_account])\n\n respond_to do |format|\n if @voucher_account.save\n format.html { redirect_to @voucher_account, :notice => 'Voucher account was... | [
{
"docid": "77f307f64106f05b8f139085144085f2",
"score": "0.69569856",
"text": "def create\n @account = current_user.accounts.create!(account_params)\n @account.save\n render json: @account\n end",
"title": ""
},
{
"docid": "345d97ffa21872a109a16575d6d574c6",
"score": "0.6882604... |
eff67d703561f211d14bf1a19b0b631d | return spec data dir | [
{
"docid": "36f37feb87873e0eaaa4952fc6173806",
"score": "0.81305605",
"text": "def _spec_data_dir(file)\n datadir = Dir.new('./spec/data/')\n File.join(datadir.path, file)\nend",
"title": ""
}
] | [
{
"docid": "a011b2087f8fbff66b27999bc766bca1",
"score": "0.82019943",
"text": "def data_root\n File.expand_path(\"spec/data\", Dir.pwd)\n end",
"title": ""
},
{
"docid": "bd83cb8fa4c040c85f2e3ab770467c4f",
"score": "0.78237677",
"text": "def spec_dir\n @spec_dir ||= File.join ... |
c5b16d9676d84fb743f4cf28bee38aa4 | POST /tasks POST /tasks.json | [
{
"docid": "9bf51a921d59c6bb4b14e5abc56234a7",
"score": "0.73897004",
"text": "def create\n @task = Task.new(task_params)\n @task.save\n render json: full_task(@task)\n end",
"title": ""
}
] | [
{
"docid": "780b88f768513ebf1032946b44a23f64",
"score": "0.75293654",
"text": "def create\n #@task = Task.new(task_params)\n task = @task_list.tasks.create!(task_params)\n render json: task\n end",
"title": ""
},
{
"docid": "ae173c1e45b9ac44ef7f6d4ccb1da825",
"score": "0.749822... |
0c101b0107881b8f52a7dc0949be51d9 | GET /question_masters GET /question_masters.json | [
{
"docid": "baf1e4e8e8a2b09fb7b166dba5dbd89c",
"score": "0.7280001",
"text": "def index\n @question_masters = QuestionMaster.all\n end",
"title": ""
}
] | [
{
"docid": "39c9c17bd79df96f4af9f3a8f21df490",
"score": "0.6524624",
"text": "def index\n @mcquestions = Mcquestion.all\n\n render json: @mcquestions\n end",
"title": ""
},
{
"docid": "ec0bf344433a0cfacbbfb8a51c777dce",
"score": "0.65124077",
"text": "def index\n @quizmaste... |
8698cc38f999f6f6c2b05c2dfbe044af | Returns an instance of Diary at the given path. | [
{
"docid": "8e0714514cd6074af5dcf4eeb0c4a7c2",
"score": "0.6174914",
"text": "def open(path, mode = 'r')\n (self.class)::Diary.new path if mode == 'w' or File.directory? path\n end",
"title": ""
}
] | [
{
"docid": "e01a4fd181400dd8725fe1f9c5b44345",
"score": "0.5972269",
"text": "def dencity_get(path)\n get(path)\n end",
"title": ""
},
{
"docid": "217eb75626097d5c6c0a8a89a6b9053f",
"score": "0.58979464",
"text": "def from_path(path); end",
"title": ""
},
{
"docid... |
4775c0ead68c45a1970cdd520a777d0f | Maps a list of items. type: Item type items: Item list | [
{
"docid": "9a5a6d710ed8c54de4654fa559ad8bd2",
"score": "0.7632382",
"text": "def map_all(type, items)\n mapper = mapper_for type\n result = []\n items.each { |i| result << mapper.call(i) }\n result\n end",
"title": ""
}
] | [
{
"docid": "eaf5b7687a2a55f83e7d0420ca2ff434",
"score": "0.7535395",
"text": "def map_items items\n items.each do |item|\n map_emit(*map(item))\n end\n end",
"title": ""
},
{
"docid": "c68ba3f93587f1bb472dfd06ae3a49b1",
"score": "0.656824",
"text": "def map item\n... |
1c1686bc83c446d51438b084c9499bad | zeilen_index, spalten_index beginnen bei Null spalten_index = 0 > Spalte "A" | [
{
"docid": "fecc1bb8346be9715890799f01b1115d",
"score": "0.6175345",
"text": "def name_zuweisen(name, zeilen_index, spalten_index)\n alle_spalten_buchstaben = (\"A\" .. \"Z\").to_a\n spalten_buchstabe = alle_spalten_buchstaben[spalten_index]\n zeilen_nr = zeilen_index+1\n @mappe.Names.Add( \... | [
{
"docid": "c15dfe6233649a295f9c226f5f56bd4f",
"score": "0.5721012",
"text": "def lttfindex\n end",
"title": ""
},
{
"docid": "0d987dd3c73c443184692fd6ffd65708",
"score": "0.5658737",
"text": "def line(katz_deli)\n if katz_deli.count == 0\n puts \"The line is currently empty.\"\n... |
772c825a0e44ebab98b0e85dee2d8b5b | The preferred way to add to an array at the end of a set of keys. Will create or coerce the array if required. | [
{
"docid": "c6f6911494fb9c5c406e5b261ee594ff",
"score": "0.0",
"text": "def <<(value_obj)\n\t\t\tarray = call(Keys::MISSING)\n\t\t\t# Dial the next array key index - @lookup can never be empty before set!()\n\t\t\tif array.is_a?(Array) || array.is_a?(Hash) || array.is_a?(Struct)\n\t\t\t\tdial!(array.siz... | [
{
"docid": "524c3eb155dcdac5cfd37974fa565d5b",
"score": "0.648605",
"text": "def add(key, value)\n update_array(key, value, :add)\n end",
"title": ""
},
{
"docid": "0f6eaa7aaf1fd3ea3de5b639eb044468",
"score": "0.6336173",
"text": "def add_keys(*keys)\n @rye_opts[:key... |
04ceade433d2eec228218b8cad5d89a3 | sets up the map hash for gmaps4rails | [
{
"docid": "eaa01fde5ac3ce383f260728ea0bcd68",
"score": "0.0",
"text": "def search_map(users)\n\t\t@users = users\n\t\t@hash = Gmaps4rails.build_markers(@users) do |user, marker|\n\t\t\t marker.lat user.latitude\n\t\t\t marker.lng user.longitude\n\t\t\t marker.infowindow \"<a href='/users/\"+\"#{user... | [
{
"docid": "2b3b38581975d056acb353371da174cd",
"score": "0.7304554",
"text": "def make_map(type='detail',satellite=false,world=false)\n # Create a new map object, also defining the div (\"map\") \n # where the map will be rendered in the view\n @map_type = type.to_sym\n case ... |
04e1ba785194951643f79ab995f59584 | Sets the settingsSessionTimeoutInMinutes property value. Specifies the number of minutes until the session times out. | [
{
"docid": "7f97293025b1702fa0e517806e78912e",
"score": "0.8833905",
"text": "def settings_session_timeout_in_minutes=(value)\n @settings_session_timeout_in_minutes = value\n end",
"title": ""
}
] | [
{
"docid": "846fdb934a9b934c8b3b09763c0d8acc",
"score": "0.78882337",
"text": "def settings_session_timeout_in_minutes\n return @settings_session_timeout_in_minutes\n end",
"title": ""
},
{
"docid": "fdc56ca2957d8e8f38195fd9102498b9",
"score": "0.73040867",
... |
a6b01895bdd6da5ad4a9e4cab56bbc16 | PUT /transaction_taggings/1 PUT /transaction_taggings/1.xml | [
{
"docid": "86c60c162b1f873cb254b0a5b2e2626e",
"score": "0.67162937",
"text": "def update\n @transaction_tagging = TransactionTagging.find(params[:id])\n\n respond_to do |format|\n if @transaction_tagging.update_attributes(params[:transaction_tagging])\n format.html { redirect_to(@tran... | [
{
"docid": "cd265dadd984a6c8ea298437f33066af",
"score": "0.65137684",
"text": "def update\n @tag = Tag.find(params[:id])\n\n respond_to do |format|\n if @tag.update_attributes(params[:tag])\n format.xml { head :ok }\n format.json { head :ok }\n else\n format.xml { re... |
66d451213b822c8eef1b2d91948660b4 | this is intended for use as a before_save callback to make sure every user has a default user role. | [
{
"docid": "421e28baabb72e890c6a351051780f5a",
"score": "0.60634124",
"text": "def add_user_role\n user_role = Role.find_by_name(\"user\")\n self.roles << user_role if user_role and self.roles.empty?\n end",
"title": ""
}
] | [
{
"docid": "696cd6e2e34d03ca3a32641d0f0fc6b4",
"score": "0.81186235",
"text": "def set_default_role\n if User.count == 0\n self.role ||= :admin\n else\n self.role ||= :user\n end\n end",
"title": ""
},
{
"docid": "a9754a2d909dbe17870a06eb9f1bc163",
"score": "0.8108468... |
42ab159576b7bba37d71b7b97598a45b | MAXIMUM NUMBER OF DIFFERENT ALIGNED SEQUENCES TO KEEP FROM BLAST DATABASE | [
{
"docid": "c6c2e96518fafe48684afbd0e71fbc98",
"score": "0.0",
"text": "def near_to_extrem(c,seq,min_cont_size)\n max_to_extreme=(min_cont_size/2).to_i\n return ((c.q_beg-max_to_extreme<0) || (( c.q_end+max_to_extreme)>=seq.seq_fasta.size-1) ) #return if vector is very near to the extremes of inse... | [
{
"docid": "b094b82618332a12cadcdf23af3058ae",
"score": "0.6241039",
"text": "def resync_pg_database_max_ids\n %w(app_logs bloodtypes cities countries groups locations members messages \n sent_messages system_notes).each do |table|\n sql = \"select setval('#{table}_id_seq', (select max(id)... |
1e02a7d5174dad5fca5b41014cf85229 | Flash message css classes for use with bootstrap | [
{
"docid": "61b15fbb4704ad6e6f863d5cd4b1c5f7",
"score": "0.68006",
"text": "def flash_class(level)\n case level\n when 'notice' then \"info\"\n when 'success' then \"success\"\n when 'error' then \"danger\"\n when 'alert' then \"warning\"\n else level.to_s\n end\n end",
"title"... | [
{
"docid": "cac15089bda8702f42489ce0c0216c4a",
"score": "0.75770587",
"text": "def custom_bootstrap_flash\n flash_messages = []\n flash.each do |type, message|\n type = 'success' if type == 'notice'\n type = 'error' if type == 'alert'\n text = \"<script>\... |
5a6ceef08a0f60dd5234bb99ce6ff8bc | def find_upline_using_downlines uplines, level subdownlines=[] uplines.each do |upline| if upline.downlines_count 3 find_upline_using_downlines subdownlines, level else raise "cannot found an available upline" end end | [
{
"docid": "831726252ce8312079bbef2520615f5f",
"score": "0.9176761",
"text": "def find_upline_using_downlines uplines\n uplines.each do |upline|\n# if upline.downlines_count < 3\n if upline.downlines_count < 9\n return upline\n end\n end\n subdownlines=uplines.flatten.map(... | [
{
"docid": "d24ccda6df2e665ccb001672dc054182",
"score": "0.67316175",
"text": "def all_uplines\n uplines = []\n next_upline = upline\n until next_upline.nil?\n uplines << next_upline\n next_upline = next_upline.upline\n end\n uplines\n end",
"title": ""
},
{
"docid"... |
480ae4e9392c2fa29e31d6136cee1fc8 | Shut down the sync producer if we have to. Phobos will automatically create a new one. We should call this if the producer can be in a bad state and e.g. we need to clear the buffer. | [
{
"docid": "63dbaea0578e12c468a15da9bedb342e",
"score": "0.7710937",
"text": "def shutdown_producer\n if self.class.producer.respond_to?(:sync_producer_shutdown) # Phobos 1.8.3\n self.class.producer.sync_producer_shutdown\n end\n end",
"title": ""
}
] | [
{
"docid": "778b50f6a0d4595e9455c703e33473eb",
"score": "0.6287246",
"text": "def reload!\n @producer&.shutdown\n @producer = nil\n end",
"title": ""
},
{
"docid": "36ac1d3381198594f29518fad98a541f",
"score": "0.6152298",
"text": "def close\n @shutdown = true\n ... |
4678a9e9b5438c483f1169d890088004 | Get Payment by key | [
{
"docid": "e0b20d174f8f2f8b50dd89dbefecf8d3",
"score": "0.72714627",
"text": "def get_payment_by_key(project_key, key, opts = {})\n data, _status_code, _headers = get_payment_by_key_with_http_info(project_key, key, opts)\n data\n end",
"title": ""
}
] | [
{
"docid": "65c9a3f64dbffa5f9851f230192e43b8",
"score": "0.74016726",
"text": "def get_payment(payment_id)\n payments = get_payments\n payments.select { |payment| payment['id'] == payment_id }.first\n end",
"title": ""
},
{
"docid": "d3a2da6ea83673dfef3a10507c4d2fca",
"score": "0.... |
5be6f7c27c6618e01763b73954be213d | GET /batch/new GET /batch/new.xml | [
{
"docid": "639a0307b984e97a6edfbe5539706437",
"score": "0.5961082",
"text": "def new\n respond_to do |format|\n format.html\n format.xml\n end\n end",
"title": ""
}
] | [
{
"docid": "b6098cc7f7eebe51dca5c0b40e38f50d",
"score": "0.77493143",
"text": "def new\n @batch = Batch.new\n\n respond_to do |format|\n format.html # new.html.erb\n format.xml { render :xml => @batch }\n end\n end",
"title": ""
},
{
"docid": "b6098cc7f7eebe51dca5c0b40e3... |
48d13df64c53f6b3d654b87f3b967868 | Searches this list for the first element (or child of these elements) matching the CSS or XPath expression +expr+. Root is assumed to be the element scanned. See Hpricot::Container::Trav.at for more. | [
{
"docid": "51b2c7343866f33061df83b7cffc7c7b",
"score": "0.57640743",
"text": "def at(expr, &blk)\n search(expr, &blk).first\n end",
"title": ""
}
] | [
{
"docid": "bd37380a89cebbae605df44c060f8f57",
"score": "0.55698913",
"text": "def find_first(xpath, nslist = nil)\n find(xpath, nslist).first\n end",
"title": ""
},
{
"docid": "207f8716e9767521c2404ff18773dec3",
"score": "0.55347615",
"text": "def at(xpath)\n self.fin... |
4e498df54e33ffea60100f25c4a07da9 | PATCH/PUT /uhts/1 or /uhts/1.json | [
{
"docid": "daa49bb8a3651f32eb3815d18768436a",
"score": "0.7150486",
"text": "def update\n respond_to do |format|\n if @uht.update(uht_params)\n format.html { redirect_to @uht, notice: \"Uht was successfully updated.\" }\n format.json { render :show, status: :ok, location: @uht }\n... | [
{
"docid": "f4a14fc2d9cffdbc1f0172827a3b3a47",
"score": "0.6299034",
"text": "def update\n @usha = Usha.find(params[:id])\n\n respond_to do |format|\n if @usha.update_attributes(params[:usha])\n format.html { redirect_to @usha, notice: 'Usha was successfully updated.' }\n format... |
546ca837e3d78b08aa7750c2af9eb179 | Download insights data for your application. FGraph.insights('[client_id]', '[app_access_token]') FGraph.insights('[client_id]', '[app_access_token]', :metric_path => 'application_api_call/day') ==== Options metric_path e.g. application_api_calls/day since since (a unix timestamp or any date accepted by strtotime, e.g.... | [
{
"docid": "fb253d05fd5a3804b487fde9099d1140",
"score": "0.7763918",
"text": "def insights(client_id, app_access_token, options={})\n metric_path = options.delete(:metric_path)\n \n path = \"/#{client_id}/insights\"\n path += \"/#{metric_path}\" if metric_path\n \n self.perfo... | [
{
"docid": "28fc9aa956fa4bdf02af5c1df224e7d9",
"score": "0.6195456",
"text": "def list_insights_with_http_info(metric_id, opts = {})\n if @api_client.config.debugging\n @api_client.config.logger.debug 'Calling API: MetricsApi.list_insights ...'\n end\n # verify the required paramet... |
af630984682f1a0b5a68e6092af0d102 | Update properties of this object | [
{
"docid": "c185ed47a60d985c65611053ee48e075",
"score": "0.0",
"text": "def update!(**args)\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... |
379ecad625666d1edf2c185c5f8dc1d3 | Updates current membership if current_membership exists AND external_id matches, attributes are updated if current_membership exists AND external_id DOESNT match, closes previous and creates new else creates new | [
{
"docid": "2abe849ab6855ef3f2cfe437d46f23fe",
"score": "0.75324905",
"text": "def update\n @contact = @business.contacts.find_by_padma_id(params[:contact_id]) if params[:business_id].present?\n\n if (@membership = (@contact.try(:current_membership) || @contact.memberships.where(external_id: membe... | [
{
"docid": "90861366b222785ba0923eb59f268aa7",
"score": "0.6245948",
"text": "def update\n # no spoofing of acceptance\n params[:membership].delete('network_established_at') if params[:membership][:network_established_at]\n params[:membership].delete('user_established_at') if params[:membership... |
0decd040692b3b9c10e12acf160241e4 | DEPRECATED, Remove: creator ( Set to false | [
{
"docid": "f3792312b845be25442096a3e7511838",
"score": "0.0",
"text": "def include_morsel?; true end",
"title": ""
}
] | [
{
"docid": "e7914e2607f2f805b4ddce6654eea8b5",
"score": "0.7103659",
"text": "def is_creator?\n\t\tself.is_creator == 1\n\tend",
"title": ""
},
{
"docid": "c177bfba9062f895e2d7877b1c934202",
"score": "0.70377785",
"text": "def creator\n \"Made by ROUINEB Hamza. 2016\"\n end",
... |
d0c9e1f4a29ad421bc644d8b69ff3af6 | Gets the iosRestriction property value. Ios restrictions based on platform, platform operating system version, and device ownership | [
{
"docid": "9c1ec21d0b6fa6f80ada3438d6ed2d15",
"score": "0.83924633",
"text": "def ios_restriction\n return @ios_restriction\n end",
"title": ""
}
] | [
{
"docid": "fe71b22351b7a3773b289132822aaa53",
"score": "0.7712861",
"text": "def ios_restriction=(value)\n @ios_restriction = value\n end",
"title": ""
},
{
"docid": "da45ba0f1fe58d6802a5df03c9dcfb46",
"score": "0.6509923",
"text": "def windows_mobile_restr... |
6866e742156cdc4cd98047139519a4b2 | GET /video_histories/1 GET /video_histories/1.json | [
{
"docid": "a81945373733e4951b987de6ea99f9a1",
"score": "0.0",
"text": "def show\n end",
"title": ""
}
] | [
{
"docid": "20d15c9a8a7ef0a012b9f8fcd4b712ed",
"score": "0.7717646",
"text": "def index\n @video_histories = VideoHistory.all\n end",
"title": ""
},
{
"docid": "9a6be4f06edf5579a1bfa5e6d060804b",
"score": "0.6839009",
"text": "def index\n @histories = History.all\n\n respon... |
acb4e3c9f741d9b2aa440ccf73470559 | GET /recipes GET /recipes.json | [
{
"docid": "fce634c01069b34d6ca894329867b38b",
"score": "0.0",
"text": "def index\n @title = \"All the Best Recipes in the World and on the Web\"\n if params[:search]\n @recipes_best_before = Recipe.where(\"king = ?\", true)\n @search = @recipes_best_before.search(params[:search])\n ... | [
{
"docid": "af6ec53ba13a068dc8155bbc36de0ced",
"score": "0.8315941",
"text": "def recipes # /v1/user/:id/recipes (GET)\n recipes = ::Recipe.all\n render json: recipes, :each_serializer => RecipeSmallSerializer, root: false, status: 200\n end",
"title": ""
},
{
"docid": "d2b5c157... |
d29173465e4743a9c07730a327acf666 | Fetches data from the EXTRA_SKATER_URL and parses it into the TEAMS hash. | [
{
"docid": "919f66b60adfe6298624f61f12273e33",
"score": "0.6094787",
"text": "def fetch_data\n website = open(EXTRA_SKATER_URL)\n Nokogiri::HTML::Document.parse(website).css('tr').each do |tr| # grab every 'tr' element\n row = tr.css('td').map(&:inner_text) # turn each 'tr' ... | [
{
"docid": "1dccf037e7fbfa2411fac593d2abfae2",
"score": "0.5284574",
"text": "def bike_grabber(params=\"\")\n token = ENV[\"XTOKEN\"]\n data = HTTParty.get(\"https://data.sfgov.org/resource/dd7x-3h4a.json?#{params}\", \n :headers => {'X-App-Token' => token },\n )\n end",
"title": "... |
590976aa32330ee001a14dbc1cc1c72d | Returns true if (self.c1 descends from other c1 && self.c1 descends from other c2) || (self.c1 descends from c2 && self.c2 descends from other c1) | [
{
"docid": "7364e0eb45d09929e21734152f964fba",
"score": "0.61551654",
"text": "def descendant_of?(other)\n (r1.descendant_of?(other.r1) && r2.descendant_of?(other.r2)) ||\n (r1.descendant_of?(other.r2) && r2.descendant_of?(other.r1))\n end",
"title": ""
}
] | [
{
"docid": "55fe842f2724e8fc253264881cebe2f9",
"score": "0.62776345",
"text": "def starts_after_non_disjoint(other)\n return @a > other.attr_a && @a <= other.attr_b # this.b>=other.b implied\n end",
"title": ""
},
{
"docid": "f9668bcf75cffadfde42732391adc15b",
"score": "0.6245647... |
bb523eeacd99f1b267ec82a03a66aa71 | PUT /exports/1 PUT /exports/1.json | [
{
"docid": "b52262afc6756dedb38f1bca788801b1",
"score": "0.59138",
"text": "def update\n @export = Export.find(params[:id])\n @dbs = get_dbs\n \n respond_to do |format|\n if @export.update_attributes(params[:export])\n format.html { redirect_to @export, notice: 'Export wa... | [
{
"docid": "882c8317370987b86425c0adbf5bfe8c",
"score": "0.5915678",
"text": "def update_aos_version(args = {}) \n put(\"/aosversions.json/#{args[:aosVersionId]}\", args)\nend",
"title": ""
},
{
"docid": "118de8bbd2d447a48c18cdc70bfae1ad",
"score": "0.59015304",
"text": "def update\n... |
115fb6dd0400f6daed7ba50b193764e8 | an integer, an operator, and an integer. include +, , and /. Add | [
{
"docid": "4d0f376f612b2b0e78e6272f4c86698a",
"score": "0.0",
"text": "def adds(x,y)\n\tx + y\nend",
"title": ""
}
] | [
{
"docid": "d7cee70c246aaf1e9b3ce160c1574ded",
"score": "0.77278626",
"text": "def applyOperator(num1, num2, operator)\n result = 0\n\tif operator == \"+\"\n\t\tresult = num1.to_i + num2.to_i\n\telsif operator == \"-\"\n\t\tresult = num1.to_i - num2.to_i\n\telsif operator == \"*\"\n\t\tresult = num1.... |
e82564f8649d8ac0c295127ab0a9ec53 | initialize() Packet setup method. Keeping this out of the constructor allows a single WakeOnLAN object to be reused for multiple addresses. | [
{
"docid": "8a2d75bc0fbb84ba3383f071d9a29857",
"score": "0.5051839",
"text": "def setup( mac, ip = '255.255.255.255' )\n \n @magic ||= (\"\\xff\" * 6)\n \n # Validate MAC address and craft the magic packet\n raise AddressException,\n 'Invalid MAC address' un... | [
{
"docid": "a46a2446e7ee15bd6bdeae0713cb613c",
"score": "0.61741316",
"text": "def initialize timestamp, length, capture_length, captured, datalink, headers\n @capture_length = capture_length\n @captured = captured\n @datalink = datalink\n @length = length\n @protocols... |
211cf1a7a3f559f4c0496c62193fef8c | creates word frequency hash, with k as words and v as frequency | [
{
"docid": "8066a4b8a65352107e56676dc008567d",
"score": "0.6882636",
"text": "def word_frequency(text)\n norm_array = normalize(text).to_a\n freq = { }\n norm_array.each_with_object(Hash.new(0)){|key,hash| hash[key] += 1}\nend",
"title": ""
}
] | [
{
"docid": "8802ad65b05ef8c8abd4f6bb0cb58d11",
"score": "0.72636366",
"text": "def word_frequency(words)\n frequencies = Hash.new(0)\n words.each do |word|\n frequencies[word] += 1\n end\n frequencies\nend",
"title": ""
},
{
"docid": "966f93ec9ecd1bb9615837e75f1ce81f",
"score": "0... |
f8c1a8c5c786ca98a00fc6326a736e61 | Get the type of the media | [
{
"docid": "1379aa0fd234de2362973ab4075aeab9",
"score": "0.8833885",
"text": "def media_type\n return mediaformat.mediatype.mediatype\n end",
"title": ""
}
] | [
{
"docid": "42f3acd56e414ce7b9cf3420cdfcc6df",
"score": "0.8809782",
"text": "def media_type\n return @media_type\n end",
"title": ""
},
{
"docid": "42f3acd56e414ce7b9cf3420cdfcc6df",
"score": "0.8809782",
"text": "def media_type\n return @med... |
1d38fbf391f1cc86d2a5569da12e48a2 | GET /election/[group_id] form for editing an existing election group | [
{
"docid": "9b4a8b720b13872888426a926d044717",
"score": "0.72705966",
"text": "def edit\n @group = LunchGroup.find_by_id params[:id]\n end",
"title": ""
}
] | [
{
"docid": "c328c1cf436dffaa7e58772675d958e0",
"score": "0.74375737",
"text": "def edit\n @group = Group.find(params[:id])\n end",
"title": ""
},
{
"docid": "2b6c04aa0108203d8cf0e2860ba11958",
"score": "0.7437421",
"text": "def edit\n @group = Group.find(params[:id])\n ... |
f74c29bdfc4a183e1ec1b91334cd5be2 | Use callbacks to share common setup or constraints between actions. | [
{
"docid": "460659010c5ced18599f309e5f3d39b8",
"score": "0.0",
"text": "def set_holiday\n @holiday = Holiday.find(params[:id])\n end",
"title": ""
}
] | [
{
"docid": "bd89022716e537628dd314fd23858181",
"score": "0.6165422",
"text": "def set_required_actions\n # TODO: check what fields change to asign required fields\n end",
"title": ""
},
{
"docid": "3db61e749c16d53a52f73ba0492108e9",
"score": "0.60457647",
"text": "def action_hook... |
24f7d15d3aa81085b4f69b0d30250383 | GET /insurers/new GET /insurers/new.json | [
{
"docid": "1dc521913d65d17ad0e5d9947f9e23cf",
"score": "0.72752535",
"text": "def new\n @insurer = Insurer.new\n\n respond_to do |format|\n format.html # new.html.erb\n format.json { render json: @insurer }\n end\n end",
"title": ""
}
] | [
{
"docid": "ac9f8e9ad65d8691aa8e0dfe2c67e81b",
"score": "0.72531193",
"text": "def new\n @manufacturer = Manufacturer.new\n\n respond_to do |format|\n format.html # new.html.erb\n format.json { render json: @manufacturer }\n end\n end",
"title": ""
},
{
"docid": "cb604a5e... |