query_id stringlengths 32 32 | query stringlengths 7 6.75k | positive_passages listlengths 1 1 | negative_passages listlengths 88 101 |
|---|---|---|---|
60545d1cb844b587a0b2d4ca1e76bf41 | TODO: Convert currencies so limits make sense! TODO: WHY is this not an after create or even before save item? | [
{
"docid": "c1b6a841333d91da62f6ee9c606b6c11",
"score": "0.0",
"text": "def apply_rules\n self.approval_status = (amount.to_f < user.limit.to_f)\n save\n end",
"title": ""
}
] | [
{
"docid": "b323ab3b8758dd642fb599fa94e4975f",
"score": "0.64683855",
"text": "def item_price\n Money.new(item_price, currency)\n end",
"title": ""
},
{
"docid": "df4d10119b8c0867535ca979e9f1760c",
"score": "0.63650435",
"text": "def with_currency(new_currency); end",
"title"... |
f74c29bdfc4a183e1ec1b91334cd5be2 | Use callbacks to share common setup or constraints between actions. | [
{
"docid": "ca96808fabb2f75989b57d16029c70a4",
"score": "0.0",
"text": "def set_family\r\n @family = Family.find(params[:id])\r\n end",
"title": ""
}
] | [
{
"docid": "bd89022716e537628dd314fd23858181",
"score": "0.6165152",
"text": "def set_required_actions\n # TODO: check what fields change to asign required fields\n end",
"title": ""
},
{
"docid": "3db61e749c16d53a52f73ba0492108e9",
"score": "0.60463154",
"text": "def action_hook... |
8689e89643ab14f7d851cf9e9dbe3af4 | DELETE /ma_tables/1 DELETE /ma_tables/1.json | [
{
"docid": "5ae74535f13d32f494996fbb7bfe67a9",
"score": "0.7138062",
"text": "def destroy\n @ma_table.destroy\n respond_to do |format|\n format.html { redirect_to ma_tables_url, notice: 'Ma table was successfully destroyed.' }\n format.json { head :no_content }\n end\n end",
"tit... | [
{
"docid": "a87e82d0b97ba263af065303b364c70e",
"score": "0.7220893",
"text": "def delete_table(table_id); delete(\"tables/#{table_id}\"); nil; end",
"title": ""
},
{
"docid": "918877a398af10aa54bedf5e67b57dc9",
"score": "0.7099852",
"text": "def destroy\n @table.destroy\n respo... |
48a12758e6341b0dca856ef7c6be7075 | A count of how many times this token has transitioned to the one set in ".next" | [
{
"docid": "37f787963f1a4116c7209c1147762712",
"score": "0.62627196",
"text": "def get_transition_count(from, to)\n from = from.is_a?(Token)? from.type : from\n to = to.is_a?(Token)? to.type : to\n\n return 0 if not transitions[from]\n transitions[from][to] || 0\n end",
... | [
{
"docid": "a01dee1781c0e1771a4318aa18a69f9e",
"score": "0.70433277",
"text": "def count_tokens()\n @counts = Hash.new(0)\n @tokens.each do |token|\n @counts[token] += 1\n end\n @counts\n end",
"title": ""
},
{
"docid": "346308bf182da7dd1b6f070d1670e185",
"score": "0.70... |
40754718ee021557e9fd9be3ed24d90c | GET /accounts/new GET /accounts/new.json | [
{
"docid": "c2cc4e51de04335fb5189eff2eef3a1c",
"score": "0.0",
"text": "def new\n @account = @model.new\n @account.person = @person\n @treasury = @account.treasury\n return if needs_treasury_supervisor(@treasury)\n\n respond_to do |format|\n format.html # new.html.erb\n format.j... | [
{
"docid": "d47f4495e6187b6074cd6b2ec9da0e1b",
"score": "0.7875146",
"text": "def new\n @account = current_user.accounts.new\n\n respond_to do |format|\n format.html # new.html.erb\n format.json { render json: @account }\n format.xml { render xml: @account }\n end\n end",
"t... |
953103f8d02a1f4abf132c58d2b78ddf | Hostname based validation information. | [
{
"docid": "797a2ccafa675ca75eed30be58b1798d",
"score": "0.76449555",
"text": "def hostname_validation\n @hostname_validation ||= HostnameValidation.new(\n @node.at_xpath('hostnameValidation')\n )\n end",
"title": ""
}
] | [
{
"docid": "cabd4786ac278f64b3c8eb6ed92f38d3",
"score": "0.6726273",
"text": "def validates_as_hostname_label(*attrs)\n options = { :allow_underscores => false, :reserved => RESERVED_HOSTNAMES }.merge(attrs.last.is_a?(Hash) ? attrs.pop : {})\n \n format = 'a-z0-9\\-'\n format << '_' ... |
3f52973818698070d105a2c20fdb77a5 | Serializes information the current object | [
{
"docid": "917f8f1406b12cdf499868c38ef72c1d",
"score": "0.0",
"text": "def serialize(writer)\n raise StandardError, 'writer cannot be null' if writer.nil?\n super\n writer.write_string_value(\"email\", @email)\n writer.write_enum_value(\"inclu... | [
{
"docid": "d162e297d0f84ca205afa381c3f6a428",
"score": "0.7829839",
"text": "def serialize\n Marshal.dump(self)\n end",
"title": ""
},
{
"docid": "762bca0e2db3ff19d91cc4521bb1e1d9",
"score": "0.7644408",
"text": "def serialize(object) end",
"title": ""
},
{
"docid": ... |
a2734180cac8e694188bd6c6797aff3e | Waits for the complete boot the instance by monitoring instances console_output | [
{
"docid": "73bfad19a370af9cfd4ade5ca4ffa7b0",
"score": "0.0",
"text": "def complete_wait(servers, os_type)\n Timeout::timeout(600) do # Timeout after 10 minutes\n if @mock # if mock is enabled sleep for some time and return back\n # sleep 5\n return\n end\n i... | [
{
"docid": "019b6a3dcd86ecc532730b02dbdd0a64",
"score": "0.76235205",
"text": "def wait_for_boot(project_id, instance)\n tries=60\n delay=5\n while tries > 0\n c = command(\"gcloud --project=#{project_id} compute instances get-serial-port-output #{instance}\")\n if c.stdout =~ /GCEMet... |
0071d8979420236316c7975679d5c06c | SQL fragment for Array | [
{
"docid": "c08d1e46bde58be99249fbde3fa0a1d2",
"score": "0.7386581",
"text": "def array_sql(a)\n a.empty? ? '(NULL)' : \"(#{expression_list(a)})\" \n end",
"title": ""
}
] | [
{
"docid": "5207f97634baa405cf1b16fff3479fa8",
"score": "0.7230914",
"text": "def _literal_append(sql, ds, array)\n sql << '['\n comma = false\n commas = ','\n array.each do |i|\n sql << commas if comma\n if i.is_a?(Array)\n _literal_append(sql, d... |
21876f402fefe2c42f58429bcc5bc660 | Baseline implementation for the delete_workflow_invocation REST call | [
{
"docid": "554b496cb25c20244765d02f3383f41e",
"score": "0.7969127",
"text": "def delete_workflow_invocation request_pb, options = nil\n raise ::ArgumentError, \"request must be provided\" if request_pb.nil?\n\n verb, uri, query_string_params, body = ServiceStub.transcode_d... | [
{
"docid": "5b4f4fc489465786d8f637b67041fe69",
"score": "0.6812164",
"text": "def rest__delete_component_using_workflow\n assembly = ret_assembly_instance_object()\n params_hash = ret_params_hash(:commit_msg, :task_action, :task_params, :start_assembly, :skip_violations, :noop_if_no_action)... |
9ad691a50c33c469265167cbcabcd660 | set the study_accession for this study | [
{
"docid": "2cece3684609ec9258ea594c0782b403",
"score": "0.7196324",
"text": "def assign_accession\n next_accession = StudyAccession.next_available\n while Study.where(accession: next_accession).exists? || StudyAccession.where(accession: next_accession).exists?\n next_accession = StudyAccessi... | [
{
"docid": "0d528fd6b63e2a6db76d297c0fc48c67",
"score": "0.88773423",
"text": "def set_study_accession\n self.study_accession = self.study.accession\n end",
"title": ""
},
{
"docid": "b6371aebe75f6a5860366be9a0ef808b",
"score": "0.7321499",
"text": "def set_study\n @study = ... |
42a723542bb794b5372d49cfd4374765 | how can i collect specific artist's paintings? A: have to write it in the console. lol. the code is written already. | [
{
"docid": "0e051b1905fdae25a7a9faeb75c725d2",
"score": "0.0",
"text": "def initialize(title, price)\n @title = title\n @price = price\n @artist = artist\n @gallery = gallery\n\n @@all << self\n end",
"title": ""
}
] | [
{
"docid": "b5cce688d57a591ccdaeb808aac77521",
"score": "0.7371662",
"text": "def artists \n paintings.map { |paint| paint.artist }\n end",
"title": ""
},
{
"docid": "68025670e2acfb0104974e42df0a97e4",
"score": "0.7247125",
"text": "def paintings\n Painting.all.select {|p| p.a... |
6af49909c26a96edbe2da4c9a444c929 | Finds all records in the repository for a given query. | [
{
"docid": "d9d535c8af23d3eb838d4aa1225b037f",
"score": "0.0",
"text": "def find_all(&block)\r\n copy_and_return(@records.select(&block))\r\n end",
"title": ""
}
] | [
{
"docid": "decab0c5b6568343f6aa64dc83846a3b",
"score": "0.76915795",
"text": "def find_all_by_query(query, options={})\n find_by_query(:all, query, options)\n end",
"title": ""
},
{
"docid": "4a1a310ec0c2e03690f5135cbb1b28db",
"score": "0.67522085",
"text": "def all(query); ... |
fd3ab78b09bd6ced57f9d4c1ed3e5818 | POST /service_song_types POST /service_song_types.json | [
{
"docid": "1f82e03c22332f01f6b095d978aff8a7",
"score": "0.7068987",
"text": "def create\n @service_song_type = ServiceSongType.new(service_song_type_params)\n\n respond_to do |format|\n if @service_song_type.save\n format.html { redirect_to @service_song_type, notice: 'Service song ty... | [
{
"docid": "dad1d5b4947e427736c27ed830b9458a",
"score": "0.71197826",
"text": "def service_song_type_params\n params.require(:service_song_type).permit(:name)\n end",
"title": ""
},
{
"docid": "f59eddd11b88061d3f9ed84685d2ba8e",
"score": "0.6541757",
"text": "def index\n @... |
697eacb2acadd0c1bb51db46fff32a08 | only to be used within SalesController | [
{
"docid": "6cd5bf9232d7b36cdfd3aaaaf4fabff3",
"score": "0.0",
"text": "def set_sale\n @sale = Sale.find_by_id(params[:id])\n end",
"title": ""
}
] | [
{
"docid": "da62fd964a7c0b0de4b5e7c43aeb2b22",
"score": "0.7359235",
"text": "def sales\n end",
"title": ""
},
{
"docid": "8aec6d5b1cee866ce507ebc62749d5f4",
"score": "0.71668625",
"text": "def index ## Used for Sales \n end",
"title": ""
},
{
"docid": "2a8f69c5e54b51... |
5a721ffcd35bc7fa1aabde046d1e68bf | GET /cart_related_products/1 GET /cart_related_products/1.json | [
{
"docid": "4546202c388babe7d5b9029065ac9a51",
"score": "0.75807697",
"text": "def show\n @cart_related_product = CartRelatedProduct.find(params[:id])\n\n respond_to do |format|\n format.html # show.html.erb\n format.json { render json: @cart_related_product }\n end\n end",
"titl... | [
{
"docid": "e214dbbdaaadd8aa86ec1063b803e7d7",
"score": "0.69371027",
"text": "def new\n @cart_related_product = CartRelatedProduct.new\n\n respond_to do |format|\n format.html # new.html.erb\n format.json { render json: @cart_related_product }\n end\n end",
"title": ""
},
{
... |
79e5be5193cbbae86ea47d36c17833f0 | parses the line and adds the row to the database | [
{
"docid": "32d9bd7501e42695d4a6c861875bfea6",
"score": "0.6891296",
"text": "def parse_line(row)\n date_str = row[0]\n food = row[1]\n date = Date.strptime(date_str, '%m/%d/%Y')\n add(food, date)\n end",
"title": ""
}
] | [
{
"docid": "f02cf58c439194dd293fa9133b69ddd9",
"score": "0.6610783",
"text": "def parse_line(line)\n case line.strip\n when /^CREATE TABLE `(.*)`/\n @table = Table.new(Regexp.last_match[1])\n when COLUMNS_REGEXP\n col = parse_column(line.strip.chomp(\",\"))\n ... |
908647f620a15e106c89752610a05521 | Flush the counters in memory by incrementing persistent storage and zero their inmemory value. Counters that might otherwise overflow will be reset. | [
{
"docid": "d5be4846fa76ea37692a91a9e26354e4",
"score": "0.6771529",
"text": "def flush\n _log.debug { 'flushing counters buffer' }\n data = @data.synchronize { @data.dup.tap { @data.clear } }\n return self unless data.any?\n _redis_lua_run(\n 'counters_flush',\n ... | [
{
"docid": "279201ac5d017e9894ce1ae52fe29617",
"score": "0.68644416",
"text": "def resetCounters()\n @int_count = 0\n @float_count = 0\n @boolean_count = 0\n @string_count = 0\n end",
"title": ""
},
{
"docid": "a5b046759dc1e05a9975a2c8c9624e74",
"score": "0.6664206",
"te... |
880350beeb879ee5e11c5b77defe4fc0 | DELETE /record_categories/1 DELETE /record_categories/1.xml | [
{
"docid": "c6eeca85534a0674c6349d49cf94bb47",
"score": "0.65123695",
"text": "def destroy\n authorize! :manage_account, current_account\n @record_category = current_account.record_categories.find(params[:id])\n @record_category.destroy\n respond_with(@record_category, :location => record_ca... | [
{
"docid": "5d50acd94f5272a38f25c25a028c118c",
"score": "0.66022766",
"text": "def destroy\r\n @ccategory = Ccategory.find(params[:id])\r\n @ccategory.destroy\r\n\r\n respond_to do |format|\r\n format.html { redirect_to(ccategories_url) }\r\n format.xml { head :ok }\r\n end\r\n e... |
783899a2be904ec13c4656743eaf7cbb | Returns all paths that should be tested by Qwandryscan. | [
{
"docid": "3035d82b304b6eee8fbdfae921c90b65",
"score": "0.66465133",
"text": "def all_paths\n paths = Dir[\"#{@path}/*\"]\n paths = paths.select(&matcher(options[:accept])) if options[:accept]\n paths = paths.reject(&matcher(options[:reject])) if options[:reject]\n paths\n end",
... | [
{
"docid": "3dbbaf40363918926a92ae2a9e23872d",
"score": "0.68310565",
"text": "def paths\n tree_path = File.join(File.dirname(__FILE__), 'rails_tree')\n [\"\", \"multitest\", \"results\"].inject([tree_path]) do |result, suffix|\n result << File.join(result[-1], suffix)\n end[1..3]\n end",... |
959121a03d70032c6a773824f87b3065 | =begin res = getListOfDroplets() Iterate through the JSON responce, and set the custom tags for each item. data = JSON.parse(res.body) data["droplets"].each do |droplet| puts addTagToDroplet(droplet["id"], "custom_tag") end tagsList = listExistingTags() tagsList["tags"].each do |t| puts t["name"] end =end Function defi... | [
{
"docid": "b99aa9e338393a62e01add8f6e1749e3",
"score": "0.0",
"text": "def initReq(service, method = \"GET\")\n url = URI.parse(\"https://api.digitalocean.com/v2/#{service}\")\n http = Net::HTTP.new(url.host, url.port)\n http.use_ssl = true\n case method\n when \"GET\"\n req = Net::HTTP::Get.ne... | [
{
"docid": "4296fadc07fdc035bcc5a14b54e435ad",
"score": "0.7244626",
"text": "def tagDroplet(id, tag)\n http, req = initReq(\"tags/#{tag}/resources\", \"POST\")\n req.body = {\"resources\" => [{\"resource_id\" => id, \"resource_type\" => \"droplet\"}]}.to_json\n http.request(req).body\nend",
"tit... |
ebb5be267a0a0292feb1859f55217506 | Returns the operand of the operation. | [
{
"docid": "0b7f7f62ae4d027851d78a4dbbf4411e",
"score": "0.0",
"text": "def children; end",
"title": ""
}
] | [
{
"docid": "55ad80dcea14ccaad42fee4ad963ac2f",
"score": "0.8025555",
"text": "def op_code\n operand\n end",
"title": ""
},
{
"docid": "5a03c7b56c96f566b855b3f7843bd2c4",
"score": "0.77733314",
"text": "def operand\n first\n end",
"title": ""
},
{
"doci... |
f74c29bdfc4a183e1ec1b91334cd5be2 | Use callbacks to share common setup or constraints between actions. | [
{
"docid": "da5da9be164a235b099f95e851c024c9",
"score": "0.0",
"text": "def set_pesagem\n @pesagem = Pesagem.find(params[:id])\n end",
"title": ""
}
] | [
{
"docid": "631f4c5b12b423b76503e18a9a606ec3",
"score": "0.603186",
"text": "def process_action(...)\n run_callbacks(:process_action) do\n super\n end\n end",
"title": ""
},
{
"docid": "7b068b9055c4e7643d4910e8e694ecdc",
"score": "0.6015241",
"text": "def ... |
d9857453269bf3d4ea6af05280c33084 | Return the unit text | [
{
"docid": "d661854750f1dbbd1ca6f20c31c2acb6",
"score": "0.7999929",
"text": "def text\n Visma::Unit.all.to_a[self.UnitNo - 1].UnitName\n end",
"title": ""
}
] | [
{
"docid": "17015df1e0aeb1bfec57471d95888f52",
"score": "0.8088592",
"text": "def unit_str; end",
"title": ""
},
{
"docid": "17015df1e0aeb1bfec57471d95888f52",
"score": "0.8088592",
"text": "def unit_str; end",
"title": ""
},
{
"docid": "98dcbe0f83255615dfff1248b5085abb",... |
27019489891a136055dd28897108d4cd | can reverse xfer btw two accts can only reverse executed xfers | [
{
"docid": "545b08f6136b295f3832f656945cda6a",
"score": "0.6455731",
"text": "def reverse_transfer\n if @status == \"complete\"\n @sender.balance += amount\n @receiver.balance -= amount\n @status = \"reversed\"\n end\n end",
"title": ""
}
] | [
{
"docid": "8931e93c84201f8ec09ffad2c2b23ea2",
"score": "0.71270233",
"text": "def reverse_transfer\n#can only reverse executed accounts\n if valid? && receiver.balance > amount && self.status == \"complete\"\n receiver.balance -= amount\n sender.balance += amount\n self.status = \"rev... |
432a9da79fcd54ff05669031129d21e1 | The AWS Key Management Service key ID of the encryption key used to encrypt data in the cluster | [
{
"docid": "7433bdb1e76df9492fdb60d261960d06",
"score": "0.799733",
"text": "def kms_key_id\n @cluster.kms_key_id\n end",
"title": ""
}
] | [
{
"docid": "45e449fcfa18d5bc5d14e25d6030c170",
"score": "0.77143407",
"text": "def kms_key_id\n data[:kms_key_id]\n end",
"title": ""
},
{
"docid": "45e449fcfa18d5bc5d14e25d6030c170",
"score": "0.77143407",
"text": "def kms_key_id\n data[:kms_key_id]\n end",
"titl... |
90cca1826353792ef8e3f8cd495753ee | Returns all the files in a directory. | [
{
"docid": "5bd3e312dba056f3c047de99e4a9b160",
"score": "0.70294905",
"text": "def all\n Dir[\"**/*\"]\n end",
"title": ""
}
] | [
{
"docid": "9084410e16621d9492b2d546b9e91a45",
"score": "0.84281003",
"text": "def get_all_files_in_directory(dir)\n return [] if dir.nil?\n files = Dir[File.join(dir, '**', '.*'), File.join(dir, '**', '*')].reject{|p| File.directory? p}\nend",
"title": ""
},
{
"docid": "0c006cc3433ef1f857... |
2d13723f6fdd382d403bbc9eadf7dd46 | min ... max min ... any any ... max max ... min max ... any any ... min any ... any | [
{
"docid": "c01ac2bc8c3d8e4774f199844f845ce0",
"score": "0.0",
"text": "def reverse? a, min, max\n if a[0]==min||a[0]==max||a.size==1||(a.last != min && a.last != max)\n return false\n else#if a[a.size-1] != min && a[a.size-1] != max\n return true\n end\nend",
"title": ""
}
] | [
{
"docid": "6ba664dc526b98e549e577fb0be38a8a",
"score": "0.7392332",
"text": "def validation min, max\n\n end",
"title": ""
},
{
"docid": "74eadf27127d6634b42aaefae0bc21d6",
"score": "0.70698345",
"text": "def define_min_and_max\n @min = acceptable_min\n @max = accepta... |
0d7c9d328bc82d8d1b0c0b65203851a3 | change the status to :suspended Return the status == Examples >>> user.suspend! => "suspended" | [
{
"docid": "cb2080283ca1dd2424e958c292060446",
"score": "0.70991224",
"text": "def suspend!\n self.update_attribute(:status, SUSPENDED)\n self.registration.update_attribute(:status, SUSPENDED) if self.registration\n end",
"title": ""
}
] | [
{
"docid": "becb7a7f79565ca83a163de75eb57a3c",
"score": "0.792809",
"text": "def suspended!\n self.update_attribute(:status, SUSPEND)\n end",
"title": ""
},
{
"docid": "0e80185ec35da0a0b0ad5b03e72af945",
"score": "0.78378886",
"text": "def suspend!\n return if suspended?\n... |
94c625d4bfa0b6efc6db98426dbce1c2 | GET /ecology_certainty_factors/1 GET /ecology_certainty_factors/1.json | [
{
"docid": "a81945373733e4951b987de6ea99f9a1",
"score": "0.0",
"text": "def show\n end",
"title": ""
}
] | [
{
"docid": "ecbb3dd95ca42b2b2828be1e961447f8",
"score": "0.75162846",
"text": "def index\n @ecology_certainty_factors = EcologyCertaintyFactor.all\n end",
"title": ""
},
{
"docid": "855e6f7d17f22cb776593b1e90fea3a0",
"score": "0.69477236",
"text": "def set_ecology_certainty_facto... |
a071b19fae733052ffb699f366da7b28 | def params_first_step params.require(:program_unit).permit(:processing_location,:disposition_status,:disposition_reason) end | [
{
"docid": "9382ca919ccb63625691c663afc444d3",
"score": "0.0",
"text": "def client_params\n\t\t\tparams.require(:client).permit(:first_name, :middle_name,:last_name,:suffix,:ssn,:dob,:gender,:marital_status,:primary_language,:ssn_enumeration_type,:identification_type,:ssn_not_found)\n \t\tend",
"ti... | [
{
"docid": "aabb8407161e3e1e1ee57897e74fec5f",
"score": "0.80298734",
"text": "def processing_office_params\n \t \t\tparams.require(:program_unit).permit(:processing_location,:pgu_family_comp_same_as_application)\n \t \tend",
"title": ""
},
{
"docid": "657dff96d321bd87737aaf96fcbb6bd6",
... |
e07b6ce6551eedd74df7f79caa775ca8 | Return if this association's source relation is the same as the target | [
{
"docid": "ce789700f84fc686dac97b93d7b5d6b2",
"score": "0.70592266",
"text": "def self_ref?\n source.name.dataset == target.name.dataset\n end",
"title": ""
}
] | [
{
"docid": "c7dd816b581e9f906a7986e265c7adcd",
"score": "0.70936257",
"text": "def in_source?(target_source)\n source == target_source\n end",
"title": ""
},
{
"docid": "d02b8d6dbf1baa5371eb31b25c7dce03",
"score": "0.69982475",
"text": "def source_dest_checked?\n @ni.s... |
49cd77e4cf9481873730234f42b17ca0 | Displays the current map. | [
{
"docid": "1b32c2f2ec296a97af67305227338b6b",
"score": "0.7748928",
"text": "def worlddisplay\r\n\t\t\t$game.world.map.display\r\n\t\tend",
"title": ""
}
] | [
{
"docid": "f8ec577858306634b9b607b54f28d479",
"score": "0.7729735",
"text": "def display_map\n @map.display_map\n end",
"title": ""
},
{
"docid": "e3be11e1e81921e37c49a6ad5d1c37b4",
"score": "0.7706323",
"text": "def show\n @title = \"#{@map.name} | Maps\"\n @page_class = ... |
d19d76d7ce08617a4c5dc4448f084a7a | employee rolesList selectedRole 0 | [
{
"docid": "dc073e91d61978202be7a8dc57ebfe23",
"score": "0.0",
"text": "def request_body\n body = {\n ':fieldDescription' => {\n 'platformCore:recordType' => soap_type,\n 'platformCore:sublist' => @options[:sublist],\n 'platformCore:field' => @options[:fi... | [
{
"docid": "df775565f32ac445be6213e0ef5005ff",
"score": "0.7819916",
"text": "def role_select\n @@Roles.list\n end",
"title": ""
},
{
"docid": "be6c123034cedd4fdf0fa9c447a984c6",
"score": "0.6829879",
"text": "def roles_for_select\n Role.all.select {|role| can? :add_user, rol... |
be5ba2daf6d639c77b388a38ac541d0b | Evalute a compound statement and return its truth value | [
{
"docid": "a0c0a16438ffeb11bd68f18f3f13d5e5",
"score": "0.6212366",
"text": "def eval_statement(statement)\n token_type = statement.keys.first\n token_value = statement.values.first\n\n return token_value if (token_type != 'statement' && token_type != 'fstatement')\n\n if to... | [
{
"docid": "42b8419a85c031962eaf04728e1f6986",
"score": "0.70257145",
"text": "def eval\n begin\n self.debug_info\n condition = @compare.eval\n while condition.value do\n scope_increase\n @stmts.eval\n condition = @compare.eval\n scope_decrease\n end\n ... |
08e25c0f75f0fe3cd93ce8bcb3c2eeae | Assigns multiple Users to a Profile To batch assign users to a profile (Admin profile, User profile) (as in qTest Manager admin panel). It requires that your qTest Manager profile is a site admin with Manage Client Users permissions qTest Manager version: 8.4.2+ | [
{
"docid": "139898f3a4e351729b0ee4df2e8297dd",
"score": "0.6695887",
"text": "def batch_assign_user_profile_in_client(body, opts = {})\r\n data, _status_code, _headers = batch_assign_user_profile_in_client_with_http_info(body, opts)\r\n return data\r\n end",
"title": ""
}
] | [
{
"docid": "ddabe65f0ae753a2f0f14532db2052d8",
"score": "0.6268608",
"text": "def batch_assign_user_profile_in_client_with_http_info(body, opts = {})\r\n if @api_client.config.debugging\r\n @api_client.config.logger.debug \"Calling API: UserprofileApi.batch_assign_user_profile_in_client ...\... |
386d08eaa71c9ee854a488894a0ff036 | Append message to flash if the applicant needs to be warned/notified that they need to still provide files. | [
{
"docid": "8d1b629d83bdfa9ab7262e429bd11672",
"score": "0.7315837",
"text": "def set_flash_messages_incl_application_files(shf_application, file_delivery_selected, action)\n i18n_scope = \"shf_applications.#{action}\"\n\n if shf_application.uploaded_files.present?\n helpers.flash_message(:no... | [
{
"docid": "29bfa7e9380bfef7cc55e169309973c0",
"score": "0.66909724",
"text": "def render_attachment_warning_if_needed(obj)\n flash[:warning] = l(:warning_attachments_not_saved, obj.unsaved_attachments.size) if obj.unsaved_attachments.present?\n end",
"title": ""
},
{
"docid": "4d326b437... |
e561e11bcf379ef5dc139c210017366b | Only allow a list of trusted parameters through. | [
{
"docid": "5f1e853b9741cf58e443a33444a0c799",
"score": "0.0",
"text": "def recruiter_params\n params.require(:recruiter).permit(:name, :email, :position_ids)\n end",
"title": ""
}
] | [
{
"docid": "3663f9efd3f3bbf73f4830949ab0522b",
"score": "0.74768823",
"text": "def whitelisted_params\n super\n end",
"title": ""
},
{
"docid": "36956168ba2889cff7bf17d9f1db41b8",
"score": "0.71700543",
"text": "def set_param_whitelist(*param_list)\n self.param_whitelist... |
d227782cbe5976daf6eff731870e47c5 | GET /xrf_cocs GET /xrf_cocs.json | [
{
"docid": "f8aa8e3d6c158e6a84a6e01ca39871aa",
"score": "0.7671296",
"text": "def index\n @xrf_cocs = XrfCoc.all\n end",
"title": ""
}
] | [
{
"docid": "2a2258be831511e4bd92d20488f8650b",
"score": "0.67463976",
"text": "def index\n @cofs = Cof.all\n end",
"title": ""
},
{
"docid": "632f9f49beff8305dee82f584d970d86",
"score": "0.6525985",
"text": "def set_xrf_coc\n @xrf_coc = XrfCoc.find(params[:id])\n end",
... |
6f8f9bf0f57c693f8e8902f0b5304dd3 | GET /shareds/1 GET /shareds/1.json | [
{
"docid": "a81945373733e4951b987de6ea99f9a1",
"score": "0.0",
"text": "def show\n end",
"title": ""
}
] | [
{
"docid": "2c6ab46bd10b9e3cb85ee19d1881d095",
"score": "0.7396005",
"text": "def index\n @shareds = Shared.all\n end",
"title": ""
},
{
"docid": "9557819092fe6be01bfb6a62779bc706",
"score": "0.70352626",
"text": "def show\n @shared_item = SharedItem.find(params[:id])\n\n r... |
c657de4b70d266e9a3a784b999ea9e60 | Never trust parameters from the scary internet, only allow the white list through. | [
{
"docid": "e254b8325077d5bcd18b564e42fec18d",
"score": "0.0",
"text": "def mixtransaccionest_params\n params.require(:mixtransaccionest).permit(:maquinat_id, :tipotransaccion, :cantidad, :comando, :status, :descripcion)\n end",
"title": ""
}
] | [
{
"docid": "e164094e79744552ae1c53246ce8a56c",
"score": "0.6980957",
"text": "def strong_params\n params.require(:user).permit(param_whitelist)\n end",
"title": ""
},
{
"docid": "e662f0574b56baff056c6fc4d8aa1f47",
"score": "0.6783065",
"text": "def strong_params\n params.requi... |
ccf82defcdd1874a1ff5df096ec758be | DELETE /tracks/1 DELETE /tracks/1.json | [
{
"docid": "98a710eaf079165106ffa4f3177841b0",
"score": "0.7197781",
"text": "def destroy\n @track.destroy\n respond_to do |format|\n format.html { redirect_to yams_core.tracks_url, notice: 'Track was successfully removed.' }\n format.json { head :no_content }\n format.js ... | [
{
"docid": "8b19aee3fd29210a8b42aebb3bcbe5b9",
"score": "0.7834078",
"text": "def destroy\n @track = Track.find(params[:id])\n @track.destroy\n\n respond_to do |format|\n format.html { redirect_to tracks_url }\n format.json { head :no_content }\n end\n end",
"title": ""
},
... |
246d73937d7e15fed99917899f52bed7 | This is false by default for all error classes It means that all error classes will trigger failure handling unless they are specified in the blacklist | [
{
"docid": "133acecd58ad8835683c587dd2d77924",
"score": "0.63501036",
"text": "def error_in_blacklist?(error, exception_blacklist)\n return false if (exception_blacklist || []).empty?\n exception_blacklist.include?(error)\n end",
"title": ""
}
] | [
{
"docid": "9ee55f3724cc2db966d0f09c28762e93",
"score": "0.66861415",
"text": "def ignore?\n ignored_class_names.include?(error_class) ||\n ignore_by_filters.any? {|filter| filter.call(self) }\n end",
"title": ""
},
{
"docid": "f20f7ed7a92ddad026fc803e8e653cb6",
"score": "... |
c067487cf5b5d4bd68c409d2bf78aaa1 | Returns the directory to be used when reading yml files | [
{
"docid": "c9154f0c495cacbfad341a35a1b7a8d6",
"score": "0.78794104",
"text": "def yml_directory\n return @yml_directory if @yml_directory\n return default_directory if self.respond_to? :default_directory\n nil\n end",
"title": ""
}
] | [
{
"docid": "175eda5f272b861a5e4045f54cf44bcc",
"score": "0.78572947",
"text": "def yaml_dir\n 'config/'\n end",
"title": ""
},
{
"docid": "ed8ea2d119e50fc4a1d447008bfe5163",
"score": "0.78072363",
"text": "def yml_directory\n return @yml_directory if @yml_directory... |
d6b621a7cd017df0fc3ab7d38f1f5bed | Get the current timeline for the campaign | [
{
"docid": "d57b7fdbb599947d8de3150145de6e25",
"score": "0.58040893",
"text": "def get_campaign_timeline\n @campaign = Campaign.find(params[:id])\n rounds=@campaign.rounds.limit(100).order(\"created_at DESC\")\n data = []\n rounds.each do |round|\n data << round.to_json\n end\n re... | [
{
"docid": "6c89f56c424253fdcd87293d3215b843",
"score": "0.69775534",
"text": "def timeline\n\t\t@timeline_api ||= Glass::Api::Timeline.new(self)\n\tend",
"title": ""
},
{
"docid": "f5523c7c28c3eeedf6b79cd11ff8164e",
"score": "0.68341774",
"text": "def campaign_timeline_path(campaign... |
6834857aefe5d76378af62541bed4318 | Enable connection source This will make it so the specified source will be able to be synchronized. | [
{
"docid": "32f827ba7f188ece1f9718d8840c4eba",
"score": "0.0",
"text": "def connections_id_connection_sources_id_source_post(id_connection, id_source, opts = {})\n data, _status_code, _headers = connections_id_connection_sources_id_source_post_with_http_info(id_connection, id_source, opts)\n d... | [
{
"docid": "c136e5b1b2f686094639929457cc53d0",
"score": "0.6218745",
"text": "def lock_source(source)\n @source_info ||= source\n self\n end",
"title": ""
},
{
"docid": "fe41ba1a5fe2b7fcbd859543821282fe",
"score": "0.5904874",
"text": "def set_source\n @source = Sou... |
ffd054f3d80c28217a8bc71ccca03d0f | string:: String Return salted checksum of string | [
{
"docid": "2d2f7d13044d8eca7dfd5f332c668040",
"score": "0.7998352",
"text": "def checksum(string)\n Digest::SHA512.hexdigest([SALTER, string].join(SALTER_JOINER))\n end",
"title": ""
}
] | [
{
"docid": "5bca3b8ad4613ca8cd3defa4e3d2b36a",
"score": "0.7769607",
"text": "def digest(string, options = {})\n salt = options[:salt] || SecureRandom.base64\n Digest::SHA1.hexdigest(\"#{salt}--#{string}\")\n end",
"title": ""
},
{
"docid": "cda162d33d3e1a04911c795df829c50f",
... |
247d187303298f5447ea822c05eb7a8a | Trim end of alignment if mismatch is in the last 2 bp, likely to be a mapping error. array Array of Integers from mapping with breakpoint_downstream or breakpoint_upstream methods. mm Number of allowed mismatches. Return integer of trimmed alignment array. | [
{
"docid": "339507a278418d35fd92c3df5ad8aba9",
"score": "0.6916643",
"text": "def trim(array, mm)\n\t\tarray[-8..-1].count(0) == 0 ? array.length : 0\n\t\tarray = array[0..-3] if array[-2..-1] == [0,1] && mm == 1\n\t\tarray = array[0..-2] if array[-1] == 0 && mm == 1\n\t\tarray[-8..-1].count(0) == 0 ? a... | [
{
"docid": "1412137392acac7a124c54f41410fce1",
"score": "0.67133075",
"text": "def trim(array, mm)\n\t\tarray = array[0..-3] if array[-2..-1] == [0,1] && mm == 1\n\t\tarray = array[0..-2] if array[-1] == 0 && mm == 1\n\t\tarray.length\n\tend",
"title": ""
},
{
"docid": "f7ce49ba293046086f574... |
152033616d4fb958bb667969387091fe | Returns the name of the given branch if it was local 'foo' > 'foo' 'origin/foo' > 'foo' 'upstream/foo' > 'foo' | [
{
"docid": "5cc6c31d3eae35804ece014a697e2239",
"score": "0.7482372",
"text": "def local_branch_name branch_name\n branch_name.sub(%r{.+/}, '')\nend",
"title": ""
}
] | [
{
"docid": "b2361b34d8e311373b232fe855a4277d",
"score": "0.80908215",
"text": "def branch_name_for_location location, branch\n case location\n when 'local', 'coworker' then branch\n when 'remote' then \"origin/#{branch}\"\n when 'upstream' then \"upstream/#{branch}\"\n else fail \"Unknown location:... |
717b04a3f33bcb7e499fe319383b1f73 | Gets the accessPackagesIncompatibleWith property value. The access packages that are incompatible with this package. Readonly. | [
{
"docid": "ac28f240a97e07cd227e3282406a404f",
"score": "0.8007156",
"text": "def access_packages_incompatible_with\n return @access_packages_incompatible_with\n end",
"title": ""
}
] | [
{
"docid": "a030063dc44c6e3fbeb08c0c058e4569",
"score": "0.7631609",
"text": "def incompatible_access_packages\n return @incompatible_access_packages\n end",
"title": ""
},
{
"docid": "dc8f517ae4a70c3bd07e64e256819cff",
"score": "0.7615549",
"text": "def acc... |
1c89b9375182d84e82508a3c612731a7 | DELETE /matchups/1 DELETE /matchups/1.json | [
{
"docid": "2b6f9009580d549a023b9e0bc4f59cc1",
"score": "0.78263074",
"text": "def destroy\n @matchup = Matchup.find(params[:id])\n @matchup.destroy\n\n respond_to do |format|\n format.html { redirect_to matchups_url }\n format.json { head :no_content }\n end\n end",
"title": ... | [
{
"docid": "1af07d7a6a9bdfcf2232fe933a7d0185",
"score": "0.7818995",
"text": "def destroy\n @matchup.destroy\n respond_to do |format|\n format.html { redirect_to matchups_url }\n format.json { head :no_content }\n end\n end",
"title": ""
},
{
"docid": "d4fd8393248197ce63f... |
312a4b8fbbc1e0b27436f2b132d6f05f | To create destroy a file | [
{
"docid": "357f76062ece1167d6555c1e80b38eac",
"score": "0.0",
"text": "def destroy\n find_user\n if !@user.nil?\n if (!@file.nil? and (@user.privilige==\"Admin\" or (!current_user.nil? and @user.id==@file.user_id) or (!current_member.nil? and @user.id==@file.member_id)))\n storage1=@f... | [
{
"docid": "b52863f2d35b45ee18de55d737356948",
"score": "0.80168235",
"text": "def destroy\n destroy_file\n end",
"title": ""
},
{
"docid": "014ada997f7eb9fa60c04db47307745a",
"score": "0.7860689",
"text": "def destroy_file\n FileUtils.rm full_filename rescue nil... |
c5ddb400df79aa7baf81b1085bfc7c28 | find User from database,which we have selected, find user rolewise, and perform authorization | [
{
"docid": "f52205fb5b4124edbdcf7e79d2928fcb",
"score": "0.79757494",
"text": "def select\n @users ||= User.role_wise_users(params[:user][:role])\n authorize! :read, @user\n end",
"title": ""
}
] | [
{
"docid": "884ede9cda0b1b205e0f15be909c0a16",
"score": "0.7256359",
"text": "def index\n authorize Admin\n @admins = User.find_by_sql([\"select * from users where role = ?\",2])\n end",
"title": ""
},
{
"docid": "4cb4f765475ff633c90761f26d1d2f57",
"score": "0.68717915",
"text... |
e561e11bcf379ef5dc139c210017366b | Only allow a list of trusted parameters through. | [
{
"docid": "23e2e95c3eb62959eb702790b374ca24",
"score": "0.0",
"text": "def admin_classroom_params\n params.fetch(:classroom, {}).permit(\n :name,\n :description,\n :city,\n :school_name,\n :school_type,\n :grade\n )\n end",
"title": ""
}
] | [
{
"docid": "c1f317213d917a1e3cfa584197f82e6c",
"score": "0.69497335",
"text": "def allowed_params\n ALLOWED_PARAMS\n end",
"title": ""
},
{
"docid": "e662f0574b56baff056c6fc4d8aa1f47",
"score": "0.6812623",
"text": "def strong_params\n params.require(:listing_member).permi... |
6cba6cd69f620cdbe04850b2a35f7b32 | Given an array of numbers, return an array of those numbers that have at least n factors (including 1 and the number itself as factors). at_least_n_factors([1, 3, 10, 16], 5) => [16] because 16 has five factors (1, 2, 4, 8, 16) and the others have fewer than five factors. Consider writing a helper method num_factors | [
{
"docid": "93691e8af46084e9cd5e20adfcad5e2d",
"score": "0.85922927",
"text": "def at_least_n_factors(numbers, n)\n numbers.select { |num| factors(num) >= n }\nend",
"title": ""
}
] | [
{
"docid": "7392c9d8ff7b7e9a3b576acb3a3b1dd4",
"score": "0.88443404",
"text": "def at_least_n_factors(numbers, n)\n n_factors = Array.new\n numbers.each do |num|\n list_of_factors = num_factors(num)\n if list_of_factors.length >= n\n n_factors << num\n end\n end\n n_factors\nend",
... |
cebbca5de230538aac402a8067eceb57 | Dump a Numeric as data that can be read into an "int" in C. | [
{
"docid": "655080db0452854fd991487b87b10c2e",
"score": "0.71063596",
"text": "def dump_as_c_int(i)\r\n [i].pack('l')\r\nend",
"title": ""
}
] | [
{
"docid": "ebf6395a40c6817448aa974692dd7cb6",
"score": "0.6883807",
"text": "def dump_integer(i)\n i.to_s\n end",
"title": ""
},
{
"docid": "ebf6395a40c6817448aa974692dd7cb6",
"score": "0.6883807",
"text": "def dump_integer(i)\n i.to_s\n end",
"title": ""... |
72415975acd5a7edc3ee5b543fa9acca | Changes active company for user if provided | [
{
"docid": "def7cb94e2aeab49c03e867f4ed2d560",
"score": "0.7656366",
"text": "def set_active_company\n return if !current_user\n\n if current_user.active_company\n @active_company = current_user.active_company\n elsif !['/logout', '/users/complete_registration'].include? request.path\n ... | [
{
"docid": "6b7e1e147f72a4fe3f69763bcb496edb",
"score": "0.7519767",
"text": "def set_user_company\n @user_company = current_company.user_companies.find(params[:id])\n end",
"title": ""
},
{
"docid": "484ebe4a95f26664d1bd9c3b895bfb5d",
"score": "0.74944454",
"text": "def set_... |
33241ebfbeef91a6b5bf0244480e116a | Fits the functional form: a + bx. Takes x and y values and returns [a, b, r^2]. See: | [
{
"docid": "b70e392ef7948c89f0e805ebc4bd3409",
"score": "0.0",
"text": "def fit_linear xs, ys\n n = xs.size\n xys = xs.zip(ys)\n sx = sigma xs\n sy = sigma ys\n sx2 = sigma(xs) { |x| x ** 2 }\n sxy = sigma(xys) { |x,y| x * y }\n \n c = n * sx... | [
{
"docid": "b471750c87f0556325466f16adcbe71e",
"score": "0.7047688",
"text": "def sum2d\n x + y\n end",
"title": ""
},
{
"docid": "396dff75204b5d8185b13499323b6f38",
"score": "0.66992134",
"text": "def coordinate_add(a, b)\n [a[0] + b[0], a[1] + b[1]]\nend",
"title": ""
},... |
459aee453acf8197e1a25c9f28b0dca4 | Returns key if key exists | [
{
"docid": "7c2f29b86b7798cda32fb5a519113a49",
"score": "0.0",
"text": "def to_key\n\t\tpersisted? ? [id] : nil\n\tend",
"title": ""
}
] | [
{
"docid": "60a67fed3d38101e66450a9c97d5d24d",
"score": "0.7428812",
"text": "def has_key(key); end",
"title": ""
},
{
"docid": "b7a213ad8f771c28372148bcf0d87f14",
"score": "0.7426696",
"text": "def has_key?(key); end",
"title": ""
},
{
"docid": "b7a213ad8f771c28372148bcf... |
0fdbc3dfd170dec2a615a143317719ca | Update a load balancer virtual server Update a load balancer virtual server. | [
{
"docid": "673b42b7e8845d33035a7606d736a814",
"score": "0.69923145",
"text": "def update_load_balancer_virtual_server(virtual_server_id, lb_virtual_server, opts = {})\n data, _status_code, _headers = update_load_balancer_virtual_server_with_http_info(virtual_server_id, lb_virtual_server, opts)\n ... | [
{
"docid": "9f13e93eb4fb4d3503d812fc2d1dfaff",
"score": "0.7153866",
"text": "def update\n @server = Server.find(params[:id])\n \n if @server.update_attributes(params[:server])\n @errors = false\n if @server.server_type == 3\n if @server.load_balancer\n @server.load_bala... |
309b945b4aafdbd8b7884ee625b8ff7f | Generate a twodimensional data set consisting of an inner circle and an outer circle. | [
{
"docid": "9550c95ae6fdaff3d0250aae1cb3ea9a",
"score": "0.4831178",
"text": "def make_circles(n_samples, shuffle: true, noise: nil, factor: 0.8, random_seed: nil)\n # initialize some variables.\n rs = random_seed\n rs ||= srand\n rng = Random.new(rs)\n n_samples_out =... | [
{
"docid": "81ae51d29cb3e34e31f206de3e64f21d",
"score": "0.61344784",
"text": "def drawConcentricCircles(cx,cy,r,rings,col1,col2)\n i = r/rings\n rings.times do |n|\n setFill( n%2 == 0 ? col1 : col2) \n drawCircle(cx,cy,r)\n r -= i\n end\nend",
"title": ""
},
{
"docid": "67de9a5e... |
ec879684aad9272ccc4230b1e0565d00 | sum of the two largest elements in array | [
{
"docid": "76b35ab66c575931c49bbe2e7029a2c5",
"score": "0.75879717",
"text": "def max_2_sum arr\n max_2_sum = 0 \n max_num = 0\n second_num = 0\n if arr.length == 0 \n \treturn max_2_sum\n elsif arr.length ==1\n \treturn arr[0]\n else \n\t second_num = arr.sort[-2]\t\n\t max_num = arr.sort[-1... | [
{
"docid": "a9006c1c75463e6ed1e351b4b0d54aed",
"score": "0.843138",
"text": "def max_2_sum(array)\n sum(array.sort.reverse[0,2])\nend",
"title": ""
},
{
"docid": "596b819fe32c72bbbc78e243c050b5fc",
"score": "0.8348989",
"text": "def max_2_sum(array)\n sum(array.sort.last(2))\nend... |
e9a8b362a5b70ce68b1d5f3c1a4cc36d | GET /scheduled_appointments/new GET /scheduled_appointments/new.json | [
{
"docid": "2c96c5b046110ac60e3ee08de302c19d",
"score": "0.7401323",
"text": "def new\n @scheduled_appointment = ScheduledAppointment.new\n prepFormVariables(@scheduled_appointment)\n\n respond_to do |format|\n format.html # new.html.erb\n format.json { render ... | [
{
"docid": "8b351290fc4b9ab179e1057dc045afb9",
"score": "0.744222",
"text": "def new\n @appointment = Appointment.new\n\n respond_to do |format|\n format.html # new.html.erb\n format.json { render json: @appointment }\n end\n end",
"title": ""
},
{
"docid": "8b351290fc4b9... |
fce37ec75a82f232be89008409d0ae66 | Results are to a Hash | [
{
"docid": "2f8e76376e33d3b0913a13e2ec65e1af",
"score": "0.0",
"text": "def to_clean_results(data)\n data.each do |element| \n title = element.text.strip \n @@results[title] = element[:href]\n end\n end",
"title": ""
}
] | [
{
"docid": "0f5c3435cc13b26e921eb451ef3d23d8",
"score": "0.86794",
"text": "def results_as_hash; end",
"title": ""
},
{
"docid": "09d20db429f65c8d286740c75de41feb",
"score": "0.8042194",
"text": "def results_as_hash=(_arg0); end",
"title": ""
},
{
"docid": "d0d39e0bb0baaf... |
46741e0a5a7b60de5445e7d47175c4b5 | calculation of total field count for the claim_level, insurance and simplified patpay grid. | [
{
"docid": "60a5de11a103bd6ad56c2514dd45ec36",
"score": "0.72960657",
"text": "def get_total_eob_field_count(check_information, payer, insurance_eob)\r\n logger.debug \"Calculating field count in DC Grid for EOB ID : #{insurance_eob.id}\"\r\n total_eob_fields = 0\r\n eob_type = 'eob'\r\n is_... | [
{
"docid": "eeaee85587fd556d3ead90d57a4a4a30",
"score": "0.71169955",
"text": "def get_total_nextgen_field_count(check_information, patpay_eob)\r\n total_nextgen_fields = 0\r\n eob_type = 'nextgen'\r\n # Calculating processor_input_field_count for nextgen eob\r\n # using the model leve... |
db2334133a8396695e87be3be202d2ad | === workcode_icon Gets workcode icon. return:: Workcode icon. | [
{
"docid": "a613bb74bbf79742a8bb314bfd0289d4",
"score": "0.89105594",
"text": "def workcode_icon\n return WKCODE_ICONS[self.workcode]\n end",
"title": ""
}
] | [
{
"docid": "3d792f2c58aea3225d656a37ae07bbcc",
"score": "0.7307396",
"text": "def get_icon\n return @m_icon\n end",
"title": ""
},
{
"docid": "3d792f2c58aea3225d656a37ae07bbcc",
"score": "0.7307396",
"text": "def get_icon\n return @m_icon\n end",
"... |
8a7a1a50bc046e3bc82a7f4a8f83f0d6 | Column Mixins Set +columns() on any column element, even nested ones. The first agument [required] is the number of columns to span. The second argument is the context (columns spanned by parent). Context is required on any nested elements. Context MUST NOT be declared on a toplevel element. By default a grid_column is... | [
{
"docid": "c66e03c7d588934689bef24386371550",
"score": "0.63922966",
"text": "def columns(n, context=0, from=g_from_direction)\n to = opposite_position(from)\n\n # the column is floated left\n float(from)\n \n mixin({\n # the width of the column is set as a percentage of... | [
{
"docid": "3aa058e43a27d569bebc5d2d1093a3a3",
"score": "0.6277847",
"text": "def column(*args,&block)\n columns.column(*args, &block)\n end",
"title": ""
},
{
"docid": "9ce61cbf28f99709d44a1f8e1f1ef83f",
"score": "0.60863256",
"text": "def flex_column(*args, &block)\n ... |
9029879b351b5e2962c0bdce611c753c | GET /partitions/1 GET /partitions/1.json | [
{
"docid": "d5f331878b8546796d5089ded727f6c0",
"score": "0.0",
"text": "def show\n @chapter = @partition.chapter\n end",
"title": ""
}
] | [
{
"docid": "5a52f60116a477a11a74e21bae942388",
"score": "0.7332286",
"text": "def partitions\n @tropo_client.get(\"partitions\")\n end",
"title": ""
},
{
"docid": "a14c290c4986a1ab287f2963749ac5e1",
"score": "0.65975326",
"text": "def index\n @partitions = Partition.all\n end... |
c70fffdf12d341bcf1b29d000c3702df | GET /events/1 GET /events/1.json | [
{
"docid": "df721db38838316d4629530c6877bdf3",
"score": "0.0",
"text": "def show\n @event = Event.find(params[:id])\n\n respond_to do |format|\n format.html # show.html.erb\n format.json { render :json => @event }\n end\n end",
"title": ""
}
] | [
{
"docid": "2d5580b43c7c18bcd8a06713fa4be0f1",
"score": "0.75926495",
"text": "def show\n\t\tevent_id = params[:id]\n\t\tif event_id.present?\n\t\t\t@event = Com::Nbos::Events::Event.active_events.where(:id => event_id)\n\t\t\trender :json => @event\n\t\telse\n\t\t\trender :json => {status: 400, message... |
2bd5e0d42354ac1015cda25a030c9120 | (This method is generated in Translator_defaultbuildImpl) | [
{
"docid": "4ae0dc8edd6eaf7e30169fc161afe010",
"score": "0.0",
"text": "def get_network_mask_len\n return @m_network_mask_len\n end",
"title": ""
}
] | [
{
"docid": "ff75a0cca84995bb03ba5f9692b7b225",
"score": "0.6882901",
"text": "def translation_target\n super\n end",
"title": ""
},
{
"docid": "d79f297ba3bdcf1af117c5690350a637",
"score": "0.653592",
"text": "def build; end",
"title": ""
},
{
"docid": "335961c3583... |
22983244bb46fe423c0c65cc3d1f63a6 | and then displays the result. Furthermore, insist that one of the integers be positive, and one negative; however, the order in which the two integers are entered does not matter. Do not check for positive/negative requirement until after both integers are entered, and start over if the requirement is not met. | [
{
"docid": "0db4675cc99635e451cd95cbd83ed21c",
"score": "0.0",
"text": "def valid_number?(number_string)\n number_string.to_i.to_s == number_string\nend",
"title": ""
}
] | [
{
"docid": "686597b155399a761f34c47a13fe4f29",
"score": "0.67393124",
"text": "def num_enteros(num1, num2)\n if (num1 % 2).zero? && (num2 % 2).zero?\n puts \"#{num1} y #{num2} Par\"\n elsif (num1 % 2).zero?\n puts \"#{num1} Par\"\n elsif (num2 % 2).zero?\n puts \"#{num2} Par\"\n end\nend",
... |
943a48a6d8c72060fc1ca6dde8ad09d3 | GET /authors GET /authors.json | [
{
"docid": "938951d55ad1831c9c2331a33ed8b14a",
"score": "0.0",
"text": "def index\n @authors = Author.order(\"id DESC\").all\n\n \n end",
"title": ""
}
] | [
{
"docid": "12c8e63722bb6298e778d5fa94c05bf0",
"score": "0.84038615",
"text": "def get_authors\n return @client.raw(\"get\", \"/content/authors\")\n end",
"title": ""
},
{
"docid": "fd9233680b1918dd62aaa104ae237a9f",
"score": "0.7954681",
"text": "def show\n render json:... |
4cbdef0df869ecdf5f8b8d54b639751f | private Set component to collapse capable | [
{
"docid": "2caf1ff6ad13a6a682d27a7c8783eb83",
"score": "0.6771415",
"text": "def collapsible_trait\n options[:collapsible] = true\n end",
"title": ""
}
] | [
{
"docid": "c74ab3a6e7d5ad5d97c97ab28e21a0ff",
"score": "0.6357872",
"text": "def should_collapse?\n true\n end",
"title": ""
},
{
"docid": "92a7cf220eec0efc013135fbde6aec94",
"score": "0.6341446",
"text": "def is_collapsed=(value)\n @is_collapsed = value\n ... |
a0b0fe83ae2a3dc561642a26b2fc0908 | Create a new Source Creates a Source object | [
{
"docid": "b81c238147a461f9ff0f39ce9aeeeb02",
"score": "0.0",
"text": "def create_source_with_http_info(source, opts = {})\n if @api_client.config.debugging\n @api_client.config.logger.debug 'Calling API: DefaultApi.create_source ...'\n end\n # verify the required parameter 'sourc... | [
{
"docid": "b7e4d9e4ca06bbd533ba4c3d7c30ab3c",
"score": "0.81433624",
"text": "def new\n @source = Source.new\n end",
"title": ""
},
{
"docid": "bdd558be7f8615eed9069457a77215c4",
"score": "0.8053857",
"text": "def new\n @source = Source.new\n\n end",
"title": ""
},
{... |
a8d7d52b33a190aee08039f5093e7d40 | GET /casestudies/1 GET /casestudies/1.json | [
{
"docid": "c197d4c432b448549fe3e06e123f1517",
"score": "0.76850545",
"text": "def show\n @casestudy = Casestudy.find(params[:id])\n\n respond_to do |format|\n format.html # show.html.erb\n format.json { render json: @casestudy }\n end\n end",
"title": ""
}
] | [
{
"docid": "873d4253efccfdab2cf0a471e5ca15d0",
"score": "0.76138884",
"text": "def show\n @case_study = CaseStudy.find(params[:id])\n\n respond_to do |format|\n format.html # show.html.erb\n format.json { render json: @case_study }\n end\n end",
"title": ""
},
{
"docid": ... |
b78aa4f2cdce6c57cfb50292d310ac42 | fix exclusion of QT_NO_BEARER_MANAGEMENT in qcorewlanegine.mm patch do url ' sha1 '9aecfda8129afbe31c860cda4c6776e49264b8b4' end modify texture shader in WebCore to support core profile patch do url ' sha1 'a4f0f7aa83eb55eb5be151bf9305cf1bb773a7f0' end | [
{
"docid": "58656441d61640fef19cf3942924053f",
"score": "0.0",
"text": "def pour_bottle?\n return !build.devel?\n end",
"title": ""
}
] | [
{
"docid": "f71cc98dd22bd5b0ffcd1fb04650c5eb",
"score": "0.5509907",
"text": "def test_texture_edgecases\n Sketchup.active_model.start_operation \"test_texture_edgecases\"\n model = Sketchup.active_model\n material = model.materials[0]\n texture = material.texture\n assert_not_equal(nil,t... |
ec41f2ea748783562bad5ccafa6a34ad | Really destroy! the record. | [
{
"docid": "789900f375176c7ae88a43f4a971b164",
"score": "0.0",
"text": "def obliterate!\n destroy!( obliterate: true )\n end",
"title": ""
}
] | [
{
"docid": "7bc236d900e163ffae80ed52b7bb18bc",
"score": "0.8399889",
"text": "def destroy!\n destroy || raise(RecordNotDestroyed.new(\"Failed to destroy the record\", self))\n end",
"title": ""
},
{
"docid": "e9382a9235e41851fa55e4c657959606",
"score": "0.8319292",
"text": "d... |
08b3f8bdba316713473bd9da835f05d0 | Use callbacks to share common setup or constraints between actions. def set_cart | [
{
"docid": "93456caf10826892cdd5d522c823a4a9",
"score": "0.0",
"text": "def cart_params\n params.fetch(:cart, {})\n end",
"title": ""
}
] | [
{
"docid": "0c1983768b866027660f82015726602c",
"score": "0.745547",
"text": "def set_cart\n @cart = params[:cart]\n end",
"title": ""
},
{
"docid": "fa7c58e355b8ea7ec98e57f501f0fcfc",
"score": "0.7164138",
"text": "def set_cart\n @cart = @current_user.cart\n end",
"ti... |
2dd235968479a3b436dd4d861cfc17a0 | Inserts a middleware after the given index or middleware object. | [
{
"docid": "bf22e79658a818d45c822a0c50696b53",
"score": "0.80836797",
"text": "def insert_after(idx_or_item, middleware, *args, **keywords, &block)\n if idx_or_item.is_a?(Integer)\n index = idx_or_item\n else\n index = self.index(idx_or_item)\n end\n\n raise... | [
{
"docid": "cbb59f16d7b16f3ac203b83eed431707",
"score": "0.87669134",
"text": "def insert_after(index, middleware, *args, &block)\n index = self.index(index) unless index.is_a? Integer\n raise \"no such middleware to insert after: #{index.inspect}\" unless index\n insert index + 1, middle... |
f74c29bdfc4a183e1ec1b91334cd5be2 | Use callbacks to share common setup or constraints between actions. | [
{
"docid": "d636a6f7ec02416b5f57b8deaae1def6",
"score": "0.0",
"text": "def set_channel\n @channel = Channel.find(params[:id])\n end",
"title": ""
}
] | [
{
"docid": "bd89022716e537628dd314fd23858181",
"score": "0.61637366",
"text": "def set_required_actions\n # TODO: check what fields change to asign required fields\n end",
"title": ""
},
{
"docid": "3db61e749c16d53a52f73ba0492108e9",
"score": "0.60446453",
"text": "def action_hoo... |
f74c29bdfc4a183e1ec1b91334cd5be2 | Use callbacks to share common setup or constraints between actions. | [
{
"docid": "efbb7b2836959a20f26d0d96c575f564",
"score": "0.0",
"text": "def set_scheduled_access\n @scheduled_access = ScheduledAccess.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... |
49da1f866ad149ad8015b219e795e3d7 | Custom attribute writer method with validation | [
{
"docid": "183874b54b1c33ab63800728dbae0362",
"score": "0.0",
"text": "def privacy_policy_url=(privacy_policy_url)\n if !privacy_policy_url.nil? && privacy_policy_url.to_s.length > 128\n fail ArgumentError, 'invalid value for \"privacy_policy_url\", the character length must be smaller than... | [
{
"docid": "5a0bcdaca95c21b13aacca36f9fad742",
"score": "0.6955513",
"text": "def _write_attribute(attr_name, value); end",
"title": ""
},
{
"docid": "5812dd7a37c0eccc3d9481c23d74c649",
"score": "0.69278884",
"text": "def write_attribute(attr_name, value); end",
"title": ""
},
... |
ec66bf7e9754e63941ac3d1a60f19ec6 | keep AS IS during upgrade. discuss upgrade to core that would put the date expression for "structured" dates in altrender, not in a sibling date record that is unlinked. | [
{
"docid": "021c9d651286111836e9367ecf4417c4",
"score": "0.55544776",
"text": "def serialize_dates(obj, xml, fragments)\n add_unitdate = Proc.new do |value, context, fragments, atts={}|\n context.unitdate(atts) {\n sanitize_mixed_content( value, context, fragments )\n }\n end\n\n ... | [
{
"docid": "2cec9373cce8510c34afd61ef98eefe6",
"score": "0.60452473",
"text": "def create_structured_date_for_expr(r, rel)\n role_id_begin = get_enum_value_id(\"date_role\", \"begin\")\n type_id_single = get_enum_value_id(\"date_type_structured\", \"single\")\n\n l = self[:structured_date_label].inse... |
a2099a77c85e91272ae2f9e35b937953 | Only allow a trusted parameter "white list" through. | [
{
"docid": "c4f2282ff38a0da131a2527f4515dd0e",
"score": "0.0",
"text": "def validation_test_params\n params.require(:validation_test).permit(:title, :status, :description, :r_id)\n end",
"title": ""
}
] | [
{
"docid": "3663f9efd3f3bbf73f4830949ab0522b",
"score": "0.79438007",
"text": "def whitelisted_params\n super\n end",
"title": ""
},
{
"docid": "f6060519cb0c56a439976f0c978690db",
"score": "0.6958792",
"text": "def permitted_params\n params.permit!\n end",
"title"... |
63b1cbdcca5b55ae31958307f5d5294d | Check whether the isc_debug parameter has been set. If so, create a variable to track it. This could used by the layout to include the "source" javascript rather than the compressed, minified etc. versions. Controllers could also use it for other purposes. | [
{
"docid": "0c44f36b7e7ab3186dbb2a2dc13314bc",
"score": "0.7362081",
"text": "def check_isc_debug\n @isc_debug = params.delete(:isc_debug)\n true\n end",
"title": ""
}
] | [
{
"docid": "fda45ed25fc1a50028aaff810d794576",
"score": "0.6856063",
"text": "def is_debug\n @debug\n end",
"title": ""
},
{
"docid": "60048fb32bc8a2c48749411924b6f2cb",
"score": "0.6808116",
"text": "def request_debug_assets?; end",
"title": ""
},
{
"docid": "101... |
743c574e5e39da7b9377d9c41557ba20 | Method to make sure that the passowrd complexity is correct | [
{
"docid": "95767d115bf847f645705870647caaa0",
"score": "0.0",
"text": "def password_complexity\n if password.present? and not password.match(/^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d).+/)\n errors.add :password, \"must include at least one lowercase letter, one uppercase letter, and one digit\"\n end... | [
{
"docid": "738da8e84e8655518dcfec1f6681de8e",
"score": "0.6296033",
"text": "def verify_depth(*) end",
"title": ""
},
{
"docid": "1fd441c3e8a52e99409201f34d1a552e",
"score": "0.6088544",
"text": "def test\n test_arr = []\n (1..100).each do\n test_arr << rand(10**50-1)\n end\n ... |
16bc96e9c251e0b66f6a5189006609cc | Public: Add a matcher or wrapper class to this analyzer. klass a subclass of either Dat::Analysis::Matcher or Dat::Analysis::Result to be registered with this analyzer. Returns the list of known matchers and wrappers for this analyzer. | [
{
"docid": "983df7d49297b502e4009dd538ccf83f",
"score": "0.643743",
"text": "def add(klass)\n klass.add_to_analyzer(self)\n end",
"title": ""
}
] | [
{
"docid": "dc54f1e48f85af0ed4d2ebda848a8156",
"score": "0.68894243",
"text": "def add_matcher(matcher_class)\n puts \"Loading matcher class [#{matcher_class}]\"\n registry.add matcher_class\n end",
"title": ""
},
{
"docid": "eb1121afd9b1543d3f0fa322f7b9a775",
"score": "0.66... |
12f8cc39b3f267dbbd463a5e3d35e851 | true if path begins at the destination | [
{
"docid": "d7e65c1a3ef11be73c897e59e0bd123f",
"score": "0.0",
"text": "def cycle?\n first.hash == last.hash\n end",
"title": ""
}
] | [
{
"docid": "6a7acb26cefd28b23f66a75e3e140074",
"score": "0.68765754",
"text": "def descends_from?(prefix, path)\n path = to_path path\n basepath = prefix.to_s + File::SEPARATOR\n path.cleanpath.to_s.starts_with? basepath\n end",
"title": ""
},
{
"docid": "828400c8e9061a9199... |
9b0757d2a60172e83465c1f76bd8265e | GET method to get a product by id | [
{
"docid": "42e2aa5226f85e251197e1019247743a",
"score": "0.0",
"text": "def show\n render :json => {:code => \"400\", :status => \"Error\", :message => \"Action not supported.\" }\n end",
"title": ""
}
] | [
{
"docid": "3198cea10920db88179807ceb8808e61",
"score": "0.9059991",
"text": "def product(id)\n get \"products/#{id}\"\n end",
"title": ""
},
{
"docid": "43919ddbaf1bf4e81003f0a0908d9a07",
"score": "0.8742492",
"text": "def product(id, options = {})\n get \"product... |
c657de4b70d266e9a3a784b999ea9e60 | Never trust parameters from the scary internet, only allow the white list through. | [
{
"docid": "970beb688024eec2cbf305ec8d21aa48",
"score": "0.0",
"text": "def patient_params\n params.require(:patient).permit(:patient_id, :clinic_type)\n end",
"title": ""
}
] | [
{
"docid": "3663f9efd3f3bbf73f4830949ab0522b",
"score": "0.7496729",
"text": "def whitelisted_params\n super\n end",
"title": ""
},
{
"docid": "13a61145b00345517e33319a34f7d385",
"score": "0.6958585",
"text": "def strong_params\n params.require(:request).permit(param_white... |
c0ad749daceb71be3cd2302c4ae3d404 | Returns a string representation of the component | [
{
"docid": "79ca1af910d918f157e05eaed84eb94b",
"score": "0.0",
"text": "def to_s\n \"Name: #{@name}\"\n end",
"title": ""
}
] | [
{
"docid": "98fa33ed15e5f9b235b0a8e991f66cfb",
"score": "0.82379895",
"text": "def to_s\n \"Component '#{name}' #{id}\"\n end",
"title": ""
},
{
"docid": "404ab7f35e39930cd05d893ba82cdc62",
"score": "0.76293397",
"text": "def inspect\n\t\treturn %{#<%s:0x%0x (%s)>} % [\n\t\t\... |
f832f8c2abd8044d8f1bec835334e6a4 | DELETE /city_maps/1 DELETE /city_maps/1.json | [
{
"docid": "af340ed60d32bd9685cf4e313230a291",
"score": "0.77273935",
"text": "def destroy\n @city_map = CityMap.find(params[:id])\n @city_map.destroy\n\n respond_to do |format|\n format.html { redirect_to city_maps_url }\n format.json { head :ok }\n end\n end",
"title": ""
... | [
{
"docid": "1fdc0aa11d29155e2f73fb83f4ee036d",
"score": "0.732366",
"text": "def destroy\n @my_map.destroy\n respond_to do |format|\n format.html { redirect_to my_maps_url }\n format.json { head :no_content }\n end\n end",
"title": ""
},
{
"docid": "50333f0f9a2d874b7d24fb... |
780ad626c327217c8138d6ceb13ac563 | Asserts that the option value is not `nil`. Shows usage and exists if `nil`. | [
{
"docid": "2743b050ed1577ed6296a024a9740de3",
"score": "0.76902217",
"text": "def option_assert(option, msg)\n return unless option.nil?\n show_usage\n die(msg)\n end",
"title": ""
}
] | [
{
"docid": "9ae388ae0d6906b278540b7109e5ab5d",
"score": "0.71297467",
"text": "def could_be_nil?\n @opts[:nil]\n end",
"title": ""
},
{
"docid": "13ba599984c67f18856a86f93de6efd6",
"score": "0.70456916",
"text": "def test_options_immutable\n assert_not_nil(@opts)\n asse... |
a513e30098f26aff9d733506d1b26fd5 | Get vApp port forwarding rules vappid: id of the vApp | [
{
"docid": "73d1ba3a42791501e7cad0d25c3fc5e5",
"score": "0.7639953",
"text": "def get_vapp_port_forwarding_rules(vAppId)\n params = {\n 'method' => :get,\n 'command' => \"/vApp/vapp-#{vAppId}/networkConfigSection\"\n }\n\n response, headers = send_request(params)\n\n # ... | [
{
"docid": "ccaf4ff88eb27fefb7603772e27a891f",
"score": "0.8716062",
"text": "def get_vapp_port_forwarding_rules(vapp_id)\n end",
"title": ""
},
{
"docid": "dcab66ffb15c5dcc96738d5a8e76c136",
"score": "0.7827713",
"text": "def get_vapp_port_forwarding_rules(vapp_id)\n ... |
c8b56c22262dd6bd89eef7a043c163ef | GET /owner_infos GET /owner_infos.json | [
{
"docid": "46a04ad47c47fc7f97e5dbbe77602408",
"score": "0.7799",
"text": "def index\n @owner_infos = OwnerInfo.all\n end",
"title": ""
}
] | [
{
"docid": "828d9816aa94b7469ae92202dce0876a",
"score": "0.7702749",
"text": "def owners\n api_path = '/users'\n @resp = self.class.get(api_path, default_request_data)\n resp_parsing\n end",
"title": ""
},
{
"docid": "edf80b234865d3017e3e85800a246863",
"score": "0.7670593",
... |
493c51b317d9863546a08cfb84e7028f | Force required +post+ params for +create+ | [
{
"docid": "03fb5c238d4f82ad7011f7395897acd9",
"score": "0.6227122",
"text": "def create_post_params\n params.require(:post).permit(:title, :content)\n end",
"title": ""
}
] | [
{
"docid": "698a581e33be71ecc5181078e31fc33c",
"score": "0.74035406",
"text": "def do_create\n post :create, post: valid_params\n end",
"title": ""
},
{
"docid": "26a0acde21c878363da3a4bc68209708",
"score": "0.7091377",
"text": "def create\n json_create_and_sanitize(post_param... |
620931acfd1a89a00e1482378541e55f | Outputs nonarray value in the form of hash For object, use to_hash. Otherwise, just return the value | [
{
"docid": "25a8636255f6e4c5e0c6eac38d3fe98c",
"score": "0.0",
"text": "def _to_hash(value)\n if value.is_a?(Array)\n value.compact.map { |v| _to_hash(v) }\n elsif value.is_a?(Hash)\n {}.tap do |hash|\n value.each { |k, v| hash[k] = _to_hash(v) }\n end\n elsi... | [
{
"docid": "a34f3dad821ba9744bc8d807b65489ad",
"score": "0.6719518",
"text": "def hash\n [value].hash\n end",
"title": ""
},
{
"docid": "a34f3dad821ba9744bc8d807b65489ad",
"score": "0.6719518",
"text": "def hash\n [value].hash\n end",
"title": ""
},
{
"doc... |
3bb7c65a4358b58c4076a8df2d670e0e | login handles the auth, but we just need the SetCookie header from that call. | [
{
"docid": "4cd2e7e7c6548b535bfd8d6d3caa4de1",
"score": "0.8079215",
"text": "def do_login\n @login_results = login\n @cookie = @login_results.headers['Set-Cookie']\n end",
"title": ""
}
] | [
{
"docid": "b262765ef246cbafa008b7951fcf8995",
"score": "0.82083917",
"text": "def do_login\n @login_results = login\n @cookie = @login_results.headers['Set-Cookie'] || @login_results.headers['set-cookie']\n end",
"title": ""
},
{
"docid": "8dcd5eb7fc631e057755b08b1e... |
da74f708beebc84962e1c6f99e91f983 | GET /campaigns GET /campaigns.json | [
{
"docid": "f2b5b3a627911c6a57867b7df85ec788",
"score": "0.5963951",
"text": "def index\n @campaigns = Campaign.by_user_plan_and_tenant(@tenant.id, current_user).order(sort_column + \" \" + sort_direction).paginate(:page => params[:page], :per_page => 5)\n @campaign = Campaign.new\n end",
"ti... | [
{
"docid": "a07d97b587d179cf30f78b3c8aac480a",
"score": "0.83348304",
"text": "def campaigns(options={})\n response = connection.get do |req|\n \treq.url \"campaigns\", options\n end\n return_error_or_body(response)\n \tend",
"title": ""
},
{
"docid": "2298b9d22072717bfa... |
c78c17233cb7f59db5b49964a0897f3e | POST /premios POST /premios.json | [
{
"docid": "23b1aa65f2102f19d4bcbdf7fab27544",
"score": "0.4663728",
"text": "def create\n @premio = Premio.new(params[:premio])\n\n respond_to do |format|\n if @premio.save\n format.html { redirect_to @premio, :notice => 'Premio was successfully created.' }\n format.json { rend... | [
{
"docid": "c9a9a71d3599fd49f9c296fd4d0e773e",
"score": "0.5034111",
"text": "def cooked!\n Vedeu.log(\"Configuration::API terminal_mode: :cooked\")\n\n options[:terminal_mode] = :cooked\n end",
"title": ""
},
{
"docid": "cd04ac025adb8d9fb40d42b3d81aacfc",
"score": "0.... |