query stringlengths 9 9.05k | document stringlengths 10 222k | metadata dict | negatives listlengths 30 30 | negative_scores listlengths 30 30 | document_score stringlengths 4 10 | document_rank stringclasses 2
values |
|---|---|---|---|---|---|---|
Dask Vector constructor dask_client = [no default] DaskClient; client object to use when submitting tasks (see dask_util module) | def __init__(self, dask_client, **kwargs):
# Client to submit tasks
super(DaskVector).__init__()
if not isinstance(dask_client, DaskClient):
raise TypeError("Passed client is not a Dask Client object!")
self.dask_client = dask_client
self.client = self.dask_client.get... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def readDaskVector(dask_client, **kwargs):\n # Getting dask client components\n Nwrks = dask_client.getNworkers()\n client = dask_client.getClient()\n wrkIds = dask_client.getWorkerIds()\n # Args\n shapes = kwargs.get(\"shapes\")\n chunks = kwargs.get(\"chunks\")\n vtype = kwargs.get(\"vtyp... | [
"0.6831173",
"0.63039255",
"0.6283271",
"0.59575003",
"0.59399337",
"0.576721",
"0.5696779",
"0.5634016",
"0.54043156",
"0.53713983",
"0.5345454",
"0.5334881",
"0.5191013",
"0.51739955",
"0.5156445",
"0.5156319",
"0.5119377",
"0.5112927",
"0.5112927",
"0.50631505",
"0.505974"... | 0.8206005 | 0 |
Function to compute vector Nnorm | def norm(self, N=2):
norms = self.client.map(_call_norm, self.vecDask, N=N, pure=False)
norm = 0.0
for future, result in daskD.as_completed(norms, with_results=True):
norm += np.power(np.float64(result), N)
return np.power(norm, 1. / N) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _call_norm(vecObj, N=2):\n res = vecObj.norm(N)\n return res",
"def nuclearnorm(X):\r\n if X.size == 0:\r\n return 0\r\n return LA.norm(X) if is_vector(X) else LA.norm(X, 'nuc')\r\n\r\n\r\n pass",
"def test_norm_vector():\n random_state = np.random.RandomState(0)\n for n in rang... | [
"0.76927143",
"0.76561177",
"0.74504465",
"0.7385774",
"0.7375767",
"0.73366463",
"0.7327777",
"0.7315113",
"0.729182",
"0.72911054",
"0.7284612",
"0.7246406",
"0.7175228",
"0.71528745",
"0.714579",
"0.7144377",
"0.70606065",
"0.7056307",
"0.7023259",
"0.6975496",
"0.6963382"... | 0.79214686 | 0 |
Function to clone vector space | def cloneSpace(self):
vectors = self.client.map(_call_cloneSpace, self.vecDask, pure=False)
daskD.wait(vectors)
return DaskVector(self.dask_client, dask_vectors=vectors) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def clone(self):\n v = self.mV[:]\n return Vector.fromSequence(v)",
"def Copy(self) -> BaseVector:",
"def _call_cloneSpace(vecObj):\n res = vecObj.cloneSpace()\n return res",
"def clone(self):\n vectors = self.client.map(_call_clone, self.vecDask, pure=False)\n daskD.wait(ve... | [
"0.7729322",
"0.7344911",
"0.72906476",
"0.720648",
"0.7117013",
"0.68044114",
"0.67241454",
"0.6600875",
"0.65939367",
"0.6513081",
"0.6348839",
"0.6281304",
"0.62649983",
"0.6191479",
"0.61791897",
"0.6115235",
"0.61055446",
"0.607962",
"0.60715",
"0.6066393",
"0.60624623",... | 0.75293636 | 1 |
Return a new vector of elementwise maximum of self and vec2 | def maximum(self, vec2):
checkVector(self, vec2)
daskD.wait(self.client.map(_call_maximum, self.vecDask, vec2.vecDask, pure=False))
return self | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _call_maximum(vecObj, vec2):\n res = vecObj.maximum(vec2)\n return res",
"def getMaximum(self):\n v1 = Vector(*self.p1)\n v2 = Vector(*self.p2)\n if v1.angle >= v2.angle:\n return self.p1\n else:\n return self.p2",
"def _call_max(vecObj):\n res = v... | [
"0.7657407",
"0.6705677",
"0.63974136",
"0.63030493",
"0.62217724",
"0.6146728",
"0.6124668",
"0.60767585",
"0.6070909",
"0.59927255",
"0.5974342",
"0.5960189",
"0.59536165",
"0.59158903",
"0.59005445",
"0.58661276",
"0.57953715",
"0.57794505",
"0.5725352",
"0.56789887",
"0.5... | 0.7862111 | 0 |
Function to obtain associated binary files to each file name | def _get_binaries(**kwargs):
binfiles = list()
Nbytes = list()
filenames = kwargs.get("filenames")
for filename in filenames:
_, ext = os.path.splitext(filename) # Getting file extension
if ext == ".H": # SEPlib file
binfiles.append(sep.get_binary(filename))
Nby... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_filenames():\r\n datadir = \"./phase3_data/\"\r\n samples = os.listdir(datadir)\r\n all_files = []\r\n for i in range(len(samples)):\r\n sampfiles = []\r\n datadir = \"./phase3_data/\" + samples[i]\r\n files = os.listdir(datadir)\r\n for file in files:\r\n ... | [
"0.62665224",
"0.62496805",
"0.62063235",
"0.61434835",
"0.61382735",
"0.61318684",
"0.61058885",
"0.6097933",
"0.6070463",
"0.606783",
"0.60448146",
"0.60034513",
"0.59910154",
"0.59859926",
"0.59769595",
"0.5951151",
"0.593317",
"0.5908852",
"0.58998656",
"0.58888197",
"0.5... | 0.6508296 | 0 |
Function to read a vector using a Dask worker | def _read_vector_dask(shape, binaries, counts, offsets, **kwargs):
vector = None
vtype = kwargs.get("vtype")
axes = kwargs.get("axes", None)
fmt = kwargs.get("format", ">f") # Default floating point number
# Reading binary data into data array
data = np.array([]) # Initialize an empty array
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def readDaskVector(dask_client, **kwargs):\n # Getting dask client components\n Nwrks = dask_client.getNworkers()\n client = dask_client.getClient()\n wrkIds = dask_client.getWorkerIds()\n # Args\n shapes = kwargs.get(\"shapes\")\n chunks = kwargs.get(\"chunks\")\n vtype = kwargs.get(\"vtyp... | [
"0.732789",
"0.60388094",
"0.5601568",
"0.55603427",
"0.5475696",
"0.54134154",
"0.53901535",
"0.5353411",
"0.52523685",
"0.5232108",
"0.5220911",
"0.5218527",
"0.51863474",
"0.5167775",
"0.5153214",
"0.51395726",
"0.5127312",
"0.51244676",
"0.5117605",
"0.51017123",
"0.50978... | 0.71083474 | 1 |
sub_first_number_recognition(positions) > None This method sets the temporary recognized number. Pepper asks then back if the recognized number is correct. number The recognized number | def sub_first_number_recognition(self, number):
try:
if not self.__numbers_temporary_recognized:
self.__game_logic.set_numbers_to_play_temporary([int(number)])
if self.__detected_opponents != 0:
self.__game_logic.set_number_of_opponents(self.__det... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def popNumber(self): \n\t\t# first remove the exponent part\n\t\tif(self.exponent != None):\n\t\t\t# if the exponent number is empty then the exponent can be set to none\n\t\t\tif(self.exponent.popNumber()):\n\t\t\t\tself.exponent = None\n\t\t\t\t\n\t\t# if there is a decimal part\n\t\telif(self.decimal):\n\t\t\t#... | [
"0.49359488",
"0.4924018",
"0.4910955",
"0.4848972",
"0.48454875",
"0.47806144",
"0.4706976",
"0.4697181",
"0.46886638",
"0.46359608",
"0.46358237",
"0.46210265",
"0.46130472",
"0.45721626",
"0.45703396",
"0.4533505",
"0.45174906",
"0.45158696",
"0.45080057",
"0.4487773",
"0.... | 0.6894872 | 0 |
sub_question_if_correct_row_recognized(value) > None After temporary recognized number, this method sets fixed value, if opponent says yes otherwise he asks back. value The recognized value. | def sub_question_if_correct_row_recognized(self, value):
# Check if correct number
if self.__is_temporary_recognized() and str(value).lower() == "yes":
self.__game_logic.set_fixed_numbers()
self.__tts.say("Cool let's start!")
self.__tts.say("It's my turn")
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sub_first_number_recognition(self, number):\n try:\n if not self.__numbers_temporary_recognized:\n self.__game_logic.set_numbers_to_play_temporary([int(number)])\n\n if self.__detected_opponents != 0:\n self.__game_logic.set_number_of_opponents... | [
"0.58612764",
"0.5488076",
"0.53135353",
"0.5310687",
"0.52106136",
"0.5200651",
"0.5158289",
"0.51100415",
"0.51100415",
"0.51100415",
"0.51100415",
"0.51086104",
"0.50809306",
"0.5076881",
"0.5072011",
"0.5054234",
"0.5032313",
"0.5020183",
"0.4985347",
"0.498108",
"0.49773... | 0.86289155 | 0 |
sub_playing_number(number) > None Method while in playing mode. Pepper checks and calculates correct solution. number Recognized number | def sub_playing_number(self, number):
if self.__is_playing() and str(number).lower() != 'stop':
if not self.__game_logic.is_it_my_turn(): # opponents turn
if self.__is_correct_solution(number):
self.__prepare_next_turn()
if self.__game_logic.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sub_first_number_recognition(self, number):\n try:\n if not self.__numbers_temporary_recognized:\n self.__game_logic.set_numbers_to_play_temporary([int(number)])\n\n if self.__detected_opponents != 0:\n self.__game_logic.set_number_of_opponents... | [
"0.65045446",
"0.6213748",
"0.6018499",
"0.587562",
"0.5871505",
"0.5832664",
"0.5828533",
"0.5802948",
"0.576265",
"0.57500184",
"0.572634",
"0.5704146",
"0.5699759",
"0.56408334",
"0.56245214",
"0.560259",
"0.5582808",
"0.5551465",
"0.5540394",
"0.5537745",
"0.5509884",
"... | 0.7848258 | 0 |
sub_stop_requested(value) > None Method to cancel the game by saying "stop" value Recognized value | def sub_stop_requested(self, value):
if str(value).lower() == "stop":
self.__gameCanceled = True
self.__logging("Method \"sub_stopRequested()\" Stop is requested and successful set")
else:
self.__logging("Method \"sub_stopRequested()\" Stop not requested") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ask_stop_game(self):\n return self.stop_game",
"def stop() -> None:",
"def stop():",
"def stop():",
"def stop():",
"def stop():",
"def cancel_stop(cls):\n cls._set_mode_running()",
"def _stop(self):",
"def stop(self) -> None:\n ...",
"def stop(self) -> None:",
"def stop... | [
"0.73609465",
"0.700203",
"0.70019555",
"0.70019555",
"0.70019555",
"0.70019555",
"0.7000125",
"0.6982787",
"0.6793836",
"0.67910665",
"0.67910665",
"0.6781655",
"0.6748367",
"0.6729139",
"0.6729139",
"0.6712958",
"0.6683559",
"0.6674378",
"0.66684574",
"0.6663033",
"0.66606"... | 0.8685332 | 0 |
sub_playing_again(value) > None Method to play again. value Recognized value | def sub_playing_again(self, value):
if self.__playing_again_requested:
if str(value).lower() == "yes":
self.__playing_again_requested = False
self.__say_start_game()
elif str(value).lower() == "no":
self.__gameCanceled = True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sub_playing_number(self, number):\n if self.__is_playing() and str(number).lower() != 'stop':\n if not self.__game_logic.is_it_my_turn(): # opponents turn\n if self.__is_correct_solution(number):\n self.__prepare_next_turn()\n\n if self.__... | [
"0.7086544",
"0.6989213",
"0.68650734",
"0.68368757",
"0.6649722",
"0.66414595",
"0.6577404",
"0.6520441",
"0.6514388",
"0.6444358",
"0.64005446",
"0.6360555",
"0.63430005",
"0.63323915",
"0.62969625",
"0.6282716",
"0.62801385",
"0.62681645",
"0.62629145",
"0.6223201",
"0.619... | 0.8194176 | 0 |
True if ship should change from mining to depositing, False else | def convert_to_depositing(self, ship):
if ship.halite_amount >= constants.MAX_HALITE * 0.95:
ship.type = 'depositing'
ship.hval = 1/ship.hval
heapq.heappush(self.ships_deposit, ship)
return True
else:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def move_ok(game, ship):\n cell_halite = game.game_map[ship.position].halite_amount\n\n if ship.is_full:\n return True\n\n # generally ignore low value cells. Note Mining_threshold may be dynamic\n if cell_halite < Mining_threshold:\n return True\n\n dropoffs = get_dropoff_positions(ga... | [
"0.65783536",
"0.646062",
"0.6408508",
"0.635759",
"0.6241732",
"0.6216904",
"0.61698693",
"0.61564445",
"0.61564445",
"0.61564445",
"0.61564445",
"0.61564445",
"0.61564445",
"0.61564445",
"0.61564445",
"0.61564445",
"0.6142636",
"0.61141145",
"0.60573137",
"0.60431486",
"0.6... | 0.6835847 | 0 |
Retrieve PREMIS original name from a METSDocument object. If the original name cannot be reliably retrieved from the METS file a METSError exception is returned to be handled by the caller as desired. | def get_aip_original_name(mets):
# Negated as we're going to want to remove this length of values.
NAMESUFFIX = -len("-00000000-0000-0000-0000-000000000000")
# The transfer directory prefix is a directory prefix that can also
# exist in a dmdSec intellectual entity and we want to identify and
# ig... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_original_title(self, doc_id):\n cursor = self.connection.cursor()\n cursor.execute(\n \"SELECT original_title FROM documents WHERE id = ?\",\n (doc_id,)\n )\n result = cursor.fetchone()\n cursor.close()\n return result if result is None else r... | [
"0.6083312",
"0.596682",
"0.57145655",
"0.5445478",
"0.54266673",
"0.52245724",
"0.5157675",
"0.513904",
"0.5133016",
"0.5127907",
"0.5095737",
"0.5069981",
"0.5063474",
"0.504162",
"0.50030595",
"0.500116",
"0.4995564",
"0.4973906",
"0.49633676",
"0.49633098",
"0.49452972",
... | 0.69990456 | 0 |
Download METS from the storage service. | def download_mets(
api_url, package_uuid, relative_path_to_mets, timestamp, package_list_no
):
# Request the METS file.
mets_response = requests.get(
get_mets_url(api_url, package_uuid, relative_path_to_mets)
)
# Create a directory to download the METS to.
numbered_subdir = create_numb... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _download_metadata():\n if not os.path.isfile(L1000FWD_METADATA):\n if not os.path.exists('L1000FWD'):\n os.mkdir('L1000FWD')\n response = requests.get('https://amp.pharm.mssm.edu/l1000fwd/download/Drugs_metadata.csv', stream=True)\n if response.status_code != 200:\n ... | [
"0.66241574",
"0.6297043",
"0.62160534",
"0.617954",
"0.61709756",
"0.6099164",
"0.60698897",
"0.60536236",
"0.60501933",
"0.60457927",
"0.59589",
"0.59406716",
"0.59406716",
"0.5909662",
"0.58548194",
"0.58548194",
"0.58376616",
"0.5830893",
"0.5779724",
"0.57774776",
"0.574... | 0.6453414 | 1 |
Get the mean value of an atomic property for a given pymatgen composition. | def mean_atomic_prop(comp: Composition, prop: str) -> float | None:
try:
return sum(getattr(el, prop) * amt for el, amt in comp.items()) / comp.num_atoms
except Exception:
print(f"Could not compute mean {prop} for {comp}")
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mean_value(self):\n\n return self._system.mean()",
"def getMean(self):\n return self.mean",
"def mean(self):\n return self._mean",
"def mean(self):\n return self._mean",
"def mean(self):\n return self.cond_proba.mean",
"def mean(self):\n return self.vmean",
... | [
"0.6685644",
"0.6565969",
"0.64772063",
"0.64772063",
"0.6455016",
"0.6452223",
"0.645021",
"0.6431718",
"0.6419496",
"0.6409676",
"0.63809806",
"0.63711673",
"0.629797",
"0.6267243",
"0.62615657",
"0.62591934",
"0.62556785",
"0.62383825",
"0.6213704",
"0.61989045",
"0.614204... | 0.8010102 | 0 |
Fetch all scalars from COD database. Constraints on the scalar table ensure that all values are numeric and nonnull, so there is no need for further validation. | def get_all_scalars() -> pd.DataFrame:
return query(Scalars.GET_ALL, conn_def=ConnectionDefinitions.COD) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def collectScalars(self, folder, event_id, db):\n # first write the scalar, makes sure there is only one such table\n db.createTableIfNotExists(\"scalars\", ((\"event_id\",\"integer\"), (\"lifetime\",\"real\")))\n # for lifetime\n maxLifetime = np.max(np.loadtxt(path.join(folder, \"surf... | [
"0.58767104",
"0.5845854",
"0.57076806",
"0.56573546",
"0.55084586",
"0.550631",
"0.5387905",
"0.5356913",
"0.533618",
"0.5202466",
"0.5194979",
"0.51762754",
"0.5120591",
"0.5086719",
"0.5085189",
"0.50604546",
"0.50601596",
"0.5058081",
"0.503884",
"0.5036961",
"0.5020695",... | 0.694495 | 0 |
Compute error on Qi Khalil et al defines Qi as 1/Qi = 1/Qr Real(1/Qe), where Qe is | def qi_error(Q, Q_err, Q_e_real, Q_e_real_err, Q_e_imag, Q_e_imag_err):
dQ = Q_err
Qer = Q_e_real
dQer = Q_e_real_err
Qei = Q_e_imag
dQei = Q_e_imag_err
denom = (Q * Qer - Qer ** 2 + Qei ** 2) ** 2
dQi_dQ = (Qer ** 2 - Qei ** 2) ** 2 / denom
dQi_dQer = (Q ** 2 * (Qer ** 2 + Qei ** 2)) ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q_e(params):\n return (params['Q_e_real'].value +\n 1j * params['Q_e_imag'].value)",
"def Q_i(params):\n Q = params['Q'].value\n Qe = Q_e(params)\n return (Q ** -1 - np.real(Qe ** -1)) ** -1",
"def quatError(Qdes, Q):\n\n we = Qdes[0]*Q[0] + np.dot(Qdes[1:4].transpose(),Q[1:4]) - ... | [
"0.691688",
"0.6847341",
"0.67518485",
"0.6671286",
"0.6380822",
"0.61917907",
"0.6043716",
"0.6014417",
"0.60040313",
"0.5984118",
"0.5911077",
"0.59023273",
"0.58748543",
"0.5861805",
"0.5855008",
"0.5849446",
"0.5838882",
"0.5805441",
"0.58041394",
"0.5791894",
"0.5749694"... | 0.8325197 | 0 |
This assumes that signals go as exp(i \omega t) so that a time delay corresponds to negative phase. In our sweeps the phase advances with frequency, so I think that currently either the convention is reversed in the readout or we have a time lead. If f is in MHz, delay will be in microseconds. If f is in Hz, delay will... | def cable_delay(params, f):
delay = params['delay'].value
phi = params['phi'].value
f_min = params['f_phi'].value
return np.exp(1j * (-2 * np.pi * (f - f_min) * delay + phi)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def input_f(t,decay=0.5,freq=1.5):\n u_t = 1*(t>0)\n return np.cos(freq*t)*np.exp(-decay*t) * u_t",
"def heterodyner_signal_from_f(self,f):\n omega = f*2*np.pi\n phvec = np.cumsum(omega)\n return np.exp(1j*phvec)",
"def dphi(x):\n return -kf(\n flapping_wing_frequen... | [
"0.6000294",
"0.5999169",
"0.59982175",
"0.59982175",
"0.591241",
"0.58626384",
"0.57333475",
"0.57271147",
"0.57193273",
"0.56422067",
"0.563755",
"0.55523705",
"0.55501664",
"0.5520884",
"0.55204237",
"0.5502972",
"0.54934525",
"0.54856783",
"0.54709446",
"0.5444756",
"0.54... | 0.66626245 | 0 |
Calculate the coupling coefficient \chi_c using the real part of Q_e. | def chi_c_real(params):
Qi = Q_i(params)
Qc = params['Q_e_real'].value
return ((4 * Qc * Qi) /
(Qc + Qi) ** 2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def calc_cogen_const(q_heat_Wh, thermal_eff, electrical_eff):\n q_fuel_Wh = q_heat_Wh / thermal_eff\n p_el_Wh = q_fuel_Wh * electrical_eff\n q_anth_Wh = q_fuel_Wh - (q_heat_Wh + p_el_Wh)\n return q_fuel_Wh, p_el_Wh, q_anth_Wh",
"def chi_c_norm(params):\n Qi = Q_i(params)\n Qc = np.abs(Q_e(param... | [
"0.68749535",
"0.64142513",
"0.631995",
"0.63120973",
"0.6251317",
"0.62089586",
"0.61981535",
"0.61926574",
"0.61706084",
"0.6149155",
"0.613178",
"0.6111826",
"0.6110399",
"0.61080086",
"0.6051158",
"0.6049442",
"0.6033734",
"0.60168314",
"0.6015759",
"0.60150766",
"0.59595... | 0.77838707 | 0 |
Calculate the coupling coefficient \chi_c using the norm of Q_e. | def chi_c_norm(params):
Qi = Q_i(params)
Qc = np.abs(Q_e(params))
return ((4 * Qc * Qi) /
(Qc + Qi) ** 2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def chi_c_real(params):\n Qi = Q_i(params)\n Qc = params['Q_e_real'].value\n return ((4 * Qc * Qi) /\n (Qc + Qi) ** 2)",
"def calc_cogen_const(q_heat_Wh, thermal_eff, electrical_eff):\n q_fuel_Wh = q_heat_Wh / thermal_eff\n p_el_Wh = q_fuel_Wh * electrical_eff\n q_anth_Wh = q_fuel_Wh... | [
"0.7291966",
"0.6479843",
"0.64728814",
"0.64601874",
"0.63443613",
"0.6213583",
"0.6213114",
"0.6167507",
"0.6149365",
"0.6062932",
"0.6055909",
"0.60524786",
"0.60424095",
"0.60298413",
"0.6012901",
"0.5998995",
"0.597968",
"0.5976808",
"0.5968703",
"0.59401",
"0.5888747",
... | 0.75693315 | 0 |
Create a bcrypt hash of a password | def _hash_password(self, password):
passwordhash = bcrypt.hashpw(password.encode('utf8'), bcrypt.gensalt())
return passwordhash | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hash_password(password: str) -> str:\n return bcrypt.hashpw(password.encode(), bcrypt.gensalt()).decode('utf8')",
"def hash_password(self, password):\n salt = hashlib.sha256(os.urandom(60)).hexdigest().encode('ascii')\n pwdhash = hashlib.pbkdf2_hmac('sha256', password.encode('utf-8'), \n ... | [
"0.81158215",
"0.784968",
"0.77817076",
"0.7740906",
"0.77358174",
"0.7666057",
"0.7666057",
"0.7666057",
"0.7636678",
"0.7614581",
"0.76089275",
"0.7604094",
"0.7601943",
"0.756695",
"0.7542338",
"0.7503173",
"0.7470942",
"0.74610966",
"0.74574625",
"0.7439365",
"0.73963904"... | 0.819452 | 0 |
Implementing switch to bill and audit functionality | def switch_to_bill_and_audit(self):
self.switch_to_window()
self.accept_ssl_certificate() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bill_handler(data):\n return BillHandler(data)",
"def loan(self):\n self.rent_date = datetime.datetime.now()\n self.back_date = datetime.datetime.now() + datetime.timedelta(14)\n self.book.loan()\n self.book.save()\n self.save()",
"def loan(self):",
"def retrieve(sel... | [
"0.55729043",
"0.55687535",
"0.5416743",
"0.53983057",
"0.53534335",
"0.52980477",
"0.5286762",
"0.52713436",
"0.5263275",
"0.52135104",
"0.51984954",
"0.5191097",
"0.5168025",
"0.5145179",
"0.5141313",
"0.51392555",
"0.5103484",
"0.5100414",
"0.5087762",
"0.5072851",
"0.5068... | 0.6656058 | 0 |
Implementing get bill and audit page title functionality | def get_bill_and_audit_page_title(self):
self.wait().until(EC.presence_of_element_located(self.page_header_locator), 'top logo frame not found before specified time out')
return self.page_title() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_title():",
"def title(self):\n\t\treturn self.page_title",
"def get_title(portobjlist):\n #fetch_title(portobjlist)\n fetch_title(portobjlist)",
"def get_buy_page_title(self):\n self.wait().until(EC.visibility_of_element_located(self.default_tab_header_locator), 'default tab header not f... | [
"0.7213619",
"0.6700313",
"0.6449793",
"0.64113116",
"0.6400861",
"0.6257393",
"0.6239532",
"0.6205559",
"0.6179716",
"0.6137569",
"0.6128179",
"0.6110715",
"0.6094378",
"0.6090499",
"0.60689765",
"0.6064719",
"0.6064719",
"0.6064719",
"0.6058106",
"0.6054972",
"0.5963736",
... | 0.756332 | 0 |
Implementing select outbound statements tab functionality | def select_outbound_statements_tab(self):
self.select_static_tab(self.outbound_statements_tab_locator, 'outbound statements tab not found before specified time out') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def select_inbound_statement_tab(self):\n self.select_static_tab(self.inbound_statement_tab_locator, 'inbound statement static tab not found before specified time out')\n self.wait_for_ajax_spinner_load()",
"def select(self):\n pass",
"def select(self):\n pass",
"def select(self):... | [
"0.60660666",
"0.55247116",
"0.55247116",
"0.5438858",
"0.5435089",
"0.5348868",
"0.53415036",
"0.5303643",
"0.5286614",
"0.52801865",
"0.51507694",
"0.51507694",
"0.51504683",
"0.51449925",
"0.5141086",
"0.5061833",
"0.5038339",
"0.5005011",
"0.49869242",
"0.49504745",
"0.49... | 0.6784523 | 0 |
Implementing set adjustment folder status functionality | def set_adjustment_folder_status(self, adjustment_folder_status_list):
self.multiple_items_selection_from_kendo_dropdown(self.adjustment_folder_status_kendo_dropdown_locator, adjustment_folder_status_list)
self.wait_for_ajax_spinner_load() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def set_adjustment_folder_summary_status(self, status):\n self.single_selection_from_kendo_dropdown(self.adjustment_folder_summary_status_dropdown_locator, status)\n self.wait_for_ajax_spinner_load()",
"def set_directory_status(self, i, status):\n\t\tself.directoryModel.set_value(i, 'directoryStatu... | [
"0.69104934",
"0.63128906",
"0.61027306",
"0.6056899",
"0.5954864",
"0.5818724",
"0.580559",
"0.57185745",
"0.5705483",
"0.5624895",
"0.56159276",
"0.56035835",
"0.55535775",
"0.55211353",
"0.5517089",
"0.5511788",
"0.5491853",
"0.5465924",
"0.5444309",
"0.54255086",
"0.54162... | 0.74593705 | 0 |
Implementing click adjustment folders search button functionality | def click_adjustment_folders_search_button(self):
self.click_element(self.adjustment_folders_search_button_locator, True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def on_dirButton_clicked(self):\n self.__enableFindButton()",
"def _search(self, btn):\n del btn\n if self.txt_search.value:\n found_files: Optional[List[Path]] = None\n while found_files is None:\n try:\n found_files = list(self.curren... | [
"0.75571907",
"0.7219371",
"0.7082197",
"0.697825",
"0.68885523",
"0.66423774",
"0.6511041",
"0.64717466",
"0.6441083",
"0.64305264",
"0.63302135",
"0.62712777",
"0.62404484",
"0.6155505",
"0.61478883",
"0.61357474",
"0.61148095",
"0.60734135",
"0.6067004",
"0.60508376",
"0.6... | 0.77842236 | 0 |
Implementing filter adjustment folders grid functionality | def filter_adjustment_folders_grid(self, column_name, filter_item_text):
self.grid_filter_with_textbox(self.adjustment_folders_grid_div_id, column_name, filter_item_text, self.adjustment_folders_column_position) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _listDirectories(self, filter: str = None) -> None:\n self._addressBar.setText(str(self._currPath))\n self._resetMainFileView()\n fileIco = QIcon(':file_sm')\n folderIco = QIcon(':folder_sm')\n fileCutIco = QIcon(':file_sm_cut')\n folderCutIco = QIcon(':folder_sm_cut')... | [
"0.65022326",
"0.6239393",
"0.6097616",
"0.59412754",
"0.5736128",
"0.5661165",
"0.56504256",
"0.5582577",
"0.54017085",
"0.5383878",
"0.536367",
"0.53017986",
"0.5297554",
"0.5289832",
"0.5283522",
"0.5279814",
"0.5279749",
"0.52678883",
"0.5266724",
"0.52607113",
"0.5229176... | 0.7703864 | 0 |
Implementing adjustment folders grid inline action button functionality | def click_adjustment_folders_grid_inline_action_button(self, adjustment_folder):
self.click_inline_action_button(self.adjustment_folders_grid_div_id, adjustment_folder, self.adjustment_folders_grid_inline_action_column_number) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def filter_adjustment_folders_grid(self, column_name, filter_item_text):\n self.grid_filter_with_textbox(self.adjustment_folders_grid_div_id, column_name, filter_item_text, self.adjustment_folders_column_position)",
"def click_adjustment_folders_search_button(self):\n self.click_element(self.adjust... | [
"0.64230067",
"0.62623745",
"0.6136021",
"0.6089765",
"0.59253913",
"0.5838602",
"0.58100843",
"0.5739519",
"0.5738112",
"0.5718145",
"0.5714849",
"0.5689795",
"0.5684077",
"0.5677362",
"0.55839735",
"0.55532557",
"0.5540912",
"0.547845",
"0.54724276",
"0.5379064",
"0.5358025... | 0.760469 | 0 |
Implementing get adjustment folders calender year functionality | def get_adjustment_folders_calender_year(self):
calender_year_text_element = self.wait().until(EC.visibility_of_element_located(self.calender_year_text_locator), 'calender year text locator not found before specified time out')
return calender_year_text_element.text | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def increment_year(self):",
"def main(request, year=None):\n\tif year: year = int(year)\n\telse: year = time.localtime()[0]\n\n\tnowYear, nowMonth = time.localtime()[:2]\n\tlst = []\n\n\tfor y in [year, year+1, year+2]:\n\t\tmonthLst = []\n\t\tfor n, month in enumerate(MONTH_NAMES):\n\t\t\tentry\t= current = ... | [
"0.64375615",
"0.59714675",
"0.5769382",
"0.5765493",
"0.574911",
"0.57036054",
"0.5677617",
"0.56430316",
"0.5603884",
"0.5591721",
"0.5590079",
"0.55861187",
"0.5569871",
"0.55510247",
"0.55500424",
"0.55500424",
"0.5539679",
"0.55204755",
"0.5506678",
"0.5505846",
"0.54959... | 0.7815985 | 0 |
Implementing click add new adjustment charge button functionality | def click_add_new_adjustment_charge_button(self):
add_new_adjustment_charge_button_element = self.wait().until(EC.element_to_be_clickable(self.add_new_adjustment_charge_button_locator), 'add new adjustment button locator not found before specified time out')
add_new_adjustment_charge_button_element.clic... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def click_add_financial_charges_button(self):\n self.number_of_financial_charges_before_create = self.get_number_of_financial_charges_in_the_grid()\n self.click_element(self.add_financial_charges_button_locator, hover=True)",
"def click_add_new_adjustment_statement_button(self):\n self.numbe... | [
"0.72206694",
"0.69978",
"0.6333745",
"0.6177949",
"0.602188",
"0.5946151",
"0.591301",
"0.58476466",
"0.58174556",
"0.5803122",
"0.5801654",
"0.57631314",
"0.57355344",
"0.5666387",
"0.56182486",
"0.56158435",
"0.56088483",
"0.55982196",
"0.55964726",
"0.55907685",
"0.555365... | 0.7426959 | 0 |
Implementing set charges grid adjustment statement functionality | def set_charges_grid_adjustment_statement(self, adjustment_statement):
last_pager_nav_element = self.wait().until(EC.presence_of_element_located(self.last_pager_nav_locator), 'last pager nav locator not found before specified time out')
self.hover(last_pager_nav_element)
column_locator = (By.XPA... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def change_entries(self, grid_sizer, options, border):\n\n if (self.diag_type is None): return grid_sizer # no data selected, don't change anything\n\n # setup the grid of possible values\n header0 = wx.StaticText(self, -1, \"Add/Remove\")\n header1 = wx.StaticText(self, -1, \"Quantity ... | [
"0.5637726",
"0.5554799",
"0.53738403",
"0.5345161",
"0.53148824",
"0.53077227",
"0.5247927",
"0.52182555",
"0.514383",
"0.51416236",
"0.51347536",
"0.51341534",
"0.51205707",
"0.5114996",
"0.5105526",
"0.50777876",
"0.5061601",
"0.5043068",
"0.50381786",
"0.50200045",
"0.501... | 0.68231565 | 0 |
Implementing set charge begin date functionality | def set_charge_begin_date(self, charge_begin_date, first_day_of_last_month):
self.current_charge_begin_date = charge_begin_date
if first_day_of_last_month is True:
if charge_begin_date == "":
self.first_day_of_previous_month = self.get_date(first_day_of_last_month=True)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def set_adjustment_charge_begin_date(self, begin_date):\n self.set_value_into_input_field(self.adjustment_begin_date_locator, begin_date)",
"def set_billing_cycle_begin_date(self, begin_date):\n if begin_date == \"\":\n current_date = datetime.date.today()\n begin_date = curre... | [
"0.7775646",
"0.71310395",
"0.68267864",
"0.6812891",
"0.6606569",
"0.65916854",
"0.65188354",
"0.6506232",
"0.6379788",
"0.6321872",
"0.6275265",
"0.6249596",
"0.6161748",
"0.6161748",
"0.6161748",
"0.6161748",
"0.6161748",
"0.6161748",
"0.6161748",
"0.6161748",
"0.6161748",... | 0.7835226 | 0 |
Implementing set charge end date functionality | def set_charge_end_date(self, charge_end_date, last_day_of_last_month):
if last_day_of_last_month is None:
if charge_end_date == "":
new_date = str(self.current_charge_begin_date + datetime.timedelta(days=1))
charge_end_date = new_date
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def set_adjustment_charge_end_date(self, end_date):\n self.set_value_into_input_field(self.end_date_locator, end_date)",
"def set_end_date(self, date):\n pass",
"def set_non_recurring_charge_end_date(self, end_date):\n if end_date is None:\n statement_summary_end_date_element = ... | [
"0.78971744",
"0.7289624",
"0.71396214",
"0.6896446",
"0.67914647",
"0.65741384",
"0.65741384",
"0.65741384",
"0.65741384",
"0.65741384",
"0.65741384",
"0.65741384",
"0.65741384",
"0.6457985",
"0.6454728",
"0.6450526",
"0.6395009",
"0.62367046",
"0.6231626",
"0.6194274",
"0.6... | 0.78049797 | 1 |
Implementing set charges grid charge name functionality | def set_charges_grid_charge_name(self, charges_name_prefix):
global charge_name
if charges_name_prefix is None:
charge_name = self.random_string_generator()
else:
charge_name = charges_name_prefix + self.random_string_generator(6)
self.set_value_in_grid_column(sel... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_created_charge_name(self):\n global charge_name\n return charge_name",
"def setCharge(self, *args):\n return _libsbml.FbcSpeciesPlugin_setCharge(self, *args)",
"def setCharge(self, *args):\n return _libsbml.Species_setCharge(self, *args)",
"def set_received_charges_grid_pr... | [
"0.6110582",
"0.5944867",
"0.58004516",
"0.57468796",
"0.5655388",
"0.56322116",
"0.55258715",
"0.55232567",
"0.5500111",
"0.54932255",
"0.54523367",
"0.5438269",
"0.5417673",
"0.54021204",
"0.5394817",
"0.5373642",
"0.5367398",
"0.53541857",
"0.5310243",
"0.52964854",
"0.529... | 0.78400284 | 0 |
Implementing set charges grid currency functionality | def set_charges_grid_currency(self, currency):
column_locator = (By.XPATH, "//div[contains(@id, '%s')]/descendant::th[@data-title='Currency']" % self.charges_grid_div_id)
column_element = self.wait().until(EC.presence_of_element_located(column_locator), 'column locator not found before specified time ou... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getActiveCurrency():",
"def set_adjustment_charge_currency(self, currency):\n self.single_selection_from_kendo_dropdown(self.currency_kendo_dropdown_locator, currency)",
"def getActiveCurrencies():",
"def getCurrencies():",
"def __init__(self, currency, display_currency):\n self.currency ... | [
"0.6653966",
"0.65616924",
"0.624172",
"0.62022924",
"0.6039979",
"0.59074444",
"0.581823",
"0.5806273",
"0.5795464",
"0.5678505",
"0.5676183",
"0.567544",
"0.56671643",
"0.5665524",
"0.5655097",
"0.56363523",
"0.5634994",
"0.56299996",
"0.5620189",
"0.55944836",
"0.5567074",... | 0.72404385 | 0 |
Implementing set charges grid amount functionality | def set_charges_grid_amount(self, amount):
self.set_value_in_grid_column(self.charges_grid_div_id, self.amount_column_name, amount, True)
page_header_element = self.wait().until(EC.element_to_be_clickable(self.page_header_locator), 'page header locator not found before specified time out')
page_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def set_charges_grid_currency(self, currency):\n column_locator = (By.XPATH, \"//div[contains(@id, '%s')]/descendant::th[@data-title='Currency']\" % self.charges_grid_div_id)\n column_element = self.wait().until(EC.presence_of_element_located(column_locator), 'column locator not found before specifie... | [
"0.6157139",
"0.6132021",
"0.60752887",
"0.57619524",
"0.5677072",
"0.5657033",
"0.5636215",
"0.55774593",
"0.55454075",
"0.5504536",
"0.54902214",
"0.5473803",
"0.5457411",
"0.5450524",
"0.5440196",
"0.5422978",
"0.5389675",
"0.5389454",
"0.53856105",
"0.53761977",
"0.536133... | 0.6805223 | 0 |
Implementing click charges tab save changes button functionality | def click_charges_tab_save_changes_button(self):
charges_tab_save_changes_button_element = self.wait().until(EC.element_to_be_clickable(self.charges_tab_save_changes_button_locator), 'save changes button locator nor found before specified time out')
charges_tab_save_changes_button_element.click()
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def on_save_button_clicked(self, widget):\n active_page = self.get_active_tab()\n active_page.save()",
"def save_edit(self):\r\n self.driver.find_element_by_xpath('//*[@id=\"vnos\"]/span[1]/div/a').click()",
"def save(self):\n self.click(\".action-save\")\n self.page.wait_for... | [
"0.71406794",
"0.63815343",
"0.6165843",
"0.6123699",
"0.60240895",
"0.6002953",
"0.599021",
"0.5989166",
"0.5921353",
"0.59178394",
"0.5906618",
"0.5797371",
"0.5783159",
"0.5744669",
"0.57414085",
"0.57196337",
"0.5717715",
"0.5702915",
"0.5697138",
"0.56937855",
"0.5692243... | 0.7091326 | 1 |
Implementing select charges grid row checkbox functionality | def select_charges_grid_row_checkbox(self, charge_name):
self.select_grid_row_checkbox(self.charges_grid_div_id, charge_name, self.charges_grid_checkbox_column_number) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def select_received_charges_grid_row_checkbox(self, row_identifier_text):\n self.select_grid_row_checkbox(self.received_charges_grid_div_id, row_identifier_text, self.received_charges_grid_checkbox_column_number)",
"def select_non_traffic_charges_grid_row_checkbox(self, row_identifier_text):\n self... | [
"0.72243434",
"0.71428746",
"0.6869594",
"0.6746968",
"0.6627713",
"0.65972793",
"0.6547293",
"0.6386098",
"0.63311523",
"0.6306386",
"0.62536246",
"0.60913736",
"0.60745716",
"0.60369194",
"0.6000517",
"0.5884311",
"0.5818072",
"0.58153516",
"0.579526",
"0.5723331",
"0.57186... | 0.79712445 | 0 |
Implementing filter charges grid functionality | def filter_charges_grid(self, column_name, filter_item_text):
self.grid_filter_with_textbox(self.charges_grid_div_id, column_name, filter_item_text, self.adjustment_folders_column_position) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def filter_non_traffic_charges_grid(self, column_name, filter_item_text):\n self.grid_filter_with_textbox(self.non_traffic_charges_grid_div_id, column_name, filter_item_text)",
"def _filter(self, __button):\r\n# WARNING: Refactor _filter; current McCabe Complexity metric = 54.\r\n _criteria = []\r\... | [
"0.67400104",
"0.6441959",
"0.6133981",
"0.6059234",
"0.57642055",
"0.57500577",
"0.56939757",
"0.5633308",
"0.5592296",
"0.55589074",
"0.55584526",
"0.5486629",
"0.5484159",
"0.54830927",
"0.5463174",
"0.5445796",
"0.54457444",
"0.5419326",
"0.53939223",
"0.53807104",
"0.537... | 0.68158454 | 0 |
Implementing click remove from this adjustment folder button functionality | def click_remove_from_this_adjustment_folder_button(self, with_checkbox_selection):
remove_from_this_adjustment_folder_button_element = self.wait().until(EC.element_to_be_clickable(self.remove_from_this_adjustment_folder_button_locator), 'remove from this adjustment folder button locator not found before specif... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def on_button_remove_clicked(self, button):\n\t\tselection = self.directoryList.get_selection()\n\t\tmodel, selected = selection.get_selected()\n\t\thasSelection = selected is not None\n\t\tif hasSelection:\n\t\t\tpath = model.get_path(selected)\n\t\t\tiRow = path[0]\n\t\t\tself.directoryModel.remove(model.get_ite... | [
"0.67685324",
"0.64732754",
"0.63556516",
"0.62484396",
"0.62120706",
"0.62120706",
"0.62120706",
"0.62120706",
"0.6198871",
"0.61539656",
"0.61181366",
"0.60484964",
"0.60343367",
"0.6008308",
"0.59877306",
"0.5970147",
"0.5970147",
"0.59518975",
"0.5935253",
"0.5920704",
"0... | 0.6536266 | 1 |
Implementing select bill and audit module grid inline item | def select_bill_and_audit_module_grid_inline_item(self, item_name):
self.select_inline_action_item(item_name, module_name = self.bill_audit_module_name)
self.wait_for_ajax_spinner_load() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def select(self,item):\r\n pass",
"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.it... | [
"0.5824023",
"0.5636937",
"0.55186784",
"0.54466224",
"0.53917277",
"0.53662866",
"0.53424925",
"0.5320658",
"0.5299002",
"0.5276588",
"0.52559924",
"0.52162945",
"0.51678365",
"0.5165269",
"0.512658",
"0.5123428",
"0.51113635",
"0.51090974",
"0.5087094",
"0.5084258",
"0.5074... | 0.7159169 | 0 |
Implementing set adjustment folder bill account functionality | def set_adjustment_folder_bill_account(self, bill_account_list):
self.multiple_items_selection_from_kendo_dropdown(self.adjustment_folder_bill_account_kendo_dropdown_locator, bill_account_list)
self.wait_for_ajax_spinner_load()
page_header_element = self.wait().until(EC.element_to_be_clickable(s... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def set_assign_adjustment_charge_folder_name(self, folder_name_prefix):\n adjustment_folder_name = folder_name_prefix + self.random_string_generator(6)\n self.set_value_into_input_field(self.adjustment_folder_name_locator, adjustment_folder_name)\n return adjustment_folder_name",
"def set_mo... | [
"0.597684",
"0.5945298",
"0.5930082",
"0.5707624",
"0.568383",
"0.563775",
"0.5632639",
"0.54999226",
"0.5487748",
"0.54459953",
"0.5434208",
"0.5396994",
"0.53949326",
"0.53739667",
"0.53028244",
"0.53028244",
"0.53028244",
"0.53028244",
"0.5233601",
"0.5218458",
"0.5210295"... | 0.7552892 | 0 |
Implementing select add disputes grid row checkbox functionality | def select_add_disputes_grid_row_checkbox(self, list_of_audit_account):
self.select_grid_row_checkbox(self.add_disputes_grid_div_id, list_of_audit_account, self.add_disputes_grid_checkbox_column_number)
self.wait_for_ajax_spinner_load() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def select_disputes_grid_row_checkbox(self, statement_number):\n self.select_grid_row_checkbox(self.disputes_grid_div_id, statement_number, self.disputes_grid_checkbox_column_number)\n self.wait_for_ajax_spinner_load()",
"def select_non_traffic_charges_grid_row_checkbox(self, row_identifier_text):\... | [
"0.65229136",
"0.6096998",
"0.6016652",
"0.59556",
"0.593769",
"0.59121555",
"0.5905893",
"0.58953476",
"0.5877122",
"0.5872971",
"0.57922643",
"0.5772262",
"0.57360727",
"0.5638869",
"0.5638869",
"0.55661726",
"0.5562756",
"0.55509293",
"0.55481935",
"0.55420834",
"0.5534586... | 0.7118463 | 0 |
Implementing click add dispute save button functionality | def click_add_dispute_save_button(self):
add_dispute_save_button_element = self.wait().until(EC.element_to_be_clickable(self.add_disputes_save_button_locator), 'add dispute save button locator not found before specified time out')
add_dispute_save_button_element.click()
self.wait_for_ajax_spinne... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def onSaveNotesButton(self, button):\n pass",
"def save(self, *args, **kwargs):\n return",
"def save():\n pass",
"def save():",
"def save(self, *args, **kwargs):\n pass",
"def on_press_save(self):\n\n if self.dbChk.isChecked():\n self.processed_fields['db'] =... | [
"0.7116064",
"0.6840242",
"0.68197334",
"0.67815375",
"0.674838",
"0.666761",
"0.6658823",
"0.6619961",
"0.6609483",
"0.6609483",
"0.6609483",
"0.6609483",
"0.6609483",
"0.6598788",
"0.6594995",
"0.65716493",
"0.6530334",
"0.65277696",
"0.64921623",
"0.64904267",
"0.64904267"... | 0.7013125 | 1 |
Implementing click remove dispute button without selection functionality | def click_remove_dispute_button_without_selection(self):
remove_dispute_button_element = self.wait().until(EC.element_to_be_clickable(self.remove_dispute_button_locator), 'remove dispute button locator not found before specified time out')
remove_dispute_button_element.click()
self.wait_for_ajax... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def click_remove_dispute_button(self):\n remove_dispute_button_element = self.wait().until(EC.element_to_be_clickable(self.remove_dispute_button_locator), 'remove dispute button locator not found before specified time out')\n remove_dispute_button_element.click()\n self.wait_for_ajax_spinner_l... | [
"0.6657696",
"0.6654077",
"0.6654077",
"0.6654077",
"0.6654077",
"0.6521922",
"0.6515518",
"0.6493654",
"0.64638186",
"0.6461189",
"0.6438204",
"0.6353884",
"0.6342992",
"0.63188326",
"0.63037264",
"0.62974113",
"0.62597406",
"0.62233996",
"0.62135214",
"0.6212016",
"0.620262... | 0.710231 | 0 |
Implementing set charges grid accounting code functionality | def set_charges_grid_accounting_code(self, accounting_code):
column_locator = (By.XPATH, "//div[contains(@id, '%s')]/descendant::th[@data-title='Accounting Code']" % self.charges_grid_div_id)
column_element = self.wait().until(EC.presence_of_element_located(column_locator), 'column locator not found bef... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pre_approve(self, cr, uid, ids, context={}):\n \tfor voucher in self.browse(cr, uid, ids, context=context):\n \t if not voucher.department_id.analytic_account_id:\n \t raise osv.except_osv(_('Configration Check!'), _(\"Please add cost center for your department!\"))\n \t periods = sel... | [
"0.5869853",
"0.584081",
"0.5724807",
"0.5680163",
"0.5594196",
"0.5580146",
"0.5517206",
"0.5483462",
"0.5456166",
"0.54215044",
"0.5403678",
"0.53983545",
"0.531583",
"0.52972645",
"0.5280273",
"0.5266938",
"0.5266861",
"0.52606404",
"0.52431566",
"0.5238913",
"0.52186364",... | 0.59049773 | 0 |
Implementing select disputes grid row checkbox functionality | def select_disputes_grid_row_checkbox(self, statement_number):
self.select_grid_row_checkbox(self.disputes_grid_div_id, statement_number, self.disputes_grid_checkbox_column_number)
self.wait_for_ajax_spinner_load() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def select_add_disputes_grid_row_checkbox(self, list_of_audit_account):\n self.select_grid_row_checkbox(self.add_disputes_grid_div_id, list_of_audit_account, self.add_disputes_grid_checkbox_column_number)\n self.wait_for_ajax_spinner_load()",
"def select_non_traffic_charges_grid_row_checkbox(self, ... | [
"0.68662935",
"0.66455877",
"0.6543695",
"0.6463457",
"0.6463457",
"0.64425874",
"0.6372301",
"0.6332883",
"0.6212969",
"0.6164585",
"0.6090013",
"0.6086594",
"0.6064148",
"0.60318875",
"0.60318875",
"0.5985312",
"0.5985312",
"0.5974117",
"0.59693635",
"0.5950639",
"0.5916988... | 0.7107861 | 0 |
Implementing click remove dispute button functionality | def click_remove_dispute_button(self):
remove_dispute_button_element = self.wait().until(EC.element_to_be_clickable(self.remove_dispute_button_locator), 'remove dispute button locator not found before specified time out')
remove_dispute_button_element.click()
self.wait_for_ajax_spinner_load()
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Remove(self, event):\n pass",
"def remove(self):",
"def click_remove_dispute_button_without_selection(self):\n remove_dispute_button_element = self.wait().until(EC.element_to_be_clickable(self.remove_dispute_button_locator), 'remove dispute button locator not found before specified time out')\n... | [
"0.709659",
"0.70032454",
"0.69180864",
"0.6802369",
"0.6802369",
"0.6802369",
"0.6802369",
"0.67978185",
"0.67978185",
"0.6770339",
"0.67579675",
"0.66521215",
"0.66038305",
"0.65933764",
"0.6582014",
"0.6560177",
"0.6461096",
"0.6438457",
"0.64209247",
"0.64209247",
"0.6420... | 0.7125291 | 0 |
Implementing set add dispute statement number functionality | def set_add_dispute_statement_number(self, statement_number):
self.single_selection_from_kendo_dropdown(self.add_dispute_statement_number_kendo_dropdown_locator, statement_number)
self.wait_for_ajax_spinner_load() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def add_phrase(self, n, num):\n raise NotImplementedError()",
"def set_statement_number(self):\n statement_number = self.random_string_generator(5, string.digits)\n self.set_value_into_input_field(self.statement_number_textbox_locator, statement_number)\n statement_number_label_locato... | [
"0.5621731",
"0.54754454",
"0.5301816",
"0.53011155",
"0.52684844",
"0.52439064",
"0.5236957",
"0.5180982",
"0.51708823",
"0.51599705",
"0.51316786",
"0.5113159",
"0.5082582",
"0.50676024",
"0.50505733",
"0.50421715",
"0.502502",
"0.5004095",
"0.50038207",
"0.49963808",
"0.49... | 0.62043005 | 0 |
Implementing set add dispute status functionality | def set_add_dispute_status(self, status):
self.single_selection_from_kendo_dropdown(self.add_dispute_status_kendo_dropdown_locator, status)
self.wait_for_ajax_spinner_load() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def test_extra_status(self):\n\n def handle(event):\n status = Dataset()\n status.Status = 0xFFF0\n status.ErrorComment = \"Some comment\"\n status.ErrorID = 12\n status.AttributeIdentifierList = [0x00100010]\n return status, event.modificati... | [
"0.6536704",
"0.62177616",
"0.616151",
"0.6145331",
"0.6111715",
"0.60196894",
"0.599394",
"0.5843522",
"0.58110875",
"0.57579637",
"0.570022",
"0.56577045",
"0.5656",
"0.5649543",
"0.5629966",
"0.5579632",
"0.556448",
"0.556448",
"0.5556612",
"0.5556612",
"0.5556612",
"0.5... | 0.67580354 | 0 |
Implementing set add dispute line item group functionality | def set_add_dispute_line_item_group(self, line_item_group):
self.set_value_into_input_field(self.add_dispute_line_item_group_textbox_locator, line_item_group) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def add_to_group(self,item):\n self.items.append(item)\n self.n += 1",
"def addToGroup(self, frontorback, drawing, svggroup, **extra): \r\n super(byA_FB_SideLine, self).addToGroup(drawing, svggroup, **extra)",
"def add_group(self):\n items = self.group_list.selectedItems()\n ... | [
"0.62857515",
"0.6257482",
"0.60679555",
"0.5995328",
"0.59880847",
"0.58140665",
"0.5734644",
"0.5728333",
"0.57075423",
"0.56892896",
"0.56300515",
"0.56300515",
"0.5619995",
"0.5578022",
"0.55522406",
"0.54649556",
"0.5415932",
"0.5415932",
"0.5415932",
"0.54140973",
"0.54... | 0.7551234 | 0 |
Implementing set add dispute date functionality | def set_add_dispute_date(self, date):
self.set_value_into_input_field(self.add_dispute_date_inputbox_locator, date) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def setDate(self, p_int, p_int_1, p_int_2): # real signature unknown; restored from __doc__\r\n return False",
"def add_date(self, new_date):\r\n if self.__dates == \"\":\r\n self.__dates = new_date\r\n else:\r\n self.__dates += \", \" + new_date",
"def i_see_the_set_... | [
"0.6533917",
"0.6526369",
"0.6359394",
"0.6357124",
"0.6220901",
"0.6220901",
"0.6202787",
"0.61917514",
"0.6074315",
"0.60534537",
"0.6050955",
"0.6035388",
"0.5976766",
"0.5946588",
"0.5941112",
"0.59268343",
"0.591247",
"0.59095645",
"0.5905117",
"0.58626115",
"0.5847663",... | 0.70891905 | 0 |
Implementing click add disputes search button | def click_add_disputes_search_button(self):
self.click_element(self.disputes_search_button_locator, True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def on_searchButton_clicked(self):\n self.__search()",
"def question_new_search():",
"def search_btn_clicked(self, widget, data=None):\n # Method to handle search here.\n search_text = self.get_text(\"txt_search\")\n print search_text",
"def click_search_button(self):\n sel... | [
"0.7165346",
"0.6703895",
"0.6302158",
"0.62527674",
"0.6212298",
"0.61965495",
"0.61226296",
"0.6122368",
"0.6004386",
"0.5979314",
"0.5937879",
"0.59079665",
"0.588774",
"0.587796",
"0.5800873",
"0.5799101",
"0.57892585",
"0.57811254",
"0.5732637",
"0.57189286",
"0.5710429"... | 0.82374114 | 0 |
Implementing get add disputes grid row details | def get_add_disputes_grid_row_details(self):
self.grid_row_details_dictionary.clear()
self.grid_row_details_dictionary.update({"Statement Begin Date": "", "Statement End Date": "", "Statement Number": "", "Dispute Type": "", "Dispute Amount": "", "Status": ""})
return self.get_grid_row_details(s... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_disputes_grid_row_details(self):\n self.grid_row_details_dictionary.clear()\n self.grid_row_details_dictionary.update({\"Statement Begin Date\": \"\", \"Statement End Date\": \"\", \"Statement Number\": \"\", \"Dispute Type\": \"\", \"Dispute Amount\": \"\", \"Status\": \"\"})\n return... | [
"0.7100359",
"0.64104354",
"0.6326877",
"0.62403715",
"0.6137207",
"0.6124967",
"0.6050077",
"0.5942492",
"0.5884187",
"0.58280987",
"0.5786986",
"0.5618762",
"0.55629176",
"0.55608267",
"0.5538104",
"0.55350727",
"0.5525112",
"0.5516067",
"0.5498857",
"0.5439171",
"0.5410988... | 0.78737074 | 0 |
Implementing get disputes grid row details | def get_disputes_grid_row_details(self):
self.grid_row_details_dictionary.clear()
self.grid_row_details_dictionary.update({"Statement Begin Date": "", "Statement End Date": "", "Statement Number": "", "Dispute Type": "", "Dispute Amount": "", "Status": ""})
return self.get_grid_row_details(self.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_add_disputes_grid_row_details(self):\n self.grid_row_details_dictionary.clear()\n self.grid_row_details_dictionary.update({\"Statement Begin Date\": \"\", \"Statement End Date\": \"\", \"Statement Number\": \"\", \"Dispute Type\": \"\", \"Dispute Amount\": \"\", \"Status\": \"\"})\n re... | [
"0.72145176",
"0.64231294",
"0.6327242",
"0.63219947",
"0.628242",
"0.61235917",
"0.6056758",
"0.589873",
"0.5867943",
"0.58635527",
"0.5862147",
"0.5861593",
"0.5830067",
"0.5768651",
"0.57649064",
"0.575984",
"0.571998",
"0.57119626",
"0.5711425",
"0.57106596",
"0.57106596"... | 0.766466 | 0 |
Implementing set move charges adjustment folder name functionality | def set_move_charges_adjustment_folder_name(self, adjustment_folder_name):
self.single_selection_from_kendo_dropdown(self.move_charges_adjustment_folder_kendo_dropdown_locator, adjustment_folder_name)
self.wait_for_ajax_spinner_load() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def set_assign_adjustment_charge_folder_name(self, folder_name_prefix):\n adjustment_folder_name = folder_name_prefix + self.random_string_generator(6)\n self.set_value_into_input_field(self.adjustment_folder_name_locator, adjustment_folder_name)\n return adjustment_folder_name",
"def set_ad... | [
"0.68042296",
"0.622224",
"0.5993317",
"0.5635738",
"0.5597009",
"0.55707085",
"0.55051196",
"0.5504334",
"0.5501874",
"0.54917705",
"0.5449198",
"0.53719336",
"0.530526",
"0.5296996",
"0.5290479",
"0.52823246",
"0.5264641",
"0.5225786",
"0.5224531",
"0.5215428",
"0.5166707",... | 0.7647386 | 0 |
Implementing move to adjustment folder save button functionality | def click_move_to_adjustment_folder_save_button(self):
move_to_adjustment_folder_save_button_element = self.wait().until(EC.element_to_be_clickable(self.move_to_adjustment_folder_save_button_locator), 'move to adjustment folder save button locator not found before specified time out')
move_to_adjustment... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def onSave(self):\r\n # productive #onButton\r\n profprint()\r\n\r\n self.dirDialog = qt.QFileDialog(self.parent)\r\n self.dirDialog.setDirectory(slicer.modules.needlefinder.path.replace(\"NeedleFinder.py\", \"Config\"))\r\n self.dirDialog.options = self.dirDialog.DontUseNativeDialog\r\n self.dir... | [
"0.6863806",
"0.6675077",
"0.64829606",
"0.6462525",
"0.6462187",
"0.6459759",
"0.6394018",
"0.63839257",
"0.6381253",
"0.6371337",
"0.6358478",
"0.63290155",
"0.62961054",
"0.6231332",
"0.6168839",
"0.6122622",
"0.61213696",
"0.6107143",
"0.6107094",
"0.60967374",
"0.6042546... | 0.71776026 | 0 |
Implementing get charges grid row details functionality | def get_charges_grid_row_details(self):
self.grid_row_details_dictionary.clear()
self.grid_row_details_dictionary.update({"Charge Begin Date": "", "Charge End Date": "", "Statement Number": "", "Rate Type": "", "Rating Quantity": "", "Adjustment Statement": ""})
return self.get_grid_row_details(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_received_charges_grid_row_details(self):\n self.grid_row_details_dictionary.clear()\n self.grid_row_details_dictionary.update({\"Tariff Type\": \"\", \"Line Item Type\": \"\", \"Service Group\": \"\", \"Product\": \"\", \"Time Band\": \"\", \"Begin Date\": \"\", \"End Date\": \"\", \"Rating U... | [
"0.7771338",
"0.7099277",
"0.68709874",
"0.6838843",
"0.6530543",
"0.6367523",
"0.63117325",
"0.61307544",
"0.60889727",
"0.60567814",
"0.5947911",
"0.59373903",
"0.59047204",
"0.5889779",
"0.588449",
"0.5839049",
"0.5812618",
"0.5809757",
"0.5760419",
"0.56985277",
"0.568574... | 0.8071276 | 0 |
Implementing set audit account for search functionality | def set_audit_account_for_search(self, audit_account_list):
self.multiple_items_selection_from_kendo_dropdown(self.audit_account_dropdown_locator, audit_account_list)
self.wait_for_ajax_spinner_load() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def accounts():",
"def set_audit_account(self, audit_account):\n self.single_selection_from_kendo_dropdown(self.statement_entry_audit_account_locator, audit_account)\n self.wait_for_ajax_spinner_load()",
"def get_audit(self, query, session):\n raise NotImplementedError()",
"def accounts(... | [
"0.63850504",
"0.6232056",
"0.60183626",
"0.5785082",
"0.574671",
"0.5735427",
"0.5732281",
"0.5728574",
"0.5646326",
"0.56419325",
"0.5563496",
"0.5545569",
"0.55257845",
"0.5501971",
"0.54729694",
"0.5467726",
"0.5376978",
"0.53319514",
"0.5304892",
"0.5302626",
"0.52892464... | 0.7136656 | 0 |
Implementing set statement status for search functionality | def set_statement_status_for_search(self, status_list):
self.multiple_items_selection_from_kendo_dropdown(self.statement_status_dropdown_locator, status_list)
self.wait_for_ajax_spinner_load() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def set_statement_summary_status(self, status):\n self.single_selection_from_kendo_dropdown(self.statement_summary_status_kendo_dropdown_locator, status)",
"def _run_query(self):",
"def query(self, query):",
"async def _update_stmt(self):\n raise NotImplementedError",
"def updatestatus(self):... | [
"0.5735973",
"0.5660925",
"0.562658",
"0.56227005",
"0.5622643",
"0.56222457",
"0.5599707",
"0.55944574",
"0.55524284",
"0.55129296",
"0.54785764",
"0.54676175",
"0.5424586",
"0.5399203",
"0.5379241",
"0.5356234",
"0.53536344",
"0.5312635",
"0.53021127",
"0.52649415",
"0.5243... | 0.71340823 | 0 |
Implementing click inbound statement search button functionality | def click_inbound_statement_search_button(self):
self.click_element(self.page_header_locator)
self.click_element(self.inbound_statement_search_button_locator, True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def on_searchButton_clicked(self):\n self.__search()",
"def search(self, *args, **kwargs):",
"def click_outbound_statement_search_button(self):\n self.click_element(self.page_header_locator)\n self.click_element(self.outbound_statement_search_button_locator, True)",
"def search_btn_click... | [
"0.74338734",
"0.70463276",
"0.70461416",
"0.70419794",
"0.6802466",
"0.67856216",
"0.67526937",
"0.6752687",
"0.66266453",
"0.65953493",
"0.6591399",
"0.6477613",
"0.6440128",
"0.64360917",
"0.64002144",
"0.6288302",
"0.6262703",
"0.62625295",
"0.62542075",
"0.62220013",
"0.... | 0.7549782 | 0 |
Implementing click create new statement button functionality | def click_create_new_statement_button(self):
self.click_element(self.create_new_statement_button_locator) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def goto_create(self):\n\n self.create.click()",
"def click_add_new_record_button(self):\n self.click_element(self.add_new_record_button_locator, True)",
"def help_create(self):\n print(CREATE)",
"def create(self):",
"def add_button_clicked(self, obj):\n note = Note()\n i... | [
"0.6607665",
"0.649642",
"0.5992062",
"0.5970681",
"0.5938759",
"0.5937",
"0.5895659",
"0.5892256",
"0.58692837",
"0.58493507",
"0.5825509",
"0.5751803",
"0.574144",
"0.5647383",
"0.5647383",
"0.5647383",
"0.5636528",
"0.56289417",
"0.5626762",
"0.56192243",
"0.56144774",
"... | 0.8458151 | 0 |
Implementing set audit account functionality | def set_audit_account(self, audit_account):
self.single_selection_from_kendo_dropdown(self.statement_entry_audit_account_locator, audit_account)
self.wait_for_ajax_spinner_load() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def accounts():",
"def onAccountUpdate(self, data):\n pass",
"def put_account(self, account):\n \n pass",
"def account(self, account):\n\n self._account = account",
"def account(self, account):\n\n self._account = account",
"def account(self, account):\n\n self._... | [
"0.62381625",
"0.6056934",
"0.5990843",
"0.59456915",
"0.59456915",
"0.59456915",
"0.59456915",
"0.5905157",
"0.58786064",
"0.58773965",
"0.58733356",
"0.5871299",
"0.58245385",
"0.58245385",
"0.5785575",
"0.57792443",
"0.5724164",
"0.56847525",
"0.56663847",
"0.5616151",
"0.... | 0.7412054 | 0 |
Implementing set statement number functionality | def set_statement_number(self):
statement_number = self.random_string_generator(5, string.digits)
self.set_value_into_input_field(self.statement_number_textbox_locator, statement_number)
statement_number_label_locator = (By.XPATH, "//label[text()='Statement Number']")
self.click_element(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def setInteger(self, value):",
"def setInteger(self, value):",
"def set_num(self, num):\n self.cmd_num = num",
"def setS1(self, num):\n self.space1 = num",
"def setS5(self, num):\n self.space5 = num",
"def set_number(self, num, row, col, where=\"\"):\n print(where, num, \"(\", row, \"... | [
"0.6568123",
"0.6568123",
"0.6504",
"0.64380133",
"0.6264694",
"0.6188131",
"0.6183026",
"0.61497915",
"0.61290085",
"0.6110826",
"0.6092399",
"0.5955407",
"0.5930249",
"0.5923435",
"0.585491",
"0.5823838",
"0.5822653",
"0.58174956",
"0.5740077",
"0.5629751",
"0.56272775",
... | 0.7161792 | 0 |
Implementing set statement currency functionality | def set_statement_currency(self, currency):
self.single_selection_from_kendo_dropdown(self.statement_currency_dropdown_locator, currency)
self.wait_for_ajax_spinner_load() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getActiveCurrency():",
"async def currency(self, ctx, currency: str):\n await self.bot.di.set_currency(ctx.guild, currency)\n await ctx.send(await _(ctx, \"Currency successfully set!\"))",
"def getDefaultCurrency():",
"def updateCurrency(self, currency: str, value: str) -> None:\n\n ... | [
"0.67907053",
"0.659178",
"0.6540681",
"0.6503393",
"0.6489147",
"0.6442384",
"0.64067197",
"0.63661695",
"0.6304202",
"0.62534773",
"0.6226712",
"0.6226295",
"0.6226295",
"0.6226295",
"0.6226295",
"0.62169313",
"0.614457",
"0.60906637",
"0.6064824",
"0.6050848",
"0.6040605",... | 0.7066854 | 0 |
Implementing set statement begin date functionality | def set_statement_begin_date(self, begin_date):
begin_date_to_set = None
if begin_date != "":
begin_date_to_set = begin_date
else:
self.first_day_of_previous_month = self.get_date(first_day_of_last_month=True)
begin_date_to_set = self.first_day_of_previous_mon... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def set_begin_date(self, begin_date):\n self.set_value_into_input_field(self.begin_date_inputbox_locator, begin_date)",
"def set_start_date(self, date):\n pass",
"def setDate(self, p_int, p_int_1, p_int_2): # real signature unknown; restored from __doc__\r\n return False",
"def set_bulk_... | [
"0.6812093",
"0.68011427",
"0.6508048",
"0.6470988",
"0.6461329",
"0.6454759",
"0.6392083",
"0.6266633",
"0.6157886",
"0.6141047",
"0.612254",
"0.61199933",
"0.60168374",
"0.59675276",
"0.5945221",
"0.59315956",
"0.5868807",
"0.5868807",
"0.5868807",
"0.5868807",
"0.5868807",... | 0.7533665 | 0 |
Implementing set statement end date functionality | def set_statement_end_date(self, end_date):
end_date_to_set = None
if end_date != "":
end_date_to_set = end_date
else:
end_date_to_set = self.get_date(last_day_of_last_month=True)
self.set_value_into_input_field(self.statement_end_date_locator, end_date_to_set)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def set_end_date(self, date):\n pass",
"def change_end_date(self, new_end_date):\n self.end_date = new_end_date",
"def end_date(self, end_date):\n self._end_date = end_date",
"def end_date(self, end_date):\n\n self._end_date = end_date",
"def end_date(self, end_date):\n\n ... | [
"0.77008677",
"0.70724815",
"0.6983172",
"0.67207986",
"0.67207986",
"0.67207986",
"0.67207986",
"0.67207986",
"0.67207986",
"0.67207986",
"0.67207986",
"0.662445",
"0.65929776",
"0.6581551",
"0.654886",
"0.6439254",
"0.6435862",
"0.6405534",
"0.64038366",
"0.63828087",
"0.62... | 0.7765207 | 0 |
Implementing set statement issued date functionality | def set_statement_issued_date(self, issued_date):
if issued_date != "":
issued_date_to_set = issued_date
else:
self.first_day_of_current_month = self.get_date(first_day_of_current_month=True)
issued_date_to_set = self.first_day_of_current_month
self.set_value_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def setDate(self, p_int, p_int_1, p_int_2): # real signature unknown; restored from __doc__\r\n return False",
"def set_issued(self, dt):\n self.issued = dt_to_iso(dt)",
"def svn_client_commit_info_t_date_set(svn_client_commit_info_t_self, char_date): # real signature unknown; restored from __doc... | [
"0.63596696",
"0.6237891",
"0.6185264",
"0.5986443",
"0.58971256",
"0.58971256",
"0.5858651",
"0.5844678",
"0.5758472",
"0.5720458",
"0.56959397",
"0.5679421",
"0.5674906",
"0.56650335",
"0.56420046",
"0.5614718",
"0.55976516",
"0.55899894",
"0.55779725",
"0.5559865",
"0.5548... | 0.73588026 | 0 |
Implementing set statement received date functionality | def set_statement_received_date(self, received_date):
if received_date != "":
self.set_value_into_input_field(self.received_date_locator, received_date)
else:
received_date_to_set = self.first_day_of_current_month
self.set_value_into_input_field(self.received_date_loc... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def setDate(self, p_int, p_int_1, p_int_2): # real signature unknown; restored from __doc__\r\n return False",
"def set_date(self, date):\n self.date = date",
"def _date(self, _date):\n\n self.__date = _date",
"def _date(self, _date):\n\n self.__date = _date",
"def _setVals(self... | [
"0.7334978",
"0.6920674",
"0.6846207",
"0.6846207",
"0.6827634",
"0.6808776",
"0.67807716",
"0.6758071",
"0.6742208",
"0.6721015",
"0.67152864",
"0.6658634",
"0.6568563",
"0.6505658",
"0.63791543",
"0.6374382",
"0.63702214",
"0.6347159",
"0.63073695",
"0.63073695",
"0.6307369... | 0.6970548 | 1 |
Implementing set statement due date functionality | def set_statement_due_date(self, due_date):
due_date_to_set = None
if due_date != "":
due_date_to_set = due_date
else:
due_date_to_set = self.get_date(last_day_of_current_month=True)
self.set_value_into_input_field(self.due_date_locator, due_date_to_set)
r... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def date_due(self, date_due):\n\n self._date_due = date_due",
"def set_due_date(node):\r\n try:\r\n student_module = StudentModule.objects.get(\r\n student_id=student.id,\r\n course_id=course.id,\r\n module_state_key=node.location\r\n ... | [
"0.65252155",
"0.6508994",
"0.64620435",
"0.64319515",
"0.616385",
"0.609625",
"0.6058168",
"0.58622956",
"0.5784687",
"0.5784114",
"0.5756739",
"0.57462704",
"0.57462704",
"0.57252216",
"0.57146066",
"0.57098156",
"0.57066125",
"0.5704039",
"0.57010674",
"0.56847155",
"0.567... | 0.73038274 | 0 |
Implementing click statement entry save button functionality | def click_statement_entry_save_button(self):
self.click_element(self.statement_entry_save_button_locator, False, True)
if self.is_element_present(self.statement_overlaps_window_locator) is True:
self.click_element(self.yes_button_locator)
try:
self.wait().until(EC.visibil... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def onSaveNotesButton(self, button):\n pass",
"def on_press_save(self):\n\n if self.dbChk.isChecked():\n self.processed_fields['db'] = self.dbPath.text()\n self.dbForm = DBFormWindow(self.processed_fields, self)\n self.dbForm.show()\n\n if self.savePathChk.is... | [
"0.69806254",
"0.6648109",
"0.6629728",
"0.6561374",
"0.6502197",
"0.6490255",
"0.64774096",
"0.64499444",
"0.64343524",
"0.64214396",
"0.6419063",
"0.6413691",
"0.6362658",
"0.6314302",
"0.6275304",
"0.6272612",
"0.6271383",
"0.62649316",
"0.62583995",
"0.62583995",
"0.62583... | 0.70948565 | 0 |
Implementing click statement entry cancel button functionality | def click_statement_entry_cancel_button(self):
self.click_element(self.statement_entry_cancel_button_locator, False, True)
try:
self.dismiss_alert_pop_up()
except:
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def click_cancel(self):\n self.click_element(self.cancel_button_selector)",
"def cancel(self): #$NON-NLS-1$\r",
"def OnCancel(self, event):\n pass",
"def OnCancel(self, event):\n pass",
"def cancelButton(self):\n \n self.answer=\"cancel\"\n self.top.destroy()",
"def ... | [
"0.76889986",
"0.7583013",
"0.74859035",
"0.74859035",
"0.73709875",
"0.7363993",
"0.7323029",
"0.73164856",
"0.72946936",
"0.72354245",
"0.72282195",
"0.7181308",
"0.71506286",
"0.71506286",
"0.71506286",
"0.7146641",
"0.71015596",
"0.7093286",
"0.7093286",
"0.7093286",
"0.7... | 0.7805216 | 0 |
Implementing set vat amount functionality | def set_vat_amount(self, vat_amount):
self.set_value_into_input_field(self.vat_amount_textbox_locator, vat_amount, True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _set_instructed_amount_33B(self, val):\n self.swift_obj.CurrencyInstructedAmount = val\n self.swift_obj.CurrencyInstructedAmount.swiftTag = \"33B\"",
"def change_price(self, value): \n value = self.price",
"def set_vat_code(self, vat_code):\n self.set_value_into_input_field(self... | [
"0.6313925",
"0.62094694",
"0.618503",
"0.6045324",
"0.6045324",
"0.60374546",
"0.6031142",
"0.59795743",
"0.58844364",
"0.58844364",
"0.58844364",
"0.58844364",
"0.58844364",
"0.58844364",
"0.58844364",
"0.58844364",
"0.58844364",
"0.5870292",
"0.5843509",
"0.58377033",
"0.5... | 0.7464598 | 0 |
Implementing set total amount with taxes functionality | def set_total_amount_with_taxes(self, amount):
self.set_value_into_input_field(self.total_amount_with_taxes_textbox_locator, amount, True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _compute_tax(self):\n for line in self:\n line.tax = (line.amount_untaxed * 14) / 100",
"def calculate_total_price(total, taxes):\n total_price = total + taxes\n return total_price",
"def add_tax(self,tax):\n return self.price + (self.price * tax)",
"def tax(rate, total):\n... | [
"0.7650254",
"0.7373269",
"0.7231285",
"0.7194577",
"0.7073665",
"0.70075953",
"0.69839036",
"0.6972834",
"0.69374824",
"0.6889917",
"0.68848616",
"0.681475",
"0.681475",
"0.6790492",
"0.678898",
"0.6780325",
"0.6747116",
"0.67315024",
"0.6711095",
"0.6697776",
"0.6697776",
... | 0.7578333 | 1 |
Implementing set exchange rate functionality | def set_exchange_rate(self, exchange_rate):
self.set_value_into_input_field(self.exchange_rate_textbox_locator, exchange_rate, True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def exchange_rate(self, exchange_rate):\n\n self._exchange_rate = exchange_rate",
"def update(self):\n self.rate = self.exchange.latest()",
"def exchange_rate(self):\n res = r.get(self.url + self.current_rate)\n return self.execute(res)",
"def _do_set_rate(self, rate):\n se... | [
"0.73777074",
"0.7229912",
"0.7089875",
"0.697292",
"0.6794339",
"0.6775011",
"0.6691609",
"0.6474413",
"0.6474413",
"0.6374043",
"0.62846506",
"0.62664944",
"0.6218948",
"0.61622775",
"0.6092608",
"0.6061748",
"0.6037637",
"0.6037637",
"0.60277605",
"0.6013331",
"0.60082567"... | 0.7524672 | 0 |
Implementing set exchange rate date functionality | def set_exchange_rate_date(self, exchange_rate_date):
self.set_value_into_input_field(self.exchange_rate_date_locator, exchange_rate_date) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def update_by_day(self, date):\n print 'UPDATE EXCHANGE RATE for day: %s' % date\n currencies = self.get_currencies()\n for code, name in currencies:\n if code in self.base_curr:\n _, created = Currency.objects.get_or_create(\n code=code, defaults={... | [
"0.67753685",
"0.6589549",
"0.65367275",
"0.64364684",
"0.63157356",
"0.6236852",
"0.6236852",
"0.60822713",
"0.60352963",
"0.5980072",
"0.594167",
"0.5909057",
"0.5894252",
"0.58776927",
"0.5864436",
"0.5850787",
"0.5847133",
"0.58391535",
"0.5802382",
"0.574858",
"0.574858"... | 0.77386326 | 0 |
Implementing set begin date for search functionality | def set_begin_date_for_search(self, begin_date):
self.set_value_into_input_field(self.begin_date_locator, begin_date) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def set_begin_date(self, begin_date):\n self.set_value_into_input_field(self.begin_date_inputbox_locator, begin_date)",
"def set_bulk_add_begin_date(self, begin_date):\n if begin_date == \"\":\n begin_date = self.get_date(current_date=True)\n self.set_value_into_input_field(self.b... | [
"0.68009245",
"0.6647724",
"0.656313",
"0.6511719",
"0.64866877",
"0.6293129",
"0.6277673",
"0.6242617",
"0.6226676",
"0.61919963",
"0.6092706",
"0.60893524",
"0.6067084",
"0.6051327",
"0.60509783",
"0.6045953",
"0.60294646",
"0.6019261",
"0.6012724",
"0.5989784",
"0.5989784"... | 0.81604683 | 0 |
Implementing set end date for search functionality | def set_end_date_for_search(self, end_date, allow_past_date):
if allow_past_date is True and end_date != "":
end_date_to_set = end_date
else:
if (end_date == "" or time.strptime(end_date, "%m/%d/%Y") < time.strptime(self.get_current_date(), "%m/%d/%Y")):
end_date_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def set_end_date(self, date):\n pass",
"def end_date(self, end_date):\n self._end_date = end_date",
"def crawl(self, query, start_date, end_date, *args, **kwargs):\n pass",
"def test_date_rage(self):\n\n query_params = {\n 'until_date': self.today,\n 'from_da... | [
"0.6798686",
"0.6663303",
"0.649775",
"0.646445",
"0.6454426",
"0.64511544",
"0.64511544",
"0.64511544",
"0.64511544",
"0.64511544",
"0.64511544",
"0.64511544",
"0.64511544",
"0.6366821",
"0.6338194",
"0.63063204",
"0.62836707",
"0.62826025",
"0.62549895",
"0.62307596",
"0.62... | 0.7246523 | 0 |
Implementing get inbound statement grid row details functionality | def get_inbound_statement_grid_row_details(self, unique_identifier):
self.inbound_statement_grid_row_data.clear()
self.inbound_statement_grid_row_data = {"Audit Account": "", "Statement Number": "", "Begin Date": "", "End Date": "", "Amount": "", "Final Payment Due Date": ""}
grid_row_data = sel... | {
"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.683602",
"0.66221684",
"0.64162683",
"0.6341669",
"0.62700915",
"0.6185066",
"0.6146467",
"0.61403614",
"0.6110009",
"0.6102062",
"0.60853755",
"0.5993783",
"0.5846788",
"0.58220565",
"0.58066386",
"0.57855225",
"0.5766214",
"0.575431",
"0.56835955",
"0.5679811",
"0.564863... | 0.6854449 | 0 |
Implementing select inbound statement grid checkbox functionality | def select_inbound_statement_grid_checkbox(self, statement_number):
self.select_grid_row_checkbox(self.inbound_statement_grid_div_id, statement_number, self.inbound_statement_grid_checkbox_column_number)
self.wait_for_ajax_spinner_load() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def select_disputes_grid_row_checkbox(self, statement_number):\n self.select_grid_row_checkbox(self.disputes_grid_div_id, statement_number, self.disputes_grid_checkbox_column_number)\n self.wait_for_ajax_spinner_load()",
"def GridCheck(Parent,DefaultSelected,Row,Column):\r\n dummyvar = IntVar()\r\... | [
"0.652646",
"0.6505086",
"0.6392507",
"0.6349147",
"0.631303",
"0.631303",
"0.6074741",
"0.60017544",
"0.5932189",
"0.59029746",
"0.5894325",
"0.58690053",
"0.5867617",
"0.58544415",
"0.5788216",
"0.5788216",
"0.57746047",
"0.5762698",
"0.5729869",
"0.5677371",
"0.56702125",
... | 0.6745049 | 0 |
Implementing get inbound statement grid number of rows functionality | def get_inbound_statement_grid_number_of_rows(self):
inbound_statement_grid_number_of_rows_element = self.wait().until(EC.visibility_of_element_located(self.inbound_statement_grid_number_of_rows_locator), 'inbound statement grid number of rows locator not found before specified time out')
element_text =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getNumRows(self) -> int:\n ...",
"def getRowCount(self) -> int:\n ...",
"def get_rows(self) -> int:\r\n return 1 + self.display.get_rows() + 1",
"def getNumRows(self):\n return self.__rows",
"def get_row_count(self):\n\t\treturn self.iter_n_children(None)",
"def get_number... | [
"0.7933964",
"0.7610979",
"0.75622946",
"0.7083791",
"0.70720017",
"0.6865969",
"0.6850622",
"0.68229806",
"0.68175477",
"0.67938685",
"0.67907816",
"0.6769514",
"0.67518353",
"0.6735044",
"0.66978234",
"0.66978234",
"0.66970694",
"0.6688934",
"0.66874576",
"0.6684982",
"0.66... | 0.7675888 | 1 |
Implementing is new statement deleted successfully functionality | def is_new_statement_deleted_successfully(self):
status = None
number_of_rows_after_delete = self.get_inbound_statement_grid_number_of_rows()
if int(number_of_rows_after_delete) < int(self.number_of_rows):
status = True
else:
status = False
return status | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def beforeDelete(self):",
"def is_delete(self) -> bool:\n return self.statement.is_dml and self.statement.is_delete",
"def do_delete(self, arg):\n \treturn False",
"def after_delete(self, obj, st):\n pass",
"def before_delete(self, obj, st):\n pass",
"def delete(self):\n ..... | [
"0.6816528",
"0.6744091",
"0.66804945",
"0.664126",
"0.6628761",
"0.6572888",
"0.6544577",
"0.647262",
"0.6467923",
"0.6428487",
"0.6396935",
"0.6372149",
"0.63263917",
"0.62905514",
"0.62732905",
"0.6253679",
"0.6253679",
"0.6253679",
"0.6253679",
"0.625182",
"0.6234386",
... | 0.72600204 | 0 |
Implementing set bill account functionality | def set_bill_account(self, bill_account_list):
self.multiple_items_selection_from_kendo_dropdown(self.bill_account_kendo_dropdown_locator, bill_account_list)
page_header_element = self.wait().until(EC.element_to_be_clickable(self.page_header_locator), 'page header locator not found before specified time... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def setaccount(self, vergeaddress, account):\n return self.proxy.setaccount(vergeaddress, account)",
"def set_bill_account_from_single_selection_kendo_dropdown(self, bill_account):\n self.single_selection_from_kendo_dropdown(self.bill_account_single_selection_kendo_dropdown_locator, bill_account)",... | [
"0.66701794",
"0.6626428",
"0.66016674",
"0.6473951",
"0.6396812",
"0.6396812",
"0.6396812",
"0.6396812",
"0.63167965",
"0.62779355",
"0.62509465",
"0.6212455",
"0.62082136",
"0.618992",
"0.6109474",
"0.61022764",
"0.6090807",
"0.60853523",
"0.60751134",
"0.6015741",
"0.60141... | 0.71467763 | 0 |
Implementing click outbound statement search button functionality | def click_outbound_statement_search_button(self):
self.click_element(self.page_header_locator)
self.click_element(self.outbound_statement_search_button_locator, True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def click_inbound_statement_search_button(self):\n self.click_element(self.page_header_locator)\n self.click_element(self.inbound_statement_search_button_locator, True)",
"def on_searchButton_clicked(self):\n self.__search()",
"def search_btn_clicked(self, widget, data=None):\n # Me... | [
"0.7630891",
"0.7157717",
"0.6893961",
"0.681077",
"0.6800862",
"0.65451753",
"0.65104055",
"0.64981824",
"0.6395097",
"0.63549423",
"0.6303875",
"0.62468296",
"0.6246596",
"0.6243323",
"0.62278664",
"0.6159656",
"0.60982895",
"0.6043677",
"0.60298014",
"0.59903866",
"0.59854... | 0.7658506 | 0 |
Implementing click add non recurring charge button functionality | def click_add_non_recurring_charge_button(self):
self.get_non_traffic_charges_grid_row_count()
add_non_recurring_charge_button_element = self.wait().until(EC.element_to_be_clickable(self.add_non_recurring_charge_button_locator), 'add non recurring charge button locator not found before specified time ou... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def click_add_financial_charges_button(self):\n self.number_of_financial_charges_before_create = self.get_number_of_financial_charges_in_the_grid()\n self.click_element(self.add_financial_charges_button_locator, hover=True)",
"def click_add_new_adjustment_charge_button(self):\n add_new_adjus... | [
"0.71074903",
"0.63957435",
"0.56437904",
"0.5570459",
"0.55490047",
"0.554351",
"0.55218863",
"0.5503653",
"0.5499577",
"0.5453777",
"0.5445514",
"0.5436455",
"0.54331714",
"0.54124",
"0.5381868",
"0.52948993",
"0.52654314",
"0.52516043",
"0.5245237",
"0.52383125",
"0.521753... | 0.73760337 | 0 |
Implementing click outbound statements grid inline action button functionality | def click_outbound_statements_grid_inline_action_button(self, row_identifier_text):
self.click_inline_action_button(self.outbound_statements_grid_div_id, row_identifier_text, self.outbound_statements_grid_inline_action_column_number) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def click_inbound_statement_grid_inline_action_button(self, row_identifier_text):\n self.click_inline_action_button(self.inbound_statement_grid_div_id, row_identifier_text, self.inbound_statement_grid_inline_action_column_number)",
"def click_outbound_statement_grid_first_row_inline_action_button(self):\n... | [
"0.73077184",
"0.7175758",
"0.70516145",
"0.6701224",
"0.6366792",
"0.6328599",
"0.6286402",
"0.61363655",
"0.61177874",
"0.6115608",
"0.6043114",
"0.602237",
"0.602237",
"0.602237",
"0.602237",
"0.59832734",
"0.5930034",
"0.59090686",
"0.5875477",
"0.58653474",
"0.58653474",... | 0.75387883 | 0 |
Implementing set accounting code functionality | def set_accounting_code(self, accounting_code):
self.single_selection_from_kendo_dropdown(self.accounting_code_kendo_dropdown_locator, accounting_code)
self.wait_for_ajax_spinner_load() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pre_approve(self, cr, uid, ids, context={}):\n \tfor voucher in self.browse(cr, uid, ids, context=context):\n \t if not voucher.department_id.analytic_account_id:\n \t raise osv.except_osv(_('Configration Check!'), _(\"Please add cost center for your department!\"))\n \t periods = sel... | [
"0.5955179",
"0.56985176",
"0.5526821",
"0.54977167",
"0.5395626",
"0.5354382",
"0.52825534",
"0.52779883",
"0.5274537",
"0.5251871",
"0.5247666",
"0.52381045",
"0.52262926",
"0.5221136",
"0.5204683",
"0.52005666",
"0.51842487",
"0.5177571",
"0.51703626",
"0.516651",
"0.51472... | 0.58167243 | 1 |
Implementing set non recurring charge begin date functionality | def set_non_recurring_charge_begin_date(self, begin_date):
if begin_date is None:
statement_summary_begin_date_element = self.wait().until(EC.presence_of_element_located(self.statement_details_begin_date_locator), 'statement details begin date locator not found before specified time out')
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def set_charge_begin_date(self, charge_begin_date, first_day_of_last_month):\n self.current_charge_begin_date = charge_begin_date\n if first_day_of_last_month is True:\n if charge_begin_date == \"\":\n self.first_day_of_previous_month = self.get_date(first_day_of_last_month=... | [
"0.712525",
"0.69548887",
"0.686426",
"0.63932127",
"0.6248099",
"0.62198555",
"0.6120695",
"0.59636164",
"0.5938953",
"0.5908369",
"0.59033346",
"0.58373684",
"0.58219475",
"0.5803417",
"0.5782214",
"0.5760091",
"0.57464474",
"0.5744789",
"0.5737507",
"0.56885135",
"0.566259... | 0.73233956 | 0 |
Implementing set non recurring charge end date functionality | def set_non_recurring_charge_end_date(self, end_date):
if end_date is None:
statement_summary_end_date_element = self.wait().until(EC.presence_of_element_located(self.statement_details_end_date_locator), 'statement details end date locator not found before specified time out')
non_recurr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def set_adjustment_charge_end_date(self, end_date):\n self.set_value_into_input_field(self.end_date_locator, end_date)",
"def set_charge_end_date(self, charge_end_date, last_day_of_last_month):\n if last_day_of_last_month is None:\n if charge_end_date == \"\":\n new_date =... | [
"0.72062904",
"0.71427524",
"0.6738473",
"0.6288902",
"0.62712675",
"0.62639004",
"0.6222278",
"0.622196",
"0.60726774",
"0.6055969",
"0.6055969",
"0.6055969",
"0.6055969",
"0.6055969",
"0.6055969",
"0.6055969",
"0.6055969",
"0.6036852",
"0.5960193",
"0.59330523",
"0.5919095"... | 0.75689566 | 0 |
Implementing set charge category functionality | def set_charge_category(self, charge_category):
self.single_selection_from_kendo_dropdown(self.charge_category_kendo_dropdown_locator, charge_category)
self.wait_for_ajax_spinner_load() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def set_charge(self, type, charge):\n assert type < self.num_atom_types + 1\n assert type > 0\n self.charges[type] = charge",
"def getCategory():",
"def on_category_change(self, cr, uid, ids, enrich_category, context=None):\n \tenrich_category_obj=self.pool.get('enrich.category').browse... | [
"0.5962811",
"0.5828759",
"0.5800018",
"0.56366897",
"0.5633313",
"0.5603142",
"0.5524306",
"0.5522442",
"0.55030763",
"0.54218304",
"0.5406818",
"0.54030836",
"0.53980136",
"0.53829825",
"0.53829825",
"0.53829825",
"0.53829825",
"0.53829825",
"0.5363215",
"0.5326915",
"0.530... | 0.7129316 | 0 |
Implementing set charge amount functionality | def set_charge_amount(self, charge_amount):
self.set_value_into_input_field(self.charge_amount_textbox_locator, charge_amount, True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def charge(self, charge):\n self._charge = charge",
"def charge(self, charge):\n\n self._charge = charge",
"def set_adjustment_charge_amount(self, amount):\n self.script_executor(\"var element = document.getElementById('%s'); element.style.display = 'block';\" % self.charge_amount_textbox_... | [
"0.73275936",
"0.7151284",
"0.69486123",
"0.6779153",
"0.67772835",
"0.6742834",
"0.67032695",
"0.6610206",
"0.6610206",
"0.6610206",
"0.6610206",
"0.6610206",
"0.6610206",
"0.6610206",
"0.6610206",
"0.6610206",
"0.6500264",
"0.6295933",
"0.62097067",
"0.62097067",
"0.6202394... | 0.74730825 | 0 |
Implementing set tax template functionality | def set_tax_template(self, tax_template):
self.single_selection_from_kendo_dropdown(self.tax_template_kendo_dropdown_locator, tax_template)
self.wait_for_ajax_spinner_load() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tax(self):\n\n self.x = self.a\n self.set_zn(self.x)",
"def save_tax(request):\n if request.method == \"POST\":\n initial_data, data = process_request(request)\n return render(request,\n \"invoice/invoice_create.html\",\n {\n ... | [
"0.6620376",
"0.6238402",
"0.61296326",
"0.60240585",
"0.5903616",
"0.5886206",
"0.57052493",
"0.5659899",
"0.5658373",
"0.5641625",
"0.5616361",
"0.55922127",
"0.558994",
"0.546871",
"0.5456342",
"0.5453268",
"0.54511315",
"0.54442775",
"0.5436094",
"0.5405731",
"0.5393429",... | 0.7365965 | 0 |
Implementing click non recurring charge save button functionality | def click_non_recurring_charge_save_button(self):
non_recurring_charge_save_button_element = self.wait().until(EC.element_to_be_clickable(self.non_recurring_charge_save_button_locator), 'non recurring charge save button locator not found before specified time out')
non_recurring_charge_save_button_eleme... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def click_create_adjustment_charge_save_button(self):\n self.click_element(self.create_adjustment_charge_save_button_locator)\n try:\n self.wait().until(EC.visibility_of_element_located(self.success_message_locator), 'success message locator not found before specified time out')\n ... | [
"0.63086265",
"0.6232597",
"0.61805284",
"0.6137181",
"0.5905998",
"0.5872669",
"0.5753043",
"0.5741258",
"0.56955713",
"0.56426364",
"0.5622583",
"0.56196517",
"0.56132275",
"0.561279",
"0.5612119",
"0.5558131",
"0.55351174",
"0.5516884",
"0.55156976",
"0.5512311",
"0.549914... | 0.6628943 | 0 |
Implementing filter non traffic charges grid functionality | def filter_non_traffic_charges_grid(self, column_name, filter_item_text):
self.grid_filter_with_textbox(self.non_traffic_charges_grid_div_id, column_name, filter_item_text) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def filter(self, filters):",
"def filterRansac():\n pass",
"def _gap_filter(self):\n res = self.cfg.resolution\n xedges = np.linspace(self.lrx[0]-res/2., self.lrx[-1]+res/2.0, len(self.lrx)+1)\n yedges = np.linspace(self.lry[0]-res/2., self.lry[-1]+res/2.0, len(self.lry)+1)\n\n #... | [
"0.6405129",
"0.61712396",
"0.6070021",
"0.6034338",
"0.5966394",
"0.59524006",
"0.5931475",
"0.58752126",
"0.58461756",
"0.58012027",
"0.5714941",
"0.5679685",
"0.5673892",
"0.56516474",
"0.5608378",
"0.55781317",
"0.5549777",
"0.5543773",
"0.5499065",
"0.5443852",
"0.543934... | 0.7190085 | 0 |
Implementing get non traffic charges grid row details functionality | def get_non_traffic_charges_grid_row_details(self):
self.grid_row_details_dictionary.clear()
self.grid_row_details_dictionary.update({"Accounting Code": "", "Start Date": "", "End Date": "", "Charge Name": "", "Charge Category": "", "Currency": "", "Amount": "", "Tax Template": ""})
non_traffic_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_received_charges_grid_row_details(self):\n self.grid_row_details_dictionary.clear()\n self.grid_row_details_dictionary.update({\"Tariff Type\": \"\", \"Line Item Type\": \"\", \"Service Group\": \"\", \"Product\": \"\", \"Time Band\": \"\", \"Begin Date\": \"\", \"End Date\": \"\", \"Rating U... | [
"0.7138277",
"0.7096238",
"0.6455734",
"0.6401807",
"0.6351652",
"0.626578",
"0.61339283",
"0.6071941",
"0.59553945",
"0.59431636",
"0.594146",
"0.5937092",
"0.59321964",
"0.5855649",
"0.57646626",
"0.57108665",
"0.5680286",
"0.5679396",
"0.5678531",
"0.5609462",
"0.5583649",... | 0.75638074 | 0 |
Implementing select non traffic charges grid row checkbox functionality | def select_non_traffic_charges_grid_row_checkbox(self, row_identifier_text):
self.select_grid_row_checkbox(self.non_traffic_charges_grid_div_id, row_identifier_text, self.non_traffic_charges_grid_checkbox_column_number, first_row=True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def select_charges_grid_row_checkbox(self, charge_name):\n self.select_grid_row_checkbox(self.charges_grid_div_id, charge_name, self.charges_grid_checkbox_column_number)",
"def select_received_charges_grid_row_checkbox(self, row_identifier_text):\n self.select_grid_row_checkbox(self.received_charge... | [
"0.7239619",
"0.6807123",
"0.6599963",
"0.65372634",
"0.6477856",
"0.6369265",
"0.6341436",
"0.62623173",
"0.6226184",
"0.6116303",
"0.6104067",
"0.60294104",
"0.6028949",
"0.5977353",
"0.59303975",
"0.5896483",
"0.5864629",
"0.58166116",
"0.57756156",
"0.57677877",
"0.572166... | 0.77435136 | 0 |
Implementing click non traffic charges delete button functionality | def click_non_traffic_charges_delete_button(self):
self.get_non_traffic_charges_grid_row_count()
self.click_element(self.non_traffic_charges_delete_button_locator, True)
try:
self.wait().until(EC.visibility_of_element_located(self.charges_delete_success_message_locator), 'charges del... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def delete(self, *args, **kwargs):\n return 0",
"def delete():\n click.echo('delete was called.')",
"def delete(self):\n ...",
"def delete():",
"def delete(self, *args, **kwargs):\n pass",
"def delete(self, *args, **kwargs):\n pass",
"def click_delete_button(self)... | [
"0.67584246",
"0.6699362",
"0.6669876",
"0.6509966",
"0.6439899",
"0.6439899",
"0.63944423",
"0.639289",
"0.63247377",
"0.6303704",
"0.6291971",
"0.6288843",
"0.6288843",
"0.6288843",
"0.6288843",
"0.6270052",
"0.6262322",
"0.6163608",
"0.61353064",
"0.6130511",
"0.610749",
... | 0.72268844 | 0 |
Implementing get non traffic charges grid row count functionality | def get_non_traffic_charges_grid_row_count(self):
non_traffic_charges_grid_row_count_span_element = self.wait().until(EC.visibility_of_element_located(self.non_traffic_charges_grid_row_count_span_locator), 'non traffic charges grid row count span locator not found before specified time out')
count_span_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getNumRows(self) -> int:\n ...",
"def getRowCount(self) -> int:\n ...",
"def get_vendor_price_lists_number_of_rows_from_grid(self):\n self.number_of_rows = int(self.get_number_of_rows_from_grid(self.vendors_price_lists_grid_div_bar_id))",
"def getNoOfRows(self):\n return _pat... | [
"0.72009623",
"0.69524115",
"0.6916695",
"0.66828835",
"0.6672671",
"0.644205",
"0.6423425",
"0.6368024",
"0.6351097",
"0.63193005",
"0.63142306",
"0.62880534",
"0.6256312",
"0.6252803",
"0.6208443",
"0.6206032",
"0.61492467",
"0.61492467",
"0.6141737",
"0.6140972",
"0.610297... | 0.7485797 | 0 |
Implementing compare non traffic charges grid row count functionality | def compare_non_traffic_charges_grid_row_count(self):
previous_non_traffic_charges_grid_row_count = self.non_traffic_charges_grid_row_count
current_non_traffic_charges_grid_row_count = self.get_non_traffic_charges_grid_row_count()
if int(current_non_traffic_charges_grid_row_count) == int(previou... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getNumRows(self) -> int:\n ...",
"def num_cells_for_rows(self, rows):\r\n return (rows * rows + rows) // 2",
"def get_non_traffic_charges_grid_row_count(self):\n non_traffic_charges_grid_row_count_span_element = self.wait().until(EC.visibility_of_element_located(self.non_traffic_charge... | [
"0.64871997",
"0.64027107",
"0.63591737",
"0.6282504",
"0.61811256",
"0.6074833",
"0.60666585",
"0.6056002",
"0.59235334",
"0.58933675",
"0.58811635",
"0.58693796",
"0.5849911",
"0.57862747",
"0.5785296",
"0.57329655",
"0.57263494",
"0.57089067",
"0.5682547",
"0.56313056",
"0... | 0.7341113 | 0 |
Implementing is new non recurring charge deleted functionality | def is_new_non_recurring_charge_deleted(self):
previous_non_traffic_charges_grid_row_count = self.non_traffic_charges_grid_row_count
current_non_traffic_charges_grid_row_count = self.get_non_traffic_charges_grid_row_count()
if int(previous_non_traffic_charges_grid_row_count) > int(current_non_tr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def unlink(self, cr, uid, ids, context=None):\n payenrich = self.read(cr, uid, ids, ['state'], context=context)\n for s in payenrich:\n if s['state'] not in ['draft', 'cancel']:\n raise osv.except_osv(_('Invalid Action Error'), _('In Order To Delete A Service Request Order(s... | [
"0.6305152",
"0.6054663",
"0.6050068",
"0.6041006",
"0.5985629",
"0.597702",
"0.5887979",
"0.58648497",
"0.5852044",
"0.5849631",
"0.5790032",
"0.56934565",
"0.566665",
"0.5664155",
"0.5661412",
"0.5641495",
"0.5641495",
"0.5641495",
"0.5641495",
"0.56235653",
"0.5617628",
... | 0.64691186 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.