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
Forces the user to change their password the next time they login
def LYim(YKHO): YKHO.update_attribute('PwdLastSet', 0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YxCE(YKHO) -> None:\n rn8m = AOO4.getpass('Current password: ')\n uGpu = YKHO.enter_password('New password: ', confirm=True)\n YKHO.client.change_user_password(rn8m, uGpu)\n print(\"Password changed. Next, use 'avn user login' to log in again using your new password.\")", "def faAE(Vbjy):\n pa...
[ "0.81111777", "0.788173", "0.7873365", "0.778398", "0.7654605", "0.7597", "0.7570887", "0.7560244", "0.75343555", "0.7525614", "0.75105625", "0.7498926", "0.7486331", "0.74835587", "0.74594885", "0.7449476", "0.74206436", "0.7397915", "0.7378905", "0.73683554", "0.7365206", ...
0.8118591
0
Qualitative color scale with evenly spaced hues for color aesthetic.
def Kp9c(MKlR=None, Z9rn=None, vC9B=None, t_Hg=None, XSoh=None, mWFP=None, RIgD=None, Crrw=None, c5uu=None, wozM=None, PRTk=None, uPnQ=None, format=None): return XbBI('color', name=mWFP, breaks=RIgD, labels=Crrw, limits=c5uu, expand=None, na_value=wozM, guide=PRTk, trans=uPnQ, format=format, h=MKlR, c=Z9rn, l=vC9B,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ypHe(NXpY):\n return w6yL(NXpY)", "def CP1V(tQiV, N0e1, hAEw, PNMG):\n uvMl = min((hAEw - PNMG[0]) / (PNMG[1] - PNMG[0]), 1.0)\n Z5Q9 = N0e1[0] + uvMl * (tQiV[0] - N0e1[0])\n jlxe = N0e1[1] + uvMl * (tQiV[1] - N0e1[1])\n pPPK = N0e1[2] + uvMl * (tQiV[2] - N0e1[2])\n qfpW = (Z5Q9, jlxe, pPPK...
[ "0.7055302", "0.6900011", "0.66917175", "0.6662033", "0.64507705", "0.6442421", "0.6426944", "0.6370859", "0.63283026", "0.6209002", "0.6195669", "0.61741203", "0.61663383", "0.61650777", "0.61597675", "0.61411464", "0.61379296", "0.61292887", "0.61016047", "0.6096451", "0.60...
0.5913769
45
Sequential, diverging and qualitative color scales from colorbrewer2.org for color aesthetic. Color schemes provided are particularly suited to display discrete values (levels of factors) on a map.
def iIz1(type=None, tn62=None, XSoh=None, mWFP=None, RIgD=None, Crrw=None, c5uu=None, wozM=None, PRTk=None, uPnQ=None, format=None): return XbBI('color', name=mWFP, breaks=RIgD, labels=Crrw, limits=c5uu, expand=None, na_value=wozM, guide=PRTk, trans=uPnQ, format=format, type=type, palette=tn62, direction=XSoh, scal...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hQFU(**B2fa):\n GYfx = [('Perceptually Uniform Sequential', ['viridis', 'plasma', 'inferno', 'magma', 'cividis']), ('Sequential', ['Greys', 'Purples', 'Blues', 'Greens', 'Oranges', 'Reds', 'YlOrBr', 'YlOrRd', 'OrRd', 'PuRd', 'RdPu', 'BuPu', 'GnBu', 'PuBu', 'YlGnBu', 'PuBuGn', 'BuGn', 'YlGn']), ('Sequential ...
[ "0.7134357", "0.6719543", "0.67024523", "0.6634062", "0.65807176", "0.65802485", "0.65573883", "0.6552784", "0.6550189", "0.6453542", "0.64370024", "0.6427085", "0.6423805", "0.641949", "0.6402463", "0.6374413", "0.6367043", "0.6357795", "0.6354885", "0.6354", "0.633622", "...
0.59035146
82
Determine the priority of this matcher; whether ``can_match`` of this matcher should be invoked before or after that of other matchers. A higher integer corresponds to a higher priority and thus an earlier invocation of ``can_match``.
def Ey19(YKHO) -> int: return 100
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZjN0(YKHO):\n return YKHO.priority if YKHO.match.is_wildcarded else (1 << 16) + 1", "def lHWa(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'regex_priority')", "def lHWa(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'regex_priority')", "def lHWa(YKHO) -> qe4Y.Output[h8nf[int]...
[ "0.6720447", "0.646359", "0.646359", "0.6463017", "0.63659024", "0.62571955", "0.6197769", "0.6197769", "0.6197769", "0.6197769", "0.6197769", "0.6197769", "0.6197769", "0.6197769", "0.6197769", "0.6197769", "0.6197769", "0.6197769", "0.6197769", "0.6197769", "0.6197769", "...
0.58534104
63
Return the type this matcher can handle.
def g4bv(YKHO) -> type: raise NotImplementedError
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def A9sB(YKHO):\n if YKHO._match_type_present:\n return YKHO._match_type_value\n else:\n raise AttributeError(\"missing required field 'match_type'\")", "def A9sB(YKHO) -> str:\n return qe4Y.get(YKHO, 'match_type')", "def _Ao3(YKHO) -> h8nf[int]:\n return qe4Y.get(YKHO, 'matching_type...
[ "0.7857068", "0.7767297", "0.7630736", "0.7061452", "0.7061452", "0.7010727", "0.7010727", "0.70008636", "0.70008636", "0.70008636", "0.6967894", "0.6917358", "0.6917358", "0.6917358", "0.6917358", "0.6917358", "0.6899248", "0.6896433", "0.6886751", "0.68857414", "0.688055", ...
0.7532226
3
Compute cumulative sum of the number of points in each subnode
def dxJj(PCpl): noZV = oyIN.empty(4, dtype=oyIN.int64) noZV[0] = 0 for YRbF in range(3): noZV[YRbF + 1] = noZV[YRbF] + PCpl[YRbF] return noZV
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CYQC(YKHO):\n ewCu = 0\n for bGrB in YKHO:\n ewCu += 1\n return ewCu", "def B8bW(yKcO: TreeNode) -> int:\n UHFx: int = yKcO['count']\n if yKcO['children']:\n UHFx += sum([FDkp._sum_counts(Q6kx) for bGrB, Q6kx in yKcO['children'].items()])\n return UHFx", "def i9bM(YKHO):\n ...
[ "0.6920986", "0.67759216", "0.6671297", "0.6626237", "0.6618339", "0.6617939", "0.6534532", "0.6534532", "0.65274906", "0.6505244", "0.64937747", "0.6470365", "0.6447682", "0.64288807", "0.6405587", "0.6388617", "0.63762873", "0.6353031", "0.63441324", "0.63320386", "0.632596...
0.0
-1
Plots the gradients flowing through different layers in the net during training. Can be used for checking for possible gradient vanishing / exploding problems.
def TDxh(P2ha): KKiF = [] fhcK = [] for exwG, XP5J in P2ha: if XP5J.requires_grad and 'bias' not in exwG: fhcK.append(exwG) print('########') print(exwG) if XP5J.grad is not None: print(XP5J.grad.abs().mean()) KKiF.appen...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TDxh(P2ha, qtWj, ee9X):\n KKiF = []\n p6XY = []\n fhcK = []\n for exwG, XP5J in P2ha:\n if XP5J.requires_grad and 'bias' not in exwG:\n fhcK.append(exwG)\n KKiF.append(XP5J.grad.abs().mean())\n p6XY.append(XP5J.grad.abs().max())\n QrM1.bar(oyIN.arange(1, l...
[ "0.7377325", "0.71558845", "0.7097809", "0.68693876", "0.67958605", "0.6684056", "0.65865093", "0.65048", "0.64900607", "0.6450633", "0.6393851", "0.6392717", "0.63837767", "0.6364844", "0.632478", "0.6324088", "0.6300993", "0.6258705", "0.6250037", "0.62331253", "0.6227349",...
0.7220095
1
Makes the front matter needed for Hugo.
def ONaw(leAC, upAO): return f'---\ntitle: {leAC}\nlinkTitle: {leAC}\nweight: {upAO + 1}\ntype: docs\n---\n'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KIjS():\n return TvZl('index.html')", "def pW8S(Z9JV, FqQF, leAC, dJ1p, Ghho):\n YxZ5 = '---\\nlayout: post\\ntitle: {}\\ndate: {}\\ncategory: {}\\ntags: {}\\nimg: /notebooks/imgs/{}\\nfile: /notebooks/{}\\nexcerpt_separator: </p\\n---\\n '\n eaET = _c1T.today().strftime('%Y-%m-%d')\n eZ_W = ...
[ "0.6755288", "0.6522228", "0.6322199", "0.63199294", "0.6269474", "0.62389773", "0.61865157", "0.618059", "0.6169066", "0.61629725", "0.6133587", "0.6131999", "0.6131999", "0.6131999", "0.6131999", "0.6131999", "0.6126291", "0.6126291", "0.61222404", "0.6113417", "0.61126506"...
0.5855224
83
Return the jobID given at construction
def aJ_O(YKHO): return YKHO.__jobID
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rjee(YKHO) -> str:\n return qe4Y.get(YKHO, 'job_id')", "def rjee(YKHO) -> str:\n return qe4Y.get(YKHO, 'job_id')", "def q3vm(YKHO):\n return YKHO.job_id", "def aJ_O(YKHO):\n return getattr(YKHO.data, 'jobID', None)", "def q3vm():\n return OaeV.experiment_id", "def rjee(YKHO) -> h8nf[st...
[ "0.8461564", "0.8461564", "0.8393539", "0.82434446", "0.8164557", "0.8164348", "0.81634927", "0.81634927", "0.81634927", "0.81634927", "0.81634927", "0.81634927", "0.81634927", "0.80251837", "0.80248666", "0.7938683", "0.77888495", "0.76071525", "0.75677896", "0.7546483", "0....
0.81830084
4
Return the jobID given when Sender initialized, or None if none given.
def aJ_O(YKHO): return YKHO.__jobID
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rjee(YKHO) -> h8nf[str]:\n return YKHO._job_id", "def aJ_O(YKHO):\n return getattr(YKHO.data, 'jobID', None)", "def q3vm(YKHO):\n return YKHO.job_id", "def nzKc(YKHO):\n return YKHO._job_id", "def rjee(YKHO):\n return YKHO._job_id", "def rjee(YKHO):\n return YKHO._job_id", "def rj...
[ "0.77515763", "0.7667768", "0.74647087", "0.71420157", "0.7124804", "0.7124804", "0.7124804", "0.7124804", "0.7124804", "0.7124804", "0.7124804", "0.7115766", "0.7115766", "0.70957077", "0.70501727", "0.7016513", "0.6818031", "0.67519397", "0.67150164", "0.6593955", "0.654898...
0.7330958
4
Get the result. If an exception was sent instead of a result, (via Sender's sendExcept()), that exception is raised, and the original traceback is available as the 'originalTraceback' variable in the exception object. Otherwise, the result is simply returned.
def NMoC(YKHO): if YKHO.__exception: YKHO.__exception.extraInfo = YKHO.__result YKHO.__exception.originalTraceback = YKHO.__original_traceback raise YKHO.__exception return YKHO.__result
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EEnb(YKHO):\n return (YKHO._result_message, YKHO._exception_event.is_set(), YKHO._exception_message)", "def lGdu(YKHO, yvT9):\n if isinstance(yvT9, wude):\n XYC2, qIxc = yvT9.__reduce__()\n yvT9 = XYC2(*qIxc)\n if isinstance(yvT9, BaseException):\n raise yvT9\n return yvT9", ...
[ "0.66481763", "0.6534366", "0.6459974", "0.63231355", "0.63126457", "0.62373346", "0.6192863", "0.60544324", "0.6020197", "0.600289", "0.59739906", "0.5971892", "0.5910808", "0.59092706", "0.5900745", "0.5888542", "0.58730274", "0.5845637", "0.58319575", "0.58309895", "0.5823...
0.7852574
0
This default evaluation function just returns the score of the state. The score is the same one displayed in the Pacman GUI.
def fHT3(Ov5A): return Ov5A.getScore()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fHT3(Ov5A):\n return Ov5A.getScore()", "def b7La(YKHO, QTBn):\n iBIi, oyg0, YPaw = QTBn\n return phK_(oyg0, iBIi)", "def fHT3(rfNN):\n return rfNN.getScore()", "def fHT3(rfNN):\n return rfNN.getScore()", "def fHT3(rfNN):\n return rfNN.getScore()", "def fHT3(rfNN: GameState):\n re...
[ "0.82749856", "0.81601685", "0.7951924", "0.79225886", "0.79186344", "0.7913801", "0.78671294", "0.78671294", "0.78671294", "0.78671294", "0.78671294", "0.78671294", "0.78671294", "0.78671294", "0.78671294", "0.78671294", "0.78285503", "0.78285503", "0.78285503", "0.78285503", ...
0.8257079
1
Return a string representing this wrapped node
def zAg0(YKHO): if YKHO.__nodeType == Dzev.MULTI_LAYER_EDGE: NiaE = YKHO.__node[0] return NiaE.getDistinctiveName() elif YKHO.__node: return YKHO.__node.getDistinctiveName() else: return 'NO-NAME'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vIwR(YKHO):\n l5Ny = 'node ' + SLdk.string(YKHO.identifier, default='unknown') + '\\n'\n for xC3W in dir(YKHO):\n if xC3W.startswith('_'):\n continue\n BWXx = getattr(YKHO, xC3W)\n if callable(BWXx):\n continue\n l5Ny = l5Ny + ' ' + xC3W + YKHO.fieldDelim...
[ "0.78764766", "0.7717431", "0.7444318", "0.7386942", "0.7375794", "0.7328997", "0.7328997", "0.7328997", "0.7328997", "0.7328997", "0.7328997", "0.7328997", "0.7328997", "0.73244077", "0.73062176", "0.7300175", "0.72955656", "0.72379076", "0.7237593", "0.72300756", "0.7228458...
0.0
-1
Determine the Mark. Print a Grade str.
def kxfj(Bc7X): for YRbF in Bc7X: if YRbF >= 75 and YRbF <= 100: return 'You earned a First.' elif YRbF >= 70 and YRbF < 75: return 'You earned an Upper Second.' elif YRbF >= 60 and YRbF < 70: return 'You earned a Second.' elif YRbF >= 50 and YRbF ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vwhl(YKHO, FjAN):\n return YKHO.current_mark + FjAN / 100.0 * YKHO.exam_total()", "def mH2N(YKHO):\n if YKHO.grade:\n return '{grade}/100 ({percent}%)'.format(grade=YKHO.grade, percent=YKHO.grade)\n else:\n return '(Not Graded)'", "def XziO(EQNX):\n FjAN = EQNX[7:]\n if FjAN ==...
[ "0.71456766", "0.7086035", "0.67241305", "0.67058724", "0.6635413", "0.6605999", "0.6457525", "0.6440823", "0.6406601", "0.635617", "0.6339981", "0.62734634", "0.6212534", "0.6198472", "0.6148912", "0.614286", "0.6129635", "0.6129544", "0.61012876", "0.6095128", "0.601385", ...
0.7189131
0
Return the size of the overlaps.
def yHH9(YKHO): return YKHO.overlapSize
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zNig(YKHO):\n return len(YKHO.intersections)", "def hDeO(YKHO):\n mLGw = 0\n for BHsk, qw7D in YKHO.cell_dict.items():\n if len(qw7D) > 1:\n mLGw += 1\n return mLGw", "def zNig(YKHO):\n return YKHO.end - YKHO.start", "def zNig(YKHO) -> int:\n return YKHO.stop - YKHO.st...
[ "0.79502946", "0.72649825", "0.70874435", "0.6998895", "0.6998895", "0.699258", "0.6991493", "0.69740677", "0.696092", "0.69427127", "0.6932756", "0.69293857", "0.6824934", "0.6816532", "0.68122035", "0.6812012", "0.67591697", "0.675195", "0.6748332", "0.67299604", "0.6729960...
0.854705
0
Convert recording date to datetime.datetime object. This function converts a recording date in the following format "%d%m%Y" to a datetime.datetime object.
def h_7O(ETcH): return qcWV.strptime(ETcH, '%d-%m-%Y')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def InKf(Csk6):\n return qcWV.datetime.strptime(Csk6, '%Y-%m-%d')", "def JDE9(m6Me):\n return qcWV.strptime(m6Me, '%Y-%m-%d').date()", "def JDE9(eeYG):\n _c1T = qcWV.strptime(eeYG, '%Y-%m-%d').date()\n return _c1T", "def slWZ(ZOUZ):\n return qcWV.datetime.strptime(ZOUZ[:10], '%d-%m-%Y')", "d...
[ "0.6872166", "0.67483264", "0.6620398", "0.6601221", "0.6562247", "0.6517442", "0.6504975", "0.64862394", "0.64612144", "0.6409484", "0.6397617", "0.6325926", "0.6325577", "0.6298631", "0.6296877", "0.6277009", "0.6251886", "0.6230892", "0.6215576", "0.61868775", "0.618206", ...
0.6697225
2
Load singlecolumn data from file. This function loads data from a file containing a single column of data, with scientific notation for data formatting
def choI(pmON): if not isinstance(pmON, GkAb): pmON = GkAb(pmON) if not pmON.exists(): raise ValueError nPrm = [] with open(pmON, 'r') as eHNT: for zFiD in eHNT.readlines(): nPrm.append(float(zFiD)) return nPrm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TnXZ(nUeQ):\n with open(nUeQ, 'r') as nUeQ:\n jQ3Z = rLdf.read_csv(nUeQ, header=None)\n jQ3Z = jQ3Z.rename(columns={WKvO: LVAh for WKvO, LVAh in zip(jQ3Z.columns, range(0, len(jQ3Z.columns)))})\n WKvO = jQ3Z.loc[:, 0].values\n return WKvO", "def nPrm(nUeQ, kFsc):\n nPrm = open(n...
[ "0.6893242", "0.6874386", "0.65470666", "0.6536895", "0.64991033", "0.6483631", "0.6456467", "0.6333614", "0.63333434", "0.6316818", "0.63087964", "0.62954015", "0.6276854", "0.6152787", "0.61390835", "0.6137951", "0.6115556", "0.6107407", "0.60989463", "0.6069818", "0.606366...
0.7287434
0
Divide P into two disjoint D and F. D consists of all probes p such that p ~ g_i F consists of all probes p such that p not ~ g_i
def Qrt_(cCrA, PTGk, V6IE, A07C): B_cP = oyIN.array(A07C) == PTGk lWPh = oyIN.array(V6IE)[oyIN.where(B_cP)].tolist() vuvg = oyIN.array(V6IE)[oyIN.where(~B_cP)].tolist() jxwX = cCrA.transpose()[PTGk] lWPh = jxwX[lWPh].tolist() vuvg = jxwX[vuvg].tolist() U5bT = (lWPh, vuvg) return U5bT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def scUA(vexM, XP5J):\n raise NotImplementedError", "def Tf4P(eHNT, Oa1e):\n Ujs5, Mf7r, TEj7, vuvg, yvY1 = eHNT.unify(Oa1e)\n vexM, Mkmy = KBMB(vuvg, yvY1, Ujs5, Mf7r)\n return (TEj7(vexM), TEj7(Mkmy))", "def WIcz(eHNT, WKvO, XP5J, MKlR=0.001):\n o4D3 = jth9.deepcopy(WKvO)\n ajwV = jth9.deep...
[ "0.59081155", "0.58930814", "0.55914533", "0.55437267", "0.553781", "0.5525043", "0.5506247", "0.54179776", "0.5417258", "0.53818554", "0.5374477", "0.5339616", "0.53314626", "0.52967334", "0.5215328", "0.51953435", "0.5192539", "0.51604897", "0.51407975", "0.5126223", "0.512...
0.5185872
17
returns the sum of all integers from 1 to n
def XPOE(exwG): return 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VPfk(exwG):\n KCHu = 0\n for G1Hx in range(exwG + 1):\n KCHu += G1Hx\n return KCHu", "def LXk7(exwG):\n if exwG < 1:\n return 0\n KCHu = 0\n for YRbF in range(1, exwG + 1):\n KCHu += YRbF\n return KCHu", "def dgAL(exwG):\n KCHu = 0\n for exwG in range(1, exwG...
[ "0.89046985", "0.87003833", "0.86034614", "0.8532773", "0.8505518", "0.8498605", "0.8400575", "0.83170426", "0.8307207", "0.828267", "0.8144024", "0.80627525", "0.7996753", "0.79443216", "0.7914648", "0.78895944", "0.7874324", "0.7868759", "0.78612053", "0.7853669", "0.777042...
0.85409534
3
Implement data loaders of type torch.utils.data.DataLoader for train_set and test_set.
def pdlj(YKHO, Ep8u: int, Mu_U=True, BGBO=False, I7Gy: int=0) -> (pVAc, pVAc): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pdlj(YKHO, nIKz=None):\n if not nIKz:\n nIKz = YKHO.trainset\n AHI0 = pVAc(nIKz, batch_size=YKHO.batch_size, shuffle=True)\n RkiG = pVAc(YKHO.testset, batch_size=YKHO.batch_size, shuffle=True)\n ZEJE = pVAc(YKHO.valset, batch_size=YKHO.batch_size, shuffle=True)\n return (AHI0, ZEJE, RkiG)...
[ "0.83378947", "0.7860798", "0.76777965", "0.76659113", "0.7624272", "0.75983614", "0.75660837", "0.7563689", "0.75379044", "0.7517025", "0.75006515", "0.74736166", "0.74622774", "0.74585384", "0.7450558", "0.7416006", "0.7393399", "0.7393133", "0.738672", "0.73790777", "0.732...
0.72831565
26
Extract the list of requirements from our requirements.txt.
def O1OY(): ndwV = Hy7s.path.join(Hy7s.getcwd(), 'requirements.txt') fA3L = [] wPdp = [] try: with open(ndwV) as OArK: for zFiD in OArK.readlines(): zFiD = zFiD.strip() if zFiD.startswith('#'): continue if zFiD.start...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def O1OY():\n kbO9 = []\n with open('requirements.txt', 'r') as ytgA:\n zFiD = ytgA.readline()\n while zFiD:\n kbO9.append(zFiD.strip())\n zFiD = ytgA.readline()\n return kbO9", "def O1OY():\n with open('requirements.txt', 'r') as eHNT:\n OPk6 = eHNT.readlin...
[ "0.8460384", "0.8430648", "0.8407822", "0.8352451", "0.82823634", "0.81859016", "0.81814337", "0.8123563", "0.80933136", "0.8056408", "0.8050733", "0.8050565", "0.8034053", "0.80318075", "0.80283034", "0.79588675", "0.79226667", "0.7919943", "0.79076487", "0.78685", "0.785394...
0.8128573
7
return de representation of the instance
def zAg0(YKHO): rwjl = YKHO.__class__.__name__ return '[{}] ({}) {}'.format(rwjl, YKHO.id, YKHO.__dict__)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wHJl(YKHO):\n return Napc(YKHO)", "def Napc(YKHO):\n return repr(YKHO)", "def zAg0(YKHO):\n return str(YKHO.serialize())", "def wHJl(YKHO):\n return str(YKHO.to_dict())", "def wHJl(YKHO):\n return str(YKHO.to_dict())", "def UpuU(YKHO, KAOR):\n TcPZ = super().to_representation(KAOR)\...
[ "0.7684874", "0.7365302", "0.72009087", "0.7128892", "0.7128892", "0.70766294", "0.7034491", "0.7034491", "0.6999998", "0.6997208", "0.6997208", "0.6997208", "0.6997208", "0.6997208", "0.6997208", "0.6997208", "0.6997208", "0.6997208", "0.6997208", "0.6997208", "0.6997208", ...
0.0
-1
Multiply together the elements of a list.
def Lx3t(vC9B): QRFO = 1 for WKvO in vC9B: QRFO *= WKvO return QRFO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AdrB(yv6U):\n return Pusg(seET.mul, yv6U, 1)", "def wTxu(yv6U):\n return Pusg(lambda jzdc, Fg_i: jzdc * Fg_i, yv6U)", "def UXrJ(yv6U):\n return xBlr.reduce(seET.mul, yv6U)", "def wTxu(aO51):\n return aO51[0] * aO51[1]", "def KlZB(vC9B, pSDG):\n l_Oj = [hObQ * pSDG for hObQ in vC9B]\n ...
[ "0.83316576", "0.82932025", "0.80154973", "0.79944277", "0.78447515", "0.7820625", "0.7792821", "0.7772352", "0.77453595", "0.75836694", "0.75821936", "0.7570142", "0.7570065", "0.7465973", "0.74100447", "0.7353853", "0.7339362", "0.7334055", "0.7254081", "0.72250235", "0.717...
0.76605237
9
Bilinear resizes a tensor t to have shape target_shape. This function bilinearly resizes a ndimensional tensor by iteratively applying tf.image.resize_bilinear (which can only resize 2 dimensions). For bilinear interpolation, the order in which it is applied does not matter.
def CqKx(a1PO, u5Om): ROpF = a1PO.get_shape().as_list() u5Om = list(u5Om) assert len(ROpF) == len(u5Om) Csk6 = 0 while Csk6 < len(ROpF): if ROpF[Csk6] == u5Om[Csk6]: Csk6 += 1 continue EZd9 = ROpF[:] EZd9[Csk6:Csk6 + 2] = u5Om[Csk6:Csk6 + 2] wR...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CKWI(Yw_3, zNig, iaaf=ZylS.float32):\n Yw_3 = ZylS.image.resize_bilinear(Yw_3, zNig, align_corners=True)\n return ZylS.cast(Yw_3, dtype=iaaf)", "def H2yr(Yw_3, zNig, min, max, v8sN=False, JUuH=False, mWFP=None):\n GSuR = aVzM._context or aVzM.context()\n W0pX = GSuR._thread_local_data\n if W0p...
[ "0.7640465", "0.71711415", "0.71094674", "0.6866557", "0.66861606", "0.6358081", "0.63412005", "0.6273058", "0.62606543", "0.62456435", "0.60735214", "0.60455114", "0.59892464", "0.59789723", "0.5917005", "0.58956426", "0.58935297", "0.585786", "0.58542275", "0.5835497", "0.5...
0.8561282
0
Sets the api_usage of this ApiUsageRes.
def KmZq(YKHO, KmZq): YKHO._api_usage = KmZq
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KmZq(YKHO):\n return ZZhU(YKHO._client, YKHO.id)", "def _rPS(YKHO, _rPS):\n YKHO._usage_limit = _rPS", "def e2h5(YKHO, e2h5):\n if YKHO.local_vars_configuration.client_side_validation and e2h5 is not None and (e2h5 < 0.0):\n raise ValueError('Invalid value for `usage`, must be a value great...
[ "0.6425569", "0.62719405", "0.5949206", "0.59329706", "0.59329706", "0.59329706", "0.5729741", "0.56164736", "0.55298495", "0.55298495", "0.5517727", "0.53969073", "0.50984395", "0.5090428", "0.5049836", "0.50254095", "0.50164086", "0.49303067", "0.489676", "0.48933092", "0.4...
0.83061343
0
Sets the payed_usage of this ApiUsageRes.
def eH79(YKHO, eH79): YKHO._payed_usage = eH79
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KmZq(YKHO, KmZq):\n YKHO._api_usage = KmZq", "def _rPS(YKHO, _rPS):\n YKHO._usage_limit = _rPS", "def nfYu(YKHO, nfYu):\n YKHO._usage_per_customer = nfYu", "def fpzi(YKHO, fpzi):\n YKHO._usage_unit = fpzi", "def oGSX(YKHO, oGSX):\n YKHO._percent_usage = oGSX", "def AHi4(YKHO, AHi4):\n ...
[ "0.5894114", "0.574787", "0.5742423", "0.5545197", "0.547436", "0.5355857", "0.52153665", "0.52153665", "0.52153665", "0.50919694", "0.5084522", "0.50717217", "0.5052359", "0.50288856", "0.49108773", "0.4846345", "0.48391005", "0.48033655", "0.48009786", "0.47962466", "0.4771...
0.80529714
0
Sets the last_payment of this ApiUsageRes.
def kAwh(YKHO, kAwh): YKHO._last_payment = kAwh
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SWnl(YKHO, SWnl):\n YKHO._last_payment_amount = SWnl", "def zCbh(YKHO, zCbh):\n YKHO._last_payment_date = zCbh", "def zCbh(YKHO, zCbh):\n YKHO._last_payment_date = zCbh", "def rpdr(YKHO, rpdr):\n YKHO._payment = rpdr", "def RBil(YKHO, BWXx: datetime) -> None:\n YKHO._last = BWXx", "def...
[ "0.7509625", "0.73806554", "0.73806554", "0.5882918", "0.5787726", "0.5766077", "0.57234305", "0.5661242", "0.5596281", "0.55816406", "0.5507522", "0.549569", "0.5493277", "0.5493277", "0.5489712", "0.54861933", "0.54848874", "0.54848874", "0.54601365", "0.5354252", "0.532153...
0.80489796
0
Sets the payment_profile of this ApiUsageRes.
def WC5j(YKHO, WC5j): YKHO._payment_profile = WC5j
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xFV6(YKHO, z39Z):\n YKHO._modify('profile', z39Z)", "def rpdr(YKHO, rpdr):\n YKHO._payment = rpdr", "def xFV6(YKHO, EXH2):\n YKHO.profile = EXH2", "def xCnB(YKHO, z39Z):\n G9jH.debug('SetProfile({})'.format(z39Z))\n return YKHO.direct_output.SetProfile(YKHO.device_handle, z39Z)", "def YF...
[ "0.61579937", "0.60528475", "0.5951632", "0.5856901", "0.5773152", "0.57242787", "0.57242787", "0.56533754", "0.55480623", "0.53787416", "0.53787416", "0.5376039", "0.53355455", "0.53171456", "0.5290385", "0.52699447", "0.52270645", "0.52270645", "0.5212625", "0.5195907", "0....
0.7595614
0
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.8043786
27
Sets the learning rate to the initial LR
def eC50(ma4o, paSp, Aak1): tspZ = ma4o * hqp7 ** (paSp // Aak1) if tspZ < qHtB: tspZ = qHtB return tspZ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kVtO(YKHO, tspZ=0.1):\n YKHO.learning_rate = tspZ\n return YKHO", "def kVtO(YKHO, tspZ):\n if not isinstance(tspZ, float):\n raise TypeError('lr must be a float')\n else:\n YKHO._learning_rate = tspZ", "def R4Mt(YKHO, tspZ: float) -> float:\n YKHO.optimizer_args = YKHO.optimize...
[ "0.82701445", "0.8024334", "0.79697204", "0.79401046", "0.78986454", "0.78431296", "0.7671357", "0.76635367", "0.7650322", "0.764982", "0.7643537", "0.7643537", "0.7611004", "0.7608654", "0.76080185", "0.75708276", "0.7548645", "0.7511402", "0.75071824", "0.7495704", "0.74758...
0.0
-1
Sets the learning rate to the initial LR decayed by 10 every 30 epochs
def e_63(K0do, Uraj, Aak1): tspZ = eC50(OmaG, Uraj, Aak1) for Lwm5 in K0do.param_groups: Lwm5['lr'] = tspZ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e_63(K0do, qtWj):\n nIX4 = nIX4 * 0.1 ** ((qtWj - 117) // 30)", "def e_63(K0do, qtWj, qIxc):\n tspZ = qIxc.lr * 0.1 ** (qtWj // 30)\n K0do.state_dict()['param_groups'][-1]['lr'] = tspZ", "def e_63(ma4o, K0do, qtWj, ctbl):\n tspZ = ma4o * 0.1 ** (qtWj // int(epAf.ceil(30.0 / ctbl)))\n for Lwm...
[ "0.7991837", "0.7940576", "0.78895533", "0.78278863", "0.7822731", "0.78170556", "0.7810941", "0.78027624", "0.77914375", "0.7788607", "0.7782131", "0.7765793", "0.77645", "0.77609223", "0.7749379", "0.7739108", "0.7731853", "0.77242327", "0.77121335", "0.7708826", "0.7704794...
0.0
-1
Sets the learning rate to the initial LR decayed by 10 every 30 epochs
def IHeT(K0do, Uraj, Aak1): tspZ = eC50(OmaG, Uraj, Aak1) * 0.1 for Lwm5 in K0do.param_groups: Lwm5['lr'] = tspZ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e_63(K0do, qtWj):\n nIX4 = nIX4 * 0.1 ** ((qtWj - 117) // 30)", "def e_63(K0do, qtWj, qIxc):\n tspZ = qIxc.lr * 0.1 ** (qtWj // 30)\n K0do.state_dict()['param_groups'][-1]['lr'] = tspZ", "def e_63(ma4o, K0do, qtWj, ctbl):\n tspZ = ma4o * 0.1 ** (qtWj // int(epAf.ceil(30.0 / ctbl)))\n for Lwm...
[ "0.7991837", "0.7940576", "0.78895533", "0.78278863", "0.7822731", "0.78170556", "0.7810941", "0.78027624", "0.77914375", "0.7788607", "0.7782131", "0.7765793", "0.77645", "0.77609223", "0.7749379", "0.7739108", "0.7731853", "0.77242327", "0.77121335", "0.7708826", "0.7704794...
0.0
-1
Converts any letters to their pronunciations if needed. For example TartuNLP to Tartuennellpee. Applied to continuous uppercase letters, uppercase letters after a lowercase letter, any single letters.
def c5bG(A0cm): if ZbWC.search('[A-ZÄÖÜÕŽŠ]{2}|[a-zäöüõšž][A-ZÄÖÜÕŽŠ]([^a-zäöüõšž]|$)|(^|[^A-ZÄÖÜÕŽŠa-zäöüõšž])[A-ZÄÖÜÕŽŠa-zäöüõšž]([^A-ZÄÖÜÕŽŠa-zäöüõšž]|$)', A0cm): '\n Convert pronounceable uppercase sequences (3+ chars) to lowercase to avoid spelling\n ' A0cm = ZbWC.sub('(?<![A-ZÄÖÜ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wQWD(GIN8):\n GIN8 = GIN8.replace(\"k'\", 'K')\n GIN8 = GIN8.replace(\"g'\", 'G')\n GIN8 = GIN8.replace(\"h'\", 'H')\n GIN8 = GIN8.replace(\"ts'\", 'T')\n GIN8 = GIN8.replace('dz', 'D')\n GIN8 = GIN8.replace('z', 'Z')\n GIN8 = GIN8.replace('sy', 'S')\n GIN8 = GIN8.replace(\"c'y\", 'C')\...
[ "0.70220745", "0.69343424", "0.6871176", "0.67254555", "0.6671573", "0.665578", "0.664193", "0.6621253", "0.660908", "0.6607843", "0.6607843", "0.6607843", "0.6590276", "0.6590139", "0.65650415", "0.65637827", "0.65615577", "0.65582114", "0.65474904", "0.65474904", "0.6547490...
0.6825997
3
Postprocessing to normalize the sentence and convert any URLs.
def yGns(yAmx): yAmx = ZbWC.sub('www\\.', ' VVV punkt ', yAmx) yAmx = ZbWC.sub('\\.ee(?![A-ZÄÖÜÕŽŠa-zäöüõšž])', ' punkt EE', yAmx) yAmx = ZbWC.sub('https://', ' HTTPS koolon kaldkriips kaldkriips ', yAmx) yAmx = ZbWC.sub('http://', ' HTTP koolon kaldkriips kaldkriips ', yAmx) yAmx = ZbWC.sub('\\?([A...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tYAz(YKHO, SC85):\n j93S = ZbWC.sub(IX9Y, ' URL ', SC85)\n Nqp_ = ZbWC.sub('&nbsp', '', j93S)\n pGmv = ZbWC.sub(iBvA, ' ORDER ', Nqp_)\n IiQ7 = ZbWC.sub(B_f9, ' DATE ', pGmv)\n R3CH = ZbWC.sub(Q4nw, ' TIME ', IiQ7)\n vMuS = ZbWC.sub(kPwd, ' MONEY ', R3CH)\n Kb7E = ZbWC.sub(DEWP, ' EMOJI ',...
[ "0.7264512", "0.6858226", "0.67770827", "0.6668803", "0.6642552", "0.6591477", "0.6467201", "0.64496297", "0.64303935", "0.630725", "0.63036805", "0.6263155", "0.6258381", "0.6234097", "0.62320155", "0.6226621", "0.62141055", "0.6211916", "0.6202144", "0.6192717", "0.6174309"...
0.7529511
0
Override __len__ method, return dataset's size.
def szAg(YKHO): return len(YKHO._annotations)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def szAg(YKHO) -> int:\n return len(YKHO._dataset)", "def szAg(YKHO):\n return YKHO.dataset_size", "def szAg(YKHO):\n return YKHO.dataset_size", "def szAg(YKHO):\n return YKHO.dataset_size", "def szAg(YKHO):\n return YKHO.dataset_size", "def szAg(YKHO):\n return YKHO.dataset_size", "d...
[ "0.8991388", "0.8950613", "0.8950613", "0.8950613", "0.8950613", "0.8950613", "0.8908428", "0.88704205", "0.8812668", "0.8752311", "0.8743817", "0.8669114", "0.86551785", "0.86533654", "0.86533654", "0.86533654", "0.86480105", "0.86480105", "0.8570438", "0.85597", "0.85597", ...
0.0
-1
Return foreground/background targets for given image.
def pXQk(gcB0): return oyIN.array([0 if nvEb == '__background__' else 1 for nvEb in gcB0['relations']['names']])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RH8N(YKHO):\n if YKHO.debugging_messages:\n print('Setting the update targets...')\n YKHO.content_feature_maps, bGrB = YKHO.get_activation(YKHO.content_image)\n bGrB, YKHO.style_feature_maps = YKHO.get_activation(YKHO.style_image)\n YKHO.style_target_grams = {gEmA: YKHO.get_gram_matrix(YKHO....
[ "0.60972476", "0.58218324", "0.5648534", "0.56425095", "0.558506", "0.5582388", "0.55525345", "0.55299336", "0.55296594", "0.5513672", "0.55061734", "0.549816", "0.54918456", "0.5457339", "0.5442953", "0.5438597", "0.5426151", "0.54260933", "0.54159194", "0.54063845", "0.5404...
0.6018652
1
Return (N, 2, 4) bounding boxes for given image.
def c8Yy(gcB0): oUSw = gcB0['objects']['boxes'] return oyIN.concatenate((oUSw[gcB0['relations']['subj_ids']][:, None, :], oUSw[gcB0['relations']['obj_ids']][:, None, :]), axis=1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def C1GJ(VXjJ):\n usx6 = oyIN.any(VXjJ, axis=1)\n WfCS = oyIN.any(VXjJ, axis=0)\n s_8f, X17R = oyIN.where(usx6)[0][[0, -1]]\n Yd35, ZfiU = oyIN.where(WfCS)[0][[0, -1]]\n X17R += 1\n ZfiU += 1\n return [s_8f, X17R, Yd35, ZfiU]", "def JcC1(VXjJ):\n usx6 = oyIN.any(VXjJ, axis=1)\n WfCS = ...
[ "0.80405223", "0.7784563", "0.7579547", "0.75090325", "0.7440552", "0.7302384", "0.72671527", "0.7248827", "0.71902066", "0.71799636", "0.7147237", "0.71314895", "0.7076882", "0.70734787", "0.706383", "0.70621294", "0.7039902", "0.7036607", "0.69786084", "0.6978058", "0.69780...
0.0
-1
Initialize loader for given dataset and annotations.
def FIMM(YKHO, __n6, Ep8u, hXNa=True, I7Gy=2, lM6R=False, begE='cuda:0'): super().__init__(__n6, batch_size=Ep8u, shuffle=hXNa, num_workers=I7Gy, drop_last=lM6R, collate_fn=lambda nPrm: teW6(nPrm)) YKHO._device = begE
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, __n6, *qIxc, **B2fa):\n YKHO.dl = pVAc(__n6, **B2fa)\n YKHO.iter = iter(YKHO.dl)", "def FIMM(YKHO, bWV9, bo34=None):\n if not bo34:\n YKHO.logger = G9jH.getLogger('tao.tao')\n elif isinstance(bo34, str):\n YKHO.logger = G9jH.getLogger(bo34)\n else:\n YKHO.logger...
[ "0.7230207", "0.7015696", "0.68411314", "0.6814292", "0.67533684", "0.67533684", "0.6689441", "0.66767436", "0.66154313", "0.6611357", "0.65808195", "0.65429443", "0.65131927", "0.65081376", "0.6501463", "0.65000796", "0.6463191", "0.6458906", "0.64532804", "0.6412079", "0.64...
0.0
-1
Normalize a list of patterns so that they are all absolute paths. Paths that begin with a path separator are interpreted as being relative to ``base_dir``. All other paths are interpreted as being relative to the current working directory.
def ihHW(b6H_: Iterable[str], *, oEge: str, sWmO: Optional[str]=None) -> x1iM[str]: if sWmO is None: sWmO = Hy7s.getcwd() Qtun = len(Hy7s.path.sep) def NkkI(XP5J): if XP5J.startswith(Hy7s.path.sep): XP5J = Hy7s.path.join(oEge, XP5J[Qtun:]) else: XP5J = Hy7s.p...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qfAR(YKHO, pzVU):\n Aofo = []\n for bD7m in pzVU:\n if bD7m.endswith('/'):\n bD7m = bD7m[:-1]\n Aofo.append(bD7m)\n return Aofo", "def cZ8_(*ckRy):\n return Hy7s.path.abspath(Hy7s.path.join(*ckRy))", "def ZKxN(y0cW, list, ZI14, sEAN, eHNT=lambda WKvO: WKvO, pan_=None, J...
[ "0.59256333", "0.5871116", "0.5682538", "0.5630235", "0.5556277", "0.55486655", "0.5522456", "0.5506859", "0.5482343", "0.54438937", "0.5368553", "0.5318214", "0.53149486", "0.527771", "0.52608067", "0.5253295", "0.51825964", "0.5181585", "0.5180831", "0.51710504", "0.516682"...
0.77866876
0
Gets rank of current process.
def rYOG(): if not pImw.is_available() or not pImw.is_initialized(): return 0 return pImw.get_rank()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fdMZ(YKHO):\n return YKHO.comm.rank", "def fdMZ(YKHO):\n if YKHO._rank is not None:\n return YKHO._rank\n raise NotImplementedError('Still not implemented')", "def rYOG(YKHO):\n return YKHO.rank", "def dLO0(YKHO):\n return YKHO.rank", "def gHPw(YKHO):\n YKHO.check_context_handl...
[ "0.7973944", "0.79041046", "0.7890037", "0.7819816", "0.7797255", "0.77791226", "0.77471286", "0.7707688", "0.77072906", "0.77072906", "0.77072906", "0.7683067", "0.76382804", "0.7627394", "0.7620978", "0.76024574", "0.76002103", "0.76002103", "0.75578505", "0.7492769", "0.73...
0.72106177
31
Reduces a dictionary of tensors from all processes to that with rank 0.
def Pusg(x0Ih, S8vG=True): aDYX = OZRt() if aDYX == 1: return x0Ih with ht2j.no_grad(): ZWCE = [] cRc2 = [] for H5ew in sorted(x0Ih.keys()): ZWCE.append(H5ew) cRc2.append(x0Ih[H5ew]) cRc2 = ht2j.stack(cRc2, dim=0) pImw.reduce(cRc2, dst=...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BhH1(x0Ih, Tuqy='mean'):\n for H5ew, vhpA in x0Ih.items():\n if vhpA is not None:\n x0Ih[H5ew] = wn74(vhpA, Tuqy)\n return x0Ih", "def ZRQN(eQSh, IcUa):\n for geyT in eQSh:\n for XP5J in IcUa:\n if not XP5J in geyT[1].keys():\n geyT[1][XP5J] = 0", ...
[ "0.62376827", "0.5883025", "0.5821465", "0.57578653", "0.57298857", "0.57218266", "0.57218266", "0.57218266", "0.56374484", "0.5612465", "0.54559773", "0.54506046", "0.5353974", "0.53341293", "0.530011", "0.52940345", "0.5271423", "0.52500105", "0.52309597", "0.52286935", "0....
0.5267138
17
A value in the honeypot field is an indicator of a bot request.
def Uy4r(YKHO): YKHO.request.POST[YKHO.honeypot] = 'Hi, this is a bot' YKHO.assertFalse(qxSU(YKHO.request, YKHO.form))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Bug0(YKHO):\n BWXx = YKHO.cleaned_data['honeypot']\n if BWXx:\n raise H6V6.ValidationError(YKHO.fields['honeypot'].label)\n return BWXx", "def Bug0(YKHO):\n BWXx = YKHO.cleaned_data['honeypot']\n if BWXx:\n raise H6V6.ValidationError(YKHO.fields['honeypot'].label)\n return BWX...
[ "0.659137", "0.659137", "0.644566", "0.644566", "0.58099955", "0.5699196", "0.55190897", "0.550171", "0.54178035", "0.5403671", "0.5342492", "0.5339593", "0.52756894", "0.5275654", "0.52654284", "0.52388334", "0.5232236", "0.5217404", "0.5209057", "0.51705635", "0.5168014", ...
0.615446
4
Gets the start_column of this HorizontalPageBreak.
def NQn7(YKHO): return YKHO.container['start_column']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MkK2(YKHO):\n return YKHO._column_start", "def MNmp(YKHO):\n return YKHO._begin_column", "def nfJ7(YKHO) -> int:\n if not YKHO.size.width:\n raise TMBM\n return YKHO.position.x", "def yRZa(YKHO):\n return YKHO.__start_index", "def NQn7(YKHO, NQn7):\n \"\"\"\n if start_co...
[ "0.78545797", "0.76037097", "0.6601174", "0.64812934", "0.6425444", "0.64207596", "0.63724", "0.63290757", "0.63045967", "0.6291654", "0.6264877", "0.6264877", "0.6195331", "0.6187656", "0.6147356", "0.6130333", "0.6125609", "0.60921174", "0.60812336", "0.6067789", "0.6057519...
0.7946159
0
Returns the string representation of the model
def gTzM(YKHO): return EyO9(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.83920443", "0.83544874", "0.8294375", "0.8131804", "0.8114275", "0.8099284", "0.8098424", "0.8097017", "0.8097017", "0.80916125", "0.80916125", "0.80916125", "0.80916125", "0.8084362", "0.8084362", "0.8084362", "0.8084362", "0.8084362", "0.80659354", "0.805918", "0.8056744...
0.0
-1
Loads a keras GPU model and saves it as a CPUcompatible model. The models must be exactly alike.
def ZPUn(Reum, I3G3, OTY2, PXIK): _mSQ = Hy7s.path.join(OTY2, 'weights_temp.h5') Reum.save_weights(_mSQ) I3G3.load_weights(_mSQ) bdPE.models.save_model(I3G3, Hy7s.path.join(OTY2, PXIK)) try: TTWe(_mSQ) except OSError: E4N8("Didn't trash file (probably because of Google Drive)", R...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V3BB(C3ST, EHBZ):\n fbrZ = VeaS(EHBZ)\n if len(EHBZ) > 1 and ht2j.cuda.device_count() > 1:\n C3ST = U78l.DataParallel(C3ST, device_ids=fbrZ['model']).cuda()\n elif len(EHBZ) == 1 and ht2j.cuda.device_count() >= 1:\n C3ST.to(fbrZ['model'])\n else:\n raise ValueError('CUDA device...
[ "0.6968901", "0.6950034", "0.6911477", "0.6867401", "0.6852013", "0.6793058", "0.6735186", "0.66671634", "0.66259474", "0.6603595", "0.65591556", "0.6546112", "0.65298325", "0.65212053", "0.6462619", "0.64350134", "0.6430612", "0.6420357", "0.6420163", "0.641809", "0.6415321"...
0.7590891
0
Ensure that an incorrect num_dimensions_out parameter triggers an exception
def xWsN(YKHO): with YKHO.assertRaises(ValueError): YKHO.nystrom.run(YKHO.test_matrix, num_dimensions_out=YKHO.test_matrix.shape[0])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Fz8m(YKHO):\n if YKHO._get_dimensions() not in ((1, 1), (1, 2), (2, 1)):\n tO9_ = '(Input, Output) dimensions must be one of %s, %s, or %s.' % ((1, 1), (2, 1), (1, 2))\n raise ValueError(tO9_)", "def otl3(YKHO):\n with YKHO.assertRaises(ValueError):\n YKHO.scmds.run(YKHO.test_matri...
[ "0.7473333", "0.70827574", "0.6716418", "0.6698028", "0.6663398", "0.6657554", "0.66400254", "0.6586387", "0.6581233", "0.65656507", "0.65244687", "0.64722854", "0.64608085", "0.6459475", "0.6437838", "0.64321756", "0.6411864", "0.63970464", "0.63893664", "0.63841635", "0.636...
0.71916467
1
Function that recursivey finds the parent node id.
def iZD2(_AKB, YRbF): if YRbF != _AKB[YRbF]: _AKB[YRbF] = iZD2(_AKB, _AKB[YRbF]) return _AKB[YRbF]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H7rZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'parent_id')", "def H7rZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'parent_id')", "def H7rZ(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'parent_id')", "def H7rZ(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'parent_id')", "def DtVU(YKH...
[ "0.7797938", "0.7797938", "0.76844764", "0.7671156", "0.7649738", "0.76405007", "0.76235265", "0.76132345", "0.7611461", "0.7469244", "0.74429077", "0.74189454", "0.73925775", "0.73925775", "0.73459303", "0.7340968", "0.73322344", "0.7328772", "0.7328772", "0.7270329", "0.721...
0.68878967
36
Encontra o jogador numa dada posicao de um tabuleiro. Recebe um tabuleiro e uma posicao. Devolve o jogador na celula correspondente a posicao passada como argumento. Gera um ValueError se algum dos argumentos for invalido.
def qyqC(Xg1X, oeNL): if not (JRdJ(Xg1X) and edEk(oeNL)): raise ValueError('obter_jogador: algum dos argumentos e invalido') jNOo = yc7e(oeNL) return Xg1X[jNOo[0]][jNOo[1]]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bF18(Xg1X, HSda, oeNL):\n if not (JRdJ(Xg1X) and Fk7H(HSda) and edEk(oeNL) and K9N2(Xg1X, oeNL)):\n raise ValueError('marcar_posicao: algum dos argumentos e invalido')\n jNOo = yc7e(oeNL)\n rI0h = ()\n for YRbF in range(len(Xg1X)):\n VufW = ()\n for r845 in range(len(Xg1X[YRbF]...
[ "0.6800126", "0.6571152", "0.6409339", "0.63578314", "0.6316742", "0.6299298", "0.62222445", "0.61610997", "0.61244035", "0.61009747", "0.60656834", "0.59182686", "0.5905887", "0.58259016", "0.5800932", "0.57862353", "0.5767095", "0.57668114", "0.5760557", "0.5699605", "0.567...
0.6535241
2
Marca uma jogada numa posicao livre de um tabuleiro. Recebe um tabuleiro, um jogador (que nao o "jogador vazio") e uma posicao livre. Devolve um novo tabuleiro identico ao primeiro, exceto que com a celula correspondente a posicao passada alterada para o jogador passado. Gera um ValueError se algum dos argumentos for i...
def bF18(Xg1X, HSda, oeNL): if not (JRdJ(Xg1X) and Fk7H(HSda) and edEk(oeNL) and K9N2(Xg1X, oeNL)): raise ValueError('marcar_posicao: algum dos argumentos e invalido') jNOo = yc7e(oeNL) rI0h = () for YRbF in range(len(Xg1X)): VufW = () for r845 in range(len(Xg1X[YRbF])): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YDGo(l8an, cm8T, YlxO):\n YRbF = YlxO[0]\n r845 = YlxO[1]\n exwG = len(cm8T)\n if l8an == 'c':\n if YRbF <= 0:\n return False\n p06G = cm8T[YRbF - 1][r845]\n cm8T[YRbF - 1][r845] = cm8T[YRbF][r845]\n cm8T[YRbF][r845] = p06G\n YlxO[0] = YlxO[0] - 1\n ...
[ "0.63710356", "0.62083364", "0.6133588", "0.6106348", "0.6006408", "0.5952538", "0.59144014", "0.5885891", "0.587244", "0.5838136", "0.58361226", "0.5817254", "0.57754534", "0.5733435", "0.57254344", "0.5721247", "0.56940824", "0.56626767", "0.56571656", "0.5630737", "0.56281...
0.72756475
0
Devolve um tuplo das posicoes das celulas nos cantos do tabuleiro.
def Yb1q(): return (1, oW4l, oW4l * (oW4l - 1) + 1, oW4l ** 2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JFjk(a1PO):\n lB6d = ['a1', 'c1', 'a3', 'c3']\n for IRam in lB6d:\n if K9N2(a1PO, IRam):\n return (IRam,)", "def JFjk(a1PO):\n _v6m = I0xL(a1PO)\n for YRbF in ('1', '3'):\n for r845 in ('a', 'c'):\n if Wkug(Y5JZ(r845, YRbF), _v6m):\n return (Y5JZ...
[ "0.7050403", "0.6913919", "0.6394423", "0.63001335", "0.6261984", "0.6220342", "0.6186819", "0.6172361", "0.6150828", "0.6066731", "0.60316926", "0.6011057", "0.5992984", "0.5992972", "0.5940605", "0.59389377", "0.5919676", "0.591806", "0.5871241", "0.5861939", "0.58301055", ...
0.74057895
0
Encontra todas as bifurcacoes de um jogador num tabuleiro. Recebe um tabuleiro e um jogador. Devolve um tuplo com as posicoes de todas as celulas onde ha uma bifurcacao para esse jogador (a celula de intersecao da bifurcacao). Considera uma bifurcacao onde houverem dois componentes que se intersetam, faltando aos dois ...
def Yzxd(Xg1X, HSda): if not (JRdJ(Xg1X) and Fk7H(HSda)): raise ValueError('obter_bifurcacoes: algum dos argumentos e invalido') lB6d = Yb1q() edyl = () for oeNL in iRfk(): if K9N2(Xg1X, oeNL): jNOo = yc7e(oeNL) VufW = FANM(Xg1X, jNOo[0] + 1) fvDH = N7...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JLmh(Xg1X, HSda):\n if not (JRdJ(Xg1X) and Fk7H(HSda)):\n raise ValueError('criterio_bloqueio_bifurcacao: algum dos argumentos e invalido')\n edyl = Yzxd(Xg1X, -HSda)\n Ae2G = len(edyl)\n if Ae2G == 1:\n return edyl[0]\n elif Ae2G > 1:\n uRY7 = ()\n for oeNL in iRfk()...
[ "0.67739785", "0.6446422", "0.6084653", "0.6019915", "0.5941276", "0.5879407", "0.574039", "0.570529", "0.55418503", "0.5495628", "0.54653263", "0.5431175", "0.5416636", "0.5305615", "0.5278793", "0.5263585", "0.5263518", "0.5240821", "0.5237171", "0.5231467", "0.5209716", ...
0.7212194
0
test that a file is marked as parsed if it has a sample exception (which will happen with an empty file)
def kS5T(YKHO): YKHO.clear_async_data() GPtr = YKHO._driver_config()['startup_config']['harvester']['pattern'] Ux0P = GPtr.replace('*', 'foo') YKHO.create_sample_data(Ux0P) YKHO.driver.start_sampling() YKHO.assert_event('ResourceAgentErrorEvent') YKHO.assert_file_ingested(Ux0P)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sULF():\n assert gnPz.load_geodf('this shall not work').empty", "def jyrQ(YKHO):\n YKHO.create_sample_data_set_dir('bad.DAT', Ea2P, PKPW)\n YKHO.create_sample_data_set_dir('first.DAT', Ea2P, Avah)\n YKHO.assert_initialize()\n YKHO.event_subscribers.clear_events()\n Aofo = YKHO.get_samples(B...
[ "0.72764176", "0.7270803", "0.72651595", "0.7255283", "0.71745783", "0.71136916", "0.70824325", "0.70821077", "0.70766103", "0.7038298", "0.7038298", "0.70170903", "0.69991314", "0.6991995", "0.69910365", "0.69125557", "0.6908221", "0.69021314", "0.68367255", "0.6756554", "0....
0.0
-1
Verify the actual value is None. ``shouldBeNone( actual )`` is equivalent to ``shouldBeEqual( actual, None )``.
def wSgm(YKHO, n5sN, XQfJ=None): def UsTV(n5sN, tO9_=None): """ Format an appropriate error message if one isn't provided. Parameters ---------- actual : *any* The value being produced. Keyword Parameters ------------------ msg : *string* A message to override the generated...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ge6r(YKHO, BWXx):\n return YKHO.assertEqual(BWXx, None)", "def JNnZ(YKHO, n5sN, XQfJ=None):\n\n def VmNU(n5sN, tO9_=None):\n \"\"\"\n\t\t\tFormat an appropriate error message if one isn't provided.\n\n\t\t\tParameters\n\t\t\t----------\n\n\t\t\tactual : *any*\n\t\t\t\tThe value being produced.\n...
[ "0.7763141", "0.7540125", "0.7053629", "0.687829", "0.6874507", "0.6865214", "0.6850483", "0.68454015", "0.6760917", "0.6751341", "0.6617179", "0.6537477", "0.6502201", "0.6457384", "0.64539665", "0.643549", "0.6403117", "0.639731", "0.6395349", "0.63728344", "0.6346217", "...
0.78983617
0
Verify the actual value is Zero. ``shouldBeZero( actual )`` is equivalent to ``shouldBeEqual( actual, 0 )``.
def pAUJ(YKHO, n5sN, XQfJ=None): def PcHg(n5sN, tO9_=None): """ Format an appropriate error message if one isn't provided. Parameters ---------- actual : *number* The value being produced. Keyword Parameters ------------------ msg : *string* A message to override the genera...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sWFN(YKHO, n5sN, XQfJ=None):\n\n def aFbg(n5sN, tO9_=None):\n \"\"\"\n\t\t\tFormat an appropriate error message if one isn't provided.\n\n\t\t\tParameters\n\t\t\t----------\n\n\t\t\tactual : *number*\n\t\t\t\tThe value being produced.\n\n\t\t\tKeyword Parameters\n\t\t\t------------------\n\n\t\t\tmsg...
[ "0.7766815", "0.73456895", "0.6841312", "0.6782356", "0.67748046", "0.67488813", "0.67376786", "0.6676665", "0.6592604", "0.6592604", "0.65822595", "0.65578324", "0.6508999", "0.6501871", "0.6466354", "0.646282", "0.6415386", "0.6296559", "0.62955093", "0.6287942", "0.6261995...
0.8403387
0
Verify the actual value is not None. ``shouldNotBeZero( actual )`` is equivalent to ``shouldNotBeEqual( actual, 0 )``.
def sWFN(YKHO, n5sN, XQfJ=None): def aFbg(n5sN, tO9_=None): """ Format an appropriate error message if one isn't provided. Parameters ---------- actual : *number* The value being produced. Keyword Parameters ------------------ msg : *string* A message to override the genera...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pAUJ(YKHO, n5sN, XQfJ=None):\n\n def PcHg(n5sN, tO9_=None):\n \"\"\"\n\t\t\tFormat an appropriate error message if one isn't provided.\n\n\t\t\tParameters\n\t\t\t----------\n\n\t\t\tactual : *number*\n\t\t\t\tThe value being produced.\n\n\t\t\tKeyword Parameters\n\t\t\t------------------\n\n\t\t\tmsg...
[ "0.77374905", "0.753295", "0.6929335", "0.6589628", "0.652823", "0.6443927", "0.64038414", "0.6347325", "0.630383", "0.62604654", "0.6217898", "0.61937225", "0.614964", "0.61383444", "0.613427", "0.6124109", "0.6105685", "0.60946727", "0.6077439", "0.6046081", "0.6015407", ...
0.82628375
0
Given An Image Create Augment N augmented copies of the image Since we prefer lists or numpy arrays, it is suggested to use OpenCV for opening images
def LtC6(LNo8, ywwl=100): Yw_3 = oyIN.array([LNo8 for bGrB in range(ywwl)], dtype=oyIN.uint8) Q6uT = Reog.Sequential([Reog.ContrastNormalization((0.7, 1.5)), Reog.AdditiveGaussianNoise(loc=0, scale=(0.0, 0.05 * 255), per_channel=0.5), Reog.Multiply((0.75, 1.25), per_channel=0.35), Reog.Cutout(nb_iterations=(1, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Osmv(YKHO, LNo8):\n if not isinstance(LNo8, oyIN.ndarray):\n raise TypeError(f'The image should be an np.ndarray, but you have provided a {type(LNo8)}')\n cJv3 = ZylS.image.flip_left_right(LNo8).numpy()\n x0m1 = ZylS.image.transpose(LNo8).numpy()\n VPIR = ZylS.image.adjust_saturation(LNo8, 3...
[ "0.7505037", "0.74117064", "0.7248782", "0.7215491", "0.7102443", "0.69717777", "0.69400066", "0.6931685", "0.68872386", "0.68809795", "0.6879024", "0.6877317", "0.6799706", "0.6789282", "0.67774045", "0.67545", "0.6717577", "0.67153263", "0.67109877", "0.67046106", "0.667555...
0.68750507
12
Test case for the method _odd_collatz_components.
def pMvd(): yCnv = zJeG._odd_collatz_components(13) assert yCnv is not None assert yCnv['v_i'] == 13 assert yCnv['kv_i'] == 39 assert yCnv['kv_i+c'] == 40 assert yCnv['v_i+'] == 5 yCnv = zJeG._odd_collatz_components(1, 3) assert yCnv is not None assert yCnv['v_i'] == 1 assert yCn...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f3XD():\n eieD = zJeG.odd_collatz_sequence_components(3)\n assert list(eieD.columns) == ['n', 'variable', 'decimal']\n assert list(eieD['n'].unique()) == [1, 2, 3]\n assert list(eieD['variable'].unique()) == ['v_i', 'kv_i', 'kv_i+c']\n assert list(eieD['decimal']) == [3, 9, 10, 5, 15, 16, 1]\n ...
[ "0.75638795", "0.6714397", "0.65965307", "0.63567793", "0.6083271", "0.6039219", "0.59644234", "0.58524543", "0.58113325", "0.5754819", "0.5728318", "0.56399655", "0.5631909", "0.5595943", "0.5570675", "0.5511974", "0.5404924", "0.5387052", "0.53717726", "0.5365675", "0.53321...
0.83961797
0
Open given filelike object and parse it as YAML without performing any kind of template processing
def Nysx(SGPW): with T_Uj.open(SGPW, 'r', 'utf8') as wOb_: jEKy = EVo3(wOb_) return jEKy
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aBOe(Emd4, o1P6):\n hGN5 = eJb6.safe_load(o1P6)\n return Emd4(hGN5)", "def tyeH(GXwn):\n if not callable(getattr(GXwn, 'read')):\n GXwn = open(GXwn, 'r')\n return eJb6.load(GXwn, EsqE)", "def hfK9(pmON):\n with open(pmON, 'r') as Srd8:\n return eJb6.load(Srd8)", "def tyeH(YKH...
[ "0.7222124", "0.7139608", "0.709185", "0.7031123", "0.6918707", "0.68978506", "0.68883437", "0.6874511", "0.68716604", "0.6858878", "0.68278885", "0.67518914", "0.6739829", "0.6725446", "0.66946036", "0.66738945", "0.6661587", "0.6643701", "0.6636181", "0.6635894", "0.6635361...
0.64794815
40
Return an user with id equals userid or None if there is no such user.
def TKWP(YKHO, dP7V): aM3I = 'PRAGMA foreign_keys = ON' xDcj = 'SELECT * FROM user WHERE nickname = ?' hAVj = iHv3.connect(YKHO.db_path) with hAVj: hAVj.row_factory = iHv3.Row DpUl = hAVj.cursor() DpUl.execute(aM3I) NbjQ = (dP7V,) DpUl.execute(xDcj, NbjQ) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HBPt(n10L):\n if not n10L:\n return None\n return NCls.execute('select * from users where userid = ? limit 1', (n10L,)).fetchone()", "def TKWP(YKHO, n10L):\n xDcj = 'SELECT * FROM users WHERE user_id = ?'\n dixj = YKHO._execute(xDcj, n10L)\n if not dixj:\n return None\n Aofo =...
[ "0.8406207", "0.8346367", "0.8200788", "0.8153774", "0.80841047", "0.80491364", "0.8047219", "0.79972094", "0.7993434", "0.79409564", "0.79332066", "0.7932861", "0.7932861", "0.7932861", "0.79155654", "0.78952205", "0.78952205", "0.78892547", "0.7883014", "0.7866828", "0.7864...
0.0
-1
Return a expense with id equals expense or None if there is no such expense.
def mZLT(YKHO, G423): kUBT = ZbWC.match('exp-(\\d{1,3})', G423) if kUBT is None: raise ValueError('The expenseid is malformed') wLdY = int(kUBT.group(1)) aM3I = 'PRAGMA foreign_keys = ON' xDcj = 'SELECT * FROM expense WHERE _id = ?' hAVj = iHv3.connect(YKHO.db_path) with hAVj: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wbJP(YKHO, Z1tS):\n H4oh = YKHO._expenses_register.get_all_expenses()\n xAzM = len(H4oh)\n for YwHm in range(xAzM):\n mJwe = H4oh[YwHm]\n GBG3 = mJwe.id_value\n if GBG3 == Z1tS:\n return (YwHm, mJwe)\n return None", "def Efjf(QePW, _sei):\n try:\n mJwe = ...
[ "0.72465944", "0.6023084", "0.592105", "0.57605296", "0.57513607", "0.5640433", "0.5551883", "0.54618555", "0.54582024", "0.53746337", "0.5313738", "0.5305757", "0.5299097", "0.5268229", "0.52444977", "0.5231637", "0.52225983", "0.52180344", "0.52145004", "0.5189237", "0.5154...
0.6941872
1
Take an object and test to see if it can be represented as a dictionary. If it can be, return a list of tuples, e.g.,
def EvXZ(BWXx): if BWXx is None: return None if isinstance(BWXx, (str, bytes, bool, int)): raise ValueError('cannot encode objects that are not 2-tuples') if isinstance(BWXx, g760.Mapping): BWXx = BWXx.items() return list(BWXx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def os6y(object):\n return isinstance(object, GySg)", "def OhQy(YKHO, ix6T):\n if type(ix6T) == dict:\n return [ix6T]\n elif type(ix6T) == list:\n if type(ix6T[0]) == dict:\n return ix6T\n raise Exception(str('Dict obj is invalid, must pass a dict or list of dicts to function...
[ "0.6693227", "0.66910046", "0.6614359", "0.65604234", "0.65183294", "0.65149903", "0.65023", "0.6395774", "0.63673735", "0.62790364", "0.62335604", "0.6217649", "0.608852", "0.60548544", "0.6040631", "0.6028323", "0.6024274", "0.6024274", "0.599808", "0.598191", "0.59713984",...
0.0
-1
Returns starting state of the board.
def W9gz(): return [[KAvf, KAvf, KAvf], [KAvf, KAvf, KAvf], [KAvf, KAvf, KAvf]]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tQN_(YKHO):\n return YKHO.board", "def tQN_(YKHO):\n return YKHO.board", "def tQN_(YKHO):\n return YKHO.board", "def tQN_(YKHO):\n return YKHO.board", "def tQN_(YKHO):\n return YKHO.board", "def tQN_(YKHO):\n return YKHO._start_state", "def Ee93():\n exwG = ahzX(mF_7, 5)\n r...
[ "0.8809215", "0.8809215", "0.8809215", "0.8809215", "0.8809215", "0.74344724", "0.742334", "0.7328245", "0.72898334", "0.72821885", "0.72821885", "0.7278382", "0.7248571", "0.7225358", "0.7225358", "0.7225358", "0.7225358", "0.7225358", "0.7225358", "0.7225358", "0.7225358", ...
0.0
-1
Returns set of all possible actions (i, j) available on the board.
def xASv(iBIi): if f9TP(iBIi): return None else: pass jNNc = set() for YRbF in range(len(iBIi)): for r845 in range(len(iBIi[YRbF])): if iBIi[YRbF][r845] == KAvf: jNNc.add(tuple([YRbF, r845])) return jNNc
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xASv(iBIi):\n Ylbp = set()\n for YRbF in range(len(iBIi)):\n for r845 in range(len(iBIi[0])):\n if iBIi[YRbF][r845] == KAvf:\n Ylbp.add((YRbF, r845))\n return Ylbp", "def xASv(YKHO):\n hksT = YKHO.locs[YKHO.player()]\n if hksT is None:\n return YKHO.libe...
[ "0.8078164", "0.7935423", "0.7917879", "0.7912585", "0.78729856", "0.7766741", "0.77509874", "0.77447766", "0.7738995", "0.7731153", "0.7730132", "0.7709082", "0.77006704", "0.76862395", "0.7676969", "0.76713663", "0.7665846", "0.7654127", "0.7642262", "0.7634384", "0.7632887...
0.7503337
33
Returns the winner of the game, if there is one.
def bHVe(iBIi): P6bq = f7Dd(iBIi) if f9TP(iBIi): return EcVT if P6bq == 1 else LTX_ if P6bq == -1 else None return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bHVe(YKHO):\n if YKHO.done():\n return YKHO._winner\n else:\n return None", "def ND5o(YKHO):\n return YKHO.win_conditions()[0]", "def bHVe(YKHO):\n return YKHO.board.winner()", "def bHVe(YKHO):\n J2w6 = Bu_I.compute_winner_index(YKHO.result, YKHO.game)\n if J2w6 is False:\...
[ "0.84205395", "0.83575505", "0.82868236", "0.81987756", "0.81987756", "0.8168628", "0.81224376", "0.805871", "0.7971006", "0.79522294", "0.7909224", "0.789483", "0.78946227", "0.78887254", "0.78633344", "0.7850654", "0.7850211", "0.78320843", "0.7811322", "0.7769718", "0.7765...
0.7605074
38
Returns 1 if X has won the game, 1 if O has won, 0 otherwise.
def f7Dd(iBIi): zgsA = do_f(iBIi) for XP5J in [EcVT, LTX_]: if 3 in zgsA[XP5J]['row'] or 3 in zgsA[XP5J]['col'] or 3 in zgsA[XP5J]['diag']: return 1 if XP5J == EcVT else -1 return 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hHs1(YKHO):\n return YKHO.winner() == YKHO.X_VAL", "def oyg0(iBIi):\n bHVe(iBIi)\n c8fa = 0\n Jszs = 0\n for YRbF in range(3):\n for r845 in range(3):\n if iBIi[YRbF][r845] == LTX_:\n Jszs += 1\n elif iBIi[YRbF][r845] == EcVT:\n c8fa +...
[ "0.77431494", "0.7665777", "0.7627669", "0.76235044", "0.74548364", "0.744333", "0.7343317", "0.73383707", "0.73096186", "0.7305894", "0.7282681", "0.7275687", "0.7244229", "0.72328174", "0.7207191", "0.7182036", "0.71798617", "0.71759605", "0.7175524", "0.7167598", "0.715218...
0.0
-1
Generate the next board based on the neighbor counts from alive cells
def GFsp(iBIi): q9ES = set() A_IW = z2V3(iBIi) for VmPb, UHFx in A_IW.items(): '\n Game rules:\n A cell generates if it has three neighbors\n An alive cell remains if it has two neighbors\n ' if UHFx == 3 or (VmPb in iBIi and UHFx == 2): q9ES.add(VmPb)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def D0xf(Cs6h):\n P5uO = Lm0U(len(Cs6h), len(Cs6h[0]))\n for Mkmy in range(len(P5uO)):\n for Z9rn in range(len(P5uO[0])):\n if Mkmy != 0 and Z9rn != 0 and (Mkmy != len(Cs6h) - 1) and (Z9rn != len(Cs6h[0]) - 1):\n if cpAM(Mkmy, Z9rn, Cs6h) < 2 or cpAM(Mkmy, Z9rn, Cs6h) > 3:\n ...
[ "0.7217993", "0.7210488", "0.7051222", "0.6932713", "0.6928562", "0.6826307", "0.6805297", "0.6750246", "0.6709663", "0.67089164", "0.6683853", "0.6683433", "0.6681633", "0.6615077", "0.66065365", "0.65774775", "0.6565308", "0.65265596", "0.6489457", "0.648926", "0.6473009", ...
0.76193476
0
Gets active camera from the scene
def yDvq(YKHO): return YKHO.renderer.scene.camera
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EgJx(YKHO):\n return YKHO.get_renderer().GetActiveCamera()", "def EgJx(YKHO):\n return YKHO.gd.get_active_camera()", "def zWCL(YKHO):\n return YKHO._renderer.active_camera", "def yDvq(YKHO):\n return YKHO.GetActiveCamera()", "def Tfg2(YKHO):\n return YKHO.camera", "def yDvq(YKHO):\n ...
[ "0.81739825", "0.8140003", "0.8072936", "0.80543125", "0.7578541", "0.7551414", "0.7519732", "0.74092144", "0.73544466", "0.73405635", "0.7326666", "0.7315067", "0.73010904", "0.7224688", "0.72006917", "0.71711737", "0.71172684", "0.7076406", "0.7010967", "0.6909078", "0.6859...
0.7863983
4
generate random 2d array from 0~colrow
def lesB(fvDH, rdlD): return oyIN.random.permutation(fvDH * rdlD).reshape(rdlD, fvDH)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WiTL(usx6, WfCS, G1Hx=2, yDqo=oyIN.int):\n if oyIN.issubdtype(yDqo, oyIN.integer):\n zZ0a = oyIN.random.randint(G1Hx, size=(usx6, WfCS), dtype=yDqo)\n else:\n zZ0a = oyIN.random.uniform(0, G1Hx - 1, size=(usx6, WfCS)).astype(yDqo)\n return oyIN.array([zZ0a])", "def Ljng(xlLU, QePW):\n ...
[ "0.7332269", "0.716997", "0.7069599", "0.7069599", "0.7013311", "0.7010017", "0.6827426", "0.6813061", "0.67995244", "0.677272", "0.6769336", "0.6700479", "0.66860276", "0.65969086", "0.6577925", "0.65449995", "0.65342283", "0.65198344", "0.65011287", "0.64838076", "0.6472258...
0.8286652
0
Unquotes the quoted string
def rb4d(YKHO, KCHu, **B2fa): return uRlK.unquote_plus(KCHu.encode('ascii')).decode('utf-8')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tnoA(vIwR):\n if not vIwR:\n return vIwR\n if vIwR[0] in '\"\\'':\n vIwR = vIwR[1:]\n if vIwR[-1] in '\"\\'':\n vIwR = vIwR[:-1]\n return vIwR", "def rtow(vSlG):\n while vSlG.startswith(\"'\") or vSlG.startswith('\"'):\n vSlG = vSlG[1:]\n while vSlG.endswith(\"'\...
[ "0.7939269", "0.7665705", "0.76570046", "0.7599734", "0.7556603", "0.7481408", "0.73791325", "0.7368683", "0.7368683", "0.7350305", "0.7318778", "0.7272752", "0.7250854", "0.72470915", "0.7233703", "0.7224707", "0.72144765", "0.7177008", "0.7162868", "0.7145099", "0.7137226",...
0.0
-1
Init Kite ticker object.
def CpgM(): _Wat = JcSb('<API-KEY>', '<PUB-TOKEN>', '<USER-ID>', debug=True, reconnect=False) _Wat.socket_url = 'ws://127.0.0.1:9000?api_key=<API-KEY>?&user_id=<USER-ID>&public_token=<PUBLIC-TOKEN>' return _Wat
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uIcm(YKHO):\n YKHO.spawn(YKHO.ticker)", "def FIMM(YKHO, SYlA, yKcO, Os4s=None, VOlW='1d'):\n YKHO.ticker = SYlA.upper()\n YKHO.interval = VOlW\n YKHO.cookie, YKHO.crumb = YKHO.init()\n YKHO.start = int(GQJo.timegm(JRYC.datetime(*yKcO).timetuple()))\n if Os4s is not None:\n YKHO.end =...
[ "0.7228497", "0.6615225", "0.65631485", "0.6498575", "0.64284605", "0.63817817", "0.6343015", "0.63406014", "0.63217854", "0.62185895", "0.6133159", "0.61090803", "0.6090162", "0.60044825", "0.5991486", "0.5991401", "0.598377", "0.59834296", "0.59778684", "0.59634554", "0.593...
0.6416708
5
Add a new experience to memory.
def H2v5(YKHO, QTBn, XeOP, vOGg, rxHc, _ins): tTpl = YKHO.experience(QTBn, XeOP, vOGg, rxHc, _ins) YKHO.memory.append(tTpl)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ilp5(YKHO, GsKL):\n YKHO.memory.append(GsKL)", "def H2v5(YKHO, GsKL):\n YKHO.memory.append(GsKL)", "def GsKL(YKHO, GsKL: Experience[ActionType]) -> None:\n YKHO.memory.append(GsKL)", "def H2v5(YKHO, QTBn, XeOP, vOGg, rxHc, _ins):\n YKHO.memory.append(XlZM(QTBn, XeOP, vOGg, rxHc, _ins))", "d...
[ "0.8763217", "0.8755159", "0.8509186", "0.79707366", "0.7879077", "0.7878838", "0.7878838", "0.7709677", "0.7708713", "0.7609456", "0.74958277", "0.7470479", "0.74537706", "0.737918", "0.73555547", "0.730577", "0.7283659", "0.7276514", "0.72636735", "0.7246649", "0.72328925",...
0.7199177
27
Randomly sample a batch of experiences from memory.
def mvm2(YKHO, Ep8u=64): return tuKI.sample(YKHO.memory, k=YKHO.batch_size)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mvm2(YKHO, Ep8u=64):\n return tuKI.sample(YKHO.memory, Ep8u)", "def cQJh(YKHO):\n Wc9F = []\n for YRbF in Ni9Y(YKHO.minibatch_size):\n Wc9F.append(YKHO.experiences[qukk(0, len(YKHO.experiences))])\n return oyIN.asarray(Wc9F)", "def mvm2(YKHO):\n wfZK = tuKI.sample(YKHO.memory, k=YKHO....
[ "0.7983961", "0.79046863", "0.7868443", "0.7706011", "0.7525482", "0.75070703", "0.7481443", "0.74332356", "0.7432144", "0.7427844", "0.74261487", "0.74147487", "0.7403821", "0.7403821", "0.7403821", "0.7392868", "0.7389204", "0.7389204", "0.7389204", "0.7379021", "0.7376972"...
0.66354436
75
Build an actor (policy) network that maps states > actions. Note that the raw actions produced by the output layer are in a [0.0, 1.0] range (using a sigmoid activation function). So, we add another layer that scales each output to the desired range for each action dimension. This produces a deterministic action for an...
def n8cN(YKHO): wspz = fhcK.Input(shape=(YKHO.state_size,), name='states') Zxma = fhcK.Dense(units=32 * YKHO.NnDensity, activation='relu')(wspz) Zxma = fhcK.Dropout(YKHO.DropoutFactor)(Zxma) Zxma = fhcK.Dense(units=64 * YKHO.NnDensity, activation='relu')(Zxma) Zxma = fhcK.Dropout(YKHO.DropoutFactor)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def y55D(vVLY, TcwO):\n mHXv = X6a0(shape=[vVLY])\n hftd = l6ZH(400, activation='relu')(mHXv)\n oVJE = l6ZH(400, activation='relu')(hftd)\n BWXx = l6ZH(TcwO, activation='linear')(oVJE)\n C3ST = ZylS.keras.Model(inputs=mHXv, outputs=BWXx)\n return (C3ST, C3ST.trainable_weights, mHXv)", "def n8cN...
[ "0.72102946", "0.6829593", "0.6727367", "0.6637787", "0.65124005", "0.65101534", "0.6503611", "0.6442315", "0.64390016", "0.6438544", "0.64138734", "0.6409025", "0.6388799", "0.6387184", "0.6383778", "0.6382278", "0.63430613", "0.6333587", "0.6316051", "0.631322", "0.63025004...
0.0
-1
Compile all calculated spectra into a single ``XyData`` node for easier plotting. The keyword arguments must be an arbitrary number of ``XyData`` nodes from the `output_spectra` of `XspectraCalculation`s, all other `kwargs` will be discarded at runtime. Returns a single ``XyData`` node where each set of y values is lab...
def CDGR(**B2fa): yHFQ = uerr() imvg = [] RaIF = [] o2T3 = [] _nn5 = [Q6kx for UXqs, Q6kx in B2fa.items() if isinstance(Q6kx, uerr)] for pV2_ in _nn5: UU4I = pV2_.creator FEiQ = UU4I.res psFH = FEiQ['xepsilon'] Zg4Y = pV2_.get_y() if len(Zg4Y) == 1: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qSHj(WKvO):\n print(WKvO)\n Wqkv = []\n ezP5 = []\n b25f = []\n YoeV = []\n M61a = 'C:\\\\Users\\\\18503\\\\Dropbox\\\\RA\\\\Code\\\\RA\\\\PatchUp\\\\PatchUp\\\\Sachin'\n od_C = 'python Load_workspace.py --ClearWorkspace True'\n FB6H = Yn3K.check_output(od_C, shell=True, cwd=M61a)\n ...
[ "0.5073948", "0.5023022", "0.4883708", "0.47938758", "0.47923574", "0.47914279", "0.4773553", "0.47652313", "0.4748369", "0.47468397", "0.47303838", "0.47248414", "0.47128102", "0.47107622", "0.47097287", "0.46913666", "0.46856776", "0.4679478", "0.46743625", "0.46703008", "0...
0.6835603
0
Test logging to dashboard page as a child user. child_list should contain only the logged in child user.
def _2rT(YKHO, x0hE, miva, aUGN, Yyg9): aQwA(x0hE, 'nat_k') geh0 = x0hE.get('/dashboard/') assert Melv.objects.count() == 2 assert geh0.status_code == 200 assert len(geh0.context['child_list']) == 1 assert geh0.context['child_list'][0] == aUGN
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Easp(YKHO):\n YKHO.user_child.user_type = 3\n YKHO.user_child.save()\n YKHO.test_jwt_authentication()\n geh0 = YKHO.client.get(YKHO.url_child)\n YKHO.assertEqual(403, geh0.status_code)", "def jp22(YKHO, x0hE, y0Dl, aUGN, Yyg9):\n aQwA(x0hE, 'tom_k')\n geh0 = x0hE.get(gxEw('dashboard:dash...
[ "0.7268077", "0.71757025", "0.70697755", "0.7015973", "0.6911815", "0.6872128", "0.686716", "0.6737425", "0.67137957", "0.6640975", "0.66353667", "0.65472233", "0.65447086", "0.6439392", "0.6433362", "0.6394715", "0.63735354", "0.6364498", "0.6318388", "0.63058203", "0.630468...
0.80907667
0
Confirm view is properly displayed for a logged in parent user who's child we want to see.
def jPDw(YKHO, x0hE, aUGN, y0Dl): aQwA(x0hE, 'tom_k') assert mv1M.objects.exclude(username=gCuF.ANONYMOUS_USER_NAME).count() == 2 assert Melv.objects.count() == 1 geh0 = x0hE.get(gxEw('dashboard:child-detail', kwargs={'pk': aUGN.pk})) assert geh0.status_code == 200 DqlU = geh0.templates asse...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RoDU(YKHO, x0hE, aUGN, y0Dl):\n aQwA(x0hE, 'tom_k')\n geh0 = x0hE.get(gxEw('dashboard:child-delete', kwargs={'pk': aUGN.pk}))\n assert geh0.status_code == 200\n DqlU = geh0.templates\n assert DqlU[0].name == 'dashboard/child_delete.html'", "async def is_verified_by_parent(YKHO):\n nPrm = aw...
[ "0.66012037", "0.6433158", "0.63172525", "0.6213575", "0.61884207", "0.6028467", "0.6027362", "0.5963697", "0.5918262", "0.59115994", "0.58450717", "0.5832908", "0.57909787", "0.5780543", "0.5765934", "0.57541454", "0.5745791", "0.5724562", "0.57204103", "0.5716195", "0.56920...
0.6347675
2
Confirm child user unable to add/edit/delete their actions.
def h07H(YKHO, x0hE, miva, AgIh, PvBA): aQwA(x0hE, 'nat_k') geh0 = x0hE.get(gxEw('dashboard:child-detail', kwargs={'pk': miva.pk})) assert f'href="/dashboard/child/{miva.pk}/smiley/{AgIh.pk}/delete/">' not in geh0.content.decode() assert f'href="/dashboard/child/{miva.pk}/smiley/{AgIh.pk}/edit/">' not i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ykmN(YKHO, x0hE, EnrC, zL3i, aUGN):\n aQwA(x0hE, 'johny_c')\n geh0 = x0hE.get(gxEw('dashboard:child-update', kwargs={'pk': aUGN.pk}))\n assert geh0.status_code == 403", "def ICfO(YKHO, x0hE, aUGN, EnrC):\n aQwA(x0hE, 'johny_c')\n geh0 = x0hE.get(gxEw('dashboard:smiley-create', kwargs={'pk': aU...
[ "0.6867623", "0.66804856", "0.63071495", "0.6297045", "0.6197868", "0.6180639", "0.613527", "0.61053926", "0.61046255", "0.6055535", "0.6031451", "0.60181344", "0.60111773", "0.59869957", "0.59648573", "0.5940815", "0.5940535", "0.5938387", "0.59296304", "0.5914239", "0.59137...
0.6589556
2
Test view redirects when trying to access other user's child data when logged in as a parent.
def MLfk(YKHO, x0hE, aUGN, EnrC): aQwA(x0hE, 'johny_c') geh0 = x0hE.get(gxEw('dashboard:child-detail', kwargs={'pk': aUGN.pk})) assert geh0.status_code == 403
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jPDw(YKHO, x0hE, aUGN, y0Dl):\n aQwA(x0hE, 'tom_k')\n assert mv1M.objects.exclude(username=gCuF.ANONYMOUS_USER_NAME).count() == 2\n assert Melv.objects.count() == 1\n geh0 = x0hE.get(gxEw('dashboard:child-detail', kwargs={'pk': aUGN.pk}))\n assert geh0.status_code == 200\n DqlU = geh0.templat...
[ "0.77875066", "0.7255633", "0.724862", "0.7245038", "0.719893", "0.71891576", "0.71469617", "0.705949", "0.69455814", "0.694074", "0.689502", "0.6876739", "0.68487895", "0.6816306", "0.6747386", "0.67406976", "0.67178804", "0.6703506", "0.6586299", "0.6584011", "0.6572274", ...
0.7857308
0
Test view redirects when trying to access other child's data when logged in as a child.
def DCWW(YKHO, x0hE, miva, Yyg9): aQwA(x0hE, 'nat_k') geh0 = x0hE.get(gxEw('dashboard:child-detail', kwargs={'pk': Yyg9.pk})) assert geh0.status_code == 403
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jPDw(YKHO, x0hE, aUGN, y0Dl):\n aQwA(x0hE, 'tom_k')\n assert mv1M.objects.exclude(username=gCuF.ANONYMOUS_USER_NAME).count() == 2\n assert Melv.objects.count() == 1\n geh0 = x0hE.get(gxEw('dashboard:child-detail', kwargs={'pk': aUGN.pk}))\n assert geh0.status_code == 200\n DqlU = geh0.templat...
[ "0.7761523", "0.7633379", "0.7497021", "0.7126019", "0.70690244", "0.7032448", "0.7030513", "0.69776684", "0.6970391", "0.6950226", "0.692562", "0.69168925", "0.6892442", "0.6845695", "0.68197584", "0.6811212", "0.67917895", "0.6762992", "0.67499983", "0.6717271", "0.66575295...
0.73294795
3
Confirm redirection when trying to update other user's profile.
def ykmN(YKHO, x0hE, miva, y0Dl): aQwA(x0hE, 'nat_k') geh0 = x0hE.get(gxEw('dashboard:user-update', kwargs={'pk': y0Dl.pk})) assert geh0.status_code == 403
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gKPH(QePW):\n KKyc = YKS1.preferences.getPreferences(QePW.user)\n P1dF = None\n if 'POST' == QePW.method:\n NArs = QePW.POST.copy()\n QePW.user.username = NArs['username']\n QePW.user.email = NArs['email']\n QePW.user.first_name = NArs['first_name']\n QePW.user.last_...
[ "0.737847", "0.71062255", "0.6822467", "0.6629976", "0.6521032", "0.64132565", "0.63924915", "0.6358775", "0.6293383", "0.6281802", "0.62465554", "0.62338525", "0.62220955", "0.6219117", "0.6136093", "0.6117077", "0.61127275", "0.6109526", "0.6105209", "0.61022955", "0.609569...
0.0
-1
Confirm child user data is modified and saved in the database.
def xKqU(YKHO, x0hE, y0Dl, zL3i, aUGN, t5Qw, Gxpf, Ehsq): Ehsq.setattr('django.core.files.storage.FileSystemStorage.save', Gxpf) BGqR = {'username': 'test_username', 'name': 'test_name', 'email': 'testemail@email.com', 'star_points': 12, 'profile_photo': t5Qw} aQwA(x0hE, 'tom_k') geh0 = x0hE.post(gxEw('...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Endr(YKHO):\n YKHO.user_child.user_type = 1\n YKHO.user_child.save()\n YKHO.test_jwt_authentication()\n geh0 = YKHO.client.get(YKHO.url_update)\n YKHO.assertEqual(403, geh0.status_code)", "def FR_8(YKHO):\n YKHO.save()", "def llHi(Emd4, CBIr):\n CBIr.save()", "def lac1(YKHO, QePW, YE...
[ "0.6767224", "0.6541112", "0.65322554", "0.6436589", "0.63800776", "0.6343985", "0.62846744", "0.62791", "0.6260948", "0.6223323", "0.6182073", "0.6116726", "0.6108747", "0.60961103", "0.6081975", "0.6071404", "0.60706276", "0.6053196", "0.6046774", "0.6046774", "0.6046774", ...
0.59342945
32
Returns if value is straight, does not recognize Ace, 2, 3, 4, 5 as a straight.
def TOY7(RZ8t): hkxX = TSF4(RZ8t) Q4hG = hkxX[0] for YRbF in Ni9Y(1, len(hkxX)): if hkxX[YRbF] != Q4hG + 1: return [False] Q4hG += 1 return [Q4hG]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TOY7(YKHO):\n hkxX = [dxhl.value for dxhl in YKHO.cards]\n hkxX = sorted(hkxX)\n for or8S in range(len(hkxX) - 1, 0, -1):\n if hkxX[or8S] - hkxX[or8S - 1] != 1:\n return 0\n return hkxX[-1]", "def PLAC(RZ8t):\n hkxX = [dxhl.rank_as_number() for dxhl in RZ8t]\n ZUbE = max(h...
[ "0.6060089", "0.5990143", "0.59068966", "0.5826289", "0.58008295", "0.57834816", "0.56642747", "0.5632124", "0.55531466", "0.5551113", "0.55388653", "0.54749644", "0.5445583", "0.5415192", "0.54073596", "0.53776044", "0.5354538", "0.53232867", "0.5310148", "0.5269763", "0.525...
0.53656006
16
If this returns true, it is the largest hand available given there are no ties.
def pVJD(RZ8t): PN3e = RFOL(RZ8t) PLAC = TOY7(RZ8t) return [PN3e[0] and PLAC[0]]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PLAC(RZ8t):\n return mTws(sorted(hkxX(RZ8t)))", "def v6SU(YKHO, khoC: List[Card_Deck.Card]) -> bool:\n if not YKHO._is_straight and (not YKHO._is_flush):\n return len(khoC) == len(set(khoC))\n return False", "def lA7J(RZ8t):\n return hF32(RZ8t) and t8VR([Z9rn for Z9rn in RZ8t if Z9rn.val...
[ "0.7101805", "0.682934", "0.68197775", "0.6757532", "0.6737903", "0.6702152", "0.6699753", "0.669928", "0.6687857", "0.6596316", "0.6592927", "0.6515214", "0.6511697", "0.6507629", "0.6499385", "0.64717937", "0.6413094", "0.64053243", "0.6395263", "0.6345332", "0.63292974", ...
0.0
-1
If this returns true, it is the largest hand available given there are no ties.
def fGPn(RZ8t): PN3e = RFOL(RZ8t) PLAC = TOY7(RZ8t) return [PN3e[0] and PLAC[0] == AgI0['A']]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PLAC(RZ8t):\n return mTws(sorted(hkxX(RZ8t)))", "def v6SU(YKHO, khoC: List[Card_Deck.Card]) -> bool:\n if not YKHO._is_straight and (not YKHO._is_flush):\n return len(khoC) == len(set(khoC))\n return False", "def lA7J(RZ8t):\n return hF32(RZ8t) and t8VR([Z9rn for Z9rn in RZ8t if Z9rn.val...
[ "0.7102786", "0.6831626", "0.6821218", "0.6758409", "0.67402554", "0.67055815", "0.6701318", "0.6700651", "0.6689383", "0.65988433", "0.65965027", "0.6516819", "0.6512713", "0.6509164", "0.6500113", "0.6474205", "0.6415601", "0.6405654", "0.63941824", "0.634805", "0.6330377",...
0.0
-1
r""" Returns a string containing name of the model.
def OptG(YKHO): return 'Generative Active Pictorial Structures'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TbE8():\n return HNvu", "def ZGE9(YKHO) -> str:\n return YKHO._model_name", "def ZGE9(YKHO) -> str:\n return YKHO._model_name", "def txlv(YKHO):\n return YKHO.wink.model_name()", "def ZGE9(YKHO):\n return YKHO._model_name", "def ZGE9(YKHO):\n return YKHO._model_name", "def ZGE9(YK...
[ "0.88785934", "0.8817965", "0.8817965", "0.87856793", "0.8752629", "0.8752629", "0.8744893", "0.8704769", "0.8550626", "0.8529823", "0.85293365", "0.850946", "0.84693307", "0.8451886", "0.8410155", "0.8410155", "0.8395777", "0.8384137", "0.8384137", "0.83507246", "0.82601863"...
0.0
-1
Transform `signal` to `stimulus` using the `estimator` `fit_transform` method or simply set them equal if no `estimator` was passed.
def SZFh(YKHO): if YKHO.estimator is None: YKHO._stimulus = YKHO.signal elif YKHO.signal.ndim != 2: raise ValueError('Signal must be two-dimensional, but is {self.signal.ndim}.') else: YKHO._stimulus = YKHO.estimator.fit_transform(YKHO.signal) if hasattr(YKHO.estimator, 'fitted_X...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hdXp(YKHO, KCHu, nRyB=True):\n YKHO.current_sample = KCHu\n if nRyB:\n YKHO.current_sample.compute_posterior(YKHO.data)", "def XckE(YKHO):\n if YKHO._stimulus is None:\n YKHO.transform()\n return YKHO._stimulus", "def V9wn(YKHO):\n if YKHO._fitted_signal is None:\n YKHO....
[ "0.49803895", "0.49353966", "0.49257752", "0.48631346", "0.48099127", "0.47788048", "0.47374347", "0.47310048", "0.4707448", "0.46850133", "0.46521702", "0.46517777", "0.46444783", "0.461463", "0.46078783", "0.4607683", "0.4599268", "0.45760962", "0.45470306", "0.45274004", "...
0.74533015
0
List of names for each channel.
def ni7T(YKHO): if YKHO.channel_axis is None: return [0] return list(range(YKHO.signal.shape[YKHO.channel_axis]))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def q4Uc(YKHO) -> list[str]:\n return [YwkQ.name() for YwkQ in YKHO]", "def otYK(YKHO):\n return YKHO.channel_names.channel_names[YKHO.nchannels - 1]", "def fv66(YKHO):\n return YKHO._channels.keys()", "def F_ul(Emd4):\n pass", "def F_ul(YKHO):\n if not YKHO.channel_names:\n YKHO.chan...
[ "0.84555626", "0.8261601", "0.81130296", "0.7970893", "0.7914829", "0.7835428", "0.77826625", "0.7722378", "0.76372516", "0.7345542", "0.7332383", "0.72080797", "0.7203261", "0.718408", "0.7044553", "0.7041491", "0.70395935", "0.6999059", "0.6979316", "0.6967933", "0.69628334...
0.6929106
22
A dictionary of the settings initialized with.
def gCuF(YKHO): if not hasattr(YKHO, '_settings'): return {} return YKHO._settings
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gCuF(YKHO):\n return {aoD7.key: aoD7.value for aoD7 in YKHO.values.values()}", "def gCuF(YKHO):\n return getattr(YKHO, YKHO.settings_attr, {})", "def asJJ(YKHO):\n return {'autoanchor': YKHO.get_setting('default_autoanchor'), 'autolink': YKHO.get_setting('default_autolink'), 'bracket': YKHO.get_se...
[ "0.8019379", "0.7919551", "0.79125434", "0.7798455", "0.77823436", "0.77264816", "0.76358545", "0.7634847", "0.7581849", "0.75472903", "0.75383615", "0.7525653", "0.7521671", "0.7451755", "0.7451755", "0.7451755", "0.7366612", "0.7273407", "0.72615576", "0.72569114", "0.72379...
0.8006577
1
internal method for reading the value of a single bit within a byte
def aei3(YKHO, YB8B, HkJz): if YB8B & 1 << HkJz: return 1 else: return 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ONnt(YKHO):\n return next(YKHO.bs)", "def SMHM(YB8B, XU7X):\n return (YB8B & 1 << XU7X) >> XU7X", "def kLdV(YKHO):\n if YKHO.__curbit != 0:\n YKHO.__curbit -= 1\n else:\n YKHO.__curbit = YKHO.__tagsize * 8 - 1\n YKHO.__tag = ord(YKHO.read_byte())\n for YRbF in Ni9Y(Y...
[ "0.8049664", "0.7819873", "0.7800942", "0.7640489", "0.7528459", "0.7368008", "0.71648234", "0.71648234", "0.71530604", "0.71309865", "0.7076422", "0.706363", "0.70137846", "0.7000888", "0.6985672", "0.6916351", "0.69075406", "0.68950254", "0.6871956", "0.68668324", "0.680162...
0.6769154
21
Check if a user can delete an item
def pl9F(YKHO, zJ7I: int, uJjO: int, mWFP: str) -> bool: if int(YKHO.order_id) != int(zJ7I): return False if YKHO.order.is_closed(): return False if YKHO.user is not None and YKHO.user_id == uJjO: return True if uJjO is None: return False CBIr = mv1M.query.filter(mv1M...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pl9F(YEnM, CBIr):\n return YEnM.can_delete(CBIr)", "def vzGZ(YKHO, CBIr, YEnM):\n return CBIr.is_superuser", "def vmyW(YKHO, CBIr):\n return YKHO.object_ref.user_can_write(CBIr)", "def XdxJ(YKHO, CBIr):\n M7yl = YKHO.user and CBIr == YKHO.user and CBIr.active\n return M7yl or CBIr.is_admin...
[ "0.8468748", "0.81483287", "0.78170055", "0.77577925", "0.7715776", "0.7695197", "0.75826627", "0.7568118", "0.7568118", "0.7568118", "0.7568118", "0.7568118", "0.7568118", "0.7568118", "0.7568118", "0.7568118", "0.7568118", "0.7568118", "0.7548154", "0.75456697", "0.747913",...
0.6909221
42
Returns a list of primes < n
def rPed(exwG): KwQv = [True] * exwG for YRbF in range(3, int(exwG ** 0.5) + 1, 2): if KwQv[YRbF]: KwQv[YRbF * YRbF::2 * YRbF] = [False] * int((exwG - YRbF * YRbF - 1) / (2 * YRbF) + 1) return [2] + [YRbF for YRbF in range(3, exwG, 2) if KwQv[YRbF]]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m7wK(exwG):\n return [XP5J for XP5J in rPed(exwG)]", "def Nwax(exwG):\n if exwG < 3:\n return []\n k0lF = [True] * exwG\n k0lF[0], k0lF[1] = (False, False)\n for YRbF in range(2, int(exwG ** 0.5) + 1):\n if k0lF[YRbF]:\n r845 = YRbF ** 2\n while r845 < exwG:...
[ "0.86087304", "0.8465961", "0.8404614", "0.83789027", "0.8363042", "0.83143276", "0.8314092", "0.8270192", "0.82660556", "0.8209447", "0.8192019", "0.81668335", "0.8148108", "0.814715", "0.8142264", "0.81268436", "0.8117432", "0.81040895", "0.8084144", "0.8040378", "0.803834"...
0.79946685
24
Returns the factors of a number.
def Llmz(exwG): if exwG > 0: Llmz = BMro(exwG) hFiK = [1] for XP5J, Mkmy in Llmz: hFiK = [Csk6 * XP5J ** tTpl for Csk6 in hFiK for tTpl in range(Mkmy + 1)] return sorted(hFiK) else: return [0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MAdn(FGW3):\n Llmz = []\n for Csk6 in range(1, int(epAf.sqrt(FGW3)) + 1):\n if FGW3 % Csk6 == 0:\n Llmz.append([Csk6, FGW3 // Csk6])\n return Llmz", "def TbPN(mLGw):\n Llmz = []\n H8Ha = 1\n while H8Ha * H8Ha <= mLGw:\n if mLGw % H8Ha == 0:\n if mLGw // H...
[ "0.8566098", "0.8203914", "0.80984783", "0.8070582", "0.79837143", "0.7930759", "0.79288065", "0.79133093", "0.7876376", "0.78648496", "0.78127205", "0.78083646", "0.78062177", "0.77920383", "0.77464795", "0.77429307", "0.7735396", "0.77253836", "0.769964", "0.7679959", "0.76...
0.749992
39
Create a twin of Axes for generating a plot with a shared xaxis and yaxis. The xaxis (yaxis) of ax will have ticks on bottom (left) and the returned axes will have ticks on the top (right). It will have wrong behaiver when the axislimits are changed by setting ticks. This can be corrected by call `xlim` to reset the li...
def CxKR(nUHY='xy', aNZO=None): assert nUHY in ['x', 'y', 'xy'] if aNZO is None: aNZO = QrM1.gca() fTVC = aNZO._make_twin_axes() fTVC._shared_x_axes.join(fTVC, aNZO) fTVC._shared_y_axes.join(fTVC, aNZO) fTVC._adjustable = 'datalim' fTVC.set_xlim(aNZO.get_xlim(), emit=False, auto=Fals...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HcPZ(YKHO, aNZO: Optional[Axes]=None) -> MlUv:\n if aNZO is None:\n aNZO = QrM1.gca()\n fTVC = aNZO.twinx()\n fTVC.spines['right'].set_visible(True)\n fTVC.tick_params(axis='y', labelcolor=YKHO.axis_color, color=YKHO.axis_color, left=True)\n return fTVC", "def HcPZ(YKHO, aNZO: Optional=...
[ "0.7314512", "0.72991437", "0.7187642", "0.70686334", "0.70441777", "0.6994626", "0.65106446", "0.6338801", "0.62514883", "0.62193036", "0.6194867", "0.61702156", "0.6125227", "0.6121418", "0.6100235", "0.5963293", "0.592681", "0.59194326", "0.591836", "0.5901926", "0.5876075...
0.7645478
0
Interleave (colour) planes, e.g. RGB + A = RGBA. Return an array of pixels consisting of the `ipsize` elements of data from each pixel in `ipixels` followed by the `apsize` elements of data from each pixel in `apixels`. Conventionally `ipixels` and `apixels` are byte arrays so the sizes are bytes, but it actually works...
def C1sZ(cvuv, R3MD, qJwd, Qotd): GD5E = len(cvuv) TzDe = len(R3MD) I5lr = GD5E + TzDe JcMg = qJwd + Qotd yvT9 = qw7D(cvuv.typecode) yvT9.extend(cvuv) yvT9.extend(R3MD) for YRbF in range(qJwd): yvT9[YRbF:I5lr:JcMg] = cvuv[YRbF:GD5E:qJwd] for YRbF in range(Qotd): yvT9[...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E5BI(fhcK, LGJQ=(' ', 0)):\n an0k = []\n for fuuP in zip(*fhcK):\n Te0r = []\n for sROa in zip(*fuuP):\n lE_l = [CvxM for CvxM in sROa if CvxM[0] != ' ']\n if len(lE_l) is 0:\n Te0r.append(LGJQ)\n else:\n Te0r.append(lE_l[-1])\n...
[ "0.56398934", "0.54582983", "0.5255887", "0.5236955", "0.52329224", "0.5173927", "0.5173927", "0.5154564", "0.51449746", "0.51174796", "0.5112001", "0.50404966", "0.50399756", "0.5037163", "0.50307125", "0.50166124", "0.50002146", "0.49848735", "0.49640784", "0.4946771", "0.4...
0.8126397
0
Return an iterator that will yield each chunk as a (chunktype, content) pair.
def eHxA(YKHO): while True: a1PO, Ty9i = YKHO.chunk() yield (a1PO, Ty9i) if a1PO == b'IEND': break
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eHxA(YKHO):\n for yOAJ in YKHO.response.iter_content(chunk_size=1024):\n if yOAJ:\n yield yOAJ", "def wOb_(YKHO):\n Itl3 = YKHO.get_iter()\n\n def OfOo():\n if YKHO.verify_checksum:\n aEqx = YKHO.verify_checksum if isinstance(YKHO.verify_checksum, str) else YKHO.h...
[ "0.74202436", "0.71462804", "0.7112267", "0.7109347", "0.70933706", "0.6968672", "0.69314945", "0.687066", "0.6861479", "0.68527365", "0.6832578", "0.6827214", "0.67231923", "0.6711626", "0.6671694", "0.66234815", "0.6566815", "0.65447867", "0.6539157", "0.6533372", "0.652037...
0.72459024
1
Iterator that yields all the ``IDAT`` chunks as strings.
def QVBI(): while True: try: type, nPrm = YKHO.chunk(lenient=nZUI) except ValueError as e: raise FQy5(tTpl.args[0]) if type == b'IEND': break if type != b'IDAT': continue if YKHO.colormap and (not YKHO.plte): qmLP.wa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jBeS(kxww):\n Csk6 = g5Ba.decompressobj()\n for nPrm in kxww:\n yield qw7D('B', Csk6.decompress(nPrm))\n yield qw7D('B', Csk6.flush())", "def X73w():\n or8S = GTZY.get_first_struc_idx()\n while or8S != GTZY.get_last_struc_idx():\n Ilxn = GTZY.get_struc_by_idx(or8S)\n yield...
[ "0.64692956", "0.5859533", "0.5810484", "0.56478167", "0.56451446", "0.56232744", "0.56223685", "0.55859864", "0.5576344", "0.5522973", "0.55153275", "0.5507028", "0.55008876", "0.54889905", "0.5478144", "0.5473735", "0.5472969", "0.5445217", "0.54376715", "0.5431374", "0.541...
0.70908624
0
Check that `bitdepth` and `colortype` are both valid, and specified in a valid combination. Returns if valid, raise an Exception if not valid.
def dKIn(LcgG, iUEk): if LcgG not in (1, 2, 4, 8, 16): raise r642('invalid bit depth %d' % LcgG) if iUEk not in (0, 2, 3, 4, 6): raise r642('invalid colour type %d' % iUEk) if iUEk & 1 and LcgG > 8: raise r642('Indexed images (colour type %d) cannot have bitdepth > 8 (bit depth %d). ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sBY3(YKHO, rdlD=None, fvDH=None, zUPz=False):\n if rdlD:\n SGVO = len(rdlD) == YKHO.width if YKHO.width else True\n elif fvDH:\n if len(fvDH) < 1:\n SGVO = True\n else:\n SGVO = len(fvDH) == YKHO.height if YKHO.height else True\n else:\n SGVO = all((le...
[ "0.61444664", "0.598046", "0.5834286", "0.57487714", "0.56672937", "0.5667082", "0.5640823", "0.55849206", "0.55602646", "0.5537186", "0.54893625", "0.54721934", "0.5463585", "0.5460074", "0.5443608", "0.5441461", "0.5436096", "0.54262507", "0.5410108", "0.5408579", "0.539394...
0.76222074
0
Convert a grayscale image to RGBA. This method assumes the alpha channel in result is already correctly initialized.
def tnrQ(rdlD, Aofo): for YRbF in range(3): Aofo[YRbF::4] = rdlD
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zlUC(LNo8, qfpW=(255, 255, 255)):\n WKvO = oyIN.array(LNo8)\n Mkmy, Oa1e, Fg_i, jzdc = oyIN.rollaxis(WKvO, axis=-1)\n Mkmy[jzdc == 0] = qfpW[0]\n Oa1e[jzdc == 0] = qfpW[1]\n Fg_i[jzdc == 0] = qfpW[2]\n WKvO = oyIN.dstack([Mkmy, Oa1e, Fg_i, jzdc])\n return hnIv.fromarray(WKvO, 'RGBA')", "...
[ "0.7049739", "0.68856597", "0.68848085", "0.6821756", "0.67937106", "0.6733763", "0.6728478", "0.6697105", "0.6687147", "0.6643631", "0.6635882", "0.6630416", "0.65812004", "0.6549313", "0.65407383", "0.6530258", "0.6525456", "0.6457571", "0.6454397", "0.6436815", "0.64277625...
0.0
-1