query_id stringlengths 32 32 | query stringlengths 7 6.75k | positive_passages listlengths 1 1 | negative_passages listlengths 88 101 |
|---|---|---|---|
2bf1a1b8562917ec33b89d337ba10c39 | Implement with an around_execute :timer call in the controller | [
{
"docid": "efb6cb00916dcd7386a76726e4186d80",
"score": "0.6302258",
"text": "def timer(&block) = Cnfs.with_timer('Command execution', &block)",
"title": ""
}
] | [
{
"docid": "c33adef6500be844ff3ed24e054d1101",
"score": "0.65297",
"text": "def add_oneshot_timer(_arg0); end",
"title": ""
},
{
"docid": "f5c8840c192b0d0e08ad3eead5976742",
"score": "0.6293363",
"text": "def start_timer\n $testCaseID = \"VT229-0060\"\n Rho::Timer.start(5000, (... |
93a9b4f21d0662192027da7570fb8805 | Documents in rummager currently reference topics, browse pages and organisations by "slug", a concept that exists in Publisher and Whitehall. It does not exist in the publishingapi, so we need to infer the slug from the base path. | [
{
"docid": "db1adf5888c6a1ea4fecd12c9256551c",
"score": "0.5107537",
"text": "def taggings_with_slugs(links)\n links_with_slugs = {}\n\n # We still call topics \"specialist sectors\" in rummager.\n links_with_slugs[\"specialist_sectors\"] = links[\"topics\"].to_a.map do |content_item|\n ... | [
{
"docid": "5660a461d295ef3eb5b4d2cf916ec674",
"score": "0.6166633",
"text": "def slug\n path\n end",
"title": ""
},
{
"docid": "6efa6ed81a60c75750d331483feb23c3",
"score": "0.6082021",
"text": "def publish_slug\n @options['slug'] || File.basename(@options['path'], '.*')\n ... |
536ea6629652a315aa3c59acba5fc27d | Always returns false in this implementation. | [
{
"docid": "c54cb9bbfd51bc1fc8f934513059882d",
"score": "0.0",
"text": "def dirty?\n false\n end",
"title": ""
}
] | [
{
"docid": "16146438a17eec506c5ef8672118f2e8",
"score": "0.78722364",
"text": "def rhetorical?\n false\n end",
"title": ""
},
{
"docid": "f6c112503fe2024edae92bd4a56db2c9",
"score": "0.7444296",
"text": "def hereditary?\n false\n end",
"title": ""
},
{
... |
6b56c9c63f14301b89a2c2fb782f9688 | hash of all the address db attributes except created_at, updated_at, id | [
{
"docid": "b8b7e237f1f9cccb2221caca607fd1d4",
"score": "0.7536707",
"text": "def address_attributes\n attributes.delete_if {|key, value| [\"id\", 'updated_at', 'created_at'].any?{|k| k == key }}\n end",
"title": ""
}
] | [
{
"docid": "7eb6df39da1747e38f3f93571c5e592f",
"score": "0.7401419",
"text": "def hash\n [__meta, created_at, updated_at, street_line1, street_line2, city, state, zip_code, country].hash\n end",
"title": ""
},
{
"docid": "e387da63406c8fc93b240135bca4e045",
"score": "0.73531604",
... |
5846f1636fd51f619a828d3929368201 | Default method which visualizes the DataMapper models, properties and relationships. | [
{
"docid": "676b6137e5c2b41d020654b79cdec554",
"score": "0.6647087",
"text": "def visualize\n end",
"title": ""
}
] | [
{
"docid": "afcbecf162565d1279374391fa54b6cc",
"score": "0.72470653",
"text": "def visualize\n graph = ::GraphViz.new(:G, :type => :digraph)\n\n # Create node for each model\n project.each_model do |model|\n properties = project.each_property(model).map do |property|\n ... |
3b826b26e95f6641981684ee5ff65358 | Provide a user friendly representation | [
{
"docid": "a30d707f5c8fc91f6dd9544791a6341d",
"score": "0.0",
"text": "def to_s\n context = @solution.map{|k, v| \"#{k}: #{v}\"}.join(',')\n \"#<Twilio.Content.V1.ContentContext #{context}>\"\n end",
"title": ""
}
] | [
{
"docid": "8813d23ea53482a215f5e5b971468e2d",
"score": "0.75752455",
"text": "def representation; end",
"title": ""
},
{
"docid": "dad7e7041772f906c35bc43f5390a274",
"score": "0.70985687",
"text": "def to_human\n super\n end",
"title": ""
},
{
"docid": "1e72b... |
f0fe03d0afee1d849d1f6948bbd332c2 | Get all broadcasts. List all broadcasts. | [
{
"docid": "dec590db89ef7038a5390c6235fbe797",
"score": "0.75924265",
"text": "def list_broadcasts(opts = {})\n data, _status_code, _headers = list_broadcasts_with_http_info(opts)\n return data\n end",
"title": ""
}
] | [
{
"docid": "72c770b07685bf356217e059ab6f4aff",
"score": "0.7808788",
"text": "def broadcasts\n @broadcasts ||= Broadcasts.new client\n end",
"title": ""
},
{
"docid": "b5780f73926fb606e0121983ffadd21e",
"score": "0.7799424",
"text": "def query_broadcasts(options = nil)\n ... |
5e514c152cff9bb958e8d8d3377110cc | Add the hash to the start of the options text This really needs to be replaced with real configuration handling, but it works effectively when the configuration is new. | [
{
"docid": "96280cc7959c277afd34d676fd8333ea",
"score": "0.7038741",
"text": "def prepend_to_options(hash)\n hash.deep_stringify_keys!\n key = hash.keys.first\n new_options = YAML.dump(hash)\n self.options ||= ''\n self.options = if self.options.index(/^#{key}:/)\n sel... | [
{
"docid": "6ad200f4e59139187cc3b35dc1afe1a0",
"score": "0.6126795",
"text": "def merge_options(hash, sha1)\n @options.merge!(hash).merge!(:sha1 => Digest::SHA1.hexdigest(sha1))\n end",
"title": ""
},
{
"docid": "7c140b5bce6cb0675dfb832dd28777e4",
"score": "0.6011898",
"t... |
a0563f4f7077bff647f7aefa36b4dd2f | Might as well check both diagonals without trying to figure out which diagonal a move might be on, since the logic is simpler that way. Thankfully, a tic tac toe board is not large. | [
{
"docid": "d74b21f8372cf5bc3b315b4fceb30647",
"score": "0.7332125",
"text": "def check_diagonals(player_mark)\n left_diag_arr = [@state[0][0], @state[1][1], @state[2][2]]\n right_diag_arr = [@state[0][2], @state[1][1], @state[2][0]]\n return true if count(left_diag_arr, player_mark) == 3\n ... | [
{
"docid": "138537d00235039dcb5bbe063f7a14d4",
"score": "0.8070185",
"text": "def check_diagonals\n diagonal_winner = nil\n # stores the markers\n backward_diagonal = ''\n forward_diagonal = ''\n\n # for a diagonal to be a winner it takes the row[n], row[n+1], row[n+2] and so on..\n @b... |
b9e73542c47df01cf6ac3380c4f822ea | setup_properties: Accepts a hash that is looped through so attribute can be accessed on each resource object. | [
{
"docid": "6077990d68ac55455a0dcb5b4ea97e70",
"score": "0.6852682",
"text": "def setup_properties(hash)\n tmpclass = class << self; self; end\n\n hash.each do |key,val|\n tmpclass.send :define_method, key.to_sym, &lambda { val }\n end\n end",
"title": ""
}
] | [
{
"docid": "862f7aa179e3e1751693f78772c09a99",
"score": "0.69535965",
"text": "def assign_properties(properties); end",
"title": ""
},
{
"docid": "cd1f6cc5de15a40280904b3c37d8f771",
"score": "0.6794385",
"text": "def init_properties\n @properties = {}\n end",
"title": ""
... |
f26062d8a8467ef6ead5d435983702e2 | GET /chemical_structures/1 GET /chemical_structures/1.json | [
{
"docid": "a81945373733e4951b987de6ea99f9a1",
"score": "0.0",
"text": "def show\n end",
"title": ""
}
] | [
{
"docid": "38e4d827cd0750df8779d120e836cfb9",
"score": "0.6943218",
"text": "def index\n @chemical_structures = ChemicalStructure.all\n end",
"title": ""
},
{
"docid": "b28f0c90bd66ba4f285b27474953eb7c",
"score": "0.6511965",
"text": "def show\n @structure = Structure.find(pa... |
38c5017799afc0911ed7160b8ac8c24e | Takes a collection of search terms (the tokens) and creates SQL that searches all specified ActiveScaffold columns. A row will match if each token is found in at least one of the columns. | [
{
"docid": "b2becd7590204711b5dcf370472c96a8",
"score": "0.6666742",
"text": "def conditions_for_columns(tokens, columns, text_search = :full)\n # if there aren't any columns, then just return a nil condition\n return unless columns.any?\n\n tokens = [tokens] if tokens.is_a? String\... | [
{
"docid": "01ac04138b0e10b4fd330ebec8e73312",
"score": "0.6868292",
"text": "def full_text_search(cols, terms, opts = {})\n filter(\"CONTAINS (#{literal(cols)}, #{literal(terms)})\")\n end",
"title": ""
},
{
"docid": "cc4bea3ff27acd2e1313a83dc044b3e2",
"score": "0.68023425",... |
066675d4dedb4f6f6bebce652b9d552f | Execute the Choreo using the specified InputSet as parameters, wait for the Choreo to complete and return a ResultSet containing the execution results. | [
{
"docid": "9640d59ad35a09841b6c075d01d2b20d",
"score": "0.0",
"text": "def execute(input_set = nil)\n resp = super(input_set)\n results = PresidentialStateZipTotalsResultSet.new(resp)\n return results\n end",
"title": ""
}
] | [
{
"docid": "c4ca32683e8ce75eb6a187d63df8fa77",
"score": "0.76648957",
"text": "def execute(input_set = nil)\n resp = super(input_set)\n results = DoneResultSet.new(resp)\n return results\n end",
"title": ""
},
{
"docid": "6f7a7d9be674ad4cf17d6743eb1f7836",
"scor... |
44193b997acce0667cfa39e4fca97901 | getter or setter method? setter b/c we need to reset happiness if it doesn't obey the rule (round down) | [
{
"docid": "d4b80bbfd33a74141d76bcb0db0230ea",
"score": "0.0",
"text": "def happiness=(num)\n @happiness = num \n if happiness > 10\n @happiness = 10\n elsif happiness < 0\n @happiness = 0\n else @happiness = happiness \n #binding.pry\n ... | [
{
"docid": "ff4f35f88af14932dfa60e120a40fc2c",
"score": "0.7559799",
"text": "def setter_method?; end",
"title": ""
},
{
"docid": "ff4f35f88af14932dfa60e120a40fc2c",
"score": "0.7559799",
"text": "def setter_method?; end",
"title": ""
},
{
"docid": "7dc3cc55a07234c10af716... |
046b02cae29b302eefc6412440e94e1f | DELETE /appointments/1 DELETE /appointments/1.json | [
{
"docid": "2565df6f934f8d9f41a4fdfb362c024f",
"score": "0.7822649",
"text": "def destroy\n @appointment = Appointment.find(params[:id])\n @appointment.destroy\n\n respond_to do |format|\n format.html { redirect_to appointments_url }\n format.json { head :no_content }\n end\n end"... | [
{
"docid": "bf8c21831c69d832d807c39d5bf67394",
"score": "0.803398",
"text": "def delete_appointment\n\t\tid = grab_id(\"delete\")\n\t\taddress = @url + \"/\" + id\n\t\tresponse = HTTParty.delete(address)\n\t\tresponse.body\n\tend",
"title": ""
},
{
"docid": "761cfe19688ad8e3010fa2e15ee3cba3... |
0e0df32124b9f4734b93ebd009f47cc0 | DELETE /posts/1 DELETE /posts/1.json | [
{
"docid": "f9cd5eebe54eac01914d419e55a4e171",
"score": "0.0",
"text": "def destroy\n if current_user && current_user.id == @post.user.id\n @post.destroy\n respond_to do |format|\n format.html { redirect_to posts_url, notice: 'Post was successfully destroyed.' }\n format.json ... | [
{
"docid": "d2938d0d96fc4adb30b185ea6e647cdf",
"score": "0.8047287",
"text": "def delete\n render json: Post.delete(params[\"id\"])\n end",
"title": ""
},
{
"docid": "f027d5be71066122f716d1cbeb3b697e",
"score": "0.7690689",
"text": "def destroy\n @post.destroy\n respond_to ... |
46530f011b12d431f21f4bcd5099b3d2 | sort attached nets and calculate its radii | [
{
"docid": "1d06f28685c789c0e23fbcde6a6e3780",
"score": "0.47084922",
"text": "def prepare_steps\n\t\t@vertices.each{|vert|\n\t\t\tnext if vert.attached_nets.empty?\n\t\t\tvert.reset_initial_size\n\t\t\t[true, false].each{|b|\n\t\t\t\tvert.attached_nets.each{|step|\n\t\t\t\t\tnext if step.xt == b\n\t\t\... | [
{
"docid": "7c8dbc08a2c1ebeadbc809fc12256555",
"score": "0.6053536",
"text": "def sort_nodes_by_rastered_links(data, params={})\n nodes = params[:nodes] || @nodes\n \n case sortby = params[:sortby]\n when Proc\n nodes = nodes.sort_by(&sortby)\n when :degree\n direction = params[... |
f3ea51be4b1bf756a7a4081958e9e0b8 | Whether or not the Unit can reach the given Hex in the current turn. if my_unit.can_reach? the_hex my_unit.move_to the_hex end | [
{
"docid": "3aa0d790d77ed971cbd13783ef03e0e7",
"score": "0.6600088",
"text": "def can_reach?( hex )\n destinations.include? hex\n end",
"title": ""
}
] | [
{
"docid": "af3fb72c14db2a4a87222ec701b94798",
"score": "0.5978401",
"text": "def move_piece(start, dest)\n\n determine_moves(start)\n\n #puts \"dest movem valid?: #{@spaces[start].moveset.include?(dest)}\"\n\n #puts \"dest atack valid?: #{@spaces[start].attackset.include?(dest)}\"\n return ... |
4aa7cd0d8b46baf71e17895f3f37d75a | DELETE /ride_offers/1 DELETE /ride_offers/1.json | [
{
"docid": "afbd6b654fa0daf1b240b99376788901",
"score": "0.76163334",
"text": "def destroy\n @ride_offer.destroy\n respond_to do |format|\n format.html { redirect_to ride_offers_url, notice: 'Ride offer was successfully destroyed.' }\n format.json { head :no_content }\n end\n end",
... | [
{
"docid": "6c81acaa1df237a6827d4c572e7d5ebe",
"score": "0.7491012",
"text": "def destroy\n @ride.destroy\n respond_to do |format|\n format.html { redirect_to rides_url }\n format.json { head :no_content }\n end\n end",
"title": ""
},
{
"docid": "6c81acaa1df237a6827d4c572... |
5c2cab5e92d21aefd81d8c5153039cf4 | Creates a count request which is more performant when counting objects. | [
{
"docid": "1e00dfce31945f03458eaa514697eee8",
"score": "0.6198964",
"text": "def count(constraints = {})\n query(constraints).count\n end",
"title": ""
}
] | [
{
"docid": "84d1e0dee8934a67451b49649d4c675b",
"score": "0.6743737",
"text": "def count( args={} )\n args.merge!({ :count => \"1\" })\n result = request( :method => 'post', :url => @url, :query => generate_xml(args) )\n return result.to_i\n end",
"title": ""
},
{
"docid": "... |
0ca3e6470f5b97785edc01081203c44f | Set the value of the PublicIp input for this Choreo. | [
{
"docid": "931616682d80cef15b24010230a93d2b",
"score": "0.7890885",
"text": "def set_PublicIp(value)\n set_input(\"PublicIp\", value)\n end",
"title": ""
}
] | [
{
"docid": "e4879af7fc363c919e55943521bceec2",
"score": "0.7266844",
"text": "def public_ip_address=(value)\n @public_ip_address = value\n end",
"title": ""
},
{
"docid": "e4d31960da129f1bf8350f67e4722459",
"score": "0.662263",
"text": "def setPublicIPOption... |
6ac81a4e096f09181dfe010e2e28696b | DELETE /comments/1 DELETE /comments/1.json | [
{
"docid": "fd26e74a216ac7cd7036bd9bbe8437e9",
"score": "0.0",
"text": "def destroy\n @comment.destroy\n end",
"title": ""
}
] | [
{
"docid": "752ed216e7d9e361230d41d00e4c06d8",
"score": "0.7561756",
"text": "def destroy\n @comment.destroy\n respond_to do |format|\n format.json { head :no_content }\n end\n end",
"title": ""
},
{
"docid": "4a70408ee6dbeee9703f540ab87543a9",
"score": "0.7436636",
"t... |
df26f16741640f12a039c7a559ae06f6 | GET /metamediatypes GET /metamediatypes.json | [
{
"docid": "4305a331b748f619de5f2cac577d39b8",
"score": "0.726881",
"text": "def index\n @metamediatypes = Metamediatype.all\n end",
"title": ""
}
] | [
{
"docid": "d83c08f38d3e155a8797fdcb78c561cb",
"score": "0.655604",
"text": "def types\n if !@api_key.nil? and @api_key.api_type == \"muni\"\n params[:c] = \"forager\"\n end\n\n if params[:c].blank?\n cat_mask = array_to_mask([\"forager\",\"freegan\"],Type::Categories)\n else\n ... |
3f9be7a2d111fe921c516aa31e72f96f | Simple method to return the number of items in the hash | [
{
"docid": "212c9e548a7f56abfaeffac235dfbed3",
"score": "0.0",
"text": "def size\n @values.size\n end",
"title": ""
}
] | [
{
"docid": "f994b8e3461ef7364ed352dff025db89",
"score": "0.8326412",
"text": "def count(key)\n @hash[key].length\n end",
"title": ""
},
{
"docid": "992a71cbcaf035558d7fc40d281119d5",
"score": "0.82830465",
"text": "def size\n return @hash.length\n end",
"title... |
d97120bcfdcdc8eb26c17abdcf8effb2 | Set the _attributes_ instance variable to `nil`. This is done for all resources in the delta unless the production is flagged as verbose | [
{
"docid": "76097d669256b3e054a9069c62baf0e4",
"score": "0.68826354",
"text": "def clear_attributes\n @attributes = nil\n end",
"title": ""
}
] | [
{
"docid": "e5844c869cf9ea24d44faa1c82561129",
"score": "0.682496",
"text": "def clean_attributes\n attributes.delete(:bare_metal)\n attributes.delete(:flavor_id)\n attributes.delete(:ephemeral_storage)\n end",
"title": ""
},
{
"docid": "c873a353f01f37496645... |
8560cdd42a56f6574a57dc34d1d7949b | GET /questions GET /questions.json | [
{
"docid": "3f912decfc6d92f777a4adfd56c94e24",
"score": "0.0",
"text": "def index\n @questions = Question.all \n @message = get_data[:message]\n @specialist_id = get_data[:specialist_id]\n @patient_id = get_data[:patient_id]\n end",
"title": ""
}
] | [
{
"docid": "82fc080dea262a79e0a7089773f9a8e2",
"score": "0.81611127",
"text": "def questions\n self.class.get(\"/2.2/questions\", @options)\n end",
"title": ""
},
{
"docid": "9a8b6ed72c92f2e80d97852fdfd09261",
"score": "0.7624654",
"text": "def index\n @questions = Question.al... |
5c28ab1adedf1816707ec22578ff4bdf | Method for retrieving category form data via strong parameters | [
{
"docid": "7e694771e6dfc1c371442d965a90da56",
"score": "0.0",
"text": "def category_params\n params.require(:category).permit(:account_name, :category_name, :savings_goal, :savings_goal_date)\n end",
"title": ""
}
] | [
{
"docid": "c7395fa94b0700bac1b082c854180830",
"score": "0.7822628",
"text": "def category_params\n params[:category]\n end",
"title": ""
},
{
"docid": "1831b7cf0c97477f2fe837ca2a3e7982",
"score": "0.7497453",
"text": "def category_params\n params.fetch(:category, {})\n e... |
000ce5e39bfa3268b8ca47d1288d5d12 | PATCH/PUT /change_request_steps/1 PATCH/PUT /change_request_steps/1.json | [
{
"docid": "3f7f3c94adb20020ebfa43f97ac334d8",
"score": "0.7354336",
"text": "def update\n respond_to do |format|\n if @change_request_step.update(change_request_step_params)\n format.html { redirect_to @change_request_step, notice: 'Change request step was successfully updated.' }\n ... | [
{
"docid": "68d16904dd061c71e2a272d2d31007e9",
"score": "0.6848394",
"text": "def update\n scenario = Scenario.find(params[:id])\n scenario.update(scenario_params)\n scenario.steps = []\n json_response(step_builder(scenario), status: :updated)\n rescue => e\n render json: {error: e.messa... |
eadb272447cd3f3e9327a7ae1c52fa0b | Obtain a fraction value for resource id | [
{
"docid": "f84ed2b28c315c31f520e9d3b1b335c4",
"score": "0.6964332",
"text": "def get_resource_fraction(entry_data_type, entry_data)\n unit_type = (entry_data & 0xF)\n case unit_type\n when COMPLEX_UNIT_FRACTION\n unit_name = \"%\"\n when COMPLEX_UNIT_FRACTION_PARENT\n unit_name = ... | [
{
"docid": "bb601feaf3c6a595ae204b379ae93bc7",
"score": "0.6828445",
"text": "def fractional\n @fractional ||= Fractional.new(calculate_fractional, id)\n end",
"title": ""
},
{
"docid": "62ca30e5f84c9fd3294c2e8dc40675e2",
"score": "0.6696038",
"text": "def type\n :... |
a30c0e7ee803df87ef5e1823dea029c9 | Social Share Link Helpers | [
{
"docid": "9f8ba6869dff670b7e007cea063a8a9d",
"score": "0.737777",
"text": "def post_share_href(post)\n \"#{base_url}#{blog_post_href(post)}\"\n end",
"title": ""
}
] | [
{
"docid": "c10f7e0b40dd8608451e6880a76f357a",
"score": "0.7726887",
"text": "def social_shares(e)\n return unless (e.facebook_share || e.instagram_share || e.linkedin_share || e.xing_share || e.twitter_share)\n c = '<div class=\"social button-wrapper\"> '.html_safe\n\n if e.facebook_shar... |
e95edb788b75c665369975be8962bdce | Function to get the right team name construction for use with CFDB API Currently only works 100% of the time with SEC teams | [
{
"docid": "d150917e17296a3ab3f4c90608b1d772",
"score": "0.75632167",
"text": "def cfdb_team_key(team)\n if team.split(\" \")[1] == \"Miss\" || team.split(\" \")[1] == \"State\" || team.split(\" \")[1] == \"Carolina\" || team.split(\" \")[1] == \"A&M\"\n team_name = \"#{team.split(\" \")... | [
{
"docid": "26d7e993e77ca9114450cbc5fe592f8d",
"score": "0.7491663",
"text": "def get_team_name\n team ? team.get_full_name : '?'\n end",
"title": ""
},
{
"docid": "26d7e993e77ca9114450cbc5fe592f8d",
"score": "0.7491663",
"text": "def get_team_name\n team ? team.get_full_name ... |
ca91a841fb94d1bd968fbd389dfe135b | Dry run the report queries Dry run the report queries | [
{
"docid": "e2718197a8a2347992038f0393f47a17",
"score": "0.6014549",
"text": "def dry_run_report_queries_with_http_info(query_request, opts = {})\n if @api_client.config.debugging\n @api_client.config.logger.debug 'Calling API: DatawarehouseApi.dry_run_report_queries ...'\n end\n #... | [
{
"docid": "f3f142003eb8ecc075059874c6e5442c",
"score": "0.64287394",
"text": "def dry_run\n @dry_run = true\n end",
"title": ""
},
{
"docid": "b8418e5491d30ed76df699caf090f4d8",
"score": "0.6426858",
"text": "def dry_run_report_queries(query_request, opts = {})\n data, ... |
78287526d8563926f73a76a6a681fe9b | Returns the topmost visual container that should be rendered. | [
{
"docid": "8c177f80ee5a5af96e89c6c49db214ae",
"score": "0.7441088",
"text": "def visual_top\n @_ctx.visual_top\n end",
"title": ""
}
] | [
{
"docid": "ffd6ebea0faaedf97c129a2df5a0064d",
"score": "0.7117709",
"text": "def top_level_container\n @top_level_container ||= root.children.first.name\n end",
"title": ""
},
{
"docid": "70a934a8aac65c063461b7b8124f585e",
"score": "0.6393708",
"text": "def container\n ... |
555af0c28c2bee78cc387784aa1b383a | Implement a trap for a method that might be missing. Any method not | [
{
"docid": "c4d54cb72755ec2358fdabe2e9073968",
"score": "0.0",
"text": "def method_missing(method_sym, *args)\n if @list.respond_to?(method_sym)\n # The array @list responds to this method - use it on @list\n @list.method(method_sym).call(*args)\n else\n # Raise ... | [
{
"docid": "08c09e41f0351d35a11fef26bba131c1",
"score": "0.6947767",
"text": "def unhandled_overridden?; end",
"title": ""
},
{
"docid": "2a73eee8482e20a0a9a36411879ffb48",
"score": "0.69307107",
"text": "def method_missing(meth, *args)\n puts \"UNSUPPORTED METHOD CALLED: #{meth... |
9e9d71994ac00101176863818fec09eb | DELETE /userlitts/1 DELETE /userlitts/1.json | [
{
"docid": "31d00835031779b7d53bd41e8b0b108d",
"score": "0.6517535",
"text": "def destroy\n @userlitt.destroy\n respond_to do |format|\n format.html { redirect_to :back, notice: \"Ce cours n'est plus dans votre espace\" }\n format.json { head :no_content }\n end\n end",
"title": ... | [
{
"docid": "9089c0b05b260a898baad823dd7a5c5c",
"score": "0.69807035",
"text": "def delete_user_for_tenant(args = {}) \n delete(\"/tenants.json/#{args[:tenantId]}/users/#{args[:userId]}\", args)\nend",
"title": ""
},
{
"docid": "689d5a07a403c4b765ba178e4aff08a3",
"score": "0.6963948",
... |
cf3b738a81017901923c476560349471 | Starts all the components at all levels for this run | [
{
"docid": "bdcff7973e27ea30ead0fbd038f4d65f",
"score": "0.6422697",
"text": "def start_all_components( app_id, app_path, run_id, params )\n # Start the internal broker\n return false unless ComponentsStarter.start_internal_broker\n # Start mongo db\n return false unless ComponentsSt... | [
{
"docid": "262151a2b44ff234c77731c49b20b9e9",
"score": "0.66799194",
"text": "def run_all\n start\n end",
"title": ""
},
{
"docid": "262151a2b44ff234c77731c49b20b9e9",
"score": "0.66799194",
"text": "def run_all\n start\n end",
"title": ""
},
{
"docid": "... |
cd2457a67c33afd21dc366bc29cd8438 | reduce 342 omitted reduce 343 omitted reduce 344 omitted | [
{
"docid": "1317abe4fa84a541d643bb94b06b8fcf",
"score": "0.0",
"text": "def _reduce_345(val, _values, result)\n result = @builder.multi_lhs(val[0], val[1], val[2])\n\n result\nend",
"title": ""
}
] | [
{
"docid": "0da8d4bc1271fbb8d2119d79e776a4f3",
"score": "0.7618154",
"text": "def _reduce_603(val, _values, result)\n result = nil\n \n result\nend",
"title": ""
},
{
"docid": "4a284296788ba625eeb1e1f152a2c293",
"score": "0.74903995",
"text": "d... |
43db5cc1bbd25315906551a337f346d9 | Find nodes Note: this endpoint is available in Alfresco 5.2 and newer versions. Gets a list of nodes that match the given search criteria. The search term is used to look for nodes that match against name, title, description, full text content or tags. The search term: must contain a minimum of 3 alphanumeric character... | [
{
"docid": "474db5644889f69e693783c7c2462d03",
"score": "0.6896823",
"text": "def find_nodes(term, opts = {})\n data, _status_code, _headers = find_nodes_with_http_info(term, opts)\n return data\n end",
"title": ""
}
] | [
{
"docid": "a3b45412654c0c28a0e4a9a2bfa39955",
"score": "0.63623595",
"text": "def nodes()\n return SearchNodes.new(:node => self, :return_many => true)\n end",
"title": ""
},
{
"docid": "9814404c7545596edf7396c5a61f2757",
"score": "0.63526136",
"text": "def find_nodes\n put... |
d018929b72a88c72522b72cb3535112e | :callseq: each() Yields all serial values in no sorted order. | [
{
"docid": "b757af89ee0e2f0963ac06e4433684e9",
"score": "0.0",
"text": "def each_serial(*a, &c) @sn_vlets.keys.sort.each(*a, &c); end",
"title": ""
}
] | [
{
"docid": "01ee0e00c7343c038431db30b7a38625",
"score": "0.6978284",
"text": "def each_sequence\n\t\t\teach_value do |value|\n\t\t\t\tyield value\n\t\t\tend\n\t\tend",
"title": ""
},
{
"docid": "e00be2b24b8db185b632d12addd470b9",
"score": "0.6873524",
"text": "def each()\n cur =... |
7660bcd23b23db561a4c60d31f8438a8 | schema should be a hash (name => type) | [
{
"docid": "c6f3009199e2a060d151f5cdd653d2cc",
"score": "0.0",
"text": "def defStream(index, name, schema)\n @streams << Stream.new(index,name,schema)\n end",
"title": ""
}
] | [
{
"docid": "a2093b1d291730c07185c309be0d7007",
"score": "0.7266966",
"text": "def schema_from_hash schema\n json = schema.to_json.to_java(:string) # !\n \n rs = (ObjectMapper.new()).readValue(json, ResourceSchema.java_class);\n Util.translateSchema(Schema.getPigSchema(rs))\n end",... |
bb6198331c8f9d362e78e25b5e7f1c08 | Returns set of elements by type | [
{
"docid": "1ef2de167b147b45331456d1ebaef661",
"score": "0.7425538",
"text": "def elements_by_type(type)\n\t\treturn xpath('//' + type)\n\tend",
"title": ""
}
] | [
{
"docid": "24aafc6cbee2b248757c00f7bbaac930",
"score": "0.7372266",
"text": "def by_type\n return @by_type if @by_type\n\n @by_type = {}\n self.all.each do |set|\n next unless set[:types].count > 0\n\n set[:types].each do |t|\n @by_type[t] ||= []\n @by_type[t] << set\n ... |
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.82947755",
"text": "def testFixtureTearDown()\n end",
"title": ""
},
{
"docid": "c7d7081d44951e29ba9332608ddf6f3e",
"score": "0.82947755",
"text": "def testFixtureTearDown()\n end",
"title": ""
},
{
"docid": "ad... |
a2099a77c85e91272ae2f9e35b937953 | Only allow a trusted parameter "white list" through. | [
{
"docid": "dc2d3d1eeeaa3e497962f1c86ba253a3",
"score": "0.0",
"text": "def fazenda_params\n params.require(:fazenda).permit(:nome, :rua, :numero, :cep, :estado, :cidade, :pessoa_id)\n end",
"title": ""
}
] | [
{
"docid": "3663f9efd3f3bbf73f4830949ab0522b",
"score": "0.7943618",
"text": "def whitelisted_params\n super\n end",
"title": ""
},
{
"docid": "f6060519cb0c56a439976f0c978690db",
"score": "0.69572574",
"text": "def permitted_params\n params.permit!\n end",
"title"... |
d1386d4dc08821ccea46707088b57c92 | Threads isolation (thread safe) Controller's variables should be set independently on simultaneous calls | [
{
"docid": "36472478333f6dcc1442715938fad614",
"score": "0.0",
"text": "def test_08\n prepare_web_application\n r1 = Alfa::WebApplication.call({'PATH_INFO'=>'/test_08'}) do |controller1, template1|\n r2 = Alfa::WebApplication.call({'PATH_INFO'=>'/admin/test_08'}) do |controller2, template2|\n... | [
{
"docid": "df78064bee3a1d0d7d00d799ce721f63",
"score": "0.613011",
"text": "def multi_thread\n @params[:multi_thread]\n end",
"title": ""
},
{
"docid": "df498625e6ee183f5e6b03c66ce31b4e",
"score": "0.5997872",
"text": "def store\n Thread.current\n end",
"title": ... |
5792ca529eb2b46e97b1f99061f5bfb6 | extracts the topmost clusters From : Usually, what you want is the top most clusters. These can be optained in prolog (after a subsequent `pprint') with: couple(ID,Entities,_),not arc(_,ID). That is to say all clusters which do not have parent in the hierarchy. | [
{
"docid": "60b041db0d5d3a7aa6b2384ded807589",
"score": "0.5665789",
"text": "def gdm_top_clusters_to_mod(istream, ostream)\n hash = Hash.new\n istream.each_line do |line|\n if line =~ /^couple\\((\\d+),\\[(.+?)\\]/\n hash[$1.to_i] = $2\n elsif line =~ /^arc\\(.*,(\\d+)/\n ... | [
{
"docid": "cfdf694c833a4a75b951e6b641bba94d",
"score": "0.6460068",
"text": "def nodes_with_no_parents\n top_nodes = []\n self.each_vertex do |v|\n if in_degree(v) == 0\n top_nodes << v\n end\n end\n top_nodes\n end",
"title": ""
},
{
"docid": "18440a2fbbe67ef7... |
dc073105ee68d115d03cb459e12bfcd8 | prompt for deleting students | [
{
"docid": "82046f510e5a9b706eb21bef747d1883",
"score": "0.75517136",
"text": "def delete_name_ui\r\n flag = false\r\n until flag == true\r\n puts \"Enter the name of the student you want to remove. Type 'cancel' if you do not want to remove a student.\"\r\n student = gets.chomp\r\n ... | [
{
"docid": "d670397f6463be3a30d77bf3983b372e",
"score": "0.84271955",
"text": "def delete_student()\n student_idx = find_student\n student_to_del = @students[student_idx]\n puts \"Are you sure you want to delete: #{student_to_del.name}. Y/N\"\n confirm = gets.chomp\n case confirm.upcase\n... |
cc94d7c8b62c9070fea2312e8f3603ae | Deletes the specified card | [
{
"docid": "95f9d3a205416a7bf2da68a050b54af6",
"score": "0.0",
"text": "def delete_by_token(organization, token)\n HttpClient::Preconditions.assert_class('organization', organization, String)\n HttpClient::Preconditions.assert_class('token', token, String)\n r = @client.... | [
{
"docid": "8bda1cf1a611a3806acbbcf4598d83da",
"score": "0.8947453",
"text": "def delete_card(card)\n @cards.delete(card.id)\n end",
"title": ""
},
{
"docid": "ff0cc1872c73612f610cb61c65b0a661",
"score": "0.87202054",
"text": "def delete card\n @hand.delete(Card.new(card... |
86252918dd1ef29ecfaa1ee279cd2b90 | PUT /vanos/1 PUT /vanos/1.xml | [
{
"docid": "d33bc7975e3683cb14924bb138a645ed",
"score": "0.5876481",
"text": "def update\n @vano = Vano.find(params[:id])\n\n respond_to do |format|\n if @vano.update_attributes(params[:vano])\n format.html { redirect_to(@vano, :notice => 'Vano was successfully updated.') }\n fo... | [
{
"docid": "c2c0b673628fdc28b181d18c0afd2d5b",
"score": "0.6687908",
"text": "def update opts = {}\n opts[:headers] ||= {}\n opts[:headers]['Content-Type'] ||= 'text/xml'\n post 'update', opts\n end",
"title": ""
},
{
"docid": "e631b376ae2ccb776680432bf94b01cc",
"score": "0.654... |
6d8e458c712abb8e760c7d220102eeca | POST /logins POST /logins.xml | [
{
"docid": "f551fbcb52670439dc96e0d23c32bedd",
"score": "0.0",
"text": "def create\n\t\t@signup = Signup.new(params[:userform])\n\t\tvalid_user = Signup.find(:first,:conditions => [\"email = ? and password = ?\",@signup.email, @signup.password])\n\t\tif valid_user\n\t\t\tsession[:user_id]=valid_user.ema... | [
{
"docid": "d7fe339e639a4420f3231905132944e6",
"score": "0.62677604",
"text": "def login\n post \"/logins/create\", params: {email: \"lxboyjp@gmail.com\", password: 'aabbccddeeffgg'}\n follow_redirect!\nend",
"title": ""
},
{
"docid": "75668e9c28cb45e52ea8c84b51d2146d",
"score": "0.613... |
51cb55e18d43d16b7cfbc4de42bf0818 | Get the latest orders tracked | [
{
"docid": "dab824a3e0cc42ddbdf3b6631075041e",
"score": "0.0",
"text": "def get_store_tracked_orders_with_http_info(store_id, opts = {})\n if @api_client.config.debugging\n @api_client.config.logger.debug \"Calling API: V2UserAnalyticsApi.get_store_tracked_orders ...\"\n end\n # ve... | [
{
"docid": "fb7cb3446633fb607b88a3fc6ca6d71c",
"score": "0.7581226",
"text": "def recent_orders()\n\t\twith_auth nil do |options|\n\t\t\tself.class.get(\"/api/v1/orders\", options)\n \tend\n\tend",
"title": ""
},
{
"docid": "fc5951b2b73f112cb6b892d2a0351e0f",
"score": "0.7085633",
... |
221fb0958135b55ae938354651ecb514 | For human output, set output | [
{
"docid": "778a11296d0770c1513d102f9e4bba6e",
"score": "0.0",
"text": "def set_intraday\n @intraday = true\n end",
"title": ""
}
] | [
{
"docid": "141f98e80b9973a00be91be5fdef1fe3",
"score": "0.73520154",
"text": "def output\n # Initialize a nil value to something meaningful\n @output ||= ''\n @output\n end",
"title": ""
},
{
"docid": "a6142521f73c376476df18cb22eaf3d9",
"score": "0.731725",
"text":... |
b49cd85fba1278feb6de0f5010adfb6a | obj.equal?(other) > true or false Equality At the Object level, == returns true only if +obj+ and +other+ are the same object. Typically, this method is overridden in descendant classes to provide classspecific meaning. Unlike ==, the equal? method should never be overridden by subclasses as it is used to determine obj... | [
{
"docid": "e56b70f476b6dc01a3596002c33ec3d4",
"score": "0.0",
"text": "def equal?(other)\n #This is a stub, used for indexing\n end",
"title": ""
}
] | [
{
"docid": "69537a5ae9840382a4a567d9de6559a7",
"score": "0.8658606",
"text": "def eql?(other); end",
"title": ""
},
{
"docid": "69537a5ae9840382a4a567d9de6559a7",
"score": "0.8658606",
"text": "def eql?(other); end",
"title": ""
},
{
"docid": "69537a5ae9840382a4a567d9de65... |
886de753891e842aaaf3c533d12717f6 | PATCH/PUT /constants/1 or /constants/1.json | [
{
"docid": "1061a2c410423edaaf2f52ba16411735",
"score": "0.70257556",
"text": "def update\n respond_to do |format|\n if @constant.update(constant_params)\n format.html { redirect_to @constant, notice: \"Constant was successfully updated.\" }\n format.json { render :show, status: :o... | [
{
"docid": "92cd60f4efa4f999813b53f1bfd128b0",
"score": "0.7091772",
"text": "def update\n @constant = Constant.find(params[:id])\n\n respond_to do |format|\n if @constant.update_attributes(params[:constant])\n format.html { redirect_to @constant, :notice => 'Constant was successfully ... |
8e3398594c3ae08d4c4ed0e532e8e76b | passwordless sudo is neither guaranteed nor desired | [
{
"docid": "46dbc4ea58e28d5d6f832a5f90c5f533",
"score": "0.6974438",
"text": "def sudo(cmd)\n run(cmd)\n end",
"title": ""
}
] | [
{
"docid": "d308749779bb4f60cd49e670a345a4f3",
"score": "0.75578606",
"text": "def should_sudo?\n false\n end",
"title": ""
},
{
"docid": "cb107c9c5e4eb96990f6b9f4f84c3b3f",
"score": "0.75483984",
"text": "def sudo?\n Process.uid == 0\nend",
"title": ""
},
{
"d... |
1906807e2b71312592604840f804dd7d | Establishes a connection to the slave database that is configured for the database name provided | [
{
"docid": "b9b6901881d0eba0f1b977e5ef8d6755",
"score": "0.69230807",
"text": "def establish_slave_connection_for(slave_config)\n conn_spec = slave_config_for(slave_config)\n establish_connection(conn_spec) if conn_spec\n end",
"title": ""
}
] | [
{
"docid": "90a12167ecbeb5d9b3ad0493f94d376c",
"score": "0.7012957",
"text": "def establish_master_connection\n establish_connection(configuration.merge(\n \"database\" => \"postgres\",\n \"password\" => su_password,\n \"schema_search_path\" ... |
a2099a77c85e91272ae2f9e35b937953 | Only allow a trusted parameter "white list" through. | [
{
"docid": "af116e68c70a68dc53efb5e1db1b7417",
"score": "0.0",
"text": "def subject_grade_params(*extra_params)\n permitted = [:subject_id, :grade, :ects]\n extra_params.each { |param| permitted << param }\n params.require(:subject_grade).permit(permitted)\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": "... |
db9e699b3f18e1c045e27bba1e5f09f4 | Logs in a test user | [
{
"docid": "b2f5821df9a9a15d01e7d4d8cbe79806",
"score": "0.0",
"text": "def log_in_as(user, options = {})\n if integration_test?\n post login_path, session: { email: user.email, \n first_name: user.first_name, \n ... | [
{
"docid": "4f9b313801c8f890ef0114c57e20650d",
"score": "0.7856968",
"text": "def login_for_test\n us = UserServices.new\n req_l = LoginRequest.new('testUser2', 'testPass2')\n res_l = us.login(req_l)\n res_l.token\n end",
"title": ""
},
{
"docid": "d0f50efbb8bc030246c0c28a1add45... |
496f8ed4244f3b78af3420cb65fc0cc3 | 6) edits the database. | [
{
"docid": "63d43dd09d08b5bd2ddcfc18849ca709",
"score": "0.0",
"text": "def edit\n @post = BlogPost.find(params[:id])\n end",
"title": ""
}
] | [
{
"docid": "2010259cadefde50e17641e1dcda7511",
"score": "0.7681121",
"text": "def update_db\n # Implement in sub-classes.\n end",
"title": ""
},
{
"docid": "a9f80590745898b7ae413688fb42402d",
"score": "0.73658884",
"text": "def update_sql; end",
"title": ""
},
{
... |
bf01c02c92b4ba59ab016af0d9ee354b | DELETE /checkouts/1 DELETE /checkouts/1.json | [
{
"docid": "03cc47209cfa676e12805c0c9f491bfe",
"score": "0.75410813",
"text": "def destroy\n @checkout = Checkout.find(params[:id])\n @checkout.destroy\n\n respond_to do |format|\n format.html { redirect_to checkouts_url }\n format.json { head :no_content }\n end\n end",
"titl... | [
{
"docid": "26e2b156e474502686670a91128c67d9",
"score": "0.75778675",
"text": "def destroy\n @checkout.destroy\n respond_to do |format|\n format.html { redirect_to checkouts_url }\n format.json { head :no_content }\n end\n end",
"title": ""
},
{
"docid": "26e2b156e4745026... |
759dc1c52cdbbfd3c33f26a6d1494ef0 | Return the id and canonical type name for the item. | [
{
"docid": "532624808779ebc0b7d4212479df4bc4",
"score": "0.8392501",
"text": "def __id_and_type_name(item)\n [ item.id, type_name(item) ] if item\n end",
"title": ""
}
] | [
{
"docid": "d48cb1015870156759f04870fe838bc0",
"score": "0.74137676",
"text": "def unique_name_for(item); end",
"title": ""
},
{
"docid": "b941fb989c22f2985a408c8dbeacd238",
"score": "0.7313366",
"text": "def item_type\n name.singularize.ns_underscore\n end",
"title": ""
... |
f460800d321de26b9ab2e0805b12994d | List Spaces List all Spaces for the given account. | [
{
"docid": "c5a4add8728c9d27625b5e84691ad7eb",
"score": "0.6504373",
"text": "def spaces_list_with_http_info(account_id, opts = {})\n if @api_client.config.debugging\n @api_client.config.logger.debug 'Calling API: SpacesApi.spaces_list ...'\n end\n # verify the required parameter '... | [
{
"docid": "60fc0e156f005b4a0292869c241ba0f0",
"score": "0.7945943",
"text": "def spaces_list(account_id, opts = {})\n data, _status_code, _headers = spaces_list_with_http_info(account_id, opts)\n data\n end",
"title": ""
},
{
"docid": "34e96e1d0068a021388266c6e10235fc",
"sc... |
f27dcf059700ea8ee84a99993e3020c1 | Testing the :auto_commit option set to false in the model should not send the commit command to Solr | [
{
"docid": "512dce232a3f5857472dacc6561818d1",
"score": "0.67884403",
"text": "def test_auto_commit_turned_off\n assert_equal 0, Author.count_by_solr('raymond chandler')\n\n original_count = Author.count\n Author.create(:name => 'Raymond Chandler', :biography => 'Writes noirish detective storie... | [
{
"docid": "7d7bac88a17ad3d3eb84b5a7c2bddff5",
"score": "0.7162677",
"text": "def on_commit(obj)\n true\n end",
"title": ""
},
{
"docid": "2425044a6c98555d830f335ca8c8be3c",
"score": "0.7060417",
"text": "def before_commit(obj)\n end",
"title": ""
},
{
"docid": "87... |
01ce4c5dc1dad82fb86807adf14a33ea | POST /battle_participations POST /battle_participations.json | [
{
"docid": "0ef4caaa65e2dee7bbbe9c122bb3c8b6",
"score": "0.75888807",
"text": "def create\n @battle_participation = BattleParticipation.new(battle_participation_params)\n\n respond_to do |format|\n if @battle_participation.save\n format.html { redirect_to @battle_participation, notice:... | [
{
"docid": "140d5ee778ced2115b33d5d3a99791f9",
"score": "0.7330439",
"text": "def battle_participation_params\n params.require(:battle_participation).permit(:character_id, :battle_id, :status)\n end",
"title": ""
},
{
"docid": "9630a13aad2e1936b7e7fcde67b9ba9f",
"score": "0.70738... |
df2619b8d6e0cd8ded95579cf4b95ec7 | allow external entities to read or write next node | [
{
"docid": "ca3387dc89167c9f159d4b5bab5b06b7",
"score": "0.0",
"text": "def initialize(value, next_node = nil)\r\n @data = value\r\n @next = next_node\r\n end",
"title": ""
}
] | [
{
"docid": "8d243935a350ee2b695f18b168d12bdc",
"score": "0.6922717",
"text": "def next_node; end",
"title": ""
},
{
"docid": "da4d32c771181251e5722078998f768d",
"score": "0.6447287",
"text": "def next= node\n #This is a stub, used for indexing\n end",
"t... |
4eb30a83ac278c47c1e9cc8f3e01f307 | Checks wether a specific client exists. | [
{
"docid": "89d077aaeb7e04e46caf7f2db9069a63",
"score": "0.7481787",
"text": "def exists?(username)\n perform_request({:action => 'client-checkexists', :username => username})\n end",
"title": ""
}
] | [
{
"docid": "058573e8f4fbae2dd3fc9c67d0eff93e",
"score": "0.7980824",
"text": "def exists?(username)\n perform_request({:action => 'client-checkexists', :username => username})\n statusmsg.match /client exists/i\n end",
"title": ""
},
{
"docid": "668a33b9cb187b7ac33e9561fa663894"... |
93968e01ef1c3979913241df976d409a | GET /widgets GET /widgets.json | [
{
"docid": "747204059ce0eaa79d92fd92f3b79709",
"score": "0.0",
"text": "def index\n \n ##Development or Deployment____________\n @url = request.original_url\n if @url.include? 'c9users.io' \n @deployment = false\n else\n @deployment = true\n \n end \n require... | [
{
"docid": "2602e4d3b7753db9296b3fec9691cd32",
"score": "0.8258155",
"text": "def get_widgets\n begin\n payload = client_id_secret\n payload[:term] = params[:term] if params[:term]\n @service.users[\"/#{params[:id]}/widgets\"].get({params: payload}) { |response| \n data = check_... |
748e074c1d38e3388409e85305e51e94 | Read presentation masterSlides info. | [
{
"docid": "77495e0f9461acfd31b62a5740802dc8",
"score": "0.6189374",
"text": "def get_master_slides(name, password = nil, folder = nil, storage = nil)\n data, _status_code, _headers = get_master_slides_with_http_info(name, password, folder, storage)\n data\n end",
"title": ""
}
] | [
{
"docid": "f25e4b3c0458b3627a0a4d71dc41a322",
"score": "0.6265064",
"text": "def show\n @carousel_slides = @carousel.carousel_slides\n end",
"title": ""
},
{
"docid": "4339fdff1825ff23a2ed7fd523e79b27",
"score": "0.6241396",
"text": "def get_master_slides_with_http_info(name, pa... |
9eda0ff981f6495297f82e4f41497321 | Blocking wait until the child process exits | [
{
"docid": "ed9ed1872efc432e0403899b2ee78751",
"score": "0.64151055",
"text": "def join\n running? && Process.waitpid(pid)\n rescue Errno::ECHILD\n false\n end",
"title": ""
}
] | [
{
"docid": "f8932d9b2cbdbd48ffd7be572892e288",
"score": "0.83986276",
"text": "def wait\n ::Process.wait(@pid)\n rescue Errno::ECHILD\n end",
"title": ""
},
{
"docid": "9d39bce4a09a8191af34385d349f2530",
"score": "0.8145464",
"text": "def wait_child\n begin\n Process.w... |
703ab67e935bfbeb7479211dafd3e7aa | Set the value of the Broadcast input for this Choreo. | [
{
"docid": "52e02bb69b3228362280d233e7c0d335",
"score": "0.8216631",
"text": "def set_Broadcast(value)\n set_input(\"Broadcast\", value)\n end",
"title": ""
}
] | [
{
"docid": "a8079f8b5c5b768cb3477a9f491f8aea",
"score": "0.739206",
"text": "def broadcast= value\n param = (!!value && value != 0) ? 1 : 0\n self.setsockopt ::Socket::SOL_SOCKET, ::Socket::SO_BROADCAST, [param].pack('i')\n end",
"title": ""
},
{
"docid": "35246e81eed3f560... |
7c1e7cf19c8a121b3698790973cc7700 | GET /poi_types/1 GET /poi_types/1.json | [
{
"docid": "d389072863a706483d7e1f3998bb215e",
"score": "0.7602241",
"text": "def show\n @poi_type = PoiType.find(params[:id])\n\n respond_to do |format|\n format.html # show.html.erb\n format.json { render json: @poi_type }\n end\n end",
"title": ""
}
] | [
{
"docid": "7b9bb8185478a9ce4fcfd8f5edf04f68",
"score": "0.7797248",
"text": "def index\n @poi_types = PoiType.all\n\n respond_to do |format|\n format.html # index.html.erb\n format.json { render json: @poi_types }\n end\n end",
"title": ""
},
{
"docid": "da91... |
d0b9f059cdc7c42e5903717cb3c629c8 | Proc returns and doesn't return to the method that called it | [
{
"docid": "8b9ffb32608eee346e349fdae890c71e",
"score": "0.0",
"text": "def go_on_trip\n\n status = Proc.new { return \"The car broke down\"}\n status.call\n \"The trip is fun\"\n\nend",
"title": ""
}
] | [
{
"docid": "7425bb859066a431212d6cb800f94b7b",
"score": "0.74230283",
"text": "def proc_return\n Proc.new { return \"Proc.new\"}.call #stop here\n return \"proc_return method finished\"\n end",
"title": ""
},
{
"docid": "2815ab81028986e768a2708d564647bc",
"score": "0.7... |
2f538a15c3517458f4182f402d2ef8f2 | returns an array of all child and subchild ids, flattened | [
{
"docid": "b8341a249620d99e04a35dccbb95b6c6",
"score": "0.80167425",
"text": "def all_children_ids\n children.collect {|f|\n [f.id, f.all_children_ids]\n }.flatten.compact\n end",
"title": ""
}
] | [
{
"docid": "ff421380f3353923d21c09366a024760",
"score": "0.8200576",
"text": "def get_children_ids_recursive\n ids = []\n children.each do |c|\n\t\t\t\tif !c.children.empty?\n\t\t\t\t\tids += c.get_children_ids_recursive\n\t\t\t\tend\n\t\t\t\tids << c.id\n\t\t\tend\n return ids\n\t\tend",... |
55c1332267f2650703015f395df596be | The only parameter "methods_mapping" used to do mapping methods into uniform. If you skip it, "MethodNotBeenImplement" will be raised while you calling the uniform accesor methods. Example for using acts_as_manageable_log, if you want to get the raw_input in the logs, calling the uniform method "input" instead of attri... | [
{
"docid": "c820d94063abe139ef538732fcd92509",
"score": "0.6396477",
"text": "def acts_as_manageable_log( methods_mapping={} )\r\n ManageableLogs.register( self )\r\n @@methods_mapping = methods_mapping\r\n end",
"title": ""
}
] | [
{
"docid": "8c924526fff7146531cc5c9b2d9fa8b1",
"score": "0.60067415",
"text": "def init_mappings\n @gen_methods = {\n 'println' => method(:generate_println),\n '+' => method(:generate_plus),\n '-' => method(:generate_minus),\n '*' => method(:generate_multiply),\n '/' => metho... |
1ae3720b498cb3ada5bc06b36b7d102e | Create a methond that takes two parameters first is an array of Ints second is a target (int) return an array of two indices where it would of equaled the target Repeat question: Return empty array if no indices equal target array values and target are positive array length can be any size if array.length is 1 and matc... | [
{
"docid": "49dca40fe4eee3b728f9ff4ffa48d3d8",
"score": "0.5740311",
"text": "def sum_num(int_array, target_value)\n # check if input_array.length <= 1\n if int_array.length <=1\n return []\n end\n \n i = 0\n # Loop thru inpt array starting at i=0 (stop at end of length)\n whil... | [
{
"docid": "4d5b660f2ee78c3869f8355c2847d50d",
"score": "0.6904105",
"text": "def on2(numbers, target)\n numbers.each_with_index do |number, index|\n numbers.each_with_index do |another_number, another_index|\n next if index == another_index\n\n return [index, anoth... |
ddffd4e6f916e52f557131a78c09806b | Retrieve usage for a subscription and unit type | [
{
"docid": "442108db1788b71be569d0523d5706c8",
"score": "0.7352882",
"text": "def get_usage_with_http_info(subscription_id, unit_type, opts = {})\n if @api_client.config.debugging\n @api_client.config.logger.debug \"Calling API: UsagesApi.get_usage ...\"\n end\n # verify the requir... | [
{
"docid": "ea62dcd3a782e5684172edab0bdf7fb8",
"score": "0.7930749",
"text": "def get_usage(subscription_id, unit_type, opts = {})\n data, _status_code, _headers = get_usage_with_http_info(subscription_id, unit_type, opts)\n return data\n end",
"title": ""
},
{
"docid": "ef386d2... |
c657de4b70d266e9a3a784b999ea9e60 | Never trust parameters from the scary internet, only allow the white list through. | [
{
"docid": "5f910b6e9fd79147b27dd4d9d295cb2a",
"score": "0.0",
"text": "def menbership_params\n params.require(:menbership).permit(:userId, :groupId, :encryptedKGV, :admissionDate)\n end",
"title": ""
}
] | [
{
"docid": "3663f9efd3f3bbf73f4830949ab0522b",
"score": "0.7495027",
"text": "def whitelisted_params\n super\n end",
"title": ""
},
{
"docid": "13a61145b00345517e33319a34f7d385",
"score": "0.69566035",
"text": "def strong_params\n params.require(:request).permit(param_whit... |
a49b372747a06f1d272655d0cb318897 | Returns true if the username and password are correct, otherwise a String value for the WWWAuthenticate header. | [
{
"docid": "58a5e1295c455744c502d2c408369129",
"score": "0.0",
"text": "def check_basic_auth(authorization_header)\n basic_auth(authorization_header, 'Project Octopus') do |user, pass|\n @user = Repositories::User.authenticate(user, pass)\n !@user.nil?\n end\n end",
... | [
{
"docid": "d3c6e99581de72b85a0655978fb773ad",
"score": "0.68982375",
"text": "def authenticate\n uri = create_uri(\"#{@server_url}api/authenticate\")\n h = Net::HTTP.new uri.host, uri.port\n req = Net::HTTP::Get.new uri.request_uri\n res = h.request req\n @digest_auth = Net::HT... |
6356125bdf75b83414c71631179efe74 | Trigger a payment for all unpaid invoices | [
{
"docid": "088ae574ceb0b8424098b02720d170b1",
"score": "0.0",
"text": "def pay_all_invoices_with_http_info(account_id, opts = {})\n if @api_client.config.debugging\n @api_client.config.logger.debug \"Calling API: AccountsApi.pay_all_invoices ...\"\n end\n # verify the required par... | [
{
"docid": "af47ededaf8bbd92dedb3bc90be5923f",
"score": "0.72024554",
"text": "def pay_targeted_invoices_first!\n payments.each do |pm|\n if pm.invoice\n @remaining_amounts[pm.invoice.fy_year] ||= Hash.new(0)\n if pm.invoice.canceled?\n @remaining_amounts[pm.invo... |
451c834b2200faa6b6122c033fe0b42d | cart_product.remove Remove product or several products from shopping cart Return: boolean Arguments: int quoteId Shopping Cart Id (Quote Id) array of CartProductEntity an array with list of CartProductEntity mixed (int | string) storeView Store view Id or code (optional) | [
{
"docid": "318d7d1c8c1d0296fd79940f0bef0098",
"score": "0.0",
"text": "def remove(*args)\n commit(\"remove\", *args)\n end",
"title": ""
}
] | [
{
"docid": "7c6d93c477051d05f8a15b631d1c8221",
"score": "0.7412109",
"text": "def remove_product_from_cart(product)\n products.delete(product)\n end",
"title": ""
},
{
"docid": "872dee165758c2301d031b2a44132e78",
"score": "0.6941824",
"text": "def remove_product(*args)\n com... |
b8055ce26c6d021c899776e8b9a39c97 | Sets the access control policy on an instance resource. Replaces any existing policy. | [
{
"docid": "4d4cda4404a41a7d8f497bc044c6ac0b",
"score": "0.73088634",
"text": "def set_instance_policy instance_id, policy\n execute do\n instances.set_iam_policy(\n instance_path(instance_id),\n policy\n )\n end\n end",
"title... | [
{
"docid": "d1dc68ba008b954173556be4501fdb9b",
"score": "0.7583812",
"text": "def set_instance_policy instance_id, policy\n instances.set_iam_policy resource: instance_path(instance_id), policy: policy\n end",
"title": ""
},
{
"docid": "aa9966e1ca37e34adfb03f865f83b93f",
... |
0723c017eb5438a57e9d8e6b397c00d6 | For adding multiple toe docs. | [
{
"docid": "2a8c64afc498dc6fbc8b7c02276a3f44",
"score": "0.0",
"text": "def toe_multi_upload\n @matter=Matter.find_by_id(params[:matter_id])\n params[:document_home][:document_attributes]={}\n params[:document_home][:document_attributes].merge!(:name=> params[:name],:data=>params[:file])\n #... | [
{
"docid": "b5c70384cde8083c8c0afd9aa8fdf8e6",
"score": "0.6664025",
"text": "def add_docs(docs, opts = {})\n multi { docs.each { |doc_id, fields| @redis.call(ft_add(doc_id, fields, opts)) } }\n end",
"title": ""
},
{
"docid": "7ae86cef5b12e3cac70c179d65098eec",
"score": "0.65561193"... |
fbd7df68d7e5ae482afba7656b40be73 | to the node, where the methods that are in the cloud libraries are not. Get the proper system type. | [
{
"docid": "5242bd949fa890901faf5a959dc2dd52",
"score": "0.70949364",
"text": "def system_class\n virt = node.virtualization\n if virt[:role]\n if virt[:role] == \"guest\" && virt[:system] == \"xen\"\n return \"xen-guest\"\n elsif virt[:role] == \"host\" && virt[:system] == \"xen\"\n r... | [
{
"docid": "f2f41b9f2cff43f6963a5774bef1592f",
"score": "0.6537603",
"text": "def platform_type\n return @platform_type\n end",
"title": ""
},
{
"docid": "f2f41b9f2cff43f6963a5774bef1592f",
"score": "0.6537603",
"text": "def platform_type\n re... |
d3198617eac9de3f4062e9e5496648bf | Remove backslashes used to escape tokens (e.g. \ > ) | [
{
"docid": "2109131d55e6465ea37699251408fd86",
"score": "0.7476299",
"text": "def trim_escape_chars(line)\n escapable = '(' + ALL_TOKENS.join('|') + ')'\n line.gsub(/\\\\(?=#{escapable})/, '')\n end",
"title": ""
}
] | [
{
"docid": "404d50af36aeaec0d09cb4f8261f83a6",
"score": "0.74277055",
"text": "def rstrip_except_escapes(string); end",
"title": ""
},
{
"docid": "c4e5f673a406c627900463b9347997ae",
"score": "0.7401423",
"text": "def strip_except_escapes(string); end",
"title": ""
},
{
"d... |
ae1d76946346d6297777005d8c75b7a3 | should return a new equivalent aggregate fn with the argument column(s) mapped via the block given. | [
{
"docid": "696acdcfbf7d7d99de48db5be0e7d9f2",
"score": "0.5802194",
"text": "def map_args(&block)\n self.class.new(@arguments.map(&block), @column_alias)\n end",
"title": ""
}
] | [
{
"docid": "6b364de49fcc6b2fcd093b74f8d93501",
"score": "0.6367127",
"text": "def add_aggregate_field(name, block)\n aggregate_fields[name] = block\n end",
"title": ""
},
{
"docid": "ada25030e2bc393baf4f6031512378c0",
"score": "0.60680455",
"text": "def _aggregate(fun... |
e0fca7a9ddb8bdab643852239dcc22dc | Returns the validation status of response | [
{
"docid": "02d44bf56988ab021363f8a8acabb66c",
"score": "0.0",
"text": "def valid?\n @valid\n end",
"title": ""
}
] | [
{
"docid": "4cdf201e7382eccadb1de001ebb1bb39",
"score": "0.7447003",
"text": "def validation_status\n return nil if cancelled_by_customer?\n\n @validation_status ||= if payload[:raw_post].present? && payload[:mac].present? && valid_notification_data?(payload[:raw_post], payload[:mac])\n ... |
c657de4b70d266e9a3a784b999ea9e60 | Never trust parameters from the scary internet, only allow the white list through. | [
{
"docid": "769f292cff66299c76e4aecc1e726eab",
"score": "0.0",
"text": "def user_params\n params.require(:user).permit(:name, :age)\n end",
"title": ""
}
] | [
{
"docid": "3663f9efd3f3bbf73f4830949ab0522b",
"score": "0.7495027",
"text": "def whitelisted_params\n super\n end",
"title": ""
},
{
"docid": "13a61145b00345517e33319a34f7d385",
"score": "0.69566035",
"text": "def strong_params\n params.require(:request).permit(param_whit... |
6daeb08ebc02c6962676ef53a2799428 | DATE : 09/19/2020 FILE : ruby_method_intro.rb SYNOPSIS : Introduction to using methods in Ruby. | [
{
"docid": "0722133a71acc0cd164587180d3eca28",
"score": "0.0",
"text": "def add_two_numbers a, b\n \n sum = a.to_i + b.to_i\n \n # This part should be in the main body of the program, but we are just starting to learn\n # about methods in Ruby and have not covered returning values from me... | [
{
"docid": "94f4ec37e17036cbee7eb7763bd12fd0",
"score": "0.72221255",
"text": "def hello_ruby\n puts \"Hello Ruby!\"\nend",
"title": ""
},
{
"docid": "a6f32d3b7c689eb49bfffdc53d56b876",
"score": "0.71976095",
"text": "def myMethod\n #method code goes here\n puts \"Learning about R... |
77df5c7d2619ad07b4920aadb93ab5d8 | Ask for formatted date to display logs from a date correctly | [
{
"docid": "89e1d6c07038316424fda6249d30ff02",
"score": "0.0",
"text": "def ask_for_formatted_date pb\n text_reply(pb, \"Please type the date of interest (including the year).\")\n end",
"title": ""
}
] | [
{
"docid": "6e6e46ecc7482c41d2d657102419f13a",
"score": "0.7468868",
"text": "def format_date(date); end",
"title": ""
},
{
"docid": "9029487e434c76a68aa5f48c3a7ec35b",
"score": "0.73064494",
"text": "def showDate( date )\n # check if the date is in a valid format\n dateArr = d... |
1ac7d8065cdf433a8e4c2b5b2adab91c | Render a single sexpr as a tree. | [
{
"docid": "88f81c81d20c0e057eb8a4cd3e0aa09f",
"score": "0.71516013",
"text": "def render_tree(defines, sexpr, extra_args = [])\n Open3.popen2(PP_DOT, \"--expr\", *extra_args) do |input, output|\n puts_defines(input, defines)\n\n input.puts sexpr\n input.close\n\n renderpp(output.read)\n e... | [
{
"docid": "50943cf3bccb30cbde829854f789d3f2",
"score": "0.60180557",
"text": "def render\n tree.render\n end",
"title": ""
},
{
"docid": "55c9c7d377d6deea16a2e994d28c8829",
"score": "0.6008397",
"text": "def tree\n @expression\n end",
"title": ""
},
{
... |
49c7cfe6ad57ac3f7707a7c0c6d0b2a2 | DELETE /passivo_circulante_financeiros/1 DELETE /passivo_circulante_financeiros/1.json | [
{
"docid": "57f328396d043c9dbcae9406da4cb741",
"score": "0.74839234",
"text": "def destroy\n @passivo_circulante_financeiro = PassivoCirculanteFinanceiro.find(params[:id])\n @passivo_circulante_financeiro.destroy\n\n respond_to do |format|\n format.html { redirect_to passivo_circulante_fin... | [
{
"docid": "4c1c164b581dbae14285797e584e8fb7",
"score": "0.70302576",
"text": "def delete_tenant_circle(args = {}) \n delete(\"/tenantcircles.json/#{args[:circleId]}\", args)\nend",
"title": ""
},
{
"docid": "e039c732859969b941534ea940f72d44",
"score": "0.7028431",
"text": "def destr... |
6658c1665878411a691ae13aa9e76836 | GET /st_categoriaprodutos/1 GET /st_categoriaprodutos/1.json | [
{
"docid": "a81945373733e4951b987de6ea99f9a1",
"score": "0.0",
"text": "def show\n end",
"title": ""
}
] | [
{
"docid": "d3cae89ce412b7f8f8b502ff07b2c481",
"score": "0.7134726",
"text": "def index\n @st_categoriaprodutos = StCategoriaproduto.all\n end",
"title": ""
},
{
"docid": "3b14da2700c7434c122273a9a49ef810",
"score": "0.7086648",
"text": "def show\n @categoria_cota = CategoriaC... |
4a4b878897537900a1d19a31932e5ff3 | Returns ERB template file | [
{
"docid": "e2dd2c8ca89c4861a92cd0386ab32d08",
"score": "0.7178693",
"text": "def template\n @template ||= File.read(TEMPLATE_FILE)\n end",
"title": ""
}
] | [
{
"docid": "f174c97af83313a418049604cf48783f",
"score": "0.79826987",
"text": "def erb_template(filename, params = {})\n ERB.new(file(filename), nil, '-').result(Namespace.new(params).get_binding)\nend",
"title": ""
},
{
"docid": "50b35910b84813c38aafb1ef1e8fcd95",
"score": "0.782774",
... |
d791378bc6fc0cf8831ada33f7305256 | GET /fundamental/victory_progresses/new GET /fundamental/victory_progresses/new.json | [
{
"docid": "e2b92888fc86e373562c5c55ce2db854",
"score": "0.63743335",
"text": "def new\n @fundamental_victory_progress = Fundamental::VictoryProgress.new\n\n respond_to do |format|\n format.html # new.html.erb\n format.json { render json: @fundamental_victory_progress }\n end\n end",... | [
{
"docid": "de32ed38f8d1e73212e076d18977e891",
"score": "0.6687477",
"text": "def new\n @progress = @task.progresses.new\n\n respond_to do |format|\n format.html # new.html.erb\n format.json { render json: @progress }\n end\n end",
"title": ""
},
{
"docid": "816a003e66d71... |
b23b40e8be78d9b43d8eccaf8be0997f | Clicks the Calendar link, then instantiates the Calendar class. | [
{
"docid": "4c5a76522f5fcdce28ed5dbf6f041bfb",
"score": "0.8072015",
"text": "def calendar\n @browser.link(:text=>\"Calendar\").click\n Calendar.new(@browser)\n end",
"title": ""
}
] | [
{
"docid": "858da7ba941305dda74a87c4adfbbefe",
"score": "0.6533302",
"text": "def find_calendar_page(area_page)\n\t\tcalendar_page = area_page.link_with(:href => /MonthlyCalendar/)\n\t\tcalendar_page = calendar_page.click\n\tend",
"title": ""
},
{
"docid": "ffccb4eb9200546cf72d6736a064f7a8",... |
ccbd47eac7a609a9040e21efd944ea44 | GET /recipes/1 GET /recipes/1.json | [
{
"docid": "a81945373733e4951b987de6ea99f9a1",
"score": "0.0",
"text": "def show\n end",
"title": ""
}
] | [
{
"docid": "af6ec53ba13a068dc8155bbc36de0ced",
"score": "0.79414284",
"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": "7d28fd8... |
6b4143b40891227898119122627ff4a0 | Returns price discount on specific date | [
{
"docid": "e3feb47f925460b58d2bce6b68211e62",
"score": "0.6283191",
"text": "def price_on(date)\n dates = PRICE_TABLE.keys.sort\n if date <= dates.first\n date = dates.first\n elsif date >= dates.last\n date = dates.last\n else\n # Find correct interval start date\n date... | [
{
"docid": "efe9168bd28a1aba315b2f091f5ee71f",
"score": "0.70795375",
"text": "def discountedPrice(nbDays, pricePerDay, dayThreshold, discount)\n (1 - discount) * (nbDays - dayThreshold) * pricePerDay;\nend",
"title": ""
},
{
"docid": "08c60db502812186da7b0946e5c57f38",
"score": "0.6958... |
c657de4b70d266e9a3a784b999ea9e60 | Never trust parameters from the scary internet, only allow the white list through. | [
{
"docid": "e705d567a909138de53e279ed321a6ae",
"score": "0.0",
"text": "def hole_params\n params.require(:hole).permit(:course_id, :number, :par, :length, :tee_id)\n end",
"title": ""
}
] | [
{
"docid": "3663f9efd3f3bbf73f4830949ab0522b",
"score": "0.7498391",
"text": "def whitelisted_params\n super\n end",
"title": ""
},
{
"docid": "13a61145b00345517e33319a34f7d385",
"score": "0.6958937",
"text": "def strong_params\n params.require(:request).permit(param_white... |
a0f3cd4abca7112d696f8befee910eff | The position= method is used to set a 3D point that the construction passes through | [
{
"docid": "a69a00c35ee52c5b96d07d6a42b82b2a",
"score": "0.7597733",
"text": "def position=(point)\n end",
"title": ""
}
] | [
{
"docid": "bbfe6793de096a153d09a28f8b7b4d84",
"score": "0.7874263",
"text": "def position= position\n @shape.body.p = position\n end",
"title": ""
},
{
"docid": "9f1ef095d64ed3a9d4cd2637bad4d268",
"score": "0.77902555",
"text": "def x=(x) set_position( x,@y,@z); end",
"title... |
197b136efdf6d90e7275f61ec1d6e986 | set the metrics dictionary of the font, making sure the :missing value is set. | [
{
"docid": "cb1d114ba12769a1c33b4f799816b37a",
"score": "0.59277123",
"text": "def metrics=(new_metrics)\n @metrics = new_metrics\n @metrics[:missing] = @metrics.first[1] unless @metrics[:missing]\n end",
"title": ""
}
] | [
{
"docid": "3152253c7ffd30c0f22876792df72e98",
"score": "0.6755993",
"text": "def reset_font_settings(*args, &block)\n super(*args, &block)\n set_data_font(@maqj_font_data_type) if @maqj_font_data_type\n end",
"title": ""
},
{
"docid": "7885a3a725603c184ade7541260a316f",
"score": ... |
801192bee690647b22af48ea99587152 | Creates a new eyes object | [
{
"docid": "e73e2fd2dfee7c5ccede2d63223ac246",
"score": "0.0",
"text": "def initialize(server_url = Applitools::Connectivity::ServerConnector::DEFAULT_SERVER_URL)\n super\n self.base_agent_id = \"eyes.images.ruby/#{Applitools::VERSION}\".freeze\n end",
"title": ""
}
] | [
{
"docid": "f8b7d6fe0b7fb1129640c0ac705d55e0",
"score": "0.69055176",
"text": "def setup\n size 640, 360\n @eyes = [\n Eye.new(420, 230, 220),\n Eye.new(250, 16, 120), \n Eye.new(164, 185, 80)\n ]\n no_stroke\nend",
"title": ""
},
{
"docid": "0b2ea2e53b99bfc383a1cd196d92c50a",
"... |