query_id stringlengths 32 32 | query stringlengths 7 6.75k | positive_passages listlengths 1 1 | negative_passages listlengths 88 101 |
|---|---|---|---|
b0a8187e3dc346cc37b062369df19580 | This endpoint is deprecated. | [
{
"docid": "e04036ed3d48ac636fb8b247c5dafa40",
"score": "0.0",
"text": "def get_device_session_junit_using_get1(device_session_id, run_id, opts = {})\n get_device_session_junit_using_get1_with_http_info(device_session_id, run_id, opts)\n nil\n end",
"title": ""
}
] | [
{
"docid": "c6163bd7e4e5188e65863a98b29acc70",
"score": "0.68382174",
"text": "def endpoint; end",
"title": ""
},
{
"docid": "c6163bd7e4e5188e65863a98b29acc70",
"score": "0.68382174",
"text": "def endpoint; end",
"title": ""
},
{
"docid": "c6163bd7e4e5188e65863a98b29acc70... |
cbbf96ba7e656b028f09276e2d800fc7 | END FUNCTIONALITY FOR SUGGESTING USERS TO FOLLOW | [
{
"docid": "1012b0459c9dcd66a107edc415e08464",
"score": "0.0",
"text": "def get_nested_objects(self_association_method, pluck_field_sym, class_name)\n nested_objects_ids = self_association_method.pluck(pluck_field_sym)\n nested_objects_ids_string = nested_objects_ids.reduce('(') { |final_string, i... | [
{
"docid": "cdd16ea92eae0350ca313fc870e10526",
"score": "0.63558847",
"text": "def who_we_are\r\n end",
"title": ""
},
{
"docid": "0b8b7b9666e4ed32bfd448198778e4e9",
"score": "0.61740404",
"text": "def probers; end",
"title": ""
},
{
"docid": "bc658f9936671408e02baa884ac... |
3ae63937366351ec1caa9c0a6fffa512 | Return the week number of the year for the start of a course | [
{
"docid": "4be3268a9194ed71e144932adb3dab62",
"score": "0.63492996",
"text": "def course_start\n start = AcademicCalendar.semester_start(semester, year)\n\n if semester == \"Spring\" then\n return self.mini == \"B\" ? start + 7 : start\n end\n if semester == \"Summer\" then\n retu... | [
{
"docid": "19102eba1172b1ca614e4983e6f0607f",
"score": "0.8023388",
"text": "def year_week\n @year_week ||= (((date-start_of_year)+1)/7.0).ceil\n end",
"title": ""
},
{
"docid": "385ae939caa3462b7e9fe878a6018dd0",
"score": "0.76629436",
"text": "def week_of_year date\n \t... |
722a7465169065c8957c2109d6301f3c | DELETE /clients/1 DELETE /clients/1.xml | [
{
"docid": "aa77e2ebc93f6af5187d4a13f9736dc8",
"score": "0.0",
"text": "def destroy\n @package = Package.find(params[:id])\n \n @package.destroy\n\n respond_to do |format|\n format.html { redirect_to(admin_packages_path) }\n format.xml { head :ok }\n end\n end",
"title": "... | [
{
"docid": "8811cd1784c383a9ab8b182019512eb6",
"score": "0.74826455",
"text": "def destroy\n @client = Client.find(params[:id])\n define_path\n ServerFileOperation.delete(@client.home_directory,@public_path)\n @client.destroy\n\n respond_to do |format|\n format.html { redirect_to(cli... |
df04ad35866ee882119c51486ca0859e | List all VM and statuses based on transport node ID of idfw enabled compute collection. Retrieve all the VM and status by transport node ID of idfw enabled compute collection in the request. | [
{
"docid": "0a772f5fbc4104f5b0b377c064354367",
"score": "0.6504459",
"text": "def list_virtual_machine_statuses_by_transport_node_id_with_http_info(transport_node_id, opts = {})\n if @api_client.config.debugging\n @api_client.config.logger.debug 'Calling API: ManagementPlaneApiIdentityFirewa... | [
{
"docid": "02b234bee5e7150f77bfb36d02985d07",
"score": "0.7281698",
"text": "def list_idfw_status_for_all_transport_nodes_in_a_compute_collection_with_http_info(compute_collection_id, opts = {})\n if @api_client.config.debugging\n @api_client.config.logger.debug 'Calling API: PolicySecurity... |
f74c29bdfc4a183e1ec1b91334cd5be2 | Use callbacks to share common setup or constraints between actions. | [
{
"docid": "34384f5ae4f64da7787a7d720d64bdf2",
"score": "0.0",
"text": "def set_data_pdf\n #@data_pdf = DataPdf.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;... |
723fac03f568533c6d10b6fad22b3f47 | This initializer allows us to easily make new board objects with the same internal state but with different object ids. (Deep Duplication) The default state is an array of columns | [
{
"docid": "4f286ef7de31854ad7334671d0b7dd55",
"score": "0.7327221",
"text": "def initialize(state = [[],[],[],[],[],[]])\n @state = []\n state.each do |col|\n @state << col.dup\n end\n end",
"title": ""
}
] | [
{
"docid": "f18aca231ec0a3e942c145c0956988cf",
"score": "0.67583966",
"text": "def new_board\n\t board = self.class.new\n\t board.state = @state.dup\n\t board.turn = @turn.dup\n\t return board\n \tend",
"title": ""
},
{
"docid": "195ced122a175bb18313079756384d38",
"score": "... |
332c5770226e8a9c7232f63262796107 | Applying Normal Attack Effects attacker : battler | [
{
"docid": "5531226d548bfdef0f38e3c9ca865041",
"score": "0.76785314",
"text": "def attack_effect(attacker)\r\n # Clear critical flag\r\n self.critical = false\r\n # First hit detection\r\n hit_result = (rand(100) < attacker.hit)\r\n # If hit occurs\r\n if hit_result == true\r\n # ... | [
{
"docid": "28f9b93231cb04300dbc2d9d03924d41",
"score": "0.7996271",
"text": "def attack_effect(attacker,w=0)\n # Clear critical flag\n self.critical = false\n # First hit detection\n hit_result = (rand(60) < (attacker.hit(w)*3 -self.eva/2))\n # If hit occurs\n total_damage = 0\n if... |
a2099a77c85e91272ae2f9e35b937953 | Only allow a trusted parameter "white list" through. | [
{
"docid": "31e3040c088a317ad6731fb7681fef13",
"score": "0.0",
"text": "def todo_params\n params.require(:todo).permit(:title, :description, :category, :status, :due_date)\n end",
"title": ""
}
] | [
{
"docid": "3663f9efd3f3bbf73f4830949ab0522b",
"score": "0.79438955",
"text": "def whitelisted_params\n super\n end",
"title": ""
},
{
"docid": "f6060519cb0c56a439976f0c978690db",
"score": "0.6958061",
"text": "def permitted_params\n params.permit!\n end",
"title"... |
f74c29bdfc4a183e1ec1b91334cd5be2 | Use callbacks to share common setup or constraints between actions. | [
{
"docid": "2272e2db2e0dc390942537b350b767da",
"score": "0.0",
"text": "def set_check_out\n @check_out = CheckOut.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... |
b27a6a7f3606222cbdd0d32757680de1 | PATCH/PUT /footers/1 PATCH/PUT /footers/1.json | [
{
"docid": "62efe5223bdb4f7049d0d5a5d66f1287",
"score": "0.5822532",
"text": "def update\n respond_to do |format|\n if @footer.update(footer_params)\n format.html { redirect_to @footer, notice: 'Footer was successfully updated.' }\n format.json { head :no_content }\n else\n ... | [
{
"docid": "949d1ddde409d1ff785899a67462bcf1",
"score": "0.6942372",
"text": "def update\n respond_to do |format|\n if @foot.update(foot_params)\n format.html { redirect_to @foot, notice: 'Foot was successfully updated.' }\n format.json { render :show, status: :ok, location: @foot ... |
7c16c08522cffd391d09c39d5288adea | review my cart > | [
{
"docid": "7edec1439a6bcaa57acabeadca61f3d9",
"score": "0.67399174",
"text": "def review_my_cart\n user.reload\n system \"clear\"\n OrderHere.header\n\n # ------ HELPER METHODS FOR THE CART -----------------------\n # -----mapping the dishes into a hash\n dishe... | [
{
"docid": "1c64557f5a93116677a42c47e1be1406",
"score": "0.7655011",
"text": "def review\n\t\t@cart = Cart.find_by_id(params[:id])\n\t\tif @cart.user_id == nil\n\t\t\t@cart.attach_to_user(@current_user.id)\n\t\tend\n\t\tdisplay_price_changes(@cart.id)\n\t\t@items = @cart.items\n\t\t# TODO: incorporate a... |
a5f1b55d8c12b8db6f597a75c4ad319b | Generate a filename for the job's log file. | [
{
"docid": "73b5924f05f5552eedbe79f610a250ca",
"score": "0.796701",
"text": "def generate_log_filename(output_dir)\n FileUtils.mkdir_p(output_dir) unless File.directory?(output_dir)\n # This log will be used for generating the table of past jobs later\n File.join(output_dir, Settings.BULK_METAD... | [
{
"docid": "0c8022996c08619e902b044c53971504",
"score": "0.81975734",
"text": "def generate_filename\n # add a timestamp if requested\n name = if @cmd[:timestamp]\n \"updaterepo-#{Time.new.strftime('%y%m%d-%H%M%S')}.log\"\n else\n 'updaterepo.log'\n ... |
e862ef996ad13f85abdc110929908516 | GET /clinic_flows GET /clinic_flows.json | [
{
"docid": "fe67db25c8d6db83c952076f60db0c71",
"score": "0.7603249",
"text": "def index\n @clinic_flows = ClinicFlow.all\n\n respond_to do |format|\n format.html # index.html.erb\n format.json { render json: @clinic_flows }\n end\n end",
"title": ""
}
] | [
{
"docid": "379e4a25c0fe58f61ce60298cfef7b69",
"score": "0.7126351",
"text": "def show\n @clinic_flow = ClinicFlow.find(params[:id])\n\n respond_to do |format|\n format.html # show.html.erb\n format.json { render json: @clinic_flow }\n end\n end",
"title": ""
},
{
"docid"... |
717ef7c3617b11035b2d0a5c99bd58a5 | disabled input for faculty | [
{
"docid": "7df67fc826b167fd7f5641de7fb7d7fb",
"score": "0.6473187",
"text": "def course_field(form, type, tag, options)\n options[:disabled] = true if current_user.faculty?\n form.send(type, tag, options).html_safe\n end",
"title": ""
}
] | [
{
"docid": "f112b77cd79f9a4f026babe801ee7566",
"score": "0.63672084",
"text": "def disabled\n end",
"title": ""
},
{
"docid": "a2585cff76cdfccc6be5d0bd40c96a15",
"score": "0.6325402",
"text": "def disabled?; end",
"title": ""
},
{
"docid": "a2585cff76cdfccc6be5d0bd... |
f74c29bdfc4a183e1ec1b91334cd5be2 | Use callbacks to share common setup or constraints between actions. | [
{
"docid": "0a2fb60f993314a43f32cec09d807034",
"score": "0.0",
"text": "def set_asistant\n asistant = Asistant.find(params[:id])\n end",
"title": ""
}
] | [
{
"docid": "bd89022716e537628dd314fd23858181",
"score": "0.6163821",
"text": "def set_required_actions\n # TODO: check what fields change to asign required fields\n end",
"title": ""
},
{
"docid": "3db61e749c16d53a52f73ba0492108e9",
"score": "0.6045432",
"text": "def action_hook;... |
e524fa28db64fae4e4f0fd4f915ba719 | Current log file locations | [
{
"docid": "bfc70d0f582a67ab25178ea73d3758ba",
"score": "0.8213595",
"text": "def log_file_locations\n []\n end",
"title": ""
}
] | [
{
"docid": "92fb1f92ad6010156d5e991907c70e4c",
"score": "0.86026424",
"text": "def log_file_locations\n folder = log_folder\n return [] if folder.nil?\n\n [ File.join(folder, 'current') ]\n end",
"title": ""
},
{
"docid": "78a726649a71fc5868e5d68555705feb",
"score": "0.8064772... |
dbaec6aeb744a295eab4d974852d8873 | The external dependency checksums are cached per RuboCop team so that the checksums don't need to be recomputed for each file. | [
{
"docid": "a4d5e332a04a2ff72c6df982bfe660b6",
"score": "0.5784747",
"text": "def team_checksum(team)\n @checksum_by_team ||= {}.compare_by_identity\n @checksum_by_team[team] ||= team.external_dependency_checksum\n end",
"title": ""
}
] | [
{
"docid": "25032d96e34cc2c356e38fe934e21f83",
"score": "0.81152964",
"text": "def external_dependency_checksum; end",
"title": ""
},
{
"docid": "b23417980e884246974ffc96e52131b2",
"score": "0.7766954",
"text": "def external_dependency_checksum\n nil\n end",
"title": ... |
c8a7d556df7d8cfd365814733299313b | Generate the adaptater mapping for a network card == Parameters: ip:: The ip. If not given, use the dhcp configuration gw:: The gateway. | [
{
"docid": "9305bbfb111045e6ee077fd01bdd12b0",
"score": "0.7916877",
"text": "def generate_adapter_map(ip=nil, gw=nil)\n settings = RbVmomi::VIM.CustomizationIPSettings\n\n if ip.nil?\n settings.ip = RbVmomi::VIM::CustomizationDhcpIpGenerator\n else\n ... | [
{
"docid": "714ea609284cd9afa4f61c3a0d031f1f",
"score": "0.8195842",
"text": "def generate_adapter_map(ip = nil, gw = nil, mac = nil)\n settings = RbVmomi::VIM.CustomizationIPSettings\n\n if ip.nil? || ip.downcase == 'dhcp'\n settings.ip = RbVmomi::VIM::CustomizationDhcpIpGenerator.new\n e... |
8cb15ac2495a4276b1517f36e8a78850 | Normalizes a single photo response from Flickr | [
{
"docid": "0d938c81bd92336bf17566241c0a08b0",
"score": "0.7577899",
"text": "def normalize_photo(photo)\n get_photo_response = get_photo(photo.id)\n sizes = client.photos.getSizes(photo_id: photo.id)\n {\n source: 'flickr',\n key: photo.id,\n photo_thumbnail: get_pho... | [
{
"docid": "5ff69151f5c2503d9c4567b9a927053c",
"score": "0.7679354",
"text": "def normalize(response:)\n response.map { |photo| normalize_photo(photo) }\n end",
"title": ""
},
{
"docid": "b40aac39e275718de1152cb431ce159b",
"score": "0.5956863",
"text": "def flickr\n if sel... |
f74c29bdfc4a183e1ec1b91334cd5be2 | Use callbacks to share common setup or constraints between actions. | [
{
"docid": "10acf767211b20ad40a58680a5c36dee",
"score": "0.0",
"text": "def set_team\n @team = Team.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... |
af630984682f1a0b5a68e6092af0d102 | Update properties of this object | [
{
"docid": "03410b4a75c4a560b7c37c496653e2d6",
"score": "0.0",
"text": "def update!(**args)\n @code = args[:code] if args.key?(:code)\n @details = args[:details] if args.key?(:details)\n @message = args[:message] if args.key?(:message)\n end",
"title": ""
}
] | [
{
"docid": "184b1b1ed771473d3eb9f338c0734c38",
"score": "0.73066413",
"text": "def update *args\n opts = args.extract_options!\n fill_properties opts\n self.save\n end",
"title": ""
},
{
"docid": "5076c5a88404ae72986f958710f5687a",
"score": "0.72631145",
"text": "def update... |
027ad36f0c6a78be7e0df0e575190281 | Add to the set of pairs | [
{
"docid": "a0994dcd24e06cd0bae8b65ddd54d18a",
"score": "0.61846733",
"text": "def add_partner(other)\n \t(@pairings ||= []).push other\n end",
"title": ""
}
] | [
{
"docid": "a9501bc656a4716ac3c31a822515dea8",
"score": "0.6653099",
"text": "def update_pairs(add_pairs = nil, remove_pairs = nil)\n end",
"title": ""
},
{
"docid": "f1e4b34f41bddbc0ac496d508bcd3dce",
"score": "0.649363",
"text": "def add_es_pair(*params)\n\t\tif params.length ... |
c657de4b70d266e9a3a784b999ea9e60 | Never trust parameters from the scary internet, only allow the white list through. | [
{
"docid": "957945d7616a73cc28f8d47082af8680",
"score": "0.0",
"text": "def category_params\n params.require(:category).permit(:name)\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... |
2f683b40ea5a113a2593b06f1a72f7d2 | attach default avatar to the user after create | [
{
"docid": "22ab43ad9d2c4684741f64a3eb85e0f0",
"score": "0.77063096",
"text": "def attach_default_avatar\n avatar_path = \"#{::Rails.root}/storage/defaults/default_avatar.png\"\n avatar.attach(io: File.open(avatar_path), filename: 'default_avatar.png', content_type: 'image/png')\n end",
"titl... | [
{
"docid": "60ad9b0af05161c01cf070168f61e549",
"score": "0.7464087",
"text": "def profile\n current_user.update(user_params)\n current_user.avatar.attach(params[:user][:avatar]) if params[:user][:avatar].present?\n end",
"title": ""
},
{
"docid": "f23476d2cb916e08cd391661097f3ab5",
... |
6c75fa9fea3f3f1fd74b9e7fa71eeffb | Activate the given gem. | [
{
"docid": "fd59ce7f0f66b2deb19b76bc71327cf2",
"score": "0.7541344",
"text": "def gem(name, *requirements)\n self.class.gems.activate(name, *requirements)\n end",
"title": ""
}
] | [
{
"docid": "ca36c5679448852d2d40623defa3724b",
"score": "0.8004685",
"text": "def activate!\n begin\n require gem_name\n rescue LoadError\n $stderr.puts \"Warning: The plugin '#{gem_name}' was not found!\"\n end\n self.active = true\n self.enabled = t... |
ff7aeeb026cd2bb755e7bb5b8c3316c0 | Async response for send rejection email | [
{
"docid": "3ee829fbed5c7a947c248248a9049d93",
"score": "0.6647211",
"text": "def send_rejection_email_result\n # Get recipients\n @recipients = calculate_rejection_recipients\n\n @template = {\n subject: params[:subject],\n intro: params[:intro],\n content: params[:content... | [
{
"docid": "28f72d20f4dac9be8de21d42c5d836e7",
"score": "0.7083296",
"text": "def request_rejected\n @greeting = \"Hi\"\n\n mail to: \"to@example.org\"\n end",
"title": ""
},
{
"docid": "fa85c85fd72dc5a23b7e8e461a61e7fe",
"score": "0.6842868",
"text": "def prepare_rejection_em... |
e388415dfac14b1d722c3277db3e7938 | Getter method that gets the time in the required format | [
{
"docid": "14dd0dd0857274c1278795c08307e9f3",
"score": "0.0",
"text": "def run_date_string\n run_date\n end",
"title": ""
}
] | [
{
"docid": "d0178652e2b4bd13afdf149ed1ba2d24",
"score": "0.8090042",
"text": "def time\n return @time if @time.is_a? String\n to_time_string(@time)\n end",
"title": ""
},
{
"docid": "d55ec7d189cc7edb2a4d75b4e1556887",
"score": "0.8020195",
"text": "def time\n DateTi... |
198c976bf1dc924fc0772fe32d849199 | When you meet with a node with child follow its child chain to the end and connect the tail node with p.next Return to pointer and proceed until find next node with child. Repeat until reach null | [
{
"docid": "0f50ee5a21e14de808f9e77351af4b4e",
"score": "0.5542651",
"text": "def flatten_list(head)\n return head if head == nil \n \n pointer = Node.new\n pointer = head\n\n while pointer !== nil\n pointer = pointer.next if(pointer.child == nil)\n\n temp = Node.new\n ... | [
{
"docid": "802d30f1bea410ad70daaad723c8b528",
"score": "0.6577939",
"text": "def next\n @next ||= begin\n if has_next?\n parent.children[position]\n else\n nil\n end\n end\n end",
"title": ""
},
{
"docid": "12bbc8add81c5cf70539e7881da18e91",
"score": ... |
2112d740a1641b8ed9badc084a262ad3 | controller action for the level_pages views gets the nodes for all the levels to link to their first show page view | [
{
"docid": "3b952a2001f68528b206a9db136d2cfc",
"score": "0.7150866",
"text": "def level\n nodes = EasyLevel.all\n inodes = IntermediateLevel.all\n dnodes = DifficultLevel.all\n cnodes = ChallengeLevel.all\n respond_to do |format|\n format.html { render :level, locals: { nodes: nodes,... | [
{
"docid": "44338e00e9341260f2292bad0e921fec",
"score": "0.7181532",
"text": "def show\n @nodes = Node.all.sort { |a, b| a.order <=> b.order }\n\n node = Node.find_by(path: params[:node])\n @page = node.pages.find_by(path: params[:page])\n\n respond_to do |format|\n format.html # show.h... |
002e985ceff7ed5e08bf7ffe81a24817 | The "share" button next to the Download button. | [
{
"docid": "0722ff21403485f013261b9e7ff75e2a",
"score": "0.65028286",
"text": "def share_with_others\n self.share_button\n self.wait_for_ajax\n self.class.class_eval { include ShareWithPopUp }\n end",
"title": ""
}
] | [
{
"docid": "9b769bf30fd86312104cab8d0f484a0d",
"score": "0.7000417",
"text": "def verb\n \"share\"\n end",
"title": ""
},
{
"docid": "7b794118ffb8719d95d21f2d3a532de4",
"score": "0.6895721",
"text": "def shareButtonPressed(texttoshare)\n @wm_controller.presentViewC... |
44c776d8c763be875010bad51135b434 | Returns a new profile object with a copy of self | [
{
"docid": "e7123aee604d80f1355f0bc3f0b9dc06",
"score": "0.0",
"text": "def copy\n obj = self.dup\n obj.attributes = {:created_at => nil, :updated_at => nil}\n obj\n end",
"title": ""
}
] | [
{
"docid": "cc78c53f105f1ca24204be87de6ec9d3",
"score": "0.785897",
"text": "def clone_with_profile\n _clone = self.clone # clone itself\n if profile.blank?\n _clone.build_profile\n else\n _clone.profile = profile.clone\n end\n _clone # return the clone\n end",
"title": ""
... |
ccea8a482351885c353c9bbab9a90ec1 | Run a dobby command from inside dobby If we need to drop to root it will restart with that action as the new command. The startup procedure needs work, it's a little opaque. | [
{
"docid": "bfa1c8e711de213e969ea33d58891a1c",
"score": "0.6149797",
"text": "def run(service, command, args = [])\n\n shell_cmd = \"#{DOBBY_COMMAND} #{command} \"\n shell_cmd << \"#{service.name().shellescape} \"\n shell_cmd << args.join(' ').shellescape\n\n if service.needs_root? && ENV['U... | [
{
"docid": "95424f3484b8c47da584214fe22fe2ac",
"score": "0.6076499",
"text": "def run(device = :all, action = opt.action)\n\n # Input\n @registrars = calc_reg_list(device)\n @dante_runner = init_dante_runner\n opt.action, action = :run, :run if @dante_runner.daemon_stopped? && opt.ac... |
e561e11bcf379ef5dc139c210017366b | Only allow a list of trusted parameters through. | [
{
"docid": "180be4c6e6a9c6204757580747ae6f8b",
"score": "0.0",
"text": "def profile_params\n params.require(:profile).permit(:name, :description, :user_id, :photo, :instagram, :website)\n end",
"title": ""
}
] | [
{
"docid": "c1f317213d917a1e3cfa584197f82e6c",
"score": "0.69497335",
"text": "def allowed_params\n ALLOWED_PARAMS\n end",
"title": ""
},
{
"docid": "e662f0574b56baff056c6fc4d8aa1f47",
"score": "0.6812623",
"text": "def strong_params\n params.require(:listing_member).permi... |
216d63267df7879447aa621c738c1644 | GET /employeurs GET /employeurs.json | [
{
"docid": "9294efe1c6f6d89cc99b85dd0ba5433d",
"score": "0.6919845",
"text": "def index\n @employeurs = Employeur.all\n end",
"title": ""
}
] | [
{
"docid": "919f47800251143c266484531b3b0f05",
"score": "0.7450424",
"text": "def index\n @employes = Employe.all\n\n respond_to do |format|\n format.html # index.html.erb\n format.json { render json: @employes }\n end\n end",
"title": ""
},
{
"docid": "652a45da3aa45ad7d9... |
8fc5aed4cca29baca9f87250a92c9dbf | =begin Check whether given date is weekend or not Params date datetime or time instance Returns true if given date is weekday else returns false =end | [
{
"docid": "59b13a2e1789b4c4bd87926d4179ebe4",
"score": "0.8066893",
"text": "def weekend?(date)\n [6,0].include? date.wday\n end",
"title": ""
}
] | [
{
"docid": "e892ec2c43e638d5e0bed7b2b6a5af3f",
"score": "0.81540966",
"text": "def is_date_weekend?(date)\n if date.wday == 0 or date.wday == 6\n return true\n else\n return false\n end\n end",
"title": ""
},
{
"docid": "bc1fcdcc79cce462f85626c697b9873a",
"score": "0.... |
93a51e1389323b106c70ea589ce7a29a | Sets the riskLevelAggregated property value. Aggregated risk level. The possible values are: none, low, medium, high, hidden, and unknownFutureValue. The value hidden means the user or signin was not enabled for Azure AD Identity Protection. Supports $filter (eq). Note: Details for this property are only available for ... | [
{
"docid": "23071fe9a715a16f2a3836d14768ea43",
"score": "0.83010125",
"text": "def risk_level_aggregated=(value)\n @risk_level_aggregated = value\n end",
"title": ""
}
] | [
{
"docid": "6d4ed31d33cb1591c2a4a706fceba859",
"score": "0.6952624",
"text": "def risk_level_aggregated\n return @risk_level_aggregated\n end",
"title": ""
},
{
"docid": "f40fe0c2de63d5b1a2a0e15d25e5d361",
"score": "0.6717994",
"text": "def risk_level=(value... |
6e819a45bfe762927c726a5277064710 | return digest as internal state | [
{
"docid": "c799b43350ecb281455877c9a290cea0",
"score": "0.7571467",
"text": "def digest!\n Aux.digest(state, get_crc_model.bitsize)\n end",
"title": ""
}
] | [
{
"docid": "204bf68366aa0d776196ac460bec92d1",
"score": "0.8229813",
"text": "def digest\n @digest ||= build_source['digest']\n end",
"title": ""
},
{
"docid": "b7e2e362b59074d631838a8feeaa695e",
"score": "0.8151033",
"text": "def digest\n # Recompute digest for the firs... |
79c1a63fe3add42424545686756130b9 | Description: Minimizes a CSS file by stripping comments and new lines Inputs: output_file File to output to, defaults to screen if null | [
{
"docid": "837850ff44102397a76b0f776bf149b0",
"score": "0.69456244",
"text": "def minimize_to(output_file)\n o = nil\n if (not output_file.nil?) \n begin\n o = open(output_file, 'w')\n rescue\n puts(\"Could not open output file: #{output_file}\")\n o = nil\n en... | [
{
"docid": "a89e4d41982554ceff655d7925e9e747",
"score": "0.69925493",
"text": "def compress\n # Remove single & multi-line comments\n @compressed_css = @original_css.gsub(/\\/\\*.*?\\*\\//m, '')\n \n tokens = @compressed_css.split(/[ \\t\\n]/) - ['']\n @compressed_css = ''\n\n tokens.e... |
8c76071572bae77cfd7385df7df380fa | Get list of address books | [
{
"docid": "402c0d876d3b9914d4934ead6160c497",
"score": "0.80462945",
"text": "def list_address_books(limit = nil, offset = nil)\n data = {}\n data.merge!({limit: limit}) unless limit.nil?\n data.merge!({offset: offset}) unless offset.nil?\n send_request('addressbooks', 'GET', data)\n end",... | [
{
"docid": "1eafc52b2582470002abf7d7d8ba97bc",
"score": "0.75592303",
"text": "def addressbook\n @@api.get(endpoint: \"addressbook\")\n end",
"title": ""
},
{
"docid": "7f745e86b9174840be7c57278a8a4af4",
"score": "0.7413322",
"text": "def index\n @addressbooks = Addressboo... |
c530f231865ee220e3a902d8fd297b6c | This is a module. We'll cover these soon! | [
{
"docid": "10ddb10eaac58cd34fff2d2ae4ba2fce",
"score": "0.0",
"text": "def first_n_primes(n)\n\n unless n.is_a? Integer\n return \"n must be an integer.\"\n end\n\n if n <= 0\n return \"n must be greater than 0.\"\n end\n \n prime_array = [] if prime_array.nil?\n \n prime = Prime.new\n f... | [
{
"docid": "9de4306501711176ab8084b28395030d",
"score": "0.7245491",
"text": "def module; end",
"title": ""
},
{
"docid": "7db0727baf89eb76beac27c515d7fe32",
"score": "0.6734697",
"text": "def support; end",
"title": ""
},
{
"docid": "6ab77a9219ee157923bc58599ba6aa77",
... |
1bd925cde0b76f231c4dd7bc3375c710 | Utility to convert Openstruct Object to JSON hash. | [
{
"docid": "ca1fe52aaaa243f5833c8d10b6479669",
"score": "0.7132121",
"text": "def openstruct_to_hash(object, hash = {})\n object.each_pair do |key, value|\n hash[key] = if value.is_a?(OpenStruct)\n openstruct_to_hash(value)\n elsif value.is_a?(Array)\n... | [
{
"docid": "4efef217fcf0e30d1d9316dccc58d30a",
"score": "0.72796786",
"text": "def to_hash(object)\n result = object\n case result\n when OpenStruct\n result = result.marshal_dump\n result.each do |k, v|\n result[k] = to_hash(v)\n end\n when Array\n result = result... |
d357010946e3d30545be7acbc771eae2 | PUT /contributions/1 PUT /contributions/1.xml | [
{
"docid": "b2514014488fa9cdc0ec6456fa9f4e32",
"score": "0.6707143",
"text": "def update\n @contribution = Contribution.find(params[:id])\n\n respond_to do |format|\n if @contribution.update_attributes(params[:contribution])\n flash[:notice] = 'Contribution was successfully updated.'\n... | [
{
"docid": "bfbd54c8f5c1451a1e7f69be4bad878c",
"score": "0.672204",
"text": "def update\n @contribution = Contribution.find(params[:id])\n\n respond_to do |format|\n if @contribution.update_attributes(params[:contribution])\n flash[:notice] = 'Contribution was successfully updated.'\n ... |
86018d43b13fd1651651942b56c5d963 | DELETE /ps_connection_informations/1 DELETE /ps_connection_informations/1.json | [
{
"docid": "070e19f92d2a252ddd3f0a55d8df5e53",
"score": "0.7785583",
"text": "def destroy\n @ps_connection_information.destroy\n respond_to do |format|\n format.html { redirect_to ps_connection_informations_url }\n format.json { head :no_content }\n end\n end",
"title": ""
}
] | [
{
"docid": "e56d8705cd37be7697191f160dda1508",
"score": "0.7054572",
"text": "def destroy\n @connection.destroy\n respond_to do |format|\n format.html { redirect_to connections_url }\n format.json { head :no_content }\n end\n end",
"title": ""
},
{
"docid": "e9fdbbde0f2fe... |
3d3e17088fafc6df6964cd51c39fe03e | Retrieves a specific leave type by using a unique leave type ID | [
{
"docid": "6a13f6f85b9ee4418ca238c5f63ed420",
"score": "0.63944167",
"text": "def get_leave_type_with_http_info(xero_tenant_id, leave_type_id, options = {})\n opts = options.dup\n if @api_client.config.debugging\n @api_client.config.logger.debug 'Calling API: PayrollNzApi.get_leave_typ... | [
{
"docid": "a7c646c4f32db8c5fa614175b774e28a",
"score": "0.6816684",
"text": "def get_leave_type(xero_tenant_id, leave_type_id, opts = {})\n data, _status_code, _headers = get_leave_type_with_http_info(xero_tenant_id, leave_type_id, opts)\n data\n end",
"title": ""
},
{
"docid":... |
165cdff1da34ca5f74ea2a9f25fd6fe2 | def containers; info[:containers]; end | [
{
"docid": "1fbbd7363a73fb6990a49c8e06055616",
"score": "0.7797337",
"text": "def containers\n if @containers.nil? && !info[:containers].nil?\n @containers = []\n info[:containers].each do |uri|\n @containers.push(client.containers.get_from_uri(uri))\n end\n end\n... | [
{
"docid": "a2946b4c25b825fbf753616f2914195a",
"score": "0.8874143",
"text": "def container_ids() ; info[:containers] ; end",
"title": ""
},
{
"docid": "7856e736678ed575e30e4b7312b12f69",
"score": "0.8362602",
"text": "def container_ids() ; ext_info[:containers] ... |
1c42e1b291f24420668fdfcd986855c3 | Returns the value of attribute app. source://rack//lib/rack/utils.rb496 | [
{
"docid": "c15dfedd7107cb6b4fa66c5c93dbcf6f",
"score": "0.0",
"text": "def app; end",
"title": ""
}
] | [
{
"docid": "3a3d67f9c1b7b14a4762824cec54883d",
"score": "0.73607975",
"text": "def app\n @request[\"apps\"].first\n end",
"title": ""
},
{
"docid": "91feb319f2d548e217413dc19c961ce4",
"score": "0.7158315",
"text": "def app_id\n @attributes[:app_id]\n end",
"title": ""... |
25668b626dda87ab07724ab81befd4f5 | A subgrid is the set of 9 cells that comprise a block of Sudoku. For each subgrid, uses an array to track the locations of digits (to determine whether a digit is unique in the subgrid and where to find it). | [
{
"docid": "19686399d0506c09765b99c1d2d261c3",
"score": "0.66624755",
"text": "def toggle_subgrid_states\n for row_offset in [0, 3, 6] do\n for col_offset in [0, 3, 6] do\n digit_locations = Array.new(GRID_SIZE + 1, nil)\n for i in (0..2) do\n for j in (0..2) do\n ... | [
{
"docid": "2bdc992b03149e3de3ce737c89487965",
"score": "0.81017506",
"text": "def scan_subgrids!(candidates, puzzle)\n=begin\n \n Sub-grid numbering scheme\n _ _ _ _ _ _ _ _ \n | | | |\n | 1 | 2 | 3 |\n |_ _ _|_ _ _|_ _ _|\n | | | |\n ... |
0bbac6e712d67b63ddb620a6fdf5503d | Creates a deep copy of the move tree. | [
{
"docid": "59ffc0c168a9956e2064265a6f069849",
"score": "0.6162309",
"text": "def clone\n Marshal.load(Marshal.dump(self))\n end",
"title": ""
}
] | [
{
"docid": "9eb5240c462507550df48b7896272d53",
"score": "0.7205861",
"text": "def deep_copy\n node = dup\n node.children = children.map {|c| c.deep_copy}\n node\n end",
"title": ""
},
{
"docid": "0c9fc5490e9a69f9c5bd3a768f865494",
"score": "0.7084868",
"text... |
356b45fafb182eec0cf05a6a6f424c43 | get assigned menu by specified page_layout_id, page_tag required params: resource_position: get first( position 0 ) of assigned resources by default logged_and_unlogged_menu required this feature | [
{
"docid": "0bab43f2a1a9faf26b00de550c57ee28",
"score": "0.52606344",
"text": "def assigned_resource_id( resource_class, selected_page_layout = nil, resource_position=0 )\n template_resources.select{|template_resource|\n template_resource.source_class == resource_class && template_resou... | [
{
"docid": "17fd5dc5623b8a333bc63812986ba88d",
"score": "0.73693764",
"text": "def get( wrapped_page_layout, resource_position=0 )\n key = wrapped_page_layout.to_key \n unless menus_cache.key? key\n menu_tree = nil\n #wrapped_page_layout.assigned_menu_id may not exist for some r... |
cd79b864e1189f5d233712e4be3bcfad | Question: Write a method that prints all odd numbers from 1 to 99 inclusive. Explicit vs Implicit: Explicit: 1. all numbers should be printed on separate lines which means we need to use puts method Implicit: N/All Algorithm: print_odd method 1. use each method on (1..99) which is essentially an array 2. we could use o... | [
{
"docid": "4f233fdc2f201df9b6669a1e05124ea3",
"score": "0.8721625",
"text": "def print_odd\n (1..99).each do |num|\n if num.odd?\n puts num\n end\n end\nend",
"title": ""
}
] | [
{
"docid": "d0a5611f61d01802d48889fd46728137",
"score": "0.86262417",
"text": "def print_odd\n range = (1..99).to_a\n range.each do |num|\n if num % 2 == 1\n puts num\n end\n end\nend",
"title": ""
},
{
"docid": "739f0711c6f3644f11bd8a71f28f7288",
"score": "0.84295225",
... |
f74c29bdfc4a183e1ec1b91334cd5be2 | Use callbacks to share common setup or constraints between actions. | [
{
"docid": "68375a6d1dae75f9a905a2c2aa3d8292",
"score": "0.0",
"text": "def set_work_area\n @work_area = WorkArea.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... |
2bb5c4aec5c672ad57f1b3074ff1f8eb | 00_hello.rb use respective spec.rb to see success/ failures in code can be found in /spec/ tests can be run with the following command bundle exec rspec spec/00_hello_spec.rb | [
{
"docid": "51a6b492636ac33da9872a5634f7cbae",
"score": "0.0",
"text": "def hello\n\t\"Hello!\"\nend",
"title": ""
}
] | [
{
"docid": "b1761b7bc9f686de72f9f61cf6159829",
"score": "0.6946109",
"text": "def cmd() 'rspec '; end",
"title": ""
},
{
"docid": "40bad8b69a81820a977379fb228c714d",
"score": "0.67911863",
"text": "def run\n @rspec_test_name = PATH_TO_RSPEC_SPEC_FOLDER + @rspec_test_name\n @cmd... |
1c540abb2b7b378e8a17888278db1d01 | GET /model_basics GET /model_basics.json | [
{
"docid": "db6b1f747f27aa8d648ecfbf23ed9ead",
"score": "0.74638",
"text": "def index\n @model_basics = ModelBasic.all\n end",
"title": ""
}
] | [
{
"docid": "99612d97b581d694eeacd8af927c1236",
"score": "0.6368365",
"text": "def index\n render status: :ok, json: @test_guide_basics\n end",
"title": ""
},
{
"docid": "75d6f5c9c29305986d23fe96004b0962",
"score": "0.61659527",
"text": "def index\n @how_majestics = How... |
22fe043442af72196a7862abc9cbe35b | POST /passages POST /passages.json | [
{
"docid": "8424952af1db30fa12c6a732b646a478",
"score": "0.73790735",
"text": "def create\n @passage = Passage.new(params[:passage])\n\n respond_to do |format|\n if @passage.save\n format.html { redirect_to @passage, notice: 'Passage was successfully created.' }\n format.json { ... | [
{
"docid": "fd7a02b8e1fc3fd4e06ac56ab4831439",
"score": "0.7066078",
"text": "def create\n is_ok = true\n begin\n @passage = Passage.create!( passage_params )\n rescue\n is_ok = false\n end\n render( status: (is_ok ? 201 : 422), json: @passage )\n end",
"title": ""
},
{... |
80efe9a91f47d5b0c5954e66706c41b2 | Write a function format that takes two arguments, text and width, and formats the text to fit the width. Your function should divide the given text into lines using newline characters. It should fit as many words into each line as possible without exceeding the given width or splitting any words between two lines. Ther... | [
{
"docid": "614b175fb8f5a3a5bce6fc2c221d646c",
"score": "0.8544512",
"text": "def format_(text, width)\n return Proc.new do\n word_arr = text.split(\" \")\n one_line = []\n all_lines = []\n \n word_arr.each do |word|\n line_length = one_line.join.length\n new_word = word == word_... | [
{
"docid": "512c8d7227480980b0fb60230314d8b4",
"score": "0.84998965",
"text": "def format_(text, width)\n words = text.split(\" \")\n line_length = 0\n i = 0\n result = \"\"\n line = []\n while i < words.length\n if line_length + words[i].length > width\n result += line.join(\" \")\n ... |
aef1364845ff89ba2bd850aa0c1708b2 | Ensure that the given class methods are defined on the model. should_have_class_methods :find, :destroy | [
{
"docid": "8317331c58176655b1d54f21a8d8fd58",
"score": "0.6824442",
"text": "def should_have_class_methods(*methods)\n get_options!(methods)\n klass = described_type\n methods.each do |method|\n should \"respond to class method ##{method}\" do\n assert_respond_t... | [
{
"docid": "f104eae17b8a70b9874bc5d4b3e4bd6d",
"score": "0.7367277",
"text": "def should_have_class_methods(*methods)\n get_options!(methods)\n klass = model_class\n methods.each do |method|\n should \"respond to class method ##{method}\" do\n assert_respond_to k... |
406b207fa072ce512d0f01bf0fe55096 | DELETE /testes/1 DELETE /testes/1.json | [
{
"docid": "865ed675e9563142df16bf80bb1260da",
"score": "0.6543292",
"text": "def destroy\n @testis.destroy\n respond_to do |format|\n format.html { redirect_to testes_url, notice: 'Teste was successfully destroyed.' }\n format.json { head :no_content }\n end\n end",
"title": ""
... | [
{
"docid": "b1a17c1ee1af05c79fe156622df44818",
"score": "0.72527015",
"text": "def delete(path)\n begin\n response = client[path].delete :accept => 'application/json'\n rescue Exception => e\n puts e.inspect\n end\n end",
"title": ""
},
{
"docid": ... |
c805bb599acd1ebea518205317eaa747 | Assigns the image specified by the url to the user's paperclip managed image attrtibute paperclip requires that the extension and mime type match this code will rewrite the temp file to have an extension if one is missing | [
{
"docid": "491a2da2c9f54c9bb844f5c3e9d44c4c",
"score": "0.7530803",
"text": "def image_from_url(url)\n unless url.blank?\n begin \n extname = File.extname(url)\n basename = File.basename(url, extname)\n file = Tempfile.new([basename, extname])\n file.binmode\n ... | [
{
"docid": "3565ffdce57aae0ed25e4a54674b152c",
"score": "0.6546082",
"text": "def set_image(file)\n if !file.nil?\n file_name = file.original_filename\n File.open(\"public/user_images/#{file_name}\", 'wb'){|f| f.write(file.read)}\n self.image = file_name\n end\n end",
"title": ... |
adb749d2116eaf5a585da375400579b2 | Takes the ZM_AUTH_TOKEN and extract the routing info encoded there ZM_AUTH_TOKEN has the following format XX_YYYYY_DATA, the last part is what we care | [
{
"docid": "4f02292771f92cffaae0cd3b467a8cb7",
"score": "0.60140884",
"text": "def auth_zm_auth_tokken\n # extract the last '_xxxxxxxxx' from the cookie\n _x, _y, hex_auth_data = @cookies['ZM_AUTH_TOKEN'].split('_')\n\n # decode the last part from HEX to Text\n # Ex: '....23137393335... | [
{
"docid": "1594ed689f42651396844d45de913e8b",
"score": "0.6326576",
"text": "def decoded_auth_token\n JsonWebToken.decode(@header_token)\n end",
"title": ""
},
{
"docid": "d9903110d9bb653533b9d24727626bee",
"score": "0.62915075",
"text": "def auth\n Auth.decode(token)\n end"... |
8a94e643776158fb70679745a9389e96 | allow "label: false" to prevent label being generated so that function that call label_for can all consistently omit the label when label value is given as false | [
{
"docid": "1e98a7a2ca68f841833e3a1556d41f13",
"score": "0.7080183",
"text": "def label_for(k, label: nil)\n tag(:label, for: k.to_s.dasherize){ label || k.to_s.titleize } unless label == false\n end",
"title": ""
}
] | [
{
"docid": "fea5f165717a013328ba4ae9563f5d86",
"score": "0.7608905",
"text": "def render_label?\n false\n end",
"title": ""
},
{
"docid": "6dfe0de61936daec44a5be43995f1586",
"score": "0.75751984",
"text": "def label?\n false\n end",
"title": ""
},
{
"d... |
259f8bd46d1f5b9cbc5127d40e082997 | Tracks when the user visits Mail only warning when vendor_status_sms is set to full_outage | [
{
"docid": "dbb4b444db051f87a2d4c70cdd5ce86b",
"score": "0.65497243",
"text": "def idv_mail_only_warning_visited(**extra)\n track_event(\n 'IdV: Mail only warning visited',\n **extra,\n )\n end",
"title": ""
}
] | [
{
"docid": "0b6ff07f82b6b9e9ad32f1ff1f8b2e2a",
"score": "0.61895764",
"text": "def warning\n CustomerMailer.warning\n end",
"title": ""
},
{
"docid": "888d6d33861f4fc7f3e74482894c705d",
"score": "0.6174506",
"text": "def send_low_credit_warning\n if self.role == 'advertiser' &... |
5a31bbadcce4f6da0e9a09b8226e8706 | Fully expand the name, even if the prefix wasn't specified in the source file. | [
{
"docid": "c7446a8144c2ebcc59f485a8a2836981",
"score": "0.7361118",
"text": "def fully_expanded_name\n ns = prefix\n return \"#{ns}:#@name\" if ns.size > 0\n return @name\n end",
"title": ""
}
] | [
{
"docid": "360ac64cbff30b61558cb185a69dc28a",
"score": "0.71452683",
"text": "def apply_prefix(name)\n name\n end",
"title": ""
},
{
"docid": "430bd65c0aa9da353e2cc554f4973740",
"score": "0.70555776",
"text": "def full_name\n if @prefix != \"\"\n File.join(@prefi... |
a442492a4439290f986b62c4b83114aa | Update configuration from Redis. Note that this is only applicable when using the REDIS storage. | [
{
"docid": "b82acbec83892b94ac0e969585029a3e",
"score": "0.74501693",
"text": "def update_config_from_redis\n return unless @redis_storage\n \n # Read the current version of the configuration from redis.\n curr_config_version = @redis_storage.get(\"fiverr_config::rack_deflect::config... | [
{
"docid": "cb665af9ba80a8a278acdb86a19436ec",
"score": "0.7056282",
"text": "def redis_config=(config)\n configure(config.merge(backend: :redis))\n end",
"title": ""
},
{
"docid": "9a6525d35c6119deeaf0021a11092613",
"score": "0.6660222",
"text": "def set_redis_config(config)\n ... |
29156b82e4b87baacbea8ff0a60816d4 | Block to be invoked when a message from the room arrives Example: Astro has joined this session block:: Takes two arguments: time, text | [
{
"docid": "3c3965edd3c8af8db57a4165ffd8cab5",
"score": "0.7096761",
"text": "def on_room_message(&block)\n @room_message_block = block\n end",
"title": ""
}
] | [
{
"docid": "f152edc744a54edfda7332ebd6d28334",
"score": "0.6440933",
"text": "def on_room_message(*args, &block)\n register_hook :room_message, args, block\n end",
"title": ""
},
{
"docid": "a206cc2166da07f1a5ccde10a41814d4",
"score": "0.6372703",
"text": "def on_message(&blo... |
345e9e1fe9ae09be6aa1228b650bfc2a | Copy a file into the source path, returning the destination path. | [
{
"docid": "fcb4d83a542a2c5eb7da5dcf68c425f4",
"score": "0.7020506",
"text": "def cp(source_file, dest_relative_path)\n realpath = path dest_relative_path\n dir = File.expand_path '..', realpath\n FileUtils.mkdir_p dir\n FileUtils.cp source_file, realpath\n end",
"title": ""
}
] | [
{
"docid": "9a05470869bbcea748b221c7748d30a5",
"score": "0.8419769",
"text": "def copy_file(source, destination)\n log.debug(log_key) { \"Copying `#{source}' to `#{destination}'\" }\n FileUtils.cp(source, destination)\n destination\n end",
"title": ""
},
{
"docid": "90b48d9... |
663219edc11b191b049ad5141d3d6b91 | Get summary of all queries in project | [
{
"docid": "10d4324532f78e891b25f0cc42ee1c74",
"score": "0.84745944",
"text": "def queries_summary(project_id)\n get \"projects/#{project_id}/queries/summary\"\n end",
"title": ""
}
] | [
{
"docid": "3fade79734e791f10a2e7cb4c8ca3b2d",
"score": "0.7096891",
"text": "def queries(project_id)\n resource \"projects/#{project_id}/queries\"\n end",
"title": ""
},
{
"docid": "5f9d2320622547da2ecc93ab044e60ef",
"score": "0.6514421",
"text": "def all_gtm_iquery_statisti... |
edeb2c2966b4d921d503cb69d092998e | Check if this account has the named role | [
{
"docid": "0920b64e92877a1cbf3cd01947c860b2",
"score": "0.8417027",
"text": "def has_role?(name)\n self.roles_dataset.where(:name => name).count > 0\n end",
"title": ""
}
] | [
{
"docid": "c36cc8dd801bcad3a7c5bd5b323447de",
"score": "0.8489067",
"text": "def has_role?(role_name, obj=nil)\n self.role == role_name.to_s\n end",
"title": ""
},
{
"docid": "bc03c6ad4815e3dc4d2ec1899c4d6ec4",
"score": "0.84505534",
"text": "def has_role?(name)\n roles.i... |
ee0fc409b9b8792424a140c158662965 | Assert that the second level of trace data is correct (or not!). The trace_id should be that of the 0th level trace_id. The first level parent_span_id should be identical to the 0th level span_id. The first level span id should be a new id. | [
{
"docid": "0b692ae19d1b9ad18bf338b06732ed68",
"score": "0.7731544",
"text": "def assert_level_1_trace_correct(traces)\n traces[1]['trace_id'].should == traces[0]['trace_id']\n traces[1]['parent_span_id'].should == traces[0]['span_id']\n traces[1]['span_id'].should_not be_empty\n [traces[1][... | [
{
"docid": "da40455f71fae083a351829a82da764b",
"score": "0.7135161",
"text": "def assert_level_0_trace_correct(traces)\n traces[0]['trace_id'].should_not be_empty\n traces[0]['parent_span_id'].should be_empty\n traces[0]['span_id'].should_not be_empty\n [true, false].include?(traces[0]['samp... |
c094537eb285ba7ddff406c8356bf5b7 | must be binary step | [
{
"docid": "67e19c6259b24fa2c7a00ee83805f8dd",
"score": "0.0",
"text": "def encode_id(id)\r\n sum = 0\r\n a = dec2any(id, MAX_CHECK_SUM)\r\n a.each {|d| sum ^= d}\r\n a << sum\r\n dec2char(any2dec(a, MAX_CHECK_SUM))\r\n end",
"title": ""
}
] | [
{
"docid": "b36bb7d8be16e1309f2f4e6d3102d239",
"score": "0.6826929",
"text": "def binary_operation?; end",
"title": ""
},
{
"docid": "b36bb7d8be16e1309f2f4e6d3102d239",
"score": "0.6826929",
"text": "def binary_operation?; end",
"title": ""
},
{
"docid": "b0872e59ac3dbe10... |
f74c29bdfc4a183e1ec1b91334cd5be2 | Use callbacks to share common setup or constraints between actions. | [
{
"docid": "af29515b277f698d75376b8848fcbb1b",
"score": "0.0",
"text": "def set_user\n @user = User.find_by(email: params['email'])\nend",
"title": ""
}
] | [
{
"docid": "631f4c5b12b423b76503e18a9a606ec3",
"score": "0.60310465",
"text": "def process_action(...)\n run_callbacks(:process_action) do\n super\n end\n end",
"title": ""
},
{
"docid": "7b068b9055c4e7643d4910e8e694ecdc",
"score": "0.60152966",
"text": "d... |
27a39d2e644f477fa7d6f04bca224b8f | Show each Individual Page | [
{
"docid": "f7ccee1c34616b0af582dd0fcc834f69",
"score": "0.0",
"text": "def show\n\tend",
"title": ""
}
] | [
{
"docid": "fc0b91bbb0715d0f23de6cf7e560bae3",
"score": "0.7685978",
"text": "def show\n @pages = Page.all\n end",
"title": ""
},
{
"docid": "677ec6ae734e956a02f54d503d52d30c",
"score": "0.7490953",
"text": "def show\n @page = Page.find(params[:id])\n #this is how we find e... |
652f35a5710246bcb600e8a4a4782d33 | Retrieve a single page of CredentialListInstance records from the API. Request is executed immediately. | [
{
"docid": "3ec5dfddc55eeac1537e28ff1eac91e5",
"score": "0.0",
"text": "def page(page_token: T.unsafe(nil), page_number: T.unsafe(nil), page_size: T.unsafe(nil)); end",
"title": ""
}
] | [
{
"docid": "d21ecc6e0c3775e7b9716ad329f131ad",
"score": "0.62209314",
"text": "def list_instances(credential=nil)\n ret = []\n @instance_list_mutex.synchronize {\n @instances.values.each do |instance|\n ret.push(instance.to_hash) if !credential || instance.allow?(creden... |
c7855fc81dc447617f41d5327bd58c94 | Skip next instruction if Vx != kk. | [
{
"docid": "9c96aedc71a339c17733c2fcc4442c1c",
"score": "0.5421808",
"text": "def opcode_4XKK(helper)\n\t\tself.PC += 2 unless helper.registry_X == helper.var_K\n\tend",
"title": ""
}
] | [
{
"docid": "4ecdd1b75cbf9f69075f600ab1e2e9c1",
"score": "0.76477486",
"text": "def se_vx_byte(x, kk)\n # We skip 1 instruction (each instruction consists of 2 bytes)\n inc_pc(2) && return if @v[x] == kk\n\n # If not equal, just go to the next instruction\n inc_pc\n end",
"title": ""
}... |
f74c29bdfc4a183e1ec1b91334cd5be2 | Use callbacks to share common setup or constraints between actions. | [
{
"docid": "829ba6c618afde0c475a41fc194f15e5",
"score": "0.0",
"text": "def set_document\n @document = Document.find(params[:id])\n @project = @document.project\n exit_if_not_member and return false\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;... |
4f84f38e7efa98c02a199659e3957ccf | GET /basico/modelo_vehiculos/1 GET /basico/modelo_vehiculos/1.json | [
{
"docid": "a81945373733e4951b987de6ea99f9a1",
"score": "0.0",
"text": "def show\n end",
"title": ""
}
] | [
{
"docid": "a1332448602bb0dbe26b90ab994b2748",
"score": "0.71870404",
"text": "def get_modelos\n marca = Marca.find(params[:marca_id])\n @modelos = Modelo.of_marca(marca.id)\n\n render json: @modelos\n\n end",
"title": ""
},
{
"docid": "73816dbb4c0ba442c022c8a68cbd0532",
"score... |
9557a6dc0221dd443cb06045bcc98191 | super does not provide checks for alreadyexisting downloads | [
{
"docid": "454bd98bb1dcd3c8d0bfa0a4f69fbe17",
"score": "0.60361016",
"text": "def fetch\n if tarball_path.exist?\n puts \"Already downloaded: #{tarball_path}\"\n else\n super\n compress\n end\n tarball_path\n end",
"title": ""
}
] | [
{
"docid": "ea62c21270b6e11397f40eadf255e779",
"score": "0.69477075",
"text": "def downloadable?\n false\n end",
"title": ""
},
{
"docid": "21de3870a150cc590289cad83774e00f",
"score": "0.6807949",
"text": "def show_download?\n super && @purl_object.downloadable_files.prese... |
20ce0378f791d325e2da0641a61bd161 | PATCH/PUT /admin/article_options/1 PATCH/PUT /admin/article_options/1.json | [
{
"docid": "dd21b76d7bf55c6b303ffe8418be5e11",
"score": "0.7423977",
"text": "def update\n respond_to do |format|\n if @admin_article_option.update(admin_article_option_params)\n format.html { redirect_to admin_article_options_url, notice: \"#{ t 'activerecord.successful.messages.article_... | [
{
"docid": "78527834bc839a8c22ff0ff093713b99",
"score": "0.67061543",
"text": "def update\n @options = Option.find(params[:id])\n respond_to do |format|\n if @options.update_attributes(options_params)\n format.html { redirect_to root_path, notice: 'Options were successfully updated.' }... |
07c1f32d132f45055d818f2cc9c88f2d | I should probably move this whole method into SubProc and make the subproc_by_ into class variables | [
{
"docid": "0a449605099e4bd34e67b3c219b2e70a",
"score": "0.0",
"text": "def add_subprocess(cmd)\n stdin_rd, stdin_wr = IO.pipe\n stdout_rd, stdout_wr = IO.pipe\n stderr_rd, stderr_wr = IO.pipe\n subproc = MultipleCmd::SubProc.new\n subproc.stdin_fd = stdin_wr\n subproc.stdout_fd = stdo... | [
{
"docid": "44306d2ef320024aed1554e66d086ae2",
"score": "0.6158731",
"text": "def proc; end",
"title": ""
},
{
"docid": "0f10b29d4bb84c071e258287dbca2bfb",
"score": "0.6088707",
"text": "def callProc\r\n my_proc\r\n end",
"title": ""
},
{
"docid": "a606ff314b37ba47be0... |
173676d043a51c4527ae76cb9307aa3f | adjusted/replaced items path item: REXML::Element to parse | [
{
"docid": "43c8beb26f23ff0ad4254365b6cf6779",
"score": "0.64729613",
"text": "def wrapItem item\n if item.class == REXML::Element\n # recursive execution\n item.each_child { |subItem| wrapItem subItem}\n \n case item.name\n when \"img\"\n if item... | [
{
"docid": "a50d827bf34285982b9578d7aadfaa88",
"score": "0.63891166",
"text": "def item(doc)\n # doc.xpath('//item/p[@noindent=\"true\"]').each do |node|\n # node.replace(node.inner_html)\n # end\n doc.xpath('//item').each do |node|\n clean_node node, %w{... |
bfe4cd3180097d84435fcbcd8faa9442 | gets the descriptor ui from this object from the following tag ... Returns:: String | [
{
"docid": "59d0ace04869bcf53cdf750324146176",
"score": "0.76877075",
"text": "def descriptor_ui\n return @descriptor_ui if @descriptor_ui \n xpath = \"/DescriptorUI\"\n @descriptor_ui = @node.find_first(@descriptor_root_path + xpath).content\n end",
"title": ""
}
] | [
{
"docid": "2d1efb6253a22a58239396d37e8b8e88",
"score": "0.67017555",
"text": "def ui\n @pubmed['UI'].strip\n end",
"title": ""
},
{
"docid": "3b303bd21f387e074ad798b4525b618f",
"score": "0.6464525",
"text": "def descriptor \n return @attribute.to_s.humanize if @d... |
ae9cee0dea3e83cf438b738511dc5bd7 | POST /template_fields POST /template_fields.xml | [
{
"docid": "0aee832d992daa50800f0443b9823e6a",
"score": "0.6514326",
"text": "def create\n @template_field = TemplateField.new(params[:template_field])\n\n respond_to do |format|\n if @template_field.save\n\n #create new values for this template field_category\n values = params[... | [
{
"docid": "be477f4caea129b98c6db9cc379a7e25",
"score": "0.65425473",
"text": "def template_params\n params.require(:template).permit(:name, elements: [:type, :ordinal])\n end",
"title": ""
},
{
"docid": "d5d9857c04fb41c884c5122fe4dd08d2",
"score": "0.64062357",
"text": "def ... |
69133864c94d1727c65a3c819b7c21a2 | Change date format to UK format when displaying on site | [
{
"docid": "e9b04a2fa689a46d103e8611ddc446e6",
"score": "0.0",
"text": "def get_app_date()\n date_object = Date.strptime(@app_date, '%Y-%m-%d')\n format = date_object.strftime('%d/%m/%Y')\n return format.to_s\n end",
"title": ""
}
] | [
{
"docid": "b3218d6457285ffa2eadfb3bc5597514",
"score": "0.7188795",
"text": "def date_page_format\n '%B %d, %Y'\n end",
"title": ""
},
{
"docid": "a82ff88ca52c6b3cf7a1bf8a13ef7175",
"score": "0.7129599",
"text": "def use_us_formats\n self.current_date_format = :us\n ... |
be7530e1aa8b01959eac03a6ac8cb143 | Converts larger ExecuteStatementResponse into simplified Ruby object. | [
{
"docid": "470ab68f1a93f752a3e72b15cd38ed09",
"score": "0.0",
"text": "def parse_work_items(results)\n output = []\n results.each do |x|\n x[\"name\"] = x[\"username\"] # Note: Duplicative name/username field added due to front-end bug.\n x[\"id\"] = x[\"work_item_id\"] # Note: Duplicat... | [
{
"docid": "42c718e2c614cd10c5300fe9acc149a3",
"score": "0.5686634",
"text": "def statements_as_object\n @statements_as_object ||= statements_as :object\n end",
"title": ""
},
{
"docid": "94e03b6d0b9d701202b5c1e12973597e",
"score": "0.5655706",
"text": "def statements... |
12700168f7451c4c2fc8bb22c3a86236 | The provider that should be used for this resource. === Returns: Chef::Provider::RemoteFile when the source is an absolute URI, like Chef::Provider::CookbookFile when the source is a relative URI, like 'myscript.pl', 'dir/config.conf' | [
{
"docid": "d39f1d512a90541400cdda521bc2b6c9",
"score": "0.8809295",
"text": "def provider\n if absolute_uri?(source)\n Chef::Provider::RemoteFile\n else\n Chef::Log.warn(\"remote_file is deprecated for fetching files from cookbooks. Use cookbook_file instead\")\n ... | [
{
"docid": "ced25d211c9de299bd0a1e7a39a73074",
"score": "0.66619843",
"text": "def grab_file_from_uri(uri)\n Chef::Provider::RemoteFile::Fetcher.for_resource(uri, @new_resource, @current_resource).fetch\n end",
"title": ""
},
{
"docid": "80e0a6d1bfc20ca80ea854270ba0cd9d",
... |
6dea9543c04b51f85250d91a767dfa53 | Convert github updates into Changesets | [
{
"docid": "ade3fe60c75932eed1be75b4ac129286",
"score": "0.0",
"text": "def before_create(journal)\n\n if journal.user.login == GITHUB_USERNAME\n create_changeset(journal)\n return false # don't create the journal entry\n end\n\n return true # let normal journal entries pass... | [
{
"docid": "6a136542b4b04c82c5409ebb5ee18ff4",
"score": "0.6250445",
"text": "def changesets\n args = ['', 1, @in_repo.latest_revnum, 0, true, nil]\n path_renames = {}\n \n @in_repo.log(*args) do |changes, rev_num, author, date, msg|\n print \"#{rev_num} \" if PRINT_INFO\n # Sort s... |
6f6202133df244d0213d47d6cf5ecb93 | Test 25840: Verify Month from Jan to Dec can be selected | [
{
"docid": "eacf6c5e367f16df76b966c171d4b81e",
"score": "0.0",
"text": "def test_ID_25840_edit_profile_resident_since_02\n login $user_1_email, $master_password\n go_to_edit_profile_page\n \n opt = []\n $profile_resident_mm.options.each{|option| opt<< option.text}\n i=1\n whil... | [
{
"docid": "d804964eb722de90bb330c3c37d427bb",
"score": "0.7328252",
"text": "def test_days_in_month()\n first_month=days_in_month(1,2016)\n assert_equal(31,first_month)\n end",
"title": ""
},
{
"docid": "813b26d1d050ce8a3afcb4ba0bbdf967",
"score": "0.72971433",
"text": "def m... |
36b77f1589008efc5ab8d8c416b69681 | Subscribe to additional queues not specified in ruote.yml | [
{
"docid": "5505224d5b4838de3fc36b8d2a36bcf7",
"score": "0.7209677",
"text": "def subscribe_to( queue )\n @runtime_queues << queue\n end",
"title": ""
}
] | [
{
"docid": "5deca299cd553972a9f583b5ecc8d1b0",
"score": "0.6789908",
"text": "def subscribe_to(queue)\n @queue_name = queue\n end",
"title": ""
},
{
"docid": "6787ba98e9d42be960baea68ae6ab4a6",
"score": "0.66627747",
"text": "def subscribe\n q = OsCtl::Lib::Queue.new... |
046d15b8ebccd65ad83f90a6484159fe | Add a spatial index on the given columns to the DDL. | [
{
"docid": "13491dfd0446c2c6525c1604e9ef46b8",
"score": "0.78328884",
"text": "def spatial_index(columns, opts = {})\n index(columns, opts.merge(:type => :spatial))\n end",
"title": ""
}
] | [
{
"docid": "d2f36e8aff2844ccb7f67ea1293db232",
"score": "0.8295492",
"text": "def add_spatial_index(columns, opts = {})\n add_index(columns, {:type=>:spatial}.merge(opts))\n end",
"title": ""
},
{
"docid": "4e86adcc802aca81491e5e7872c21f0b",
"score": "0.8288811",
"text": ... |
7f2ae7ca1f1572b9ae5b9b02482757e9 | type: Type of instance which was searched for. count: Total amount of results that are available page: Currently requested page (in terms of pagination) size: Amount of results on a single page results: Actual results in the form of the ElasticSearch response. TODO: it would be nice if we could somehow return the match... | [
{
"docid": "657dfecb68025e49f6778295adda8e5c",
"score": "0.65687966",
"text": "def format_search_results(type, count, page, size, results)\n last_page = count / size\n next_page = [page + 1, last_page].min\n prev_page = [page - 1, 0].max\n\n query_string = request.query_string.gsub(/&?page\\[(number... | [
{
"docid": "79643f774590833b71c56d81eac081e7",
"score": "0.6710996",
"text": "def size\n self['response'] ? self['response']['numFound'] : 0 # total number of Solr docs matching query\n # NOT: self[\"response\"][\"docs\"].size # number of Solr docs returned in THIS response\n end",
"... |
af630984682f1a0b5a68e6092af0d102 | Update properties of this object | [
{
"docid": "e3603f3d3ac4093a055e58a1f2e4275d",
"score": "0.0",
"text": "def update!(**args)\n @cpu_processor = args[:cpu_processor] if args.key?(:cpu_processor)\n @cpu_speed_in_ghz = args[:cpu_speed_in_ghz] if args.key?(:cpu_speed_in_ghz)\n @number_of_cores = args[:number_of_c... | [
{
"docid": "184b1b1ed771473d3eb9f338c0734c38",
"score": "0.73066413",
"text": "def update *args\n opts = args.extract_options!\n fill_properties opts\n self.save\n end",
"title": ""
},
{
"docid": "5076c5a88404ae72986f958710f5687a",
"score": "0.72631145",
"text": "def update... |
69f5129ee87f81b6d4083f700029f620 | load the specified alias file into a hash | [
{
"docid": "b0408a13e343f3400eba2f4c158b8907",
"score": "0.66845894",
"text": "def load_alias_file(path)\n file = File.open(path, \"r:UTF-8\") {|f| f.read}\n JSON.parse(file)\n end",
"title": ""
}
] | [
{
"docid": "b0d223a9ea934a7a350f380263ee9efd",
"score": "0.67471534",
"text": "def loadHash(fpath, hash)\n IO.foreach(fpath) do |line|\n contents = line.split(\"\\t\")\n morpheme = contents[0]\n definition = contents[1]\n hash[morpheme] = definition\n end\n return hash\nend",
"title":... |
938e48fcca8205608af875b77f449e8b | Delete the job from either schedule, retry or the queue | [
{
"docid": "67a5210d8f82e4c0ac4ff786e1e4abb4",
"score": "0.6784746",
"text": "def delete_job_by_digest\n call_script(:delete_job_by_digest,\n keys: [\"#{QUEUE}:#{queue}\", SCHEDULE, RETRY],\n argv: [lock_digest])\n end",
"title": ""
}
] | [
{
"docid": "b57d020ea9ed9e1b59dafc84c29a4d6c",
"score": "0.7416894",
"text": "def delete\n job_resource.delete\n end",
"title": ""
},
{
"docid": "e5b143eb2304a019cf94c90c776cf541",
"score": "0.7271048",
"text": "def delete_job\n raise NotImplementedError\n end",
"titl... |
aa71420c7868b042460f03abcee9e9b3 | Produces the name of a space company. | [
{
"docid": "4f6c551b8ee67109a9ffa538bbb23071",
"score": "0.7633288",
"text": "def company\n fetch('space.company')\n end",
"title": ""
}
] | [
{
"docid": "a91d204d230bfa012028501e075a5019",
"score": "0.77708584",
"text": "def name\n company.blank? ? full_name : \"#{company} (#{full_name})\"\n end",
"title": ""
},
{
"docid": "a91d204d230bfa012028501e075a5019",
"score": "0.7770736",
"text": "def name\n company.bl... |
d0848cee9ea416dfbd5b07103b6fd1ec | get every test to pass before coding runner below | [
{
"docid": "28d50018453db534f9445e37aff36983",
"score": "0.0",
"text": "def runner\n # code runner here\nend",
"title": ""
}
] | [
{
"docid": "4214d9c38556c2b02453744c9abd3771",
"score": "0.7492311",
"text": "def pass(suite, test, test_runner); end",
"title": ""
},
{
"docid": "e820a876acc56d01d07c4fe31f07d454",
"score": "0.74173",
"text": "def run_tests\n count = 0\n puts \"Starting test run...\"\n self... |
a2499a7b2e2bbdf5d10b8073ced54fc7 | Returns the value of the `total_size` attribute. | [
{
"docid": "e668b60d05cbc3ba1f1d329c33a58ad2",
"score": "0.8781291",
"text": "def total_size\n @total_size\n end",
"title": ""
}
] | [
{
"docid": "aabd2fb94d5d09be012cbb399e5535bd",
"score": "0.8689024",
"text": "def total_size=(value)\n @total_size = value\n end",
"title": ""
},
{
"docid": "aabd2fb94d5d09be012cbb399e5535bd",
"score": "0.86883885",
"text": "def total_size=(value)\n @total_size = value\n... |
aadeef5df3924f260411af818020c7f8 | Get the header row of the currently selected sheet | [
{
"docid": "241918bd4aa3e9688370c81e8d7f3a98",
"score": "0.7646365",
"text": "def get_header\n @ss.row(@s_opts[index][:header_row]+1) # because roo in 1-based\n end",
"title": ""
}
] | [
{
"docid": "375581f885111a215f4f2ea4cd3ca835",
"score": "0.83892995",
"text": "def get_header\n @ss.sheet(@sh_index).row(1)\n end",
"title": ""
},
{
"docid": "340112f718dfa996fbf9a1b2cc7c8746",
"score": "0.8179678",
"text": "def get_header\n @ss.sheet(@sh_index).row(1)\nend",
... |
72d117aeb718b0223a6c863a9be9a7f2 | PATCH/PUT /problems/1/solutions/1 PATCH/PUT /problems/1/solutions/1.json | [
{
"docid": "e1fb63e01e4a7aa7cf0deb38c53a0f26",
"score": "0.62258524",
"text": "def update\n respond_to do |format|\n if @solution.update(solution_params)\n params[:solution][:test_runs].each do |test_run|\n @solution.test_runs.create(test_run)\n end\n\n format.html ... | [
{
"docid": "9607c1689db2e5a4c371180a0e606da0",
"score": "0.741751",
"text": "def update\n @problem = @idea.problems.find(params[:id])\n\n if @problem.update_attributes(params[:problem])\n render json: { text: \"success\"}\n else\n render json: { text: \"fail\"}\n end\n end",
"... |
e7f65293f4b9f46ee968927840275bf9 | Find a useful socket identity, falling back to the memory address of the socket if it no identity was assigned with setsockopt(ZMQ::IDENTITY, ""). Since identity can't be changed after connect/bind, it's unlikely this will ever change during runtime. | [
{
"docid": "8dd4b676e6b3b66972c9b1d823af0e8b",
"score": "0.8114633",
"text": "def sockid(socket)\n if socket.kind_of? ZMQ::Socket\n rc = socket.getsockopt(ZMQ::IDENTITY, id=[])\n if ZMQ::Util.resultcode_ok?(rc) and id[0]\n id[0]\n else\n socket.socket.address\... | [
{
"docid": "55d16f9b827c579273f76630a2912d6a",
"score": "0.7602174",
"text": "def identity\n getsockopt ZMQ::IDENTITY\n end",
"title": ""
},
{
"docid": "4ac519e5946ae5efb0ee5d67709a8b11",
"score": "0.7324896",
"text": "def identity\n arr = []\n @socket.getsockopt(ZMQ::I... |
d9ed7d9a27409237e2ec94e4afffb0ec | Location where the view files can be found Default to lib/conduit/drivers//views Can be overriden per class. | [
{
"docid": "5b97a07fd95fe5c67a0b5f128cbe53fd",
"score": "0.73642945",
"text": "def view_path\n File.join(File.dirname(action_path), 'views')\n end",
"title": ""
}
] | [
{
"docid": "3a57d385fd3838b7df53d71cec324873",
"score": "0.78358036",
"text": "def view_directory\n 'view'\n end",
"title": ""
},
{
"docid": "faf0fe195258e91ea71d5b874abe1de5",
"score": "0.75920665",
"text": "def view_paths\n _view_paths\n end",
"title": ""
},
... |