query
stringlengths
10
3.6k
document
stringlengths
19
61.4k
metadata
dict
negatives
listlengths
0
101
negative_scores
listlengths
0
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Returns binary falsealarm rate (b / [a + b]).
def bFA2(zvoY, p03B): return 1.0 - pIKD(zvoY, p03B)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yAbY(jzdc, Fg_i):\n if Fg_i == 0:\n return 0\n return jzdc // Fg_i", "def _6CA(YKHO):\n try:\n return YKHO.pos / YKHO.runtime\n except ZeroDivisionError:\n return 0", "def BR3D(g16R):\n if g16R < 1:\n g16R = 1\n QT5q = 1200\n PYdj = 38400\n mLGw = oyIN.lo...
[ "0.629831", "0.62668025", "0.62656444", "0.6244402", "0.6130168", "0.6071424", "0.59376067", "0.5932433", "0.5911787", "0.5865121", "0.58485365", "0.5848011", "0.584345", "0.5835077", "0.58243525", "0.58224005", "0.58133054", "0.58064634", "0.57709444", "0.5767904", "0.574954...
0.5311653
71
Calculate the Mean Squared Error between y_true and y_pred, but ignore the beginning "warmup" part of the sequences. y_true is the desired output. y_pred is the model's output.
def v0zL(Y8eF, aMgO, wbn8): wbn8 = 50 w8kQ = Y8eF[:, wbn8:, :] hS1w = aMgO[:, wbn8:, :] hkHB = JBMS(Fyji(w8kQ - hS1w)) return hkHB
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def B60P(Y8eF, aMgO):\n return bdPE.metrics.mean_squared_error(Y8eF[:, -1], aMgO[:, -1])", "def SDab(Y8eF, aMgO):\n hkHB = oyIN.mean(oyIN.power(Y8eF, aMgO, 2))\n return hkHB", "def SDab(Y8eF, aMgO):\n hkHB = oyIN.mean(oyIN.power(Y8eF - aMgO, 2))\n return hkHB", "def SDab(Y8eF, aMgO):\n hkHB...
[ "0.77460986", "0.76258963", "0.7607816", "0.759333", "0.7541404", "0.7527679", "0.74821055", "0.74810493", "0.744844", "0.73893744", "0.7388422", "0.73515975", "0.7309956", "0.7309525", "0.7305922", "0.73050845", "0.7294609", "0.7216255", "0.7151546", "0.71480584", "0.7139245...
0.7707211
1
Update weights given a single training vector
def MyUA(YKHO, yzQ0, UjVs, v_12, knbJ, SPe_): if len(UjVs) != len(knbJ): return WKvO = oyIN.frombuffer(UjVs, dtype=oyIN.uint8) LVAh = oyIN.frombuffer(knbJ, dtype=oyIN.uint8) ZHfW = WKvO != LVAh if v_12 != SPe_: j6Rr = YKHO.reward print('cov changed due to', ZHfW.nonzero(), j6...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MyUA(YKHO):\n pass", "def MyUA(YKHO):\n YKHO._weights = YKHO._weights + YKHO.update_weights_value", "def MyUA(YKHO):\n YKHO._weights = YKHO._weights + YKHO.update_weights_value\n YKHO.weights_clipping()", "def QdZT(YKHO, hkxX, EvQg, RHJb=0.1):\n for EcVT, Y8eF in zip(hkxX, EvQg):\n ...
[ "0.7536002", "0.75317174", "0.7460652", "0.7342677", "0.72884965", "0.72348285", "0.7199392", "0.7134026", "0.7017342", "0.7012895", "0.70061976", "0.6992156", "0.69759417", "0.69600725", "0.691911", "0.68996286", "0.6828508", "0.6814213", "0.67085475", "0.6706435", "0.670259...
0.0
-1
return full path to filename without extension
def VFIc(YKHO): pmON, Ux0P = Hy7s.path.split(YKHO.path) TCuf = Hy7s.path.join(pmON, Hy7s.path.splitext(Ux0P)[0]) return TCuf
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NVxF(ztnR=True) -> str:\n return ebmO() + '/' + yFjF(file_extension=ztnR)", "def JjUH(VqRE: str) -> str:\n return str(oAb3.Path(VqRE).with_suffix(''))", "def OyQC(Ux0P):\n if Ux0P != '':\n return Ux0P\n else:\n Ux0P = '.'", "def Ooqe(pmON):\n return pmON.split('\\\\').pop().s...
[ "0.82906616", "0.8139399", "0.8041835", "0.7955763", "0.7951013", "0.79177755", "0.7901852", "0.7833393", "0.7815615", "0.7787736", "0.77596796", "0.7756122", "0.7737132", "0.76814216", "0.7655609", "0.76459587", "0.7633767", "0.76196694", "0.7601764", "0.7595147", "0.7573102...
0.0
-1
add a callback for a hw defined pin for digital input/output.
def tY6d(YKHO, yQ5t, Ueki=None, Lsrz=None, TIZY=None): if isinstance(yQ5t, int): YKHO._digital_hw_pins[yQ5t] = SJPx(read=Ueki, write=Lsrz, blynk_ref=YKHO, initial_state=TIZY) else: raise ValueError('pin value must be an integer value')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pwgJ(YKHO, db6b, ZpyY='sensing'):\n if ZpyY == 'both':\n YKHO.pin.add_edge_callback(db6b, 'both')\n else:\n nzoj = True if ZpyY == 'sensing' else False\n YKHO.pin.add_edge_callback(db6b, 'rising' if YKHO.pinishigh ^ nzoj else 'falling')", "def FIMM(YKHO, jldK, Fv73):\n YKHO.pin ...
[ "0.64690423", "0.61849064", "0.60085356", "0.5956483", "0.58475715", "0.5846543", "0.58439845", "0.57960975", "0.5764804", "0.57494897", "0.5732094", "0.5679671", "0.5678474", "0.56394964", "0.5625757", "0.56056213", "0.5589288", "0.5576595", "0.55610466", "0.5528439", "0.548...
0.6181535
2
add a callback for a hw defined pin for analog input/output.
def eLQ5(YKHO, yQ5t, Ueki=None, Lsrz=None, W9gz=None): if isinstance(yQ5t, int): YKHO._analog_hw_pins[yQ5t] = SJPx(read=Ueki, write=Lsrz, blynk_ref=YKHO, initial_state=W9gz) else: raise ValueError('pin value must be an integer value')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def analog_in(afVw, yQ5t):\n await afVw.set_pin_mode_analog_input(yQ5t, callback=tpZ8, differential=5)\n while True:\n await V7ok.sleep(1)", "def pwgJ(YKHO, db6b, ZpyY='sensing'):\n if ZpyY == 'both':\n YKHO.pin.add_edge_callback(db6b, 'both')\n else:\n nzoj = True if ZpyY ...
[ "0.6787534", "0.66301984", "0.6175324", "0.6110606", "0.5879358", "0.5879358", "0.5851162", "0.5816422", "0.5798553", "0.5776644", "0.576428", "0.57544374", "0.57486665", "0.574764", "0.57361037", "0.5732125", "0.57051325", "0.57048446", "0.5700954", "0.56429", "0.56251657", ...
0.65582013
2
Given a file path to an h5 file assumed to house a tensor, load that tensor into memory and return a pointer.
def B_59(qaEx): aF0O = g5R2.File(qaEx, 'r') SzJA = list(aF0O.keys())[0] nPrm = list(aF0O[SzJA]) nPrm = nPrm[0:] nPrm = oyIN.stack(nPrm, axis=0) return nPrm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EBws(IznC, pmON='/data'):\n ytgA = bHSU(IznC)\n Q9hq = ytgA.get_node(pmON)\n vb7U = Q9hq.read()\n ytgA.close()\n return vb7U", "def qdsW(pmON: str, NArs: Optional[Params]) -> idx7.Tensor:\n pmON = zqrL(pmON, NArs)\n RRlC = SC2F(f'{pmON}/*')\n return idx7.stack([idx7.tensor(idx7.load(e...
[ "0.7437465", "0.7086714", "0.64194524", "0.63914806", "0.6389463", "0.6389463", "0.62561035", "0.61800593", "0.6088989", "0.6058085", "0.6040051", "0.60097253", "0.59888977", "0.5986875", "0.59607834", "0.59528995", "0.5927168", "0.5914489", "0.5912998", "0.59040385", "0.5881...
0.6384181
6
get the column name
def mWFP(YKHO): return YKHO._name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W0tD(YKHO):\n return YKHO.col_name", "def z0q4(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'column_name')", "def GClg(YKHO):\n return YKHO.__column", "def z0q4(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'column_name')", "def z0q4(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, '...
[ "0.8722004", "0.8525398", "0.84734815", "0.8389005", "0.8389005", "0.8093533", "0.7813103", "0.7813103", "0.7811528", "0.7805676", "0.77438116", "0.7667634", "0.7592623", "0.7431208", "0.74292094", "0.7374318", "0.7342597", "0.72725135", "0.72502655", "0.7214682", "0.7174846"...
0.0
-1
Positive Test case to check paydays when the first payday was on a thursday because Friday was a holiday.
def H5X5(YKHO): YKHO.first_payday = FDJ4(2020, 12, 24) hBbN = FDJ4(2021, 1, 8) Hn6r = YKHO.pay_cycle.is_payday(hBbN) assert Hn6r == True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jRCm(YKHO, eD8c, JRYC):\n if JRYC.weekday() == 4:\n pKYF = JRYC + qcWV.timedelta(days=1)\n if super(V_8M, YKHO)._day_rule_matches(eD8c, pKYF):\n return True\n elif JRYC.weekday() == 0:\n BadC = JRYC - qcWV.timedelta(days=1)\n if super(V_8M, YKHO)._day_rule_matches(e...
[ "0.69821507", "0.6892618", "0.68650854", "0.6827666", "0.68080336", "0.678057", "0.6776829", "0.67488265", "0.67448634", "0.67296416", "0.66915363", "0.6690996", "0.666132", "0.6645861", "0.6611681", "0.6603818", "0.6584228", "0.6563129", "0.6484644", "0.6463486", "0.6461668"...
0.7197239
0
Negative Test case to check if holiday on default payday is not a payday.
def WeHY(YKHO): hBbN = FDJ4(2020, 12, 25) Hn6r = YKHO.pay_cycle.is_payday(hBbN) assert Hn6r == False hBbN = FDJ4(2021, 12, 24) Hn6r = YKHO.pay_cycle.is_payday(hBbN) assert Hn6r == False hBbN = FDJ4(2022, 11, 11) Hn6r = YKHO.pay_cycle.is_payday(hBbN) assert Hn6r == False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mXQL(YKHO):\n hBbN = FDJ4(2019, 1, 24)\n Hn6r = YKHO.pay_cycle.is_payday(hBbN)\n assert Hn6r == False\n hBbN = FDJ4(2018, 12, 27)\n Hn6r = YKHO.pay_cycle.is_payday(hBbN)\n assert Hn6r == False\n hBbN = FDJ4(2018, 2, 28)\n Hn6r = YKHO.pay_cycle.is_payday(hBbN)\n assert Hn6r == False",...
[ "0.72370386", "0.7209107", "0.698192", "0.6733371", "0.66267115", "0.65522903", "0.6491297", "0.64875156", "0.635192", "0.634339", "0.6284661", "0.62642896", "0.62449616", "0.61648744", "0.6158634", "0.6145223", "0.61119276", "0.6085228", "0.60596836", "0.6010778", "0.5996088...
0.7130374
2
\ returns the gravityScore as an integer from this node
def vNP6(YKHO, Q6kx): return YKHO.getGravityScoreFromNode(Q6kx) or 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hckV(YKHO, Q6kx):\n return YKHO.get_node_gravity_score(Q6kx) or 0", "def hckV(YKHO, Q6kx):\n return YKHO.get_node_gravity_score(Q6kx) or 0", "def k27N(YKHO):\n return YKHO._g_score", "def g7ow(YKHO):\n bGrB, bGrB, lM9o = YKHO._entropies()\n return 2.0 * lM9o", "def hckV(YKHO) -> int:\n ...
[ "0.77843124", "0.7753792", "0.7575313", "0.72101176", "0.66739476", "0.6591245", "0.6487961", "0.6487961", "0.6487961", "0.648348", "0.6476078", "0.6476078", "0.6476078", "0.64231694", "0.63510644", "0.63401246", "0.6271765", "0.62565887", "0.6201718", "0.6166289", "0.6154911...
0.77894115
0
save data to csv file
def Wi90(eCwk, mWFP, Wq02): Hy7s.makedirs(Hy7s.path.dirname(mWFP + '.csv'), exist_ok=True) with open(mWFP + '.csv', 'w') as LtY3: LtY3.write(','.join(map(str, NSNj))) LtY3.write('\n') Lsrz = m6_J.writer(LtY3, delimiter=',') for WKvO in range(0, len(eCwk)): Lsrz.writer...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aVpL(YKHO, Ux0P):\n YKHO.data.to_csv(Ux0P)", "def xkzz(YKHO, nPrm, LWY6):\n nPrm.to_csv(LWY6)", "def aVpL(nPrm):\n tlp_ = nPrm\n WBPg = ['Lender', 'Max Loan Amount', 'Max LTV', 'Max DTI', 'Max Credit Score', 'Interest Rate']\n BjdU = GkAb('save_file.csv')\n with open(BjdU, 'w', newline=''...
[ "0.8625337", "0.8366503", "0.8064626", "0.80550843", "0.7850091", "0.7809454", "0.7791235", "0.76801515", "0.7606095", "0.7568307", "0.75312597", "0.7505743", "0.7499881", "0.74998355", "0.7483528", "0.747047", "0.7465715", "0.745356", "0.7382077", "0.7374473", "0.7275115", ...
0.0
-1
Construct sampler, agent, and algorithm, and extract batch_spec from sampler.
def FIMM(YKHO, jute: AsaFactory): super().__init__(jute) YKHO.agent, YKHO.sampler, YKHO.algo = jute() YKHO.batch_spec = YKHO.sampler.batch_spec YKHO.grad = None YKHO.traj_infos = None YKHO.opt_info = None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dn0z(YKHO):\n with nput.utils.temporary_directory() as z_es:\n MnSj = YKHO.get_implicit_template_script(z_es)\n MnSj['options']['resume_setup'] = True\n _x6t = MnSj['options']['default_number_of_iterations']\n MnSj['samplers'] = {'my-sampler1': {'type': 'ReplicaExchangeSampler', ...
[ "0.6515116", "0.6461849", "0.6384936", "0.628581", "0.6170763", "0.59607005", "0.5916784", "0.5865914", "0.58441645", "0.5788901", "0.5703414", "0.5671846", "0.5613792", "0.5596434", "0.55431056", "0.5529666", "0.54254794", "0.5417996", "0.53996223", "0.5384365", "0.5327594",...
0.53369474
20
We should be able to coerce both keys and values.
def DZyV(): @Y84L def sHQo(SmK3: {int: str}): for H5ew, BWXx in SmK3.items(): assert isinstance(H5ew, int) assert isinstance(BWXx, str) sHQo(something={123: 'abc', 2314: 12312, '123': 'abc'})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RChb(Emd4, H5ew, BWXx):\n if isinstance(BWXx, Emd4):\n return BWXx\n if isinstance(BWXx, dict):\n return wWD2.coerce(H5ew, BWXx)\n if isinstance(BWXx, list):\n return ad5I.coerce(H5ew, BWXx)\n return super().coerce(H5ew, BWXx)", "def RChb(Emd4, H5ew, BWXx):\n if not isinst...
[ "0.66428775", "0.644114", "0.631059", "0.6216179", "0.59431624", "0.59283566", "0.58532697", "0.58013433", "0.5754183", "0.57387424", "0.57219034", "0.57110184", "0.56964326", "0.56881064", "0.56483537", "0.5602489", "0.55659014", "0.54999113", "0.54999065", "0.5495686", "0.5...
0.6760135
0
Ensure the error message received when a value should be an iterable.
def UBZY(): @Y84L def sHQo(vGaq: (float, float)): pass with trZe.raises(TypeError) as P1dF: sHQo(12) assert P1dF.exconly() == 'TypeError: Argument length mismatch. Expected a tuple of float, float.'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ez_H(YKHO, BWXx):\n if not hasattr(BWXx, '__iter__'):\n raise AssertionError(f'{BWXx} is not a valid iterable type')\n return BWXx", "def DDqk(BWXx):\n return isinstance(BWXx, list) or isinstance(BWXx, tuple)", "def IYlX(nPrm):\n if isinstance(nPrm, (list, tuple, type(None))) is not True...
[ "0.7784095", "0.7031291", "0.68781084", "0.6853101", "0.6803907", "0.67837614", "0.65035963", "0.65023917", "0.64103526", "0.63571596", "0.6318355", "0.6266715", "0.62089264", "0.6175737", "0.61707807", "0.61684364", "0.6166309", "0.6139344", "0.613463", "0.61149335", "0.6101...
0.0
-1
Assert email vars in email. value_list is a list with email var names and values eg values_list = ['VAR_1', 'var_1_value', VAR_2, var_2_value]. merge_vars is a list of dictionaries
def VAqR(YKHO, w9Ce, IC2L): RNym = YKHO._get_merge_vars_keys_values(w9Ce) for BWXx in IC2L: YKHO.assertIn(BWXx, RNym)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vIV5(IzrF):\n if IzrF:\n IzrF = IzrF.replace(' ', '')\n if ',' in IzrF:\n IzrF = IzrF.replace(',', ';')\n IzrF = IzrF.split(';')\n for Co_D in IzrF:\n if len(Co_D.split('@')) != 2:\n raise W66h('Invalid mail address: %s' % Co_D)\n retur...
[ "0.51052976", "0.503237", "0.49169227", "0.48936918", "0.487811", "0.48727146", "0.48643276", "0.4791017", "0.4767188", "0.47560823", "0.4685153", "0.46562046", "0.46514374", "0.46447858", "0.4549479", "0.4547794", "0.45294523", "0.4524114", "0.4499285", "0.44965535", "0.4491...
0.64705205
0
percentile minmax normalization from mricron
def KpKA(nPrm: np.ndarray, yArv: int=1) -> oyIN.ndarray: msHZ = oyIN.percentile(nPrm, yArv) sC07 = oyIN.percentile(nPrm, 100 - yArv) nPrm[nPrm >= sC07] = sC07 nPrm[nPrm <= msHZ] = msHZ return nPrm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bcW2(WKvO):\n re6M = oyIN.percentile(WKvO, 98)\n wBZN = oyIN.percentile(WKvO, 2)\n WKvO = (WKvO - wBZN) / (re6M - wBZN)\n WKvO = WKvO.clip(0, 1)\n return WKvO", "def bcW2(WKvO):\n re6M = oyIN.percentile(WKvO, 98)\n wBZN = oyIN.percentile(WKvO, 2)\n WKvO = (WKvO - wBZN) / (re6M - wBZN)...
[ "0.6984449", "0.6984449", "0.6854181", "0.657489", "0.654012", "0.6374417", "0.6374417", "0.6244678", "0.6147104", "0.6138276", "0.6134927", "0.6103464", "0.60930365", "0.60615635", "0.6056778", "0.6041397", "0.604043", "0.60389805", "0.60320675", "0.6013818", "0.5977459", ...
0.6635372
3
Return a nonnaive, timezoneaware datetime object representing the current UTC time.
def h5YN(): return UMRH(JRYC.utcnow())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BosD() -> qcWV:\n return qcWV.now(rIAI.utc)", "def wj6w() -> qcWV.datetime:\n return qcWV.datetime.utcnow().replace(tzinfo=FXGE.UTC)", "def SsoH() -> qcWV:\n return qcWV.now(rIAI.utc)", "def GHKn(yl4j='UTC'):\n if yl4j != 'UTC':\n raise NotImplementedError()\n return qcWV.datetime.u...
[ "0.8154258", "0.8108714", "0.80793", "0.79203063", "0.7919413", "0.78831565", "0.7870782", "0.78115773", "0.7806138", "0.7711203", "0.76865727", "0.75098777", "0.7408525", "0.7405564", "0.73967373", "0.73967373", "0.73540395", "0.7351858", "0.7347884", "0.73343015", "0.731173...
0.711821
28
Return a nonnaive, timezoneaware datetime object for the UTC timezone representing the given millisecondprecision UTC timestamp.
def IIXw(i8WE): return UMRH(JRYC.utcfromtimestamp(i8WE / 1000.0))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gUmT(E3oo: float, pner: tzinfo=wyKz) -> qcWV:\n B8aT = qcWV.fromtimestamp(E3oo, tz=wyKz)\n return FPLx(B8aT, pner)", "def ArC_(E3oo):\n return qcWV.utcfromtimestamp(E3oo).replace(tzinfo=FXGE.utc)", "def Pe3w(E3oo, TYhG=FXGE.utc):\n if isinstance(E3oo, jKi7.string_types):\n E3oo = float(E...
[ "0.6887081", "0.67324805", "0.65992945", "0.63663137", "0.63468874", "0.6339635", "0.6305643", "0.62278867", "0.62122345", "0.61936194", "0.61156034", "0.6111282", "0.6111282", "0.61079186", "0.60879314", "0.60730815", "0.6072521", "0.6053845", "0.6043639", "0.6009313", "0.59...
0.5444415
65
Return a nonnaive, timezoneaware datetime object for the UTC timezone of the given naive datetime object.
def UMRH(_c1T): return FXGE.utc.localize(_c1T)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VnpX(ppPa: datetime.datetime) -> qcWV.datetime:\n UZor = qcWV.timezone(qcWV.timedelta(seconds=0))\n return ppPa.astimezone(UZor).replace(tzinfo=None)", "def UNGT(JRYC):\n if type(JRYC) != qcWV.datetime:\n raise TypeError(f'dt must be type datetime.datetime, not {type(JRYC)}')\n if JRYC.tzi...
[ "0.7751766", "0.73286957", "0.7206129", "0.7127429", "0.7083304", "0.707239", "0.6938975", "0.676107", "0.67442095", "0.66904974", "0.6687902", "0.6657082", "0.66413766", "0.6593759", "0.65571004", "0.6496759", "0.6463543", "0.6447047", "0.64410704", "0.6437082", "0.64023274"...
0.56572044
90
Checks that matching metrics is correct when custom columns are used.
def YM8x(YKHO): KFbf = Ji4T(WYG0.HEAVY_UP, pretest_data=YKHO.test_data, time_window_for_design=YKHO.design_window, time_window_for_eval=YKHO.evaluation_window, matching_metrics={'metric': 1.0}) YKHO.assertDictEqual(KFbf._matching_metrics, {'response': 0.0, 'spend': 0.0, 'metric': 1.0})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DRPI(Fi1d):\n TGZL = []\n for G1Hx, Ty9i in Fi1d.items():\n vXX7 = 'Custom Column: ' + G1Hx\n kULu = 'Column Description: ' + Ty9i\n if not ZbWC.match(mUUz, G1Hx):\n Ol8d = QRd4(vXX7, C9aS)\n TGZL.append(Ol8d)\n if not ZbWC.match(mUUz, Ty9i):\n ...
[ "0.6424867", "0.62638515", "0.62408894", "0.61916", "0.6141973", "0.59872794", "0.5919444", "0.5906924", "0.58839124", "0.5855345", "0.5851866", "0.58319426", "0.58122677", "0.5767703", "0.5762941", "0.5725376", "0.5715428", "0.56894904", "0.564944", "0.56136674", "0.5612972"...
0.71387756
0
Checks an error is raised if the column specified as response is missing.
def DzlA(YKHO): with YKHO.assertRaisesRegex(ValueError, 'revenue is not available in pretest_data'): bGrB = Ji4T(WYG0.HEAVY_UP, pretest_data=YKHO.test_data, time_window_for_design=YKHO.design_window, time_window_for_eval=YKHO.evaluation_window, response='revenue', matching_metrics={'response': 1.0})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wrDR(YKHO):\n QBPu = YKHO.spark.createDataFrame(data=[('a',)], schema=JGNz([I0u1('baz', M9Gz())]))\n with cR0t(EoGv):\n YKHO.check.run(QBPu)", "def wysk(YKHO):\n jQ3Z = rLdf.DataFrame({'notlat': [1, 2, 3], 'lon': [11, 12, 13]})\n with YKHO.assertRaises(Exception) as OaeV:\n aevO.map...
[ "0.6921714", "0.6843131", "0.6812693", "0.6687044", "0.6596847", "0.65352863", "0.6481303", "0.6472438", "0.6429431", "0.6368351", "0.6337951", "0.6335738", "0.63041055", "0.6295739", "0.62406284", "0.6238891", "0.61448956", "0.61409754", "0.61281246", "0.61120534", "0.600841...
0.0
-1
Checks an error is raised if the column specified as spend is missing.
def UTKM(YKHO): with YKHO.assertRaisesRegex(ValueError, 'cost is not available in pretest_data'): bGrB = Ji4T(WYG0.HEAVY_UP, pretest_data=YKHO.test_data, time_window_for_design=YKHO.design_window, time_window_for_eval=YKHO.evaluation_window, spend_proxy='cost', matching_metrics={'response': 1.0})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wrDR(YKHO):\n QBPu = YKHO.spark.createDataFrame(data=[('a',)], schema=JGNz([I0u1('baz', M9Gz())]))\n with cR0t(EoGv):\n YKHO.check.run(QBPu)", "def WFhG(Emd4, zFiD):\n try:\n mjHr = Emd4.get_field(zFiD, Emd4._AMOUNT_COL_NAME)\n except (ValueError, IndexError, KeyError):\n ret...
[ "0.62697387", "0.62528425", "0.61799204", "0.588628", "0.5872444", "0.5840354", "0.57471985", "0.55836123", "0.55610335", "0.5543642", "0.5526747", "0.5464893", "0.5374478", "0.52955866", "0.52947986", "0.5278426", "0.52430004", "0.52384275", "0.52342325", "0.5232288", "0.522...
0.0
-1
Checks pairs are correctly created when matching_metrics is specified.
def SX_j(YKHO): YKHO.test_class._matching_metrics = {'response': 1.0, 'spend': 0.5} YKHO.test_class.create_geo_pairs(use_cross_validation=True) YKHO.test_class.create_geo_level_eval_data() YKHO.test_class.geo_level_eval_data[0].sort_values(by='geo', inplace=True) YKHO.test_class.geo_level_eval_data[...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l6A3(YKHO):\n kgDL = [rLdf.DataFrame({'geo1': [1, 2], 'geo2': [3, 4], 'pair': [1, 1]})]\n with YKHO.assertRaisesRegex(ValueError, 'a pair should only have two geos.'):\n Ji4T(WYG0.HEAVY_UP, pretest_data=YKHO.test_data, time_window_for_design=YKHO.design_window, time_window_for_eval=YKHO.evaluation...
[ "0.6394126", "0.6326114", "0.6263803", "0.61781764", "0.61238843", "0.61099213", "0.610186", "0.6095023", "0.60889626", "0.6031706", "0.5990536", "0.5971731", "0.58707994", "0.5816052", "0.576236", "0.57584065", "0.5722042", "0.5704836", "0.56930596", "0.56879574", "0.5674097...
0.687965
0
Checks geo level data are the same whether we pass or not the same pairs.
def X1NB(YKHO): YKHO.test_class._matching_metrics = {'response': 1.0, 'spend': 0.5} YKHO.test_class.create_geo_pairs(use_cross_validation=True) YKHO.test_class.create_geo_level_eval_data() m1WO = [rLdf.DataFrame({'geo1': [1, 4], 'geo2': [3, 2], 'pair': [2, 1]})] Buc1 = Ji4T(WYG0.HEAVY_UP, pretest_da...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sCYL(YKHO):\n kgDL = [rLdf.DataFrame({'geo1': [1, 2], 'geo2': [3, 4], 'pair': [1, 2]}), rLdf.DataFrame({'geo1': [2], 'geo2': [4], 'pair': [2]})]\n Buc1 = Ji4T(WYG0.HEAVY_UP, pretest_data=YKHO.test_data, time_window_for_design=YKHO.design_window, time_window_for_eval=YKHO.evaluation_window, matching_metri...
[ "0.6965489", "0.6689868", "0.66069275", "0.65917724", "0.6465422", "0.6457013", "0.64382416", "0.6423893", "0.64047706", "0.6104063", "0.60927045", "0.6005924", "0.5967563", "0.5924918", "0.5919197", "0.58980715", "0.5896205", "0.58735794", "0.5829971", "0.5828158", "0.581853...
0.7615281
0
Checks the calculation with negative values in iroas_list.
def lLoJ(YKHO): Cc00 = rLdf.concat([YKHO.test_data, YKHO.add_pair], sort=False) Buc1 = Ji4T(WYG0.HEAVY_UP, pretest_data=Cc00, time_window_for_design=YKHO.design_window, time_window_for_eval=YKHO.evaluation_window, matching_metrics={'response': 1.0}) for Inc0 in WYG0: if Inc0 == WYG0.CONTROL: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def awvo(YKHO):\n oQ6W = [[-1, -1, -1, 0, 0, 0], [0, -1, 0, 0, 0, 0], [-1, -1, -1, 0, 0, 0], [0, -9, 2, -4, -4, 0], [-7, 0, 0, -2, 0, 0], [0, 0, -1, -2, -4, 0]]\n YKHO.assertEqual(QN5x(oQ6W), 0)", "def XeP3(YKHO):\n wAVY = [-1, -5, -3, -4]\n aEqx = [-1, -6, -9, -13]\n RfIB.running_sum(wAVY)\n Y...
[ "0.6291397", "0.6225531", "0.6114925", "0.59850025", "0.5969392", "0.59353596", "0.59150887", "0.586503", "0.58563614", "0.58259255", "0.580773", "0.576632", "0.5758486", "0.571908", "0.5713684", "0.56692547", "0.566484", "0.56017846", "0.5585194", "0.55750257", "0.5501258", ...
0.57869434
11
Check all assignments with a too large geo are rejected.
def dOTw(YKHO): Skyo = rLdf.DataFrame({'date': rLdf.to_datetime(['2019-01-01', '2019-10-01'] * 20), 'geo': sorted(list(range(20)) * 2), 'response': range(100, 140), 'spend': range(40)}) Buc1 = Ji4T(WYG0.HEAVY_UP, pretest_data=Skyo, time_window_for_design=YKHO.design_window, time_window_for_eval=YKHO.evaluation_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMEg(YKHO):\n for Inc0 in WYG0:\n if Inc0 == WYG0.CONTROL:\n continue\n YKHO.test_class._geox_type = Inc0\n with YKHO.assertRaisesRegex(ValueError, 'All pairings were rejected due to less than 10 pairs in the design.'):\n YKHO.test_class.report_candidate_designs(bu...
[ "0.6518037", "0.6310688", "0.6293096", "0.60979944", "0.5902434", "0.5791618", "0.5776161", "0.5771639", "0.57166225", "0.56490976", "0.5613702", "0.5467408", "0.5456767", "0.5437315", "0.5396887", "0.5383301", "0.5363179", "0.534781", "0.53435796", "0.5335138", "0.5321679", ...
0.61391854
3
Tests whether ``GuildJoinRequest.copy`` works as intended.
def yPgU(): ttuf = mv1M.precreate(202305170026, name='Koishi') cEA4 = cJ1g(2016, 5, 14) aJ2e = cJ1g(2017, 7, 6) GQ8D = [kL94(), kL94()] LRlk = 202305170027 VE05 = cJ1g(2018, 4, 4) SIzi = 'Koishi is better' jGRS = Ed4i.rejected CBIr = mv1M.precreate(202305170028, name='Koisheep') ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lzqS():\n ttuf = mv1M.precreate(202305170029, name='Koishi')\n cEA4 = cJ1g(2016, 5, 14)\n aJ2e = cJ1g(2017, 7, 6)\n GQ8D = [kL94(), kL94()]\n LRlk = 202305170030\n VE05 = cJ1g(2018, 4, 4)\n SIzi = 'Koishi is better'\n jGRS = Ed4i.rejected\n CBIr = mv1M.precreate(202305170031, name='K...
[ "0.76607436", "0.7598416", "0.7206342", "0.70395315", "0.690234", "0.59682065", "0.59415877", "0.5918088", "0.5646202", "0.5607029", "0.5599134", "0.5585532", "0.5553137", "0.55351955", "0.55151415", "0.54757655", "0.5446442", "0.54364395", "0.5431593", "0.5427204", "0.535932...
0.8029556
0
Tests whether ``GuildJoinRequest.copy_with`` works as intended.
def lzqS(): ttuf = mv1M.precreate(202305170029, name='Koishi') cEA4 = cJ1g(2016, 5, 14) aJ2e = cJ1g(2017, 7, 6) GQ8D = [kL94(), kL94()] LRlk = 202305170030 VE05 = cJ1g(2018, 4, 4) SIzi = 'Koishi is better' jGRS = Ed4i.rejected CBIr = mv1M.precreate(202305170031, name='Koisheep') ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BW6H():\n KQjr = mv1M.precreate(202305170032, name='Koishi')\n LmU9 = cJ1g(2016, 5, 14)\n eRCt = cJ1g(2017, 7, 6)\n Hzyr = [kL94(), kL94()]\n Uz3M = 202305170033\n v2kx = cJ1g(2018, 4, 4)\n SzT7 = 'Koishi is better'\n MwGg = Ed4i.rejected\n zuQi = mv1M.precreate(202305170034, name='K...
[ "0.78760326", "0.7804333", "0.7492444", "0.70733243", "0.666857", "0.5941189", "0.58620644", "0.57350147", "0.5664402", "0.5636084", "0.5625761", "0.5531903", "0.55028236", "0.5483786", "0.54580885", "0.5456632", "0.54441595", "0.54389566", "0.5431701", "0.53539276", "0.53002...
0.7920338
0
Tests whether ``GuildJoinRequest.copy_with`` works as intended.
def BW6H(): KQjr = mv1M.precreate(202305170032, name='Koishi') LmU9 = cJ1g(2016, 5, 14) eRCt = cJ1g(2017, 7, 6) Hzyr = [kL94(), kL94()] Uz3M = 202305170033 v2kx = cJ1g(2018, 4, 4) SzT7 = 'Koishi is better' MwGg = Ed4i.rejected zuQi = mv1M.precreate(202305170034, name='Koisheep') ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lzqS():\n ttuf = mv1M.precreate(202305170029, name='Koishi')\n cEA4 = cJ1g(2016, 5, 14)\n aJ2e = cJ1g(2017, 7, 6)\n GQ8D = [kL94(), kL94()]\n LRlk = 202305170030\n VE05 = cJ1g(2018, 4, 4)\n SIzi = 'Koishi is better'\n jGRS = Ed4i.rejected\n CBIr = mv1M.precreate(202305170031, name='K...
[ "0.7920338", "0.7804333", "0.7492444", "0.70733243", "0.666857", "0.5941189", "0.58620644", "0.57350147", "0.5664402", "0.5636084", "0.5625761", "0.5531903", "0.55028236", "0.5483786", "0.54580885", "0.5456632", "0.54441595", "0.54389566", "0.5431701", "0.53539276", "0.530024...
0.78760326
1
Tests whether ``GuildJoinRequest.user`` works as intended.
def W4OZ(): uJjO = 202305170040 CBIr = mv1M.precreate(uJjO, name='Koishi') tvqc = V4s4(user=CBIr) hlel = tvqc.user_id Qg87.assert_instance(hlel, int) Qg87.assert_eq(hlel, uJjO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YuLW():\n uJjO = 202305160037\n tvqc = suYU(user_id=uJjO)\n hlel = tvqc.user\n Qg87.assert_instance(hlel, Si9h)\n Qg87.assert_eq(hlel.id, uJjO)", "def V5Hp(YKHO, CBIr):\n if not CBIr.is_active or CBIr.is_anonymous():\n return False\n vmMD = YKHO.check_membership(CBIr)\n if vmMD...
[ "0.68904227", "0.6755829", "0.6531361", "0.6418835", "0.62129945", "0.62129945", "0.60802335", "0.602413", "0.5972484", "0.5948083", "0.5905936", "0.5844805", "0.58197963", "0.5756364", "0.5749274", "0.57475656", "0.5735924", "0.5731473", "0.5722582", "0.57184786", "0.5663878...
0.7502258
0
Tests whether ``GuildJoinRequest.iter_form_responses`` works as intended.
def V_gQ(): py3c = kL94() Cjt7 = kL94() for UnuI, sGEu in ((None, []), ([Cjt7], [Cjt7]), ([py3c, Cjt7], [py3c, Cjt7])): tvqc = V4s4(form_responses=UnuI) hlel = [*tvqc.iter_form_responses()] Qg87.assert_eq(hlel, sGEu)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IXcf(YKHO):\n L03z = YKHO.resp.context['form']\n YKHO.assertIsInstance(L03z, jfMG)", "def eH5e(YKHO):\n geh0 = YKHO.client.get(YKHO.url)\n k_b7 = geh0.context.get('first_author_form')\n _VzH = geh0.context.get('authors_fs')\n McE7 = geh0.context.get('book_form')\n da1S = geh0.context.get...
[ "0.5541458", "0.54797256", "0.5383552", "0.52934766", "0.52596617", "0.52290154", "0.52258825", "0.51692307", "0.5149638", "0.51132447", "0.50784683", "0.50692415", "0.5053933", "0.5053454", "0.5037767", "0.5004849", "0.49907207", "0.4972271", "0.49295655", "0.48741913", "0.4...
0.8440957
0
Return the calibrated flux at the transformed position x
def shSu(YKHO, WKvO): return YKHO.cal_spec.get_flux(YKHO(WKvO))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def shSu(YKHO) -> biRF:\n try:\n return biRF(YKHO._data['Flux'], YKHO._data.setdefault('FluxError', 0.0))\n except KeyError:\n return 1 / YKHO.pixelsizex / YKHO.pixelsizey / biRF(YKHO._data['NormFactor'], YKHO._data.setdefault('NormFactorError', 0.0))", "def b7La(YKHO, niGN, shSu, ZbiE, CSPF)...
[ "0.6305932", "0.6122351", "0.61079925", "0.60445327", "0.60138345", "0.59496135", "0.59249914", "0.5902242", "0.5895044", "0.58681285", "0.5867735", "0.58602226", "0.58382535", "0.58375496", "0.58217", "0.5759495", "0.5754971", "0.57394314", "0.5710734", "0.57101035", "0.5693...
0.78356826
0
Returns the actual number of nodes in the given tree after pruning. This differs from the `tree.node_count` property, which contains the number of nodes before pruning. Updating this value would break other features since the underlying data structures still have their original sizes.
def p37C(J_Es): return (J_Es.n_node_samples > 0).sum()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AHQ7(YKHO) -> int:\n return len(YKHO.nodes)", "def UHFx(YKHO):\n return YKHO.__tree.node_count", "def AHQ7(YKHO):\n return YKHO._ll_tree_sequence.get_num_trees()", "def VjyD(YKHO):\n return len(YKHO.data_kd)", "def h4to(YKHO, Q6kx):\n if Q6kx == None:\n return 0\n rDAo = 1\n ...
[ "0.75873274", "0.74049246", "0.73991156", "0.72687227", "0.72336507", "0.72197115", "0.71004504", "0.70869845", "0.70869845", "0.70720327", "0.706207", "0.7000754", "0.6995434", "0.69921255", "0.69874674", "0.6959695", "0.6940743", "0.69186306", "0.6913221", "0.6856822", "0.6...
0.73280436
3
Returns the number of leaves.
def AfXs(J_Es): return ((J_Es.n_node_samples > 0) & (J_Es.feature == Qdh7)).sum()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ARYw(YKHO) -> int:\n if YKHO.root is None:\n return 0\n return YKHO.count_helper(YKHO.root)", "def ARYw(YKHO) -> int:\n if YKHO.root is None:\n return 0\n return YKHO.count_leaves_helper(YKHO.root)", "def W8Ya(YKHO) -> int:\n if YKHO.children == []:\n return 1\n else:...
[ "0.85978115", "0.83787316", "0.82263", "0.81612337", "0.78963137", "0.76902026", "0.7605821", "0.7436115", "0.73381245", "0.73281425", "0.723369", "0.7184199", "0.7143546", "0.7106629", "0.7078075", "0.706814", "0.704728", "0.7039034", "0.70122105", "0.6969123", "0.6941357", ...
0.7873495
5
Convert the node with the given ID to a leaf, pruning away its children.
def Kipq(YKHO, Lnes, fz7m): YKHO._kill_node(YKHO.tree.children_left[Lnes], fz7m) YKHO._kill_node(YKHO.tree.children_right[Lnes], fz7m) YKHO._unlink_children(Lnes) YKHO.tree.feature[Lnes] = Qdh7 YKHO.tree.impurity[Lnes] = 0 YKHO.tree.threshold[Lnes] = Qdh7
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def X4io(YKHO, id):\n assert id in YKHO.node_ids, 'Node id does not exist in tree'\n assert id != YKHO.root.id, 'Cannot prune at root node'\n YKHO.get_node_by_id(id).parent.remove_child(id)\n YKHO.remove_child_nodes(id)", "def loae(YKHO, Lnes):\n return YKHO.tree.children_left[Lnes] == lNA6", "d...
[ "0.64349", "0.62493217", "0.6030108", "0.5816592", "0.564056", "0.55450803", "0.54807913", "0.5388099", "0.5380716", "0.5345132", "0.53075975", "0.5295506", "0.52422327", "0.5199169", "0.51945", "0.5169452", "0.516804", "0.5157946", "0.5155557", "0.513278", "0.512966", "0.5...
0.7639113
0
Test error with an invalid provider id.
def gP9L(YKHO): YKHO.ocp_data.update({'source_uuids': ['1dd7204c-72c4-4ec4-95bc-d5c447688b27']}) with LCjI(YKHO.tenant): ZMzz = rYrD(data=YKHO.ocp_data, context=YKHO.request_context) with YKHO.assertRaises(IyFz.ValidationError): if ZMzz.is_valid(raise_exception=True): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dfxm(ZOi9: str) -> None:\n GO9R = _K95()\n if ZOi9 not in GO9R:\n raise RQX2(f'Supplied provider {ZOi9} is not in supported list of providers {GO9R}.')", "def K57T(YKHO):\n r44h = 'Unparsable course_id'\n with YKHO.assertRaisesRegex(i15K, r44h):\n rOAL('export_olx', 'InvalidCourseID...
[ "0.67632014", "0.66781193", "0.6626693", "0.6573218", "0.64181876", "0.6378821", "0.6365212", "0.63023674", "0.6300867", "0.6290273", "0.6272328", "0.625435", "0.62524533", "0.6219248", "0.6210451", "0.61967003", "0.6172771", "0.61439645", "0.6102068", "0.6083161", "0.60818",...
0.666184
2
Test error when trying to create an empty rate.
def QbaC(YKHO): YKHO.ocp_data['rates'][0]['tiered_rates'] = [] with LCjI(YKHO.tenant): ZMzz = rYrD(data=YKHO.ocp_data, context=YKHO.request_context) with YKHO.assertRaises(IyFz.ValidationError): if ZMzz.is_valid(raise_exception=True): ZMzz.save()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tW_E(YKHO):\n YKHO.ocp_data['rates'][0].pop('tiered_rates')\n YKHO.ocp_data['rates'][0]['bad_rates'] = []\n with LCjI(YKHO.tenant):\n ZMzz = rYrD(data=YKHO.ocp_data, context=YKHO.request_context)\n with YKHO.assertRaises(IyFz.ValidationError):\n if ZMzz.is_valid(raise_exceptio...
[ "0.71448827", "0.7117846", "0.71133024", "0.69334674", "0.6767911", "0.6554728", "0.65060806", "0.6418866", "0.64169073", "0.6360861", "0.63442135", "0.63184583", "0.62939966", "0.62226033", "0.6201013", "0.619982", "0.6199733", "0.61617976", "0.6139146", "0.61344254", "0.613...
0.76443267
0
Test error when trying to create a negative tiered usage_end.
def CJ9p(YKHO): YKHO.ocp_data['rates'][0]['tiered_rates'][0]['usage'] = {'usage_start': 10.0, 'usage_end': float(round(ZjSO(tuKI.random()), 6) * -1)} with LCjI(YKHO.tenant): ZMzz = rYrD(data=YKHO.ocp_data, context=YKHO.request_context) with YKHO.assertRaises(IyFz.ValidationError): if...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def feOt(YKHO):\n YKHO.ocp_data['rates'][0]['tiered_rates'][0]['usage'] = {'usage_start': float(round(ZjSO(tuKI.random()), 6) * -1), 'usage_end': 20.0}\n with LCjI(YKHO.tenant):\n ZMzz = rYrD(data=YKHO.ocp_data, context=YKHO.request_context)\n with YKHO.assertRaises(IyFz.ValidationError):\n ...
[ "0.7689643", "0.7423699", "0.7006133", "0.6990759", "0.68274146", "0.6688618", "0.6572525", "0.63987005", "0.63296044", "0.62030065", "0.615616", "0.61363685", "0.61202955", "0.6092118", "0.60778975", "0.60496855", "0.6036879", "0.6026556", "0.6020249", "0.60163254", "0.60161...
0.8067233
0
Test that usage_start greater than a usage end fails
def wnbE(YKHO): oqYj = [{'usage_start': 10, 'usage_end': 2}] YKHO.basic_model['rates'][0]['tag_rates'] = sNRt(tag_values=oqYj) with LCjI(YKHO.tenant): ZMzz = rYrD(data=YKHO.basic_model, context=YKHO.request_context) with YKHO.assertRaises(IyFz.ValidationError): YKHO.assertFalse(Z...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aQHO():\n with trZe.raises(_okJ):\n sBY3([[1, 2], [5, 3]])", "def Rmad(ReUY):\n bGrB, mS46, RQ6U = ReUY\n jvSB = _c1T.today() + fCoM(days=6)\n yKcO = qcWV.combine(jvSB, ITS7(12, 30))\n Os4s = yKcO - fCoM(days=1)\n baE4(ITwz, DQrD, mS46.username, RQ6U, True, yKcO, Os4s)", "def miqV(...
[ "0.68418074", "0.65183944", "0.64100623", "0.6301605", "0.62582237", "0.6256351", "0.6194473", "0.61292624", "0.60796773", "0.6072625", "0.60472953", "0.6022867", "0.60205466", "0.6016129", "0.59997296", "0.59651965", "0.5945999", "0.5940881", "0.59050167", "0.58967", "0.5884...
0.62445045
6
Test validate source uuid error.
def WUzb(YKHO): DgUE = {'tag_value': 'key_one', 'value': 0.2} YKHO.basic_model['rates'][0]['tag_rates'] = sNRt(tag_values=[DgUE]) with LCjI(YKHO.tenant): ZMzz = rYrD(data=YKHO.basic_model, context=YKHO.request_context) with YKHO.assertRaises(IyFz.ValidationError): ZMzz.validate_s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Flfh(nPrm):\n if not gHz8.is_uuid_like(nPrm):\n raise Bx6I.DiagnoseException(\"'%s' is not a valid UUID\" % nPrm)", "def pB46():\n k69i = '7cfb2470-b600-4eb3-a2cd-c1439e45b91g'\n r8hN = hOPu.UUID.match(k69i)\n assert r8hN is None, 'Canned RegEx uiid test succeeded for %s while it should no...
[ "0.71822476", "0.7001486", "0.68985564", "0.68224394", "0.67108595", "0.6688417", "0.6613139", "0.6507473", "0.6502515", "0.64869213", "0.6481389", "0.6477423", "0.6436688", "0.6434514", "0.64252555", "0.63792676", "0.6337465", "0.6265929", "0.62517154", "0.62136704", "0.6190...
0.76884663
0
Test if tagged rates do not match currency raises a validation error.
def qGEQ(YKHO): DgUE = {'tag_value': 'key_one', 'value': 0.2, 'unit': 'JPY'} YKHO.basic_model['rates'][0]['tag_rates'] = sNRt(tag_values=[DgUE]) with LCjI(YKHO.tenant): ZMzz = rYrD(data=YKHO.basic_model, context=YKHO.request_context) with YKHO.assertRaises(IyFz.ValidationError): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y0pY(YKHO):\n oqYj = [{'value': -0.2}]\n YKHO.basic_model['rates'][0]['tag_rates'] = sNRt(tag_values=oqYj)\n with LCjI(YKHO.tenant):\n ZMzz = rYrD(data=YKHO.basic_model, context=YKHO.request_context)\n with YKHO.assertRaises(IyFz.ValidationError):\n YKHO.assertFalse(ZMzz.is_va...
[ "0.74103373", "0.7091159", "0.7044231", "0.70375276", "0.68177766", "0.67642385", "0.6738917", "0.67341727", "0.6687807", "0.66032475", "0.65766674", "0.6547091", "0.637241", "0.63433045", "0.62080646", "0.6162519", "0.6153849", "0.61069226", "0.6105732", "0.60791004", "0.607...
0.78333116
0
Test that a none distribution_info object uses default options.
def a86h(YKHO): Lkra = {'distribution_type': LzaM.CPU_DISTRIBUTION, 'platform_cost': True, 'worker_cost': True} with LCjI(YKHO.tenant): KAOR = None ZMzz = rYrD(data=YKHO.ocp_data, context=YKHO.request_context) if ZMzz.is_valid(raise_exception=True): KAOR = ZMzz.save() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def L6Sh(YKHO):\n Lkra = {'distribution_type': LzaM.CPU_DISTRIBUTION, 'platform_cost': True, 'worker_cost': True}\n YKHO.ocp_data['distribution_info'] = {}\n with LCjI(YKHO.tenant):\n KAOR = None\n ZMzz = rYrD(data=YKHO.ocp_data, context=YKHO.request_context)\n if ZMzz.is_valid(raise_...
[ "0.73588645", "0.6633837", "0.6600473", "0.6319721", "0.6290802", "0.6281371", "0.62301576", "0.6215893", "0.61732876", "0.61114913", "0.610008", "0.6079119", "0.60456014", "0.6042367", "0.60312593", "0.60198504", "0.60163844", "0.59910524", "0.5973624", "0.5956456", "0.59550...
0.7377984
0
Test that an empty distribution_info object returns default options.
def L6Sh(YKHO): Lkra = {'distribution_type': LzaM.CPU_DISTRIBUTION, 'platform_cost': True, 'worker_cost': True} YKHO.ocp_data['distribution_info'] = {} with LCjI(YKHO.tenant): KAOR = None ZMzz = rYrD(data=YKHO.ocp_data, context=YKHO.request_context) if ZMzz.is_valid(raise_exception=T...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a86h(YKHO):\n Lkra = {'distribution_type': LzaM.CPU_DISTRIBUTION, 'platform_cost': True, 'worker_cost': True}\n with LCjI(YKHO.tenant):\n KAOR = None\n ZMzz = rYrD(data=YKHO.ocp_data, context=YKHO.request_context)\n if ZMzz.is_valid(raise_exception=True):\n KAOR = ZMzz.sav...
[ "0.74222565", "0.6606047", "0.65748686", "0.6272284", "0.62059647", "0.6183231", "0.61572653", "0.6116565", "0.6092596", "0.60053897", "0.60026395", "0.5967195", "0.5960858", "0.592314", "0.59132314", "0.58770734", "0.5855554", "0.58357805", "0.5833142", "0.5831105", "0.58296...
0.75260514
0
Set up relevant mocks.
def FCbF(YKHO): YKHO.inst = SZCf() YKHO.os_environ_get_patch = DuvM.mock.patch.dict('swift_sharing_tools.publish.os.environ', {'OS_PROJECT_ID': 'project_id', 'SWIFT_SHARING_URL': 'http://example', 'SWIFT_REQUEST_URL': 'http://example'}) YKHO.get_address_mock = DuvM.mock.Mock(return_value='http://example') ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n gnPz.create_mocks()", "def FCbF(YKHO):\n gnPz.create_mocks()", "def FCbF(YKHO):\n gnPz.create_mocks()", "def FCbF(YKHO):\n gnPz.create_mocks()", "def FCbF(YKHO):\n gnPz.create_mocks()", "def FCbF(YKHO):\n gnPz.create_mocks()", "def eCGt():\n YKHO.zorp_mock = FM6F(...
[ "0.8246676", "0.8246676", "0.8246676", "0.8246676", "0.8246676", "0.8246676", "0.76675224", "0.7256418", "0.7249775", "0.7236179", "0.7182452", "0.7146316", "0.71135795", "0.702895", "0.7012231", "0.7004711", "0.6953427", "0.69501853", "0.6928659", "0.6917208", "0.6907015", ...
0.0
-1
Test use of virtual bool operator==
def tMyq(YKHO): import _cppyy kYGz = _cppyy.gbl.v_opeq_base(1) C8tA = _cppyy.gbl.v_opeq_base(1) ftz7 = _cppyy.gbl.v_opeq_base(2) Nu2Y = _cppyy.gbl.v_opeq_base(2) assert kYGz == kYGz assert kYGz == C8tA assert not kYGz == ftz7 assert not kYGz == Nu2Y assert ftz7 == ftz7 assert...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, *qIxc):\n pass", "def xa14(YKHO, *qIxc):\n pass", "def xa14(YKHO, *qIxc):\n pass", "def xa14(YKHO, *qIxc):\n pass", "def xa14(YKHO, *qIxc):\n pass", "def xa14(YKHO, *qIxc):\n pass", "def xa14(YKHO, *qIxc):\n pass", "def xa14(YKHO, *qIxc):\n pass", "def xa14(YK...
[ "0.7468151", "0.7468151", "0.7468151", "0.7468151", "0.7468151", "0.7468151", "0.7468151", "0.7468151", "0.7468151", "0.7468151", "0.7468151", "0.7468151", "0.7468151", "0.7468151", "0.7468151", "0.7468151", "0.7468151", "0.7468151", "0.7468151", "0.7468151", "0.7303349", "...
0.72320783
43
Calculates the entropy in bits of each site (or kmer) in a sequence alignment.
def f6Zb(mIJV, dh16='absolute', KnHV=False, G1Hx=1, CG2P=oyIN.log): if KnHV: hA0w = 1 else: hA0w = 0 mIJV = LYvu(mIJV) aPd6 = len(mIJV[mIJV.index[0]]) cUeP = aPd6 - G1Hx + 1 oqGu = oyIN.zeros(cUeP, dtype=float) for ldvY in oyIN.arange(cUeP): RXmH = [xvNZ(Q6uT, ldvY, G...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oqGu(pEOH):\n wjRY = sum(pEOH)\n xiSW = 0\n for Jm1s in pEOH:\n xiSW += OKcU(Jm1s, wjRY)\n return xiSW", "def oqGu(nPrm):\n tTpl = 0\n ewCu = g760.Counter(nPrm)\n vC9B = len(nPrm)\n for UHFx in ewCu.values():\n niNT = UHFx / vC9B\n tTpl += -niNT * epAf.log2(niNT)\...
[ "0.68068856", "0.66609603", "0.6641473", "0.6543691", "0.6512589", "0.64884704", "0.6485986", "0.64851624", "0.64623606", "0.6438327", "0.64323723", "0.6388064", "0.63875264", "0.63844836", "0.6354675", "0.6352094", "0.6332662", "0.63205934", "0.62933457", "0.62912333", "0.62...
0.62995726
18
Normazlize values of vec inplace to [mn, mx] interval
def LBbg(he6J, RsfQ=1, hgl7=0): he6J -= oyIN.nanmin(he6J) he6J = he6J / oyIN.nanmax(he6J) he6J = he6J * (RsfQ - hgl7) + hgl7 return he6J
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NkkI(he6J):\n T8H5 = oyIN.min(he6J)\n Np5D = oyIN.max(he6J)\n if T8H5 != Np5D:\n jRKZ = (he6J - T8H5) / (Np5D - T8H5)\n return jRKZ\n return he6J", "def NkkI(he6J):\n return he6J / u54L(he6J)", "def OEry(WKvO, wBZN=-5.12, re6M=5.12):\n for YRbF in range(len(WKvO.vect)):\n ...
[ "0.70640945", "0.6896041", "0.68326116", "0.6704414", "0.66292596", "0.6489243", "0.6483377", "0.6474125", "0.64254105", "0.6373898", "0.63691574", "0.63480526", "0.6331625", "0.6326411", "0.632204", "0.6306971", "0.63032454", "0.62970144", "0.6295916", "0.6286131", "0.626961...
0.7029751
1
This function prints and plots the confusion matrix. Normalization can be applied by setting `normalize=True`.
def LwSz(Y8eF, aMgO, NkkI=False, leAC=None, iMGt=QrM1.cm.Reds): if not leAC: if NkkI: leAC = 'Normalized confusion matrix' else: leAC = 'Confusion matrix, without normalization' Bcwd = YsYU(Y8eF, aMgO) if NkkI: Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LwSz(Bcwd, KndY=[0, 1], NkkI=False, leAC='Confusion matrix', RMso=False):\n if NkkI:\n Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]\n print('Normalized confusion matrix')\n else:\n print('Confusion matrix, without normalization')\n if RMso:\n print(Bcwd)"...
[ "0.81920755", "0.8093736", "0.8028212", "0.8017333", "0.79923165", "0.7989431", "0.79789335", "0.7974398", "0.795948", "0.79555666", "0.7935652", "0.7932704", "0.7932632", "0.7929465", "0.7924336", "0.7922666", "0.79221356", "0.7921299", "0.79209703", "0.7920307", "0.7916008"...
0.0
-1
Generate Synthetic Contexts via given mean and variance
def r5mC(YKHO, qIxc): JBMS = [0.2, 0.9, 0.5, 3, 1.1, 0.9, 2, 2.5, 1.6, 1.8] * int(YKHO.dims / 10) SRYB = [3, 2, 4, 3, 3.5, 5.5, 5, 3.5, 5, 3.5] * int(YKHO.dims / 10) uqDQ = YKHO.data(JBMS, SRYB) QkhC = oyIN.max(oyIN.sqrt(oyIN.sum(uqDQ * uqDQ, 2)), 1) for or8S in range(YKHO.users): uqDQ[or8S]...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QDeL(JBMS, SRYB, rrBf=None):\n with ZylS.variable_scope(rrBf, 'gaussian_sample'):\n mvm2 = ZylS.random_normal(ZylS.shape(JBMS), JBMS, ZylS.sqrt(SRYB))\n mvm2.set_shape(JBMS.get_shape())\n return mvm2", "def mvm2(YKHO, JBMS, M1Jx, cDK5, sq3M):\n YKHO.seed_samples(sq3M)\n YKHO.Y_m...
[ "0.61428994", "0.6106671", "0.604166", "0.60313785", "0.5942146", "0.5875524", "0.5866838", "0.58558154", "0.58526", "0.5772521", "0.57706803", "0.57576555", "0.57567716", "0.5745907", "0.57451", "0.5737471", "0.57281774", "0.57055485", "0.5695569", "0.5692652", "0.56873244",...
0.62686765
0
Initialize the perceptron with weights and an activation function. Weights[0] is the threshold value.
def FIMM(YKHO, _mSQ, m2Zb): if len(_mSQ) < 2: raise ValueError('The weight vector should have at least two elements') YKHO.weights = oyIN.array(_mSQ) YKHO.function = m2Zb
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def O1zL(CvxM: Perceptron):\n CvxM.weights = [Zohj.choice([1 - Zohj.random(), -1 + Zohj.random()]) for bGrB in range(CvxM.input_size)]", "def _NHr(_mSQ, oug5, WKvO):\n return eaae(BJ1H(_mSQ, WKvO) + oug5)", "def FIMM(YKHO, vURU='l2', lQ3t=0.001, sSDk=5, t3eI=0):\n print('Initialize model Perceptron')\...
[ "0.7037529", "0.7017507", "0.6753081", "0.66011214", "0.64372844", "0.63793373", "0.6317353", "0.6307274", "0.62973785", "0.62687516", "0.62687516", "0.6254778", "0.6186828", "0.61856526", "0.614779", "0.6139289", "0.61370665", "0.6116154", "0.60953873", "0.60846436", "0.6082...
0.58433455
46
Initialize attributes to describe a car.
def FIMM(YKHO, PEX4, C3ST, lO87): YKHO.make = PEX4 YKHO.model = C3ST YKHO.year = lO87 YKHO.odometer_reading = 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, _6NH):\n super(YKHO.__class__, YKHO).__init__(_6NH)\n YKHO.coordinator_name = _6NH.get_faulty_coordinator_name()\n YKHO.second_at_charge_name = _6NH.get_second_at_charge_name()\n YKHO.coordinated_car_name = _6NH.get_corrected_coordinated_car_name()\n YKHO.following_car_name = _6NH.get...
[ "0.7500984", "0.7397504", "0.6964254", "0.69572306", "0.68612015", "0.671638", "0.6585787", "0.6585787", "0.6585787", "0.6455301", "0.6448016", "0.64400023", "0.6431852", "0.63737345", "0.63079256", "0.6206326", "0.6174237", "0.6162698", "0.61395067", "0.6102099", "0.6102099"...
0.62494457
15
Spaces should be treated as empty string for contact_person
def QBww(YKHO): nPrm = {'language': 1, 'countries': 1, 'start_date_month': '1', 'start_date_day': '1', 'start_date_year': '2015', 'end_date_month': '2', 'end_date_day': '2', 'end_date_year': '2016', 'number': '12345', 'lead_dept': 1, 'contact_person': ' ', 'created_by': 'Vicky Leong'} WheF = AHx3(data=nPrm) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PvwR(P4t4):\n mWFP = P4t4.get(QBiI)\n if mWFP:\n return ' {}'.format(mWFP.split(' ')[0])", "def nrNV(YKHO):\n cntZ = YKHO.contact_first_name\n XVAW = YKHO.contact_last_name\n if cntZ and XVAW:\n return f'{cntZ} {XVAW}'\n return cntZ or XVAW", "def CsP7(Mxk0, bXvx, jgq6):\n ...
[ "0.60656476", "0.6036715", "0.58960855", "0.5879749", "0.5824268", "0.57242966", "0.5672349", "0.56649154", "0.56594753", "0.5648827", "0.56370217", "0.5614726", "0.55946654", "0.5590085", "0.5577823", "0.5556776", "0.55301404", "0.5486221", "0.54791963", "0.5472377", "0.5447...
0.60292935
2
If opponent did not defect in first 7 rounds and the current round is from 8 to 180, return True. Else, return False.
def DImE(xzj7: Player) -> bool: Rq21 = _Zj9 = 7 RAdu = 180 if of0Y(xzj7, _Zj9): return False eHyf = len(xzj7.history) + 1 return Rq21 < eHyf <= RAdu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HOxi(YKHO):\n SMcL = YKHO.compareNumberUser()\n if SMcL == 'equal':\n return True\n else:\n return False", "def HXQk(YKHO, yvGc):\n CwpO = [(0, 1, 2), (3, 4, 5), (6, 7, 8), (0, 3, 6), (1, 4, 7), (2, 5, 8), (0, 4, 8), (2, 4, 6)]\n for _Fqy in CwpO:\n if not oyIN.isnan(yvGc[...
[ "0.7052794", "0.7049814", "0.6860032", "0.6838786", "0.67821", "0.67734504", "0.6751726", "0.67373693", "0.67115057", "0.670947", "0.6709172", "0.67056936", "0.66873807", "0.66754436", "0.6669558", "0.6657937", "0.66558623", "0.66521776", "0.6639915", "0.66145116", "0.6604215...
0.7024104
2
Convert a UTC datetime to a local timezone aware datetime.
def yYe4(B8aT: datetime): B8aT = B8aT.replace(tzinfo=yl4j.gettz('UTC')) return B8aT.astimezone(yl4j.tzlocal())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N2YM(JRYC):\n return JRYC.astimezone(forW)", "def yYe4(B8aT: datetime) -> qcWV:\n if B8aT is None:\n return None\n shus = B8aT.astimezone(yl4j.tzlocal())\n return shus", "def upsW(JRYC):\n if type(JRYC) != qcWV.datetime:\n raise TypeError(f'dt must be type datetime.datetime, no...
[ "0.7900555", "0.782654", "0.7825347", "0.78068715", "0.78055567", "0.7664376", "0.75477296", "0.74883157", "0.7459102", "0.745562", "0.745562", "0.745562", "0.73696595", "0.73594654", "0.7329128", "0.7315518", "0.7225434", "0.7159488", "0.70694953", "0.70017725", "0.69751024"...
0.7658484
6
Convert a local datetime to a UTC timezone aware datetime.
def KR93(shus): shus = shus.replace(tzinfo=yl4j.tzlocal()) return shus.astimezone(yl4j.tzlocal())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KR93(shus: datetime) -> qcWV:\n if shus is None:\n return None\n B8aT = shus.astimezone(yl4j.UTC)\n return B8aT", "def Q4GF(a1PO, FEXa):\n krBy = FEXa.localize(a1PO, is_dst=None)\n AfX1 = krBy.astimezone(FXGE.utc)\n return AfX1", "def lVFF(ppPa):\n return FXGE.utc.localize(ppPa)...
[ "0.8287512", "0.81530267", "0.7727855", "0.7727855", "0.7727855", "0.75681573", "0.74998", "0.73861265", "0.73799914", "0.7366012", "0.73063403", "0.72058237", "0.7192986", "0.71910477", "0.7143651", "0.71182036", "0.71056336", "0.70771176", "0.7045897", "0.70331764", "0.7025...
0.84535724
0
Sets the learning rate to the initial LR decayed by 10 every 30 epochs
def e_63(K0do, qtWj): tspZ = qIxc.lr * 0.1 ** (qtWj // 30) for Lwm5 in K0do.param_groups: Lwm5['lr'] = tspZ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e_63(DJmW, K0do, qtWj, exwG=100):\n DJmW = DJmW * 0.1 ** (qtWj // exwG)\n print('learning rate : ', DJmW)\n for Lwm5 in K0do.param_groups:\n Lwm5['lr'] = DJmW", "def e_63(ouZy, K0do, qtWj, dLlC):\n tspZ = ouZy * 0.3 ** (qtWj // 5)\n if qtWj == dLlC:\n tspZ = tspZ * 0.3\n for L...
[ "0.79134107", "0.7906755", "0.7850054", "0.7775328", "0.773414", "0.7731414", "0.77228016", "0.7721925", "0.77193093", "0.77092254", "0.76932764", "0.76743245", "0.7665481", "0.7665481", "0.7665481", "0.7654962", "0.76418406", "0.7639415", "0.76375794", "0.7626146", "0.762473...
0.7588846
28
Return reward for each bandit. We sample the reward from normal distribution.
def YPaw(YKHO, XeOP): assert XeOP < YKHO.NumofBandits, '[ERROR] un-identified arm' return int(oyIN.random.random() < YKHO.prob[XeOP])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YZnT(YKHO):\n for YRbF in YKHO.REWARDS:\n YKHO.get_reward(YRbF)", "def xyVK(YKHO):\n IvsU = 0.0\n for BWXx in YKHO.Q.itervalues():\n IvsU = IvsU + BWXx\n return IvsU", "def xyVK(YKHO):\n IvsU = 0.0\n for BWXx in YKHO.Q.itervalues():\n IvsU = IvsU + BWXx\n return Iv...
[ "0.6719637", "0.6447742", "0.6447742", "0.64104575", "0.6330021", "0.63227725", "0.63019806", "0.62858886", "0.6284767", "0.6270432", "0.62409127", "0.62245023", "0.62083197", "0.62067246", "0.61971927", "0.61877745", "0.61863387", "0.61597323", "0.6154886", "0.61548436", "0....
0.0
-1
Return reward for each bandit. We sample the reward from normal distribution.
def YPaw(YKHO, XeOP): assert XeOP < YKHO.NumofBandits return oyIN.random.normal(YKHO.MeanList[XeOP], YKHO.sigma, 1)[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YZnT(YKHO):\n for YRbF in YKHO.REWARDS:\n YKHO.get_reward(YRbF)", "def xyVK(YKHO):\n IvsU = 0.0\n for BWXx in YKHO.Q.itervalues():\n IvsU = IvsU + BWXx\n return IvsU", "def xyVK(YKHO):\n IvsU = 0.0\n for BWXx in YKHO.Q.itervalues():\n IvsU = IvsU + BWXx\n return Iv...
[ "0.67188275", "0.64472455", "0.64472455", "0.63289034", "0.6322061", "0.63009375", "0.62848574", "0.6282357", "0.6269222", "0.6239948", "0.622316", "0.6206747", "0.6205615", "0.61963296", "0.6186974", "0.6185128", "0.6158747", "0.6153912", "0.6153713", "0.6151019", "0.6132025...
0.6409784
3
Pad lists (in a list) to make them of equal size and return a tensor.
def Dt8l(UHhk, C7vt, eusk=None, yDqo=ht2j.float, begE=begE): if eusk is None: eusk = max([len(yv6U) for yv6U in UHhk]) S06t = [] for yv6U in UHhk: if len(yv6U) < eusk: S06t.append(yv6U + [C7vt] * (eusk - len(yv6U))) else: S06t.append(yv6U[:eusk]) return ht...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RnIX(fUYa: torch.Tensor, KHPh: int):\n GCiI = len(fUYa)\n wzH_ = max((WKvO.size(0) for WKvO in fUYa))\n hVLt = fUYa[0].new(GCiI, wzH_, *fUYa[0].size()[1:]).fill_(KHPh)\n for YRbF in range(GCiI):\n hVLt[YRbF, :fUYa[YRbF].size(0)] = fUYa[YRbF]\n return hVLt", "def uFIx(X4O_, XVqA=0, tSR7=...
[ "0.7928946", "0.70802623", "0.7036446", "0.7004882", "0.69140816", "0.6833353", "0.6830676", "0.6824621", "0.675888", "0.671774", "0.6611086", "0.66103846", "0.65511066", "0.653545", "0.6519688", "0.6490463", "0.6470346", "0.6467035", "0.6462498", "0.6459834", "0.64073473", ...
0.8272532
0
Add values of one dictionary to another.
def hwnC(e1vZ, zZcM): for H5ew in zZcM.keys(): if H5ew in e1vZ.keys(): e1vZ[H5ew] += zZcM[H5ew] else: e1vZ[H5ew] = zZcM[H5ew]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CaoY(YKHO, Elif):\n if not isinstance(Elif, dict):\n tO9_ = 'Can not concatenate Dict and {}'.format(type(Elif))\n raise TypeError(tO9_)\n for H5ew, wEf2 in Elif.items():\n if H5ew in YKHO:\n YKHO._append_key(H5ew, wEf2)\n else:\n YKHO[H5ew] = wEf2\n r...
[ "0.78800726", "0.78758186", "0.7720311", "0.7703897", "0.76613927", "0.7573357", "0.755781", "0.7509601", "0.7484375", "0.7423065", "0.74166244", "0.74166244", "0.7409427", "0.7409427", "0.7409427", "0.7409427", "0.7409427", "0.7409427", "0.7409427", "0.7409427", "0.74035805"...
0.77162653
3
Plot the MSE profile, values of which are recorded during training.
def XelB(lDij): aNZO = QrM1.figure(figsize=(7.5, 4.5)).gca() lDij = oyIN.array(lDij) uvMl = oyIN.arange(1, len(lDij) + 1) aNZO.plot(uvMl, lDij, color='k', alpha=0.7) aNZO.xaxis.set_major_locator(A7tO(integer=True)) aNZO.set_xlabel('Epoch') aNZO.set_ylabel('Cost (MSE) value') QrM1.show() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GzY1(EvQg, QOe9, Tuqy):\n QrM1.figure()\n QrM1.plot(range(len(EvQg)), EvQg, 'r', label='Training')\n QrM1.plot(range(len(QOe9)), QOe9, 'b', label='Testing')\n QrM1.title('MSE Loss (batch type: ' + Tuqy + ')')\n QrM1.legend()\n QrM1.show()", "def sWZj(YKHO, wEf2=False):\n bGrB, aNZO = QrM...
[ "0.68845105", "0.6802392", "0.65958416", "0.65566576", "0.6421743", "0.6320988", "0.6232892", "0.62275165", "0.6208934", "0.61788243", "0.61580956", "0.6141744", "0.60512906", "0.59781456", "0.59579766", "0.59454405", "0.59390724", "0.5923495", "0.59174556", "0.5905685", "0.5...
0.6050812
13
Return a JSON list of stations from the dataset.
def Oj45(): dixj = cuiw.query(njvh.station).all() list = [] for Aofo in dixj: list.append(Aofo) return pz3A(list)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _TQ3():\n cuiw = DMju(eHpk)\n dixj = cuiw.query(njvh.name).all()\n cuiw.close()\n Oj45 = list(oyIN.ravel(dixj))\n return pz3A(Oj45)", "def Oj45():\n cuiw = DMju(eHpk)\n Oj45 = cuiw.query(njvh.name).all()\n joYV = list(oyIN.ravel(Oj45))\n return pz3A(joYV)", "def Oj45():\n IeOM...
[ "0.87502384", "0.87111616", "0.87103224", "0.8391929", "0.83858776", "0.8351123", "0.8318487", "0.83133906", "0.83088475", "0.82893324", "0.82849854", "0.82565653", "0.8246363", "0.82374954", "0.8237443", "0.82318974", "0.81887966", "0.81722414", "0.8110365", "0.8088061", "0....
0.8057517
22
Construct a test DriverManager Test instances are passed a list of extensions to work from rather than loading them from entry points.
def wFdg(Emd4, Fst3, _63S='TESTING', DXpw=False): z1Rg = super(Hwxa, Emd4).make_test_instance([Fst3], namespace=_63S, propagate_map_exceptions=DXpw) return z1Rg
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wFdg(Emd4, CBZq, _63S='TESTING', DXpw=False):\n z1Rg = Emd4.__new__(Emd4)\n ZWCE = [tTpl.name for tTpl in CBZq]\n z1Rg._init_attributes(_63S, ZWCE, propagate_map_exceptions=DXpw)\n z1Rg._init_plugins(CBZq)\n return z1Rg", "def wFdg(Emd4, CBZq, _63S='TESTING', DXpw=False):\n z1Rg = Emd4.__ne...
[ "0.68210334", "0.64566547", "0.6266577", "0.6199422", "0.6100687", "0.59511983", "0.59511983", "0.59273607", "0.5791091", "0.5771551", "0.5764548", "0.5736458", "0.57066774", "0.5698126", "0.568914", "0.5688465", "0.56750494", "0.5665882", "0.5660551", "0.56561756", "0.565304...
0.6960275
0
Construct a test ExtensionManager Test instances are passed a list of extensions to work from rather than loading them from entry points.
def wFdg(Emd4, CBZq, _63S='TESTING', DXpw=False): z1Rg = Emd4.__new__(Emd4) z1Rg._init_attributes(_63S, propagate_map_exceptions=DXpw) z1Rg._init_plugins(CBZq) return z1Rg
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wFdg(Emd4, CBZq, _63S='TESTING', DXpw=False):\n z1Rg = Emd4.__new__(Emd4)\n ZWCE = [tTpl.name for tTpl in CBZq]\n z1Rg._init_attributes(_63S, ZWCE, propagate_map_exceptions=DXpw)\n z1Rg._init_plugins(CBZq)\n return z1Rg", "def DlAh(YKHO, BLiB, TSMu=True, G03T='tests'):\n bzgu = Cxpq(BLiB, p...
[ "0.683503", "0.6523426", "0.63674974", "0.63354075", "0.61325914", "0.5939689", "0.5933935", "0.59288704", "0.5856541", "0.58288246", "0.5825676", "0.5825676", "0.57974553", "0.5788786", "0.5779372", "0.57229006", "0.5717561", "0.57120913", "0.57022285", "0.56972903", "0.5691...
0.64716804
2
Produce iterator for the manager.
def Vs4Q(YKHO): return iter(YKHO.extensions)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oHE7(YKHO):\n yield", "def Vs4Q(YKHO):\n return YKHO.new_generator()", "def Vs4Q(YKHO):\n DumB = YKHO._fetch()\n for ZfUD in DumB:\n yield ZfUD", "def Vs4Q(YKHO):\n for ZfUD in YKHO._reader:\n yield ZfUD", "def Vs4Q(YKHO):\n for Wc9F in YKHO.iterator:\n yield Qqmr...
[ "0.75340784", "0.73575187", "0.7273645", "0.72415245", "0.70428497", "0.69231206", "0.6898364", "0.6839737", "0.68337345", "0.681993", "0.68043715", "0.6776717", "0.672246", "0.67145544", "0.66521364", "0.6611514", "0.65963024", "0.6593167", "0.6585427", "0.65735775", "0.6569...
0.0
-1
Construct a test NamedExtensionManager Test instances are passed a list of extensions to use rather than loading them from entry points.
def wFdg(Emd4, CBZq, _63S='TESTING', DXpw=False): z1Rg = Emd4.__new__(Emd4) ZWCE = [tTpl.name for tTpl in CBZq] z1Rg._init_attributes(_63S, ZWCE, propagate_map_exceptions=DXpw) z1Rg._init_plugins(CBZq) return z1Rg
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wFdg(Emd4, CBZq, _63S='TESTING', DXpw=False):\n z1Rg = Emd4.__new__(Emd4)\n z1Rg._init_attributes(_63S, propagate_map_exceptions=DXpw)\n z1Rg._init_plugins(CBZq)\n return z1Rg", "def wFdg(Emd4, Fst3, _63S='TESTING', DXpw=False):\n z1Rg = super(Hwxa, Emd4).make_test_instance([Fst3], namespace=_...
[ "0.6400382", "0.6326444", "0.61112845", "0.6032441", "0.5863451", "0.58512866", "0.5825928", "0.57625884", "0.57516867", "0.5741049", "0.57076186", "0.5705964", "0.5683317", "0.567828", "0.5671668", "0.5671668", "0.5671478", "0.56609565", "0.56550723", "0.55624044", "0.555363...
0.682725
0
Returns True if the customer has not reached the checkout for the second time yet, False otherwise.
def ksfB(YKHO): if YKHO.state != 'checkout': return True if YKHO.state == 'checkout': return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ksfB(YKHO):\n return YKHO.state_after != 'checkout'", "def CZzx(YKHO):\n return YKHO._checkout_date is not None", "def ksfB(YKHO):\n if YKHO.state[0] == 'checkout':\n return False\n else:\n return True", "def ksfB(YKHO):\n return YKHO.state != 'checkout'", "def xjku(YKHO):\...
[ "0.64929485", "0.6470459", "0.63609177", "0.607506", "0.6039926", "0.60207117", "0.59912694", "0.5936701", "0.5877601", "0.58753103", "0.58472633", "0.58319205", "0.5771512", "0.57616276", "0.5664652", "0.5659652", "0.565341", "0.56347406", "0.5614151", "0.55955005", "0.55870...
0.6322319
3
Propagates the customer to the next state using a weighted random choice from the transition probabilities conditional on the current state. Returns nothing.
def rxHc(YKHO): YKHO.state = oyIN.random.choice(['checkout', 'dairy', 'drinks', 'fruit', 'spices'], p=YKHO.tr_array_dict[f'{YKHO.state}'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rxHc(YKHO, DghZ):\n return oyIN.random.choice(YKHO.states, p=YKHO.transition_matrix[YKHO.index_dict[DghZ], :])", "def rxHc(YKHO, DghZ):\n Qgcx = len(YKHO.states)\n mRcN = oyIN.random.choice(Qgcx, p=[YKHO.transition_prob[DghZ][rxHc] for rxHc in YKHO.states])\n return YKHO.states[mRcN]", "def rxH...
[ "0.6413612", "0.63567454", "0.63014746", "0.62140995", "0.61613214", "0.61054736", "0.608723", "0.6066509", "0.5973285", "0.5963853", "0.59341484", "0.5894978", "0.58632416", "0.58099186", "0.57741356", "0.5770447", "0.5762083", "0.5745629", "0.5739537", "0.5735988", "0.57331...
0.64606583
0
Return the eigenstuff of the normalized Laplacian matrix of graph associated with adjacency matrix A. Calculates via eigenvalues if K = D^(1/2) A D^(1/2) where `A` is the adjacency matrix and `D` is the diagonal matrix of node degrees. Since L = I K, the eigenvalues and vectors of L can be easily recovered.
def oHTF(k0lF, G1Hx=None): exwG, r8hN = k0lF.shape mYEH = cWjI(k0lF.sum(axis=1)) letr = [Csk6 ** (-1 / 2) if Csk6 > UI67 else 0 for Csk6 in mYEH] izRU = Zi12.spdiags(letr, [0], exwG, exwG, format='csr') nMvt = izRU * k0lF * izRU dug5, PDSy = dJUU(nMvt, k=G1Hx, which='LR') yw38 = 1 - dug5 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Xc3d(YKHO, LFlW=False, **Ftfj):\n k0lF, tjUW = YKHO.form_state_space_matrices(**Ftfj)\n if len(k0lF.shape) == 3:\n dug5 = oyIN.zeros(k0lF.shape[:2], dtype='complex128')\n PDSy = oyIN.zeros(k0lF.shape, dtype='complex128')\n for YRbF, i_o9 in enumerate(k0lF):\n if LFlW:\n ...
[ "0.6362073", "0.635367", "0.6332865", "0.62966806", "0.62822485", "0.6276675", "0.6274914", "0.61986107", "0.6155604", "0.6097244", "0.60492", "0.6043199", "0.60268813", "0.60083264", "0.5970591", "0.59502953", "0.59069455", "0.5892187", "0.5877085", "0.5867786", "0.5853795",...
0.7696459
0
Pad A so A.shape is (N,N)
def AeBf(k0lF, ywwl): exwG, bGrB = k0lF.shape if exwG >= ywwl: return k0lF else: if KN5h(k0lF): HEZd = Zi12.csr_matrix((exwG, ywwl - exwG)) es2x = Zi12.csr_matrix((ywwl - exwG, ywwl)) UbLi = Zi12.hstack([k0lF, HEZd]) UbLi = Zi12.vstack([UbLi, e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dvgN(jzdc, tpio):\n return oyIN.pad(jzdc, (0, tpio - len(jzdc)), 'constant', constant_values=0)", "def AeBf(WKvO, rb7a=4):\n di96 = oyIN.power(2, rb7a)\n K0A_ = WKvO.shape[0] % di96\n if K0A_ == 0:\n return WKvO\n elif len(WKvO.shape) == 2:\n return oyIN.pad(WKvO, [(0, di96 - K0A...
[ "0.7302042", "0.7109349", "0.68898135", "0.68381727", "0.6645432", "0.6605946", "0.66048914", "0.659161", "0.65865594", "0.6565811", "0.65200776", "0.6506677", "0.64840966", "0.64758474", "0.6472073", "0.64639914", "0.64424163", "0.6419262", "0.6413586", "0.63964874", "0.6366...
0.7867299
0
Apply a reduction function over a given axis.
def nllq(N4fU, jDK_: int, ezWE: np.ndarray) -> oyIN.ndarray: assert ezWE.ndim == 2 assert jDK_ in [0, 1] if jDK_ == 0: Aofo = oyIN.empty(ezWE.shape[1]) for YRbF in range(len(Aofo)): Aofo[YRbF] = N4fU(ezWE[:, YRbF]) return Aofo Aofo = oyIN.empty(ezWE.shape[0]) for ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Pusg(YKHO, FUTK, jDK_=0, yvT9=None):\n from . import _bh\n if yvT9 is not None:\n if KvBX.check(yvT9):\n if not KvBX.check(FUTK):\n FUTK = p1CM.array(FUTK)\n elif KvBX.check(FUTK):\n FUTK = FUTK.copy2numpy()\n if not KvBX.check(FUTK):\n JfyU = ...
[ "0.6741761", "0.6684062", "0.63769835", "0.63107836", "0.6171605", "0.61247915", "0.6043316", "0.5966064", "0.5882841", "0.57360786", "0.57302636", "0.5667637", "0.56195", "0.5618175", "0.5597224", "0.55948985", "0.55537677", "0.5546106", "0.5494476", "0.54727393", "0.5468329...
0.7035871
0
In Windows return the path with the case it is stored in the filesystem
def DvRl(mWFP): assert Hy7s.path.isabs(mWFP) or Hy7s.path.ismount(mWFP), 'Not abs nor mount: ' + mWFP assert Hy7s.path.exists(mWFP), 'Not exists: ' + mWFP if Hy7s.name == 'nt': mWFP = Hy7s.path.realpath(mWFP) from ctypes import create_unicode_buffer, windll LaVg = create_unicode_buff...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pmON(Emd4):\n from os.path import sep, join, exists\n from os import environ\n return join(environ.get('SystemRoot', join('C:', sep, 'Windows')), 'System32', 'mpclaim.exe')", "def fwu5():\n pmON = H0q3.DocumentPath()\n mWFP = H0q3.DocumentName()\n if gigf.operating_system == 'mac':\n ...
[ "0.7185384", "0.71397835", "0.7089066", "0.70267516", "0.7000493", "0.68770874", "0.6837504", "0.68313783", "0.6826676", "0.6817656", "0.67571396", "0.6720556", "0.67151684", "0.67130756", "0.6647219", "0.66304785", "0.65582865", "0.65368104", "0.6526411", "0.6507995", "0.649...
0.0
-1
Returns the average between list elements
def qqgr(vC9B): return sum(vC9B) / float(len(vC9B))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qqgr(list):\n return sum(list) / len(list)", "def S8vG(yv6U):\n return sum(yv6U) / len(yv6U)", "def S8vG(vC9B):\n return float(sum(vC9B) / len(vC9B))", "def qqgr(yv6U: list):\n return sum(yv6U) / len(yv6U)", "def NgYo(Emd4, vC9B):\n return sum(vC9B) / float(len(vC9B))", "def JfyU(yv6U)...
[ "0.8697729", "0.85608894", "0.85284686", "0.85132545", "0.84142387", "0.82467264", "0.81847113", "0.81688476", "0.8168137", "0.81533706", "0.81466866", "0.81323886", "0.8113818", "0.80889785", "0.80831385", "0.80347633", "0.79539144", "0.7843527", "0.78250104", "0.7785941", "...
0.8581461
1
Return env var coerced into a type other than string. This function extends the standard os.getenv function to enable the coercion of values into data types other than string (all env vars are strings by default).
def E6J6(H5ew, WmM4=None, RChb=lambda WKvO: WKvO, jeGQ=False): try: BWXx = Hy7s.environ[H5ew] except KeyError: if jeGQ is True: raise PNP1(H5ew) else: return WmM4 try: return RChb(BWXx) except Exception: raise XprM(H5ew, BWXx, RChb)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E6J6(H5ew: str) -> str:\n BWXx = Hy7s.getenv(H5ew)\n assert isinstance(BWXx, str), f'the {H5ew} environment variable must be set and a string, value={BWXx!r}'\n return BWXx", "def AxXv(n294, SRYB):\n tTpl = Hy7s.environ.get(SRYB)\n if tTpl is None:\n return n294.w_False\n return n294...
[ "0.76501215", "0.7303949", "0.72537065", "0.70969427", "0.7068386", "0.7044829", "0.69519067", "0.6941644", "0.69243574", "0.6917646", "0.6864052", "0.68215847", "0.67054987", "0.6594356", "0.65189564", "0.65106696", "0.64454526", "0.6429852", "0.6423585", "0.64175195", "0.63...
0.6985049
6
Return env var cast as Decimal.
def e4n1(H5ew, *WmM4): return wJxA(H5ew, *WmM4, coerce=i16s)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nMzf(mZ1z, jaOc) -> float:\n return float(Hy7s.getenv(mZ1z, jaOc))", "def ONo0(H5ew: str) -> float:\n try:\n return float(nBmD(H5ew))\n except (ValueError, TypeError):\n return 0", "def Eubv(YKHO):\n return YKHO.decimal", "def e7ya(H5ew, *WmM4):\n return wJxA(H5ew, *WmM4, coe...
[ "0.67681134", "0.66136485", "0.6281154", "0.62275624", "0.61424625", "0.61286604", "0.6054312", "0.5985711", "0.5914723", "0.5914723", "0.56757814", "0.5661769", "0.55677974", "0.5521617", "0.55185586", "0.54076403", "0.5345546", "0.5341182", "0.531731", "0.53090143", "0.5286...
0.743195
0
Return env var as a date.
def APS0(H5ew, *WmM4): return wJxA(H5ew, *WmM4, coerce=dcJF)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WsO0(H5ew, *WmM4):\n return wJxA(H5ew, *WmM4, coerce=yNWX)", "def slWZ():\n wzkt = qcWV.now()\n _c1T = wzkt.strftime('%Y%m%d')\n return _c1T", "def slWZ(_c1T):\n return _c1T", "def slWZ(YKHO):\n return YKHO.date.strftime('%a %x')", "def r37j(YKHO) -> QMSQ:\n ...", "def slWZ():\n ...
[ "0.6968128", "0.6056123", "0.59355897", "0.5860234", "0.58551085", "0.5843248", "0.5822254", "0.5819293", "0.57896125", "0.5786972", "0.5774795", "0.57648563", "0.5726592", "0.5703257", "0.5671059", "0.56411946", "0.5633106", "0.56291234", "0.560024", "0.55212206", "0.5515892...
0.76205915
0
Return env var as a datetime.
def WsO0(H5ew, *WmM4): return wJxA(H5ew, *WmM4, coerce=yNWX)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def APS0(H5ew, *WmM4):\n return wJxA(H5ew, *WmM4, coerce=dcJF)", "def slWZ():\n return qcWV.datetime.utcnow().isoformat()", "def zhU5():\n import datetime\n return datetime.datetime.now()", "def fqzu():\n return qcWV.datetime.now()", "def J5Wm():\n Hy7s.environ['TZ'] = GPtr.time_zone\n ...
[ "0.7071849", "0.59546095", "0.59153426", "0.5906552", "0.5822599", "0.57773846", "0.5736514", "0.57009745", "0.5679071", "0.56064844", "0.5604816", "0.55953634", "0.5573831", "0.5569552", "0.55041194", "0.5493765", "0.5491371", "0.5489714", "0.5436459", "0.54062176", "0.53983...
0.77685875
0
Return env var as a dict.
def mx0i(H5ew, *WmM4): return wJxA(H5ew, *WmM4, coerce=tbx9)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def C4pr(YKHO):\n return dict(((ZfUD[0], ZfUD[1]) for ZfUD in [tTpl.split('=', 1) for tTpl in YKHO.env]))", "def yfwM(sEAN):\n return dict(((H5ew.strip(), wEf2) for zFiD in sEAN.strip().splitlines() for H5ew, bGrB, wEf2 in [zFiD.partition('=')]))", "def xtda(YKHO):\n _wWf = {}\n for H5ew in YKHO.en...
[ "0.7834191", "0.7314489", "0.72624606", "0.7257618", "0.7250444", "0.72271985", "0.7154054", "0.7120214", "0.70461607", "0.70456606", "0.6999288", "0.6953993", "0.69387126", "0.6922534", "0.6922534", "0.6922534", "0.6922534", "0.6901835", "0.6897539", "0.6866394", "0.68658763...
0.73268276
1
Ensure that flask was set up correctly.
def hDnz(YKHO): I78j = P4t4.test_client(YKHO) geh0 = I78j.get('/', content_type='html_text') YKHO.assertEqual(geh0.status_code, 200)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bxQM():\n P4t4 = L2w0(import_name=__name__, template_folder='templates', static_folder='static')\n P4t4 = jPWl(P4t4)\n fRSk(P4t4)\n wyyA.init_app(P4t4)\n WWrj(P4t4.config)\n S0MI.info('Set up app & logger.')\n _wue(P4t4.config)\n ptR4(P4t4.config)\n TfOc(P4t4)\n sSY8(P4t4)\n re...
[ "0.65213567", "0.6511258", "0.6488779", "0.6438346", "0.6426056", "0.64195246", "0.639304", "0.63141054", "0.6303326", "0.6283816", "0.62818795", "0.6274006", "0.6274006", "0.6244823", "0.6231454", "0.6229292", "0.62292063", "0.6157181", "0.61567634", "0.61461926", "0.6121306...
0.0
-1
Ensure index page loads the correct html.
def iH0s(YKHO): I78j = P4t4.test_client(YKHO) geh0 = I78j.get('/', content_type='html_text') YKHO.assertTrue(b'Address Locator' in geh0.data)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lpRE(YKHO):\n geh0 = YKHO.client.get('')\n YKHO.assertEqual(geh0.status_code, 200)\n YKHO.assertTemplateUsed(geh0, 'search/base.html')\n YKHO.assertTemplateUsed(geh0, 'search/search_form.html')\n YKHO.assertTemplateUsed(geh0, 'search/index.html')", "def E2ox(YKHO):\n geh0 = YKHO.setup_get_h...
[ "0.75835234", "0.7337169", "0.7254746", "0.7228072", "0.719496", "0.71897274", "0.71897274", "0.71897274", "0.7159639", "0.714778", "0.7092316", "0.70748943", "0.7063991", "0.70331514", "0.70152074", "0.7008574", "0.7008574", "0.69974965", "0.6994949", "0.69929343", "0.697841...
0.0
-1
Write out dictionary to json file
def uNvT(CALM: dict, ov4P: str): try: with open(ov4P, 'w') as _RR0: qQXR.dump(CALM, _RR0, indent=4) except Exception as err: bo34.error(f'Failed to write out the file: {XObx}')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Lsrz(YKHO, Mu0k=None):\n HeoJ = qQXR.dumps(YKHO.json_dict, indent=2)\n YKHO._write_json_text(HeoJ, Mu0k)", "def f0cv(pmON, cmPJ):\n jcIu = qQXR.dumps(cmPJ, indent=4)\n with open(pmON, 'w', encoding='utf-8') as eHNT:\n eHNT.write(jcIu)", "def Lsrz(YKHO, ytgA, **c_sp):\n qQXR.dump(YKHO....
[ "0.81995416", "0.8187633", "0.81784356", "0.81601775", "0.80804926", "0.8072101", "0.8039865", "0.8031409", "0.79902846", "0.7973802", "0.7907194", "0.78902084", "0.78751594", "0.78143704", "0.76947194", "0.7672863", "0.7664839", "0.76622325", "0.76510084", "0.76499575", "0.7...
0.7370663
39
Returns True if the gridded perm `gp` is not required by any requirement list of the tiling.
def Fs8V(YKHO, U_NH: GriddedPerm) -> bool: return all((any((U_NH not in qv1X for qv1X in BDUp)) for BDUp in YKHO._tiling.requirements))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dLlI(YKHO, Mhbl: Counter[GriddedPerm]) -> bool:\n return all((YKHO._is_valid_count(UHFx, U_NH) for U_NH, UHFx in Mhbl.items()))", "def s5t6(Cs6h, mLGw, YRbF, r845):\n qIxc = (Cs6h, mLGw, YRbF, r845)\n return not UHqo(*qIxc) and (not yGOX(*qIxc)) and (not qfYj(*qIxc))", "def V50_(Cs6h: List):\n ...
[ "0.6223415", "0.611037", "0.60662913", "0.598745", "0.59720534", "0.59085554", "0.58274746", "0.5792744", "0.57842225", "0.5743536", "0.5741679", "0.5731525", "0.5724459", "0.57217807", "0.5704941", "0.5687381", "0.5682111", "0.5665865", "0.5648995", "0.5637984", "0.56355864"...
0.9139876
0
Check authentication with a bad password.
def CGzb(YKHO): CBIr = 'santos.gallegos' zOso = '1234' Aofo = YKHO.ucuenca.authentication(CBIr, zOso) YKHO.assertFalse(Aofo['autenticacion'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BybN(YKHO, NtEF, jTXt):\n return uZ9H", "def YzhB(YKHO):\n print('Authenticate user invalid password (wrong)')\n NtEF = 'admin'\n jTXt = 'password9999'\n YKHO.assertEqual(YKHO.system.authenticate(NtEF, jTXt), False)", "def tWk5(YKHO, jTXt):\n eD8c = ZbWC.compile(si3H.password_regex)\n ...
[ "0.83268", "0.79804206", "0.76954114", "0.7669489", "0.765827", "0.7529443", "0.74932975", "0.74909323", "0.74781746", "0.7469865", "0.7434012", "0.74336827", "0.74277186", "0.74157834", "0.74099976", "0.7406136", "0.73766184", "0.7374548", "0.7330363", "0.7312958", "0.727881...
0.7906404
2
Returns db_client by name.
def sHe9(YKHO, o0oP: str) -> igkL: return YKHO._db_client_map[o0oP]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bxbw(YKHO, mWFP):\n return YKHO.get_clients(as_dict=True).get(mWFP)", "def bxbw(YKHO, nUZm):\n x0hE = YKHO.dbsession.query(i9zE).filter_by(clientname=nUZm).all()\n if not x0hE:\n return YKHO.create_client({'clientname': nUZm})\n else:\n return x0hE[0]", "def GGod(YKHO):\n YKHO....
[ "0.78296703", "0.7668197", "0.74287224", "0.727629", "0.7272978", "0.71989816", "0.70706093", "0.70001584", "0.69900364", "0.698624", "0.6894745", "0.68710726", "0.6765762", "0.6756239", "0.6692928", "0.66787255", "0.6594556", "0.65889996", "0.6535446", "0.65013194", "0.64413...
0.7699964
1
Get model object for the given app_label, model_name if exists. Throws ConfigurationError if the app_label is not registered or the model_name is not registered within the app.
def R9NM(YKHO, tKz9: str, ZGE9: str): if tKz9 not in YKHO._app_models_map: raise KpxQ(f"No app with name '{tKz9}' registered.") Gm4e = YKHO._app_models_map[tKz9] if ZGE9 not in Gm4e: raise KpxQ(f"No model with name '{ZGE9}' registered in app '{tKz9}'.") return Gm4e[ZGE9]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YrZb(YKHO, tKz9, ZGE9, frU_=True, fnEF=True):\n if frU_:\n YKHO._populate()\n if fnEF and tKz9 not in YKHO.app_labels:\n return None\n return YKHO.app_models.get(tKz9, FIdt()).get(ZGE9.lower())", "def YrZb(ZGE9: str, *qIxc, **B2fa):\n try:\n if '.' in ZGE9:\n LCet,...
[ "0.78485733", "0.7082722", "0.70226425", "0.6928417", "0.68882036", "0.6885856", "0.68026227", "0.6793628", "0.67777944", "0.6712374", "0.66769797", "0.6662793", "0.66241264", "0.66158926", "0.6583572", "0.6583498", "0.64938504", "0.64297664", "0.63554895", "0.63403225", "0.6...
0.82028925
0
Get the model object from the specified model. Throws ConfigurationError if the app_label is not registered or the model_name is not registered within the app.
def YrZb(YKHO, eHMM: Union[Type[Model], str], F9sb: Type[Model]): if isinstance(eHMM, str): SzCd = eHMM.split('.') if len(SzCd) == 1: return YKHO.get_app_model(F9sb._meta.app_label, eHMM) elif len(SzCd) == 2: return YKHO.get_app_model(*SzCd) else: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R9NM(YKHO, tKz9: str, ZGE9: str):\n if tKz9 not in YKHO._app_models_map:\n raise KpxQ(f\"No app with name '{tKz9}' registered.\")\n Gm4e = YKHO._app_models_map[tKz9]\n if ZGE9 not in Gm4e:\n raise KpxQ(f\"No model with name '{ZGE9}' registered in app '{tKz9}'.\")\n return Gm4e[ZGE9]",...
[ "0.80125505", "0.7660824", "0.72989625", "0.7265658", "0.7216853", "0.71832865", "0.71465296", "0.7118152", "0.70814025", "0.7041705", "0.6987792", "0.69459504", "0.6939642", "0.6913814", "0.68858165", "0.6831372", "0.67279863", "0.6714864", "0.6668034", "0.6626076", "0.66239...
0.67327976
16
Tries to drop all databases provided in config passed to ``.init()`` method. Normally should be used only for testing purposes.
async def drop_databases(YKHO) -> None: if not YKHO._inited: raise KpxQ('You have to call .init() first before deleting schemas') for GSLx in YKHO._db_client_map.values(): await GSLx.close() await GSLx.db_delete() YKHO._reset()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R8CV(YKHO):\n for NCls in YKHO.test_dbs:\n if YKHO.db_exists(NCls):\n YKHO.drop_database(NCls)\n ITS7.sleep(3)\n YKHO.create_database(NCls)\n YKHO.create_index(NCls)", "def eCm4():\n w2B8 = TlDD.MongoClient(host=KLcw, port=u1hV)\n print('Removing:')\n [print...
[ "0.74539274", "0.7128077", "0.6883254", "0.6883254", "0.6883254", "0.6883254", "0.6883254", "0.6883254", "0.6883254", "0.6883254", "0.6883254", "0.6871104", "0.68534213", "0.68434805", "0.6834674", "0.68253684", "0.68212247", "0.68212247", "0.68138313", "0.6794285", "0.672502...
0.80037254
0
Name of the device.
def mWFP(YKHO): return YKHO.raw.get('name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YKHO):\n return YKHO._device.name", "def mWFP(YKHO):\n return YKHO._device.name", "def mWFP(YKHO):\n return YKHO._device.name", "def mWFP(YKHO):\n return f'{ueYb(YKHO._data, 0, YKHO._name)}'", "def mWFP(YKHO):\n return YKHO.device.name()", "def mWFP(YKHO):\n return YKHO.device....
[ "0.90980077", "0.90980077", "0.90980077", "0.9062028", "0.9025963", "0.88166", "0.8686434", "0.8569197", "0.85582256", "0.8555482", "0.8555482", "0.85317177", "0.85317177", "0.8468815", "0.84063196", "0.8375968", "0.8366276", "0.8347895", "0.8282472", "0.8153554", "0.80649626...
0.0
-1
Human readable type of the device.
def type(YKHO): return YKHO.raw.get('type')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def type(YKHO) -> str:\n return YKHO._device_info['Type']", "def type(YKHO):\n return YKHO._device.type_name", "def DS1x(YKHO):\n return YKHO._device_type", "def DS1x(YKHO) -> str:\n return YKHO.profile_device.device_type", "def DS1x(YKHO):\n return cFqH.devtype2str[YKHO.device_typeid]", "...
[ "0.85876435", "0.8561536", "0.84254235", "0.8390936", "0.8309306", "0.8309306", "0.8074338", "0.8051152", "0.79265195", "0.7829699", "0.7681807", "0.7592714", "0.7592481", "0.7592481", "0.7592481", "0.749323", "0.749323", "0.74519265", "0.73468775", "0.7281621", "0.724784", ...
0.0
-1
Compute the blocks. Returns list A list of blocks defined as simple meshes. Notes This method is used by the ``from_geometry`` constructor of the assembly data structure to create an assembly "from geometry".
def rmyT(YKHO): tEud = (2 * mM0K - 0) / (2 * YKHO.meridians) QbTL = (2 * mM0K - 0) / YKHO.meridians uuO0 = (YKHO.spring - YKHO.oculus) / YKHO.hoops rVnq = [] for YRbF in range(YKHO.meridians + 1): rVnq.append(0 + YRbF * QbTL) q7In = [] for YRbF in range(YKHO.hoops + 1): q7In....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xpYM(YKHO) -> list:\n YKHO.clingo = ObOW()\n P8oC = ('base', '')\n YKHO.clingo.add_file('initial-states.lp')\n YKHO.clingo.run([P8oC], n=1)\n hlel = YKHO.clingo.output[0]\n rmyT = []\n for WhQ6 in hlel:\n if WhQ6.name == 'block':\n rmyT.append(WhQ6)\n return rmyT", "...
[ "0.7377238", "0.71764034", "0.71163285", "0.67889595", "0.6671237", "0.65829414", "0.64209443", "0.6397945", "0.6170541", "0.61612225", "0.6155401", "0.61021245", "0.60757184", "0.60635793", "0.6054973", "0.5994955", "0.5989133", "0.59436375", "0.5941112", "0.5905711", "0.589...
0.5967128
17
Return an iterator itself.
def Vs4Q(YKHO) -> bDy6[qJW9]: return YKHO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vs4Q(YKHO):\n return YKHO.next()", "def Vs4Q(YKHO):\n return YKHO._next()", "def Vs4Q(YKHO):\n return YKHO._next()", "def Vs4Q(YKHO):\n return YKHO._next()", "def UDAb(YKHO):\n return next(YKHO.iterator)", "def Vs4Q(YKHO):\n YKHO._first()\n return YKHO", "def UDAb(YKHO):\n r...
[ "0.7915176", "0.78963923", "0.78963923", "0.78963923", "0.7860743", "0.7773823", "0.7739521", "0.76727694", "0.7556349", "0.75467515", "0.7486576", "0.7481177", "0.7448736", "0.7432475", "0.74168515", "0.7313966", "0.7313966", "0.7313966", "0.7313966", "0.7313966", "0.7313966...
0.0
-1
Generate hashes for files
def Btz_(YKHO, IznC, qIxc): Vu7S = YKHO._open_file(IznC, qIxc.binary) sAxw = YKHO._calculate_hash(Vu7S) zFiD = '{0} {1}{2}\n'.format(sAxw, '*' if qIxc.binary else ' ', IznC) if '//' in zFiD: zFiD = '//' + zFiD.replace('//', '////') YKHO.app.stdout.write(zFiD)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RC97(RRlC: Iterable[str], tk5Y: str) -> str:\n dQiW = HBct.md5()\n for gIsw in sorted(RRlC):\n qaEx = Hy7s.path.join(tk5Y, gIsw)\n dQiW.update((gIsw + '\\x00').encode())\n with open(qaEx, 'rb') as jQJk:\n for yOAJ in iter(lambda: jQJk.read(4096), ''):\n if n...
[ "0.7723938", "0.7686026", "0.76240444", "0.7530267", "0.7373168", "0.7304723", "0.72284627", "0.7226467", "0.7151861", "0.71343106", "0.71280813", "0.7071096", "0.70319146", "0.7005902", "0.6999786", "0.6983353", "0.6967195", "0.6966729", "0.6966729", "0.69665474", "0.6963066...
0.7015337
13
Apply a 3D binary mask to a 1channel, 3D ndarray `img` by creating a 3channel image with masked regions shown in transparent blue.
def l1Qv(VXjJ: ndarray, zJQx: Any=None, KO11: Any=None) -> [gyIm]: zJQx = VXjJ.min() if zJQx is None else zJQx KO11 = VXjJ.max() if KO11 is None else KO11 k8L3 = oyIN.array((VXjJ - zJQx) / (KO11 - zJQx) * 255, dtype=int) if len(VXjJ.shape) == 3: return [k8L3] * 3 raise ValueError('Only accep...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gWWp(YKHO):\n WKvO = i6NZ.Image()\n WKvO.image = oyIN.ones((10, 10, 3))\n YKHO.assertTrue(WKvO.mask.ndim == 2)", "def f2Y_(Xn71, ZHfW, qfpW=(1, 0, 0)):\n _9tk = oyIN.zeros(Xn71.shape)\n for WKvO, LVAh in ZHfW:\n _9tk[WKvO][LVAh] = qfpW\n return _9tk", "def f2Y_(LNo8, ZHfW, qoA5=AON...
[ "0.70189404", "0.6783082", "0.67464733", "0.6717791", "0.66600746", "0.6624861", "0.6616954", "0.66123575", "0.6611253", "0.65764576", "0.6551049", "0.65426993", "0.6517732", "0.64748716", "0.6459323", "0.6412765", "0.64072037", "0.6404231", "0.634529", "0.63237524", "0.62145...
0.0
-1
r"""Returns a list of all node types of the graph.
def EfR7(YKHO) -> x1iM[CvW4]: return list(YKHO._node_store_dict.keys())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hmhE(YKHO):\n return list(Qubi.all_nodes.keys())", "def wfwy(YKHO) -> bdIy[str]:\n wfwy = list(YKHO.num_nodes_dict.keys())\n return wfwy", "def EZLp(*qIxc, kBIW: bool=True, **B2fa) -> x1iM[J8o1]:\n pass", "def wfwy(YKHO):\n ...", "def Ziit(YKHO):\n return list(YKHO.__graph.keys())", ...
[ "0.8699017", "0.7544778", "0.71158206", "0.687072", "0.668334", "0.666216", "0.6657601", "0.6638916", "0.6620646", "0.66054773", "0.65891874", "0.65883136", "0.657425", "0.65098506", "0.65061986", "0.639409", "0.6382757", "0.63734514", "0.63697994", "0.63673884", "0.6296806",...
0.794649
1
r"""Returns a list of all edge types of the graph.
def vlc8(YKHO) -> x1iM[kAWL]: return list(YKHO._edge_store_dict.keys())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VJfR(Jz1_):\n p1u_ = Jz1_[uwaB.STR_EDGE_TYPE]\n Fzlt = {tTpl: YRbF for YRbF, tTpl in enumerate(p1u_)}\n gHSD = {YRbF: tTpl for YRbF, tTpl in enumerate(p1u_)}\n return (Fzlt, p1u_, gHSD)", "def hmhE(YKHO):\n return list(Qubi.all_nodes.keys())", "def ZmON(YKHO):\n return [(MLZm[0].name, MLZ...
[ "0.6919327", "0.6717635", "0.67048246", "0.66213083", "0.65957046", "0.659519", "0.6545016", "0.64593863", "0.6416189", "0.63508534", "0.63071203", "0.6303682", "0.62558943", "0.6243591", "0.6243591", "0.6243591", "0.6243591", "0.6243591", "0.6243591", "0.622016", "0.6205077"...
0.84606266
0
r"""Returns a list of all edge storages of the graph.
def _Itf(YKHO) -> x1iM[F5v2]: return list(YKHO._edge_store_dict.values())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _hEI(YKHO) -> x1iM[AzJI[kAWL, F5v2]]:\n return list(YKHO._edge_store_dict.items())", "def mC4V(YKHO):\n return YKHO.capacity.keys()", "def z0Cu(YKHO):\n return YKHO._edges_list", "def vlc8(YKHO) -> x1iM[kAWL]:\n return list(YKHO._edge_store_dict.keys())", "def mC4V(YKHO):\n mC4V = []\n ...
[ "0.7861114", "0.6988891", "0.69227576", "0.67443895", "0.67098343", "0.66551125", "0.66181535", "0.6594692", "0.6589905", "0.6551342", "0.6551342", "0.6551342", "0.6551342", "0.6551342", "0.6551342", "0.65036345", "0.65020996", "0.64662606", "0.646204", "0.6430415", "0.640389...
0.81558895
0
Get absolute path to resource, works for dev and for PyInstaller
def JFat(t_yv=None): try: XSj5 = HwRy._MEIPASS except Exception: XSj5 = Hy7s.path.abspath('.') if not t_yv: return XSj5 return Hy7s.path.join(XSj5, t_yv)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gZBG():\n return Hy7s.path.join(Hy7s.path.dirname(xAKo), 'resources') + Hy7s.path.sep", "def Q63V(Qth0):\n try:\n XSj5 = HwRy._MEIPASS\n except Exception:\n XSj5 = Hy7s.path.abspath(Hy7s.path.join(Hy7s.path.dirname(HwRy.modules[__name__].__file__), 'assets'))\n return Hy7s.path.join...
[ "0.83695304", "0.8280964", "0.8249083", "0.81390584", "0.81140167", "0.8098592", "0.80797243", "0.8067683", "0.8067355", "0.80624765", "0.80624765", "0.80624765", "0.80624765", "0.80624765", "0.80624765", "0.80624765", "0.8056985", "0.80545896", "0.80448395", "0.80448395", "0...
0.8094061
6
Return a unittest.TestSuite to be used by test.py.
def NxB3(): return DuvM.makeSuite(H0xG)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zebD():\n wa51 = DuvM.TestSuite([])\n wa51.addTests(DuvM.TestLoader().loadTestsFromTestCase(MxUM))\n wa51.addTests(DuvM.TestLoader().loadTestsFromTestCase(br5Y))\n wa51.addTests(DuvM.TestLoader().loadTestsFromTestCase(ayZ9))\n wa51.addTests(DuvM.TestLoader().loadTestsFromTestCase(ecvr))\n wa5...
[ "0.86233354", "0.8542358", "0.8460056", "0.8416129", "0.8415284", "0.83607024", "0.8335729", "0.830533", "0.82570344", "0.82052696", "0.81683713", "0.8149417", "0.81144106", "0.80783606", "0.807753", "0.80536795", "0.8046343", "0.8034924", "0.8033455", "0.8013062", "0.7994615...
0.78976077
27
Return the config this pressure regulator
def DGu5(YKHO): YKHO.press_conf = YKHO.sysconf['PressureRegulators'] return YKHO.press_conf['PressureRegulator%d' % YKHO.id_]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zoFt(YKHO):\n return YKHO.cp", "def tgzD(YKHO):\n if YKHO.allow_reco():\n return YKHO.chs_config()\n else:\n return YKHO.get_config_j(YKHO.id)", "def GPtr(YKHO):\n return YKHO[OtOl]", "def tgzD(YKHO):\n return YKHO.config", "def zoFt(YKHO):\n return YKHO.config", "def ...
[ "0.7364102", "0.7162993", "0.70298266", "0.70129544", "0.68971854", "0.6864645", "0.68532395", "0.68102187", "0.67950267", "0.67949224", "0.6758253", "0.6717158", "0.6702697", "0.6646132", "0.6629755", "0.66264457", "0.66105473", "0.66105473", "0.65918076", "0.65671664", "0.6...
0.80336404
0