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
set a default no image if none provided
def assign_default_values unless self.picture.attached? p "second statement" self.picture.attach(io: File.open( Rails.root.join('app', 'assets', 'images', 'no-product-picture.png')), filename: 'no-product-picture.png', content_type: 'image/png' ) end end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def default_image\n end", "def safe_default_image\n if default_image.try(:filename).present? \n default_image\n elsif self.images.present?\n self.images.first\n else\n Product::generic_default_image\n end\n\n # To populate run task: assets::populate_default_image\n #default_imag...
[ "0.81094146", "0.79983884", "0.73292744", "0.7328258", "0.7260639", "0.7260639", "0.7260639", "0.72385114", "0.7235847", "0.7185485", "0.7174846", "0.71392035", "0.71312124", "0.71142775", "0.7046999", "0.70458096", "0.70439386", "0.704008", "0.7011552", "0.7011552", "0.69476...
0.7347268
2
define the arguments that the user will input
def arguments(model) args = OpenStudio::Ruleset::OSArgumentVector.new # Make integer arg to run measure [1 is run, 0 is no run] run_measure = OpenStudio::Ruleset::OSArgument::makeIntegerArgument("run_measure",true) run_measure.setDisplayName("Run Measure") run_measure.setDescription("integer argument to run measure [1 is run, 0 is no run]") run_measure.setDefaultValue(1) args << run_measure return args end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def arguments; end", "def arguments; end", "def arguments; end", "def arguments\n \"\"\n end", "def args; end", "def args; end", "def args; end", "def args; end", "def args; end", "def args; end", "def args; end", "def args; end", "def args; end", "def args; end", "def args; end...
[ "0.73758113", "0.73758113", "0.73758113", "0.70881826", "0.70091885", "0.70091885", "0.70091885", "0.70091885", "0.70091885", "0.70091885", "0.70091885", "0.70091885", "0.70091885", "0.70091885", "0.70091885", "0.70091885", "0.70091885", "0.70091885", "0.70091885", "0.70091885"...
0.0
-1
end the arguments method define what happens when the measure is run
def run(model, runner, user_arguments) super(model, runner, user_arguments) #use the built-in error checking if not runner.validateUserArguments(arguments(model), user_arguments) return false end # Return N/A if not selected to run run_measure = runner.getIntegerArgumentValue("run_measure",user_arguments) if run_measure == 0 runner.registerAsNotApplicable("Run Measure set to #{run_measure}.") return true end runner.registerInfo("Making EMS string for Load Schedules") #start making the EMS code ems_string = "" #clear out the ems_string ems_string << "Schedule:File," + "\n" ems_string << " HeatingLoad, !- Name" + "\n" ems_string << " Any Number, !- Schedule Type Limits Name" + "\n" ems_string << " C:/Users/Public/Documents/loads.csv, !- File Name" + "\n" ems_string << " 1, !- Column Number" + "\n" ems_string << " 1, !- Rows to Skip at Top" + "\n" ems_string << " 8760, !- Number of Hours of Data" + "\n" ems_string << " Comma; !- Column Separator" + "\n" ems_string << "\n" ems_string << "Schedule:File," + "\n" ems_string << " CoolingLoad, !- Name" + "\n" ems_string << " Any Number, !- Schedule Type Limits Name" + "\n" ems_string << " C:/Users/Public/Documents/loads.csv, !- File Name" + "\n" ems_string << " 2, !- Column Number" + "\n" ems_string << " 1, !- Rows to Skip at Top" + "\n" ems_string << " 8760, !- Number of Hours of Data" + "\n" ems_string << " Comma; !- Column Separator" + "\n" ems_string << "\n" ems_string << "Output:Variable,CoolingLoad,Schedule Value,Hourly; !- HVAC Average []" + "\n" ems_string << "Output:Variable,HeatingLoad,Schedule Value,Hourly; !- HVAC Average []" + "\n" #save EMS snippet runner.registerInfo("Saving idf schedule loads file") FileUtils.mkdir_p(File.dirname("scheduledLoads.ems")) unless Dir.exist?(File.dirname("scheduledLoads.ems")) File.open("scheduledLoads.ems", "w") do |f| f.write(ems_string) end #replace_model(model,runner) return true end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def measure=(_arg0); end", "def measure(*args, &b)\n end", "def measure; end", "def communicate_measure_result(_ = nil, _ = nil); end", "def communicate_measure_result(_ = nil, _ = nil); end", "def arguments; end", "def arguments; end", "def arguments; end", "def run(model, runner, user_argument...
[ "0.7513744", "0.6952832", "0.6925082", "0.62926763", "0.62926763", "0.622369", "0.622369", "0.622369", "0.61478853", "0.61192423", "0.6115819", "0.604246", "0.5981343", "0.59791523", "0.59720784", "0.59661543", "0.5962138", "0.5956811", "0.5947899", "0.59065133", "0.59065133"...
0.0
-1
///////////////////////////////////////////////////////////////////////////////////////// Useful methods /////////////////////////////////////////////////////////////////////////////////////////
def cache_store(id) {(id = :"#{id}") => CACHE_STORES[id]} end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def private; end", "def probers; end", "def specie; end", "def specie; end", "def specie; end", "def specie; end", "def used?; end", "def terpene; end", "def schubert; end", "def custom; end", "def custom; end", "def extra; end", "def implementation; end", "def implementation; end", "de...
[ "0.7993533", "0.68732166", "0.6713243", "0.6713243", "0.6713243", "0.6713243", "0.64321357", "0.6410587", "0.636446", "0.63163495", "0.63163495", "0.62778616", "0.6238221", "0.6238221", "0.62021273", "0.620188", "0.6173656", "0.6170674", "0.61220026", "0.60754377", "0.6067637...
0.0
-1
account_mapping_mode is used to explicitly set/override the mapping behaviour. Default: :auto Accepts: :auto, :none, :internal, :rpxnow
def account_mapping_mode(value=:auto) account_mapping_mode_value(value) end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def using_no_mapping?\n\t\t\t\taccount_mapping_mode_used == :none\n\t\t\tend", "def using_internal_mapping?\n\t\t\t\taccount_mapping_mode_used == :internal\n\t\t\tend", "def using_rpx_mapping?\n\t\t\t\taccount_mapping_mode_used == :rpxnow\n\t\t\tend", "def define_mapping\n # no additional parameters\n...
[ "0.70494616", "0.66204053", "0.61219126", "0.54103994", "0.52619857", "0.52421725", "0.5219609", "0.50077957", "0.50029725", "0.4977005", "0.4866014", "0.48581627", "0.48226824", "0.48090577", "0.4767849", "0.4767849", "0.47423273", "0.47193354", "0.471581", "0.46995172", "0....
0.8216783
0
determines if no account mapping is supported (the only behaviour in authlogic_rpx v1.0.4)
def using_no_mapping? account_mapping_mode_used == :none end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def using_internal_mapping?\n\t\t\t\taccount_mapping_mode_used == :internal\n\t\t\tend", "def using_rpx_mapping?\n\t\t\t\taccount_mapping_mode_used == :rpxnow\n\t\t\tend", "def have_account?\n false\n end", "def refactorial_account?\n # Search for this account name\n !get_account.nil?\n end"...
[ "0.74323595", "0.69465995", "0.6870719", "0.6531683", "0.6356437", "0.6220953", "0.6158682", "0.6027732", "0.60050726", "0.58968914", "0.5893193", "0.58620054", "0.5846315", "0.58454925", "0.58360845", "0.58187133", "0.5797559", "0.5790019", "0.5785001", "0.57741064", "0.5757...
0.81951034
0
determines if internal account mapping is enabled (behaviour added in authlogic_rpx v1.1.0)
def using_internal_mapping? account_mapping_mode_used == :internal end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def using_no_mapping?\n\t\t\t\taccount_mapping_mode_used == :none\n\t\t\tend", "def using_rpx_mapping?\n\t\t\t\taccount_mapping_mode_used == :rpxnow\n\t\t\tend", "def retrieve_named_map?\n password_protected? || has_private_tables?\n end", "def personal_account?\n account_type == 'personal'\n end...
[ "0.75787526", "0.68930995", "0.6218929", "0.62158567", "0.6205018", "0.61787736", "0.61607516", "0.61332357", "0.608439", "0.6066852", "0.6013257", "0.60068154", "0.5996559", "0.59506047", "0.58568025", "0.5856429", "0.58419275", "0.58182746", "0.58049613", "0.57744646", "0.5...
0.86894965
0
determines if rpxnow account mapping is enabled (currently not implemented)
def using_rpx_mapping? account_mapping_mode_used == :rpxnow end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def using_no_mapping?\n\t\t\t\taccount_mapping_mode_used == :none\n\t\t\tend", "def using_internal_mapping?\n\t\t\t\taccount_mapping_mode_used == :internal\n\t\t\tend", "def padma_enabled?\n ea = self.enabled_accounts\n !(ea.nil? || ea.empty?)\n end", "def have_account?\n false\n end", "de...
[ "0.7396167", "0.73076576", "0.6689514", "0.6453649", "0.6392955", "0.6344693", "0.61547244", "0.61370236", "0.61297995", "0.6115202", "0.6075268", "0.60268056", "0.60186994", "0.5993357", "0.5977508", "0.59722704", "0.59424764", "0.5879942", "0.5875857", "0.5849072", "0.58436...
0.83212274
0
test if account it using normal password authentication
def using_password? !send(crypted_password_field).blank? end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def authenticate password\n if self.password == password\n true\n else\n false\n end\n end", "def authenticate(attempted_password)\n if self.password == attempted_password\n true\n else\n false\n end\n end", "def authenticate(attempted_password)\n if self.password == ...
[ "0.77785176", "0.7730994", "0.7730994", "0.7673517", "0.761344", "0.75518185", "0.75109786", "0.7469674", "0.7453722", "0.7434886", "0.7413406", "0.740522", "0.73817956", "0.7380135", "0.7323776", "0.7323185", "0.7292469", "0.7288603", "0.7230055", "0.7228019", "0.72170585", ...
0.7035532
54
tests if password authentication should be checked instead of rpx (i.e. if rpx is enabled but not used by this user)
def validate_password_not_rpx? !using_rpx? && require_password? end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def passwordy?\n # puts \"*****************----------------> Handling user as PASSWORDY.\"\n !self.has_oauth?\n end", "def require_password\n\t\t\treturn (params[:password] and params[:password] == @server.password)\n\t\tend", "def passwords_match?\n context.user.password == context.password\n end",...
[ "0.7607613", "0.7602323", "0.741518", "0.73115057", "0.7288443", "0.72286254", "0.71794647", "0.7170189", "0.71561646", "0.71174824", "0.71133435", "0.7097764", "0.7097764", "0.7094097", "0.70922124", "0.70816094", "0.70751077", "0.70745325", "0.7074103", "0.7074103", "0.7072...
0.8250401
0
determines if account merging is enabled; delegates to class method
def account_merge_enabled? self.class.account_merge_enabled_value end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def has_account_merged_with?(provider)\n self.o_auth_credentials.where(provider: provider).any?\n end", "def merged?\n @merged\n end", "def merge\n @user = User.find(params[:id])\n authorize @user\n\n if params[:id] == params[:merge_id]\n flash.now[:alert] = _(\"You attempted ...
[ "0.65053797", "0.62185836", "0.6028639", "0.6005097", "0.57902217", "0.5722251", "0.571765", "0.5711281", "0.55534714", "0.5528557", "0.5525538", "0.5511002", "0.5476627", "0.54588515", "0.5447449", "0.5361101", "0.5348535", "0.5345492", "0.53374416", "0.53125626", "0.5304251...
0.81175053
0
hook for adding RPX identifier to an existing account. This is invoked prior to model validation. RPX information is plucked from the controller session object (where it was placed by the session model as a result of the RPX callback) The minimal action taken is to add an RPXIdentifier object to the user. This procedure chains to the map_added_rpx_data, which may be overridden in your project to perform additional mapping of RPX information to the user model as may be desired.
def adding_rpx_identifier return true unless session_class && session_class.controller added_rpx_data = session_class.controller.session['added_rpx_data'] unless added_rpx_data.blank? session_class.controller.session['added_rpx_data'] = nil rpx_id = added_rpx_data['profile']['identifier'] rpx_provider_name = added_rpx_data['profile']['providerName'] unless self.identified_by?( rpx_id ) # identifier not already set for this user.. another_user = self.class.find_by_rpx_identifier( rpx_id ) if another_user return false unless account_merge_enabled? # another user already has this id registered.. # merge all IDs from another_user to self, with application callbacks before/after before_merge_rpx_data( another_user, self ) merge_user_id another_user after_merge_rpx_data( another_user, self ) else self.add_rpx_identifier( rpx_id, rpx_provider_name ) end end map_added_rpx_data( added_rpx_data ) end end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def add_rpx_identifier( rpx_id, rpx_provider_name )\n\t\t self.rpx_identifiers.build(:identifier => rpx_id, :provider_name => rpx_provider_name )\n end", "def add_rpx_identifier( rpx_id, rpx_provider_name )\n\t\t self.rpx_identifier = rpx_id\n\t\t #TODO: make rpx_provider_name a std param?\n end", "de...
[ "0.68592435", "0.68052304", "0.66783404", "0.59268165", "0.5923293", "0.56817764", "0.5667907", "0.53842986", "0.53829634", "0.52971786", "0.5227579", "0.52271235", "0.51946133", "0.50662005", "0.4988639", "0.4988639", "0.4928605", "0.49142835", "0.49003357", "0.48977256", "0...
0.79773885
0
map_added_rpx_data maps additional fields from the RPX response into the user object during the "add RPX to existing account" process. Override this in your user model to perform field mapping as may be desired See for the definition of available attributes "self" at this point is the user model. Map details as appropriate from the rpx_data structure provided.
def map_added_rpx_data( rpx_data ) end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def map_added_rpx_data( rpx_data )\n\t\tself.rpx_identifier = rpx_data['profile']['identifier']\n\n\t\t# map some additional fields, e.g. photo_url\n\t\tself.photo_url = rpx_data['profile']['photo'] if photo_url.blank?\n\tend", "def adding_rpx_identifier\n\t\t\t\treturn true unless session_class && session_class...
[ "0.81209546", "0.60916394", "0.5439058", "0.5276519", "0.52220863", "0.5212483", "0.5198772", "0.51125234", "0.5098531", "0.50628823", "0.5061386", "0.5061386", "0.5061386", "0.5061386", "0.5061386", "0.5061386", "0.5061386", "0.5061386", "0.50611955", "0.5045251", "0.5045251...
0.7289775
1
before_merge_rpx_data provides a hook for application developers to perform data migration prior to the merging of user accounts. This method is called just before authlogic_rpx merges the user registration for 'from_user' into 'to_user' Authlogic_RPX is responsible for merging registration data. By default, it does not merge any other details (e.g. application data ownership)
def before_merge_rpx_data( from_user, to_user ) end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def after_merge_rpx_data( from_user, to_user )\n\t\t\t\n\t\t\tend", "def merge_user_id( from_user )\n\t\t self.rpx_identifier = from_user.rpx_identifier\n\t\t from_user.rpx_identifier = nil\n\t\t from_user.save\n\t\t from_user.reload\t\t\n\t\tend", "def merge_user_id( from_user )\n\t\t\tself.rpx_identifier...
[ "0.75508976", "0.58757967", "0.56690407", "0.5646168", "0.53115225", "0.52366835", "0.5173282", "0.5172222", "0.51609796", "0.5124647", "0.5119862", "0.50643694", "0.4937478", "0.49116093", "0.47941545", "0.4759212", "0.4747023", "0.47419488", "0.47377", "0.47372174", "0.4728...
0.8001231
0
after_merge_rpx_data provides a hook for application developers to perform account cleanup after authlogic_rpx has migrated registration details. By default, does nothing. It could, for example, be used to delete or disable the 'from_user' account
def after_merge_rpx_data( from_user, to_user ) end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mark_for_cleanup\n add_accounts_from_activities\n end", "def cleanup\n cleanup_accounts\n end", "def user_cleaned_hook(hook_data)\n unsubscribe_hook(hook_data)\n end", "def after_save_actions\n Logger.d(\"Inside after_save_actions in User\")\n ContactsSync.new(@context, get(:auth_token)...
[ "0.59507656", "0.58477825", "0.57521653", "0.5605897", "0.5602545", "0.55898404", "0.55493057", "0.54721063", "0.5415705", "0.5399735", "0.5355426", "0.5338189", "0.5311483", "0.5311483", "0.52972174", "0.5277798", "0.5260385", "0.5197413", "0.51866204", "0.5182182", "0.51719...
0.59698105
0
adds RPX identification to the instance. Abstracts how the RPX identifier is added to allow for multiplicity of underlying implementations
def add_rpx_identifier( rpx_id, rpx_provider_name ) self.rpx_identifier = rpx_id #TODO: make rpx_provider_name a std param? end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def add_rpx_identifier( rpx_id, rpx_provider_name )\n\t\t self.rpx_identifiers.build(:identifier => rpx_id, :provider_name => rpx_provider_name )\n end", "def adding_rpx_identifier\n\t\t\t\treturn true unless session_class && session_class.controller\n\t\t\t\t\n\t\t\t\tadded_rpx_data = session_class.controll...
[ "0.77063", "0.72359353", "0.64589465", "0.6132014", "0.57841057", "0.56588477", "0.5599447", "0.5599038", "0.55906844", "0.55752796", "0.5529342", "0.5529342", "0.5488695", "0.54794383", "0.547196", "0.54478055", "0.54478055", "0.54395497", "0.5428259", "0.542709", "0.5406377...
0.7643531
1
Checks if given identifier is an identity for this account
def identified_by?( id ) self.rpx_identifier == id end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def correct_identifier?\n (openid_request.identity == identifier(current_account) || openid_request.id_select)\n end", "def original_identity?\n external_identifier == user_id\n end", "def correct_identifier?\n (openid_request.identity == openid_identifier(current_user) || openid_request.id_select)\...
[ "0.726803", "0.6971403", "0.68127507", "0.65906775", "0.64356655", "0.6347265", "0.63184595", "0.6261423", "0.6193562", "0.6094364", "0.60610086", "0.6018336", "0.6015662", "0.60035837", "0.5983604", "0.59803516", "0.59593356", "0.59053624", "0.583119", "0.58267665", "0.58122...
0.6068847
10
merge_user_id is an internal method used to merge the actual RPX identifiers
def merge_user_id( from_user ) self.rpx_identifier = from_user.rpx_identifier from_user.rpx_identifier = nil from_user.save from_user.reload end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def merge_user_id( from_user )\n\t\t\tself.rpx_identifiers << from_user.rpx_identifiers\t\n\t\t\tfrom_user.reload\n\t\tend", "def adding_rpx_identifier\n\t\t\t\treturn true unless session_class && session_class.controller\n\t\t\t\t\n\t\t\t\tadded_rpx_data = session_class.controller.session['added_rpx_data']\n\t\...
[ "0.8229404", "0.6774316", "0.6697634", "0.66292715", "0.65391415", "0.6246625", "0.6182137", "0.61059624", "0.60484946", "0.60323405", "0.6015221", "0.5929244", "0.5929244", "0.5880253", "0.58302516", "0.57328844", "0.57082045", "0.5674715", "0.56615496", "0.56568944", "0.564...
0.82095784
1
Uses default find_by_rpx_identifier class method Add an rpx_identifier collection method
def rpx_identifiers [{ :identifier => rpx_identifier, :provider_name => "Unknown" }] end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def add_rpx_identifier( rpx_id, rpx_provider_name )\n\t\t self.rpx_identifiers.build(:identifier => rpx_id, :provider_name => rpx_provider_name )\n end", "def add_rpx_identifier( rpx_id, rpx_provider_name )\n\t\t self.rpx_identifier = rpx_id\n\t\t #TODO: make rpx_provider_name a std param?\n end", "de...
[ "0.6568174", "0.6378045", "0.62157255", "0.61384076", "0.6125871", "0.56860554", "0.55937743", "0.55937743", "0.540862", "0.5407056", "0.54045606", "0.5404214", "0.53911644", "0.53773355", "0.53399533", "0.52743256", "0.52609754", "0.5228398", "0.5225393", "0.5224256", "0.516...
0.6208045
3
adds RPX identification to the instance. Abstracts how the RPX identifier is added to allow for multiplicity of underlying implementations
def add_rpx_identifier( rpx_id, rpx_provider_name ) self.rpx_identifiers.build(:identifier => rpx_id, :provider_name => rpx_provider_name ) end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def add_rpx_identifier( rpx_id, rpx_provider_name )\n\t\t self.rpx_identifier = rpx_id\n\t\t #TODO: make rpx_provider_name a std param?\n end", "def adding_rpx_identifier\n\t\t\t\treturn true unless session_class && session_class.controller\n\t\t\t\t\n\t\t\t\tadded_rpx_data = session_class.controller.sessio...
[ "0.7643531", "0.72359353", "0.64589465", "0.6132014", "0.57841057", "0.56588477", "0.5599447", "0.5599038", "0.55906844", "0.55752796", "0.5529342", "0.5529342", "0.5488695", "0.54794383", "0.547196", "0.54478055", "0.54478055", "0.54395497", "0.5428259", "0.542709", "0.54063...
0.77063
0
Checks if given identifier is an identity for this account
def identified_by?( id ) self.rpx_identifiers.find_by_identifier( id ) end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def correct_identifier?\n (openid_request.identity == identifier(current_account) || openid_request.id_select)\n end", "def original_identity?\n external_identifier == user_id\n end", "def correct_identifier?\n (openid_request.identity == openid_identifier(current_user) || openid_request.id_select)\...
[ "0.726803", "0.6971403", "0.68127507", "0.65906775", "0.64356655", "0.6347265", "0.63184595", "0.6261423", "0.6193562", "0.6094364", "0.6068847", "0.60610086", "0.6015662", "0.60035837", "0.5983604", "0.59803516", "0.59593356", "0.59053624", "0.583119", "0.58267665", "0.58122...
0.6018336
12
merge_user_id is an internal method used to merge the actual RPX identifiers
def merge_user_id( from_user ) self.rpx_identifiers << from_user.rpx_identifiers from_user.reload end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def merge_user_id( from_user )\n\t\t self.rpx_identifier = from_user.rpx_identifier\n\t\t from_user.rpx_identifier = nil\n\t\t from_user.save\n\t\t from_user.reload\t\t\n\t\tend", "def adding_rpx_identifier\n\t\t\t\treturn true unless session_class && session_class.controller\n\t\t\t\t\n\t\t\t\tadded_rpx_dat...
[ "0.82095784", "0.6774316", "0.6697634", "0.66292715", "0.65391415", "0.6246625", "0.6182137", "0.61059624", "0.60484946", "0.60323405", "0.6015221", "0.5929244", "0.5929244", "0.5880253", "0.58302516", "0.57328844", "0.57082045", "0.5674715", "0.56615496", "0.56568944", "0.56...
0.8229404
0
Components are created in the scope of a ProductFamily with a component type, i.e. /product_families/nnn/component_type This alters the collection path such that it uses the product_family_id that is set on the attributes.
def create pfid = self.product_family_id comptype = self.component_type raise NoMethodError unless pfid && comptype connection.post("/product_families/#{pfid}/#{comptype}.#{self.class.format.extension}", encode, self.class.headers).tap do |response| self.id = id_from_response(response) load_attributes_from_response(response) end end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def add_components\n #Checks if parent_id is a Product or Component based on a string value\n @parent = get_parent(params[:parent_id])\n\n #Components to Add\n if(!@parent.components.nil?)\n @parent.components.clear\n end\n if(!params[:component_parent_ids].nil?)\n for id in params[:co...
[ "0.6155142", "0.61111385", "0.58019954", "0.57520247", "0.5507315", "0.5492308", "0.5492308", "0.5492308", "0.54588443", "0.5402616", "0.5341324", "0.53296417", "0.53138715", "0.5306846", "0.5305801", "0.52757657", "0.52657723", "0.525923", "0.52583253", "0.5257617", "0.51598...
0.6432466
0
Method for making a new Topic
def create # Making sure only signed in users can access # if user_signed_in? topic = Topic.create(topic_params) if topic.valid? render json: topic else render json: topic.errors, status: :unprocessable_entity end # else # render status: 403, plain: 'Please Sign In to Access' # end end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create_topic!\n fora.post_new_topic\n end", "def create_topic\n raise NotImplementedError.new\n end", "def new\n @topic = Topic.new\n end", "def create(attrs)\n self << topic = Topic.new(attrs)\n topic\n end", "def create\n\n\t\t@topic = Topic.new(set_topic_attrib...
[ "0.8475477", "0.8108899", "0.80876225", "0.80859596", "0.8047195", "0.791566", "0.7915239", "0.7856161", "0.7847773", "0.7806894", "0.77976274", "0.7796876", "0.77961063", "0.7774299", "0.7774299", "0.7755972", "0.7755972", "0.77556086", "0.77393264", "0.7731582", "0.77288496...
0.71933174
73
Method to show just 1 Topic
def show # Making sure only signed in users can access # if user_signed_in? topic = Topic.find(params[:id]) render json: topic # else # render status: 403, plain: 'Please Sign In to Access' # end end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def show\n\n\t\t@topic = Topic.find(params[:id])\n\t\tsession[:topic_id] = @topic.id\n\n\t\treturn @topic\n\n\tend", "def topic\n begin\n @topic = @owner.topics.find(params[:id])\n rescue render_return\n end\n end", "def get_topic\n Topic.find(params[:id])\n end", "def show\n @topic...
[ "0.76197946", "0.7574003", "0.75572246", "0.75290704", "0.75037766", "0.747694", "0.73530775", "0.72539294", "0.72539294", "0.72539294", "0.72539294", "0.7249787", "0.71473783", "0.71438664", "0.71438664", "0.71438664", "0.71438664", "0.71312344", "0.7116535", "0.7092114", "0...
0.6778389
56
Method to update a Topic
def update # Making sure only signed in users can access # if user_signed_in? topic = Topic.find(params[:id]) topic.update(topic_params) if topic.valid? render json: topic else render json: topic.errors end # else # render status: 403, plain: 'Please Sign In to Access' # end end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update\n respond_with @topic.update(topic_params)\n end", "def update!(**args)\n @topic = args[:topic] if args.key?(:topic)\n end", "def update!(**args)\n @topic = args[:topic] if args.key?(:topic)\n end", "def update!(**args)\n @topic = args[:topic] if args.k...
[ "0.8316874", "0.81638175", "0.81626815", "0.81626815", "0.81085956", "0.80922884", "0.80749387", "0.80539083", "0.80183727", "0.79979813", "0.7925021", "0.792307", "0.78679883", "0.7856398", "0.7856398", "0.7856398", "0.7856398", "0.7856398", "0.7840976", "0.78362894", "0.783...
0.7486321
60
Method to delete a Topic
def destroy # Making sure only signed in users can access # if user_signed_in? topic = Topic.find(params[:id]) if topic.destroy render json: topic else render json: topic.errors end # else # render status: 403, plain: 'Please Sign In to Access' # end end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def delete_topic topic_name\n publisher.delete_topic topic: topic_path(topic_name)\n end", "def DeleteTopic id\n \n APICall(path: \"topics/#{id}.json\",method: 'DELETE')\n \n end", "def delete_topic\n raise NotImplementedError.new\n end", "def delet...
[ "0.84103805", "0.83989894", "0.8314708", "0.82744336", "0.8248997", "0.822022", "0.8187087", "0.81180316", "0.80981356", "0.80804825", "0.8060124", "0.8053646", "0.8046429", "0.8021671", "0.8017278", "0.80151474", "0.79869527", "0.79869527", "0.79869527", "0.79869527", "0.798...
0.0
-1
this sets the points column to 0 after a person joins a hunt
def set_points self.points ||= 0.0 end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_points!\n self.points = 0 unless self.points.presence\n end", "def reset_points\n @points = 0\n @opponent.points = 0\n end", "def assign_zero_experience_points\n self.points_awarded = 0\n self.awarded_at = Time.zone.now\n self.awarder = User.stamper || User.system\n end", "...
[ "0.66112447", "0.6217372", "0.61342883", "0.5995406", "0.5960768", "0.59038097", "0.5684888", "0.56542015", "0.56477165", "0.5611727", "0.5583259", "0.55718637", "0.55703586", "0.5553812", "0.55205554", "0.54988027", "0.5487203", "0.54779226", "0.54700077", "0.54211134", "0.5...
0.6412571
1
rubocop:enable Naming/MemoizedInstanceVariableName Accessor for the DSpace installation directory
def dspace_dir @dspace_dir || raise('dspace_dir is undefined') end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def install_dir\n @install_dir ||= ENV['WD_INSTALL_DIR'] || DEFAULT_INSTALL_DIR\n end", "def os_install_dir\n @os_install_dir\n end", "def instance_directory\n @instance_directory ||= instance_pathname filename: \"/\"\n end", "def data_directory\n @data_directory\n end", "def instal...
[ "0.7100727", "0.6957641", "0.67755955", "0.676852", "0.6680377", "0.6644179", "0.6641368", "0.6606017", "0.6606017", "0.66059464", "0.6575902", "0.65733695", "0.6547474", "0.6537404", "0.65299207", "0.65065235", "0.64977163", "0.64951044", "0.647332", "0.64619577", "0.6450366...
0.7258033
0
Accessor for the DSpace installation configuration file
def dspace_cfg @dspace_cfg || raise('dspace.cfg is undefined') end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def configuration_file_path; end", "def config_file\n @config_file\n end", "def config_file\n CONFIG_FILE\n end", "def config\n @config_file\n end", "def get_configuration_file\n file = PREFERENCES_LEGACY\n file = PREFERENCES if File.exists? '/usr/libexec/opendirectoryd'\n...
[ "0.7214976", "0.7178546", "0.70699525", "0.6938501", "0.68645966", "0.67940235", "0.6714747", "0.6593805", "0.65820384", "0.6576006", "0.6551516", "0.65398943", "0.65139896", "0.65115744", "0.650702", "0.6359404", "0.6355974", "0.6354238", "0.6317539", "0.6307404", "0.6265929...
0.62448454
21
Accessor for the DSpace kernel context object
def context init @context end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def context\n @_context ||= begin\n ptr = MemoryPointer::new( Context )\n error = OpenCL.clGetKernelInfo(self, CONTEXT, Context.size, ptr, nil)\n error_check(error)\n Context::new( ptr.read_pointer )\n end\n end", "def context\n ptr = FFI::MemoryPointer::new( Context...
[ "0.7395308", "0.7341951", "0.72848463", "0.66456705", "0.6364316", "0.63144374", "0.6251693", "0.6191585", "0.61446106", "0.5998722", "0.5998722", "0.59927815", "0.59570867", "0.58876526", "0.5882843", "0.5834944", "0.5829864", "0.57998073", "0.57935005", "0.5790692", "0.5758...
0.5664046
45
This rebuilds the Context object for the DSpace kernel
def context_renew @context&.abort @context = org.dspace.core.Context.new end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def context\n ptr = FFI::MemoryPointer::new( Context )\n error = OpenCL.clGetKernelInfo(self, CONTEXT, Context.size, ptr, nil)\n error_check(error)\n return Context::new( ptr.read_pointer )\n end", "def context\n @_context ||= begin\n ptr = MemoryPointer::new( Context )\n ...
[ "0.5756168", "0.5713737", "0.55593526", "0.5543211", "0.54753155", "0.5357028", "0.52902144", "0.5268485", "0.52173454", "0.52145016", "0.52141297", "0.5194174", "0.5157439", "0.51494336", "0.5105222", "0.51029766", "0.5095103", "0.5066022", "0.505308", "0.50249857", "0.49826...
0.69522166
0
Builds the org.dspace.core.Context Class
def init return unless @context.nil? $stdout.puts('Loading JARs...') load_jar_files $stdout.puts("Loading #{@dspace_cfg}...") org.dspace.core.ConfigurationManager.load_config(@dspace_cfg) kernel_impl = org.dspace.servicemanager.DSpaceKernelInit.get_kernel(nil) unless kernel_impl.is_running $stdout.puts('Starting new DSpaceKernel...') kernel_impl.start(@dspace_dir) end @kernel = kernel_impl @context = org.dspace.core.Context.new end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def build_context(context: Context.current)\n builder = Builder.new(correlations_for(context).dup)\n yield builder\n context.set_value(CORRELATION_CONTEXT_KEY, builder.entries)\n end", "def context\n @_context ||= {\n :argv => START_CTX[:argv].map { |arg| arg.dup },\...
[ "0.6266896", "0.62157995", "0.6141869", "0.6071215", "0.60467166", "0.6035987", "0.5960028", "0.5953654", "0.5931738", "0.591926", "0.5912925", "0.5910107", "0.5900135", "0.58732426", "0.5792009", "0.5783883", "0.57585853", "0.5754297", "0.5750203", "0.57353735", "0.57148194"...
0.57503164
18
Print to STDOUT the current database connection information
def print $stdout.puts("DB #{@context.getDBConnection.toString}") end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def db_info\n @conn.query({url_path: \"#{database}\", method: :get})\n end", "def info\n specified_db_or_all { |db| display_db_info db }\n end", "def info\n specified_db_or_all { |db| display_db_info db }\n end", "def info(database)\n command 'SHOW INFO', database do\n ...
[ "0.7213456", "0.7050052", "0.6957823", "0.6565454", "0.65645677", "0.6435132", "0.63811755", "0.6378373", "0.63654786", "0.6275592", "0.6245936", "0.61344427", "0.6111665", "0.6104524", "0.61013395", "0.6072116", "0.6072116", "0.6070155", "0.60450757", "0.60158145", "0.601349...
0.8404176
0
=begin START FORMAL PSEUDOCODE DEFINE method and input variables (variable1, variable2) ADD variable1 and variable2 RETURN result END =end
def adder(variable1, variable2) variable1 + variable2 end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def add (parameter1, parameter2)\n\t# adds two values\n\treturn parameter1 + parameter2\nend", "def add(term1, term2)\n return term1 + term2\nend", "def add\n match '+'\n term\n emit_ln 'ADD (SP)+, D1'\nend", "def addition(parameter1, parameter2)\n return parameter1 + parameter2\nend", "def add(va...
[ "0.67675036", "0.64822906", "0.64588183", "0.64296025", "0.640572", "0.63293356", "0.6309639", "0.62569356", "0.6230032", "0.62242496", "0.6208845", "0.619015", "0.6188301", "0.61843646", "0.6175959", "0.61739224", "0.61673576", "0.6163608", "0.6161505", "0.61541134", "0.6140...
0.66936713
1
Create a bank link Create a new bank link for an account.
def create_bank_link_using_post(bank_link_info_request, opts = {}) data, _status_code, _headers = create_bank_link_using_post_with_http_info(bank_link_info_request, opts) data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create_account_link\n render json: Stripe::AccountLink.create(account_params.to_h), status: :created\n end", "def link_bank_account(bank_name:, label:, account_number:, currency:, holder_name:, city:, country_code:, password:,\n swift_code: nil, bank_code: nil, branch_name: nil, ...
[ "0.73448735", "0.73280746", "0.6906434", "0.6794038", "0.6668291", "0.65749425", "0.64562297", "0.6454499", "0.64173317", "0.64165026", "0.63411456", "0.63411456", "0.62831444", "0.62326276", "0.62326276", "0.6225671", "0.619676", "0.61909944", "0.6130432", "0.6105497", "0.60...
0.7139506
2
Create a bank link Create a new bank link for an account.
def create_bank_link_using_post_with_http_info(bank_link_info_request, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FundingApi.create_bank_link_using_post ...' end # verify the required parameter 'bank_link_info_request' is set if @api_client.config.client_side_validation && bank_link_info_request.nil? fail ArgumentError, "Missing the required parameter 'bank_link_info_request' when calling FundingApi.create_bank_link_using_post" end # resource path local_var_path = '/bank_link' # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(bank_link_info_request) auth_names = ['oauth2'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'BankLink') if @api_client.config.debugging @api_client.config.logger.debug "API called: FundingApi#create_bank_link_using_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create_account_link\n render json: Stripe::AccountLink.create(account_params.to_h), status: :created\n end", "def link_bank_account(bank_name:, label:, account_number:, currency:, holder_name:, city:, country_code:, password:,\n swift_code: nil, bank_code: nil, branch_name: nil, ...
[ "0.73468447", "0.7326747", "0.71387637", "0.6906469", "0.6797561", "0.6571749", "0.64596707", "0.6454486", "0.641802", "0.6412827", "0.6338208", "0.6338208", "0.62818694", "0.62304705", "0.62304705", "0.6227226", "0.6196194", "0.6191895", "0.61338085", "0.6103134", "0.6093554...
0.66685146
5
Create a deposit request Create a new deposit request for an account.
def create_deposit_using_post(daily_deposit_request, opts = {}) data, _status_code, _headers = create_deposit_using_post_with_http_info(daily_deposit_request, opts) data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create\r\n @deposit = Deposit.new(deposit_params) \r\n if @deposit.nil? || @deposit.amount < 0\r\n flash[:danger] = \"No Deposit request passed to controller\"\r\n\t redirect_to :back\r\n\t return\r\n else\r\n Deposit.request(@user, User.find(1))\r\n end\r\n \r\n if @deposit.amoun...
[ "0.6863118", "0.6797879", "0.66570055", "0.66425", "0.65222573", "0.6495535", "0.6313634", "0.62907207", "0.62650365", "0.6259237", "0.6251671", "0.62416595", "0.62247413", "0.6214713", "0.6213224", "0.6205243", "0.6109546", "0.6048154", "0.6010124", "0.6008826", "0.60076505"...
0.62781084
8
Create a deposit request Create a new deposit request for an account.
def create_deposit_using_post_with_http_info(daily_deposit_request, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FundingApi.create_deposit_using_post ...' end # verify the required parameter 'daily_deposit_request' is set if @api_client.config.client_side_validation && daily_deposit_request.nil? fail ArgumentError, "Missing the required parameter 'daily_deposit_request' when calling FundingApi.create_deposit_using_post" end # resource path local_var_path = '/deposit' # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(daily_deposit_request) auth_names = ['oauth2'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'DailyDeposit') if @api_client.config.debugging @api_client.config.logger.debug "API called: FundingApi#create_deposit_using_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create\r\n @deposit = Deposit.new(deposit_params) \r\n if @deposit.nil? || @deposit.amount < 0\r\n flash[:danger] = \"No Deposit request passed to controller\"\r\n\t redirect_to :back\r\n\t return\r\n else\r\n Deposit.request(@user, User.find(1))\r\n end\r\n \r\n if @deposit.amoun...
[ "0.68635756", "0.6799127", "0.6656831", "0.6642133", "0.64965487", "0.631344", "0.6292275", "0.6278301", "0.6265958", "0.6260235", "0.6251063", "0.62420905", "0.6224289", "0.62135816", "0.6212093", "0.6204789", "0.6110645", "0.60480917", "0.6010629", "0.600991", "0.60089827",...
0.65219194
4
Create a funding request Create a new funding request for an account.
def create_funding_using_post(funding_request, opts = {}) data, _status_code, _headers = create_funding_using_post_with_http_info(funding_request, opts) data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create\n @withdrawal_request = WithdrawalRequest.new(withdrawal_request_params)\n\n respond_to do |format|\n if @withdrawal_request.save\n format.html { redirect_to @withdrawal_request, notice: 'Withdrawal request was successfully created.' }\n format.json { render :show, status: :crea...
[ "0.6689006", "0.63948715", "0.6388759", "0.6336364", "0.63060796", "0.628811", "0.62852484", "0.62169176", "0.6213387", "0.6200485", "0.6129801", "0.60833", "0.60829157", "0.6065424", "0.603939", "0.60375905", "0.603493", "0.6021192", "0.6016078", "0.60153615", "0.5996668", ...
0.6311864
4
Create a funding request Create a new funding request for an account.
def create_funding_using_post_with_http_info(funding_request, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FundingApi.create_funding_using_post ...' end # verify the required parameter 'funding_request' is set if @api_client.config.client_side_validation && funding_request.nil? fail ArgumentError, "Missing the required parameter 'funding_request' when calling FundingApi.create_funding_using_post" end # resource path local_var_path = '/funding' # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(funding_request) auth_names = ['oauth2'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Funding') if @api_client.config.debugging @api_client.config.logger.debug "API called: FundingApi#create_funding_using_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create\n @withdrawal_request = WithdrawalRequest.new(withdrawal_request_params)\n\n respond_to do |format|\n if @withdrawal_request.save\n format.html { redirect_to @withdrawal_request, notice: 'Withdrawal request was successfully created.' }\n format.json { render :show, status: :crea...
[ "0.6690374", "0.6395365", "0.6338059", "0.6312913", "0.63078153", "0.6288342", "0.6287306", "0.6219056", "0.621583", "0.62016594", "0.6130016", "0.6084295", "0.6084066", "0.60670906", "0.60417986", "0.60392565", "0.6034564", "0.60227144", "0.601768", "0.6016194", "0.59998804"...
0.6390044
2
Create a transfer requests Create a new external account transfer for a client account.
def create_transfer_using_post(external_account_transfer_request, opts = {}) data, _status_code, _headers = create_transfer_using_post_with_http_info(external_account_transfer_request, opts) data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create_transfer_using_post_with_http_info(external_account_transfer_request, opts = {})\n if @api_client.config.debugging\n @api_client.config.logger.debug 'Calling API: FundingApi.create_transfer_using_post ...'\n end\n # verify the required parameter 'external_account_transfer_request' ...
[ "0.71754557", "0.7124002", "0.71023697", "0.70558894", "0.69462895", "0.6895834", "0.6879954", "0.6702472", "0.65583605", "0.65380865", "0.6528948", "0.64632076", "0.6432655", "0.6428149", "0.6428149", "0.64176023", "0.6360576", "0.6254885", "0.62285405", "0.6133554", "0.6122...
0.7024187
4
Create a transfer requests Create a new external account transfer for a client account.
def create_transfer_using_post_with_http_info(external_account_transfer_request, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FundingApi.create_transfer_using_post ...' end # verify the required parameter 'external_account_transfer_request' is set if @api_client.config.client_side_validation && external_account_transfer_request.nil? fail ArgumentError, "Missing the required parameter 'external_account_transfer_request' when calling FundingApi.create_transfer_using_post" end # resource path local_var_path = '/transfer' # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(external_account_transfer_request) auth_names = ['oauth2'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ExternalAccountTransfer') if @api_client.config.debugging @api_client.config.logger.debug "API called: FundingApi#create_transfer_using_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create\n ActiveRecord::Base.transaction do\n @transfer = Transfer.new(transfer_params)\n @transfer = Transfer.new(transfer_params)\n @transferaccount = @transfer.transferaccounts.build\n @transferaccount.account_id = current_account.id\n \n respond_to do |format|\n if @t...
[ "0.71225834", "0.7098972", "0.70545226", "0.7023664", "0.6943617", "0.68937284", "0.687958", "0.6699281", "0.6556391", "0.65366465", "0.65271354", "0.64625084", "0.6429693", "0.64259064", "0.64259064", "0.641397", "0.63589936", "0.6251951", "0.62271994", "0.61312604", "0.6118...
0.7174927
0
Create a withdrawal request Create a new withdrawal request for an account.
def create_withdrawal_using_post(daily_withdrawal_request, opts = {}) data, _status_code, _headers = create_withdrawal_using_post_with_http_info(daily_withdrawal_request, opts) data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create\n @withdrawal_request = WithdrawalRequest.new(withdrawal_request_params)\n\n respond_to do |format|\n if @withdrawal_request.save\n format.html { redirect_to @withdrawal_request, notice: 'Withdrawal request was successfully created.' }\n format.json { render :show, status: :crea...
[ "0.7276541", "0.69037163", "0.6727845", "0.6463993", "0.6392501", "0.6174921", "0.6161687", "0.61487126", "0.59555507", "0.59535235", "0.59249127", "0.59242535", "0.5856801", "0.58385104", "0.5817199", "0.58028865", "0.5759592", "0.56924826", "0.56514674", "0.56169003", "0.56...
0.5675815
18
Create a withdrawal request Create a new withdrawal request for an account.
def create_withdrawal_using_post_with_http_info(daily_withdrawal_request, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FundingApi.create_withdrawal_using_post ...' end # verify the required parameter 'daily_withdrawal_request' is set if @api_client.config.client_side_validation && daily_withdrawal_request.nil? fail ArgumentError, "Missing the required parameter 'daily_withdrawal_request' when calling FundingApi.create_withdrawal_using_post" end # resource path local_var_path = '/withdrawal' # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(daily_withdrawal_request) auth_names = ['oauth2'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'DailyWithdrawal') if @api_client.config.debugging @api_client.config.logger.debug "API called: FundingApi#create_withdrawal_using_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create\n @withdrawal_request = WithdrawalRequest.new(withdrawal_request_params)\n\n respond_to do |format|\n if @withdrawal_request.save\n format.html { redirect_to @withdrawal_request, notice: 'Withdrawal request was successfully created.' }\n format.json { render :show, status: :crea...
[ "0.727865", "0.6906798", "0.67298055", "0.64646953", "0.6394075", "0.6175404", "0.61502177", "0.59561163", "0.59561074", "0.5927637", "0.5925028", "0.5858474", "0.58409476", "0.581907", "0.58044964", "0.5760027", "0.5693542", "0.5676804", "0.56534487", "0.56173885", "0.561700...
0.6162582
6
Delete a bank link Permanently delete a bank link defined for an account.
def delete_bank_link_using_delete(bank_link_id, opts = {}) delete_bank_link_using_delete_with_http_info(bank_link_id, opts) nil end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def delete_bank_link_using_delete(nucleus_bank_link_id, opts = {})\n delete_bank_link_using_delete_with_http_info(nucleus_bank_link_id, opts)\n nil\n end", "def delete_brokerage_bank_link_using_delete(nucleus_bank_link_id, opts = {})\n delete_brokerage_bank_link_using_delete_with_http_info(nucl...
[ "0.740705", "0.7370076", "0.6978474", "0.68579495", "0.67257273", "0.66486233", "0.6611049", "0.65697294", "0.65536207", "0.6478754", "0.6455865", "0.64469755", "0.64082587", "0.63862306", "0.6370252", "0.6361878", "0.6284443", "0.6281074", "0.6238017", "0.6236416", "0.621753...
0.7617771
0
Delete a bank link Permanently delete a bank link defined for an account.
def delete_bank_link_using_delete_with_http_info(bank_link_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FundingApi.delete_bank_link_using_delete ...' end # verify the required parameter 'bank_link_id' is set if @api_client.config.client_side_validation && bank_link_id.nil? fail ArgumentError, "Missing the required parameter 'bank_link_id' when calling FundingApi.delete_bank_link_using_delete" end # resource path local_var_path = '/bank_link/{bank_link_id}'.sub('{' + 'bank_link_id' + '}', bank_link_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['oauth2'] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: FundingApi#delete_bank_link_using_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def delete_bank_link_using_delete(bank_link_id, opts = {})\n delete_bank_link_using_delete_with_http_info(bank_link_id, opts)\n nil\n end", "def delete_bank_link_using_delete(nucleus_bank_link_id, opts = {})\n delete_bank_link_using_delete_with_http_info(nucleus_bank_link_id, opts)\n nil\n...
[ "0.7619484", "0.74091196", "0.7371927", "0.6980603", "0.6726071", "0.66501117", "0.6611498", "0.657038", "0.6555104", "0.6481363", "0.64575326", "0.64492255", "0.6410051", "0.63887393", "0.6372004", "0.6363362", "0.6284697", "0.62836057", "0.623811", "0.6236561", "0.62197554"...
0.6859225
4
Delete a deposit request Permanently delete a deposit request for an account.
def delete_deposit_using_delete(deposit_id, opts = {}) delete_deposit_using_delete_with_http_info(deposit_id, opts) nil end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def destroy\n @dbs_deposit = DbsDeposit.find(params[:id])\n @dbs_deposit.destroy\n\n respond_to do |format|\n format.html { redirect_to(dbs_deposits_url) }\n format.xml { head :ok }\n end\n end", "def destroy\n @withdrawal_request = WithdrawalRequest.find(params[:id])\n @withdrawal_...
[ "0.6356928", "0.62239057", "0.6200618", "0.61298096", "0.612226", "0.6106247", "0.61047316", "0.60377663", "0.60147625", "0.60057974", "0.6005768", "0.5965268", "0.5963378", "0.5942982", "0.59107256", "0.5886712", "0.5846262", "0.57298774", "0.5724085", "0.5722591", "0.569731...
0.5732171
17
Delete a deposit request Permanently delete a deposit request for an account.
def delete_deposit_using_delete_with_http_info(deposit_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FundingApi.delete_deposit_using_delete ...' end # verify the required parameter 'deposit_id' is set if @api_client.config.client_side_validation && deposit_id.nil? fail ArgumentError, "Missing the required parameter 'deposit_id' when calling FundingApi.delete_deposit_using_delete" end # resource path local_var_path = '/deposit/{deposit_id}'.sub('{' + 'deposit_id' + '}', deposit_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['oauth2'] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: FundingApi#delete_deposit_using_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def destroy\n @dbs_deposit = DbsDeposit.find(params[:id])\n @dbs_deposit.destroy\n\n respond_to do |format|\n format.html { redirect_to(dbs_deposits_url) }\n format.xml { head :ok }\n end\n end", "def destroy\n @withdrawal_request = WithdrawalRequest.find(params[:id])\n @withdrawal_...
[ "0.6358717", "0.6223067", "0.6131487", "0.6123718", "0.61078954", "0.610642", "0.6037033", "0.601644", "0.60076046", "0.600728", "0.596685", "0.596173", "0.5944781", "0.59118795", "0.5888323", "0.5845218", "0.5735034", "0.5729514", "0.57243925", "0.57224816", "0.5698199", "...
0.6201031
2
Delete a funding request Permanently delete a funding request defined for an account.
def delete_funding_using_delete(funding_id, opts = {}) delete_funding_using_delete_with_http_info(funding_id, opts) nil end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def destroy\n @fund_request.destroy\n\n respond_to do |format|\n flash[:notice] = 'Fund request was successfully destroyed.'\n format.html { redirect_to( profile_url ) }\n format.xml { head :ok }\n end\n end", "def destroy\n @budget_request.destroy\n respond_to do |format|\n ...
[ "0.67337", "0.65807223", "0.6531504", "0.64409906", "0.6418072", "0.63941514", "0.638983", "0.6349248", "0.6347754", "0.6344908", "0.6338188", "0.6283309", "0.62739927", "0.62723756", "0.62632006", "0.62419647", "0.6196841", "0.61881816", "0.61643934", "0.61542106", "0.614992...
0.0
-1
Delete a funding request Permanently delete a funding request defined for an account.
def delete_funding_using_delete_with_http_info(funding_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FundingApi.delete_funding_using_delete ...' end # verify the required parameter 'funding_id' is set if @api_client.config.client_side_validation && funding_id.nil? fail ArgumentError, "Missing the required parameter 'funding_id' when calling FundingApi.delete_funding_using_delete" end # resource path local_var_path = '/funding/{funding_id}'.sub('{' + 'funding_id' + '}', funding_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['oauth2'] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: FundingApi#delete_funding_using_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def destroy\n @fund_request.destroy\n\n respond_to do |format|\n flash[:notice] = 'Fund request was successfully destroyed.'\n format.html { redirect_to( profile_url ) }\n format.xml { head :ok }\n end\n end", "def destroy\n @budget_request.destroy\n respond_to do |format|\n ...
[ "0.6735196", "0.65826887", "0.65333146", "0.64428556", "0.641942", "0.63951653", "0.6390832", "0.63501054", "0.63483846", "0.6346152", "0.6339264", "0.6284289", "0.62745357", "0.62730354", "0.62638587", "0.624314", "0.61978513", "0.6190082", "0.6165115", "0.6154969", "0.61513...
0.57381743
84
Delete a transfer request Permanently delete a external account transfer from a client account.
def delete_transfer_using_delete(transfer, transfer_id, opts = {}) delete_transfer_using_delete_with_http_info(transfer, transfer_id, opts) nil end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def delete_transfer_job request_pb, options = nil\n raise ::ArgumentError, \"request must be provided\" if request_pb.nil?\n\n verb, uri, query_string_params, body = ServiceStub.transcode_delete_transfer_job_request request_pb\n query_string_params = if query_string_par...
[ "0.6768734", "0.6548992", "0.6538482", "0.65041155", "0.6399301", "0.639762", "0.6268206", "0.626356", "0.62519497", "0.62265104", "0.6216784", "0.6210002", "0.61810213", "0.60710186", "0.60646564", "0.60498446", "0.6026572", "0.6015434", "0.598436", "0.5959603", "0.5954443",...
0.5942212
21
Delete a transfer request Permanently delete a external account transfer from a client account.
def delete_transfer_using_delete_with_http_info(transfer, transfer_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FundingApi.delete_transfer_using_delete ...' end # verify the required parameter 'transfer' is set if @api_client.config.client_side_validation && transfer.nil? fail ArgumentError, "Missing the required parameter 'transfer' when calling FundingApi.delete_transfer_using_delete" end # verify the required parameter 'transfer_id' is set if @api_client.config.client_side_validation && transfer_id.nil? fail ArgumentError, "Missing the required parameter 'transfer_id' when calling FundingApi.delete_transfer_using_delete" end # resource path local_var_path = '/transfer/{transfer_id}'.sub('{' + 'transfer' + '}', transfer.to_s).sub('{' + 'transfer_id' + '}', transfer_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['oauth2'] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: FundingApi#delete_transfer_using_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def delete_transfer_job request_pb, options = nil\n raise ::ArgumentError, \"request must be provided\" if request_pb.nil?\n\n verb, uri, query_string_params, body = ServiceStub.transcode_delete_transfer_job_request request_pb\n query_string_params = if query_string_par...
[ "0.6768817", "0.65509915", "0.6504008", "0.64023274", "0.64004105", "0.62682754", "0.6263415", "0.62543344", "0.6228643", "0.62170714", "0.62119496", "0.6180738", "0.60719496", "0.6063909", "0.6048441", "0.60284185", "0.6017648", "0.59842515", "0.5960074", "0.59556836", "0.59...
0.6538271
2
Delete a withdrawal request Permanently delete a withdrawal request from an account.
def delete_withdrawal_using_delete(withdrawal_id, opts = {}) delete_withdrawal_using_delete_with_http_info(withdrawal_id, opts) nil end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def destroy\n @withdrawal_request = WithdrawalRequest.find(params[:id])\n @withdrawal_request.destroy\n\n respond_to do |format|\n format.html { redirect_to withdrawal_requests_url }\n format.json { head :no_content }\n end\n end", "def destroy\n @withdrawal_request.destroy\n respond...
[ "0.68901306", "0.6612025", "0.6174695", "0.61395216", "0.59916407", "0.5949496", "0.59427553", "0.5941002", "0.5940298", "0.59335715", "0.5924981", "0.5922938", "0.5895916", "0.58804035", "0.5853899", "0.5843577", "0.5770608", "0.5756236", "0.5748914", "0.57430005", "0.573597...
0.5895077
13
Delete a withdrawal request Permanently delete a withdrawal request from an account.
def delete_withdrawal_using_delete_with_http_info(withdrawal_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FundingApi.delete_withdrawal_using_delete ...' end # verify the required parameter 'withdrawal_id' is set if @api_client.config.client_side_validation && withdrawal_id.nil? fail ArgumentError, "Missing the required parameter 'withdrawal_id' when calling FundingApi.delete_withdrawal_using_delete" end # resource path local_var_path = '/withdrawal/{withdrawal_id}'.sub('{' + 'withdrawal_id' + '}', withdrawal_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['oauth2'] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: FundingApi#delete_withdrawal_using_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def destroy\n @withdrawal_request = WithdrawalRequest.find(params[:id])\n @withdrawal_request.destroy\n\n respond_to do |format|\n format.html { redirect_to withdrawal_requests_url }\n format.json { head :no_content }\n end\n end", "def destroy\n @withdrawal_request.destroy\n respond...
[ "0.6888924", "0.6610735", "0.61766654", "0.5992714", "0.59497595", "0.5941717", "0.5940477", "0.5938777", "0.5933963", "0.5926842", "0.59233147", "0.58980393", "0.58948416", "0.5879589", "0.58555233", "0.58411175", "0.5773289", "0.5757883", "0.57503456", "0.57425815", "0.5736...
0.6138858
3
List all bank links Get all bank links defined for all clients defined for your firm.
def get_bank_link_all_using_get(opts = {}) data, _status_code, _headers = get_bank_link_all_using_get_with_http_info(opts) data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def links\n @creditor_bank_account_links ||= Links.new(@links)\n end", "def links\n response = Clever.request :get, url\n response[:links]\n end", "def all_links\n Link.all\n end", "def all_links\n Link.all\n end", "def all_links\n Link.all\n end", "def in...
[ "0.6420017", "0.58436984", "0.5843097", "0.5843097", "0.5843097", "0.5793557", "0.5624221", "0.55549526", "0.5543784", "0.55279803", "0.54649", "0.5431408", "0.5419884", "0.53958535", "0.5379737", "0.53746104", "0.5365651", "0.5365651", "0.53473175", "0.53450716", "0.5328954"...
0.65691507
0
List all bank links Get all bank links defined for all clients defined for your firm.
def get_bank_link_all_using_get_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FundingApi.get_bank_link_all_using_get ...' end # resource path local_var_path = '/bank_link' # query parameters query_params = {} query_params[:'ascending'] = opts[:'ascending'] if !opts[:'ascending'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'order_by'] = opts[:'order_by'] if !opts[:'order_by'].nil? query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['oauth2'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'PageBankLink') if @api_client.config.debugging @api_client.config.logger.debug "API called: FundingApi#get_bank_link_all_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_bank_link_all_using_get(opts = {})\n data, _status_code, _headers = get_bank_link_all_using_get_with_http_info(opts)\n data\n end", "def links\n @creditor_bank_account_links ||= Links.new(@links)\n end", "def links\n response = Clever.request :get, url\n response[:lin...
[ "0.6569426", "0.64203966", "0.5842895", "0.58426815", "0.58426815", "0.58426815", "0.57931006", "0.56244886", "0.5553864", "0.5543091", "0.552768", "0.5464892", "0.5431309", "0.54195595", "0.5394638", "0.53803235", "0.5365452", "0.5365452", "0.53469205", "0.5344723", "0.53293...
0.5375113
16
Retrieve a bank link Retrieve the information for a bank link for an account.
def get_bank_link_using_get(bank_link_id, opts = {}) data, _status_code, _headers = get_bank_link_using_get_with_http_info(bank_link_id, opts) data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_bank_link_using_get(nucleus_bank_link_id, opts = {})\n data, _status_code, _headers = get_bank_link_using_get_with_http_info(nucleus_bank_link_id, opts)\n data\n end", "def bank\n @session.get_bank @bank_id\n end", "def get_brokerage_bank_link_using_get(nucleus_bank_link_id, opts =...
[ "0.68758065", "0.66153955", "0.6605945", "0.655292", "0.6530044", "0.65142196", "0.6493559", "0.642305", "0.64179754", "0.6366113", "0.63143665", "0.6240683", "0.614618", "0.61055416", "0.60956275", "0.6001605", "0.59822375", "0.5955436", "0.59331286", "0.59138244", "0.590714...
0.69104385
0
Retrieve a bank link Retrieve the information for a bank link for an account.
def get_bank_link_using_get_with_http_info(bank_link_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FundingApi.get_bank_link_using_get ...' end # verify the required parameter 'bank_link_id' is set if @api_client.config.client_side_validation && bank_link_id.nil? fail ArgumentError, "Missing the required parameter 'bank_link_id' when calling FundingApi.get_bank_link_using_get" end # resource path local_var_path = '/bank_link/{bank_link_id}'.sub('{' + 'bank_link_id' + '}', bank_link_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['oauth2'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'BankLink') if @api_client.config.debugging @api_client.config.logger.debug "API called: FundingApi#get_bank_link_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_bank_link_using_get(bank_link_id, opts = {})\n data, _status_code, _headers = get_bank_link_using_get_with_http_info(bank_link_id, opts)\n data\n end", "def get_bank_link_using_get(nucleus_bank_link_id, opts = {})\n data, _status_code, _headers = get_bank_link_using_get_with_http_info(n...
[ "0.6910829", "0.68765676", "0.6618146", "0.6606589", "0.6555626", "0.65312594", "0.6493079", "0.6424932", "0.64174414", "0.63673943", "0.63149506", "0.6241032", "0.6147818", "0.61084545", "0.6095542", "0.6003219", "0.59819055", "0.5957847", "0.59313864", "0.5913111", "0.59061...
0.65161276
6
List all deposit requests Get the information for all deposit requests for all clients.
def get_deposit_all_using_get(opts = {}) data, _status_code, _headers = get_deposit_all_using_get_with_http_info(opts) data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def index\n @withdrawal_requests = WithdrawalRequest.all\n end", "def index\r\n @deposits = []\r\n if current_user.admin?\r\n @deposits = Deposit.all\r\n else\r\n @deposits = Deposit.where(user_id: current_accounts.collect{|x| x.acct_number})\r\n end\r\n end", "def index\n @de...
[ "0.63462263", "0.62817544", "0.6231132", "0.5822231", "0.58124495", "0.57861245", "0.56787944", "0.5634282", "0.5586249", "0.55757105", "0.54952407", "0.54930866", "0.5395649", "0.5384966", "0.5356641", "0.53477997", "0.53477997", "0.5343063", "0.53406477", "0.5337761", "0.53...
0.59777075
3
List all deposit requests Get the information for all deposit requests for all clients.
def get_deposit_all_using_get_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FundingApi.get_deposit_all_using_get ...' end # resource path local_var_path = '/deposit' # query parameters query_params = {} query_params[:'ascending'] = opts[:'ascending'] if !opts[:'ascending'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'order_by'] = opts[:'order_by'] if !opts[:'order_by'].nil? query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['oauth2'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'PageDailyDeposit') if @api_client.config.debugging @api_client.config.logger.debug "API called: FundingApi#get_deposit_all_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def index\n @withdrawal_requests = WithdrawalRequest.all\n end", "def index\r\n @deposits = []\r\n if current_user.admin?\r\n @deposits = Deposit.all\r\n else\r\n @deposits = Deposit.where(user_id: current_accounts.collect{|x| x.acct_number})\r\n end\r\n end", "def index\n @de...
[ "0.63471955", "0.62825346", "0.62321705", "0.59783727", "0.58232933", "0.5811041", "0.57874626", "0.568343", "0.563541", "0.5588236", "0.5576407", "0.54975325", "0.5496151", "0.53973955", "0.53868765", "0.5348374", "0.5348374", "0.5343773", "0.53406334", "0.5339526", "0.53251...
0.5357852
15
Retrieve a deposit request Retrieve the information for a deposit request for an account.
def get_deposit_using_get(deposit_id, opts = {}) data, _status_code, _headers = get_deposit_using_get_with_http_info(deposit_id, opts) data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def deposit_params\n params.fetch(:deposit, {})\n end", "def deposit_address(currency = 'XBt')\n get 'depositAddress', currency: currency do |response|\n raise response.body unless response.success?\n\n response.to_s\n end\n end", "def deposit_params\n params.require(:de...
[ "0.6719269", "0.6287443", "0.6159374", "0.61368144", "0.5991727", "0.59690815", "0.59319556", "0.59319556", "0.590638", "0.58375466", "0.5827331", "0.5799487", "0.5736957", "0.5691128", "0.5691128", "0.5691128", "0.5691128", "0.5673719", "0.56470734", "0.56163794", "0.5604380...
0.5652285
18
Retrieve a deposit request Retrieve the information for a deposit request for an account.
def get_deposit_using_get_with_http_info(deposit_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FundingApi.get_deposit_using_get ...' end # verify the required parameter 'deposit_id' is set if @api_client.config.client_side_validation && deposit_id.nil? fail ArgumentError, "Missing the required parameter 'deposit_id' when calling FundingApi.get_deposit_using_get" end # resource path local_var_path = '/deposit/{deposit_id}'.sub('{' + 'deposit_id' + '}', deposit_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['oauth2'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'DailyDeposit') if @api_client.config.debugging @api_client.config.logger.debug "API called: FundingApi#get_deposit_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def deposit_params\n params.fetch(:deposit, {})\n end", "def deposit_address(currency = 'XBt')\n get 'depositAddress', currency: currency do |response|\n raise response.body unless response.success?\n\n response.to_s\n end\n end", "def deposit_params\n params.require(:de...
[ "0.6717783", "0.6285985", "0.61575615", "0.6135", "0.59886956", "0.59671825", "0.5929318", "0.5929318", "0.59061474", "0.58343756", "0.5825787", "0.57998866", "0.5688927", "0.5688927", "0.5688927", "0.5688927", "0.5672548", "0.5651962", "0.564551", "0.5614204", "0.5602977", ...
0.5737493
12
List all funding requests Get the information for all funding requests defined for your firm.
def get_funding_all_using_get(opts = {}) data, _status_code, _headers = get_funding_all_using_get_with_http_info(opts) data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def index\n @funding_requirements = FundingRequirement.all\n end", "def index\n @withdrawal_requests = WithdrawalRequest.all\n end", "def index\n @payment_requests = PaymentRequest.all\n end", "def get_report_request_list(params = {})\n response = get(\"/\", {\"Action\" => \"GetReportReque...
[ "0.63805526", "0.6193559", "0.61349547", "0.60861415", "0.60680467", "0.60585934", "0.6052367", "0.60332817", "0.59450996", "0.5910712", "0.59099305", "0.58712184", "0.5864934", "0.58556074", "0.5851711", "0.5829157", "0.5829157", "0.5829157", "0.5829157", "0.5829157", "0.582...
0.5301764
75
List all funding requests Get the information for all funding requests defined for your firm.
def get_funding_all_using_get_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FundingApi.get_funding_all_using_get ...' end # resource path local_var_path = '/funding' # query parameters query_params = {} query_params[:'ascending'] = opts[:'ascending'] if !opts[:'ascending'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'order_by'] = opts[:'order_by'] if !opts[:'order_by'].nil? query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['oauth2'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'PageFunding') if @api_client.config.debugging @api_client.config.logger.debug "API called: FundingApi#get_funding_all_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def index\n @funding_requirements = FundingRequirement.all\n end", "def index\n @withdrawal_requests = WithdrawalRequest.all\n end", "def index\n @payment_requests = PaymentRequest.all\n end", "def get_report_request_list(params = {})\n response = get(\"/\", {\"Action\" => \"GetReportReque...
[ "0.63814086", "0.61939776", "0.61357236", "0.60844773", "0.60692334", "0.6058223", "0.6054025", "0.6031615", "0.594561", "0.59104633", "0.5909453", "0.5871189", "0.5865091", "0.5856821", "0.5849684", "0.5830188", "0.5828847", "0.5828847", "0.5828847", "0.5828847", "0.5828847"...
0.0
-1
Retrieve a funding request Retrieve the information for a funding request for an account.
def get_funding_using_get(funding_id, opts = {}) data, _status_code, _headers = get_funding_using_get_with_http_info(funding_id, opts) data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def funding_info(symbol = \"fUSD\")\n authenticated_post(\"auth/r/funding/#{symbol}\").body\n end", "def account_retrieve_request(accountid, opts = {})\n data, _status_code, _headers = account_retrieve_request_with_http_info(accountid, opts)\n data\n end", "def show\n @withdrawal_reques...
[ "0.6372805", "0.6129305", "0.57418376", "0.56659204", "0.56525236", "0.56363213", "0.5616549", "0.5574062", "0.5529961", "0.55298406", "0.55147386", "0.5504926", "0.5457111", "0.543169", "0.54185104", "0.54085726", "0.53998727", "0.53904265", "0.5373133", "0.5359841", "0.5355...
0.0
-1
Retrieve a funding request Retrieve the information for a funding request for an account.
def get_funding_using_get_with_http_info(funding_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FundingApi.get_funding_using_get ...' end # verify the required parameter 'funding_id' is set if @api_client.config.client_side_validation && funding_id.nil? fail ArgumentError, "Missing the required parameter 'funding_id' when calling FundingApi.get_funding_using_get" end # resource path local_var_path = '/funding/{funding_id}'.sub('{' + 'funding_id' + '}', funding_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['oauth2'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Funding') if @api_client.config.debugging @api_client.config.logger.debug "API called: FundingApi#get_funding_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def funding_info(symbol = \"fUSD\")\n authenticated_post(\"auth/r/funding/#{symbol}\").body\n end", "def account_retrieve_request(accountid, opts = {})\n data, _status_code, _headers = account_retrieve_request_with_http_info(accountid, opts)\n data\n end", "def show\n @withdrawal_reques...
[ "0.6374747", "0.6130914", "0.5741404", "0.56680644", "0.56523025", "0.5634599", "0.5618871", "0.5573102", "0.55299133", "0.5529145", "0.5517876", "0.55041087", "0.54589856", "0.54320115", "0.54218286", "0.5409852", "0.53988165", "0.53928864", "0.5372258", "0.53619975", "0.535...
0.53525627
21
List all transfer requests Get the information for all external account transfers defined for your firm.
def get_transfer_all_using_get(opts = {}) data, _status_code, _headers = get_transfer_all_using_get_with_http_info(opts) data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def transfers\n # Requires authorization\n raise PutioError::AuthorizationRequired if authentication_required!\n\n make_get_call('/transfers/list').transfers\n end", "def transfers\n self.ListTransfers.first.map { |t| map_transfer(t) }\n end", "def index\n @transfers = @ban...
[ "0.684995", "0.63272333", "0.62282914", "0.617749", "0.61575663", "0.61208284", "0.61208284", "0.61208284", "0.61208284", "0.60915756", "0.6084944", "0.5998348", "0.5979354", "0.59631544", "0.5882483", "0.58457875", "0.5829131", "0.5814266", "0.5768887", "0.57557774", "0.5726...
0.6118753
9
List all transfer requests Get the information for all external account transfers defined for your firm.
def get_transfer_all_using_get_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FundingApi.get_transfer_all_using_get ...' end # resource path local_var_path = '/transfer' # query parameters query_params = {} query_params[:'ascending'] = opts[:'ascending'] if !opts[:'ascending'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'order_by'] = opts[:'order_by'] if !opts[:'order_by'].nil? query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['oauth2'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'PageExternalAccountTransfer') if @api_client.config.debugging @api_client.config.logger.debug "API called: FundingApi#get_transfer_all_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def transfers\n # Requires authorization\n raise PutioError::AuthorizationRequired if authentication_required!\n\n make_get_call('/transfers/list').transfers\n end", "def transfers\n self.ListTransfers.first.map { |t| map_transfer(t) }\n end", "def index\n @transfers = @ban...
[ "0.6851476", "0.63277435", "0.62291217", "0.6174026", "0.61205834", "0.61205834", "0.61205834", "0.61205834", "0.6118567", "0.6089879", "0.60837704", "0.5999111", "0.597932", "0.59628314", "0.58815813", "0.5846051", "0.58292353", "0.5814109", "0.5770009", "0.57523006", "0.572...
0.61583316
4
Retrieve a transfer request Retrieve the information for a external account transfer for an account.
def get_transfer_using_get(external_account_transfer_id, transfer_id, opts = {}) data, _status_code, _headers = get_transfer_using_get_with_http_info(external_account_transfer_id, transfer_id, opts) data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def find_transfer_request\n @transfer_request = OwnershipTransferRequest.find_by!(\n token: params[:token],\n accepted: nil\n )\n end", "def get_transfer_all_using_get_with_http_info(opts = {})\n if @api_client.config.debugging\n @api_client.config.logger.debug 'Calling API: FundingA...
[ "0.6875093", "0.63636005", "0.628862", "0.6241094", "0.6239518", "0.60459405", "0.60222733", "0.6002589", "0.59422624", "0.5884017", "0.5850932", "0.5850932", "0.5843353", "0.5813163", "0.5790931", "0.5764787", "0.57580787", "0.5746696", "0.57226735", "0.5661927", "0.56389177...
0.5808541
14
Retrieve a transfer request Retrieve the information for a external account transfer for an account.
def get_transfer_using_get_with_http_info(external_account_transfer_id, transfer_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FundingApi.get_transfer_using_get ...' end # verify the required parameter 'external_account_transfer_id' is set if @api_client.config.client_side_validation && external_account_transfer_id.nil? fail ArgumentError, "Missing the required parameter 'external_account_transfer_id' when calling FundingApi.get_transfer_using_get" end # verify the required parameter 'transfer_id' is set if @api_client.config.client_side_validation && transfer_id.nil? fail ArgumentError, "Missing the required parameter 'transfer_id' when calling FundingApi.get_transfer_using_get" end # resource path local_var_path = '/transfer/{transfer_id}'.sub('{' + 'external_account_transfer_id' + '}', external_account_transfer_id.to_s).sub('{' + 'transfer_id' + '}', transfer_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['oauth2'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ExternalAccountTransfer') if @api_client.config.debugging @api_client.config.logger.debug "API called: FundingApi#get_transfer_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def find_transfer_request\n @transfer_request = OwnershipTransferRequest.find_by!(\n token: params[:token],\n accepted: nil\n )\n end", "def get_transfer_all_using_get_with_http_info(opts = {})\n if @api_client.config.debugging\n @api_client.config.logger.debug 'Calling API: FundingA...
[ "0.6874366", "0.63650644", "0.6288946", "0.6241286", "0.60468584", "0.6023101", "0.6003078", "0.5941475", "0.5885231", "0.58512115", "0.58512115", "0.58432204", "0.58137774", "0.5808861", "0.579139", "0.5764138", "0.57580864", "0.57462454", "0.5723158", "0.5662665", "0.564014...
0.62397766
4
List all withdrawal requests Get the information for all withdrawal requests for all clients.
def get_withdrawal_all_using_get(opts = {}) data, _status_code, _headers = get_withdrawal_all_using_get_with_http_info(opts) data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def index\n @withdrawal_requests = WithdrawalRequest.all\n end", "def index\n @much_withdraws = MuchWithdraw.all\n end", "def index\n @withdraws = Withdraw.all\n end", "def all_booking_of_client\n\t\t@bookings = Booking.where(client_id: params[:client_id])\n\t\trender json: @bookings, status: 200...
[ "0.7342179", "0.6188474", "0.6171893", "0.58990806", "0.5897871", "0.57259923", "0.567702", "0.5675963", "0.5645781", "0.5616344", "0.5561861", "0.55597854", "0.55315596", "0.55263156", "0.55129564", "0.53833824", "0.53606117", "0.53596205", "0.5357639", "0.5349493", "0.53440...
0.66763794
1
List all withdrawal requests Get the information for all withdrawal requests for all clients.
def get_withdrawal_all_using_get_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FundingApi.get_withdrawal_all_using_get ...' end # resource path local_var_path = '/withdrawal' # query parameters query_params = {} query_params[:'ascending'] = opts[:'ascending'] if !opts[:'ascending'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'order_by'] = opts[:'order_by'] if !opts[:'order_by'].nil? query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['oauth2'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'PageDailyWithdrawal') if @api_client.config.debugging @api_client.config.logger.debug "API called: FundingApi#get_withdrawal_all_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def index\n @withdrawal_requests = WithdrawalRequest.all\n end", "def get_withdrawal_all_using_get(opts = {})\n data, _status_code, _headers = get_withdrawal_all_using_get_with_http_info(opts)\n data\n end", "def index\n @much_withdraws = MuchWithdraw.all\n end", "def index\n @withdra...
[ "0.7339829", "0.6673432", "0.618346", "0.6166466", "0.5896824", "0.5725486", "0.5675171", "0.56741035", "0.5641606", "0.5613612", "0.5562732", "0.5554906", "0.55305636", "0.5525584", "0.5513888", "0.5384375", "0.53604126", "0.5358674", "0.53547835", "0.5348226", "0.53440213",...
0.5895231
5
Retrieve a withdrawal request Retrieve the information for a withdrawal request for an account.
def get_withdrawal_using_get(withdrawal_id, opts = {}) data, _status_code, _headers = get_withdrawal_using_get_with_http_info(withdrawal_id, opts) data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_withdrawal_info\n # body = {\n # cmd: \"get_withdrawal_info\"\n # }\n\n end", "def set_withdrawal_request\n @withdrawal_request = WithdrawalRequest.find(params[:id])\n end", "def request_withdraw\n kraken = Kraken::Client.new(ENV['KRAKEN_PUBLIC_KEY'], ENV['KRAKEN_SECRET_K...
[ "0.6534855", "0.64733803", "0.6418738", "0.635273", "0.6308563", "0.6085628", "0.60030323", "0.5973651", "0.5868122", "0.58397907", "0.5730804", "0.562311", "0.5606562", "0.5532796", "0.55092716", "0.55033064", "0.54607075", "0.54277086", "0.54214954", "0.5366093", "0.5343463...
0.5832736
10
Retrieve a withdrawal request Retrieve the information for a withdrawal request for an account.
def get_withdrawal_using_get_with_http_info(withdrawal_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FundingApi.get_withdrawal_using_get ...' end # verify the required parameter 'withdrawal_id' is set if @api_client.config.client_side_validation && withdrawal_id.nil? fail ArgumentError, "Missing the required parameter 'withdrawal_id' when calling FundingApi.get_withdrawal_using_get" end # resource path local_var_path = '/withdrawal/{withdrawal_id}'.sub('{' + 'withdrawal_id' + '}', withdrawal_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['oauth2'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'DailyWithdrawal') if @api_client.config.debugging @api_client.config.logger.debug "API called: FundingApi#get_withdrawal_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_withdrawal_info\n # body = {\n # cmd: \"get_withdrawal_info\"\n # }\n\n end", "def set_withdrawal_request\n @withdrawal_request = WithdrawalRequest.find(params[:id])\n end", "def request_withdraw\n kraken = Kraken::Client.new(ENV['KRAKEN_PUBLIC_KEY'], ENV['KRAKEN_SECRET_K...
[ "0.65385425", "0.647263", "0.64172685", "0.6353222", "0.6308872", "0.60868394", "0.60030633", "0.5869067", "0.58402085", "0.5835612", "0.5732203", "0.56251436", "0.56071246", "0.55331945", "0.550928", "0.5505162", "0.5462498", "0.5429687", "0.54212004", "0.5365481", "0.534536...
0.5976788
7
Update list of bank link Update bank link list for an account.
def update_bank_link_bulk_using_put(bank_link_list, opts = {}) data, _status_code, _headers = update_bank_link_bulk_using_put_with_http_info(bank_link_list, opts) data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update_bank_link_bulk_using_put_with_http_info(bank_link_list, opts = {})\n if @api_client.config.debugging\n @api_client.config.logger.debug 'Calling API: FundingApi.update_bank_link_bulk_using_put ...'\n end\n # verify the required parameter 'bank_link_list' is set\n if @api_client...
[ "0.672349", "0.6050922", "0.5707917", "0.5584915", "0.5556059", "0.5535109", "0.55056554", "0.54573333", "0.54427135", "0.5441028", "0.53985", "0.53967726", "0.53896075", "0.5363431", "0.53425", "0.53012705", "0.52840555", "0.5264315", "0.5212684", "0.52078146", "0.52017343",...
0.7085857
0
Update list of bank link Update bank link list for an account.
def update_bank_link_bulk_using_put_with_http_info(bank_link_list, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FundingApi.update_bank_link_bulk_using_put ...' end # verify the required parameter 'bank_link_list' is set if @api_client.config.client_side_validation && bank_link_list.nil? fail ArgumentError, "Missing the required parameter 'bank_link_list' when calling FundingApi.update_bank_link_bulk_using_put" end # resource path local_var_path = '/bulk_bank_link' # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(bank_link_list) auth_names = ['oauth2'] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Array<BankLink>') if @api_client.config.debugging @api_client.config.logger.debug "API called: FundingApi#update_bank_link_bulk_using_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update_bank_link_bulk_using_put(bank_link_list, opts = {})\n data, _status_code, _headers = update_bank_link_bulk_using_put_with_http_info(bank_link_list, opts)\n data\n end", "def link_bank_account(bank_name:, label:, account_number:, currency:, holder_name:, city:, country_code:, password:,\n ...
[ "0.70874745", "0.6049672", "0.57080156", "0.55840385", "0.5556267", "0.55355734", "0.55048144", "0.5457487", "0.5443451", "0.5439551", "0.5399867", "0.5396714", "0.5390818", "0.5363541", "0.5342164", "0.53002006", "0.5284777", "0.5265291", "0.5212078", "0.5208632", "0.5201704...
0.6724449
1
Update a bank link Update the information for a bank link for an account.
def update_bank_link_using_put(bank_link, bank_link_id, opts = {}) data, _status_code, _headers = update_bank_link_using_put_with_http_info(bank_link, bank_link_id, opts) data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update_bank_link_using_put(nucleus_bank_link_id, opts = {})\n data, _status_code, _headers = update_bank_link_using_put_with_http_info(nucleus_bank_link_id, opts)\n data\n end", "def update\n respond_to do |format|\n if @account_link.update(account_link_params)\n format.html { red...
[ "0.70257574", "0.6961263", "0.6940734", "0.6885115", "0.6578929", "0.6510926", "0.6464525", "0.64187294", "0.6390189", "0.635466", "0.63058996", "0.6301091", "0.6294175", "0.6216461", "0.619282", "0.6146359", "0.6141957", "0.6141957", "0.6114265", "0.6047445", "0.6035895", ...
0.673473
4
Update a bank link Update the information for a bank link for an account.
def update_bank_link_using_put_with_http_info(bank_link, bank_link_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FundingApi.update_bank_link_using_put ...' end # verify the required parameter 'bank_link' is set if @api_client.config.client_side_validation && bank_link.nil? fail ArgumentError, "Missing the required parameter 'bank_link' when calling FundingApi.update_bank_link_using_put" end # verify the required parameter 'bank_link_id' is set if @api_client.config.client_side_validation && bank_link_id.nil? fail ArgumentError, "Missing the required parameter 'bank_link_id' when calling FundingApi.update_bank_link_using_put" end # resource path local_var_path = '/bank_link/{bank_link_id}'.sub('{' + 'bank_link_id' + '}', bank_link_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(bank_link) auth_names = ['oauth2'] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'BankLink') if @api_client.config.debugging @api_client.config.logger.debug "API called: FundingApi#update_bank_link_using_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update_bank_link_using_put(nucleus_bank_link_id, opts = {})\n data, _status_code, _headers = update_bank_link_using_put_with_http_info(nucleus_bank_link_id, opts)\n data\n end", "def update\n respond_to do |format|\n if @account_link.update(account_link_params)\n format.html { red...
[ "0.7025315", "0.69625604", "0.69390297", "0.67331266", "0.65773535", "0.65120316", "0.646654", "0.6415357", "0.6389958", "0.6352925", "0.6308479", "0.630241", "0.629654", "0.6215503", "0.6189913", "0.61472124", "0.6139256", "0.6139256", "0.611519", "0.60483634", "0.603677", ...
0.68834114
3
Update a deposit request Update the information for a deposit request for an account.
def update_deposit_using_put(deposit, deposit_id, opts = {}) data, _status_code, _headers = update_deposit_using_put_with_http_info(deposit, deposit_id, opts) data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update\n respond_to do |format|\n if @deposit.update(deposit_params)\n format.html { redirect_to @deposit, notice: 'Deposit was successfully updated.' }\n format.json { render :show, status: :ok, location: @deposit }\n else\n format.html { render :edit }\n format.json {...
[ "0.70461684", "0.7009711", "0.6988374", "0.6835435", "0.67584056", "0.6699302", "0.6639999", "0.6616491", "0.6566565", "0.6506671", "0.64565885", "0.64487296", "0.637305", "0.63722867", "0.63418496", "0.63418394", "0.6305413", "0.62565994", "0.6233148", "0.6215691", "0.620890...
0.0
-1
Update a deposit request Update the information for a deposit request for an account.
def update_deposit_using_put_with_http_info(deposit, deposit_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FundingApi.update_deposit_using_put ...' end # verify the required parameter 'deposit' is set if @api_client.config.client_side_validation && deposit.nil? fail ArgumentError, "Missing the required parameter 'deposit' when calling FundingApi.update_deposit_using_put" end # verify the required parameter 'deposit_id' is set if @api_client.config.client_side_validation && deposit_id.nil? fail ArgumentError, "Missing the required parameter 'deposit_id' when calling FundingApi.update_deposit_using_put" end # resource path local_var_path = '/deposit/{deposit_id}'.sub('{' + 'deposit_id' + '}', deposit_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(deposit) auth_names = ['oauth2'] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'DailyDeposit') if @api_client.config.debugging @api_client.config.logger.debug "API called: FundingApi#update_deposit_using_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update\n respond_to do |format|\n if @deposit.update(deposit_params)\n format.html { redirect_to @deposit, notice: 'Deposit was successfully updated.' }\n format.json { render :show, status: :ok, location: @deposit }\n else\n format.html { render :edit }\n format.json {...
[ "0.70459896", "0.7009515", "0.6988215", "0.68346775", "0.67577964", "0.669871", "0.6639192", "0.6616111", "0.6567167", "0.6507293", "0.64570963", "0.6447935", "0.6373474", "0.6371759", "0.63424456", "0.63414377", "0.6305344", "0.625569", "0.6231631", "0.6215891", "0.62076885"...
0.6147662
25
Update a funding request Update the information for a funding request for an account.
def update_funding_using_put(funding, funding_id, opts = {}) data, _status_code, _headers = update_funding_using_put_with_http_info(funding, funding_id, opts) data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update\n respond_to do |format|\n if @fund_request.update_attributes(params[:fund_request])\n flash[:notice] = 'Fund request was successfully updated.'\n format.html { redirect_to @fund_request }\n format.xml { head :ok }\n else\n format.html { render :action => \"edit...
[ "0.7256955", "0.70256186", "0.68820506", "0.6850422", "0.66334075", "0.66232646", "0.6612294", "0.66017157", "0.6600915", "0.65072984", "0.64917916", "0.6472267", "0.64522153", "0.6426271", "0.6394575", "0.637948", "0.637948", "0.6373777", "0.63678414", "0.62864923", "0.62816...
0.0
-1
Update a funding request Update the information for a funding request for an account.
def update_funding_using_put_with_http_info(funding, funding_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FundingApi.update_funding_using_put ...' end # verify the required parameter 'funding' is set if @api_client.config.client_side_validation && funding.nil? fail ArgumentError, "Missing the required parameter 'funding' when calling FundingApi.update_funding_using_put" end # verify the required parameter 'funding_id' is set if @api_client.config.client_side_validation && funding_id.nil? fail ArgumentError, "Missing the required parameter 'funding_id' when calling FundingApi.update_funding_using_put" end # resource path local_var_path = '/funding/{funding_id}'.sub('{' + 'funding_id' + '}', funding_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(funding) auth_names = ['oauth2'] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Funding') if @api_client.config.debugging @api_client.config.logger.debug "API called: FundingApi#update_funding_using_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update\n respond_to do |format|\n if @fund_request.update_attributes(params[:fund_request])\n flash[:notice] = 'Fund request was successfully updated.'\n format.html { redirect_to @fund_request }\n format.xml { head :ok }\n else\n format.html { render :action => \"edit...
[ "0.7257242", "0.70262265", "0.6881574", "0.68500507", "0.6634919", "0.66256374", "0.66143996", "0.66033113", "0.6601428", "0.65098894", "0.6491153", "0.6472818", "0.6453328", "0.64294386", "0.63963", "0.63817847", "0.63817847", "0.63760084", "0.63676506", "0.62859726", "0.628...
0.0
-1
Update a transfer request Update the information for a external account transfer for a client account.
def update_transfer_using_put(transfer, transfer_id, opts = {}) data, _status_code, _headers = update_transfer_using_put_with_http_info(transfer, transfer_id, opts) data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update\n respond_to do |format|\n if @account_transfer.update(account_transfer_params)\n format.html { redirect_to @account_transfer, notice: 'Account transfer was successfully updated.' }\n format.json { render :show, status: :ok, location: @account_transfer }\n else\n format...
[ "0.6770215", "0.6655886", "0.6595873", "0.65953696", "0.65064377", "0.6378167", "0.6378167", "0.6131681", "0.6101896", "0.60008264", "0.59357226", "0.59145266", "0.59085333", "0.58441687", "0.58107316", "0.57885534", "0.5788241", "0.57350695", "0.57135385", "0.56737226", "0.5...
0.5151826
94
Update a transfer request Update the information for a external account transfer for a client account.
def update_transfer_using_put_with_http_info(transfer, transfer_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FundingApi.update_transfer_using_put ...' end # verify the required parameter 'transfer' is set if @api_client.config.client_side_validation && transfer.nil? fail ArgumentError, "Missing the required parameter 'transfer' when calling FundingApi.update_transfer_using_put" end # verify the required parameter 'transfer_id' is set if @api_client.config.client_side_validation && transfer_id.nil? fail ArgumentError, "Missing the required parameter 'transfer_id' when calling FundingApi.update_transfer_using_put" end # resource path local_var_path = '/transfer/{transfer_id}'.sub('{' + 'transfer_id' + '}', transfer_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(transfer) auth_names = ['oauth2'] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ExternalAccountTransfer') if @api_client.config.debugging @api_client.config.logger.debug "API called: FundingApi#update_transfer_using_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update\n respond_to do |format|\n if @account_transfer.update(account_transfer_params)\n format.html { redirect_to @account_transfer, notice: 'Account transfer was successfully updated.' }\n format.json { render :show, status: :ok, location: @account_transfer }\n else\n format...
[ "0.6771298", "0.6656496", "0.65965223", "0.6595747", "0.6378813", "0.6378813", "0.61324805", "0.610193", "0.60018283", "0.59354496", "0.5914121", "0.5909695", "0.5845172", "0.5810193", "0.57895005", "0.57872087", "0.5734356", "0.5712527", "0.567319", "0.56644595", "0.5662235"...
0.65058565
4
Update a withdrawal request Update the information for a withdrawal request for an account.
def update_withdrawal_using_put(withdrawal, withdrawal_id, opts = {}) data, _status_code, _headers = update_withdrawal_using_put_with_http_info(withdrawal, withdrawal_id, opts) data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update\n @withdrawal_request = WithdrawalRequest.find(params[:id])\n\n respond_to do |format|\n if @withdrawal_request.update_attributes(params[:withdrawal_request])\n format.html { redirect_to @withdrawal_request, notice: 'Withdrawal request was successfully updated.' }\n format.json ...
[ "0.7440647", "0.7318508", "0.6976964", "0.69674826", "0.66605806", "0.66204864", "0.6586172", "0.65551156", "0.65456176", "0.6492674", "0.62883186", "0.6222611", "0.61982113", "0.6181987", "0.6155083", "0.61225724", "0.6107076", "0.6103508", "0.6097805", "0.6090109", "0.60787...
0.55208176
100
Update a withdrawal request Update the information for a withdrawal request for an account.
def update_withdrawal_using_put_with_http_info(withdrawal, withdrawal_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FundingApi.update_withdrawal_using_put ...' end # verify the required parameter 'withdrawal' is set if @api_client.config.client_side_validation && withdrawal.nil? fail ArgumentError, "Missing the required parameter 'withdrawal' when calling FundingApi.update_withdrawal_using_put" end # verify the required parameter 'withdrawal_id' is set if @api_client.config.client_side_validation && withdrawal_id.nil? fail ArgumentError, "Missing the required parameter 'withdrawal_id' when calling FundingApi.update_withdrawal_using_put" end # resource path local_var_path = '/withdrawal/{withdrawal_id}'.sub('{' + 'withdrawal_id' + '}', withdrawal_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(withdrawal) auth_names = ['oauth2'] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'DailyWithdrawal') if @api_client.config.debugging @api_client.config.logger.debug "API called: FundingApi#update_withdrawal_using_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update\n @withdrawal_request = WithdrawalRequest.find(params[:id])\n\n respond_to do |format|\n if @withdrawal_request.update_attributes(params[:withdrawal_request])\n format.html { redirect_to @withdrawal_request, notice: 'Withdrawal request was successfully updated.' }\n format.json ...
[ "0.7440575", "0.7317925", "0.69757926", "0.69660026", "0.6615684", "0.6583506", "0.65535516", "0.6544635", "0.64920306", "0.62909985", "0.6226156", "0.61976004", "0.61819226", "0.615669", "0.61232865", "0.6108062", "0.6104553", "0.6097588", "0.6092668", "0.6081209", "0.60651"...
0.6661119
4
p sluggish_octopus(['fish', 'fiiish', 'fiiiiish', 'fiiiish', 'fffish', 'ffiiiiisshh', 'fsh', 'fiiiissshhhhhh'])
def dominant_octopus(fishes) return fishes if fishes.length == 1 mid = fishes.length / 2 left = dominant_octopus(fishes[0...mid]) right = dominant_octopus(fishes[mid..-1]) consume(left, right) end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sluggish_octopus(fish)\n\n (0...fish.length-1).each do |idx1|\n (idx1+1...fish.length).each do |idx2|\n if fish[idx1].length > fish[idx2].length\n fish[idx1], fish[idx2] = fish[idx2], fish[idx1]\n end\n end\n end\n fish\nend", "def sluggish_octopus(fish)\n longest_fish = fish[0]\n ...
[ "0.7966459", "0.75111884", "0.7407216", "0.7229938", "0.7223012", "0.707634", "0.7071507", "0.7061929", "0.7053371", "0.6984345", "0.6920425", "0.68561804", "0.6854944", "0.6814164", "0.6740649", "0.67370385", "0.6731736", "0.66613185", "0.66363424", "0.6585621", "0.6457187",...
0.5451371
89
a where clause is built up of multiple 'relations'
def relations @relations ||= {} end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def and_relation(relation)\n q = all\n q = q.where(relation.where_clause.ast) if relation.where_clause.present?\n q = q.joins(relation.joins_values + q.joins_values) if relation.joins_values.present?\n q = q.order(relation.order_values) if relation.order_values.present?\n q\n end", "def get_relat...
[ "0.7105104", "0.67804855", "0.6717825", "0.6534993", "0.6534993", "0.6505378", "0.6493572", "0.645749", "0.64306283", "0.63952446", "0.6379881", "0.6296231", "0.6294054", "0.627963", "0.62784165", "0.6275992", "0.62729234", "0.62394565", "0.623854", "0.6219479", "0.6215433", ...
0.0
-1
a where clause is built up of multiple 'relations'
def relations self.class.relations end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def and_relation(relation)\n q = all\n q = q.where(relation.where_clause.ast) if relation.where_clause.present?\n q = q.joins(relation.joins_values + q.joins_values) if relation.joins_values.present?\n q = q.order(relation.order_values) if relation.order_values.present?\n q\n end", "def get_relat...
[ "0.7104002", "0.6779679", "0.67186695", "0.65336263", "0.65336263", "0.65067697", "0.6494175", "0.64585495", "0.64312387", "0.6396047", "0.63801026", "0.62961286", "0.6293301", "0.62803453", "0.62788904", "0.62749666", "0.627393", "0.6240231", "0.62399465", "0.6220693", "0.62...
0.0
-1
GET /black_lists GET /black_lists.json
def index @black_lists = BlackList.order(:number).page(params[:page]).per(10) respond_to do |format| format.html # index.html.erb format.json { render json: @black_lists } format.csv { send_data @black_lists.map(&:number).join("\n"), {:type => 'csv/plain', :disposition => 'inline', :filename => "black_list[#{Date.today}].csv"} } end end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def show\n @black_list = BlackList.find(params[:id])\n\n respond_to do |format|\n format.html # show.html.erb\n format.json { render json: @black_list }\n end\n end", "def show\n @blacklist = Blacklist.find(params[:id])\n\n respond_to do |format|\n format.html # show.html.erb\n ...
[ "0.7606601", "0.7571222", "0.71498835", "0.6959587", "0.6957958", "0.6893947", "0.6884174", "0.6757674", "0.6667723", "0.66645825", "0.6526788", "0.6506102", "0.6490488", "0.64794886", "0.644249", "0.6374544", "0.6362118", "0.6357192", "0.63526493", "0.6319163", "0.6293777", ...
0.6371672
16
GET /black_lists/1 GET /black_lists/1.json
def show @black_list = BlackList.find(params[:id]) respond_to do |format| format.html # show.html.erb format.json { render json: @black_list } end end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def show\n @blacklist = Blacklist.find(params[:id])\n\n respond_to do |format|\n format.html # show.html.erb\n format.json { render json: @blacklist }\n end\n end", "def new\n @black_list = BlackList.new\n\n respond_to do |format|\n format.html # new.html.erb\n format.json { r...
[ "0.76884764", "0.7150283", "0.69965285", "0.69807684", "0.681036", "0.67937493", "0.6699978", "0.66391426", "0.66382664", "0.65981174", "0.643926", "0.6421591", "0.63691807", "0.63553274", "0.63502246", "0.6320375", "0.6296642", "0.6282435", "0.6249242", "0.6201639", "0.61382...
0.78576297
0
GET /black_lists/new GET /black_lists/new.json
def new @black_list = BlackList.new respond_to do |format| format.html # new.html.erb format.json { render json: @black_list } end end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def new\n @blacklist = Blacklist.new\n\n respond_to do |format|\n format.html # new.html.erb\n format.json { render json: @blacklist }\n end\n end", "def create\n @black_list = BlackList.new(params[:black_list])\n\n respond_to do |format|\n if @black_list.save\n format.html ...
[ "0.82064253", "0.7813561", "0.7585804", "0.74602515", "0.73515296", "0.7297954", "0.7280964", "0.7280964", "0.7280964", "0.71388394", "0.70926243", "0.7043207", "0.7013527", "0.69634354", "0.6955191", "0.6954286", "0.6930541", "0.6925724", "0.6907168", "0.6878634", "0.6860746...
0.8187549
1
POST /black_lists POST /black_lists.json
def create @black_list = BlackList.new(params[:black_list]) respond_to do |format| if @black_list.save format.html { redirect_to black_lists_path, notice: 'Balck list was successfully created.' } format.json { render json: @black_list, status: :created, location: @black_list } else format.html { render action: "new" } format.json { render json: @black_list.errors, status: :unprocessable_entity } end end end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create\n @blacklist = Blacklist.new(params[:blacklist])\n\n respond_to do |format|\n if @blacklist.save\n format.html { redirect_to @blacklist, notice: 'Blacklist was successfully created.' }\n format.json { render json: @blacklist, status: :created, location: @blacklist }\n else\...
[ "0.7394924", "0.68022126", "0.6723754", "0.66671205", "0.63929284", "0.63691187", "0.63277215", "0.62121797", "0.6187565", "0.6154901", "0.611696", "0.6108865", "0.6108658", "0.61011916", "0.6031926", "0.60102385", "0.5991526", "0.5984129", "0.59670246", "0.5958957", "0.59384...
0.7814407
0
PUT /black_lists/1 PUT /black_lists/1.json
def update @black_list = BlackList.find(params[:id]) respond_to do |format| if @black_list.update_attributes(params[:black_list]) format.html { redirect_to black_lists_path, notice: 'Balck list was successfully updated.' } format.json { head :no_content } else format.html { render action: "edit" } format.json { render json: @black_list.errors, status: :unprocessable_entity } end end end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update\n @blacklist = Blacklist.find(params[:id])\n\n respond_to do |format|\n if @blacklist.update_attributes(params[:blacklist])\n format.html { redirect_to @blacklist, notice: 'Blacklist was successfully updated.' }\n format.json { head :no_content }\n else\n format.html...
[ "0.7326447", "0.7101784", "0.705291", "0.68073195", "0.66955626", "0.6555311", "0.6489707", "0.64194965", "0.6400986", "0.6361287", "0.6309922", "0.61601275", "0.6138603", "0.6138203", "0.60965794", "0.6056733", "0.6047029", "0.60379565", "0.6006771", "0.5992117", "0.5981573"...
0.77167857
0
DELETE /black_lists/1 DELETE /black_lists/1.json
def destroy @black_list = BlackList.find(params[:id]) @black_list.destroy respond_to do |format| format.html { redirect_to black_lists_url } format.json { head :no_content } end end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def destroy\n @blacklist = Blacklist.find(params[:id])\n @blacklist.destroy\n\n respond_to do |format|\n format.html { redirect_to blacklists_url }\n format.json { head :no_content }\n end\n end", "def destroy\n @blacklist = Blacklist.find(params[:id])\n @blacklist.destroy\n\n res...
[ "0.77077854", "0.737176", "0.73088527", "0.7001715", "0.69912773", "0.69650865", "0.6900274", "0.6871034", "0.6843335", "0.6843335", "0.6843335", "0.682786", "0.68017095", "0.68017095", "0.68017095", "0.6793601", "0.6789172", "0.67857486", "0.6778353", "0.6761243", "0.6741552...
0.7852992
0
outputs the object in correctly formatted XML suitable for use in a search
def to_s constraints = String.new @value_constraints.each do |key, value| constraints << <<-XML <constraint name="#{key.gsub(/\s/, '_')}"> <value> <element ns="#{value["namespace"]}" name="#{value["element"]}"/> </value> </constraint> XML end @word_constraints.each do |key, value| constraints << <<-XML <constraint name="#{key.gsub(/\s/, '_')}"> <word> <element ns="#{value["namespace"]}" name="#{value["element"]}"/> </word> </constraint> XML end @range_constraints.each do |key, value| constraints << <<-XML <constraint name="#{key.gsub(/\s/, '_')}"> <range type="#{value["type"]}" XML if value.has_key?("collation") constraints << "collation=\"#{value["collation"]}\"" end constraints << <<-XML > <element ns="#{value["namespace"]}" name="#{value["element"]}"/> XML if value.has_key?("computed_buckets") value["computed_buckets"].each do |computed_bucket| constraints << computed_bucket.to_s if computed_bucket.instance_of?(ActiveDocument::MarkLogicSearchOptions::ComputedBucket) end end constraints << "</range></constraint>" end value = <<-XML <options xmlns="http://marklogic.com/appservices/search"> <return-facets>#{@return_facets}</return-facets> XML # add in constraints unless constraints.empty? value << constraints end # close the options node value << "</options>" end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def to_xml\n output=\"\"\n self.to_rexml.write output\n end", "def toxml\n\t\tend", "def to_xml\n\t\tend", "def to_xml\n\t\tend", "def to_xml(obj)\n obj.to_xml\n end", "def to_xml\n Builder.new(self).to_s\n end", "def to_xml\n render_xml\n end", "def x...
[ "0.67915547", "0.6782199", "0.66947", "0.66947", "0.66002303", "0.6535199", "0.6516538", "0.65017617", "0.6365957", "0.6359691", "0.63562393", "0.6303648", "0.6208669", "0.6208669", "0.620697", "0.62029207", "0.61773115", "0.6170081", "0.6153489", "0.61399436", "0.6130004", ...
0.0
-1
IF the current_user is logged_in then it returns that user object value method. THEN if the current_user is not logged_in then it goes to the dataBase to check that
def current_user @current_user ||= User.find(session[:user_id]) if session[:user_id] end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def load_user_if_logged_in\n if user?\n @user = current_user\n else\n @user = nil\n end\n return true\nend", "def logged_in\n logged_in_user != nil\n end", "def logged_in?\n !!getCurrentUser\n end", "def logged_in?\n current_authuser\n end", "def current_user\n # super: don't c...
[ "0.7131942", "0.7070804", "0.7012517", "0.7005385", "0.6990099", "0.69875294", "0.69875294", "0.6977488", "0.6952679", "0.6952679", "0.6952679", "0.6952679", "0.6952679", "0.6952475", "0.69487846", "0.69089997", "0.690204", "0.68989134", "0.6882868", "0.6882868", "0.6882488",...
0.0
-1
Validates if current_user is logged_in
def logged_in? !!@current_user end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def logged_in\n\t \t!current_user.nil?\n\t end", "def logged_in?\n !current_user.blank?\n end", "def logged_in?\n !current_user.nil?\n end", "def logged_in?\n !current_user.nil?\n end", "def logged_in?\n !current_user.nil?\n end", "def logged_in?\n !current_user...
[ "0.78870404", "0.7830259", "0.78174484", "0.78174484", "0.78012556", "0.78012556", "0.78012556", "0.78012556", "0.78012556", "0.78012556", "0.78012556", "0.78012556", "0.78012556", "0.78012556", "0.78012556", "0.78012556", "0.78012556", "0.78012556", "0.78012556", "0.78012556",...
0.0
-1
Validates if current_user has admin privileges
def isAdmin? redirect_to new_session_path, flash: {:error => "Warning! Only Admin privileges"} unless logged_in? !!@current_user.admin end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def admin_required\n self.current_user != :false && \n self.current_user.is_admin? ? true : access_denied\n end", "def admin_required\n current_user.respond_to?('is_admin') && current_user.send('is_admin') || access_denied\n end", "def check_admin_user\n unless current_use...
[ "0.8346213", "0.8315295", "0.82274175", "0.8066618", "0.8048771", "0.80413944", "0.8031294", "0.7991247", "0.7961315", "0.79294276", "0.7929269", "0.79243827", "0.7918534", "0.7918534", "0.79177994", "0.7891477", "0.7885284", "0.7884934", "0.78798336", "0.7873116", "0.7848773...
0.7589052
75