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
DELETE /services/1 DELETE /services/1.json
def destroy @service.destroy respond_to do |format| format.html { redirect_to services_url } format.json { head :no_content } end end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def destroy\n @service = Service.find(params[:id])\n @service.destroy\n\n respond_to do |format|\n format.html { redirect_to services_url }\n format.json { head :ok }\n end\n end", "def destroy\n @service = Service.find(params[:id])\n @service.destroy\n\n respond_to do |format|\n ...
[ "0.7445268", "0.7405554", "0.7405554", "0.7405554", "0.74017256", "0.7339786", "0.73383987", "0.7177263", "0.71209097", "0.7111978", "0.7111978", "0.7111978", "0.7111978", "0.7111978", "0.7111978", "0.7111978", "0.7111978", "0.7111978", "0.7111978", "0.7111978", "0.7111978", ...
0.736012
5
Use callbacks to share common setup or constraints between actions.
def set_service @service = Service.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 service_params params.require(:service).permit(:departure_date, :arrival_date, :release_date, :status, :latitude, :longitude,:latitude_dest, :longitude_dest, :location_id, :departure_id, :arrival_id, ...
{ "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.6980629", "0.67819995", "0.67467666", "0.67419875", "0.67347664", "0.65928614", "0.6504013", "0.6498014", "0.64819515", "0.64797956", "0.64562726", "0.64400834", "0.6380117", "0.6377456", "0.63656694", "0.6320543", "0.63002014", "0.62997127", "0.629425", "0.6293866", "0.62...
0.0
-1
Add message to database
def log_message event, id, data, errors, creation_time, sender Log.create(event, id, data, errors, creation_time, sender) end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def record_message(room_hash, is_admin, msg, admin_name, speaker)\n create_chatroom(room_hash, admin_name, 'client_name')\n \n begin\n the_time = Time.now-Time.zone_offset('CST')\n insert_new_msg = @db.prepare \"INSERT INTO chat_messages (room_hash, chat_user_id, msg, speaker, created_at, update...
[ "0.72945845", "0.70654595", "0.6800995", "0.6726465", "0.66338354", "0.6607585", "0.6562855", "0.6467664", "0.6394109", "0.63637286", "0.6362152", "0.63492763", "0.6285115", "0.62760556", "0.6252937", "0.61891854", "0.61813486", "0.6174125", "0.6168955", "0.613954", "0.612158...
0.0
-1
Generates attr_accessors that encrypt and decrypt attributes transparently
def attr_secure(*attributes) options = { :encryption_class => Secure, :secret_class => Secret, :env => ENV }.merge!(attributes.last.is_a?(Hash) ? attributes.pop : {}) attribute = attributes.first define_method("#{attribute}=") do |value| adapter = self.class.at...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create_accessors!\n self.each do |key,val|\n create_accessor_for(key)\n end\n end", "def create_accessors!\n instance.each do |key,val|\n create_accessor_for(key)\n end\n end", "def define_accessors\n self.metadata.properties_and_identity.each do |name, _|\n ...
[ "0.7344197", "0.718506", "0.70816445", "0.68846756", "0.6821372", "0.6814972", "0.6795294", "0.6767175", "0.67158747", "0.6682154", "0.66042244", "0.6602746", "0.6573592", "0.6521592", "0.6475502", "0.6450828", "0.644941", "0.6446443", "0.64284724", "0.64199704", "0.64174086"...
0.6546421
13
Changes the image encoding format to the given format See even === Parameters [format (to_s)] an abbreviation of the format === Yields [Magick::Image] additional manipulations to perform === Examples image.convert(:png)
def convert(format) manipulate!(:format => format) @format = format end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def convert(format)\n manipulate! do |img|\n img.manipulate!(:format => format.to_s.downcase)\n img = yield(img) if block_given?\n img\n end\n end", "def convert(format)\n manipulate! do |img|\n \t@format = format\n img.convert\n img = yield(img) if block...
[ "0.7948635", "0.7892388", "0.7134083", "0.6000027", "0.5946565", "0.5838677", "0.5717083", "0.57161534", "0.56918275", "0.56556547", "0.56431717", "0.5641196", "0.56265783", "0.552352", "0.55155164", "0.54803187", "0.5475147", "0.5401713", "0.5384855", "0.5384855", "0.5365348...
0.57818604
6
Resize the image to fit within the specified dimensions while retaining the original aspect ratio. Will only resize the image if it is larger than the specified dimensions. The resulting image may be shorter or narrower than specified in the smaller dimension but will not be larger than the specified values. === Parame...
def resize_to_limit(width, height) width = dimension_from width height = dimension_from height manipulate! do |img| geometry = Magick::Geometry.new(width, height, 0, 0, Magick::GreaterGeometry) new_img = img.change_geometry(geometry) do |new_width, new_height| img.resize(new_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def resize_to_fit width, height\n manipulate! do |image|\n cols = image.width\n rows = image.height\n\n if width != cols or height != rows\n scale = [width/cols.to_f, height/rows.to_f].min\n cols = (scale * (cols + 0.5)).round\n rows = (scale * (rows + 0.5)).rou...
[ "0.80444586", "0.8011246", "0.79857016", "0.7973994", "0.7887675", "0.7749095", "0.75760084", "0.75495946", "0.7519202", "0.74998116", "0.7363981", "0.73435646", "0.73435646", "0.7296743", "0.72486234", "0.7244652", "0.7171792", "0.71429914", "0.7051845", "0.7038353", "0.6975...
0.77660173
5
From the RMagick documentation: "Resize the image to fit within the specified dimensions while retaining the original aspect ratio. The image may be shorter or narrower than specified in the smaller dimension but will not be larger than the specified values." See even === Parameters [width (Integer)] the width to scale...
def resize_to_fit(width, height) width = dimension_from width height = dimension_from height manipulate! do |img| img.resize_to_fit!(width, height) img = yield(img) if block_given? img end end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def resize_to_fit width, height\n manipulate! do |image|\n cols = image.width\n rows = image.height\n\n if width != cols or height != rows\n scale = [width/cols.to_f, height/rows.to_f].min\n cols = (scale * (cols + 0.5)).round\n rows = (scale * (rows + 0.5)).rou...
[ "0.7904199", "0.77946115", "0.77164555", "0.7709697", "0.7662021", "0.76197857", "0.7563401", "0.7347454", "0.73009425", "0.7269514", "0.7269514", "0.72441274", "0.7237489", "0.7197201", "0.7179456", "0.7073202", "0.700598", "0.6956132", "0.6911086", "0.69103104", "0.6871903"...
0.76387393
5
From the RMagick documentation: "Resize the image to fit within the specified dimensions while retaining the aspect ratio of the original image. If necessary, crop the image in the larger dimension." See even === Parameters [width (Integer)] the width to scale the image to [height (Integer)] the height to scale the ima...
def resize_to_fill(width, height, gravity=::Magick::CenterGravity) width = dimension_from width height = dimension_from height manipulate! do |img| img.crop_resized!(width, height, gravity) img = yield(img) if block_given? img end end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def resize_to_fit width, height\n manipulate! do |image|\n cols = image.width\n rows = image.height\n\n if width != cols or height != rows\n scale = [width/cols.to_f, height/rows.to_f].min\n cols = (scale * (cols + 0.5)).round\n rows = (scale * (rows + 0.5)).rou...
[ "0.7959461", "0.79100484", "0.78318834", "0.7818346", "0.7798795", "0.7740974", "0.77112466", "0.7679742", "0.76672775", "0.73897105", "0.73897105", "0.7356092", "0.7343252", "0.7333003", "0.7240628", "0.71911037", "0.7165671", "0.7063135", "0.70570457", "0.70334035", "0.7032...
0.70770913
17
Resize the image to fit within the specified dimensions while retaining the original aspect ratio. If necessary, will pad the remaining area with the given color, which defaults to transparent (for gif and png, white for jpeg). === Parameters [width (Integer)] the width to scale the image to [height (Integer)] the heig...
def resize_and_pad(width, height, background=:transparent, gravity=::Magick::CenterGravity) width = dimension_from width height = dimension_from height manipulate! do |img| img.resize_to_fit!(width, height) filled = ::Magick::Image.new(width, height) { |image| image.background_color = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def resize_and_pad(width, height, background=:transparent, gravity='Center')\n manipulate! do |img|\n opt={}\n opt[:thumbnail] = \"#{width}x#{height}>\"\n background == :transparent ? opt[:background] = \"rgba(255, 255, 255, 0.0)\" : opt[:background] = background\n opt[:gravity] = ...
[ "0.69775414", "0.6690577", "0.64920753", "0.6387754", "0.63720804", "0.63065714", "0.62791324", "0.61221707", "0.5366783", "0.5243876", "0.5241011", "0.52408737", "0.5239637", "0.51353276", "0.5126591", "0.50974345", "0.5087579", "0.5083496", "0.50833786", "0.508054", "0.5069...
0.7711608
0
Resize the image per the provided geometry string. === Parameters [geometry_string (String)] the proportions in which to scale image === Yields [Magick::Image] additional manipulations to perform
def resize_to_geometry_string(geometry_string) manipulate! do |img| new_img = img.change_geometry(geometry_string) do |new_width, new_height| img.resize(new_width, new_height) end destroy_image(img) new_img = yield(new_img) if block_given? new_img end en...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def resize(geometry)\n load_image.change_geometry(geometry) do |width, height, img|\n img.resize(width, height).to_blob\n end\n end", "def resize_image(image_string, dest)\n image = Gg::ImageProcessing.new(image_string)\n i_name = dest.split('/').last\n image.blob_generate(project.image_for(...
[ "0.6702341", "0.6317141", "0.6115695", "0.58244544", "0.5674675", "0.56443244", "0.5511403", "0.55003834", "0.54762954", "0.5463602", "0.5409017", "0.5380914", "0.53303057", "0.5224733", "0.51502717", "0.5131049", "0.5098242", "0.5092272", "0.5074032", "0.507158", "0.499744",...
0.8751659
0
Returns the width of the image. === Returns [Integer] the image's width in pixels
def width rmagick_image.columns end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def width\n @image.width\n end", "def width\n image_ptr[:sx]\n end", "def width\n image.empty? ? 0 : image.first.size\n end", "def width\n @image[0].length\n end", "def image_width\n @image_width ||=\n if image_node.has_attribute?('width')\n ...
[ "0.8467217", "0.8450385", "0.82489675", "0.8152902", "0.7965086", "0.7838046", "0.7833044", "0.7806892", "0.7768065", "0.74756587", "0.73673016", "0.7287267", "0.7207389", "0.71181273", "0.7095301", "0.70724374", "0.7016184", "0.69929427", "0.69929427", "0.695235", "0.6938186...
0.8070507
4
Returns the height of the image. === Returns [Integer] the image's height in pixels
def height rmagick_image.rows end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def height\n image.size\n end", "def height\n image_ptr[:sy]\n end", "def height\n @image.height\n end", "def image_height\n\t\t\t@data[\"image\"][\"height\"]\n\t\tend", "def image_height(image)\n args = [vips_header_command, '-f', 'Ysize', image.path]\n @cmd.run(*args...
[ "0.8730402", "0.85748523", "0.8508794", "0.8169658", "0.81295717", "0.8013165", "0.800806", "0.8002869", "0.7865661", "0.774852", "0.7423216", "0.7358533", "0.7326833", "0.73154515", "0.72502244", "0.7186122", "0.7179575", "0.71771353", "0.7161973", "0.7083076", "0.7081176", ...
0.8398598
3
Coords (1,1) upper left side of field
def initialize(x, y) @x = x @y = y end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def upper_left\n @upper_left ||= world.point(x_min, y_max)\n end", "def upper_left_box(i, j)\n x = (i / @box_height).floor * @box_height\n y = (j / @box_width).floor * @box_width\n\n return x, y\n end", "def topleft; return self[0,2].to_a; end", "def upper_left\n @upper_left ||= ...
[ "0.7220927", "0.6992956", "0.67625463", "0.6638862", "0.6617315", "0.6571101", "0.6525064", "0.64833695", "0.64704376", "0.64518565", "0.64341193", "0.64031583", "0.63801754", "0.63723296", "0.63510895", "0.63244414", "0.63244414", "0.62876886", "0.62791973", "0.6226906", "0....
0.0
-1
Override of compare method for Point
def == (other_object) other_object.x == @x && other_object.y == @y end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def compare(x, y); end", "def <=>(point)\n raise \"Must compare to another point\" unless point.is_a? Point\n if self.x < point.x\n -1\n elsif self.x > point.x\n 1\n else\n if self.y < point.y\n -1\n elsif self.y > point.y\n 1\n else\n 0\n end\n e...
[ "0.72159016", "0.7192661", "0.7140621", "0.7042914", "0.70303017", "0.69691503", "0.6839893", "0.680545", "0.67037475", "0.6689242", "0.6625893", "0.6625893", "0.6625893", "0.65491164", "0.6504738", "0.6498475", "0.64737296", "0.64472145", "0.6440415", "0.64295304", "0.638727...
0.0
-1
For better +.inspect+ output
def to_s "[#{@x},#{@y}]" end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def inspect() end", "def inspect() end", "def inspect() end", "def inspect() end", "def inspect() end", "def inspect() end", "def inspect() end", "def inspect() end", "def inspect() end", "def inspect() end", "def inspect() end", "def inspect() end", "def inspect() end", "def inspect() en...
[ "0.8167131", "0.8167131", "0.8167131", "0.8167131", "0.8167131", "0.8167131", "0.8167131", "0.8167131", "0.8167131", "0.8167131", "0.8167131", "0.8167131", "0.8167131", "0.8167131", "0.81043035", "0.81043035", "0.81043035", "0.81043035", "0.81043035", "0.81043035", "0.8104303...
0.0
-1
Position of point above current
def up Point.new(@x, @y + 1) end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def above? point\n dist(point) < 0\n end", "def compare_position(point)\n (v2.x - v1.x) * (point.y - v1.y) - (point.x - v1.x) * (v2.y - v1.y)\n end", "def top\n self.position[:y]\n end", "def adjust_to_relative_pos(tx,ty)\n x = tx - (self.x - @positions[:current][:x])\n y = ty - (self.y...
[ "0.6953109", "0.65815926", "0.64696634", "0.64125025", "0.64102817", "0.6409774", "0.64082813", "0.64082813", "0.6404439", "0.6373801", "0.6314981", "0.6296717", "0.62725", "0.62567484", "0.62562305", "0.62528664", "0.6246954", "0.62393", "0.6227432", "0.62028813", "0.6182185...
0.65895027
1
Position of point below current
def down Point.new(@x, @y - 1) end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def current_position\n return super if $game_system.battle_interpreter.running?\n return :bottom\n end", "def up\n Point.new(@x, @y + 1)\n end", "def up\n Point.new(@x, @y + 1)\n end", "def below? point\n dist(point) > 0\n end", "def bottom_left\n Point[x, y + height]\n end...
[ "0.6959505", "0.6834786", "0.6834786", "0.6670707", "0.66160464", "0.6582218", "0.65569717", "0.65301275", "0.6472672", "0.645934", "0.64521176", "0.6417589", "0.64115846", "0.64051116", "0.63650537", "0.63480353", "0.6309402", "0.6299318", "0.6298164", "0.6298164", "0.625326...
0.6458773
10
Position of point on the left side
def left Point.new(@x - 1, @y) end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def left\n position.x\n end", "def left\n self.position[:x]\n end", "def set_left_start_point\n @leading_x = 0\n @leading_y = find_left_entry\n end", "def lower_left\n @lower_left ||= world.point(x_min, y_min)\n end", "def centre_left\n @centre_left ||= world.point...
[ "0.79911685", "0.7924", "0.7822537", "0.7653651", "0.76362926", "0.7292216", "0.7097495", "0.7060648", "0.70550835", "0.7052107", "0.70250106", "0.70250106", "0.69921607", "0.69682145", "0.6959297", "0.6924341", "0.6898143", "0.6887142", "0.68685436", "0.67996347", "0.6799634...
0.8527643
0
Position of point on the right side
def right Point.new(@x + 1, @y) end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def top_right\n Point[x + width, y]\n end", "def bottom_right\n @position + @dimensions\n end", "def right\n @x_min + @y_min\n end", "def centre_right\n @centre_right ||= world.point(x_max, y_min + height/2.0)\n end", "def set_right_start_point\n @leading_x = 0\n @lead...
[ "0.7589717", "0.7501476", "0.7297704", "0.72885656", "0.72669435", "0.69656354", "0.6962776", "0.6962776", "0.69428265", "0.6858695", "0.671456", "0.66965795", "0.6677723", "0.6639178", "0.663698", "0.659882", "0.65815777", "0.6565092", "0.6549266", "0.6540724", "0.6535343", ...
0.815359
0
=begin :type target: Integer :rtype: Boolean =end
def find(target) @root.find(target) end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def target_reached?\n @current_value == @target_value\n end", "def done?\n @number == @target\n end", "def target; true; end", "def is_target?\n not is_source? and @next.nil? and @chain.size > 1\n end", "def target_oor?()\n return @homing_range == -1 ? false : (@target.distance_from(...
[ "0.7131234", "0.6963486", "0.69236445", "0.66934717", "0.6660127", "0.66103923", "0.64920753", "0.64809465", "0.6402708", "0.64008087", "0.6379275", "0.636785", "0.6360882", "0.6360371", "0.63329315", "0.6332607", "0.6282404", "0.62328124", "0.6209414", "0.61781025", "0.61563...
0.0
-1
your packages have to respond to a few methods: depth(), width(), height(), and packed_weight() and your address has to respond to zip()
def build_rate_request( packages, address, options = {} ) options = @config['rates_and_services'].merge options @rate_request.RatingServiceSelectionRequest { @rate_request.Request { @rate_request.TransactionReference { @rate_request.CustomerContext "Rating and Service" @r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pack\n end", "def zip\n end", "def zip\n end", "def zip( *other_arrays, & block )\n\n load_parent_state\n \n return super\n \n end", "def pack(p0) end", "def pack_box\n\t\t# @packages = ActiveShipping::Package.new((WEIGHT * 16), DIMENSIONS, UNITS)\n\t\t@packages = ActiveShip...
[ "0.6607067", "0.6365484", "0.63448906", "0.5992129", "0.5940866", "0.59259236", "0.59111375", "0.59004515", "0.5879201", "0.5748987", "0.56832105", "0.56219524", "0.54377556", "0.54355836", "0.5342583", "0.53377783", "0.5239528", "0.52328175", "0.5225145", "0.52076703", "0.52...
0.0
-1
Must be an instance method for Resque::JobWithStatus
def perform total = options['length'].to_i || 10 num = 0 while num < total at(num, total, "At #{num} of #{total}") sleep(1) num += 1 end completed end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def queue_job; end", "def status\n id ? Resque::Plugins::Status::Hash.get(id) : nil\n end", "def status\n check_exists\n SideJob.redis.get \"#{redis_key}:status\"\n end", "def status\n job = delayed_job\n return 'queued' if job_queued?(job)\n return 'working' if job_work...
[ "0.66599315", "0.64799726", "0.6380707", "0.63557845", "0.63347095", "0.6217501", "0.6157068", "0.61000067", "0.60926753", "0.60564697", "0.6021688", "0.60101306", "0.60046536", "0.5998482", "0.59943104", "0.5971358", "0.5933454", "0.59278965", "0.59132224", "0.59025776", "0....
0.0
-1
Turn this into an option for IndexOptions
def optionify output = self.apachify output = "-#{output[3..-1]}" if self.to_s[0..3] == 'not_' output end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def options\n {:index => (index.blank? ? nil : index)}\n end", "def set_index_options\n limit = params[:limit].to_i > 0 ? params[:limit].to_i : nil\n reverse = params[:reverse].present? ?\n params[:reverse].to_s.to_boolean(false) : nil\n...
[ "0.7802457", "0.7051983", "0.70243865", "0.6869974", "0.6741137", "0.6663552", "0.6644806", "0.6525737", "0.6521676", "0.63780576", "0.6225444", "0.62020504", "0.6198015", "0.6136022", "0.6130746", "0.60766494", "0.6073977", "0.60706615", "0.606286", "0.60624653", "0.6028405"...
0.0
-1
Performance test: 26s Start: 20190130 14:43:20 0200 End: 20190130 14:43:46 0200
def raw_run(value, from, to) url = "#{api}/latest?base=#{from}&symbols=#{to}&format=1&access_key=#{token}" pp "Running #{url}" if development? req = Curl.get url res = JSON.parse req.body_str unless res['success'] raise res['error']['info'] if res.dig('error', 'info') rais...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def benchmark\nend", "def build_timing; end", "def benchmark(s1, s2)\n puts \"s1=#{s1}\"\n puts \"s2=#{s2}\"\n puts \n \n start_time = Time.now\n #match = number_match(s1, s2)\n match = slide_cache(s1, s2)\n duration = Time.now - start_time\n \n puts \"Slide match: #{match}\"\n puts \"Took: #{(durat...
[ "0.63017774", "0.6167502", "0.60575914", "0.60095346", "0.59781206", "0.59728986", "0.57774717", "0.57700765", "0.5737793", "0.5737737", "0.5720713", "0.5676296", "0.5669782", "0.5654818", "0.5630814", "0.56173056", "0.5572802", "0.55577016", "0.55538315", "0.5535933", "0.551...
0.0
-1
Assicuratevi che non esistano righe d'ordine che fanno riferimento a questo prodotto
def ensure_not_referenced_by_any_line_item if line_items.empty? return true else errors.add(:base, 'Line Items present') return false end end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def suivre; end", "def comer\r\n # @image = Image[\"pez2.png\"]\r\n # Al comer, un pez tendrá x segundos mas de vida, y queda libre para buscar mas comida\r\n @vida_inicio += 2\r\n @libre = true\r\n end", "def huella\n\t\tindice1 = 0\n\t\t#dependiendo del vct de cada ingrediente, se le pone un ind...
[ "0.6940581", "0.62929523", "0.6261303", "0.6258837", "0.6225328", "0.61908084", "0.6094198", "0.608304", "0.60815555", "0.60780525", "0.60144866", "0.6007506", "0.6005781", "0.59913933", "0.5908447", "0.5901472", "0.5886767", "0.5884836", "0.5884261", "0.5863101", "0.583709",...
0.0
-1
Creates and initializes a new instance of the SyncGroups class.
def initialize(client) @client = client end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def groups\n @groups = init_groups\n end", "def initialize(groups_hosts)\n @groups_hosts = groups_hosts\n end", "def new\n @group = Group.new\n end", "def initialize\n p \"deprecated method, instance should be creat by getNewGroup\"\n end", "def group\n @group ||= G...
[ "0.63461924", "0.62895375", "0.6168419", "0.6004118", "0.59841585", "0.5956662", "0.5956662", "0.5956662", "0.5956662", "0.5956662", "0.5945514", "0.59410673", "0.59152836", "0.59054637", "0.5903019", "0.5877215", "0.5869479", "0.583243", "0.58158803", "0.57958484", "0.577247...
0.0
-1
run jasmine specs for only the changed files if the changed file does not contain a jasmine describe block, rerun the entire jasmine test suite
def run_on_changes(paths) spec_filters = paths.collect {|path| spec_description(path) }.uniq spec_filters = [nil] if spec_filters.include?(nil) spec_filters.each do |spec_filter| run spec_filter end end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def run_commands_for_changed_file(files)\n if files and there_are_test_files_to_run?(files)\n commands = @application.construct_commands_for_changed_files(files)\n @application.run!(commands)\n end\n end", "def sync_rspec_only\n copy_skel_files\n end", "def all_spec_files\n 'spe...
[ "0.6729323", "0.63065684", "0.6257619", "0.6128035", "0.6103783", "0.6069167", "0.6065931", "0.6065931", "0.6065931", "0.6065931", "0.60419565", "0.5994843", "0.5990133", "0.5957787", "0.5950712", "0.588241", "0.5783103", "0.57608837", "0.5723115", "0.5695836", "0.5660922", ...
0.5937066
15
parse the outermost describe block from a Jasmine spec file returns nil if no describe block is found
def spec_description(path) File.read(path).scan(/describe.+?['"]([^'"]+)/).flatten.first end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create_test_node\n parent = @root\n File.open(@file_name, \"r\") do |f|\n f.each_with_index do |line, index|\n \n if index == 0\n @stack = []\n @stack.push(@root)\n end\n line.chomp!\n next if line.empty? || line.nil?\n prelim_whitespace = ...
[ "0.5766105", "0.5766105", "0.5638522", "0.5619125", "0.56035733", "0.5358698", "0.52421105", "0.52370137", "0.5220802", "0.5180061", "0.51780665", "0.51523685", "0.5122258", "0.5105781", "0.5038234", "0.5038234", "0.5028349", "0.50155145", "0.49867386", "0.49531075", "0.49109...
0.60487056
0
GET /intakes/1 GET /intakes/1.json
def show @intake = Intake.find(params[:id]) @intake_note = @intake.intake_notes.all @new_note = @intake.intake_notes.build end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def index\n @intakes = Intake.all\n end", "def new\n @intake = Intake.new\n\n respond_to do |format|\n format.html # new.html.erb\n format.json { render json: @intake }\n end\n end", "def index\n @illnesses = Illness.all\n\n render json: @illnesses\n end", "def show\n @mista...
[ "0.6397065", "0.6295524", "0.61315525", "0.6075244", "0.5957799", "0.590922", "0.589608", "0.5865068", "0.5828543", "0.5798916", "0.57841134", "0.57155025", "0.57155025", "0.56895226", "0.56686795", "0.5660638", "0.5655312", "0.5624465", "0.5624385", "0.5623459", "0.5621819",...
0.0
-1
GET /intakes/new GET /intakes/new.json
def new @intake = Intake.new respond_to do |format| format.html # new.html.erb format.json { render json: @intake } end end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def new\n @take = Take.new\n\n respond_to do |format|\n format.html # new.html.erb\n format.json { render json: @take }\n end\n end", "def new\n @mistake = Mistake.new\n\n respond_to do |format|\n format.html # new.html.erb\n format.json { render json: @mistake }\n end\n e...
[ "0.70713305", "0.7057339", "0.6910136", "0.69003636", "0.6866036", "0.6819922", "0.67698276", "0.6766543", "0.6744544", "0.6713283", "0.6705834", "0.67018074", "0.66902393", "0.66570854", "0.6629238", "0.66073346", "0.6595518", "0.6591912", "0.6588498", "0.657741", "0.6558105...
0.77157503
0
POST /intakes POST /intakes.json
def create @intake = Intake.new(params[:intake]) respond_to do |format| if @intake.save flash[:success] = "Intake was successfully created." format.html { redirect_to @intake, notice: 'Intake was successfully updated.' } else format.html { render action: "new" } form...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create\n \n @intake = Intake.new(params[:intake])\n\n respond_to do |format|\n if @intake.save\n format.html { redirect_to(@intake, :notice => t('intake.title2')+\" \"+t('created')) }\n format.xml { render :xml => @intake, :status => :created, :location => @intake }\n else\n ...
[ "0.58433217", "0.58284503", "0.57981265", "0.56754124", "0.5665123", "0.5606291", "0.55641884", "0.55585265", "0.55527586", "0.5521294", "0.55050564", "0.5504268", "0.5501058", "0.5445212", "0.5438744", "0.5407163", "0.53807265", "0.53699327", "0.53491175", "0.53378856", "0.5...
0.63868123
0
PUT /intakes/1 PUT /intakes/1.json
def update @intake = Intake.find(params[:id]) respond_to do |format| if @intake.update_attributes(params[:intake]) format.html { redirect_to @intake, notice: 'Intake was successfully updated.' } format.json { head :no_content } else format.html { render action: "edit" } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update\n @intake = Intake.find(params[:id])\n\n respond_to do |format|\n if @intake.update_attributes(params[:intake])\n format.html { redirect_to(@intake, :notice => t('intake.title2')+\" \"+t('updated')) }\n format.xml { head :ok }\n else\n format.html { render :action =...
[ "0.61230576", "0.60769284", "0.5969837", "0.5967797", "0.5878849", "0.58155596", "0.5764947", "0.57482177", "0.5717962", "0.5689932", "0.5666412", "0.56445044", "0.56410617", "0.5635675", "0.5625561", "0.5625561", "0.5615401", "0.5605956", "0.56008327", "0.55974233", "0.55707...
0.6548026
0
DELETE /intakes/1 DELETE /intakes/1.json
def destroy @intake = Intake.find(params[:id]) @intake.destroy respond_to do |format| flash[:success] = "Intake successfully detroyed!" format.html { redirect_to intakes_url } format.json { head :no_content } end end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def destroy\n @intake.destroy\n respond_to do |format|\n format.html { redirect_to intakes_url }\n format.json { head :no_content }\n end\n end", "def destroy\n @intake = Intake.find(params[:id])\n @intake.destroy\n\n respond_to do |format|\n format.html { redirect_to(intakes_ur...
[ "0.77112186", "0.7121141", "0.6915425", "0.6850709", "0.67906517", "0.6752635", "0.6745195", "0.6707466", "0.6704056", "0.66789705", "0.6674272", "0.66680175", "0.6654347", "0.665092", "0.6611754", "0.66064304", "0.66020995", "0.6558072", "0.65428233", "0.65415275", "0.653423...
0.7172134
1
Instantiate a new HttpHandler with the specified arguments. Possible arguments include: [:verbose] If true, the handler will output the URI it is requesting to STDOUT. This may be useful for debugging purposes. [:ca_file] This parameter's value points to a valid .pem certificate file to enable the client to validate se...
def initialize(args = {}) @verbose = args[:verbose] @ca_file = args[:ca_file] @connect_timeout = args[:connect_timeout] @timeout = args[:timeout] @connect_timeout = 5.0 if @connect_timeout.nil? @timeout = 5.0 if @timeout.nil? raise ArgumentError, "connect_timeou...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def initialize_http_handler(args = {})\n @http = HTTPHandler.new(args)\n logger.debug { \"Connection Set: #{http.to_s}\" }\n end", "def initialize_http_handler(args = {})\n @http = HTTPHandler.new(args)\n logger.debug { \"Connection Set: #{http.to_s}\" }\n end", "def initialize(...
[ "0.73995864", "0.7394815", "0.6632", "0.6560519", "0.6284141", "0.6204815", "0.60628605", "0.59226805", "0.5872629", "0.586245", "0.5845074", "0.5842294", "0.5842294", "0.582005", "0.57291895", "0.5633554", "0.5614627", "0.56117916", "0.5594607", "0.55807227", "0.55731535", ...
0.57742727
14
========================================================= This is where you will write your code for the three phases
def phase_one puts "Phase 1 Starting".yellow counter = 8 eliminated = [] while counter > 0 indexer = 8 - counter puts "Phase one, round #{(indexer+1).to_s}:".green tribe_selected = @borneo.immunity_challenge puts "Tribe selected: #{tribe_selected.to_s}".green puts "Contestant #{tribe_selecte...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def phase_three\n puts \"Phase 3 has been started\"\n\n 7.times do\n immune = @borneo.individual_immunity_challenge\n puts \"#{immune} wins the immunity\".blue\n\t\tvoted_off_contestant = @merge_tribe.tribal_council(immune: immune)\n\t\t@jury.add_member voted_off_contestant\n\t\tputs \"#{voted_off_contesta...
[ "0.638428", "0.638248", "0.6228562", "0.62134427", "0.62134427", "0.61540085", "0.61004066", "0.60727775", "0.6042017", "0.5994848", "0.594343", "0.594343", "0.5883013", "0.5876965", "0.58768505", "0.58537185", "0.5852844", "0.5837563", "0.580648", "0.5804146", "0.5793748", ...
0.53154105
89
Note: This test will only pass with test account credentials which have asynchronous adjustments enabled.
def test_successful_asynchronous_adjust assert authorize = @gateway_latam.authorize(@amount, @credit_card, @options) assert_successful_response(authorize) assert adjust = @gateway_latam.adjust(@amount * 2, authorize.authorization, @options) assert_success adjust assert capture = @gateway_latam.captu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def example_pending; end", "def update_for_wait\n update_basic\n end", "def test_recurring_with_initial_authorization\n response = @gateway.recurring(1000, @credit_card, \n :periodicity => :monthly,\n :initial_transaction => {\n :type => :purchase,\n :amount => 500\n }\n ...
[ "0.58152735", "0.57089466", "0.5657817", "0.5620907", "0.56049204", "0.55913866", "0.5547836", "0.5540478", "0.553524", "0.5508594", "0.54880387", "0.5476565", "0.5464757", "0.5459941", "0.5453023", "0.5449347", "0.54405177", "0.5433788", "0.54322404", "0.5430179", "0.5420117...
0.6825827
0
To properly run this test couple of test your account needs to be enabled to handle canadian bank accounts.
def test_successful_purchase_with_a_canadian_bank_account_full_number bank_account = check({ account_number: '4100', routing_number: '011000015' }) @options[:currency] = 'CAD' assert response = @gateway.purchase(10000, bank_account, @options) assert_successful_response(response) end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_bank_acct_profile\r\n\r\n @place_holder.login_and_assert_profile(PropertiesReader.get_bank_acct_profile_url)\r\n\r\n end", "def test_bank_profile\r\n\r\n @place_holder.login_and_assert_profile(PropertiesReader.get_bank_profile_url)\r\n\r\n end", "def test_create_account\n an_account = Order...
[ "0.6855201", "0.66425663", "0.6401534", "0.6395598", "0.63859344", "0.62714887", "0.6259213", "0.62436545", "0.619253", "0.6189957", "0.6166104", "0.61629975", "0.61118364", "0.6101383", "0.6096995", "0.60493505", "0.60384136", "0.60218394", "0.6018191", "0.60000825", "0.5995...
0.65159035
2
Unable to test refunds for Elo cards, as the test account is setup to have Elo transactions routed to Comercio Latino which has very specific rules on refunds (i.e. that you cannot do a "StandAlone" refund). This means we need to go through a Capture cycle at least a day before submitting a refund.
def test_successful_refund assert response = @gateway.purchase(@amount, @credit_card, @options) assert_successful_response(response) assert response = @gateway.refund(@amount, response.authorization) assert_successful_response(response) end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_seed_refund_no_adj\n data = {}\n data[:name] = 'Jean-Baptiste Poquelin'\n data[:external_key] = 'jeanpoquelin'\n data[:email] = 'jeanpoquelin@kb.com'\n data[:currency] = 'EUR'\n data[:time_zone] = 'Europe/Paris'\n data[:address1] = '17, rue Saint-Honore'\n data[:add...
[ "0.73252356", "0.70224255", "0.696532", "0.69319874", "0.6914274", "0.6890465", "0.6878084", "0.6869966", "0.66506207", "0.662545", "0.6499849", "0.63436174", "0.6261015", "0.6162581", "0.61572117", "0.61390334", "0.6130103", "0.6104033", "0.610155", "0.6043905", "0.5992172",...
0.6550253
10
this test should probably be removed, the fields do not appear to be part of the most current XSD file, also they are not added to the request correctly as top level fields
def test_merchant_description merchant_options = { merchantInformation: { merchantDescriptor: { name: 'Test Name', address1: '123 Main Dr', locality: 'Durham' } } } assert response = @gateway.purchase(@amount, @credit_card, @options.merge(merchant_o...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_get_form_fields\n filename = 'FormFilled.docx'\n remote_name = 'TestGetFormFields.docx'\n\n st_request = PutCreateRequest.new remote_test_folder + test_folder + '/' + remote_name, File.open(local_test_folder + test_folder + '/' + filename, \"r\").read \n @storage_api.put_create s...
[ "0.6036962", "0.5834024", "0.5806953", "0.57976323", "0.5676449", "0.5675213", "0.5666036", "0.56640863", "0.55684686", "0.5525615", "0.55035025", "0.55035025", "0.54714984", "0.54616123", "0.54593194", "0.54411274", "0.5436352", "0.5413555", "0.54128927", "0.54128927", "0.54...
0.0
-1
to create a valid pares, use the test credentials to request `test_3ds_enroll_request_via_purchase` with debug=true. Extract this XML and generate an accessToken. Using this access token to create a form, visit the stepUpURL provided and check the network exchange in the browser dev console for a CCA, which will contai...
def test_successful_3ds_validate_purchase_request assert response = @gateway.purchase(1202, @three_ds_enrolled_card, @options.merge(payer_auth_validate_service: true, pares: pares)) assert_equal '100', response.params['reasonCode'] assert_equal '0', response.params['authenticationResult'] assert respons...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_purchase_successful\n response = @gateway.setup_purchase(100, @options)\n\n assert_success response\n\n assert_equal '1234567890123456', response.transaction['purchaseID']\n assert_equal '0020', response.params['AcquirerTrxRes']['Acquirer']['acquirerID']\n assert_not_nil response.service_ur...
[ "0.5696096", "0.55055356", "0.54823047", "0.54579115", "0.5337019", "0.5301539", "0.52430063", "0.5228084", "0.5224268", "0.5209989", "0.52097523", "0.52094454", "0.5165293", "0.515584", "0.5149624", "0.51442873", "0.51431507", "0.5092429", "0.5088592", "0.5083615", "0.507874...
0.5806088
0
We use a method so we can time it with Benelux
def send_request(http_client, usecase, meth, uri, req, params, headers, container, counter) container.response = http_client.send(meth, uri, params, headers) # booya! end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def build_timing; end", "def time; end", "def time; end", "def time; end", "def time; end", "def time; end", "def time; end", "def time; end", "def time; end", "def time; end", "def cstime=(*) end", "def timer; end", "def timer; end", "def timer; end", "def timer; end", "def benchmark...
[ "0.71059823", "0.6851641", "0.6851641", "0.6851641", "0.6851641", "0.6851641", "0.6851641", "0.6851641", "0.6851641", "0.6851641", "0.6844247", "0.6840545", "0.6840545", "0.6840545", "0.6840545", "0.67054397", "0.65353507", "0.65353507", "0.65353507", "0.65353507", "0.6535350...
0.0
-1
Process resource values from the request object
def prepare_runtime_hash(container, hashobj, &extra) newh = {} #Stella.ld "PREPARE HEADERS: #{headers}" hashobj.each_pair do |n,v| v = container.instance_eval &v if v.is_a?(Proc) if @opts[:'disable-templates'] v = container.parse_template v if String === v end ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def process(request); end", "def parse_input(params, resource); end", "def handle_request( * ) # :nodoc:\n\t\tself.log.debug \"[:restresources] handling request for REST resource.\"\n\t\tsuper\n\tend", "def resource_attributes\n request.format.html? ? params[user_resource_class.to_s.downcase] : params\n ...
[ "0.61185277", "0.5931407", "0.5655738", "0.5581549", "0.5570242", "0.5561857", "0.55460846", "0.54959506", "0.5492367", "0.54865307", "0.54839295", "0.548044", "0.547582", "0.5469723", "0.54516095", "0.5446639", "0.54419637", "0.54400975", "0.54144466", "0.5384715", "0.536389...
0.0
-1
Testplan URIs can be relative or absolute. Either one can contain variables in the form :varname, as in:
def build_request_uri(uri, params, container) newuri = uri.clone # don't modify uri template # We call uri.clone b/c we modify uri. uri.scan(/([:\$])([a-z_]+)/i) do |inst| val = find_replacement_value(inst[1], params, container, base_uri) Stella.ld "FOUND VAR: #{inst[0]}#{inst[1]} (v...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_plan_path\n return @test_plan_path if defined?(@test_plan_path)\n\n @test_plan_path = ENV[TESTPLAN_PATH].then do |path|\n next unless path\n next path if File.file?(path)\n\n json = File.join(path, \"testplan.json\")\n next json if File.exist?(json)\n\n ...
[ "0.58552873", "0.5637477", "0.56318396", "0.5560798", "0.5495207", "0.5421029", "0.54106635", "0.53641844", "0.5346184", "0.53343576", "0.5265828", "0.5264262", "0.524399", "0.5228402", "0.5216142", "0.51917624", "0.5177731", "0.51757795", "0.50525296", "0.5007556", "0.500663...
0.0
-1
Testplan URIs can contain variables in the form :varname. This method looks at the request parameters and then at the usecase's resource hash for a replacement value. If not found, returns nil.
def find_replacement_value(name, params, container, base_uri) value = nil #Stella.ld "REPLACE: #{name}" #Stella.ld "PARAMS: #{params.inspect}" #Stella.ld "IVARS: #{container.instance_variables}" if name.to_sym == :HOSTNAME && !base_uri.nil? value = base_uri.host elsif params...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def replace_memorized_variables(string_value, remove_quotes = true)\n # if JsonSpec variables are present, replace any potential references to them in the URL\n JsonSpec.memory.each do |doc|\n var_name = doc[0]\n # doc[1] is stored with quotes \".....\" so we have to remove them if told to (usually yes)\n ...
[ "0.5540186", "0.5502912", "0.5058255", "0.50364506", "0.5026612", "0.50215584", "0.50092673", "0.4949172", "0.48644707", "0.4846085", "0.48348454", "0.48147628", "0.4774941", "0.47608364", "0.47495544", "0.47412482", "0.4727562", "0.47153324", "0.47128966", "0.46970072", "0.4...
0.6310535
0
Find the appropriate response handler by executing the HTTP response status against the configured handlers. If several match, the first one is returned.
def find_response_handler(container, req) handler = nil req.response.each_pair do |regex,h| Stella.ld "HANDLER REGEX: #{regex.to_s} (#{container.status})" regex = /#{regex}/ unless regex.is_a? Regexp handler = h and break if container.status.to_s =~ regex end handler ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def find_error_handler(response_params)\n instance.error_handlers.reverse_each do |error_handler|\n result = error_handler.call(instance, response_params)\n return result unless result.nil?\n end\n nil\n end", "def handle_response http_request, http_response\n\t\traise...
[ "0.63553363", "0.60863197", "0.5836176", "0.5777731", "0.57183033", "0.56561697", "0.56283426", "0.5600141", "0.5513795", "0.5508042", "0.54977065", "0.5466845", "0.5456869", "0.54510236", "0.5415773", "0.53589517", "0.5357121", "0.5357121", "0.5329864", "0.53164846", "0.5312...
0.7023504
0
Delete a coupon Delete a coupon on the UltraCart account.
def delete_coupon(coupon_oid, opts = {}) delete_coupon_with_http_info(coupon_oid, opts) nil end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def delete_coupon\n self.class.delete_coupon(cart_id)\n end", "def delete_coupon_from_cart\n check_user_authorization\n delete_wrapper(\"/V1/carts/mine/coupons/\",\n default_headers)\n end", "def delete_coupon(id)\n url = \"#{api_resource}/#{id}/coupons\"...
[ "0.8776425", "0.8400167", "0.7837898", "0.7831491", "0.7588113", "0.73210853", "0.7301697", "0.72863376", "0.72696793", "0.72696793", "0.715201", "0.7151408", "0.71466535", "0.70882607", "0.7082361", "0.7082361", "0.7062345", "0.7059343", "0.70221114", "0.6981704", "0.6930141...
0.68279487
21
Delete a coupon Delete a coupon on the UltraCart account.
def delete_coupon_with_http_info(coupon_oid, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CouponApi.delete_coupon ...' end # verify the required parameter 'coupon_oid' is set if @api_client.config.client_side_validation && coupon_oid.nil? ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def delete_coupon\n self.class.delete_coupon(cart_id)\n end", "def delete_coupon_from_cart\n check_user_authorization\n delete_wrapper(\"/V1/carts/mine/coupons/\",\n default_headers)\n end", "def delete_coupon(id)\n url = \"#{api_resource}/#{id}/coupons\"...
[ "0.87759733", "0.84001637", "0.78379077", "0.78304553", "0.75889903", "0.73200786", "0.7301175", "0.72851425", "0.72684294", "0.72684294", "0.7150745", "0.71501446", "0.7145449", "0.7086763", "0.70810306", "0.70810306", "0.7060959", "0.7058008", "0.70207727", "0.69805086", "0...
0.5978223
46
Deletes multiple coupons Delete coupons on the UltraCart account.
def delete_coupons_by_code(coupon_delete_request, opts = {}) delete_coupons_by_code_with_http_info(coupon_delete_request, opts) nil end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def delete_coupon\n self.class.delete_coupon(cart_id)\n end", "def delete_coupon_from_cart\n check_user_authorization\n delete_wrapper(\"/V1/carts/mine/coupons/\",\n default_headers)\n end", "def delete_coupon(id)\n url = \"#{api_resource}/#{id}/coupons\"...
[ "0.6878955", "0.68517935", "0.6407721", "0.63048506", "0.61312723", "0.6076463", "0.5882291", "0.58681303", "0.5810626", "0.5790549", "0.5786262", "0.5714567", "0.5713262", "0.5689914", "0.5689914", "0.56618196", "0.5607041", "0.55938405", "0.55754524", "0.556916", "0.5565349...
0.5024436
94
Deletes multiple coupons Delete coupons on the UltraCart account.
def delete_coupons_by_code_with_http_info(coupon_delete_request, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CouponApi.delete_coupons_by_code ...' end # verify the required parameter 'coupon_delete_request' is set if @api_client.config.client_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def delete_coupon\n self.class.delete_coupon(cart_id)\n end", "def delete_coupon_from_cart\n check_user_authorization\n delete_wrapper(\"/V1/carts/mine/coupons/\",\n default_headers)\n end", "def delete_coupon(id)\n url = \"#{api_resource}/#{id}/coupons\"...
[ "0.68794334", "0.6851655", "0.64070207", "0.6304684", "0.6131627", "0.6075956", "0.588143", "0.5869185", "0.5812695", "0.5789912", "0.5786889", "0.5715308", "0.57128274", "0.568913", "0.568913", "0.56613225", "0.5608522", "0.5594366", "0.55748254", "0.55702984", "0.5564884", ...
0.5090698
80
Deletes multiple coupons Delete coupons on the UltraCart account.
def delete_coupons_by_oid(coupon_delete_request, opts = {}) delete_coupons_by_oid_with_http_info(coupon_delete_request, opts) nil end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def delete_coupon\n self.class.delete_coupon(cart_id)\n end", "def delete_coupon_from_cart\n check_user_authorization\n delete_wrapper(\"/V1/carts/mine/coupons/\",\n default_headers)\n end", "def delete_coupon(id)\n url = \"#{api_resource}/#{id}/coupons\"...
[ "0.68792117", "0.68512946", "0.6406231", "0.63034034", "0.6133191", "0.6074937", "0.58803934", "0.5869216", "0.58123773", "0.5788975", "0.5788435", "0.5715466", "0.5711679", "0.5688374", "0.5688374", "0.5660293", "0.56086963", "0.5594063", "0.5573948", "0.55695486", "0.556382...
0.50814074
81
Deletes multiple coupons Delete coupons on the UltraCart account.
def delete_coupons_by_oid_with_http_info(coupon_delete_request, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CouponApi.delete_coupons_by_oid ...' end # verify the required parameter 'coupon_delete_request' is set if @api_client.config.client_si...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def delete_coupon\n self.class.delete_coupon(cart_id)\n end", "def delete_coupon_from_cart\n check_user_authorization\n delete_wrapper(\"/V1/carts/mine/coupons/\",\n default_headers)\n end", "def delete_coupon(id)\n url = \"#{api_resource}/#{id}/coupons\"...
[ "0.68794334", "0.6851655", "0.64070207", "0.6304684", "0.6131627", "0.6075956", "0.588143", "0.5869185", "0.5812695", "0.5789912", "0.5786889", "0.5715308", "0.57128274", "0.568913", "0.568913", "0.56613225", "0.5608522", "0.5594366", "0.55748254", "0.55702984", "0.5564884", ...
0.5045572
89
Determines if a coupon merchant code already exists Determines if a coupon merchant code already exists.
def does_coupon_code_exist(merchant_code, opts = {}) data, _status_code, _headers = does_coupon_code_exist_with_http_info(merchant_code, opts) data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_coupon_code\n\n if(@coupon_code.nil?)\n @coupon_code,@existing_coupon_code_flag = VendorCoupons.generate_coupon_code(@vendor_id,@unique_id,@sub_category_id,@cc_mobile_number,@c_id)\n else\n @coupon_code = \"nocode\"\n end\n \n end", "def does_coupon_code_exist_with_http_info(merchan...
[ "0.6931727", "0.6728834", "0.65106976", "0.6415539", "0.64061785", "0.6352451", "0.6309139", "0.6102009", "0.6044773", "0.59786683", "0.59168303", "0.5891263", "0.57776684", "0.5774243", "0.57652354", "0.5726098", "0.5707681", "0.5659071", "0.56480825", "0.5645147", "0.562685...
0.6875371
1
Determines if a coupon merchant code already exists Determines if a coupon merchant code already exists.
def does_coupon_code_exist_with_http_info(merchant_code, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CouponApi.does_coupon_code_exist ...' end # verify the required parameter 'merchant_code' is set if @api_client.config.client_side_validation ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_coupon_code\n\n if(@coupon_code.nil?)\n @coupon_code,@existing_coupon_code_flag = VendorCoupons.generate_coupon_code(@vendor_id,@unique_id,@sub_category_id,@cc_mobile_number,@c_id)\n else\n @coupon_code = \"nocode\"\n end\n \n end", "def does_coupon_code_exist(merchant_code, opts = ...
[ "0.69316614", "0.6875821", "0.65099555", "0.6415194", "0.6405884", "0.635245", "0.6308788", "0.6101631", "0.6044421", "0.59789294", "0.591759", "0.5889726", "0.5779741", "0.5773697", "0.57645696", "0.5724531", "0.57069314", "0.5658646", "0.56481636", "0.5643977", "0.56265944"...
0.67283356
2
Generates one time codes for a coupon Generate one time codes for a coupon
def generate_coupon_codes(coupon_oid, coupon_codes_request, opts = {}) data, _status_code, _headers = generate_coupon_codes_with_http_info(coupon_oid, coupon_codes_request, opts) data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def generate_fab10_coupon_code\n if self.fab10_coupon_code.blank?\n self.fab10_coupon_code = loop do\n random_token = SecureRandom.urlsafe_base64[0..10].gsub(/[^0-9a-zA-Z]/i, '')\n break random_token unless User.exists?(fab10_coupon_code: random_token)\n end\n end\n\n if employees....
[ "0.74299574", "0.71550846", "0.6721069", "0.67064583", "0.66469395", "0.6633867", "0.65999216", "0.6559649", "0.64127135", "0.6391016", "0.63884085", "0.6387738", "0.63845056", "0.63404936", "0.6320823", "0.62951106", "0.62882006", "0.62864524", "0.62794125", "0.6269198", "0....
0.66015416
6
Generates one time codes for a coupon Generate one time codes for a coupon
def generate_coupon_codes_with_http_info(coupon_oid, coupon_codes_request, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CouponApi.generate_coupon_codes ...' end # verify the required parameter 'coupon_oid' is set if @api_client.config.client_si...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def generate_fab10_coupon_code\n if self.fab10_coupon_code.blank?\n self.fab10_coupon_code = loop do\n random_token = SecureRandom.urlsafe_base64[0..10].gsub(/[^0-9a-zA-Z]/i, '')\n break random_token unless User.exists?(fab10_coupon_code: random_token)\n end\n end\n\n if employees....
[ "0.74313104", "0.71560353", "0.6719361", "0.6707251", "0.66456217", "0.6632638", "0.66020024", "0.65990734", "0.65585726", "0.6414406", "0.6389369", "0.6389089", "0.63857335", "0.6383644", "0.6342021", "0.6322302", "0.62960106", "0.6287356", "0.62854034", "0.62782186", "0.626...
0.6034644
33
Generates one time codes by merchant code Generate one time codes by merchant code
def generate_one_time_codes_by_merchant_code(merchant_code, coupon_codes_request, opts = {}) data, _status_code, _headers = generate_one_time_codes_by_merchant_code_with_http_info(merchant_code, coupon_codes_request, opts) data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def generate_code\n loop do\n self.code = SecureRandom.urlsafe_base64(40)\n break if valid?\n end\n end", "def generate_unique_code\n begin\n new_code = generate_code(self.code_length)\n end until !active_code?(new_code)\n new_code\n end", ...
[ "0.7019364", "0.6980278", "0.6915952", "0.68249524", "0.67652017", "0.674338", "0.67338735", "0.65939426", "0.6542741", "0.64838195", "0.6463258", "0.63731277", "0.6325638", "0.6307443", "0.6304694", "0.6301856", "0.63015336", "0.62919486", "0.6223362", "0.62186307", "0.62136...
0.66991067
7
Generates one time codes by merchant code Generate one time codes by merchant code
def generate_one_time_codes_by_merchant_code_with_http_info(merchant_code, coupon_codes_request, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CouponApi.generate_one_time_codes_by_merchant_code ...' end # verify the required parameter 'merchant_code' ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def generate_code\n loop do\n self.code = SecureRandom.urlsafe_base64(40)\n break if valid?\n end\n end", "def generate_unique_code\n begin\n new_code = generate_code(self.code_length)\n end until !active_code?(new_code)\n new_code\n end", ...
[ "0.70191705", "0.6980413", "0.6915452", "0.6824148", "0.67653674", "0.6742486", "0.67336315", "0.66994", "0.6594389", "0.65423363", "0.64625484", "0.6373519", "0.6325587", "0.630776", "0.6304523", "0.6301762", "0.6300993", "0.62921876", "0.6221639", "0.62188643", "0.62125194"...
0.64839303
10
Retrieve auto apply rules and conditions Retrieve auto apply rules and conditions
def get_auto_apply(opts = {}) data, _status_code, _headers = get_auto_apply_with_http_info(opts) data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_rules\r\n @rules\r\n end", "def get_conditions\n @conditions\n end", "def rules\n @rules=get_endpoint('rule').keys\n end", "def rules_by_name; end", "def rules\n return @rules\n end", "def conditions\n @conditions\n end", "def condit...
[ "0.6303662", "0.6124265", "0.5986422", "0.59115756", "0.58603936", "0.58021", "0.58021", "0.5774161", "0.57428986", "0.57283217", "0.57283217", "0.57155716", "0.57155716", "0.57155716", "0.57155716", "0.57155716", "0.57155716", "0.57155716", "0.57051784", "0.56227595", "0.562...
0.5814423
5
Retrieve auto apply rules and conditions Retrieve auto apply rules and conditions
def get_auto_apply_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CouponApi.get_auto_apply ...' end # resource path local_var_path = '/coupon/auto_apply' # query parameters query_params = {} # header parameters ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_rules\r\n @rules\r\n end", "def get_conditions\n @conditions\n end", "def rules\n @rules=get_endpoint('rule').keys\n end", "def rules_by_name; end", "def rules\n return @rules\n end", "def get_auto_apply(opts = {})\n data, _status_code, _...
[ "0.6303571", "0.61224866", "0.5987578", "0.5913826", "0.58601743", "0.58140665", "0.58006907", "0.58006907", "0.5775458", "0.5743928", "0.5726565", "0.5726565", "0.57185525", "0.57185525", "0.57185525", "0.57185525", "0.57185525", "0.57185525", "0.57185525", "0.57056564", "0....
0.5598363
25
Retrieve a coupon Retrieves a single coupon using the specified coupon profile oid.
def get_coupon(coupon_oid, opts = {}) data, _status_code, _headers = get_coupon_with_http_info(coupon_oid, opts) data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def show\n @coupon = Coupon.find(params[:id])\n end", "def find(id)\n response = client.get(\"discount_coupons/#{id}\")\n if response.success?\n Coupon.new(response.body, client: client)\n end\n end", "def find(id)\n response = client.get(\"discount_coupons/#...
[ "0.6584468", "0.65398175", "0.63802147", "0.63069344", "0.62741107", "0.6236593", "0.6190354", "0.61559224", "0.6154642", "0.6122818", "0.612238", "0.612238", "0.612238", "0.612238", "0.612238", "0.612238", "0.612238", "0.612238", "0.6120537", "0.6088723", "0.6076897", "0.5...
0.7309124
0
Retrieve a coupon Retrieves a single coupon using the specified coupon profile oid.
def get_coupon_with_http_info(coupon_oid, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CouponApi.get_coupon ...' end # verify the required parameter 'coupon_oid' is set if @api_client.config.client_side_validation && coupon_oid.nil? fai...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_coupon(coupon_oid, opts = {})\n data, _status_code, _headers = get_coupon_with_http_info(coupon_oid, opts)\n data\n end", "def show\n @coupon = Coupon.find(params[:id])\n end", "def find(id)\n response = client.get(\"discount_coupons/#{id}\")\n if response.success?\...
[ "0.7308592", "0.65827876", "0.6537238", "0.63771653", "0.62739927", "0.623542", "0.61877453", "0.6153488", "0.6151684", "0.6120501", "0.6119804", "0.6119804", "0.6119804", "0.6119804", "0.6119804", "0.6119804", "0.6119804", "0.6119804", "0.6117963", "0.6086638", "0.60744596",...
0.6306476
4
Retrieve a coupon by merchant code Retrieves a single coupon using the specified merchant code.
def get_coupon_by_merchant_code(merchant_code, opts = {}) data, _status_code, _headers = get_coupon_by_merchant_code_with_http_info(merchant_code, opts) data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get(code)\n\t\t\tkparams = {}\n\t\t\tclient.add_param(kparams, 'code', code)\n\t\t\tclient.queue_service_action_call('coupon', 'get', 'KalturaCoupon', kparams)\n\t\t\tif (client.is_multirequest)\n\t\t\t\treturn nil\n\t\t\tend\n\t\t\treturn client.do_queue()\n\t\tend", "def get_coupon_by_merchant_code_with_ht...
[ "0.75940794", "0.69356894", "0.68768543", "0.6310243", "0.6268236", "0.6086977", "0.6052334", "0.5994258", "0.59923464", "0.5902861", "0.5831687", "0.58263916", "0.58104044", "0.5786703", "0.5744057", "0.5731109", "0.5656597", "0.5619416", "0.5523339", "0.5500834", "0.5497214...
0.7364848
1
Retrieve a coupon by merchant code Retrieves a single coupon using the specified merchant code.
def get_coupon_by_merchant_code_with_http_info(merchant_code, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CouponApi.get_coupon_by_merchant_code ...' end # verify the required parameter 'merchant_code' is set if @api_client.config.client_side_v...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get(code)\n\t\t\tkparams = {}\n\t\t\tclient.add_param(kparams, 'code', code)\n\t\t\tclient.queue_service_action_call('coupon', 'get', 'KalturaCoupon', kparams)\n\t\t\tif (client.is_multirequest)\n\t\t\t\treturn nil\n\t\t\tend\n\t\t\treturn client.do_queue()\n\t\tend", "def get_coupon_by_merchant_code(merchan...
[ "0.759389", "0.7364135", "0.6874787", "0.6307993", "0.6266837", "0.60888183", "0.60510254", "0.5992412", "0.59903574", "0.5904098", "0.5831233", "0.5825176", "0.58087885", "0.57849634", "0.5745103", "0.57327485", "0.56540024", "0.56195134", "0.55260164", "0.549811", "0.549720...
0.6935205
2
Retrieve coupons Retrieves coupons for this account. If no parameters are specified, all coupons will be returned. You will need to make multiple API calls in order to retrieve the entire result set since this API performs result set pagination.
def get_coupons(opts = {}) data, _status_code, _headers = get_coupons_with_http_info(opts) data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def index\n @coupons = Coupon.all\n end", "def index\n @coupons = Coupon.all\n end", "def index\n @coupons = Coupon.all\n end", "def index\n @coupons = Coupon.all\n end", "def index\n\t\t@coupons= Coupon.all\n\tend", "def get_coupons_with_http_info(opts = {})\n if @api_client.config....
[ "0.5776483", "0.5776483", "0.5776483", "0.5776483", "0.57664454", "0.5676974", "0.55611026", "0.5460761", "0.5453508", "0.54142666", "0.5411678", "0.5379726", "0.535195", "0.53460443", "0.5343135", "0.53278744", "0.53270876", "0.52979517", "0.5276207", "0.5243525", "0.517364"...
0.7483971
0
Retrieve coupons Retrieves coupons for this account. If no parameters are specified, all coupons will be returned. You will need to make multiple API calls in order to retrieve the entire result set since this API performs result set pagination.
def get_coupons_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CouponApi.get_coupons ...' end # resource path local_var_path = '/coupon/coupons' # query parameters query_params = {} query_params[:'merchant_code']...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_coupons(opts = {})\n data, _status_code, _headers = get_coupons_with_http_info(opts)\n data\n end", "def index\n @coupons = Coupon.all\n end", "def index\n @coupons = Coupon.all\n end", "def index\n @coupons = Coupon.all\n end", "def index\n @coupons = Coupon.all\n end"...
[ "0.7484945", "0.5777644", "0.5777644", "0.5777644", "0.5777644", "0.5767822", "0.55622727", "0.54618627", "0.5454064", "0.5415304", "0.54119986", "0.53781825", "0.53524846", "0.53467816", "0.534468", "0.53298235", "0.53272015", "0.52993053", "0.52771634", "0.5243842", "0.5175...
0.5677406
6
Retrieve coupons by query Retrieves coupons from the account. If no parameters are specified, all coupons will be returned. You will need to make multiple API calls in order to retrieve the entire result set since this API performs result set pagination.
def get_coupons_by_query(coupon_query, opts = {}) data, _status_code, _headers = get_coupons_by_query_with_http_info(coupon_query, opts) data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_coupons(opts = {})\n data, _status_code, _headers = get_coupons_with_http_info(opts)\n data\n end", "def get_coupons_by_query_with_http_info(coupon_query, opts = {})\n if @api_client.config.debugging\n @api_client.config.logger.debug 'Calling API: CouponApi.get_coupons_by_query ....
[ "0.6818403", "0.6294356", "0.6154168", "0.5924062", "0.5670311", "0.5668917", "0.56628656", "0.5639433", "0.5639433", "0.5639433", "0.5639433", "0.5594796", "0.5579979", "0.5504532", "0.54918224", "0.5357564", "0.5351868", "0.5341233", "0.53362715", "0.5322908", "0.529412", ...
0.67591286
1
Retrieve coupons by query Retrieves coupons from the account. If no parameters are specified, all coupons will be returned. You will need to make multiple API calls in order to retrieve the entire result set since this API performs result set pagination.
def get_coupons_by_query_with_http_info(coupon_query, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CouponApi.get_coupons_by_query ...' end # verify the required parameter 'coupon_query' is set if @api_client.config.client_side_validation && cou...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_coupons(opts = {})\n data, _status_code, _headers = get_coupons_with_http_info(opts)\n data\n end", "def get_coupons_by_query(coupon_query, opts = {})\n data, _status_code, _headers = get_coupons_by_query_with_http_info(coupon_query, opts)\n data\n end", "def get_coupons_with_...
[ "0.6819058", "0.6760223", "0.61565614", "0.5925167", "0.5671461", "0.56709397", "0.56635004", "0.56401974", "0.56401974", "0.56401974", "0.56401974", "0.5595536", "0.5579462", "0.55054206", "0.54926467", "0.53568214", "0.53514147", "0.5342318", "0.5338335", "0.53222156", "0.5...
0.62960064
2
Retrieve values needed for a coupon editor Retrieve values needed for a coupon editor
def get_editor_values(opts = {}) data, _status_code, _headers = get_editor_values_with_http_info(opts) data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_editor_values_with_http_info(opts = {})\n if @api_client.config.debugging\n @api_client.config.logger.debug 'Calling API: CouponApi.get_editor_values ...'\n end\n # resource path\n local_var_path = '/coupon/editor_values'\n\n # query parameters\n query_params = {}\n\n ...
[ "0.60706973", "0.5970943", "0.59065586", "0.59065586", "0.58427393", "0.5734057", "0.5683998", "0.5642976", "0.5625952", "0.5578517", "0.55408424", "0.5497509", "0.5489233", "0.5475763", "0.54716784", "0.5464492", "0.5462568", "0.5399364", "0.539468", "0.5390472", "0.53877586...
0.0
-1
Retrieve values needed for a coupon editor Retrieve values needed for a coupon editor
def get_editor_values_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CouponApi.get_editor_values ...' end # resource path local_var_path = '/coupon/editor_values' # query parameters query_params = {} # header pa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def show_coupon\n @gift_card_code = GiftCardCode.find(params[:id])\n redirect_unless_owner_or_admin(@gift_card_code)\n \n @gift_card = @gift_card_code.gift_card\n @dresses_from_price_range = @gift_card.supplier_account.dresses.where('price >= ? and price <= ?', @gift_card.min_price, @gift_card.max_p...
[ "0.59711874", "0.59064317", "0.59064317", "0.5841874", "0.57328296", "0.56832933", "0.5643509", "0.56263924", "0.5577592", "0.55414015", "0.5497429", "0.5489392", "0.54767364", "0.54697454", "0.5464098", "0.54627484", "0.539869", "0.53926384", "0.5389882", "0.5387252", "0.535...
0.6071401
0
Insert a coupon Insert a coupon on the UltraCart account.
def insert_coupon(coupon, opts = {}) data, _status_code, _headers = insert_coupon_with_http_info(coupon, opts) data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def add_coupon(coupon)\n self.class.add_coupon(cart_id, coupon)\n end", "def insert_coupon\n coupon = Coupon.create!(params[:coupon])\n render :text => coupon.code\n rescue => e\n render :text => \"ERROR: #{e.to_s}\"\n end", "def apply_coupon(coupon)\n assert_customer_exists\n\n cu...
[ "0.78921914", "0.7675485", "0.747728", "0.7385436", "0.7202869", "0.7172155", "0.7159344", "0.7151096", "0.7110743", "0.68069816", "0.6787432", "0.6777548", "0.67333436", "0.6714178", "0.6713461", "0.6713461", "0.6713461", "0.6713461", "0.6713461", "0.6713461", "0.6713461", ...
0.8106612
0
Insert a coupon Insert a coupon on the UltraCart account.
def insert_coupon_with_http_info(coupon, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CouponApi.insert_coupon ...' end # verify the required parameter 'coupon' is set if @api_client.config.client_side_validation && coupon.nil? fail Argu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def insert_coupon(coupon, opts = {})\n data, _status_code, _headers = insert_coupon_with_http_info(coupon, opts)\n data\n end", "def add_coupon(coupon)\n self.class.add_coupon(cart_id, coupon)\n end", "def insert_coupon\n coupon = Coupon.create!(params[:coupon])\n render :text => cou...
[ "0.8107876", "0.78932315", "0.7676256", "0.74785215", "0.7386008", "0.72040015", "0.71730894", "0.7160697", "0.71524704", "0.711192", "0.68082625", "0.67889225", "0.67787987", "0.67349184", "0.67153966", "0.6714681", "0.6714681", "0.6714681", "0.6714681", "0.6714681", "0.6714...
0.61875415
49
Insert multiple coupons Insert multiple coupon on the UltraCart account.
def insert_coupons(coupons_request, opts = {}) data, _status_code, _headers = insert_coupons_with_http_info(coupons_request, opts) data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create_coupons!()\n deal = Deal.find(self.deal.id)\n for i in (1..self.quantity)\n dc = DealCode.find(:first, :conditions => [\"deal_id = ? AND reserved = ? AND incentive = ?\", deal.id, false, false], :lock => true)\n if dc\n Coupon.create!(:user_id => self.user.id, :deal_id => deal.id,...
[ "0.69252187", "0.68212354", "0.6788695", "0.6690374", "0.6666051", "0.64845574", "0.6333342", "0.63139915", "0.6243877", "0.62075907", "0.61809206", "0.6167747", "0.6163569", "0.6138547", "0.61017007", "0.60814416", "0.589785", "0.5860117", "0.5819891", "0.58134514", "0.58044...
0.6761219
3
Insert multiple coupons Insert multiple coupon on the UltraCart account.
def insert_coupons_with_http_info(coupons_request, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CouponApi.insert_coupons ...' end # verify the required parameter 'coupons_request' is set if @api_client.config.client_side_validation && coupons_r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create_coupons!()\n deal = Deal.find(self.deal.id)\n for i in (1..self.quantity)\n dc = DealCode.find(:first, :conditions => [\"deal_id = ? AND reserved = ? AND incentive = ?\", deal.id, false, false], :lock => true)\n if dc\n Coupon.create!(:user_id => self.user.id, :deal_id => deal.id,...
[ "0.6924682", "0.68206096", "0.6788262", "0.67614084", "0.6689231", "0.6665607", "0.648441", "0.6333011", "0.6312795", "0.6244097", "0.6208005", "0.6181003", "0.61675924", "0.61637306", "0.6138699", "0.6101836", "0.6080719", "0.5898379", "0.5860481", "0.581976", "0.58122814", ...
0.562356
39
Searches for items to display within a coupon editor and assign to coupons Searches for items to display within a coupon editor and assign to coupons
def search_items(opts = {}) data, _status_code, _headers = search_items_with_http_info(opts) data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def apply_coupons(cart, coupons)\n coupons.each do |cpn|\n #set variable equal to the name of the discounted item for cleaner code\n discounted_item = cpn[:item]\n #if the item exists in the cart...\n if cart[discounted_item] != nil\n #if the cart has the minimum count of items for a coupon to be...
[ "0.6635459", "0.66251814", "0.65553856", "0.64523906", "0.64148694", "0.6369397", "0.63632625", "0.6300403", "0.6279742", "0.6219738", "0.61997825", "0.61984575", "0.618357", "0.61438894", "0.6096232", "0.60751194", "0.6000706", "0.596521", "0.59046197", "0.588288", "0.586131...
0.0
-1
Searches for items to display within a coupon editor and assign to coupons Searches for items to display within a coupon editor and assign to coupons
def search_items_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CouponApi.search_items ...' end # resource path local_var_path = '/coupon/searchItems' # query parameters query_params = {} query_params[:'s'] = opt...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def apply_coupons(cart, coupons)\n coupons.each do |cpn|\n #set variable equal to the name of the discounted item for cleaner code\n discounted_item = cpn[:item]\n #if the item exists in the cart...\n if cart[discounted_item] != nil\n #if the cart has the minimum count of items for a coupon to be...
[ "0.6634959", "0.6625063", "0.65551746", "0.64524895", "0.6414889", "0.63688815", "0.63630915", "0.6300123", "0.62796664", "0.6219022", "0.6199355", "0.61978614", "0.61829394", "0.61432105", "0.6096042", "0.60744786", "0.59990436", "0.5964936", "0.5904649", "0.58809257", "0.58...
0.0
-1
Update auto apply rules and conditions Update auto apply rules and conditions
def update_auto_apply(conditions, opts = {}) update_auto_apply_with_http_info(conditions, opts) nil end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update_rules\n create_update_rules\n end", "def update!(**args)\n @invalid_rules = args[:invalid_rules] if args.key?(:invalid_rules)\n @matched_rules = args[:matched_rules] if args.key?(:matched_rules)\n @triggered_rules = args[:triggered_rules] if args.key?(:triggered_rule...
[ "0.74747866", "0.6950936", "0.68703336", "0.68703336", "0.67330873", "0.6699213", "0.6697383", "0.6670198", "0.6446784", "0.64092904", "0.6387031", "0.63576394", "0.63188857", "0.6316179", "0.6308491", "0.62584484", "0.6217068", "0.6215028", "0.62132585", "0.6199695", "0.6113...
0.66482717
8
Update auto apply rules and conditions Update auto apply rules and conditions
def update_auto_apply_with_http_info(conditions, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CouponApi.update_auto_apply ...' end # verify the required parameter 'conditions' is set if @api_client.config.client_side_validation && conditions.ni...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update_rules\n create_update_rules\n end", "def update!(**args)\n @invalid_rules = args[:invalid_rules] if args.key?(:invalid_rules)\n @matched_rules = args[:matched_rules] if args.key?(:matched_rules)\n @triggered_rules = args[:triggered_rules] if args.key?(:triggered_rule...
[ "0.74747866", "0.6950936", "0.68703336", "0.68703336", "0.67330873", "0.6699213", "0.6697383", "0.6670198", "0.66482717", "0.6446784", "0.64092904", "0.6387031", "0.63576394", "0.63188857", "0.6316179", "0.6308491", "0.62584484", "0.6217068", "0.6215028", "0.62132585", "0.619...
0.0
-1
Update a coupon Update a coupon on the UltraCart account.
def update_coupon(coupon, coupon_oid, opts = {}) data, _status_code, _headers = update_coupon_with_http_info(coupon, coupon_oid, opts) data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update_order!\n order.update(\n coupon_discount: coupon_discount,\n coupon_applied_at: Time.now,\n coupon_id: coupon.id\n )\n end", "def apply_coupon(coupon)\n assert_customer_exists\n\n customer = as_stripe_customer\n\n customer.coupon = coupon\n\n custo...
[ "0.7835947", "0.77639914", "0.7638484", "0.7617964", "0.7617964", "0.7587025", "0.75673765", "0.7528111", "0.74490625", "0.74265826", "0.7393584", "0.7391748", "0.7351388", "0.73419803", "0.7340489", "0.7340489", "0.7340489", "0.7340489", "0.7340489", "0.7340489", "0.7340489"...
0.7239175
24
Update a coupon Update a coupon on the UltraCart account.
def update_coupon_with_http_info(coupon, coupon_oid, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CouponApi.update_coupon ...' end # verify the required parameter 'coupon' is set if @api_client.config.client_side_validation && coupon.nil? ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update_order!\n order.update(\n coupon_discount: coupon_discount,\n coupon_applied_at: Time.now,\n coupon_id: coupon.id\n )\n end", "def apply_coupon(coupon)\n assert_customer_exists\n\n customer = as_stripe_customer\n\n customer.coupon = coupon\n\n custo...
[ "0.7836438", "0.77625453", "0.7637871", "0.7617411", "0.7617411", "0.75864744", "0.7567185", "0.7527532", "0.74497664", "0.74258065", "0.7393127", "0.73895484", "0.73506504", "0.7339664", "0.7338184", "0.7338184", "0.7338184", "0.7338184", "0.7338184", "0.7338184", "0.7338184...
0.61295694
77
Update multiple coupons Update multiple coupon on the UltraCart account.
def update_coupons(coupons_request, opts = {}) data, _status_code, _headers = update_coupons_with_http_info(coupons_request, opts) data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def apply_coupons(cart:[], coupons:[])\n coupons.each { |coupon| apply_coupon(coupon, cart) if valid_coupon?(coupon, cart) }\n cart\nend", "def apply_coupons(cart, coupons)\n # Consult README for inputs and outputs\n #\n # REMEMBER: This method **should** update cart\nend", "def apply_coupons(cart, coupon...
[ "0.6975718", "0.67312133", "0.6714343", "0.6671701", "0.6628144", "0.66100925", "0.66093165", "0.6515132", "0.64477026", "0.641879", "0.63561004", "0.6321467", "0.63016444", "0.62774336", "0.6277365", "0.6264439", "0.6231801", "0.6197379", "0.6181881", "0.61395013", "0.611993...
0.6406317
10
Update multiple coupons Update multiple coupon on the UltraCart account.
def update_coupons_with_http_info(coupons_request, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CouponApi.update_coupons ...' end # verify the required parameter 'coupons_request' is set if @api_client.config.client_side_validation && coupons_r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def apply_coupons(cart:[], coupons:[])\n coupons.each { |coupon| apply_coupon(coupon, cart) if valid_coupon?(coupon, cart) }\n cart\nend", "def apply_coupons(cart, coupons)\n # Consult README for inputs and outputs\n #\n # REMEMBER: This method **should** update cart\nend", "def apply_coupons(cart, coupon...
[ "0.6975556", "0.6728782", "0.6713777", "0.6669918", "0.66280836", "0.66098285", "0.66087115", "0.6515229", "0.64472365", "0.6419039", "0.64058805", "0.6356833", "0.63211536", "0.63019747", "0.6277743", "0.6276983", "0.62642676", "0.6232438", "0.61970794", "0.6181263", "0.6139...
0.58734185
53
Upload onetime codes for a coupon Upload onetime codes for a coupon
def upload_coupon_codes(coupon_oid, upload_coupon_codes_request, opts = {}) data, _status_code, _headers = upload_coupon_codes_with_http_info(coupon_oid, upload_coupon_codes_request, opts) data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update_coupon!\n coupon.update(last_applied_at: Time.now)\n end", "def set_coupon_code\n\n if(@coupon_code.nil?)\n @coupon_code,@existing_coupon_code_flag = VendorCoupons.generate_coupon_code(@vendor_id,@unique_id,@sub_category_id,@cc_mobile_number,@c_id)\n else\n @coupon_code = \"nocode\"...
[ "0.6113217", "0.6028236", "0.5985235", "0.59590524", "0.59112024", "0.58930326", "0.5795664", "0.5777628", "0.57404625", "0.5687364", "0.5671048", "0.5653511", "0.56014067", "0.55871737", "0.5585066", "0.557924", "0.5571646", "0.5553916", "0.5551405", "0.5546294", "0.55342716...
0.5398809
31
Upload onetime codes for a coupon Upload onetime codes for a coupon
def upload_coupon_codes_with_http_info(coupon_oid, upload_coupon_codes_request, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CouponApi.upload_coupon_codes ...' end # verify the required parameter 'coupon_oid' is set if @api_client.config.client...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update_coupon!\n coupon.update(last_applied_at: Time.now)\n end", "def set_coupon_code\n\n if(@coupon_code.nil?)\n @coupon_code,@existing_coupon_code_flag = VendorCoupons.generate_coupon_code(@vendor_id,@unique_id,@sub_category_id,@cc_mobile_number,@c_id)\n else\n @coupon_code = \"nocode\"...
[ "0.61144114", "0.6031801", "0.59862185", "0.5961605", "0.5912429", "0.58948255", "0.5798437", "0.57795054", "0.5740949", "0.5688963", "0.56727064", "0.565412", "0.56040573", "0.5588105", "0.5587897", "0.55746", "0.5555246", "0.55528885", "0.554754", "0.5536541", "0.55100006",...
0.5580608
15
The the total number of games played in this pairing.
def total wins + losses end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_total_games_played\n\t\treturn games.size\n\tend", "def get_total_games_played\n return games.size\n end", "def games_played\n games.size\n end", "def games_played\n games.size\n end", "def games_played\n self.results.to_a.count\n end", "def wins\n wins = 0\n self.teams.each...
[ "0.84763974", "0.83771026", "0.7876206", "0.7876206", "0.7436955", "0.7385418", "0.71506155", "0.7056866", "0.7036201", "0.70343375", "0.6982582", "0.6982582", "0.69136226", "0.69078517", "0.6838047", "0.6838047", "0.68374234", "0.68211687", "0.6809983", "0.6775208", "0.67487...
0.0
-1
Record the change in the versus state based on the result of a match.
def process_result(game) if game.red == @player as_red my_score = game.redscore opp_score = game.bluescore my_rating_diff = game.red_rating_diff opp_rating_diff = game.blue_rating_diff else as_blue my_score = game.bluescore opp_score = game.redscore my_ratin...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def on_match ai, bi\n if @pending\n @diffs << @pending\n @pending = nil\n end\n end", "def commit_match(match)\n\t\tif match.class == Array\n\t\t\tp1 = Player[:in_tournament_id => match[0], :tournament_id => self.id]\n\t\t\tp2 = Player[:in_tournament_id => match[1], :tourname...
[ "0.6542138", "0.60175455", "0.5927967", "0.590222", "0.57392925", "0.5620016", "0.5613032", "0.5555017", "0.5522632", "0.55176276", "0.55092764", "0.5464877", "0.54575574", "0.5449919", "0.5422813", "0.5418358", "0.53964216", "0.53883624", "0.5370066", "0.5370066", "0.5344709...
0.0
-1
Count a victory for the player.
def victory @wins += 1 end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def victorious\n @victories ||= 0\n @victories += 1\n self\n end", "def track_victory(winnerofturn) #algorythmic\n if winnerofturn == @Player1\n @win_counter[\"P1\"] += 1\n elsif winnerofturn == @Player2\n @win_counter[\"P2\"] += 1\n end\n end", "def victory_loss(victory)\n if ...
[ "0.7223816", "0.70533186", "0.64204544", "0.6374676", "0.63686484", "0.6320155", "0.6248528", "0.62467796", "0.6243088", "0.6238614", "0.6197055", "0.6135291", "0.6119857", "0.60874265", "0.60395634", "0.60304195", "0.6026911", "0.60201305", "0.6007638", "0.5989622", "0.59811...
0.7576097
0
Count a defeat for the player.
def defeat @losses += 1 end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def counter_attack\n Attack.new(\n :fight => self,\n :attacker => opponent,\n :defender => player\n )\n end", "def eat\n inventory[:fish] -= @daily_appetite = 10\n\n if inventory[:fish] < 0\n @alive = false\n inventory[:fish] = 0\n end\n end", "def eat(food)\n if fo...
[ "0.6754782", "0.6531419", "0.63231945", "0.6296271", "0.6217228", "0.61985517", "0.6145641", "0.60987407", "0.6096991", "0.60021436", "0.59989774", "0.59965026", "0.5968726", "0.5952083", "0.5952083", "0.59519017", "0.59267914", "0.5900829", "0.5900345", "0.5897422", "0.58880...
0.6670028
1
Count that the player was red.
def as_red @red += 1 end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def count_evaluate(player) # true for white player, false for black\n if player\n RState.hamming(@white_positions) - RState.hamming(@black_positions)\n else\n RState.hamming(@black_positions) - RState.hamming(@white_positions)\n end\n end", "def count_pieces(color)\n color == \"red\" ? w...
[ "0.69828105", "0.6913096", "0.66948515", "0.6514962", "0.6345894", "0.63299656", "0.6284915", "0.62258935", "0.6185307", "0.6185011", "0.617736", "0.61670274", "0.6144349", "0.6117838", "0.6107543", "0.61034316", "0.60959816", "0.60630107", "0.6062582", "0.6054748", "0.604849...
0.7269906
0
Count that the player was blue.
def as_blue @blue += 1 end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def count_evaluate(player) # true for white player, false for black\n if player\n RState.hamming(@white_positions) - RState.hamming(@black_positions)\n else\n RState.hamming(@black_positions) - RState.hamming(@white_positions)\n end\n end", "def blue_screen_count\n return @blue...
[ "0.66487294", "0.6625668", "0.6601176", "0.6521699", "0.6399271", "0.6354068", "0.6199031", "0.61919665", "0.6191692", "0.61634505", "0.61604935", "0.6041543", "0.6016026", "0.6012246", "0.59140813", "0.59129137", "0.5902149", "0.5880722", "0.58737844", "0.5846536", "0.58458"...
0.72718847
0
Create or update a tier1 interface If an interface with the interfaceid is not already present, create a new interface. If it already exists, replace the interface with this object.
def create_or_replace_tier1_interface(tier_1_id, locale_services_id, interface_id, tier1_interface, opts = {}) data, _status_code, _headers = create_or_replace_tier1_interface_with_http_info(tier_1_id, locale_services_id, interface_id, tier1_interface, opts) data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create_or_replace_tier1_interface_0(tier_1_id, locale_services_id, interface_id, tier1_interface, opts = {})\n data, _status_code, _headers = create_or_replace_tier1_interface_0_with_http_info(tier_1_id, locale_services_id, interface_id, tier1_interface, opts)\n data\n end", "def create_or_repla...
[ "0.7653054", "0.7308661", "0.71191716", "0.69620633", "0.6923646", "0.64151585", "0.63703513", "0.63597775", "0.6306843", "0.6051613", "0.60417056", "0.5987019", "0.597394", "0.59631133", "0.589455", "0.5893903", "0.5863358", "0.580861", "0.57662386", "0.5720742", "0.571236",...
0.7821272
0
Create or update a tier1 interface If an interface with the interfaceid is not already present, create a new interface. If it already exists, replace the interface with this object.
def create_or_replace_tier1_interface_with_http_info(tier_1_id, locale_services_id, interface_id, tier1_interface, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PolicyNetworkingConnectivityTier1GatewaysInterfacesInterfacesApi.create_or_replace_tier1_interface ......
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create_or_replace_tier1_interface(tier_1_id, locale_services_id, interface_id, tier1_interface, opts = {})\n data, _status_code, _headers = create_or_replace_tier1_interface_with_http_info(tier_1_id, locale_services_id, interface_id, tier1_interface, opts)\n data\n end", "def create_or_replace_t...
[ "0.78212", "0.7653047", "0.71181893", "0.6961544", "0.6923195", "0.6413937", "0.63692975", "0.6359432", "0.63065773", "0.60503834", "0.604056", "0.5985864", "0.5972869", "0.59619284", "0.5893992", "0.58934784", "0.58631825", "0.58087444", "0.5764899", "0.5722137", "0.5711554"...
0.73076546
2
Create or update a tier1 interface If an interface with the interfaceid is not already present, create a new interface. If it already exists, replace the interface with this object.
def create_or_replace_tier1_interface_0(tier_1_id, locale_services_id, interface_id, tier1_interface, opts = {}) data, _status_code, _headers = create_or_replace_tier1_interface_0_with_http_info(tier_1_id, locale_services_id, interface_id, tier1_interface, opts) data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create_or_replace_tier1_interface(tier_1_id, locale_services_id, interface_id, tier1_interface, opts = {})\n data, _status_code, _headers = create_or_replace_tier1_interface_with_http_info(tier_1_id, locale_services_id, interface_id, tier1_interface, opts)\n data\n end", "def create_or_replace_t...
[ "0.78210133", "0.7307843", "0.7118333", "0.6961668", "0.69232553", "0.6414259", "0.63694966", "0.63594466", "0.6306631", "0.60506165", "0.604068", "0.59863114", "0.5972997", "0.5962197", "0.5893843", "0.58935463", "0.58634806", "0.58082885", "0.5764557", "0.57219434", "0.5711...
0.7652783
1
Create or update a tier1 interface If an interface with the interfaceid is not already present, create a new interface. If it already exists, replace the interface with this object.
def create_or_replace_tier1_interface_0_with_http_info(tier_1_id, locale_services_id, interface_id, tier1_interface, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PolicyNetworkingConnectivityTier1GatewaysInterfacesInterfacesApi.create_or_replace_tier1_interface_0...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create_or_replace_tier1_interface(tier_1_id, locale_services_id, interface_id, tier1_interface, opts = {})\n data, _status_code, _headers = create_or_replace_tier1_interface_with_http_info(tier_1_id, locale_services_id, interface_id, tier1_interface, opts)\n data\n end", "def create_or_replace_t...
[ "0.7821438", "0.76526654", "0.73081714", "0.6962147", "0.6923191", "0.6414527", "0.63696146", "0.63596267", "0.6307312", "0.6050271", "0.6040173", "0.59861094", "0.59731376", "0.59625065", "0.5893595", "0.58934057", "0.58638555", "0.58078986", "0.57665193", "0.5720181", "0.57...
0.71184504
3
Create a Tier1 service interface If a Tier1 service interface with the interfaceid is not already present, create a new Tier1 service interface. Modification of Tier 1 service interface is not allowed.
def create_tier1_service_interface(tier_1_id, locale_service_id, interface_id, service_interface, opts = {}) data, _status_code, _headers = create_tier1_service_interface_with_http_info(tier_1_id, locale_service_id, interface_id, service_interface, opts) data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create_or_replace_tier1_interface_0(tier_1_id, locale_services_id, interface_id, tier1_interface, opts = {})\n data, _status_code, _headers = create_or_replace_tier1_interface_0_with_http_info(tier_1_id, locale_services_id, interface_id, tier1_interface, opts)\n data\n end", "def create_or_repla...
[ "0.7187388", "0.7186023", "0.7109527", "0.70032847", "0.6847797", "0.6830045", "0.6741113", "0.6436129", "0.63662624", "0.6351134", "0.62840664", "0.6211076", "0.62026024", "0.6179863", "0.6142893", "0.6029048", "0.59189594", "0.5913242", "0.588382", "0.5881795", "0.58750993"...
0.68726027
4
Create a Tier1 service interface If a Tier1 service interface with the interfaceid is not already present, create a new Tier1 service interface. Modification of Tier 1 service interface is not allowed.
def create_tier1_service_interface_with_http_info(tier_1_id, locale_service_id, interface_id, service_interface, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PolicyNetworkingConnectivityTier1GatewaysInterfacesInterfacesApi.create_tier1_service_interface ...' ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create_or_replace_tier1_interface_0(tier_1_id, locale_services_id, interface_id, tier1_interface, opts = {})\n data, _status_code, _headers = create_or_replace_tier1_interface_0_with_http_info(tier_1_id, locale_services_id, interface_id, tier1_interface, opts)\n data\n end", "def create_or_repla...
[ "0.71869934", "0.7185416", "0.7109087", "0.7002957", "0.68726134", "0.6829968", "0.6741223", "0.6435231", "0.63654286", "0.63499856", "0.6283021", "0.6210389", "0.6201956", "0.6179208", "0.6142276", "0.60295177", "0.5919459", "0.59136254", "0.5883076", "0.58821625", "0.587432...
0.684767
5
Create a Tier1 service interface If a Tier1 service interface with the interfaceid is not already present, create a new Tier1 service interface. Modification of Tier 1 service interface is not allowed.
def create_tier1_service_interface_0(tier_1_id, locale_service_id, interface_id, service_interface, opts = {}) data, _status_code, _headers = create_tier1_service_interface_0_with_http_info(tier_1_id, locale_service_id, interface_id, service_interface, opts) data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create_or_replace_tier1_interface_0(tier_1_id, locale_services_id, interface_id, tier1_interface, opts = {})\n data, _status_code, _headers = create_or_replace_tier1_interface_0_with_http_info(tier_1_id, locale_services_id, interface_id, tier1_interface, opts)\n data\n end", "def create_or_repla...
[ "0.7187352", "0.71859705", "0.7109572", "0.70033526", "0.6872429", "0.68478817", "0.683012", "0.6435779", "0.6366269", "0.63507485", "0.62840986", "0.62110513", "0.6202546", "0.61801183", "0.6143074", "0.60279304", "0.5918892", "0.5912204", "0.58836126", "0.5880759", "0.58748...
0.67408645
7
Create a Tier1 service interface If a Tier1 service interface with the interfaceid is not already present, create a new Tier1 service interface. Modification of Tier 1 service interface is not allowed.
def create_tier1_service_interface_0_with_http_info(tier_1_id, locale_service_id, interface_id, service_interface, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PolicyNetworkingConnectivityTier1GatewaysInterfacesInterfacesApi.create_tier1_service_interface_0 ...'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create_or_replace_tier1_interface_0(tier_1_id, locale_services_id, interface_id, tier1_interface, opts = {})\n data, _status_code, _headers = create_or_replace_tier1_interface_0_with_http_info(tier_1_id, locale_services_id, interface_id, tier1_interface, opts)\n data\n end", "def create_or_repla...
[ "0.71870327", "0.7185663", "0.7109648", "0.70033944", "0.6871693", "0.68476033", "0.6740255", "0.643624", "0.6366644", "0.6351215", "0.6284444", "0.62113875", "0.62028813", "0.61803955", "0.61434007", "0.60290724", "0.5919605", "0.5913296", "0.58840257", "0.5881843", "0.58752...
0.6829841
6
Delete Tier1 interface Delete Tier1 interface
def delete_tier1_interface(tier_1_id, locale_services_id, interface_id, opts = {}) delete_tier1_interface_with_http_info(tier_1_id, locale_services_id, interface_id, opts) nil end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def delete\n raise NotImplementedError\n end", "def delete\n raise NotImplementedError\n end", "def delete\n raise NotImplementedError\n end", "def delete\n raise NotImplementedError\n end", "def delete\n \n end", "def delete\n NotImplemented\n end", "def d...
[ "0.6073407", "0.6072749", "0.5994805", "0.5994805", "0.5992041", "0.5818153", "0.5818153", "0.5791547", "0.5774908", "0.57558346", "0.5743951", "0.5743842", "0.5702978", "0.5695072", "0.5691575", "0.56911844", "0.56695455", "0.5647788", "0.564166", "0.5627624", "0.56145424", ...
0.54657775
40
Delete Tier1 interface Delete Tier1 interface
def delete_tier1_interface_with_http_info(tier_1_id, locale_services_id, interface_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PolicyNetworkingConnectivityTier1GatewaysInterfacesInterfacesApi.delete_tier1_interface ...' end # verify the required...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def delete\n raise NotImplementedError\n end", "def delete\n raise NotImplementedError\n end", "def delete\n raise NotImplementedError\n end", "def delete\n raise NotImplementedError\n end", "def delete\n \n end", "def delete\n NotImplemented\n end", "def d...
[ "0.60710484", "0.6070259", "0.5992204", "0.5992204", "0.59897596", "0.58161235", "0.58161235", "0.5790964", "0.5774543", "0.5753648", "0.5742669", "0.5741715", "0.57035017", "0.5695486", "0.569013", "0.56898236", "0.56679964", "0.56453776", "0.56398535", "0.5625365", "0.56116...
0.0
-1