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 whether the ISY device is in the on state.
def Debg(YKHO) -> bool | None: return bool(YKHO._node.enabled)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Debg(YKHO):\n return YKHO._device.state", "def Debg(YKHO):\n return YKHO._device.state", "def Debg(YKHO):\n return YKHO.device.state", "def Debg(YKHO):\n return YKHO.device.state", "def Debg(YKHO):\n return YKHO.device['status']['state']", "def Debg(YKHO):\n return YKHO._device.is_o...
[ "0.83201253", "0.83201253", "0.8282291", "0.8282291", "0.8239356", "0.82256246", "0.82256246", "0.8112726", "0.8094942", "0.80759", "0.80657256", "0.8046179", "0.7972728", "0.79542017", "0.79168564", "0.79036415", "0.78999025", "0.7873884", "0.7873884", "0.7873884", "0.787388...
0.0
-1
Creates a logger, using the verbosity, and returns it.
def WWrj(PJWX): bo34 = G9jH.getLogger() if PJWX >= 3: bo34.setLevel(G9jH.DEBUG) else: bo34.setLevel(G9jH.WARNING) bo34.addHandler(G9jH.StreamHandler()) return bo34
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MWLp(YKHO) -> G9jH.Logger:\n return G9jH.getLogger()", "def lmAE() -> G9jH.Logger:\n pass", "def eLpg():\n return Few0()", "def lmAE():\n pmON = './logs'\n if not Hy7s.path.exists(pmON):\n Hy7s.makedirs(pmON)\n bo34 = G9jH.getLogger()\n bo34.setLevel(G9jH.DEBUG)\n bo34.prop...
[ "0.7360115", "0.7339529", "0.72731143", "0.7209709", "0.71732086", "0.7023992", "0.6954278", "0.6950982", "0.6950982", "0.6939641", "0.6918467", "0.69108564", "0.685741", "0.68523407", "0.6850114", "0.68463767", "0.6824622", "0.681838", "0.68173003", "0.6815973", "0.681328", ...
0.66880876
36
Renders the home page.
def kZiy(QePW): assert isinstance(QePW, eu5F) return _1tc(QePW, 'app/index.html', {'title': 'Главная', 'year': qcWV.now().year})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kZiy():\n return TvZl('home.html')", "def C_QL():\n return TvZl('home.html')", "def kZiy():\n return TvZl('homepage.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZl('pages/home.html')", "def kZiy():\n leAC =...
[ "0.86085397", "0.85661966", "0.8562984", "0.84564984", "0.8353822", "0.8353445", "0.832796", "0.83265287", "0.83265287", "0.8311966", "0.83088946", "0.83046836", "0.8296962", "0.82942903", "0.82942903", "0.82872546", "0.8279762", "0.8279762", "0.8279762", "0.8279762", "0.8279...
0.0
-1
Renders the contact page.
def Mxk0(QePW): assert isinstance(QePW, eu5F) return _1tc(QePW, 'app/contact.html', {'title': 'Contact', 'message': 'Your contact page.', 'year': qcWV.now().year})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Mxk0():\n bo34.info('User visited the contact page.')\n return TvZl('contact.html')", "def Mxk0():\n return TvZl('contact.html')", "def Mxk0():\n return TvZl('contact.html')", "def Mxk0():\n return TvZl('contact.html')", "def Mxk0():\n return TvZl('contact.html')", "def Mxk0():\n ...
[ "0.85960764", "0.85656375", "0.85656375", "0.855447", "0.84786224", "0.8420173", "0.8410878", "0.83499986", "0.8343786", "0.83297306", "0.8248282", "0.8231488", "0.81855345", "0.81855345", "0.81855345", "0.81855345", "0.81855345", "0.81855345", "0.81855345", "0.81855345", "0....
0.75467974
65
Renders the registration page.
def l6D9(QePW): if QePW.method == 'POST': j9Wu = Wwnj(QePW.POST) if j9Wu.is_valid(): hBhc = j9Wu.save(commit=False) hBhc.is_staff = False hBhc.is_active = True hBhc.is_superuser = False hBhc.date_joined = qcWV.now() hBhc.last_lo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l6D9():\n return TvZl('register.html')", "def p_Ie():\n return TvZl('registration.html')", "def l6D9():\n return TvZl('register.html')", "def gr_i():\n return TvZl('registration.php', title='Register')", "def gr_i():\n return TvZl('register.html', title='Register')", "def kwoF():\n ...
[ "0.8706346", "0.8676763", "0.8635238", "0.8468603", "0.8301751", "0.8289217", "0.8245877", "0.82205", "0.8175505", "0.8152921", "0.81290823", "0.811938", "0.8108226", "0.8097915", "0.8087301", "0.8085415", "0.79835445", "0.79835445", "0.7976888", "0.79242826", "0.7888828", ...
0.6774185
72
(x, y) to (theta, radius).
def wNFX(Z9rn): return eWgR(t135(Z9rn[1], Z9rn[0]), (Z9rn ** 2).sum(0) ** 0.5)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SSit(YylR, r1VO):\n WKvO = YUNn(Y_1E(YylR)) * r1VO\n LVAh = YhSR(Y_1E(YylR)) * r1VO\n return (WKvO, LVAh)", "def SSit(WKvO: float, LVAh: float, YylR: float, r1VO: float) -> AzJI[float, float]:\n Wskb = epAf.radians(YylR)\n return (WKvO + r1VO * epAf.cos(Wskb), LVAh + r1VO * epAf.sin(Wskb))", ...
[ "0.7537126", "0.74242455", "0.70683634", "0.7047642", "0.7025517", "0.70067763", "0.6939274", "0.6938229", "0.69147533", "0.68914336", "0.68259525", "0.6808965", "0.6807103", "0.677338", "0.6754555", "0.67526674", "0.6747307", "0.6711879", "0.6689537", "0.6688094", "0.6664227...
0.0
-1
Given a file stream or a file name, return the corresponding stream, handling GZip. Depending on mode, open an input or output stream. (A copy from pytreex.core.util to remove dependency)
def J0RQ(Ux0P, Tuqy='r', tZ2K='UTF-8'): if isinstance(Ux0P, (nUeQ, ucI_, ui8J, e2x8)): Ga6V = Ux0P elif Ux0P.endswith('.gz'): Ga6V = lGU7.open(Ux0P, Tuqy) else: Ga6V = open(Ux0P, Tuqy) if tZ2K is not None: if Tuqy.startswith('r'): Ga6V = T_Uj.getreader(tZ2K)(G...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def t6oX(mWFP, Tuqy):\n if e2GX(mWFP):\n return lGU7.open(mWFP, Tuqy)\n else:\n return open(mWFP, Tuqy)", "def tCgk(Ux0P):\n RRlC = Ux0P.split(',')\n o36Q = el7G.FileInput(RRlC, openhook=el7G.hook_compressed)\n return o36Q\n if Ux0P[-3:] == '.gz':\n return lGU7.open(Ux0P, '...
[ "0.74385375", "0.72783875", "0.7016153", "0.69822335", "0.6953648", "0.68390375", "0.68247616", "0.67698824", "0.676649", "0.67490804", "0.6747845", "0.67349136", "0.67280936", "0.66716194", "0.6600183", "0.6582945", "0.6582945", "0.65697634", "0.65531653", "0.6552634", "0.65...
0.6577082
17
Read sentences (one per line) from a file and return them as a list of tokens (forms with undefined POS tags).
def O3L1(knJC, hoA3=False, Kllm=False): s2mk = [] Gd79 = False with J0RQ(knJC) as Ga6V: for zFiD in Ga6V: zFiD = zFiD.strip() if Kllm: zFiD = wr3U(zFiD) zFiD = filter(bool, zFiD.split(' ')) if not zFiD: Gd79 = True ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def j_03(Ux0P):\n Rhv4 = []\n with open(Ux0P, 'r') as eHNT:\n for zFiD in eHNT:\n if '|' not in zFiD:\n Rhv4.append(yTa9(zFiD.strip()))\n return Rhv4", "def PjKH(Ux0P):\n yvT9 = []\n with open(Ux0P) as apum:\n for zFiD in apum:\n zFiD = zFiD.strip...
[ "0.8093488", "0.8076023", "0.7889025", "0.77836746", "0.77836746", "0.77836746", "0.7685584", "0.7627595", "0.750838", "0.7401933", "0.7339695", "0.7315679", "0.7277507", "0.725953", "0.72089785", "0.7162958", "0.7156022", "0.7133579", "0.70739776", "0.7072969", "0.70484436",...
0.6454489
64
the unique identifier for the course.
def id(YKHO): return YKHO._id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def S7Jr(YKHO):\n return YKHO._course_id", "def ShR8(YKHO) -> str:\n return YKHO._id", "def ShR8(YKHO) -> str:\n return YKHO._id", "def ShR8(YKHO):\n return YKHO._name", "def ShR8(YKHO):\n return YKHO._name", "def ShR8(YKHO):\n return YKHO.name", "def ShR8(YKHO):\n return YKHO.name...
[ "0.81590754", "0.75438917", "0.75438917", "0.7506799", "0.7506799", "0.7494781", "0.7494781", "0.74694926", "0.74694926", "0.74694926", "0.74694926", "0.74694926", "0.74694926", "0.74694926", "0.74694926", "0.74694926", "0.7446834", "0.7428631", "0.7416839", "0.74129385", "0....
0.0
-1
the unique identifier for the export.
def id(YKHO): return YKHO._id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jCLa(YKHO):\n return YKHO._export_id", "def ShR8(YKHO):\n return f'{YKHO._entry_id}_{YKHO._device_output_port}'", "def ShR8(YKHO):\n return f'{YKHO.glances_data.host}-{YKHO.name}'", "def CpvB(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'unique_identifier')", "def ShR8(YKHO):\n ret...
[ "0.84453946", "0.7991076", "0.7803757", "0.7671728", "0.76555175", "0.76555175", "0.76382744", "0.7619685", "0.7594131", "0.75924474", "0.75563943", "0.75563943", "0.75563943", "0.75563943", "0.75563943", "0.75563943", "0.75563943", "0.75563943", "0.75563943", "0.753179", "0....
0.0
-1
(int) > int Return 1 less than i; raise an IndexError if i is 0.
def eHNT(YRbF): if YRbF == 0: WKvO = IndexError('Hey, i was zero.') raise WKvO else: return YRbF - 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QCff(YKHO, YRbF):\n exwG = YKHO._count\n return -exwG <= YRbF < exwG", "def QCff(YKHO, YRbF):\n exwG = YKHO._count\n return -exwG <= YRbF < exwG", "def QCff(YKHO, YRbF):\n exwG = YKHO._count\n return -exwG <= YRbF < exwG", "def DtEw(YRbF, bGrB):\n return qkSJ.less(YRbF, wZwd)", "de...
[ "0.62669253", "0.62669253", "0.62669253", "0.6117388", "0.6087468", "0.60849583", "0.6057743", "0.6048686", "0.60318094", "0.6017532", "0.59644675", "0.5930334", "0.5899177", "0.585523", "0.583829", "0.5832205", "0.58001685", "0.57721627", "0.5762543", "0.5752795", "0.5752735...
0.5948502
11
Derives an authentication password from the provided user password and config.
def Ltge(fEQs, VsZH, qSiL, OnWS, q2di): DDLl = Fyo1() sHja = EdGu(algorithm=zr4t.SHA512(), length=q2di, salt='{}-authentication-{}'.format(qSiL, fEQs).encode(ggdP), iterations=OnWS, backend=DDLl) return sHja.derive(key_material=VsZH.encode(ggdP))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jTXt():\n Hy7s.environ['AUTH_PASSWORD'] = jf1V.hash('password')\n return 'password'", "def AuKh(GPtr: ClusterConfig, jTXt: Optional[str]=None) -> str:\n if QJo9().password is not None:\n return QJo9().password\n if jTXt is not None:\n return jTXt\n return AOO4.getpass('Password f...
[ "0.70531166", "0.66167474", "0.65911406", "0.6528636", "0.6450579", "0.6412961", "0.6373328", "0.63729596", "0.6356345", "0.6348069", "0.6303854", "0.6245675", "0.6239603", "0.62126523", "0.6187868", "0.61687845", "0.61687845", "0.61687845", "0.61567545", "0.6153454", "0.6147...
0.0
-1
Check that a set of boxes are valid.
def DoU8(oUSw, TVTK=0, H2v2=0): o4D3 = oUSw[:, 0] si3g = oUSw[:, 1] ajwV = oUSw[:, 2] skBL = oUSw[:, 3] assert (o4D3 >= 0).all() assert (si3g >= 0).all() assert (ajwV >= o4D3).all() assert (skBL >= si3g).all() assert (ajwV < TVTK).all() assert (skBL < H2v2).all()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KaD6(hkxX):\n d_dr = BanS(hkxX, value_len=0)\n if d_dr:\n bo34.warning('Invalid boxes found: {}'.format(d_dr))\n return True\n Fd4y = wuzq(hkxX) == 81\n if Fd4y is True and SGVO(hkxX) is False:\n return False\n return False", "def V6It(oUSw, TVTK=0, H2v2=0):\n o4D3 = oU...
[ "0.77642274", "0.76497185", "0.7627813", "0.7129808", "0.7108383", "0.70715505", "0.6957241", "0.6939812", "0.6817792", "0.6801334", "0.679927", "0.6792914", "0.6778803", "0.6773748", "0.66432035", "0.6639683", "0.662112", "0.6616386", "0.6590149", "0.6572756", "0.65653247", ...
0.77572155
1
Determine the Jaccard Similarity of binary array a and array b. Input a binary array b binary array Return len(intersection(a,b)) / len(union(a,b))
def kp2I(jzdc, Fg_i): return oyIN.sum(jzdc.multiply(Fg_i)) / oyIN.sum(jzdc + Fg_i)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dmg5(jzdc, Fg_i):\n jzdc = set(jzdc)\n Fg_i = set(Fg_i)\n iQin = len(jzdc.intersection(Fg_i))\n b65I = len(jzdc.union(Fg_i))\n return iQin / b65I", "def kp2I(k0lF, tjUW):\n iQin = k0lF.multiply(tjUW).sum(axis=1)\n b65I = (k0lF + tjUW > 0).sum(axis=1)\n r845 = oyIN.divide(iQin, b65I)\n...
[ "0.8127059", "0.79948086", "0.7821668", "0.77605987", "0.774446", "0.77395904", "0.7696016", "0.7686105", "0.7672992", "0.7672057", "0.7670122", "0.76569545", "0.7511381", "0.74750906", "0.74670476", "0.74284697", "0.7415163", "0.73789036", "0.73404723", "0.7296858", "0.72533...
0.80033404
1
Determine the percentage of corresponding signatures Input a int array (list of signatures) b int array (list of signatures) Return len(intersection(a,b)) / len(union(a,b))
def RtG0(jzdc, Fg_i): return len(oyIN.where(jzdc == Fg_i)[0]) / len(jzdc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EPIu(XOOk, pHXX, gwAu=False):\n if gwAu == False:\n return oyIN.sum(XOOk == pHXX) / XOOk.size\n else:\n return oyIN.sum(oyIN.logical_and(XOOk > gwAu, pHXX > gwAu)) / oyIN.sum(oyIN.logical_or(XOOk > gwAu, pHXX > gwAu))", "def X1c3(jzdc, Fg_i):\n OnDi = NMzd(jzdc)\n PIOG = NMzd(Fg_i)\...
[ "0.69586796", "0.693545", "0.6915706", "0.67303365", "0.6591051", "0.65022403", "0.64306456", "0.63791466", "0.6282685", "0.6275443", "0.62358654", "0.6228571", "0.6209701", "0.61942047", "0.6189175", "0.6165143", "0.6157254", "0.6153365", "0.6136054", "0.61018157", "0.609216...
0.790988
0
Returns a Python object decoded from JSON object(s) in raw Some responses from the IPFS api are a concatenated string of JSON objects, which crashes json.loads(), so we need to use this instead as a general approach. >>> coder = Json() >>> coder.parse("[0, 1, 2, 3][4, 5, 6, 7]") [[0, 1, 2, 3], [4, 5, 6, 7]]
def hfK9(YKHO, m6Me): zEKB = m6Me.strip() dixj = [] YEnM, or8S = YKHO.decoder.raw_decode(zEKB) dixj.append(YEnM) DpUl = or8S while DpUl < len(zEKB) - 1: YEnM, or8S = YKHO.decoder.raw_decode(zEKB[DpUl:]) dixj.append(YEnM) DpUl += or8S if len(dixj) == 1: return ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x8I_(YKHO, zEKB):\n return qQXR.loads(zEKB)", "def hfK9(YKHO, m6Me):\n zEKB = m6Me.strip()\n dixj = []\n YEnM, or8S = YKHO.decoder.raw_decode(zEKB)\n dixj.append(YEnM)\n DpUl = or8S\n while DpUl < len(zEKB) - 1:\n if zEKB[DpUl] == '\\n':\n DpUl += 1\n YEnM, or8S ...
[ "0.7281344", "0.71641785", "0.7061805", "0.7060185", "0.6967963", "0.6898262", "0.6814301", "0.68112385", "0.680647", "0.6804513", "0.6783562", "0.6779731", "0.6755859", "0.6749325", "0.6747838", "0.6732495", "0.6725368", "0.6724315", "0.6720033", "0.67085993", "0.669778", ...
0.7459377
0
>>> winnercheck([0, 3, 4, 1, 0, 0, 2, 0, 3, 3, 0, 0, 0, 0, 0, 0, 0], 8, 1) True >>> winnercheck([0, 3, 4, 1, 0, 0, 2, 0, 3, 3, 0, 0, 0, 0, 0, 0, 0], 10, 1) False >>> winnercheck([0, 3, 4, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 3, 0], 8, 1) True
def UoBg(iBIi, exwG: int, a1PO: int): if a1PO == 1: for YRbF in range(3): if iBIi[-2 - YRbF] > 0: exwG -= iBIi[-2 - YRbF] elif a1PO == -1: for YRbF in range(3): if iBIi[1 + YRbF] < 0: exwG += iBIi[1 + YRbF] if exwG == 0: return ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ND5o(YKHO):\n if YKHO.board[7] == YKHO.board[8] == YKHO.board[9] != ' ':\n YKHO.print_board()\n print(f'***{YKHO.board[7]} is the winner!***')\n YKHO.count_wins(YKHO.board[7])\n return True\n elif YKHO.board[4] == YKHO.board[5] == YKHO.board[6] != ' ':\n YKHO.print_boar...
[ "0.7350048", "0.7318059", "0.7220993", "0.71854264", "0.7165702", "0.712944", "0.70973545", "0.7086942", "0.70440537", "0.70232517", "0.70113456", "0.6984353", "0.6907108", "0.68951803", "0.6891738", "0.6886049", "0.6839275", "0.6836595", "0.68293816", "0.68267167", "0.680254...
0.67702436
23
Checks whether the given set of prenexnormalform sentences is primitively closed.
def TCcq(Rhv4: AbstractSet[Formula]) -> bool: for yAmx in Rhv4: assert Oydg(yAmx) and len(yAmx.free_variables()) == 0 rNCd = OMHJ(Rhv4) for koMu in jNbO(Rhv4): Uk9h = [XP5J for XP5J in Hs6x.product(rNCd, repeat=koMu[1])] for C3ST in Uk9h: if RWlt(koMu[0], [aw0m(WKvO) for ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TCcq(Rhv4: AbstractSet[Formula]) -> bool:\n for yAmx in Rhv4:\n assert Oydg(yAmx) and len(yAmx.free_variables()) == 0", "def SEEh(Rhv4: AbstractSet[Formula]) -> bool:\n for yAmx in Rhv4:\n assert Oydg(yAmx) and len(yAmx.free_variables()) == 0\n return TCcq(Rhv4) and DCtd(Rhv4) and AaPQ...
[ "0.84223783", "0.79330117", "0.7899431", "0.78847826", "0.779058", "0.7486815", "0.7365922", "0.70731086", "0.6855329", "0.66710246", "0.64126474", "0.6093124", "0.60499585", "0.60098845", "0.5788951", "0.57397985", "0.5732941", "0.56809276", "0.5663453", "0.5646483", "0.5573...
0.80417883
1
Converts the given proof of a contradiction, whose assumptions/axioms include `existential` and `witness`, where the latter is an existential witness of the former, to a proof of a contradiction from the same assumptions without `witness`.
def pwxn(XwK4: Proof, si3H: str, Hfj3: Formula, xcty: Formula) -> MJZL: assert XwK4.is_valid() assert avzC(si3H) assert Ve9k(Hfj3) in XwK4.assumptions assert Ve9k(xcty) in XwK4.assumptions assert xcty.root == 'E' assert Hfj3 == xcty.predicate.substitute({xcty.variable: aw0m(si3H)}) for EBDa ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pwxn(XwK4, si3H):\n assert type(XwK4) is MJZL\n assert XwK4.assumptions[-2].templates == set()\n assert XwK4.assumptions[-1].templates == set()\n assert XwK4.assumptions[-2].formula.root == 'E'\n assert XwK4.assumptions[-1].formula == XwK4.assumptions[-2].formula.predicate.substitute({XwK4.assum...
[ "0.71252316", "0.6792827", "0.66877717", "0.63695425", "0.6270815", "0.62611747", "0.6197025", "0.5952302", "0.5922369", "0.56566924", "0.5514667", "0.5191752", "0.50896484", "0.5067015", "0.49837106", "0.49591884", "0.490548", "0.4896094", "0.4867718", "0.486559", "0.4821187...
0.68848896
1
tells whether the stack is empty INPUTS none OUTPUTS BOOL true if the stack is empty
def lsmZ(YKHO): return len(YKHO.stack) == 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lsmZ(YKHO):\n if YKHO.myStack.empty():\n return True\n else:\n return False", "def FBfn(E5BI):\n return E5BI.top is None", "def FBfn(YKHO):\n return YKHO.stack == []", "def FBfn(YKHO):\n return YKHO.stack == []", "def FBfn(YKHO):\n return YKHO.stack == []", "def FBfn(Y...
[ "0.8882095", "0.88757837", "0.8872969", "0.88036513", "0.88036513", "0.88036513", "0.8765163", "0.8727333", "0.8727333", "0.8713222", "0.86936355", "0.86383283", "0.86188316", "0.8612737", "0.8594108", "0.8590682", "0.8590682", "0.85738605", "0.8571809", "0.85616064", "0.8545...
0.8632479
12
Dense version of GAT.
def FIMM(YKHO, mQkE, l_wy, q1vv, hr1G, Cwt5, prkQ): super(d3Ya, YKHO).__init__() YKHO.dropout = hr1G YKHO.number_of_actions = 2 YKHO.gamma = 0.99 YKHO.final_epsilon = 0.0001 YKHO.initial_epsilon = 0.001 YKHO.number_of_iterations = 10000 YKHO.replay_memory_size = 5000 YKHO.minibatch_s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def y4I9(YKHO):\n YKHO.g = YKHO.tensor.calcBhattacharyya(YKHO.l)", "def ZVsL(YKHO):\n qi6C = [[ZylS.identity(Vlb9) for Vlb9 in YKHO.params] for aTqo in range(YKHO.batch_size_G)]\n KgqM = ZylS.split(YKHO.X, YKHO.batch_size_G)\n WVfN = ZylS.split(YKHO.y, YKHO.batch_size_G)\n EinP = [YKHO.model_fun(Z...
[ "0.64760274", "0.61745125", "0.6032927", "0.6025716", "0.5986026", "0.5918554", "0.5891656", "0.58866566", "0.58427864", "0.58353937", "0.5828208", "0.5822424", "0.58105785", "0.5805133", "0.5799729", "0.57900155", "0.5789868", "0.57867205", "0.57813394", "0.57669044", "0.576...
0.0
-1
Dense version of GAT.
def FIMM(YKHO, mQkE, l_wy, q1vv, hr1G, Cwt5, prkQ): super(euTn, YKHO).__init__() YKHO.number_of_actions = 2 YKHO.gamma = 0.99 YKHO.final_epsilon = 0.0001 YKHO.initial_epsilon = 0.001 YKHO.number_of_iterations = 10000 YKHO.replay_memory_size = 5000 YKHO.minibatch_size = 50 YKHO.fc1 = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def y4I9(YKHO):\n YKHO.g = YKHO.tensor.calcBhattacharyya(YKHO.l)", "def ZVsL(YKHO):\n qi6C = [[ZylS.identity(Vlb9) for Vlb9 in YKHO.params] for aTqo in range(YKHO.batch_size_G)]\n KgqM = ZylS.split(YKHO.X, YKHO.batch_size_G)\n WVfN = ZylS.split(YKHO.y, YKHO.batch_size_G)\n EinP = [YKHO.model_fun(Z...
[ "0.64760274", "0.61745125", "0.6032927", "0.6025716", "0.5986026", "0.5918554", "0.5891656", "0.58866566", "0.58427864", "0.58353937", "0.5828208", "0.5822424", "0.58105785", "0.5805133", "0.5799729", "0.57900155", "0.5789868", "0.57867205", "0.57813394", "0.57669044", "0.576...
0.0
-1
Retrieve the loaders (train, test, validation and memory) for the given dataset
def SELc(GPtr: dict, yokr: int=42) -> x1iM[ht2j.utils.data.DataLoader]: __n6 = GPtr['dataset_name'] h_xa = GPtr['dataset_dir'] IS88 = GPtr['batch_size_train'] h4s4 = GPtr['batch_size_test'] M5Kd = GPtr['train_examples'] TpHK = GPtr[__n6]['mem_examples'] if M5Kd < IS88: IS88 = M5Kd ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pYAW(qIxc, b0j5):\n EPL3, qBlx = uaeM(qIxc, b0j5)\n bo34.info('Build train and validation dataloaders')\n Pa1c = pVAc(EPL3, sampler=None, collate_fn=QxcP, batch_size=qIxc.train_batch_size, shuffle=not qIxc.distributed)\n fC9l = pVAc(qBlx, sampler=None, collate_fn=QxcP, batch_size=qIxc.valid_batch_s...
[ "0.8021779", "0.79926336", "0.79375654", "0.78577083", "0.78020394", "0.77241194", "0.770828", "0.7678208", "0.76523215", "0.76440215", "0.7602531", "0.74563456", "0.7442482", "0.7353416", "0.73307717", "0.7305193", "0.72061086", "0.7184855", "0.71659046", "0.7150213", "0.713...
0.74891764
11
Sets the method of this ApiEndpoint.
def NKcE(YKHO, NKcE): BbPm = ['GET', 'POST', 'PUT'] if NKcE not in BbPm: raise ValueError('Invalid value for `method` ({0}), must be one of {1}'.format(NKcE, BbPm)) YKHO._method = NKcE
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GjSa(YKHO, GjSa):\n YKHO._http_method = GjSa", "def NKcE(YKHO, NKcE: str):\n YKHO._method = NKcE", "def UPfL(YKHO, NKcE):\n if not isinstance(NKcE, str):\n raise TypeError('Unexpected type {}'.format(type(NKcE)))\n YKHO._method = NKcE", "def NKcE(YKHO, NKcE):\n YKHO._method = NKcE",...
[ "0.7551635", "0.75315785", "0.7510591", "0.72679836", "0.72462904", "0.7206521", "0.7206521", "0.7206521", "0.7206521", "0.7066657", "0.70556426", "0.7011654", "0.7002861", "0.6908798", "0.67002714", "0.65842724", "0.6504107", "0.6504107", "0.6438161", "0.6391434", "0.6326057...
0.7185845
9
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
Normalize imprecise gene coordinates, will convert 1234 into 1234.
def ow0_(SeCR): if isinstance(SeCR, int): return SeCR if isinstance(SeCR, str): if SeCR.startswith('<') or SeCR.startswith('>'): SeCR = SeCR[1:] if SeCR.isnumeric(): return int(SeCR) raise AttributeError('Invalid gene coord {} ({})'.format(SeCR, type(SeCR)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vcg6(YKHO):\n Wmsw = MF4b(map(lambda YRbF: YRbF / float(YRbF.sum()), YKHO.profile_raw))\n YKHO.profile_normalized_to_gene = rFY6(Wmsw)", "def NkkI(WKvO):\n return WKvO", "def NkkI(YKHO, WKvO):\n pass", "def jnV4(YKHO):\n pass", "def ackG(YKHO):\n tjkb = ML2l(YKHO[0], YKHO[1])\n d6p...
[ "0.6606057", "0.65240407", "0.645764", "0.6270094", "0.6107049", "0.596428", "0.58924085", "0.58924085", "0.58669686", "0.5857088", "0.58467597", "0.5825028", "0.581737", "0.58105606", "0.5805596", "0.57906646", "0.5785081", "0.57844055", "0.578115", "0.5776165", "0.57758397"...
0.7253955
0
Get text from an XML using its tag
def Go4X(U6D_, TZ9E): WRnd = U6D_.find(TZ9E) if isinstance(WRnd, cFlk): return WRnd.text return ''
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tCBU(YKHO, _63S, TZ9E):\n try:\n return YKHO.xml.find(_63S + TZ9E).text.strip().lower().replace('\\n', ' ')\n except:\n return ''", "def JMXB(tk5Y, Tj3G):\n Q6kx = tk5Y.getElementsByTagName(Tj3G)[0]\n RBVb = ''\n for Q6kx in Q6kx.childNodes:\n if Q6kx.TEXT_NODE == Q6kx.nod...
[ "0.7858641", "0.77310985", "0.75734514", "0.7365493", "0.71825284", "0.70145416", "0.69938385", "0.6914621", "0.69086975", "0.68811744", "0.68607295", "0.68144405", "0.6805433", "0.6803697", "0.6785236", "0.6758404", "0.6736429", "0.67252994", "0.6703912", "0.6642646", "0.663...
0.67620987
15
Returns the placeholders for the model. Depending on the mode, can return placeholders for either just the generator or both the generator and discriminator.
def pGwi(YKHO): YKHO.input_placeholder = ZylS.placeholder(ZylS.float32, shape=(GPtr.batch_size, GPtr.max_phr_len, GPtr.output_features), name='input_placeholder') YKHO.speaker_labels = ZylS.placeholder(ZylS.float32, shape=GPtr.batch_size, name='singer_placeholder') YKHO.speaker_onehot_labels = ZylS.one_hot(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RGPB():\n ZXEb = ZylS.placeholder(dtype=ZylS.int32, shape=(None, None), name='ph_inp_sentences')\n ao9t = ZylS.placeholder(dtype=ZylS.float32, name='ph_mel_specs')\n O5Qb = ZylS.placeholder(dtype=ZylS.float32, name='ph_lin_specs')\n qyJk = ZylS.placeholder(dtype=ZylS.int32, name='ph_sentence_length...
[ "0.6076693", "0.6064031", "0.5905459", "0.59026086", "0.59026086", "0.5889921", "0.5865141", "0.58561975", "0.583022", "0.5755281", "0.5390316", "0.5334039", "0.5292108", "0.524436", "0.5209764", "0.51967204", "0.51295596", "0.51295596", "0.51017135", "0.509613", "0.50418955"...
0.6086154
0
Returns the placeholders for the model. Depending on the mode, can return placeholders for either just the generator or both the generator and discriminator.
def pGwi(YKHO): YKHO.input_placeholder = ZylS.placeholder(ZylS.float32, shape=(GPtr.batch_size, GPtr.max_phr_len, GPtr.output_features), name='input_placeholder') YKHO.stft_placeholder = ZylS.placeholder(ZylS.float32, shape=(GPtr.batch_size, GPtr.max_phr_len, GPtr.stft_features), name='stft_placeholder') YK...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pGwi(YKHO):\n YKHO.input_placeholder = ZylS.placeholder(ZylS.float32, shape=(GPtr.batch_size, GPtr.max_phr_len, GPtr.output_features), name='input_placeholder')\n YKHO.speaker_labels = ZylS.placeholder(ZylS.float32, shape=GPtr.batch_size, name='singer_placeholder')\n YKHO.speaker_onehot_labels = ZylS....
[ "0.6086154", "0.6076693", "0.6064031", "0.5905459", "0.59026086", "0.59026086", "0.5889921", "0.5865141", "0.58561975", "0.5755281", "0.5390316", "0.5334039", "0.5292108", "0.524436", "0.5209764", "0.51967204", "0.51295596", "0.51295596", "0.51017135", "0.509613", "0.50418955...
0.583022
9
Returns the placeholders for the model. Depending on the mode, can return placeholders for either just the generator or both the generator and discriminator.
def pGwi(YKHO): YKHO.input_placeholder = ZylS.placeholder(ZylS.float32, shape=(GPtr.batch_size, GPtr.max_phr_len, GPtr.stft_features), name='input_placeholder') YKHO.harm_placeholder = ZylS.placeholder(ZylS.float32, shape=(GPtr.batch_size, GPtr.max_phr_len, 60), name='harm_placeholder') YKHO.ap_placeholder ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pGwi(YKHO):\n YKHO.input_placeholder = ZylS.placeholder(ZylS.float32, shape=(GPtr.batch_size, GPtr.max_phr_len, GPtr.output_features), name='input_placeholder')\n YKHO.speaker_labels = ZylS.placeholder(ZylS.float32, shape=GPtr.batch_size, name='singer_placeholder')\n YKHO.speaker_onehot_labels = ZylS....
[ "0.6086154", "0.6076693", "0.5905459", "0.59026086", "0.59026086", "0.5889921", "0.5865141", "0.58561975", "0.583022", "0.5755281", "0.5390316", "0.5334039", "0.5292108", "0.524436", "0.5209764", "0.51967204", "0.51295596", "0.51295596", "0.51017135", "0.509613", "0.50418955"...
0.6064031
2
Generate placeholder variables to represent the input tensors. These placeholders are used as inputs by the rest of the model building code and will be fed from the downloaded data in the .run() loop, below.
def i6iB(Ep8u): Cqbr = ZylS.placeholder(ZylS.float32, shape=(Ep8u, w37D.IMAGE_SIZE, w37D.IMAGE_SIZE, 1)) eqSH = ZylS.placeholder(ZylS.int32, shape=(Ep8u,)) return (Cqbr, eqSH)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gip7():\n g4y1 = ZylS.placeholder(ZylS.int32, [None, None], name='input')\n x6A0 = ZylS.placeholder(ZylS.int32, [None, None])\n b0Ix = ZylS.placeholder(ZylS.float32)\n xWWc = ZylS.placeholder(ZylS.float32, name='keep_probability')\n jHWG = ZylS.placeholder(ZylS.int32, (None,), name='target_seq_l...
[ "0.7194388", "0.71305", "0.70856446", "0.70647323", "0.70643824", "0.7060013", "0.70341533", "0.69278276", "0.69193166", "0.69181955", "0.68994534", "0.6850812", "0.6827455", "0.6808683", "0.67910856", "0.67777497", "0.67777497", "0.67476344", "0.6743771", "0.67421335", "0.67...
0.6517438
49
Returns the state the player is in, which can either be "up" or "down".
def GBfH(YKHO): return YKHO.state
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QTBn(YKHO):\n return YKHO._player_state", "def QTBn(YKHO):\n return YKHO._player_state", "def QTBn(YKHO):\n return YKHO._player_state", "def QTBn(YKHO):\n return YKHO._player_state", "def ja6o(YKHO):\n return YKHO.game.get_state()", "def QTBn(YKHO):\n QTBn = YKHO._player_variables.g...
[ "0.7650659", "0.7650659", "0.7650659", "0.7650659", "0.7496056", "0.74879265", "0.7358029", "0.7189173", "0.7180479", "0.71747464", "0.71289736", "0.7083701", "0.70754766", "0.70536256", "0.7024576", "0.6979255", "0.69377315", "0.6935677", "0.69085306", "0.6903551", "0.689901...
0.0
-1
Reads the contents of a file into a string.
def Ueki(pmON, Tuqy='r'): with open(pmON, Tuqy) as eHNT: return eHNT.read()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oQFW(Ux0P: str) -> str:\n with open(Ux0P, 'r', newline='') as eHNT:\n return eHNT.read()", "def Ueki(nUeQ):\n eHNT = open(str(nUeQ), 'r')\n vIwR = eHNT.read()\n eHNT.close()\n return vIwR", "def Nwr9(IznC) -> str:\n with open(IznC, 'r') as eHNT:\n hGN5 = eHNT.read()\n ret...
[ "0.83046544", "0.8190414", "0.81756634", "0.816618", "0.8163685", "0.80097747", "0.80064374", "0.8005443", "0.79872125", "0.79641896", "0.7960349", "0.7949934", "0.79431134", "0.7919641", "0.7904098", "0.7878808", "0.7872922", "0.7870509", "0.78147054", "0.7796387", "0.777123...
0.0
-1
Build the filter for a SQL query from a freetextsearch term or based on individual filters applied to labeled columns declared in field_to_col_map. FTS implementation is rudimentary since it applies the same LIKE filter for all declared columns in field_to_col_map, where the individual search terms stated in field_filt...
def YoNy(xDcj, XB5D, i9cp=None, FfXg={}, NtDX=[]): if any(map(lambda hkS8: hkS8 not in XB5D, FfXg)): raise Exception('invalid field to filter') DieS = None r519 = None for xC3W in XB5D: q6CY = xC3W in FfXg EMVu = not q6CY and i9cp if q6CY: gc6x = u'%' + FfXg.g...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fRXs(YKHO, umWR):\n for DT55, Jyyj in enumerate(YKHO.fields):\n fNjO = YKHO.search_filters.get('sSearch_%d' % DT55, None)\n O3Tr = YKHO.search_fields.get(Jyyj, True)\n if O3Tr and fNjO:\n if isinstance(O3Tr, exCv):\n if 'select' in YKHO.extra and Jyyj in YKHO.e...
[ "0.6262345", "0.6038062", "0.58706445", "0.58229715", "0.580989", "0.57898766", "0.5763377", "0.574928", "0.57177204", "0.5705096", "0.5677224", "0.567197", "0.56560403", "0.56240726", "0.5620094", "0.5605156", "0.5600603", "0.5545937", "0.55153275", "0.54624194", "0.5460399"...
0.8230389
0
Add the specified members to the set stored at key ==> the number of elements that were added to the set, not including all the elements already present into the set.
def gsgY(): XP5J(Rdj0.sadd('country', 'VN', 'JP', 'US')) Rdj0.sadd('country', 'VN') XP5J(Rdj0.smembers('country')) XP5J(Rdj0.sismember('country', 'VN')) XP5J(Rdj0.srem('country', 'US')) XP5J(Rdj0.spop('country'))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pdPO(YKHO, H5ew, mS46):\n MhDn = True\n qfYp = int(-1)\n WFks = int(0)\n for YRbF in range(len(YKHO.keys)):\n if YKHO.keys[YRbF][0] == H5ew:\n MhDn = False\n qfYp = YRbF\n rqrh = YKHO.__dict__[H5ew]\n e_2d = int(1)\n if type(rqrh) == oyI...
[ "0.61411726", "0.6035584", "0.5935491", "0.5742482", "0.56779665", "0.5611998", "0.55496395", "0.55458844", "0.54912555", "0.5481446", "0.54787254", "0.54455954", "0.54258597", "0.5387618", "0.537821", "0.53739977", "0.5349075", "0.5326276", "0.53239244", "0.5316682", "0.5303...
0.0
-1
Static method to get an application state object. The first time this method is called, an application state object is created. Afterwards, on subsequent calls that same object will be returned.
def ja6o(): if ffjU.state == None: ffjU.state = ffjU() return ffjU.state
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def s7lh(YKHO) -> ffjU:\n return YKHO._app_state", "async def get_application(YKHO):\n return DbxN()", "async def get_application(YKHO):\n return DbxN()", "def vMdO(YKHO):\n return Rqdq.ApplicationInstance()", "def dthn():\n if VIDJ is None:\n raise AssertionError('init_application() ...
[ "0.70766187", "0.63269377", "0.63269377", "0.63059527", "0.62317306", "0.6229723", "0.62050545", "0.6143735", "0.6023855", "0.59912777", "0.5974619", "0.5974619", "0.597", "0.594987", "0.59426415", "0.59426415", "0.59426415", "0.59426415", "0.59426415", "0.59426415", "0.59426...
0.7715018
0
Predictor to fill values at nodes before first sweep Default prediction for the sweepers, only copies the values to all collocation nodes This function overrides the base implementation by always initialising level.f to zero This is necessary since level.f stores the solution derivative in the fully implicit case, whic...
def YEmv(YKHO): aPd6 = YKHO.level V6IE = aPd6.prob aPd6.f[0] = V6IE.dtype_f(init=V6IE.init, val=0.0) for r8hN in range(1, YKHO.coll.num_nodes + 1): if YKHO.params.initial_guess == 'spread': aPd6.u[r8hN] = V6IE.dtype_u(aPd6.u[0]) aPd6.f[r8hN] = V6IE.dtype_f(init=V6IE.init,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def t6B3(YKHO):\n aPd6 = YKHO.level\n V6IE = aPd6.prob\n assert aPd6.status.unlocked\n E3D9 = YKHO.coll.num_nodes\n DN_4 = aPd6.u[0]\n eAkl = YKHO.integrate()\n for r8hN in range(1, E3D9 + 1):\n for r845 in range(1, E3D9 + 1):\n eAkl[r8hN - 1] -= aPd6.dt * YKHO.QI[r8hN, r845]...
[ "0.5494554", "0.5381215", "0.5375833", "0.5289223", "0.5284162", "0.5230885", "0.52115417", "0.5137692", "0.5135923", "0.5113372", "0.51106805", "0.51061505", "0.51024574", "0.50905114", "0.5082824", "0.50799334", "0.50590026", "0.5033644", "0.50113106", "0.49781632", "0.4975...
0.6117935
0
Computes the precision for the specified values of k
def vjyh(hlel, pan_, hz5a=(1,)): Gq8e = max(hz5a) Ep8u = pan_.size(0) bGrB, nvEb = hlel.topk(Gq8e, 1, True, True) nvEb = nvEb.t() gXXc = nvEb.eq(pan_.view(1, -1).expand_as(nvEb)) Ylbp = [] for G1Hx in hz5a: R2Dg = gXXc[:G1Hx].view(-1).float().sum(0, keepdim=True) Ylbp.append(...
{ "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
Returns 1 if variable is available in the catalog
def uUFU(YKHO): V8MQ = 0 Es0b = YKHO.getDocumentedObject() if hasattr(Es0b, 'for_catalog'): V8MQ = Es0b.for_catalog if V8MQ: return 'Yes' else: return 'No'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lgif(YKHO, SRYB):\n return SRYB in YKHO.data", "def fXJd(YKHO, GLrz):\n GLrz = GLrz.split('.')[1]\n if GLrz in YKHO.staticVariables or GLrz in YKHO.dynamicVariables:\n return True\n return False", "def IKfL(YKHO):\n return YKHO.object == 'variable'", "def Kyfi(YKHO, SRYB: str) -> bo...
[ "0.7357724", "0.6627783", "0.65973246", "0.6587935", "0.6530094", "0.64225626", "0.6416085", "0.6410459", "0.6406849", "0.6386799", "0.63731", "0.6367922", "0.6343904", "0.6328408", "0.6303147", "0.62900937", "0.62888354", "0.62444526", "0.61960673", "0.6164833", "0.61644703"...
0.6690619
1
Returns a dictionary containing information about the user's chip usage, automatic substitutions and picks, alongside general information about each gameweek.
def pvLb(YKHO): pvLb = {} for A_s0 in range(1, 39): iEJi = G4JS.get('{}entry/{}/event/{}/picks'.format(_RsZ, YKHO.id, A_s0)) if iEJi.status_code == 404: return pvLb pvLb[A_s0] = iEJi.json() return pvLb
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x_MU(YKHO, A_s0):\n return YKHO.picks[A_s0]['active_chip']", "def iYML(YKHO):\n Vzk6 = {}\n for CjKC in YKHO.soup.find_all(xW8L, class_='panel panel-default'):\n _c1T = CjKC.find(xW8L, class_='panel-heading').find(E1Nz).get_text()\n Vzk6[_c1T] = YKHO.get_day(CjKC)\n return Vzk6", ...
[ "0.6051617", "0.5571221", "0.55346537", "0.5465832", "0.54561853", "0.5445986", "0.54264146", "0.5386501", "0.5382992", "0.53739053", "0.53683114", "0.53648484", "0.53602815", "0.53512686", "0.5350972", "0.5328931", "0.53034717", "0.52942395", "0.5291372", "0.5269116", "0.526...
0.55425906
2
Calculate average score for words.
def Vfhq(P2Jo, B34d): SOxw = {} for CgW4 in P2Jo.keys(): for VG2X in B34d.keys(): if CgW4 == VG2X: SOxw[CgW4] = P2Jo[CgW4] / B34d[VG2X] return SOxw
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uDD6(OhEl) -> int:\n vFY_ = 0\n for bTKY in OhEl:\n vFY_ += OhEl[bTKY]\n hZV7 = vFY_ / len(OhEl)\n return hZV7", "def TqJZ(YKHO, Rhv4):\n return oyIN.mean(list(map(lambda vb0a: len(vb0a.split()), Rhv4)))", "def S8vG(YKHO):\n tyNF = str.maketrans('!?.`-\\'\"\\n', '!!! ')\n hG...
[ "0.77969086", "0.7644016", "0.7435459", "0.7401734", "0.72923636", "0.7286924", "0.72841495", "0.72495055", "0.71957874", "0.71668917", "0.7144571", "0.712014", "0.7113257", "0.7095406", "0.70656675", "0.7059139", "0.705844", "0.70544535", "0.70544535", "0.70537066", "0.70428...
0.0
-1
Test the api can update a given event.
def PJXl(YKHO): ehEq = bMcB() ehEq.max_price = 99.99 ehEq.__dict__.__delitem__('_state') nPrm = PjZe(ehEq.__dict__, default=erUo) Ylbp = YKHO.client.put(gxEw('event-detail', kwargs={'pk': YKHO.event.id}), ehEq.__dict__, format='json') YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_200_OK) YKHO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IWPy(YKHO):\n tvqc = YKHO.create_event()\n sl_K = {'title': 'New music concert', 'price': '63.72', 'currency_code': 'GBP', 'time': '2021-03-29T00:00:00', 'number_of_tickets': 20}\n YKHO.update_event(sl_K, tvqc['id'])\n sl_K = {'resellers': [{'seller_id': oRNa.res_1['id'], 'number_of_tickets': 30}]}...
[ "0.7810569", "0.75569195", "0.736643", "0.73495543", "0.7284948", "0.7254592", "0.7189879", "0.71065044", "0.7087512", "0.70823056", "0.705936", "0.7039561", "0.7023807", "0.7012875", "0.6965924", "0.6965924", "0.6870619", "0.68157256", "0.6787286", "0.6755035", "0.6742835", ...
0.7671216
1
Split the string at the comma and return the list.
def WN62(vIwR): if type(vIwR) is not str: raise ValueError('This is not a string') return vIwR.split(',')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PNRb(NACC):\n list = NACC.split(',')\n return list", "def y8Pc(YKHO, KCHu):\n return ZbWC.split('[,\\\\s]+', KCHu)", "def n0SL(BWXx):\n return BWXx.split(',')", "def Lr0b(NPoT):\n hlel = NPoT.split(',')\n return hlel", "def dqbO(RhpO):\n return [] if not RhpO else [Z9rn for Z9rn in...
[ "0.8047548", "0.80364305", "0.7983321", "0.7945769", "0.7855037", "0.7797574", "0.77776843", "0.77428716", "0.7711665", "0.7685154", "0.76597923", "0.75706565", "0.7531005", "0.75289243", "0.7418661", "0.74062985", "0.7373697", "0.73208284", "0.7303215", "0.72956854", "0.7281...
0.7679434
10
Calculate rms value for each column in MxM matrix
def F_CJ(qw7D: np.ndarray): return oyIN.sqrt(oyIN.mean(oyIN.square(qw7D), axis=0))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ii_g(WKvO: np.ndarray) -> oyIN.ndarray:\n return oyIN.sqrt(NmYP(WKvO))", "def ii_g(YKHO) -> 'double':\n return hBPC.vnl_matrixD_rms(YKHO)", "def ii_g(YKHO) -> 'float':\n return hBPC.vnl_matrixF_rms(YKHO)", "def ii_g(nPrm):\n return PZyS(JBMS(Fyji(nPrm)))", "def ii_g(WKvO):\n GwEY = len(W...
[ "0.70072126", "0.6833405", "0.68207234", "0.6718202", "0.6679666", "0.662453", "0.65893614", "0.65709513", "0.65400684", "0.65189743", "0.6515786", "0.6482011", "0.64714265", "0.64710385", "0.6464552", "0.6461882", "0.6445054", "0.6433646", "0.641255", "0.6357812", "0.6346403...
0.703355
0
Returns true only if circbuf has no items.
def FBfn(YKHO): return YKHO.len == 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oMcT(YKHO):\n return YKHO.buffer.size == 0", "def FBfn(YKHO):\n return YKHO.cards == []", "def A4KR(YKHO):\n return len(YKHO) == 0", "def FBfn(YKHO):\n return YKHO.num_items == 0", "def lsmZ(YKHO) -> bool:\n if len(YKHO.inbox) + len(YKHO.buffer) == 0:\n return True\n else:\n ...
[ "0.73990333", "0.7398119", "0.73957443", "0.7371073", "0.73663276", "0.73551214", "0.7337748", "0.7321152", "0.7320069", "0.72689986", "0.7226059", "0.7226059", "0.72090304", "0.71994233", "0.7198919", "0.7189987", "0.71839726", "0.71769935", "0.7175655", "0.7175655", "0.7175...
0.0
-1
Returns true only if circbuf has no space.
def LWCs(YKHO): return YKHO.len == len(YKHO.buf)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R5Ut(YKHO):\n return len(YKHO.cards) < 5", "def FBfn(YKHO) -> bool:\n return YKHO.line_count() == 0", "def A4KR(YKHO):\n return len(YKHO) == 0", "def oMcT(YKHO):\n return YKHO.buffer.size == 0", "def P8Pf(YKHO):\n return True if ZbWC.match('^\\\\s*$', YKHO.data) else False", "def A4KR(...
[ "0.6741101", "0.6732742", "0.66716975", "0.665938", "0.6640063", "0.66239566", "0.6623702", "0.66009754", "0.65621114", "0.6561197", "0.65611154", "0.6560769", "0.65491766", "0.654561", "0.6479457", "0.6454495", "0.64536464", "0.6451689", "0.64486295", "0.64423305", "0.642931...
0.6439165
20
Activate the sqlalchemy backend.
def tyeH(): for Emd4 in SnBA: cdJr(Emd4)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mqPf(YKHO):\n from sqlalchemy import engine_from_config\n JGC4 = GPtr.get('sqlalchemy.master.url')\n if not JGC4:\n eHpk = engine_from_config(GPtr, 'sqlalchemy.')\n else:\n eHpk = engine_from_config(GPtr, 'sqlalchemy.master.')\n GPtr['balanced_engines'] = {'master': eHpk, 'slav...
[ "0.646546", "0.6378338", "0.637514", "0.62581944", "0.6249482", "0.6243224", "0.62036455", "0.61976403", "0.60595804", "0.6041161", "0.60291284", "0.6015198", "0.60129464", "0.600913", "0.6004767", "0.60018474", "0.5971377", "0.5947", "0.5897303", "0.5893633", "0.58710325", ...
0.0
-1
Return a list representing the decimal representation of a number. >>> decimal(55055) [5, 5, 0, 5, 5] >>> decimal(136) ['', 1, 3, 6]
def SOnQ(exwG): BDwY = [] if exwG >= 0: if exwG < 10: BDwY = [exwG] return BDwY else: BDwY = SOnQ(exwG // 10) + [exwG % 10] return BDwY else: exwG = -exwG if exwG < 10: BDwY = [exwG] return BDwY e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FPfF(mLGw):\n if mLGw == 0:\n return [0]\n im04 = []\n while mLGw:\n im04.insert(0, mLGw % 10)\n mLGw = mLGw / 10\n return im04", "def KjaE(YKHO, SOnQ):\n yv6U = []\n mLGw = SOnQ\n while mLGw > 0:\n yv6U.append(mLGw % 2)\n mLGw = epAf.floor(mLGw / 2)\n ...
[ "0.71591747", "0.7031213", "0.6753426", "0.6621648", "0.6454522", "0.63222784", "0.6249845", "0.6216867", "0.61849844", "0.61749923", "0.61726797", "0.61589575", "0.6083781", "0.6045981", "0.6016478", "0.6008999", "0.59717584", "0.5966501", "0.59533215", "0.58774966", "0.5816...
0.7119877
1
Returns True if the list is a palindrome. A palindrome is a list that reads the same forwards as backwards >>> is_palindrome([1, 2, 3, 4, 5]) False >>> is_palindrome(["p", "a", "l", "i", "n", "d", "r", "o", "m", "e"]) False >>> is_palindrome([True, False, True]) True >>> is_palindrome([]) True >>> is_palindrome(["a", "...
def ZMXj(yv6U): if len(yv6U) <= 1: return True elif yv6U[0] == yv6U[-1]: return ZMXj(yv6U[1:-1]) else: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oMv8(yv6U: list[int]) -> bool:\n for WKvO in yv6U:\n if not ZMXj(WKvO):\n return False\n return True", "def zBuY(YKHO):\n if YKHO.head is None:\n return False\n if YKHO.head.next is None:\n return True\n ZbOB = YKHO.head\n T6S7 = []\n while ZbOB is not Non...
[ "0.76642096", "0.7491381", "0.73257315", "0.7297845", "0.7287646", "0.7273832", "0.7264362", "0.720428", "0.7191792", "0.7144575", "0.7127419", "0.71270865", "0.7115196", "0.710593", "0.71013236", "0.7087936", "0.7060325", "0.7045384", "0.6997973", "0.6982412", "0.69784003", ...
0.7405367
2
Total variation norm is the second norm in the paper represented as R_V(x)
def GoZL(mXr4, UqYS=2): NMLV = mXr4[:, 0, :-1, :-1] dwlp = mXr4[:, 0, 1:, :-1] RUNt = mXr4[:, 0, :-1, 1:] TPaO = (((NMLV - dwlp) ** 2 + (NMLV - RUNt) ** 2) ** (UqYS / 2)).sum() NMLV = mXr4[:, 1, :-1, :-1] dwlp = mXr4[:, 1, 1:, :-1] RUNt = mXr4[:, 1, :-1, 1:] TPaO += (((NMLV - dwlp) ** 2 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CkYf(YKHO):\n lRRB = 0\n for BWXx in YKHO._v:\n lRRB += BWXx ** 2\n return PZyS(lRRB)", "def Au9l(P8oC, cAlv):\n return oyIN.sqrt(kttK(P8oC, cAlv, cAlv))", "def CkYf(SRYB, XP5J=1):\n return sum(abs(SRYB) ** XP5J) ** (1 / XP5J)", "def CkYf(iArr):\n wjRY = 0\n for YRbF in range(...
[ "0.7412505", "0.7304891", "0.7186679", "0.71435964", "0.70805025", "0.70749825", "0.70295995", "0.70292825", "0.70188594", "0.7017225", "0.69994265", "0.69793004", "0.69630647", "0.6954328", "0.6906682", "0.68981516", "0.6893022", "0.6890236", "0.68792033", "0.68712914", "0.6...
0.6483172
61
Apply gaussian filter to input.
def KVH6(YKHO, input): return YKHO.conv(input, weight=YKHO.weight, groups=YKHO.groups)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def raZd(YKHO):\n V2fX.gaussian_filter(YKHO.im, sigma=oyIN.random.rand(), output=YKHO.im)", "def apUX(VXjJ, KCHu):\n quCl = VXjJ.copy()\n LorG = V2fX.gaussian_filter(quCl, sigma=KCHu)\n return LorG", "def PINW(EcVT, WTkW):\n return oyIN.array([V2fX.gaussian_filter(WKvO, WTkW) for WKvO in EcVT])"...
[ "0.79962313", "0.79365885", "0.7868128", "0.78292423", "0.7639014", "0.7574671", "0.7448118", "0.74069744", "0.74044424", "0.73926187", "0.7338973", "0.72317576", "0.7201273", "0.71961117", "0.71732545", "0.7166604", "0.7147329", "0.7140427", "0.71200633", "0.711121", "0.7109...
0.0
-1
Performs a batch normalization followed by a ReLU.
def e32L(g4y1, JPu3, ZeQm=False, rrBf=None): g4y1 = laxr.layers.batch_normalization(g4y1, JPu3, cpu_variables=ZeQm, ema_decay=VKhi['ema_decay'], eps=VKhi['batch_norm_epsilon'], scope=rrBf) g4y1 = ZylS.nn.relu(g4y1) return g4y1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vWKW(YKHO, input, Tuqy):\n H0zq = YKHO.momentum\n if Tuqy == 'train':\n Nc6L = oyIN.mean(input)\n QrBZ = oyIN.var(input)\n YKHO.running_mean = H0zq * YKHO.running_mean + (1 - H0zq) * Nc6L\n YKHO.running_var = H0zq * YKHO.running_var + (1 - H0zq) * QrBZ\n mbJQ = input - ...
[ "0.69561195", "0.68267304", "0.674973", "0.6724042", "0.6697324", "0.6680035", "0.6658945", "0.6598223", "0.6568303", "0.6565555", "0.6555847", "0.65262914", "0.6521953", "0.6521595", "0.65019596", "0.6480877", "0.64801097", "0.64795494", "0.6460631", "0.64497024", "0.64486",...
0.65463996
11
Importing image and store contour as numpy array
def HZKJ(Pmlm): VXjJ = jbYn.imread(Pmlm, 0) jbYn.imshow('image.png', VXjJ) jbYn.waitKey(0) jbYn.destroyAllWindows() VXjJ = jbYn.bitwise_not(VXjJ) jbYn.imshow('image.png', VXjJ) jbYn.waitKey(0) jbYn.destroyAllWindows() Iowl, bGrB = jbYn.findContours(VXjJ, jbYn.RETR_EXTERNAL, jbYn.CHAI...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, QMAG, TVTK, H2v2):\n YKHO.logger = G9jH.getLogger('ContourTracer')\n G9jH.basicConfig(level=G9jH.INFO, filename='./counter_tracer.log', format='%(asctime)s %(message)s')\n YKHO.tess = oyIN.fromfile(QMAG, dtype='uint8', sep='')\n YKHO.tess = YKHO.tess.reshape((TVTK, H2v2))\n YKHO.tess ...
[ "0.6425723", "0.6356197", "0.63280725", "0.6256218", "0.6247728", "0.6203546", "0.61771744", "0.61494637", "0.60969853", "0.607552", "0.60491675", "0.6034502", "0.6033579", "0.60288626", "0.59895205", "0.5971922", "0.59327316", "0.5925199", "0.5912204", "0.5896231", "0.589553...
0.6719791
0
Constructs a R3D152 model.
def A067(mL4f=False, **B2fa): C3ST = l3hw(D12p, [3, 8, 36, 3], decomposed=False, **B2fa) Qi3c = 3 if 'num_channels' in B2fa: Qi3c = B2fa['num_channels'] if mL4f: C3ST = ZmVG(C3ST, 'resnet152', Qi3c) return C3ST
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DL79(**B2fa):\n C3ST = l3hw(D12p, [3, 8, 36, 3], decomposed=True, **B2fa)\n return C3ST", "def hVyu(**B2fa):\n C3ST = _8RP(MF6R, [3, 8, 36, 3], **B2fa)\n return C3ST", "def Ype5(**B2fa):\n C3ST = _8RP(em1m, [1, 1, 1, 1], **B2fa)\n return C3ST", "def ugxl(mL4f=False, **B2fa):\n C3ST =...
[ "0.69300485", "0.655096", "0.6208748", "0.612796", "0.60575", "0.59971976", "0.59603137", "0.5927607", "0.58582366", "0.585174", "0.5843317", "0.57832867", "0.57701135", "0.5733421", "0.57261515", "0.5687126", "0.5667677", "0.56661797", "0.5665599", "0.5656286", "0.563963", ...
0.7433499
0
Constructs a R2+1D50 model.
def GRxt(**B2fa): C3ST = l3hw(D12p, [3, 4, 6, 3], decomposed=True, **B2fa) return C3ST
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Bitz(mL4f=False, **B2fa):\n C3ST = aGam(Zfvk, [3, 4, 6, 3], baseWidth=26, scale=4, **B2fa)\n if mL4f:\n C3ST.load_state_dict(rA0C.load_url(mDCG['res2net50_v1b_26w_4s']))\n return C3ST", "def gdNq():\n krWg = ileL()\n krWg.add(Ofph(24, 5, 5, subsample=(2, 2), input_shape=(66, 200, 3), ac...
[ "0.6271641", "0.62249583", "0.61556965", "0.61444116", "0.6127777", "0.5944473", "0.5920305", "0.5918752", "0.591597", "0.59030664", "0.5888485", "0.5884673", "0.58763504", "0.58747894", "0.584629", "0.583538", "0.581129", "0.5804421", "0.5804065", "0.58013237", "0.57886136",...
0.703025
0
Constructs a R2+1D152 model.
def DL79(**B2fa): C3ST = l3hw(D12p, [3, 8, 36, 3], decomposed=True, **B2fa) return C3ST
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e8xY(**B2fa):\n C3ST = eWLN(MF6R, [3, 8, 36, 3], **B2fa)\n return C3ST", "def e8xY(**B2fa):\n C3ST = eWLN(dFzk, [3, 8, 36, 3], **B2fa)\n return C3ST", "def _f88(mL4f=False, **B2fa):\n C3ST = s9pf(MF6R, [3, 8, 36, 3], **B2fa)\n if mL4f:\n C3ST.base_model.load_state_dict(uqvc['resnet...
[ "0.6305411", "0.62988806", "0.61936384", "0.603528", "0.5918286", "0.5835474", "0.5806608", "0.5806608", "0.58055574", "0.5788983", "0.57740253", "0.5771476", "0.57685703", "0.5763284", "0.57465565", "0.5733893", "0.5723084", "0.57227594", "0.57098436", "0.5699957", "0.569772...
0.7379163
0
Get a vertex index or creates it if it doesn't exist.
def cDO8(YKHO, V_s1): d6pt = YKHO.get(V_s1) if not d6pt: d6pt = YKHO.create(V_s1) return d6pt
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cDO8(YKHO, V_s1='vertex', QGQr=None):\n return YKHO.get(V_s1)", "def NMoC(YKHO, V_s1='vertex'):\n d6pt = YKHO.index_class(YKHO.client, None)\n d6pt.base_type = 'vertex'\n d6pt._index_name = V_s1\n YKHO.client.registry.add_index(V_s1, d6pt)\n return d6pt", "def NMoC(YKHO, V_s1):\n _hkX ...
[ "0.7929658", "0.7585457", "0.7413015", "0.7374597", "0.7128854", "0.7099092", "0.697701", "0.69687414", "0.66030383", "0.6592292", "0.6590836", "0.6523853", "0.6448591", "0.6315911", "0.6303503", "0.62951285", "0.62912875", "0.6263414", "0.6263414", "0.6263277", "0.6254117", ...
0.6893449
8
Returns the index name.
def V_s1(YKHO): return YKHO.results.get('name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _s3B():\n return LdBU", "def _s3B(YKHO):\n return YKHO.__index_name", "def _s3B(Emd4) -> str:\n return Emd4._index", "def phRX(YKHO):\n return YKHO.name", "def V_s1(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'index_name')", "def V_s1(YKHO):\n return YKHO.name + '-index'", "...
[ "0.9105283", "0.9062658", "0.8988346", "0.88712233", "0.8771913", "0.8766552", "0.8750552", "0.85630596", "0.83234", "0.8322957", "0.82833314", "0.82032025", "0.7897485", "0.7839138", "0.7803049", "0.77416193", "0.7686187", "0.74757123", "0.7460049", "0.7434642", "0.7274257",...
0.8539448
8
Return all the elements with key property equal to value in the index.
def NMoC(YKHO, H5ew=None, BWXx=None, **q2Xo): H5ew, BWXx = YKHO._get_key_value(H5ew, BWXx, q2Xo) _hkX = YKHO.resource.lookup_vertex(YKHO.index_name, H5ew, BWXx) return lfTQ(YKHO.resource, _hkX)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rFRb(YKHO, hkxX, H5ew):\n Aofo = list()\n for YEnM in hkxX:\n if YEnM.key == H5ew:\n Aofo.append(YEnM)\n return Aofo", "def cIT_(YKHO, H5ew, BWXx):\n return YKHO.where(lambda ZfUD: ZfUD[H5ew] == BWXx)", "def gVVR(YKHO, **YSA3):\n if not YSA3:\n return None\n H5ew ...
[ "0.6418071", "0.6016614", "0.6015854", "0.58531314", "0.5791033", "0.5696718", "0.5676993", "0.566535", "0.565553", "0.5634501", "0.56315595", "0.5555722", "0.55376667", "0.55375165", "0.5520185", "0.5514309", "0.5502947", "0.5486982", "0.5456333", "0.54469085", "0.54469085",...
0.0
-1
Return all the elements with key property equal to value in the index.
def NMoC(YKHO, H5ew=None, BWXx=None, **q2Xo): H5ew, BWXx = YKHO._get_key_value(H5ew, BWXx, q2Xo) _hkX = YKHO.resource.lookup_vertex(YKHO.index_name, H5ew, BWXx) return lfTQ(YKHO.resource, _hkX)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rFRb(YKHO, hkxX, H5ew):\n Aofo = list()\n for YEnM in hkxX:\n if YEnM.key == H5ew:\n Aofo.append(YEnM)\n return Aofo", "def cIT_(YKHO, H5ew, BWXx):\n return YKHO.where(lambda ZfUD: ZfUD[H5ew] == BWXx)", "def gVVR(YKHO, **YSA3):\n if not YSA3:\n return None\n H5ew ...
[ "0.6418071", "0.6016614", "0.6015854", "0.58531314", "0.5791033", "0.5696718", "0.5676993", "0.566535", "0.565553", "0.5634501", "0.56315595", "0.5555722", "0.55376667", "0.55375165", "0.5520185", "0.5514309", "0.5502947", "0.5486982", "0.5456333", "0.54469085", "0.54469085",...
0.0
-1
Return edges number of all edge types.
def n8F9(YKHO): dos2 = {} for a5Fo in YKHO._edge_types: dos2[a5Fo] = YKHO._multi_graph[a5Fo].num_edges return dos2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ld53(YKHO) -> int:\n return int(YKHO.edge_type.max()) + 1 if 'edge_type' in YKHO else 1", "def fOCg(YKHO, _nJc=None):\n pass", "def U6jt(YKHO):\n apzJ.abstract()", "def DY3m(YKHO):\n return len(YKHO.getEdges())", "def JdQB(YKHO):\n VRwr = sum([len(jzdc) for jzdc in YKHO.graph.values()])\...
[ "0.8499723", "0.8282803", "0.8026398", "0.8015965", "0.7930498", "0.7910388", "0.78943324", "0.78943324", "0.78639406", "0.7861927", "0.78574413", "0.7832108", "0.7808978", "0.78064656", "0.77975494", "0.77923906", "0.7756768", "0.7728958", "0.769715", "0.769715", "0.7694043"...
0.821449
2
Map the given parent graph node id to subgraph id.
def AVlv(YKHO, Ziit): return ivUL.map_nodes(Ziit, YKHO._from_reindex)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TClq(Q6kx):\n global counter\n H7rZ = ewCu\n BJ1H.node(str(H7rZ), DeTJ(Q6kx))\n ewCu = ewCu + 1\n for aUGN in RbaF(Q6kx):\n tkHJ = TClq(aUGN)\n BJ1H.edge(str(H7rZ), str(tkHJ))\n return H7rZ", "def f6Qh(YKHO, _AKB=None):\n if _AKB:\n YKHO._id = '%s.%s' % (_AKB, YKHO.n...
[ "0.64938086", "0.6069327", "0.59516937", "0.5780783", "0.5780783", "0.5751169", "0.57255524", "0.56551063", "0.5609427", "0.5601876", "0.5588049", "0.5569912", "0.5546631", "0.55431414", "0.55190504", "0.55129045", "0.5506763", "0.5506763", "0.5506763", "0.5506763", "0.550676...
0.0
-1
Map the given subgraph node id to parent graph id.
def DW2u(YKHO, Ziit): return ivUL.map_nodes(Ziit, YKHO._to_reindex)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TClq(Q6kx):\n global counter\n H7rZ = ewCu\n BJ1H.node(str(H7rZ), DeTJ(Q6kx))\n ewCu = ewCu + 1\n for aUGN in RbaF(Q6kx):\n tkHJ = TClq(aUGN)\n BJ1H.edge(str(H7rZ), str(tkHJ))\n return H7rZ", "def vXAO(YKHO):\n YKHO._parents = {}\n zao6 = [YKHO.root]\n while zao6:\n ...
[ "0.6623958", "0.61949915", "0.5957097", "0.5897291", "0.58801043", "0.5820069", "0.57001954", "0.56429994", "0.56429994", "0.5639473", "0.5638003", "0.56295735", "0.559529", "0.55894715", "0.5588428", "0.5584644", "0.5578832", "0.55514944", "0.5534081", "0.54704255", "0.54704...
0.0
-1
Denormalise the image with channelwise mean and standard deviation.
def cdJi(vhpA, JBMS, z2bo, LpaZ=False): JBMS = ht2j.as_tensor(JBMS, device=vhpA.device)[..., :, None, None] z2bo = ht2j.as_tensor(z2bo, device=vhpA.device)[..., :, None, None] if LpaZ: return vhpA.mul_(z2bo).add_(JBMS) else: return ht2j.addcmul(JBMS, vhpA, z2bo)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bcW2(VXjJ, JBMS, M1Jx):\n return VXjJ * M1Jx + JBMS", "def bcW2(d7uv):\n FHlE = oyIN.zeros(d7uv.shape)\n for YwkQ, JBMS, M1Jx in zip(range(3), FBgC[0], FBgC[1]):\n FHlE[YwkQ] = d7uv[YwkQ] * M1Jx + JBMS\n return FHlE", "def bcW2(YKHO, VXjJ):\n return VXjJ * YKHO.std + YKHO.mean", "de...
[ "0.79868025", "0.79839605", "0.79746187", "0.7848164", "0.75206167", "0.7454017", "0.7373179", "0.7281827", "0.7263349", "0.72034705", "0.7202547", "0.7179721", "0.7153787", "0.7153787", "0.7123424", "0.7080617", "0.7010014", "0.6947602", "0.69286335", "0.69240665", "0.692277...
0.6330711
55
Returns a resttools.irws.Name object for the given netid. If the netid isn't found, nothing will be returned. If there is an error communicating with the IRWS, a DataFailureException will be thrown.
def x4Dd(YKHO, Hbfc): Hbfc = YKHO._clean(Hbfc) bD7m = '/%s/v2/name/uwnetid=%s' % (YKHO._service_name, Hbfc.lower()) geh0 = YKHO.dao.getURL(bD7m, {'Accept': 'application/json'}) if geh0.status == 404: return None if geh0.status != 200: raise E2Z6(bD7m, geh0.status, geh0.data) retu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x4Dd(YKHO, Hbfc):\n if not YKHO.valid_uwnetid(Hbfc):\n raise K5oJ(Hbfc)\n vjcZ = gPnO()\n bD7m = '/%s/v1/name/uwnetid=%s' % (YKHO._service_name, Hbfc.lower())\n geh0 = vjcZ.getURL(bD7m, {'Accept': 'application/json'})\n if geh0.status != 200:\n raise E2Z6(bD7m, geh0.status, geh0.da...
[ "0.83914125", "0.7315443", "0.6972018", "0.6786258", "0.6745271", "0.6307562", "0.61989117", "0.6131079", "0.61053836", "0.61053836", "0.60747474", "0.5998161", "0.59359425", "0.59066236", "0.581466", "0.5801289", "0.57950634", "0.5740475", "0.5705866", "0.5682251", "0.563174...
0.82490057
1
Returns an irws.SupplementalPerson object for the given id. If the netid isn't found, throws IRWSNotFound. If there is an error contacting IRWS, throws DataFailureException.
def gLZD(YKHO, id): id = YKHO._clean(id) bD7m = '/%s/v2/person/supplemental/%s' % (YKHO._service_name, id) geh0 = YKHO.dao.getURL(bD7m, {'Accept': 'application/json'}) if geh0.status == 404: return None if geh0.status != 200: raise E2Z6(bD7m, geh0.status, geh0.data) nPrm = qQXR.l...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wSZD(YKHO, _eu6):\n UmwS = None\n bQhf = YKHO.serverRequest('/person/%s' % _eu6)\n if bQhf and bQhf['Status'] == 'OK':\n fZCI = bQhf['Person']\n return fZCI", "def UplG(YKHO, Hbfc):\n _E99 = YKHO.get_identity_by_netid(Hbfc)\n if not {'hepps', 'uwhr'} & set(_E99.identifiers.keys()):\n...
[ "0.6261153", "0.6184225", "0.6145604", "0.5901916", "0.5804785", "0.572826", "0.56702983", "0.5607241", "0.5497579", "0.548947", "0.54588014", "0.5451973", "0.5443648", "0.54133356", "0.5385864", "0.53547007", "0.529862", "0.5203787", "0.519641", "0.51959676", "0.51248735", ...
0.7929103
0
Update the output shapesof a model where the input shape/s were made fixed, if possible. This is mainly to make the model usage clearer if the output shapes can be inferred from the new input shapes.
def eGOR(C3ST: onnx.ModelProto): E43s = BlLG.shape_inference.infer_shapes(C3ST) BlLG.checker.check_model(E43s) for or8S, z1Rg in enumerate(C3ST.graph.output): if not kmVv(z1Rg): SKbG = E43s.graph.output[or8S] if kmVv(SKbG): z1Rg.type.tensor_type.shape.CopyFrom...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fMgC(YKHO, C3ST):\n bo34.debug('Setting output shape')\n yvT9 = [nMvt.int_shape(vhpA)[-3:] for vhpA in C3ST.outputs]\n if not yvT9:\n raise ValueError('No outputs found! Check your model.')\n YKHO.output_shape = tuple(yvT9[0])\n bo34.debug('Added output shape: %s', YKHO.output_shape)", ...
[ "0.6692104", "0.6290564", "0.62865007", "0.6284276", "0.6256287", "0.6248727", "0.6134709", "0.6102061", "0.6087244", "0.60682595", "0.60137177", "0.5981693", "0.5973652", "0.59607774", "0.59575975", "0.5930947", "0.5857999", "0.57935894", "0.5791727", "0.5781576", "0.5778025...
0.78324074
0
Metodo que validad, si tiene seleccionada la responsabilidad fiscal "No responsable de IVA", no pueda tener ninguna otra; pero si tiene otra diferente a la mencionada pueda agrgar mas.
def NSH9(YKHO): if len(YKHO.fiscal_responsibility) > 1: for V3N8 in YKHO.fiscal_responsibility: if V3N8.key_dian == 'R-99-PN': raise Bx6I.ValidationError(bGrB('The company has the fiscal responsibility "Not responsible for IVA", therefore it cannot have more.'))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gXUp(vC92, nPrm, **B2fa):\n R4yN = nPrm.get('descuento', None)\n if not R4yN:\n deVW = True\n else:\n deVW = None\n try:\n KGL8 = apMZ.objects.get(codigo=R4yN)\n if KGL8.activo == True:\n deVW = True\n except:\n pass\n if not deVW:\n raise ...
[ "0.6205576", "0.61907876", "0.6148531", "0.598044", "0.5856157", "0.5817259", "0.5798294", "0.5791062", "0.5787671", "0.57836366", "0.57309324", "0.5727717", "0.5710311", "0.56917244", "0.5667301", "0.5658681", "0.5656027", "0.56512314", "0.56473196", "0.5640949", "0.56311315...
0.67169666
0
Return queryset of all DCs including extended stats; used by dc_list view.
def QBeo(QePW, JvR2=('owner',), zTi3=None): ICn2 = {'vms': kbH2('vm', distinct=True), 'dcnodes': kbH2('dcnode', distinct=True)} dDGN = {'select': JJeE.extra_select} return wxEk(QePW, sr=JvR2, pr=zTi3, annotate=ICn2, extra=dDGN)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FP4l(YKHO):\n QePW = VNUm(method='get', endpoint='/datacenter/all')\n\n def RkGa(_hkX):\n if not _hkX.is_success:\n raise JK2k(_hkX, QePW)\n lfaA = []\n for Bc4p in _hkX.body:\n lfaA.append(Bc4p['name'])\n return lfaA\n return YKHO._execute(QePW, RkGa)...
[ "0.6540498", "0.5856709", "0.5856709", "0.582498", "0.57647544", "0.5740158", "0.5675017", "0.56636906", "0.56614935", "0.56574637", "0.5632253", "0.5606684", "0.5587242", "0.5566934", "0.55388784", "0.55251276", "0.5514808", "0.5509811", "0.55086243", "0.55049205", "0.550439...
0.674047
0
Serializes the current state of the aggregate as a Python dictionary.
def ChRH(YKHO, QTBn): return YKHO.adapter.dump(QTBn._AggregateState__state)[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oD7C(YKHO):\n return YKHO.__getstate__()", "def k8jS(YKHO):\n return YKHO.to_json_dict()", "def k8jS(YKHO):\n return YKHO.to_dict()", "def xA7f(YKHO):\n return YKHO.__dict__", "def k8jS(YKHO) -> dict:\n V_Cx = dict(YKHO.__dict__)\n del V_Cx['monitor_logger']\n return V_Cx", "def ...
[ "0.79937863", "0.7792467", "0.7573443", "0.743449", "0.7368143", "0.73172355", "0.72809196", "0.7264776", "0.72315395", "0.7200554", "0.7115113", "0.71132356", "0.7100387", "0.7088954", "0.7088954", "0.70297563", "0.70174146", "0.7016233", "0.696467", "0.69369745", "0.6916266...
0.73887146
4
Calculate percolation strength for given L.
def enL1(TEj7, aPd6, tZuJ, hnFq): TEj7.L = aPd6 zVKC = TEj7.create_cluster E1aV = TEj7.set_labels V6IE = [] for XP5J in hnFq: TEj7.p = XP5J GfJF = 0 for a1PO in range(tZuJ): zVKC() E1aV() vC9B = TEj7.lattice vC9B = vC9B[oyIN.non...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZBZ6(aPd6, hl9z):\n return 2 * hl9z * (aPd6 - hl9z * (1 - oyIN.exp(-aPd6 / hl9z)))", "def c_3t(YKHO, wnRR, jko3):\n Blmc = 0\n for YRbF in range(3):\n o3BR = YKHO.imgColorL[wnRR[0], wnRR[1], YRbF]\n hmey = YKHO.imgColorR[jko3[0], jko3[1], YRbF]\n WMDy = YKHO.imgColorLMin[wnRR[0]...
[ "0.60454357", "0.6020274", "0.6005726", "0.6005726", "0.5964734", "0.5939833", "0.5911179", "0.590666", "0.58146834", "0.58102155", "0.5792459", "0.5746875", "0.5597919", "0.55312514", "0.553122", "0.55297667", "0.5515858", "0.5513647", "0.55072284", "0.5496921", "0.54913664"...
0.79716766
0
Initializes the Channel API proxy stub.
def FIMM(YKHO, UTX6, RKD7=G9jH.info, bSEa='channel'): QIOZ.APIProxyStub.__init__(YKHO, bSEa) YKHO._address = UTX6 YKHO._log = RKD7
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, gCuF):\n YKHO.channel = ZAxX(gCuF).connect()\n YKHO.stub_class = getattr(gCuF.bindings.grpc, gCuF.bindings.stub_name)\n YKHO.stub = YKHO.stub_class(YKHO.channel)", "def bJL8(YKHO, TSMu=True):\n if not TSMu:\n YKHO._disable_stub(c2x0)\n return\n CppO = m4cN.ChannelServi...
[ "0.7092335", "0.6937786", "0.68584585", "0.6847254", "0.68360424", "0.6809862", "0.67911285", "0.6736028", "0.64640695", "0.6449611", "0.62874836", "0.62588376", "0.6246533", "0.6237995", "0.6237995", "0.6234118", "0.6232363", "0.62285626", "0.62283707", "0.62076616", "0.6197...
0.68420583
4
Test the evolution circuit of Suzuki Trotter against a manually constructed circuit.
def qDWF(YKHO): with YKHO.assertWarns(DeprecationWarning): khtY = EcVT + fuBA ITS7 = 0.1 ZgWB = 1 sIK3 = qAeR(khtY, ITS7, synthesis=piup(order=4, reps=ZgWB)) aEqx = Rv0t(1) O7Bv = 1 / (4 - 4 ** (1 / 3)) for bGrB in range(2): aEqx.rx(O7Bv * ITS7, 0) aEqx.ry(2 * O7Bv * ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _sVF(YKHO):\n PnGs = Rv0t(2, 2)\n PnGs.h(0)\n PnGs.h(1)\n YKHO._compare_results(PnGs)\n VtrH = Rv0t(2, 2)\n VtrH.h(0)\n VtrH.cx(0, 1)\n YKHO._compare_results(VtrH)", "def ES8r(YKHO):\n P1dF = BX5F(0.5)\n amdr = sJ4G()\n amdr.add_all_qubit_quantum_error(P1dF, ['id', 'x', 'y', ...
[ "0.7395686", "0.7130343", "0.69932085", "0.6987199", "0.6908919", "0.6889423", "0.6870744", "0.6867072", "0.67341846", "0.6726323", "0.6724883", "0.6705225", "0.66817075", "0.66393495", "0.66244", "0.6623658", "0.662279", "0.66015387", "0.6600267", "0.6587745", "0.6561939", ...
0.71884775
1
Test the evolution circuit of Suzuki Trotter against a manually constructed circuit.
def Cnes(YKHO, khtY, ITS7, ZgWB, Rr02): nfdi = TfNa(reps=ZgWB) sIK3 = qAeR(khtY, ITS7, synthesis=nfdi) sIK3.definition.decompose() aEqx = Rv0t(1) for jkAA in Rr02: if jkAA[0].to_label() == 'X': aEqx.rx(2 * jkAA[1], 0) elif jkAA[0].to_label() == 'Y': aEqx.ry(2 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _sVF(YKHO):\n PnGs = Rv0t(2, 2)\n PnGs.h(0)\n PnGs.h(1)\n YKHO._compare_results(PnGs)\n VtrH = Rv0t(2, 2)\n VtrH.h(0)\n VtrH.cx(0, 1)\n YKHO._compare_results(VtrH)", "def qDWF(YKHO):\n with YKHO.assertWarns(DeprecationWarning):\n khtY = EcVT + fuBA\n ITS7 = 0.1\n ZgWB ...
[ "0.7395686", "0.71884775", "0.7130343", "0.69932085", "0.6987199", "0.6908919", "0.6889423", "0.6870744", "0.6867072", "0.67341846", "0.6726323", "0.6724883", "0.6705225", "0.66817075", "0.66393495", "0.66244", "0.6623658", "0.662279", "0.66015387", "0.6600267", "0.6587745", ...
0.0
-1
Test selecting different kinds of CNOT chains.
def yDsI(YKHO, MTKo): with YKHO.assertWarns(DeprecationWarning): khtY = Nk6w ^ Nk6w ^ Nk6w dykF = Pf06(reps=1, cx_structure=MTKo) MBcQ = qAeR(khtY, synthesis=dykF) aEqx = Rv0t(3) if MTKo == 'chain': aEqx.cx(2, 1) aEqx.cx(1, 0) else: aEqx.cx(1, 0) aEqx.cx(2...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vsJn(YKHO):\n pass", "def AQtc(YKHO):\n pass", "def n1xx(Zxma):\n HlPs = nNTd(Zxma, 'cation_pi')\n for MxXY, cWFu in HlPs:\n I2A9 = Zxma.nodes[MxXY]['residue_name']\n ayBs = Zxma.nodes[cWFu]['residue_name']\n MTII = I2A9 in AU7D and ayBs in SxiV\n WLv4 = ayBs in AU7D...
[ "0.60413706", "0.6033921", "0.585566", "0.57678306", "0.5599643", "0.55937696", "0.5547438", "0.55051774", "0.54873204", "0.5475138", "0.54609936", "0.54580396", "0.54543763", "0.5451495", "0.5434735", "0.54118353", "0.5407384", "0.5401286", "0.5394225", "0.5380217", "0.53560...
0.6522663
0
Calculate the Hamiltonian parameters of a transmon. Inverts the function `transmon_levels`.
def Q258(DuTj: float, LjeZ: float, SMR4: float=0.0, d8SL: int=31): def JfyU(ZEpZ, _88P, rKDB, BnI7): Vb5F = Jqjx(*ZEpZ, rKDB, BnI7) return -_88P + [Vb5F[0], Vb5F[1] - 2 * Vb5F[0]] Jx0N = -LjeZ wLXo = -(DuTj - LjeZ) ** 2 / 8 / LjeZ psxO = H4yH.optimize.fsolve(JfyU, oyIN.array([Jx0N, wLXo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def L08C(H549=1.0):\n Oa1e = Fw8z.single_square_lattice()\n return lSwr(Oa1e, mw=H549)\n MKlR = Oa1e.get_hamiltonian()\n MKlR.tx = 1j * BhJz.todense()\n MKlR.ty = -1j * o0ZM.todense()\n MKlR.intra = 2 * H549 * Rv0k.todense()\n MKlR.tx -= H549 / 2.0 * Rv0k.todense()\n MKlR.ty -= H549 / 2.0 *...
[ "0.58203846", "0.58073103", "0.5688086", "0.5663268", "0.5655704", "0.56521356", "0.552851", "0.5381321", "0.53150046", "0.5289343", "0.52891785", "0.52666384", "0.526036", "0.5239016", "0.5230642", "0.52260596", "0.51988673", "0.518556", "0.5179735", "0.5158869", "0.51581275...
0.0
-1
Calculate the Josephson energy and the anharmonicity of a transmon. Inverts the function `transmon_levels`. Useful for finding the Josephson energy at a new flux bias point.
def Ghfr(DuTj: float, V3xq: float, SMR4: float=0.0, d8SL: int=31): def JfyU(xaIX, JD9Y, rKDB, BnI7): Vb5F = Jqjx(JD9Y[1], xaIX[0], rKDB, BnI7) return [Vb5F[0] - JD9Y[0], Vb5F[1] - 2 * Vb5F[0] - xaIX[1]] wLXo = (DuTj + V3xq) ** 2 / 8 / V3xq FWbh = -V3xq ldv0 = H4yH.optimize.fsolve(JfyU, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NONh():\n Ty9i, Mkmy, Cwt5, UqYS, RA_F, rrGY, upem, fa8D, SEmJ, XOev = rmc3('nu r alpha beta delta Phi_0 Phi_1 kappa_0 kappa_1 kappa_2')\n aPd6, XcU5, lWPh = rmc3('lambda omega d')\n QKRA = upem / (1 - aPd6) ** 2 - rrGY\n tknT = fa8D + SEmJ * aDi_.exp(XOev * (1 - XcU5 - Mkmy * lWPh))\n Oz1B = aL...
[ "0.6018982", "0.60106987", "0.59010375", "0.5825343", "0.5338442", "0.51521164", "0.50684935", "0.5063171", "0.50485826", "0.50401014", "0.5032185", "0.5016147", "0.49952912", "0.49912927", "0.4926696", "0.4925539", "0.4917617", "0.49026978", "0.4880973", "0.48704425", "0.483...
0.0
-1
Calculate the Josephson energy and the excitation frequency of a transmon Inverts the function `transmon_levels`. Useful for finding the Josephson energy at a new flux bias point.
def TzFM(fN5K: float, V3xq: float, SMR4: float=0.0, d8SL: int=31): def JfyU(iygu, N_8z, rKDB, BnI7): Vb5F = Jqjx(N_8z[1], iygu[0], rKDB, BnI7) return [Vb5F[0] - iygu[1], Vb5F[1] - Vb5F[0] - N_8z[0]] wLXo = (fN5K + 2 * V3xq) ** 2 / 8 / V3xq ps4N = fN5K + V3xq DvgV = H4yH.optimize.fsolve(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NONh():\n Ty9i, Mkmy, Cwt5, UqYS, RA_F, rrGY, upem, fa8D, SEmJ, XOev = rmc3('nu r alpha beta delta Phi_0 Phi_1 kappa_0 kappa_1 kappa_2')\n aPd6, XcU5, lWPh = rmc3('lambda omega d')\n QKRA = upem / (1 - aPd6) ** 2 - rrGY\n tknT = fa8D + SEmJ * aDi_.exp(XOev * (1 - XcU5 - Mkmy * lWPh))\n Oz1B = aL...
[ "0.56287485", "0.56254977", "0.5611382", "0.53813046", "0.5288197", "0.5100702", "0.5034546", "0.5006557", "0.500519", "0.4979767", "0.4969448", "0.49557582", "0.49557582", "0.49555156", "0.49082065", "0.485941", "0.48549", "0.48543882", "0.48495844", "0.48492554", "0.483256"...
0.0
-1
Get mean distance between two points
def zG70(YKHO, pNZh, gtqQ, GFxT): j5Ue = jHsn.shortest_path_length(pNZh, source=gtqQ, target=GFxT) return j5Ue
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Xay1(tQHA: np.ndarray, bRB7: np.ndarray) -> float:\n return abs(tQHA.mean() - bRB7.mean())", "def lWEI(jzdc, Fg_i):\n return oyIN.mean(oyIN.sqrt(oyIN.sum(oyIN.square(jzdc - Fg_i), axis=-1)), axis=-1)", "def Jyx4(YKHO, WKvO, LVAh):\n return epAf.sqrt(epAf.pow(WKvO, 2) + epAf.pow(LVAh, 2))", "def ...
[ "0.8179706", "0.75896335", "0.7426483", "0.7270605", "0.7188618", "0.7129083", "0.7048781", "0.70443374", "0.70021516", "0.70009047", "0.6993646", "0.69925404", "0.6987075", "0.6951267", "0.6948481", "0.6890187", "0.6868355", "0.6840709", "0.683594", "0.67901623", "0.6735266"...
0.0
-1
Set the user password from the given data.
def DWzs(YKHO, nPrm): LMqE(nPrm, YKHO.PASSWORD) YKHO.password = nPrm[YKHO.PASSWORD]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zZft(YKHO, zN5h):\n YKHO.pwd = zN5h", "def qtFL(ZzYC, nPrm, HrP9):\n uPxI = KyKO\n nPrm = iEJi(nPrm, ('password',))\n nPrm, UAju = oCIq(uPxI, ZzYC, nPrm, HrP9)\n return (nPrm, UAju)", "def G3s8(YKHO, jTXt):\n D2Lq(jTXt)", "def zZft(YKHO, zN5h):\n YKHO.pwd = zN5h", "def jTXt(YKHO, B...
[ "0.77716273", "0.7714917", "0.76727265", "0.76671803", "0.7641548", "0.76041603", "0.75912553", "0.7546056", "0.75384694", "0.75384694", "0.7478759", "0.74683994", "0.7443656", "0.743852", "0.7430399", "0.7415794", "0.7403336", "0.7398156", "0.7393031", "0.7379324", "0.737422...
0.83547837
0
cellNum is from 19; player is either 1 (X) or 2 (Y)
def bj71(YKHO, LWls, oyg0): nxyw = int((LWls - 1) / 3) nJ9F = (LWls - 1) % 3 Esro = '%d' % LWls if YKHO.grid[nJ9F][nxyw] == 0: YKHO.grid[nJ9F][nxyw] = oyg0 YKHO.nmoves = YKHO.nmoves + 1 for YRbF in YKHO.lines.keys(): if Esro in YRbF: YKHO.lines[YRbF][0...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oyg0(iBIi):\n pNz6 = 0\n tmr9 = 0\n for rdlD in iBIi:\n for VmPb in rdlD:\n if VmPb == EcVT:\n pNz6 += 1\n elif VmPb == LTX_:\n tmr9 += 1\n if pNz6 == tmr9:\n return EcVT\n else:\n return LTX_", "def oyg0(iBIi):\n g259...
[ "0.6922331", "0.6887084", "0.68445367", "0.67653835", "0.6661786", "0.66343427", "0.66341543", "0.66094935", "0.65708756", "0.6549465", "0.6534928", "0.65329194", "0.6530251", "0.6520051", "0.6511143", "0.65066946", "0.6505262", "0.6491601", "0.64906275", "0.64750725", "0.646...
0.7313836
0
Initialize the parameters for the multilayer perceptron
def FIMM(YKHO, xlLU=XTiz.random.RandomState(1234), Ya2q=784, V06R=500, _LFN=10, b0Ix=0.1, JkES=200, Ep8u=500, hXNa=True, gmzj=0, ELRa=0, IXxE=Kt_s.nnet.softmax, OR7m=QZir): YKHO.learning_rate = b0Ix YKHO.n_epochs = JkES YKHO.batch_size = Ep8u YKHO.n_hidden = V06R YKHO.n_in = Ya2q YKHO.n_out = _L...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def K55i(YKHO):\n YKHO.params = {}\n aPd6 = len(YKHO.layer_dims)\n x4xj = 0.1\n for vC9B in range(1, aPd6):\n MY1T = YKHO.layer_dims[vC9B - 1]\n Fmaf = YKHO.layer_dims[vC9B]\n YKHO.params['W%d' % vC9B] = oyIN.random.randn(MY1T, Fmaf) * x4xj\n assert YKHO.params['W%d' % vC9B]...
[ "0.7563101", "0.74202055", "0.7398131", "0.72895753", "0.7242624", "0.7229054", "0.7199435", "0.7182269", "0.7100938", "0.7088025", "0.70841914", "0.7071097", "0.7049927", "0.70496297", "0.7013583", "0.7010965", "0.6990473", "0.69857866", "0.6983007", "0.6979044", "0.6926819"...
0.0
-1
Test Add flyer purchase form submit when no dates selected.
def BgIz(YKHO): B2fa = {'subdivision_consumer_count': 220} YKHO.prep_for_flyer_purchase() geh0 = YKHO.client.post(gxEw('add-flyer-dates', args=[YKHO.slot.id]), B2fa) YKHO.assertEqual(geh0.status_code, 200) YKHO.assertTemplateUsed(geh0, 'include/frm/frm_add_flyer_dates.html') YKHO.assertContains(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Cuql(YKHO):\n YKHO.prep_for_flyer_purchase()\n dpaQ = RWiW() + qcWV.timedelta(days=14)\n bE4W = RWiW() + qcWV.timedelta(days=28)\n orLN = LN13(dpaQ, 'F j')\n PWBV = LN13(bE4W, 'F j')\n B2fa = {str(orLN): str(dpaQ), str(PWBV): str(bE4W), 'subdivision_consumer_count': 100}\n geh0 = YKHO.clie...
[ "0.70929134", "0.69321734", "0.6616643", "0.6515816", "0.6515795", "0.6365138", "0.63575244", "0.63340133", "0.62997985", "0.6148922", "0.60956895", "0.6092898", "0.6056562", "0.5995918", "0.59704393", "0.5868273", "0.5867366", "0.5832485", "0.5832485", "0.58237344", "0.58237...
0.78385717
0
Test Add flyer purchase form submit when subdivision_consumer_count hidden field is missing.
def QwqP(YKHO): B2fa = {} YKHO.prep_for_flyer_purchase() geh0 = YKHO.client.post(gxEw('add-flyer-dates', args=[YKHO.slot.id]), B2fa, follow=True) YKHO.assertEqual(geh0.redirect_chain[0][1], 302) YKHO.assertEqual(geh0.request['PATH_INFO'], '/hudson-valley/contact-us/')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BgIz(YKHO):\n B2fa = {'subdivision_consumer_count': 220}\n YKHO.prep_for_flyer_purchase()\n geh0 = YKHO.client.post(gxEw('add-flyer-dates', args=[YKHO.slot.id]), B2fa)\n YKHO.assertEqual(geh0.status_code, 200)\n YKHO.assertTemplateUsed(geh0, 'include/frm/frm_add_flyer_dates.html')\n YKHO.asse...
[ "0.63995785", "0.6308488", "0.6291657", "0.61929065", "0.6137186", "0.5795936", "0.5790192", "0.5790192", "0.57661545", "0.57602423", "0.57519054", "0.5738276", "0.5719597", "0.5719597", "0.56585133", "0.56461793", "0.56066895", "0.5597579", "0.55861133", "0.5553952", "0.5550...
0.64250517
0
Test Add flyer purchase form submit when subdivision_consumer_count hidden field has alphanumeric value.
def soTH(YKHO): B2fa = {'subdivision_consumer_count': 'a120'} YKHO.prep_for_flyer_purchase() geh0 = YKHO.client.post(gxEw('add-flyer-dates', args=[YKHO.slot.id]), B2fa, follow=True) YKHO.assertEqual(geh0.redirect_chain[0][1], 302) YKHO.assertEqual(geh0.request['PATH_INFO'], '/hudson-valley/contact-u...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def StyV(YKHO):\n B2fa = {'zip_array': '1234,12345', 'county_array': '', 'subdivision_consumer_count': '123'}\n YKHO.prep_for_flyer_purchase()\n geh0 = YKHO.client.post(gxEw('add-flyer-by-map', args=[YKHO.slot.id]), B2fa, follow=True)\n YKHO.assertContains(geh0, 'frm_add_flyer_dates')", "def mUrM(YKH...
[ "0.63227797", "0.607045", "0.60197973", "0.5934137", "0.57489264", "0.5694662", "0.5683459", "0.56644", "0.5595177", "0.55463547", "0.55463547", "0.55133134", "0.55133134", "0.54947656", "0.54827917", "0.54780346", "0.54775625", "0.54544234", "0.5451392", "0.5391279", "0.5384...
0.61975855
1
Assert POST with a valid slot displays the flyers purchase form.
def StyV(YKHO): B2fa = {'zip_array': '1234,12345', 'county_array': '', 'subdivision_consumer_count': '123'} YKHO.prep_for_flyer_purchase() geh0 = YKHO.client.post(gxEw('add-flyer-by-map', args=[YKHO.slot.id]), B2fa, follow=True) YKHO.assertContains(geh0, 'frm_add_flyer_dates')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mUrM(YKHO):\n YKHO.prep_for_flyer_purchase()\n geh0 = YKHO.client.get(gxEw('add-flyer-by-map', args=[YKHO.slot.id]), follow=True)\n YKHO.assertEqual(geh0.status_code, 200)\n YKHO.assertContains(geh0, 'form id=\"frm_add_flyer_by_map\"')\n YKHO.assertContains(geh0, 'Consumers have requested Hudson...
[ "0.6958343", "0.69058526", "0.6510847", "0.64151543", "0.6325032", "0.6235284", "0.61932033", "0.6181983", "0.59814763", "0.59544235", "0.5916609", "0.58944553", "0.58682877", "0.5831755", "0.58313096", "0.58299947", "0.5828716", "0.58180004", "0.5807901", "0.5792231", "0.577...
0.64094895
4
Render sprites on the current locations.
def PF9V(YKHO): j93S = gYGL(YKHO.x[0, 0] / YKHO.hw, 1 - YKHO.x[0, 1] / YKHO.hw, YKHO.shapes[0], c0=255, c1=0, c2=0, scale=YKHO.scale) Nqp_ = gYGL(YKHO.x[1, 0] / YKHO.hw, 1 - YKHO.x[1, 1] / YKHO.hw, YKHO.shapes[1], c0=0, c1=255, c2=0, scale=YKHO.scale) pGmv = gYGL(YKHO.x[2, 0] / YKHO.hw, 1 - YKHO.x[2, 1] / Y...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _1tc(YKHO, Vjhr):\n for Jqc7 in YKHO.sprites:\n Jqc7.render(Vjhr)", "def _1tc(YKHO):\n NGL6 = YKHO.sprites[YKHO.current_direction]\n D1I4.blit(NGL6, (YKHO.x * pA0V, (YKHO.y - 0.5) * pA0V))", "def JmFt(YKHO):\n Z9rn = YKHO.camera\n for WKvO in YKHO._sprites:\n WKvO.draw(Z9rn)", ...
[ "0.7876284", "0.7815577", "0.7605747", "0.74127877", "0.7312785", "0.72477466", "0.72054994", "0.7180615", "0.71634674", "0.70642877", "0.69278383", "0.69208235", "0.68566054", "0.6832877", "0.6828265", "0.6773276", "0.6770214", "0.6741892", "0.6722262", "0.67179227", "0.6670...
0.7228242
6
Construct the class with the game components (currently tiles).
def FIMM(YKHO, ufJO): YKHO._win = ufJO YKHO._win.set_background('lightblue') YKHO._tiles = [] for rdlD in range(8): Vhhf = [] n1Cu = rdlD % 2 == 0 ulBT = 7 if n1Cu: ulBT = 8 for fvDH in range(ulBT): Vhhf.append(CTtz(ufJO, rdlD, fvDH)) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, TVTK, H2v2):\n YKHO.width = TVTK\n YKHO.height = H2v2\n YKHO.tiles = [[CTtz() for bGrB in range(YKHO.width)] for bGrB in range(YKHO.height)]", "def FIMM(YKHO, TVTK, H2v2):\n YKHO.width = TVTK\n YKHO.height = H2v2\n YKHO.tiles = YKHO.initialize_tiles()", "def FIMM(YKHO):\n YK...
[ "0.7660224", "0.7601205", "0.7542583", "0.744962", "0.7429252", "0.728282", "0.7258663", "0.71689785", "0.7122198", "0.708618", "0.7077842", "0.701741", "0.6978502", "0.6978502", "0.69418013", "0.6939134", "0.69357026", "0.6924533", "0.6905569", "0.6899608", "0.6890485", "0...
0.72370267
7
Construct a new field.
def FIMM(YKHO, UXqs=P6bq(''), _FIc=None, KUnM=tuple(), JBZA=P6bq(''), id=None, WmM4=None, TEdI=None, _7AH=None, XWXe=None, oB9A=None): YKHO.name = XWXe YKHO.label = UXqs if oB9A is not None: YKHO._translations = oB9A YKHO.id = id or YKHO.name if _FIc is None: _FIc = [] YKHO.valid...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def re3O(YKHO, Jyyj, qzgp=None):\n raise NotImplementedError", "def fwuD(Emd4, h61E, Upu3):\n o9Dx = Emd4.get_field_class(h61E)\n qIxc = Emd4.make_args(h61E)\n qIxc.update(Upu3)\n return o9Dx(**qIxc)", "def FIMM(YKHO, Jyyj: str) -> None:\n YKHO.field = Jyyj", "def FIMM(YKHO, Jyyj, LI34=True...
[ "0.7551126", "0.7363927", "0.6980297", "0.692436", "0.6906584", "0.688843", "0.685311", "0.6825399", "0.6803736", "0.678516", "0.67791796", "0.6771439", "0.6747205", "0.6740624", "0.66871166", "0.6684426", "0.6672415", "0.6671648", "0.66250026", "0.6576667", "0.6571746", "0...
0.0
-1
Checks authorization. Returns None if ok and the proper response if it does not pass.
def HBEd(YKHO, QePW): geh0 = None if not YKHO._authorize(QePW): geh0 = igJ6('"Authorization Required"', mimetype=YKHO.mimetype, status=401) geh0['WWW-Authenticate'] = 'Basic realm=""' return geh0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QOwF(YKHO, Jpbe):\n if Jpbe == False:\n if YKHO.auth == False:\n G9jH.error('no authorization provided')\n return False\n Jpbe = YKHO.auth\n return Jpbe", "def em58():\n return True", "def nVrR(YKHO, geh0):\n _Xn5 = YKHO._spi\n if geh0.action != TzuF.NO_IN...
[ "0.7209968", "0.685529", "0.6843731", "0.68436116", "0.6817385", "0.66872823", "0.6657517", "0.66482794", "0.660507", "0.6561941", "0.6544488", "0.6540534", "0.6523689", "0.65181476", "0.65055543", "0.6504525", "0.64832926", "0.64752626", "0.6455755", "0.6455755", "0.6455755"...
0.78871614
0
Get the flower for the given entity indices. If self_citations=True, self_citations are not filtered out (default False). If coauthors=False, coauthors are filtered out (default True). If pub_years is provided, it must be a 2tuple of integers (start, end), representing the range of years to search; start is inclusive, ...
def bjxh(YKHO, *, TgLI=[], zgAY=[], wYGz=[], OeEw=[], C6M6=[], FM5I=[], rD0N=False, CQOH=True, oUp4=None, w7uz=None, hsk0=False): K8dW = YKHO._get_entity_indices(author_ids=TgLI, aff_ids=zgAY, fos_ids=wYGz, journal_ids=OeEw, cs_ids=C6M6, allow_not_found=hsk0) UiPg = YKHO._get_paper_indices(FM5I, allow_not_found...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ufLi(YKHO, cqqy, pHTi=2014, AUSc=None):\n if not AUSc:\n AUSc = qcWV.datetime.now().year\n yIDF = YKHO._publication_id(cqqy)\n bo34.info(f'Getting citations for {cqqy['bib']['title']}')\n sQYJ = cqqy['num_citations']\n ghjP = YKHO.scholarly.search_citedby(yIDF, year_low=pHTi, year_high=AU...
[ "0.5156868", "0.46389228", "0.4494802", "0.4466723", "0.43046287", "0.41704616", "0.416506", "0.4142146", "0.4128481", "0.40976664", "0.40841845", "0.40692306", "0.40689301", "0.40525842", "0.40508977", "0.403046", "0.40303537", "0.4028522", "0.4028332", "0.40210494", "0.4003...
0.7150026
0
Check whether the path exists or not.
def vtfo(YKHO, pmON): YKHO._sftp_connect() try: QmN4 = YKHO._sftp.lstat(pmON) except IOError: return None return QmN4
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H4si(YKHO, pmON):\n if Hy7s.path.exists(pmON):\n return True\n else:\n return False", "def _35x(pmON):\n if not pmON:\n return False\n else:\n return Hy7s.path.exists(pmON)", "def _35x(YKHO) -> bool:\n return Hy7s.path.exists(YKHO.pathname)", "def _35x(YKHO, pmO...
[ "0.86622024", "0.8599206", "0.8489259", "0.84716517", "0.845741", "0.84460485", "0.8390615", "0.8369914", "0.8332194", "0.82661915", "0.82641274", "0.82408136", "0.822159", "0.8209027", "0.81767654", "0.81520414", "0.8120998", "0.8077016", "0.8046664", "0.8045712", "0.8004437...
0.0
-1
Closes the connection and cleans up.
def DDI8(YKHO): if YKHO._sftp_live: YKHO._sftp.close() YKHO._sftp_live = False if YKHO._tranport_live: YKHO._transport.close() YKHO._tranport_live = False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lqVN(YKHO):\n YKHO.connection.close()", "def DDI8(YKHO):\n YKHO._c.close()\n YKHO._conn.close()\n YKHO._c = YKHO._conn = None", "def fFx9(YKHO):\n if not YKHO.connection.closed:\n YKHO.close()", "def DDI8(YKHO):\n YKHO.conn.close()\n YKHO._conn = None", "def fFx9(YKHO):\n ...
[ "0.82444143", "0.82194155", "0.8181025", "0.81223", "0.81173044", "0.81026775", "0.8102071", "0.8082665", "0.80800945", "0.8073951", "0.8073951", "0.8073546", "0.8070582", "0.8070582", "0.8031284", "0.8030179", "0.801929", "0.80167174", "0.80167174", "0.80073196", "0.79790056...
0.0
-1
Add a new vertex to the graph.
def wfin(YKHO, SLBp): if YKHO.getVertex(SLBp) == None: YKHO.numVertices += 1 YKHO.vertList.append(SLBp)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ohmD(YKHO, SLBp):\n YKHO.vertices.append(SLBp)", "def ohmD(YKHO, SLBp):\n Ty9i = Yegm(SLBp)\n YKHO._vertices[SLBp] = Ty9i", "def ohmD(YKHO, SLBp):\n Ty9i = Yegm(SLBp)\n YKHO._vertices[SLBp] = Ty9i", "def ohmD(YKHO, SLBp):\n Ty9i = Yegm(SLBp)\n YKHO._vertices[SLBp] = Ty9i", "def ohm...
[ "0.8687404", "0.85981774", "0.85981774", "0.85981774", "0.85981774", "0.85981774", "0.8574396", "0.8548004", "0.84816045", "0.8455397", "0.8380513", "0.83248824", "0.8320719", "0.8320719", "0.82143587", "0.8196972", "0.8161548", "0.81022435", "0.80299854", "0.8018328", "0.801...
0.8238169
14
Add a new directed edge from a source to a destination of an edge cost.
def F1KG(YKHO, zZcM, e1vZ): if zZcM not in YKHO.vertList: YKHO.addVertex(zZcM) if e1vZ not in YKHO.vertList: YKHO.addVertex(e1vZ) zZcM.addNeighbor(e1vZ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rz7z(YKHO, JZXy, pan_, sSN_=None):\n raise NotImplementedError('This is an abstract method.')", "def F1KG(YKHO, zZcM, e1vZ, sSN_=0):\n if zZcM not in YKHO.vertList:\n YKHO.addVertex(zZcM)\n if e1vZ not in YKHO.vertList:\n YKHO.addVertex(e1vZ)\n YKHO.vertList[zZcM].addNeighbor(YKHO.v...
[ "0.83283937", "0.8234575", "0.79347736", "0.7802587", "0.77861", "0.77352226", "0.7721815", "0.762318", "0.7527777", "0.7506921", "0.7436789", "0.7423323", "0.73415333", "0.7318097", "0.7306444", "0.7303264", "0.72696733", "0.7251213", "0.721232", "0.72079676", "0.71984893", ...
0.7131303
25
Return the list of vertex identifiers in the graph.
def Sn5j(YKHO): return YKHO.vertList
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EBww(YKHO):\n hlel = []\n for H5ew in YKHO._graph.keys():\n hlel.append(H5ew)\n return hlel", "def iXlf(YKHO):\n return list(YKHO._graph_dict.keys())", "def iXlf(YKHO):\n return list(YKHO._graph_dict.keys())", "def iXlf(YKHO):\n return list(YKHO.__graph_dict.keys())", "def iXlf...
[ "0.8279368", "0.8253476", "0.8253476", "0.8236676", "0.8236676", "0.8236676", "0.8236676", "0.8236676", "0.8028842", "0.79669464", "0.78710145", "0.78444964", "0.7755504", "0.7738183", "0.77130646", "0.76907706", "0.76725805", "0.76569885", "0.76250654", "0.75850475", "0.7581...
0.6793728
77
Transform X to a clusterdistance space. In the new space, each dimension is the distance to the cluster centers.
def SZFh(YKHO, EcVT): EcVT = SOCJ(EcVT, allow_nd=True, force_all_finite='allow-nan') mrZR(YKHO, 'cluster_centers_') EcVT = vtM7(EcVT, X_fit_dims=YKHO.cluster_centers_.shape, extend=True, check_n_features_only=YKHO.metric != 'euclidean') return YKHO._transform(EcVT)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tSyl(YKHO, EcVT):\n return AifU(EcVT, YKHO.cluster_centers_)", "def SZFh(YKHO, EcVT):\n EcVT = SOCJ(EcVT, accept_sparse=['csr', 'csc'])\n mrZR(YKHO, 'cluster_centers_')\n fuBA = YKHO.cluster_centers_\n return lAMv(EcVT, Y=fuBA, metric=YKHO.metric)", "def SZFh(YKHO, EcVT):\n mrZR(YKHO)\n ...
[ "0.77008545", "0.768276", "0.6865673", "0.67882013", "0.6704929", "0.6628595", "0.6628006", "0.6528709", "0.6437484", "0.64280534", "0.64256996", "0.64109045", "0.63678545", "0.6352871", "0.63140535", "0.6293588", "0.627855", "0.6272707", "0.6230948", "0.62173045", "0.6191259...
0.65340924
7
Called if a form is invalid. Rerenders the context data with the datafilled forms and errors.
def ee9W(YKHO, L03z, M4WO, Z50E): return YKHO.render_to_response(YKHO.get_context_data(form=L03z, persona_form=M4WO, contacto_form=Z50E))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ee9W(YKHO, QePW, L03z, wL1m, mYto):\n return _1tc(QePW, YKHO.template_name, YKHO.get_context_data(form=L03z, status_form=wL1m, files_form=mYto))", "def ee9W(YKHO, L03z):\n return YKHO.render_to_response(YKHO.get_context_data())", "def ee9W(YKHO, L03z, **B2fa):\n QpfX = YKHO.get_context_data(**B2fa...
[ "0.8202664", "0.79836166", "0.7913726", "0.7871155", "0.7871155", "0.7871155", "0.7871155", "0.7871155", "0.7871155", "0.7871155", "0.7870576", "0.7840268", "0.7816142", "0.7789248", "0.77881104", "0.7781492", "0.77720207", "0.7736866", "0.770091", "0.7684558", "0.76332664", ...
0.73691964
29
Convenience method to flatten a dict
def PWgb(YKHO, Csk6, PUAf='', ZIft=None): DumB = [] for G1Hx, Ty9i in Csk6.items(): if G1Hx in ZIft: continue hU8D = PUAf + ':' + G1Hx if PUAf else G1Hx if isinstance(Ty9i, g760.MutableMapping): DumB.extend(YKHO.flatten(Ty9i, hU8D, ZIft).items()) else: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CZru(Csk6: Dict) -> cuzp:\n return Cm9e(PWgb(Csk6, enumerate_types=(list,)))", "def PWgb(Csk6):\n HHXv = {}\n for G1Hx, Ty9i in Csk6.items():\n if isinstance(Ty9i, dict):\n HHXv.update(PWgb(Ty9i))\n else:\n HHXv[G1Hx] = Ty9i\n return HHXv", "def PWgb(Csk6):\n...
[ "0.84949857", "0.82102406", "0.8185731", "0.7865557", "0.78347176", "0.78140694", "0.78124", "0.7732934", "0.764513", "0.7612239", "0.7571966", "0.75552565", "0.74994713", "0.74727535", "0.74540323", "0.7448167", "0.74279493", "0.740879", "0.7387556", "0.73653173", "0.7344947...
0.7256707
24