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
Implementing set buy sell deal account functionality
def set_buy_sell_deal_account(self, account_list): self.multiple_items_selection_from_kendo_dropdown(self.buy_sell_deal_account_dropdown_locator, account_list) self.wait_for_ajax_spinner_load()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Trading(Seller,Buyer):\n if Seller.has_sold == False:\n if Buyer.like_buy >= Seller.like_sell:\n Seller.has_sold = True\n Buyer.has_bought = True\n Seller.sold_objects += 1\n Buyer.bought_objects += 1\n print('A trade has been made')\n e...
[ "0.6445233", "0.6413449", "0.6269509", "0.61719674", "0.61377376", "0.60943884", "0.6090972", "0.60790056", "0.6075911", "0.60327494", "0.6020972", "0.60124266", "0.59813756", "0.59656405", "0.59601235", "0.59371483", "0.5922628", "0.5903026", "0.58998966", "0.58923525", "0.5...
0.74209785
0
Implementing set vendor functionality
def set_vendor(self, vendor_list): self.multiple_items_selection_from_kendo_dropdown(self.vendor_dropdown_locator, vendor_list) self.wait_for_ajax_spinner_load()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vendor(self, vendor):\n\n self._vendor = vendor", "def vendor_list():\n return ['nxos', 'eos', 'cumulus']", "def vendorid(self, vendorid):\n\n self._vendorid = vendorid", "def vendor(self):\n return self._vendor", "def set_vendor_specific(self, vendor_dict):\n\n ds = xr.D...
[ "0.7222287", "0.6403538", "0.630762", "0.62553227", "0.62217903", "0.620997", "0.61020625", "0.6084132", "0.59344214", "0.5922468", "0.58317804", "0.5783661", "0.5765108", "0.5727027", "0.57049346", "0.5685642", "0.5679784", "0.5652456", "0.56487244", "0.56167257", "0.5575269...
0.6906274
1
Implementing set customer functionality
def set_customer(self, customer_list): self.multiple_items_selection_from_kendo_dropdown(self.customer_dropdown_locator, customer_list) self.wait_for_ajax_spinner_load()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def customer(self, customer):\n\n self._customer = customer", "def customer(self, customer):\n\n self._customer = customer", "def store_customer(self, name):\n pass", "def __init__(self):\n self.customers = set() # when a customer is registered it is added to the set", "def _set...
[ "0.72094655", "0.72094655", "0.70021456", "0.6832083", "0.68292725", "0.6733106", "0.66695607", "0.6500562", "0.6478323", "0.6275709", "0.6192777", "0.6181375", "0.617908", "0.61465466", "0.61266625", "0.61073637", "0.61073637", "0.61073637", "0.61073637", "0.610736", "0.6078...
0.686508
3
Implementing click buy and sell deal create button functionality
def click_buy_and_sell_deal_create_button(self): self.click_element(self.save_vendor_profile_locator)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def click_buy_and_sell_deal_bulk_edit_button(self):\n self.click_element(self.buy_and_sell_deal_bulk_edit_button_lcoator, True)", "def click_request_new_deal_button(self):\n self.click_element(self.request_new_deal_button_locator)", "async def _vis_buy(self, ctx, *args):\n if has_post_perm...
[ "0.688306", "0.63619286", "0.6302916", "0.62475187", "0.62253845", "0.6183532", "0.6155078", "0.61283386", "0.6127857", "0.6119427", "0.610177", "0.60882276", "0.60569257", "0.60507286", "0.6028283", "0.60277146", "0.60111076", "0.6001032", "0.5991747", "0.5989623", "0.598505...
0.7983313
0
Implementing get buy and sell deal name functionality
def get_buy_and_sell_deal_name(self): global buy_and_sell_deal return buy_and_sell_deal
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_buy_and_sell_deal_name(self, buy_and_sell_deal_prefix):\n global buy_and_sell_deal\n buy_and_sell_deal = buy_and_sell_deal_prefix + self.random_string_generator(size=4)\n self.set_value_into_input_field(self.buy_and_sell_deal_textbox_locator, buy_and_sell_deal)", "def buy_commodity(u...
[ "0.6696783", "0.6224842", "0.61127037", "0.5885977", "0.58507454", "0.5779713", "0.5724441", "0.57045215", "0.56503594", "0.562514", "0.5597653", "0.5589393", "0.5585691", "0.553237", "0.5506362", "0.5504986", "0.5480954", "0.5470787", "0.54650915", "0.5447669", "0.5447065", ...
0.8101306
0
Implementing click buy and sell deal save button functionality
def click_buy_and_sell_deal_save_button(self): self.click_element(self.save_vendor_profile_locator, True) try: self.wait().until(EC.visibility_of_element_located(self.confirmation_popup_locator), 'confirmation popup locator not found before specified time out') self.click_element...
{ "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 click_buy_and_sell_deal_bulk_edit_button(self):\n self.click_element(self.buy_and_sell_deal_bulk_edit_button_lcoator, True)", "def sell():\n\n # if user reached route via GET return ...
[ "0.7297728", "0.715392", "0.6314758", "0.6237061", "0.62175316", "0.6208546", "0.6186244", "0.61780924", "0.6158734", "0.61187", "0.6107623", "0.61025167", "0.6087814", "0.60843027", "0.6078598", "0.6073275", "0.6062028", "0.60600346", "0.6055075", "0.60517657", "0.6045317", ...
0.7188054
1
Implementing set start date functionality
def set_start_date(self, start_date): self.set_value_into_input_field(self.start_date_inputbox_locator, start_date)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_start_date(self, date):\n pass", "def start_date(self, start_date):\n self._start_date = start_date", "def start_date(self, start_date):\n \n self._start_date = start_date", "def start_date(self, start_date):\n\n self._start_date = start_date", "def start_date(sel...
[ "0.86141276", "0.80457026", "0.7868022", "0.7836363", "0.7836363", "0.7836363", "0.7836363", "0.7836363", "0.7836363", "0.7836363", "0.7836363", "0.7836363", "0.7739041", "0.749863", "0.74370885", "0.7398391", "0.729659", "0.7160086", "0.70503116", "0.70105284", "0.69417137",...
0.80691314
1
Implementing set buy and sell management grid settings functionality
def set_buy_and_sell_management_grid_settings(self, grid_settings): self.set_grid_settings(self.buy_and_sell_management_grid_div_id, grid_settings)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_vendor_price_lists_grid_settings(self, grid_settings):\n self.set_grid_settings(self.view_price_list_div_id, grid_settings)", "def set_vendor_price_list_detail_grid_settings(self, grid_settings):\n self.wait_for_ajax_spinner_load(300)\n self.set_grid_settings(self.vendor_price_list_d...
[ "0.6398558", "0.604387", "0.59920263", "0.5793335", "0.56829715", "0.56757975", "0.5573747", "0.5565601", "0.5519586", "0.54784703", "0.54700017", "0.54370415", "0.5375229", "0.53743625", "0.5347664", "0.53292626", "0.53240794", "0.52728754", "0.52641976", "0.52620107", "0.52...
0.79892987
0
Implementing sort buy and sell management grid column functionality
def sort_buy_and_sell_management_grid_column(self, column_name, descending_order): self.sort_grid_column(self.buy_and_sell_management_grid_div_id, column_name, descending_order)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OnColumnClick(self, event):\r\n columns = self.data.getParam('columns')\r\n self.SortItems(columns[event.GetColumn()],'INVERT')", "def sort_vendor_price_lists_grid_column(self, column_name, descending_order):\n self.sort_grid_column(self.view_price_list_div_id, column_name, descending_or...
[ "0.6722339", "0.65786284", "0.6452577", "0.6041004", "0.6005217", "0.5994471", "0.5969092", "0.5801106", "0.5778006", "0.57584304", "0.57022667", "0.55251795", "0.5473172", "0.5456213", "0.5440098", "0.54038495", "0.53848374", "0.5352643", "0.5340399", "0.5331021", "0.5279471...
0.70848614
0
Implementing get all rows of specific column from buy and sell management grid functionality
def get_all_rows_of_specific_column_from_buy_and_sell_management_grid(self, column_name): self.all_row_data = self.get_all_rows_of_specific_column_from_grid(self.buy_and_sell_management_grid_div_id, column_name, self.get_grid_row_count(self.buy_and_sell_management_grid_count_span_locator, 2)) return sel...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_all_rows_of_rate_increase_violation_column_from_vendor_price_list_detail_grid(self, column_name):\n self.all_row_data = []\n self.wait_for_ajax_spinner_load()\n row_count = len(self.wait().until(EC.presence_of_all_elements_located(self.vendor_price_list_detail_row_locator), 'vendor pri...
[ "0.6735556", "0.6720651", "0.67186683", "0.6640583", "0.65773517", "0.6404575", "0.6303615", "0.5945554", "0.5850497", "0.58364195", "0.57948834", "0.57733727", "0.57243025", "0.56459594", "0.56439763", "0.5600407", "0.5567689", "0.547445", "0.5463407", "0.54597545", "0.54290...
0.7284325
0
Implementing drag buy and sell management grid column functionality
def drag_buy_and_sell_management_grid_column(self, source_column, destination_column): self.drag_grid_column(self.buy_and_sell_management_grid_div_id, source_column, destination_column)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def drag_vendor_price_lists_grid_column(self, source_column, destination_column):\n self.drag_grid_column(self.view_price_list_div_id, source_column, destination_column)", "def drag_vendor_price_list_detail_grid_column(self, source_column, destination_column):\n self.wait_for_ajax_spinner_load(300)...
[ "0.68649036", "0.6444064", "0.63804555", "0.63166463", "0.62582725", "0.61420965", "0.61303335", "0.59818137", "0.5775787", "0.56232387", "0.5621364", "0.5609542", "0.5536238", "0.55356735", "0.53799516", "0.5366732", "0.53493655", "0.5324431", "0.52932245", "0.525854", "0.52...
0.7623682
0
Implementing get buy and sell management grid column names by order functionality
def get_buy_and_sell_management_grid_column_names_by_order(self): self.column_name_list = self.get_grid_column_names_by_order(self.buy_and_sell_management_grid_div_id) return self.column_name_list
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_vendor_price_lists_grid_column_names_by_order(self):\n self.column_name_list = self.get_grid_column_names_by_order(self.view_price_list_div_id)\n return self.column_name_list", "def get_vendor_price_list_detail_grid_column_names_by_order(self):\n self.wait_for_ajax_spinner_load(300)\...
[ "0.7173671", "0.7164694", "0.6961585", "0.67937434", "0.66460264", "0.64222735", "0.63047063", "0.6221156", "0.61231023", "0.5842353", "0.58139414", "0.57718784", "0.5757523", "0.56256413", "0.5614401", "0.56115836", "0.5588756", "0.55571264", "0.55410564", "0.55111706", "0.5...
0.75991935
0
Implementing click buy and sell management grid export to excel button functionality
def click_buy_and_sell_management_grid_export_to_excel_button(self): self.click_grid_export_to_excel_button(self.buy_and_sell_management_grid_div_id)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def click_vendor_price_list_detail_rates_grid_export_to_excel_button(self):\n self.click_grid_export_to_excel_button(self.vendor_price_list_detail_rates_grid_div_id)", "def click_vendor_price_list_detail_reference_rates_grid_export_to_excel_button(self):\n self.click_grid_export_to_excel_button(sel...
[ "0.750306", "0.74308896", "0.7306206", "0.7060795", "0.68989515", "0.68989515", "0.6491007", "0.6120849", "0.591677", "0.5913262", "0.58993304", "0.56994367", "0.569883", "0.56973416", "0.5684809", "0.56796527", "0.56629676", "0.5620759", "0.5603418", "0.55868685", "0.5576812...
0.86254066
0
Implementing select buy and sell deal management grid first row checkbox functionality
def select_buy_and_sell_deal_management_grid_first_row_checkbox(self): self.select_grid_row_checkbox(self.buy_and_sell_management_grid_div_id, None, self.buy_and_sell_management_grid_checkbox_column_number, True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def select_target_buy_list_overrides_grid_row_checkbox(self):\n for i in range(2):\n target_buy_list_overrides_grid_checkbox_locator = (By.XPATH, \"(//div[@data-grid-name='%s']/descendant::input[@type='checkbox'])[%s]\" % (self.target_buy_list_overrides_data_grid_name, str(i + 2)))\n s...
[ "0.63728535", "0.6276276", "0.62166536", "0.61831915", "0.6053796", "0.59584445", "0.5842777", "0.5797149", "0.57607424", "0.5707139", "0.5612971", "0.5531448", "0.5506551", "0.5497594", "0.5481814", "0.54728425", "0.54640925", "0.5431332", "0.538145", "0.5380802", "0.5379458...
0.80763716
0
Implementing click buy and sell deal bulk edit button functionality
def click_buy_and_sell_deal_bulk_edit_button(self): self.click_element(self.buy_and_sell_deal_bulk_edit_button_lcoator, True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def edit_tools(self, e):\n #GETTING SELECTION\n\n self.selected_item = self.user_inventory.selection()\n self.select_name = self.user_inventory.item([i for i in self.selected_item], \"values\")[0]\n self.select_entdate = self.user_inventory.item([i for i in self.selected_item], \"values...
[ "0.66338634", "0.66057515", "0.6131386", "0.60525894", "0.59958154", "0.58884054", "0.58270955", "0.5821739", "0.57709527", "0.5718494", "0.57100034", "0.5659034", "0.56481487", "0.56460947", "0.5622122", "0.55970424", "0.55949754", "0.5559805", "0.5537368", "0.5531731", "0.5...
0.8322212
0
Implementing set bulk edit end date functionality
def set_bulk_edit_end_date(self, end_date, future_date): if future_date is True: end_date = self.get_date(future_date=True, number_of_days_to_add=30) self.set_value_into_input_field(self.bulk_edit_end_date_inputbox_locator, end_date)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_bulk_add_end_date(self, end_date):\n global bulk_add_begin_date\n if end_date != \"\" and datetime.datetime.strptime(end_date, \"%m/%d/%Y\") > bulk_add_begin_date:\n self.set_value_into_input_field(self.bulk_add_end_date_inputbox_locator, str(end_date))\n elif end_date == \"...
[ "0.7402478", "0.7031963", "0.67778796", "0.6563116", "0.64243233", "0.63864547", "0.63864547", "0.63864547", "0.63864547", "0.63864547", "0.63864547", "0.63864547", "0.63864547", "0.63433135", "0.629675", "0.6284176", "0.61299545", "0.604149", "0.6033477", "0.59961516", "0.59...
0.74479747
0
Implementing click bulk edit submit button functionality
def click_bulk_edit_submit_button(self): self.click_element(self.bulk_edit_submit_button_locator)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def click_bulk_edit_submit_button(self):\n self.click_element(self.bulk_edit_submit_button_locator, True)", "def click_bulk_edit_button(self):\n self.click_element(self.bulk_edit_button_locator, True)", "def click_statement_fields_bulk_edit_button(self):\n self.click_element(self.statement...
[ "0.80722886", "0.7676083", "0.72128063", "0.6668404", "0.6572236", "0.65535694", "0.63675964", "0.63469726", "0.63170797", "0.62994254", "0.6182403", "0.61548156", "0.61191946", "0.6086712", "0.60528755", "0.60109603", "0.59184855", "0.5897436", "0.58945984", "0.58505696", "0...
0.8029734
1
Implementing click save changes button functionality
def click_save_changes_button(self): self.click_element(self.save_changes_button_locator, True) try: self.wait().until(EC.visibility_of_element_located(self.confirmation_popup_locator), 'confirmation popup locator not found before specified time out') self.click_element(self.ok_b...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def onSaveNotesButton(self, button):\n pass", "def save():\n pass", "def save_edits(self, value):\r\n if value != self._save:\r\n self._save = value", "def save():", "def save_edits(self):\r\n return self._save", "def save(self):\n pass", "def save(self):\n...
[ "0.7248518", "0.7177743", "0.7092814", "0.7066338", "0.7051386", "0.70364714", "0.70364714", "0.70364714", "0.70364714", "0.70364714", "0.7032507", "0.70250934", "0.6993248", "0.6992968", "0.69803596", "0.6938146", "0.68485695", "0.68485695", "0.68437153", "0.68347204", "0.68...
0.68267846
20
Implementing set multiple status functionality
def set_multiple_status(self, status_list): self.multiple_items_selection_from_kendo_dropdown(self.status_kendo_dropdown_locator, status_list) self.wait_for_ajax_spinner_load() buy_page_title_element = self.wait().until(EC.element_to_be_clickable(self.buy_page_title_locator), 'buy page title loc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _set_status(self, action, status):\n raise NotImplementedError(\"Base class: cannot be called directly\")", "def change_status(self, status):\n for option in status:\n response = requests.patch(self.base_url + 'settings', headers=self.headers, json={option: status.get(option)})\n ...
[ "0.7171014", "0.6825423", "0.6711225", "0.65869707", "0.65354705", "0.65178156", "0.6515212", "0.65148544", "0.6439463", "0.63568485", "0.63568485", "0.63568485", "0.6324592", "0.6317906", "0.6298237", "0.62834007", "0.62388676", "0.6228493", "0.6176957", "0.61687696", "0.615...
0.6786368
2
Implementing click buy and sell deal management grid first row inline action button functionality
def click_buy_and_sell_deal_management_grid_first_row_inline_action_button(self): 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)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def click_buy_and_sell_deal_bulk_edit_button(self):\n self.click_element(self.buy_and_sell_deal_bulk_edit_button_lcoator, True)", "def click_target_buy_policy_grid_first_row_inline_action_button(self):\n self.click_inline_action_button(self.target_buy_policies_grid_div_id, None, column_number=2, fi...
[ "0.7165491", "0.69654083", "0.69372815", "0.69077474", "0.66696733", "0.6508445", "0.6368367", "0.6347989", "0.63158387", "0.627581", "0.6269957", "0.61755913", "0.61733496", "0.6149201", "0.6137883", "0.6119374", "0.58740306", "0.5799829", "0.57629937", "0.57190955", "0.5663...
0.8185726
0
Implementing is account label displayed correctly functionality
def is_account_label_displayed_correctly(self): is_displayed_correctly = False if self.get_text_from_element(self.account_label_locator) == self.account_label: is_displayed_correctly = True return is_displayed_correctly
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def is_account_manager_label_displayed_correctly(self):\n is_displayed_correctly = False\n if self.get_text_from_element(self.account_manager_label_locator) == self.account_manager_label:\n is_displayed_correctly = True\n return is_displayed_correctly", "def Label(self) -> str:", ...
[ "0.6368619", "0.6344278", "0.6144431", "0.61396897", "0.6069333", "0.5957378", "0.591541", "0.5847986", "0.5835125", "0.5799273", "0.5767016", "0.57317346", "0.5720798", "0.5717911", "0.5690789", "0.5643161", "0.5638978", "0.5619242", "0.5607045", "0.5593206", "0.55726165", ...
0.74997246
0
Implementing is account manager label displayed correctly functionality
def is_account_manager_label_displayed_correctly(self): is_displayed_correctly = False if self.get_text_from_element(self.account_manager_label_locator) == self.account_manager_label: is_displayed_correctly = True return is_displayed_correctly
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def is_account_label_displayed_correctly(self):\n is_displayed_correctly = False\n if self.get_text_from_element(self.account_label_locator) == self.account_label:\n is_displayed_correctly = True\n return is_displayed_correctly", "def _add_user_label(self):\n user_label = tk.La...
[ "0.660459", "0.6117637", "0.5810706", "0.579244", "0.5719326", "0.5605203", "0.55454856", "0.55295485", "0.5480238", "0.5474781", "0.5458673", "0.5429711", "0.541652", "0.54080826", "0.53880817", "0.5370094", "0.53372633", "0.533329", "0.53238416", "0.5259748", "0.5249081", ...
0.74036354
0
Implementing click vendor grid add destination button functionality
def click_vendor_grid_add_destination_button(self): self.click_element(self.vendor_grid_add_destination_locator)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def click_customer_grid_add_destination_button(self):\n self.click_element(self.customer_grid_add_destination_locator)", "def set_destination_to_add_destination(self, destination):\n self.multiple_items_selection_from_kendo_dropdown(self.destination_multiple_kendo_dropdown_locator, destination)\n ...
[ "0.8016771", "0.646783", "0.62058467", "0.59663063", "0.5802453", "0.5654677", "0.558464", "0.55153704", "0.5512954", "0.54436165", "0.5412148", "0.5398465", "0.5385228", "0.5373527", "0.5345784", "0.53445095", "0.53421956", "0.53135604", "0.5309377", "0.5302662", "0.52934057...
0.8421994
0
Implementing set source to add destination functionality
def set_source_to_add_destination(self, source_name): self.single_selection_from_static_kendo_dropdown(self.source_kendo_dropdown_arrow_locator, source_name)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def add_destination(self):\n pass", "def set_source(self, source):\n self.data['source'] = source", "def attach(self, destination): \r\n self.destination= destination", "def source(self, other):\n raise NotImplementedError", "def set_destination_to_add_destination(self, d...
[ "0.7595484", "0.68353415", "0.6798214", "0.67796534", "0.67778414", "0.67471397", "0.67426056", "0.6698542", "0.64227223", "0.64126635", "0.63714236", "0.6344426", "0.6306878", "0.628486", "0.6280195", "0.6280195", "0.62796885", "0.62796885", "0.62796885", "0.62796885", "0.62...
0.71872395
1
Implementing set route class to add destination functionality
def set_route_class_to_add_destination(self, route_class): self.multiple_items_selection_from_kendo_dropdown(self.route_class_multiple_kendo_dropdown_locator, route_class) self.click_element(self.new_destination_header_locator)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def route(self):\n pass", "def add_destination(self):\n pass", "def add_routes(self):\n pass", "def route(self, destination):\n assert destination in list(Destination), \"{} value expected, got {}\".format(Destination, destination)\n return self.destinations[destination...
[ "0.76027405", "0.7224743", "0.6823121", "0.67958796", "0.6792756", "0.6775756", "0.67167026", "0.6405978", "0.6373856", "0.62698567", "0.6204093", "0.613918", "0.6112342", "0.60995054", "0.6053411", "0.6032961", "0.60155857", "0.6005509", "0.5994421", "0.59790593", "0.5962053...
0.6548088
7
Implementing set destination to add destination functionality
def set_destination_to_add_destination(self, destination): self.multiple_items_selection_from_kendo_dropdown(self.destination_multiple_kendo_dropdown_locator, destination) self.click_element(self.new_destination_header_locator)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def add_destination(self):\n pass", "def attach(self, destination): \r\n self.destination= destination", "def attach(self, destination): \r\n self.destination=destination", "def destination(self, destination):\n\n self._destination = destination", "def do_destinati...
[ "0.8411674", "0.7463169", "0.7400204", "0.7207934", "0.70057255", "0.6809444", "0.6675045", "0.66749346", "0.66615766", "0.6569928", "0.65571934", "0.6486881", "0.64785564", "0.64413476", "0.6326941", "0.631957", "0.63072693", "0.630284", "0.61267376", "0.6122438", "0.6116038...
0.7659271
1
Implementing set deal rate to add destination functionality
def set_deal_rate_to_add_destination(self, deal_rate): self.set_value_into_input_field(self.deal_rate_textbox_locator, deal_rate, use_win32com=True) self.click_element(self.new_destination_header_locator)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_rates_destination(self):\n self.set_value_into_input_field(self.rates_tab_destination_textbox_locator, self.buy_page_excel_data_dictionary[\"Destination\"])", "def __call__(self, rate:'kW'):\n self.rate = rate\n self.cost = self.price * rate", "def _do_set_rate(self, rate):\n ...
[ "0.66945755", "0.6256623", "0.58632624", "0.56280166", "0.5582999", "0.5560925", "0.5540805", "0.5522839", "0.5397975", "0.5368135", "0.5368135", "0.53364104", "0.5259004", "0.5257495", "0.52336127", "0.52244794", "0.5215375", "0.5210986", "0.5177353", "0.51745504", "0.516315...
0.74631596
0
Implementing set deal rate to add destination functionality
def set_deal_volume_to_add_destination(self, deal_volume): self.set_value_into_input_field(self.deal_volume_textbox_locator, deal_volume, use_win32com=True) self.click_element(self.new_destination_header_locator)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_deal_rate_to_add_destination(self, deal_rate):\n self.set_value_into_input_field(self.deal_rate_textbox_locator, deal_rate, use_win32com=True)\n self.click_element(self.new_destination_header_locator)", "def set_rates_destination(self):\n self.set_value_into_input_field(self.rates_ta...
[ "0.7464668", "0.66951454", "0.6258276", "0.5864363", "0.56300765", "0.558504", "0.55624336", "0.55420876", "0.5526853", "0.5398804", "0.5370449", "0.5370449", "0.533766", "0.5262465", "0.525798", "0.5234379", "0.5225543", "0.52159494", "0.5212933", "0.517884", "0.51761097", ...
0.49938697
37
Implementing click customer grid add destination button functionality
def click_customer_grid_add_destination_button(self): self.click_element(self.customer_grid_add_destination_locator)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def click_vendor_grid_add_destination_button(self):\n self.click_element(self.vendor_grid_add_destination_locator)", "def set_destination_to_add_destination(self, destination):\n self.multiple_items_selection_from_kendo_dropdown(self.destination_multiple_kendo_dropdown_locator, destination)\n ...
[ "0.80682164", "0.6506563", "0.611456", "0.56259584", "0.5613796", "0.56112826", "0.55190563", "0.55092216", "0.5477043", "0.54032", "0.5402372", "0.53741306", "0.53735375", "0.5371906", "0.5339226", "0.52918637", "0.5284191", "0.5281223", "0.52697504", "0.52324903", "0.520353...
0.8646041
0
Implementing click request deal button functionality
def click_request_deal_button(self): self.click_element(self.request_deal_button_locator) try: self.wait().until(EC.visibility_of_element_located(self.confirmation_popup_locator), 'confirmation popup locator not found before specified time out') self.click_element(self.ok_button_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def click_request_new_deal_button(self):\n self.click_element(self.request_new_deal_button_locator)", "def click(self):\r\n pass", "def on_click(self) -> None:\n pass", "def on_click ( self, object ):\n pass", "def btn_follow_clicked(self, widget, data=None):\n print \"fo...
[ "0.7253511", "0.70641905", "0.67269415", "0.6564448", "0.62736565", "0.6219062", "0.6219062", "0.6219062", "0.6219062", "0.61424035", "0.61223346", "0.61172473", "0.60978913", "0.60978913", "0.60953057", "0.6004954", "0.5973172", "0.59452313", "0.59452313", "0.58775026", "0.5...
0.6527855
4
Implementing click add destination save button functionality
def click_add_destination_save_button(self): self.click_element(self.add_destination_save_button_locator, True) try: self.wait().until(EC.visibility_of_element_located(self.confirmation_popup_locator), 'confirmation popup locator not found before specified time out') self.click_e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def click_vendor_grid_add_destination_button(self):\n self.click_element(self.vendor_grid_add_destination_locator)", "def add_destination(self):\n pass", "def click_customer_grid_add_destination_button(self):\n self.click_element(self.customer_grid_add_destination_locator)", "def set_des...
[ "0.6717724", "0.67038506", "0.6494957", "0.64152914", "0.6392956", "0.62395084", "0.6176817", "0.6160083", "0.6086105", "0.6084194", "0.60714966", "0.6068572", "0.60467327", "0.60467327", "0.60467327", "0.60467327", "0.60467327", "0.60350305", "0.599849", "0.5995645", "0.5976...
0.712687
0
Implementing compare vendor price list detail rates grid destination functionality
def compare_vendor_price_list_detail_rates_grid_destination(self): self.buy_page_excel_data_dictionary = self.get_excel_data_dictionary() is_compared = False rates_grid_destination = self.get_specific_column_value_from_grid(self.vendor_price_list_detail_rates_grid_div_id, 1, self.destination_col...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def compare_vendor_price_list_detail_rates_grid_rate(self):\n self.buy_page_excel_data_dictionary = self.get_excel_data_dictionary()\n is_compared = False\n rates_grid_rate_column_element = self.wait().until(EC.presence_of_element_located(self.rates_grid_rate_column_locator))\n if self....
[ "0.7282243", "0.66426474", "0.63583803", "0.6355037", "0.5928445", "0.58797383", "0.57747257", "0.57692534", "0.5715802", "0.567752", "0.5522854", "0.5438436", "0.54336697", "0.54138416", "0.5389457", "0.5359198", "0.5304087", "0.52684253", "0.5221472", "0.5190703", "0.518978...
0.7443731
0
Implementing compare vendor price list detail dial digits grid destination functionality
def compare_vendor_price_list_detail_dial_digits_grid_destination(self): self.buy_page_excel_data_dictionary = self.get_excel_data_dictionary() is_compared = False dial_digits_grid_destination = self.get_specific_column_value_from_grid(self.vendor_price_list_detail_dial_digits_grid_div_id, 1, se...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def compare_vendor_price_list_detail_rates_grid_destination(self):\n self.buy_page_excel_data_dictionary = self.get_excel_data_dictionary()\n is_compared = False\n rates_grid_destination = self.get_specific_column_value_from_grid(self.vendor_price_list_detail_rates_grid_div_id, 1, self.destina...
[ "0.69088066", "0.66299367", "0.6117149", "0.6081349", "0.60306233", "0.5784268", "0.5770761", "0.5732137", "0.5709735", "0.54425746", "0.53622025", "0.53092676", "0.5295223", "0.5292526", "0.5235184", "0.5194165", "0.51922876", "0.51855004", "0.5147623", "0.51423776", "0.5084...
0.7398431
0
Implementing compare vendor price list detail rates grid rate functionality
def compare_vendor_price_list_detail_rates_grid_rate(self): self.buy_page_excel_data_dictionary = self.get_excel_data_dictionary() is_compared = False rates_grid_rate_column_element = self.wait().until(EC.presence_of_element_located(self.rates_grid_rate_column_locator)) if self.buy_page_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def compare_rates_with_excel_data(self):\n is_compared = True\n self.grid_row_data.clear()\n self.grid_row_data.update({\"Rate1\": \"\", \"Rate2\": \"\", \"Rate3\": \"\", \"Begin Date\": \"\", \"Rating Method\": \"\"})\n self.buy_page_excel_data_dictionary[\"Rating Method\"] = self.buy_...
[ "0.63370734", "0.60845774", "0.60595584", "0.602486", "0.58634794", "0.5762692", "0.5760641", "0.5752293", "0.57230544", "0.56713235", "0.56500137", "0.5597601", "0.5579603", "0.55513275", "0.5518962", "0.551297", "0.5499407", "0.5466408", "0.546308", "0.54610395", "0.5433152...
0.7548665
0
Implementing get reference rates tab analyzed rate functionality
def get_reference_rates_tab_analyzed_rate(self): return self.get_text_from_element(self.reference_rates_tab_analyzed_tab_column_locator)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rates(self):\n raise NotImplementedError(\"Must be implemented by subclass.\")", "def get_current_rate(self):\n pass", "def select_reference_rates_tab(self):\n self.select_static_tab(self.reference_rates_tab_locator, True)", "def calculateDataRate(self):\n pass", "def rate(self)...
[ "0.6990552", "0.66156983", "0.6201779", "0.61440897", "0.6085955", "0.59836334", "0.598278", "0.58565754", "0.57975405", "0.5742415", "0.5740475", "0.56852716", "0.56798387", "0.56295514", "0.5606371", "0.56015044", "0.5600266", "0.5587584", "0.5586825", "0.55694264", "0.5565...
0.7216807
0
Implementing get reference rates tab effective date functionality
def get_reference_rates_tab_effective_date(self): return self.get_specific_column_value_from_grid(self.vendor_price_list_detail_reference_rates_grid_div_id, 1, column_name=self.effective_date_column_name)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _rate_dates(self, common_object):\n if common_object.IsKindOf(acm.FCashFlow):\n start_date = common_object.StartDate()\n elif common_object.IsKindOf(acm.FReset):\n start_date = common_object.Day()\n else:\n message = \"Rate dates for {0} object are not defi...
[ "0.61450714", "0.6118674", "0.59151864", "0.570882", "0.54793197", "0.5440474", "0.5394293", "0.53898215", "0.53862345", "0.5362355", "0.53242594", "0.5290705", "0.5275283", "0.5234759", "0.5224288", "0.52232665", "0.5206688", "0.52063805", "0.51902455", "0.5173077", "0.51618...
0.8118622
0
Implementing is target buy policies tab displayed functionality
def is_target_buy_policies_tab_displayed(self): return self.is_element_visible(self.target_buy_policies_tab_locator)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def select_target_buy_policies_tab(self):\n self.select_static_tab(self.target_buy_policies_tab_locator, 'target buy policies tab locator not found before specified time out')", "def click_buy_and_sell_deal_management_link(self):\n self.select_static_tab(self.buy_and_sell_deal_management_locator, m...
[ "0.70824105", "0.6161778", "0.6106716", "0.5919944", "0.57483226", "0.57384634", "0.5682125", "0.5653956", "0.5572523", "0.55241346", "0.55241346", "0.5510905", "0.5445419", "0.54413915", "0.5437206", "0.5395717", "0.5387464", "0.53720695", "0.53677285", "0.5356148", "0.53158...
0.750019
0
Implementing select target buy policies tab functionality
def select_target_buy_policies_tab(self): self.select_static_tab(self.target_buy_policies_tab_locator, 'target buy policies tab locator not found before specified time out')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def click_edit_target_buy_policy_button(self):\n self.click_element(self.edit_target_buy_policy_button_locator)", "def set_target_buy_policy_type(self, type):\n self.single_selection_from_kendo_dropdown(self.target_buy_policy_type_kendo_dropdown_locator, type)", "def select_buy_dashboard_tab(self...
[ "0.6704803", "0.6659049", "0.62752223", "0.612902", "0.6105099", "0.60682184", "0.5983011", "0.59394455", "0.59090525", "0.58154", "0.579811", "0.5768202", "0.57265127", "0.57265127", "0.5684236", "0.56841564", "0.55653906", "0.55247366", "0.55149025", "0.5494688", "0.5454117...
0.76746756
0
Implementing is button displayed functionality
def is_button_displayed(self, button_name): button_locator = (By.XPATH, "//a[contains(@class, 'k-button') and contains(text(), '%s')]" % button_name) return self.is_element_visible(button_locator)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def show_main_buttons(self):\n pass", "def _test_display_up_button(self):\n return (self.product_displays.top_index > 0)", "def display(self):\n\t\tprint('The button in the window was clicked!')", "def is_visible(self):", "def isButtonPressed() -> bool:\n pass", "def exec_(self):\n ...
[ "0.71268463", "0.7112893", "0.70808524", "0.6994791", "0.6799946", "0.6710357", "0.6702696", "0.665377", "0.66383374", "0.66172266", "0.65960544", "0.6558776", "0.6558776", "0.6558776", "0.65109396", "0.64982855", "0.6454811", "0.6441927", "0.6415605", "0.6379587", "0.6377989...
0.70637447
3
Implementing is target buy policies grid column present functionality
def is_target_buy_policies_grid_column_present(self, column_name): column_locator = (By.XPATH, "//div[contains(@id, '%s')]/descendant::th[@data-title='%s']" % (self.target_buy_policies_grid_div_id, column_name)) return self.is_element_present(column_locator)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_target_buy_policy_grid_row_details(self):\n self.grid_row_data.clear()\n self.grid_row_data = {\"Status\":\"\", \"Target Buy Policy Type\":\"\", \"Call Type\":\"\", \"Route Class\":\"\"}\n return self.get_grid_row_details(self.target_buy_policies_grid_div_id, self.grid_row_data, data_g...
[ "0.65470636", "0.5555432", "0.5375789", "0.53040683", "0.5265732", "0.5251825", "0.52483046", "0.5247218", "0.52333355", "0.5223402", "0.5211076", "0.51632774", "0.5090065", "0.50898117", "0.5086829", "0.5062219", "0.5055388", "0.50354195", "0.50350845", "0.50128216", "0.5012...
0.6384165
1
Implementing click target buy policies grid first row inline action button functionality
def click_target_buy_policies_grid_first_row_inline_action_button(self): self.click_inline_action_button(self.target_buy_policies_grid_div_id, None, self.target_buy_policies_grid_inline_action_column_number, first_row=True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def click_target_buy_policy_grid_first_row_inline_action_button(self):\n self.click_inline_action_button(self.target_buy_policies_grid_div_id, None, column_number=2, first_row=True)\n self.wait_for_ajax_spinner_load()", "def click_buy_and_sell_deal_management_grid_first_row_inline_action_button(sel...
[ "0.8105151", "0.794805", "0.73137873", "0.7264641", "0.7102072", "0.7087844", "0.70674783", "0.7059369", "0.7035884", "0.70264035", "0.68555933", "0.6739181", "0.67389554", "0.6670417", "0.65871423", "0.6563748", "0.6447696", "0.64369726", "0.6267657", "0.61293465", "0.599655...
0.81812817
0
Implementing is inline action item present functionality
def is_inline_action_item_present(self, item_name): inline_action_item_locator = (By.XPATH, "//ul[@id='Actions_listbox']/li[text()='%s']" % item_name) return self.is_element_present(inline_action_item_locator)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def action(self,item):\r\n pass", "def _action(self):\n pass", "def action(self):\n pass", "def action(self):\n pass", "def onShowed(self):\n self.parent.actionTagTwo=\"\"\n pass", "def __actions__(self, obj):\n primary_fields = self.__provider__.get_prima...
[ "0.7179313", "0.6199474", "0.6192554", "0.6192554", "0.6180556", "0.61662686", "0.6146612", "0.6127133", "0.604029", "0.6010713", "0.6008397", "0.6008368", "0.58624053", "0.5829709", "0.5829346", "0.5829346", "0.5772425", "0.57424104", "0.5731849", "0.56981766", "0.56816936",...
0.70441365
1
Implementing click create new target buy policy button functionality
def click_create_new_target_buy_policy_button(self): self.click_element(self.create_new_target_buy_policy_button_locator, script_executor=True, error_message='create new target buy policy button locator not found before specified time out')
{ "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 click_edit_target_buy_policy_button(self):\n self.click_element(self.edit_target_buy_policy_button_locator)", "def click_save_target_buy_policy_button(self):\n self.click_element(...
[ "0.7408507", "0.7157741", "0.6822164", "0.6584997", "0.65837705", "0.627723", "0.6117332", "0.6084861", "0.60220706", "0.59835017", "0.5927379", "0.5761761", "0.57569414", "0.57379687", "0.5736414", "0.5709918", "0.5691938", "0.56675476", "0.5583201", "0.5517948", "0.5517535"...
0.7672479
0
Implementing set target buy policy name functionality
def set_target_buy_policy_name(self, prefix): global target_buy_policy target_buy_policy = (prefix + self.random_string_generator(size=4)) self.set_value_into_input_field(self.target_buy_policy_input_field_locator, value=target_buy_policy)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_target_buy_policy_abbreviation(self, prefix):\n self.set_value_into_input_field(self.target_buy_policy_abbreviation_input_field_locator, value=(prefix + self.random_string_generator(size=4)))", "def use(target, name):\n return \"You use the \" + name + \" to pay \" + target.name", "def se...
[ "0.70902216", "0.65581495", "0.6447595", "0.63000184", "0.6270888", "0.6120589", "0.6120589", "0.6109877", "0.604", "0.5914904", "0.5862381", "0.58405066", "0.5839304", "0.5839304", "0.56366056", "0.55916286", "0.5582298", "0.556557", "0.55630815", "0.5550732", "0.55316234", ...
0.79451764
0
Implementing get target buy policy functionality
def get_target_buy_policy(self): global target_buy_policy return target_buy_policy
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def policy(agent):", "def select_target_buy_policies_tab(self):\n self.select_static_tab(self.target_buy_policies_tab_locator, 'target buy policies tab locator not found before specified time out')", "def getAction(self, state):\n # Pick Action\n legalActions = self.getLegalActions(state)\n act...
[ "0.62555337", "0.6185256", "0.61499", "0.61307913", "0.60904336", "0.6055906", "0.595635", "0.5928054", "0.5914833", "0.5885227", "0.58382344", "0.5782354", "0.5782354", "0.57409716", "0.5726041", "0.56711364", "0.5637255", "0.563183", "0.56234705", "0.5622425", "0.5594815", ...
0.7827906
0
Implementing set target buy policy abbreviation functionality
def set_target_buy_policy_abbreviation(self, prefix): self.set_value_into_input_field(self.target_buy_policy_abbreviation_input_field_locator, value=(prefix + self.random_string_generator(size=4)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_target_buy_policy_name(self, prefix):\n global target_buy_policy\n target_buy_policy = (prefix + self.random_string_generator(size=4))\n self.set_value_into_input_field(self.target_buy_policy_input_field_locator, value=target_buy_policy)", "def set_target_buy_policy_type(self, type):...
[ "0.6439152", "0.5870092", "0.5696178", "0.5516288", "0.53760064", "0.53070027", "0.52721477", "0.51333565", "0.51169074", "0.51167685", "0.50744283", "0.5036501", "0.50308836", "0.49818993", "0.49748594", "0.49631476", "0.49574703", "0.49414706", "0.49384534", "0.49269494", "...
0.70045894
0
Implementing set route class to create new target buy policy functionality
def set_route_class_to_create_new_target_buy_policy(self, route_class): self.single_selection_from_static_kendo_dropdown(self.route_class_single_kendo_dropdown_arrow_locator, route_class)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(self, source_node, source_gate_name, target_node, target_slot_name, weight=1):\n self.link(source_node, source_gate_name, target_node, target_slot_name, weight)", "def policy(agent):", "def apply_policy(self, policy):\n tenant_name = policy['tenant_name']\n fw_id = policy['fw_...
[ "0.57578945", "0.56873965", "0.5348911", "0.5346214", "0.5319583", "0.53184915", "0.53172463", "0.52937037", "0.52722543", "0.5266859", "0.52648765", "0.525317", "0.52372414", "0.52235234", "0.51925033", "0.51838106", "0.5182945", "0.5146547", "0.5137112", "0.51151454", "0.50...
0.66891956
0
Implementing click include cli checkbox functionality
def click_include_cli_checkbox(self): self.click_element(self.include_cli_checkbox_locator)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def click_guarantee_cli_checkbox(self):\n self.click_element(self.guarantee_cli_checkbox_locator)", "def click_automate_generation_checkbox(self):\n self.click_element(self.automate_generation_checkbox_locator)", "def CheckBoxClicked(self,chkb):\r\n\r\n print(\"{} Selecionado.\", format(ch...
[ "0.7180335", "0.633742", "0.6186127", "0.61447966", "0.60904425", "0.6061627", "0.6051627", "0.597381", "0.59416974", "0.59316313", "0.5918221", "0.58853", "0.58538675", "0.58538675", "0.5849901", "0.5836241", "0.58296305", "0.58069646", "0.5802643", "0.57914114", "0.57344997...
0.82027
0
Implementing click automate generation checkbox functionality
def click_automate_generation_checkbox(self): self.click_element(self.automate_generation_checkbox_locator)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def click_guarantee_cli_checkbox(self):\n self.click_element(self.guarantee_cli_checkbox_locator)", "def on_checkBox_kongtoukai_clicked(self, checked):\n # TODO: not implemented yet\n raise NotImplementedError", "def _add_checkbox(self, text, state_changed, tooltip, checked=True,\n ...
[ "0.67904496", "0.6535885", "0.65002245", "0.6481565", "0.6431148", "0.63907903", "0.63848615", "0.6366873", "0.6341021", "0.63073826", "0.63037425", "0.62903464", "0.62731963", "0.620092", "0.6196953", "0.6037659", "0.6002369", "0.591591", "0.5890406", "0.58776736", "0.58606"...
0.7924865
0
Implementing click save target buy policy button functionality
def click_save_target_buy_policy_button(self): self.click_element(self.save_target_buy_policy_button_locator, error_message='save target buy policy button locator not found before specified time out') self.click_element(self.confirmation_popup_locator, error_message='success message locator not found be...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def click_save_edited_target_buy_policy_button(self):\n self.click_element(self.save_edited_target_buy_policy_button_locator)\n self.click_element(self.confirmation_popup_locator, error_message='success message locator not found before specified time out')\n self.click_element(self.ok_button_l...
[ "0.7729644", "0.72661537", "0.6927698", "0.69045794", "0.6451391", "0.6321213", "0.6035302", "0.6026688", "0.5929195", "0.5800937", "0.5781004", "0.572054", "0.56928444", "0.56849253", "0.56754345", "0.5626255", "0.56152767", "0.5538557", "0.552185", "0.55135155", "0.5491271"...
0.7788845
0
Implementing click target buy overrides button functionality
def click_target_buy_overrides_button(self): self.click_element(self.target_buy_overrides_button_locator, script_executor=True, error_message='target buy overrides button locator not found before specified time out') self.wait_for_ajax_spinner_load()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def click(self):\r\n pass", "def clickOverride():\n\n pass", "def on_click(self) -> None:\n pass", "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_edit_target_buy_policy_butt...
[ "0.70341754", "0.68537515", "0.6533549", "0.62906474", "0.62827915", "0.62779593", "0.6274922", "0.62407196", "0.6194346", "0.6173009", "0.6167551", "0.6162474", "0.6103205", "0.60976714", "0.6089431", "0.60790944", "0.6078329", "0.60737765", "0.6058033", "0.60538644", "0.605...
0.62780917
5
Implementing is target buy list overrides screen loaded functionality
def is_target_buy_list_overrides_screen_loaded(self): return self.is_element_visible(self.target_buy_list_overrides_page_header_locator)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def listctrl_switch_loadout(self, source):\n if source == self.active_loadout:\n return False\n\n self.gear_slots[self.active_loadout.name] = self.create_blrevive_weapon()\n\n if source.name in self.gear_slots:\n self.load_blrevive_weapon(self.gear_slots[source.name])\n\n...
[ "0.6001915", "0.5983745", "0.58766633", "0.5687606", "0.567117", "0.56279045", "0.5524678", "0.5523005", "0.54764086", "0.542335", "0.5407171", "0.53916734", "0.5346383", "0.531239", "0.5288447", "0.52460074", "0.524296", "0.523115", "0.5228215", "0.5227995", "0.5221563", "...
0.72665113
0
Implementing is expected dropdown list control visible functionality
def is_expected_dropdown_list_control_visible_in_target_buy_overrides_screen(self, expected_list_control_name): list_control_locator = (By.XPATH, "//select[@name='%s']" %(expected_list_control_name)) return self.is_element_present(list_control_locator)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def is_view_dropdown_visible(self):\n return self.is_element_visible(self.view_dropdown_locator)", "def is_dropdown_expanded(self):\n return self.dropdown.element(class_name=\"dropdown-focus\").exists", "def is_visible(self):", "def is_discrepancy_dropdown_visible(self):\n return self.is_ele...
[ "0.6721152", "0.62846535", "0.6274534", "0.62375015", "0.62283164", "0.62241983", "0.6187858", "0.60083485", "0.5904933", "0.58766943", "0.5875189", "0.57837415", "0.576537", "0.5752084", "0.57505965", "0.5628871", "0.56188196", "0.5590547", "0.5584492", "0.55437773", "0.5531...
0.699368
0
Implementing is destination input textbox visible functionality
def is_destination_input_textbox_visible(self): return self.is_element_visible(self.destination_input_textbox_locator)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def is_destination_textbox_visible(self):\n return self.is_element_visible(self.reference_rates_destination_textbox_locator)", "def is_visible(self):", "def visible(self, show):", "def ev_textinput(self, event: TextInput) -> None:", "def show(self): \n InputItem.show(self)\n self.input...
[ "0.7082717", "0.6056446", "0.58619386", "0.5751972", "0.5742402", "0.5742402", "0.5723534", "0.5681438", "0.5681438", "0.5649161", "0.55968016", "0.5532368", "0.5513671", "0.547241", "0.5431309", "0.53958184", "0.53434575", "0.53434575", "0.5325499", "0.52807295", "0.5265454"...
0.788917
0
Implementing is expected grid column present functionality
def is_expected_grid_column_present(self, expected_column_name): grid_column_locator = (By.XPATH, "//th[@data-title='%s']" %(expected_column_name)) return self.is_element_present(grid_column_locator)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def columns(self):\n \n pass", "def is_specific_column_present(self, grid_div_id, column_name):\n specific_column_locator = (By.XPATH, \"//div[contains(@id, '%s')]/descendant::th[@data-field='%s']\" % (grid_div_id, column_name))\n return self.is_element_present(specific_column_locator)", ...
[ "0.6262402", "0.6219727", "0.6189594", "0.61687696", "0.6151684", "0.6127107", "0.6107462", "0.610121", "0.60943484", "0.6070248", "0.60317606", "0.5992439", "0.59751236", "0.5942852", "0.59316164", "0.5924672", "0.591986", "0.5913953", "0.58789116", "0.5877305", "0.5858077",...
0.711884
0
Implementing select target buy list overrides grid row checkbox functionality
def select_target_buy_list_overrides_grid_row_checkbox(self): for i in range(2): target_buy_list_overrides_grid_checkbox_locator = (By.XPATH, "(//div[@data-grid-name='%s']/descendant::input[@type='checkbox'])[%s]" % (self.target_buy_list_overrides_data_grid_name, str(i + 2))) self.click_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def select_vendor_price_list_grid_row_checkbox(self):\n for row in range(0,2):\n column_locator = (By.XPATH, \"//div[@id='%s']/descendant::th[@data-title='%s']\" % (self.vendor_price_list_grid_div_id, self.price_list_column_name))\n column_element = self.wait().until(EC.presence_of_ele...
[ "0.6595565", "0.6579554", "0.64243436", "0.6204201", "0.61319244", "0.59698147", "0.5958927", "0.595838", "0.59310436", "0.59297544", "0.5927377", "0.58760035", "0.5861238", "0.58487624", "0.58487624", "0.58440185", "0.58437294", "0.5766345", "0.5711271", "0.56679034", "0.566...
0.7345537
0
Implementing click target buy list overrides bulk edit button functionality
def click_target_buy_list_overrides_bulk_edit_button(self): self.click_element(self.target_buy_list_overrides_bulk_edit_button_locator, error_message='target buy list overrides bulk edit button locator not found before specified time out')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def click_buy_and_sell_deal_bulk_edit_button(self):\n self.click_element(self.buy_and_sell_deal_bulk_edit_button_lcoator, True)", "def click_bulk_edit_button(self):\n self.click_element(self.bulk_edit_button_locator, True)", "def click_statement_fields_bulk_edit_button(self):\n self.click_...
[ "0.7743176", "0.72924215", "0.67232466", "0.6643152", "0.6601634", "0.6551515", "0.6347435", "0.6223986", "0.614489", "0.6128534", "0.60816276", "0.58114606", "0.5806517", "0.5763261", "0.57512677", "0.57141906", "0.56977916", "0.56793827", "0.5675783", "0.5646641", "0.557232...
0.69044256
2
Implementing is target buy details section present in vendor profile page functionality
def is_target_buy_details_section_present_in_vendor_profile_page(self): return self.is_element_present(self.target_buy_details_section_locator)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def is_specific_field_on_target_buy_details_section_present(self, field_name):\n field_locator = (By.XPATH, \"//div[contains(@id, 'divcustomerProfileDetails_')]/descendant::label[text()='%s']\" % field_name)\n return self.is_element_present(field_locator)", "def is_target_buy_policies_tab_displayed...
[ "0.64984775", "0.59864783", "0.5873134", "0.5831746", "0.57233775", "0.56565744", "0.56486034", "0.56228536", "0.5586765", "0.5521409", "0.546854", "0.54677045", "0.5465543", "0.5402681", "0.53863895", "0.53619283", "0.53444225", "0.52923024", "0.52921027", "0.5267506", "0.52...
0.76688296
0
Implementing is specific field on target buy details section present functionality
def is_specific_field_on_target_buy_details_section_present(self, field_name): field_locator = (By.XPATH, "//div[contains(@id, 'divcustomerProfileDetails_')]/descendant::label[text()='%s']" % field_name) return self.is_element_present(field_locator)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def is_target_buy_details_section_present_in_vendor_profile_page(self):\n return self.is_element_present(self.target_buy_details_section_locator)", "def get_details(self):", "def enable_details(self):\n self.cs.detail = True", "def purchase(self, item_type):", "def input_payment_details(self)...
[ "0.6218292", "0.58803385", "0.57047385", "0.55989105", "0.5592674", "0.5399362", "0.5347198", "0.531534", "0.5296534", "0.5213632", "0.5194612", "0.5192922", "0.5177318", "0.51669794", "0.5142594", "0.5140994", "0.5122961", "0.5118239", "0.5090551", "0.5051972", "0.50412834",...
0.6910262
0
Implementing set target buy distribution link code functionality
def set_target_buy_distribution_link_code(self): self.set_value_into_input_field(self.target_buy_distribution_link_code_textbox_locator, self.random_string_generator(6)) self.wait_for_ajax_spinner_load()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _set_link(\n meta: Dict,\n link: Optional[Union[type(None), str, bool, KEChainPages]] = None,\n link_value: Optional[CardWidgetLinkValue] = None,\n link_target: Optional[Union[str, LinkTargets]] = LinkTargets.SAME_TAB,\n **kwargs,\n) -> Dict:\n meta[\"linkTarget\"] = check_enum(link_target, L...
[ "0.57581264", "0.57360834", "0.5704888", "0.57009506", "0.56327444", "0.5612569", "0.5577209", "0.5577209", "0.55430907", "0.5542682", "0.5497914", "0.5482014", "0.5472685", "0.5469825", "0.54515964", "0.54339606", "0.54190713", "0.5416186", "0.5416186", "0.54143345", "0.5406...
0.7068939
0
Implementing set target buy distribution receiving member functionality
def set_target_buy_distribution_receiving_member(self, member_prefix): member_name = member_prefix + self.random_string_generator(size=4) self.set_value_into_input_field(self.target_buy_distribution_receiving_member_textbox_locator, member_name) self.wait_for_ajax_spinner_load()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def target_sell_price(self):\n return super(Player, self).target_sell_price", "async def _vis_buy(self, ctx, *args):\n if has_post_permission(ctx.guild.id, ctx.channel.id):\n number, item = ch.parse_number_and_name(args)\n if item:\n await ctx.send(vis_helpers.s...
[ "0.5813365", "0.57899123", "0.5756613", "0.57438093", "0.5740053", "0.5614278", "0.56005937", "0.5541609", "0.5541609", "0.55083424", "0.550767", "0.54989284", "0.54829466", "0.5476783", "0.5433824", "0.5425738", "0.54128516", "0.54126567", "0.5404454", "0.53718203", "0.53610...
0.68895245
0
Implementing set target buy list functionality
def set_target_buy_list(self, item_name, is_first_item): if is_first_item is True: self.single_selection_from_static_kendo_dropdown(self.target_buy_list_kendo_dropdown_arrow_locator, first_item=True) else: self.single_selection_from_static_kendo_dropdown(self.target_buy_list_kend...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_target_stocks_list(self, list_of_stocks):\n self.target_stocks = list_of_stocks", "def setBuyList(self, buyList):\n parsedBuyList = []\n for bought in buyList:\n if hasattr(bought, \"unitType\"):\n parsedBuyList.append(bought)\n elif isinstance(bo...
[ "0.6495771", "0.62618667", "0.60916185", "0.5946068", "0.5715191", "0.567597", "0.56602305", "0.5574808", "0.5572295", "0.5452745", "0.5394016", "0.5347834", "0.5309349", "0.53008556", "0.5293746", "0.5289541", "0.527092", "0.5261056", "0.5248171", "0.5235941", "0.51916426", ...
0.66756034
0
Implementing set target buy list number plan functionality
def set_target_buy_list_number_plan(self, item_name, is_first_item): if is_first_item is True: self.single_selection_from_static_kendo_dropdown(self.target_buy_list_number_plan_kendo_dropdown_arrow_locator, first_item=True) else: self.single_selection_from_static_kendo_dropdown(s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def plans():", "def set_target_buy_list(self, item_name, is_first_item):\n if is_first_item is True:\n self.single_selection_from_static_kendo_dropdown(self.target_buy_list_kendo_dropdown_arrow_locator, first_item=True)\n else:\n self.single_selection_from_static_kendo_dropdow...
[ "0.57999843", "0.5784943", "0.5556903", "0.55306053", "0.53336537", "0.533109", "0.5294177", "0.5224904", "0.5156525", "0.51557237", "0.5153142", "0.514415", "0.5124864", "0.51236206", "0.51054424", "0.51054424", "0.51011217", "0.50561494", "0.5020014", "0.5019802", "0.501817...
0.69643253
0
Implementing set target buy policy type functionality
def set_target_buy_policy_type(self, type): self.single_selection_from_kendo_dropdown(self.target_buy_policy_type_kendo_dropdown_locator, type)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_target_buy_policy_name(self, prefix):\n global target_buy_policy\n target_buy_policy = (prefix + self.random_string_generator(size=4))\n self.set_value_into_input_field(self.target_buy_policy_input_field_locator, value=target_buy_policy)", "def get_target_buy_policy(self):\n g...
[ "0.6160238", "0.6142805", "0.5944419", "0.5795669", "0.577346", "0.5734563", "0.56611264", "0.5657722", "0.5645191", "0.5593953", "0.5516085", "0.5394442", "0.53024334", "0.5253677", "0.51763785", "0.5144148", "0.51351786", "0.51129127", "0.50925", "0.5092124", "0.5087189", ...
0.8053538
0
Implementing get target buy policy grid row details functionality
def get_target_buy_policy_grid_row_details(self): self.grid_row_data.clear() self.grid_row_data = {"Status":"", "Target Buy Policy Type":"", "Call Type":"", "Route Class":""} return self.get_grid_row_details(self.target_buy_policies_grid_div_id, self.grid_row_data, data_grid_name=self.target_buy...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_outbound_statement_grid_row_data(self):\n self.grid_row_details_dictionary.clear()\n self.grid_row_details_dictionary = {\"Bill Account\": \"\", \"Begin Date\": \"\", \"End Date\": \"\", \"Amount ( EUR )\": \"\"}\n self.outbound_statement_grid_row_data = self.get_grid_row_details(self....
[ "0.575327", "0.56671774", "0.54983485", "0.5497504", "0.54278195", "0.53913313", "0.5331615", "0.5325904", "0.5314808", "0.53105533", "0.5297771", "0.52571106", "0.52271354", "0.52199143", "0.519113", "0.5143383", "0.5140523", "0.5123071", "0.51150763", "0.50886685", "0.50832...
0.8331571
0
Implementing click target buy policy grid first row inline action button functionality
def click_target_buy_policy_grid_first_row_inline_action_button(self): self.click_inline_action_button(self.target_buy_policies_grid_div_id, None, column_number=2, first_row=True) self.wait_for_ajax_spinner_load()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def click_target_buy_policies_grid_first_row_inline_action_button(self):\n self.click_inline_action_button(self.target_buy_policies_grid_div_id, None, self.target_buy_policies_grid_inline_action_column_number, first_row=True)", "def click_buy_and_sell_deal_management_grid_first_row_inline_action_button(se...
[ "0.8202686", "0.80335456", "0.74357104", "0.74149716", "0.72845346", "0.72829384", "0.72605", "0.72499174", "0.7216867", "0.7202817", "0.70367014", "0.69755983", "0.68936044", "0.68760645", "0.6781373", "0.6636045", "0.6578328", "0.6401699", "0.636651", "0.6061604", "0.602482...
0.8149763
1
Implementing click edit target buy policy button functionality
def click_edit_target_buy_policy_button(self): self.click_element(self.edit_target_buy_policy_button_locator)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def click_buy_and_sell_deal_bulk_edit_button(self):\n self.click_element(self.buy_and_sell_deal_bulk_edit_button_lcoator, True)", "def click_cancel_edited_target_buy_policy_button(self):\n self.click_element(self.cancel_edited_target_buy_policy_button_locator)", "def click_save_edited_target_buy_...
[ "0.72049874", "0.71058124", "0.6989213", "0.6368108", "0.631195", "0.6140118", "0.61324686", "0.60960543", "0.6026939", "0.58555514", "0.585286", "0.57779235", "0.5776125", "0.5776095", "0.5768035", "0.57594347", "0.55886054", "0.55702305", "0.5557164", "0.55496216", "0.55267...
0.8397314
0
Implementing click save edited target buy policy button functionality
def click_save_edited_target_buy_policy_button(self): self.click_element(self.save_edited_target_buy_policy_button_locator) self.click_element(self.confirmation_popup_locator, error_message='success message locator not found before specified time out') self.click_element(self.ok_button_locator, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def click_edit_target_buy_policy_button(self):\n self.click_element(self.edit_target_buy_policy_button_locator)", "def click_save_target_buy_policy_button(self):\n self.click_element(self.save_target_buy_policy_button_locator, error_message='save target buy policy button locator not found before sp...
[ "0.7632212", "0.7429682", "0.6681149", "0.6559746", "0.6546259", "0.6481419", "0.6439012", "0.5897788", "0.5761528", "0.5743864", "0.5709328", "0.5687823", "0.5661773", "0.5654063", "0.56287414", "0.5625229", "0.5610592", "0.5592306", "0.5590449", "0.55888796", "0.5561194", ...
0.78032136
0
Implementing click cancel edited target buy policy button functionality
def click_cancel_edited_target_buy_policy_button(self): self.click_element(self.cancel_edited_target_buy_policy_button_locator)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def click_edit_target_buy_policy_button(self):\n self.click_element(self.edit_target_buy_policy_button_locator)", "def click_cancel(self):\n self.click_element(self.cancel_button_selector)", "def click_save_edited_target_buy_policy_button(self):\n self.click_element(self.save_edited_target...
[ "0.7026351", "0.68475145", "0.66155964", "0.6442423", "0.6418752", "0.638268", "0.63307065", "0.63213784", "0.6320915", "0.6320915", "0.6320915", "0.6234889", "0.623244", "0.62140983", "0.6192419", "0.61831707", "0.61803746", "0.6167173", "0.61546427", "0.61361396", "0.613442...
0.8608011
0
Class to organize the parameters that allow Experiments to be fairly compared
def __init__( self, train_dataset, # TODO: Allow providing separate (train_input, train_target) dfs environment_params_path=None, *, results_path=None, metrics=None, holdout_dataset=None, # TODO: Allow providing separate (holdout_input, holdout_target) dfs ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(self):\n self.param_names = []\n self.param_values = []\n self.param_settings = []\n self.result = []\n self.best_params = None\n self.best_score = None\n self.max_reps = 5\n self.num_values = False\n self.algorithm_done = False", "def p...
[ "0.67828584", "0.6636928", "0.6538981", "0.6537098", "0.6494992", "0.64949113", "0.64759845", "0.64688396", "0.63895583", "0.6306166", "0.63048327", "0.624608", "0.6226568", "0.62020916", "0.6191166", "0.6190334", "0.616863", "0.6154092", "0.6141812", "0.6094788", "0.6088222"...
0.0
-1
Execute all methods required to validate the environment and run Experiments
def environment_workflow(self): self.update_custom_environment_params() self.validate_parameters() self.format_result_paths() self.generate_cross_experiment_key() G.log("Cross-Experiment Key: '{!s}'".format(self.cross_experiment_key))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def run(self):\n logging.info('running experiment...')\n self._prepare()\n self._load_data()\n self._run()\n self._evaluate()\n self._summarise()\n return True", "def _problem_run_experiments_initialise(self):\n pass", "def run_experiment():\n pass", "de...
[ "0.7124226", "0.70106345", "0.69870996", "0.69620895", "0.67463315", "0.6622042", "0.65565574", "0.6546434", "0.6503521", "0.6474704", "0.6466486", "0.6463572", "0.6450513", "0.6409788", "0.6367203", "0.6358608", "0.6325544", "0.6299639", "0.62983626", "0.6247161", "0.6224909...
0.6235772
20
Ensure the provided parameters are valid and properly formatted
def validate_parameters(self): #################### metrics_params/metrics #################### if (self.metrics is not None) and ("metrics" in self.metrics_params.keys()): raise ValueError( "`metrics` may be provided as a kwarg, or as a `metrics_params` key, but NOT BOTH. Re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def validate(self):\n if self.params.get(\"format\"):\n if self.params[\"format\"] not in formats:\n raise ValueError(f\"format must be one of {formats}: {self.dt}\")\n for p in self.required:\n if not self.params.get(p):\n raise ValueError(f\"{p} m...
[ "0.74783075", "0.7428857", "0.729624", "0.7253054", "0.71651715", "0.6975634", "0.69456136", "0.680637", "0.6644833", "0.66441953", "0.66431385", "0.6640662", "0.661862", "0.65815324", "0.6571818", "0.651624", "0.65139985", "0.6503205", "0.64675975", "0.6463459", "0.6452657",...
0.0
-1
Remove paths contained in file_blacklist, and format others to prepare for saving results
def format_result_paths(self): if self.file_blacklist == "ALL" or self.results_path is None: return # Blacklist the prediction files for any datasets that were not given if self.holdout_dataset is None: self.file_blacklist.append("predictions_holdout") if self.te...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def saveFileListLocal(dataset,filelist,blacklist=[ ],tag=\"\"):\n if '/pnfs/' in dataset:\n tag += \"_pnfs\"\n dataset = '__'.join(dataset.split('/')[-3:])\n filename = \"filelist/filelist_%s%s.txt\"%(dataset.replace('/','__'),tag)\n with open(filename,'w+') as file:\n for line in filelist:\...
[ "0.6709962", "0.6574502", "0.64943206", "0.6401187", "0.6375883", "0.62250584", "0.614118", "0.6117632", "0.6113509", "0.59959865", "0.59959865", "0.59959865", "0.5943409", "0.5885366", "0.57896334", "0.56836295", "0.5682206", "0.5677871", "0.56692576", "0.56671333", "0.56568...
0.53216684
49
Try to update null parameters from environment_params_path, or DEFAULT_PARAMS
def update_custom_environment_params(self): allowed_parameter_keys = [ k for k, v in signature(Environment).parameters.items() if v.kind == v.KEYWORD_ONLY ] for k in allowed_parameter_keys: if getattr(self, k) is None: setattr(self, k, self.DEFAULT_PARAMS...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def overwrite_hyperparams(self):\n try:\n default_hyperparams = self.hyperparams\n for key in default_hyperparams:\n try:\n flag = self.FLAGS[key]\n param_value = flag.value\n if param_value is not None:\n ...
[ "0.6267459", "0.60361874", "0.6005112", "0.59332246", "0.5914079", "0.58198893", "0.578207", "0.57676196", "0.57331485", "0.57331485", "0.56856215", "0.5666313", "0.5595226", "0.5546338", "0.55456305", "0.5544343", "0.55403894", "0.55393416", "0.5523232", "0.5497067", "0.5467...
0.6903751
0
Generate a key to describe the current Environment's crossexperiment parameters
def generate_cross_experiment_key(self): parameters = dict( metrics_params=self.metrics_params, cv_params=self.cv_params, target_column=self.target_column, id_column=self.id_column, do_predict_proba=self.do_predict_proba, prediction_formatt...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _course_key(self):\r\n return \"slashes:{org}+{number}+{run}\".format(**self._course_dict)", "def _key(\n service=None, # type: Optional[str]\n env=None, # type: Optional[str]\n ):\n # type: (...) -> str\n service = service or \"\"\n env = env or \"\"\n r...
[ "0.6446606", "0.61374927", "0.60621893", "0.5975565", "0.5934612", "0.5891562", "0.5889384", "0.5880724", "0.58526766", "0.5810926", "0.57407105", "0.5730642", "0.5688418", "0.56631047", "0.56109715", "0.55618995", "0.5547926", "0.5547926", "0.5547926", "0.5547926", "0.554792...
0.70411134
0
Initialize reporting for the Environment and Experiments conducted during its lifetime
def initialize_reporting(self): reporting_params = self.reporting_params reporting_params["heartbeat_path"] = self.result_paths["current_heartbeat"] reporting_handler = ReportingHandler(**reporting_params) #################### Make Unified Logging Globally Available ####################...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _problem_run_experiments_initialise(self):\n pass", "def experiment_init(self):\n pass", "def _initialize_reporter(self):\n self._reporter.open(mode='w')\n self._reporter.write_thermodynamic_states(self._thermodynamic_states,\n self._...
[ "0.705591", "0.70373553", "0.694236", "0.68620825", "0.64724773", "0.6324107", "0.61711204", "0.6154614", "0.61451995", "0.613628", "0.60897315", "0.60636425", "0.6048451", "0.60439444", "0.6031022", "0.60182476", "0.5934517", "0.5891018", "0.5856779", "0.5835391", "0.5813859...
0.694977
2
Get a `DatasetSentinel` representing an Experiment's `fold_train_input` Returns
def train_input(self): return DatasetSentinel("train_input", **self._dataset_sentinel_helper())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def validation_input(self):\n return DatasetSentinel(\"validation_input\", **self._dataset_sentinel_helper())", "def train_target(self):\n return DatasetSentinel(\"train_target\", **self._dataset_sentinel_helper())", "def validation_target(self):\n return DatasetSentinel(\"validation_targe...
[ "0.7197259", "0.7058317", "0.6581115", "0.63265425", "0.62734795", "0.61224383", "0.61224383", "0.609924", "0.59627235", "0.5961343", "0.58399856", "0.5539047", "0.55349284", "0.5525194", "0.54774237", "0.54644793", "0.5406239", "0.540372", "0.5370397", "0.5369286", "0.535446...
0.81839544
0
Get a `DatasetSentinel` representing an Experiment's `fold_train_target` Returns
def train_target(self): return DatasetSentinel("train_target", **self._dataset_sentinel_helper())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def validation_target(self):\n return DatasetSentinel(\"validation_target\", **self._dataset_sentinel_helper())", "def train_input(self):\n return DatasetSentinel(\"train_input\", **self._dataset_sentinel_helper())", "def holdout_target(self):\n return DatasetSentinel(\n \"holdo...
[ "0.72998613", "0.713837", "0.66336054", "0.6162712", "0.5902305", "0.57828236", "0.5423811", "0.5414221", "0.53984654", "0.5350862", "0.52556276", "0.52556276", "0.5214808", "0.5211418", "0.51941895", "0.51866794", "0.5174885", "0.5166052", "0.51568496", "0.5156731", "0.51362...
0.81183374
0
Get a `DatasetSentinel` representing an Experiment's `fold_validation_input` Returns
def validation_input(self): return DatasetSentinel("validation_input", **self._dataset_sentinel_helper())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def train_input(self):\n return DatasetSentinel(\"train_input\", **self._dataset_sentinel_helper())", "def validation_target(self):\n return DatasetSentinel(\"validation_target\", **self._dataset_sentinel_helper())", "def holdout_input(self):\n return DatasetSentinel(\n \"holdou...
[ "0.7417075", "0.7251253", "0.6297536", "0.6207659", "0.5739387", "0.5739387", "0.57109046", "0.5591265", "0.55240226", "0.54016316", "0.53963184", "0.5390611", "0.5354384", "0.5352668", "0.52997166", "0.50982046", "0.509454", "0.5057065", "0.50273144", "0.49092582", "0.488593...
0.79688627
0
Get a `DatasetSentinel` representing an Experiment's `fold_validation_target` Returns
def validation_target(self): return DatasetSentinel("validation_target", **self._dataset_sentinel_helper())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def train_target(self):\n return DatasetSentinel(\"train_target\", **self._dataset_sentinel_helper())", "def validation_input(self):\n return DatasetSentinel(\"validation_input\", **self._dataset_sentinel_helper())", "def train_input(self):\n return DatasetSentinel(\"train_input\", **self....
[ "0.7272191", "0.7040783", "0.65106875", "0.6453621", "0.58669484", "0.52230227", "0.52210194", "0.5189654", "0.5189253", "0.5166722", "0.50729924", "0.5023478", "0.4998633", "0.4998633", "0.49692518", "0.4958584", "0.4885863", "0.4881906", "0.48708826", "0.4870653", "0.486606...
0.80776197
0
Get a `DatasetSentinel` representing an Experiment's `holdout_input_data` Returns
def holdout_input(self): return DatasetSentinel( "holdout_input", self.cross_experiment_key.parameters["holdout_dataset"] )
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def holdout_target(self):\n return DatasetSentinel(\n \"holdout_target\", self.cross_experiment_key.parameters[\"holdout_dataset\"]\n )", "def train_input(self):\n return DatasetSentinel(\"train_input\", **self._dataset_sentinel_helper())", "def validation_input(self):\n ...
[ "0.7605484", "0.70850253", "0.65761745", "0.62563837", "0.58847857", "0.5119277", "0.49333444", "0.48865077", "0.48654017", "0.48275244", "0.48057696", "0.47976065", "0.47965127", "0.4744823", "0.47400033", "0.47386026", "0.47028476", "0.4699324", "0.46962723", "0.4694681", "...
0.8473368
0
Get a `DatasetSentinel` representing an Experiment's `holdout_target_data` Returns
def holdout_target(self): return DatasetSentinel( "holdout_target", self.cross_experiment_key.parameters["holdout_dataset"] )
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def holdout_input(self):\n return DatasetSentinel(\n \"holdout_input\", self.cross_experiment_key.parameters[\"holdout_dataset\"]\n )", "def train_target(self):\n return DatasetSentinel(\"train_target\", **self._dataset_sentinel_helper())", "def validation_target(self):\n ...
[ "0.7770308", "0.7121358", "0.64517236", "0.6015566", "0.54749423", "0.5369748", "0.5230045", "0.52188426", "0.5049947", "0.49974164", "0.49770722", "0.49149367", "0.48960745", "0.48660335", "0.4858429", "0.47984567", "0.47667906", "0.47544086", "0.47335964", "0.47325793", "0....
0.84920114
0
Helper method for retrieving train/validation sentinel parameters
def _dataset_sentinel_helper(self): params = self.cross_experiment_key.parameters return dict( dataset_hash=params["train_dataset"], cv_type=params["cross_experiment_params"].get( "cv_type", params["cross_experiment_params"].get("cross_validation_type", None) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def default_training_params():\n N_EPOCHS = 100\n BATCH_SIZE = 64\n EPSILON = 0.0001\n return N_EPOCHS, BATCH_SIZE, EPSILON", "def set_training_params(use_defaults):\n if use_defaults:\n n_epochs, batch_size, epsilon = default_training_params()\n return n_epochs, batch_size, epsilon\...
[ "0.64764184", "0.6429467", "0.6267135", "0.6226991", "0.59285235", "0.5904875", "0.59016514", "0.57753325", "0.5774506", "0.55555415", "0.55554277", "0.5521391", "0.5516484", "0.5502349", "0.5497063", "0.54911923", "0.54711896", "0.54711896", "0.5470737", "0.54651886", "0.544...
0.5830468
7
Create `holdout_set` (if necessary) by loading a DataFrame from a .csv file, or by separating `train_set`, and return the updated (`train_set`, `holdout_set`) pair
def define_holdout_set( train_set: pd.DataFrame, holdout_set: Union[pd.DataFrame, callable, str, None], target_column: Union[str, List[str]], ) -> Tuple[pd.DataFrame, Optional[pd.DataFrame]]: #################### Update `holdout_set` #################### if callable(holdout_set): train_set, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create_train_set(addition_to_filename = ''):\n df = f.create_df()\n print('original df size is ', df.shape)\n print('original df columns ', df.columns)\n\n df = f.calculate_missing_prices_for_train_set(df)\n print('df size after averaging price ', df.shape)\n df = f.downcast_dtypes(df)\n d...
[ "0.6308423", "0.6136544", "0.60832155", "0.60303485", "0.59481156", "0.5926183", "0.58851606", "0.5858881", "0.5792204", "0.57012284", "0.56984967", "0.569597", "0.56708777", "0.5638815", "0.56349504", "0.56267476", "0.56263214", "0.5608293", "0.55986565", "0.55914485", "0.55...
0.6827967
0
Validate contents of blacklist. For most values, the corresponding file is saved upon completion of the experiment. See the "Notes" section below for details on some special cases
def validate_file_blacklist(blacklist): valid_values = [ # 'checkpoint', "description", "heartbeat", "predictions_holdout", "predictions_in_fold", "predictions_oof", "predictions_test", "script_backup", "tested_keys", "current_heartbeat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def load_blacklist(experiment):\n blacklist = np.loadtxt('../Slip_Property_Data/%s_blacklist.txt'%experiment)\n return blacklist", "def load_blacklist(experiment):\n blacklist = np.loadtxt('../Slip_Property_Data/%s_blacklist.txt'%experiment)\n return blacklist", "def save_blacklist(blacklist, outpu...
[ "0.6533181", "0.6533181", "0.6494651", "0.64306563", "0.6377956", "0.61511934", "0.6121788", "0.5941797", "0.5909957", "0.5882721", "0.5851798", "0.5822298", "0.56683594", "0.5648593", "0.5628515", "0.55158484", "0.54681826", "0.54313976", "0.5406495", "0.5349667", "0.5342094...
0.804985
0
Get the scsi data, and vtd mapping data and output in the fomat viosname,lunid,disk,vtdname,partitionid
def getVIOSmappings(vios,csvFile=''): """ We need the cec this vios is running to be able to map the lpar names """ cec = nim_attribute(vios,"mgmt_profile").split()[2] """ ssh comms all ok?? """ isOK = ssh_output(vios,"echo OK") if isOK == None or isOK == False: error_message("Unable to c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def print_vscsi_attributes(self,objects):\n print(\"\\n\")\n print((\"LocalPartitionID\".ljust(35),\":\",objects.LocalPartitionID.value()))\n print((\"VirtualSlotNumber\".ljust(35),\":\",objects.VirtualSlotNumber.value()))\n print((\"RequiredAdapter\".ljust(35),\":\",objects.RequiredAda...
[ "0.6226752", "0.62065095", "0.613328", "0.5941464", "0.58446807", "0.5758732", "0.57254314", "0.5669364", "0.5603092", "0.5584567", "0.55693907", "0.5547329", "0.553814", "0.55317974", "0.55209994", "0.5405666", "0.5393464", "0.5392122", "0.5388479", "0.5382682", "0.53686225"...
0.69272226
0
Return possible map states
def get_moves(self):
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_state_map(self):\n if self.is_po:\n state_map = self.curr_map\n else:\n state_map = self.grid_map\n state_map[self.curr_pos] = 0.5\n state_map[self.goal_pos] = 0.7\n return state_map", "def states(self):\n knownstates = set(self.keys())\n ...
[ "0.71087664", "0.7074518", "0.677178", "0.67380196", "0.655753", "0.6495594", "0.6494033", "0.6443897", "0.64307165", "0.6419317", "0.6412042", "0.6395079", "0.63540417", "0.6328602", "0.63154495", "0.6303637", "0.62966526", "0.6289538", "0.6258314", "0.6251944", "0.6178415",...
0.0
-1
Return a hashable state
def get_state_hash(self): return tuple([tuple([x for x in row if x not in [' ', '#']]) for row in self.map[1:-1]])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_hashable_state(self):\n raise AIError(\"Must be implemented in child class!\")", "def __hash__(self):\n return hash((self.name, self.state))", "def __hash__(self):\n if getattr(self, \"_immutable\", False):\n return hash((tuple(self.states()), tuple(self.transitions())))...
[ "0.8085476", "0.79855424", "0.7687602", "0.75003594", "0.69587237", "0.68687993", "0.6838884", "0.68151635", "0.68011165", "0.6758", "0.6713541", "0.6698997", "0.6691076", "0.668013", "0.6669868", "0.66635925", "0.66240686", "0.6620361", "0.6606971", "0.6604862", "0.6591645",...
0.676722
9
Make an instance of the api and attempts to authenticate the user. Return the authenticated api.
def authenticate(): # We are uploading and then downloading so we want Musicmanager api = Musicmanager() # Attempt to authenticate and log in logged_in = api.login() # If login() returns false, you have not performed oauth yet, or did not # write your credentials to your disk. Using oauth all...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def api_authentication():\r\n apikey = request.args.get('api_key', None)\r\n from flask import _request_ctx_stack\r\n if 'Authorization' in request.headers:\r\n apikey = request.headers.get('Authorization')\r\n if apikey:\r\n user = db.session.query(model.user.User...
[ "0.72514385", "0.7194521", "0.66663784", "0.66555786", "0.6583456", "0.6552307", "0.6540641", "0.64537", "0.6420162", "0.64155054", "0.6405242", "0.63488394", "0.6289332", "0.62696224", "0.62566435", "0.62319964", "0.6192098", "0.6162103", "0.61557543", "0.61531574", "0.61462...
0.65322834
7
Demonstrate some api features.
def demonstrate(): api = authenticate() # Demonstrate upload feature. # Create a list of one or more file paths of the mp3s you would like # to upload filepaths = [] filepaths.append('./song1.mp3') # Upload an mp3 to your library. upload() returns a tuple of information # about the s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def api():\n\treturn \"The API call\"", "def api(self) -> str:", "def testApi(self):", "def hello_world():\n \n apis = []\n apis.append({\n 'method' : 'POST', \n 'url' : '/api/analysis',\n 'params': [{\n 'attribute' : 'text',\n ...
[ "0.7289153", "0.7226013", "0.69252145", "0.66564894", "0.662737", "0.66099566", "0.6588083", "0.65751857", "0.655524", "0.65286803", "0.64784944", "0.64357257", "0.6433924", "0.64230484", "0.6387545", "0.6387545", "0.6387545", "0.6387545", "0.6387545", "0.6349674", "0.6277104...
0.57035404
99
Ensures that a websafe key is valid and of the desired kind.
def _raiseIfWebsafeKeyNotValid(websafeKey, kind): # Check that websafeKey is not None if not websafeKey: raise endpoints.BadRequestException( "Websafe key not provided for '%s'" % kind) # Try to decode the websafe key into a real key try: key = ndb.Key(urlsafe=websafeKey) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def isValidKey(key):\n return True", "def validate_key(key):\r\n try:\r\n secret.Secret(key)\r\n except secret.Secret.InvalidSecret as e:\r\n raise KeyIsInvalid(e.message)", "def _check_key(self, key):\n raise NotImplementedError", "def test_valid_key(self):\n f = lws.valid...
[ "0.66728324", "0.6390312", "0.6318158", "0.62363094", "0.6178258", "0.61090034", "0.59969664", "0.59606546", "0.59150714", "0.5909401", "0.5852684", "0.5826533", "0.5803395", "0.5795646", "0.5785924", "0.5733037", "0.5733037", "0.57124954", "0.57062685", "0.56519485", "0.5633...
0.8084664
0
Attempts to retrieve entity, performing verification in the process.
def _getEntityByWebsafeKey(websafeKey, kind): # Ensure that the websafe key is valid key = _raiseIfWebsafeKeyNotValid(websafeKey, kind) # Get the entity entity = key.get() if not entity: raise endpoints.NotFoundException( "No '%s' entity found using websafe key: %s" % ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def get_entity(self):\n if not self.entity and await self.get_input_entity():\n try:\n self._entity =\\\n await self._client.get_entity(self._input_entity)\n except ValueError:\n pass\n\n return self._entity", "async def t...
[ "0.66966546", "0.64643776", "0.6297204", "0.5874635", "0.58368284", "0.580103", "0.5799007", "0.5783325", "0.57693875", "0.5749898", "0.5693132", "0.5627393", "0.5605186", "0.5590932", "0.5526674", "0.54998803", "0.5461038", "0.5455379", "0.54105365", "0.5380263", "0.5332381"...
0.57059026
10
Create Announcement & assign to memcache; used by memcache cron job & putAnnouncement().
def _cacheAnnouncement(): confs = Conference.query(ndb.AND( Conference.seatsAvailable <= 5, Conference.seatsAvailable > 0) ).fetch(projection=[Conference.name]) if confs: # If there are conferences close to being sold out, # format announcement and...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getAnnouncement(self, request):\n announcement = memcache.get(MEMCACHE_ANNOUNCEMENTS_KEY) or \"\"\n return StringMessage(data=announcement)", "def cache_announcement():\n confs = Conference.query(ndb.AND(\n Conference.seatsAvailable <= 5, Conference.seatsAvailable > 0\n ...
[ "0.6307641", "0.624139", "0.61396885", "0.5956356", "0.5670804", "0.5596737", "0.5565057", "0.5479931", "0.5426172", "0.5361342", "0.5328143", "0.5242326", "0.51843905", "0.5149838", "0.50455034", "0.5040873", "0.50037575", "0.4943809", "0.49090248", "0.4906064", "0.4883745",...
0.6339458
0
Register or unregister user for selected conference.
def _conferenceRegistration(self, request, reg=True): retval = None # Get user profile prof = self._getProfileFromUser() # Check if conference given in the websafeConferenceKey exists wsck = request.websafeConferenceKey conf = _getEntityByWebsafeKey(wsck, 'Conference') ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def conference_registration(self, request, reg=True):\n prof = self.profile_service.get_profile_from_user() # get user Profile\n\n # check if conf exists given websafeConfKey\n # get conference; check that it exists\n wsck = request.websafeConferenceKey\n conf = ndb.Key(urlsafe=...
[ "0.6628083", "0.64813596", "0.6294456", "0.6073893", "0.58963567", "0.5738126", "0.55700624", "0.55217904", "0.54235077", "0.541907", "0.5362311", "0.53576905", "0.5338589", "0.52861226", "0.5157034", "0.51566017", "0.5153176", "0.5135656", "0.5130247", "0.5127976", "0.510271...
0.67306554
0
Copy relevant fields from Conference to ConferenceForm.
def _copyConferenceToForm(self, conf, displayName): cf = ConferenceForm() for field in cf.all_fields(): if hasattr(conf, field.name): # Convert Date to date string; just copy others if field.name.endswith('Date'): setattr(cf, field.name, st...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _copyConferenceToForm(self, conf, displayName):\n cf = ConferenceForm()\n for field in cf.all_fields():\n if hasattr(conf, field.name):\n # convert Date to date string; just copy others\n if field.name.endswith('Date'):\n setattr(cf, field.name, str(getattr(con...
[ "0.7727503", "0.6019656", "0.5861441", "0.57970494", "0.57781494", "0.57305723", "0.5715702", "0.56819946", "0.5602228", "0.5507136", "0.5495653", "0.5426627", "0.5412202", "0.53416955", "0.5293119", "0.5292693", "0.5292534", "0.5275663", "0.52391994", "0.52208537", "0.521184...
0.77495456
0
Create or update a conference, returning ConferenceForm/request.
def _createConferenceObject(self, request): # Preload necessary data items user = endpoints.get_current_user() if not user: raise endpoints.UnauthorizedException('Authorization required') user_id = user.email() if not request.name: raise endpoints.BadReque...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _createConferenceObject(self, request):\n # preload necessary data items\n user = endpoints.get_current_user()\n if not user:\n raise endpoints.UnauthorizedException('Authorization required')\n user_id = getUserId(user)\n\n if not request.name:\n raise endpoints.BadRequestException...
[ "0.7081421", "0.7047886", "0.6980478", "0.6792568", "0.67714655", "0.6611755", "0.6580865", "0.61293185", "0.60343635", "0.59881353", "0.5875531", "0.57053417", "0.5569745", "0.5504398", "0.5384232", "0.53397477", "0.5316019", "0.52989537", "0.51942", "0.5168115", "0.5145852"...
0.68450546
3
Parse, check validity and format user supplied filters.
def _formatFilters(self, filters): formatted_filters = [] inequality_field = None for f in filters: filtr = { field.name: getattr(f, field.name) for field in f.all_fields() } try: filtr["field"] = FIELDS[filtr["field"]] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def handle_filters(filters: Optional[List[str]]) -> List[Dict[str, Any]]:\n filters_to_send = []\n for filter_ in filters or []:\n split_filter = filter_.split('=')\n if len(split_filter) != 2 or not split_filter[0] or not split_filter[1]:\n raise DemistoException('Filters should be ...
[ "0.6897771", "0.6654421", "0.6647934", "0.6647418", "0.6594005", "0.65434283", "0.65231794", "0.64544934", "0.6430273", "0.6366135", "0.62607723", "0.6208928", "0.6146251", "0.6066933", "0.6063317", "0.6019137", "0.60165054", "0.59925497", "0.5987568", "0.59434175", "0.594083...
0.65210766
7
Retrieve all conferences matching one or more given topics.
def _getConferencesByTopicSearch(self, request): # Generate list of filters from the topic arguments filters = [Conference.topics == topic for topic in request.topics] if not filters: raise endpoints.BadRequestException( 'At least one topic must be specified' ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getConferencesByTopicSearch(self, request):\n conferences = self._getConferencesByTopicSearch(request)\n # Need to fetch organiser displayName from profiles\n # Get all keys and use get_multi for speed\n organisers = [\n (ndb.Key(Profile, conf.organizerUserId)) for conf i...
[ "0.6711613", "0.6230136", "0.61121726", "0.60039115", "0.5985098", "0.5940796", "0.58975244", "0.58861005", "0.5882982", "0.5880553", "0.5836876", "0.58033025", "0.57397395", "0.5726651", "0.5705699", "0.5686112", "0.56527764", "0.56140727", "0.54820526", "0.5472352", "0.5471...
0.790961
0
Return formatted query from the submitted filters.
def _getQuery(self, request): q = Conference.query() inequality_filter, filters = self._formatFilters(request.filters) # If exists, sort on inequality filter first if not inequality_filter: q = q.order(Conference.name) else: q = q.order(ndb.GenericProperty...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_query(self):\n columns = ','.join(['\"{}\"'.format(x) for x in self.columns])\n query = 'SELECT {} FROM \"{}\"'.format(columns, self.table)\n filter_params = []\n if self.filters:\n filter_sql, filter_params = filter_postgis(self.filters)\n query += ' WHERE...
[ "0.67433846", "0.67309666", "0.66847456", "0.6650939", "0.6648182", "0.64935666", "0.6440689", "0.63192457", "0.6306208", "0.628635", "0.62689066", "0.62631875", "0.6200151", "0.6186324", "0.6155119", "0.61444587", "0.61128426", "0.60982704", "0.6098094", "0.6062554", "0.6021...
0.62215513
12
Return Announcement from memcache.
def getAnnouncement(self, request): announcement = memcache.get(MEMCACHE_ANNOUNCEMENTS_KEY) or "" return StringMessage(data=announcement)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_announcement(self, request):\n return StringMessage(\n data=memcache.get(MEMCACHE_ANNOUNCEMENTS_KEY) or \"\")", "def _cacheAnnouncement():\n confs = Conference.query(ndb.AND(\n Conference.seatsAvailable <= 5,\n Conference.seatsAvailable > 0)\n ).fetch...
[ "0.74955446", "0.7363284", "0.705641", "0.58456796", "0.5752198", "0.56402856", "0.56222874", "0.5593154", "0.5495106", "0.5467809", "0.54591787", "0.54124725", "0.5330662", "0.53072345", "0.5287989", "0.527153", "0.52640253", "0.523533", "0.52221245", "0.52221245", "0.521772...
0.78246075
0