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
thresholds a grayscale image to a binary image.
def JfRw(VXjJ, gwAu=znoN): return XC5k.threshold(VXjJ, gwAu, p9KR, XC5k.THRESH_BINARY)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ffz0(YKHO, LNo8, gwAu):\n llUt = LNo8.copy()\n [MKlR, yzQ0] = llUt.shape\n VoYq = gwAu\n print(VoYq)\n for rdlD in range(MKlR):\n for fvDH in range(yzQ0):\n if llUt[rdlD, fvDH] > VoYq:\n llUt[rdlD, fvDH] = 255\n else:\n llUt[rdlD, fvDH] ...
[ "0.7555683", "0.73864496", "0.71793264", "0.7158029", "0.70775515", "0.69993556", "0.69715166", "0.6928067", "0.68441004", "0.68359464", "0.6771333", "0.6745976", "0.6704027", "0.6582386", "0.65818775", "0.65701693", "0.6550687", "0.65359485", "0.6466406", "0.63850933", "0.63...
0.68359834
9
Check through the puzzle array in the range delimited by top left (tl) and bottom right (br) for values in 'potential'. Any value found that is in 'potential' is removed so only missing values remain when it is returned.
def CfkA(Iy_q, eZzF, GPIy, Rzz_): for LVAh in range(GPIy[1], Rzz_[1] + 1): for WKvO in range(GPIy[0], Rzz_[0] + 1): if eZzF[LVAh][WKvO] in Iy_q: Iy_q.remove(eZzF[LVAh][WKvO]) return Iy_q
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dGO4(YKHO):\n UMN4 = []\n if not YKHO.red:\n YRbF = YKHO.midWidth - 1\n else:\n YRbF = YKHO.midWidth + 1\n nbpV = [(YRbF, r845) for r845 in range(YKHO.height)]\n To00 = []\n for YRbF in nbpV:\n if not (YRbF[0], YRbF[1]) in YKHO.walls:\n To00.append(YRbF)\n Y...
[ "0.588401", "0.5613431", "0.5605046", "0.5547881", "0.544818", "0.5424087", "0.53872746", "0.5362563", "0.53606844", "0.53606844", "0.53370255", "0.5326348", "0.53133196", "0.5296384", "0.52813685", "0.5255672", "0.52168256", "0.52042156", "0.5199848", "0.51857", "0.51857", ...
0.66826487
0
Returns True if at least one of the digits of k is a 7, False otherwise. >>> has_seven(3) False >>> has_seven(7) True >>> has_seven(2734) True >>> has_seven(2634) False >>> has_seven(734) True >>> has_seven(7777) True
def DeAc(G1Hx): if G1Hx % 10 == 7: return True elif G1Hx < 10: return False else: return DeAc(G1Hx // 10)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DeAc(G1Hx):\n if G1Hx == 0:\n return False\n else:\n if G1Hx % 10 == 7:\n return True\n return DeAc(G1Hx // 10)", "def DeAc(G1Hx):\n if G1Hx % 10 == 7:\n return True\n else:\n if G1Hx < 10:\n return False\n return DeAc(G1Hx // 10)", ...
[ "0.8716564", "0.8706798", "0.8690393", "0.8690393", "0.8690393", "0.61994755", "0.58175665", "0.57838863", "0.57414204", "0.5732691", "0.55530447", "0.5547129", "0.55352366", "0.5535023", "0.5497758", "0.5434485", "0.5352723", "0.53297573", "0.5328972", "0.5325144", "0.531923...
0.8931878
0
return a list with items with the same student
def ZC46(YKHO, sKj6): vC9B = [] for ZfUD in YKHO._items: if ZfUD.get_student() == sKj6: vC9B.append(ZfUD) return vC9B[:]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VLXD(YKHO):\n return YKHO.grade_set.all().distinct()", "def bVA9(CGJY):\n _VIu = OjSl('null', 'null', '0', '0')\n jvSB = _VIu\n CeQG = []\n lXgg = []\n for g3Gt in CGJY:\n AOBR = jvSB\n jvSB = g3Gt\n if jvSB.first == AOBR.first:\n if AOBR in lXgg:\n ...
[ "0.6781505", "0.65362155", "0.6199378", "0.60326993", "0.601739", "0.5969962", "0.5895063", "0.583807", "0.5774767", "0.57600665", "0.5728087", "0.57097805", "0.5650832", "0.56497097", "0.5617477", "0.560614", "0.55885255", "0.55699545", "0.55072105", "0.5501444", "0.5463087"...
0.6604642
1
Returns the number of anchors per spatial location.
def pBfb(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wY17(YKHO):\n SOnb = len(YKHO._rotations)\n TMPx = oyIN.array(YKHO._sizes).reshape([-1, 3]).shape[0]\n return SOnb * TMPx", "def eYBs(YKHO):\n return len(YKHO.locations)", "def WsX1(YKHO):\n return len(YKHO.matrix)", "def iTFJ(YKHO, P0Xs, KBPL):\n atiY = 0\n liqo = 0\n for pBfb, W...
[ "0.749816", "0.6937425", "0.66813695", "0.6656154", "0.6582445", "0.6582445", "0.6582445", "0.6580193", "0.65188473", "0.65087336", "0.6447474", "0.63943326", "0.6365181", "0.6354651", "0.6345681", "0.6322735", "0.6313625", "0.6276137", "0.62072563", "0.6178259", "0.61153775"...
0.8555305
0
Decay learning rate by a factor of 0.1 every lr_decay_epoch epochs.
def hc6Z(K0do, qtWj, DJmW=0.1, jnHZ=50): if qtWj % jnHZ == 0 and qtWj > 1: for Lwm5 in K0do.param_groups: Lwm5['lr'] = Lwm5['lr'] * 0.1 return K0do
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def biVQ(qtWj):\n tspZ = b0Ix\n if qtWj >= 60:\n tspZ *= 0.1\n print('Learning rate: ', tspZ)\n return tspZ", "def biVQ(qtWj):\n oLNr = 0.1\n ReNU = 0.5\n Gn2V = 10.0\n fqnS = oLNr * epAf.pow(ReNU, epAf.floor((1 + qtWj) / Gn2V))\n return fqnS", "def Qh2O(YPaw):\n return Cwt...
[ "0.82671946", "0.8177712", "0.78125453", "0.776122", "0.77204937", "0.769362", "0.769362", "0.7605489", "0.7586371", "0.7553462", "0.7524087", "0.74985766", "0.7488579", "0.746741", "0.7410183", "0.73949593", "0.7391513", "0.7390644", "0.738622", "0.73834085", "0.7376012", ...
0.0
-1
Instantiate a Shortcut from a dict source.
def jG8h(Emd4: T, JZXy: dict[str, Any], UzPC: Connection) -> Kt_s: return super(ahCL, Emd4).from_dict(source=JZXy, connection=UzPC)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jG8h(Emd4, fK8P):\n return Emd4(**fK8P)", "def jG8h(Emd4, fGC9, maAL):\n YEnM = LSFv.__new__(Emd4)\n super().__init__(YEnM)\n YEnM.to_natives(fGC9, maAL)\n return YEnM", "def jG8h(Emd4, cmPJ: Dict[str, Any]):\n return Emd4(**cmPJ)", "def eLpg(Emd4, cmPJ):\n return Emd4(**cmPJ)", "d...
[ "0.637175", "0.62771887", "0.6227301", "0.6226135", "0.6226135", "0.6168764", "0.61653435", "0.61620283", "0.6129901", "0.61157286", "0.6028373", "0.5986423", "0.5981265", "0.5953646", "0.5939503", "0.57930434", "0.57930434", "0.57930434", "0.57930434", "0.57930434", "0.57930...
0.57157874
63
A view to return the contact page and form
def Mxk0(QePW): L03z = JmDL(QePW.POST or None) if QePW.method == 'POST': if L03z.is_valid(): L03z.save() Ol8d = QePW.POST['message'] U4ZT = QePW.POST['subject'] D3lj = QePW.POST['email'] J_Di(U4ZT, Ol8d, D3lj, ['roxannejade88@icloud.com'], fail...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Mxk0():\n return TvZl('contact.html', title='Contact', year=qcWV.now().year, message='Your contact page.')", "def Mxk0():\n if QePW.method == 'POST':\n Dwep('{}, Thank you for getting in touch! We appreciate you contacting us, one of our colleagues will get back in touch with you soon! Have a gr...
[ "0.80070364", "0.8000395", "0.79602474", "0.7916738", "0.7915305", "0.7893425", "0.78804237", "0.78671783", "0.78426486", "0.7841965", "0.783166", "0.7831423", "0.7811117", "0.78103983", "0.78103983", "0.7807718", "0.78075504", "0.779761", "0.7794387", "0.7794387", "0.7794387...
0.71437573
61
Return the name of the sensor.
def mWFP(YKHO): return YKHO._name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YKHO):\n return YKHO._sensor.name", "def _lKy(YKHO):\n return YKHO.data[1]", "def mWFP(YKHO):\n return YKHO.device.device_data[YKHO.device_id]['name'] + f' {YKHO._sensor_type}'", "def mWFP(YKHO):\n return f'{YKHO._name} {lc9R[YKHO.sensor][0]}'", "def mWFP(YKHO):\n return f'{YKHO._na...
[ "0.91896784", "0.9168378", "0.890185", "0.8770976", "0.8511273", "0.8479953", "0.844435", "0.8299758", "0.8186503", "0.8105667", "0.8079737", "0.8066149", "0.8049647", "0.7700968", "0.7612295", "0.7611456", "0.7600605", "0.7600605", "0.7600605", "0.75392073", "0.75166553", ...
0.0
-1
Return the state attributes of the sensor.
def R1i3(YKHO): return {PlJk: v7XK}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R1i3(YKHO):\n return YKHO.attributes", "def R1i3(YKHO):\n return YKHO._attributes", "def R1i3(YKHO):\n return YKHO.attr", "def R1i3(YKHO):\n return YKHO.attr", "def R1i3(YKHO) -> cuzp[str, any]:\n return YKHO._device.state_attributes", "def R1i3(YKHO):\n return YKHO._state_attrs", ...
[ "0.8418945", "0.82497084", "0.8243777", "0.8243777", "0.8200083", "0.8169021", "0.8169021", "0.8159991", "0.8159991", "0.8145903", "0.8145903", "0.8145903", "0.8145903", "0.8145903", "0.8145903", "0.8145903", "0.8145903", "0.8145903", "0.8145903", "0.8145903", "0.8145903", ...
0.7686955
51
Get the latest state of the sensor.
def QdZT(YKHO): YKHO._state = rCkj(YKHO.addresses)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QTBn(YKHO):\n if YKHO.coordinator.data:\n return YKHO.coordinator.data[YKHO._sensor]", "def QTBn(YKHO):\n if YKHO.ticker.values is not None:\n return round(float(YKHO.ticker.values.get('last')), YKHO.display_currency_decimals)\n else:\n vzeF.warning('sensor state was requested b...
[ "0.753419", "0.74876356", "0.74765736", "0.72214586", "0.7112677", "0.6995063", "0.69775915", "0.6945787", "0.69136775", "0.68911135", "0.68863803", "0.6863116", "0.6858303", "0.6834618", "0.6774382", "0.67590016", "0.6746638", "0.6699024", "0.6691935", "0.6685089", "0.666090...
0.0
-1
Implementing set vendor price list detail grid settings functionality
def SSDF(YKHO, DTyE): YKHO.wait_for_ajax_spinner_load(300) YKHO.set_grid_settings(YKHO.vendor_price_list_detail_rates_grid_div_id, DTyE)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ldl2(YKHO, DTyE):\n YKHO.set_grid_settings(YKHO.view_price_list_div_id, DTyE)", "def Sp0h(YKHO, DTyE):\n YKHO.wait_for_ajax_spinner_load(300)\n YKHO.set_grid_settings(YKHO.vendor_price_list_detail_dial_digits_grid_div_id, DTyE)", "def JBKb(YKHO, DTyE):\n YKHO.wait_for_ajax_spinner_load(300)\n ...
[ "0.77079743", "0.68698335", "0.66079444", "0.62743175", "0.61391824", "0.58130604", "0.5678278", "0.5415286", "0.5406315", "0.52782065", "0.52499175", "0.52450347", "0.5245008", "0.5205424", "0.51688457", "0.5167661", "0.50984377", "0.50653815", "0.5056066", "0.5037856", "0.5...
0.7649835
1
Implementing set start date functionality
def YFxH(YKHO, kepv): YKHO.set_value_into_input_field(YKHO.start_date_inputbox_locator, kepv)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YFxH(YKHO, _c1T):\n pass", "def kepv(YKHO, kepv):\n YKHO._start_date = kepv", "def kepv(YKHO, kepv):\n YKHO._start_date = kepv", "def kepv(YKHO, kepv):\n YKHO._start_date = kepv", "def kepv(YKHO, kepv):\n YKHO._start_date = kepv", "def kepv(YKHO, kepv):\n YKHO._start_date = kepv", ...
[ "0.86141276", "0.80457026", "0.7868022", "0.7836363", "0.7836363", "0.7836363", "0.7836363", "0.7836363", "0.7836363", "0.7836363", "0.7836363", "0.7836363", "0.7739041", "0.749863", "0.74370885", "0.7398391", "0.729659", "0.7160086", "0.70503116", "0.70105284", "0.69417137",...
0.80691314
1
Implementing set bulk edit end date functionality
def quG6(YKHO, KhBf, qzOZ): if qzOZ is True: KhBf = YKHO.get_date(future_date=True, number_of_days_to_add=30) YKHO.set_value_into_input_field(YKHO.bulk_edit_end_date_inputbox_locator, KhBf)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Avh4(YKHO, KhBf):\n global bulk_add_begin_date\n if KhBf != '' and qcWV.datetime.strptime(KhBf, '%m/%d/%Y') > m3tP:\n YKHO.set_value_into_input_field(YKHO.bulk_add_end_date_inputbox_locator, str(KhBf))\n elif KhBf == '':\n KhBf = YKHO.get_date(last_day_of_current_month=True)\n YKH...
[ "0.7402478", "0.7031963", "0.67778796", "0.6563116", "0.64243233", "0.63864547", "0.63864547", "0.63864547", "0.63864547", "0.63864547", "0.63864547", "0.63864547", "0.63864547", "0.63433135", "0.629675", "0.6284176", "0.61299545", "0.604149", "0.6033477", "0.59961516", "0.59...
0.74479747
0
Get a `DatasetSentinel` representing an Experiment's `fold_train_input` Returns
def mr2u(YKHO): return WCDZ('train_input', **YKHO._dataset_sentinel_helper())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def w3wS(YKHO):\n return WCDZ('validation_input', **YKHO._dataset_sentinel_helper())", "def _sHw(YKHO):\n return WCDZ('train_target', **YKHO._dataset_sentinel_helper())", "def oJiQ(YKHO):\n return WCDZ('validation_target', **YKHO._dataset_sentinel_helper())", "def CxJK(YKHO, biH0=False):\n return...
[ "0.7197259", "0.7058317", "0.6581115", "0.63265425", "0.62734795", "0.61224383", "0.61224383", "0.609924", "0.59627235", "0.5961343", "0.58399856", "0.5539047", "0.55349284", "0.5525194", "0.54774237", "0.54644793", "0.5406239", "0.540372", "0.5370397", "0.5369286", "0.535446...
0.81839544
0
Get a `DatasetSentinel` representing an Experiment's `fold_train_target` Returns
def _sHw(YKHO): return WCDZ('train_target', **YKHO._dataset_sentinel_helper())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oJiQ(YKHO):\n return WCDZ('validation_target', **YKHO._dataset_sentinel_helper())", "def mr2u(YKHO):\n return WCDZ('train_input', **YKHO._dataset_sentinel_helper())", "def eMON(YKHO):\n return WCDZ('holdout_target', YKHO.cross_experiment_key.parameters['holdout_dataset'])", "def w3wS(YKHO):\n ...
[ "0.72998613", "0.713837", "0.66336054", "0.6162712", "0.5902305", "0.57828236", "0.5423811", "0.5414221", "0.53984654", "0.5350862", "0.52556276", "0.52556276", "0.5214808", "0.5211418", "0.51941895", "0.51866794", "0.5174885", "0.5166052", "0.51568496", "0.5156731", "0.51362...
0.81183374
0
Get a `DatasetSentinel` representing an Experiment's `holdout_target_data` Returns
def eMON(YKHO): return WCDZ('holdout_target', YKHO.cross_experiment_key.parameters['holdout_dataset'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Df6n(YKHO):\n return WCDZ('holdout_input', YKHO.cross_experiment_key.parameters['holdout_dataset'])", "def _sHw(YKHO):\n return WCDZ('train_target', **YKHO._dataset_sentinel_helper())", "def oJiQ(YKHO):\n return WCDZ('validation_target', **YKHO._dataset_sentinel_helper())", "def mr2u(YKHO):\n ...
[ "0.7770308", "0.7121358", "0.64517236", "0.6015566", "0.54749423", "0.5369748", "0.5230045", "0.52188426", "0.5049947", "0.49974164", "0.49770722", "0.49149367", "0.48960745", "0.48660335", "0.4858429", "0.47984567", "0.47667906", "0.47544086", "0.47335964", "0.47325793", "0....
0.84920114
0
Make an instance of the api and attempts to authenticate the user. Return the authenticated api.
def NLCy(): nNXP = yb_H() Y8Sy = nNXP.login() if not Y8Sy: print('No oauth credentials found, please authenticate your account') wC2y = nNXP.perform_oauth(open_browser=True) else: print('Successfully logged in.\n') return nNXP
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n7oW():\n rSTc = QePW.args.get('api_key', None)\n from flask import _request_ctx_stack\n if 'Authorization' in QePW.headers:\n rSTc = QePW.headers.get('Authorization')\n if rSTc:\n CBIr = NCls.session.query(C3ST.user.User).filter_by(api_key=rSTc).first()\n if CBIr:\n ...
[ "0.72514385", "0.7194521", "0.66663784", "0.66555786", "0.6583456", "0.6552307", "0.6540641", "0.64537", "0.6420162", "0.64155054", "0.6405242", "0.63488394", "0.6289332", "0.62696224", "0.62566435", "0.62319964", "0.6192098", "0.6162103", "0.61557543", "0.61531574", "0.61462...
0.65322834
7
Retrieve all conferences matching one or more given topics.
def suzN(YKHO, QePW): KUnM = [KeS0.topics == rlUa for rlUa in QePW.topics] if not KUnM: raise wnQ_.BadRequestException('At least one topic must be specified') lYRi = KeS0.query(rtVo.OR(*KUnM)).order(KeS0.name).fetch() return lYRi
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jB1s(YKHO, QePW):\n lYRi = YKHO._getConferencesByTopicSearch(QePW)\n aD_z = [rtVo.Key(SYRW, Fv2L.organizerUserId) for Fv2L in lYRi]\n QhXp = rtVo.get_multi(aD_z)\n ZWCE = {}\n for z39Z in QhXp:\n ZWCE[z39Z.key.id()] = z39Z.displayName\n return OV2g(items=[YKHO._copyConferenceToForm(Fv2...
[ "0.6711613", "0.6230136", "0.61121726", "0.60039115", "0.5985098", "0.5940796", "0.58975244", "0.58861005", "0.5882982", "0.5880553", "0.5836876", "0.58033025", "0.57397395", "0.5726651", "0.5705699", "0.5686112", "0.56527764", "0.56140727", "0.54820526", "0.5472352", "0.5471...
0.790961
0
Return formatted query from the submitted filters.
def L4cX(YKHO, QePW): vexM = KeS0.query() ByNx, KUnM = YKHO._formatFilters(QePW.filters) if not ByNx: vexM = vexM.order(KeS0.name) else: vexM = vexM.order(rtVo.GenericProperty(ByNx)) vexM = vexM.order(KeS0.name) for aHla in KUnM: if aHla['field'] in ['month', 'maxAtte...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OPRw(YKHO):\n ZLJ_ = ','.join(['\"{}\"'.format(WKvO) for WKvO in YKHO.columns])\n xDcj = 'SELECT {} FROM \"{}\"'.format(ZLJ_, YKHO.table)\n aubn = []\n if YKHO.filters:\n aBOo, aubn = zHhG(YKHO.filters)\n xDcj += ' WHERE {}'.format(aBOo)\n xDcj += ';'\n return (str(l5Ny(xDcj)), ...
[ "0.67433846", "0.67309666", "0.66847456", "0.6650939", "0.6648182", "0.64935666", "0.6440689", "0.63192457", "0.6306208", "0.628635", "0.62689066", "0.62631875", "0.6200151", "0.6186324", "0.6155119", "0.61444587", "0.61128426", "0.60982704", "0.6098094", "0.6062554", "0.6021...
0.62215513
12
Get list of conferences matching one or more of the given topics.
def jB1s(YKHO, QePW): lYRi = YKHO._getConferencesByTopicSearch(QePW) aD_z = [rtVo.Key(SYRW, Fv2L.organizerUserId) for Fv2L in lYRi] QhXp = rtVo.get_multi(aD_z) ZWCE = {} for z39Z in QhXp: ZWCE[z39Z.key.id()] = z39Z.displayName return OV2g(items=[YKHO._copyConferenceToForm(Fv2L, ZWCE[Fv2L...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def suzN(YKHO, QePW):\n KUnM = [KeS0.topics == rlUa for rlUa in QePW.topics]\n if not KUnM:\n raise wnQ_.BadRequestException('At least one topic must be specified')\n lYRi = KeS0.query(rtVo.OR(*KUnM)).order(KeS0.name).fetch()\n return lYRi", "def d0_Z(MVDx, rlUa):\n Ylbp = []\n Wmpw = MV...
[ "0.80247796", "0.6207768", "0.6082327", "0.60714567", "0.60658276", "0.5967323", "0.5963362", "0.59466356", "0.59359396", "0.59351933", "0.5891676", "0.5859516", "0.5841561", "0.5830634", "0.57371825", "0.5714454", "0.57058376", "0.56997335", "0.5605298", "0.54814893", "0.542...
0.67396516
1
Copy relevant fields from Profile to ProfileForm.
def tmbr(YKHO, Ppds): ZgWQ = LZ9C() for Jyyj in ZgWQ.all_fields(): if hasattr(Ppds, Jyyj.name): if Jyyj.name == 'teeShirtSize': setattr(ZgWQ, Jyyj.name, getattr(VLMJ, getattr(Ppds, Jyyj.name))) else: setattr(ZgWQ, Jyyj.name, getattr(Ppds, Jyyj.name...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P95S(YKHO):\n B2fa = super(tRtP, YKHO).get_form_kwargs()\n YKHO.profile = YKHO.get_object()\n YXyZ = {'profile': YKHO.profile}\n B2fa.update(YXyZ)\n return B2fa", "def T8Wd(YKHO, IRIU=None):\n Ppds = YKHO._getProfileFromUser()\n if IRIU:\n for Jyyj in ('displayName', 'teeShirtSize...
[ "0.6958025", "0.68784887", "0.64856434", "0.63592464", "0.6284996", "0.6272869", "0.6269607", "0.6214233", "0.62111384", "0.6183875", "0.6135155", "0.612614", "0.61004287", "0.6085827", "0.60856766", "0.6062952", "0.59629256", "0.58970684", "0.5893775", "0.5886109", "0.587434...
0.79479015
0
Get Profile and return to user, possibly updating it first.
def T8Wd(YKHO, IRIU=None): Ppds = YKHO._getProfileFromUser() if IRIU: for Jyyj in ('displayName', 'teeShirtSize'): if hasattr(IRIU, Jyyj): wEf2 = getattr(IRIU, Jyyj) if wEf2: print(wEf2) setattr(Ppds, Jyyj, str(wEf2)) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iszr(YKHO):\n _LNN('getProfile')\n return YKHO._genericGet('/profile')", "def Ykw5(YKHO):\n return YKHO.user.profile", "def ipQk(YKHO):\n CBIr = wnQ_.get_current_user()\n if not CBIr:\n raise wnQ_.UnauthorizedException('Authorization required')\n uJjO = CBIr.email()\n w7sF = rtV...
[ "0.7561392", "0.7465786", "0.7449008", "0.740987", "0.728692", "0.72677916", "0.71766216", "0.71651495", "0.70508856", "0.7031329", "0.695271", "0.6945094", "0.6902091", "0.68805087", "0.6845255", "0.6826616", "0.6815199", "0.6798655", "0.6770665", "0.67508954", "0.67319983",...
0.0
-1
Return Profile from datastore, creating new one if nonexistent.
def ipQk(YKHO): CBIr = wnQ_.get_current_user() if not CBIr: raise wnQ_.UnauthorizedException('Authorization required') uJjO = CBIr.email() w7sF = rtVo.Key(SYRW, uJjO) z39Z = w7sF.get() if not z39Z: z39Z = SYRW(key=w7sF, displayName=CBIr.nickname(), mainEmail=CBIr.email(), teeShir...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMoC(YKHO, mWFP='default'):\n if mWFP not in YKHO._cache:\n Zg0d = Hy7s.path.join(YKHO._base_folder, mWFP)\n YKHO._create_if_needed(Zg0d)\n YKHO._cache[mWFP] = SYRW(Zg0d, mWFP)\n return YKHO._cache[mWFP]", "def IWHb(vC92, KAOR, _EYN, **B2fa):\n if _EYN:\n SYRW.objects.get...
[ "0.67713064", "0.6432612", "0.638044", "0.6346034", "0.6343368", "0.62816966", "0.6173148", "0.61137223", "0.61025006", "0.61001056", "0.6060391", "0.6048729", "0.60413766", "0.601181", "0.5955292", "0.5921494", "0.5829891", "0.58183765", "0.5805473", "0.5801193", "0.5772561"...
0.70515484
0
Gets the default device
def VeaS(qIxc: dict) -> ht2j.device: if qlNT(qIxc): begE = ht2j.device('cuda', qIxc.local_rank) elif ht2j.cuda.is_available(): begE = ht2j.device('cuda', 0) else: begE = ht2j.device('cpu') return begE
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XXJM():\n global _default_device\n if KFDB is None:\n import wgpu.backends.rs\n nuPx = brdU.request_adapter(canvas=None, power_preference='high-performance')\n KFDB = nuPx.request_device()\n return KFDB", "def XXJM():\n return _eUd", "def XXJM():\n begE = ht2j.device('cu...
[ "0.85560495", "0.8509156", "0.81830615", "0.7949495", "0.7936597", "0.7936597", "0.7936597", "0.7936597", "0.765728", "0.75626457", "0.7489031", "0.74441177", "0.7370417", "0.73445976", "0.72786206", "0.72608113", "0.72608113", "0.72608113", "0.72608113", "0.72608113", "0.722...
0.0
-1
Get Seconds from time.
def E7kw(jmHs): MKlR, r8hN, KCHu = jmHs.split(':') return int(MKlR) * 3600 + int(r8hN) * 60 + int(KCHu)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bQkZ(ITS7):\n return 3600 * ITS7", "def hpAa(YKHO):\n O66n = YKHO.hour * 60 + YKHO.minute\n C6wh = O66n * 60 + YKHO.second\n return C6wh", "def hpAa(ITS7):\n O66n = ITS7.hour * 60 + ITS7.minute\n C6wh = O66n * 60 + ITS7.second\n return C6wh", "def E7kw(ITS7):\n r8hN, KCHu = (ITS7[...
[ "0.78827816", "0.7511598", "0.74796194", "0.73971415", "0.7275454", "0.7262169", "0.718104", "0.71555495", "0.7036447", "0.69965965", "0.6980901", "0.6879055", "0.6844431", "0.6838192", "0.6817343", "0.67910403", "0.67888385", "0.6770099", "0.67639846", "0.67639846", "0.67117...
0.70772296
9
Returns the theoretical probability that x_n will be between the values a and b.
def S2g4(YKHO, jzdc, Fg_i): kPG_, FjgF = YKHO.tuple_of_probabilities p7uj = [YRbF for YRbF, Ty9i in enumerate(kPG_) if Ty9i >= jzdc and Ty9i <= Fg_i] tIix = [FjgF[YRbF] for YRbF in p7uj] return sum(tIix)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q7Be(KCHu, jzdc, Fg_i):\n return KCHu.cdf(Fg_i) - KCHu.cdf(jzdc)", "def z6V0(WKvO):\n jzdc = 0\n Fg_i = 1\n if WKvO < jzdc:\n return 0\n elif WKvO > Fg_i:\n return 1\n else:\n return float(WKvO - jzdc) / (Fg_i - jzdc)", "def RwNK(o4D3, ajwV, jzdc, Fg_i):\n with g2z...
[ "0.7519538", "0.7352858", "0.7060859", "0.68735635", "0.68382454", "0.67430097", "0.6606817", "0.6601517", "0.65820867", "0.6561573", "0.6522591", "0.64544326", "0.6453946", "0.6387221", "0.6384941", "0.63692117", "0.63621324", "0.63278866", "0.632063", "0.6309425", "0.630878...
0.633067
17
Returns the theoretical average distance from x_initial.
def F1a8(YKHO): GFoW = 0 mMG6, FjgF = YKHO.tuple_of_probabilities for YRbF in range(len(mMG6)): rfpI, JxU2 = (mMG6[YRbF], FjgF[YRbF]) Jssk = abs(rfpI - YKHO.x_initial) HGgk = Jssk * JxU2 GFoW += HGgk return GFoW
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tW3I(YKHO):\n return oyIN.mean(YKHO.getx())", "def dezg(YKHO):\n gGnb = [0] * YKHO.num_samples\n for YRbF in range(YKHO.num_samples):\n gGnb[YRbF] = YKHO.sensor.measure_distance()\n ITS7.sleep(YKHO.sample_delay)\n if YKHO.drop_extremes:\n gGnb.sort()\n gGnb = gGnb[1:-1...
[ "0.65964574", "0.6528893", "0.65209246", "0.63227236", "0.6232084", "0.62193644", "0.61996084", "0.61704206", "0.6161522", "0.61305714", "0.61239797", "0.6103318", "0.6088901", "0.5991759", "0.59127855", "0.59127855", "0.59127855", "0.59074956", "0.58808935", "0.58742917", "0...
0.80323946
0
Get the MAC of Server Hardware's iLO controller.
def X8B8(rkNS): try: x0hE = fmGq(rkNS) Cv9f = '/rest/v1/systems/1' bdSV = S3sg.loads(x0hE.get(Cv9f).text) n9O6 = bdSV['HostCorrelation']['HostMACAddress'][0] except QsYp.JsonDecodingError as exc: na1r.error('Failed in JSON object getting path: %s', Cv9f) raise AJ5...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Oi9q(YKHO):\n import netifaces\n U4Kw = ['eth0', 'wlan0']\n try:\n U4Kw.append(netifaces.gateways()['default'][netifaces.AF_INET][1])\n except:\n pass\n for wohN in U4Kw:\n try:\n return netifaces.ifaddresses(wohN)[netifaces.AF_LINK][0]['addr']\n except Val...
[ "0.7558255", "0.7499342", "0.7251188", "0.7216513", "0.7197244", "0.7197244", "0.71224785", "0.7062655", "0.7039275", "0.68878335", "0.68746555", "0.677884", "0.67500824", "0.67455614", "0.6697018", "0.6639741", "0.662569", "0.6582134", "0.6567028", "0.6560305", "0.648537", ...
0.74903506
2
This function prints and plots the confusion matrix.
def LwSz(Bcwd, KndY, leAC='Confusion matrix', iMGt=QrM1.cm.Blues): crOo = KndY + ['Recall'] gJDY = KndY + ['Precision'] QrM1.imshow(Bcwd, interpolation='nearest', cmap=iMGt) QrM1.title(leAC, fontname='Times New Roman', fontsize=16, y=1.03) US3l = QrM1.colorbar(fraction=0.046) US3l.ax.tick_params...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LwSz(YKHO):\n pTn1 = beib.from_learner(YKHO.learn)\n pTn1.plot_confusion_matrix()", "def zd4X(YKHO):\n gAeH.heatmap(YKHO.conf_matrix, annot=True)\n QrM1.plot(label='Accuracy')\n QrM1.plot(label='Error')\n QrM1.figtext(0, 0, 'Accuracy: {}\\nError: {}\\nRecall: {}\\nPrecision: {}'.format(YKHO...
[ "0.80894613", "0.80770946", "0.79976976", "0.7946727", "0.7921785", "0.78448296", "0.7833224", "0.7781221", "0.7775631", "0.77574563", "0.77061635", "0.77016985", "0.7692213", "0.76785815", "0.76588994", "0.7641414", "0.7622791", "0.7611233", "0.7610989", "0.7598244", "0.7587...
0.75652844
24
Returns a frozenset of variables used in given terms. Note that this returns all used variables, not just free ones.
def xdPZ(*NHn2): a1PO = NHn2[0] if len(NHn2) == 1 else NHn2 if type(a1PO) is RELP: return frozenset((a1PO,)) elif type(a1PO) in (tuple, g2y1, XyCi, cf81, VfeF, Oc_p, keVH, XHtG, cAUC, meW6): return b65I(*(xdPZ(WKvO) for WKvO in a1PO)) elif type(a1PO) in (uAyG, wsY6, Zlsf, xhEc): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RCr9(*NHn2, **B2fa):\n NCru = B2fa.get('by_name', False)\n s0Je = YLnl(RCr9, by_name=NCru)\n a1PO = NHn2[0] if len(NHn2) == 1 else NHn2\n if type(a1PO) is RELP:\n return frozenset((a1PO.name if NCru else a1PO,))\n elif type(a1PO) in (tuple, g2y1, XyCi, cf81, VfeF, Oc_p, keVH, XHtG, cAUC, ...
[ "0.7428986", "0.6987549", "0.69048446", "0.6717069", "0.6559568", "0.63589525", "0.62739486", "0.6270176", "0.61921215", "0.6188963", "0.61090964", "0.5963275", "0.5938047", "0.5924042", "0.589158", "0.5881121", "0.5876238", "0.5858637", "0.56572014", "0.5639939", "0.56199235...
0.7920552
0
Returns a frozenset of variables free in given terms.
def RCr9(*NHn2, **B2fa): NCru = B2fa.get('by_name', False) s0Je = YLnl(RCr9, by_name=NCru) a1PO = NHn2[0] if len(NHn2) == 1 else NHn2 if type(a1PO) is RELP: return frozenset((a1PO.name if NCru else a1PO,)) elif type(a1PO) in (tuple, g2y1, XyCi, cf81, VfeF, Oc_p, keVH, XHtG, cAUC, meW6): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xdPZ(*NHn2):\n a1PO = NHn2[0] if len(NHn2) == 1 else NHn2\n if type(a1PO) is RELP:\n return frozenset((a1PO,))\n elif type(a1PO) in (tuple, g2y1, XyCi, cf81, VfeF, Oc_p, keVH, XHtG, cAUC, meW6):\n return b65I(*(xdPZ(WKvO) for WKvO in a1PO))\n elif type(a1PO) in (uAyG, wsY6, Zlsf, xhEc...
[ "0.7301436", "0.6923216", "0.66222817", "0.6540475", "0.6467375", "0.63554454", "0.6250781", "0.61498994", "0.5961769", "0.58668995", "0.5840457", "0.5688273", "0.5672531", "0.5552212", "0.5511896", "0.55101573", "0.54558146", "0.5436367", "0.5431674", "0.54288334", "0.541791...
0.7726464
0
Returns a frozenset of variables bound in given terms.
def joxI(*NHn2): a1PO = NHn2[0] if len(NHn2) == 1 else NHn2 if type(a1PO) is RELP: return frozenset() elif type(a1PO) in (tuple, g2y1, XyCi, cf81, VfeF, Oc_p, keVH, XHtG, cAUC, meW6): return b65I(*(joxI(WKvO) for WKvO in a1PO)) elif type(a1PO) in (uAyG, wsY6, Zlsf, xhEc): return ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xdPZ(*NHn2):\n a1PO = NHn2[0] if len(NHn2) == 1 else NHn2\n if type(a1PO) is RELP:\n return frozenset((a1PO,))\n elif type(a1PO) in (tuple, g2y1, XyCi, cf81, VfeF, Oc_p, keVH, XHtG, cAUC, meW6):\n return b65I(*(xdPZ(WKvO) for WKvO in a1PO))\n elif type(a1PO) in (uAyG, wsY6, Zlsf, xhEc...
[ "0.72198117", "0.70041084", "0.6517899", "0.59218013", "0.5741847", "0.57111204", "0.5670193", "0.5647711", "0.5632197", "0.5581976", "0.55689853", "0.55376583", "0.54729617", "0.5426977", "0.5418284", "0.5415937", "0.5402921", "0.53907967", "0.5385815", "0.53603476", "0.5360...
0.8032309
0
Returns a frozenset of constants used in given terms.
def t0kQ(*NHn2): a1PO = NHn2[0] if len(NHn2) == 1 else NHn2 if type(a1PO) is g2y1: return frozenset((a1PO,)) elif type(a1PO) in (tuple, RELP, XyCi, cf81, VfeF, Oc_p, keVH, XHtG, cAUC, meW6, uAyG, wsY6, Zlsf, xhEc): return b65I(*(t0kQ(WKvO) for WKvO in a1PO)) elif hasattr(a1PO, 'args'): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nRNa():\n return filter(lambda H5ew: H5ew.upper() == H5ew and type(globals()[H5ew]) in qtkm, filter(lambda WKvO: not WKvO.startswith('_'), globals()))", "def xdPZ(*NHn2):\n a1PO = NHn2[0] if len(NHn2) == 1 else NHn2\n if type(a1PO) is RELP:\n return frozenset((a1PO,))\n elif type(a1PO) in ...
[ "0.63245064", "0.5992687", "0.59890866", "0.59641623", "0.5806408", "0.56888586", "0.56451476", "0.55847293", "0.5571786", "0.55393314", "0.55284834", "0.5504401", "0.54954517", "0.54566354", "0.54400617", "0.5428424", "0.54196256", "0.5411198", "0.53967535", "0.53961635", "0...
0.80427533
0
Create the final HTML oxygen files, with the common header, a specific left menu and the main body.
def fGWa(MFdR, dXaH): dSnw = pmON.join(nxLx, 'schema_viewer', 'templates', 'schema_viewer', 'oxygen', 'header_oxygen_template.html') TDox = open(dSnw, 'r') WBPg = TDox.read() TDox.close() oaog = WBPg + '\n{% block oxygen_menu %}\n' + MFdR + '{% endblock %}\n{% block oxygen_content %}' + dXaH + '{% e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NdRg(_RR0: TextIO, leAC: str, zJ1M: str='') -> None:\n _RR0.write('<!DOCTYPE HTML>\\n')\n _RR0.write('<html lang=\"en\">\\n')\n _RR0.write(' <head>\\n')\n _RR0.write(' <!-- Google tag (gtag.js) -->\\n')\n _RR0.write(' <script async src=\"https://www.googletagmanager.com/gtag/js?id=G-94FNMMTWT...
[ "0.61840135", "0.615706", "0.6106681", "0.59005207", "0.58948696", "0.5833731", "0.57632947", "0.57230896", "0.57106525", "0.57040775", "0.56784046", "0.5634475", "0.56243837", "0.5544781", "0.5540921", "0.5534541", "0.55281717", "0.55029094", "0.5502361", "0.5495124", "0.549...
0.7858279
0
Check if the files are name the right way.
def RZLK(GOpN, nQ_S, QF7s): return nQ_S.startswith(QF7s.replace('.', '_')) and GOpN.startswith(QF7s)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kncQ(YKHO, gIsw, sT2Z):\n if YKHO.check_file_exists(gIsw):\n if YKHO.check_file_name_extensions(gIsw, sT2Z):\n return True\n else:\n return False\n else:\n print('File does not exist')\n return False", "def GJVi(mWFP: str) -> bool:\n return not mWFP....
[ "0.71929294", "0.7132529", "0.7119266", "0.7111831", "0.70485663", "0.6969248", "0.6935903", "0.69152814", "0.69132406", "0.68058664", "0.6759821", "0.67477936", "0.67245626", "0.6688093", "0.6649612", "0.6649612", "0.6649612", "0.6649267", "0.6627869", "0.6600657", "0.653856...
0.0
-1
Get data location from Rucio. Location is mapped to the actual sites associated with them, so PSNs are actually returned
def N90q(YKHO, qaSx, yKad): Aofo = oRi_(set) YKHO.logger.info('Fetching location from Rucio for account: %s', yKad) for M798 in qaSx: try: GSXw = YKHO.rucio.getDataLockedAndAvailable(name=M798, account=yKad) Aofo[M798] = YKHO.cric.PNNstoPSNs(GSXw) except Exception as ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hbd3(YKHO):\n return YKHO.location", "def J1J7(YKHO) -> qe4Y.Output[h8nf['outputs.LocationDataResponse']]:\n return qe4Y.get(YKHO, 'location_data')", "def hbd3(YKHO):\n return YKHO.request({'path': '/' + S7kj + '/location'})", "def qoEw(YKHO):\n return BfDw.get_object('crds', YKHO.observatory...
[ "0.66687316", "0.66027284", "0.65894485", "0.6579517", "0.6561672", "0.6553024", "0.6507655", "0.6507655", "0.6507655", "0.6507655", "0.6507655", "0.6507655", "0.6507655", "0.6507655", "0.6507655", "0.6507655", "0.6507655", "0.6507655", "0.6507655", "0.6507655", "0.6507655", ...
0.6383166
35
Creates a color palette compatible with Bokeh from a matplotlib cmap name.
def g0_Y(iMGt): from bokeh.colors import RGB from matplotlib import cm bphi = (255 * QrM1.get_cmap(iMGt)(range(256))).astype('int') return [RGB(*tuple(d7Eb)).to_hex() for d7Eb in bphi]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XTKI(mWFP):\n if mWFP in F3ep:\n return F3ep[mWFP]\n cCuI = QrM1.get_cmap(mWFP)(oyIN.linspace(0, 1, 256))\n tn62 = [XJC0(qfpW) for qfpW in cCuI]\n return tn62", "def pLK7(VIaY):\n if hasattr(QrM1.cm, VIaY):\n iMGt = getattr(QrM1.cm, VIaY)\n elif VIaY in list(WBZl.cmap_d.keys()...
[ "0.8101128", "0.6942909", "0.6776598", "0.6741528", "0.6741528", "0.66666794", "0.66659963", "0.66659963", "0.66659963", "0.6503461", "0.6470813", "0.6413775", "0.63696545", "0.6352337", "0.631037", "0.61285675", "0.61251086", "0.6121512", "0.6044165", "0.60116994", "0.601053...
0.6990008
1
Aggregate columns programmatically by key.
def Qemi(YKHO, **xGA_): svpO = YKHO._parent.columns[0] xGA_ = {G1Hx: IYBy(Ty9i) for G1Hx, Ty9i in xGA_.items()} lv1I = [] P8oC, HySU = YKHO._parent._process_joins(*tuple((Ty9i for bGrB, Ty9i in YKHO._groups)) + tuple(xGA_.values())) for G1Hx, Ty9i in xGA_.items(): JybI(Ty9i, YKHO._parent._gl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RGND(YKHO, NKcE, iVRZ, sjXb=None, **VUsd):\n FYKK = lambda zZcM: getattr(zZcM, NKcE)(iVRZ, sjXb, **VUsd)\n dixj = (FYKK(JZXy) for JZXy in YKHO._sources)\n if not sjXb:\n return sum(dixj)\n wjRY = oRi_(lambda: 0)\n for Aofo in dixj:\n for H5ew, wEf2 in Aofo.items():\n wjR...
[ "0.624569", "0.6182713", "0.5959669", "0.585134", "0.58205134", "0.58175886", "0.5809809", "0.57893384", "0.5758293", "0.57507086", "0.5689084", "0.565568", "0.55807096", "0.5495027", "0.5494613", "0.5443911", "0.54225457", "0.542183", "0.52948076", "0.52925116", "0.5273306",...
0.536521
18
Sequence slicing should work as expected
def C5Rt(YKHO): Mkmy = YKHO.RNA('UCAGG') YKHO.assertEqual(Mkmy[0], 'U') YKHO.assertEqual(Mkmy[-1], 'G') YKHO.assertEqual(Mkmy[1:3], 'CA')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R6Bn(Q6uT, yKcO=None, JCyR=None, YPaw=None):\n return Q6uT[yKcO:JCyR:YPaw]", "def vfx8(aWuw, yKcO=None, JCyR=None, YPaw=1):\n yKcO, JCyR, YPaw = slice(yKcO, JCyR, YPaw).indices(len(aWuw))\n for YRbF in range(yKcO, JCyR, YPaw):\n yield aWuw[YRbF]", "def tyU1(YKHO, lMu4):\n return slice(YK...
[ "0.76085573", "0.6842696", "0.6784009", "0.6566867", "0.64801246", "0.6462902", "0.6415221", "0.6349267", "0.6320076", "0.62818056", "0.6269232", "0.6247975", "0.6244434", "0.6231251", "0.6221761", "0.62118554", "0.62083834", "0.6200476", "0.6195259", "0.61610466", "0.6138917...
0.5722164
59
Returns copy of self as RNA.
def tDvm(YKHO): Mkmy = YKHO.DNA('UCA') YKHO.assertEqual(str(Mkmy), 'TCA') YKHO.assertEqual(str(Mkmy.to_rna()), 'UCA')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hQNs(YKHO):\n return ''.join((YKHO._DNA_TO_RNA[K4sN] for K4sN in YKHO.strand))", "def ToxW(YKHO):\n return YKHO.seq.replace('T', 'U').replace('t', 'u')", "def hQNs(YKHO):\n qBfB = 'T'\n QcuT = 'U'\n return YKHO.dna.replace(qBfB, QcuT)", "def hQNs(YKHO):\n return YKHO._nucleotids.replace...
[ "0.7086926", "0.6499243", "0.6490486", "0.63800514", "0.63091546", "0.6080952", "0.57973856", "0.57460046", "0.57460046", "0.5709716", "0.56820047", "0.5672864", "0.5625302", "0.5621346", "0.55915904", "0.554945", "0.5540344", "0.5539744", "0.5526546", "0.5500591", "0.54775",...
0.54868966
20
Creates a filename for the diff image.
def CYnr(YKHO): wS_e = Hy7s.path.join(YKHO.__folder, FLGC.DIFF_OUT) if not Hy7s.path.exists(wS_e): Hy7s.makedirs(wS_e) return Hy7s.path.join(wS_e, YKHO.__name + '.jpg')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lits():\n wzkt = qcWV.now().strftime('%a-%w-%b-%H:%M:%S')\n return 'CCTV_{0}.jpg'.format(wzkt)", "def MiTW(YKHO):\n d6pt = YKHO.helpers.alpha_uuid()\n Ux0P = YKHO.form['FieldStorage'][YKHO.image_cid].filename\n Fst3 = GKtl(bmCH(Ux0P)[0])\n return YKHO.articleData.get('directory') + '/' + YK...
[ "0.7496504", "0.70392674", "0.6811171", "0.68030304", "0.6780318", "0.6759815", "0.6705021", "0.6657758", "0.66381377", "0.663154", "0.6581436", "0.656019", "0.6552397", "0.64273417", "0.64220864", "0.64080304", "0.6396402", "0.6372434", "0.6313289", "0.6312673", "0.62726647"...
0.80227315
0
Returns true if the list contains a similar rect.
def HBf7(mawX, DbMD): for YRbF in reversed(range(len(DbMD))): if FLGC.__is_similar(DbMD[YRbF], mawX): del DbMD[YRbF] return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HU0K(mawX, rEbr):\n bzU2 = mawX[2] * mawX[3]\n Eq1k = rEbr[2] * rEbr[3]\n Nxsc = min(mawX[0] + mawX[2], rEbr[0] + rEbr[2]) - max(mawX[0], rEbr[0])\n if not Nxsc > 0:\n return False\n PmBn = min(mawX[1] + mawX[3], rEbr[1] + rEbr[3]) - max(mawX[1], rEbr[1])\n if not PmBn > 0:\n re...
[ "0.6806085", "0.65448457", "0.6458573", "0.6406005", "0.6380805", "0.6235643", "0.6211002", "0.6206766", "0.615934", "0.6149881", "0.61256045", "0.6114601", "0.6105064", "0.60557085", "0.60360897", "0.60351527", "0.60016364", "0.5986043", "0.59527403", "0.5941617", "0.5937699...
0.8229332
0
Test when project gets deleted.
def TuTW(YKHO): ekCf = YKHO.project.id B5PH = YKHO.project.name CkGl = Wf3p.objects.count() YKHO.project.delete() XrIi = Wf3p.objects.count() YKHO.assertEqual(XrIi, CkGl + 2) nfqd = Wf3p.objects.all().order_by('-pk')[:2] YKHO.assertNotEqual(nfqd[1].user, {'id': str(YKHO.user.id), 'displa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def T2lZ(YKHO):\n pass", "def T2lZ(YKHO):\n pass", "def l2eV(YKHO):\n pass", "def T2lZ(YKHO):\n YKHO.assertEqual(oPx1.objects.count(), 1)\n YKHO.assertEqual(cQ68.objects.count(), 2)\n w2Y9(oPx1.objects.get(name='project A'))\n YKHO.assertEqual(oPx1.objects.count(), 0)\n YKHO.assertEqu...
[ "0.8945626", "0.8945626", "0.8373581", "0.8258003", "0.7921199", "0.78197724", "0.75639015", "0.7360813", "0.7317375", "0.7300423", "0.72148603", "0.72126514", "0.71026635", "0.7097451", "0.7096935", "0.70813435", "0.7003509", "0.6982068", "0.6978296", "0.69615585", "0.693842...
0.67966235
33
Test when multiple model fields changes.
def M8rh(YKHO): CkGl = Wf3p.objects.count() aOb_ = YKHO.project.isprivate YtUH = YKHO.project.islocked YKHO.project.isprivate = False YKHO.project.islocked = True YKHO.project.save() XrIi = Wf3p.objects.count() YKHO.assertEqual(XrIi, CkGl + 2) nfqd = Wf3p.objects.all().order_by('-pk'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jpqw(YKHO):\n pass", "def shUt(YKHO, PAX_):\n pass", "def lWMN(YKHO):\n sOjC = YKHO._field_map\n for Jyyj in sOjC.itervalues():\n if Jyyj.was_changed():\n return True\n return False", "def w1MB(Wdsz, B6iH, TKnD, te2v):\n hpke = Wdsz.update(fields={'age': 14}, age=12)\n...
[ "0.69400656", "0.6714582", "0.64557713", "0.62088406", "0.6202799", "0.61854094", "0.6156362", "0.61393243", "0.6132215", "0.61121684", "0.6104089", "0.60721403", "0.6061349", "0.6043818", "0.6033619", "0.6031339", "0.6025014", "0.60222876", "0.6019186", "0.60170436", "0.6014...
0.693425
1
Return the negative of __eq__(), implemented by concrete classes
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif):\n return not YKHO == Elif", "def xa14(YKHO, Elif):\n return super().__ne__(Elif)", "def Vdqg(YKHO, Elif):\n return not YKHO == Elif", "def xa14(YKHO, *qIxc):\n pass", "def xa14(YKHO, *qIxc):\n pass", "def xa14(YKHO, *qIxc):\n pass", "def xa14(YKHO, *qIxc):\n p...
[ "0.7841935", "0.7838963", "0.78300256", "0.7813462", "0.7813462", "0.7813462", "0.7813462", "0.7813462", "0.7813462", "0.7813462", "0.7813462", "0.7813462", "0.7813462", "0.7813462", "0.7813462", "0.7813462", "0.7813462", "0.7813462", "0.7813462", "0.7813462", "0.7813462", ...
0.0
-1
Residual block described in paper
def QufS(oubr, KUnM): Csk6 = yHwh(KUnM, kernel_size=3, strides=1, padding='same')(oubr) Csk6 = MroH('relu')(Csk6) Csk6 = GVKG(momentum=0.8)(Csk6) Csk6 = yHwh(KUnM, kernel_size=3, strides=1, padding='same')(Csk6) Csk6 = GVKG(momentum=0.8)(Csk6) Csk6 = XVRe()([Csk6, oubr]) return Csk6
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E5KX(YKHO):\n VC3Q = YKHO.I - YKHO.E\n return VC3Q", "def EcHA(YKHO):\n import pdb\n for yuVB in range(YKHO.nc):\n YKHO.elementResidual[yuVB].fill(0.0)\n YKHO.ellamDiscretization.updateElementResidual(YKHO.elementResidual)", "def mBEO(YKHO, WKvO):\n MKlR = WKvO\n MKlR = YKHO.c1(...
[ "0.7339091", "0.7072034", "0.70234454", "0.6885977", "0.6880569", "0.6876191", "0.68473864", "0.6829634", "0.6631433", "0.66043603", "0.6594716", "0.6505566", "0.6351166", "0.634814", "0.6325655", "0.6318231", "0.63133407", "0.6311214", "0.62727916", "0.6271527", "0.6249097",...
0.59564304
39
Precision metric. Only computes a batchwise average of precision. Computes the precision, a metric for multilabel classification of how many selected items are relevant.
def gJHS(Y8eF, aMgO): COti = nMvt.sum(nMvt.round(nMvt.clip(Y8eF * aMgO, 0, 1))) ftZB = nMvt.sum(nMvt.round(nMvt.clip(aMgO, 0, 1))) rhd_ = COti / (ftZB + nMvt.epsilon()) return rhd_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rhd_(YKHO):\n YKHO.overall_precision = Rrc1(YKHO.y_true, YKHO.y_pred, average=YKHO.average_type).round(YKHO.digits_count_fp)\n YKHO.classes_precision = Rrc1(YKHO.y_true, YKHO.y_pred, average=None).round(YKHO.digits_count_fp)", "def lGpo(nPrm, svPB=4):\n gCUM = []\n for KAOR in nPrm:\n RDeU...
[ "0.7490921", "0.72890615", "0.7158933", "0.7153277", "0.7066191", "0.698819", "0.696778", "0.69555235", "0.6834697", "0.6818974", "0.6810516", "0.68061554", "0.68061554", "0.68061554", "0.68061554", "0.68061554", "0.68061554", "0.6786765", "0.6758681", "0.6758681", "0.6758681...
0.691368
8
Recall metric. Only computes a batchwise average of recall. Computes the recall, a metric for multilabel classification of how many relevant items are selected.
def rpZY(Y8eF, aMgO): COti = nMvt.sum(nMvt.round(nMvt.clip(Y8eF * aMgO, 0, 1))) z5jX = nMvt.sum(nMvt.round(nMvt.clip(Y8eF, 0, 1))) AOzf = COti / (z5jX + nMvt.epsilon()) return AOzf
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AOzf(Y8eF, aMgO, S8vG, Crrw):\n Y8eF, aMgO = eN6f(Y8eF, aMgO, S8vG, Crrw)\n Aofo = None\n r8hN = len(Y8eF)\n exwG = len(Crrw)\n YsYU = A3YK(Y8eF, aMgO, Crrw).T\n if S8vG == 'micro':\n M6pt = oyIN.trace(YsYU)\n UUZ1 = oyIN.sum(YsYU)\n Aofo = M6pt / UUZ1\n elif S8vG == '...
[ "0.7605524", "0.74488467", "0.7404089", "0.7280915", "0.72097343", "0.7165874", "0.7157609", "0.7145226", "0.7145226", "0.7145226", "0.7145226", "0.7145226", "0.7145226", "0.71317255", "0.71007556", "0.70970625", "0.70970625", "0.70970625", "0.70970625", "0.70970625", "0.7097...
0.6768482
54
3x3conv filter preserves fmap dimensions if stride=1 exactly halves fmap dimensions if stride=2 requires padding=dilation=1, kernel_size=3 becomes depthwise convolution when in_planes = out_planes = groups
def Myly(UUZO, sYyA, _0fC=1, moMn=1): return U78l.Conv2d(UUZO, sYyA, kernel_size=3, stride=_0fC, groups=moMn, padding=1, dilation=1, bias=False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Myly(UUZO, sYyA, _0fC=1, ivFb=1, dvgN=1):\n return U78l.Conv2d(UUZO, sYyA, kernel_size=3, stride=_0fC, padding=dvgN, dilation=ivFb, bias=False)", "def Myly(UUZO, sYyA, _0fC=1, dvgN=1, ivFb=1, moMn=1, oug5=False):\n return U78l.Conv2d(UUZO, sYyA, kernel_size=3, stride=_0fC, padding=dvgN, dilation=ivFb, ...
[ "0.77772915", "0.7751898", "0.7708785", "0.7708785", "0.7708785", "0.7696468", "0.76708174", "0.76697737", "0.76697737", "0.76697737", "0.76697737", "0.76697737", "0.76697737", "0.76697737", "0.76697737", "0.76697737", "0.76697737", "0.76697737", "0.76697737", "0.76697737", "...
0.7554087
29
Create Dataset subclass on cityscapes dataset
def FIMM(YKHO, tETI, Tuqy='train', Ymkf=None): YKHO.dataset = tETI YKHO.transforms = Ymkf JFXi = ['trainImages.txt', 'trainLabels.txt', 'valImages.txt', 'valLabels.txt', 'testImages.txt', 'testLabels.txt'] if Tuqy not in ['train', 'test', 'val']: raise ValueError('Unsupported mode %s' % Tuqy) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, __n6: Dataset):\n YKHO.dataset = __n6", "def FIMM(YKHO, JRxO, Pusg=False):\n __n6 = cLP1(root='data/TUDataset', name=JRxO)\n if Pusg:\n j8AJ = []\n for YRbF in PRqg(range(len(__n6))):\n sX1k = jth9.deepcopy(__n6[YRbF])\n sX1k.edge_index = GC6f.reduce_ed...
[ "0.7318747", "0.7070812", "0.705741", "0.69346154", "0.6801784", "0.67992985", "0.6797068", "0.675288", "0.67364866", "0.6648119", "0.6614223", "0.6611031", "0.65885764", "0.65562135", "0.6517669", "0.65067214", "0.6500058", "0.64421076", "0.64387065", "0.6411031", "0.6365106...
0.0
-1
Adjust learning rate at each epoch
def NcuP(YKHO): b0Ix = YKHO.params.base_lr * (1 - float(YKHO.epoch) / YKHO.params.num_epoch) ** YKHO.params.power for Lwm5 in YKHO.opt.param_groups: Lwm5['lr'] = b0Ix print('Change learning rate into %f' % b0Ix) YKHO.summary_writer.add_scalar('learning_rate', b0Ix, YKHO.epoch)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e_63(YKHO, qtWj):\n tspZ = YKHO.lr * 0.5 ** (qtWj // 2)\n for Lwm5 in YKHO.optimizer.param_groups:\n Lwm5['lr'] = tspZ", "def e_63(K0do, qtWj):\n tspZ = y7GR.lr * 0.5 ** (qtWj // y7GR.step)\n return tspZ", "def e_63(YKHO, K0do, qtWj, qIxc):\n tspZ = qIxc.learning_rate * 0.1 ** (qtWj /...
[ "0.82811373", "0.82739276", "0.8209765", "0.81924576", "0.8177442", "0.81709737", "0.8161613", "0.8161521", "0.8161521", "0.8161521", "0.81576496", "0.8155148", "0.8144319", "0.81242913", "0.81204253", "0.8119406", "0.81193167", "0.81014806", "0.81010354", "0.8084342", "0.808...
0.78228253
74
Return the remainder of a list in src, starting before an element or ). >>> read_tail(Buffer(tokenize_lines([')']))) nil >>> read_tail(Buffer(tokenize_lines(['2 3)']))) Pair(2, Pair(3, nil)) >>> read_tail(Buffer(tokenize_lines(['2 (3 4))']))) Pair(2, Pair(Pair(3, Pair(4, nil)), nil))
def kgm4(zZcM): if zZcM.current() is None: raise SyntaxError('unexpected end of file') if zZcM.current() == ')': zZcM.pop() return MX8z cntZ = nvew(zZcM) wOmD = kgm4(zZcM) return Okue(cntZ, wOmD)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _iMd(YKHO, zFiD, sdCG, J3uN):\n nPrm = None\n wOmD = zFiD\n _9an = zFiD.find(sdCG)\n if _9an != -1:\n zFiD = zFiD[_9an + len(sdCG):]\n Os4s = zFiD.find(J3uN)\n if Os4s != -1:\n nPrm = zFiD[:Os4s]\n wOmD = zFiD[Os4s + len(J3uN):]\n return (nPrm, wOmD)", ...
[ "0.62023", "0.5961643", "0.5870388", "0.5625115", "0.559991", "0.55696696", "0.55203354", "0.5368489", "0.5332481", "0.5304666", "0.5293615", "0.5290877", "0.5275637", "0.5255011", "0.52535564", "0.51826555", "0.5160872", "0.5157932", "0.51445717", "0.5142943", "0.51237637", ...
0.7980613
0
Initializes the topic model
def FIMM(YKHO, kH8T, wslN, YPaw): super(kIr2, YKHO).__init__() YKHO.min_topics = kH8T YKHO.max_topics = wslN YKHO.step = YPaw
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, rlUa):\n YKHO.topic = rlUa", "def FIMM(YKHO):\n YKHO.topics = {}", "def FIMM(YKHO, _mSQ, AdpB):\n YKHO.W, YKHO.K = AdpB.shape\n assert YKHO.W > YKHO.K\n YKHO.topics = AdpB\n PDHB.__init__(YKHO, _mSQ, AdpB)", "def FIMM(YKHO, ppkj, AdpB):\n YKHO.W, YKHO.K = AdpB.shape\n a...
[ "0.75878173", "0.7326735", "0.7317074", "0.7296003", "0.7248847", "0.7173298", "0.70417184", "0.67718774", "0.6764849", "0.6759086", "0.6741697", "0.66902506", "0.66195655", "0.65756196", "0.65608066", "0.65159005", "0.6511945", "0.64816284", "0.6464826", "0.64429224", "0.643...
0.60266024
28
Add a handler to an existing logging.Logger object
def gYr4(bo34, DCgT=None, NX0m=None): DCgT.setLevel(NX0m or OUTX) if DCgT.level <= G9jH.DEBUG: uQMc = '%(asctime)s| %(levelname)-4.3s|%(threadName)10.9s/%(lineno)04d@%(module)-10.9s| %(message)s' DCgT.setFormatter(G9jH.Formatter(uQMc)) else: DCgT.setFormatter(G9jH.Formatter('%(asctim...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OeCl(bo34):\n if ffjU().log_file is None:\n return\n Ga6V = G9jH.FileHandler(ffjU().log_file)\n Ga6V.setLevel(G9jH.DEBUG)\n uaPq = G9jH.Formatter(fmt='[%(asctime)s] - %(levelname)s - %(name)s >>> %(message)s', datefmt='%Y-%m-%d %H:%M:%S')\n Ga6V.setFormatter(uaPq)\n bo34.addHandler(Ga6...
[ "0.730158", "0.7083873", "0.70768595", "0.69950664", "0.67779076", "0.67307496", "0.6639868", "0.6612778", "0.6585183", "0.65658885", "0.6468931", "0.64650214", "0.6443481", "0.64255625", "0.63551295", "0.63521326", "0.634116", "0.63212717", "0.63015157", "0.62598276", "0.625...
0.74555445
0
Remove dictionary keys whose value is None
def uuKH(cmPJ): return list(map(cmPJ.pop, [YRbF for YRbF in cmPJ if cmPJ[YRbF] is None]))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e5iB(fGC9):\n Ylbp = {}\n Ylbp.update(((H5ew, BWXx) for H5ew, BWXx in fGC9.iteritems() if BWXx is not None))\n return Ylbp", "def Yylp(cmPJ: Dict) -> cuzp:\n return {H5ew: BWXx for H5ew, BWXx in cmPJ.items() if BWXx is not None}", "def xnx3(tbx9):\n return {G1Hx: Ty9i for G1Hx, Ty9i in list(...
[ "0.82933813", "0.8234842", "0.81453615", "0.7987498", "0.7972441", "0.79094595", "0.78908825", "0.7887798", "0.77657074", "0.7746054", "0.7739094", "0.76895493", "0.7611383", "0.75638944", "0.753068", "0.742391", "0.7329428", "0.7286233", "0.72591496", "0.72389627", "0.723101...
0.7719699
11
Test leave days sufficient.
def tpcU(YKHO): CBIr = k_g4.make('auth.User', first_name='Bob', last_name='Ndoe') itwK = k_g4.make('small_small_hr.StaffProfile', user=CBIr) itwK.leave_days = 21 itwK.sick_days = 10 itwK.save() QePW = YKHO.factory.get('/') QePW.session = {} QePW.user = fCU0() yKcO = qcWV(2017, 6, 5, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CT0b():\n pass", "def PsqJ(YKHO, UUAV, Sm0u):\n if UUAV == 1:\n return Sm0u <= YKHO.earned_balance\n elif UUAV == 2:\n return Sm0u <= YKHO.hp_balance\n elif UUAV == 3:\n return Sm0u * 2 <= YKHO.hp_balance\n else:\n return False", "def CYpx(YKHO):\n YKHO.request...
[ "0.7283778", "0.69937253", "0.69766676", "0.6856982", "0.6750773", "0.66546655", "0.6651582", "0.6467872", "0.6376243", "0.6373224", "0.6355564", "0.635506", "0.6275747", "0.6274649", "0.62272155", "0.6193317", "0.6190739", "0.6174433", "0.6147189", "0.6145103", "0.6110374", ...
0.7107806
1
Test StaffProfileUserForm image not required on update.
def L5dT(YKHO): CBIr = k_g4.make('auth.User') itwK = k_g4.make('small_small_hr.StaffProfile', user=CBIr) QePW = YKHO.factory.get('/') QePW.session = {} QePW.user = fCU0() pmON = Hy7s.path.join(Odyn, 'tests', 'fixtures', 'profile.png') with open(pmON, 'r+b') as VfIt: nPrm = {'first_na...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xDPe(YKHO):\n CBIr = k_g4.make('auth.User')\n itwK = k_g4.make('small_small_hr.StaffProfile', user=CBIr)\n QePW = YKHO.factory.get('/')\n QePW.session = {}\n QePW.user = fCU0()\n pmON = Hy7s.path.join(Odyn, 'tests', 'fixtures', 'profile.png')\n with open(pmON, 'r+b') as VfIt:\n nPrm...
[ "0.7652241", "0.6728502", "0.66071117", "0.6606162", "0.6591402", "0.6577869", "0.6530034", "0.64637095", "0.640589", "0.6283228", "0.61998254", "0.61802197", "0.6131706", "0.6127896", "0.612147", "0.6116664", "0.6115772", "0.6107535", "0.60589457", "0.60509855", "0.6047661",...
0.78006655
0
Test StaffProfileAdminForm image not required when editting.
def xDPe(YKHO): CBIr = k_g4.make('auth.User') itwK = k_g4.make('small_small_hr.StaffProfile', user=CBIr) QePW = YKHO.factory.get('/') QePW.session = {} QePW.user = fCU0() pmON = Hy7s.path.join(Odyn, 'tests', 'fixtures', 'profile.png') with open(pmON, 'r+b') as VfIt: nPrm = {'user': C...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def L5dT(YKHO):\n CBIr = k_g4.make('auth.User')\n itwK = k_g4.make('small_small_hr.StaffProfile', user=CBIr)\n QePW = YKHO.factory.get('/')\n QePW.session = {}\n QePW.user = fCU0()\n pmON = Hy7s.path.join(Odyn, 'tests', 'fixtures', 'profile.png')\n with open(pmON, 'r+b') as VfIt:\n nPrm...
[ "0.7230931", "0.65301496", "0.60166913", "0.6003747", "0.5991661", "0.59901386", "0.5923907", "0.5909916", "0.58569574", "0.58297867", "0.57913953", "0.5783393", "0.5762155", "0.57606184", "0.5758113", "0.569092", "0.5689196", "0.56693393", "0.56252676", "0.5616211", "0.55839...
0.7694595
0
return a subset of the all_variables by prefix.
def nPZg(N7Fb, y0cW): lGpU = [] for SRYB in N7Fb: mZ1z = SRYB.name sT86 = mZ1z.split('/')[0] if sT86 == y0cW: lGpU.append(SRYB) return lGpU
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x_Ip(YKHO, y0cW):\n Pisw = ZylS.global_variables()\n return [SRYB for SRYB in Pisw if y0cW in SRYB.name]", "def nPZg(N7Fb, y0cW):\n lGpU = []\n for SRYB in N7Fb:\n mZ1z = SRYB.name\n sT86 = mZ1z.split('/')[0]\n if sT86 == y0cW:\n lGpU.append(SRYB)\n elif y0c...
[ "0.8116482", "0.6835347", "0.63726485", "0.6177495", "0.60232663", "0.59492016", "0.5925924", "0.59243375", "0.5875041", "0.58261853", "0.5819193", "0.5804013", "0.57915413", "0.57557017", "0.5747941", "0.5744697", "0.57416284", "0.56466186", "0.5612707", "0.55958796", "0.559...
0.67632866
2
Start date until 20170823 or a 404 if not.
def x0eQ(yKcO): L548 = yKcO.replace(' ', '').lower() for kepv in lglj: HK6U = kepv['date'].replace(' ', '').lower() wM3p = [Mtb0 for Mtb0 in lglj if Mtb0['date'] >= HK6U] if HK6U == L548: return pz3A(wM3p) return (pz3A({'error': f'{yKcO} not found.'}), 404)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Kx9c(YKHO):\n return qcWV.date(2016, 1, 4)", "def nUNa():\n print()\n print('Getting the first start date to query for.')\n print()\n print('The date must be greater than Jan 1st, 2018')\n lO87 = int(input('Enter a value for the year: '))\n x0eS = int(input('Enter a value for the month: ...
[ "0.62898207", "0.6102839", "0.60328037", "0.6010952", "0.6002709", "0.59757394", "0.59757394", "0.5923541", "0.5909359", "0.5903214", "0.57976615", "0.579471", "0.57743955", "0.5741619", "0.57394296", "0.57363695", "0.5697981", "0.56959206", "0.5692512", "0.56789994", "0.5667...
0.0
-1
Return the exposure time in seconds.
def PXqY(YKHO): PXqY = float(YKHO.get('TRUITIME')) * int(YKHO.get('COADDONE')) return PXqY
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vMGq(YKHO):\n ITaD = float(YKHO._driver.ExposureTime)\n return ITaD", "def NLZT(YKHO):\n bGrB, = YKHO.exposuretimes\n return bGrB", "def NLZT(YKHO) -> biRF:\n return biRF(YKHO._data['ExpTime'], YKHO._data.setdefault('ExpTimeError', 0.0))", "def m7L9(YKHO):\n DZsB = YKHO.pipeline.get_clo...
[ "0.7363663", "0.7276466", "0.71463877", "0.6887475", "0.68450737", "0.6844163", "0.6723883", "0.6701503", "0.67011184", "0.66474575", "0.66254306", "0.6620939", "0.6619225", "0.6606661", "0.65857524", "0.6573928", "0.65723", "0.65713686", "0.65686315", "0.65556556", "0.654065...
0.62541884
65
Getter method for locator_id, mapped from YANG variable /input/LocatorRecord/locator_id (string)
def YjlM(YKHO): return YKHO.__locator_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def q2l8(YKHO, Ty9i, tyeH=False):\n _AKB = getattr(YKHO, '_parent', None)\n if _AKB is not None and tyeH is False:\n raise AttributeError('Cannot set keys directly when' + ' within an instantiated list')\n try:\n a1PO = ltgX(Ty9i, base=QMSQ, is_leaf=True, yang_name='locator-id', parent=YKHO,...
[ "0.7350876", "0.60492724", "0.55044645", "0.5292573", "0.5196207", "0.5154262", "0.5143212", "0.510555", "0.510013", "0.5021925", "0.49630928", "0.49584314", "0.49514553", "0.48948523", "0.4884165", "0.4883817", "0.48638391", "0.48410615", "0.48236477", "0.48236477", "0.48236...
0.678453
1
Setter method for locator_id, mapped from YANG variable /input/LocatorRecord/locator_id (string)
def q2l8(YKHO, Ty9i, tyeH=False): _AKB = getattr(YKHO, '_parent', None) if _AKB is not None and tyeH is False: raise AttributeError('Cannot set keys directly when' + ' within an instantiated list') try: a1PO = ltgX(Ty9i, base=QMSQ, is_leaf=True, yang_name='locator-id', parent=YKHO, path_help...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gz1D(YKHO, Ty9i, tyeH=False):\n try:\n a1PO = ltgX(Ty9i, base=QuAi('locator_id', REzm, yang_name='LocatorRecord', parent=YKHO, is_container='list', user_ordered=False, path_helper=YKHO._path_helper), is_container='list', yang_name='LocatorRecord', parent=YKHO, path_helper=YKHO._path_helper, extmethod...
[ "0.63118845", "0.6116834", "0.541008", "0.5226008", "0.52146155", "0.52146155", "0.52146155", "0.52146155", "0.52146155", "0.52146155", "0.5208086", "0.5208086", "0.5208086", "0.5208086", "0.5208086", "0.5208086", "0.5152715", "0.5113063", "0.5104444", "0.51016283", "0.505076...
0.8190384
0
Getter method for weight, mapped from YANG variable /input/LocatorRecord/weight (uint8)
def LWGk(YKHO): return YKHO.__weight
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oAZX(YKHO, Ty9i, tyeH=False):\n try:\n a1PO = ltgX(Ty9i, base=oyIN.uint8, is_leaf=True, yang_name='weight', parent=YKHO, path_helper=YKHO._path_helper, extmethods=YKHO._extmethods, register_paths=True)\n except (TypeError, ValueError):\n raise ValueError('weight must be of a type compatible...
[ "0.6755693", "0.67394847", "0.6637276", "0.6507941", "0.6507941", "0.64790034", "0.64714485", "0.6462987", "0.6430881", "0.64253485", "0.6390043", "0.6390043", "0.6390043", "0.6360452", "0.62894845", "0.6286088", "0.6286088", "0.6221909", "0.62105703", "0.6202522", "0.6136967...
0.6419557
17
Setter method for weight, mapped from YANG variable /input/LocatorRecord/weight (uint8)
def oAZX(YKHO, Ty9i, tyeH=False): try: a1PO = ltgX(Ty9i, base=oyIN.uint8, is_leaf=True, yang_name='weight', parent=YKHO, path_helper=YKHO._path_helper, extmethods=YKHO._extmethods, register_paths=True) except (TypeError, ValueError): raise ValueError('weight must be of a type compatible with bas...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oAZX(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=ukQ0(base_type=Swre, restriction_dict={'range': ['-2147483648..2147483647']}, int_size=32), is_leaf=True, yang_name='weight', rest_name='weight', parent=YKHO, path_helper=Y...
[ "0.7173742", "0.71261907", "0.71261907", "0.71261907", "0.7124982", "0.7124982", "0.7124982", "0.6930075", "0.6854091", "0.6854091", "0.6854091", "0.654635", "0.65132165", "0.6213096", "0.60744756", "0.60718274", "0.606918", "0.6024914", "0.6020157", "0.5972273", "0.5965551",...
0.774903
0
Getter method for multicastWeight, mapped from YANG variable /input/LocatorRecord/multicastWeight (uint8)
def Prhf(YKHO): return YKHO.__multicastWeight
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BNcP(YKHO, Ty9i, tyeH=False):\n try:\n a1PO = ltgX(Ty9i, base=oyIN.uint8, is_leaf=True, yang_name='multicastWeight', parent=YKHO, path_helper=YKHO._path_helper, extmethods=YKHO._extmethods, register_paths=True)\n except (TypeError, ValueError):\n raise ValueError('multicastWeight must be of...
[ "0.7588154", "0.5257662", "0.5250413", "0.5210578", "0.5175591", "0.5127283", "0.5110381", "0.50396127", "0.50396127", "0.50396127", "0.5034055", "0.5034055", "0.5034055", "0.5029845", "0.5006056", "0.4981525", "0.49774846", "0.49774846", "0.49386257", "0.49386257", "0.493862...
0.70765233
1
Setter method for multicastWeight, mapped from YANG variable /input/LocatorRecord/multicastWeight (uint8)
def BNcP(YKHO, Ty9i, tyeH=False): try: a1PO = ltgX(Ty9i, base=oyIN.uint8, is_leaf=True, yang_name='multicastWeight', parent=YKHO, path_helper=YKHO._path_helper, extmethods=YKHO._extmethods, register_paths=True) except (TypeError, ValueError): raise ValueError('multicastWeight must be of a type c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Prhf(YKHO):\n return YKHO.__multicastWeight", "def oAZX(YKHO, Ty9i, tyeH=False):\n try:\n a1PO = ltgX(Ty9i, base=oyIN.uint8, is_leaf=True, yang_name='weight', parent=YKHO, path_helper=YKHO._path_helper, extmethods=YKHO._extmethods, register_paths=True)\n except (TypeError, ValueError):\n ...
[ "0.6678886", "0.5881262", "0.5806964", "0.5806964", "0.5806964", "0.58052194", "0.58052194", "0.58052194", "0.5402897", "0.5298001", "0.5271714", "0.5237159", "0.5237159", "0.5237159", "0.5186103", "0.51658547", "0.4932866", "0.49096778", "0.48995125", "0.48133203", "0.481126...
0.84586775
0
Setter method for localLocator, mapped from YANG variable /input/LocatorRecord/localLocator (boolean)
def JbK4(YKHO, Ty9i, tyeH=False): try: a1PO = ltgX(Ty9i, base=aqGX, is_leaf=True, yang_name='localLocator', parent=YKHO, path_helper=YKHO._path_helper, extmethods=YKHO._extmethods, register_paths=True) except (TypeError, ValueError): raise ValueError('localLocator must be of a type compatible wi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fLEJ(YKHO):\n return YKHO.__localLocator", "def WY3t(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'local')", "def WY3t(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'local')", "def WY3t(YKHO) -> qe4Y.Output[h8nf[bool]]:\n return qe4Y.get(YKHO, 'local')", "def wGYX(YKH...
[ "0.6287664", "0.5828949", "0.5828949", "0.55667734", "0.5547197", "0.553913", "0.54638076", "0.52337706", "0.52014136", "0.51928854", "0.51270527", "0.51270527", "0.51270527", "0.51270527", "0.50773776", "0.5034757", "0.5028427", "0.5021666", "0.50191003", "0.49850848", "0.49...
0.8276338
0
Getter method for rlocProbed, mapped from YANG variable /input/LocatorRecord/rlocProbed (boolean)
def z1Lu(YKHO): return YKHO.__rlocProbed
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vk_T(YKHO, Ty9i, tyeH=False):\n try:\n a1PO = ltgX(Ty9i, base=aqGX, is_leaf=True, yang_name='rlocProbed', parent=YKHO, path_helper=YKHO._path_helper, extmethods=YKHO._extmethods, register_paths=True)\n except (TypeError, ValueError):\n raise ValueError('rlocProbed must be of a type compatib...
[ "0.73260176", "0.46317473", "0.46158537", "0.45694757", "0.45441782", "0.45398918", "0.45247114", "0.45137352", "0.44872126", "0.44861192", "0.4473698", "0.44509727", "0.44429824", "0.44327995", "0.4392198", "0.4387672", "0.4379323", "0.43745342", "0.43587065", "0.43559256", ...
0.7142277
1
Getter method for routed, mapped from YANG variable /input/LocatorRecord/routed (boolean)
def HcLf(YKHO): return YKHO.__routed
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kPem(YKHO):\n return YKHO.is_leaf and YKHO.name == 'open' and (YKHO.mode == 'wire')", "def m0z1(Rci7: CommonLocation) -> bool:\n return K2AS.can_position_be_routed_to(Rci7.transform.translation, Rci7.routing_surface)", "def OLnX(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'use_routes'...
[ "0.57929003", "0.57313263", "0.56877166", "0.5655214", "0.5447337", "0.54195905", "0.54025376", "0.54025376", "0.54015297", "0.5378665", "0.5280592", "0.5280592", "0.52611727", "0.5238895", "0.5148455", "0.50744885", "0.50203764", "0.5011416", "0.49734855", "0.49599394", "0.4...
0.5745694
1
Getter method for action, mapped from YANG variable /input/mapping_record/action (enumeration)
def gx7D(YKHO): return YKHO.__action
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Pwqc(YKHO, Ty9i, tyeH=False):\n try:\n a1PO = ltgX(Ty9i, base=ukQ0(base_type=QMSQ, restriction_type='dict_key', restriction_arg={u'Drop': {}, u'NativelyForward': {}, u'SendMapRequest': {}, u'NoAction': {}}), is_leaf=True, yang_name='action', parent=YKHO, path_helper=YKHO._path_helper, extmethods=YKHO...
[ "0.6726955", "0.66544145", "0.6651963", "0.6489662", "0.64806074", "0.6460034", "0.64220244", "0.63789093", "0.63123024", "0.63082045", "0.63082045", "0.63082045", "0.63082045", "0.63082045", "0.63082045", "0.6260747", "0.6260747", "0.6260747", "0.6216058", "0.6177274", "0.61...
0.62875503
15
Getter method for authoritative, mapped from YANG variable /input/mapping_record/authoritative (boolean)
def kmmo(YKHO): return YKHO.__authoritative
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eUTK(YKHO, Ty9i, tyeH=False):\n try:\n a1PO = ltgX(Ty9i, base=aqGX, is_leaf=True, yang_name='authoritative', parent=YKHO, path_helper=YKHO._path_helper, extmethods=YKHO._extmethods, register_paths=True)\n except (TypeError, ValueError):\n raise ValueError('authoritative must be of a type co...
[ "0.6718088", "0.5188267", "0.48823407", "0.4824742", "0.48030117", "0.4789381", "0.46382806", "0.44682306", "0.4430279", "0.44179815", "0.43863338", "0.4384197", "0.4380008", "0.4363615", "0.4360782", "0.43460184", "0.43358245", "0.43231368", "0.43094635", "0.43013746", "0.42...
0.6757098
0
Setter method for authoritative, mapped from YANG variable /input/mapping_record/authoritative (boolean)
def eUTK(YKHO, Ty9i, tyeH=False): try: a1PO = ltgX(Ty9i, base=aqGX, is_leaf=True, yang_name='authoritative', parent=YKHO, path_helper=YKHO._path_helper, extmethods=YKHO._extmethods, register_paths=True) except (TypeError, ValueError): raise ValueError('authoritative must be of a type compatible ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kmmo(YKHO):\n return YKHO.__authoritative", "def rnCc(YKHO):\n if not hasattr(YKHO, '_is_authorised_representative'):\n YKHO._is_authorised_representative = hasattr(YKHO, 'authorised_representative')\n return YKHO._is_authorised_representative", "def ylhG(YKHO):\n return False", "def F...
[ "0.6427643", "0.49042958", "0.48028368", "0.46999156", "0.4692326", "0.46825922", "0.45674053", "0.44718954", "0.44571823", "0.44474322", "0.4403648", "0.43995556", "0.4394256", "0.4390693", "0.43134287", "0.43096423", "0.43039706", "0.4281209", "0.42597413", "0.42550257", "0...
0.75602883
0
Getter method for mapping_record, mapped from YANG variable /input/mapping_record (container)
def SOAh(YKHO): return YKHO.__mapping_record
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rdr_(YKHO, Ty9i, tyeH=False):\n try:\n a1PO = ltgX(Ty9i, base=OIab, is_container='container', yang_name='mapping-record', parent=YKHO, path_helper=YKHO._path_helper, extmethods=YKHO._extmethods, register_paths=True)\n except (TypeError, ValueError):\n raise ValueError('mapping_record must b...
[ "0.71528155", "0.6570029", "0.49631503", "0.48740909", "0.48525885", "0.4783413", "0.47829446", "0.47790676", "0.47216207", "0.4719149", "0.4693326", "0.46838725", "0.46826375", "0.46717525", "0.4661885", "0.46412706", "0.46412706", "0.46040523", "0.45518145", "0.45385614", "...
0.65431213
2
Returns the number of mesh bodies in the collection.
def UHFx(YKHO): return int()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def spck(YKHO):\n UHFx = 0\n for z1Rg in YKHO._objs.values():\n UHFx += len(z1Rg.netifs())\n return UHFx", "def E5Ee(YKHO):\n try:\n return YKHO._n_rays\n except AttributeError:\n YKHO._n_rays = 0\n for Mkmy in YKHO.rays():\n YKHO._n_rays += 1\n return...
[ "0.6592899", "0.6562196", "0.6492465", "0.6490426", "0.6490426", "0.63891214", "0.6374162", "0.6371211", "0.6367845", "0.6366196", "0.6363674", "0.63497156", "0.63456136", "0.6343821", "0.6334106", "0.6313597", "0.6312238", "0.6303904", "0.6288599", "0.62479997", "0.62390107"...
0.0
-1
Returns the number of mesh bodies in the collection.
def UHFx(YKHO): return int()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def spck(YKHO):\n UHFx = 0\n for z1Rg in YKHO._objs.values():\n UHFx += len(z1Rg.netifs())\n return UHFx", "def E5Ee(YKHO):\n try:\n return YKHO._n_rays\n except AttributeError:\n YKHO._n_rays = 0\n for Mkmy in YKHO.rays():\n YKHO._n_rays += 1\n return...
[ "0.6592899", "0.6562196", "0.6492465", "0.6490426", "0.6490426", "0.63891214", "0.6374162", "0.6371211", "0.6367845", "0.6366196", "0.6363674", "0.63497156", "0.63456136", "0.6343821", "0.6334106", "0.6313597", "0.6312238", "0.6303904", "0.6288599", "0.62479997", "0.62390107"...
0.0
-1
List of the valid units of measure for this type.
def FDFK(YKHO): return YKHO._unitsofmeasure
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _nDu(YKHO, YEnM: Dimension) -> [s_TI]:\n try:\n return YEnM.units()\n except KeyError as e:\n G9jH.error(str(tTpl))\n return []", "def PSx5(YKHO):\n return YKHO.data_units.items()", "def rYO3(YKHO):\n return YKHO._units", "def rYO3(YKHO):\n return YKHO._units", "def ...
[ "0.78333354", "0.7298863", "0.72212994", "0.72212994", "0.71799505", "0.7144857", "0.7069483", "0.69528997", "0.6926764", "0.6894928", "0.6879163", "0.68667114", "0.68334574", "0.67959476", "0.67511106", "0.6689399", "0.664782", "0.6642333", "0.6621156", "0.6603523", "0.66010...
0.7202679
4
Checks that when we have no more candidates, that our path 'endpoints' are cyclical.
def A53G(kbGe, pmON): return not kbGe and pmON[0].prefix == pmON[-1].suffix
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kcwy(YKHO):\n for pmON in YKHO.paths:\n Io6r = pmON[0]\n fQG9 = YKHO.arc_info[Io6r]['start']\n assert fQG9 == YKHO.source(), 'Path does not start at s'\n for YRbF, Io6r in enumerate(pmON[:-1]):\n PBJM = pmON[YRbF + 1]\n EXA8 = YKHO.arc_info[Io6r]['destin']\n...
[ "0.64591026", "0.64028496", "0.62922645", "0.6263719", "0.62504596", "0.6250248", "0.62022024", "0.6092906", "0.60610884", "0.6022989", "0.6006082", "0.5956604", "0.595369", "0.5885716", "0.58702284", "0.58571595", "0.5837033", "0.5828162", "0.5810018", "0.5783266", "0.576298...
0.6560611
0
Get the definition of this managed folder. The definition contains name, description checklists, tags, connection and path parameters, metrics and checks setup.
def MvVt(YKHO): return YKHO.client._perform_json('GET', '/projects/%s/managedfolders/%s' % (YKHO.project_key, YKHO.odb_id))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MvVt(YKHO):\n return YKHO.definition", "def MvVt(YKHO):\n return YKHO.client._perform_json('GET', '/admin/groups/%s' % YKHO.name)", "def q_DO(YKHO):\n return YKHO._definition", "def q_DO(YKHO):\n return YKHO._definition", "def q_DO(YKHO):\n return YKHO._definition", "def xtX7(YKHO):\n ...
[ "0.5817693", "0.57296735", "0.5583368", "0.5583368", "0.5496289", "0.5493704", "0.5425934", "0.5191441", "0.51887023", "0.51887023", "0.51505697", "0.5133599", "0.5114542", "0.511077", "0.510388", "0.50844294", "0.5081377", "0.5072677", "0.5038703", "0.5038015", "0.50089884",...
0.65869796
0
Get the flow zone of this managed folder.
def c0po(YKHO): return YKHO.project.get_flow().get_zone_of_object(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lhKE(YKHO):\n return YKHO._zone", "def VJL6(YKHO):\n return YKHO._access_zone", "def lhKE(YKHO) -> str:\n return YKHO._zone", "def lhKE(YKHO) -> str:\n return qe4Y.get(YKHO, 'zone')", "def lhKE(YKHO) -> str:\n return qe4Y.get(YKHO, 'zone')", "def VhwS():\n return T3H1()", "def aHS...
[ "0.64082503", "0.6311886", "0.6157333", "0.6036838", "0.6036838", "0.59640765", "0.59602046", "0.5879423", "0.58616424", "0.58191", "0.5772731", "0.5772731", "0.5696067", "0.56114745", "0.55910367", "0.55511653", "0.55193275", "0.54935896", "0.5492465", "0.54857844", "0.54575...
0.75278246
0
Get the recipes referencing this folder.
def Is1_(YKHO): return YKHO.client._perform_json('GET', '/projects/%s/managedfolders/%s/usages' % (YKHO.project_key, YKHO.odb_id))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AHLC(YKHO) -> yszQ.protobuf.internal.containers.RepeatedCompositeFieldContainer[T7u2]:\n pass", "def YSCM(YKHO):\n return YKHO.__recipe", "def vWBF(YKHO):\n LC16 = XLL2.get_model('recipes', 'Recipe')\n hkxX = {}\n mG5t = LC16.objects.filter(components__of_ingredient__pk=YKHO.pk)\n while m...
[ "0.6679568", "0.6539516", "0.65215296", "0.62811166", "0.60671085", "0.6007505", "0.6002195", "0.59581256", "0.5914185", "0.58589774", "0.5787091", "0.5786681", "0.5779459", "0.5712589", "0.55811965", "0.5561164", "0.55499417", "0.5543476", "0.55397946", "0.5537948", "0.55229...
0.0
-1
Add a time partitioning dimension.
def JArZ(YKHO, JKLN, pQ4c='DAY'): YKHO.settings['partitioning']['dimensions'].append({'name': JKLN, 'type': 'time', 'params': {'period': pQ4c}})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CAOl(YKHO, JKLN):\n YKHO.settings['partitioning']['dimensions'].append({'name': JKLN, 'type': 'value'})", "def Ohx5(nPrm, _c1T='1970-01-01'):\n if isinstance(nPrm, zuVY.DataArray):\n if 'time' in nPrm.dims:\n raise ValueError('You trying to add time dimension to the DataArray that alr...
[ "0.63332134", "0.6205126", "0.56875503", "0.5681772", "0.5438656", "0.5215479", "0.52103144", "0.52042055", "0.5199717", "0.5189618", "0.5118998", "0.5118998", "0.511268", "0.5108713", "0.50541395", "0.5043726", "0.50367475", "0.5027835", "0.5004906", "0.49656916", "0.4962021...
0.8382509
0
Predict an action given a context.
def YEmv(YKHO, QpfX: np.ndarray, _hZ2: Prob=0.05, AWlk: int=1, N5SR: str='smart') -> AzJI[eax5, NErq]: def lP7F(dYtu: Action) -> h8nf[str]: if dYtu < 0: return 'left' elif dYtu > 0: return 'right' assert N5SR in ['smart', 'aggressive', None], "Exploration strategy must b...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WBu_(A4SY, QTBn):\n C3ST = YrZb()\n vwlo = C3ST((QTBn, A4SY))\n return {'reward': vwlo}", "def _BsT(YKHO, QpfX: np.ndarray, XeOP: np.ndarray, vOGg: np.ndarray, J283: Optional[np.ndarray]=None, dQgj: Optional[np.ndarray]=None, ws_r: Optional[np.ndarray]=None, NFPR: int=1) -> None:\n assert NFPR > ...
[ "0.68578327", "0.66418797", "0.66278553", "0.6600217", "0.6558365", "0.6513659", "0.6338011", "0.6164591", "0.6121328", "0.61089677", "0.61044675", "0.6058313", "0.6042822", "0.601579", "0.59879005", "0.59817743", "0.5955881", "0.5951787", "0.5791318", "0.5769036", "0.5753873...
0.6694794
1
Tests if invalid data structure raises exception.
def KXs0(YKHO): tk5Y = Y9eQ.NaElement('root') aUGN = 'random child element' YKHO.assertRaises(ValueError, tk5Y.translate_struct, aUGN)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W2hP(YKHO):\n for puqW in ['ruler', 'pencil', 'cheese']:\n with YKHO.assertRaises(ValueError) as BQDi:\n amUA(puqW)\n YKHO.assertEqual(\"Dataset type not 'regular' or 'raw' is %s\" % puqW, str(BQDi.exception))", "def dyom(YKHO):\n DQkc(ValueError, yLtf, YKHO.testv1)", "def wQ...
[ "0.69549423", "0.6800185", "0.67051315", "0.66807365", "0.6600718", "0.65539765", "0.6551458", "0.65252626", "0.6507101", "0.65033543", "0.650226", "0.6499803", "0.6486112", "0.6415248", "0.6384", "0.6347746", "0.6316549", "0.6275802", "0.6264271", "0.62269646", "0.62124825",...
0.59542996
71
Get github access token
def gNTt(YKHO, Wxnj): kEGy = tgzD('login.github.access_token_url') J692 = {'client_id': tgzD('login.github.client_id'), 'client_secret': tgzD('login.github.client_secret'), 'code': str(Wxnj)} MOPg = {'Accept': 'application/json'} FkKg = oa7F(kEGy, J692, MOPg) if FkKg.get('error') is not None: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def onYn(Emd4) -> 'ApiCredential':\n return Emd4.select_token_for_api(jGJK)", "def xWDw():\n XP5J = Yn3K.Popen('git config github.accesstoken', shell=True, stdout=Yn3K.PIPE, stderr=Yn3K.PIPE)\n RBVb = XP5J.wait()\n if RBVb:\n return None\n eOtH = XP5J.stdout.readline().strip()\n if eOtH:...
[ "0.7889109", "0.7756136", "0.77456725", "0.767006", "0.7652787", "0.74576634", "0.7299358", "0.7048512", "0.7019856", "0.6951362", "0.6916727", "0.68040997", "0.67905265", "0.67753285", "0.67421544", "0.6734485", "0.6664523", "0.6646364", "0.6640968", "0.66376317", "0.6619797...
0.71718204
7
Create an Nbin discrete colormap from a specified input map
def HX90(ywwl, j9kp=None): P8oC = QrM1.get_cmap(j9kp) F4JO = P8oC(oyIN.linspace(0, 1, ywwl)) em8M = P8oC.name + str(ywwl) return P8oC.from_list(em8M, F4JO, ywwl)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HX90(ywwl, j9kp=None):\n P8oC = QrM1.cm.get_cmap(j9kp)\n F4JO = P8oC(oyIN.linspace(0, 1, ywwl))\n em8M = P8oC.name + str(ywwl)\n return P8oC.from_list(em8M, F4JO, ywwl)", "def HX90(ywwl, j9kp=None):\n P8oC = QrM1.cm.get_cmap(j9kp)\n F4JO = P8oC(oyIN.linspace(0, 1, ywwl))\n em8M = P8oC.na...
[ "0.72187954", "0.69491076", "0.6924096", "0.6924096", "0.6924096", "0.6920645", "0.69188344", "0.69188344", "0.69188344", "0.69188344", "0.69142735", "0.69021994", "0.67898613", "0.6699816", "0.6696647", "0.6689399", "0.6646159", "0.6633695", "0.65624946", "0.65356964", "0.64...
0.73025054
0
Gets private y attribute
def LVAh(YKHO): return YKHO.__y
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bDS1(YKHO):\n return YKHO.__y", "def yDCK(YKHO):\n return YKHO.__y", "def bDS1(YKHO):\n return YKHO._y", "def bDS1(YKHO):\n LVAh = YKHO.getAttribute('y')\n eJTR = YKHO.getKind()\n YKHO._y = LVAh if eJTR == 'pie' else None\n return YKHO._y", "def LVAh(YKHO):\n return YKHO.yvar", ...
[ "0.841883", "0.8398741", "0.83670765", "0.8316007", "0.82583463", "0.82080144", "0.82080144", "0.8157799", "0.8075069", "0.80740833", "0.80477303", "0.8026044", "0.7950843", "0.7929073", "0.79166466", "0.79166466", "0.79166466", "0.79166466", "0.79166466", "0.79166466", "0.79...
0.8127693
17
Sets y attribute with exceptions
def LVAh(YKHO, BWXx): YKHO.data_validator('y', BWXx) YKHO.__y = BWXx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def z9NM(YKHO, LVAh):\n YKHO.y = LVAh\n pass", "def z9NM(YKHO, LVAh):\n YKHO._y = LVAh", "def lcEV(YKHO, LVAh: float):\n YKHO.y = LVAh", "def LVAh(YKHO, BWXx):\n YKHO.validate_input(y=BWXx)\n YKHO.__y = BWXx", "def lcEV(YKHO, eLqP):\n YKHO.y = eLqP", "def LVAh(YKHO, BWXx):\n if is...
[ "0.73010266", "0.7284235", "0.7217349", "0.7144914", "0.7122965", "0.71036816", "0.7090068", "0.707471", "0.70422107", "0.70308393", "0.7030658", "0.7030658", "0.68635017", "0.68199414", "0.68199414", "0.67532015", "0.6728125", "0.6710675", "0.6618399", "0.6606974", "0.653372...
0.740591
0
List topics under an Azure subscription. List all the topics under an Azure subscription.
def WWaG(YKHO, filter=None, tlxW=None, xSC3=None, m6Me=False, **PK7a): def MLue(_X_U=None): if not _X_U: bD7m = YKHO.list_by_subscription.metadata['url'] wiSa = {'subscriptionId': YKHO._serialize.url('self.config.subscription_id', YKHO.config.subscription_id, 'str')} bD7...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EOPI(ekCf):\n O0al = f'projects/{ekCf}'\n for rlUa in yfhA.list_topics(request={'project': O0al}):\n print(rlUa)", "def AeT6(YKHO) -> x1iM[str]:\n return YKHO.cpp.getSubscriptionTopics()", "def list(YKHO, rlUa, **xAU6):\n pass", "def AdpB(OaeV):\n pass", "def F1ax(YKHO, gtbI):\n ...
[ "0.6736064", "0.62780625", "0.6222821", "0.61687106", "0.6118089", "0.60156256", "0.6014105", "0.5942633", "0.5940105", "0.5926205", "0.5869012", "0.58526254", "0.58135444", "0.5807725", "0.57842153", "0.57534415", "0.5664178", "0.5650704", "0.5627084", "0.56049913", "0.55736...
0.49367982
45
Place a sell limit order with given quantity and price.
def KMSG(YKHO, zJ7I, cTRz, hI0L): YEPB.functions.limit_sell(YKHO._book, zJ7I, cTRz, hI0L)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cWg8(YKHO, hI0L=0, akib=0):\n Jpbe = WwoK(YKHO.api_key, YKHO.secret_key, YKHO.passphrase)\n nPrm = {'size': akib, 'price': hI0L, 'side': 'sell', 'product_id': YKHO.rate, 'type': 'limit'}\n ZBqQ = G4JS.post(YKHO.url + 'orders', data=qQXR.dumps(nPrm), auth=Jpbe).json()\n ZBqQ['txid'] = ZBqQ['id']\n ...
[ "0.7925371", "0.78168416", "0.75428194", "0.7417188", "0.7071134", "0.70346624", "0.6954648", "0.69130063", "0.69096357", "0.6874446", "0.6859875", "0.6753681", "0.66568744", "0.6572149", "0.6491404", "0.6474029", "0.64717853", "0.6457523", "0.6403897", "0.64003015", "0.63966...
0.7997252
0
Place a sell limit order with given quantity and price.
def Diwc(YKHO, zJ7I, cTRz, hI0L): YEPB.functions.limit_buy(YKHO._book, zJ7I, cTRz, hI0L)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KMSG(YKHO, zJ7I, cTRz, hI0L):\n YEPB.functions.limit_sell(YKHO._book, zJ7I, cTRz, hI0L)", "def cWg8(YKHO, hI0L=0, akib=0):\n Jpbe = WwoK(YKHO.api_key, YKHO.secret_key, YKHO.passphrase)\n nPrm = {'size': akib, 'price': hI0L, 'side': 'sell', 'product_id': YKHO.rate, 'type': 'limit'}\n ZBqQ = G4JS.p...
[ "0.7997252", "0.7925371", "0.78168416", "0.75428194", "0.7071134", "0.70346624", "0.6954648", "0.69130063", "0.69096357", "0.6874446", "0.6859875", "0.6753681", "0.66568744", "0.6572149", "0.6491404", "0.6474029", "0.64717853", "0.6457523", "0.6403897", "0.64003015", "0.63966...
0.7417188
4
Place a sell limit order with given quantity and price.
def qoqK(YKHO, HEZd, zJ7I, cTRz, hI0L): YEPB.functions.limit(YKHO._book, HEZd, zJ7I, cTRz, hI0L)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KMSG(YKHO, zJ7I, cTRz, hI0L):\n YEPB.functions.limit_sell(YKHO._book, zJ7I, cTRz, hI0L)", "def cWg8(YKHO, hI0L=0, akib=0):\n Jpbe = WwoK(YKHO.api_key, YKHO.secret_key, YKHO.passphrase)\n nPrm = {'size': akib, 'price': hI0L, 'side': 'sell', 'product_id': YKHO.rate, 'type': 'limit'}\n ZBqQ = G4JS.p...
[ "0.7997252", "0.7925371", "0.78168416", "0.75428194", "0.7417188", "0.7071134", "0.70346624", "0.6954648", "0.69130063", "0.6874446", "0.6859875", "0.6753681", "0.66568744", "0.6572149", "0.6491404", "0.6474029", "0.64717853", "0.6457523", "0.6403897", "0.64003015", "0.639665...
0.69096357
9
Return true if the order with given ID is in the book, false otherwise.
def xc3U(YKHO, zJ7I): return YEPB.functions.has(YKHO._book, zJ7I)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DbCn(YKHO, ABua):\n if int(ABua) in [YRbF.book_id for YRbF in YKHO.issued_books]:\n return True\n else:\n return False", "def iySH(YKHO, jI4j):\n return YKHO.books.filter(_chm.c.book_id == jI4j.id).count() > 0", "def c9hR(YKHO, jyx1):\n xDcj = f\"SELECT * from {tp0w} WHERE bookID ...
[ "0.7184754", "0.67059475", "0.66672266", "0.6560992", "0.6473398", "0.6266325", "0.6255005", "0.62520516", "0.6207968", "0.60897744", "0.59901696", "0.5943703", "0.5933619", "0.5922701", "0.5920018", "0.5893061", "0.5883331", "0.5859028", "0.5831498", "0.5804595", "0.58011097...
0.8160919
0
Place a market sell order.
def m4yi(YKHO, zJ7I, cTRz): YEPB.functions.market_sell(YKHO._book, zJ7I, cTRz)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CWUa(YKHO):\n hI0L = QePW.form['price']\n FL53 = QePW.form['stocks']\n YTrB = QePW.form['trader_id']\n YKHO.market.place_sell_order(YTrB, hI0L, FL53)\n return ''", "def m4yi(YKHO, o61b: Symbol, cTRz: str, MF_n: Optional[int]):\n return YKHO.new_order(o61b, w0RK.SELL, MHBt.MARKET, cTRz, pric...
[ "0.7930447", "0.7572596", "0.74668825", "0.74021333", "0.7328512", "0.71016085", "0.70995575", "0.7032074", "0.7010187", "0.69835454", "0.69822085", "0.69458824", "0.6895653", "0.6854374", "0.68069553", "0.67670125", "0.67350507", "0.67321897", "0.6717197", "0.6653469", "0.66...
0.703232
7
Place a market buy order.
def EEaR(YKHO, zJ7I, cTRz): YEPB.functions.market_buy(YKHO._book, zJ7I, cTRz)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PytO(YKHO):\n hI0L = QePW.form['price']\n FL53 = QePW.form['stocks']\n YTrB = QePW.form['trader_id']\n YKHO.market.place_buy_order(YTrB, hI0L, FL53)\n return ''", "def EEaR(YKHO, o61b: Symbol, cTRz: str, MF_n: Optional[int]):\n return YKHO.new_order(o61b, w0RK.BUY, MHBt.MARKET, cTRz, price=...
[ "0.7915061", "0.76987463", "0.7456805", "0.7420727", "0.73668903", "0.73653954", "0.721675", "0.7157601", "0.7151941", "0.6919067", "0.6892058", "0.68738705", "0.68698674", "0.6852184", "0.6849464", "0.68483245", "0.68466145", "0.6835547", "0.6833255", "0.681506", "0.6805769"...
0.76428556
2
Convert second to minute
def l6_o(ITS7): if ITS7 % 60 != 0: ITS7 = ITS7 + 60 return ITS7 // 60
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cYnB(BWXx):\n min = int(int(BWXx) / 60)\n kRsb = int(int(BWXx) % 60)\n return '%02d' % min + ':' + '%02d' % kRsb", "def Tuht(YKHO):\n S2b_ = YKHO.__read_register(UkmJ)\n YuSI = (S2b_ & 112) >> 4\n Ko6S = S2b_ & 15\n return 10 * YuSI + Ko6S", "def dMqu(C6wh):\n return '%d:%d' % divmo...
[ "0.81158906", "0.7529537", "0.7427662", "0.7400211", "0.7394658", "0.73557305", "0.725303", "0.7242647", "0.7215991", "0.7102178", "0.70426196", "0.69982487", "0.6993329", "0.69814235", "0.6980721", "0.6963728", "0.6873445", "0.6735053", "0.6705921", "0.66999775", "0.66999775...
0.8488949
0
Returns true iff the candidate password equals the stored one.
def EHCy(YKHO, SkC9): if YKHO.rate_limit_remaining() > 0: with open(YKHO.password_filename, 'r') as eHNT: Nzyw = eHNT.read().strip() if Nzyw == ePba.crypt(SkC9, QMSQ(Nzyw)): return True else: YKHO.increment_rate_limit() return False else: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EvfH(YKHO, jTXt):\n return YKHO.password == jTXt", "def xJz9(YKHO, GUUE, tTya):\n return GUUE == tTya", "def sNjs(YKHO, jTXt):\n return YKHO.PASS == jTXt", "def sNjs(YKHO, jTXt):\n return YKHO.PASSWORD == jTXt", "def kUBT(YKHO, YAxB, jTXt):\n NKFE = YKHO.cleanPassword(YAxB)\n If9W = Y...
[ "0.75234157", "0.7371934", "0.72819686", "0.72519046", "0.72246903", "0.70825803", "0.704436", "0.698168", "0.6954732", "0.69302136", "0.6905826", "0.6901915", "0.68608254", "0.6840604", "0.6808323", "0.6777243", "0.67617476", "0.6687569", "0.6681926", "0.66676414", "0.666382...
0.72442955
4
Return true iff candidate authentication token matches stored one.
def CxdF(YKHO, SkC9): lzSf = YKHO.__current_authentication_token() if lzSf and YKHO.__valid_token_format(lzSf) and YKHO.__valid_token_format(SkC9) and xwhn(lzSf, SkC9): return True else: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wC2y(YKHO):\n return YKHO.token is not None", "def HL13(YKHO, CBIr, eOtH):\n try:\n nPrm = O8qm.loads(eOtH, max_age=C9U5.TOKEN_LOGIN_TIMEOUT)\n except O8qm.BadSignature:\n return False\n return (nPrm['last_login'] is None and CBIr.last_login is None or nPrm['last_login'] == CBIr.las...
[ "0.6938202", "0.68884546", "0.6865633", "0.68002206", "0.6707966", "0.66578394", "0.6657788", "0.6632563", "0.6583302", "0.6578111", "0.65751725", "0.65728736", "0.6560326", "0.6539685", "0.6510684", "0.649782", "0.649383", "0.64898247", "0.64779943", "0.64613837", "0.6455331...
0.84338975
0
This function plots image and intensity of image through time
def Il0Z(jDK_, LNo8, bMJA, e29L): jDK_[0].imshow(LNo8) jDK_[0].axis('off') jDK_[0].set_title(f'Frame Number {e29L}') jDK_[1].plot(bMJA, '.-') jDK_[1].set_ylabel('Average Intensity') QrM1.show(block=False) QrM1.pause(0.001)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def r2sP(VXjJ):\n ETO8(VXjJ)\n QrM1.ion()\n QrM1.show()", "def sRNh(gIsw, xtX7, nPrm, ITS7, YRbF, WKvO, LVAh):\n import numpy as oyIN\n import matplotlib.pyplot as QrM1\n ZGh_ = gIsw + '_intensity_trace'\n for jzdc in range(0, len(nPrm), int(len(nPrm) / 2)):\n if YRbF == jzdc:\n ...
[ "0.69218147", "0.6863551", "0.668293", "0.667952", "0.66168284", "0.657051", "0.6569345", "0.65316135", "0.65316135", "0.65316135", "0.6529275", "0.6461676", "0.64531654", "0.6427083", "0.64266634", "0.640738", "0.6397536", "0.63804084", "0.63659954", "0.63561183", "0.6350481...
0.71107686
0