query
stringlengths
7
9.55k
document
stringlengths
10
363k
metadata
dict
negatives
listlengths
0
101
negative_scores
listlengths
0
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Update properties of this object
def update!(**args) @bot = args[:bot] if args.key?(:bot) @command_id = args[:command_id] if args.key?(:command_id) @command_name = args[:command_name] if args.key?(:command_name) @triggers_dialog = args[:triggers_dialog] if args.key?(:triggers_dialog) @type = args[:type...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update_properties(hash)\n hash.each do |key, value|\n setter_method = \"#{key}=\"\n if self.respond_to?(setter_method)\n self.send(setter_method, value)\n end\n end\n end", "def update!(**args)\n @properties = args[:properties] if args.key?(:properties)\n ...
[ "0.7012263", "0.69181895", "0.69181895", "0.69181895", "0.69181895", "0.69181895", "0.67403597", "0.6709326", "0.6709326", "0.6696149", "0.6696149", "0.6696149", "0.6696149", "0.6618882", "0.6571848", "0.65386343", "0.65178275", "0.6394807", "0.6389745", "0.6389745", "0.63328...
0.0
-1
Update properties of this object
def update!(**args) @admin_installed = args[:admin_installed] if args.key?(:admin_installed) @display_name = args[:display_name] if args.key?(:display_name) @external_user_allowed = args[:external_user_allowed] if args.key?(:external_user_allowed) @name = args[:name] if args.key?...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update_properties(hash)\n hash.each do |key, value|\n setter_method = \"#{key}=\"\n if self.respond_to?(setter_method)\n self.send(setter_method, value)\n end\n end\n end", "def update!(**args)\n @properties = args[:properties] if args.key?(:properties)\n ...
[ "0.7012263", "0.69181895", "0.69181895", "0.69181895", "0.69181895", "0.69181895", "0.67403597", "0.6709326", "0.6709326", "0.6696149", "0.6696149", "0.6696149", "0.6696149", "0.6618882", "0.6571848", "0.65386343", "0.65178275", "0.6394807", "0.6389745", "0.6389745", "0.63328...
0.0
-1
Update properties of this object
def update!(**args) @default_to_current_space = args[:default_to_current_space] if args.key?(:default_to_current_space) end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update_properties(hash)\n hash.each do |key, value|\n setter_method = \"#{key}=\"\n if self.respond_to?(setter_method)\n self.send(setter_method, value)\n end\n end\n end", "def update!(**args)\n @properties = args[:properties] if args.key?(:properties)\n ...
[ "0.7012263", "0.69181895", "0.69181895", "0.69181895", "0.69181895", "0.69181895", "0.67403597", "0.6709326", "0.6709326", "0.6696149", "0.6696149", "0.6696149", "0.6696149", "0.6618882", "0.6571848", "0.65386343", "0.65178275", "0.6394807", "0.6389745", "0.6389745", "0.63328...
0.0
-1
Update properties of this object
def update!(**args) @description = args[:description] if args.key?(:description) @guidelines = args[:guidelines] if args.key?(:guidelines) end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update_properties(hash)\n hash.each do |key, value|\n setter_method = \"#{key}=\"\n if self.respond_to?(setter_method)\n self.send(setter_method, value)\n end\n end\n end", "def update!(**args)\n @properties = args[:properties] if args.key?(:properties)\n ...
[ "0.70124525", "0.69187176", "0.69187176", "0.69187176", "0.69187176", "0.69187176", "0.6738901", "0.67084897", "0.67084897", "0.66983044", "0.66983044", "0.66983044", "0.66983044", "0.66188794", "0.6571416", "0.6538292", "0.65194744", "0.63953435", "0.63903284", "0.63903284", ...
0.0
-1
Update properties of this object
def update!(**args) @code = args[:code] if args.key?(:code) @details = args[:details] if args.key?(:details) @message = args[:message] if args.key?(:message) end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update_properties(hash)\n hash.each do |key, value|\n setter_method = \"#{key}=\"\n if self.respond_to?(setter_method)\n self.send(setter_method, value)\n end\n end\n end", "def update!(**args)\n @properties = args[:properties] if args.key?(:properties)\n ...
[ "0.7012263", "0.69181895", "0.69181895", "0.69181895", "0.69181895", "0.69181895", "0.67403597", "0.6709326", "0.6709326", "0.6696149", "0.6696149", "0.6696149", "0.6696149", "0.6618882", "0.6571848", "0.65386343", "0.65178275", "0.6394807", "0.6389745", "0.6389745", "0.63328...
0.0
-1
Update properties of this object
def update!(**args) @value = args[:value] if args.key?(:value) end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update_properties(hash)\n hash.each do |key, value|\n setter_method = \"#{key}=\"\n if self.respond_to?(setter_method)\n self.send(setter_method, value)\n end\n end\n end", "def update!(**args)\n @properties = args[:properties] if args.key?(:properties)\n ...
[ "0.7012263", "0.69181895", "0.69181895", "0.69181895", "0.69181895", "0.69181895", "0.67403597", "0.6709326", "0.6709326", "0.6696149", "0.6696149", "0.6696149", "0.6696149", "0.6618882", "0.6571848", "0.65386343", "0.65178275", "0.6394807", "0.6389745", "0.6389745", "0.63328...
0.0
-1
Update properties of this object
def update!(**args) @on_click = args[:on_click] if args.key?(:on_click) @text = args[:text] if args.key?(:text) end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update_properties(hash)\n hash.each do |key, value|\n setter_method = \"#{key}=\"\n if self.respond_to?(setter_method)\n self.send(setter_method, value)\n end\n end\n end", "def update!(**args)\n @properties = args[:properties] if args.key?(:properties)\n ...
[ "0.7012263", "0.69181895", "0.69181895", "0.69181895", "0.69181895", "0.69181895", "0.67403597", "0.6709326", "0.6709326", "0.6696149", "0.6696149", "0.6696149", "0.6696149", "0.6618882", "0.6571848", "0.65386343", "0.65178275", "0.6394807", "0.6389745", "0.6389745", "0.63328...
0.0
-1
Update properties of this object
def update!(**args) @text = args[:text] if args.key?(:text) end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update_properties(hash)\n hash.each do |key, value|\n setter_method = \"#{key}=\"\n if self.respond_to?(setter_method)\n self.send(setter_method, value)\n end\n end\n end", "def update!(**args)\n @properties = args[:properties] if args.key?(:properties)\n ...
[ "0.70124525", "0.69187176", "0.69187176", "0.69187176", "0.69187176", "0.69187176", "0.6738901", "0.67084897", "0.67084897", "0.66983044", "0.66983044", "0.66983044", "0.66983044", "0.66188794", "0.6571416", "0.6538292", "0.65194744", "0.63953435", "0.63903284", "0.63903284", ...
0.0
-1
Update properties of this object
def update!(**args) @name = args[:name] if args.key?(:name) @thread_key = args[:thread_key] if args.key?(:thread_key) end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update_properties(hash)\n hash.each do |key, value|\n setter_method = \"#{key}=\"\n if self.respond_to?(setter_method)\n self.send(setter_method, value)\n end\n end\n end", "def update!(**args)\n @properties = args[:properties] if args.key?(:properties)\n ...
[ "0.7012263", "0.69181895", "0.69181895", "0.69181895", "0.69181895", "0.69181895", "0.67403597", "0.6709326", "0.6709326", "0.6696149", "0.6696149", "0.6696149", "0.6696149", "0.6618882", "0.6571848", "0.65386343", "0.65178275", "0.6394807", "0.6389745", "0.6389745", "0.63328...
0.0
-1
Update properties of this object
def update!(**args) @hours = args[:hours] if args.key?(:hours) @minutes = args[:minutes] if args.key?(:minutes) end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update_properties(hash)\n hash.each do |key, value|\n setter_method = \"#{key}=\"\n if self.respond_to?(setter_method)\n self.send(setter_method, value)\n end\n end\n end", "def update!(**args)\n @properties = args[:properties] if args.key?(:properties)\n ...
[ "0.7012263", "0.69181895", "0.69181895", "0.69181895", "0.69181895", "0.69181895", "0.67403597", "0.6709326", "0.6709326", "0.6696149", "0.6696149", "0.6696149", "0.6696149", "0.6618882", "0.6571848", "0.65386343", "0.65178275", "0.6394807", "0.6389745", "0.6389745", "0.63328...
0.0
-1
Update properties of this object
def update!(**args) @id = args[:id] if args.key?(:id) @offset = args[:offset] if args.key?(:offset) end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update_properties(hash)\n hash.each do |key, value|\n setter_method = \"#{key}=\"\n if self.respond_to?(setter_method)\n self.send(setter_method, value)\n end\n end\n end", "def update!(**args)\n @properties = args[:properties] if args.key?(:properties)\n ...
[ "0.7012263", "0.69181895", "0.69181895", "0.69181895", "0.69181895", "0.69181895", "0.67403597", "0.6709326", "0.6709326", "0.6696149", "0.6696149", "0.6696149", "0.6696149", "0.6618882", "0.6571848", "0.65386343", "0.65178275", "0.6394807", "0.6389745", "0.6389745", "0.63328...
0.0
-1
Update properties of this object
def update!(**args) @filename = args[:filename] if args.key?(:filename) end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update_properties(hash)\n hash.each do |key, value|\n setter_method = \"#{key}=\"\n if self.respond_to?(setter_method)\n self.send(setter_method, value)\n end\n end\n end", "def update!(**args)\n @properties = args[:properties] if args.key?(:properties)\n ...
[ "0.70124525", "0.69187176", "0.69187176", "0.69187176", "0.69187176", "0.69187176", "0.6738901", "0.67084897", "0.67084897", "0.66983044", "0.66983044", "0.66983044", "0.66983044", "0.66188794", "0.6571416", "0.6538292", "0.65194744", "0.63953435", "0.63903284", "0.63903284", ...
0.0
-1
Update properties of this object
def update!(**args) @attachment_data_ref = args[:attachment_data_ref] if args.key?(:attachment_data_ref) end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update_properties(hash)\n hash.each do |key, value|\n setter_method = \"#{key}=\"\n if self.respond_to?(setter_method)\n self.send(setter_method, value)\n end\n end\n end", "def update!(**args)\n @properties = args[:properties] if args.key?(:properties)\n ...
[ "0.7012263", "0.69181895", "0.69181895", "0.69181895", "0.69181895", "0.69181895", "0.67403597", "0.6709326", "0.6709326", "0.6696149", "0.6696149", "0.6696149", "0.6696149", "0.6618882", "0.6571848", "0.65386343", "0.65178275", "0.6394807", "0.6389745", "0.6389745", "0.63328...
0.0
-1
Update properties of this object
def update!(**args) @display_name = args[:display_name] if args.key?(:display_name) @domain_id = args[:domain_id] if args.key?(:domain_id) @is_anonymous = args[:is_anonymous] if args.key?(:is_anonymous) @name = args[:name] if args.key?(:name) @type = args[:type] if args...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update_properties(hash)\n hash.each do |key, value|\n setter_method = \"#{key}=\"\n if self.respond_to?(setter_method)\n self.send(setter_method, value)\n end\n end\n end", "def update!(**args)\n @properties = args[:properties] if args.key?(:properties)\n ...
[ "0.7012263", "0.69181895", "0.69181895", "0.69181895", "0.69181895", "0.69181895", "0.67403597", "0.6709326", "0.6709326", "0.6696149", "0.6696149", "0.6696149", "0.6696149", "0.6618882", "0.6571848", "0.65386343", "0.65178275", "0.6394807", "0.6389745", "0.6389745", "0.63328...
0.0
-1
Update properties of this object
def update!(**args) @type = args[:type] if args.key?(:type) @user = args[:user] if args.key?(:user) end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update_properties(hash)\n hash.each do |key, value|\n setter_method = \"#{key}=\"\n if self.respond_to?(setter_method)\n self.send(setter_method, value)\n end\n end\n end", "def update!(**args)\n @properties = args[:properties] if args.key?(:properties)\n ...
[ "0.7012263", "0.69181895", "0.69181895", "0.69181895", "0.69181895", "0.69181895", "0.67403597", "0.6709326", "0.6709326", "0.6696149", "0.6696149", "0.6696149", "0.6696149", "0.6618882", "0.6571848", "0.65386343", "0.65178275", "0.6394807", "0.6389745", "0.6389745", "0.63328...
0.0
-1
Update properties of this object
def update!(**args) @buttons = args[:buttons] if args.key?(:buttons) @image = args[:image] if args.key?(:image) @key_value = args[:key_value] if args.key?(:key_value) @text_paragraph = args[:text_paragraph] if args.key?(:text_paragraph) end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update_properties(hash)\n hash.each do |key, value|\n setter_method = \"#{key}=\"\n if self.respond_to?(setter_method)\n self.send(setter_method, value)\n end\n end\n end", "def update!(**args)\n @properties = args[:properties] if args.key?(:properties)\n ...
[ "0.70124525", "0.69187176", "0.69187176", "0.69187176", "0.69187176", "0.69187176", "0.6738901", "0.67084897", "0.67084897", "0.66983044", "0.66983044", "0.66983044", "0.66983044", "0.66188794", "0.6571416", "0.6538292", "0.65194744", "0.63953435", "0.63903284", "0.63903284", ...
0.0
-1
Given a list of classes, modules, strings, and symbols, compile a combined list of methods. Classes and modules will be queried for their instance methods; strings and symbols will be treated as method names. Once the list is compiled, make all of the methods private. Takes an optional options hash, which can include t...
def hide(*stuff) hide_methods(self, [Object], *stuff) end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def apply_to_methods\n # If method/methods option is set and all are String or Symbol, apply to those only, instead of\n # iterating through all methods\n methods = [@options[:method] || @options[:methods]]\n methods.compact!\n methods.flatten!\n\n if !methods.empty? && methods.all?{ ...
[ "0.62086856", "0.6109597", "0.5829991", "0.57031196", "0.5702612", "0.5621867", "0.56057113", "0.56019765", "0.55754775", "0.5560452", "0.5512844", "0.55104476", "0.54419714", "0.5430024", "0.54073", "0.5401559", "0.5381694", "0.5372398", "0.53435564", "0.5299563", "0.5244238...
0.0
-1
Like hide, only hides methods at the class/module level.
def hide_singletons(*stuff) hide_methods(singleton_class, [Class], *stuff) end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hide!\n singleton_class.send(:define_method, :nodoc) { true }\n end", "def hide(*stuff)\n hide_methods(self, [Object], *stuff)\n end", "def hide; end", "def hide; end", "def hide_methods(mod, except_defaults, *stuff)\n options = stuff.last.is_a?(Hash) ? stuff.pop : {}\n include_an...
[ "0.74670506", "0.73156226", "0.7253108", "0.7253108", "0.7168337", "0.68939155", "0.6478169", "0.64228195", "0.6387643", "0.6336886", "0.6305707", "0.6305707", "0.6213538", "0.61817646", "0.6139916", "0.6134049", "0.61283636", "0.6051383", "0.6033084", "0.60263807", "0.591202...
0.6622074
6
The shared bits of hide and hide_singletons
def hide_methods(mod, except_defaults, *stuff) options = stuff.last.is_a?(Hash) ? stuff.pop : {} include_ancestors = options.fetch(:ancestors){false} except = Array(options.fetch(:except){except_defaults}) protect = Array(options[:protect]) except_methods = coll...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hide_singletons(*stuff)\n hide_methods(singleton_class, [Class], *stuff)\n end", "def hide!\n singleton_class.send(:define_method, :nodoc) { true }\n end", "def hide; end", "def hide; end", "def singleton_methods; end", "def hide_current_state\n\t\t@classes = Array.new\n\t\tObjectSpace.ea...
[ "0.79157335", "0.69547397", "0.64441645", "0.64441645", "0.627906", "0.61161685", "0.61122936", "0.6045546", "0.59848046", "0.59499705", "0.5918739", "0.5915255", "0.5819455", "0.57647055", "0.5707038", "0.5651175", "0.56025565", "0.55724657", "0.5494261", "0.5470526", "0.545...
0.5458246
20
Given a list of classes, modules, strings, and symbols, compile a combined list of methods. Classes and modules will be queried for their instance methods; strings and symbols will be treated as methods names. +include_ancestors+ determines whether to include methods defined by class/module ancestors.
def collect_methods(include_ancestors, *methods_or_modules) methods_or_modules.inject([]) {|methods, method_or_module| case method_or_module when Symbol, String methods << method_or_module.to_sym when Module # also includes classes methods.concat(method_or_module.instan...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def child_methods\n literals.select {|lit| lit.kind_of? CompiledMethod }\n end", "def with_methods\n method_names = @director ? @director.methods_wrapped.map {|m| m.name } : []\n [self.code.methods].flatten.each do |method|\n next if do_not_wrap?(method)\n next if method_n...
[ "0.598585", "0.59137535", "0.57419205", "0.56867117", "0.5633375", "0.562813", "0.55664676", "0.556154", "0.55500615", "0.55165553", "0.5455936", "0.54237115", "0.534861", "0.5342779", "0.5341936", "0.5335852", "0.5322555", "0.52851593", "0.52813", "0.52327096", "0.5218546", ...
0.75555813
0
Convenience method to allow configuration options to be set in a block
def configure yield self self end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def configure(&block)\n raise ArgumentError, \"Block is required.\" unless block_given?\n yield @options\n end", "def config(&block)\n instance_eval(&block) if block_given?\n end", "def configure_with_block(&block)\n self.instance_eval(&block) if block_given?\n end", "def configure_wit...
[ "0.8478099", "0.8120963", "0.81001765", "0.81001765", "0.8010885", "0.7984564", "0.7981057", "0.7940716", "0.79392976", "0.7935303", "0.7903023", "0.7882659", "0.7882427", "0.787986", "0.7873399", "0.78668606", "0.78619075", "0.78619075", "0.78616524", "0.7843603", "0.7843267...
0.0
-1
POST /pumpers POST /pumpers.xml
def create @timesheet = Incident.find(params[:incident_id]).timesheet @pumper = @timesheet.pumpers.build(params[:pumper]) respond_to do |format| if @pumper.save format.html { redirect_to(edit_incident_timesheet_path, :notice => 'Pumper was successfully created.') } else format.html...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pump\n if event_params(:pump)['event'].present? && event_params(:pump)['event'].start_with?('pump')\n @pump_status = PumpStatus.new event_params(:pump)\n handle_event(@pump_status)\n else\n handle_event_missing(event_params(:name))\n end\n end", "def post\n resource.post(request...
[ "0.52776605", "0.5221963", "0.52193856", "0.5156656", "0.50978374", "0.50968605", "0.5079734", "0.50520784", "0.5052003", "0.50402105", "0.50212264", "0.501424", "0.50077546", "0.50070643", "0.5002505", "0.49670017", "0.4966316", "0.4966118", "0.4963846", "0.49554917", "0.493...
0.55116343
0
PUT /pumpers/1 PUT /pumpers/1.xml
def update @pumper = Pumper.find(params[:id]) respond_to do |format| if @pumper.update_attributes(params[:pumper]) format.html { redirect_to(incident_timesheet_path, :notice => 'Pumper was successfully updated.') } format.xml { head :ok } else format.html { render :action =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update opts = {}\n opts[:headers] ||= {}\n opts[:headers]['Content-Type'] ||= 'text/xml'\n post 'update', opts\n end", "def update(id, name=\"Updated Name\", age=\"55\")\r\n xml_req =\r\n \"<?xml version='1.0' encoding='UTF-8'?>\r\n <person>\r\n <id type='integer'>#{id}</id>\r\n ...
[ "0.593859", "0.56422377", "0.5545055", "0.5525065", "0.54254895", "0.5371809", "0.5352304", "0.52863914", "0.52292246", "0.5166626", "0.51535314", "0.51159924", "0.5077766", "0.50560397", "0.5049244", "0.5030347", "0.50280684", "0.5011187", "0.5009801", "0.50001967", "0.49911...
0.6492535
0
DELETE /pumpers/1 DELETE /pumpers/1.xml
def destroy @pumper = Pumper.find(params[:id]) @pumper.destroy respond_to do |format| format.html { redirect_to(incident_timesheet_path, :notice => 'Pumper was successfully deleted.') } format.xml { head :ok } end end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def destroy\n @pump_line = PumpLine.find(params[:id])\n @pump_line.destroy\n\n respond_to do |format|\n format.html { redirect_to(pump_lines_url) }\n format.xml { head :ok }\n end\n end", "def destroy\n @bail = Bail.find(params[:id])\n# @bail.destroy\n\n respond_to do |format|\n ...
[ "0.6565413", "0.6254016", "0.6202946", "0.6142241", "0.61337095", "0.60871947", "0.6065154", "0.6047012", "0.60249954", "0.6003987", "0.59886503", "0.5985449", "0.59829986", "0.59601116", "0.5948457", "0.5939455", "0.5933279", "0.5933271", "0.5929426", "0.59246683", "0.592381...
0.7027457
0
Creates a new tape drive. API Key Scope: tape_drives / create
def create_tape_drive_by_tape_library(tape_library_id, tape_drive_body, opts = {}) data, _status_code, _headers = create_tape_drive_by_tape_library_with_http_info(tape_library_id, tape_drive_body, opts) data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create_tape_drive_by_tape_library_with_http_info(tape_library_id, tape_drive_body, opts = {})\n if @api_client.config.debugging\n @api_client.config.logger.debug 'Calling API: TapeDrivesApi.create_tape_drive_by_tape_library ...'\n end\n # verify the required parameter 'tape_library_id' is...
[ "0.63021094", "0.60428596", "0.59717923", "0.59068936", "0.58905965", "0.58591753", "0.57933575", "0.5792216", "0.5778003", "0.5736325", "0.5676669", "0.5657668", "0.56458384", "0.56000763", "0.55858815", "0.554533", "0.5535135", "0.55304056", "0.5523044", "0.5489486", "0.547...
0.6305188
0
Creates a new tape drive. API Key Scope: tape_drives / create
def create_tape_drive_by_tape_library_with_http_info(tape_library_id, tape_drive_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: TapeDrivesApi.create_tape_drive_by_tape_library ...' end # verify the required parameter 'tape_library_id' is set ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create_tape_drive_by_tape_library(tape_library_id, tape_drive_body, opts = {})\n data, _status_code, _headers = create_tape_drive_by_tape_library_with_http_info(tape_library_id, tape_drive_body, opts)\n data\n end", "def create\n @drive_type = DriveType.new(params[:drive_type])\n\n respond...
[ "0.6305188", "0.60428596", "0.59717923", "0.59068936", "0.58905965", "0.58591753", "0.57933575", "0.5792216", "0.5778003", "0.5736325", "0.5676669", "0.5657668", "0.56458384", "0.56000763", "0.55858815", "0.554533", "0.5535135", "0.55304056", "0.5523044", "0.5489486", "0.5471...
0.63021094
1
Destroys a specific tape drive. API Key Scope: tape_drives / destroy
def destroy_tape_drive(tape_drive_id, opts = {}) destroy_tape_drive_with_http_info(tape_drive_id, opts) nil end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def destroy_tape_drive_with_http_info(tape_drive_id, opts = {})\n if @api_client.config.debugging\n @api_client.config.logger.debug 'Calling API: TapeDrivesApi.destroy_tape_drive ...'\n end\n # verify the required parameter 'tape_drive_id' is set\n if @api_client.config.client_side_valid...
[ "0.699584", "0.66342956", "0.6464306", "0.64514256", "0.6419904", "0.6408456", "0.6356012", "0.63434166", "0.6201278", "0.61230373", "0.6118356", "0.6091912", "0.60825187", "0.607373", "0.60035104", "0.5969916", "0.59588116", "0.5938809", "0.5907166", "0.5881415", "0.58696675...
0.6393509
6
Destroys a specific tape drive. API Key Scope: tape_drives / destroy
def destroy_tape_drive_with_http_info(tape_drive_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: TapeDrivesApi.destroy_tape_drive ...' end # verify the required parameter 'tape_drive_id' is set if @api_client.config.client_side_validation && t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def destroy\n @drive_system = DriveSystem.find(params[:id])\n @drive_system.destroy\n\n respond_to do |format|\n format.html { redirect_to drive_systems_url }\n format.json { head :no_content }\n end\n end", "def destroy\n @drive = Drive.find(params[:id])\n @drive.destroy\n redire...
[ "0.66342604", "0.6464231", "0.64509064", "0.6419975", "0.6409487", "0.63956195", "0.635544", "0.6342606", "0.6198466", "0.6121878", "0.6118441", "0.6088167", "0.6083707", "0.60709596", "0.6001977", "0.59700847", "0.5956643", "0.5937572", "0.59049886", "0.5880119", "0.58669114...
0.6995221
0
Destroys a specific tape drive. API Key Scope: tape_drives / destroy
def destroy_tape_drive_by_tape_library(tape_library_id, tape_drive_id, opts = {}) destroy_tape_drive_by_tape_library_with_http_info(tape_library_id, tape_drive_id, opts) nil end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def destroy_tape_drive_with_http_info(tape_drive_id, opts = {})\n if @api_client.config.debugging\n @api_client.config.logger.debug 'Calling API: TapeDrivesApi.destroy_tape_drive ...'\n end\n # verify the required parameter 'tape_drive_id' is set\n if @api_client.config.client_side_valid...
[ "0.699584", "0.66342956", "0.6464306", "0.64514256", "0.6419904", "0.6408456", "0.6393509", "0.6356012", "0.63434166", "0.6201278", "0.61230373", "0.6118356", "0.6091912", "0.607373", "0.60035104", "0.5969916", "0.59588116", "0.5938809", "0.5907166", "0.5881415", "0.58696675"...
0.60825187
13
Destroys a specific tape drive. API Key Scope: tape_drives / destroy
def destroy_tape_drive_by_tape_library_with_http_info(tape_library_id, tape_drive_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: TapeDrivesApi.destroy_tape_drive_by_tape_library ...' end # verify the required parameter 'tape_library_id' is set ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def destroy_tape_drive_with_http_info(tape_drive_id, opts = {})\n if @api_client.config.debugging\n @api_client.config.logger.debug 'Calling API: TapeDrivesApi.destroy_tape_drive ...'\n end\n # verify the required parameter 'tape_drive_id' is set\n if @api_client.config.client_side_valid...
[ "0.699584", "0.66342956", "0.6464306", "0.64514256", "0.6419904", "0.6408456", "0.6393509", "0.6356012", "0.63434166", "0.6201278", "0.61230373", "0.6118356", "0.6091912", "0.60825187", "0.607373", "0.60035104", "0.5969916", "0.59588116", "0.5907166", "0.5881415", "0.58696675...
0.5938809
18
Lists tape drives devices. API Key Scope: tape_drives / devices
def index_tape_drive_devices(tape_library_id, job_id, opts = {}) data, _status_code, _headers = index_tape_drive_devices_with_http_info(tape_library_id, job_id, opts) data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def index_tape_drives(opts = {})\n data, _status_code, _headers = index_tape_drives_with_http_info(opts)\n data\n end", "def device_list(opts = {})\n data, _status_code, _headers = device_list_with_http_info(opts)\n data\n end", "def index_tape_drives_with_http_info(opts = {})\n ...
[ "0.66426855", "0.6381636", "0.6372281", "0.6343396", "0.61689425", "0.6058253", "0.6053151", "0.6026427", "0.579051", "0.5780769", "0.57332724", "0.5640688", "0.5635617", "0.5633703", "0.5575401", "0.5562256", "0.55352396", "0.5473493", "0.5448977", "0.544049", "0.5440128", ...
0.6375872
2
Lists tape drives devices. API Key Scope: tape_drives / devices
def index_tape_drive_devices_with_http_info(tape_library_id, job_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: TapeDrivesApi.index_tape_drive_devices ...' end # verify the required parameter 'tape_library_id' is set if @api_client.config.cli...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def index_tape_drives(opts = {})\n data, _status_code, _headers = index_tape_drives_with_http_info(opts)\n data\n end", "def device_list(opts = {})\n data, _status_code, _headers = device_list_with_http_info(opts)\n data\n end", "def index_tape_drive_devices(tape_library_id, job_id, o...
[ "0.6643975", "0.63805056", "0.6376053", "0.6374093", "0.6342172", "0.6166568", "0.6055836", "0.60518295", "0.6024554", "0.5789815", "0.57329607", "0.5638132", "0.5637666", "0.56312025", "0.5572875", "0.55600095", "0.55346704", "0.54727256", "0.54472363", "0.5441468", "0.54374...
0.5781591
10
Lists all tape drives. API Key Scope: tape_drives / index
def index_tape_drives(opts = {}) data, _status_code, _headers = index_tape_drives_with_http_info(opts) data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def index_tape_drives_with_http_info(opts = {})\n if @api_client.config.debugging\n @api_client.config.logger.debug 'Calling API: TapeDrivesApi.index_tape_drives ...'\n end\n # resource path\n local_var_path = '/tape_drives'\n\n # query parameters\n query_params = opts[:query_p...
[ "0.7145547", "0.60515314", "0.5932642", "0.5885706", "0.5850183", "0.5777759", "0.5706362", "0.55698645", "0.55423415", "0.5527133", "0.5499193", "0.549044", "0.54562354", "0.54384524", "0.54235816", "0.53935623", "0.53863704", "0.5376855", "0.53569293", "0.5346293", "0.53373...
0.7762862
0
Lists all tape drives. API Key Scope: tape_drives / index
def index_tape_drives_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: TapeDrivesApi.index_tape_drives ...' end # resource path local_var_path = '/tape_drives' # query parameters query_params = opts[:query_params] || {} ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def index_tape_drives(opts = {})\n data, _status_code, _headers = index_tape_drives_with_http_info(opts)\n data\n end", "def index\n @edrives = Edrive.all\n end", "def show_tape_drive(tape_drive_id, opts = {})\n data, _status_code, _headers = show_tape_drive_with_http_info(tape_drive_id, ...
[ "0.7762862", "0.60515314", "0.5932642", "0.5885706", "0.5850183", "0.5777759", "0.5706362", "0.55698645", "0.55423415", "0.5527133", "0.5499193", "0.549044", "0.54562354", "0.54384524", "0.54235816", "0.53935623", "0.53863704", "0.5376855", "0.53569293", "0.5346293", "0.53373...
0.7145547
1
Lists all tape drives. API Key Scope: tape_drives / index
def index_tape_drives_by_tape_library(tape_library_id, opts = {}) data, _status_code, _headers = index_tape_drives_by_tape_library_with_http_info(tape_library_id, opts) data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def index_tape_drives(opts = {})\n data, _status_code, _headers = index_tape_drives_with_http_info(opts)\n data\n end", "def index_tape_drives_with_http_info(opts = {})\n if @api_client.config.debugging\n @api_client.config.logger.debug 'Calling API: TapeDrivesApi.index_tape_drives ...'\...
[ "0.7762862", "0.7145547", "0.60515314", "0.5932642", "0.5850183", "0.5777759", "0.5706362", "0.55698645", "0.55423415", "0.5527133", "0.5499193", "0.549044", "0.54562354", "0.54384524", "0.54235816", "0.53935623", "0.53863704", "0.5376855", "0.53569293", "0.5346293", "0.53373...
0.5885706
4
Lists all tape drives. API Key Scope: tape_drives / index
def index_tape_drives_by_tape_library_with_http_info(tape_library_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: TapeDrivesApi.index_tape_drives_by_tape_library ...' end # verify the required parameter 'tape_library_id' is set if @api_client....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def index_tape_drives(opts = {})\n data, _status_code, _headers = index_tape_drives_with_http_info(opts)\n data\n end", "def index_tape_drives_with_http_info(opts = {})\n if @api_client.config.debugging\n @api_client.config.logger.debug 'Calling API: TapeDrivesApi.index_tape_drives ...'\...
[ "0.7762476", "0.71456945", "0.60501474", "0.59340334", "0.5885985", "0.5777887", "0.5707008", "0.5572484", "0.55423725", "0.5525727", "0.5499756", "0.5492148", "0.54561985", "0.5439156", "0.5421079", "0.5392743", "0.53853035", "0.5376744", "0.53562915", "0.5347487", "0.533601...
0.5851046
5
Displays a specific tape drive. API Key Scope: tape_drives / show
def show_tape_drive(tape_drive_id, opts = {}) data, _status_code, _headers = show_tape_drive_with_http_info(tape_drive_id, opts) data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def show_tape_drive_with_http_info(tape_drive_id, opts = {})\n if @api_client.config.debugging\n @api_client.config.logger.debug 'Calling API: TapeDrivesApi.show_tape_drive ...'\n end\n # verify the required parameter 'tape_drive_id' is set\n if @api_client.config.client_side_validation ...
[ "0.70864695", "0.6920458", "0.6709053", "0.66499174", "0.6584074", "0.6512679", "0.65099937", "0.64887613", "0.6330771", "0.6254817", "0.6240488", "0.6100785", "0.6093227", "0.6079777", "0.6067794", "0.60480344", "0.6000982", "0.59681743", "0.5950255", "0.59392977", "0.585355...
0.7678166
0
Displays a specific tape drive. API Key Scope: tape_drives / show
def show_tape_drive_with_http_info(tape_drive_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: TapeDrivesApi.show_tape_drive ...' end # verify the required parameter 'tape_drive_id' is set if @api_client.config.client_side_validation && tape_dr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def show_tape_drive(tape_drive_id, opts = {})\n data, _status_code, _headers = show_tape_drive_with_http_info(tape_drive_id, opts)\n data\n end", "def show\n @drive_system = DriveSystem.find(params[:id])\n\n respond_to do |format|\n format.html # show.html.erb\n format.json { render ...
[ "0.7678166", "0.6920458", "0.6709053", "0.66499174", "0.6584074", "0.6512679", "0.65099937", "0.64887613", "0.6330771", "0.6254817", "0.6240488", "0.6100785", "0.6093227", "0.6079777", "0.6067794", "0.60480344", "0.6000982", "0.59681743", "0.5950255", "0.59392977", "0.5853559...
0.70864695
1
Displays a specific tape drive. API Key Scope: tape_drives / show
def show_tape_drive_by_tape_library(tape_library_id, tape_drive_id, opts = {}) data, _status_code, _headers = show_tape_drive_by_tape_library_with_http_info(tape_library_id, tape_drive_id, opts) data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def show_tape_drive(tape_drive_id, opts = {})\n data, _status_code, _headers = show_tape_drive_with_http_info(tape_drive_id, opts)\n data\n end", "def show_tape_drive_with_http_info(tape_drive_id, opts = {})\n if @api_client.config.debugging\n @api_client.config.logger.debug 'Calling API...
[ "0.7678166", "0.70864695", "0.6920458", "0.6709053", "0.6584074", "0.6512679", "0.65099937", "0.64887613", "0.6330771", "0.6254817", "0.6240488", "0.6100785", "0.6093227", "0.6079777", "0.6067794", "0.60480344", "0.6000982", "0.59681743", "0.5950255", "0.59392977", "0.5853559...
0.66499174
4
Displays a specific tape drive. API Key Scope: tape_drives / show
def show_tape_drive_by_tape_library_with_http_info(tape_library_id, tape_drive_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: TapeDrivesApi.show_tape_drive_by_tape_library ...' end # verify the required parameter 'tape_library_id' is set if @...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def show_tape_drive(tape_drive_id, opts = {})\n data, _status_code, _headers = show_tape_drive_with_http_info(tape_drive_id, opts)\n data\n end", "def show_tape_drive_with_http_info(tape_drive_id, opts = {})\n if @api_client.config.debugging\n @api_client.config.logger.debug 'Calling API...
[ "0.76793593", "0.7086589", "0.69190085", "0.6709828", "0.665119", "0.65825516", "0.65147865", "0.6508479", "0.64867175", "0.632948", "0.62534374", "0.6239177", "0.60953325", "0.6079717", "0.6068268", "0.60479236", "0.59989864", "0.59687644", "0.5948683", "0.5937316", "0.58541...
0.6100737
12
Updates a specific tape drive. API Key Scope: tape_drives / update
def update_tape_drive(tape_drive_id, tape_drive_body, opts = {}) data, _status_code, _headers = update_tape_drive_with_http_info(tape_drive_id, tape_drive_body, opts) data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update_tape_drive_with_http_info(tape_drive_id, tape_drive_body, opts = {})\n if @api_client.config.debugging\n @api_client.config.logger.debug 'Calling API: TapeDrivesApi.update_tape_drive ...'\n end\n # verify the required parameter 'tape_drive_id' is set\n if @api_client.config.cl...
[ "0.712367", "0.6616173", "0.66121894", "0.64104354", "0.63644916", "0.6331657", "0.6293863", "0.6287805", "0.6283083", "0.61423874", "0.6139561", "0.609961", "0.6066486", "0.6029588", "0.6025633", "0.6020363", "0.5999334", "0.59709835", "0.5869823", "0.5869823", "0.5855726", ...
0.68816584
1
Updates a specific tape drive. API Key Scope: tape_drives / update
def update_tape_drive_with_http_info(tape_drive_id, tape_drive_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: TapeDrivesApi.update_tape_drive ...' end # verify the required parameter 'tape_drive_id' is set if @api_client.config.client_side_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update_tape_drive(tape_drive_id, tape_drive_body, opts = {})\n data, _status_code, _headers = update_tape_drive_with_http_info(tape_drive_id, tape_drive_body, opts)\n data\n end", "def update\n @drive = @object\n\n respond_to do |format|\n if @drive.update_attributes(params[:drive])\n...
[ "0.68816584", "0.6616173", "0.66121894", "0.64104354", "0.63644916", "0.6331657", "0.6293863", "0.6287805", "0.6283083", "0.61423874", "0.6139561", "0.609961", "0.6066486", "0.6029588", "0.6025633", "0.6020363", "0.5999334", "0.59709835", "0.5869823", "0.5869823", "0.5855726"...
0.712367
0
Updates a specific tape drive. API Key Scope: tape_drives / update
def update_tape_drive_by_tape_library(tape_library_id, tape_drive_id, tape_drive_body, opts = {}) data, _status_code, _headers = update_tape_drive_by_tape_library_with_http_info(tape_library_id, tape_drive_id, tape_drive_body, opts) data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update_tape_drive_with_http_info(tape_drive_id, tape_drive_body, opts = {})\n if @api_client.config.debugging\n @api_client.config.logger.debug 'Calling API: TapeDrivesApi.update_tape_drive ...'\n end\n # verify the required parameter 'tape_drive_id' is set\n if @api_client.config.cl...
[ "0.712367", "0.68816584", "0.6616173", "0.64104354", "0.63644916", "0.6331657", "0.6293863", "0.6287805", "0.6283083", "0.61423874", "0.6139561", "0.609961", "0.6066486", "0.6029588", "0.6025633", "0.6020363", "0.5999334", "0.59709835", "0.5869823", "0.5869823", "0.5855726", ...
0.66121894
3
Updates a specific tape drive. API Key Scope: tape_drives / update
def update_tape_drive_by_tape_library_with_http_info(tape_library_id, tape_drive_id, tape_drive_body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: TapeDrivesApi.update_tape_drive_by_tape_library ...' end # verify the required parameter 'tape_library_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update_tape_drive_with_http_info(tape_drive_id, tape_drive_body, opts = {})\n if @api_client.config.debugging\n @api_client.config.logger.debug 'Calling API: TapeDrivesApi.update_tape_drive ...'\n end\n # verify the required parameter 'tape_drive_id' is set\n if @api_client.config.cl...
[ "0.7123454", "0.6881105", "0.6614381", "0.66120595", "0.64089686", "0.6362001", "0.633052", "0.62931097", "0.6285384", "0.61413723", "0.6138554", "0.60976565", "0.6066855", "0.602786", "0.60244465", "0.601967", "0.5998416", "0.59709716", "0.586796", "0.586796", "0.5853897", ...
0.62828296
9
choose the next move based on current state of the board
def move(board) puts "Computer:" case #check for winning space when victory(board) != nil if board.valid_move?(victory(board)) victory(board) end #check for spaces to block when block(board) != nil if board.valid_move?(block(board)) block(board) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def next_state(state, move)\n # Deep copy position (is this the easiest way?)\n position = Marshal.load(Marshal.dump(state[:position]))\n player = state[:player]\n opp = opponent(player)\n pieces = Marshal.load(Marshal.dump(state[:pieces]))\n from = move[0]\n to = move[1]\n force_analysis =...
[ "0.76031125", "0.7554846", "0.7477962", "0.7418566", "0.7414143", "0.7375111", "0.7278632", "0.7238594", "0.72340727", "0.7228966", "0.7159433", "0.71560174", "0.7136547", "0.7114396", "0.70930517", "0.7041221", "0.7032134", "0.6998281", "0.69622576", "0.69289726", "0.6918937...
0.641749
85
Checks for imminent victory and takes it
def victory(board) opponent_token = find_opponent_token victory_options = [] WIN_COMBINATIONS.each do |combo| if combo.reject {|i| board.cells[i] == @token}.length == 1 victory_options << combo.detect {|i| board.cells[i] == " "} end end victory_move = victory_opt...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def check_victory\n if victory?\n $windows.msg_win.msg.set_text(I18n.t(:player) + ($player.act_p.mark_markup == $glob.x_markup ? ' O ' : ' X ') + I18n.t(:win))\n $windows.msg_win.show_all\n elsif $glob.num_moves >= 8\n $windows.msg_win.msg.set_text(I18n.t(:draw))\n $windows.msg_win.show_a...
[ "0.70034283", "0.6528195", "0.65093035", "0.6476447", "0.6463507", "0.6397735", "0.6396897", "0.63521475", "0.62655485", "0.6227879", "0.62061554", "0.6175699", "0.6143567", "0.60508543", "0.60150105", "0.6000873", "0.59747016", "0.5935448", "0.59149325", "0.58963495", "0.587...
0.56569415
26
Checks for imminent loss and attempts to block
def block(board) opponent_token = find_opponent_token block_options = [] WIN_COMBINATIONS.each do |combo| if combo.reject {|i| board.cells[i] == opponent_token}.length == 1 block_options << combo.detect {|i| board.cells[i] == " "} end end block_move = block_optio...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def judge_win_loss\n return if update_processes or @spriteset.effect?\n #-------------------------------------------------------------\n # Check Victory Conditions\n check_victory_conditions\n\n #-------------------------------------------------------------\n # Check Failure conditions\n check...
[ "0.67481816", "0.5791086", "0.5727344", "0.5541141", "0.5532687", "0.5504164", "0.5504164", "0.54759717", "0.53743786", "0.53168136", "0.53071684", "0.5297561", "0.52974457", "0.5291614", "0.5277002", "0.52673244", "0.5263291", "0.524569", "0.52380276", "0.520819", "0.5178174...
0.0
-1
Returns alert msg css class
def alert_msg alert_type case alert_type when "success" "alert alert-success" when "danger" "alert alert-danger" when "error" "alert alert-error" else "alert" end end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def alert_class(name)\n if name == :alert\n \"alert-error\"\n else #if name == \"notice\"\n \"alert-success\"\n end\n end", "def container_class\n string = 'alert '\n string += @context == 'default' ? 'alert-info' : \"alert-#{@context}\"\n string += \" #{@class}\"\n string...
[ "0.7906095", "0.74643844", "0.7133367", "0.70473146", "0.6903069", "0.68930435", "0.6837162", "0.68316257", "0.67946744", "0.6791541", "0.6789666", "0.6786162", "0.67615026", "0.67579085", "0.6751432", "0.67410624", "0.67409563", "0.67112356", "0.6682332", "0.6679834", "0.667...
0.7427886
2
unfollow for email notice type Model id Model id key email encode key
def unfollow return render_404 if params[:type].blank? or params[:id].blank? or params[:key].blank? email = Encoder.decode(params[:key]) return render_404 if email.blank? Unfollower.create(:email => email, :unfollowerable_type => params[:type].capitalize, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def unfollow\n return render_404 if params[:type].blank? or params[:id].blank? or params[:key].blank?\n email = Encoder.decode(params[:key])\n return render_404 if email.blank?\n\n Unfollower.create(:email => email, \n :unfollowerable_type => params[:type].capitalize, \n ...
[ "0.7630782", "0.6792433", "0.6586819", "0.6576068", "0.6387172", "0.62111574", "0.6207159", "0.61068124", "0.6105808", "0.60904616", "0.6076346", "0.6070551", "0.60258234", "0.5998773", "0.5945903", "0.5939272", "0.5929783", "0.59136593", "0.58873963", "0.5886025", "0.5874274...
0.77144367
0
GET /experiments GET /experiments.json
def index @experiments = policy_scope Experiment.where(user_id: current_user.id).order(created_at: :desc).page(params[:page]) respond_to do |format| format.html format.csv { send_data( @experiments.to_csv, filename: "CO2_by_experiment_#{Time.zone.now}.csv", disposition: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fetch_experiment(id)\n url = @base + \"experiments/#{id}.json?token=#{@token}\"\n puts url\n response = JSON.parse(RestClient.get(url))\nend", "def index\n @experiments = Experiment.all\n\n respond_to do |format|\n format.html # index.html.erb\n format.json { render json: @experiments }\n ...
[ "0.7667902", "0.7530987", "0.7359154", "0.7343492", "0.7326762", "0.71903574", "0.6902807", "0.6902807", "0.66268927", "0.6429425", "0.6400744", "0.639056", "0.6327911", "0.6229816", "0.6228492", "0.620189", "0.6152306", "0.6130331", "0.6111056", "0.61105174", "0.6051929", ...
0.0
-1
GET /experiments/1 GET /experiments/1.json
def show respond_to do |format| format.html format.csv { send_data @experiment.to_csv, filename: "#{@experiment.id}-#{@experiment.name}.csv", disposition: 'inline', type: "multipart/related" } end end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fetch_experiment(id)\n url = @base + \"experiments/#{id}.json?token=#{@token}\"\n puts url\n response = JSON.parse(RestClient.get(url))\nend", "def index\n @experiments = Experiment.all\n\n respond_to do |format|\n format.html # index.html.erb\n format.json { render json: @experiments }\n ...
[ "0.79396844", "0.7346767", "0.7245662", "0.7141944", "0.7141944", "0.6896397", "0.6868181", "0.64089096", "0.63052094", "0.6292195", "0.62845546", "0.6263365", "0.6244442", "0.6244442", "0.6235063", "0.6218515", "0.62050456", "0.6160553", "0.61324143", "0.61285055", "0.611714...
0.0
-1
POST /experiments POST /experiments.json
def create @experiment = Experiment.new(experiment_params) authorize @experiment success = @experiment.save edit_helper() success &= @experiment.save respond_to do |format| if success format.html { redirect_to @experiment, notice: 'Experiment was successfully created.' } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create\n @experiment = Experiment.new(params[:experiment])\n\n respond_to do |format|\n if @experiment.save\n format.html { redirect_to @experiment, notice: 'Experiment was successfully created.' }\n format.json { render json: @experiment, status: :created, location: @experiment }\n ...
[ "0.6731312", "0.67238855", "0.6701503", "0.6701503", "0.6330069", "0.6288955", "0.62831366", "0.6231525", "0.62300014", "0.61524117", "0.6121359", "0.6111961", "0.60304946", "0.6018281", "0.6018281", "0.5988996", "0.5973845", "0.5968556", "0.5965805", "0.5955416", "0.59215045...
0.5511675
36
PATCH/PUT /experiments/1 PATCH/PUT /experiments/1.json
def update respond_to do |format| edit_helper() updated = @experiment.update(experiment_params) if updated format.html { redirect_to @experiment, notice: flash[:notice] || 'Experiment was successfully updated.' } format.json { render :show, status: :ok, location: @experiment } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update\n @experiment = Experiment.find(params[:id])\n\n respond_to do |format|\n if @experiment.update_attributes(params[:experiment])\n format.html { redirect_to @experiment, notice: 'Experiment was successfully updated.' }\n format.json { head :no_content }\n else\n forma...
[ "0.6868849", "0.6868849", "0.68662554", "0.6679155", "0.6560851", "0.6560851", "0.6515518", "0.6459844", "0.6414508", "0.6181979", "0.6180029", "0.6167458", "0.6083707", "0.6066918", "0.60620916", "0.60528105", "0.6039418", "0.60135585", "0.5989134", "0.59858453", "0.5982551"...
0.6272914
9
DELETE /experiments/1 DELETE /experiments/1.json
def destroy @experiment.destroy respond_to do |format| format.html { begin redirect_to :back, notice: 'Experiment was successfully destroyed.' rescue ActionController::RedirectBackError redirect_to experiments_url, notice: 'Experiment was successfully destroyed.' ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def destroy\n set_experiments\n @experiment.destroy\n respond_to do |format|\n format.html { redirect_to experiments_url }\n format.json { head :no_content }\n end\n end", "def destroy\n @experiment = Experiment.find(params[:id])\n @experiment.destroy\n\n respond_to do |format|\n ...
[ "0.7767225", "0.7686779", "0.7686779", "0.7686779", "0.739096", "0.739096", "0.7304609", "0.7304609", "0.72437507", "0.72247416", "0.7127406", "0.70632076", "0.7017892", "0.6855902", "0.6814481", "0.6706449", "0.6654096", "0.6626306", "0.6596983", "0.65348023", "0.65348023", ...
0.6596383
19
Use callbacks to share common setup or constraints between actions.
def set_experiment @experiment = Experiment.find(params[:id]) authorize @experiment @devices = policy_scope Device.where(user_id: current_user.id) end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_required_actions\n # TODO: check what fields change to asign required fields\n end", "def action_hook; end", "def run_actions; end", "def define_action_hook; end", "def actions; end", "def define_action_helpers\n if super && action == :save\n @instance_helper_module.class_...
[ "0.6163163", "0.6045976", "0.5946146", "0.591683", "0.5890051", "0.58349305", "0.5776858", "0.5703237", "0.5703237", "0.5652805", "0.5621621", "0.54210985", "0.5411113", "0.5411113", "0.5411113", "0.5391541", "0.53794575", "0.5357573", "0.53402257", "0.53394014", "0.53321576"...
0.0
-1
Never trust parameters from the scary internet, only allow the white list through.
def experiment_params params.require(:experiment).permit(:name, :location, :start, :end, :details, :co2_cutoff).merge(user_id: current_user.id) #{:device_ids => []}, # If this is included, ActiveRecord deletes the devices that don't have data submitted for them on update. end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def strong_params\n params.require(:user).permit(param_whitelist)\n end", "def strong_params\n params.require(:listing_member).permit(param_whitelist)\n end", "def allow_params_authentication!; end", "def allowed_params\n ALLOWED_PARAMS\n end", "def default_param_whitelist\n [\"mode\"]\n...
[ "0.69802505", "0.6781974", "0.67470175", "0.67430073", "0.67350477", "0.6593221", "0.6504263", "0.64988977", "0.6481794", "0.64800006", "0.64568025", "0.64411247", "0.6379476", "0.63765615", "0.6368045", "0.6320141", "0.6300363", "0.6300057", "0.62952244", "0.6294712", "0.629...
0.0
-1
returns true if this element is hydrogen
def h? return element == "H" end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def heptagonal?\n fcache[:heptagonal] ||= (Math.sqrt(40*self +9)+3)%10 == 0\n end", "def homme?\n !identified? || sexe == 'H'\n end", "def superShiny?\n return self.superHue.is_a?(Numeric) ? true : false\n end", "def superShiny?\n return self.superHue.is_a?(Numeric) ? true : false\n end", "...
[ "0.6151223", "0.6149595", "0.5937283", "0.5937283", "0.58571696", "0.5825834", "0.5710036", "0.55765086", "0.556458", "0.55576277", "0.5531311", "0.55295855", "0.54882056", "0.5483861", "0.5454947", "0.5440434", "0.5414432", "0.54050237", "0.53893125", "0.5378633", "0.5378187...
0.7430685
0
returns true if it is the root node
def root? return parent == nil end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _is_root_node?\n @nodes.size == 1\n end", "def root?\n @type == ROOT\n end", "def root?\n root\n end", "def root?\n root == self\n end", "def root?\n parent.on_node { |p| p }.nil?\n end", "def root?\n !has_parent?\n end", "def root?\n true\...
[ "0.8833755", "0.85975087", "0.8588558", "0.85880333", "0.85146934", "0.8410705", "0.8359802", "0.8358722", "0.8337335", "0.8323176", "0.8318085", "0.8305588", "0.8262602", "0.8237677", "0.82167304", "0.82167304", "0.8202742", "0.81744325", "0.8173839", "0.8136797", "0.8106246...
0.8286686
12
returns true if element has nodes
def nodes? return !h? || (h? && root?) end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def empty?\n nodes.empty?\n end", "def element?\n node_type == ELEMENT_NODE\n end", "def node?\n node.present?\n end", "def has_elements?\n self.each_element{ |e| return true }\n return false\n end", "def empty?\n node.all('*').length.zero?\n end", "...
[ "0.7739309", "0.7715326", "0.77041614", "0.77016664", "0.7646879", "0.7642867", "0.75942385", "0.75785494", "0.75670695", "0.75414246", "0.746269", "0.74490905", "0.74302304", "0.7334931", "0.73187244", "0.73130906", "0.7282652", "0.7248604", "0.71509576", "0.71038675", "0.69...
0.7309013
16
calculates formal charge (method used to determine structure generation)
def formal_charge if root? lewis_electrons = 0 else #if an element is not the root, it is bonded to another element, thus increase the formal charge count by 1 lewis_electrons = 1 end # if the element has nodes, look at each one if nodes? nodes.each { |node| if node == nil # if the node ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def charge\n subtotal * 0\n end", "def calMass(mass, charge)\n (mass + (charge.to_f * 1.00727646677)) / charge\n end", "def calMass(mass, charge)\n (mass + (charge.to_f * 1.00727646677)) / charge\n end", "def fixed_charges\n 20.0\n end", "def calculate_charge\n # XXX Need to sele...
[ "0.69689447", "0.67561746", "0.67561746", "0.6714563", "0.6531566", "0.63693446", "0.63424987", "0.62151253", "0.61811197", "0.61771446", "0.6170233", "0.6156192", "0.6137016", "0.6137016", "0.611131", "0.6045495", "0.60120213", "0.59990895", "0.5981662", "0.59777033", "0.597...
0.7276857
0
return true if the element has a full octet, or more, or if it has 2 valence electrons if its a hydrogen
def full? if nodes? nodes.each { |node| if node == nil return false end } end return true end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def instruction?\n not elements.select { |e| e.respond_to?(:to_bin) }.empty?\n end", "def h?\r\n\t\treturn element == \"H\"\r\n\tend", "def isFull\n\t@bo.each do |i| \n\t\tif i == '-' then \n\t\t\treturn false\n\t\tend\n\tend\n\treturn true\n end", "def value?\n Array.wrap(element_value).reject(&...
[ "0.6025228", "0.577176", "0.568088", "0.5654736", "0.558128", "0.558128", "0.55590653", "0.55169666", "0.55040336", "0.5490976", "0.5484095", "0.54756314", "0.54338884", "0.54252243", "0.5423551", "0.54182893", "0.53976476", "0.53847903", "0.5377557", "0.53722984", "0.5356165...
0.0
-1
returns true if the element can expand its octet (bond to more elements)
def expands? return PeriodicTable.atomic_number(element) > 13 end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def paste_within?(element)\n i = 0\n element.each_byte do |b|\n if b == 32\n i += 1\n end\n end\n return true if i > 1\n end", "def whole_reg?\n size == parent.size\n end", "def can_contain?(element)\n false\n end", "def instruction?\n no...
[ "0.601387", "0.57836974", "0.57396716", "0.5709083", "0.5543858", "0.5498715", "0.5401221", "0.53878194", "0.5362449", "0.53407836", "0.52675235", "0.52675235", "0.52554685", "0.52554685", "0.52339303", "0.5233338", "0.5202741", "0.5199725", "0.5171797", "0.51586664", "0.5156...
0.6616966
0
sets the next unbonded node in nodes to node
def next=(node) # you can only bond if it has unbonded sites if !full? nodes.each_index { |i| if nodes.at(i) == nil nodes[i] = node break end } return node # unless it expands, in which case you can bond elsif expands? nodes << node puts nodes nodes.flatten! ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_next(node)\n @next_node = node\n end", "def set_next(node)\n\t\t\t@next = node\n\t\tend", "def next=(node_or_tags); end", "def next_node\n @current_node = @current_node.children[0]\n end", "def next_node\n @current_node = @current_node.children[0]\n end", "def next=(node)\n @ne...
[ "0.7407816", "0.7229167", "0.70978266", "0.68937254", "0.68380064", "0.6610594", "0.6421481", "0.6197552", "0.6088718", "0.6088718", "0.6087791", "0.60684794", "0.60684794", "0.6066878", "0.60214865", "0.59290975", "0.5913215", "0.5867936", "0.5849535", "0.58047324", "0.58045...
0.720494
2
Check for equality with another value. If compared to Puppet Sensitive type, it compares the wrapped values.
def ==(other) if other.respond_to? :unwrap unwrap == other.unwrap else super end end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ==(other)\n self.class == other.class && value == other.value\n end", "def ==(other)\n self.class == other.class && value == other.value\n end", "def ==(other)\n super || other.class == self.class && other.value == value\n end", "def eql?(other)\n self.class == othe...
[ "0.7007334", "0.68083614", "0.68060935", "0.66837996", "0.66837996", "0.6635635", "0.65501004", "0.65494704", "0.65494704", "0.65244997", "0.64447963", "0.64447963", "0.6436345", "0.63421685", "0.62802905", "0.61758935", "0.615237", "0.6136742", "0.61274606", "0.61264235", "0...
0.5692666
67
Helper to return value wrapped in Sensitive type.
def sensitive(value) RSpec::Puppet::Sensitive.new(value) end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def serialize(value)\n # expects same behavior as ActiveRecord::Type::String other than encryption\n # https://github.com/rails/rails/blob/5-0-stable/activemodel/lib/active_model/type/immutable_string.rb\n v = super(value)\n v.present? ? encryptor.encrypt_and_sign(v) : v\n end", "def secur...
[ "0.6045922", "0.5658334", "0.542132", "0.5413805", "0.5369554", "0.53265435", "0.5323478", "0.5323209", "0.5275717", "0.52063715", "0.5171681", "0.5109026", "0.50969106", "0.50938916", "0.5082484", "0.50803465", "0.50617754", "0.5057589", "0.5050582", "0.5043511", "0.5036802"...
0.54983246
2
before_filter :is_logged_in, :only => [ :login ] before_filter :service_access Generate New User form
def new @user = User.new end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def new\n #user wants to log in \n end", "def new\n #user wants to log in \n end", "def login_filter\n\t\tif not protect?( action_name )\n\t\t\treturn true \n\t\tend\n\n\t\tif not session[:user_id]\n\t\t\t# user isn't logged in\n\t\t\tstore_location\n\t\t\tredirect_to :controller=>\"account\", :action...
[ "0.6799184", "0.6799184", "0.679115", "0.6691876", "0.65706986", "0.6506864", "0.6455333", "0.64454085", "0.6418236", "0.6380623", "0.6376366", "0.6362515", "0.6330301", "0.63251907", "0.6303485", "0.6290494", "0.6268363", "0.6265933", "0.6248299", "0.62462926", "0.6227918", ...
0.0
-1
Generate Form for changing Password
def change_password @user = User.new end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def edit_password; end", "def set_Password(value)\n set_input(\"Password\", value)\n end", "def set_Password(value)\n set_input(\"Password\", value)\n end", "def set_Password(value)\n set_input(\"Password\", value)\n end", "def set_Password(value)\n ...
[ "0.775281", "0.75570434", "0.75570434", "0.75570434", "0.75570434", "0.75570434", "0.75570434", "0.75570434", "0.75570434", "0.75570434", "0.75570434", "0.75570434", "0.75570434", "0.75570434", "0.75570434", "0.75570434", "0.75570434", "0.75570434", "0.75570434", "0.75570434", ...
0.0
-1
Set New password to database
def set_password @user = User.find(session[:user_id]) if @user.password == params[:old_password] if @user.update_attributes(params[:user]) redirect_to user_new_path else flash[:notice] = "Please enter correct passwords" render user_change_password_path end else ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def newPassword(newPass)\n\t\tDATABASE.edit(\"users\", \"password\", newPass, \"username\", @username)\n\tend", "def pass=(new_password)\n self.password = Password.create(new_password)\n end", "def set_password\n @password = Password.last\n @new_password = Password.new\n end", "def set_passw...
[ "0.8172648", "0.795693", "0.794503", "0.7914509", "0.790696", "0.77838653", "0.76716846", "0.75761163", "0.753777", "0.75182897", "0.7497023", "0.7489766", "0.74849355", "0.74771965", "0.7476955", "0.74627095", "0.7447655", "0.7447655", "0.7442661", "0.74389315", "0.7433787",...
0.0
-1
Release 1: Calculate Fibonacci Numbers
def fibs(num) x = 0 y = 1 arr = [] num.times { z = x + y arr << x x = y y = z } arr end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def q9_fibonacci(num)\n f1 = 0\n f2 = 1\n (num-1).times {|_|\n tmp = f2\n f2 += f1 \n f1 = tmp\n }\n f2\nend", "def fibonacci\n\tresults, first, second, current = 0, 1, 2, 2\n\twhile current <= 4000000\n\t\tif current % 2 == 0\n\t\t\tresults += current\n\t\tend\n\t\tcurrent = first + second\n\t\tfi...
[ "0.8325293", "0.8218008", "0.8147935", "0.79460585", "0.7944949", "0.7930545", "0.7903512", "0.7899261", "0.78793126", "0.7866132", "0.7862448", "0.784195", "0.7839586", "0.7839586", "0.7839586", "0.7839586", "0.7839586", "0.78351057", "0.7832777", "0.78290737", "0.7827159", ...
0.0
-1
Release 2: Sort an Array First take the input of the array from the user Figure out how long the array is (length) left element > right element , if left is bigger than we swap if it is less than we keep it the same looping until the array is sorted
def bubble_sort(arr) sorted = false until sorted sorted = true (arr.length - 1).times do |index| if arr[index] > arr[index + 1] arr[index], arr[index + 1] = arr[index + 1], arr[index] sorted = false end end end arr end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sort(input)\n # If the length of the array is < or = 1, then we already\n # know it's sorted, so exit\n return input if input.length <= 1\n\n # Now we want to run this algorithm in a loop for forever\n # until we know that the entire array is sorted. That\n # will be our \"break\" condition - the conditi...
[ "0.7949869", "0.78888434", "0.7711308", "0.7576027", "0.75648993", "0.7468106", "0.7464556", "0.7464556", "0.7444162", "0.74379086", "0.74335575", "0.7386587", "0.73791", "0.7361151", "0.73464066", "0.7323018", "0.7317064", "0.72933924", "0.72894126", "0.7288337", "0.7258595"...
0.0
-1
read_in returns the file as an array
def read_in File.foreach(file_name).map(&:chomp) end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _read filename\n d = []\n File.open(filename).each { |line|\n d << line\n }\n return d\n end", "def read_input\n ary = []\n File.open('./input.txt', 'r') do |file|\n file.each do |line|\n ary << line.to_s\n end\n end\n\n ary.freeze\nend", "def read_input_file(input_path)\n ...
[ "0.7229379", "0.7203641", "0.7145829", "0.7018414", "0.701738", "0.6934913", "0.69124293", "0.6893728", "0.68787366", "0.6861761", "0.6787055", "0.6716616", "0.6702938", "0.66436106", "0.6636006", "0.6630562", "0.6575508", "0.65720767", "0.6569631", "0.6548059", "0.65473473",...
0.7587839
0
write_out Args write out rows into file
def write_out(rows) File.open(file_name, 'w') do |f| f.puts rows end end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def write_output\n rows = data_to_rows\n CSV.open(@filename, 'wb') do |csv|\n rows.each {|row| csv << row}\n end\n end", "def writeOut\n\t\t\n\tend", "def write_file(*args)\n end", "def write_csv filename, fields = nil\n\n # By default all fields present in every row of output_data will be...
[ "0.7312231", "0.65990204", "0.64542145", "0.6307653", "0.6273513", "0.6248603", "0.6243873", "0.6241665", "0.6222821", "0.6207732", "0.61965597", "0.6190774", "0.61865544", "0.6174986", "0.61245054", "0.609948", "0.6091293", "0.6089851", "0.6081487", "0.60417515", "0.6038694"...
0.81498796
0
Abierta actualizacion de datos por el interlocutor
def open_entry? opened_at <= DateTime.now.to_date && closed_at >= DateTime.now.to_date end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def updated_data; end", "def rescatar\n self.estado_id = 1 #salida si lo creo, entrada/foliado si lo redirijo\n self.estado_id = 3 if self.trazas.count(:conditions => 'movimiento_id in (2,7,8)') > 0\n if self.origen.externo\n RAILS_DEFAULT_LOGGER.info \"devolviendo de origen externo #{self.origen.t...
[ "0.6564907", "0.65211755", "0.63907367", "0.6385923", "0.6359656", "0.61805063", "0.6162918", "0.6162918", "0.61603683", "0.6144519", "0.61349416", "0.61294454", "0.60968935", "0.60604745", "0.603641", "0.6032311", "0.6019897", "0.60102487", "0.59705305", "0.59436005", "0.594...
0.0
-1
Cerrada actualizacion de datos por el interlocutor
def close_entry? closed_at < DateTime.now end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def updated_data; end", "def rescatar\n self.estado_id = 1 #salida si lo creo, entrada/foliado si lo redirijo\n self.estado_id = 3 if self.trazas.count(:conditions => 'movimiento_id in (2,7,8)') > 0\n if self.origen.externo\n RAILS_DEFAULT_LOGGER.info \"devolviendo de origen externo #{self.origen.t...
[ "0.65799016", "0.64958555", "0.63838905", "0.6380589", "0.61371464", "0.6081781", "0.60590255", "0.6037497", "0.60080886", "0.6003277", "0.5969032", "0.59593785", "0.5948906", "0.58884275", "0.5887544", "0.5883347", "0.5860009", "0.58369833", "0.58300173", "0.5819903", "0.581...
0.0
-1
Aun no ha comenzado la entrada de datos
def not_yet_open? opened_at > DateTime.now end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def control_sin_items_comprobantes\n if [detalles].any? {|detalle| detalle.any? }\n self.errors[:base] = \"error que queres hacer?\"\n return false\n end \n end", "def datos_default\n if new_record?\n lastRecord = MovMovimiento.last\n if lastRecord\n self.hoja = lastRecord.hoja...
[ "0.6077984", "0.6005125", "0.5959389", "0.5910923", "0.5910204", "0.58555377", "0.5827554", "0.5823105", "0.57791585", "0.5730915", "0.57209843", "0.5687064", "0.56418747", "0.56150514", "0.5610099", "0.56001043", "0.55646485", "0.54880387", "0.5487157", "0.5486776", "0.54846...
0.0
-1
XXX: is it okay having this here?
def service_version_set(service_name, service_id, versions) @service_map_name_to_id[service_name] = service_id dev_version = versions.reverse_each.find { |_| !_.locked } dev = dev_version && dev_version.number active = (versions.reverse_each.find(&:active) || versions.reverse_each.find(&:locked)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def private; end", "def probers; end", "def internal; end", "def internal?; end", "def schubert; end", "def specie; end", "def specie; end", "def specie; end", "def specie; end", "def escaper=(_); end", "def internship_passed; end", "def used?; end", "def wrapper; end", "def anchored; end...
[ "0.7435162", "0.6454252", "0.6374781", "0.6172933", "0.6093583", "0.60011166", "0.60011166", "0.60011166", "0.60011166", "0.5988442", "0.598577", "0.5961287", "0.59562254", "0.5955639", "0.5912692", "0.5912692", "0.586527", "0.58131856", "0.58131856", "0.5806222", "0.5804997"...
0.0
-1
GET /site/columns GET /site/columns.json
def index @site = Cms::Site.all.take @cms_columns = @site.columns.where("parent_column_id is NULL").order("the_order ASC") # Cms::Column.find_by_cms_id(@site.id) end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_column\n if params[:battery].present?\n @columns = Battery.find(params[:battery]).columns\n else\n @columns = Battery.all\n end\n if request.xhr?\n respond_to do |format|\n format.json {\n render json: {columns: ...
[ "0.74958885", "0.747322", "0.7299896", "0.67781854", "0.67499894", "0.67048776", "0.669268", "0.6685288", "0.66462684", "0.66328055", "0.65902466", "0.65392166", "0.65128845", "0.648967", "0.6461512", "0.64131254", "0.64119905", "0.64119905", "0.6403832", "0.6396787", "0.6386...
0.5702205
79
GET /site/columns/1 GET /site/columns/1.json
def show end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_column\n if params[:battery].present?\n @columns = Battery.find(params[:battery]).columns\n else\n @columns = Battery.all\n end\n if request.xhr?\n respond_to do |format|\n format.json {\n render json: {columns: ...
[ "0.7540389", "0.73204565", "0.72503585", "0.7025096", "0.7002443", "0.67390466", "0.6621653", "0.6468809", "0.6367124", "0.63464093", "0.63194823", "0.6307809", "0.628574", "0.62791276", "0.6193161", "0.6181916", "0.6162941", "0.6159068", "0.6115821", "0.60821575", "0.6066124...
0.0
-1
POST /site/columns POST /site/columns.json
def create @cms_column = Cms::Column.new(cms_column_params) @site = Cms::Site.all.take @cms_column.site = @site respond_to do |format| if @cms_column.save @site.themes.each do |theme| template = Cms::Template.new template.theme = theme template...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create_columns(test)\n is_singular = test['columns'].length == 1\n column_or_columns = nil\n if is_singular\n column_or_columns = 'column'\n else\n column_or_columns = 'columns'\n end\n\n puts \" Creating #{test['columns'].length} #{column_or_columns}\"\n\n test['columns'].each ...
[ "0.64054364", "0.6388201", "0.6214513", "0.61821026", "0.6105319", "0.608656", "0.6026457", "0.60060424", "0.6003642", "0.5994483", "0.5967785", "0.59384537", "0.59157693", "0.5905653", "0.587835", "0.58746094", "0.5853674", "0.58522874", "0.5832496", "0.583021", "0.5808151",...
0.562577
36
PATCH/PUT /site/columns/1 PATCH/PUT /site/columns/1.json
def update respond_to do |format| if @cms_column.update(cms_column_params) #子功能有增加,自动添加相关栏目、模板 if @cms_column.parent_column.nil? && @cms_column.function.child_functions.size > @cms_column.child_columns.size @cms_column.function.child_functions.each do |child_function| ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update!(**args)\n @custom_columns = args[:custom_columns] if args.key?(:custom_columns)\n end", "def update!(**args)\n @columns = args[:columns] if args.key?(:columns)\n end", "def update!(**args)\n @columns = args[:columns] if args.key?(:columns)\n end", "...
[ "0.6447643", "0.64074504", "0.64074504", "0.6316252", "0.6307119", "0.6291217", "0.61956704", "0.6181688", "0.61401516", "0.61148995", "0.6104601", "0.6078052", "0.60732234", "0.60643363", "0.60507196", "0.6029994", "0.601361", "0.6010979", "0.60059035", "0.5982574", "0.59531...
0.5994505
19
DELETE /site/columns/1 DELETE /site/columns/1.json
def destroy #先删除子节点 if @cms_column.parent_column.nil? if Cms::Category.find_by_column_id(@cms_column.id) flash[:error] = "该栏目还有类别,不可以删除" else @cms_column.destroy end else flash[:error] = "子栏目不可以单独删除" end respond_to do |format| format.html { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def destroy\n @item_column.destroy\n respond_to do |format|\n format.html { redirect_to item_columns_url }\n format.json { head :no_content }\n end\n end", "def destroy\n @column = Column.find(params[:id])\n @column.destroy\n\n respond_to do |format|\n format.html { redirect_to ...
[ "0.72419876", "0.7161343", "0.7061195", "0.7042832", "0.69228965", "0.68932706", "0.68366724", "0.6807337", "0.6709186", "0.6693889", "0.654845", "0.654678", "0.6528353", "0.65058446", "0.6463959", "0.64071476", "0.63073266", "0.62643063", "0.62540954", "0.6220614", "0.619911...
0.5870574
45
Use callbacks to share common setup or constraints between actions.
def set_cms_functions @cms_functions = Cms::Function.where("parent_function_id is NULL").order("name DESC") end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_required_actions\n # TODO: check what fields change to asign required fields\n end", "def action_hook; end", "def run_actions; end", "def define_action_hook; end", "def actions; end", "def define_action_helpers\n if super && action == :save\n @instance_helper_module.class_...
[ "0.6163163", "0.6045976", "0.5946146", "0.591683", "0.5890051", "0.58349305", "0.5776858", "0.5703237", "0.5703237", "0.5652805", "0.5621621", "0.54210985", "0.5411113", "0.5411113", "0.5411113", "0.5391541", "0.53794575", "0.5357573", "0.53402257", "0.53394014", "0.53321576"...
0.0
-1
Never trust parameters from the scary internet, only allow the white list through.
def cms_column_params params.require(:column).permit(:name, :path, :function_id, :is_top_menu, :is_bottom_menu, :has_menu,:parent_column_id,:the_order, :content, :is_enabled) end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def strong_params\n params.require(:user).permit(param_whitelist)\n end", "def strong_params\n params.require(:listing_member).permit(param_whitelist)\n end", "def allow_params_authentication!; end", "def allowed_params\n ALLOWED_PARAMS\n end", "def default_param_whitelist\n [\"mode\"]\n...
[ "0.69792545", "0.6781151", "0.67419964", "0.674013", "0.6734356", "0.6591046", "0.6502396", "0.6496313", "0.6480641", "0.6477825", "0.64565", "0.6438387", "0.63791263", "0.63740575", "0.6364131", "0.63192815", "0.62991166", "0.62978333", "0.6292148", "0.6290449", "0.6290076",...
0.0
-1
Initialize reservations object Holds growing and shrinking list of ticket reservations
def initialize @reservations = {} @lockers = Lockerz::Lockers.new end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def initialize\n @rooms = list_rooms\n @reservations = []\n end", "def initialize\n @reservations_list = []\n @block_list = []\n @all_rooms = []\n make_hotel_rooms\n end", "def reservations\n @reservations ||= flight.reservations\n end", "def initialize\n @roo...
[ "0.75554866", "0.7495674", "0.73429924", "0.696298", "0.68865544", "0.68165845", "0.67641413", "0.6654761", "0.65217304", "0.65217304", "0.6492565", "0.6362393", "0.6347391", "0.6276365", "0.62518656", "0.6236001", "0.6214744", "0.60587496", "0.60212964", "0.59254354", "0.591...
0.694603
4
Conviencience proxy method to internal hash's length
def length @reservations.length end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hash_length\n super\n end", "def length\n @internal_hash.length\n end", "def hashref_size\n hashptr_size + length_size\n end", "def digest_length()\n #This is a stub, used for indexing\n end", "def digest_length()\n #This is a stub, used for indexi...
[ "0.820875", "0.7828041", "0.77949333", "0.7626832", "0.7626832", "0.7403767", "0.7272758", "0.7248375", "0.71779317", "0.70802677", "0.70802677", "0.70802677", "0.7053473", "0.7014784", "0.6993647", "0.6993647", "0.69513977", "0.6907704", "0.6820383", "0.6820383", "0.68109363...
0.0
-1
Assign a ticket to a locker and then add it to the reservation list
def create(ticket) ticket.assign_available_locker_from(@lockers) add_ticket(ticket) end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def add_ticket(ticket)\n @reservations[ticket.confirmation_number] = ticket\n end", "def acquire!(locker)\n self.locked_by = locker\n self.locked_at = Time.now\n save!\n end", "def set_ticket\n # is this ticket belong to him ?\n @ticket = @current_user.ticket(params[:id])\n end", "de...
[ "0.7228647", "0.65922964", "0.6428284", "0.6391993", "0.6381478", "0.61966723", "0.6134835", "0.6131066", "0.61262554", "0.6099354", "0.60966605", "0.60966605", "0.60966605", "0.60966605", "0.60966605", "0.60966605", "0.60966605", "0.60966605", "0.60966605", "0.60966605", "0....
0.7773839
0
Convenience method used by the 'create' method to add a ticket to the reservations list
def add_ticket(ticket) @reservations[ticket.confirmation_number] = ticket end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create(ticket)\n ticket.assign_available_locker_from(@lockers)\n add_ticket(ticket)\n end", "def addToTicket\n\t ticket = Ticket.where(table: session[:table_id]).last\n\t if (ticket.nil?) || (ticket.tstatus == 9)\n\t ticket = Ticket.create(table: session[:table_id], \n\t\t\t\t\t\t\t\t\t\tta...
[ "0.73853683", "0.70694196", "0.6993661", "0.67910016", "0.6787675", "0.67167544", "0.6666845", "0.6625049", "0.6606425", "0.65697473", "0.65582234", "0.6544546", "0.6516965", "0.6441469", "0.6428814", "0.63757074", "0.63674206", "0.6357647", "0.6357063", "0.6324764", "0.63163...
0.8438083
0
Remote a ticket from the the reservation list and free up the locker it used
def remove_ticket(ticket) @lockers.unassign(ticket) @reservations.delete(ticket.confirmation_number) end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create(ticket)\n ticket.assign_available_locker_from(@lockers)\n add_ticket(ticket)\n end", "def unassign(ticket)\n send(ticket.bag_size)[ticket.locker_number] = false\n end", "def sell_ticket(attendee)\n Ticket.new(attendee, self)\n end", "def free_tile_reservation!(hex, tile)\n...
[ "0.61614525", "0.6154215", "0.58809274", "0.5789264", "0.5787988", "0.569142", "0.56669515", "0.56580925", "0.55332184", "0.5514392", "0.5508313", "0.5497386", "0.54868853", "0.5471839", "0.54318106", "0.5429231", "0.54168993", "0.5415598", "0.5396788", "0.53890294", "0.53860...
0.67043704
0
Find the ticket using its confirmation number
def lookup(confirmation_number = nil) @reservations[confirmation_number] end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def find(ticket)\n\t\t\tself.result.select{ |p| p['Ticket_Number'] == ticket }.first\n\t\tend", "def order_lookup_confirmation_number\n $tracer.trace(__method__)\n return ToolTag.new(input.id(create_ats_regex_string(\"/OrderLookup_ConfirmationNumberTextBox/\")), __method__)\n end", "def ticket(q)\n ...
[ "0.6805377", "0.6172454", "0.610566", "0.6035752", "0.59477466", "0.5858187", "0.5842113", "0.5792396", "0.57194257", "0.5571067", "0.55376", "0.5530203", "0.552252", "0.5512617", "0.5506345", "0.5478329", "0.537754", "0.5355937", "0.527103", "0.525068", "0.52363867", "0.52...
0.60726434
3
Proxy method over to the lockers object to simulate locker rooms being fully occupied
def fill_locker_room_for(locker_type) lockers.fill_locker_room_for(locker_type) end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def block_room\n\t\tself.room.set_occupied\n\tend", "def lock\n if unlocked_status == false\n raise ArgumentError.new(\"You cannot lock this door - it is already locked\")\n else\n door_hash[:unlocked_status] = false\n end\n end", "def acquire!(locker)\n self.locked_by = locker\n self...
[ "0.6763779", "0.6554339", "0.6551387", "0.64560276", "0.6400507", "0.62908894", "0.62346727", "0.61693704", "0.61508214", "0.6089578", "0.60702795", "0.6055822", "0.60428035", "0.6017164", "0.59920084", "0.597811", "0.5945651", "0.5942091", "0.59321225", "0.5927075", "0.58911...
0.6746561
1
has_one :activity, through: :sessions has_one :instructor, through: :sessions
def parent User.find(self.user_id) end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_course_instructors_are_associated_with_instructors\n mason = User.create(first_name: \"Mason\", last_name: \"Matthews\", email: \"mason@email.com\", photo_url: \"https://avatars1.githubusercontent.com/u/5350842?v=3&s=400\")\n class_one = CourseInstructor.create\n class_two = CourseInstructor.crea...
[ "0.58719003", "0.5695957", "0.5664976", "0.5664976", "0.5664976", "0.5664976", "0.5664976", "0.5664976", "0.5664976", "0.5664976", "0.56001365", "0.55958164", "0.5552075", "0.55393445", "0.5530143", "0.55109864", "0.55066353", "0.54938364", "0.54691607", "0.5457256", "0.54536...
0.0
-1
GET /accounts GET /accounts.json
def index @accounts = Account.page(params[:page]) end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def accounts\n get('/accounts')['accounts']\n end", "def get_accounts()\n http_get(accounts_url)\n end", "def get_account\n as_json(get_results('/account'))\n end", "def index\n\t\t@accounts = Account.all\n\t\trespond_to do |format|\n\t\t\tformat.json { render json: @accounts }\n\t\tend\n...
[ "0.8534027", "0.83189064", "0.79739887", "0.7771132", "0.7715751", "0.76114476", "0.756609", "0.75607514", "0.7477661", "0.7467793", "0.7399458", "0.7361153", "0.7349256", "0.7347992", "0.73351794", "0.72757065", "0.7273358", "0.7226634", "0.7213324", "0.71748066", "0.7172206...
0.67071486
82
GET /accounts/1 GET /accounts/1.json
def show end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def accounts\n get('/accounts')['accounts']\n end", "def get_accounts()\n http_get(accounts_url)\n end", "def get_account\n as_json(get_results('/account'))\n end", "def account(id)\n make_json_api_request :get, \"v2/accounts/#{id}\"\n end", "def show\n authorize @account...
[ "0.76854396", "0.76389235", "0.76367265", "0.75433934", "0.74302703", "0.72776824", "0.7264478", "0.72200984", "0.72200984", "0.72200984", "0.72200984", "0.72200984", "0.7209649", "0.7190633", "0.71900064", "0.71897256", "0.71785915", "0.71748847", "0.716882", "0.71648955", "...
0.0
-1
Use callbacks to share common setup or constraints between actions.
def set_account @account = Account.find(params[:id]) end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_required_actions\n # TODO: check what fields change to asign required fields\n end", "def action_hook; end", "def run_actions; end", "def define_action_hook; end", "def actions; end", "def define_action_helpers\n if super && action == :save\n @instance_helper_module.class_...
[ "0.6163163", "0.6045976", "0.5946146", "0.591683", "0.5890051", "0.58349305", "0.5776858", "0.5703237", "0.5703237", "0.5652805", "0.5621621", "0.54210985", "0.5411113", "0.5411113", "0.5411113", "0.5391541", "0.53794575", "0.5357573", "0.53402257", "0.53394014", "0.53321576"...
0.0
-1
Never trust parameters from the scary internet, only allow the white list through.
def account_params params.require(:account).permit(:account_id, :steamid, :profilestate, :personaname, :lastlogoff, :profileurl, :avatar, :avatarmedium, :avatarfull, :personastate, :primaryclanid, :timecreated, :personastateflags, :gameextrainfo, :gameid, :loccountrycode, :locstatecode, :last_check) end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def strong_params\n params.require(:user).permit(param_whitelist)\n end", "def strong_params\n params.require(:listing_member).permit(param_whitelist)\n end", "def allow_params_authentication!; end", "def allowed_params\n ALLOWED_PARAMS\n end", "def default_param_whitelist\n [\"mode\"]\n...
[ "0.69792545", "0.6781151", "0.67419964", "0.674013", "0.6734356", "0.6591046", "0.6502396", "0.6496313", "0.6480641", "0.6477825", "0.64565", "0.6438387", "0.63791263", "0.63740575", "0.6364131", "0.63192815", "0.62991166", "0.62978333", "0.6292148", "0.6290449", "0.6290076",...
0.0
-1
This is a special feature for call converters who can just call lead after lead without thinking. That is, an automated algorithm decides who the call converter should call next based on which lead is most likely to answer their phone at this time.
def next @outbound_mode_active = "active" @lead = Lead.next(current_admin.email) @call_mode = true if @lead render :edit else redirect_to '/no_leads' end end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def place_call\n client = Twilio::REST::Client.new(Settings.twilio.account_sid, Settings.twilio.auth_token)\n params = {\n from: call.caller_id,\n to: call.member_phone_number,\n url: call_start_url(call),\n status_callback: member_call_event_url(call),\n status_callback_method: 'POS...
[ "0.606001", "0.5950909", "0.5833958", "0.58130944", "0.58086896", "0.57730126", "0.5753247", "0.57427555", "0.5719476", "0.57183194", "0.570734", "0.56310666", "0.56206834", "0.5574328", "0.5554822", "0.552853", "0.5523383", "0.5460513", "0.5447489", "0.54103607", "0.54090446...
0.5035806
68
This action is called by Twilio when preparing to make outbound voice calls through the browser
def token identity = Faker::Internet.user_name.gsub(/[^0-9a-z_]/i, '') capability = Twilio::Util::Capability.new ENV['TWILIO_ACCOUNT_SID'], ENV['TWILIO_AUTH_TOKEN'] # The Twilio capability.allow_client_outgoing ENV['TWILIO_TWIML_APP_SID'] capability.allow_client_incoming identity token = capab...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def receive_browser_call\n campaign_id = params[:campaign_id].to_i\n Sharelink.add_clicker(campaign_id, session[:referrer_id], current_user) if session[:referrer_id]\n Call.create(:campaign_id => campaign_id, :user_id => params[:id], :twilio_id => params[:CallSid])\n outbound_call = Campaign.outbound_c...
[ "0.66509074", "0.654617", "0.65284324", "0.64826334", "0.6399475", "0.63198316", "0.62926495", "0.6153834", "0.5982701", "0.5957627", "0.5921058", "0.5900613", "0.5880843", "0.58600676", "0.57690597", "0.5768218", "0.57637024", "0.5746355", "0.5735717", "0.5719375", "0.568468...
0.0
-1
Make voice calls through the browser. This web request gets called by Twilio based on your Twilio settings, which can be modified at
def voice from_number = params['FromNumber'].blank? ? ENV['TWILIO_CALLER_ID'] : params['FromNumber'] twiml = Twilio::TwiML::Response.new do |r| if params['To'] and params['To'] != '' r.Dial callerId: from_number do |d| # wrap the phone number or client name in the appropriate TwiML verb ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def voice\n response = Twilio::TwiML::Response.new do |r|\n r.Say 'Hey there. Congrats on integrating Twilio into your Rails 4 app.', :voice => 'alice'\n r.Play 'http://linode.rabasa.com/cantina.mp3'\n end\n \n render_twiml response\n end", "def voice\n # Give Twilio the TwiML payload i...
[ "0.6941941", "0.685278", "0.671485", "0.6287461", "0.62238187", "0.62175095", "0.6157951", "0.6140277", "0.6009408", "0.5933411", "0.59127563", "0.5902672", "0.58733183", "0.5809024", "0.57945144", "0.5780976", "0.5671255", "0.56499344", "0.56469446", "0.5625455", "0.55781907...
0.7038924
0
Text from the browser:
def text lead = Lead.find(params[:lead_id]) client = Twilio::REST::Client.new if params[:auto_text] || !params[:body].blank? client.messages.create( from: ENV['TWILIO_PHONE_NUMBER'], to: lead.phone, body: params[:auto_text] ? custom_message(lead.first_name) : params[:body] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def page_text\r\n @web_browser.text\r\n end", "def page_text\n @web_browser.text\n end", "def text()\r\n $jssh_socket.send(\"#{BODY_VAR}.textContent;\\n\", 0)\r\n return read_socket().strip\r\n end", "def text\r\n @driver.at_css('body').text\r\n end", "d...
[ "0.82757133", "0.8255489", "0.7434022", "0.7407637", "0.71398896", "0.70645154", "0.6986736", "0.6983879", "0.6983516", "0.6913855", "0.6913855", "0.68931794", "0.68634737", "0.67455363", "0.6712321", "0.67032033", "0.66906345", "0.6684982", "0.66149116", "0.65861547", "0.658...
0.0
-1
GET /users GET /users.json
def index @teams = Team.order(:name) end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def users(args = {})\n get(\"/users.json\",args)\n end", "def show\n begin\n user = User.find(params[:user_id])\n render json: { users: user }, status: :ok\n rescue => e\n render json: { errors: e.message}, status: 404\n end\n end", "def GetUsers params = {}\n\n para...
[ "0.82095146", "0.78731215", "0.7858865", "0.7810778", "0.78045267", "0.7676475", "0.7657986", "0.7631493", "0.75824183", "0.7528372", "0.74869", "0.74485946", "0.7439104", "0.74374914", "0.74262154", "0.7398303", "0.7398303", "0.7398303", "0.7398303", "0.737529", "0.7372981",...
0.0
-1