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
Sets the provider of this GroupModel.
def kT1P(YKHO, kT1P): BbPm = ['github'] if kT1P not in BbPm: raise ValueError('Invalid value for `provider` ({0}), must be one of {1}'.format(kT1P, BbPm)) YKHO._provider = kT1P
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kT1P(YKHO, kT1P):\n YKHO._provider = kT1P", "def kT1P(YKHO, kT1P: Provider) -> None:\n YKHO._provider = kT1P", "def nm5M(YKHO, kT1P):\n GfdN = YKHO.check_provider(kT1P)\n if GfdN is not None:\n YKHO.default_provider = kT1P\n else:\n return None", "def kT1P(YKHO, kT1P: str):\n...
[ "0.7498156", "0.72607905", "0.70867676", "0.7079431", "0.68937176", "0.65203404", "0.6137128", "0.5863652", "0.57979643", "0.5794294", "0.5770369", "0.5765517", "0.56933933", "0.5667428", "0.5606175", "0.5587098", "0.5583761", "0.55306125", "0.5419826", "0.5410462", "0.536335...
0.6897319
4
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, RGKx): return False return YKHO.__dict__ == Elif.__dict__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.8088132", "0.8088132", "0.8054589", "0.7982687", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", ...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.845611", "0.8391477", "0.8144138", "0.81410587", "0.8132492", "0.8093973", "0.80920255", "0.80920255", "0.80920255", "0.8085325", "0.8085325", "0.8076365", "0.8076365", "0.8065748" ]
0.0
-1
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 AOzf(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.76047015", "0.74474794", "0.74041575", "0.7280166", "0.7208148", "0.716517", "0.7156958", "0.7131029", "0.710041", "0.7096404", "0.7096404", "0.7096404", "0.7096404", "0.7096404", "0.7096404", "0.7096404", "0.7096404", "0.7096404", "0.7096404", "0.7096404", "0.7096404", ...
0.7144544
10
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 rhd_(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.7489789", "0.7288577", "0.7160126", "0.71535283", "0.7066027", "0.69853693", "0.6965701", "0.69550425", "0.69127744", "0.6834017", "0.68179363", "0.6809387", "0.6785694", "0.67576426", "0.67576426", "0.67576426", "0.67576426", "0.67576426", "0.67576426", "0.67576426", "0.6...
0.68049496
15
Clear all extra quantities from field_mappings and config
def Jqkz(rKLW): Perm = [YRbF for YRbF, ej8u in enumerate(rKLW.field_mappings) if ej8u.extra is not None] for d6pt in reversed(Perm): del rKLW.field_mappings[d6pt] rKLW.config.remove_section('extra') rKLW.config.add_section('extra')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CuxM(YKHO):\n YKHO.items = [YRbF for YRbF in YKHO.items if YRbF.quantity != 0]", "def yewI(FBfN):\n KEbI = [eHNT.name for eHNT in ZO_c.ListFields(FBfN)]\n NQEg = []\n for Jyyj in [S8zc]:\n if Jyyj in KEbI:\n NQEg.append(Jyyj)\n if NQEg:\n ZO_c.DeleteField_management(FB...
[ "0.6364374", "0.6217193", "0.61390203", "0.58981806", "0.5832346", "0.5819015", "0.5765438", "0.575776", "0.5698789", "0.56783336", "0.56783336", "0.5676035", "0.56716084", "0.565995", "0.56246436", "0.56174904", "0.5584232", "0.557563", "0.5575127", "0.55516434", "0.55498743...
0.8384985
0
Yield successive nsized chunks from lst.
def eHxA(yv6U, exwG, yokr=2020, Ekzo=True): tuKI.seed(yokr) if Ekzo: hXNa(yv6U) for YRbF in range(0, len(yv6U), exwG): yield yv6U[YRbF:YRbF + exwG]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eHxA(YKHO, yv6U, exwG):\n for YRbF in range(0, len(yv6U), exwG):\n yield yv6U[YRbF:YRbF + exwG]", "def eHxA(yv6U: list, exwG: int):\n for YRbF in range(0, len(yv6U), exwG):\n yield yv6U[YRbF:YRbF + exwG]", "def eHxA(yv6U, exwG):\n for YRbF in range(0, len(yv6U), exwG):\n yield...
[ "0.83071756", "0.81939614", "0.81910837", "0.81910837", "0.8190213", "0.81267184", "0.81218547", "0.81218547", "0.80773693", "0.80533457", "0.80533457", "0.80533457", "0.80533457", "0.80533457", "0.80533457", "0.80533457", "0.80533457", "0.80533457", "0.80533457", "0.80533457",...
0.0
-1
Convert a scipy sparse matrix to a torch sparse tensor.
def FXf_(On0F): On0F = On0F.tocoo().astype(oyIN.float32) _0VL = ht2j.from_numpy(oyIN.vstack((On0F.row, On0F.col)).astype(oyIN.int64)) hkxX = ht2j.from_numpy(On0F.data) ROpF = ht2j.Size(On0F.shape) return ht2j.sparse.FloatTensor(_0VL, hkxX, ROpF)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TWjY(YKHO, SppC: sp.csr_matrix):\n SppC = SppC.tocoo()\n WKvO = ht2j.sparse.FloatTensor(ht2j.LongTensor(oyIN.array([SppC.row, SppC.col])), ht2j.FloatTensor(SppC.data.astype(oyIN.float32)), SppC.shape).to(YKHO.device)\n return WKvO", "def FXf_(On0F):\n _0VL = ht2j.from_numpy(oyIN.vstack((On0F.row,...
[ "0.8299787", "0.8148542", "0.8045949", "0.80325705", "0.80134654", "0.79973555", "0.79973555", "0.7985302", "0.7985302", "0.7985302", "0.7977018", "0.79650825", "0.7754673", "0.7713117", "0.7429514", "0.7429514", "0.735423", "0.71969247", "0.7156927", "0.69882196", "0.6969645...
0.80300856
14
GET all uses QuestionSerializer by default.
def l5oD(YKHO): if YKHO.request.method in ['GET']: return aWwH return yvFF
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WlEx(YKHO, QePW, _sei):\n TZ9E = YKHO.get_object()\n WlEx = TZ9E.questions.all()\n ZMzz = aWwH(WlEx, many=True, context={'request': QePW})\n return oGir(ZMzz.data)", "def u7No(YKHO):\n YKHO.post_question()\n return YKHO.client.get('api/v2/questions', headers={'Authorization': '{}'.format(YK...
[ "0.715349", "0.71304595", "0.7106909", "0.699531", "0.6976396", "0.68824595", "0.6618705", "0.6617095", "0.66126454", "0.6561686", "0.6535101", "0.6515255", "0.65042275", "0.6500901", "0.6410488", "0.63707465", "0.63475215", "0.62995416", "0.62141913", "0.6164105", "0.6110911...
0.6322442
17
Return True if path is considered insignificant.
def QSQC(pmON): return pmON.endswith('Dll.H') or pmON.endswith('Forward.H') or pmON.endswith('templates.H')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ebnO(YKHO):\n return any(YKHO.path)", "def Ui6C(YKHO, pmON: str) -> bool:\n for ZI14 in YKHO.extensions:\n if pmON.endswith(ZI14):\n return True\n return False", "def Scp_(pmON):\n for XP5J in pmON.parts:\n if XP5J != '..' and XP5J[0] == '.':\n return True\n ...
[ "0.6101551", "0.584425", "0.5729731", "0.5727862", "0.5617974", "0.5543468", "0.5515001", "0.54883116", "0.5476804", "0.53790396", "0.5359712", "0.535412", "0.5349357", "0.53488845", "0.53102577", "0.5299268", "0.5297762", "0.5286957", "0.52745855", "0.52585727", "0.525564", ...
0.6165975
0
Saves added lines into png chart file and prepares plot for new line addition.
def gcBt(YKHO, l7Sm, gIsw, EO3_): QrM1.axis([0, EO3_, 0, 100]) QrM1.title(l7Sm) QrM1.xlabel('Číslo testu') QrM1.ylabel('Přesnost (%)') QrM1.legend() pmON = Hy7s.getcwd() + gIsw + '.png' Hy7s.makedirs(Hy7s.path.dirname(pmON), exist_ok=True) QrM1.savefig(pmON) QrM1.clf()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def A_OJ(YKHO):\n M_NZ()\n kj9G(YKHO.x, YKHO.averages)\n VoLU('X Label (units)')\n IICq('Y Label (units)')\n CqeB('line.png')", "def rqHn(YKHO):\n YKHO.axes.clear()\n YKHO.axes.plot(YKHO.data[0], YKHO.data[1], linestyle='-', color='gray')\n YKHO.axes.plot(YKHO.data[0], YKHO.data[2], lines...
[ "0.6540506", "0.639254", "0.6388968", "0.6376275", "0.6376275", "0.6376275", "0.6376275", "0.6376275", "0.6359943", "0.6343007", "0.63404036", "0.623976", "0.61792195", "0.6118465", "0.6105118", "0.6087279", "0.60757846", "0.6045443", "0.6002285", "0.60008794", "0.59727067", ...
0.5570887
61
Test attributes of Class City
def Nptr(YKHO): bWRQ = cKBo() YKHO.assertTrue(hasattr(NqG7, 'name')) YKHO.assertEqual(bWRQ.name, '') YKHO.assertTrue(hasattr(NqG7, 'state_id')) YKHO.assertEqual(bWRQ.state_id, '')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PNy_(YKHO):\n YKHO.assertTrue(hasattr(YKHO.city, 'name'))\n YKHO.assertTrue(hasattr(YKHO.city, 'state_id'))", "def cEME(YKHO):\n YKHO.assertIsInstance(YKHO.city.name, str)\n YKHO.assertIsInstance(YKHO.city.state_id, str)", "def T6kh(YKHO):\n YKHO.my_city.state_id = '1c5dd90a-a3df-4516-b1ac-3...
[ "0.83744025", "0.78133166", "0.78127617", "0.77511907", "0.7716359", "0.76952344", "0.76537216", "0.7441304", "0.7264715", "0.72645366", "0.7225852", "0.7212472", "0.71441114", "0.7045063", "0.7019905", "0.7000363", "0.68795675", "0.6858797", "0.6812267", "0.6739816", "0.6724...
0.8167105
1
Return ``True`` if the Pixel Data should to be converted from YCbCr to RGB. This affects JPEG transfer syntaxes.
def WtxG(oxOY: 'Dataset') -> bool: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l9rW(oxOY: 'Dataset') -> bool:\n return False", "def d7Eb(YKHO) -> bool:\n return YKHO.image_shape[2] == 3", "def Q1Rz(LNo8):\n aelS = []\n d7Eb = False\n LVAh = LNo8\n if len(LNo8.shape) > 2 and LNo8.shape[-1] == 3:\n d7Eb = True\n aelS = ofDI(LNo8)\n LVAh = aelS[:, ...
[ "0.6485655", "0.64236915", "0.6371506", "0.62484235", "0.61199087", "0.6013372", "0.59540033", "0.59540033", "0.58759546", "0.5786272", "0.577233", "0.5736785", "0.5708002", "0.5661065", "0.5609152", "0.5582685", "0.5565979", "0.54774755", "0.5469251", "0.5442214", "0.5399911...
0.6915101
0
Insert data to linked list
def JPHp(YKHO, nPrm): Esd_ = kLxY(nPrm) Esd_.next = YKHO.head YKHO.head = Esd_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JPHp(YKHO, nPrm):\n if YKHO.head == None:\n YKHO.head = o7DN(nPrm)\n else:\n ZbOB = YKHO.head\n while ZbOB.link != None:\n ZbOB = ZbOB.link\n ZbOB.link = o7DN(nPrm)", "def Fpzv(YKHO, nPrm):\n Q6kx = o7DN(nPrm)\n if YKHO.is_empty():\n YKHO.head = Q6kx\...
[ "0.8260955", "0.7895376", "0.76737785", "0.7642676", "0.75568575", "0.75288785", "0.7469132", "0.746608", "0.74265593", "0.7340274", "0.7216372", "0.7203431", "0.7202156", "0.7043071", "0.7041471", "0.7020388", "0.701305", "0.6979278", "0.69715863", "0.6943156", "0.6935461", ...
0.8271023
0
check all files have valid names
def n_KH(YKHO): return all([BKCr(bGrB) for bGrB in YKHO.files])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GJVi(mWFP: str) -> bool:\n return not mWFP.startswith('.')", "def FLV7():\n HBP2 = Hy7s.path.basename(xAKo)\n import re\n hHld = re.findall('(\\\\d{4}_){,2}lab2\\\\.py', HBP2)\n if not hHld:\n print(f'[WARN] File name is invalid [{HBP2}]')\n else:\n print(f'[LOG] File name is ...
[ "0.7428497", "0.7131344", "0.7125528", "0.7104261", "0.70894283", "0.70567876", "0.69553095", "0.6882373", "0.68369853", "0.6784915", "0.67623967", "0.67501706", "0.671571", "0.6659447", "0.66479474", "0.6642254", "0.66380155", "0.66296196", "0.66209155", "0.66201484", "0.661...
0.76052696
0
replace quats in sequence with interpolated version
def AQK2(T8ck, moEf, sOUy=True): for Pc6G in moEf: vZyR = Pc6G - 1 HCb6 = None while HCb6 is None: if vZyR < 0: raise IndexError HCb6 = T8ck[vZyR] if len(dyNA(jHsn.array((HCb6.w, HCb6.x, HCb6.y, HCb6.z)))[0]): HCb6 = None ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rJaa(l5Ny, qhB5):\n if not qhB5:\n return [l5Ny]\n yss4 = list(qhB5.keys())\n wAJt = ZbWC.compile('({0})'.format('|'.join((ZbWC.escape(Mkmy) for Mkmy in yss4))))\n TqNK = [XP5J for XP5J in wAJt.split(l5Ny) if XP5J]\n return [qhB5.get(a1PO, a1PO) for a1PO in TqNK]", "def HE7I(YKHO, krED)...
[ "0.5678295", "0.5618973", "0.55559313", "0.5549054", "0.5512322", "0.5482311", "0.5475914", "0.5473719", "0.5446365", "0.5380866", "0.5368384", "0.5351873", "0.5340748", "0.531281", "0.53018826", "0.52768886", "0.52396077", "0.52250856", "0.52189857", "0.5204761", "0.51168203...
0.54443306
9
Returns an int64_list from a bool / enum / int / uint.
def Oety(BWXx): return ZylS.train.Feature(int64_list=ZylS.train.Int64List(value=BWXx))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Kmpz(FiiE):\n Aofo = []\n for d7pR in FiiE:\n if isinstance(d7pR, (list, tuple)):\n Aofo.append(Kmpz(d7pR))\n elif d7pR is True:\n Aofo.append(1)\n elif d7pR is False:\n Aofo.append(0)\n else:\n Aofo.append(d7pR)\n return Aofo", ...
[ "0.68822104", "0.6595804", "0.6461252", "0.6448161", "0.6367609", "0.62926817", "0.6269916", "0.621823", "0.6104528", "0.59533274", "0.5947467", "0.5901199", "0.5863832", "0.5863832", "0.58563983", "0.5844792", "0.58434534", "0.5829844", "0.5801042", "0.5793561", "0.5793561",...
0.55319947
45
Waters a zone Returns True if able to water, returns False if unable (last water time is too recent)
def Z9Gk(YKHO): wzkt = ITS7.time() if YKHO.state['last_water_time'] is None: YKHO.state['last_water_time'] = wzkt if wzkt == YKHO.state['last_water_time'] or wzkt - YKHO.state['last_water_time'] > YKHO.min_seconds_between_waterings: if Ke5A: print('Debug mode, not turning on rela...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OkX1(YKHO):\n return False", "def OkX1(YKHO):\n return False", "def IJ27(YKHO):\n try:\n Ctnb = YKHO._ExtraWaters()\n except IWat:\n return True\n return Ctnb is not None", "def y1fR(YKHO):\n Ctnb = YKHO._ExtraWaters()\n if Ctnb is None:\n return False\n if Ct...
[ "0.7053808", "0.7053808", "0.6517015", "0.6466305", "0.63491946", "0.62562984", "0.5901666", "0.58074063", "0.5720216", "0.57053214", "0.5696398", "0.5664168", "0.56331986", "0.56069124", "0.5570686", "0.5555971", "0.55518997", "0.5546786", "0.553766", "0.54935676", "0.542973...
0.67219234
2
Returns the root node of a tree. This operation assumes that a complete product partition tree is provided for one ad group. The node that has null ParentCriterionId is the root node.
def HMcx(ve2T, zb3C=None): oAzG = None for Av4D in ve2T: if Av4D.client_id == zb3C: oAzG = Av4D break return oAzG
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def khQa(YKHO):\n return YKHO.root", "def hm3W(YKHO):\n return YKHO.process_tree", "def auhX(YKHO):\n exwG = YKHO\n while exwG.parent is not None:\n exwG = exwG.parent\n return exwG", "def tk5Y(YKHO):\n if YKHO.has_multiple_roots:\n raise ValueError('More than one root exists....
[ "0.66813284", "0.64856464", "0.6300651", "0.6199316", "0.61867476", "0.60778415", "0.5972168", "0.5925751", "0.59185165", "0.591336", "0.59102345", "0.58695936", "0.58393633", "0.5828653", "0.5828653", "0.5783646", "0.5760971", "0.57168645", "0.5663603", "0.5623278", "0.56172...
0.0
-1
Name of the current Juju application.
def wMcu(YKHO) -> str: return YKHO.charm.app.name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W0tD():\n return GPtr.APP_NAME", "def kvcN(YKHO):\n return YKHO._app_name", "def kvcN(YKHO) -> str:\n return YKHO._app_name", "def kvcN(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'app_name')", "def VpPs(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'application_name')"...
[ "0.81471616", "0.79351443", "0.7909901", "0.79004765", "0.7808416", "0.7808416", "0.78007734", "0.7581811", "0.7579881", "0.7555855", "0.75472385", "0.7538527", "0.75067365", "0.73825717", "0.73619986", "0.73619986", "0.73619986", "0.73619986", "0.73231775", "0.7181963", "0.7...
0.7549485
10
The Kubernetes namespace we're running in.
def LQd0(YKHO) -> str: with open('/var/run/secrets/kubernetes.io/serviceaccount/namespace', 'r') as eHNT: return eHNT.read().strip()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _63S(YKHO) -> str:\n return qe4Y.get(YKHO, 'namespace')", "def _63S(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'namespace')", "def _63S(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'namespace')", "def _63S(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'nam...
[ "0.80273694", "0.78911114", "0.78911114", "0.78911114", "0.78911114", "0.78911114", "0.7827665", "0.7827665", "0.7827665", "0.76884794", "0.7625922", "0.75682366", "0.7510255", "0.7485709", "0.74465775", "0.7446415", "0.7446415", "0.7446415", "0.7446415", "0.7446415", "0.7446...
0.7842258
6
Tests functionality of 'dummy_authenticated_endpoint' in handler.
def ikXy(YKHO): for CBIr in YKHO.users: tvqc = {'username': CBIr['username'], 'pwd': CBIr['pwd']} geh0 = DCgT.user_login(event=tvqc, context=None) dhOI = qQXR.loads(geh0['body']) i64o = dhOI['apidataset'] tvqc = {'sessionToken': i64o['sessionToken'], 'payload': 'Look at this ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CcX_(YKHO):\n QePW = YKHO.factory.get(YKHO.uri)\n rliA(QePW, YKHO.user)\n geh0 = YKHO.view(QePW)\n geh0.render()\n YKHO.assertEqual(geh0.status_code, 200, 'Expected Response Code 200, received {0} instead.'.format(geh0.status_code))", "def bOb3(YKHO):\n pass", "def bOb3(YKHO):\n pass",...
[ "0.6669248", "0.66452277", "0.66452277", "0.642556", "0.64208937", "0.63333386", "0.62716067", "0.62524265", "0.62477714", "0.61482084", "0.614508", "0.6134452", "0.61091673", "0.610051", "0.6095598", "0.60682094", "0.60650885", "0.60413325", "0.6023572", "0.6020357", "0.6003...
0.8188941
0
Convert an integer date to a string date. YYYYMMDD > YYYYMMMDD
def pbww(I0bR): if I0bR == 0: return 'today' aaHq = I0bR CjKC = aaHq % 100 aaHq = aaHq / 100 x0eS = aaHq % 100 lO87 = aaHq / 100 kTPV = a6S9[x0eS] mbyn = '%d-%s-%d' % (lO87, kTPV, CjKC) return mbyn
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ab7L(JRYC):\n return '{0}-{1}-{2}'.format(JRYC.year, JRYC.month, JRYC.day)", "def ab7L(JRYC):\n return '{0}-{1}-{2}'.format(JRYC.year, JRYC.month, JRYC.day)", "def VA6l(_c1T):\n lO87 = _c1T / 10 ** 4\n x0eS = _c1T % 10 ** 4 / 10 ** 2\n CjKC = _c1T % 10 ** 2\n return qcWV.date(lO87, x0eS, ...
[ "0.73250073", "0.73250073", "0.7205232", "0.7134138", "0.70699203", "0.7065101", "0.7046285", "0.70349044", "0.7026851", "0.6993089", "0.6948385", "0.69187695", "0.6913919", "0.690657", "0.68742037", "0.68742037", "0.68742037", "0.6871451", "0.67320544", "0.67129385", "0.6699...
0.78848255
0
Returns project's root working directory (entire path). Returns string Path to project's root directory.
def phdL(): sWmO = Hy7s.getcwd() Zohj = Hy7s.path.join(sWmO.split('stochastic-travel-demand-modelling/', 1)[0]) if not Zohj.endswith('stochastic-travel-demand-modelling'): Zohj = Hy7s.path.join(Zohj, 'stochastic-travel-demand-modelling/') return Zohj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def L59w() -> GkAb:\n return lkbE", "def ez41():\n return KfRp", "def phdL() -> GkAb:\n return GkAb(xAKo).parent.parent", "def phdL() -> GkAb:\n return GkAb(xAKo).parent.parent", "def phdL() -> GkAb:\n return GkAb(xAKo).parent.parent", "def phdL() -> GkAb:\n return GkAb(xAKo).parent.par...
[ "0.85936373", "0.83282125", "0.8312298", "0.8312298", "0.8312298", "0.8312298", "0.8278842", "0.8177462", "0.81329143", "0.80996335", "0.8093347", "0.8082763", "0.8082763", "0.7993069", "0.7930441", "0.78737926", "0.78507364", "0.77732915", "0.7752615", "0.7744949", "0.771998...
0.771375
21
Sessionwide test `Flask` application.
def P4t4(QePW): sCKU = {'TESTING': True} yield sCKU
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P4t4():\n Hy7s.environ['FLASK_ENV'] = 'test'\n return LUif()", "def P4t4() -> WsL5.Flask:\n fkN9: WsL5.Flask = LUif('tests.conftest.TestConfig')\n fkN9.logger.setLevel('CRITICAL')\n m31U = fkN9.test_request_context()\n m31U.push()\n yield fkN9\n m31U.pop()", "def P4t4() -> L2w0:\n ...
[ "0.8047767", "0.75766337", "0.7453325", "0.7448997", "0.7378813", "0.7361134", "0.7335257", "0.7256735", "0.7174306", "0.7166491", "0.714767", "0.714767", "0.714767", "0.7147354", "0.7145838", "0.7138676", "0.71294713", "0.71052396", "0.70688695", "0.7067603", "0.7002536", ...
0.0
-1
Compute Area Under the Uplift Curve from prediction scores.
def maWY(Y8eF, CYmz, pLl6): return zUeS(*NCTT(Y8eF, CYmz, pLl6))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zUeS(YKHO, N6Z1, Crrw):\n T4Wy = oyIN.flipud(N6Z1.argsort())\n Crrw = Crrw[T4Wy]\n Jcba = oyIN.asarray(Crrw, dtype=bool) == True\n sqvw = oyIN.sum(Jcba)\n N8hd = len(Jcba)\n if sqvw == 0:\n return float('nan')\n v5W1 = oyIN.array([0.0, 0.0])\n Yncj = 0\n for YVti in range(N8hd...
[ "0.66294956", "0.65651476", "0.6456004", "0.64363694", "0.63966006", "0.6256422", "0.6182779", "0.61570245", "0.60881525", "0.6074789", "0.60486394", "0.60328346", "0.6003431", "0.5973575", "0.594633", "0.5941757", "0.5935597", "0.5931766", "0.59089917", "0.59020466", "0.5897...
0.61500573
8
Compute Area Under the Uplift Curve from prediction scores.
def Yov2(Y8eF, CYmz, pLl6): qmLP.warn('Metric `auuc` was renamed to `uplift_auc_score`in version 0.1.0 and will be removed in 0.2.0', FutureWarning) return maWY(Y8eF, CYmz, pLl6)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zUeS(YKHO, N6Z1, Crrw):\n T4Wy = oyIN.flipud(N6Z1.argsort())\n Crrw = Crrw[T4Wy]\n Jcba = oyIN.asarray(Crrw, dtype=bool) == True\n sqvw = oyIN.sum(Jcba)\n N8hd = len(Jcba)\n if sqvw == 0:\n return float('nan')\n v5W1 = oyIN.array([0.0, 0.0])\n Yncj = 0\n for YVti in range(N8hd...
[ "0.6630244", "0.65645206", "0.64559364", "0.64355165", "0.6397641", "0.6257192", "0.6180602", "0.6155692", "0.61506444", "0.60884345", "0.60743606", "0.6048635", "0.60312843", "0.600411", "0.5945924", "0.5943082", "0.59351397", "0.5931023", "0.59104717", "0.5904262", "0.58968...
0.59735817
14
Compute Area Under the Qini Curve (aka Qini coefficient) from prediction scores.
def SvHH(Y8eF, CYmz, pLl6): return zUeS(*Vht3(Y8eF, CYmz, pLl6))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H6dO(AOzf: np.array, rhd_: np.array) -> oyIN.array:\n YuCV = oyIN.concatenate(([0.0], AOzf, [min(AOzf[-1] + 0.001, 1.0)]))\n BsPE = oyIN.concatenate(([0.0], rhd_, [0.0]))\n BsPE = oyIN.flip(oyIN.maximum.accumulate(oyIN.flip(BsPE)))\n WKvO = oyIN.linspace(0, 1, 101)\n VqfF = oyIN.trapz(oyIN.inter...
[ "0.59268594", "0.5907993", "0.5871902", "0.57250816", "0.5681551", "0.5668508", "0.56565577", "0.5642054", "0.5627936", "0.56171614", "0.5587005", "0.55849063", "0.55826133", "0.55822843", "0.5552341", "0.5542468", "0.5535257", "0.5529099", "0.5526554", "0.5526554", "0.552286...
0.62072194
0
Compute Area Under the Qini Curve (aka Qini coefficient) from prediction scores.
def Hsbr(Y8eF, CYmz, pLl6): qmLP.warn('Metric `auqc` was renamed to `qini_auc_score`in version 0.1.0 and will be removed in 0.2.0', FutureWarning) return SvHH(Y8eF, CYmz, pLl6)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SvHH(Y8eF, CYmz, pLl6):\n return zUeS(*Vht3(Y8eF, CYmz, pLl6))", "def H6dO(AOzf: np.array, rhd_: np.array) -> oyIN.array:\n YuCV = oyIN.concatenate(([0.0], AOzf, [min(AOzf[-1] + 0.001, 1.0)]))\n BsPE = oyIN.concatenate(([0.0], rhd_, [0.0]))\n BsPE = oyIN.flip(oyIN.maximum.accumulate(oyIN.flip(BsP...
[ "0.62072194", "0.59268594", "0.5907993", "0.5871902", "0.5681551", "0.5668508", "0.56565577", "0.5642054", "0.5627936", "0.56171614", "0.5587005", "0.55849063", "0.55826133", "0.55822843", "0.5552341", "0.5542468", "0.5535257", "0.5529099", "0.5526554", "0.5526554", "0.552286...
0.57250816
4
Closes this database connection.
def DDI8(YKHO): if getattr(YKHO, '_db', None) is not None: if not YKHO._db_args['autocommit']: YKHO._db.commit() YKHO._db.close() YKHO._db = None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YzkT(YKHO):\n if YKHO._conn is not None:\n YKHO._conn.close()\n YKHO._conn = None", "def yZlT(Emd4):\n NCls.close()", "def DDI8(YKHO):\n RdPg.debug('DB -> close')\n YKHO.conn.close()", "def DDI8(YKHO):\n if YKHO._dbopen:\n YKHO._dbcon.close()", "def EM8p(YKHO):\n ...
[ "0.8292057", "0.8254112", "0.82229376", "0.8203255", "0.818026", "0.8166083", "0.81160486", "0.7871417", "0.7857391", "0.7857391", "0.7857391", "0.78436184", "0.784009", "0.77772814", "0.7746946", "0.7742204", "0.7729554", "0.77030843", "0.76807404", "0.76142853", "0.7602529"...
0.7549437
25
Deletes all seasons of a show
def PTpj(YKHO, GViE, cuiw): try: nUHY = NCls.show_by_id(GViE, session=cuiw) except ELJA: raise mgaz('show with ID %s not found' % GViE) qIxc = bKLe.parse_args() SjNj = qIxc.get('forget') for qqDt in nUHY.seasons: NCls.remove_series_entity(nUHY.name, qqDt.identifier, SjNj) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PTpj(YKHO, GViE, _VkV, cuiw):\n try:\n nUHY = NCls.show_by_id(GViE, session=cuiw)\n except ELJA:\n raise mgaz('show with ID %s not found' % GViE)\n try:\n qqDt = NCls.season_by_id(_VkV, cuiw)\n except ELJA:\n raise mgaz('season with ID %s not found' % _VkV)\n if not N...
[ "0.6906248", "0.67241365", "0.66384214", "0.61112946", "0.6071612", "0.60186964", "0.5902297", "0.5852594", "0.57554513", "0.56138754", "0.54666793", "0.546592", "0.5436233", "0.5413299", "0.5395587", "0.53826797", "0.5351108", "0.5265867", "0.5265457", "0.52568823", "0.52548...
0.7964258
0
Get episodes by show ID
def NMoC(YKHO, GViE, cuiw): qIxc = kvmi.parse_args() B2Dn = qIxc['page'] USOo = qIxc['per_page'] s1HA = qIxc['order'] if USOo > 100: USOo = 100 U6Nh = s1HA == 'desc' yKcO = USOo * (B2Dn - 1) JCyR = yKcO + USOo B2fa = {'start': yKcO, 'stop': JCyR, 'descending': U6Nh, 'session'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b9nd(YKHO, GViE):\n if not YKHO.logged_:\n YKHO.do_login()\n if GViE not in YKHO.episodes_data:\n G9jH.debug('Load episodes: %s%s', YKHO.api_url, YKHO.config['url']['list_episodes'].format(GViE))\n QePW = uRlK.request.Request(YKHO.api_url + YKHO.config['url']['list_episodes'].format(...
[ "0.77689534", "0.7684578", "0.74420786", "0.7310166", "0.71478194", "0.7101126", "0.69356114", "0.68908906", "0.67861664", "0.6693501", "0.66874284", "0.66603124", "0.6619614", "0.6617498", "0.64613616", "0.6328124", "0.63167775", "0.6259481", "0.6249959", "0.61752915", "0.61...
0.74491817
2
Get episode by show ID and episode ID
def NMoC(YKHO, GViE, ntG2, cuiw): try: NCls.show_by_id(GViE, session=cuiw) except ELJA: raise mgaz('show with ID %s not found' % GViE) try: xgXB = NCls.episode_by_id(ntG2, cuiw) except ELJA: raise mgaz('episode with ID %s not found' % ntG2) if not NCls.episode_in_show...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def r7bO(YKHO, NBcv):\n return YKHO.get_object('episode', NBcv)", "def _FWI(eOtH, GViE):\n B2Dn = 1\n bD7m = 'https://api.thetvdb.com/series/' + str(GViE) + '/episodes?page=' + str(B2Dn)\n MOPg = {'Accept': 'application/json', 'Authorization': eOtH}\n Mkmy = G4JS.get(bD7m, headers=MOPg)\n zgjV ...
[ "0.74157596", "0.73477", "0.70848554", "0.6940887", "0.67649305", "0.67379266", "0.6731169", "0.6625166", "0.65566087", "0.65210557", "0.65181494", "0.6486066", "0.6434558", "0.638522", "0.6291047", "0.6269022", "0.62437284", "0.61427504", "0.6103673", "0.6090743", "0.6090551...
0.7700012
0
Get all episodes releases by show ID and episode ID
def NMoC(YKHO, GViE, ntG2, cuiw): try: NCls.show_by_id(GViE, session=cuiw) except ELJA: raise mgaz('show with ID %s not found' % GViE) try: xgXB = NCls.episode_by_id(ntG2, cuiw) except ELJA: raise mgaz('episode with ID %s not found' % ntG2) if not NCls.episode_in_show...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _FWI(eOtH, GViE):\n B2Dn = 1\n bD7m = 'https://api.thetvdb.com/series/' + str(GViE) + '/episodes?page=' + str(B2Dn)\n MOPg = {'Accept': 'application/json', 'Authorization': eOtH}\n Mkmy = G4JS.get(bD7m, headers=MOPg)\n zgjV = qQXR.loads(Mkmy.text).get('links')\n cntZ = zgjV.get('first')\n ...
[ "0.76515687", "0.71136093", "0.7091169", "0.68839353", "0.6878058", "0.684974", "0.68375057", "0.68256164", "0.68142265", "0.67627174", "0.66499025", "0.650809", "0.6442885", "0.6414857", "0.62919414", "0.6215414", "0.61869454", "0.61320925", "0.6114624", "0.6085876", "0.6073...
0.80251133
0
hashes paassword and salt for user and assings to user.hash_password
def G3s8(YKHO, jTXt): YKHO.password_hash = vT87(f'{jTXt}{YKHO.user_salt}')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GPjS(YKHO, jTXt):\n hmgX = B8ni.hashpw(jTXt.encode('utf8'), B8ni.gensalt())\n return hmgX", "def qzFd(YKHO):\n YKHO.__password = YKHO.str_to_hash(YKHO.__password)", "def G3s8(YKHO, CBIr, jTXt):\n kg40 = YKHO.hash_password(jTXt)\n NzQY = YKHO.get_server_name()\n RMC9.log('Storing hash: {}'...
[ "0.7511003", "0.7447282", "0.7444837", "0.74161136", "0.7400125", "0.7336776", "0.7300477", "0.72378194", "0.7234351", "0.7233301", "0.7218163", "0.7213832", "0.7158332", "0.7059815", "0.7056021", "0.7030563", "0.69882905", "0.69837415", "0.696973", "0.6951395", "0.6903566", ...
0.692591
20
verifies current hash_password against new password + salt hash
def EvfH(YKHO, jTXt): return z8jj(YKHO.password_hash, f'{jTXt}{YKHO.user_salt}')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nz9i(NTfD: bytes, USaV: bytes, jTXt: str) -> bool:\n return W7gX.compare_digest(USaV, HBct.pbkdf2_hmac('sha256', jTXt.encode(), NTfD, 100000))", "def qzFd(YKHO, poHf):\n YKHO.password = vT87(poHf)", "def yc5G(YKHO):\n RBFf = ikbr(8)\n for NTzC in (T1Hs, lcc9, oa9N, xX2y):\n jPPD = NTzC.h...
[ "0.723675", "0.71713704", "0.7011375", "0.7002979", "0.69631004", "0.69578964", "0.6936367", "0.69329584", "0.68901545", "0.6888035", "0.6886871", "0.6882606", "0.68739986", "0.6854401", "0.6805608", "0.67832744", "0.6771275", "0.6761262", "0.67524254", "0.67417544", "0.67326...
0.655716
48
This function takes an (x,y) coordinate and a triangle radius to ouput the coordinates of the triangle as a list.
def CfIW(r1VO, KQji, Wjb0, FYKJ): bLm4 = [0.0, 2.0 / 3.0 * epAf.pi, 4.0 / 3.0 * epAf.pi] iXlf = [] for YylR in range(0, len(bLm4)): WKvO = r1VO * epAf.cos(bLm4[YylR]) + KQji LVAh = r1VO * epAf.sin(bLm4[YylR]) + Wjb0 iXlf.append(WKvO) iXlf.append(LVAh) XrTR = _y2g.graphics...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qau8(mawX, C3ap):\n EBgd = (mawX.center[0] + C3ap[0] * mawX.size[0] / 3.0, mawX.center[1] + C3ap[1] * mawX.size[1] / 3.0)\n HpuQ = (mawX.center[0] - C3ap[0] * mawX.size[0] / 4.0, mawX.center[1] - C3ap[1] * mawX.size[1] / 4.0)\n OPDq = (C3ap[1], -C3ap[0])\n AP8M = (HpuQ[0] - OPDq[0] * mawX.size[0] /...
[ "0.6264579", "0.6153603", "0.60403895", "0.6035337", "0.6033001", "0.6011119", "0.5974378", "0.5936714", "0.5893815", "0.58567154", "0.5844231", "0.5832336", "0.58251595", "0.5798073", "0.57965285", "0.5794668", "0.5774607", "0.5770411", "0.5761321", "0.57583463", "0.57505256...
0.7523382
0
Deep merge two dictionaries. The two dictionaries are merged recursively so that values that are themselves dictionaries are merged as well. Entries in dict b override values in dict a.
def roQF(jzdc, Fg_i, pmON=None): if pmON is None: pmON = [] for H5ew in Fg_i: if H5ew in jzdc: if isinstance(jzdc[H5ew], dict) and isinstance(Fg_i[H5ew], dict): roQF(jzdc[H5ew], Fg_i[H5ew], pmON + [str(H5ew)]) elif type(jzdc) is type(Fg_i): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def roQF(jzdc, Fg_i):\n if not isinstance(Fg_i, dict):\n return Fg_i\n Aofo = jzdc\n for G1Hx, Ty9i in Fg_i.items():\n if G1Hx in Aofo and isinstance(Aofo[G1Hx], dict):\n Aofo[G1Hx] = roQF(Aofo[G1Hx], Ty9i)\n else:\n Aofo[G1Hx] = Ty9i\n return Aofo", "def PP...
[ "0.85159343", "0.84749436", "0.82162994", "0.81826884", "0.8135638", "0.8115771", "0.8100251", "0.8092431", "0.80858684", "0.8057501", "0.7992476", "0.79525334", "0.79335916", "0.785625", "0.7836039", "0.7794589", "0.77833587", "0.7739384", "0.7694073", "0.76902056", "0.76676...
0.77732533
17
Returns density of Air in g/cc. This is from Table A.4 in Fundamentals of Heat and Mass Transfer Incropera, DeWitt
def gl14(YKHO, xNQ_=None, VWrU=None): xNQ_ = YRCA(VWrU, xNQ_) YKHO.checkPropertyTempRange('pseudoDensity', xNQ_) yEY5 = 1.0 / YRCA(VWrU, xNQ_) Ivpv = 1156.75 * yEY5 ** 2 + 343.413 * yEY5 + 0.00299731 return Ivpv / Yezu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CZ_D(YKHO) -> float:\n return YKHO.pressure / (odTN * YKHO.ambient_temperature)", "def FmIP(YKHO):\n return YKHO.flow_field.air_density", "def FmIP(n_Ej):\n XP5J = CJ2p(n_Ej)\n a1PO = ovGo(n_Ej)\n oZuG = XP5J / (K6Rf * a1PO)\n return oZuG", "def InLe(YKHO):\n return 0.001 * YKHO.mola...
[ "0.78822154", "0.7829083", "0.71805054", "0.70106447", "0.6976494", "0.677124", "0.6640587", "0.64853156", "0.6360587", "0.63253057", "0.62796634", "0.62600636", "0.6194468", "0.6137655", "0.6106348", "0.60996294", "0.6099618", "0.60994434", "0.6096661", "0.6038131", "0.60381...
0.0
-1
Get name of the class.
def uSWv(Emd4): return Emd4.__name__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YKHO) -> str:\n return YKHO.class_names[YKHO.class_num]", "def Um9M(YKHO):\n CtJU = YKHO.__class__.__name__\n return str(CtJU)", "def vrep(YKHO):\n return YKHO.__class__.__name__", "def pnQ7(YKHO):\n exwG = type(YKHO).__name__\n return exwG", "def _2sc(YKHO) -> str:\n return q...
[ "0.8880071", "0.8774532", "0.876987", "0.87567806", "0.86787975", "0.865417", "0.865417", "0.86346865", "0.85787356", "0.8554913", "0.84429896", "0.84077644", "0.8387701", "0.8312019", "0.82716143", "0.8188753", "0.8188753", "0.8177206", "0.8177206", "0.8177206", "0.8177206",...
0.84871656
10
Get all used annotations.
def APpG(Emd4) -> set: return set((Jyyj.type for Jyyj in nf7Q.fields(Emd4)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XgyP(YKHO):\n return YKHO._annotations", "def XgyP(YKHO):\n return YKHO._annotations", "def nkyg(pNZh):\n return set(sn7C(pNZh))", "def XgyP(YKHO) -> bDy6['Annotation']:\n return Hs6x.chain(YKHO.footnotecitations.all(), YKHO.cites.all(), YKHO.externallinks.all(), YKHO.inlinerequirements.all()...
[ "0.7582189", "0.7567262", "0.69919133", "0.6862719", "0.67887175", "0.6688718", "0.6658135", "0.6632644", "0.6632644", "0.6505323", "0.6483809", "0.64677966", "0.63713366", "0.6345742", "0.626946", "0.61599547", "0.61599547", "0.6152513", "0.61038715", "0.60283387", "0.600438...
0.6433511
12
Test that we can manage a `VolttronCentralPlatform`. This test is concerned with managing a `VolttronCentralPlatform` from the same platform. Though in principal that should not matter. We do this from a secondary platform in a diffferent integration test.
def slbi(kqU4): h3Xc, eLNS = kqU4 odoG, F6y5 = FG8f() YWSi = h3Xc.build_agent(serverkey=h3Xc.publickey, publickey=odoG, secretkey=F6y5) k5Tt = YWSi.vip.peerlist().get(timeout=2) assert Qj7K in k5Tt xdhX = YWSi.vip.rpc.call(Qj7K, 'manage', h3Xc.vip_address, h3Xc.publickey, YWSi.core.publickey).ge...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ALjv(YKHO, OxID):\n GPtr = {D8Ke.DOMAIN: {'platform': 'microsoft_face_identify', 'source': {'entity_id': 'camera.demo_camera'}, 'group': 'Test Group1'}, 'camera': {'platform': 'demo'}, K1Zo.DOMAIN: {'api_key': '12345678abcdef6'}}\n with dlp2(1, D8Ke.DOMAIN):\n d_3h(YKHO.hass, D8Ke.DOMAIN, GPtr)\n ...
[ "0.64706796", "0.6285142", "0.6192805", "0.61129165", "0.6098421", "0.6065588", "0.60330874", "0.58783174", "0.5855061", "0.5819832", "0.5795899", "0.57855546", "0.5756603", "0.5746232", "0.5742218", "0.5717158", "0.5687915", "0.5677127", "0.56752694", "0.56602716", "0.564065...
0.5556825
28
Save JSON representation of package container to file file_path.
def vDYt(YKHO, qaEx) -> None: haZH = YKHO.toJSON() with open(qaEx, 'w') as eHNT: eHNT.write(haZH)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oD7C(YKHO, wM3v):\n try:\n qQXR.dump(YKHO.container, open(wM3v, 'w'), indent=4)\n except (FileNotFoundError, IOError) as err:\n print(XObx)", "def IeFx(YKHO) -> None:\n if not YKHO.package_path.exists():\n YKHO.package_path.mkdir(parents=True, exist_ok=True)\n with open(YKHO....
[ "0.72861004", "0.7266841", "0.72017175", "0.7165451", "0.70882344", "0.7080005", "0.6984982", "0.6977844", "0.6972104", "0.6954177", "0.6953304", "0.6953304", "0.6953304", "0.69014984", "0.68612075", "0.6798283", "0.67972976", "0.6796042", "0.6789203", "0.678339", "0.6752863"...
0.6637014
25
Create YOLO_V3 model CNN body in Keras.
def R4qF(g4y1, HT_T, jTqs, iJKf='yolov4', N1xv=xRTZ): if iJKf == 'yolov4': GPtr = WHoL('yolov4', HT_T, jTqs, base_ops=N1xv) o4Jx = Dlmf(JocW(g4y1), base_ops=N1xv) if GPtr.spp else JocW(g4y1) TBsA = wOed(g4y1, o4Jx) bySB = [TBsA.layers[131].output, TBsA.layers[204].output, TBsA.output...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LQs7(EZd9):\n C3ST = ileL()\n C3ST.add(GVLU(input_shape=EZd9[1:], filters=64, kernel_size=6, data_format='channels_first'))\n C3ST.add(lARV(0.2))\n C3ST.add(GVLU(filters=64, kernel_size=3, padding='valid', data_format='channels_first'))\n C3ST.add(ReZh(pool_size=(2, 2, 2), strides=None, padding=...
[ "0.69994485", "0.6812483", "0.6802783", "0.6799505", "0.6775794", "0.67447317", "0.6713567", "0.66745013", "0.6637123", "0.661646", "0.6587527", "0.6576134", "0.6569317", "0.6552251", "0.65454865", "0.65211767", "0.6498319", "0.64820737", "0.64793897", "0.64768475", "0.642461...
0.588181
80
Process Conv layer output
def qPzm(LyKa, qvIa, jTqs, GhuM, lNai): mZ3_, FWeA, avn4, sepv = JF3p(LyKa, qvIa, jTqs, GhuM) oUSw = TrAv(mZ3_, FWeA, GhuM, lNai) oUSw = nMvt.reshape(oUSw, [-1, 4]) nZlY = avn4 * sepv nZlY = nMvt.reshape(nZlY, [-1, jTqs]) return (oUSw, nZlY)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def icCz(C3ST, lzjZ, VXjJ):\n YpkZ = C3ST.input\n try:\n nOvY = C3ST.get_layer(lzjZ).output\n except:\n raise Exception('Not layer named {}!'.format(lzjZ))\n oKms = wOed(inputs=YpkZ, outputs=nOvY)\n duJk = oKms.predict(VXjJ)\n return duJk[0]", "def pLjf(YKHO, gEmA, EcVT, oeNL):\n ...
[ "0.6720857", "0.6501934", "0.62365854", "0.6127954", "0.6121829", "0.61155516", "0.6094045", "0.6084792", "0.6082905", "0.6001638", "0.6001638", "0.6001638", "0.5916043", "0.5909601", "0.5895201", "0.5861889", "0.5859919", "0.5859317", "0.5855007", "0.5852903", "0.584325", ...
0.0
-1
Validates an handler implementation against the IOutput interface.
def SfKC(rV9y, YEnM): DgAC = ['_setup', 'render'] wohN.validate(WfwP, YEnM, DgAC)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xzCw(Emd4, uiKt):\n pass", "def xzCw(Emd4, uiKt):\n pass", "def KF8J(YKHO, nSMW):\n return True", "def rbFE(YKHO, EbQa, **If3P):\n return YKHO.where(output_invalid=EbQa, **If3P)", "def BJpA(YKHO, QePW: Request):\n print('Handler is validating output')\n if QePW.output is not None:\n ...
[ "0.60533357", "0.60533357", "0.5886572", "0.5737378", "0.56766737", "0.5650158", "0.5608917", "0.55891466", "0.552297", "0.5451484", "0.5414647", "0.54119366", "0.54032594", "0.5399969", "0.52919513", "0.52711755", "0.5225708", "0.51780194", "0.50767076", "0.5066225", "0.5063...
0.6808796
0
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, RhQ7): return False return YKHO.__dict__ == Elif.__dict__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.80886984", "0.80886984", "0.8055307", "0.7983415", "0.79673034", "0.79673034", "0.79673034", "0.79673034", "0.79673034", "0.79673034", "0.79673034", "0.79673034", "0.79673034", "0.79673034", "0.79673034", "0.79673034", "0.79673034", "0.79673034", "0.79673034", "0.79673034", ...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.84560555", "0.83913696", "0.8143685", "0.81403786", "0.8131871", "0.8093231", "0.80915105", "0.80915105", "0.80915105", "0.8084564", "0.8084564", "0.8075547", "0.8075547", "0.8065006" ]
0.0
-1
Returns a dict from features to counts Usually, the count will just be 1.0 for indicator functions.
def mXEu(YKHO, QTBn, XeOP): gnPz.raiseNotDefined()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TBqt(YKHO, EcVT: np.ndarray) -> cuzp[int, oyIN.ndarray]:\n return {eHNT: oyIN.bincount(EcVT[:, eHNT].astype(int), minlength=pdKD) for eHNT, pdKD in YKHO.categories_per_feature.items()}", "def _USp(YKHO):\n j5yI = {}\n for UXqs in YKHO.labels:\n j5yI[UXqs] = YKHO.count_document_frequency(UXqs)...
[ "0.7821883", "0.764447", "0.74018896", "0.72689825", "0.7187044", "0.7147565", "0.69336647", "0.6877193", "0.6863449", "0.68268955", "0.6785782", "0.6725169", "0.6722362", "0.6716919", "0.6654024", "0.66194445", "0.6572489", "0.6565492", "0.65483856", "0.6508336", "0.64834917...
0.0
-1
Validate password and password2 fields match.
def xzCw(YKHO, vGfb): if vGfb['password'] != vGfb['password2']: raise IyFz.ValidationError({'error': "Password fields didn't match."}) return vGfb
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _Rkm(YKHO):\n if 'password1' in YKHO.cleaned_data and 'password2' in YKHO.cleaned_data:\n if YKHO.cleaned_data['password1'] != YKHO.cleaned_data['password2']:\n raise H6V6.ValidationError(bGrB(\"The two password fields didn't match.\"))\n return YKHO.cleaned_data['password2']", "def _...
[ "0.818635", "0.81538403", "0.81434983", "0.80553186", "0.8023498", "0.8023498", "0.79872715", "0.79796684", "0.79789793", "0.7978222", "0.79739666", "0.784966", "0.7833754", "0.77879775", "0.77755076", "0.77158356", "0.7711837", "0.7702989", "0.7702989", "0.7604853", "0.76016...
0.68367505
39
Search for the nearest neighbors from the reference set for each element of the query set. The query SFrame must include columns with the same names as the row_label and feature columns used to create the SimilaritySearchModel.
def TgwQ(YKHO, nPrm, N9DZ=None, G1Hx=5): qZVc(N9DZ, [str, type(None)]) RDhP = YKHO._state['features'] PoO5(nPrm, RDhP) if nPrm[RDhP].dtype() != YKHO._feature_type: raise ValueError('Feature columns must have same data type in both reference and query set') if N9DZ != None: PoO5(nPrm,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CLQW(YKHO):\n S_Ga = []\n for or8S, tLuO in enumerate(YKHO.data):\n Ayfi = YKHO.euclidean_dis(tLuO[:-1], YKHO.query)\n S_Ga.append((Ayfi, or8S))\n borX = sorted(S_Ga, key=lambda WKvO: WKvO[0])\n eFq2 = borX[:YKHO.k]\n k8us = [YKHO.data[YRbF][1] for Ayfi, YRbF in eFq2]\n return (...
[ "0.68114066", "0.6346849", "0.5588211", "0.55786014", "0.55373144", "0.55322295", "0.54620737", "0.54458565", "0.5420241", "0.5411248", "0.5364573", "0.5329649", "0.532108", "0.53099453", "0.5299332", "0.52908224", "0.52700794", "0.52463645", "0.52344084", "0.5212405", "0.520...
0.646696
1
Get absolute path to resource, works for dev and for PyInstaller
def JFat(t_yv): try: XSj5 = HwRy._MEIPASS except Exception: XSj5 = Hy7s.path.abspath('.') return Hy7s.path.join(XSj5, t_yv)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gZBG():\n return Hy7s.path.join(Hy7s.path.dirname(xAKo), 'resources') + Hy7s.path.sep", "def Q63V(Qth0):\n try:\n XSj5 = HwRy._MEIPASS\n except Exception:\n XSj5 = Hy7s.path.abspath(Hy7s.path.join(Hy7s.path.dirname(HwRy.modules[__name__].__file__), 'assets'))\n return Hy7s.path.join...
[ "0.8369028", "0.82811016", "0.82484996", "0.81395954", "0.81144196", "0.8099082", "0.8094557", "0.8080269", "0.8068243", "0.8067889", "0.80630267", "0.80630267", "0.80630267", "0.80630267", "0.80630267", "0.80630267", "0.80630267", "0.805744", "0.8045351", "0.8045351", "0.804...
0.80550295
18
Checks if the input data shape is valid
def Ev22(YKHO, KDwe): if not len(KDwe) == 2: raise ValueError('data_shape should have length 2') if not KDwe[0] == 1: raise ValueError('This iterator expects inputs to have 1 channels.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Fuw0(gOGe, KDwe):\n return True", "def Zivo(YKHO, nPrm):\n if nPrm is None:\n return False\n elif isinstance(nPrm, (list, tuple)):\n if len(nPrm) <= 0:\n return False\n else:\n return True\n elif isinstance(nPrm, oyIN.ndarray):\n if nPrm.size <= 0...
[ "0.8319323", "0.7820716", "0.7808032", "0.7708385", "0.765418", "0.7619648", "0.75292563", "0.7452693", "0.73863083", "0.7378265", "0.7335014", "0.7321489", "0.7296737", "0.7134457", "0.7116714", "0.7112497", "0.70817435", "0.7067729", "0.70649505", "0.7062013", "0.7036901", ...
0.78938377
1
Create a fake PPD file (if needed), then mock the getPPD3 method return value to give that file
def YpeY(YKHO, qMJa, gIsw=None, J0MR=None): if gIsw is None: Gcbu, gIsw = gbPf.mkstemp() if gIsw: tukC = YKHO.build_ppd(input_slots=J0MR) with open(gIsw, 'w') as ytgA: ytgA.write(tukC) qMJa.Connection().getPPD3.return_value = (200, 0, gIsw)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uRlt(YKHO, uDAC):\n XP5J = V6IE.PyPDFOCR()\n sWmO = Hy7s.getcwd()\n Ux0P = Hy7s.path.join('pdfs', 'test_super_long_keyword.pdf')\n nR3j = Ux0P.replace('.pdf', '_ocr.pdf')\n if Hy7s.path.exists(nR3j):\n Hy7s.remove(nR3j)\n print('Current directory: %s' % Hy7s.getcwd())\n VKhi = [Ux0P...
[ "0.5625471", "0.5596651", "0.5585879", "0.5450779", "0.5437726", "0.5404796", "0.5329626", "0.53271425", "0.53110844", "0.53055936", "0.52987975", "0.5297079", "0.5286609", "0.52834433", "0.52830815", "0.5260701", "0.5256966", "0.52222717", "0.52061504", "0.51922643", "0.5182...
0.7241103
0
Check that the tray_ids field has no value when no PPD is available
def ezNB(YKHO, qMJa): YKHO.mock_cups_ppd(qMJa, file_name=False) UzPC = qMJa.Connection() o2JK = UzPC.getPrinters() T6S7 = YKHO.printer._prepare_update_from_cups(UzPC, o2JK) YKHO.assertFalse('tray_ids' in T6S7)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x1R1(YKHO):\n YRbF = 0\n for GFht in YKHO.dpids:\n YRbF += 1\n Crrw = {'dp_id': '0x%x' % int(GFht), 'dp_name': 'faucet-%u' % YRbF}\n YKHO.assertEqual(0, YKHO.scrape_prometheus_var(var='stack_cabling_errors_total', labels=Crrw, default=None))\n YKHO.assertGreater(YKHO.scrape_pr...
[ "0.6117772", "0.5590091", "0.5560799", "0.5536237", "0.55004615", "0.5480353", "0.5480115", "0.5357441", "0.53198266", "0.5290409", "0.5273166", "0.52508104", "0.5212732", "0.51968944", "0.51832634", "0.51618934", "0.50983936", "0.5076811", "0.50579077", "0.50480217", "0.5043...
0.5456704
7
Return a friendly HTTP greeting.
def d6pt(): return TvZl('index.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Tz38(mWFP):\n BYLU = f\"Hello, {mWFP.title()}. It's nice to meet you!\"\n return BYLU", "def uthR():\n return 'Welcome to Flask!'", "def Y7u5(mWFP):\n print('My name is ' + mWFP)", "def qjYe():\n return f\"Welcome to the Surf's Up API!Available Routes:<br/>/api/v1.0/surfs-up\"", "def Wze...
[ "0.6785658", "0.6718835", "0.67086893", "0.66817635", "0.6662773", "0.6637097", "0.6633533", "0.66266304", "0.6556931", "0.65360993", "0.64784324", "0.64777356", "0.64686126", "0.64640325", "0.6443602", "0.6435352", "0.640118", "0.64006835", "0.6374869", "0.6374869", "0.63681...
0.0
-1
Return a custom 404 error.
def m7kB(tTpl): return ('Sorry, nothing at this URL.', 404)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o3cf():\n return c1Bu(404)", "def RQdI(P1dF):\n return '404 Error'", "def RQdI(P1dF):\n return 'Bummer, there is nothing at this URL.'", "def kfnF(P1dF):\n return ('No page here, dood. 404!', 404)", "def o3cf(YKHO, P1dF):\n return (pz3A({'error': 'NOT FOUND'}), 404)", "def m7kB(XObx):\...
[ "0.81159586", "0.80410045", "0.7738874", "0.77369535", "0.77182025", "0.7689595", "0.7670471", "0.76112473", "0.7602477", "0.7570698", "0.75528365", "0.7545827", "0.751882", "0.74745256", "0.7458403", "0.7455682", "0.74548143", "0.74505144", "0.7442062", "0.7428278", "0.74065...
0.72672606
33
Sets the error_group_id of this AlertErrorGroupSummary.
def U9U3(YKHO, U9U3): YKHO._error_group_id = U9U3
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IiUB(YKHO, IiUB):\n YKHO._error_group_name = IiUB", "def hE03(YKHO, hE03):\n YKHO._group_id = hE03", "def hE03(YKHO, hE03):\n YKHO._group_id = hE03", "def hE03(YKHO, hE03):\n YKHO._group_id = hE03", "def hE03(YKHO, hE03):\n YKHO._group_id = hE03", "def hE03(YKHO, hE03):\n YKHO._grou...
[ "0.75870997", "0.71503705", "0.71503705", "0.71503705", "0.71503705", "0.71503705", "0.71503705", "0.6729585", "0.6506523", "0.64266306", "0.63897884", "0.6187408", "0.6174485", "0.6127527", "0.6076385", "0.59774184", "0.59774184", "0.59774184", "0.59561014", "0.58860123", "0...
0.8830125
0
Sets the error_group_name of this AlertErrorGroupSummary.
def IiUB(YKHO, IiUB): YKHO._error_group_name = IiUB
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U9U3(YKHO, U9U3):\n YKHO._error_group_id = U9U3", "def pa5H(YKHO, mWFP):\n YKHO.groupname = mWFP", "def pa5H(YKHO, mWFP):\n NArs = [('groupname', mWFP, 'cdata')]\n YKHO.get(J1jo, 'SetGroupName', NArs)", "def gpJ9(YKHO, mWFP, BWXx):\n YKHO.errors[mWFP] = BWXx", "def iGJs(YKHO, iGJs):\n ...
[ "0.7515292", "0.6842258", "0.64834154", "0.63355285", "0.62777054", "0.62164974", "0.62007964", "0.60143673", "0.58007485", "0.57979673", "0.5767984", "0.5714703", "0.5697868", "0.5680305", "0.5674288", "0.565811", "0.565811", "0.5651028", "0.5651028", "0.5651028", "0.5635324...
0.8925021
0
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, Nme7): return False return YKHO.to_dict() == Elif.to_dict()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.80886984", "0.80886984", "0.8055307", "0.7983415", "0.79673034", "0.79673034", "0.79673034", "0.79673034", "0.79673034", "0.79673034", "0.79673034", "0.79673034", "0.79673034", "0.79673034", "0.79673034", "0.79673034", "0.79673034", "0.79673034", "0.79673034", "0.79673034", ...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): if not isinstance(Elif, Nme7): return True return YKHO.to_dict() != Elif.to_dict()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.84560555", "0.83913696", "0.8143685", "0.81403786", "0.8131871", "0.8093231", "0.80915105", "0.80915105", "0.80915105", "0.8084564", "0.8084564", "0.8075547", "0.8075547", "0.8065006", "0.80417657", "0.80417657", "0.80417657", "0.80417657", "0.80417657", "0.80417657", "0.8...
0.0
-1
Apply symmetry constraints to a crystal model. Returns the crystal model (with symmetry constraints applied) in the same setting as provided as input. The cb_op returned by the method is that necessary to transform that model to the userprovided target symmetry.
def lqkm(YKHO, GZSS): if not (YKHO.target_symmetry_primitive and YKHO.target_symmetry_primitive.space_group()): return (VF_6, lBMe.change_of_basis_op()) u3dC = YKHO.target_symmetry_primitive.space_group() k0lF = GZSS.get_A() Lk9F = YKHO._max_delta DumB = _fa6(GZSS.get_unit_cell(), max_delta=...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vuzH(YKHO):\n YKHO.command_stack.do(C3ST.structure.ApplySymmetry(YKHO._structure))", "def SGR4(YKHO):\n return YKHO.sym_func", "def SGR4(YKHO):\n return YKHO.sym_func", "def Sg1H(YKHO):\n if YKHO.optical_isomers is None and YKHO.external_symmetry is None:\n UqpO = YKHO.get_xyz()\n ...
[ "0.6082653", "0.54509735", "0.54509735", "0.5258745", "0.5226781", "0.5098142", "0.50905246", "0.50784826", "0.49611276", "0.49035504", "0.4883844", "0.48831636", "0.48306364", "0.48049894", "0.4781762", "0.4737869", "0.47336996", "0.47273827", "0.46800214", "0.46159214", "0....
0.76728874
0
Transition model. From a state and an action, return all of (state , probability) pairs.
def Kt_s(YKHO, QTBn, XeOP): wHK4 = YKHO.transitions[QTBn, XeOP] return DMWo(wHK4.indices, wHK4.data)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JxU2(YKHO, QTBn, XeOP):\n if QTBn + XeOP == 100:\n vOGg = 1\n else:\n vOGg = 0\n return [(QTBn + XeOP, YKHO._p_head, vOGg), (QTBn - XeOP, 1 - YKHO._p_head, 0)]", "def AT9T(YKHO, QTBn):\n pass", "def eexa(YKHO, QTBn, XeOP, rxHc):\n return YKHO.get_next_states(QTBn, XeOP).get(rxH...
[ "0.785698", "0.76274514", "0.76059943", "0.745071", "0.74223214", "0.7374063", "0.7319806", "0.706995", "0.6966696", "0.6966106", "0.69556844", "0.69443387", "0.6943371", "0.6932903", "0.692419", "0.6830901", "0.68259865", "0.6811094", "0.67231303", "0.6709734", "0.6709532", ...
0.60745966
93
Return unread message count.
def UHFx(QePW): exwG = QePW.user.profile.unread_message_count() nPrm = {'count': exwG} return igJ6(qQXR.dumps(nPrm), mimetype='application/json')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Mjy6(JaxB):\n jGRS, yEHD = JaxB.select('Inbox')\n jGRS, geh0 = JaxB.uid('search', None, 'UNSEEN')\n yDXQ = geh0[0].split()\n return len(yDXQ)", "def neU3(CBIr):\n return LuKW.inbox.for_user(CBIr).unread().count()", "def Mjy6(NtEF, jTXt):\n YEnM = TzTG.IMAP4_SSL('imap.gmail.com', '993')\n ...
[ "0.8327228", "0.81447077", "0.8140668", "0.80129915", "0.75354356", "0.74578863", "0.72802866", "0.7245566", "0.72252", "0.70243347", "0.7017666", "0.69837636", "0.6836136", "0.67517996", "0.6688123", "0.6685107", "0.6684228", "0.66449547", "0.65997607", "0.6567238", "0.65449...
0.7119284
9
If the issuer responds with something that isn't JSON then the response is logged and the ``Deferred`` fires with a ``Failure`` wrapping ``UnexpectedResponse``.
def RMSW(YKHO, uasb: Voucher, ewCu: int, Cj7G: int) -> None: s5oa = Dp1W() LpfI = eTzz(s5oa) R0dY = n5c_(LpfI, o_mF) nkZp = R0dY.random_tokens_for_voucher(uasb, ewCu, Cj7G) Csk6 = R0dY.redeemWithCounter(uasb, ewCu, nkZp) YKHO.assertThat(QYhp.fromCoroutine(Csk6), _j4m(wuQe(lambda eHNT: eHNT.value...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H3Ul(YKHO, geh0):\n YKHO.client.status = geh0.code\n YKHO.response_headers = MOPg = geh0.headers\n if YKHO._method.upper() == 'HEAD' or geh0.code == cWMF:\n return T7c3('')\n Td1T = YKHO.receiver_factory()\n Td1T.finished = Csk6 = QYhp()\n Td1T.content_length = geh0.length\n geh0.de...
[ "0.60140187", "0.5851042", "0.5821027", "0.5701688", "0.5695022", "0.5668842", "0.56205535", "0.55588645", "0.5556857", "0.5555747", "0.55480087", "0.5538086", "0.5514122", "0.5507056", "0.5483513", "0.5472109", "0.54697776", "0.5466882", "0.54661775", "0.54571754", "0.544789...
0.53936374
26
If the issuer returns a failure without a recognizable reason then ``RistrettoRedeemer.redeemWithCounter`` returns a ``Deferred`` that fails with ``UnrecognizedFailureReason``.
def ZXpS(YKHO, uasb: Voucher, ewCu: int, twKS: int) -> None: iQG7 = 'mysterious' Cj7G = ewCu + twKS s5oa = Iprn(iQG7) LpfI = eTzz(s5oa) R0dY = n5c_(LpfI, o_mF) nkZp = R0dY.random_tokens_for_voucher(uasb, ewCu, Cj7G) Csk6 = R0dY.redeemWithCounter(uasb, ewCu, nkZp) YKHO.assertThat(QYhp.fro...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wAmu(YKHO, uasb: Voucher, ewCu: int, twKS: int) -> None:\n Cj7G = ewCu + twKS\n s5oa = mTzJ()\n LpfI = eTzz(s5oa)\n R0dY = n5c_(LpfI, o_mF)\n nkZp = R0dY.random_tokens_for_voucher(uasb, ewCu, Cj7G)\n Csk6 = R0dY.redeemWithCounter(uasb, ewCu, nkZp)\n YKHO.assertThat(QYhp.fromCoroutine(Csk6)...
[ "0.6063742", "0.5815506", "0.5583691", "0.5562042", "0.55192876", "0.5296941", "0.5169151", "0.5110404", "0.5060233", "0.5046953", "0.50379896", "0.50059146", "0.49959433", "0.49628198", "0.49373996", "0.48936027", "0.48814422", "0.48798427", "0.4873036", "0.48370895", "0.482...
0.65321463
0
If the issuer returns a successful result with an invalid proof then ``RistrettoRedeemer.redeem`` returns a ``Deferred`` that fires with a ``Failure`` wrapping ``SecurityException``.
def mlwx(YKHO, uasb: Voucher, ewCu: int, twKS: int) -> None: Cj7G = ewCu + twKS OXYg = b5DF() s5oa = ZtGo(OXYg) s5oa.public_key = Vvhi.from_signing_key(b5DF()) LpfI = eTzz(s5oa) R0dY = n5c_(LpfI, o_mF) nkZp = R0dY.random_tokens_for_voucher(uasb, ewCu, Cj7G) Csk6 = R0dY.redeemWithCounter(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nwVC() -> Iprn:\n return Iprn('double-spend')", "def Dvew(YKHO) -> ntd0.Deferred[None]:\n return guGt(PPGD, 0, YKHO.fail, 'I fail later')", "def wAmu(YKHO, uasb: Voucher, ewCu: int, twKS: int) -> None:\n Cj7G = ewCu + twKS\n s5oa = mTzJ()\n LpfI = eTzz(s5oa)\n R0dY = n5c_(LpfI, o_mF)\n ...
[ "0.5071755", "0.49494836", "0.49428242", "0.4875747", "0.48644093", "0.48567504", "0.48172936", "0.4784264", "0.47808266", "0.47609627", "0.4747154", "0.46995032", "0.46988824", "0.4698413", "0.46893993", "0.46759978", "0.4657636", "0.46513", "0.46436906", "0.4641246", "0.463...
0.5684516
0
If the request contenttype is not application/json, the response is Unsupported Media Type.
def vL7Q(YKHO) -> None: s5oa = mTzJ() LpfI = eTzz(s5oa) Csk6 = LpfI.post(o_mF.child('v1', 'redeem').to_text().encode('ascii'), b'{}') YKHO.assertThat(Csk6, LbSa(wuQe(lambda geh0: geh0.code, mQYu(IFmL))))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def T9Qk():\n return QePW.content_type == 'application/json'", "def N_hC(YKHO):\n TBsA = YKHO.server.create_error(415, 'Not Acceptable', 'Invalid Accept header.', bad=True)\n YKHO._write_response(415, TBsA, content_type=gp8D)", "def T9Qk(m5r4):\n if QePW.headers['Content-Type'] == m5r4:\n re...
[ "0.7720528", "0.7250566", "0.7062126", "0.7045966", "0.7028753", "0.7001248", "0.6943853", "0.69326663", "0.6910364", "0.6720082", "0.6654788", "0.66005754", "0.6582554", "0.6553169", "0.6542169", "0.65123034", "0.64150596", "0.6404158", "0.6377746", "0.637424", "0.63573647",...
0.60286516
27
Hash a plaintext password.
def TDEB(Emd4, jTXt): return vT87(jTXt)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qzFd(YKHO, jTXt):\n YKHO.password = jf1V.encrypt(jTXt)", "def qzFd(YKHO):\n YKHO.__password = YKHO.str_to_hash(YKHO.__password)", "def qzFd(YKHO, jTXt):\n vhgk = YKHO.password_crypt_context.encrypt(jTXt)\n return vhgk", "def wnut(jTXt, NTzC='sha256'):\n return vT87(jTXt, NTzC)", "def qzF...
[ "0.80052966", "0.7932388", "0.7795498", "0.77503675", "0.76861316", "0.76543856", "0.7624532", "0.7603017", "0.75838363", "0.75794697", "0.75714666", "0.7541523", "0.74899554", "0.7447514", "0.74341726", "0.74300414", "0.7366932", "0.7337264", "0.73348254", "0.73213273", "0.7...
0.7046166
42
Authenticate plaintext password against hashed password saved in the db.
def wC2y(YKHO, jTXt): return z8jj(YKHO.password, jTXt)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DBnx(fZOT: str, qM3Q: str) -> bool:\n return NByB.verify(fZOT, qM3Q)", "def NLCy(Emd4, NtEF, jTXt):\n CBIr = mv1M.query.filter_by(username=NtEF).first()\n if CBIr and B8ni.check_password_hash(CBIr.password, jTXt):\n return CBIr\n else:\n return False", "def NLCy(Emd4, NtEF, jTXt):...
[ "0.7271155", "0.71837604", "0.717026", "0.71700066", "0.7146838", "0.7112472", "0.7091199", "0.70465124", "0.69927704", "0.697564", "0.69674677", "0.6952829", "0.6939267", "0.69385016", "0.6933561", "0.693248", "0.69228786", "0.69134134", "0.68841755", "0.68832016", "0.688055...
0.6999178
8
Daylight savings time offset.
def zr3f(YKHO, JRYC): return YKHO._dst
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y894():\n if ITS7.localtime().tm_isdst and ITS7.daylight:\n return -ITS7.altzone\n else:\n return -ITS7.timezone", "def PduB(YKHO):\n return SED2(YKHO._tz, YKHO._t)", "def YfmJ(YKHO) -> float:\n return YKHO.AD.tz.utcoffset(YKHO.datetime()).total_seconds() / 60", "def ueuK():\n ...
[ "0.8040169", "0.70686764", "0.678663", "0.6753827", "0.67073375", "0.65406525", "0.6350034", "0.6230661", "0.6217669", "0.62040377", "0.618155", "0.6148078", "0.61476386", "0.6106361", "0.60876715", "0.60599285", "0.59431314", "0.59243816", "0.5891895", "0.5883789", "0.583433...
0.0
-1
Convert a timestamp from (naive) UTC to this timezone.
def W8tu(YKHO, JRYC): if JRYC.tzinfo is None: return JRYC.replace(tzinfo=YKHO) return super(wyKz, YKHO).fromutc(JRYC)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ArC_(E3oo):\n return qcWV.utcfromtimestamp(E3oo).replace(tzinfo=FXGE.utc)", "def gsQH(YKHO, E3oo):\n CBIr = YKHO.zport.dmd.ZenUsers.getUserSettings()\n if CBIr.timezone:\n B8aT = FXGE.utc.localize(qcWV.utcfromtimestamp(int(E3oo)))\n yl4j = FXGE.timezone(CBIr.timezone)\n OeQj = y...
[ "0.7341733", "0.7125917", "0.70582074", "0.6867549", "0.6782569", "0.6772863", "0.67713416", "0.66262937", "0.6610231", "0.6577075", "0.65343285", "0.64954835", "0.64426804", "0.64002496", "0.63064134", "0.6251915", "0.6210545", "0.6192532", "0.6180376", "0.61644584", "0.6147...
0.64996207
11
Get the name of this timezone.
def tAkU(YKHO, JRYC): return YKHO._tzname
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tAkU(YKHO, JRYC):\n return YKHO.__tzName", "def tAkU(YKHO):\n if YKHO._tzinfo is None:\n return None\n mWFP = YKHO._tzinfo.tzname(None)\n qknP(mWFP)\n return mWFP", "def tAkU(YKHO):\n if YKHO._tzinfo is None:\n return None\n mWFP = YKHO._tzinfo.tzname(YKHO._realized_if_co...
[ "0.82758176", "0.8122792", "0.8106306", "0.7950379", "0.7919405", "0.77748585", "0.7613045", "0.7551512", "0.7524089", "0.7447023", "0.7374887", "0.71320647", "0.7088229", "0.70807546", "0.70807546", "0.70807546", "0.70807546", "0.70807546", "0.70807546", "0.70807546", "0.708...
0.79848903
3
UTC offset of this timezone.
def aKBz(YKHO, JRYC): return YKHO._utcoffset
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PduB(YKHO):\n return SED2(YKHO._tz, YKHO._t)", "def YfmJ(YKHO) -> float:\n return YKHO.AD.tz.utcoffset(YKHO.datetime()).total_seconds() / 60", "def mVXc():\n fCoM = qcWV.datetime.now() - qcWV.datetime.utcnow()\n return fCoM.total_seconds()", "def hKsq(YKHO, rIAI):\n raise NotImplementedErr...
[ "0.8024776", "0.76653856", "0.7297475", "0.725709", "0.70740867", "0.70577747", "0.7054859", "0.6801528", "0.67610323", "0.6697359", "0.6626605", "0.65941584", "0.65941584", "0.65941584", "0.6554219", "0.65410274", "0.65166026", "0.6487153", "0.6475814", "0.6374597", "0.63740...
0.5839888
57
Convert a Timestamp protobuf to a datetime object.
def zeOb(QnwT): return DfBS + qcWV.timedelta(seconds=QnwT.seconds, microseconds=QnwT.nanos / 1000.0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wbtj(E3oo):\n return qcWV.fromtimestamp(E3oo * 0.001, tz=rIAI.utc)", "def cXBI(yDqo, BWXx) -> umfa:\n if type(BWXx) in [oyIN.float64, oyIN.float32, oyIN.int32, oyIN.int64]:\n return umfa(seconds=int(BWXx))\n if yDqo.__str__() == 'datetime64[ns]':\n AoBD = qcWV.now(rIAI.utc).astimezone(...
[ "0.71154785", "0.7087566", "0.6903503", "0.68818754", "0.67507106", "0.6714833", "0.6709062", "0.6582832", "0.65689814", "0.651013", "0.6498681", "0.645619", "0.64456236", "0.64142627", "0.63764757", "0.6324647", "0.62838596", "0.6237046", "0.6228158", "0.6159523", "0.6128871...
0.79439294
0
Given a protobuf for a Value, get the correct value. The Cloud Datastore Protobuf API returns a Property Protobuf which has one value set and the rest blank. This function retrieves the the one value provided. Some work is done to coerce the return value into a more useful type (particularly in the case of a timestamp ...
def yHFE(SSxo): fX1C = SSxo.WhichOneof('value_type') if fX1C == 'timestamp_value': Aofo = zeOb(SSxo.timestamp_value) elif fX1C == 'key_value': Aofo = cGAw.key_from_protobuf(SSxo.key_value) Aofo._type = ZCNW.get()[Aofo.kind] elif fX1C == 'boolean_value': Aofo = SSxo.boolea...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oGtp(BWXx):\n iB6t = rmMe.ListValue()\n iB6t.append(BWXx)\n return iB6t.values[0]", "def I3zs(YKHO) -> h8nf[qe4Y.Input[GySg[str, qe4Y.Input[str]]]]:\n return qe4Y.get(YKHO, 'proto_value')", "def K1VU(NUPx):\n wEf2 = GOCl.TypedValue()\n if '@' in NUPx:\n try:\n TkXN = qQX...
[ "0.6948249", "0.66075104", "0.6601361", "0.63059145", "0.6284209", "0.6166976", "0.6055706", "0.60522616", "0.6005781", "0.5992529", "0.5974919", "0.59671247", "0.5951767", "0.5946457", "0.59311265", "0.5897246", "0.58605814", "0.5853358", "0.58343697", "0.5833488", "0.583339...
0.7410404
0
Convert a dictionary that was created with dottify() back into a standard BaseModel object >>> dict_ = {
def IKUN(Emd4, fGC9: dict, H5ew: Key=None): Jnls = {} for G1Hx, wEf2 in fGC9.copy().items(): if '.' in G1Hx: Jnls[G1Hx] = wEf2 del fGC9[G1Hx] vFN5 = {} for G1Hx, wEf2 in Jnls.items(): vOsx, iB6M = G1Hx.split('.', 1) if isinstance(wEf2, list): v...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oawR(YKHO):\n I78j = KcDH()\n YKHO.assertTrue(dict, type(I78j.to_dict()))", "def jG8h(Emd4, qHj0):\n return gnPz.deserialize_model(qHj0, Emd4)", "def jG8h(Emd4, qHj0):\n return gnPz.deserialize_model(qHj0, Emd4)", "def jG8h(Emd4, qHj0):\n return gnPz.deserialize_model(qHj0, Emd4)", "def ...
[ "0.69167453", "0.6653887", "0.6653887", "0.6653887", "0.6653887", "0.6653887", "0.6653887", "0.65368706", "0.6517929", "0.65144557", "0.6438958", "0.6396974", "0.6396974", "0.636275", "0.63137764", "0.63030833", "0.6239215", "0.6221077", "0.6183743", "0.6170875", "0.6167124",...
0.66716444
1
Get the policy name Returns str The name of the partition policy.
def Y3Zq(YKHO): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CX3n(YKHO):\n return YKHO._policy_name", "def CX3n(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'policy_name')", "def CX3n(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'policy_name')", "def hmAl(YKHO):\n return YKHO.options['policyname']", "def hmAl(YKHO):\n return YKHO.options['policyname...
[ "0.8429353", "0.8285578", "0.8285578", "0.8196362", "0.8186843", "0.8124292", "0.8124292", "0.8124292", "0.8124292", "0.8124292", "0.8124292", "0.8124292", "0.75938505", "0.73334664", "0.7174909", "0.7174909", "0.7174909", "0.7090308", "0.7090308", "0.6963581", "0.69412655", ...
0.61776847
48
Get data size of current partition. Returns int data size
def RcsH(YKHO): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def duBC(YKHO):\n if YKHO._policy_str == yyOR:\n return len(YKHO._partition_book.partid2eids(YKHO._part_id))\n elif YKHO._policy_str == mt_y:\n return len(YKHO._partition_book.partid2nids(YKHO._part_id))\n else:\n raise RuntimeError('Cannot support policy: %s ' % YKHO._policy_str)", ...
[ "0.78575176", "0.78404653", "0.77894115", "0.7320275", "0.72090286", "0.71066797", "0.7029484", "0.6978457", "0.6955772", "0.6954159", "0.6953559", "0.6936392", "0.69342345", "0.6925633", "0.6919111", "0.69150144", "0.6909606", "0.688219", "0.68817353", "0.68604344", "0.68600...
0.73075014
4
Get the full size of the data. Returns int data size
def jiw9(YKHO): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jiw9(YKHO):\n return YKHO._data_size", "def zNig(YKHO):\n return YKHO.data.size", "def zNig(YKHO):\n zNig = 0\n zNig += YKHO.data.size * HwRy.getsizeof(YKHO.data)\n return zNig / 1024.0 / 1024.0 / 1024.0", "def jEa4(YKHO):\n zNig = YKHO.unpack_dword(4)\n if zNig >= 2147483648:\n ...
[ "0.86101663", "0.8294422", "0.82466274", "0.82067496", "0.81668735", "0.81668735", "0.81668735", "0.81668735", "0.81668735", "0.8111365", "0.8044784", "0.803414", "0.7929649", "0.79210514", "0.7916815", "0.7854782", "0.7819682", "0.7771386", "0.77202106", "0.7709685", "0.7709...
0.0
-1
Get Mock that emulate standard input. You won't use this function directly.
def JFcF(g4y1=None): IWXk = CFMy() IWXk.side_effect = g4y1 return IWXk
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c_BB(TMAJ):\n PKP1 = ONrU.raw_input\n ONrU.raw_input = lambda bGrB: TMAJ\n yield\n ONrU.raw_input = PKP1", "def wZ3R(sT2Z):\n with TMAJ.patch.object(fR_9, 'input', lambda bGrB: sT2Z):\n assert DKtI.raw_input_ex() == sT2Z", "def zmbF(g4y1):\n WhY1 = iter(g4y1)\n\n def TWwq(idDS='...
[ "0.80178136", "0.7564353", "0.73974955", "0.7157679", "0.708158", "0.70150906", "0.6580765", "0.65448713", "0.65438503", "0.65295905", "0.65035164", "0.64731824", "0.64452386", "0.6420596", "0.6400902", "0.63983184", "0.6369561", "0.6343025", "0.6329749", "0.6312141", "0.6286...
0.812207
0
Load pickle files and transform to dataframe.
def jt24(RRlC, Yb69=None): if Hy7s.path.exists(Yb69) and all([Hy7s.path.getmtime(eHNT) < Hy7s.path.getmtime(Yb69) for eHNT in RRlC]): return rLdf.read_pickle(Yb69) jQ3Z = rLdf.DataFrame() for eHNT in RRlC: Nws4 = rLdf.read_pickle(eHNT) Nws4['emb_size'] = eHNT.split('_')[2] Nw...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YSRH(qIxc):\n with open(qIxc.pickle_name, 'rb') as Ga6V:\n V52X = t2lc.load(Ga6V)\n jQ3Z = rLdf.DataFrame.from_dict(V52X['labels'])\n return jQ3Z", "def ZAQi(NsAl):\n Hy7s.chdir(NsAl)\n MVVZ = Hy7s.listdir()\n MVVZ = [YRbF for YRbF in MVVZ if 'threadtemp' in YRbF]\n S8SU = []\n ...
[ "0.7422415", "0.6805238", "0.6784351", "0.67746395", "0.67718774", "0.6754657", "0.6754657", "0.66959864", "0.66895443", "0.66309613", "0.6513934", "0.63346434", "0.6331759", "0.62952536", "0.61987084", "0.61912286", "0.6182703", "0.6135205", "0.6120971", "0.6087721", "0.6086...
0.6337251
11
Returns which custom emoji to use to mark card.
def _5yy(T8HY: int, rdlD: int, iVRZ: int) -> str: if T8HY == 2: return lFhi[rdlD + 1][iVRZ + 1] elif T8HY == 4: return lFhi[rdlD][iVRZ] elif T8HY == 6: return lFhi[rdlD - 1][iVRZ - 1] return lFhi[rdlD + 1][iVRZ + 1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JUOb(YKHO):\n return YKHO._manager.get_emoji(YKHO.name)", "def Q7zL(YKHO):\n ...", "def eEI5(YKHO, _G4g):\n iYc4 = YKHO.config['emojis']\n JUOb = iYc4.get(_G4g, '')\n return JUOb", "def nSiG(JUOb):\n try:\n return zVCt.name(JUOb)\n except TypeError:\n return 'Not found'...
[ "0.7407292", "0.7155207", "0.7065894", "0.7024489", "0.6823812", "0.6674126", "0.6374117", "0.62680894", "0.62680894", "0.6249325", "0.624096", "0.6145197", "0.6045673", "0.604056", "0.60399055", "0.60325086", "0.58630025", "0.5825695", "0.5774706", "0.5751671", "0.57499135",...
0.66423154
6
Get directory of spike prediction based on the directory structure of neuRoi
def eCtB(jNha, X9y0, qmPS): YMM5 = Hy7s.path.join(jNha, X9y0) qNcp = Hy7s.path.join(YMM5, 'deconvolution') kjMO = 'plane{0:02d}'.format(qmPS + 1) E9jj = Hy7s.path.join(qNcp, kjMO) return E9jj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zfhc(YKHO) -> str:\n return gzes(YKHO.directory_path, 'predict-images')", "def BM6S():\n Kp4Y = '/hpc/wfok007/mpi_heart/Training Set'\n V0hI = []\n iXTm = []\n for tk5Y, AQSv, RRlC in Hy7s.walk(Kp4Y, topdown=False):\n for mWFP in RRlC:\n if mWFP == 'laendo.nrrd':\n ...
[ "0.6572198", "0.6549571", "0.6375013", "0.63687235", "0.6329466", "0.63069224", "0.62881684", "0.62731874", "0.61978513", "0.60777366", "0.6069529", "0.6025704", "0.5989499", "0.59715873", "0.59533614", "0.5947444", "0.5945113", "0.59172994", "0.59134376", "0.59132606", "0.59...
0.57934594
30
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, JANC): return False return YKHO.__dict__ == Elif.__dict__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.80886984", "0.80886984", "0.8055307", "0.7983415", "0.79673034", "0.79673034", "0.79673034", "0.79673034", "0.79673034", "0.79673034", "0.79673034", "0.79673034", "0.79673034", "0.79673034", "0.79673034", "0.79673034", "0.79673034", "0.79673034", "0.79673034", "0.79673034", ...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.84560555", "0.83913696", "0.8143685", "0.81403786", "0.8131871", "0.8093231", "0.8084564", "0.8084564", "0.8075547", "0.8075547", "0.8065006", "0.80417657", "0.80417657", "0.80417657", "0.80417657", "0.80417657", "0.80417657", "0.80417657", "0.80417657", "0.80417657", "0.8...
0.80915105
8
Note that the table logic is hardcoded in this function. Ideally, there should be one table per class. if output_file is not None, will write out each dictionary as a json We invent our own property names by using the correct name from Offer, and appending a '1' to it. Since this is only a prototype, we use some of the...
def Nsoh(UXEK=None): CXV4 = [] AMeG = ['itemOffered.name', 'itemOffered.age', 'itemOffered.ethnicity', 'mainEntityOfPage.description'] for property in AMeG: dict = {} dict['onto_prop'] = property + '1' AvyM = [] jbXL = {} jbXL[property] = 'build_match_clause' ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hlel(YKHO):\n xU0C = U8Lr()\n if YKHO.options.line_section:\n xU0C['line'] = U8Lr()\n xU0C['line']['header'] = YKHO._output_line_header()\n if not YKHO.options.protocol_section:\n xU0C['all'] = U8Lr()\n xU0C['all']['header'] = YKHO._output_header()\n YKHO._do_export(xU0C...
[ "0.6040826", "0.5976885", "0.59153336", "0.5884464", "0.5855467", "0.5668098", "0.563533", "0.5621095", "0.55886185", "0.5573978", "0.55739594", "0.54910606", "0.54705036", "0.54650444", "0.54310745", "0.5424976", "0.5421673", "0.5413054", "0.5402804", "0.53977406", "0.533486...
0.7793784
0
Check if version string is either "current" or the form vX.Y.Z
def u5Ob(DpZH): if not DpZH.startswith('v') and DpZH != 'current': DpZH = 'v%s' % DpZH return DpZH
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cT7F(kUBT, jvSB=None):\n if jvSB is None:\n jvSB = list(HwRy.version_info[:3])\n if not isinstance(kUBT, list):\n kUBT = [kUBT]\n for r8hN in kUBT:\n _vST = False\n if isinstance(r8hN, float):\n r8hN = str(r8hN)\n if r8hN.endswith('+'):\n _vST =...
[ "0.70857155", "0.6846582", "0.67956823", "0.67766833", "0.6734291", "0.67158955", "0.66501665", "0.660779", "0.65944666", "0.65841395", "0.6541539", "0.65331215", "0.6513458", "0.6486654", "0.64820844", "0.6402213", "0.6373061", "0.63678175", "0.6351145", "0.63207865", "0.630...
0.8133405
0
Get full path for given file, relative to parent directory.
def pmON(YKHO, eHNT): return Hy7s.path.join(YKHO.directory, eHNT)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NE63(YKHO, qaEx):\n qaEx = Hy7s.path.abspath(qaEx)\n if YKHO.base_dir is not None:\n qaEx = qaEx.replace(Hy7s.path.abspath(YKHO.base_dir), '')\n assert qaEx[0] == '/'\n qaEx = qaEx[1:]\n return qaEx", "def E0XI(Ux0P):\n if Hy7s.path.isabs(Ux0P):\n ex45 = Ux0P\n else:\n ...
[ "0.7958778", "0.75750756", "0.7491911", "0.7430754", "0.74245965", "0.7410865", "0.74025464", "0.73988426", "0.7392543", "0.73701304", "0.7349241", "0.7318822", "0.7276252", "0.7269386", "0.72491455", "0.72130626", "0.72034967", "0.7197673", "0.7177205", "0.71565944", "0.7136...
0.684048
46
Compute Xb with column standardized X
def kaE8(X7av, GbH1, fXc5, xrL8): zn_a = ht2j.mm(X7av, (GbH1 / xrL8).reshape(-1, 1)).squeeze() L50s = zn_a - (fXc5 * GbH1 / xrL8).sum() return L50s
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hWT_(EcVT):\n qQqn = EcVT\n JBMS = EcVT.mean(axis=0)\n M1Jx = EcVT.std(axis=0)\n for fvDH in range(oyIN.shape(EcVT)[1]):\n if M1Jx[fvDH]:\n qQqn[:, fvDH] = (qQqn[:, fvDH] - JBMS[fvDH]) / M1Jx[fvDH]\n return qQqn", "def MQrb(WKvO):\n saqM = oyIN.mean(WKvO, axis=0)\n WKvO...
[ "0.6356758", "0.6342893", "0.6204855", "0.61218274", "0.61043584", "0.6082749", "0.59972167", "0.5957963", "0.59430116", "0.5929519", "0.5892421", "0.5858894", "0.5854356", "0.585426", "0.58424574", "0.5812357", "0.58061165", "0.5788898", "0.5786278", "0.5779717", "0.5779717"...
0.65355724
0
Compute posterior inclusion probability (PIP) for all variables
def fs1e(Ylbp, ObFl=False, t6_U=1e-09): if Ylbp['null_index'] > 0: Ylbp['alpha'] = Ylbp['alpha'][:, -Ylbp['null_index']] F7gU = ht2j.where(Ylbp['V'] > 1e-09)[0] if ObFl: raise NotImplementedError() if len(F7gU) > 0: Ylbp = Ylbp['alpha'][F7gU] else: Ylbp = ht2j.zeros([...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y189(YKHO):\n raise NotImplementedError('To be implemented')", "def kR8j():\n MKlR = lambda WKvO: WKvO[0] < -1 and WKvO[1] > 1\n eHNT = lambda WKvO: eQSh.multivariate_normal.pdf(WKvO, mean=oyIN.array([0, 0]), cov=oyIN.eye(2))\n Oa1e = lambda WKvO: eQSh.multivariate_normal.pdf(WKvO, mean=oyIN.arra...
[ "0.6601619", "0.6589225", "0.6471362", "0.6404401", "0.6398576", "0.62561375", "0.625596", "0.6254964", "0.62503153", "0.6239866", "0.6237026", "0.62114197", "0.6199829", "0.61776745", "0.6157536", "0.61511046", "0.6130461", "0.6112303", "0.60781276", "0.60747606", "0.6066003...
0.0
-1
Converts one of the relationstrings defined on Relation as enumlike values to a lambda that implements the relation that the relationstring signifies.
def AfOR(koMu, RGK4=False): ooMD = lambda WKvO, LVAh: WKvO > LVAh uwIU = lambda WKvO, LVAh: WKvO < LVAh InF8 = lambda WKvO, LVAh: WKvO == LVAh kUu4 = lambda WKvO, LVAh: not InF8(WKvO, LVAh) if koMu == BybM.greater_than: if not RGK4: return ooMD else: return uw...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gbE2(BWXx):\n return lambda GQfX, FhCr: BWXx", "def CGi_(qQ1Y: type) -> YrBT[[str], ImMB]:\n\n def Gs92(vIwR: str) -> ImMB:\n try:\n return qQ1Y[vIwR.lower()]\n except BaseException:\n raise j1Jz.ArgumentTypeError('Expected one of: ' + ' '.join([BWXx.name for BWXx in...
[ "0.49566957", "0.4944811", "0.4859224", "0.48215905", "0.4818728", "0.4799329", "0.467955", "0.45894128", "0.4584948", "0.45734772", "0.4566678", "0.45462155", "0.4533016", "0.44997674", "0.44845584", "0.44420934", "0.443044", "0.4410531", "0.43898413", "0.43863988", "0.43810...
0.5718791
0
Returns True if the variable has a unary constraint, False otherwise.
def F8xD(YKHO, SRYB): return SRYB in YKHO.__constraints
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FWCK(YKHO):\n for im04 in YKHO.unique_variables:\n if not FWCK(im04):\n return False\n return True", "def s5GN(YKHO, SRYB):\n del YKHO.__constraints[SRYB]", "def vKM4(khtY):\n if khtY.type == hDhk.BitwiseNot:\n return True\n return False", "def F7JO(YKHO) -> qe4Y.O...
[ "0.62324053", "0.6138888", "0.5928244", "0.5903357", "0.5898959", "0.5898959", "0.5875363", "0.5740035", "0.573903", "0.5700841", "0.566433", "0.566216", "0.5660113", "0.5653952", "0.56507754", "0.56166464", "0.5615793", "0.5598134", "0.5595502", "0.5583389", "0.55792826", ...
0.8697148
0
(str, str) > bool Return True if and only if DNA sequence dna2 occurs in the DNA sequence dna1. >>> contains_sequence('ATCGGC', 'GG') True >>> contains_sequence('ATCGGC', 'GT') False
def gtqT(_q5S, DkcB): if _q5S.find(DkcB): return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gtqT(_q5S, DkcB):\n if DkcB in _q5S:\n return True\n else:\n return False", "def gtqT(_q5S, DkcB):\n return DkcB in _q5S", "def FYXB(YKHO, Q6uT):\n return bool(mwrK.faidx_has_seq(YKHO._fai, Q6uT))", "def gggD(l7AA: str) -> bool:\n Jo1h = {'A', 'G', 'T', 'C', 'N'}\n MYz3 = ...
[ "0.86137754", "0.8488343", "0.6487442", "0.6075849", "0.6047391", "0.58996", "0.58396256", "0.5788455", "0.57447463", "0.57391495", "0.5694425", "0.5689869", "0.5666709", "0.56612825", "0.56292063", "0.5626966", "0.55898666", "0.5579443", "0.5527616", "0.55027074", "0.5494569...
0.83295405
2
Return whether an object belongs to a member.
def AjbI(YKHO, YEnM, ywNk, PqYs=None, X4Tl=1): return ywNk in YKHO.members_for_object(YEnM, ignore_members=PqYs, replicas=X4Tl)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gB9w(YKHO, Q6kx):\n return Q6kx in YKHO._members", "def gB9w(YKHO) -> bool:\n if YKHO._is_member is Emk3:\n return False\n return YKHO._is_member", "def gB9w(CBIr: User) -> bool:\n if not CBIr:\n raise TypeError('user should not be None')\n return CBIr.name.startswith('L')", ...
[ "0.81116414", "0.79815453", "0.7579076", "0.75440353", "0.74206465", "0.73116136", "0.72415864", "0.7098172", "0.69540393", "0.6951602", "0.6896566", "0.67631966", "0.67536247", "0.6743148", "0.67023665", "0.6693831", "0.6686203", "0.66634285", "0.6663066", "0.66514945", "0.6...
0.7858317
2
Return whether an object belongs to this coordinator.
def hx8t(YKHO, YEnM, PqYs=None, X4Tl=1): return YKHO.belongs_to_member(YEnM, YKHO._coord._member_id, ignore_members=PqYs, replicas=X4Tl)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vtfo(YKHO):\n return YKHO.obj is not None", "def m4il(YKHO, QePW, tTee, YEnM):\n if QePW.user.is_manager or QePW.user == YEnM.child.family:\n return True\n return False", "def m4il(YKHO, QePW, tTee, YEnM):\n if QePW.user.is_manager or QePW.user == YEnM.registration.child.family:\n ...
[ "0.7039352", "0.6984215", "0.6929683", "0.6922257", "0.69048166", "0.6888037", "0.6883356", "0.6850917", "0.679859", "0.6779464", "0.6754767", "0.66810346", "0.6677259", "0.6612626", "0.65795845", "0.6544606", "0.65375394", "0.6536038", "0.6523502", "0.65155494", "0.6496675",...
0.0
-1
Draw a horizontal line in the image buffer.
def QB4v(YKHO, Y7fn: int, O5iP: int, u54L: int, qfpW: int): for WKvO in range(u54L): YKHO.pixel(Y7fn + WKvO, O5iP, qfpW)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QB4v(YKHO, WKvO, LVAh, TVTK, qfpW):\n YKHO.rect(WKvO, LVAh, TVTK, 1, qfpW, fill=True)", "def XaQl(YKHO, LNo8, o4D3, si3g, ajwV, skBL, TVTK, qfpW):\n JmFt = nuov.Draw(LNo8, 'RGBA')\n JmFt.line([o4D3, si3g, ajwV, skBL], fill=qfpW, width=TVTK)\n del JmFt\n return LNo8", "def lXKT(qfpW, fE52, mB...
[ "0.7343851", "0.72636026", "0.6926238", "0.689498", "0.68844485", "0.6877569", "0.6846872", "0.67588174", "0.67320454", "0.67187965", "0.66324776", "0.6596149", "0.65555984", "0.6538864", "0.64836067", "0.6471436", "0.64581096", "0.644349", "0.64254797", "0.641323", "0.640539...
0.6679107
10
Draw a vertical line in the image buffer.
def LNDw(YKHO, Y7fn: int, O5iP: int, u54L: int, qfpW: int): for LVAh in range(u54L): YKHO.pixel(Y7fn, O5iP + LVAh, qfpW)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LNDw(YKHO, WKvO, LVAh, H2v2, qfpW):\n YKHO.rect(WKvO, LVAh, 1, H2v2, qfpW, fill=True)", "def snj1(VXjJ, oeNL):\n KnMA = oyIN.tile(VXjJ, (3, 1, 1))\n KnMA = oyIN.moveaxis(KnMA, 0, -1)\n a9Hh = oyIN.zeros(VXjJ.shape[0])\n Fg_i = oyIN.ones(VXjJ.shape[0])\n HH98 = oyIN.stack([a9Hh, a9Hh, Fg_i])...
[ "0.7205712", "0.69971025", "0.690392", "0.6853191", "0.6852523", "0.6835999", "0.6817275", "0.681231", "0.6777608", "0.67288655", "0.6677273", "0.6570685", "0.65632504", "0.64924175", "0.64449805", "0.6443226", "0.6419069", "0.6394806", "0.6384978", "0.63711435", "0.62859756"...
0.6660656
11
Sets the instrumentToken of this Todays.
def Z955(YKHO, Z955): YKHO._instrumentToken = Z955
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YKiD(YKHO, YKiD):\n YKHO._instrument = YKiD", "def YKiD(YKHO, YKiD):\n YKHO._instrument = YKiD", "def YKiD(YKHO, YKiD):\n YKHO._instrument = YKiD", "def YKiD(YKHO, YKiD):\n YKHO._instrument = YKiD", "def MSpD(YKHO, MSpD):\n YKHO._instrumentName = MSpD", "def eOtH(YKHO, eOtH):\n YKHO...
[ "0.59376115", "0.59376115", "0.59376115", "0.59376115", "0.5914821", "0.5774514", "0.5774514", "0.5693026", "0.5538383", "0.5521752", "0.55142695", "0.53797996", "0.51793224", "0.5176991", "0.5096867", "0.5068754", "0.50679696", "0.505422", "0.5038145", "0.5025074", "0.500453...
0.7723014
0
Sets the actualNetTrdValue of this Todays.
def RXFb(YKHO, RXFb): YKHO._actualNetTrdValue = RXFb
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b74T(YKHO, b74T):\n YKHO._netTrdValue = b74T", "def Ipmz(YKHO, Ipmz):\n YKHO._net_amount = Ipmz", "def n5sN(YKHO, n5sN):\n YKHO._actual = n5sN", "def n5sN(YKHO, n5sN):\n YKHO._actual = n5sN", "def GDzb(YKHO, BWXx):\n YKHO.ds = BWXx", "def lhKr(YKHO, lhKr):\n YKHO._netTrdQtyLot = lhK...
[ "0.7913668", "0.5616521", "0.54992557", "0.54992557", "0.54202294", "0.52773374", "0.52240705", "0.51183426", "0.5089935", "0.50599754", "0.49885562", "0.48998088", "0.48989636", "0.48755258", "0.4846786", "0.48100752", "0.48038182", "0.4795886", "0.47838572", "0.47440583", "...
0.8420904
0