query_id stringlengths 32 32 | query stringlengths 7 6.75k | positive_passages listlengths 1 1 | negative_passages listlengths 88 101 |
|---|---|---|---|
6e42e0950fcb6c8eaf1820843cbd3b7c | create canned policy that used for signing | [
{
"docid": "af4d274f04801d63c058e620efa52c31",
"score": "0.57338643",
"text": "def canned_policy(resource, expires)\n json_hash = {\n 'Statement' => [\n 'Resource' => resource,\n 'Condition' => {\n 'DateLessThan' => {'AWS:EpochTime' => expires}\n ... | [
{
"docid": "de1809e96275122ae9090777b27f1237",
"score": "0.7238722",
"text": "def generate_policy\n {}\n end",
"title": ""
},
{
"docid": "de1809e96275122ae9090777b27f1237",
"score": "0.7238722",
"text": "def generate_policy\n {}\n end",
"title": ""
},
... |
0448ae8bdb8e02b579baf68623ac6a3b | Public: Helper method which evaluates the object and issues the correct function to find the node described by 'thing' Returns Node found in by searching for thing or nil | [
{
"docid": "4bb83b2135194772e9644c560fa2fabe",
"score": "0.7417997",
"text": "def find(thing)\n case thing\n when Symbol\n find_by_tag(thing)\n when String\n find_by_string(thing)\n when Array\n find_by_string(thing.join(' '))\n when Node\n thing\n end\n end",
... | [
{
"docid": "11ea5bd60e73d53cde044cdab3596d9b",
"score": "0.6398012",
"text": "def find_node(*args)\n node = @nodes.find_node(*args)\n node if context?(node)\n end",
"title": ""
},
{
"docid": "d6348d82defff9eabfa4531b37addd4f",
"score": "0.6368057",
"text": "def get_node(... |
ddfaed29b1a0141b78f3a5867358f03e | Create if necessary and return an appropriate THL container object for the new node, according to the node's class and options selected. A task in THL can only be contained in a list or in another task. So if parent is a folder and note is a task, we need to find or create an auxiliary list to contain it. | [
{
"docid": "9c04f5e8771592a444326273cabf2ac2",
"score": "0.61684537",
"text": "def container_for(node)\n # If its top-level container is nil, it means we need to skip this node\n tlcontainer=top_level_for_node(node)\n return nil unless tlcontainer\n\n # Otherwise, run through the pro... | [
{
"docid": "62a122b1ec83814e865217a6806ae89f",
"score": "0.6494418",
"text": "def build_node (task, parent_id)\n node = {\n :id => task.id,\n :parent => parent_id,\n :text => task.display_name, # TTR-264 update display text\n :state => {\n :opened => true,\n ... |
f08dc94df70635d15e18fcda890cf7fb | Parametros permitidos en las peticiones create, update | [
{
"docid": "22b141888cb0cbfe10197e4fdc8743ca",
"score": "0.0",
"text": "def params_permit\n\t\tparams.require(:stage).permit(:text, :company_id, :person_id)\n\tend",
"title": ""
}
] | [
{
"docid": "74d35be06cbbb26cfc4203b34f69b583",
"score": "0.6589484",
"text": "def create_params\n end",
"title": ""
},
{
"docid": "9c6f4cbcad027e2f6e9f14886429aa12",
"score": "0.6479963",
"text": "def parametros\n end",
"title": ""
},
{
"docid": "4719d4095f790f432f4abe5... |
26db3e3bba2aaa1c5ef8f171081a68b8 | Enable/Disable the magnetometer value : 0 = Disable, 1 = Enable | [
{
"docid": "7917f6955c9b76117ebc4cffdf12efcd",
"score": "0.77463627",
"text": "def enable(value)\n UdooNeoRest::Base.change_state UdooNeoRest::Base.axis_path_enable('Magnetometer'), value\n end",
"title": ""
}
] | [
{
"docid": "5f3ec98e58517966ff6e0a61ea318dee",
"score": "0.7195293",
"text": "def enable(value)\n UdooNeoRest::Base.change_state UdooNeoRest::Base.axis_path_enable('Accelerometer'), value\n end",
"title": ""
},
{
"docid": "a5b08a93bd5bd11010bdd2c197be87c9",
"score": "0.6526427",
... |
f74c29bdfc4a183e1ec1b91334cd5be2 | Use callbacks to share common setup or constraints between actions. | [
{
"docid": "43b75521999f94d84ef80a49d9b29cd5",
"score": "0.0",
"text": "def set_asignacion_familiar\n @asignacion_familiar = AsignacionFamiliar.find(params[:id])\n end",
"title": ""
}
] | [
{
"docid": "bd89022716e537628dd314fd23858181",
"score": "0.61642385",
"text": "def set_required_actions\n # TODO: check what fields change to asign required fields\n end",
"title": ""
},
{
"docid": "3db61e749c16d53a52f73ba0492108e9",
"score": "0.60448",
"text": "def action_hook; ... |
d88ef7b22e6d1d5e3eaa30927e5e6038 | Public: Runs all the vendor segments. options The Hash of options. Returns nothing. | [
{
"docid": "d91fc29f8a722e07fda9dc3b058ea057",
"score": "0.60374933",
"text": "def sync(options = {})\n load_vendorfile\n\n ensure_clean!\n config[:use_upstream_version] = options[:update]\n metadata = metadata_snapshot\n\n each_segment(*options[:segments]) do |mod|\n mod... | [
{
"docid": "1aa030ca05bd2c2813307193585a6523",
"score": "0.5930787",
"text": "def run(options); end",
"title": ""
},
{
"docid": "c707ae0c840916e82e4eda005cd3246d",
"score": "0.5786184",
"text": "def each_segment(*segments)\n # We don't use @segments.each here, because Vendor#run... |
95dd7eb615f74580974bf612c038985b | GET /rses/1 GET /rses/1.xml | [
{
"docid": "cfe2aa305b469554e33ded099e4fcb68",
"score": "0.689662",
"text": "def show\n @rse = Rsis.find(params[:id])\n\n respond_to do |format|\n format.html # show.html.erb\n format.xml { render :xml => @rse }\n end\n end",
"title": ""
}
] | [
{
"docid": "de256e073db783355b77b1293889aec3",
"score": "0.6213773",
"text": "def read(id=nil)\r\n request = Net::HTTP.new(@uri.host, @uri.port)\r\n \r\n if id.nil?\r\n response = request.get(\"#{@uri.path}.xml\") \r\n else\r\n response = request.get(\"#{@uri.path}/#{id}.xml\") ... |
57ec81cbe8309f7b806527633846fd3d | overloads builtin expires_at setter and makes sure that expiry_option is set to :on | [
{
"docid": "0bef88b4a2b630284823e5bbab047c4c",
"score": "0.8413162",
"text": "def expires_at=(value)\n self[:expires_at] = value\n end",
"title": ""
}
] | [
{
"docid": "9eb33a378111fb9ee7ab8fedbf39d7d3",
"score": "0.87967235",
"text": "def set_expires_at\n self[:expires_at] = case self.expiry_option \n when :in then Time.now.utc + (self.expiry_days || DEFAULT_EXPIRY_DAYS).days\n when :on then self[:expires_at]\n else self[:expires_at]\n ... |
242ee8b126030fbb33750403e666a277 | GET /intproducts GET /intproducts.json | [
{
"docid": "34e2b2a45841685ce6082637bb5c610b",
"score": "0.75387543",
"text": "def index\n @intproducts = Intproduct.all\n end",
"title": ""
}
] | [
{
"docid": "0fa532fed121a88fc7e37e254a3d4c29",
"score": "0.72697395",
"text": "def index\n @ice_products = IceProduct.all\n \n respond_to do |format|\n format.html # index.html.erb\n format.json { render json: @ice_products }\n end\n end",
"title": ""
},
{
"docid": "1d... |
d5ad1c5e3e70b02167be0c7c99ecbd7e | reduce 580 omitted reduce 581 omitted | [
{
"docid": "4049ff5814d406cffb6948fd8bcc8cc4",
"score": "0.0",
"text": "def _reduce_582(val, _values, result)\n result = val[1]\n\n result\nend",
"title": ""
}
] | [
{
"docid": "dd458ee5bd7f974c08686357ef463ece",
"score": "0.7380474",
"text": "def _reduce_608(val, _values, result)\n result = nil\n \n result\nend",
"title": ""
},
{
"docid": "ad801b8250ddef70cf7a067f3e475838",
"score": "0.73032784",
"text": "d... |
496f2be9ced168b408bf158e2ade73c1 | Create a Section with Rules Creates a new firewall section with rules. The limit on the number of rules is defined by maxItems in collection types for FirewallRule (FirewallRuleXXXList types). When invoked on a section with a large number of rules, this API is supported only at low rates of invocation (not more than 45... | [
{
"docid": "3dbe4e35668c848016b9d08329325b5d",
"score": "0.76047695",
"text": "def add_section_with_rules_create_with_rules(firewall_section_rule_list, opts = {})\n data, _status_code, _headers = add_section_with_rules_create_with_rules_with_http_info(firewall_section_rule_list, opts)\n return... | [
{
"docid": "ee30d6ce413e9099c4166e82521668a0",
"score": "0.7181581",
"text": "def add_section_with_rules_create_with_rules_with_http_info(firewall_section_rule_list, opts = {})\n if @api_client.config.debugging\n @api_client.config.logger.debug \"Calling API: ServicesApi.add_section_with_rul... |
e34199157d089f528043ebb4149dcba0 | Must be executed within SSHKit context | [
{
"docid": "1a54899b88016cd8f5f71e0346e152c2",
"score": "0.0",
"text": "def config_file\n \"#{release_path}/config/god.god\"\n end",
"title": ""
}
] | [
{
"docid": "2eff295c2c1cea99140ecd8306f7da9f",
"score": "0.6898624",
"text": "def ssh_access\n super\n end",
"title": ""
},
{
"docid": "70b6b892f4981df0a5d4990e05c9c647",
"score": "0.6680897",
"text": "def ssh_access_v2\n super\n end",
"title": ""
},
{
"do... |
b853ad42da8a1db3e91ef33b11237dc1 | Get cart (by return code) Get a cart specified by the return code parameter. | [
{
"docid": "e1108df527a1c425d3f62810b6cc49ab",
"score": "0.7235808",
"text": "def get_cart_by_return_code_with_http_info(return_code, opts = {})\n if @api_client.config.debugging\n @api_client.config.logger.debug 'Calling API: CheckoutApi.get_cart_by_return_code ...'\n end\n # veri... | [
{
"docid": "d631123926d58d3849a341d457814a0b",
"score": "0.7499722",
"text": "def get_cart_by_return_code(return_code, opts = {})\n data, _status_code, _headers = get_cart_by_return_code_with_http_info(return_code, opts)\n data\n end",
"title": ""
},
{
"docid": "0457875ce6174efc... |
8c03e1af6736ca1896e3e4e41ad7fcf9 | POST /messages or /messages.json | [
{
"docid": "478ad345b08f2320e1c763b30b52d05f",
"score": "0.0",
"text": "def create\n @message = current_user.messages.new(message_params)\n\n if @message.save\n redirect_to messages_url, notice: \"メッセージを投稿しました\"\n else\n logger.debug @message.errors\n @messages = ActiveRecord::Ba... | [
{
"docid": "c31738c4d3e8abb88223bb78078be929",
"score": "0.7520461",
"text": "def post_messages(options={})\n post(\"1/messages\", options)\n end",
"title": ""
},
{
"docid": "f0e30f164be0ab5b3abd6b7675410795",
"score": "0.72862077",
"text": "def message(message)\n po... |
4fe9bcf58bd77ee4175706d23897a94b | GET /my_studio/sessions GET /my_studio/sessions.json | [
{
"docid": "66768c429f07ae68afc35e56f5be78fa",
"score": "0.6975455",
"text": "def index\n search = params[:search] || session[:search_my_studio_sessions]\n session[:search_my_studio_sessions] = search\n my_studio = current_user.admin? ? nil... | [
{
"docid": "9b2bcdd62196b9c3401d068609b9da97",
"score": "0.750248",
"text": "def index\n render json: @current_userable.sessions, code: :ok\n end",
"title": ""
},
{
"docid": "db618d530620c6daf72dd8892295a241",
"score": "0.7450229",
"text": "def show\n @my_studio_session = MySt... |
c9aaad101663eb4f6ad441e51fc41037 | Attaches disk to the VM. Typically each VM will have one disk attached at a time to store persistent data; however, there are important cases when multiple disks may be attached to a VM. Most common scenario involves persistent data migration from a smaller to a larger disk. Given a VM with a smaller disk attached, the... | [
{
"docid": "1eee97ff2974f6aced21fe057777dc1d",
"score": "0.7453975",
"text": "def attach_disk(vm_cid, disk_cid)\n @telemetry_manager.monitor('initialize') do\n _init_azure\n end\n with_thread_name(\"attach_disk(#{vm_cid},#{disk_cid})\") do\n @telemetry_manager.monitor('attac... | [
{
"docid": "591e810368e8b6491e0ede21eae488af",
"score": "0.78059894",
"text": "def attach_disk(instance_id, disk_id)\n with_thread_name(\"attach_disk(#{instance_id}, #{disk_id})\") do\n _ = @cloud_core.attach_disk(instance_id, disk_id) do |instance, device_name|\n update_agent_setti... |
47e97df4305dae2acecab71ee5685b57 | Get IPSec local endpoint list result Get paginated list of all local endpoints. | [
{
"docid": "e9f085fd9454cda9d3f07ebfb4ee62e6",
"score": "0.6932046",
"text": "def list_ip_sec_vpn_local_endpoints_with_http_info(opts = {})\n if @api_client.config.debugging\n @api_client.config.logger.debug \"Calling API: VpnApi.list_ip_sec_vpn_local_endpoints ...\"\n end\n if @ap... | [
{
"docid": "ca586acc8b063302ffd3cc7a18ccc6f5",
"score": "0.7281821",
"text": "def list_ip_sec_vpn_local_endpoints(opts = {})\n data, _status_code, _headers = list_ip_sec_vpn_local_endpoints_with_http_info(opts)\n return data\n end",
"title": ""
},
{
"docid": "b3362041a3c2c3e5992... |
b2135831ec0e164206cafd655e483de4 | GET /groups/1 GET /groups/1.json | [
{
"docid": "a81945373733e4951b987de6ea99f9a1",
"score": "0.0",
"text": "def show\n end",
"title": ""
}
] | [
{
"docid": "ddc5510a8c33c7e41542ff382e390405",
"score": "0.7906696",
"text": "def GetGroup id\n\n APICall(path: \"groups/#{id}.json\")\n\n end",
"title": ""
},
{
"docid": "f3e9578633b47f00b29cc0e3faabdcf4",
"score": "0.77682996",
"text": "def groups\n \n \n ... |
a9f106ee6f2194361001a679b5084770 | NOTE move this somewhere else .. | [
{
"docid": "e1d707f10b89f09d77b581f1bb3e7d7e",
"score": "0.0",
"text": "def create_or_update_order\n order = NetsuiteIntegration::Order.new(@config, @payload)\n\n error_notification = \"\"\n summary = \"\"\n\n if order.imported?\n if order.update\n summary << \"Order #{order.exis... | [
{
"docid": "6a6ed5368f43a25fb9264e65117fa7d1",
"score": "0.6555144",
"text": "def internal; end",
"title": ""
},
{
"docid": "33e1db3c06643dd523dcc31fccf3a005",
"score": "0.65371084",
"text": "def used; end",
"title": ""
},
{
"docid": "33e1db3c06643dd523dcc31fccf3a005",
... |
b935ed3c4f02e0947fb6533886dab09d | Add food items produce | [
{
"docid": "84ca15cd6816ca7359fd9e4aa6469754",
"score": "0.0",
"text": "def add_produce (db, name, serving_size, calories, protein, carbs, fat)\n db.execute(\"INSERT INTO produce (name, serving_size, calories, protein, carbs, fat) VALUES (?, ?, ?, ?, ?, ?)\", [name, serving_size, calories, protein, c... | [
{
"docid": "fa336a6074fb8b7157390081d7bdb764",
"score": "0.7051727",
"text": "def add_ingredient_to_recipe quantity, measure, food_item_name, recipe \n food_item = FoodItem.new(:name => food_item_name, :price => nil)\n ingredient = Ingredient.new(:food_item => food_item, :quantity => quantity, :m... |
ceeb33ce9a756100f7e5bd1f693428a2 | Check if the adapter is parallelcapable. | [
{
"docid": "9e3513fc939fe804e7fbc3c0383a4cf8",
"score": "0.0",
"text": "def default_parallel_manager; end",
"title": ""
}
] | [
{
"docid": "ccdeff37f236a123f0ddd5cf23179466",
"score": "0.7480638",
"text": "def in_parallel?\n !!@parallel_manager\n end",
"title": ""
},
{
"docid": "a1d7b46282ee4dd964992764ed41278e",
"score": "0.741211",
"text": "def parallel?\n fail NotImplementedError\n end",
"t... |
327e686ab604f0c26c32e14890409927 | IMPORTANT NOTE: the problem with this solution is that the page offsets cannot be calculated until the parts can figure out how big they are | [
{
"docid": "6dfd1242a0ef20dccfa8fe2665a28c20",
"score": "0.0",
"text": "def write\n parts = [ ]\n parts << parquet_special_string\n\n # write the start file descriptor\n @csv.headers.each do |header|\n # write each data chunk and associated page header\n set... | [
{
"docid": "b9091dc959849d80c2d58134cfe97e39",
"score": "0.649222",
"text": "def calculate_offset(page)\n if page && page != '1'\n (page.to_i - 1) * 20 - 1\n else\n 0\n end\nend",
"title": ""
},
{
"docid": "6127570a39687fe39fe978b09599e760",
"score": "0.6392081",
"text": "de... |
f3bbac86d8ef3bcaf60dfe3e29b796f6 | Greets 'Have a nice dat!' and exits the program | [
{
"docid": "052dc165025b28d8e9aaa983f960552b",
"score": "0.7018409",
"text": "def say_bye_and_exit\n puts\n puts \"\\033[1m\\033[34mHave a nice day!\\033[0m\"\n puts\n exit 0\nend",
"title": ""
}
] | [
{
"docid": "6c94daae720d9dc4c35b661575e7cde5",
"score": "0.7616434",
"text": "def goodbye\n return \"Thanks for playing! See you soon!\".yellow\n system exit\n end",
"title": ""
},
{
"docid": "8327b37c75744acb250bd0ecf228dede",
"score": "0.7477358",
"text": "def quit\n pu... |
3f2add7998610b183029aed46064c775 | Header files found in header_search_paths | [
{
"docid": "0dbd4ab2f3ad9ee0bb34b97334f8e03e",
"score": "0.7383603",
"text": "def header_files\n @header_files ||= find_files( @header_search_paths, @header_file_extension ).uniq\n @header_files\n end",
"title": ""
}
] | [
{
"docid": "a9710f52f0c06add75cff145d43a01a1",
"score": "0.79246235",
"text": "def header_include_paths\n cmd = RbConfig::MAKEFILE_CONFIG[\"CC\"]\n args = %w{-Wp,-v -xc /dev/null -fsyntax-only}\n paths = []\n reading_paths = false\n run_command(cmd, *args) do |line|\n line.chomp!\n if reading... |
9bb0e48d65dbe1b3e9ebd00a0f2c67a0 | print sorter([1, 3, 5, 4, 2]) | [
{
"docid": "b338d31050258d3893c32ba382219540",
"score": "0.6702518",
"text": "def sort_sum_1(array)\n sorter(sum_1(array))\nend",
"title": ""
}
] | [
{
"docid": "b32de61fbc2732cc10802b7a86ce14a0",
"score": "0.7506205",
"text": "def sorter(array)\n array.sort\nend",
"title": ""
},
{
"docid": "dd18ebf0bbc26d738c898e7c0cc873c5",
"score": "0.69757664",
"text": "def lsort( list )\n list.sort\nend",
"title": ""
},
{
"docid... |
c657de4b70d266e9a3a784b999ea9e60 | Never trust parameters from the scary internet, only allow the white list through. | [
{
"docid": "4fcf78630993f929a5f9b64e2b9556df",
"score": "0.0",
"text": "def resource_params\n [params.require(:roster_person).permit(:first_name, :last_name, :email, \n :home_phone, :cell_phone, :work_phone, :alternate_phone, :sms_phone, \n :home_phone_carrier_id, :cell_ph... | [
{
"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... |
1c3f717aa422ffd4b2994e6b54165f77 | Create Undo xml as per the api format . "params" is collection keyvalues, in this "params" hold TransactionId. It returns xml format in string. | [
{
"docid": "47d4d52d5a8aeeb41f1d40910f8f9c4a",
"score": "0.8337454",
"text": "def undoXML(params)\n begin\n Nokogiri::XML::Builder.new do |xml|\n xml.Undo('xmlns:i' => 'http://www.w3.org/2001/XMLSchema-instance', \n 'xmlns' => 'http://schemas.ipcommerce.com/CWS/v2.0/Tra... | [
{
"docid": "28ba7f3dc4e98ee0059363dcd9e1e8f6",
"score": "0.6026714",
"text": "def adjustXML(params)\n begin\n Nokogiri::XML::Builder.new do |xml|\n xml.Adjust('xmlns:i' => 'http://www.w3.org/2001/XMLSchema-instance',\n 'xmlns' => 'http://schemas.ipcommerce.com/CWS/v2.0/Tra... |
ef63c634aa0b810b150cff28700c8d23 | =========================================================================== === ACTIONS =========================================================================== GET /admin/general_configuration/users | [
{
"docid": "a06a5cc92aa06470c89c13fa89cd879d",
"score": "0.0",
"text": "def index\n @show_form = false\n end",
"title": ""
}
] | [
{
"docid": "5485e999d3d23a365abc2adc5676de03",
"score": "0.7469361",
"text": "def get_users\n return @client.raw(\"get\", \"/config/users\")\n end",
"title": ""
},
{
"docid": "ea8a5260c2a34bbb467b656c07acd4ef",
"score": "0.7363542",
"text": "def users(opts={})\n @use... |
39dbbc11644c4407b4e3c104e578923e | Returns symbol with '=' appended. Won't add if already ends in '='. | [
{
"docid": "a23a8a18053b1c0c6043b5d723048a4e",
"score": "0.63689077",
"text": "def to_writer\n s = to_s\n s.end_with?('=') ? self : (s + '=').to_sym\n end",
"title": ""
}
] | [
{
"docid": "835a85d27728d33bb23cb0ca951ba0e6",
"score": "0.5945252",
"text": "def next_symbol_maybe_assign(first_char)\n Token.symbol(if (@characters.peek rescue nil) == '='\n expect_character('=')\n \"#{first_char}=\"\n else\n first_char\n end)\n end",
"title"... |
554e63fa0c140594fa5bc8f062002dc6 | POST /discussion_comments POST /discussion_comments.json | [
{
"docid": "4e99a1d3233c1ed29e4123b55636924e",
"score": "0.7469147",
"text": "def create\n @discussion_comment = DiscussionComment.new(params[:discussion_comment])\n\n respond_to do |format|\n if @discussion_comment.save\n format.html { redirect_to @bounty, notice: 'Discussion comment ... | [
{
"docid": "1e3428ec0373dde7c4254fada30d338c",
"score": "0.7802369",
"text": "def create\n @comment = @discussion.comments.new(params[:comment])\n\n respond_to do |format|\n if @comment.save\n format.html { redirect_to startup_discussion_path(@startup, @discussion), notice: 'comment wa... |
d004d0b3e9d8c517cecb33523314880e | GET /prospecto_ocupaciones GET /prospecto_ocupaciones.json | [
{
"docid": "ff09fc29a92d077363a40c86583fef22",
"score": "0.76253647",
"text": "def index\n @prospecto_ocupaciones = ProspectoOcupacion.all\n end",
"title": ""
}
] | [
{
"docid": "ff979782a50c2c772bedc24504bb3699",
"score": "0.7573239",
"text": "def lista_prospecto\n\t\tprospectos = Prospecto.where(\"tipo = ? and estado_id = ?\", params[:tipo], 2)\n\n\t listaprospectos = prospectos.map do |prospecto|\n\t \tcontenidos = Contenido.find_by(prospecto_id: prospecto... |
969c4d19a839c0e83f4e3ab6ef7af486 | This method is separate for testing purposes. | [
{
"docid": "eb2a0cf61681125bce45dcfc724f28f4",
"score": "0.0",
"text": "def update_average_round_trip_time\n @average_round_trip_time = if average_round_trip_time\n RTT_WEIGHT_FACTOR * last_round_trip_time + (1 - RTT_WEIGHT_FACTOR) * average_round_trip_time\n else\n last_... | [
{
"docid": "6ab77a9219ee157923bc58599ba6aa77",
"score": "0.6695194",
"text": "def in_use; end",
"title": ""
},
{
"docid": "6ab77a9219ee157923bc58599ba6aa77",
"score": "0.6695194",
"text": "def in_use; end",
"title": ""
},
{
"docid": "33e1db3c06643dd523dcc31fccf3a005",
... |
0e6e990142b2cfde89d72d2f380d86eb | PATCH/PUT /barrio_colonia/1 PATCH/PUT /barrio_colonia/1.json | [
{
"docid": "e1b788ebb6ee3fe466a6019b52efdbb2",
"score": "0.66313696",
"text": "def update\n respond_to do |format|\n if @barrio_colonium.update(barrio_colonium_params)\n format.html { redirect_to @barrio_colonium, notice: 'Barrio colonium was successfully updated.' }\n format.json ... | [
{
"docid": "c8d3c357e7781fab17a2bb42cb5b7166",
"score": "0.68160284",
"text": "def update\n @barrio = Barrio.find(params[:id])\n\n respond_to do |format|\n if @barrio.update_attributes(params[:barrio])\n format.html { redirect_to @barrio, :notice => 'Barrio ha sido actualizado.' }\n ... |
60705fcb46d3178daa8a9555985f7e43 | value is a HealthVault::WCData::Types::Groups | [
{
"docid": "6aa9155437dbe660f1e4172df42c054a",
"score": "0.75918186",
"text": "def groups=(value)\n @children['groups'][:value] = value\n end",
"title": ""
}
] | [
{
"docid": "64a1fb304206b1e7aa07c4e805a33371",
"score": "0.74424934",
"text": "def groups=(value)\n @groups = value\n end",
"title": ""
},
{
"docid": "0c088783ddf57434cfe39f25a1f160bc",
"score": "0.67294043",
"text": "def remove_group(value)\n @ch... |
06a29229d3b2151767b49e5eca127e63 | Build the object represented by the message component. | [
{
"docid": "5035c74df3043c73cee522e84b078df0",
"score": "0.0",
"text": "def object\n @value\n end",
"title": ""
}
] | [
{
"docid": "8c9cfa913700481a81deec575186abe9",
"score": "0.71538115",
"text": "def build_message params\n Gnip::Message.build(params)\n end",
"title": ""
},
{
"docid": "1afa8b71f58fd8e2eaf1e12d5b17cdda",
"score": "0.6413797",
"text": "def build\n @build ||= Envelope.... |
f5a52e52b0bd055e4ba7d5c681304ada | MSSQL specific syntax for altering tables. | [
{
"docid": "8dc13dd12322b6ac64d2e88bc23d60ae",
"score": "0.6455023",
"text": "def alter_table_sql(table, op)\n case op[:op]\n when :add_column\n \"ALTER TABLE #{quote_schema_table(table)} ADD #{column_definition_sql(op)}\"\n when :drop_column\n sqls = []\n ... | [
{
"docid": "9457e216096c5838199ebeca50a65a49",
"score": "0.7034653",
"text": "def change_table(table_name, **options); end",
"title": ""
},
{
"docid": "9138f5a2911fbf0a2b4fc1931260531b",
"score": "0.68616223",
"text": "def alter(options)\n Statements::AlterTable.new(context: s... |
a6626c7547351383c5d155f1b26bddc7 | GET /quick_tags/new GET /quick_tags/new.xml | [
{
"docid": "cc68d57cdcb20b0302c70ef62c83b201",
"score": "0.7718688",
"text": "def new\n @quick_tag = QuickTag.new\n\n respond_to do |format|\n format.html # new.html.erb\n format.xml { render :xml => @quick_tag }\n end\n end",
"title": ""
}
] | [
{
"docid": "fce23c3e45b13a344eb8022207ad0861",
"score": "0.7251303",
"text": "def new\n \t\n @tag = Tag.new\n\n respond_to do |format|\n format.html # new.html.erb\n format.xml { render :xml => @tag }\n end\n end",
"title": ""
},
{
"docid": "81db93de04426e5d21da262a0677... |
d3addde5fe7b29f9ec2af353c830caff | TODO: type endpoint description here | [
{
"docid": "2c83a8cfde6e632de7d3d863351c6a03",
"score": "0.0",
"text": "def get_precision_as_optional(precision,\r\n precision1 = nil)\r\n # Prepare query url.\r\n _query_builder = Configuration.base_uri.dup\r\n _query_builder << '/query/precisionAsOptiona... | [
{
"docid": "c6163bd7e4e5188e65863a98b29acc70",
"score": "0.8111788",
"text": "def endpoint; end",
"title": ""
},
{
"docid": "c6163bd7e4e5188e65863a98b29acc70",
"score": "0.8111788",
"text": "def endpoint; end",
"title": ""
},
{
"docid": "c6163bd7e4e5188e65863a98b29acc70",... |
581fad89cfd05520506953b964c3360c | Parse the commandline arguments Returns: the hash of parsed options | [
{
"docid": "9ee4256380bb9e374b1593c39edb9017",
"score": "0.0",
"text": "def parse_args()\n\n # Handle command-line arguments\n options = {}\n optparse = OptionParser.new do |opts|\n\n opts.banner = \"Usage: %s [options]\" % SCRIPT_NAME\n opts.separator \"\"\n ... | [
{
"docid": "0c542700617051be5d17d6e8069e671b",
"score": "0.8098935",
"text": "def parse_options\n setup_command_line_options\n parser = Slop::Parser.new(@opts)\n result = parser.parse(ARGV.dup)\n result.to_hash\n end",
"title": ""
},
{
"docid": "59a2ddd0653f349e608031f... |
8d429470a3b69a1f958f7f40aa218cd2 | DELETE /elastic_slacklines/1 DELETE /elastic_slacklines/1.json | [
{
"docid": "22f14cac404c63902f8b8f4c316223d5",
"score": "0.8381933",
"text": "def destroy\n @elastic_slackline = ElasticSlackline.find(params[:id])\n @elastic_slackline.destroy\n\n respond_to do |format|\n format.html { redirect_to elastic_slacklines_url }\n format.json { head :no_con... | [
{
"docid": "bf4f3e3ef5a2eb3b78ea7d852f3ce4fa",
"score": "0.70820534",
"text": "def destroy\n @line = Line.find(params[:id])\n @line.destroy\n\n respond_to do |format|\n format.html { redirect_to admin_lines_url }\n format.json { head :no_content }\n end\n end",
"title": ""
}... |
2b66b59d97a5e23b1973cdc5b8422df9 | rubocop:disable Metrics/AbcSize rubocop:disable Style/FormatStringToken | [
{
"docid": "71dedbcb24dc593e2ed25daf1b76c862",
"score": "0.0",
"text": "def to_cif\n format('%-80.80s', [\n 'HD',\n format('%-20.20s', file_identity),\n format('%-10.10s', extracted_at&.strftime('%d%m%y%H%M')),\n format('%-7.7s', current_fil... | [
{
"docid": "7a0c5755e945e3a74fb53bcdee96b99c",
"score": "0.64332134",
"text": "def format; :n3; end",
"title": ""
},
{
"docid": "b00a705f536f277605178372565936db",
"score": "0.642874",
"text": "def number_with_formatting\n number_without_formatting\n end",
"title": ""
},
... |
b90dd65d946ae735c7b23f74e21af8a2 | Method to iterate through all items until the Cursor is exhausted. | [
{
"docid": "a742716886a4b99b988538994ca6949c",
"score": "0.6278379",
"text": "def each(offset = 0, &block)\n return to_enum(:each, offset) unless block_given?\n @collection[offset..-1].each { |element| yield(element) }\n unless exhausted?\n offset = [@collection.size, offset].max\n... | [
{
"docid": "b38a84abbda4d50112fe64b6b4dd735c",
"score": "0.7399212",
"text": "def each\n while (cursor = read)\n yield cursor\n end\n end",
"title": ""
},
{
"docid": "05358336a023f29a39277fde0ebb8d0a",
"score": "0.71184194",
"text": "def each\n rewind\n... |
73f25eeda8c23d7183648f5d18276d3d | List all the events which are applicable to this policy holder. | [
{
"docid": "e085e968a2a49aad82f431f258918a80",
"score": "0.7674282",
"text": "def list_policyholder_events(id:)\n get(\"policyholders/#{id}/events\")\n end",
"title": ""
}
] | [
{
"docid": "e985a640640a48b28ed168e69a1e19dd",
"score": "0.7517458",
"text": "def event_list\n @_events\n end",
"title": ""
},
{
"docid": "ea84f2f77bdb0f1ebb221b40dbda90f9",
"score": "0.71954495",
"text": "def list_policy_events(id:)\n get(\"policies/#{id}/events\"... |
c657de4b70d266e9a3a784b999ea9e60 | Never trust parameters from the scary internet, only allow the white list through. | [
{
"docid": "cc966a5e20dfff43f65bf246af5f6c7f",
"score": "0.0",
"text": "def func_params\n params.fetch(:func, {})\n end",
"title": ""
}
] | [
{
"docid": "e164094e79744552ae1c53246ce8a56c",
"score": "0.69792545",
"text": "def strong_params\n params.require(:user).permit(param_whitelist)\n end",
"title": ""
},
{
"docid": "e662f0574b56baff056c6fc4d8aa1f47",
"score": "0.6781151",
"text": "def strong_params\n params.requ... |
ac4505fc15b86c946f20c2bda7554f03 | Return the repository manager URL based on the service offering name, the preference is to return a local repository unless the local repository attribute is nil, if so we point back to IBM's service repository. No validation is done of the URLs, add it to the todo list. | [
{
"docid": "fdd4d47bf3985556ec08850839fc7215",
"score": "0.68723977",
"text": "def repository_for(offering, location = nil)\n case location\n when :local || :online\n repos = uri_join(node[:wpf][location][:repo], offering)\n else # nil\n loc = node[:wpf][:local][:repo].nil? ... | [
{
"docid": "472d6f811c7fe5ffaf99c26e51f80764",
"score": "0.64363897",
"text": "def repository_url\n File.join(store.repositories_root, name)\n end",
"title": ""
},
{
"docid": "b13145a3c73cd51924578d3a8021c215",
"score": "0.6164194",
"text": "def getFullURL(url, manager, name)... |
6712a5e0e633881f5bb06a86195bce7b | Add med list to output stream | [
{
"docid": "1d6f276e0f20e26984f8c913d46f97f5",
"score": "0.61602926",
"text": "def med_dump()\n oralmeds = Array.new\n inhaledmeds = Array.new\n topicalmeds = Array.new\n injectedmeds = Array.new\n\n # separate into routes\n @Meds.each do |key, value|\n if value[0] == \"oral\"\n ... | [
{
"docid": "6cdf7375d10d73d208da5b5b2146cdf4",
"score": "0.5724577",
"text": "def med_list\n list = self.medications.where(active: true)\n list.map{|med| \"#{med.name} #{med.strength} #{med.freq}\"} if list.any?\n end",
"title": ""
},
{
"docid": "a9b93e205598ab1390ec494ebbd7d77a",... |
2a34ee6df48fd67f6eb78de92b3578e5 | convert to string to support symbols | [
{
"docid": "9425035f588c3bd5abe3390871b91ef6",
"score": "0.0",
"text": "def filter=(value)\n # nil and false disable the filter\n return @filter = false unless value # rubocop:disable Lint/ReturnInVoidContext\n\n @filter = value.to_s.downcase\n end",
"title": ""
}
] | [
{
"docid": "37330cde5e558ffe5a9ad264b4a63f54",
"score": "0.7011651",
"text": "def to_s\n symbol\n end",
"title": ""
},
{
"docid": "88f72979f099dcc6554c201d75ec4bf2",
"score": "0.6953633",
"text": "def simple_symbols(str)\n\nend",
"title": ""
},
{
"docid": "aab54... |
f2ae86a226aefbcc26dac8bc3d873650 | Apply ordering strategy from configuration to example groups. | [
{
"docid": "a2e99fd16887f589169fbb4bd3d660bc",
"score": "0.7094742",
"text": "def ordered_example_groups; end",
"title": ""
}
] | [
{
"docid": "7a6aafac738a6e0c70e576762b80f28a",
"score": "0.6459399",
"text": "def define_ordered(group_name, ordering)\n if ordering.nil?\n fail UsageError,\n \"Mock #{@mock.flexmock_name} \" +\n \"is not in a container and cannot be globally ordered.\"\n end\n if... |
2ff31cc6183273c8efe8c64ef6b9a669 | aggiunge una condizione in AND | [
{
"docid": "6639c9075da7dbc6e92a472cf88d7bd6",
"score": "0.0",
"text": "def where(condition)\n @where ||= []\n @where << condition\n self\n end",
"title": ""
}
] | [
{
"docid": "d09b159792f71db720848748e4bd8312",
"score": "0.72964656",
"text": "def and\n @sql += 'AND'\n\n self\n end",
"title": ""
},
{
"docid": "ed314fb64d5d02f95c74b6435425171b",
"score": "0.7251158",
"text": "def and_clause(*args)\n if args.length > 1\n \"(\"... |
8b854dda3874514ca3c7756f6aef4176 | load code from the specified file if the file has changed since the last load | [
{
"docid": "8c8de1fe6496bf1a33d09be492be354a",
"score": "0.69330597",
"text": "def dynamic_load(file) # FilePair\n\t\tbegin\n\t\t\t# NOTE: file timestamps only have 1 sec resolution, so there may be a slight delay when attempting to reload more than once per second.\n\t\t\tif file.changed?\n\t\t\t\tfile... | [
{
"docid": "4e66013d9be6d3d8a0dc75bfe2e56b40",
"score": "0.6893627",
"text": "def before_safe_load(file)\n Log.debug(\"reload #{file}\")\n end",
"title": ""
},
{
"docid": "686b86e5e24c508e639a0c6f902067a7",
"score": "0.6891992",
"text": "def reload_special(file)\n re... |
9759499ff3f5d84be28a99a076cde1ef | Creates an app profile within an instance. | [
{
"docid": "213fe60bc0b0c6fb6f4e1281967d0033",
"score": "0.8122086",
"text": "def create_app_profile \\\n instance_id,\n app_profile_id,\n app_profile,\n ignore_warnings: nil\n execute do\n instances.create_app_profile(\n insta... | [
{
"docid": "1d499045f8dde2f271968c4e90f7ef95",
"score": "0.8419932",
"text": "def create_app_profile instance_id, app_profile_id, app_profile, ignore_warnings: nil\n instances.create_app_profile parent: instance_path(instance_id),\n app_profile_id:... |
0b2808d01b71610693d05307db95eacc | pop an element off the stack | [
{
"docid": "c8e495cd14295f3e951498483ee7e2a6",
"score": "0.8270339",
"text": "def pop\n @stack.pop\n end",
"title": ""
}
] | [
{
"docid": "fe8da76f3645592a1d7ef27dfb045b35",
"score": "0.8504224",
"text": "def stack_pop\n if @next_stack_element\n @next_stack_element.stack_pop\n else\n stack_remove\n end\n end",
"title": ""
},
{
"docid": "e658a1677872f90afd58ef1dc4146e46",
... |
c657de4b70d266e9a3a784b999ea9e60 | Never trust parameters from the scary internet, only allow the white list through. | [
{
"docid": "511cc87f56e4189b4bb9df0db42d25b0",
"score": "0.0",
"text": "def release_gate_params\n params.require(:release_gate).permit(:code, :description)\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... |
2f2bce319438cd9d8fb52aacfb6dc60f | This method returns a list of unassigned donations which are similar to this one (made by the same user via Paypal or via Bank) | [
{
"docid": "9ee498b8c69d43d0b3b4a0526282b120",
"score": "0.74556136",
"text": "def related_unassigned_donations\n scope = Donation.where(\"id != ?\", @donation.id).where(:donor_id => nil)\n if !@donation.bank_reference.blank? && !@donation.bank_reference.to_s.mb_chars.downcase.to_s.strip.in?(BANK_... | [
{
"docid": "6a4dab9cd122816cfd74855c2858bfd6",
"score": "0.689872",
"text": "def related_assigned_donations\n scope = Donation.where(\"id != ?\", @donation.id).where(:donor_id => @donation.donor_id)\n if !@donation.bank_reference.blank?\n scope.where(:bank_reference => @donation.bank_referenc... |
13a8576798d37e43ee4b0bb06df385f9 | cooler way with using recurion and math approach (from someoe else) | [
{
"docid": "d8c2d5ee730b679c6c86760842b00b45",
"score": "0.61948955",
"text": "def recur(x,i)\n return x if i == 0\n x = 2*x +1\n recur(x,i-1)\nend",
"title": ""
}
] | [
{
"docid": "34d7665259a4aa4de07657def691f1f2",
"score": "0.6781408",
"text": "def broken_calc(x, y)\n operations = 0\n until y == x\n return x - y + operations if y < x\n y = y.even? ? y/2 : y+1 \n operations += 1\n end\n operations\nend",
"title": ""
},
{... |
27f41d82047f9679be6d58426ee73c97 | Returns true if the user own the +sym+ role example user.role? :admin => true if the user has the admin role user.role? "admin" => true | [
{
"docid": "3a9b0d47dd03daec9a9ca8e368337f48",
"score": "0.83714044",
"text": "def role?(sym)\n roles.include? sym.to_sym\n end",
"title": ""
}
] | [
{
"docid": "481ca330c0a741eda6d60621cecfd7fa",
"score": "0.848914",
"text": "def has_role?(role_sym)\n if self.user_role.name.downcase.to_sym == role_sym.downcase\n return true\n else\n return false\n end\n end",
"title": ""
},
{
"docid": "88b4f960b42b4ad3c521384f05e0d34e... |
1bd736dfa537470c6ac42998d8451004 | DELETE /next_lectures/1 DELETE /next_lectures/1.json | [
{
"docid": "e0e290d8abf43bab14f6c362c733ebd3",
"score": "0.7745628",
"text": "def destroy\n @next_lecture = NextLecture.find(params[:id])\n @next_lecture.destroy\n\n respond_to do |format|\n format.html { redirect_to next_lectures_url }\n format.json { head :no_content }\n end\n e... | [
{
"docid": "ea87f6f54c78f33e0ba72f248f7902d5",
"score": "0.7595641",
"text": "def destroy\n @lecture.destroy\n\n head :no_content\n end",
"title": ""
},
{
"docid": "d07682f642076ecb876129ea6cb92f2b",
"score": "0.7406227",
"text": "def destroy\n # @lecture = Lecture.find(par... |
b7eb39465147540bd5bdc14924a49e38 | Returns the owner id according to what's | [
{
"docid": "7b76b8d883115e8397927691a47ad082",
"score": "0.7039409",
"text": "def strongbolt_owner_id\n raise ModelNotOwned unless self.class.owned?\n\n send self.class.owner_attribute\n end",
"title": ""
}
] | [
{
"docid": "e5fc788030d560bc907a7ebdda6fdf6e",
"score": "0.8432602",
"text": "def owner_id\n data[:owner_id]\n end",
"title": ""
},
{
"docid": "e5fc788030d560bc907a7ebdda6fdf6e",
"score": "0.8432602",
"text": "def owner_id\n data[:owner_id]\n end",
"title": ""
}... |
12016aa3568c5fcca10e22b0161bde53 | regresa el id de la vista que continua | [
{
"docid": "dfb3547ca2603bca659b6a1a82eb09ea",
"score": "0.0",
"text": "def getNext(next_val, restriction, next_restriction)\n #if restriction.to_i == -20 && !session[:is_business_home] \n # next_restriction\n \tif restriction.to_i == -20 && session[:uso_de_suelo]\n \t\tnext_restriction\n \tel... | [
{
"docid": "20eb75dea8b64ef677c28820e90e7523",
"score": "0.6657759",
"text": "def id=(v)\r\n @id = v\r\n end",
"title": ""
},
{
"docid": "2d3d6666bce0c47810677715766edb69",
"score": "0.65356755",
"text": "def set_veiculo\n @veiculo = Veiculo.find(params[:id])\n end",
... |
717a872a5906ba2ba00a5d9f970f99ba | POST /convos POST /convos.json | [
{
"docid": "4ae520fe8320c99a66f5b893de202a93",
"score": "0.5230534",
"text": "def create\n @convo = Convo.new(params[:convo])\n @convo.user_id = current_user.id\n upmerituser(current_user, 10)\n respond_to do |format|\n if @convo.save\n format.html { redirect_to convo_posts_url(:... | [
{
"docid": "4d5176dcd540b61ba9cc58deba954e30",
"score": "0.61609834",
"text": "def create\n @consorciot = Consorciot.new(consorciot_params)\n\n respond_to do |format|\n if @consorciot.save\n format.html { redirect_to @consorciot, notice: 'Consorciot was successfully created.' }\n ... |
d72f484f3e1f6f4f0de0acd13a29b961 | using Enumberablesort_by (not sure if this is allowed...): | [
{
"docid": "ab6a3c910f09619384056015fb3c4ab1",
"score": "0.0",
"text": "def max_by(arr)\n arr.sort_by { |elem| yield(elem) }.last\nend",
"title": ""
}
] | [
{
"docid": "5e58770e90ee3fc676b1ba993c7ef3fb",
"score": "0.6958626",
"text": "def stable_sort_by(list); end",
"title": ""
},
{
"docid": "1526fcd6ca5a8eebdf4432b341d31250",
"score": "0.69513065",
"text": "def bigSorting(unsorted)\n\nend",
"title": ""
},
{
"docid": "b66eefe... |
f29f0bc2e708f7ba3dae4e4ac1767a98 | Gets the principalType property value. The type of the assigned principal. This can either be User, Group, or ServicePrincipal. Readonly. | [
{
"docid": "623fa2908abf81ce21f68d064102c7c5",
"score": "0.800614",
"text": "def principal_type\n return @principal_type\n end",
"title": ""
}
] | [
{
"docid": "82ca9fb645e664638ccfa86914c57f98",
"score": "0.76739085",
"text": "def principal_type=(value)\n @principal_type = value\n end",
"title": ""
},
{
"docid": "14d168fdada209abdd1a01644b6d4e0a",
"score": "0.75524175",
"text": "def service_principal_ty... |
d4aac91e9d5a71e6f8a7bcdd9b6bba74 | Creates a key for a pivotname/key combo. | [
{
"docid": "171bcb94fc64688a96d960cb4c7ceba2",
"score": "0.0",
"text": "def goldmine_key(name, key)\n goldmine_key = { name => key } if name\n goldmine_key ||= key\n end",
"title": ""
}
] | [
{
"docid": "7f8d515d3f8d62485dee7d3e3dd6480e",
"score": "0.6871597",
"text": "def create_hash_key(key)\n key\n end",
"title": ""
},
{
"docid": "c0d3c0209c50295c5e7b51fe45713bde",
"score": "0.65547",
"text": "def mkKey(funcName)\n (funcName.to_s + 'Key').to_sym\nend",
"title"... |
af33d530af2f763a6c064cfd51750e71 | gets parent from number of levels above | [
{
"docid": "4b567ca034208f7eaf6421a6187905ac",
"score": "0.75185686",
"text": "def get_parent(generation_level)\n return self if root? || generation_level <= 0\n parent.get_parent(generation_level-1)\n end",
"title": ""
}
] | [
{
"docid": "f7e7fec1544000a963dd24f69255a102",
"score": "0.7968031",
"text": "def get_level\n level = 1\n p = parent\n while !p.nil?\n level += 1\n p = p.parent\n end\n \n return level\n end",
"title": ""
},
{
"docid": "48f8fb066fc72c295685e8a2936fde2c",
"sco... |
f74c29bdfc4a183e1ec1b91334cd5be2 | Use callbacks to share common setup or constraints between actions. | [
{
"docid": "9f54c04dfc30329d5c17853b00490723",
"score": "0.0",
"text": "def set_status\n @status = Status.find(params[:id])\n end",
"title": ""
}
] | [
{
"docid": "bd89022716e537628dd314fd23858181",
"score": "0.6163443",
"text": "def set_required_actions\n # TODO: check what fields change to asign required fields\n end",
"title": ""
},
{
"docid": "3db61e749c16d53a52f73ba0492108e9",
"score": "0.604317",
"text": "def action_hook; ... |
4875d7c69127efc8a5c5c7b901f0bcb4 | ::: :::::::: random_select.rb :+: :+: :+: +:+ +:+ +:+ | [
{
"docid": "a9688fdf8c34c36c46818ba9ffde6f88",
"score": "0.6658472",
"text": "def random_select(array, n)\n\tnew_array = []\n\twhile n > 0\n\t\tnew_array << array[rand(array.length + 1)]\n\t\tn -= 1\n\tend\n\treturn new_array\nend",
"title": ""
}
] | [
{
"docid": "ecea507301fc779b0576857540f5e334",
"score": "0.7425274",
"text": "def random_select(array, n)\nrandom = []\n n.times do\n random << array.sample\n array.shuffle\nend\nrandom \nend",
"title": ""
},
{
"docid": "8dc8da937c6c0b8ec23ce836ce64ebaa",
"score": "0.7309284",
... |
f74c29bdfc4a183e1ec1b91334cd5be2 | Use callbacks to share common setup or constraints between actions. | [
{
"docid": "9bef5210357e78e098dd1179006c5c30",
"score": "0.0",
"text": "def set_location\n @location = Location.friendly.find(params[:id])\n end",
"title": ""
}
] | [
{
"docid": "631f4c5b12b423b76503e18a9a606ec3",
"score": "0.60315156",
"text": "def process_action(...)\n run_callbacks(:process_action) do\n super\n end\n end",
"title": ""
},
{
"docid": "7b068b9055c4e7643d4910e8e694ecdc",
"score": "0.6018921",
"text": "de... |
c657de4b70d266e9a3a784b999ea9e60 | Never trust parameters from the scary internet, only allow the white list through. | [
{
"docid": "da2d61beb15aed42552f948cbe740377",
"score": "0.0",
"text": "def order_params\n params.require(:order).permit(:good_id, :quantity, :description)\n end",
"title": ""
}
] | [
{
"docid": "3663f9efd3f3bbf73f4830949ab0522b",
"score": "0.7496024",
"text": "def whitelisted_params\n super\n end",
"title": ""
},
{
"docid": "13a61145b00345517e33319a34f7d385",
"score": "0.69581187",
"text": "def strong_params\n params.require(:request).permit(param_whit... |
a28e478681ac9d29c5dd796aa824781d | PATCH/PUT /users/1 PATCH/PUT /users/1.json | [
{
"docid": "e3c9edc488c7f51044f38eada523c29e",
"score": "0.0",
"text": "def update\n respond_to do |format|\n if @user.update(user_params)\n unless session[:user_is_admin?]\n session[:user_skill_ids] = params[:skill_ids].nil? ? nil : params[:skill_ids].map{ |elem| elem.to_i }\n ... | [
{
"docid": "23a904e6ddd4b6b07c4b53353e78cf93",
"score": "0.7225487",
"text": "def update\n render json: User.update(params[\"id\"], params[\"user\"])\n end",
"title": ""
},
{
"docid": "4781fa7337315133553edb54194e6202",
"score": "0.71291554",
"text": "def update\n render json:... |
ccc668e9d5fdbe0570b98ed11922bd7f | Allowed parameters for GET requests on root URL. | [
{
"docid": "18579aadf113fd44b956324b39e63204",
"score": "0.0",
"text": "def search_params\n params.permit(:name, :age)\n end",
"title": ""
}
] | [
{
"docid": "1f9351ac63df54e66e0e953e3b81d5f1",
"score": "0.6702984",
"text": "def params\n request.GET\n end",
"title": ""
},
{
"docid": "cf06302bfac61e5b1a66df4691b4a72e",
"score": "0.6487673",
"text": "def GET; end",
"title": ""
},
{
"docid": "98675e5ce5... |
5f274c869e4d879ef3d9d3842e7cd27c | Perform any statement preprocessing required. This is used to perform reference counts and determine required prefixes. | [
{
"docid": "3f34855dec72618d5e7310847a7b1ffc",
"score": "0.5533585",
"text": "def preprocess_statement(statement)\n super\n get_pname(statement.graph_name) if statement.has_graph?\n end",
"title": ""
}
] | [
{
"docid": "5f58b1e8c9024ca4afab9750c19b1827",
"score": "0.6860421",
"text": "def preprocess\n # Load defined prefixes\n (@options[:prefixes] || {}).each_pair do |k, v|\n @uri_to_prefix[v.to_s] = k\n end\n @options[:prefixes] = {} # Will define actual used when matched\n\n ... |
1ade74517859d2045a7df0452f04e948 | Calling .disconnect can cause a running subscribe() to block forever Therefore try to acquire the lock | [
{
"docid": "32577f5de4905dc0c221f4b4b31af5b6",
"score": "0.0",
"text": "def soft_disconnect(redis, client, role)\n has_lock = redis_mon_try_enter(redis)\n\n if !has_lock\n begin\n client.connection.shutdown_socket\n rescue => e\n logger&.warn \"Redis... | [
{
"docid": "59e25f50b974b4f6dae9213756af4776",
"score": "0.666361",
"text": "def notify_connected!\n @connected_latch.release\n end",
"title": ""
},
{
"docid": "0b0797b45681a20ff4e1f1bac37a360e",
"score": "0.63390815",
"text": "def disconnect!\n synchronize do\n @... |
3af432d5f866638a608d3d8e407e1e76 | Method to add an item to a list input: item name and optional quantity steps: take item and quantity into a keyvalue pair output: updated hash | [
{
"docid": "88c20ac4f3ebe151a4ec1b6891ae9c8d",
"score": "0.80341256",
"text": "def add_item(input_list, input_item, input_quantity)\n input_list[input_item] = input_quantity\n p input_list\nend",
"title": ""
}
] | [
{
"docid": "4055425147ef573bb65b4a03a49055e0",
"score": "0.8811389",
"text": "def add_to_list(list, item, quantity)\n# steps: set itemname as key and optional quantity as value\n\tlist[item] = quantity\n# output: hash containing the added item\n\tp list\nend",
"title": ""
},
{
"docid": "8688... |
16e5365322888c9e999729f592f20364 | GET /people/1 GET /people/1.json | [
{
"docid": "a81945373733e4951b987de6ea99f9a1",
"score": "0.0",
"text": "def show\n end",
"title": ""
}
] | [
{
"docid": "ceff4753a00843a8de33f099e86535f4",
"score": "0.73654115",
"text": "def show\n @person = Person.find(params[:id])\n\n respond_to do |format|\n format.json { render :json => @person }\n end\n end",
"title": ""
},
{
"docid": "e385dbbc66b18d2cc68aaa5bf83b2798",
"sc... |
ae344a38a4005b75ae058c1d060fbafa | GET /recibo_sueldos GET /recibo_sueldos.xml | [
{
"docid": "07482e5e0573fa1efd6daea92dd8cc52",
"score": "0.6460165",
"text": "def index\n #@recibo_sueldos = @liquidacion.recibo_sueldos.all\n @search = @liquidacion.recibo_sueldos.search(params[:search])\n @recibo_sueldos = @search.page(params[:page]).per(10)\n\n respond_to do |format|\n ... | [
{
"docid": "5fa86d4475a4ee00fe1afd59185b091f",
"score": "0.66272116",
"text": "def index\n @detalle_recibo_habers = @recibo_sueldo.detalle_recibo_habers.all\n\n respond_to do |format|\n format.html # indexoo.html.erb\n format.xml { render :xml => @detalle_recibo_habers }\n end\n end... |
f581c61f11472ed4b2f8ff6322c98ed9 | Processes the csv input and creates the parsed drivers nad passengers. | [
{
"docid": "2972fdf897b2de27eeb33ec0545addcf",
"score": "0.59034485",
"text": "def process_trip_travellers(csv_file)\n\n persons = get_travellers_from_csv(csv_file)\n\n travellers = []\n\n persons.each_with_index do |person, i|\n coordinates = GoogleAPIGeocoder.do_geocode(person[2])\n ... | [
{
"docid": "770723a3dd9514141d4395fd20d01975",
"score": "0.5886317",
"text": "def load_drivers_from_csv(filename)\n drivers = []\n CSV.read(filename, headers: true).each do |line|\n driver_input_data = {}\n driver_input_data[:id] = line[0].to_i\n driver_input_data[:vin] = ... |
b23de4e3bbc0ee14093dde102e50ecef | called inside the DELETE transaction for a given entity. this is called first thing before rows are deleted for each table of the repo. | [
{
"docid": "7f52b48b11079c6b7ae9c024e9f9d83a",
"score": "0.795962",
"text": "def pre_delete(entity)\n end",
"title": ""
}
] | [
{
"docid": "ff983f9449277f7c06958132faf67e05",
"score": "0.80753183",
"text": "def pre_delete(_entity)\n end",
"title": ""
},
{
"docid": "a70ff8f7fcc59ee523c39f111354c16b",
"score": "0.7635269",
"text": "def post_delete(_entity)\n end",
"title": ""
},
{
"docid":... |
9e21c8e497de246aa6621a6fd64862b4 | words, and returns the given string with all five or more letter words reversed. Each string will consist of only letters and spaces. Spaces should be included only when more than one word is present. | [
{
"docid": "5b227ffd30b113d70ee2d157fa793ea3",
"score": "0.81207377",
"text": "def reverse_words(string)\n reversed_string = string.split.map do |word|\n word.size >= 5 ? word.reverse : word\n end\n reversed_string.join(' ')\nend",
"title": ""
}
] | [
{
"docid": "dcc0b12b09d70052d598cc906bff82b6",
"score": "0.8387438",
"text": "def reverse_words(string)\n words = string.split.each do |word|\n words = word.reverse! if word.length >= 5\n end\n words.join(' ')\nend",
"title": ""
},
{
"docid": "34b3a34570351713dc0bb043f64cfcbf",
"sc... |
d7a624656f264afc3495c12337ddbf9c | Calculate the git sha for the given ref. | [
{
"docid": "00b17800c0f972819dec74ecd374b86f",
"score": "0.8327722",
"text": "def sha_for_ref(repo, ref)\n Dir.chdir(remote_path(repo)) do\n shell_out(\"git show-ref #{ref}\").stdout.split(/\\s/).first\n end\n end",
"title": ""
}
] | [
{
"docid": "fb23642eed583cfbe001806a665ea14c",
"score": "0.8305121",
"text": "def sha_for_ref(repo, ref)\n Dir.chdir(File.join(remotes, repo)) do\n git(\"show-ref #{ref}\").stdout.split(/\\s/).first\n end\n end",
"title": ""
},
{
"docid": "86a0f4f4fe6ed3d000f348d5... |
e9497d20fe9a89da2b60bf22b8329d77 | DELETE /appellation_wineries/1 or /appellation_wineries/1.json | [
{
"docid": "b176ffd45cadc58d7b6ca6a679a4d763",
"score": "0.7232797",
"text": "def destroy\n @appellation_winery.destroy\n respond_to do |format|\n format.html { redirect_to appellation_wineries_url, notice: \"Appellation winery was successfully destroyed.\" }\n format.json { head :no_con... | [
{
"docid": "3c4e6b60e9313b6ff0eab5bc5aae0914",
"score": "0.6484498",
"text": "def destroy\n @apatient.destroy\n respond_to do |format|\n format.html { redirect_to apatients_url }\n format.json { head :no_content }\n end\n end",
"title": ""
},
{
"docid": "1087372d9005a11f4... |
1ff3c04a3bdf65e49eebcf2c175545dd | Return a few fields to represent this record on a summary page. Return fields for: Type ie. primary record type Subtype ie. secondary record type Key Name | [
{
"docid": "fc1938552f8f496ccd52840a0aa008bc",
"score": "0.7347353",
"text": "def get_summary\n unless valid?\n return {\n :Type => '',\n :Subtype => '',\n :Key => '',\n :Name => '',\n }\n end\n fields = {}\n fields[:Type], fields[:Subtype] = r... | [
{
"docid": "12d6c1a1ed6e7d354507ab153b07611a",
"score": "0.6620132",
"text": "def fields\n configuration.show_fields_for([display_type])\n end",
"title": ""
},
{
"docid": "1cdaeffb3bd75904e1c50bbc3e41133a",
"score": "0.6311054",
"text": "def summary()\n\t\tdata = {}\n\t\tdata... |
14aecb379ab66f4da3064b84cf9c171b | SVG Changes the fill color of the SVG drawing. | [
{
"docid": "261450a3151d7dd9bd7bd9f0a5a89eb5",
"score": "0.77918327",
"text": "def set_svg_fill_color(xml, color)\n # Find all primitives.\n primitives = ['path', 'circle', 'rect', 'line', 'ellipse', 'polyline', 'polygon', 'text']\n \n # Strip existing fills.\n primitives.each do |primiti... | [
{
"docid": "4e116270480fffd4d9943fbc01404bbe",
"score": "0.69544166",
"text": "def fill(color)\n @style[:fill] = color\n end",
"title": ""
},
{
"docid": "a6f03a7e4e7a8b2dce83dc072be53f08",
"score": "0.63023454",
"text": "def fill_color(color)\n end",
"title": ""
},
... |
d3b2b36c34ff257472e3638dfab1f8c2 | Accessor for the ID | [
{
"docid": "78642092aba1dcdd982251f06f6926f8",
"score": "0.0",
"text": "def id\n @id || document.unitid\n end",
"title": ""
}
] | [
{
"docid": "1a17f3472a115e921a2d146999e5be22",
"score": "0.8552119",
"text": "def id\n regular_reader('id')\n end",
"title": ""
},
{
"docid": "ccc6512da4bd31d1734ca0906671d702",
"score": "0.8305657",
"text": "def id\n read_attr :id\n end",
"title": ""
},
{
"do... |
92fab1287261c2a57a2eb3820194913d | Returns a ResultSet object containing _every record_ in the table associated with this layout. | [
{
"docid": "7a825827a2c4795d6e0f8fd107b5812e",
"score": "0.0",
"text": "def all(options = {})\n get_records('-findall', {}, options)\n end",
"title": ""
}
] | [
{
"docid": "ca3b4bd8a34edc8dd07f3e16845790f6",
"score": "0.7270832",
"text": "def all\n results = CONNECTION.execute(\"SELECT * FROM #{tablename}\")\n \n self.results_as_objects(results)\n end",
"title": ""
},
{
"docid": "3f5842456027d3bd045328ba48efbd2c",
"score": "0.7191838",... |
f74c29bdfc4a183e1ec1b91334cd5be2 | Use callbacks to share common setup or constraints between actions. | [
{
"docid": "f7758f74d47c4da4f8ec99135000debb",
"score": "0.0",
"text": "def set_collaborator\n @collaborator = Collaborator.find(params[:id])\n end",
"title": ""
}
] | [
{
"docid": "bd89022716e537628dd314fd23858181",
"score": "0.6163163",
"text": "def set_required_actions\n # TODO: check what fields change to asign required fields\n end",
"title": ""
},
{
"docid": "3db61e749c16d53a52f73ba0492108e9",
"score": "0.6045976",
"text": "def action_hook;... |
f74c29bdfc4a183e1ec1b91334cd5be2 | Use callbacks to share common setup or constraints between actions. | [
{
"docid": "87d3f6d85673329759a5d9bc5caef63a",
"score": "0.0",
"text": "def set_dc_user\n @dc_user = Dc::User.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... |
3a6ea87e8e09bd0a4ce509a541935138 | Draws a line from +p1+ to +p2+ on the given canvas object, in the given color. The coordinates of the given points are clamped (naively) to lie within the canvas' bounds. | [
{
"docid": "d21eabb7ffec2092ae1fe1f099c3678f",
"score": "0.80848545",
"text": "def line(canvas, p1, p2, color)\n canvas.line(\n clamp(p1[0].round, 0, canvas.width-1),\n clamp(p1[1].round, 0, canvas.height-1),\n clamp(p2[0].round, 0, canvas.width-1),\n clamp(p2[... | [
{
"docid": "ddfef65148f5d56ef206161e414933e3",
"score": "0.75190896",
"text": "def draw_line(x1, y1, x2, y2, color)\n validate_coordinates!(x1, y1, x2, y2)\n validate_color!(color)\n\n area.draw_line(x1: x1, y1: y1, x2: x2, y2: y2, color: color)\n end",
"title": ""
},
{
"docid": "3... |
c657de4b70d266e9a3a784b999ea9e60 | Never trust parameters from the scary internet, only allow the white list through. | [
{
"docid": "564be565c3203f0328916b8545cc3f2d",
"score": "0.0",
"text": "def crf_info_params\n params.require(:crf_info).permit(:name, :description, :seq, :crf_type, :follow)\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... |
68173573975d88ea3b71ce52cf92d05a | Maze Traversal: write a function that takes in a maze (represented as a 2D matrix) and a starting position (represented as a 2dimensional array) and returns the minimum number of steps needed to reach the edge of the maze (including the start). Empty spots in the maze are represented with ' ', walls with 'x'. For examp... | [
{
"docid": "995601c6642346c6b6a5f70172f93848",
"score": "0.58886194",
"text": "def maze_escape(maze, start)\n end",
"title": ""
}
] | [
{
"docid": "4d3291fe8a2574199b8c86586b93540d",
"score": "0.7033818",
"text": "def maze_escape(maze, start)\n return @str_cache[start[0]][start[1]] if @str_cache[start[0]][start[1]]\n\n starts_at_zero = start.any?(&:zero?)\n starts_near_end = start[0] == maze.length - 1 || start[1] == maze[0].le... |
21cdf8c48aa699a0bb496db73a3be687 | Builds a single blank match. If bye is true then creates a 1 for second bot | [
{
"docid": "d3b51ff5bcc72a52c6ef9b2def98c78c",
"score": "0.7350956",
"text": "def build_blank_match(current_round, t_id, bye=false)\n second_bot = (bye ? -1 : 0)\n @match = Match.new(\n\t:first_bot_from_match => 0,\n \t:second_bot_from_match => second_bot,\n\t:round => 1,\n\t:first_bot_round1_score... | [
{
"docid": "62d24559e166eeaae72a9c4739a53269",
"score": "0.616665",
"text": "def build_blank_tournament(num_bots, t_id)\n\tround = 1\n\t(1..num_bots/2).each do |bot_cnt|\n\t build_blank_match(round, t_id)\n\tend\n\tif num_bots % 2 == 1 then # odd\n\t build_blank_match(round, t_id, true)\n\tend\n ... |
032d65124804142860acacc07c9da59e | DELETE /allowedvalueslevels/1 DELETE /allowedvalueslevels/1.json | [
{
"docid": "034131a61eb46f50359bfb673d69cf77",
"score": "0.7670816",
"text": "def destroy\n @allowedvalueslevel.destroy\n respond_to do |format|\n format.html { redirect_to allowedvalueslevels_url, notice: 'Allowedvalueslevel was successfully destroyed.' }\n format.json { head :no_conten... | [
{
"docid": "abaa4f41d48e670b4a405a724a9c5be8",
"score": "0.6776056",
"text": "def destroy\n @complexitylevel.destroy\n respond_to do |format|\n format.html { redirect_to complexitylevels_url }\n format.json { head :no_content }\n end\n end",
"title": ""
},
{
"docid": "090... |
8e9afb3e516dc77f706afa827e094e7d | PUT /database_instance_relationships/1 PUT /database_instance_relationships/1.xml | [
{
"docid": "2cb5e4925f2116093257cfd7853f3753",
"score": "0.6155835",
"text": "def update\n @database_instance_relationship = @object\n\n respond_to do |format|\n if @database_instance_relationship.update_attributes(params[:database_instance_relationship])\n flash[:notice] = 'DatabaseIn... | [
{
"docid": "334e289b323bffe6669dd89a03a671e3",
"score": "0.5845027",
"text": "def up_update_route_wayplace_relationships\n ct=0\n WayPlace.all.each do |wp|\n wp.place_kind = \"way_place\"\n wp.save or puts \"didn't save #{wp}\"\n ct+=1\n end\n puts \"updated #{ct} way_places\"... |
2eb8c54ebe2766f3d0b9c6c80ccf5ff9 | POST /hooks POST /hooks.json | [
{
"docid": "ccdc52c621605b9dd281a01ff55aa9d5",
"score": "0.6145321",
"text": "def create\n# @hook = Hook.new(hook_params)\n\n# respond_to do |format|\n# if @hook.save\n# format.html { redirect_to @hook, notice: 'Hook was successfully created.' }\n# format.json { render :show, st... | [
{
"docid": "86393eaefe840a8705d1c84bd92c2cfa",
"score": "0.7076952",
"text": "def hooks_post(opts = {})\n data, _status_code, _headers = hooks_post_with_http_info(opts)\n data\n end",
"title": ""
},
{
"docid": "86393eaefe840a8705d1c84bd92c2cfa",
"score": "0.7076952",
"te... |
2b5e76fca2eb59cb0a5b92067a6308b8 | Count the records. PersonMock.count => the total count of all people PersonMock.count(:age) => returns the total count of all people whose age is present in database | [
{
"docid": "8df5ab991381374d11b650d69d38358a",
"score": "0.0",
"text": "def count(column_name = nil)\n return all.size if column_name.nil?\n where.not(column_name => nil).size\n end",
"title": ""
}
] | [
{
"docid": "38a20b4d6cf8b6b2a00faf12045b44a4",
"score": "0.7795515",
"text": "def count(params = {})\n record_count :person, params\n end",
"title": ""
},
{
"docid": "b59bb4eb758abe120fa52218357bce53",
"score": "0.7155694",
"text": "def count\n find().count\n end"... |
c36d6c625c3d2ffb663ab9a363353931 | :callseq: uri > String in the form of a urn:uuid URI. Return the annotation id of this Annotation. | [
{
"docid": "adc68665ce6df52a40be57fb0dc5eabb",
"score": "0.0",
"text": "def uri\n @structure[:uri]\n end",
"title": ""
}
] | [
{
"docid": "47596410498d44fdb77d6d94f714362e",
"score": "0.65162677",
"text": "def uri_id\n @uri_id ||= begin\n if @uri\n @uri.split(':')[2]\n elsif @gid || @id\n Radix::Base.new(BASE62_CHARS).convert(id, Radix::BASE::HEX).rjust(22, '0')\n end\n end\n ... |
f74c29bdfc4a183e1ec1b91334cd5be2 | Use callbacks to share common setup or constraints between actions. | [
{
"docid": "c901578c91bd735f211442b363fe0a4a",
"score": "0.0",
"text": "def set_collectible_attribute\n @collectible_attribute = CollectibleAttribute.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... |
78faca20bcabee9d4d75c115e0ddceae | load memoized environment by copying contents of MEMOIZED_REPOSITORY_BASE to REPOSITORY_BASE | [
{
"docid": "34e1d2cf79353b300e9a07ac5c39806c",
"score": "0.6840458",
"text": "def setup_environment\n FileUtils.rm_rf REPOSITORY_BASE\n FileUtils.cp_r \"#{MEMOIZED_REPOSITORY_BASE}/.\", REPOSITORY_BASE\nend",
"title": ""
}
] | [
{
"docid": "3e75a6a51226323f0fdcca1af8dd489e",
"score": "0.6242308",
"text": "def loadRepository\n @REPOSITORY = @MY_SAFE.loadRepository\n validateCache\n end",
"title": ""
},
{
"docid": "0cd5236b61a8957f2b9599b0ec5e3952",
"score": "0.58745086",
"text": "def load\n ... |
c0d73272837c9467d178d307a30e3004 | Reformat a request from Editorial Manager's Submission call, enabling it to conform to our normal API. | [
{
"docid": "cb686b17c0a2dfe6d5e1aef41fae2bea",
"score": "0.6043465",
"text": "def em_reformat_request(deposit_request: false)\n em_params = {}.with_indifferent_access\n\n # For a deposit_request, we can set the user ID, and a subsequent call will\n # login the user. Otherwise, the submiss... | [
{
"docid": "f52e446da7c1751c40af1a04b2a6349f",
"score": "0.5956845",
"text": "def format_request(payload)\n payload[:uri].path = url_join(payload[:uri].path, payload[:action])\n payload[:body] = payload[:params].to_s\n payload\n end",
"title": ""
},
{
"docid": "42af... |
8456d38bd243220794eb74e1c1f88588 | Read a 'fabric.PcMember' resource. | [
{
"docid": "bf310a384ae9e4138ccda781b18e409c",
"score": "0.5773497",
"text": "def get_fabric_pc_member_list(opts = {})\n data, _status_code, _headers = get_fabric_pc_member_list_with_http_info(opts)\n data\n end",
"title": ""
}
] | [
{
"docid": "3e4dd1f9d3cecd048814ed467c810772",
"score": "0.6189726",
"text": "def member()\n sql = \"SELECT * FROM members\n WHERE id = $1\"\n values = [@member_id]\n results = SqlRunner.run( sql, values )\n return Member.new( results.first )\n end",
"title": ""
},
{
"docid":... |