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
Get length of the Linked list.
def zNig(YKHO): jvSB = YKHO.head UHFx = 0 while jvSB: UHFx += 1 jvSB = jvSB.next return UHFx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def u54L(YKHO):\n return YKHO.size", "def u54L(YKHO):\n exwG = 0\n AsCw = YKHO.head\n while AsCw != None:\n exwG += 1\n AsCw = AsCw.next\n return exwG", "def szAg(YKHO):\n u54L = 0\n if YKHO.head is not None:\n aCLL = YKHO.head\n u54L = 1\n while aCLL.poi...
[ "0.8598435", "0.8533218", "0.8525565", "0.8408153", "0.8368617", "0.83506507", "0.8308112", "0.83063793", "0.83026826", "0.82367885", "0.8234004", "0.82055646", "0.82012963", "0.81927675", "0.8183399", "0.8178107", "0.8172184", "0.81441694", "0.81187713", "0.8111419", "0.8080...
0.7503609
69
Removes middle element of the Linked list.
def nR2n(YKHO): if YKHO.head is None: return if YKHO.head.next is None: YKHO.head = None return id7O = YKHO.head DkUh = YKHO.head AOBR = None while DkUh and DkUh.next: DkUh = DkUh.next.next AOBR = id7O id7O = id7O.next if DkUh: AOBR.nex...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nR2n(eJ2R):\n if eJ2R.get_size() % 2 == 0:\n Q6kx = eJ2R.head\n x1fj = eJ2R.get_size() // 2\n Hodr = WhVw()\n ewCu = 0\n while Q6kx:\n if ewCu != x1fj and ewCu + 1 != x1fj:\n Hodr.insert_back(Q6kx.get_value())\n Q6kx = Q6kx.get_next()\n...
[ "0.8022657", "0.77292305", "0.7666936", "0.75959206", "0.7573683", "0.70223254", "0.69637", "0.683924", "0.6780523", "0.67324257", "0.66923445", "0.6662646", "0.66398495", "0.65860796", "0.6576311", "0.6546213", "0.65437233", "0.6469881", "0.63726825", "0.63562024", "0.635206...
0.87704325
0
Linked lists with different lengths are defined here. Expected results are defined by ordinary list to ease readability.
def FIMM(YKHO): super(eYaw, YKHO).__init__() YKHO.list0 = _sfu() YKHO.expected_list0_items = [] YKHO.list1 = _sfu() YKHO.list1.head = o7DN(1) YKHO.expected_list1_items = [] YKHO.list2 = _sfu() YKHO.list2.head = o7DN(1) YKHO.list2_item2 = o7DN('ahoj') YKHO.list2.head.next = YKHO.l...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UsJD():\n ZMDM, bwUk, l3pf = yr6O()\n assert l3pf.length == 5", "def yr6O():\n from linked_list import LinkedList\n ZMDM = LinkedList([1])\n bwUk = LinkedList()\n l3pf = LinkedList([1, 2, 3, 4, 5])\n return (ZMDM, bwUk, l3pf)", "def K_if(YKHO):\n qFa0 = rgas()\n SKE2 = qFa0.len()...
[ "0.69267666", "0.6922817", "0.68195", "0.6595278", "0.65869385", "0.6503605", "0.6382913", "0.63279855", "0.6294079", "0.62485206", "0.62330663", "0.62174183", "0.6203999", "0.6193317", "0.6177383", "0.6175982", "0.6168869", "0.61675113", "0.61550164", "0.61329275", "0.611831...
0.61138815
21
Takes provided Linked list and removes the middle element. Then modified Linked list is compared with expected result.
def z0TL(YKHO, QnBy, aEqx): QnBy.remove_middle() YKHO.assertEqual(QnBy.size(), len(aEqx)) VRZJ = QnBy.head P2GO = 0 while VRZJ: if VRZJ.value == aEqx[P2GO]: VRZJ = VRZJ.next P2GO += 1 else: raise AssertionError
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nR2n(YKHO):\n if YKHO.head is None:\n return\n if YKHO.head.next is None:\n YKHO.head = None\n return\n id7O = YKHO.head\n DkUh = YKHO.head\n AOBR = None\n while DkUh and DkUh.next:\n DkUh = DkUh.next.next\n AOBR = id7O\n id7O = id7O.next\n if DkUh...
[ "0.79735166", "0.7614172", "0.7574688", "0.7092304", "0.7054066", "0.6983441", "0.6827829", "0.67438334", "0.6701799", "0.6666932", "0.6578919", "0.6566164", "0.6558362", "0.6547886", "0.64963716", "0.63753766", "0.63253987", "0.62661785", "0.6226703", "0.620146", "0.61016834...
0.6833694
6
Restore a pretrained model (v. mnist_conv2fc2_no_estimator.py), then compress it (SVD) and evaluate accuracy of the approximated model so obtained. Compressed model is finally saved (have to insert the path).
def ljSj(eG0V): C3ST, ja3b = Oa8f.model_loader(eG0V, ret_vars=False) hNbQ = {} v2z8 = [] for mWFP in ja3b: if len(C3ST[mWFP].shape) > 1: print('compressing layer named {}'.format(mWFP)) cAlv, C7Ls = Oa8f.get_low_rank_approximation(C3ST[mWFP], mWFP) v2z8.append...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wBIE(YKHO, cb_Q, uqvc):\n uqvc = Hy7s.path.join(uqvc, 'model.cpkt')\n print(uqvc)\n jkyf = ZylS.train.Saver()\n jkyf.restore(cb_Q, uqvc)\n G9jH.info('Model restored from file: %s' % uqvc)", "def _OQl(C3ST, pmON: str):\n bGrB, eyrV = GdvO()\n vauY = {'class_to_idx': C3ST.class_to_idx, 'id...
[ "0.65475893", "0.6387432", "0.63617307", "0.6352775", "0.63508284", "0.63310134", "0.63236636", "0.6306893", "0.63045293", "0.6288592", "0.6288592", "0.6241082", "0.6239143", "0.6239143", "0.6236627", "0.62148076", "0.6211827", "0.62112135", "0.6196098", "0.61502904", "0.6148...
0.77043134
0
A function that detects whether or not a given position with a given tac makes a win on a given board.
def RMPR(Gvdw, iBIi, dQgj): W027 = x9lK() W027.TTTBoard = iBIi.TTTBoard[:] if W027.putTac(Gvdw, dQgj): if W027.checkWin(): return True else: return False else: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UZ_U(iBIi):\n if iBIi[0][0] == iBIi[1][0] and iBIi[0][0] == iBIi[2][0] or (iBIi[0][1] == iBIi[1][1] and iBIi[0][1] == iBIi[2][1]) or (iBIi[0][2] == iBIi[1][2] and iBIi[0][2] == iBIi[2][2]) or (iBIi[0][0] == iBIi[0][1] and iBIi[0][0] == iBIi[0][2]) or (iBIi[1][0] == iBIi[1][1] and iBIi[1][0] == iBIi[1][2]) o...
[ "0.79295695", "0.7819274", "0.7788474", "0.768812", "0.75842464", "0.7559723", "0.75064504", "0.74781156", "0.74252665", "0.74029076", "0.73997104", "0.73845416", "0.7383619", "0.73774177", "0.73756164", "0.7368691", "0.73583007", "0.7356162", "0.735545", "0.73501414", "0.734...
0.8082302
0
Instance method using makesTwoInARow to place a tac at a spot with two in a row.
def AHT9(YKHO, iBIi): for YRbF in range(1, 10): if V7cg.makesTwoInARow(YKHO.tac, iBIi, YRbF): if iBIi.putTac(YKHO.tac, YRbF): return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UZ_U():\n return", "def HAop():\n k0lF = oyIN.zeros((3, 3), dtype=int)\n for YRbF in range(9):\n oyg0 = [1, 2][YRbF % 2]\n bHVe = FFbU(k0lF, oyg0)\n if bHVe:\n return bHVe\n return None", "def XAkF(YKHO, JaWn, BZN_):\n assert JaWn == qlGl.PLAYER_TAC_MAP[YKHO.a...
[ "0.7078055", "0.68753135", "0.661114", "0.6579119", "0.65682316", "0.64816964", "0.6400497", "0.6179332", "0.6155895", "0.59866154", "0.5945881", "0.59448254", "0.5942673", "0.593547", "0.5925243", "0.59101135", "0.5907668", "0.5861583", "0.5855746", "0.5841243", "0.58162373"...
0.7691396
0
Inits a FollowEvent instance.
def FIMM(YKHO, zZcM, zr3f, **B2fa): super().__init__(**B2fa) YKHO.src = zZcM YKHO.dst = zr3f
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, *qIxc, **c_sp):\n if qIxc or c_sp:\n super(QRWf, YKHO).__init__(*qIxc, **c_sp)\n if YKHO.id is None:\n YKHO.id = 0\n if YKHO.timestamp is None:\n YKHO.timestamp = 0.0\n if YKHO.isAddressed is None:\n YKHO.isAddressed = False\n if...
[ "0.6107086", "0.5754178", "0.5667087", "0.5659296", "0.56318367", "0.56227046", "0.5557713", "0.55147976", "0.54666746", "0.54344404", "0.5390893", "0.5351749", "0.53317684", "0.5306715", "0.527656", "0.52515817", "0.5222699", "0.52117485", "0.5208982", "0.5208982", "0.520701...
0.0
-1
Inits a MessageEvent instance.
def FIMM(YKHO, zZcM, zr3f=None, **B2fa): super().__init__(**B2fa) YKHO.dst = zr3f
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, *qIxc, **c_sp):\n if qIxc or c_sp:\n super(QRWf, YKHO).__init__(*qIxc, **c_sp)\n if YKHO.id is None:\n YKHO.id = 0\n if YKHO.timestamp is None:\n YKHO.timestamp = 0.0\n if YKHO.isAddressed is None:\n YKHO.isAddressed = False\n if...
[ "0.6936417", "0.64859515", "0.6465619", "0.6465619", "0.6456839", "0.63752276", "0.63752276", "0.63620615", "0.6285123", "0.6285123", "0.6285123", "0.62576276", "0.62543744", "0.6243602", "0.6243602", "0.6243602", "0.6243602", "0.6243602", "0.6243602", "0.6243602", "0.6243602...
0.0
-1
Inits a StatusEvent instance.
def FIMM(YKHO, zZcM, **B2fa): super().__init__(**B2fa) YKHO.src = zZcM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, jGRS, GPtr=None, kvfq=False, zAVU=None, ZsYj=None):\n YKHO.status = jGRS\n YKHO.config = GPtr if GPtr else oz2N()\n YKHO.resume = kvfq\n YKHO.race_slug = zAVU\n YKHO.until = ZsYj\n Vt89 = jGRS.bundle.credentials\n YKHO.twitter = _76H(Vt89.app_key, access_token=Vt89.access_token)...
[ "0.61863875", "0.61275667", "0.609451", "0.6089974", "0.60527635", "0.6045307", "0.60382175", "0.5984032", "0.59785765", "0.59505045", "0.592801", "0.59095967", "0.5897878", "0.5897878", "0.5897878", "0.5864811", "0.58489853", "0.582241", "0.5794688", "0.57781225", "0.5778122...
0.0
-1
Parent groups of this group.
def ckjo(YKHO): if YKHO._root_group: return [YKHO._root_group] + YKHO._inventory_group.parent_groups return []
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ch4f(YKHO):\n return YKHO._parent_group", "def Ch4f(YKHO):\n return YKHO._parent_group", "def Ch4f(YKHO):\n return YKHO._parent_group", "def g5q5(YKHO):\n return YKHO._parent_group_id", "def g5q5(YKHO):\n return YKHO._parent_group_id", "def cgFu(YKHO):\n if YKHO._guide:\n YKH...
[ "0.79379565", "0.79379565", "0.79379565", "0.7349494", "0.7349494", "0.7228941", "0.7192663", "0.7192663", "0.71547276", "0.7104681", "0.7064625", "0.7022472", "0.6957358", "0.6918477", "0.6918477", "0.6918477", "0.6887799", "0.6885067", "0.6882635", "0.6813035", "0.6790596",...
0.76681334
3
Check if `self` equals `other`.
def xa14(YKHO, Elif: object) -> bool: if not isinstance(Elif, AWlQ): return False return YKHO.radixes == Elif.radixes
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def InF8(YKHO, Elif):\n return YKHO.__eq__(Elif)", "def aPi6(YKHO, Elif):\n pass", "def aPi6(YKHO, Elif):\n pass", "def xa14(YKHO, Elif):\n return YKHO is Elif", "def xa14(YKHO, Elif):\n return YKHO.is_same(Elif)", "def xa14(YKHO, Elif):\n if YKHO is Elif:\n return True\n elif...
[ "0.8692576", "0.8524916", "0.8524916", "0.8492808", "0.8492739", "0.8419311", "0.84005445", "0.837853", "0.837753", "0.8359233", "0.8359233", "0.83277184", "0.8309103", "0.8309103", "0.83001566", "0.82944065", "0.82831776", "0.8272122", "0.82656014", "0.82650316", "0.82650316...
0.0
-1
Computes the precision for the specified values of k
def TxIz(hlel, pan_, GPtr, gwAu, RCS5=False): aMgO = _qLf(hlel) Y8eF = _qLf(pan_) aMgO[aMgO >= gwAu] = 1.0 aMgO[aMgO <= gwAu] = 0.0 KndY = GPtr['Data_CLASSES'] Bcwd = Wbxz.confusion_matrix(y_true=Y8eF, y_pred=aMgO) if RCS5: gXgy = Hy7s.path.join(ZP76, 'cm_valid{}_thres{}.png'.format(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rhd_(u5Ef, G1Hx):\n return len(u5Ef) / G1Hx", "def sEak(Mkmy, G1Hx):\n assert G1Hx >= 1\n Mkmy = oyIN.asarray(Mkmy)[:G1Hx]\n return oyIN.mean(Mkmy)", "def sEak(YKHO, G1Hx):\n fdMZ = YKHO.pred_rankings.rdd.map(lambda SjLr: (SjLr[2], SjLr[1]))\n Wbxz = rRQi(fdMZ)\n return Wbxz.precisionA...
[ "0.8003211", "0.79748034", "0.79735845", "0.7941222", "0.78642285", "0.7803938", "0.7707779", "0.7621563", "0.7593218", "0.75612706", "0.752028", "0.7430132", "0.74122673", "0.7375894", "0.7374447", "0.7321427", "0.7254542", "0.7236769", "0.72279894", "0.7204469", "0.7137302"...
0.0
-1
Computes the precision for the specified values of k
def gV9T(hlel, pan_, GPtr, gwAu): aMgO = _qLf(hlel) Y8eF = _qLf(pan_) aMgO[aMgO >= gwAu] = 1.0 aMgO[aMgO <= gwAu] = 0.0 Bcwd = Wbxz.confusion_matrix(y_true=Y8eF, y_pred=aMgO) rhd_ = Bcwd[0, 0] / oyIN.sum(Bcwd[0, :]) W2wS = rhd_ return (W2wS, 0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rhd_(u5Ef, G1Hx):\n return len(u5Ef) / G1Hx", "def sEak(Mkmy, G1Hx):\n assert G1Hx >= 1\n Mkmy = oyIN.asarray(Mkmy)[:G1Hx]\n return oyIN.mean(Mkmy)", "def sEak(YKHO, G1Hx):\n fdMZ = YKHO.pred_rankings.rdd.map(lambda SjLr: (SjLr[2], SjLr[1]))\n Wbxz = rRQi(fdMZ)\n return Wbxz.precisionA...
[ "0.8003211", "0.79748034", "0.79735845", "0.7941222", "0.78642285", "0.7803938", "0.7707779", "0.7621563", "0.7593218", "0.75612706", "0.752028", "0.7430132", "0.74122673", "0.7375894", "0.7374447", "0.7321427", "0.7254542", "0.7236769", "0.72279894", "0.7204469", "0.7137302"...
0.0
-1
Set trap using the signal handling fn from the calling program for all signals except SIGKILL, SIGSTOP and SIG_DFL, which cannot be trapped.
def Vy2T(YKHO): for YRbF in [WKvO for WKvO in dir(Gaon) if WKvO.startswith('SIG')]: try: Lxki = getattr(Gaon, YRbF) Gaon.signal(Lxki, YKHO._dmn_sighandlerfn) except: pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bCuI(YKHO, JfyU):\n for KCHu in [Gaon.SIGTERM, Gaon.SIGINT, Gaon.SIGHUP, Gaon.SIGQUIT]:\n Gaon.signal(KCHu, JfyU)", "def uK5B(JfyU):\n\n @xBlr.wraps(JfyU)\n def b6ry(*qIxc, **B2fa):\n Gaon.signal(Gaon.SIGTERM, Gaon.SIG_DFL)\n Gaon.signal(Gaon.SIGINT, Gaon.SIG_DFL)\n Gaon....
[ "0.7042948", "0.6691501", "0.62458146", "0.6187299", "0.6141094", "0.6132699", "0.6113849", "0.60756123", "0.6067353", "0.6050279", "0.6046244", "0.60308415", "0.6009879", "0.5999644", "0.5984765", "0.59252715", "0.5878119", "0.5872515", "0.5868575", "0.5867951", "0.58663094"...
0.67428124
1
Converts the given value into a string which when evaluated will return the value. This one is smart enough to take care of ASTs.
def agYK(vGaq): if isinstance(vGaq, jZ4I.AST): V_D6 = [agYK(Fg_i) for jzdc, Fg_i in jZ4I.iter_fields(vGaq)] return '%s(%s)' % (vGaq.__class__.__name__, ', '.join(V_D6)) elif isinstance(vGaq, list): return '[%s]' % ', '.join(map(agYK, vGaq)) return repr(vGaq)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def whrw(BWXx) -> str:\n return str(BWXx) if BWXx else str()", "def Nc2D(BWXx):\n YKHO.verbose('trying to convert value to string : %s', BWXx)\n return str(BWXx)", "def yLCI(Emd4, BWXx):\n return str(BWXx)", "def Jtqm(BWXx):\n if isinstance(BWXx, str):\n BWXx = eval(str(BWXx))\n retu...
[ "0.8032742", "0.7480985", "0.7433529", "0.73943764", "0.73884946", "0.72475344", "0.7218882", "0.71744055", "0.71744055", "0.7122106", "0.7111161", "0.6992468", "0.695797", "0.69119644", "0.69068664", "0.6886753", "0.68385917", "0.68313825", "0.68310773", "0.6829548", "0.6827...
0.0
-1
Return the number of posts in this category.
def cn8V(YKHO): return YKHO.ultra_blog_posts.all().count()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hfEc(YKHO):\n return YKHO.user.post_set.count()", "def hfEc():\n return T97t.published.count()", "def uGY5(ZrNc: Account) -> int:\n return ZrNc.post_author_set.all().count()", "def dOXg(YKHO, YEnM):\n return YEnM.post_set.count()", "def FvVY(YKHO, YEnM):\n return YEnM.brainbankpost_set.c...
[ "0.77332324", "0.769984", "0.7238217", "0.72090626", "0.6843414", "0.66730464", "0.6601911", "0.6431669", "0.636798", "0.6366632", "0.62622935", "0.62405795", "0.6237971", "0.6237971", "0.6237971", "0.6237971", "0.6237971", "0.6237971", "0.6237971", "0.6237971", "0.62126404",...
0.82311916
0
Return the post type.
def LuEe(YKHO): return str(YKHO.content_object.__class__._meta.verbose_name)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FRul(YKHO):\n return YKHO.heading['type']", "def FRul(YKHO):\n return YKHO.p_type", "def Df3A(YKHO):\n return getattr(YKHO, 'submission_type', '')", "def FRul(YKHO):\n return YKHO.type", "def FRul(YKHO):\n return YKHO.type", "def FRul(YKHO):\n return YKHO.kwargs['type'] if 'type' in...
[ "0.71314913", "0.71133363", "0.7076567", "0.707083", "0.707083", "0.7067413", "0.7058722", "0.70578414", "0.7046435", "0.7046435", "0.7046435", "0.70251566", "0.6975624", "0.6975624", "0.6944852", "0.6940778", "0.6923051", "0.69214624", "0.6921326", "0.6905484", "0.68950367",...
0.8008311
0
Return the categories list.
def LQuW(YKHO): return YKHO.categories.all()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zG33(YKHO):\n return YKHO.categoryList", "def NMoC(YKHO):\n return LeZt", "def LQuW(YKHO):\n pass", "def rNmM():\n return qZuN.objects.all()", "def LQuW(YKHO):\n LeZt = ''\n for YRbF in YKHO.category.all():\n LeZt += YRbF.name + ' '\n return LeZt", "def LQuW(YKHO):\n YK...
[ "0.88202393", "0.86320174", "0.8593722", "0.8509907", "0.8487051", "0.8425284", "0.84132713", "0.8369268", "0.8353671", "0.8288339", "0.8272207", "0.8258869", "0.8183504", "0.8166534", "0.81485164", "0.8132983", "0.8132983", "0.8132983", "0.8132983", "0.8132983", "0.8109642",...
0.8674493
1
Return the number of comments related to current post.
def fUEV(YKHO): return "<a href='#'>%s</a>" % jY1u.objects.filter(content_type=YKHO).count()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FDVk(YKHO):\n return jY1u.objects.filter(post=YKHO).count()", "def hejj(YKHO):\n Aofo = qwW4.objects.select_related().annotate(number_comments=kbH2('comment'))\n return Aofo[0].number_comments", "def FDVk(m8z6: dict) -> int:\n return 1", "def Iz6M(YKHO) -> int:\n return YKHO._get_counters(...
[ "0.83403665", "0.78327334", "0.77984303", "0.7706521", "0.75041497", "0.7218765", "0.71608704", "0.7100877", "0.7051016", "0.7021894", "0.69798255", "0.69230014", "0.679702", "0.664387", "0.6497785", "0.6475147", "0.64562905", "0.62910885", "0.6276383", "0.6267622", "0.626721...
0.735448
5
Returns the centroids for each utterance of a speaker, where the utterance centroid is the speaker centroid without considering this utterance
def w6WP(KTQ3): xdfp = KTQ3.sum(dim=1) xdfp = xdfp.reshape(xdfp.shape[0], 1, xdfp.shape[-1]) pjjj = KTQ3.shape[1] - 1 yHxN = (xdfp - KTQ3) / pjjj return yHxN
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e6ux(Emd4, Q5mJ):\n e6ux = dict(Q5mJ[0].tfidf)\n for A97Q in Q5mJ[1:]:\n for d6pt in A97Q.tfidf:\n e6ux[d6pt] += A97Q.tfidf[d6pt]\n JkuE = float(len(Q5mJ))\n for d6pt in e6ux:\n e6ux[d6pt] = e6ux[d6pt] / JkuE\n return e6ux", "def G0Yq(YKHO):\n hlel = []\n for nqP...
[ "0.64689654", "0.6381722", "0.6365326", "0.632281", "0.63191277", "0.6293706", "0.6289346", "0.62869465", "0.6241998", "0.6221579", "0.62141764", "0.61697733", "0.6161764", "0.6157554", "0.6151849", "0.6139163", "0.6130017", "0.6127278", "0.6104841", "0.6096654", "0.6096654",...
0.77192336
1
Transform label or iterable of labels to array, for use in Index.
def PIOH(Crrw: np.ndarray | Iterable, yDqo: NpDtype | None=None) -> oyIN.ndarray: if isinstance(Crrw, (str, tuple)): Crrw = [Crrw] if not isinstance(Crrw, (list, oyIN.ndarray)): try: Crrw = list(Crrw) except TypeError: Crrw = [Crrw] Crrw = JCsv(Crrw, dtype=yDq...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fIsm(Crrw):\n EaWK = oyIN.zeros((10, len(Crrw)))\n for nWi7, UXqs in enumerate(Crrw):\n EaWK[UXqs][nWi7] = 1\n return EaWK", "def m8Rf(Crrw):\n if type(Crrw[0]) is not str:\n return Crrw\n w1PV = list(set(Crrw))\n return oyIN.array([w1PV.index(mAB6) for mAB6 in Crrw])", "def...
[ "0.8165794", "0.78460383", "0.7804241", "0.7787431", "0.7597053", "0.734155", "0.7050546", "0.6990033", "0.69501364", "0.6933709", "0.67758256", "0.6762345", "0.67501247", "0.66899115", "0.66331303", "0.66133773", "0.6604175", "0.6559157", "0.6529343", "0.6523798", "0.6523798...
0.798516
1
If obj is Iterable but not listlike, consume into list.
def XoI8(YEnM: Iterable[T] | T) -> LRdN[Kt_s] | Kt_s: if isinstance(YEnM, ftIh.Iterable) and (not isinstance(YEnM, ftIh.Sized)): return list(YEnM) YEnM = YWvJ(LRdN, YEnM) return YEnM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MdLO(YEnM):\n if not YEnM:\n return []\n elif isinstance(YEnM, (str, QMSQ, bytes, bytearray)):\n return [YEnM]\n elif hasattr(YEnM, '__iter__') or hasattr(YEnM, '__getitem__'):\n return list(YEnM)\n else:\n return [YEnM]", "def rvC6(YEnM):\n if isinstance(YEnM, type...
[ "0.7136358", "0.71232766", "0.7118364", "0.7031457", "0.69741356", "0.6973991", "0.6893437", "0.68451524", "0.68381536", "0.682715", "0.6807506", "0.6743135", "0.6733116", "0.6731455", "0.6731455", "0.6726284", "0.66894096", "0.6632453", "0.66241145", "0.66174066", "0.6617406...
0.7384767
0
Returns a copy of this stone
def i3ak(YKHO, bgCG='None', QOxj='None', SCLJ='None', DWJ0='None'): if bgCG is 'None': bgCG = YKHO.type if QOxj is 'None': QOxj = YKHO.x_pos if SCLJ is 'None': SCLJ = YKHO.y_pos if DWJ0 is 'None': DWJ0 = YKHO.rotation return u8hO(bgCG, x_pos=QOxj, y_pos=SCLJ, rotation...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jth9(YKHO):\n return YKHO", "def jth9(YKHO):\n return jth9(YKHO)", "def jth9(YKHO):\n return YKHO._copy()", "def jth9(YKHO):\n return YKHO.__copy__()", "def jth9(YKHO):\n return YKHO.__copy__()", "def jth9(YKHO):\n return YKHO.__copy__()", "def jth9(YKHO):\n return YKHO.__copy_...
[ "0.7544843", "0.7437089", "0.7428357", "0.74180996", "0.74180996", "0.74180996", "0.74180996", "0.74054736", "0.74054736", "0.74054736", "0.74054736", "0.74054736", "0.74054736", "0.7369897", "0.7369897", "0.7369897", "0.7369897", "0.7369897", "0.7354591", "0.7302842", "0.730...
0.0
-1
Initializes a tetris game object
def FIMM(YKHO, s_nr=-1): YKHO.width = 10 YKHO.height = 22 YKHO.board = oyIN.zeros((YKHO.height, YKHO.width), dtype=oyIN.float32) YKHO.colors = oyIN.zeros((YKHO.height, YKHO.width), dtype=oyIN.dtype('a7')) YKHO.piece_list = [] YKHO.piece = None YKHO.next_piece = None YKHO.piece_moved = Fa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO._grid = rApN(gHhh.width, gHhh.height, constructor=CTtz)", "def FIMM(YKHO):\n YKHO.tris = []\n YKHO.pts = []\n YKHO.vertex_index = 0", "def FIMM(YKHO):\n YKHO._display = BglY((140, 300))\n YKHO._board = []\n for MKlR in range(0, H2v2):\n YKHO._board.append([])\...
[ "0.72107685", "0.70690346", "0.69954777", "0.69909585", "0.69587183", "0.6952311", "0.69420713", "0.69169337", "0.6910683", "0.6906067", "0.69022095", "0.68849003", "0.68624264", "0.68461615", "0.6839277", "0.68309534", "0.6830637", "0.68047166", "0.6772929", "0.6765474", "0....
0.0
-1
Updates the game by {fps} times a second
def QdZT(YKHO, JRYC): if YKHO.total_time >= YKHO.time_limit > -1: YKHO.game_over = True if YKHO.time_elapsed >= 500 and (not YKHO.game_over): YKHO.time_elapsed = 0 YKHO.piece_moved = True if not YKHO.check_move(0, 1): YKHO.game_over = YKHO.apply_piece() if...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QdZT(YKHO):\n YKHO.frame_count += 1\n if YKHO.frame_count == kDnD:\n YKHO.round_time += 1\n YKHO.frame_count = 0\n YKHO.check_collisions()", "def QdZT(YKHO):\n YKHO.clock.tick(PtXs.FPS)\n YKHO.state.update()\n YKHO.Pump()", "def QdZT(YKHO):\n wzkt = ITS7.time()\n yk4i ...
[ "0.7741407", "0.76150006", "0.7579803", "0.7564014", "0.73008806", "0.72566676", "0.7235304", "0.71905893", "0.71054107", "0.705421", "0.70357203", "0.7019496", "0.70079386", "0.6978765", "0.6950053", "0.6950053", "0.69327545", "0.6930121", "0.69296104", "0.6922612", "0.69045...
0.0
-1
Places all blocks of the piece onto the board
def xytM(YKHO, mrj1=None, iBIi=None, UBpA=None, KXCN=True): if mrj1 is None: mrj1 = YKHO.piece if iBIi is None: iBIi = YKHO.board if UBpA is None and KXCN: UBpA = YKHO.colors YgOb = False YvDS = mrj1.get_piece() for YRbF in range(len(YvDS)): for r845 in range(len(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QFYS(YKHO):\n for WKvO in range(8):\n for LVAh in range(8):\n if YKHO.__board[WKvO][LVAh] != '--':\n LNo8 = a9eO.image.load('./images/' + YKHO.__board[WKvO][LVAh] + '.png').convert_alpha()\n mawX = LNo8.get_rect()\n mawX.center = ((2 * LVAh + 1)...
[ "0.73822117", "0.69281524", "0.69094455", "0.68727463", "0.6846245", "0.675611", "0.6738875", "0.67026895", "0.66939986", "0.6683533", "0.6648147", "0.66395", "0.6625968", "0.6611523", "0.66023314", "0.64992815", "0.649719", "0.648551", "0.647139", "0.6461867", "0.6457875", ...
0.0
-1
Retrieves the connection to Secret Manager.
def OQI9(YKHO) -> HFzJ: return YKHO.client
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DnPx(YKHO):\n return YKHO.conn", "def DnPx(YKHO):\n return YKHO.__conn", "def lxP0(YKHO):\n pass", "def lxP0(YKHO):\n pass", "def lxP0(YKHO):\n pass", "def lxP0(YKHO):\n return YKHO._connection", "def lxP0(YKHO):\n NtEF, jTXt = YKHO.get_service_account()\n XDpN = YKHO.get_mg...
[ "0.7149789", "0.70030653", "0.6921843", "0.68940914", "0.68940914", "0.68442494", "0.683258", "0.6828253", "0.6804747", "0.6770263", "0.6761708", "0.67255974", "0.6664478", "0.6662582", "0.6635785", "0.6615328", "0.6592914", "0.65568036", "0.6502749", "0.64821196", "0.6476275...
0.78812927
0
Reset all torch.nn.Linear layers.
def H1s1(C3ST): def SiRx(r8hN): if isinstance(r8hN, ht2j.nn.Linear): r8hN.reset_parameters() C3ST.apply(SiRx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SiRx(YKHO):\n for gEmA in YKHO.layers:\n gEmA.reset()", "def sj_U(YKHO):\n for xqoZ in YKHO.parameters():\n xqoZ.requires_grad = False\n YKHO.linear = U78l.Linear(YKHO.num_lstm_f, YKHO.num_labels + 1)", "def SiRx(YKHO):\n for gEmA in YKHO.needs_reset:\n gEmA.reset()", "de...
[ "0.72475594", "0.7029911", "0.69800806", "0.6887369", "0.66925937", "0.66718435", "0.66488427", "0.6620376", "0.6620376", "0.6610238", "0.6599926", "0.6523178", "0.6518638", "0.6509778", "0.6503007", "0.6503007", "0.6478899", "0.6461054", "0.6461054", "0.646075", "0.64575195"...
0.63610226
28
Compute the absolute error on the variance estimator for a shot noise process. MSE(sigma^2) = ...
def gLW8(k0lF, Cwt5, KMvS, fbw3): Pq6G = Cwt5 * Cwt5 Yo9A = KMvS * KMvS UBmy = fbw3 * fbw3 ulN4 = 2.0 / (fbw3 * Cwt5) + (-5.0 + 8.0 * oyIN.exp(-fbw3 * Cwt5) + oyIN.exp(-2.0 * Cwt5 * fbw3)) / (UBmy * Pq6G) iHPZ = 6.0 / (fbw3 * Cwt5) + (-27.0 + 3.0 * oyIN.exp(-2.0 * Cwt5 * fbw3)) / (UBmy * Pq6G) u...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qvVm(YKHO):\n return YKHO.sigma_n", "def qvVm(YKHO):\n return YKHO.sigma_n", "def I8JS(YKHO):\n return (epAf.exp(YKHO.sigma ** 2) - 1.0) * epAf.exp(2.0 * YKHO.mu + YKHO.sigma ** 2)", "def I8JS(YKHO):\n yGTL = YKHO.expected()\n return YKHO.moment(2) - yGTL * yGTL", "def I8JS(YKHO):\n r...
[ "0.73829937", "0.73829937", "0.7248369", "0.7205891", "0.6859046", "0.6856786", "0.6741753", "0.6741753", "0.67204314", "0.6676863", "0.66619265", "0.6582391", "0.657102", "0.65377635", "0.65362304", "0.65274477", "0.65202445", "0.64960456", "0.6487824", "0.64702904", "0.6450...
0.0
-1
Returns the string representation of the model
def gTzM(YKHO): import simplejson as qQXR if jKi7.PY2: import sys U3hF(sys) sys.setdefaultencoding('utf-8') return qQXR.dumps(yInN(YKHO), ensure_ascii=False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.864179", "0.85105866", "0.7853924", "0.77452", "0.7712474", "0.76976854", "0.76601666", "0.7638181", "0.7621996", "0.76074743", "0.76074743", "0.76074743", "0.7607432", "0.7599404", "0.75858897", "0.7582702", "0.75715727", "0.75683635", "0.7539386", "0.7539386", "0.7528709...
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 return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.0
-1
Checks if the point (x,y) is outside the image area
def SW0z(YKHO, WKvO, LVAh): cviu = YKHO.canvas.coords(YKHO.container) if cviu[0] < WKvO < cviu[2] and cviu[1] < LVAh < cviu[3]: return False else: return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SW0z(YKHO, WKvO, LVAh):\n cviu = YKHO.canvas.coords(YKHO.container)\n if cviu[0] < WKvO < cviu[2] and cviu[1] < LVAh < cviu[3]:\n return False\n else:\n return True", "def _2zL(WKvO, LVAh, Xn71):\n if WKvO < 0 or LVAh < 0:\n return False\n if WKvO >= Xn71.width:\n r...
[ "0.8740917", "0.76078653", "0.7587616", "0.75367963", "0.75277627", "0.74181354", "0.7401098", "0.7389965", "0.7362809", "0.73558015", "0.7344994", "0.73427504", "0.7335643", "0.7300744", "0.7275318", "0.7217642", "0.7206126", "0.71478087", "0.71294814", "0.7087342", "0.70654...
0.87405413
1
returns one row of zeros of width "width"... You might use this in your createBoard(width, height) function
def wPqH(TVTK): rdlD = [] for fvDH in range(TVTK): rdlD += [0] return rdlD
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wPqH(TVTK):\n rdlD = []\n for fvDH in range(TVTK):\n rdlD += [0]\n return rdlD", "def wPqH(TVTK):\n rdlD = []\n for fvDH in range(TVTK):\n rdlD += [0]\n return rdlD", "def wPqH(TVTK):\n rdlD = []\n for fvDH in range(TVTK):\n rdlD += [0]\n return rdlD", "def...
[ "0.7589605", "0.7589605", "0.7589605", "0.7589605", "0.7589605", "0.7504416", "0.7334084", "0.73039955", "0.7262536", "0.7250526", "0.7244062", "0.7216497", "0.72112477", "0.7191228", "0.7100611", "0.70778465", "0.70733273", "0.70733273", "0.70733273", "0.70733273", "0.707332...
0.76303476
0
returns a 2d array with "height" rows and "width" cols
def fbIl(TVTK, H2v2): k0lF = [] for rdlD in range(H2v2): k0lF += [wPqH(TVTK)] return k0lF
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HVJK(BWXx, H2v2, TVTK):\n ezWE = []\n for YRbF in range(0, H2v2):\n ezWE.append([None] * TVTK)\n return ezWE", "def Lm0U(TVTK, H2v2):\n return [[0 for WKvO in range(TVTK)] for LVAh in range(H2v2)]", "def NMoC(YKHO):\n return oyIN.array((YKHO.width, YKHO.height))", "def kt1c(TVTK, H2...
[ "0.7858013", "0.7168413", "0.70767313", "0.6826709", "0.68017304", "0.67254657", "0.65653193", "0.65625966", "0.6559744", "0.65530974", "0.6485248", "0.6467519", "0.64635634", "0.6455709", "0.64085263", "0.63957024", "0.63948554", "0.6275707", "0.62348884", "0.6214996", "0.61...
0.5963747
53
creates an empty board and then modifies it so that it has a diagonal strip of "on" cells.
def ppuh(TVTK, H2v2): k0lF = fbIl(TVTK, H2v2) for rdlD in range(H2v2): for fvDH in range(TVTK): if rdlD == fvDH: k0lF[rdlD][fvDH] = 1 else: k0lF[rdlD][fvDH] = 0 return k0lF
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def A6EF(YKHO):\n YKHO.board = oyIN.full(pow(YKHO.size + 2, 2), pqZk, dtype='U')\n for rdlD in range(1, YKHO.size + 1):\n yKcO = YKHO.row_start(rdlD)\n YKHO.board[yKcO:yKcO + YKHO.size] = KAvf\n YKHO.board[44], YKHO.board[55] = (eJVO, eJVO)\n YKHO.board[45], YKHO.board[54] = (XDQs, XDQs)"...
[ "0.7450776", "0.73298645", "0.72116685", "0.71972156", "0.7140477", "0.7082982", "0.7082982", "0.7082982", "0.70732594", "0.7047991", "0.70284885", "0.7018533", "0.7002258", "0.6989902", "0.69877833", "0.6980732", "0.69671565", "0.69593215", "0.69588673", "0.69587195", "0.695...
0.6607365
55
makes a copy of A and then advanced one generation of Conway's game of life within the inner cells of that copy. The outer edge always stays 0.
def HQsa(k0lF): JiL_ = fbIl(len(k0lF[0]), len(k0lF)) for rdlD in range(len(k0lF)): for fvDH in range(len(k0lF[0])): if rdlD == 0 or rdlD == len(k0lF) - 1 or fvDH == 0 or (fvDH == len(k0lF[0]) - 1): k0lF[rdlD][fvDH] = 0 elif OHjA(rdlD, fvDH, k0lF) < 2: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HQsa(k0lF):\n JiL_ = jth9(k0lF)\n for rdlD in range(1, len(k0lF) - 1):\n for fvDH in range(1, len(k0lF[rdlD]) - 1):\n if OHjA(rdlD, fvDH, k0lF) < 2 or OHjA(rdlD, fvDH, k0lF) > 3:\n JiL_[rdlD][fvDH] = 0\n elif k0lF[rdlD][fvDH] == 0 and OHjA(rdlD, fvDH, k0lF) == ...
[ "0.7232903", "0.7022858", "0.5891393", "0.5877002", "0.5865297", "0.5854642", "0.5846953", "0.58209485", "0.58127326", "0.5801452", "0.5781352", "0.5742241", "0.57233393", "0.5696867", "0.5683931", "0.5682791", "0.56508327", "0.56498754", "0.56168354", "0.559347", "0.558713",...
0.71736294
1
Defines a control system that is 2 dimensional, has no drift, and has only Pauli X control
def daYR(): yZUO = VNqG((2, 2)) Otx4 = -1j * mM0K * MKlR.pauliX() return XX_3(yZUO, Otx4)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vj1T(NX2e, wYfG):\n o4D3 = mM0K.FieldVariable(wYfG + '_1_ctrl')\n ajwV = mM0K.FieldVariable(wYfG + '_2_ctrl')\n yZNW = mM0K.FieldVariable(NX2e + '_2_visu')\n VNcT = mM0K.FieldVariable(wYfG + '_3_ctrl')(0)\n fZrf = mM0K.FieldVariable(wYfG + '_4_ctrl')(0)\n bRXj = o4D3.derive(spat_order=1)\n ...
[ "0.6951607", "0.64650255", "0.6273056", "0.61258215", "0.6019981", "0.6018138", "0.6008087", "0.5989532", "0.5977916", "0.5886117", "0.5864725", "0.5847462", "0.581971", "0.5814209", "0.58041877", "0.579633", "0.57840955", "0.5752199", "0.5713523", "0.5713337", "0.571071", ...
0.6093367
4
Freezes the state of a session into a pruned computation graph. Creates a new computation graph where variable nodes are replaced by constants taking their current value in the session. The new graph will be pruned so subgraphs that are not necessary to compute the requested outputs are removed. session The TensorFlow ...
def _w3s(cuiw, j1Hi=None, OnZF=None, lUZN=True): from tensorflow.python.framework.graph_util import convert_variables_to_constants pNZh = cuiw.graph with pNZh.as_default(): hq9i = list(set((Ty9i.op.name for Ty9i in ZylS.global_variables())).difference(j1Hi or [])) OnZF = OnZF or [] O...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _w3s(cuiw, j1Hi=None, OnZF=None, lUZN=True):\n from tensorflow.python.framework.graph_util import convert_variables_to_constants\n pNZh = cuiw.graph\n with pNZh.as_default():\n hq9i = list(set((Ty9i.op.name for Ty9i in ZylS.global_variables())).difference(j1Hi or []))\n OnZF = OnZF or []...
[ "0.835016", "0.835016", "0.83421266", "0.83317864", "0.83244437", "0.8319495", "0.8310045", "0.8310045", "0.8310045", "0.8310045", "0.83093417", "0.830193", "0.8294381", "0.824303", "0.77236307", "0.63691163", "0.6345557", "0.62952274", "0.6149433", "0.61387205", "0.5943203",...
0.8314959
6
Returns the length of the shortest word in a string of words.
def hYCT(KCHu): V22M = KCHu.split() ClOJ = dict() for GIN8 in V22M: ClOJ[GIN8] = len(GIN8) return min(ClOJ.values())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oIH7(kcsq):\n if not kcsq:\n return None\n kcsq.sort(key=len)\n return kcsq[0]", "def TgAG(KCHu):\n return min((len(WKvO) for WKvO in KCHu.split()))", "def E66W(V22M):\n return sorted(V22M, key=len, reverse=True)[0]", "def iTjI(vIwR: str) -> int:\n return len(sTmd.largest_word(vI...
[ "0.7868558", "0.7629357", "0.7000339", "0.697023", "0.67668444", "0.67555535", "0.6734852", "0.668843", "0.6672601", "0.6644325", "0.66180414", "0.66120875", "0.6608726", "0.66009784", "0.65746564", "0.65674937", "0.6538654", "0.65222716", "0.6507462", "0.6392893", "0.6387234...
0.8305997
0
return buildconfiguration with name or None
def egFI(YKHO, mWFP, jaEv=False): if YKHO.pbx_buildConfigurationList is None: if not jaEv: return None else: YKHO.pbx_buildConfigurationList = YKHO.project().new_object(u'XCConfigurationList') return YKHO.pbx_buildConfigurationList.getconfig(mWFP, jaEv)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MfXp(id=None, mWFP=None):\n hGN5 = MfXp(id, mWFP)\n if hGN5:\n return BfDw.format_json(hGN5)", "def eMhT(YKHO, mWFP: str) -> nC76:\n try:\n return YKHO.configurations[mWFP]\n except KeyError:\n raise KpxQ(f\"Configuration '{mWFP}' has not been defined\")", "def tgzD(YKHO, m...
[ "0.67605853", "0.66657275", "0.65969527", "0.6589858", "0.64647526", "0.64029324", "0.63795066", "0.6348064", "0.63009363", "0.62435895", "0.6235671", "0.6192749", "0.61820114", "0.6150283", "0.61483955", "0.6076967", "0.6058966", "0.6045365", "0.602507", "0.6023682", "0.6019...
0.6391865
6
Draw the matches list in an image This method uses the OpenCV arrowedLine_ method to draw the matches in an image. We can pass it a list of Matcher objects (matches parameter) or two Numpy ndarrays (dimension nx2) representing the KeyPoints in the first and second image.
def CAPh(YKHO, VXjJ, hHld=None, QHil=None, u2tI=None, qfpW='blue'): lXH0 = dict(blue=(255, 0, 0), green=(0, 255, 0), red=(0, 0, 255)) if hHld is not None: for YRbF in range(len(hHld)): duiE = hHld[YRbF][0].trainIdx zGyM = hHld[YRbF][0].queryIdx Se9F = YKHO.kp2[duiE].p...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CAPh(kauQ, QHil, _YGI, u2tI, hHld, qfpW=None):\n if len(kauQ.shape) == 3:\n EZd9 = (max(kauQ.shape[0], _YGI.shape[0]), kauQ.shape[1] + _YGI.shape[1], kauQ.shape[2])\n elif len(kauQ.shape) == 2:\n EZd9 = (max(kauQ.shape[0], _YGI.shape[0]), kauQ.shape[1] + _YGI.shape[1])\n xiPz = oyIN.zero...
[ "0.79418385", "0.7841836", "0.77896905", "0.7775172", "0.7757819", "0.77541435", "0.7633423", "0.76254004", "0.76017815", "0.7585907", "0.75502264", "0.744256", "0.7418243", "0.7418243", "0.7417697", "0.7396026", "0.69722927", "0.6908169", "0.68887395", "0.68162906", "0.67618...
0.82976604
0
Converts a float tuple into an integers tuple
def Vyh9(YKHO, bIl7): FeiC = [0, 0] if bIl7 is not None: for YRbF in range(0, len(bIl7)): FeiC[YRbF] = int(bIl7[YRbF]) else: return bIl7 return FeiC
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kdg6(Xf84: tuple):\n return (int(Xf84[0]), int(Xf84[1]))", "def HJ8k(DumB):\n if isinstance(DumB, str):\n for KCHu in ' ()[]':\n DumB = DumB.replace(KCHu, '')\n if DumB.strip():\n o4D3, ajwV, si3g, skBL = DumB.split(',')\n yvT9 = ((int(float(o4D3)), int(fl...
[ "0.7286006", "0.68475324", "0.6747109", "0.67441154", "0.6661677", "0.6609238", "0.6591143", "0.65862864", "0.6554764", "0.6487343", "0.6469685", "0.6388239", "0.6384692", "0.6366827", "0.63135755", "0.6309759", "0.6294359", "0.62803876", "0.6262805", "0.62304837", "0.6208364...
0.76905745
0
A kalasiris.specialpixels.SpecialPixels named tuple is returned which describes the values in this LUT. These are slightly different than the ISIS special pixel values, and ISIS special pixels values can't be used to deal with values that are read from these EDRs, however, those values are provided for your use by this...
def t5F7(YKHO): if YKHO.table: return NDzd.specialpixels.SpecialPixels(Min=1, Null=YKHO.unlut(255), Lrs=0, Lis=0, His=YKHO.unlut(254), Hrs=YKHO.unlut(255), Max=YKHO.lut[-3][1]) else: return NDzd.specialpixels.SpecialPixels(Min=1, Null=65535, Lrs=0, Lis=0, His=16383, Hrs=65535, Max=16382)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dHfu(XtFw):\n dg7v = XtFw['tile_gradient_st']\n iYf1 = XtFw['tile_gradient_end']\n if 'mdi:icon' in XtFw:\n _G4g = XtFw['mdi:icon']\n S0MI.debug('MDI Icon detected: {} -> {}'.format(XtFw['name'], _G4g))\n else:\n _G4g = XtFw['icon']\n S0MI.warning('MDI Icon not detected,...
[ "0.60515827", "0.5546315", "0.5530035", "0.546747", "0.5423895", "0.53901553", "0.53858864", "0.53449494", "0.533566", "0.5323332", "0.5297897", "0.52929646", "0.52845085", "0.5284305", "0.52841854", "0.5222008", "0.5194965", "0.5183127", "0.517094", "0.5170905", "0.5170825",...
0.7094239
0
Run a test pipeline for a single connector. A visual DAG can be found on the README.md file of the pipelines modules.
async def run_connector_test_pipeline(QpfX: ConnectorContext, hZqO: anyio.Semaphore) -> rq_V: async with hZqO: async with QpfX: async with ZRca.create_task_group() as HReW: xCjU = [HReW.soonify(Nt0J)(QpfX), HReW.soonify(V4r6)(QpfX)] if not QpfX.code_tests_only: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BEcX(YKHO):\n jBkE = 'kubeflow-e2e-test-{}'.format(YKHO._random_id())\n gmUl = Hy7s.path.join(YKHO._test_output_dir, jBkE)\n nPIK = zXYk(jBkE, gmUl, YKHO._data_root, YKHO._taxi_module_file, YKHO._container_image)\n YKHO._compile_and_run_pipeline(jBkE, nPIK)", "def LQnv():\n aOxl = Hy7s.path.jo...
[ "0.6940309", "0.6804939", "0.65486294", "0.640371", "0.633206", "0.62983495", "0.6289148", "0.62873423", "0.62731045", "0.6254635", "0.6229648", "0.6223831", "0.6196835", "0.6167909", "0.61306566", "0.6123809", "0.61210495", "0.61105174", "0.6097973", "0.6035622", "0.599351",...
0.62144655
12
Return intersectionoverunion (Jaccard index) of boxes. Both sets of boxes are expected to be in (x1, y1, x2, y2) format.
def WHLW(knvf, IkxF): def ab__(FlUN): return (FlUN[2] - FlUN[0]) * (FlUN[3] - FlUN[1]) bzU2 = ab__(knvf.t()) Eq1k = ab__(IkxF.t()) C7_8 = (ht2j.min(knvf[:, None, 2:], IkxF[:, 2:]) - ht2j.max(knvf[:, None, :2], IkxF[:, :2])).clamp(0).prod(2) return C7_8 / (bzU2[:, None] + Eq1k - C7_8)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Nsm1(sOrw, sxK1, _0VL=[]):\n YrCQ = (sOrw[2] - sOrw[0]) * (sOrw[3] - sOrw[1])\n YrSr = (sxK1[2] - sxK1[0]) * (sxK1[3] - sxK1[1])\n FJ23 = max(sOrw[0], sxK1[0])\n cpky = max(sOrw[1], sxK1[1])\n lCRk = min(sOrw[2], sxK1[2])\n w871 = min(sOrw[3], sxK1[3])\n iQin = (lCRk - FJ23) * (w871 - cpky...
[ "0.7125133", "0.70563513", "0.7046499", "0.7024699", "0.6951717", "0.69440305", "0.6924373", "0.6863863", "0.675549", "0.6710183", "0.66310245", "0.65879804", "0.65466243", "0.65369743", "0.6532714", "0.6518593", "0.65075594", "0.6502453", "0.648509", "0.6480985", "0.64808863...
0.0
-1
Decode and validate a JSON Web token (JWT).
def _oLC(yTVD, dD1L, E91_, PnFi, zTYd, ooOj=None): try: upyN = DvJO.decode(yTVD, dD1L, algorithm=E91_, audience=PnFi) except (DvJO.exceptions.InvalidTokenError, DvJO.exceptions.InvalidKeyError) as e: raise bql2('JWT validation error: {}'.format(tTpl)) try: wzkt = int(ITS7.time()) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CVVO(eOtH, DXni, E91_):\n nPrm = DvJO.decode(eOtH, DXni, algorithm=E91_)\n if 'jti' not in nPrm or not isinstance(nPrm['jti'], jKi7.string_types):\n raise lK2m('Missing or invalid claim: jti')\n if 'identity' not in nPrm:\n raise lK2m('Missing claim: identity')\n if 'type' not in nPrm...
[ "0.7667605", "0.76669705", "0.7633639", "0.75628877", "0.7468006", "0.7450178", "0.7308723", "0.72948354", "0.728825", "0.7266243", "0.72636163", "0.7259486", "0.72560024", "0.725443", "0.724986", "0.72305197", "0.71944207", "0.71941215", "0.71769065", "0.7156904", "0.7146652...
0.0
-1
Should raise error if input symbols are not a strict superset of tape symbols.
def q8A1(YKHO) -> None: with YKHO.assertRaises(Bx6I.MissingSymbolError): McPX(states={'q0', 'q1', 'q2'}, input_symbols={'0'}, tape_symbols={'0'}, transitions={'q0': {'0': ('q1', '0', 'R')}, 'q1': {'0': ('q2', '0', 'L')}}, initial_state='q0', blank_symbol='.', final_states={'q2'})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ugs_(YKHO):\n pass", "def s19z(YKHO) -> None:\n if YKHO.blank_symbol not in YKHO.tape_symbols:\n raise Bx6I.InvalidSymbolError('blank symbol {} is not a tape symbol'.format(YKHO.blank_symbol))", "def psxW(YKHO, o61b):\n XP5J = _g9D.Polynomial(YKHO.c, symbol=o61b)\n SjMt(XP5J.symbol, o61b...
[ "0.6878193", "0.6685234", "0.6661288", "0.64351887", "0.6399629", "0.63798153", "0.6317723", "0.6305991", "0.62921727", "0.628373", "0.62554467", "0.619336", "0.61676526", "0.6155616", "0.6133921", "0.6129687", "0.6084302", "0.6059392", "0.60107327", "0.6007613", "0.5992517",...
0.696088
0
Should raise InvalidStateError even for nonstring final states.
def Gt51(YKHO) -> None: with YKHO.assertRaises(Bx6I.InvalidStateError): McPX(states={'q0', 'q1', 'q2'}, input_symbols={'0'}, tape_symbols={'0', '.'}, transitions={'q0': {'0': ('q1', '0', 'R')}, 'q1': {'0': ('q0', '0', 'L')}}, initial_state='q0', blank_symbol='.', final_states={2})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Gt51(YKHO):\n with TpAC.assert_raises(Bx6I.InvalidStateError):\n YKHO.nfa.final_states = {3}\n YKHO.nfa.validate()", "def Gt51(YKHO) -> None:\n with YKHO.assertRaises(Bx6I.InvalidStateError):\n LwtM(states={'q0'}, input_symbols={'a'}, transitions={'q0': {'a': 'q1'}}, initial_state=...
[ "0.8485051", "0.7949643", "0.7884187", "0.7703663", "0.7695929", "0.7528591", "0.75127554", "0.7508711", "0.74725914", "0.73698574", "0.7279048", "0.7262649", "0.72490025", "0.7238436", "0.7113457", "0.7106397", "0.7011633", "0.69853276", "0.6956961", "0.6924688", "0.68874764...
0.80606484
1
Should raise error if an invalid symbol is read.
def mJzQ(YKHO) -> None: with YKHO.assertRaises(Bx6I.RejectionException): YKHO.dtm1.read_input('02')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mJzQ(YKHO):\n with TpAC.assert_raises(Bx6I.RejectionException):\n YKHO.dfa.read_input('01112')", "def mJzQ(YKHO) -> None:\n with YKHO.assertRaises(Bx6I.RejectionException):\n YKHO.dfa.read_input('01112')", "def mJzQ(YKHO):\n with TpAC.assert_raises(Bx6I.RejectionException):\n ...
[ "0.80013424", "0.78276235", "0.7643031", "0.7111228", "0.7028784", "0.68412346", "0.68219525", "0.6673925", "0.6646548", "0.6623023", "0.6565586", "0.65347546", "0.65068537", "0.64830923", "0.64246476", "0.63033605", "0.63018703", "0.6270773", "0.6267924", "0.62524784", "0.62...
0.7618972
3
Sets the id of this MessageObject.
def id(YKHO, id): if id is None: raise ValueError('Invalid value for `id`, must not be `None`') YKHO._id = id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V_9M(YKHO, id):\n YKHO._id = id", "def V_9M(YKHO, id):\n YKHO.id = id", "def V_9M(YKHO, id):\n YKHO.id = id", "def V_9M(YKHO, id):\n YKHO.id = id", "def V_9M(YKHO, id):\n YKHO.id = id", "def V_9M(YKHO, id):\n YKHO.id = id", "def psjw(YKHO, id):\n YKHO._id = id", "def ekm0(YKH...
[ "0.8101027", "0.79795295", "0.79795295", "0.79558223", "0.79383826", "0.79383826", "0.79383045", "0.7885311", "0.78611434", "0.784828", "0.7685361", "0.76701933", "0.76701933", "0.76701933", "0.76701933", "0.7668768", "0.76407653", "0.76407653", "0.76407653", "0.76407653", "0...
0.0
-1
Returns the string representation of the model
def gTzM(YKHO): return CgYo.pformat(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
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 return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.0
-1
Overriding default update Check for requested user is admin or owner
def QdZT(YKHO, KAOR, vGfb): KAOR.group = vGfb.get('group', KAOR.group) KAOR.user = vGfb.get('user', KAOR.user) KAOR.role_type = vGfb.get('role_type', KAOR.role_type) KAOR.display_name = vGfb.get('display_name', KAOR.display_name) KAOR.save() return KAOR
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VEJr(id, QTiD):\n return id == QTiD or uJBC(QTiD)", "def Ck5B(YKHO, QePW, CBIr, *qIxc, **B2fa):\n return QePW.user.is_authenticated and CBIr.pk == QePW.user.pk", "def PFbn(YKHO, QePW, YEnM=None):\n PFbn = super().has_change_permission(QePW, YEnM)\n if QePW.user.is_superuser or not YEnM:\n ...
[ "0.7204011", "0.70059377", "0.6986763", "0.69507265", "0.68509835", "0.6803869", "0.6798176", "0.6784378", "0.66863996", "0.66863996", "0.66863996", "0.66863996", "0.6648719", "0.6610459", "0.6603406", "0.65802056", "0.6571893", "0.6557683", "0.65452826", "0.652384", "0.65220...
0.0
-1
Test the update_lights function when no lights are found.
async def test_no_lights_or_groups(ajET: HomeAssistant, oLtQ) -> None: oLtQ.mock_light_responses.append({}) oLtQ.mock_group_responses.append({}) await zM8Z(ajET, oLtQ) assert len(oLtQ.mock_requests) == 2 assert len(ajET.states.async_all()) == 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RyI_():\n if not YKHO.units['light']['all']:\n return 1\n else:\n return 0", "def ToZw() -> None:\n eV_n = YFAJ(I33c, NtEF)\n agxD = eV_n.get_light_by_name('badName')\n if agxD is None:\n print(\"Couldn't find a light with that name\")\n agxD = eV_n.get_light_by_name('U...
[ "0.7426467", "0.6662837", "0.66567886", "0.6649201", "0.66464096", "0.65068316", "0.64779454", "0.64515716", "0.6447231", "0.6424182", "0.632603", "0.631084", "0.625564", "0.62261164", "0.6217942", "0.61356443", "0.6134837", "0.60803896", "0.60722494", "0.6071289", "0.6053602...
0.6146117
15
Test bridge marked as not authorized if unauthorized during update.
async def test_update_unauthorized(ajET: HomeAssistant, oLtQ) -> None: oLtQ.api.lights.update = FM6F(side_effect=NJh7.Unauthorized) await zM8Z(ajET, oLtQ) assert len(oLtQ.mock_requests) == 0 assert len(ajET.states.async_all()) == 0 assert len(oLtQ.handle_unauthorized_error.mock_calls) == 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Kks6(YKHO):\n qv1X = YKHO.client.get(tpr7)\n YKHO.assertEqual(qv1X.status_code, jGRS.HTTP_401_UNAUTHORIZED)", "def Ed5P(YKHO):\n YKHO.client.login(username=YKHO.non_staff_usr, password='test')\n _hkX = YKHO.client.get(YKHO.url_locked)\n assert _hkX.status_code == 403", "def RYaz(YKHO):\n ...
[ "0.6299127", "0.6264995", "0.6146319", "0.61377776", "0.606694", "0.60546756", "0.6006716", "0.6003987", "0.5986946", "0.5985223", "0.59642303", "0.5962381", "0.5959069", "0.59471023", "0.59465283", "0.5932533", "0.59250283", "0.59187025", "0.59067", "0.5902462", "0.5895635",...
0.698699
0
Creates an array of references to objects of the given length
def FIMM(YKHO, u54L: int) -> None: if u54L <= 0: raise ValueError('Array length should be larger than 0.') YKHO.array = (u54L * Wzky)() YKHO.array[:] = [None for bGrB in range(u54L)]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, u54L):\n YKHO.container = []\n YKHO.length = u54L\n YKHO.count = 0", "def FIMM(YKHO):\n YKHO.array = [[] for YRbF in range(gg4D)]", "def o1IL(QTBn, KqSu, zNig):\n BVAy = HA98._bound_array_size(QTBn, zNig)\n return yfFZ(heap_alloc_id=QTBn.javavm_memory.get_new_uuid(), element_ty...
[ "0.64070565", "0.6024514", "0.58591795", "0.58031315", "0.57886136", "0.57347435", "0.5717153", "0.5680875", "0.5680875", "0.5645345", "0.56360555", "0.5634216", "0.56236035", "0.5618103", "0.56153864", "0.559425", "0.55867046", "0.556091", "0.55603486", "0.555094", "0.554199...
0.6047039
1
Get the item source path.
def vclH(pmON: str, C0vU: Optional[str], yAFz: str, zDRZ: str) -> str: if C0vU is None: fcvf = Hy7s.path.join(pmON, yAFz, zDRZ) else: fcvf = Hy7s.path.join(pmON, C0vU, yAFz, zDRZ) if not Hy7s.path.exists(fcvf): raise k8wH.ClickException('Item "{}" not found in source folder.'.format(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HHHA(YKHO):\n return YKHO._sourcePath", "def HHHA(YKHO):\n if YKHO.sourceType == 'file':\n return YKHO.sourceFile\n elif YKHO.sourceType == 'directory':\n return YKHO.sourceDirectory\n else:\n return None", "def wVsX(YKHO):\n return YKHO.source", "def wVsX(YKHO):\n ...
[ "0.7709369", "0.7475783", "0.7336113", "0.7336113", "0.7291809", "0.72079325", "0.719668", "0.7176362", "0.7157339", "0.7157339", "0.71421325", "0.711845", "0.71029395", "0.71029395", "0.71029395", "0.71029395", "0.7086651", "0.70230055", "0.70223045", "0.7018924", "0.6955489...
0.69839126
20
Get the item target path.
def xJgO(pmON: str, C0vU: str, yAFz: str, zDRZ: str) -> str: lQDD = Hy7s.path.join(pmON, C0vU, yAFz, zDRZ) if Hy7s.path.exists(lQDD): raise k8wH.ClickException('Item "{}" already exists in target folder.'.format(zDRZ)) return lQDD
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lQDD(YKHO) -> str:\n return qe4Y.get(YKHO, 'target_path')", "def lQDD(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'target_path')", "def lQDD(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'target_path')", "def pmON():\n return WeOw('path of current item')", "def j1XE(YKHO):\n re...
[ "0.7792587", "0.7520473", "0.72171223", "0.7041334", "0.68707335", "0.6736931", "0.67110354", "0.6703752", "0.6633751", "0.66084564", "0.6591132", "0.6588894", "0.6588894", "0.6588894", "0.65883976", "0.65883976", "0.65883976", "0.65883976", "0.65883976", "0.65883976", "0.658...
0.6511896
28
Return the length of this object, if it is about to be saved some where as string.
def szAg(YKHO): return len(YKHO.compact)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def szAg(YKHO):\n return len(str(YKHO))", "def szAg(YKHO):\n return 1", "def szAg(YKHO):\n return YKHO.length()", "def szAg(YKHO):\n return YKHO._meta.length", "def szAg(YKHO):\n return YKHO.get_length()", "def szAg(YKHO) -> int:\n return len(YKHO.name_to_parsed)", "def szAg(YKHO):\n ...
[ "0.7807741", "0.7741218", "0.76206243", "0.7594498", "0.7594139", "0.75910854", "0.75897956", "0.75690067", "0.7478489", "0.7450904", "0.7450904", "0.7450904", "0.7450904", "0.7450904", "0.7450904", "0.7450904", "0.7450904", "0.74428356", "0.7439464", "0.7428307", "0.7428307"...
0.0
-1
Return string representation of this object.
def zAg0(YKHO): gKPu = YKHO.vehicle_type ycWm = (OgNW.DOMESTIC_MOTORCYCLE_UNDER_50CC, OgNW.DOMESTIC_MOTORCYCLE_OVER_175CC, OgNW.DOMESTIC_MOTORCYCLE_50_TO_175CC) if len(YKHO.order) <= 4: T4Wy = YKHO.order else: T4Wy = '.'.join(cRcw(YKHO.order)) if gKPu in ycWm: return f'{YKHO....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yLCI(YKHO):\n return YKHO.__str__()", "def yLCI(YKHO):\n return str(YKHO)", "def yLCI(YKHO):\n return str(YKHO)", "def yLCI(YKHO):\n return YKHO.__str__()", "def Napc(YKHO):\n return repr(YKHO)", "def yLCI(YKHO) -> str:\n return str(YKHO)", "def yLCI(YKHO) -> str:\n return YKHO...
[ "0.8871473", "0.8861711", "0.8861711", "0.88353515", "0.87842596", "0.87692374", "0.87361234", "0.87110335", "0.8700502", "0.86909163", "0.8648531", "0.8648531", "0.8648531", "0.8648531", "0.8648531", "0.8648531", "0.8648531", "0.8648531", "0.8648531", "0.8648531", "0.8648531...
0.0
-1
Ingest the details of the Cors Policy of the database account.
def A3Vo(bvMg: neo4j.Session, uTbu: Dict, TcTI: int) -> None: if 'cors' in uTbu and len(uTbu['cors']) > 0: uTbu = grGH(uTbu) HnJE = uTbu['id'] Okzq = uTbu['cors'] C3vu = '\n UNWIND $cors_policies_list AS cp\n MERGE (corspolicy:AzureCosmosDBCorsPolicy{id: cp.cors_policy_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def q_v9(YKHO) -> 'outputs.CorsPolicyResponse':\n return qe4Y.get(YKHO, 'cors_policy')", "def grGH(uTbu: Dict) -> cuzp:\n for Qabx in uTbu['cors']:\n if 'cors_policy_unique_id' not in Qabx:\n Qabx['cors_policy_unique_id'] = str(qxeD.uuid4())\n return uTbu", "def QZGP(YKHO) -> h8nf[qe...
[ "0.661601", "0.605783", "0.52652603", "0.51645285", "0.5153092", "0.5115497", "0.5037898", "0.4999279", "0.4962726", "0.4905023", "0.48992115", "0.4881413", "0.4881413", "0.48598", "0.48511997", "0.48239073", "0.48103967", "0.4794327", "0.4794327", "0.47854352", "0.47816545",...
0.65639836
1
Describes events for a specified server. Results are ordered by time, with newest events first. This operation is synchronous. A ``ResourceNotFoundException`` is thrown when the server does not exist. A ``ValidationException`` is raised when parameters of the request are not valid.
def upWb(YKHO, OFvh: str, aSFH: str=None, xTyj: int=None) -> cuzp: pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def upWb(YKHO, *qIxc):\n YKHO.resolve(command=YKHO.describe_events.__name__)\n return YKHO._execute(*qIxc)", "def ACfR(YKHO):\n _hkX, YTVa = YKHO.client.list_resource_events(YKHO.stack_identifier, YKHO.resource_name)\n YKHO.assertNotEqual([], YTVa)\n YTVa.sort(key=lambda tvqc: tvqc['event_time'])\...
[ "0.6074788", "0.5983227", "0.5679441", "0.5659569", "0.5608238", "0.5541749", "0.552818", "0.5480496", "0.5447056", "0.54321665", "0.5428082", "0.54071116", "0.52361006", "0.52255774", "0.5171054", "0.5167698", "0.5143888", "0.51298904", "0.51264054", "0.51065975", "0.5094182...
0.65098274
0
Create a paginator for an operation.
def oL8A(YKHO, hTqE: str=None) -> NIbP: pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oL8A(hTqE=None):\n pass", "def oL8A(hTqE=None):\n pass", "def oL8A(hTqE=None):\n pass", "def oL8A(hTqE=None):\n pass", "def oL8A(hTqE=None):\n pass", "def oL8A(hTqE=None):\n pass", "def oL8A(hTqE=None):\n pass", "def oL8A(hTqE=None):\n pass", "def oL8A(hTqE=None):\n p...
[ "0.7726925", "0.7726925", "0.7726925", "0.7726925", "0.7726925", "0.7726925", "0.7726925", "0.7726925", "0.7726925", "0.7726925", "0.7726925", "0.7726925", "0.7726925", "0.7726925", "0.7726925", "0.7726925", "0.7726925", "0.7726925", "0.7726925", "0.7726925", "0.7726925", "...
0.76366186
36
Test for the endpoint with missing tickets.
def cGjg(P4t4): from app_config import cron_missing_endpoint Mkmy = P4t4.get(cron_missing_endpoint) assert 'Missing match at' in Mkmy.data.decode('utf-8')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qYE4(YKHO):\n qWbT = '?service=%s&ticket=%s' % (YKHO.service_url, 'PT-0000000000-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa')\n geh0 = YKHO.client.get(gxEw('cas_proxy_validate') + qWbT)\n YKHO.assertContains(geh0, 'INVALID_TICKET')", "def FDbt(YKHO):\n qWbT = '?targetService=%s&pgt=%s' % (YKHO.service_url,...
[ "0.69448525", "0.6865378", "0.6852436", "0.6782612", "0.6744905", "0.67426795", "0.66919565", "0.66686785", "0.6584387", "0.6581754", "0.657701", "0.6526649", "0.6521293", "0.6429639", "0.63886935", "0.63283086", "0.6322377", "0.62880665", "0.62879914", "0.62869906", "0.62746...
0.6188657
27
Initialize an empty Univariate instance. Such a Univariate instance is bound to an experiment (through exp), an observable, and a set of conditions.
def xtda(kLQb, W061, zn0c='ALL', Atyj=[]): bo34.debug('Converting region and setting evaluation times') lQ3t = uc7p(zn0c, kLQb) _XMp = gUds(kLQb, W061, lQ3t) bo34.debug('Instantiating univariate object for "{}"'.format(W061.name)) LBEK = AxP1(kLQb, W061, _XMp, lQ3t, Atyj) bo34.debug('Trying to i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, pR3T, v3uw=None, K2_t=None, kc1W=None, gGnb=None, V3NU=False):\n YKHO.observations = pR3T\n YKHO.missing = v3uw\n YKHO.interventions = K2_t\n YKHO.variables = kc1W\n YKHO.samples = gGnb\n W061 = pR3T\n if v3uw is None:\n YKHO.missing = ywwl.zeros(W061.shape, dtype=bool)\n...
[ "0.637835", "0.59204483", "0.5886989", "0.585757", "0.5844869", "0.58007044", "0.5758758", "0.5748791", "0.5734829", "0.572215", "0.57095516", "0.5688041", "0.5676731", "0.56747437", "0.56731546", "0.56605273", "0.5638052", "0.56118304", "0.5605536", "0.55958456", "0.5592763"...
0.53174675
77
Initialize a StationaryUnivariate instance from its dynamical one.
def hBj_(LBEK, zn0c, xAU6): u2Wo(zn0c, xAU6) bo34.debug('Instantiating stationary univariate object for "{}"'.format(LBEK.obs.name)) QmN4 = B2Ho(LBEK, zn0c, xAU6) bo34.debug('Trying to import results from files...') QmN4.import_from_text() bo34.info('Import stationary univariate statistics for "...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n njvh.__init__(YKHO)\n for SRYB in ['air_temp', 'rh', 'fm10', 'fuel_temp', 'rain']:\n YKHO.obs_vars[SRYB] = []", "def Gv23(YKHO):\n if YKHO._tsim is None:\n raise gL2b('Tried to initialize the model without simulating it first')\n ZQRQ = list(YKHO._contset)\n YLya = ...
[ "0.622398", "0.6023762", "0.59243894", "0.5889584", "0.575485", "0.5696515", "0.5692865", "0.56763095", "0.5675446", "0.5657595", "0.5641768", "0.563864", "0.56324893", "0.5619696", "0.5586775", "0.55713505", "0.5569383", "0.55645996", "0.55545914", "0.55372274", "0.55305195"...
0.58343154
4
Computes crosscorrelation between observables defiend in univs.
def fuPM(aCJM, eqiM, zNig=None): hIdy = (aCJM, eqiM) j93S, Nqp_ = hIdy g0gz = j93S.obs kaPG = Nqp_.obs if g0gz.mode != kaPG.mode: if g0gz.mode == 'dynamics' or kaPG.mode == 'dynamics': tO9_ = 'Cannot mix time-lapse and cell-cycle observables:\nHere obs1.mode = {} and obs2.mode = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ypvb():\n pass", "def GyCZ(YKHO):\n cAlv = YKHO.Vn\n Mkmy = []\n for YRbF in range(2 ** YKHO.n):\n Csk6 = cAlv[YRbF]\n _P6x = 0\n for r845 in range(2 ** YKHO.n):\n WKvO = cAlv[r845]\n B9R1 = ''\n for G1Hx in range(len(WKvO)):\n ...
[ "0.6425438", "0.6316701", "0.5981799", "0.59539896", "0.5933562", "0.5911404", "0.5885191", "0.5872414", "0.58581936", "0.57998943", "0.57883495", "0.57817566", "0.57615805", "0.5746974", "0.57271504", "0.5675769", "0.5670097", "0.5667543", "0.5665296", "0.5664395", "0.563092...
0.0
-1
Get number of vertices from the graph, or just pass n itself Return set of graph vertices, V = {1, 2,...n}
def hWWY(i2c4): if isinstance(i2c4, int): exwG = i2c4 else: Oa1e = i2c4 exwG = len(Oa1e.vs) cAlv = list(range(1, exwG + 1)) return (cAlv, exwG)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def y8Vt(pNZh):\n return rrLg.numVertices(pNZh)", "def MrQl(YKHO):\n return YKHO._n", "def poMF(YKHO) -> int:\n return len(YKHO.__vertex_set)", "def PjD8(YKHO):\n return len(YKHO._vertices)", "def PjD8(YKHO):\n return len(YKHO._vertices)", "def IWFH(YKHO):\n ts4V = YKHO.graph.vertexCoun...
[ "0.7579141", "0.73647827", "0.73009837", "0.72955626", "0.72955626", "0.7290294", "0.726953", "0.7261853", "0.7241479", "0.72083366", "0.71846646", "0.7137187", "0.712128", "0.70973116", "0.709089", "0.7084822", "0.7077475", "0.7049167", "0.7047067", "0.7015434", "0.69630086"...
0.7948079
0
get the last key from a given dictionary
def pxMU(eUNp: dict): IKIq = list(eUNp.keys()) S6Zc = IKIq[-1] return S6Zc
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vsNp(cmPJ, H5ew):\n if isinstance(cmPJ[H5ew], list):\n return cmPJ[H5ew][-1]\n return cmPJ[H5ew]", "def UYB1(YKHO, H5ew):\n return YKHO[H5ew][-1]", "def IDOK(Op6c, wEf2):\n q0oN = max(lPQm(Op6c, '!', 'total energy'))\n return JR4R(Op6c, q0oN, wEf2)", "def FiOd(cmPJ):\n if isinsta...
[ "0.79554147", "0.7640858", "0.7395545", "0.7136613", "0.7064738", "0.7030105", "0.6937421", "0.6846948", "0.6747992", "0.66927624", "0.666575", "0.6635548", "0.66129434", "0.66129434", "0.6598735", "0.6598735", "0.6588057", "0.65838665", "0.6550319", "0.65460837", "0.6543022"...
0.84767115
0
add 0 to the beginning to the string if integer is less than 10
def jlUU(FGW3: int): if FGW3 < 10: X_qS = '0' + str(FGW3) else: X_qS = str(FGW3) return X_qS
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xXtp(YKHO, FGW3):\n if int(FGW3) < 10:\n return '0%s' % FGW3\n else:\n return str(FGW3)", "def MhEm(YKHO, mLGw, eRC8):\n eRC8 = int(eRC8)\n mLGw = str(mLGw)\n while eRC8 != 0:\n mLGw = '0' + mLGw\n eRC8 -= 1\n return mLGw", "def gLHK(FGW3: int):\n if FGW3 < ...
[ "0.78374374", "0.75859106", "0.7557023", "0.7467035", "0.72866577", "0.7259672", "0.7091573", "0.70227015", "0.7019151", "0.6970585", "0.69203717", "0.68679434", "0.6863495", "0.68608123", "0.68376553", "0.68370414", "0.68346983", "0.6828871", "0.68182534", "0.68122524", "0.6...
0.7470175
3
add 0 to the beginning to the string if integer is less than 10
def gLHK(FGW3: int): if FGW3 < 10: X_qS = '00' + str(FGW3) elif FGW3 < 100: X_qS = '0' + str(FGW3) else: X_qS = str(FGW3) return X_qS
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xXtp(YKHO, FGW3):\n if int(FGW3) < 10:\n return '0%s' % FGW3\n else:\n return str(FGW3)", "def MhEm(YKHO, mLGw, eRC8):\n eRC8 = int(eRC8)\n mLGw = str(mLGw)\n while eRC8 != 0:\n mLGw = '0' + mLGw\n eRC8 -= 1\n return mLGw", "def jlUU(FGW3: int):\n if FGW3 < ...
[ "0.78374374", "0.75859106", "0.7470175", "0.7467035", "0.72866577", "0.7259672", "0.7091573", "0.70227015", "0.7019151", "0.6970585", "0.69203717", "0.68679434", "0.6863495", "0.68608123", "0.68376553", "0.68370414", "0.68346983", "0.6828871", "0.68182534", "0.68122524", "0.6...
0.7557023
2
Convert from x_s(s, v, t) = 1 to path(s) = [v0, v1, v2...vh]
def dBew(ZPkg: dict): mM0K = _06v(ZPkg) pmON = RoG_(mM0K) return pmON
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pmON(a1PO):\n a1PO = i912.reshape(i912.array(a1PO), (-1,))\n GkZf, uGoY = i912.broadcast_arrays(P8oC, a1PO)\n return i912.expand_dims(TnB3 * GkZf ** uGoY, axis=-1)", "def pmON(a1PO):\n a1PO = i912.reshape(i912.array(a1PO), (-1,))\n GkZf, uGoY = i912.broadcast_arrays(P8oC, a1PO)\n return i91...
[ "0.63738906", "0.63738906", "0.61751944", "0.6060579", "0.60382855", "0.5947788", "0.59061015", "0.58973205", "0.5882586", "0.57905585", "0.5712051", "0.5698711", "0.56982374", "0.5684073", "0.56471515", "0.562964", "0.5623345", "0.5609137", "0.55997795", "0.55987036", "0.558...
0.7425882
0
Return a previously loaded patent, or None if not present.
def r0Bj(YKHO, _gQf): return YKHO._patents.get(str(_gQf), None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OWgQ(YKHO):\n print('Loading patent_inventor.tsv')\n j9Ll = Hy7s.path.join(YKHO._ipath, 'patent_inventor.tsv.bz2')\n cWLH = Hy7s.path.join(YKHO._ipath, 'patent_inventor.pkl.bz2')\n if Hy7s.path.exists(cWLH):\n return rLdf.read_pickle(cWLH)\n AXGa = rLdf.read_csv(j9Ll, sep='\\t', quoting=3...
[ "0.6210218", "0.6162632", "0.5484349", "0.52590257", "0.52327466", "0.51932144", "0.5160868", "0.51605564", "0.51177144", "0.5090323", "0.5066069", "0.5040737", "0.5010466", "0.49867973", "0.49867973", "0.49822894", "0.49669877", "0.49633682", "0.49631342", "0.49600998", "0.4...
0.6088433
2
Return class reference mapped to table.
def jnDt(k9X4): for Z9rn in i_Aq._decl_class_registry.values(): if hasattr(Z9rn, '__tablename__') and Z9rn.__tablename__ == k9X4: return Z9rn return type(k9X4, (bTI4,), {'__tablename__': k9X4})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vAPm(YKHO, k9X4):\n tyNF = YKHO.table_map(k9X4)\n vAPm = Mm3i.get_class_by_table(ZHt1, tyNF)\n return vAPm", "def sSm1(YKHO, Emd4):\n return YKHO.table_name(Emd4)", "def GCT4(YKHO):\n return YKHO._table_ref", "def jnDt(YKHO, k9X4):\n for tyNF in NCls.Model._decl_class_registry.values():...
[ "0.77385485", "0.73324126", "0.7057294", "0.70343965", "0.69280666", "0.67682993", "0.67489576", "0.66862106", "0.66807365", "0.66398543", "0.6576008", "0.64905566", "0.64905566", "0.64905566", "0.64905566", "0.64905566", "0.6415081", "0.6397221", "0.6396728", "0.6395844", "0...
0.65127736
11
Paramter function that creates variables that could be broadcast to a certain shape to match with input var.
def k78t(ypOY, u54L, MuED=ZylS.zeros_initializer(), yDqo=ZylS.float32, XJsN=True, mWFP='parameter'): with ZylS.variable_scope(mWFP): XP5J = ZylS.get_variable('parameter', shape=(u54L,), dtype=yDqo, initializer=MuED, trainable=XJsN) qC1Y = ypOY.get_shape().ndims moed = ZylS.concat(axis=0, val...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NM7L(VYdi, X7TM):\n return tTyL.broadcast_args(VYdi, X7TM)", "def JGmp(kc1W):\n for Ty9i in kc1W:\n _lDP(Ty9i, iJtT(Ty9i))", "def AOZ1(YKHO, ROpF: tf.TensorShape, MuED=None, **BzqS):\n if MuED is None:\n MuED = lambda ROpF: ZylS.random.uniform(ROpF)\n return [ZylS.Variable(MuED((1...
[ "0.64907867", "0.6183986", "0.6134286", "0.61180013", "0.5816185", "0.579627", "0.57594407", "0.5731571", "0.56510204", "0.564974", "0.5629803", "0.56030566", "0.5596549", "0.55797815", "0.5573296", "0.5565453", "0.555424", "0.5549173", "0.5533203", "0.551449", "0.5513958", ...
0.640455
1
solveTemperatureNodeCount(Mesh self) Returns the count of cells in the square mesh.
def EMkd(YKHO): return YKHO.nodeCount
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f453(YKHO, zjf_='MATRIX_MODEL'):\n AOc7 = FYjQ.PorosityModelType.Value(zjf_)\n QePW = FYjQ.CellInfoRequest(case_request=YKHO.__request(), porosity_model=AOc7)\n return YKHO.__case_stub.GetCellCount(QePW)", "def fhKa(YKHO):\n return Latg.interior_node_count(YKHO.shape)", "def CYQC(YKHO):\n ew...
[ "0.6194618", "0.6039439", "0.60097086", "0.5960144", "0.5953243", "0.5930359", "0.5920687", "0.59156895", "0.5910046", "0.5908134", "0.58668417", "0.58638763", "0.58190143", "0.5809319", "0.5808978", "0.57790536", "0.5751494", "0.5726546", "0.57208216", "0.56907696", "0.56828...
0.749711
0
Returns the path to this TreeDict.
def OyQC(YKHO): try: _AKB = YKHO.dictgetattr('__parent') H5ew = YKHO.dictgetattr('__parent_key') return _AKB.get_path() + [H5ew] except AttributeError: return []
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pmON(YKHO):\n _AKB = YKHO._parent\n if _AKB is YKHO._root:\n return f'{YKHO.separator}{YKHO._name}'\n return f'{_AKB.path}{YKHO.separator}{YKHO._name}'", "def pmON(YKHO) -> str:\n return YKHO._data[GDa9.PATH_KEY]", "def OyQC(YKHO):\n return YKHO.__path", "def IlYb(YKHO):\n return...
[ "0.7593214", "0.74636394", "0.7436003", "0.7404598", "0.7403916", "0.7401389", "0.7392867", "0.7363172", "0.7361173", "0.7361173", "0.7360434", "0.7360434", "0.7360434", "0.7360434", "0.7360434", "0.7350015", "0.73498315", "0.73498315", "0.73498315", "0.73495394", "0.7325857"...
0.74086124
3
Returns the integrand for the red shifted intensity to be integrated.
def q_1e(YKHO, Mkmy, Fg_i): IBCj = 1 - 2 * YKHO.mass.value / Mkmy YaOF = (1 - 2 * YKHO.mass.value / Mkmy) ** (-1) vQOJ = (IBCj / YaOF * (1 - Fg_i ** 2 * IBCj / Mkmy ** 2)) ** 0.5 ZYYs = (1 / IBCj + vQOJ * (YaOF / IBCj) * ((1 - IBCj) / (IBCj * YaOF)) ** 0.5) ** (-1) EU9W = ZYYs ** 3 * (IBCj / Mkmy **...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lRYc(nD2F, ODdU):\n M6pt = nD2F - ODdU\n UUZ1 = nD2F + ODdU\n return dirI(M6pt, UUZ1)", "def p4q5(YKHO) -> 'double const &':\n return KcuS.itkRescaleIntensityImageFilterIUS2IF2_GetShift(YKHO)", "def p4q5(YKHO) -> 'double const &':\n return KcuS.itkRescaleIntensityImageFilterIUS2ISS2_GetShift...
[ "0.6344106", "0.6324996", "0.6305793", "0.6237762", "0.6235348", "0.6183541", "0.6181049", "0.6174178", "0.6145297", "0.6113699", "0.61045283", "0.60702103", "0.6042028", "0.604077", "0.6031197", "0.6019641", "0.6015585", "0.6009966", "0.60075974", "0.59967065", "0.59959036",...
0.55846554
54
Load MNISTM training and test data
def z_VS(tk5Y=h_xa, Tkf0=-1, gIsw=gIsw): DmLc = Hy7s.path.join(tk5Y, gIsw) hkVT = GChh.loadmat(DmLc) tKsY = hkVT['train'].astype(oyIN.uint8) OgDZ = hkVT['label_train'] M5ok = hkVT['test'].astype(oyIN.uint8) uoI4 = hkVT['label_test'] yhS3 = oyIN.argmax(OgDZ, axis=1) noZV = oyIN.random.per...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kPcd():\n sVsK = pJf0.load_images_3d(gzes(NZeU, 'train-images-idx3-ubyte'))\n h4TO = pJf0.load_labels(gzes(NZeU, 'train-labels-idx1-ubyte'))\n XUXj = pJf0.load_images_3d(gzes(NZeU, 't10k-images-idx3-ubyte'))\n s8RJ = pJf0.load_labels(gzes(NZeU, 't10k-labels-idx1-ubyte'))\n return (sVsK, h4TO, XU...
[ "0.8245859", "0.8164385", "0.80530673", "0.8040248", "0.7984956", "0.79250604", "0.78986007", "0.7885531", "0.7861467", "0.78549767", "0.78327274", "0.78323805", "0.7787331", "0.7773391", "0.77589685", "0.77393687", "0.7667737", "0.7622581", "0.76172817", "0.7610853", "0.7605...
0.74850637
31
Test creating user valid payload is successful
def RDRA(YKHO): pB3N = {'email': 'test@gmail.com', 'password': 'pass123', 'name': 'Test Name'} _hkX = YKHO.client.post(CKgv, pB3N) YKHO.assertEqual(_hkX.status_code, jGRS.HTTP_201_CREATED) CBIr = egNl().objects.get(**_hkX.data) YKHO.assertTrue(CBIr.check_password(pB3N['password'])) YKHO.assertNo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aLKA(YKHO):\n pB3N = {'email': 'k@gmail.com', 'password': 'testTSET1230', 'name': 'khaled osman'}\n lYUQ(**pB3N)\n Ylbp = YKHO.client.post(CKgv, pB3N)\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_400_BAD_REQUEST)\n print('T-----> success test_create_an_existing_user')", "def RDRA(YKHO):\n ...
[ "0.8594267", "0.8494569", "0.84370625", "0.8430454", "0.84200925", "0.84189016", "0.8414799", "0.83866686", "0.8359106", "0.83491796", "0.834331", "0.83410776", "0.8339441", "0.8334551", "0.83203334", "0.83180135", "0.82862407", "0.8283943", "0.8276703", "0.8276582", "0.82610...
0.8356085
9
Test token is not created with invalid password
def yj75(YKHO): lYUQ(email='test@gmail.com', password='pass123', name='Test Name') pB3N = {'email': 'test@gmail.com', 'password': 'Incorrect'} _hkX = YKHO.client.post(pEkX, pB3N) YKHO.assertNotIn('token', _hkX.data) YKHO.assertEqual(_hkX.status_code, jGRS.HTTP_400_BAD_REQUEST)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gWHL(YKHO):\n YKHO.payload['password'] = ''\n Ylbp = YKHO.client.post(pEkX, YKHO.payload)\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_400_BAD_REQUEST)\n YKHO.assertNotIn('token', Ylbp.data)", "def nZ1_(YKHO):\n pB3N = {'email': 'k@gmail.com', 'password': 'pass1232321PASS', 'name': 'khaled o...
[ "0.8200222", "0.8195026", "0.8094739", "0.80742186", "0.8072361", "0.8030821", "0.8030004", "0.7978636", "0.7974894", "0.7961985", "0.7941834", "0.78901476", "0.7854378", "0.78391886", "0.7838213", "0.783259", "0.78224427", "0.78004843", "0.7747845", "0.7689904", "0.7684653",...
0.7925497
11
Test a token is not created when a user doesn not exist
def i_2a(YKHO): pB3N = {'email': 'test@gmail.com', 'password': 'pass123', 'name': 'Test Name'} _hkX = YKHO.client.post(pEkX, pB3N) YKHO.assertNotIn('token', _hkX.data) YKHO.assertEqual(_hkX.status_code, jGRS.HTTP_400_BAD_REQUEST)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YGLT(YKHO):\n pB3N = {'email': 'k@gmail.com', 'password': 'pass1232321PASS', 'name': 'khaled osman'}\n Ylbp = YKHO.client.post(pz0m, pB3N)\n YKHO.assertNotIn('token', Ylbp.data)\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_400_BAD_REQUEST)\n print('T-----> success test_create token for non ex...
[ "0.82349765", "0.80687046", "0.8041274", "0.790012", "0.78804356", "0.7880211", "0.78407514", "0.78008896", "0.77731436", "0.7767451", "0.7753924", "0.77514195", "0.7750698", "0.7746916", "0.7731579", "0.7730347", "0.77230763", "0.7657555", "0.76441985", "0.7642647", "0.75815...
0.7723866
16
Test a token is not created when password is empty
def xQGs(YKHO): lYUQ(email='test@gmail.com', password='12345', name='Test Name') pB3N = {'email': 'test@gmail.com', 'password': ''} _hkX = YKHO.client.post(pEkX, pB3N) YKHO.assertNotIn('token', _hkX.data) YKHO.assertEqual(_hkX.status_code, jGRS.HTTP_400_BAD_REQUEST)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cgOU(YKHO):\n Ylbp = YKHO.client.post(pEkX, {'email': 'test@pokemail.net', 'password': ''})\n YKHO.assertNotIn('token', Ylbp.data)\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_400_BAD_REQUEST)", "def gWHL(YKHO):\n YKHO.payload['password'] = ''\n Ylbp = YKHO.client.post(pEkX, YKHO.payload)\n ...
[ "0.83792126", "0.8350998", "0.7788959", "0.77614754", "0.77605927", "0.7712192", "0.76825386", "0.76578516", "0.7657608", "0.76527065", "0.76460105", "0.76456165", "0.7636909", "0.76236826", "0.7618685", "0.76104486", "0.76092917", "0.7607372", "0.7598611", "0.7587277", "0.75...
0.800112
2
Test to update a users profile works
def NLL6(YKHO): pB3N = dict(password='newpassword', name='New Name') _hkX = YKHO.client.patch(XiK1, pB3N) YKHO.user.refresh_from_db() YKHO.assertEqual(YKHO.user.name, pB3N['name']) YKHO.assertTrue(YKHO.user.check_password(pB3N['password'])) YKHO.assertEqual(_hkX.status_code, jGRS.HTTP_200_OK)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fk7V(YKHO):\n Ylbp = YKHO.client.patch(BfDw.ME_URL, BfDw.USER_PAYLOAD_UPDATE)\n YKHO.user.refresh_from_db()\n YKHO.assertEqual(YKHO.user.name, BfDw.USER_PAYLOAD_UPDATE['name'])\n YKHO.assertTrue(YKHO.user.check_password(BfDw.USER_PAYLOAD_UPDATE['password']))\n YKHO.assertEqual(Ylbp.status_code, ...
[ "0.8484802", "0.83715904", "0.8318557", "0.83035564", "0.82984626", "0.82889485", "0.82689625", "0.82319885", "0.8228047", "0.82241315", "0.8216009", "0.8200896", "0.8198916", "0.8198916", "0.8198916", "0.8171768", "0.8020105", "0.80047727", "0.7995651", "0.7984375", "0.79446...
0.81566274
16
(str) > (list)q Return list of lines from file (path to file)
def Nwr9(pmON): r8hN = int(input('Enter a count of lines, which you need to read: ')) Ftwn = [] eHNT = open(pmON, encoding='utf-8', errors='ignore') print('Wait a moment') for YRbF in uOgj(eHNT.read().strip().split('\n'), 15, r8hN): try: if '}' in YRbF: YRbF = YRb...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Nqlg(IznC: Path) -> x1iM[str]:\n return IznC.read_text(encoding='utf-8').splitlines()", "def Zveu(pmON):\n return open(pmON).readlines()", "def dESn():\n CTvz = T_Uj.open('pathToFile', 'r', 'utf-8')\n yagq = CTvz.readlines()\n return yagq", "def aA6_(qaEx: Path) -> x1iM[str]:\n Nqlg = q...
[ "0.8154846", "0.80952215", "0.80329335", "0.7879697", "0.7843734", "0.78051865", "0.7800257", "0.77737504", "0.777372", "0.7729589", "0.7698086", "0.76439244", "0.7643742", "0.7617078", "0.7599155", "0.7585515", "0.7584479", "0.75768065", "0.757576", "0.7558939", "0.75130457"...
0.0
-1
renders the gridlines such that it easier to see for the player what he / she is doing
def nzPU(YKHO): for YRbF in range(-YKHO.world.camera_pos[0].astype(oyIN.int32) % yviY[0], YKHO.pos_information[0], yviY[0]): a9eO.draw.line(YKHO.screen, a9eO.Color('black'), (YRbF, 0), (YRbF, lpFQ[1])) for r845 in range(-YKHO.world.camera_pos[1].astype(oyIN.int32) % yviY[1], lpFQ[1], yviY[1]): a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rVO_(YKHO):\n ncXl = uwaB.screen_width // uwaB.num_rows\n GzWn = uwaB.screen_height // uwaB.num_rows\n BWQS = (128, 128, 128)\n WKvO = 0\n LVAh = 0\n for YRbF in range(uwaB.num_rows):\n WKvO += ncXl\n LVAh += GzWn\n a9eO.draw.line(YKHO.window, BWQS, (WKvO, 0), (WKvO, uwaB...
[ "0.791676", "0.78680867", "0.7813186", "0.7745286", "0.7709124", "0.7684924", "0.7650573", "0.7631868", "0.7620791", "0.7567852", "0.75329095", "0.74703985", "0.7466249", "0.74486554", "0.74080914", "0.7388855", "0.7357195", "0.72737586", "0.7264391", "0.72329307", "0.716396"...
0.79082423
1
Renders the screen, including the grid, the world and the sidebar information with its game objects
def _1tc(YKHO): YKHO.world.render(YKHO.screen, fast=False) YKHO.render_grid() a9eO.draw.rect(YKHO.screen, a9eO.Color('grey'), YKHO.pos_information + YKHO.size_information) a9eO.draw.polygon(YKHO.screen, a9eO.Color('black'), YKHO.points_arrow1) a9eO.draw.polygon(YKHO.screen, a9eO.Color('black'), YKHO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _1tc(YKHO):\n YKHO.window.fill((0, 0, 0))\n YKHO.__draw_grid__()\n YKHO.snake.draw(YKHO.window)\n YKHO.food.draw(YKHO.window)\n YKHO.__draw_text__()\n a9eO.display.update()", "def rgXh(YKHO):\n YKHO.render_background()\n YKHO.render_world_objects()\n YKHO.render_entities()\n YKH...
[ "0.7480723", "0.73838764", "0.7348081", "0.7107922", "0.7060338", "0.69482607", "0.69464386", "0.6941693", "0.6840613", "0.68327194", "0.68207026", "0.6812764", "0.6810779", "0.6808285", "0.6803316", "0.67975336", "0.6794498", "0.67886335", "0.6777992", "0.6771256", "0.676682...
0.7442932
1
Return the attached service configuration.
def rMPu(YKHO): raise NotImplementedError()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tgzD(YKHO):\n return YKHO.service.configuration", "def tgzD(YKHO) -> dict:\n return YKHO.config", "def O2aX(YKHO):\n return YKHO.config", "def O2aX(YKHO):\n return YKHO.config", "def tgzD(YKHO):\n return YKHO.config.config", "def tgzD(YKHO):\n return YKHO.config.config", "def tgzD...
[ "0.7920251", "0.70993686", "0.7063251", "0.7063251", "0.7033971", "0.7033971", "0.7033971", "0.6979263", "0.6955152", "0.694976", "0.694976", "0.694976", "0.694976", "0.69415236", "0.6902617", "0.6897028", "0.6892539", "0.6836811", "0.6826876", "0.68240625", "0.6769384", "0...
0.78730977
1
Get the inventory config.
def unJ0(YKHO): raise NotImplementedError()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vjPs(YKHO):\n return YKHO.inventory", "def Ypwq(YKHO):\n return YKHO._inventory", "def yXpE(YKHO):\n try:\n YKHO.__ansible_config\n except AttributeError:\n raise RuntimeError('Ceph ansible config is not set')\n return YKHO.__ansible_config", "def vjPs(YKHO):\n return YKHO...
[ "0.6871945", "0.68056417", "0.67863804", "0.66857994", "0.66770715", "0.6552529", "0.6552529", "0.6552529", "0.65439385", "0.65292513", "0.649181", "0.6488835", "0.6481836", "0.64716256", "0.6445883", "0.6408743", "0.6386132", "0.6383567", "0.6383567", "0.6383567", "0.6383567...
0.86210716
0
Redirect the user to the initially requested page on logout and say goodbye as well.
def vQk1(YKHO, bFHT=DiYJ('/')): Dwep(bGrB('We hope to see you soon!')) return MEVA(location=bFHT)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vQk1(YKHO, bFHT=bD7m('/')):\n Dwep(bGrB('Hasta luego!'))\n vKnz('/')", "def vQk1(YKHO, bFHT=bD7m('/')):\n Dwep(bGrB('We hope to see you soon!'))\n vKnz(bFHT)", "def vQk1(YKHO, bFHT=DiYJ('/')):\n Dwep(bGrB('We hope to see you soon!'))\n vKnz(bFHT)", "def erK4():\n wJ7q()\n Dwep('Yo...
[ "0.78040683", "0.7784282", "0.7765657", "0.75859034", "0.7582246", "0.7573667", "0.75674796", "0.7541069", "0.74868745", "0.7466652", "0.7438297", "0.7437654", "0.7424402", "0.7423399", "0.7411562", "0.73796093", "0.73693484", "0.73679143", "0.73633397", "0.7357884", "0.73542...
0.74304247
12
Get training dataset for MNIST
def CxJK(UXqs, ngai=False): return hv1K('train', UXqs, centered=ngai)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XOw4(EvQg=True, pmON=None):\n JBMS, M1Jx = (0.1307, 0.3081)\n NkkI = Ymkf.Normalize(mean=(JBMS,), std=(M1Jx,))\n __n6 = e6LZ('MNIST', EvQg, NkkI, [], pmON)\n __n6.shape = (1, 28, 28)\n return __n6", "def dD7q(mSqg: str, qqqI: bool=True) -> ht2j.utils.data.Dataset:\n return TTda.datasets.MNI...
[ "0.8045066", "0.79719156", "0.788412", "0.7840418", "0.7807451", "0.78073245", "0.7782238", "0.7703628", "0.7685835", "0.7678462", "0.7665208", "0.76493925", "0.76079357", "0.75713605", "0.75436795", "0.754035", "0.7514341", "0.7483246", "0.7431434", "0.7427557", "0.7414041",...
0.0
-1
Get testing dataset for MNIST
def a2vG(UXqs, ngai=False): return hv1K('test', UXqs, centered=ngai)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zwka():\n w37D = Aqyh('MNIST original', data_home=EeDH.path.join(O_Oy, 'MNIST_original'))\n return (w37D.data[60000:, :].reshape((10000, 1, 28, 28)).astype('float32'), w37D.target[60000:].reshape((10000, 1)).astype('float32'))", "def w37D():\n SZFh = Kt_s.Compose([Kt_s.ToTensor(), Kt_s.Normalize((0....
[ "0.8252717", "0.7628692", "0.7608014", "0.74723625", "0.74368846", "0.741372", "0.738169", "0.7367975", "0.7367238", "0.7337191", "0.7253468", "0.7253444", "0.72451615", "0.72297204", "0.71978086", "0.7193642", "0.7191779", "0.7178765", "0.71648103", "0.71613806", "0.7121767"...
0.0
-1
Get number of classes in MNIST dataset
def jTqs(): return 10
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HM9Q(__n6: str):\n if __n6 == 'imagenet':\n return 1000\n elif __n6 == 'cifar10':\n return 10", "def Ybg9(YKHO) -> int:\n return len(oyIN.unique(YKHO.dataset[1]))", "def jTqs(YKHO) -> int:\n if YKHO.config.num_classes == 'infer':\n return YKHO.info.features['label'].num_cla...
[ "0.8266503", "0.7823201", "0.76758134", "0.7636022", "0.75875163", "0.75426286", "0.7503722", "0.7468902", "0.7463252", "0.7405654", "0.73557585", "0.73541445", "0.73541445", "0.73541445", "0.73541445", "0.73541445", "0.73541445", "0.73256165", "0.7315701", "0.73114234", "0.7...
0.75311476
6
Removes the object from the DB
def PTpj(YKHO): YKHO.mdb_collection.remove({'_id': aA6B(YKHO._id)})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kSdD(YKHO, YEnM: Base) -> None:\n YKHO._session.delete(YEnM)\n YKHO._session.commit()", "def ZK6Y(YKHO):\n NCls.session.delete(YKHO)\n NCls.session.commit()", "def ZK6Y(YKHO):\n NCls.session.delete(YKHO)\n NCls.session.commit", "def ZK6Y(YKHO):\n NCls.session.delete(YKHO)\n NCls.s...
[ "0.820734", "0.81786", "0.81269914", "0.8120047", "0.8120047", "0.8120047", "0.8120047", "0.81140864", "0.8109029", "0.8025719", "0.80232227", "0.7970305", "0.7942794", "0.79274184", "0.79135704", "0.79095113", "0.79095113", "0.79095113", "0.79095113", "0.79095113", "0.790951...
0.7418733
62
Returns the real fieldname (without leading _) on which the current authenticated userhas permission to edit
def YPNB(YKHO): for L5mN in YKHO.schema: if YKHO.check_field_permission(L5mN, 'edit'): yield L5mN.lstrip('_')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Jyyj(YKHO):\n return getattr(YKHO.user, YKHO.formInfo.learnedField)", "def ar1y(YKHO, QePW, YEnM=None):\n if QePW.user.is_superuser:\n return ()\n return ('name', 'actuators')", "def K_Sa(YKHO, mWFP):\n mWFP = ZbWC.sub('^[^A-Za-z_]', '_', mWFP)\n mWFP = ZbWC.sub('[^A-Za-z0-9_]', '_', ...
[ "0.6827216", "0.64881724", "0.634042", "0.6286046", "0.62555337", "0.62555337", "0.62408787", "0.62408787", "0.61958826", "0.6190497", "0.61889124", "0.6037656", "0.6036666", "0.60205853", "0.60205853", "0.60013855", "0.59876144", "0.597746", "0.59736013", "0.5947976", "0.593...
0.6457884
2
This function responds to a request for /api/activator/{key} with one matching activator from activatorss
def SIzK(id): u_ln = xqXV.query.filter(xqXV.id == id).one_or_none() SwwZ = LAtD.build_activator(u_ln) if SwwZ is not None: _x4l = KLUj() nPrm = _x4l.dump(SwwZ) return nPrm else: eTsH(404, 'Activator with id {id} not found'.format(id=id))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JxO8(YKHO):\n YKHO.dut.activators[YKHO.senderUUID] = YKHO.activator\n YKHO.activator.activeRequest = {'request': 'active'}\n Mkmy = G4JS.get(YKHO.senderRoot + '/active/', headers=KP2F)\n aEqx = {}\n aEqx = YKHO.dut.senders[YKHO.senderUUID].activeToJson()\n aEqx['activation'] = {'request': 'ac...
[ "0.62649983", "0.58349997", "0.574596", "0.5606054", "0.5447169", "0.5341686", "0.53260547", "0.5324861", "0.5279343", "0.5238211", "0.5145885", "0.51310503", "0.51271063", "0.5093463", "0.5043839", "0.504007", "0.503618", "0.5034124", "0.5030222", "0.49862513", "0.49720857",...
0.49880296
19
Return a bound method if value is callable, or value otherwise
def IVNj(BWXx, KAOR): if callable(BWXx): def NKcE(*qIxc): return BWXx(KAOR, *qIxc) return NKcE return BWXx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IVNj(BWXx, KAOR):\n if callable(BWXx):\n\n def NKcE(*qIxc):\n return BWXx(KAOR, *qIxc)\n return NKcE\n else:\n return BWXx", "def o6jX(eHNT, PDzj=False):\n if isinstance(eHNT, staticmethod):\n return (True, eHNT.__get__(object)) if PDzj else True\n elif isin...
[ "0.7385023", "0.70981014", "0.7017853", "0.69298226", "0.68455374", "0.67111444", "0.66384554", "0.662376", "0.6558655", "0.65172654", "0.6502097", "0.6449735", "0.6375716", "0.63468695", "0.6280665", "0.6268003", "0.62654793", "0.6244699", "0.61577886", "0.61305803", "0.6121...
0.73045087
1
Return a new class, which is a dispatch dictionary.
def mFFc(azoT, OWw8=None): def Zmkp(mWFP): if azoT.has_key(mWFP): return azoT[mWFP] elif OWw8 is not None: return OWw8['get'](mWFP) def j6Nn(mWFP, BWXx): azoT[mWFP] = BWXx def BdN0(*qIxc): return RkXJ(Emd4, *qIxc) Emd4 = {'get': Zmkp, 'set': j6N...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nrOS(YKHO):\n jTHr = type(YKHO._old_cls.__name__, YKHO._old_cls.__bases__, dict(YKHO._old_cls.__dict__))\n jTHr.__new__ = YKHO.get_new()\n return jTHr", "def ypeQ(cM24):\n return nqEK[vGEJ(cM24)]", "def zZ2r(Emd4):\n\n def Zmkp(mWFP):\n if mWFP in azoT:\n return azoT[mWFP]\...
[ "0.6807707", "0.6638196", "0.6628708", "0.66230804", "0.655849", "0.65465736", "0.6447394", "0.6437407", "0.6432461", "0.6432461", "0.64243686", "0.6418297", "0.6418297", "0.6367843", "0.6367843", "0.6365029", "0.63581824", "0.63550234", "0.63550234", "0.63550234", "0.6355023...
0.6477789
6
Get a cp2k formatted string representation
def WC_0(Emd4, vIwR): vIwR = vIwR.upper() nPrm = {} if 'NLCC' in vIwR: nPrm['nlcc'] = True if 'GTH' in vIwR: nPrm['potential_type'] = 'GTH' for YRbF, KCHu in enumerate(vIwR): if KCHu == 'Q' and vIwR[YRbF + 1].isnumeric(): nPrm['electrons'] = int(''.join((bGrB for ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n U5bT = YKHO.designator + '\\n'\n U5bT += '\\tRef: {0}\\n'.format(YKHO.ref)\n U5bT += '\\tJLCPCB_CC: {0}\\n'.format(YKHO.jlcpcb_cc)\n o8Kj = ('val', 'package', 'position_x', 'position_y', 'rotation', 'pcb_side')\n for hkS8 in o8Kj:\n if hasattr(YKHO, hkS8):\n U5bT ...
[ "0.6329148", "0.63069504", "0.629171", "0.629171", "0.629171", "0.629171", "0.629171", "0.629171", "0.629171", "0.629171", "0.629171", "0.629171", "0.629171", "0.629171", "0.629171", "0.629171", "0.629171", "0.629171", "0.629171", "0.629171", "0.629171", "0.629171", "0.62...
0.0
-1