query
stringlengths
9
3.4k
document
stringlengths
9
87.4k
metadata
dict
negatives
listlengths
4
101
negative_scores
listlengths
4
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
To be overridden by implementations.
def _generate(self, feature_map_shape_list, **params): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __call__(self):\n raise NotImplementedError", "def __call__(self):\n raise NotImplementedError()", "def __call__(self):\r\n raise NotImplementedError('override me')", "def __call__(self) -> None:", "def __call__(self):\n\t\treturn", "def __call__(self):\n pass", "def __c...
[ "0.80521446", "0.7815194", "0.77625626", "0.7744578", "0.75818956", "0.7542984", "0.7542984", "0.74783576", "0.74607706", "0.7075571", "0.7047991", "0.7047991", "0.7047991", "0.7047991", "0.688372", "0.688372", "0.688372", "0.6882931", "0.68655974", "0.68574667", "0.68574667"...
0.0
-1
Assert that correct number of anchors was generated.
def _assert_correct_number_of_anchors(self, anchors_list, feature_map_shape_list): expected_num_anchors = 0 actual_num_anchors = 0 for num_anchors_per_location, feature_map_shape, anchors in zip( self.num_anchors_per_location(), feature_map_shape_list, anchors...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def check_num_anchors(self):\n return True", "def test_generation_length(self):\n for i in range(1, 20, 3):\n test_obj = FakeOrderBuilder(n=i).build()\n self.assertIs(len(test_obj), i)", "def num_anchors_per_location(self):\n pass", "def test_vote_generator(self):\n ...
[ "0.7573695", "0.67272305", "0.6482859", "0.6289629", "0.6163478", "0.61331123", "0.6032624", "0.5879324", "0.5873571", "0.5858247", "0.5818788", "0.58075005", "0.57869184", "0.5784455", "0.57567227", "0.57567227", "0.5755385", "0.5755148", "0.57010067", "0.5676276", "0.567553...
0.7683266
0
Convert config files to json format
def cfg2json(cfgfilename, outpath=None): # open cfg file and load up the output dictionary cfg_data = teal.load(cfgfilename, strict=False) del cfg_data['_task_name_'] del cfg_data['_RULES_'] out_dict = {"parameters": cfg_data, "default_values": cfg_data} # build output json filename json_f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def config_to_json(self) -> Dict[str, Any]:\n return self.rsimulator.to_json()", "def save_config_to_json(config, filename):\n with open(filename, 'w+') as f:\n json.dump(vars(config), f)", "def batch_run_cfg2json():\n cfg_path = os.environ.get(\"CFG_FILE_PATH\")\n cfg_list = ['any_n1.cf...
[ "0.72550267", "0.70844626", "0.707302", "0.7045234", "0.69792354", "0.68590236", "0.6772813", "0.67365944", "0.6607201", "0.6573182", "0.6543739", "0.65229434", "0.65171164", "0.6498096", "0.647923", "0.6466979", "0.646243", "0.6421326", "0.6380054", "0.6312768", "0.6303389",...
0.65191346
12
run cfg2json() on a predefined list of .cfg files
def batch_run_cfg2json(): cfg_path = os.environ.get("CFG_FILE_PATH") cfg_list = ['any_n1.cfg', 'ir_grism_n2.cfg', 'ir_grism_n4.cfg', 'ir_any_n2.cfg', 'ir_any_n4.cfg', 'uvis_any_n2.cfg', 'uvis_any_n4.cfg', ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cfg2json(cfgfilename, outpath=None):\n # open cfg file and load up the output dictionary\n cfg_data = teal.load(cfgfilename, strict=False)\n del cfg_data['_task_name_']\n del cfg_data['_RULES_']\n\n out_dict = {\"parameters\": cfg_data, \"default_values\": cfg_data}\n\n # build output json fi...
[ "0.725863", "0.6178261", "0.614552", "0.6062128", "0.5994763", "0.5942238", "0.57629395", "0.57319415", "0.569644", "0.5682584", "0.55984646", "0.5595738", "0.5571803", "0.55675125", "0.5555411", "0.55549204", "0.5554568", "0.5542356", "0.5514675", "0.55100006", "0.54999024",...
0.84875107
0
Reformat userspecifed input json file to use standard (indent = 4) format
def reformat_json_file(infilename, outfilename, clobber=False): # open input json file with open(infilename) as json_file: json_string = json_file.read() json_data = json.loads(json_string) # see if output file already exists and determine course of action if os.path.exists(outfilename)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def collapse_json(text, indent=4):\n initial = \" \" * indent\n out = [] # final json output\n sublevel = [] # accumulation list for sublevel entries\n pending = None # holder for consecutive entries at exact indent level\n for line in text.splitlines():\n if line.startswith(initial):\n ...
[ "0.64213634", "0.6361781", "0.6326946", "0.5934598", "0.5909397", "0.58976054", "0.5836589", "0.5784594", "0.57603955", "0.5724058", "0.5709791", "0.5688288", "0.56765765", "0.5670549", "0.5666758", "0.5661027", "0.56540006", "0.5612286", "0.5568545", "0.5535113", "0.54417205...
0.6531704
0
calculate mixture logistic regression
def mlr(W, U, x): ux = np.dot(U, x) eux = softmax(ux) del ux return np.dot(eux, sigmoid(np.dot(W, x)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def logistic(weights, data, targets, hyperparameters):\n\n # TODO: Finish this function\n\n return f, df, y", "def stability_logistic(x, y, **kwargs):\n rlr = RandomizedLogisticRegression(n_jobs=kwargs.get('n_jobs', 4))\n if 'param' in kwargs:\n rlr.set_params(**kwargs['param'])\n rlr.fit(x...
[ "0.64830625", "0.62530714", "0.6220931", "0.62146497", "0.6196413", "0.61849546", "0.6135358", "0.6132749", "0.6030414", "0.6008413", "0.5988578", "0.59818804", "0.59728444", "0.5958832", "0.59450907", "0.5918804", "0.59040594", "0.587333", "0.5860456", "0.5858938", "0.585542...
0.0
-1
calculate the loss over all data
def calFunctionLoss(W_w, W_u, X, y): loss = map(lambda (x,y): calFunctionLossOne(W_w,W_u,x, y), zip(X, y)) loss = sum(loss) return loss # print("loss is: %s" % loss)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def compute_loss(self):", "def compute_loss(self, obs, returns):", "def calculate_training_loss(self):\n self.network.train()\n self.training_average_loss = self.calculate_average_loss(self.training_dataloader)", "def compute_batch_loss(self, batch_data):\n loss = 0\n for data in ...
[ "0.8289175", "0.7733409", "0.75607723", "0.7495649", "0.74903286", "0.7427631", "0.7403708", "0.7393034", "0.73740864", "0.73307586", "0.7290327", "0.72872096", "0.7267773", "0.7267773", "0.7234568", "0.7220255", "0.72126275", "0.7209114", "0.7200769", "0.71904415", "0.717713...
0.0
-1
This must be implemented
def db_to_class(cls, record): raise NotImplementedError()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __call__(self):\n raise NotImplementedError", "def __call__(self):\n raise NotImplementedError()", "def __call__(self):\n\t\treturn", "def support(self):", "def __call__(self) -> None:", "def __call__(self):\r\n raise NotImplementedError('override me')", "def __call__(self):\n ...
[ "0.78518414", "0.7448749", "0.73443604", "0.7246111", "0.7235105", "0.7228507", "0.71406597", "0.71406597", "0.71320933", "0.6931397", "0.6854985", "0.6776862", "0.6712578", "0.6712578", "0.6712578", "0.6712578", "0.6677389", "0.6599612", "0.6599612", "0.6599612", "0.65649414...
0.0
-1
This must be implemented
def class_to_db(self):
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __call__(self):\n raise NotImplementedError", "def __call__(self):\n raise NotImplementedError()", "def __call__(self):\n\t\treturn", "def support(self):", "def __call__(self) -> None:", "def __call__(self):\r\n raise NotImplementedError('override me')", "def __call__(self):\n ...
[ "0.78518414", "0.7448749", "0.73443604", "0.7246111", "0.7235105", "0.7228507", "0.71406597", "0.71406597", "0.71320933", "0.6931397", "0.6854985", "0.6776862", "0.6712578", "0.6712578", "0.6712578", "0.6712578", "0.6677389", "0.6599612", "0.6599612", "0.6599612", "0.65649414...
0.0
-1
Decay learning rate by a factor of 0.1 every lr_decay_epoch epochs.
def lr_scheduler(optimizer, epoch, init_lr=0.1, lr_decay_epoch=50): if epoch % lr_decay_epoch == 0 and epoch > 1: for param_group in optimizer.param_groups: param_group['lr'] = param_group['lr'] * 0.1 return optimizer
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def step_decay(epoch):\n # initial_lrate = 1.0 # no longer needed\n #drop = 0.5\n #epochs_drop = number_epoch_drop\n #lrate = init_lr * math.pow(drop,\n #math.floor((1+epoch)/epochs_drop))\n lr = learning_rate\n if epoch >= 60:\n lr *= 1e-1\n print('Learning rate: ', lr)\n return ...
[ "0.82671946", "0.8177712", "0.78125453", "0.776122", "0.77204937", "0.769362", "0.769362", "0.7605489", "0.7586371", "0.7553462", "0.7524087", "0.74985766", "0.7488579", "0.746741", "0.7410183", "0.73949593", "0.7391513", "0.7390644", "0.738622", "0.73834085", "0.7376012", ...
0.0
-1
Mutates the modules specified in the configuration. Uses MutPy's mutation procedure.
def mutate_module(self) -> list[tuple[ModuleType, list[mo.Mutation]]]: controller = self._build_mutation_controller() controller.score = mc.MutationScore() mutants = [] if self.target_loader is not None: for target_module, to_mutate in self.target_loader.load(): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update_modules(self) -> None:\n\n matches = apache_util.parse_modules(self.configurator.options.get_modules_cmd)\n for mod in matches:\n self.add_mod(mod.strip())", "def mutate(self, module, operators, output):\n _, mutant_asts = self.generate_mutant_asts(module, operators)\n ...
[ "0.69040656", "0.6811787", "0.6300085", "0.6107906", "0.5942474", "0.589697", "0.58688116", "0.5788177", "0.57424617", "0.56246954", "0.55962414", "0.55962133", "0.5591594", "0.55606085", "0.55028075", "0.5480737", "0.54505223", "0.54490113", "0.5428778", "0.5420752", "0.5408...
0.66267556
2
Parse attributes buffer into a list of (type, data) tuples.
def parse_attrs(buf): attrs = [] while buf: t = ord(buf[0]) l = ord(buf[1]) if l < 2: break d, buf = buf[2:l], buf[l:] attrs.append((t, d)) return attrs
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _read_attributes(root):\n output_list = []\n for _, value in enumerate(root[0][2]):\n attr = Attribute(value)\n output_list.append(attr)\n return output_list", "def _parse_attr(self, attr_proto):\n attrs = {}\n for a in attr_proto:\n for f i...
[ "0.6657035", "0.6440315", "0.64095205", "0.61371845", "0.6111216", "0.6109647", "0.60146755", "0.59958047", "0.59727055", "0.5928471", "0.590856", "0.5885479", "0.5834907", "0.5802745", "0.57771", "0.57714987", "0.5754614", "0.57352376", "0.57304335", "0.5678931", "0.5669214"...
0.7819394
0
Save credentials if changed
def checkCredentialChange(response): credentials = getattr(flask.g, '_credentials', None) if credentials is not None: config = get_user_config() json_credentials = credentials.to_json() if config.credentials != json_credentials: config.credentials = json_credentials config.save() return r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def save_credentials(credentials):\n credentials. save_details()", "def save_credentials(credentials):\n Credentials.save_credentials(credentials)", "def save_credentials(self):\n Credentials.credentials_list.append(self)", "def save_credentials(self):\n self.credentials_list.append(self)...
[ "0.7929647", "0.7461693", "0.74508995", "0.7352155", "0.73469424", "0.73097736", "0.72749746", "0.7213682", "0.71289307", "0.7104442", "0.7066563", "0.70370495", "0.69980067", "0.6864094", "0.67663676", "0.6708277", "0.6637827", "0.66231596", "0.6600596", "0.6583946", "0.6519...
0.7125428
9
Returns the current userdefined configuration from the database
def get_user_config(): config = models.Config.query.get(0) if config is None: config = models.Config() config.id = 0 config.save() return config
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def user_config(self):\n\n return self.__user_config", "def get_config():\n CONFIG.clear() #clear config\n sql=\"SELECT * FROM config\"\n conn=sqlite3.connect(CONNECTION_STRING)\n c=conn.cursor()\n c.execute(sql)\n results=c.fetchall()\n # iterate through the results now...\n for r...
[ "0.7134669", "0.69565564", "0.69028026", "0.6877286", "0.6810725", "0.6754715", "0.6690209", "0.6661265", "0.66424286", "0.6558801", "0.6545969", "0.65415466", "0.653074", "0.65302026", "0.649621", "0.64914185", "0.64679104", "0.64291793", "0.6418399", "0.64072263", "0.639988...
0.73315537
0
Decorator to handle routes that need setup to have been completed This decorator should be applied to nearly all routes
def setup_required(func): @functools.wraps(func) def decorated_function(*args, **kwargs): config = get_user_config() if not config.isConfigured: raise custom_exceptions.SetupNeeded return func(*args, **kwargs) return decorated_function
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def decorator(self, decorator: Route.Decorator):\n pass", "def pre_runroute_callable(self, route, request):\n return None", "def apply(self, callback, route):", "def register(self):\n # self.register_route(\"GET\", self.__route, lambda req, res: self.status(req, res))\n self.regis...
[ "0.6771491", "0.65054977", "0.63679135", "0.63369524", "0.63014185", "0.6287567", "0.6272323", "0.62276524", "0.61558926", "0.6142049", "0.6109246", "0.5990826", "0.59711343", "0.5944717", "0.594009", "0.5935018", "0.590255", "0.5890031", "0.58814603", "0.58793306", "0.587842...
0.0
-1
Get an i18ned message from the appropriate json file for the given key.
def get_json_message(message_key): file_path = (os.getcwd() + '/ufo/static/locales/' + flask.session['language_prefix'] + '/messages.json') try: with open(file_path) as json_file: messages = json.load(json_file) return messages[message_key] except: return message_key
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_localized_string(key):\n return _localized_strings[key]", "def get(self, key, domain=None, language=None, context=None):\n\n if domain is None:\n if self.default_domain is None:\n raise ValueError('No domain given!')\n domain = self.default_domain\n m...
[ "0.67976195", "0.6331842", "0.6149216", "0.61009747", "0.598111", "0.5842774", "0.5832391", "0.5799556", "0.5783316", "0.5783316", "0.56813073", "0.56516814", "0.56434065", "0.5634109", "0.56184775", "0.56084794", "0.5544183", "0.5531985", "0.5520745", "0.55069876", "0.545115...
0.8176998
0
Make the resources for the oauth configuration component.
def make_oauth_configration_resources_dict(): config = get_user_config() return { 'config': config.to_dict(), 'oauth_url': oauth.getOauthFlow().step1_get_authorize_url(), }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rest_api_config(self):\n with self.resource_lock:\n pass", "def _get_resources():\n return {\n 'searchPageUrl': flask.url_for('search_page'),\n 'searchJsonUrl': flask.url_for('search'),\n 'userAddIconUrl': flask.url_for('static', filename='img/add-users.svg'),\n 'logoutUrl': fl...
[ "0.5988237", "0.59526646", "0.5944135", "0.58898485", "0.58617234", "0.57969236", "0.5760492", "0.5743792", "0.57230693", "0.5703035", "0.5666833", "0.56545556", "0.56007504", "0.5600133", "0.5570918", "0.55624896", "0.5508373", "0.5478721", "0.5472452", "0.54713786", "0.5470...
0.7443166
0
Set the global jinja environment vars.
def set_jinja_before_request(): resource_provider.set_jinja_globals()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_jinja_globals():\n\n # The resource keys will not be present.\n ufo.app.logger.info('Start setting resources into jinja globals.\\n'\n 'Current jinja globals: %s' %\n ufo.app.jinja_env.globals.keys())\n\n ufo.app.jinja_env.globals['resources'] = json.dumps(_get_...
[ "0.79587334", "0.79364794", "0.6910949", "0.6802335", "0.6798944", "0.6783165", "0.678095", "0.6655562", "0.655002", "0.63484406", "0.6336676", "0.62311906", "0.6208092", "0.61329174", "0.6036382", "0.5982045", "0.5963476", "0.59562", "0.5939435", "0.59026814", "0.58679044", ...
0.7887784
2
Determine the language prefix using the language header.
def determine_language_prefix(): # TODO(eholder): Figure out a more appropriate way to map the header into # our set of prefixes. Since I don't know what those prefixes are yet, this # is intentionally very generic. I also need to decide if this should just be # done once as part of the login flow rather than c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_full_language(self, language):\n if language:\n language = pycountry.languages.get(alpha_2=language)\n if language:\n language = language.name\n return language.title()", "def language_name(value):\n return pycountry.languages.get(alpha_2=valu...
[ "0.6323368", "0.6228192", "0.6204164", "0.61662155", "0.61253226", "0.61233664", "0.6115906", "0.6019953", "0.60078716", "0.59624434", "0.58665967", "0.58177227", "0.57713544", "0.57614154", "0.5757509", "0.57491803", "0.5739453", "0.57347256", "0.5728561", "0.5721372", "0.57...
0.7839627
0
Initialize the Shortcut object and populate it with IServer data. Specify either `project_id` or `project_name`. When `project_id` is provided (not `None`), `project_name` is omitted.
def __init__( self, connection: Connection, id: str, project_id: str = None, project_name: str = None, shortcut_info_flag: ShortcutInfoFlags | int = ShortcutInfoFlags.DssDossierShortcutInfoTOC, ): if id is None: raise AttributeError("Please...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(self, project_name: str, project_id: str, project_uuid: str):\r\n self.name = project_name\r\n self.id = int(project_id)\r\n self.uuid = project_uuid", "def __init__(__self__, *,\n launch_template_id: Optional[str] = None,\n launch_template_name: ...
[ "0.562115", "0.5595696", "0.5573676", "0.54577625", "0.53878295", "0.5359708", "0.5359247", "0.5331467", "0.5324493", "0.5320432", "0.52949524", "0.5255796", "0.5235947", "0.5209227", "0.5197654", "0.51408964", "0.5133918", "0.5113298", "0.5111947", "0.5104938", "0.50889236",...
0.54148793
4
Instantiate a Shortcut from a dict source.
def from_dict(cls: T, source: dict[str, Any], connection: Connection) -> T: return super(Entity, cls).from_dict(source=source, connection=connection)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def from_dict(cls, dct):\n return cls(**dct)", "def from_dict(cls, dict_, archive_reader):\n\n obj = Source.__new__(cls)\n super().__init__(obj)\n obj.to_natives(dict_, archive_reader)\n return obj", "def from_dict(cls, dictionary: Dict[str, Any]):\n return cls(**dicti...
[ "0.637175", "0.62771887", "0.6227301", "0.6226135", "0.6226135", "0.6168764", "0.61653435", "0.61620283", "0.6129901", "0.61157286", "0.6028373", "0.5986423", "0.5981265", "0.5953646", "0.5939503", "0.57930434", "0.57930434", "0.57930434", "0.57930434", "0.57930434", "0.57930...
0.57157874
63
Retrieve information about specific published shortcuts in specific project. Specify either `project_id` or `project_name`. When `project_id` is provided (not `None`), `project_name` is omitted.
def get_shortcuts( connection: Connection, shortcut_ids: list[str], project_id: str = None, project_name: str = None, shortcut_info_flag: ShortcutInfoFlags | int = ShortcutInfoFlags.DssDossierShortcutInfoDefault, to_dictionary: bool = False, limit: int | None = None, **filters, ) -> ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_project(self, project_id: str) -> Mapping[str, Any]:\n return self.__get_one_by_id(\"projects\", \"project_id\", project_id)", "def get_details(self, project_id=None):\n\n project_id = project_id if project_id is not None else self.project_id\n project_details = self.client.GET(...
[ "0.6126588", "0.6107333", "0.60694706", "0.6012442", "0.5986144", "0.588326", "0.5878106", "0.58759475", "0.58518046", "0.5850333", "0.581094", "0.5787236", "0.57447404", "0.5731529", "0.5717412", "0.5715366", "0.5697824", "0.5683837", "0.5677511", "0.5644534", "0.5630803", ...
0.5270053
37
API wrapper method which returns an achievement object
def get_achievements(tag, platform="pc", region="eu"): # try: context = ssl._create_unverified_context() achievements = json.load( const.codec(urlopen(const.URL + platform + "/" + region + "/" + tag + "/achievements", context=context))) # if "error" in achievements: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def achievements(self, ctx: commands.Context):\r\n # The milestones for each achievement type\r\n milestones_dict_of_achievements = {\r\n 'times_entertained': [5, 25, 100, 250, 500, 1000, 5000, 10000, 100000, 1000000],\r\n 'times_fed': [5, 25, 25, 50, 100, 500, 1000...
[ "0.66077095", "0.6434592", "0.61954826", "0.6095088", "0.60853684", "0.5724958", "0.56918836", "0.56512016", "0.5646526", "0.5538635", "0.55341816", "0.5530521", "0.5518453", "0.5489868", "0.5414642", "0.5364297", "0.5270748", "0.5220664", "0.5216169", "0.5181706", "0.5127561...
0.6034243
5
API wrapper method which returns a platform object
def get_platforms(tag, platform="pc", region="eu"): # platform_list = [] try: context = ssl._create_unverified_context() platforms = json.load( const.codec(urlopen(const.URL + platform + "/" + region + "/" + tag + "/get-platforms", context=context))) # if "error" ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def platform(self) -> Platform:\n _args: list[Arg] = []\n _ctx = self._select(\"platform\", _args)\n return _ctx.execute_sync(Platform)", "def getPlatform(self, name):\r\n if self.platforms.has_key(name):\r\n return self.platforms[name]\r\n else:\r\n self....
[ "0.8122965", "0.7541298", "0.738265", "0.73621166", "0.7359824", "0.731693", "0.7263663", "0.71054137", "0.70513964", "0.7002214", "0.69682884", "0.679626", "0.67639774", "0.6665706", "0.6655563", "0.6556965", "0.6530144", "0.6526959", "0.6507393", "0.6465923", "0.6440405", ...
0.5524334
66
API wrapper method which returns a profile object
def get_profile(tag, platform="pc", region="eu"): # try: context = ssl._create_unverified_context() profile = json.load( const.codec(urlopen(const.URL + platform + "/" + region + "/" + tag + "/profile", context=context))) # if "error" in profile: raise Bat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_profile(self):\n endpoint = '/profile'\n return self.get_request(endpoint)", "def getProfile(self):\n # GET /profile\n debugMain('getProfile')\n return self._genericGet('/profile')", "def getprofile(self, *args, **kwargs):\n return _image.image_getprofile(self,...
[ "0.7649968", "0.7383349", "0.7367096", "0.73162633", "0.7299956", "0.7253767", "0.7217473", "0.71975386", "0.7193843", "0.7150818", "0.7150818", "0.71028405", "0.7065635", "0.6952983", "0.6801263", "0.67980266", "0.67869115", "0.6748427", "0.66772604", "0.6663242", "0.6661101...
0.6584613
27
API wrapper method which returns an all_heroes object
def get_all_heroes_stats(tag, platform="pc", region="eu", mode="quickplay"): # try: context = ssl._create_unverified_context() all_heroes = json.load( const.codec(urlopen(const.URL + platform + "/" + region + "/" + tag + "/" + mode + "/allHeroes/", context=context))) # ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_heroes(self, **kwargs):\n url = self.__build_url(urls.GET_HEROES, language=self.language, **kwargs)\n req = self.executor(url)\n if self.logger:\n self.logger.info('URL: {0}'.format(url))\n if not self.__check_http_err(req.status_code):\n return response.bu...
[ "0.7458909", "0.73711145", "0.65301037", "0.61331445", "0.602677", "0.5876403", "0.585552", "0.58011675", "0.567015", "0.56066024", "0.5448059", "0.54213315", "0.54017705", "0.53957194", "0.5353022", "0.53514344", "0.53118515", "0.5276357", "0.5262838", "0.52564645", "0.52438...
0.594799
5
API Wrapper object which returns stats for a specific hero
def get_heroes_stats(tag, hero, platform="pc", region="eu", mode="quickplay"): try: context = ssl._create_unverified_context() hero_stats = json.load( const.codec( urlopen(const.URL + platform + "/" + region + "/" + tag + "/" + mode + "/hero/" + hero + "/", context=contex...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_hero(self, uuid, hero):\n\n # I can't wait for case statements in python (3.10)\n if hero == Heroes.BULK:\n return Bulk(self.api_key, uuid)\n\n elif hero == Heroes.GENERAL_CLUCK:\n return GeneralCluck(self.api_key, uuid)\n\n elif hero == Heroes.CAKE_MONSTER...
[ "0.7338335", "0.62998796", "0.60463583", "0.5997762", "0.58266133", "0.58230054", "0.5822899", "0.5805955", "0.57567394", "0.5685973", "0.56220925", "0.55938345", "0.55732405", "0.55701035", "0.5545963", "0.5535635", "0.55352396", "0.5437361", "0.54010344", "0.53940934", "0.5...
0.72986597
1
A view to return the contact page and form
def contact(request): form = ContactForm(request.POST or None) if request.method == "POST": if form.is_valid(): form.save() message = request.POST['message'] subject = request.POST['subject'] email = request.POST['email'] send_mail( ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def contact():\n\n\treturn render_template('contact.html', title='Contact',\n\t\t\t\t\t\t year=datetime.now().year,\n\t\t\t\t\t\t message='Your contact page.')", "def contact():\n if request.method == \"POST\":\n flash(\"{}, Thank you for getting in touch! We appreciate you contacting us, one of ou...
[ "0.80070364", "0.8000395", "0.79602474", "0.7916738", "0.7915305", "0.7893425", "0.78804237", "0.78671783", "0.78426486", "0.7841965", "0.783166", "0.7831423", "0.7811117", "0.78103983", "0.78103983", "0.7807718", "0.78075504", "0.779761", "0.7794387", "0.7794387", "0.7794387...
0.71437573
61
A view to return the delivery and returns page
def delivery(request): return render(request, 'contact/delivery.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def view_delivery() -> str:\r\n #List with amount of bottles ready for delivery for each lsit\r\n delivery_amounts = []\r\n delivery_amounts.append(delivery_information[\"Organic Red Helles\"])\r\n delivery_amounts.append(delivery_information[\"Organic Pilsner\"])\r\n delivery_amounts.append(deliver...
[ "0.7374881", "0.6889909", "0.64783055", "0.6372336", "0.6370384", "0.6247339", "0.61653876", "0.6148517", "0.6122049", "0.6092658", "0.6068964", "0.6024294", "0.5941775", "0.58365667", "0.58189636", "0.5810076", "0.5810076", "0.5810076", "0.5810076", "0.5810076", "0.5793738",...
0.7642086
0
Search for a version of this file using caseinsensitive semantics
def _find(self, path): try: self.log.debug("Searching for '%s'" % path) os.stat(path) self.log.debug(" found!") return path except OSError: self.log.debug(" not found!") segs = path.split(os.path.sep) found_parent = os...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SearchView(name, keyword):\n fid = open(GetOriginalFilename(name), \"rt\")\n fullText = fid.read()\n fid.close()\n\n # No need to decode from UTF-8 in Python 3\n # fullText = fullText.decode(\"iso-8859-1\")\n\n if fullText.find(keyword) >= 0:\n return True\n\n return False", "def ...
[ "0.6145776", "0.59772", "0.58184683", "0.5765689", "0.57172436", "0.5679261", "0.56456053", "0.5613224", "0.5556438", "0.55467016", "0.55464756", "0.5540706", "0.5518504", "0.54784673", "0.5462943", "0.5445944", "0.5441402", "0.5403477", "0.53974223", "0.5361632", "0.5361248"...
0.0
-1
Set up the Blockchain.com sensors.
def setup_platform(hass, config, add_entities, discovery_info=None): addresses = config[CONF_ADDRESSES] name = config[CONF_NAME] for address in addresses: if not validate_address(address): _LOGGER.error("Bitcoin address is not valid: %s", address) return False add_enti...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def initialize_electronics(self):\n\n self.electronics = ArduinoModel(**self.config['electronics']['arduino'])\n self.logger.info('Initializing electronics arduino')\n self.electronics.initialize()", "def setUp(self):\n self.sensor = Sensor('127.1.1.3', 9000)", "def setUp(self):\n ...
[ "0.6598541", "0.6563869", "0.6509553", "0.64785177", "0.64348155", "0.643379", "0.64261097", "0.64246625", "0.64050806", "0.63477165", "0.6274106", "0.62647223", "0.6260761", "0.62277645", "0.6188321", "0.61747193", "0.6168411", "0.61544275", "0.6130784", "0.6053547", "0.6051...
0.59245753
34
Return the name of the sensor.
def name(self): return self._name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def name(self):\n return self._sensor.name", "def get_sensor_name(self):\n return self.data[1]", "def name(self):\n return self.device.device_data[self.device_id]['name'] + \\\n f' {self._sensor_type}'", "def name(self):\n return f\"{self._name} {SENSOR_TYPES[self.senso...
[ "0.91896784", "0.9168378", "0.890185", "0.8770976", "0.8511273", "0.8479953", "0.844435", "0.8299758", "0.8186503", "0.8105667", "0.8079737", "0.8066149", "0.8049647", "0.7700968", "0.7612295", "0.7611456", "0.7600605", "0.7600605", "0.7600605", "0.75392073", "0.75166553", ...
0.0
-1
Return the state of the sensor.
def state(self): return self._state
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def state(self):\n return self.device.device_data[self.device_id][self._sensor_type]", "def state(self):\n if self.coordinator.data:\n return self.coordinator.data[self._sensor]", "def state(self):\n return self.device.value()", "def state(self):\n return self.device.de...
[ "0.8718752", "0.81688267", "0.8066322", "0.8047302", "0.8043937", "0.7988314", "0.7980182", "0.795486", "0.7944504", "0.7931106", "0.78322214", "0.780842", "0.7798265", "0.7773271", "0.7736683", "0.76682585", "0.76501304", "0.7622975", "0.7608863", "0.7522398", "0.74831885", ...
0.0
-1
Return the unit of measurement this sensor expresses itself in.
def unit_of_measurement(self): return self._unit_of_measurement
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def unit_of_measurement(self):\n return self.sensor_type[\"unit\"]", "def unit_of_measurement(self):\n return self._sensor.unit", "def unit_of_measurement(self):\n return SENSOR_TYPES[self.sensor][1]", "def unit_of_measurement(self):\n return SENSOR_TYPES[self._sensor][0]", "def...
[ "0.90828973", "0.90624607", "0.9041801", "0.9037186", "0.90020704", "0.8941532", "0.8926512", "0.8926512", "0.8915541", "0.8915541", "0.8915342", "0.88999236", "0.88999236", "0.88885903", "0.88885903", "0.88530487", "0.88347495", "0.88347495", "0.8834039", "0.8821947", "0.875...
0.8684554
40
Return the icon to use in the frontend, if any.
def icon(self): return ICON
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_icon(self):\n return self.ICON", "def get_icon(self):\r\n return get_icon(self.ICON)", "def get_icon(self):\n raise NotImplementedError", "def icon(self):\n return self.ICON", "def icon(self):\n return self.ICON", "def icon(self) -> str | None:\n return s...
[ "0.82683825", "0.82481176", "0.82377046", "0.8195682", "0.8195682", "0.8185919", "0.8170863", "0.8165748", "0.8163016", "0.8163016", "0.8158489", "0.8109947", "0.81082934", "0.81082934", "0.81082934", "0.8102021", "0.8094143", "0.80682874", "0.8025077", "0.8025077", "0.802507...
0.8248041
10
Return the state attributes of the sensor.
def device_state_attributes(self): return {ATTR_ATTRIBUTION: ATTRIBUTION}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def device_state_attributes(self):\r\n return self.attributes", "def device_state_attributes(self):\r\n return self._attributes", "def device_state_attributes(self):\n return self.attr", "def device_state_attributes(self):\n return self.attr", "def device_state_attributes(self) ...
[ "0.8418945", "0.82497084", "0.8243777", "0.8243777", "0.8200083", "0.8169021", "0.8169021", "0.8159991", "0.8159991", "0.8145903", "0.8145903", "0.8145903", "0.8145903", "0.8145903", "0.8145903", "0.8145903", "0.8145903", "0.8145903", "0.8145903", "0.8145903", "0.8145903", ...
0.7686955
51
Get the latest state of the sensor.
def update(self): self._state = get_balance(self.addresses)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def state(self):\n if self.coordinator.data:\n return self.coordinator.data[self._sensor]", "def state(self):\n if self.ticker.values is not None:\n return round(\n float(\n self.ticker.values.get(\"last\")\n ),\n ...
[ "0.753419", "0.74876356", "0.74765736", "0.72214586", "0.7112677", "0.6995063", "0.69775915", "0.6945787", "0.69136775", "0.68911135", "0.68863803", "0.6863116", "0.6858303", "0.6834618", "0.6774382", "0.67590016", "0.6746638", "0.6699024", "0.6691935", "0.6685089", "0.666090...
0.0
-1
InvalidSegmentError should be thrown when the segment begin is greater than the segment end.
def test_validate_begin_greater_than_end(): with pytest.raises(InvalidSegmentError): _validate([[1, 2], [5, 3]])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_validate_begin_equals_end():\n with pytest.raises(InvalidSegmentError):\n _validate([[1, 2], [5, 5]])", "def parse_and_validate_num_segs(segment_str):\n # try to parse numSegments\n num_segments = 0\n try:\n num_segments = int(segment_str)\n divs = math.log(num_segments,...
[ "0.63354397", "0.56412023", "0.563701", "0.53736293", "0.5295461", "0.52742565", "0.5265137", "0.52392036", "0.5191654", "0.5060422", "0.5045406", "0.5031676", "0.49795532", "0.49658692", "0.49567848", "0.49503455", "0.4898707", "0.4897851", "0.489405", "0.48883966", "0.48655...
0.68655276
0
InvalidSegmentError should be thrown when the segment begin equals teh segment end.
def test_validate_begin_equals_end(): with pytest.raises(InvalidSegmentError): _validate([[1, 2], [5, 5]])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_validate_begin_greater_than_end():\n with pytest.raises(InvalidSegmentError):\n _validate([[1, 2], [5, 3]])", "def _invalid_section_error(self, section_name):\n msg = \"'{}' is not a subsection for the '{}' section.\".format(section_name, self._SECTION_NAME)\n raise ValueError(ms...
[ "0.6800116", "0.56447387", "0.5554494", "0.5524308", "0.55040294", "0.54933834", "0.5323259", "0.5266226", "0.52067447", "0.51706624", "0.51565564", "0.51420945", "0.5136046", "0.50560105", "0.50518936", "0.5045964", "0.50384283", "0.50205344", "0.49898636", "0.49722755", "0....
0.7078179
0
Attempt to read a value from the connected instrument.
def read(self): clock = self.pins["clock"] data = self.pins["data"] # read bitstream self._req(True) for i in range(52): # wait for clock to go low while clock.value: continue self.bits[i] = data.value if i == 0:...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def read_value(self):\n raise NotImplementedError", "def read_value(self):\n raise NotImplementedError", "def read_actual_current(self):\n function_string = 'I' + self.output + 'O?'\n value_string = self.scpi_comm(function_string)\n time.sleep(0.1) # This might only be necess...
[ "0.72705126", "0.72705126", "0.6978987", "0.6975197", "0.6813024", "0.67970365", "0.66687244", "0.6571778", "0.65581167", "0.65468425", "0.6519655", "0.6464494", "0.6404137", "0.6379751", "0.6379751", "0.6342641", "0.6335879", "0.63247883", "0.62653416", "0.62509197", "0.6235...
0.0
-1
Attempt to read from a connected instrument, but always return the value in centimeters.
def read_cm(self): reading = self.read() if not reading: return None if reading.unit == "mm": return reading.value * 10 if reading.unit == "in": return reading.value * 2.54 # Unlikely, but future proof. raise "Reading has unknown uni...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def read_actual_current(self):\n function_string = 'I' + self.output + 'O?'\n value_string = self.scpi_comm(function_string)\n time.sleep(0.1) # This might only be necessary on LAN interface\n try:\n value = float(value_string.replace('A', ''))\n except ValueError:\n ...
[ "0.6621587", "0.6492744", "0.64622325", "0.6332884", "0.6298474", "0.62630874", "0.6064935", "0.59685516", "0.5939367", "0.5911516", "0.5904317", "0.5882898", "0.585601", "0.58536094", "0.58391637", "0.58335525", "0.5807811", "0.58015484", "0.57946277", "0.57867604", "0.57788...
0.6360264
3
Initializes a new instance of the ChangeAssistantVoiceSkill class.
def __init__(self): self._cmd_list = ['use']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(self):\n self._eng = pyttsx.init()\n self._eng.connect(\"started-utterance\", self._onStart)\n self._eng.connect(\"started-word\", self._onWord)\n self._eng.connect(\"finished-utterance\", self._onEnd)", "def __init__(self):\n self.sentiment = ['happiness', 'surpri...
[ "0.59859174", "0.59851104", "0.5727807", "0.5638558", "0.5549759", "0.55391794", "0.55385435", "0.55286336", "0.5527692", "0.5499574", "0.54318106", "0.5414222", "0.5366638", "0.53382313", "0.5314061", "0.5310288", "0.5300178", "0.52976155", "0.5294441", "0.52612597", "0.5229...
0.0
-1
Returns a Boolean value indicating whether this skill can be used to handle the given command.
def matches_command(self, skill_input: SkillInput) -> bool: verb = (skill_input.verb or None) and skill_input.verb.lower() return verb in self._cmd_list
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def responds_to(self, command) -> bool:\n return command == self.command and self.active is True and self.command is not None", "def is_enabled(command):\n if command not in Controller.commands:\n return False\n return Controller.commands[command][2]", "def command_registered(se...
[ "0.74278367", "0.68981487", "0.66977847", "0.66707885", "0.6667942", "0.66316724", "0.6607451", "0.653622", "0.6535393", "0.6522671", "0.6496499", "0.6466457", "0.6396782", "0.63804924", "0.6377974", "0.63763314", "0.63124734", "0.63028836", "0.62900245", "0.62845373", "0.626...
0.73454964
1
Executes this skill on the given command input.
def execute_for_command(self, skill_input: SkillInput, services: AssistantServicesBase): voice = skill_input.adjective.lower() if voice in ("female", "male"): services.settings_service.voice = voice services.settings_service.save_settings() services.user_interaction_s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def act_on_input(self, input):\n if not input:\n return\n self.parse_input(input)\n commands = self.extract_commands()\n self.execute_commands(commands)", "def exe(self, inp):\n try:\n spl = shlex.split(inp)\n except:\n self.err_print('Mi...
[ "0.7663466", "0.69476265", "0.6823101", "0.65469253", "0.63579047", "0.6310683", "0.62366813", "0.6225096", "0.6215043", "0.61388063", "0.61286086", "0.6124499", "0.6109647", "0.6029902", "0.6002199", "0.5956472", "0.59518945", "0.59514964", "0.59476024", "0.5892775", "0.5864...
0.6754685
3
Executes any setup work necessary for this skill before it can be used.
def perform_setup(self, services): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def preRunSetup(self):\n self.logDesc(\"Pre Run Setup\")\n #Check for current logged in user\n self.verifyCurrentUser(userRole='Administrator', loginAsUser=True)\n #Creates Sample Template if not exists\n self.createSampleTemplate(templateName=self.templateName)", "def preRunSe...
[ "0.72109133", "0.70274496", "0.68963397", "0.68545383", "0.68545383", "0.6845653", "0.675076", "0.6690821", "0.66787374", "0.66622543", "0.66622543", "0.66622543", "0.66622543", "0.66622543", "0.6658022", "0.6635837", "0.6587805", "0.6561545", "0.6561545", "0.6561545", "0.656...
0.64444137
38
Test for Dashboard link Uses TestStatus class to mark/assert test case results
def test_TC_Users_200819_1(self): self.log.info("*#" * 20) self.log.info("test_TC_Users_200819_1 started") self.log.info("*#" * 20) self.us.gotoUsers() self.us.clickDashboard() result = self.us.verifyDashboard() self.ts.markFinal("test_TC_Users_200819_1", result, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_dashboards_v2_link(self):\n pass", "def test_link_list(self):\n response = self.client.get('/tests/dashboard/')\n self.assertEqual(response.status_code, 200)\n self.assertContains(response, \"example.com\")", "def test_dashboards_v2_show(self):\n pass", "def test_d...
[ "0.7036926", "0.6751907", "0.65967304", "0.6517734", "0.6429543", "0.63108444", "0.6264563", "0.6173053", "0.61577535", "0.61456686", "0.61402094", "0.61295027", "0.6120701", "0.6114222", "0.6114222", "0.60893595", "0.6078256", "0.6059457", "0.6046481", "0.60437065", "0.60381...
0.6255128
7
Test for Create New User Uses TestStatus class to mark/assert test case results
def test_TC_Users_200819_2(self): self.log.info("*#" * 20) self.log.info("test_TC_Users_200819_2 started") self.log.info("*#" * 20) self.us.gotoUsers() self.us.createUser(firstName="Test", lastName="Test", email="test@test.com", role="3") self.us.createUser(firstName="Tes...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_createUser_single(self):\n #TODO: this and other tests", "def test_create_user(self):\n pass", "def test_create_user(self):\n pass", "def test_create_user(self):\n pass", "def test_create_user(self):\n self.login()\n res = self.submit()\n\n assert r...
[ "0.8204079", "0.79867315", "0.79867315", "0.79867315", "0.7864412", "0.7709156", "0.75552016", "0.7541541", "0.74943", "0.7491226", "0.7466355", "0.74476993", "0.74314594", "0.7406655", "0.7406236", "0.7347033", "0.7343339", "0.73290676", "0.73281276", "0.7326068", "0.7322851...
0.739567
15
Test to verify view profile button Uses TestStatus class to mark/assert test case results
def test_TC_Users_200819_3(self): self.log.info("*#" * 20) self.log.info("test_TC_Users_200819_3 started") self.log.info("*#" * 20) self.us.gotoUsers() self.us.clickViewProfile() result = self.us.verifyViewProfile() self.ts.markFinal("test_TC_Users_200819_3", resu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_view_status(self):\n self.add_testuser()\n response = self.client.get(\"/profile/testuser/edit\")\n self.assertTrue(response.status_code == 301)", "def test_view_profile(self):\n LOGGER.debug(\"Test GET /rango/view/leothelion/ for anon user\")\n anon_view_response = se...
[ "0.76108277", "0.71860087", "0.71120733", "0.6946868", "0.6848691", "0.6758389", "0.67111415", "0.66714704", "0.6667742", "0.6665116", "0.65942097", "0.65556455", "0.6552819", "0.6529676", "0.6528348", "0.6513482", "0.64930034", "0.64195246", "0.6392366", "0.6319257", "0.6274...
0.74449015
1
Test for Teams working table open/close Uses TestStatus class to mark/assert test case results
def test_TC_Users_UserProfile_200819_2(self): self.log.info("*#" * 20) self.log.info("test_TC_Users_UserProfile_200819_2 started") self.log.info("*#" * 20) self.us.gotoUsers() self.us.clickViewProfile() self.us.clickTeam() result = self.us.verifyTeamOpenClose() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test(self):\n\t\tx = Team.objects.get(short_name='SF')\n\t\tself.assertEqual(x.nick_name, '49ers')\n\n\t\tx = Game.objects.get(week_number=1,game_number=1)\n\t\tx.fav_score = 21\n\t\tx.udog_score = 14\n\t\tx.spread = 5\n\t\tself.assertEqual(x.favWins(), True)\n\t\tx.spread = 10\n\t\tself.assertEqual(x.favWins(...
[ "0.67550015", "0.6104613", "0.6035139", "0.5994046", "0.59128124", "0.5830796", "0.57443374", "0.5734942", "0.5732594", "0.57252914", "0.56904143", "0.56856155", "0.55997735", "0.55997735", "0.5592335", "0.5516779", "0.55117416", "0.55117416", "0.55117416", "0.5494369", "0.54...
0.65149
1
Test for team user details page Uses TestStatus class to mark/assert test case results
def test_TC_Users_UserProfile_200819_4(self): self.log.info("*#" * 20) self.log.info("test_TC_Users_UserProfile_200819_4 started") self.log.info("*#" * 20) self.us.gotoUsers() self.us.clickViewProfile() self.us.clickTeam() self.us.clickDetails() result = s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_TC_Users_UserProfile_200819_2(self):\n self.log.info(\"*#\" * 20)\n self.log.info(\"test_TC_Users_UserProfile_200819_2 started\")\n self.log.info(\"*#\" * 20)\n self.us.gotoUsers()\n self.us.clickViewProfile()\n self.us.clickTeam()\n result = self.us.verify...
[ "0.7014695", "0.7011689", "0.68079954", "0.67049444", "0.6703819", "0.6601137", "0.6601137", "0.6568405", "0.6561567", "0.64933634", "0.6491702", "0.64130616", "0.63558125", "0.63490254", "0.63477075", "0.6313082", "0.63112307", "0.6299645", "0.6294707", "0.62679505", "0.6266...
0.70787454
0
Build a list a list of files (and directories) by iterating recursively over the given path
def build_file_list(path): dirs = [] files = [] for x in path.iterdir(): try: if x.is_symlink(): continue elif x.is_dir(): dirs.append(x) new_dirs, new_files = build_file_list(x) dirs.extend(new_dirs) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_files(path: str) -> List[str]:\n if not isdir(path):\n return [path] # its expected to return a list each time even if its a single element\n return [file for fileOrDir in listdir(path) for file in get_files(path + '/' + fileOrDir)]\n # return list of each file returned by the recursive ca...
[ "0.7776247", "0.7598177", "0.759159", "0.75369984", "0.74048036", "0.73601836", "0.7359687", "0.7189919", "0.7168541", "0.71555066", "0.71307224", "0.71246266", "0.7100239", "0.7060658", "0.70578027", "0.70476854", "0.7047233", "0.7002175", "0.6991864", "0.6990601", "0.698908...
0.80638224
0
Recursively add all files and directories of the given path to the database
def collect_files(path): logger.info('Building file list...') start_time = datetime.now() dirs, files = build_file_list(path) seconds = (datetime.now() - start_time).total_seconds() logger.info( 'Found %d files and directories in %.3fs', (len(dirs) + len(files)), seconds ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _insert_directories(curs, files):\n\n directories = set([os.path.dirname(name) for name, _ in files])\n curs.executemany('INSERT OR IGNORE INTO directories (name) VALUES (?)',\n [(dirname, ) for dirname in directories])", "def load_directory_as_db(self, dir_path, db_name):\n ...
[ "0.6242315", "0.61278254", "0.60815436", "0.5897876", "0.5890882", "0.58545285", "0.5817421", "0.57718927", "0.5769977", "0.57681537", "0.57168114", "0.5641987", "0.5639447", "0.5614982", "0.5597456", "0.5588003", "0.55766904", "0.5571343", "0.55635726", "0.5558122", "0.54801...
0.0
-1
Set up this component using YAML.
async def async_setup(hass, config): _LOGGER.info(STARTUP) if config.get(DOMAIN) is None: # We get her if the integration is set up using config flow return True try: await hass.config_entries.async_forward_entry(config, "sensor") _LOGGER.info("Successfully added sensor from...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_yaml_config(self) -> None:\n\n # LT-248: We can pick Artillery Phase configuration from conf file\n self.yaml_config = {\n \"config\": {\n \"target\": self.get_swagger_url(),\n \"processor\": f\"./{self.OUT_FILE}\",\n \"phases\": [\n ...
[ "0.6718516", "0.64935356", "0.63938236", "0.63140494", "0.62639874", "0.6202844", "0.60927325", "0.604228", "0.6002725", "0.5973299", "0.592672", "0.592672", "0.592672", "0.59074163", "0.58932966", "0.5854773", "0.5836372", "0.5836372", "0.5810496", "0.5810496", "0.5810496", ...
0.0
-1
Set up avfallsor as config entry.
async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry) -> bool: hass.async_create_task( hass.config_entries.async_forward_entry_setup(config_entry, "sensor") ) return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def init_config(self):\n pass", "def setup_config(self, args=None):\n self.config_parse(args=args)", "def setup_config():\n global config\n config = modConfig.Config(cmdline.config)", "def _configure(self):\n pass", "def __init__(self):\n\n self.config = load_config()\n ...
[ "0.65679735", "0.6465973", "0.63883346", "0.63684803", "0.63646907", "0.6334266", "0.6303359", "0.62907356", "0.62907356", "0.6264622", "0.62317145", "0.6230198", "0.6228271", "0.6189415", "0.6189415", "0.6187768", "0.6164642", "0.6164642", "0.6164642", "0.6164642", "0.614764...
0.0
-1
Returns list of lat,lon
def get_locations(loc_fn): with open(loc_fn, 'rb') as fin: coordinate_string = fin.readline() coordinates = coordinate_string.split(',') coordinates = [float(c.strip()) for c in coordinates] return coordinates
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def location(self):\n return [self.lat, self.lon]", "def coordinates(self):\n return self.latitude, self.longitude", "def coord_in_lat_long(list_lat_long):\n mid = len(list_lat_long) // 2\n print(\"Number of coordinates : {}\".format(mid))\n return [[list_lat_long[2 * counter], list_lat_...
[ "0.7913464", "0.7284178", "0.71625376", "0.716188", "0.70589817", "0.70547545", "0.70368445", "0.7032946", "0.7021283", "0.70095026", "0.6968733", "0.6856433", "0.6838416", "0.67366445", "0.67188627", "0.6683967", "0.66784257", "0.665622", "0.6642522", "0.6626294", "0.6597130...
0.67226446
14
Implementing switch to buy functionality
def switch_to_buy(self): self.switch_to_window() self.accept_ssl_certificate()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def trade_action(self, BUY_QTY):\n BUY_QTY = 4500\n self.trade(BUY_QTY)\n #self.show()", "def buy(self, price, volume):\r\n self.order(\"bid\", price, volume)", "def purchase(self, item_type):", "def doBuyIn(self):\n self.protocol.sendPacket(networkpackets.PacketPokerBuyIn(...
[ "0.6752437", "0.66564465", "0.65131027", "0.64828473", "0.6459072", "0.641257", "0.6370881", "0.6362402", "0.6345347", "0.6336424", "0.6329178", "0.6314387", "0.6267283", "0.62372434", "0.62257135", "0.6205884", "0.6183206", "0.6168485", "0.616273", "0.61568713", "0.61563355"...
0.69311965
0
Implementing get buy page title functionality
def get_buy_page_title(self): self.wait().until(EC.visibility_of_element_located(self.default_tab_header_locator), 'default tab header not found before specified time') return self.page_title()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_title():", "def title(self):\n\t\treturn self.page_title", "def get_page_title(self):\n return self.driver.get_title()", "def page_title(self) -> str:\n return self.driver.title", "def get_title(self) -> str:\n pass", "def get_title(self):\n return self.title", "def ...
[ "0.79133", "0.73078203", "0.72166765", "0.7001976", "0.68980056", "0.6864043", "0.6864043", "0.6864043", "0.68636906", "0.6856293", "0.68401515", "0.6837087", "0.6764774", "0.6742004", "0.6720232", "0.6714058", "0.6688795", "0.66885704", "0.66017157", "0.66013813", "0.6588677...
0.7839547
1
Implementing is buy dashboard tab present functionality
def is_buy_dashboard_tab_present(self): return self.is_element_present(self.buy_dashboard_tab_locator)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def select_buy_dashboard_tab(self):\n self.select_static_tab(self.buy_dashboard_tab_locator, True)", "def click_buy_and_sell_deal_management_link(self):\n self.select_static_tab(self.buy_and_sell_deal_management_locator, message=\"buy and sell deal management locator not found before specified time...
[ "0.7400998", "0.64810336", "0.6269928", "0.5840348", "0.57089645", "0.5598408", "0.5598408", "0.5590817", "0.5487762", "0.54867595", "0.5449592", "0.54234475", "0.54188967", "0.5388239", "0.5358356", "0.5314111", "0.5313204", "0.52993983", "0.5289306", "0.5271922", "0.5267888...
0.72802335
1
Implementing is vendors tab present functionality
def is_vendors_tab_present(self): return self.is_element_present(self.vendors_tab_locator)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def select_vendors_tab(self):\n self.select_static_tab(self.vendors_tab_locator, 'vendors tab not found before specified time')", "def is_specific_tab_on_vendor_profile_page_present(self, tab_name):\n tab_locator = (By.XPATH, \"//div[contains(@id, 'SourceProfileTabStrip')]/descendant::a[text()='%s'...
[ "0.6874013", "0.6272529", "0.5996868", "0.5992929", "0.5748996", "0.5721711", "0.5721711", "0.55816156", "0.5517531", "0.5510303", "0.54955125", "0.54571176", "0.54381496", "0.5422301", "0.53921604", "0.53632975", "0.5273257", "0.5265792", "0.52589095", "0.52563494", "0.52551...
0.72662383
0
Implementing is country groups link present functionality
def is_country_groups_link_present(self): return self.is_element_present(self.country_groups_locator)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def click_country_group(self):\n self.click_element(self.country_groups_locator, script_executor=True)", "def test_groups_get(self):\n pass", "def test_groups_get(self):\n pass", "def test_groups_group_ref_get(self):\n pass", "def groups_en(request, group_id = 1):\n group = g...
[ "0.6317962", "0.51911926", "0.51911926", "0.5140529", "0.50892735", "0.50562495", "0.50562495", "0.50487584", "0.502029", "0.49977654", "0.49895462", "0.49316293", "0.49196282", "0.49052003", "0.49025372", "0.48940086", "0.48776388", "0.48742306", "0.48725045", "0.48550633", ...
0.7332791
0
Implementing is reanalysis link present functionality
def is_re_analysis_link_present(self): return self.is_element_present(self.re_analysis_locator)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def click_re_analysis_link(self):\n self.click_element(self.re_analysis_locator, True)", "def relink(self, link_id):", "def getLink(self):", "def link_residues(self) -> None:\n ...", "def add_link():\n return True", "def relink():\n _intro()\n from . import crosslink as cr\n\n c...
[ "0.6751954", "0.652153", "0.6032356", "0.5974886", "0.5958178", "0.5620203", "0.5609497", "0.55967116", "0.5590024", "0.5581713", "0.55592877", "0.55592877", "0.55334836", "0.55301785", "0.5505264", "0.542408", "0.54043347", "0.53962654", "0.5396158", "0.5350795", "0.5345842"...
0.67769605
0
Implementing select vendors tab functionality
def select_vendors_tab(self): self.select_static_tab(self.vendors_tab_locator, 'vendors tab not found before specified time')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_vendor(self, vendor_list):\n self.multiple_items_selection_from_kendo_dropdown(self.vendor_dropdown_locator, vendor_list)\n self.wait_for_ajax_spinner_load()", "def tabSelected(self):", "def tabSelected(self):", "def select_buy_dashboard_tab(self):\n self.select_static_tab(self.b...
[ "0.6188047", "0.6105495", "0.6105495", "0.5952342", "0.59404254", "0.59331214", "0.59069777", "0.5803761", "0.56433725", "0.56020993", "0.5578502", "0.55331236", "0.55300546", "0.5517784", "0.5484401", "0.5458557", "0.545534", "0.54479146", "0.54111296", "0.5366512", "0.53527...
0.73975277
0
Implementing is create vendor present functionality
def is_create_vendor_present(self): return self.is_element_present(self.create_vendor_locator)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def onVendorCreated(self):\n\n try:\n count = len(self.actionVendor.tag._polyline._vertices)\n if count > 2:\n points = []\n for point in self.actionVendor.tag._polyline._vertices:\n points.append(QPoint(round(point[0]), round(point[1]))...
[ "0.655659", "0.6182998", "0.61777186", "0.6160204", "0.61143076", "0.6047475", "0.59969324", "0.5987495", "0.59184116", "0.5901415", "0.5901415", "0.5879579", "0.5879579", "0.5879579", "0.5856006", "0.58531314", "0.57469994", "0.57304674", "0.57168674", "0.56997466", "0.56791...
0.6788756
0
Implementing is vendor price lists present functionality
def is_vendor_price_lists_present(self): return self.is_element_present(self.vendor_price_lists_locator)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_vendor_price_lists_details(self):\n try:\n self.vendor_price_lists_dict = self.get_grid_row_details(self.customer_price_list_grid_div_id, self.vendor_price_lists_dict)\n return True\n except:\n return False", "def verify_vendor_price_lists_details(self, row_...
[ "0.7492419", "0.63614565", "0.62272936", "0.619145", "0.6164832", "0.614131", "0.5918902", "0.58867675", "0.58189636", "0.58065224", "0.5774671", "0.5773653", "0.5753038", "0.57513326", "0.5735464", "0.5723339", "0.5710892", "0.5680941", "0.5598808", "0.55697834", "0.5557698"...
0.6822345
1
Implementing click buy page inline action button functionality
def click_buy_page_inline_action_button(self, vendor): self.click_inline_action_button(self.vendors_div_id, vendor, self.grid_column_number)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def click_buy_and_sell_deal_management_grid_first_row_inline_action_button(self):\n self.click_inline_action_button(self.buy_and_sell_management_grid_div_id, None, self.buy_and_sell_management_grid_inline_action_column_number, True)", "def click_buy_and_sell_deal_bulk_edit_button(self):\n self.clic...
[ "0.65620035", "0.63311285", "0.63300854", "0.6286846", "0.62395346", "0.6238853", "0.6130139", "0.60976636", "0.6089991", "0.60558015", "0.60558015", "0.60558015", "0.60558015", "0.6051222", "0.5989819", "0.5983532", "0.59315854", "0.58962005", "0.5894016", "0.5894016", "0.58...
0.7795137
0
Implementing is vendor profile present functionality
def is_vendor_profile_present(self): return self.is_element_present(self.vendor_profile_locator)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def is_vendor_profile_page_loaded_properly(self):\n return self.is_element_present(self.save_vendor_profile_locator)", "def is_vendor(self) -> bool:\n return self._is_vendor", "def is_specific_tab_on_vendor_profile_page_present(self, tab_name):\n tab_locator = (By.XPATH, \"//div[contains(@...
[ "0.6353229", "0.6263275", "0.60498637", "0.58901536", "0.5854708", "0.5785455", "0.5775481", "0.56977445", "0.560553", "0.5575215", "0.5489019", "0.548175", "0.54198354", "0.54048556", "0.54040384", "0.53983", "0.5386571", "0.5337491", "0.5300845", "0.5284285", "0.5280889", ...
0.71709037
0
Implementing is vendor rates present functionality
def is_vendor_rates_present(self): return self.is_element_present(self.vendor_rates_locator)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rates(self):\n raise NotImplementedError(\"Must be implemented by subclass.\")", "def getActiveCurrency():", "def getActiveCurrencies():", "def getUserCurrency():", "def ship_rate(self):\n\t\treturn self.industry * (self.manufacturing.level + 5) / 24.0", "def test_company_EU_GR_vies_tax(self):\n ...
[ "0.6911305", "0.66839033", "0.65217835", "0.63242066", "0.6183879", "0.6166811", "0.61068565", "0.61026514", "0.60776925", "0.6030074", "0.5916265", "0.589415", "0.5807989", "0.58050406", "0.57811683", "0.5698511", "0.5683856", "0.56709576", "0.5665785", "0.56341785", "0.5606...
0.65353423
2
Implementing is vendor digits present functionality
def is_vendor_digits_present(self): return self.is_element_present(self.vendor_digits_locator)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vendor_list():\n return ['nxos', 'eos', 'cumulus']", "def get_vendor(mac):\r\n return p.get_manuf(mac) or 'None'", "def get_vendor(self, result, host, mac):\n if \"vendor\" in result['scan'][host] and mac in result['scan'][host]['vendor']:\n return result['scan'][host]['vendor'][mac...
[ "0.6032878", "0.5946633", "0.57252645", "0.5716937", "0.5711166", "0.56264675", "0.5623872", "0.5562387", "0.5555216", "0.55518043", "0.5550491", "0.55362904", "0.5514499", "0.54909575", "0.5461236", "0.5437278", "0.54319304", "0.53986394", "0.53688043", "0.5318572", "0.53183...
0.68530744
0
Implementing is vendor destination present functionality
def is_vendor_destination_present(self): return self.is_element_present(self.vendor_destination_locator)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def is_vendor(self) -> bool:\n return self._is_vendor", "def is_create_vendor_present(self):\n return self.is_element_present(self.create_vendor_locator)", "def is_country_column_present_in_vendor_profile_destinations_page(self):\n return self.is_specific_column_present(self.destinations_g...
[ "0.60589635", "0.55775374", "0.5568114", "0.5536477", "0.5501193", "0.5362999", "0.5362337", "0.53581727", "0.5344341", "0.5316964", "0.52319616", "0.5189973", "0.5180029", "0.516376", "0.5160059", "0.5142233", "0.50607926", "0.50488794", "0.50478595", "0.5024202", "0.5019415...
0.74863005
0
Implementing is upload vendor price list present functionality
def is_upload_vendor_price_list_present(self): return self.is_element_present(self.upload_vendor_price_list_locator)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def upload_products_view(request):\n curr_vendor = get_object_or_404(Vendor, user=request.user)\n if request.method == 'POST':\n form = UploadFileForm(request.POST, request.FILES)\n if form.is_valid():\n folderpath = settings.UPLOAD_DIR + \"vendor/\"\n filepath = save_file(r...
[ "0.6263099", "0.6141632", "0.6066002", "0.5928832", "0.5877911", "0.5603189", "0.55999833", "0.5502769", "0.5484664", "0.5477019", "0.5378392", "0.5263404", "0.5179111", "0.5104403", "0.5092336", "0.5042064", "0.5026895", "0.5016881", "0.5006495", "0.49896625", "0.4987563", ...
0.67144847
0
Implementing is inline action popup loaded properly functionality
def is_inline_action_popup_loaded_properly(self): return self.is_element_present(self.vendor_profile_inline_item_locator)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def verify_popup(self, type):", "def onShowed(self):\n self.parent.actionTagTwo=\"\"\n pass", "def populating_popup(self, *args):\n return _ida_hexrays.Hexrays_Hooks_populating_popup(self, *args)", "def show_popup(self, view, docstring, location=None):", "def on_actions_list(self, e):\...
[ "0.6597915", "0.648272", "0.6258592", "0.6248072", "0.5986996", "0.59293145", "0.5862947", "0.5807013", "0.56972724", "0.55615556", "0.5549271", "0.5549271", "0.5548313", "0.55236566", "0.5493427", "0.54465926", "0.5439738", "0.5421852", "0.54136634", "0.5403886", "0.53963846...
0.71407616
0
Implementing click on tab of vendor profile page functionality
def click_on_tab_of_vendor_profile_page(self, tab_name): vendor_profile_page_tab_locator = (By.XPATH, self.vendor_profile_page_tab_locator_string + "[text()='%s']" % tab_name) self.select_static_tab(vendor_profile_page_tab_locator, 'tab locator not found')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def clickViewProfile(self):\n self.waitForElement(locator=self._viewProfileBtn, locatorType=\"xpath\")\n element = self.getElementList(locator=self._viewProfileBtn, locatorType=\"xpath\")\n self.elementClick(element=element[0])", "def tabSelected(self):", "def tabSelected(self):", "def c...
[ "0.6522478", "0.64506716", "0.64506716", "0.6187155", "0.6104637", "0.608604", "0.6002209", "0.59290266", "0.5869084", "0.5767032", "0.5752777", "0.5728779", "0.5690089", "0.56537795", "0.5647347", "0.5619931", "0.5612905", "0.5586425", "0.5546058", "0.5527586", "0.55254775",...
0.7509712
0
Implementing is vendor profile page loaded properly functionality
def is_vendor_profile_page_loaded_properly(self): return self.is_element_present(self.save_vendor_profile_locator)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def is_vendor_profile_present(self):\n return self.is_element_present(self.vendor_profile_locator)", "def is_specific_tab_on_vendor_profile_page_present(self, tab_name):\n tab_locator = (By.XPATH, \"//div[contains(@id, 'SourceProfileTabStrip')]/descendant::a[text()='%s']\" % tab_name)\n retu...
[ "0.66580355", "0.6311346", "0.5826427", "0.56982046", "0.55703735", "0.5551309", "0.55296487", "0.5511999", "0.5439052", "0.54025126", "0.54020023", "0.5387055", "0.5378316", "0.5353664", "0.53376067", "0.53376067", "0.52425605", "0.5241384", "0.52211964", "0.5217143", "0.519...
0.74304616
0
Implementing is rates page loaded properly functionality
def is_rates_page_loaded_properly(self): return self.is_element_present(self.rate_catalog_locator)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def is_rates_tab_loaded_properly(self):\n return self.is_element_present(self.search_rates_locator)", "def acquire_rates_data(self):\n prinf('%s params: %s', self.base_url, self.my_params)\n g_start()\n try:\n self.response_data = requests.get(self.base_url, params=self.my_...
[ "0.6668916", "0.6402403", "0.594141", "0.5868841", "0.5804853", "0.57478184", "0.5625256", "0.5612651", "0.54204524", "0.539927", "0.53936803", "0.53860724", "0.5364493", "0.53571963", "0.5312584", "0.5246278", "0.5223548", "0.52033126", "0.5198016", "0.51972485", "0.51922804...
0.7343132
0
Implementing is dial digits page loaded properly functionality
def is_dial_digits_page_loaded_properly(self): return self.is_element_present(self.dialed_digits_locator)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def is_dial_digits_tab_loaded_properly(self):\n return self.is_element_present(self.search_dial_digits_locator)", "def phone_start(self) -> None:", "def select_dial_digits_tab(self):\n self.click_element(self.dial_digits_tab_locator, True, True)", "def is_incall_dialing(self) -> bool:", "def ...
[ "0.6351673", "0.6051149", "0.58823335", "0.58278865", "0.5729101", "0.569002", "0.53910416", "0.5289853", "0.51889604", "0.5184374", "0.51738495", "0.51713043", "0.516416", "0.5133655", "0.50922155", "0.50697666", "0.5032302", "0.49997136", "0.49176535", "0.4916321", "0.48991...
0.7028279
0
Implementing is destinations page loaded properly functionality
def is_destinations_page_loaded_properly(self): return self.is_element_present(self.search_destination_locator)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_link_registered(self):\n response = self.client.get(reverse('misago:admin:users:accounts:index'))\n\n response = self.client.get(response['location'])\n self.assertContains(response, reverse('misago:admin:users:bans:index'))", "def is_served_area(self, location):\n\t\tis_served = Fa...
[ "0.56053495", "0.55677485", "0.55168056", "0.547717", "0.5470642", "0.54690707", "0.54483056", "0.5434261", "0.53937316", "0.5334329", "0.5315497", "0.52834636", "0.52634895", "0.5261351", "0.5257627", "0.5223185", "0.5205327", "0.5196006", "0.5182019", "0.51654166", "0.51574...
0.73504025
0
Implementing click on vendor price lists functionality
def click_on_vendor_price_lists(self): vendor_price_lists_element = self.wait().until(EC.element_to_be_clickable(self.vendor_price_lists_locator), 'vendor price lists locator not found before specified time') self.script_executor_click(vendor_price_lists_element) self.wait_for_ajax_spinner_load(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def click_buy_page_inline_action_button(self, vendor):\n self.click_inline_action_button(self.vendors_div_id, vendor, self.grid_column_number)", "def click_vendor_price_lists_search_button(self):\n search_button_element = self.wait().until(EC.element_to_be_clickable(self.search_button_locator), 'se...
[ "0.66060024", "0.6558755", "0.62382877", "0.61915034", "0.6082665", "0.6070102", "0.6055624", "0.59267545", "0.5718903", "0.5711302", "0.5507519", "0.5475869", "0.5474474", "0.54237473", "0.5406867", "0.5405167", "0.53965765", "0.53871065", "0.53813577", "0.53805524", "0.5328...
0.74880445
0
Implementing set from date functionality
def set_from_date(self, date): self.set_value_into_input_field(self.set_from_date_locator, date)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def setDate(self, p_int, p_int_1, p_int_2): # real signature unknown; restored from __doc__\r\n return False", "def set_date(self, date):\n self.date = date", "def _date(self, _date):\n\n self.__date = _date", "def _date(self, _date):\n\n self.__date = _date", "def set_date(self...
[ "0.6996464", "0.6848224", "0.6785193", "0.6785193", "0.67568946", "0.6741584", "0.6711525", "0.66667306", "0.66256315", "0.65732056", "0.6558121", "0.6546887", "0.64697933", "0.6411807", "0.64079237", "0.6393024", "0.6370572", "0.6364458", "0.6350388", "0.63489634", "0.630681...
0.6777829
4
Implementing set to date functionality
def set_to_date(self): self.set_value_into_input_field(self.set_to_date_locator, self.get_current_date())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def setDate(self, p_int, p_int_1, p_int_2): # real signature unknown; restored from __doc__\r\n return False", "def set_date(self, date):\n self.date = date", "def date(self, value):\n self.date_value = value", "def _date(self, _date):\n\n self.__date = _date", "def _date(self, ...
[ "0.7597517", "0.7108432", "0.70938134", "0.7081148", "0.7081148", "0.7057913", "0.7012738", "0.6949188", "0.6927733", "0.6875525", "0.6873057", "0.6810564", "0.67987144", "0.6746936", "0.6733423", "0.67172575", "0.6710233", "0.6599115", "0.6569132", "0.6557032", "0.6553031", ...
0.76180005
0
Implementing click vendor price lists search button functionality
def click_vendor_price_lists_search_button(self): search_button_element = self.wait().until(EC.element_to_be_clickable(self.search_button_locator), 'search button not found before specified time') self.script_executor_click(search_button_element) self.wait_for_ajax_spinner_load(300)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def click_on_vendor_price_list_upload_search_button(self):\n vendor_price_list_upload_search_button_element = self.wait().until(EC.element_to_be_clickable(self.vendor_price_list_upload_search_button_locator), 'vendor price list upload search button locator not found before specified time')\n vendor_p...
[ "0.67439646", "0.66573006", "0.6485732", "0.634402", "0.6308638", "0.6296258", "0.61310154", "0.6101929", "0.60976154", "0.6091547", "0.60725826", "0.5917563", "0.58863914", "0.58090204", "0.57779515", "0.57762134", "0.57505846", "0.57471293", "0.5746761", "0.57103413", "0.57...
0.79111916
0
Implementing verify price list item functionality
def verify_price_list_item(self, price_list_item): self.single_selection_from_kendo_dropdown(self.price_list_kendo_dropdown_locator, price_list_item)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_LinkedPriceCheck(self):\n # Basic price check\n self.log.info(\"Price checking Linked Item 1 via PLU\")\n pos.click(\"Price Check\")\n pos.enter_keypad(\"014\", after=\"enter\")\n \n # Confirm the right item, at the right price\n self.read_price_check(\"Lin...
[ "0.69587696", "0.69523215", "0.6614124", "0.65662354", "0.6559915", "0.65482956", "0.63033843", "0.6295743", "0.61983514", "0.61921096", "0.6160937", "0.6149853", "0.6114186", "0.58709925", "0.57739615", "0.5763249", "0.57321095", "0.5725347", "0.57172257", "0.57046336", "0.5...
0.7701968
0
Implementing click view price list detail page inline action button functionality
def click_view_price_list_detail_page_inline_action_button(self, price_list_item): self.click_inline_action_button(self.view_price_list_div_id, price_list_item, self.view_price_list_column_number) self.wait_for_ajax_spinner_load()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def click_view_price_list_detail_first_row_inline_action_button(self):\n self.click_inline_action_button(self.view_price_list_div_id, None, self.view_price_list_column_number, True)\n self.wait_for_ajax_spinner_load()", "def click_vendor_price_list_grid_first_row_inline_action_button(self):\n ...
[ "0.7218018", "0.6463628", "0.6188844", "0.6057789", "0.58169675", "0.57019943", "0.56886107", "0.5678829", "0.55927885", "0.55755067", "0.55638826", "0.5536148", "0.5473998", "0.5421182", "0.5421182", "0.5421182", "0.5421182", "0.5415894", "0.5382531", "0.5321642", "0.5321642...
0.79761547
0
Implementing search results displayed in the grid functionality
def search_results_displayed_in_the_grid(self): data_found = None try: self.wait(5).until(EC.presence_of_element_located(self.no_data_found_locator)) data_found = False except: data_found = True finally: return data_found
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def customize_search_results(self):\n adjust_date_range(self.driver, self.date_range)\n adjust_salary_range(self.driver, self.salary_range)\n # adjust_search_radius(self.driver, self.search_radius) # deprecated\n # scroll to top of page so the sorting menu is in view\n self.drive...
[ "0.69461197", "0.6799499", "0.67780864", "0.6751031", "0.6720709", "0.6709154", "0.65482336", "0.6503466", "0.64399064", "0.6430359", "0.64194864", "0.64055413", "0.63930434", "0.6391086", "0.6378229", "0.6348765", "0.6324478", "0.6314938", "0.6299897", "0.6280762", "0.620299...
0.61538845
25
Implementing click create vendor button functionality
def click_create_vendor_button(self): create_vendor_element = self.wait().until(EC.element_to_be_clickable(self.create_vendor_locator), "create vendor locator not found before specified time out") create_vendor_element.click() self.wait_for_ajax_spinner_load()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def click_buy_and_sell_deal_create_button(self):\n self.click_element(self.save_vendor_profile_locator)", "def test_create_custom_button(self):\n pass", "def goto_create(self):\n\n self.create.click()", "def generate_buttons(self):\n raise Exception('Implement me!')", "def creat...
[ "0.71414775", "0.6954892", "0.6602717", "0.64814246", "0.6473455", "0.628929", "0.6244608", "0.6196933", "0.61187863", "0.60596347", "0.6059178", "0.5956047", "0.59116757", "0.5863656", "0.5848215", "0.5848059", "0.58261234", "0.5824615", "0.58196187", "0.58189887", "0.579978...
0.7178269
0
Implementing set vendor name functionality
def set_vendor_name(self, vendor_name_prefix): global vendor_name self.vendor_unique_id = self.random_string_generator(6) vendor_name = vendor_name_prefix + self.vendor_unique_id self.set_value_into_input_field(self.vendor_name_textbox_locator, vendor_name) return vendor_name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vendor(self, vendor):\n\n self._vendor = vendor", "def get_created_vendor_name(self):\n global vendor_name\n return vendor_name", "def setup_vendor(\n vendor_str,\n bucket=None,\n use_encryption=True,\n ignore_prefix=False,\n profile=None,\n **other\n):\n vendor = ...
[ "0.6992772", "0.6676918", "0.66588616", "0.64297384", "0.64024156", "0.6376838", "0.63348264", "0.6257925", "0.62141275", "0.62141275", "0.62078065", "0.61674213", "0.6095321", "0.6075549", "0.6031955", "0.6019858", "0.5992535", "0.5857119", "0.5826633", "0.5809263", "0.58056...
0.7805579
0
Implementing set abbreviation functionality
def set_abbreviation(self, abbreviation_name_prefix): abbreviation_name = abbreviation_name_prefix + self.vendor_unique_id self.set_value_into_input_field(self.abbreviation_textbox_locator, abbreviation_name) self.wait_for_ajax_spinner_load() return abbreviation_name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def abbreviation(self, abbreviation):\n self._abbreviation = abbreviation", "def deabbreviate(self, st):\n\t\tabbrs = {'gws': 'greater western sydney giants',\n\t\t\t\t 'gwsg': 'greater western sydney giants',\n\t\t\t\t 'afl': 'australian football league',\n\t\t\t\t 'nrc': 'national rugby championship',\n...
[ "0.6669047", "0.6505268", "0.6488366", "0.6256427", "0.6205632", "0.6123321", "0.6110684", "0.60988617", "0.6096913", "0.6063559", "0.6024746", "0.6011167", "0.60006106", "0.59988993", "0.59873813", "0.5982658", "0.5914115", "0.58956414", "0.5885546", "0.58584094", "0.5844675...
0.6716687
0
Implementing set ixtools account functionality
def set_ixtools_account(self, item_name): self.single_selection_from_kendo_dropdown(self.ixtools_account_kendo_dropdown_locator, item_name) self.wait_for_ajax_spinner_load()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def setaccount(self, vergeaddress, account):\n return self.proxy.setaccount(vergeaddress, account)", "def accounts():", "def accounts():\n pass", "def _setaccount_with_institution_57A(self, val):\n self.swift_obj.AccountWithInstitution_A = val\n self.swift_obj.AccountWithInstitution_A...
[ "0.67486817", "0.6443842", "0.60852647", "0.60689306", "0.60078216", "0.5949976", "0.5917784", "0.58999556", "0.58810455", "0.58011013", "0.57881767", "0.57838356", "0.5734723", "0.5734723", "0.5728632", "0.56613344", "0.5649996", "0.56409866", "0.56007147", "0.5596779", "0.5...
0.61042714
2
Implementing set rate plan functionality
def set_rate_plan(self, item_name): self.single_selection_from_kendo_dropdown(self.rate_plan_kendo_dropdown_locator, item_name)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_update_rate_plan(self):\n pass", "def test_create_rate_plan(self):\n pass", "def set_current_rate(self, rate_to_set):\n pass", "def test_retire_rate_plan(self):\n pass", "def __call__(self, rate:'kW'):\n self.rate = rate\n self.cost = self.price * rate", ...
[ "0.74392176", "0.7288576", "0.7178688", "0.6892402", "0.6771838", "0.6763872", "0.6663844", "0.6448969", "0.6418209", "0.6402159", "0.63838625", "0.6332945", "0.6276219", "0.6254292", "0.6137508", "0.6137508", "0.6132301", "0.6112704", "0.59804064", "0.5963258", "0.5948176", ...
0.7069618
3
Implementing set call type functionality
def set_call_type(self, item_name): is_set = False call_type_kendo_dropdown_element_disabled = "" call_type_kendo_dropdown_element = self.wait().until(EC.presence_of_element_located(self.call_type_kendo_dropdown_locator), 'call type kendo dropdown locator not found before specified time out') ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ui_set_call_type(self, *args):\n return _ida_hexrays.vdui_t_ui_set_call_type(self, *args)", "def setcall(self, errtype, func):\n if errtype not in self:\n raise KeyError(\"Unknown error type: %s\" % errtype)\n\n old_call = self._profile[errtype]['call']\n self._profile[...
[ "0.71009064", "0.6725704", "0.6321175", "0.62465477", "0.6075467", "0.5959521", "0.59526604", "0.5881013", "0.585508", "0.5855076", "0.5855076", "0.5844616", "0.5844616", "0.58378345", "0.5764136", "0.5726988", "0.57119626", "0.570542", "0.56762934", "0.56714183", "0.56643236...
0.5717049
16
Implementing set vendor profile status functionality
def set_vendor_profile_status(self, item_name): self.single_selection_from_kendo_dropdown(self.vendor_profile_status_kendo_dropdown_locator, item_name) self.wait_for_ajax_spinner_load()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_update_profile(self):\n self.cim.update_profile(\n customer_id=u\"222\",\n description=u\"Foo bar baz quz\",\n email=u\"dialtone@gmail.com\",\n customer_profile_id=u\"122\"\n )", "def test_set_user_status(self):\n pass", "def update_serv...
[ "0.5939609", "0.5749379", "0.5628115", "0.56255054", "0.5479333", "0.5470991", "0.54292125", "0.53789544", "0.5362583", "0.5361451", "0.533727", "0.5305478", "0.52904046", "0.527424", "0.52352536", "0.52283174", "0.5223231", "0.5222966", "0.5216753", "0.52085346", "0.5197833"...
0.70784557
0
Implementing click save vendor profile button functionality
def click_save_vendor_profile_button(self): save_vendor_profile_button_element = self.wait().until(EC.element_to_be_clickable(self.save_vendor_profile_button_locator), "save vendor profile button locator not found before spcified time out") save_vendor_profile_button_element.click() self.wait_fo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def click_buy_and_sell_deal_create_button(self):\n self.click_element(self.save_vendor_profile_locator)", "def save_profile(self):\n self.save()", "def save_profile(sender, instance, **kwargs):\n instance.profile.save()", "def save_user_profile(sender, instance, **kwargs):\n instance.prof...
[ "0.6696436", "0.66581243", "0.66435516", "0.63994044", "0.63994044", "0.62998235", "0.6288641", "0.62056756", "0.6128492", "0.5940652", "0.5917031", "0.59050167", "0.582514", "0.57582545", "0.57557994", "0.5755418", "0.5751631", "0.57275337", "0.5719755", "0.5709975", "0.5650...
0.7315569
0
Implementing get first row item from price lists grid functionality
def get_first_row_item_from_price_lists_grid(self, column_name): column_locator = (By.XPATH, "//div[@id='%s']/descendant::th[@data-title='%s']" % (self.vendor_price_list_grid_div_id, column_name)) column_element = self.wait().until(EC.presence_of_element_located(column_locator), 'column locator not foun...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def click_vendor_price_list_grid_first_row_inline_action_button(self):\n self.click_inline_action_button(self.vendor_price_list_grid_div_id, None, self.view_price_list_column_number, True)", "def get_first_item(self):\n params = urllib.parse.urlencode({'o':'1', 'q':self.query})\n url = 'http...
[ "0.68172544", "0.6123608", "0.61156", "0.6049983", "0.59595025", "0.5906363", "0.5876812", "0.5745905", "0.5628147", "0.56239265", "0.5621239", "0.5604561", "0.55677116", "0.55528116", "0.5548163", "0.5533254", "0.5522458", "0.55145633", "0.5503631", "0.54933375", "0.54846174...
0.750546
0
Implementing is view price list detail present functionality
def is_view_price_list_detail_present(self): return self.is_element_present(self.view_price_list_detail_locator)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pricing_view(request, simulation):\n return TollListView.as_view()(request, simulation=simulation, )", "def click_view_price_list_detail_page_inline_action_button(self, price_list_item):\n self.click_inline_action_button(self.view_price_list_div_id, price_list_item, self.view_price_list_column_numb...
[ "0.672364", "0.61050856", "0.5851114", "0.58292496", "0.5737736", "0.57132393", "0.57132393", "0.57038385", "0.5684409", "0.5657629", "0.5653407", "0.5643853", "0.5625984", "0.5606708", "0.55983764", "0.5554235", "0.5543217", "0.5491525", "0.5479144", "0.5478871", "0.5475177"...
0.6891939
0
Implementing is analyze and complete present functionality
def is_analyze_and_complete_present(self): return self.is_element_present(self.analyze_and_complete_locator)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def analyse(self):\n pass", "def analyze(self, start, end):\n return", "def cingAnalyseResults(self): \n\n pass", "def analyse(self, data=None):\n pass", "def Analyze(self, data):\n self._AddResult()", "def analysis(self, game_info):\n pass", "def help_analyze(self):\...
[ "0.8196267", "0.6842814", "0.6830102", "0.68008375", "0.67579293", "0.6708003", "0.6620295", "0.6452663", "0.63956684", "0.63651955", "0.63600916", "0.6326256", "0.6302369", "0.62195295", "0.6135331", "0.61002946", "0.6059791", "0.60102427", "0.5989642", "0.59839654", "0.5973...
0.0
-1
Implementing verify selected vendor functionality
def verify_selected_vendor(self, vendor_name): is_present = None vendor_locator = (By.XPATH, self.selected_vendor_locator_string + "[text()='%s']" % vendor_name) try: self.wait().until(EC.presence_of_element_located(vendor_locator)) is_present = True except: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_verifyvendordetails(self):\n self.tc_id = \"Ts_003\"\n self.tc_desc = \"Verify the admin is able to login and verify the vendor\"\n self.tc_step = \"TC Start\"\n\n login = adminLoginVerify(self.driver)\n\n self.tc_step = \"Launch the url\"\n login.launchUrl(self.u...
[ "0.670205", "0.65491", "0.6455978", "0.63896424", "0.62931645", "0.6106283", "0.5946978", "0.5823195", "0.5818268", "0.57950526", "0.57142895", "0.56739694", "0.56514", "0.56338286", "0.5560511", "0.554358", "0.5538796", "0.5537571", "0.54965436", "0.54965436", "0.5486617", ...
0.6638458
1
Implementing verify selected price list functionality
def verify_selected_price_list(self, price_list_item): is_present = None price_list_locator = (By.XPATH, self.selected_price_list_locator_string + "[text()='%s']" % price_list_item) try: self.wait().until(EC.presence_of_element_located(price_list_locator)) is_present = Tr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def verify_price_list_item(self, price_list_item):\n self.single_selection_from_kendo_dropdown(self.price_list_kendo_dropdown_locator, price_list_item)", "def verify_selected_price_lists_details(self):\n status = True\n row_data_length = len(self.compare_price_lists_list)\n for i in r...
[ "0.76608884", "0.71923727", "0.667606", "0.6371421", "0.62783915", "0.620581", "0.60420954", "0.58945847", "0.58802074", "0.57268363", "0.5701844", "0.5574292", "0.5541419", "0.5529915", "0.55284286", "0.5525261", "0.5518", "0.5501914", "0.5497437", "0.5438676", "0.5428813", ...
0.6850696
2
Implementing select tab of view price list detail page functionality
def select_tab_of_view_price_list_detail_page(self, tab_name): self.wait_for_ajax_spinner_load(300) view_price_list_detail_page_tab_locator = (By.XPATH, self.vendor_profile_page_tab_locator_string + "[text()='%s']" % tab_name) self.select_static_tab(view_price_list_detail_page_tab_locator, 'tab ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def select_vendor_price_list_detail_dial_digits_tab(self):\n self.click_element(self.vendor_price_list_details_dial_digits_tab_locator, True)", "def select_vendor_price_list_detail_reference_rates_tab(self):\n self.click_element(self.vendor_price_list_details_reference_rates_tab_locator, True)", ...
[ "0.6835079", "0.6739175", "0.6259823", "0.62537336", "0.62537336", "0.58900446", "0.5717749", "0.56737566", "0.55877537", "0.55626476", "0.55466574", "0.5530657", "0.55169934", "0.54991156", "0.5452901", "0.5405589", "0.54007363", "0.5384425", "0.5336837", "0.5335677", "0.533...
0.66517025
2
Implementing is rates tab loaded properly functionality
def is_rates_tab_loaded_properly(self): return self.is_element_present(self.search_rates_locator)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def select_rates_tab(self):\n self.select_static_tab(self.rates_tab_locator, True)", "def is_reference_rates_tab_loaded_properly(self):\n return self.is_element_present(self.search_reference_rates_locator)", "def select_reference_rates_tab(self):\n self.select_static_tab(self.reference_rat...
[ "0.70905966", "0.6582914", "0.64949054", "0.6484532", "0.58618194", "0.57560116", "0.5687023", "0.5663688", "0.5639475", "0.5593695", "0.55849165", "0.55353606", "0.54840624", "0.5444116", "0.5436454", "0.5423047", "0.54179454", "0.5411351", "0.5411351", "0.5383708", "0.53808...
0.7273935
0
Implementing is dial digits tab loaded properly functionality
def is_dial_digits_tab_loaded_properly(self): return self.is_element_present(self.search_dial_digits_locator)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def select_dial_digits_tab(self):\n self.click_element(self.dial_digits_tab_locator, True, True)", "def select_dialed_digits_tab(self):\n self.select_static_tab(self.dialed_digits_tab_locator, True)", "def is_dial_digits_page_loaded_properly(self):\n return self.is_element_present(self.dia...
[ "0.6828951", "0.61542976", "0.6018182", "0.5855866", "0.57340544", "0.5681881", "0.55452514", "0.5459296", "0.53366923", "0.53362525", "0.5294616", "0.52681047", "0.5229357", "0.5222613", "0.51567245", "0.515306", "0.515306", "0.50436586", "0.49452376", "0.4938904", "0.493378...
0.6832388
0
Implementing is reference rates tab loaded properly functionality
def is_reference_rates_tab_loaded_properly(self): return self.is_element_present(self.search_reference_rates_locator)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def select_reference_rates_tab(self):\n self.select_static_tab(self.reference_rates_tab_locator, True)", "def is_rates_tab_loaded_properly(self):\n return self.is_element_present(self.search_rates_locator)", "def select_rates_tab(self):\n self.select_static_tab(self.rates_tab_locator, True...
[ "0.7240311", "0.68781984", "0.6629199", "0.618467", "0.59749484", "0.5971716", "0.58440065", "0.57117933", "0.54279953", "0.5427124", "0.5396612", "0.5382424", "0.53351074", "0.53165734", "0.5281983", "0.5268209", "0.5245659", "0.5244387", "0.52192736", "0.5209899", "0.520989...
0.72599447
0