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
Checks if either team is in check
def B3Ca(YKHO): rBTH, oZEk = YKHO._all_moves_minus_king(YKHO.game_states, 'white') Sk61, InFw = YKHO._all_moves_minus_king(YKHO.game_states, 'black') if InFw in rBTH: YKHO.black_check = True else: YKHO.black_check = False if oZEk in Sk61: YKHO.white_check = True else: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uOqR(YKHO, dZPi):\n bi2n = YKHO.get_all_enemy_moves(dZPi)\n if dZPi == 'blue' and YKHO._blue_general in bi2n:\n return True\n elif dZPi == 'red' and YKHO._red_general in bi2n:\n return True\n else:\n return False", "def l7GD(YKHO) -> bool:\n for oyg0 in YKHO.player_info.ke...
[ "0.72299343", "0.68851316", "0.6772642", "0.6589844", "0.6574111", "0.6543249", "0.6519384", "0.65111107", "0.65011555", "0.64757705", "0.64327514", "0.6369419", "0.6354607", "0.63459337", "0.625503", "0.6233231", "0.6227788", "0.6217643", "0.6182266", "0.6173629", "0.6169209...
0.5526357
85
Checks if given two states are identical
def bEli(YKHO, o4sw, Kt_s): return o4sw.equal(Kt_s)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IzcV(YKHO, lUtN, BmXa):\n return False", "def LcXL(YKHO, lUtN, BmXa):\n for YRbF, r845 in YKHO.all_cells():\n if lUtN[YRbF][r845] != BmXa[YRbF][r845]:\n return False\n return True", "def mFKJ(YKHO, lUtN, BmXa):\n gnPz.raiseNotDefined()", "def IzcV(YKHO, lUtN, BmXa):\n ret...
[ "0.84030753", "0.819466", "0.80200887", "0.80091727", "0.79971415", "0.77757543", "0.76635665", "0.7516349", "0.7514809", "0.7470561", "0.7451636", "0.7447277", "0.7367753", "0.71685153", "0.7152231", "0.71327376", "0.7049374", "0.7040572", "0.70010555", "0.6952927", "0.69151...
0.69154674
20
Make a sequence complement table.
def BxJW(KLZZ): tyNF = list(range(256)) for haVx, Br5Q in KLZZ.items(): tyNF[ord(haVx[0])] = ord(Br5Q[0]) return ''.join(map(chr, tyNF))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def g6Y3(Q6uT=[]):\n y8ay = {'A': 'T', 'C': 'G', 'G': 'C', 'T': 'A', 'R': 'Y', 'Y': 'R', 'M': 'K', 'K': 'M', 'W': 'W', 'S': 'S', 'B': 'V', 'D': 'H', 'H': 'D', 'V': 'B', 'N': 'N', 'a': 't', 'c': 'g', 'g': 'c', 't': 'a', 'r': 'y', 'y': 'r', 'm': 'k', 'k': 'm', 'w': 'w', 's': 's', 'b': 'v', 'd': 'h', 'h': 'd', 'v'...
[ "0.7570663", "0.65229607", "0.64054334", "0.636332", "0.62639976", "0.6206821", "0.616852", "0.61640215", "0.61428964", "0.6110256", "0.610601", "0.6078302", "0.597793", "0.59168434", "0.5894356", "0.5826207", "0.5807771", "0.578515", "0.57275295", "0.5717652", "0.57119954", ...
0.736239
1
Add a read to this collection of reads.
def H2v5(YKHO, Ueki): YKHO.additionalReads.append(Ueki) YKHO._length += 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H2v5(YKHO, Ueki):\n UHFx = next(YKHO._count)\n YKHO.readClusters[UHFx].add(Ueki)\n return UHFx", "def H2v5(YKHO, Ueki):\n assert Ueki not in YKHO.reads\n YKHO.reads.add(Ueki)\n WHRn = YKHO.nucleotides\n for vgXP, P8oC in Ueki.significantOffsets.items():\n WHRn[vgXP].incorporateBas...
[ "0.75964564", "0.7363037", "0.6898072", "0.6787646", "0.67518365", "0.6686986", "0.66366273", "0.6552273", "0.64868146", "0.61132103", "0.59677184", "0.5928117", "0.5897112", "0.58792764", "0.57457435", "0.5615327", "0.5571902", "0.55607724", "0.55496347", "0.54208845", "0.53...
0.8210415
0
Generates the md5 hash for a file in the local FS.
def Swn1(gIsw): pFtS = HBct.md5() ztRo = 64 * 1024 with open(gIsw, 'rb') as nUeQ: for yOAJ in iter(lambda: nUeQ.read(ztRo), b''): pFtS.update(yOAJ) return pFtS.hexdigest()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OFjX(Ux0P):\n pFtS = HBct.md5()\n with open(Ux0P, 'rb') as eHNT:\n for yOAJ in iter(lambda: eHNT.read(4096), b''):\n pFtS.update(yOAJ)\n return pFtS.hexdigest()", "def pQm7(pmON):\n HBct.md5(open(pmON, 'rb').read()).hexdigest()", "def pQm7(gIsw):\n with open(gIsw, 'rb') as ...
[ "0.827521", "0.8262948", "0.8236088", "0.8146418", "0.8134715", "0.81075966", "0.80948585", "0.8053945", "0.80512774", "0.80287457", "0.80185544", "0.801067", "0.7955332", "0.79412544", "0.7938926", "0.7933667", "0.7931286", "0.79274756", "0.79167235", "0.7914789", "0.7914354...
0.79025745
22
Generates the md5 hash for a file in the HDFS.
def ucOm(wP7l, f1Ou): TmEm = wP7l.status(f1Ou, strict=False) if TmEm is not None and TmEm['type'] == 'FILE': ztRo = 64 * 1024 pFtS = HBct.md5() with wP7l.read(f1Ou) as nUeQ: for yOAJ in iter(lambda: nUeQ.read(ztRo), b''): pFtS.update(yOAJ) return pFtS....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OFjX(Ux0P):\n pFtS = HBct.md5()\n with open(Ux0P, 'rb') as eHNT:\n for yOAJ in iter(lambda: eHNT.read(4096), b''):\n pFtS.update(yOAJ)\n return pFtS.hexdigest()", "def _uZE(VqRE):\n yZIe = 65536\n razo = HBct.md5()\n with open(VqRE, 'rb') as L49q:\n LaVg = L49q.read...
[ "0.8067264", "0.80637884", "0.79814446", "0.79532284", "0.79030496", "0.7902603", "0.786122", "0.786007", "0.7820562", "0.78160447", "0.78098613", "0.7791655", "0.77910894", "0.77558786", "0.77539355", "0.7723981", "0.7720146", "0.7714809", "0.7704139", "0.77034867", "0.76992...
0.7831175
8
Filter only active user.
def iOuf(YKHO): return YKHO.filter(is_active=True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k66M(YKHO):\n return mv1M.objects.filter(is_active=True)", "def k66M(YKHO):\n SR0I = mv1M.objects.all()\n SR0I = SR0I.filter(pk=YKHO.request.user.pk, is_active=True)\n return SR0I", "def k66M(YKHO):\n umWR = super(tgWF, YKHO).get_queryset()\n return umWR.filter(user__is_active__exact=True...
[ "0.76934004", "0.7665769", "0.7440133", "0.7271866", "0.7227905", "0.7126217", "0.70389557", "0.7002693", "0.6997176", "0.6977277", "0.68891025", "0.6787055", "0.6787055", "0.6732608", "0.67285573", "0.67278683", "0.6688582", "0.6657406", "0.6653927", "0.66332483", "0.6623558...
0.71607256
5
Created new field 'total_mark_for_questions' by help annotation and return new queryset for certain instance/instances or all instances, if queryset is none.
def uvJa(YKHO, SR0I=None): if SR0I is None: SR0I = YKHO return SR0I.annotate(total_mark_for_questions=FYrf.Sum(FYrf.Case(FYrf.When(questions__opinions__is_useful=True, then=1), FYrf.When(questions__opinions__is_useful=False, then=-1), output_field=FYrf.IntegerField())))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MLoP(YKHO, SR0I=None):\n if SR0I is None:\n SR0I = YKHO\n return SR0I.annotate(total_mark_for_answers=FYrf.Sum(FYrf.Case(FYrf.When(answers__likes__liked_it=True, then=1), FYrf.When(answers__likes__liked_it=False, then=-1), output_field=FYrf.IntegerField())))", "def hXuT(YKHO, SR0I=None):\n if...
[ "0.70680153", "0.6956989", "0.6718982", "0.66966265", "0.6305136", "0.6244452", "0.6217272", "0.5981426", "0.59595335", "0.59550405", "0.5891409", "0.5869232", "0.5854356", "0.5822087", "0.56902474", "0.5684016", "0.5645052", "0.5595604", "0.55716926", "0.5543848", "0.5504163...
0.7750234
0
Created new field 'total_mark_for_answers' by help annotation and return new queryset for certain instance/instances or all instances, if queryset is none.
def MLoP(YKHO, SR0I=None): if SR0I is None: SR0I = YKHO return SR0I.annotate(total_mark_for_answers=FYrf.Sum(FYrf.Case(FYrf.When(answers__likes__liked_it=True, then=1), FYrf.When(answers__likes__liked_it=False, then=-1), output_field=FYrf.IntegerField())))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uvJa(YKHO, SR0I=None):\n if SR0I is None:\n SR0I = YKHO\n return SR0I.annotate(total_mark_for_questions=FYrf.Sum(FYrf.Case(FYrf.When(questions__opinions__is_useful=True, then=1), FYrf.When(questions__opinions__is_useful=False, then=-1), output_field=FYrf.IntegerField())))", "def FS0L(YKHO, SR0I=...
[ "0.7429023", "0.69539934", "0.68793803", "0.62282073", "0.62103826", "0.61826503", "0.6175727", "0.6115055", "0.5953095", "0.59407854", "0.5786103", "0.57701784", "0.57095903", "0.57051224", "0.5610444", "0.5592115", "0.55909115", "0.5487808", "0.5481092", "0.5442029", "0.542...
0.76862234
0
Asserts that two structures are nested in the same way.
def Vsfn(rjlz, dR1r, QxQv=True, eoMD=False): FujG.assert_same_structure(FujG.Modality.CORE, rjlz, dR1r, QxQv, eoMD)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SufZ(rjlz, dR1r):\n eqMM = FDfP(rjlz)\n if eqMM != FDfP(dR1r):\n raise ValueError(\"The two structures don't have the same nested structure.\\n\\nFirst structure: %s\\n\\nSecond structure: %s.\" % (rjlz, dR1r))\n if not eqMM:\n return\n YHHQ = [exwG for exwG in cNBl(rjlz)]\n eyLB =...
[ "0.7804566", "0.7629383", "0.72686744", "0.7241661", "0.72197425", "0.7153404", "0.7046703", "0.7016423", "0.6977916", "0.69042414", "0.6890195", "0.67234683", "0.6672221", "0.66143674", "0.66143674", "0.66131896", "0.65907884", "0.65431017", "0.65342325", "0.6533643", "0.644...
0.7647397
1
Returns a dictionary with flattened keys and values. This function flattens the keys and values of a dictionary, which can be arbitrarily nested structures, and returns the flattened version of such
def LVmt(cmPJ): return oXkn.FlattenDictItems(cmPJ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CZru(Csk6: Dict) -> cuzp:\n return Cm9e(PWgb(Csk6, enumerate_types=(list,)))", "def PWgb(Csk6):\n HHXv = {}\n for G1Hx, Ty9i in Csk6.items():\n if isinstance(Ty9i, dict):\n HHXv.update(PWgb(Ty9i))\n else:\n HHXv[G1Hx] = Ty9i\n return HHXv", "def TqeK(Csk6):\n...
[ "0.7938298", "0.7893532", "0.76876986", "0.7598395", "0.7507629", "0.74894565", "0.74637985", "0.739832", "0.73810565", "0.7365914", "0.73650587", "0.73495716", "0.73474115", "0.73240817", "0.73160803", "0.7205636", "0.7202608", "0.7166954", "0.71640897", "0.7157039", "0.7153...
0.698492
31
Return a new point (x', y') as rotating an existing point (x, y) theta radians around the point (cx, cy).
def hgfP(WKvO, LVAh, UV8M, vHO5, q7In): irsQ = (WKvO - UV8M) * epAf.cos(q7In) + (LVAh - vHO5) * epAf.sin(q7In) + UV8M AYir = -(WKvO - UV8M) * epAf.sin(q7In) + (LVAh - vHO5) * epAf.cos(q7In) + vHO5 return (irsQ, AYir)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YxWc(UV8M: float, vHO5: float, jzdc: float, XP5J):\n Z9rn = oyIN.cos(jzdc)\n KCHu = oyIN.sin(jzdc)\n XP5J[0] -= UV8M\n XP5J[1] -= vHO5\n gb7z = XP5J[0] * Z9rn - XP5J[1] * KCHu\n aezy = XP5J[0] * KCHu + XP5J[1] * Z9rn\n XP5J[0] = gb7z + UV8M\n XP5J[1] = aezy + vHO5\n return XP5J", "...
[ "0.79573345", "0.790202", "0.75797296", "0.7441693", "0.7244817", "0.7229971", "0.71805304", "0.6905589", "0.6893799", "0.6861414", "0.68564194", "0.68332535", "0.68327975", "0.68250483", "0.68134403", "0.681013", "0.6803223", "0.6785956", "0.677238", "0.6761004", "0.6755653"...
0.7930397
1
Based on IPOP/Brunet C source code ./Brunet/Util/Base32.cs binary Data to encode as base32 pad if True, add padding characters to make output length a multiple of 8. the encoded ASCII string
def x25r(neaT, vgXP, u54L, hVLt): dvgN = '=' ciV1 = 8 * (u54L / 5) SXLe = 0 if u54L % 5 == 1: SXLe = 6 elif u54L % 5 == 2: SXLe = 4 elif u54L % 5 == 3: SXLe = 3 elif u54L % 5 == 4: SXLe = 1 else: SXLe = 0 if SXLe > 0: if hVLt: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XGdJ(YKHO, nPrm):\n if len(nPrm) * 8 % YKHO._r == YKHO._r - 8:\n nPrm.append(int('01100001', 2))\n return nPrm\n nPrm.append(int('01100000', 2))\n while len(nPrm) * 8 % YKHO._r != YKHO._r - 8:\n nPrm.append(0)\n nPrm.append(int('00000001', 2))\n return nPrm", "def FurZ(JZX...
[ "0.75327384", "0.7320362", "0.70399654", "0.6941588", "0.6936353", "0.69172764", "0.6893365", "0.6857407", "0.67491966", "0.67007697", "0.66474926", "0.6637268", "0.6596619", "0.6586227", "0.65807706", "0.65548354", "0.65414995", "0.6489548", "0.64367294", "0.64020175", "0.63...
0.7451128
1
Validates a pandas DataFrame against the checks provided to the Validator class.
def xzCw(YKHO, jQ3Z): dixj = rLdf.DataFrame(index=jQ3Z.index) for mWFP, lsX7 in YKHO._checks.to_records(index=False): YKHO._log.debug('Performing validation: %s.', mWFP) wvEv = i9Wa(lsX7) Aofo = wvEv.evaluate(jQ3Z) dixj[mWFP] = Aofo YKHO._log.debug('Validated %d rows - %0...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xzCw(YKHO, bOBl: TypeVar('pyspark.sql.DataFrame')):\n return YKHO._data_validation_engine.validate(YKHO, bOBl)", "def a4rw(YKHO, F6NF):\n if not isinstance(F6NF, rLdf.DataFrame):\n raise TypeError('Please supply validation definitions as pandas DataFrame.')\n v3uw = set(YKHO._required) - set(...
[ "0.760732", "0.7381383", "0.73106813", "0.7249435", "0.7234231", "0.7211452", "0.7152957", "0.7010696", "0.69939625", "0.69510996", "0.68818355", "0.6868475", "0.678764", "0.67600703", "0.66984755", "0.6612535", "0.66071975", "0.6603572", "0.6538794", "0.646954", "0.6456718",...
0.72256154
5
Convert an integer n in base 10 to its corresponding string in base b
def y7I5(exwG, Fg_i): if not 2 <= Fg_i <= 36: raise ValueError('base b must be between 2 and 36') TK2h = '' while exwG > 0: Mkmy = exwG % Fg_i exwG //= Fg_i TK2h = k0lF[Mkmy] + TK2h return TK2h
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def r6I9(exwG, P8oC):\n i8_y = '0123456789ABCDEF'\n if exwG < P8oC:\n return i8_y[exwG]\n else:\n return r6I9(exwG // P8oC, P8oC) + i8_y[exwG % P8oC]", "def VKYG(exwG, P8oC):\n BHGE = '0123456789abcdefghijklmnopqrstuvwxyz'\n try:\n exwG = int(exwG)\n P8oC = int(P8oC)\n ...
[ "0.87236714", "0.8266343", "0.8163049", "0.8155731", "0.8153936", "0.81436706", "0.8059116", "0.805207", "0.80353254", "0.8033005", "0.8033005", "0.8033005", "0.79956245", "0.7968863", "0.79657966", "0.79459995", "0.79048663", "0.79048663", "0.7904132", "0.7886223", "0.788219...
0.7522939
37
Returns the number of targets associated with this notification
def szAg(YKHO): return len(YKHO.targets)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def w50H(YKHO):\n return J8uC.SBDebugger_GetNumTargets(YKHO)", "def Q9OR(YKHO):\n return YKHO.distribution.numEvents", "async def count_targets(nPrm):\n YKHO.received_targets += 1", "def szAg(YKHO):\n x6A0 = len(YKHO.targets)\n return x6A0 if x6A0 > 0 else 1", "def szAg(YKHO):\n x6A0 = le...
[ "0.79082805", "0.7173175", "0.7148115", "0.7137675", "0.7137675", "0.7090646", "0.7075114", "0.6697321", "0.66916984", "0.66565675", "0.6453204", "0.6442969", "0.643964", "0.6280306", "0.62087715", "0.61711514", "0.61325985", "0.6125328", "0.61165655", "0.61024886", "0.609340...
0.70099944
7
Return pearsonR of the sample against all groups in the `class_col`
def Wk4j(mvm2: pd.Series, jQ3Z: pd.DataFrame, H3sD: List[str], Z_LA: str) -> rLdf.DataFrame: usx6 = [] for uOe2 in jQ3Z[Z_LA].unique(): finE = jQ3Z[jQ3Z[Z_LA] == uOe2] zTi3, fFbt = aevO.pearsonr(mvm2[H3sD], finE[H3sD].median()) usx6.append([uOe2, zTi3]) return rLdf.DataFrame(usx6, co...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pRq9(UXqs, o3Uj):\n svPB = UXqs.shape[1]\n bSmD = []\n for YRbF in range(svPB):\n bSmD.append(eQSh.pearsonr(UXqs[:, YRbF], o3Uj[:, YRbF])[0])\n return bSmD", "def pRq9(YKHO, m3B5: Optional[TimestampType]=None, RfSx: Optional[TimestampType]=None, qHDB: bool=False, **B2fa) -> float:\n W06...
[ "0.6211605", "0.62103564", "0.6133993", "0.60080993", "0.59381837", "0.5905531", "0.58691376", "0.5798504", "0.5760118", "0.57388204", "0.57354987", "0.5733168", "0.57283276", "0.5683152", "0.56301177", "0.5628363", "0.56269", "0.5606335", "0.5573747", "0.5573747", "0.5550167...
0.7421332
0
Convert a pandas DataFrame object to a numpy structured array. This is functionally equivalent to but more efficient than np.array(df.to_array())
def TQkk(jQ3Z): Ty9i = jQ3Z.values WfCS = jQ3Z.columns if jKi7.PY2: SnBA = [(WfCS[YRbF].encode(), jQ3Z[G1Hx].dtype.type) for YRbF, G1Hx in enumerate(WfCS)] else: SnBA = [(WfCS[YRbF], jQ3Z[G1Hx].dtype.type) for YRbF, G1Hx in enumerate(WfCS)] yDqo = oyIN.dtype(SnBA) epBp = oyIN.zer...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SwZi(jQ3Z):\n EcVT = jQ3Z.values.astype(oyIN.float64)\n EcVT = EcVT.reshape(1, -1)\n assert EcVT.shape == (1, 12), f\"Day's data is not in correct shape - expected: (1, 12), actual: {EcVT.shape}\"\n return EcVT", "def vOIo(jQ3Z):\n _WJi = oyIN.rec.fromrecords(jQ3Z, names=jQ3Z.columns.tolist())...
[ "0.8183983", "0.8039673", "0.7811684", "0.75967187", "0.7451655", "0.7225979", "0.7163398", "0.713613", "0.7020107", "0.6921207", "0.6918278", "0.6766421", "0.67661786", "0.6675977", "0.6669505", "0.6590946", "0.6572289", "0.65646034", "0.6547383", "0.6526158", "0.6518173", ...
0.7806337
3
Takes a raw float value that represents the price of something and turns it into an integer representation of cents (USD). For example, the float value 4.49 will result in the integer value 449.
def wUzj(m6Me): if m6Me: return ZjSO(str(m6Me)).to_eng_string() else: return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tHA3(sfhg):\n ihkc = int(sfhg / 100)\n Q0uV = str(sfhg % 100)\n while len(Q0uV) < 2:\n Q0uV = '0' + Q0uV\n return str(ihkc) + '.' + Q0uV", "def fib5(VIXL, BWXx):\n return VIXL * float(BWXx)", "def UnH3(hI0L):\n if isinstance(hI0L, int):\n return hI0L\n elif isinstance(hI0...
[ "0.7281982", "0.716283", "0.6838194", "0.6748332", "0.66999453", "0.6657342", "0.65245444", "0.63983727", "0.63452744", "0.6327234", "0.62926775", "0.62832063", "0.6275042", "0.62735045", "0.6241963", "0.6221746", "0.61837316", "0.61803937", "0.61787206", "0.6171113", "0.6167...
0.0
-1
Advance the iterator nsteps ahead. If n is none, consume entirely.
def E_nZ(oHE7, exwG=None): if exwG is None: MUE7(oHE7, maxlen=0) else: next(uOgj(oHE7, exwG, exwG), None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ucSA(YKHO, exwG=1):\n for bGrB in range(exwG):\n YKHO.next()", "def E_nZ(oHE7, exwG):\n if exwG is None:\n MUE7(oHE7, maxlen=0)\n else:\n next(uOgj(oHE7, exwG, exwG), RA38)", "def VY6Z(oHE7, exwG):\n oHE7 = iter(oHE7)\n while 1:\n yield oHE7.next()\n for Vo...
[ "0.80255353", "0.74341667", "0.72504413", "0.7100569", "0.70972055", "0.7044629", "0.7032009", "0.6975727", "0.69673735", "0.6858757", "0.6843284", "0.68301225", "0.68025714", "0.68006754", "0.67883676", "0.67594707", "0.6750365", "0.67089623", "0.6691328", "0.66776085", "0.6...
0.6931542
9
Converts a string to an enum value.
def hfK9(Emd4, BWXx): for KzJa in Emd4._values: if BWXx.lower() == KzJa.lower(): return KzJa raise KpxQ('unknown {0}: {1}'.format(Emd4.__name__, BWXx))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WC_0(Emd4, BWXx: str) -> GUNW:\n try:\n return Emd4._reg[BWXx]\n except KeyError:\n print(f'Invalid value for {Emd4.__name__}: {BWXx}')\n raise jBU1", "def vcnH(Nj3p: str) -> p5ux:\n try:\n return {G1Hx if AW0A else G1Hx.lower(): Ty9i for G1Hx, Ty9i in p5ux.__members__.it...
[ "0.7806712", "0.7755092", "0.76769525", "0.7641014", "0.70243376", "0.6997229", "0.68059236", "0.6791386", "0.6712419", "0.67053187", "0.6695086", "0.66943574", "0.661318", "0.6598877", "0.6536472", "0.6483579", "0.6466539", "0.6455735", "0.63882846", "0.62794304", "0.6262198...
0.0
-1
Function used to pivot the table from having scenario per row to cols (ref and better) concats scenario to col name
def Buij(jQ3Z, BWXx): c9l0 = {0: 'ref', 1: 'better', 1990: '1990', 2017: '2017', 2050: '2050', 2100: '2100'} jQ3Z['year_scenario'] = jQ3Z['year_id'].map(c9l0) + '_' + jQ3Z['scenario'].map(c9l0) jQ3Z = jQ3Z.pivot_table(values=BWXx, index=['location_id'], columns=['year_scenario'], aggfunc='first').reset_inde...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Gpd8(wDWA, VEPH, DP4n):\n or8S, fvDH = (VEPH, DP4n)\n Ylbp = wDWA[[or8S, fvDH]].pivot_table(index=or8S, columns=fvDH, aggfunc=len, fill_value=0)\n return Ylbp", "def nVsE(YKHO, wEf2='abbrev', usx6=['date'], WfCS=['sensor'], Qemi='count'):\n return YKHO.data_frame.pivot(wEf2, usx6, WfCS, Qemi)", ...
[ "0.5873997", "0.57695276", "0.5667563", "0.56550026", "0.5579506", "0.5489329", "0.54511714", "0.54478645", "0.54278404", "0.542539", "0.5411222", "0.5397474", "0.53885823", "0.5342621", "0.5315801", "0.52486604", "0.5244407", "0.52405584", "0.519706", "0.5176121", "0.5172778...
0.6458071
0
Returns the maximum alignment score
def B3al(YKHO): return XTiz.max(YKHO.matrix)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sJ6M(oIFL):\n SmCS.email = 'example@test.com'\n nVrR = SmCS.efetch(db='nucleotide', id=oIFL, rettype='fasta')\n J2us = list(Rg82.parse(nVrR, 'fasta'))\n PTdT = UK86.PairwiseAligner()\n PTdT.mode = 'global'\n PTdT.match_score = 5\n PTdT.mismatch_score = -4\n PTdT.open_gap_score = -10\n ...
[ "0.8188777", "0.7417345", "0.72743964", "0.7148384", "0.7134155", "0.7119844", "0.7094774", "0.7090877", "0.7079761", "0.7048218", "0.6958341", "0.6946079", "0.6828906", "0.68265575", "0.6819389", "0.6758063", "0.67564523", "0.6723996", "0.66697323", "0.6605451", "0.6574522",...
0.8887386
0
Maps the query string forwards
def lj4n(vdsz): m1Py = list(LtEy.getMatches(vdsz)) for v_t6 in tvQO.clusterSeeds(list(m1Py), l=GPtr.l): NyCI = max(0, v_t6.minX - GPtr.c) a6De = min(len(vdsz), v_t6.maxX + GPtr.k + GPtr.c) I04r = vdsz[NyCI:a6De] cI4H = max(0, v_t6.minY - GPtr.c) hAeP = min(len(yV92), v_t6...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GbEg(QePW, H5ew, BWXx):\n if H5ew not in QePW.GET:\n KjL4 = QePW.GET.copy()\n if callable(BWXx):\n BWXx = BWXx(QePW)\n KjL4[H5ew] = BWXx\n QePW.GET = KjL4\n QePW.META['QUERY_STRING'] = QePW.GET.urlencode()", "def rldq(QpfX, H5ew, BWXx):\n c7TK = QpfX['reque...
[ "0.65620595", "0.60823876", "0.5983247", "0.58767205", "0.58614635", "0.58520085", "0.58307153", "0.5738024", "0.57230246", "0.5707673", "0.5662587", "0.5648272", "0.5606824", "0.5571197", "0.5563768", "0.55508304", "0.5548743", "0.55452216", "0.5537272", "0.55147624", "0.547...
0.0
-1
Function to get the computing image with a fourier filter applied
def g8eu(QePW): AGO3 = QePW.GET.get('image', None) cPD5 = QePW.GET.get('lowFreq', 0.0) s53D = QePW.GET.get('highFreq', 1.0) WMj5 = QePW.GET.get('decayFreq', 0.0) tpio = QePW.GET.get('dim', None) GqcM = Gfvo.Image() Gfvo.bandPassFilter(GqcM, str(AGO3), float(cPD5), float(s53D), float(WMj5), i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e4fp(VXjJ, WZcn):\n LNo8 = XC5k.imread(VXjJ)\n P0PH, ETYT = LNo8.shape[:2]\n F5P9, phSo = WZcn.shape[:2]\n HEWT = oyIN.zeros(LNo8.shape[:2])\n lDTh = (P0PH - F5P9) // 2\n fswS = (ETYT - phSo) // 2\n HEWT[lDTh:lDTh + F5P9, fswS:fswS + phSo] = WZcn\n hlel = oyIN.zeros(LNo8.shape)\n for...
[ "0.69210535", "0.6823792", "0.67898315", "0.66774285", "0.6590605", "0.64841", "0.6423985", "0.64167017", "0.64157283", "0.638022", "0.6308448", "0.62582743", "0.6248086", "0.6239789", "0.6235555", "0.62301403", "0.6224853", "0.6191641", "0.61636806", "0.6151241", "0.6123638"...
0.6373461
10
Function to get the computing image with a gaussian filter applied
def klw_(QePW): AGO3 = QePW.GET.get('image', None) qDCt = QePW.GET.get('sigmaFreq', None) tpio = QePW.GET.get('dim', None) GqcM = Gfvo.Image() Gfvo.gaussianFilter(GqcM, str(AGO3), float(qDCt), int(tpio)) VXjJ = YdOM(GqcM, tpio) geh0 = igJ6(content_type='image/png') VXjJ.save(geh0, 'PNG')...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l__T(d6hw, WTkW):\n NMPo = d6hw\n return NMPo", "def IAWS(YKHO):\n return na_E.gaussian(YKHO.image, YKHO.params['intensity'])", "def apUX(VXjJ, KCHu):\n quCl = VXjJ.copy()\n LorG = V2fX.gaussian_filter(quCl, sigma=KCHu)\n return LorG", "def raZd(YKHO):\n V2fX.gaussian_filter(YKHO.im,...
[ "0.7959807", "0.7864857", "0.7826842", "0.7762254", "0.77236444", "0.70893276", "0.7054218", "0.70059633", "0.6978905", "0.6954679", "0.6951111", "0.6911196", "0.6909682", "0.6845815", "0.6813805", "0.680946", "0.67816144", "0.6746686", "0.6742318", "0.67324424", "0.66952926"...
0.7560431
5
Function to get the computing image with a mask filter applied
def JpNK(QePW): AGO3 = QePW.GET.get('image', None) tpio = QePW.GET.get('dim', None) GqcM = Gfvo.Image() VXjJ = YdOM(GqcM, tpio) geh0 = igJ6(content_type='image/png') VXjJ.save(geh0, 'PNG') return geh0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aqQY(LNo8, ZHfW):\n LNo8 = oyIN.array(LNo8)\n LNo8[:, :, 0] = oyIN.where(ZHfW == 0, 255, LNo8[:, :, 0])\n LNo8[:, :, 1] = oyIN.where(ZHfW == 0, 255, LNo8[:, :, 1])\n LNo8[:, :, 2] = oyIN.where(ZHfW == 0, 255, LNo8[:, :, 2])\n return hnIv.fromarray(LNo8)", "def U5bT(YpkZ, ZHfW=None):\n if no...
[ "0.7559183", "0.71404815", "0.70212585", "0.6998161", "0.69889885", "0.69886714", "0.69779027", "0.6947519", "0.6947519", "0.6912378", "0.6892821", "0.6849113", "0.68273675", "0.68253624", "0.6818826", "0.6789212", "0.67866117", "0.67817134", "0.676573", "0.674007", "0.672562...
0.63968956
62
Creates a boxplot of each set of data in L.
def wLS1(aPd6, sd77, leAC, ZEuF, VoLU, IICq): if sd77 is None: return None if len(aPd6) != len(ZEuF): print('Input data list not parellel to list of plot labels') return None LZpg = QrM1.figure(figsize=(8, 5), dpi=300) aNZO = LZpg.subplots() aNZO.boxplot(aPd6) QrM1.title(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wLS1(aPd6, sd77='boxplot.png'):\n if aPd6 is None:\n raise TypeError('Please supply a list')\n if not isinstance(aPd6, (list, oyIN.ndarray)):\n raise TypeError('Please supply a list')\n if len(aPd6) == 0:\n raise IndexError('No values in list')\n qsVt = [not isinstance(wEf2, (f...
[ "0.7318459", "0.7254633", "0.6988676", "0.6646231", "0.661475", "0.65552145", "0.6480217", "0.6406987", "0.64039207", "0.6403149", "0.63362247", "0.6296408", "0.6263156", "0.6219021", "0.6196767", "0.61737394", "0.61577135", "0.6135654", "0.6126735", "0.6114675", "0.601991", ...
0.7089214
2
Simulates an OPTIONS request to a WSGI application. Equivalent to ``simulate_request('OPTIONS', ...)``
def j_i5(YKHO, pmON='/', **B2fa): return x0hE.simulate_options(YKHO.api, pmON, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VhmR(YKHO, bD7m, MOPg=None, jGRS=None, wPMw=False):\n qv1X = vq30.blank(path=bD7m, method='OPTIONS', headers=MOPg, environ=YKHO.extra_environ)\n return YKHO.do_request(qv1X, jGRS, wPMw)", "def xAU6(YKHO, *qIxc, **B2fa):\n B2fa['method'] = V1Lg\n return YKHO.request(*qIxc, **B2fa)", "def g8pZ(P4...
[ "0.7536484", "0.71013683", "0.6647801", "0.65742743", "0.64793044", "0.6437091", "0.64107096", "0.63699275", "0.6171917", "0.6171917", "0.61706686", "0.6140443", "0.6054026", "0.60492206", "0.60097057", "0.59963185", "0.5971454", "0.5960609", "0.5947853", "0.5902474", "0.5898...
0.5915822
19
Simulates a DELETE request to a WSGI application. Equivalent to ``simulate_request('DELETE', ...)``
def p0py(YKHO, pmON='/', **B2fa): return x0hE.simulate_delete(YKHO.api, pmON, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kVGf(YvEi):\n\n @kxW1.deployment\n def eHNT():\n return 'got f'\n\n @kxW1.deployment\n def Oa1e():\n return 'got g'\n gM_W = kxW1.run(eHNT.bind(), name='app_f')\n ZgOl = kxW1.run(Oa1e.bind(), name='app_g', route_prefix='/app_g')\n assert spHt.get(gM_W.remote()) == 'got f'\n ...
[ "0.70121944", "0.6914827", "0.6647812", "0.6596846", "0.65927005", "0.6585062", "0.6552496", "0.64297104", "0.64132667", "0.6381532", "0.6372101", "0.6359795", "0.6341873", "0.63177764", "0.63139623", "0.63029873", "0.6277818", "0.6256495", "0.6244576", "0.62224823", "0.62148...
0.68707263
2
test user registration without username
def rPQY(YKHO): geh0 = YKHO.client.post(gxEw('register-user'), data=vdLi, format='json') YKHO.assertEquals(geh0.status_code, jGRS.HTTP_400_BAD_REQUEST) YKHO.assertEquals(geh0.data['errors'][0], 'Username should not be left empty')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qY2a(YKHO):\n YKHO.user_dict.pop('username', None)\n geh0 = Z9rn.post('/author/registration/', YKHO.user_dict)\n YKHO.assertEquals(geh0.status_code, 400, 'User should not be created')", "def zvim(YKHO):\n LZ_C = YKHO.client.post('/api/users', YKHO.user_1, format='json')\n YKHO.assertEqual(LZ_C...
[ "0.81702965", "0.81233245", "0.8086215", "0.80808395", "0.80390966", "0.80321527", "0.79767144", "0.7952834", "0.794302", "0.793736", "0.7927471", "0.787649", "0.78762615", "0.7866856", "0.7866686", "0.7842718", "0.78327394", "0.7831324", "0.7829651", "0.78154254", "0.7801571...
0.0
-1
test user registration with invalid username
def cEkh(YKHO): geh0 = YKHO.client.post(gxEw('register-user'), data=MS9c, format='json') YKHO.assertEquals(geh0.status_code, jGRS.HTTP_400_BAD_REQUEST) YKHO.assertEquals(geh0.data['errors'][0], 'Username should not be less than 4 characters')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def r78z(YKHO):\n YKHO.test_user1.update({'username': '8776'})\n geh0 = YKHO.common_test.response_register_user(YKHO.test_user1)\n YKHO.assertEqual(geh0.status_code, 400)\n YKHO.assertEqual(qQXR.loads(geh0.data).get('error'), Phjz)", "def zpo_(YKHO):\n YKHO.test_user1.update({'username': 'edwardpj...
[ "0.85721713", "0.84264165", "0.84228426", "0.82039416", "0.82002604", "0.8194052", "0.8191444", "0.8173325", "0.81618166", "0.81617063", "0.8144719", "0.81381065", "0.8137824", "0.8070907", "0.8051913", "0.804054", "0.8032671", "0.8026148", "0.8003698", "0.80023193", "0.79958...
0.8213297
3
test user registration without email
def RQB3(YKHO): geh0 = YKHO.client.post(gxEw('register-user'), data=mG68, format='json') YKHO.assertEquals(geh0.status_code, jGRS.HTTP_400_BAD_REQUEST) YKHO.assertEquals(geh0.data['errors'][0], 'Email should not be left empty')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eXT6(YKHO):\n YKHO.user_dict.pop('email', None)\n geh0 = Z9rn.post('/author/registration/', YKHO.user_dict)\n YKHO.assertEquals(geh0.status_code, 400, 'User should not be created')", "def sYud(YKHO):\n geh0 = YKHO._run_api_v2_user_register(YKHO.user_data)\n gtbI = _J2v.objects.get(user__userna...
[ "0.829748", "0.82813334", "0.82152647", "0.8195215", "0.8167719", "0.81041425", "0.8095981", "0.8064368", "0.8031695", "0.80171865", "0.80059326", "0.79149467", "0.7914607", "0.7910663", "0.78749686", "0.78598547", "0.7851818", "0.7851035", "0.78487825", "0.7837957", "0.78337...
0.0
-1
test user registration without password
def bNCG(YKHO): geh0 = YKHO.client.post(gxEw('register-user'), data=iPqm, format='json') YKHO.assertEquals(geh0.status_code, jGRS.HTTP_400_BAD_REQUEST) YKHO.assertEquals(geh0.data['errors'][0], 'Please provide the password')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OPFs(YKHO):\n Aofo = YKHO.app.post('/', data=dict(username='test', email='test@test.com', password='12345'))\n YKHO.assertEqual('200 OK', Aofo.status)", "def fa1o(YKHO):\n geh0 = YKHO.test_client.post('/api/v1/auth/signup', data=qQXR.dumps({'name': 'kato', 'email': 'kato@gmail.com', 'password': ''})...
[ "0.8078104", "0.8075966", "0.80579007", "0.8056298", "0.7951695", "0.7917901", "0.7903737", "0.78406125", "0.78333277", "0.7832811", "0.7820344", "0.7816856", "0.7801237", "0.78009313", "0.7794508", "0.7794048", "0.7793684", "0.7786732", "0.77832294", "0.7774281", "0.77732795...
0.0
-1
test user registration with username with empty space
def vCk4(YKHO): geh0 = YKHO.client.post(gxEw('register-user'), data=B9E0, format='json') YKHO.assertEquals(geh0.status_code, jGRS.HTTP_400_BAD_REQUEST) YKHO.assertEquals(geh0.data['errors'][0], 'Username should not contain any spaces')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jpmF(YKHO):\n geh0 = YKHO.register_user(YKHO.user_with_non_alpha_username)\n YKHO.assertEqual(geh0.json()['errors']['username'], ['Username only takes letters, numbers, and underscores.'])", "def DPV1(YKHO):\n geh0 = YKHO.client.post(YKHO.user_url, YKHO.empty_username, format='json')\n YKHO.asser...
[ "0.81290627", "0.80014557", "0.7989036", "0.79853755", "0.79458153", "0.79246086", "0.7901186", "0.7890347", "0.77985483", "0.7790524", "0.77778167", "0.7757783", "0.7752568", "0.7748446", "0.77379686", "0.77357304", "0.7722136", "0.7700283", "0.76990473", "0.76961505", "0.76...
0.8173748
0
test user registration using password with empty space
def pOsB(YKHO): geh0 = YKHO.client.post(gxEw('register-user'), data=oHbp, format='json') YKHO.assertEquals(geh0.status_code, jGRS.HTTP_400_BAD_REQUEST) YKHO.assertEquals(geh0.data['errors'][0], 'Password should not contain any spaces')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rJUa(YKHO):\n Aofo = YKHO.account_object.Register('hanah', 'hanah@gmail.com', 'hey', 'hey')\n YKHO.assertEqual(Aofo, 'Password Either Too Short Or Empty')", "def brhT():\n Y7Bk()\n Aofo = Jpbe.auth_register('wierdPassword@gmail.com', '!@#$%^&*()_+-=][<>w;:\"', 'who', 'where')\n Jpbe.auth_logou...
[ "0.80311984", "0.7944846", "0.7894762", "0.78635", "0.7780852", "0.77703416", "0.775758", "0.77567965", "0.77529657", "0.7710511", "0.7705549", "0.77034855", "0.76868325", "0.7680726", "0.7659789", "0.76588", "0.7633335", "0.76313853", "0.763101", "0.7622086", "0.7607764", ...
0.7644176
16
test user registration with invalid password
def pwat(YKHO): geh0 = YKHO.client.post(gxEw('register-user'), data=K0lf, format='json') YKHO.assertEquals(geh0.status_code, jGRS.HTTP_400_BAD_REQUEST) YKHO.assertEquals(geh0.data['errors'][0], 'Password should have atleast one lowercase character,' + 'one Uppercase character, one Integer and one Special ch...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mqKx(YKHO):\n YKHO.test_user1.update({'password': 'password#1'})\n geh0 = YKHO.common_test.response_register_user(YKHO.test_user1)\n YKHO.assertEqual(geh0.status_code, 400)\n YKHO.assertEqual(qQXR.loads(geh0.data).get('error'), YJi4)", "def deZh(YKHO):\n LZ_C = YKHO.client.post('/api/users', Y...
[ "0.86114013", "0.85125047", "0.83965635", "0.8380309", "0.8368467", "0.8362721", "0.8344249", "0.8234594", "0.8224548", "0.8221569", "0.82071155", "0.8206305", "0.8183477", "0.8147792", "0.81328946", "0.81304234", "0.81171435", "0.8102454", "0.80972743", "0.8097251", "0.80158...
0.81203705
16
test user registration with short password
def TAXq(YKHO): geh0 = YKHO.client.post(gxEw('register-user'), data=gZw_, format='json') YKHO.assertEquals(geh0.status_code, jGRS.HTTP_400_BAD_REQUEST) YKHO.assertEquals(geh0.data['errors'][0], 'Password length should not be less than 8' + ' characters or greater than 20 characters')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HitK(YKHO):\n LZ_C = YKHO.client.post('/api/users', YKHO.short_password, format='json')\n YKHO.assertEqual(LZ_C.status_code, jGRS.HTTP_400_BAD_REQUEST)\n YKHO.assertEqual(qQXR.loads(LZ_C.content), {'errors': {'password': ['Ensure this field has at least 8 characters.']}})", "def jcTe(YKHO):\n CBI...
[ "0.85892534", "0.8537085", "0.84481436", "0.8444481", "0.84194636", "0.8248304", "0.8243651", "0.8151004", "0.80563706", "0.80355793", "0.80192316", "0.8011716", "0.79857856", "0.798108", "0.79528606", "0.79208845", "0.79116327", "0.7910414", "0.7892176", "0.7890026", "0.7888...
0.78300905
26
Initialize the output data block. Two scalar columns, SEGMENT and NELEM, will be set to their actual values. EXPTIME and the array columns will be initialized to zero.
def MM30(YKHO, ciiZ): ciiZ[1].data.field('segment')[:] = YKHO.segments ciiZ[1].data.field('nelem')[:] = YKHO.output_nelem ciiZ[1].data.field('exptime')[:] = 0.0 ciiZ[1].data.field('wavelength')[:] = 0.0 ciiZ[1].data.field('flux')[:] = 0.0 ciiZ[1].data.field('error')[:] = 0.0 ciiZ[1].data.fie...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, xA6P=False, K9Vz=True):\n YKHO.strict_rect = K9Vz\n YKHO.comments = []\n YKHO.headers = []\n YKHO.colID = []\n YKHO.data = []\n if not xA6P:\n YKHO.time = []", "def iObY(YKHO, aI6b):\n YKHO.data[aI6b]['times'] = oyIN.zeros(YKHO.writeout, dtype=float)\n YKHO.data[aI6b...
[ "0.5990123", "0.57441235", "0.5732921", "0.57320607", "0.5709933", "0.56886107", "0.5682639", "0.5654161", "0.55749637", "0.5569371", "0.5537619", "0.55241114", "0.5521383", "0.5521383", "0.5518008", "0.5499475", "0.54825413", "0.5479899", "0.5468102", "0.5424618", "0.5422752...
0.5695729
5
Decodes a serialized Example proto as dictionary of tensorflow tensors.
def jrOM(lGjS, bySB): return bySB.deserialize_example(lGjS)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x8I_(YKHO, VSr4):\n PU1l = ZylS.train.Example()\n PU1l.ParseFromString(VSr4)\n W5Xi = PU1l.features.feature\n return {BZ2A: ujry(W5Xi[BZ2A]) for BZ2A in W5Xi}", "def iPIP(lGjS):\n i9s9 = {'source': ZylS.VarLenFeature(ZylS.int64), 'target': ZylS.VarLenFeature(ZylS.int64)}\n IwOR = {Jyyj: Zyl...
[ "0.8382979", "0.7997003", "0.7837856", "0.7686785", "0.7659251", "0.7541627", "0.7301887", "0.7296678", "0.724778", "0.71699655", "0.71187586", "0.7078662", "0.70743734", "0.6894115", "0.68779373", "0.68705606", "0.6841023", "0.6838282", "0.6836855", "0.68202335", "0.68124336...
0.69558734
13
Decodes a serialized Example proto as dictionary of numpy tensors.
def dXdi(lGjS, bySB): x0Ih = jrOM(lGjS, bySB) return iJJ6.core.utils.map_nested(lambda WKvO: WKvO.numpy(), x0Ih)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x8I_(YKHO, VSr4):\n PU1l = ZylS.train.Example()\n PU1l.ParseFromString(VSr4)\n W5Xi = PU1l.features.feature\n return {BZ2A: ujry(W5Xi[BZ2A]) for BZ2A in W5Xi}", "def iPIP(YKHO, lGjS):\n i9s9, IwOR = YKHO.example_reading_spec_train()\n if IwOR is None:\n IwOR = {Jyyj: ZylS.contrib.sli...
[ "0.7846827", "0.74413013", "0.74224895", "0.73485726", "0.70540816", "0.68829846", "0.68422997", "0.67579013", "0.6715761", "0.66379905", "0.6607888", "0.65942997", "0.65916425", "0.6588126", "0.65870965", "0.65136254", "0.645555", "0.64316535", "0.64171445", "0.6365982", "0....
0.7393108
3
Encode the feature dict into a tf.train.Eexample proto string. The input example_data can be anything that the provided feature specification can consume.
def vild(Bhx9, bySB): return bySB.serialize_example(Bhx9)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ix8_(vOvM, N3C1, L0Nd, TP22):\n RDhP = {'feature0': Oety(vOvM), 'feature1': Oety(N3C1), 'feature2': NhGy(L0Nd), 'feature3': bPiq(TP22)}\n xKOQ = ZylS.train.Example(features=ZylS.train.Features(feature=RDhP))\n return xKOQ.SerializeToString()", "def Ix8_(vOvM, N3C1, L0Nd, TP22):\n RDhP = {'input_i...
[ "0.73583347", "0.7245313", "0.72264427", "0.7212262", "0.71911824", "0.71573013", "0.7003723", "0.6876208", "0.66434604", "0.6407311", "0.6388403", "0.63686234", "0.6218833", "0.6175314", "0.61488324", "0.6047869", "0.60427237", "0.6006735", "0.59880483", "0.59870416", "0.594...
0.69840264
7
Encode the given color as a 256colors string
def h_4r(d7Eb): OXX9 = (0 if d7Eb[0] < 75 else (d7Eb[0] - 35) / 40) * 6 * 6 yTiW = (0 if d7Eb[1] < 75 else (d7Eb[1] - 35) / 40) * 6 aj__ = (0 if d7Eb[2] < 75 else (d7Eb[2] - 35) / 40) + 16 return '5;{}'.format(int(OXX9 + yTiW + aj__))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n_eL(qfpW):\n return '#{:02x}{:02x}{:02x}'.format(int(qfpW[0]), int(qfpW[1]), int(qfpW[2]))", "def n_eL(qfpW):\n return '#{:02x}{:02x}{:02x}'.format(int(qfpW[0]), int(qfpW[1]), int(qfpW[2]))", "def QMUT(Z9rn):\n return '%02x' * 4 % YZDX(Z9rn)", "def VtCb(qfpW: Vector) -> str:\n ...", "def Q...
[ "0.73247933", "0.72812986", "0.72200805", "0.7201839", "0.71818066", "0.7110103", "0.7110103", "0.7097078", "0.7089276", "0.68506926", "0.6821256", "0.6817848", "0.6754623", "0.6752373", "0.66055167", "0.66055167", "0.65185475", "0.65023077", "0.64510876", "0.6362067", "0.635...
0.7145409
5
Returns a list of TimeSeries (one per mask in lst_mask).
def oCYW(kXYI: List[Path], quJO: List[str], kw2D: List[str], NgpY: Optional[dict]=None, xkzz: bool=False, TLI7: Optional[Path]=None, iumf: Optional[List[Union[str, Path]]]=None, **B2fa) -> AzJI[YXTX]: class Products(UQtd('Products', (ZHfW.replace('-', '_') for ZHfW in kw2D))): AjPI = () def wHJl(Y...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _4kp(i8WE: np.ndarray) -> aPd6:\n yv6U = aPd6()\n for X05Z in i8WE:\n yv6U.append(X05Z[~oyIN.isnan(X05Z)][None, :])\n return yv6U", "def bGIA(bS0K, NFK4):\n QTBn = []\n for YRbF in range(len(bS0K)):\n QTBn.append(NFK4[YRbF].y[bS0K[YRbF]])\n return QTBn", "def Ouee(oGem):\n ...
[ "0.6354124", "0.6060037", "0.60545933", "0.58703995", "0.58486176", "0.58119", "0.5716503", "0.5714432", "0.5706468", "0.56731427", "0.56046796", "0.5570627", "0.5562991", "0.5519481", "0.5492688", "0.54719573", "0.5466469", "0.5462983", "0.5451483", "0.5445822", "0.5445279",...
0.53827673
24
Get the atomic number for each atom (except implicit hydrogens) in a molecule.
def lziW(N9D1: IndigoObject) -> dict: NtML = [] for WhQ6 in N9D1.iterateAtoms(): NtML.append(WhQ6.atomicNumber()) return {'atomic': ht2j.tensor(NtML).unsqueeze(1)}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FP89(RR8p):\n NtML = []\n for xV8r in RR8p:\n NtML.extend([FGW3 for FGW3, o61b in zip(xV8r.get_atomic_numbers(), xV8r.get_chemical_symbols())])\n return NtML", "def lziW(U6D_, asBq=False):\n global elements\n CaFd = dict([(G1Hx, Ty9i[2]) for G1Hx, Ty9i in UqER.items()])\n return CaFd...
[ "0.7491887", "0.7292871", "0.72065496", "0.6992025", "0.6792061", "0.6620602", "0.66140234", "0.6550817", "0.647205", "0.64702207", "0.64378905", "0.6422075", "0.63931996", "0.6350479", "0.6334789", "0.6331485", "0.629249", "0.6287174", "0.6230929", "0.6179394", "0.61695457",...
0.68291026
4
Get the isotope value for each atom (except implicit hydrogens) in a molecule.
def iqrc(N9D1: IndigoObject) -> dict: HVIg = [] for WhQ6 in N9D1.iterateAtoms(): HVIg.append(WhQ6.isotope()) return {'isotopes': ht2j.tensor(HVIg).unsqueeze(1)}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qBv7(YKHO):\n return e0lz.checkResult(YKHO._lib().indigoIsotope(YKHO.id))", "def qBv7(YKHO):\n if hasattr(YKHO, '_isotope'):\n return YKHO._isotope\n elif YKHO.species in uwaB.gamma_iso:\n return uwaB.gamma_iso[YKHO.species]\n else:\n return None", "def f6rK(YKHO):\n ass...
[ "0.7066888", "0.6965375", "0.66801786", "0.6442392", "0.6372605", "0.63394505", "0.6227036", "0.61094457", "0.60619247", "0.5924242", "0.5897908", "0.58294296", "0.58233505", "0.57871145", "0.5730738", "0.56746143", "0.5634863", "0.5622374", "0.5587293", "0.5581349", "0.55273...
0.613036
7
Get the number of radical electrons for each atom (except implicit hydrogens) in a molecule.
def P513(N9D1: IndigoObject) -> dict: NjAK = [] for WhQ6 in N9D1.iterateAtoms(): NjAK.append(WhQ6.radicalElectrons()) return {'radicals': ht2j.tensor(NjAK).unsqueeze(1)}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d5s2(N9D1):\n ...", "def eWof(N9D1: 'Mol') -> int:\n return sum([WhQ6.GetAtomicNum() for WhQ6 in N9D1.GetAtoms()])", "def CwkZ(N9D1):\n ...", "def AMei(YKHO):\n ve_2 = 0\n for WhQ6 in YKHO.contained_atoms:\n ve_2 += k3IH.atomic_numbers[WhQ6.atoms_internal_number]\n return ve_2", ...
[ "0.83985734", "0.79431796", "0.73332304", "0.72663456", "0.71735036", "0.6908178", "0.6800757", "0.6790981", "0.6784266", "0.66651386", "0.66489375", "0.65791506", "0.65693974", "0.6564538", "0.6527717", "0.6500767", "0.6492348", "0.6479015", "0.6476525", "0.6455889", "0.6415...
0.611366
38
Get stereocenter type for each atom (except implicit hydrogens) in a molecule. Possible values of stereocenter types are Indigo.ABS. Indigo.OR, Indigo.AND, Indigo.EITHER or zero if stereotype is unknown.
def hY0A(N9D1: IndigoObject) -> dict: hY0A = [] for WhQ6 in N9D1.iterateAtoms(): hY0A.append(WhQ6.stereocenterType()) return {'stereocenter_types': ht2j.tensor(hY0A).unsqueeze(1)}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mCwz(YKHO):\n return e0lz.checkResult(YKHO._lib().indigoStereocenterType(YKHO.id))", "def _gkh(YKHO, kN9s):\n return e0lz.checkResult(YKHO._lib().indigoChangeStereocenterType(YKHO.id, kN9s))", "def C957():\n return T2Jx", "def E0bn(P4BP):\n bfNw = ['OW', 'HW', 'CS', 'F', 'OF', 'HO', 'Cl-', 'N...
[ "0.68498826", "0.54615635", "0.5336061", "0.5297163", "0.5211851", "0.51748747", "0.515984", "0.50890577", "0.5066414", "0.5024214", "0.498383", "0.4925106", "0.4863741", "0.48531944", "0.48503426", "0.48221734", "0.48086557", "0.47737652", "0.47699428", "0.47501272", "0.4745...
0.6753105
1
Get number of implicit hydrogens for each atom in a molecule
def M7M0(N9D1: IndigoObject) -> dict: M7M0 = [] for WhQ6 in N9D1.iterateAtoms(): M7M0.append(WhQ6.countImplicitHydrogens()) return {'implicit_hydrogens': ht2j.tensor(M7M0).unsqueeze(1)}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TW21(WdNg):\n return HXjU(WdNg, 'H')", "def w7Wt(YKHO):\n return [len(tuple(jzdc[1])) for jzdc in Hs6x.groupby(YKHO.syms)]", "def TNXk(N9D1):\n N9D1 = OJ0g.AddHs(N9D1)\n return N9D1.GetNumAtoms()", "def Zr26(YKHO):\n return len([jzdc for jzdc in YKHO.bonded_atoms if jzdc.type == 'H'])", ...
[ "0.74837244", "0.7336135", "0.70858574", "0.7082725", "0.7052495", "0.6920034", "0.6874002", "0.6856606", "0.6756753", "0.67035323", "0.6678728", "0.667115", "0.65624225", "0.6547518", "0.6479074", "0.64443004", "0.6415556", "0.641154", "0.6400548", "0.6393671", "0.63935757",...
0.6819116
8
Get whether bonds in a molecule are in a ring or in a chain. Possible values are Indigo.RING, Indigo.CHAIN or 0 (bond is ambiguous)
def WFXk(N9D1: IndigoObject) -> dict: WFXk = [] for W0I0 in N9D1.iterateBonds(): WFXk.append(W0I0.topology()) return {'topologies': ht2j.tensor(WFXk * 2).unsqueeze(1).float()}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def y2Qy(N9D1, ESUH):\n for YRbF in range(len(ESUH)):\n XOOk, pHXX = (ESUH[YRbF], ESUH[YRbF - 1])\n Fg_i = hYbQ(N9D1, XOOk, pHXX)\n if Fg_i is None:\n print('no bond between two subsequent atoms in ring')\n if not Fg_i.GetIsAromatic():\n return False\n return...
[ "0.6452484", "0.59472823", "0.58930993", "0.5838587", "0.5759982", "0.5718458", "0.57042027", "0.5551423", "0.5529294", "0.5521906", "0.55143213", "0.54863447", "0.5483672", "0.5440122", "0.53621083", "0.53308034", "0.5326603", "0.5326603", "0.52921593", "0.5246835", "0.52311...
0.0
-1
Get whether bonds in a molecule are aromatic or not.
def JU9h(N9D1: IndigoObject) -> dict: bWCt = [] for W0I0 in N9D1.iterateBonds(): bWCt.append(W0I0.bondOrder() == 4) return {'is_aromatic': ht2j.tensor(bWCt * 2).unsqueeze(1).float()}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def y2Qy(N9D1, ESUH):\n for YRbF in range(len(ESUH)):\n XOOk, pHXX = (ESUH[YRbF], ESUH[YRbF - 1])\n Fg_i = hYbQ(N9D1, XOOk, pHXX)\n if Fg_i is None:\n print('no bond between two subsequent atoms in ring')\n if not Fg_i.GetIsAromatic():\n return False\n return...
[ "0.74875575", "0.7075794", "0.63382906", "0.62478894", "0.62313724", "0.60341144", "0.58468455", "0.58423173", "0.58046883", "0.57946", "0.5785046", "0.57723576", "0.5736266", "0.5729108", "0.5673474", "0.5628445", "0.5623245", "0.5602389", "0.55989796", "0.55802256", "0.5579...
0.7289312
1
A list of API interfaces exported by this service. Only the `name` field of the google.protobuf.Api needs to be provided by the configuration author, as the remaining fields will be derived from the IDL during the normalization process. It is an error to specify an API interface here which cannot be resolved against th...
def NYXC(YKHO) -> bdIy['outputs.ApiResponse']: return qe4Y.get(YKHO, 'apis')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pPAH(YKHO):\n U4Kw = list()\n for type in ['global', 'in', 'out']:\n _hkX = YKHO._http_request('GET', f'/api/access/{type}')\n U4Kw.extend(_hkX.get('items', []))\n return U4Kw", "def JC3u(YKHO):\n dixj = []\n for YmHP in CFZR(sPlm(YKHO)):\n dixj.append(YmHP.__name__)\n ...
[ "0.67499197", "0.6424462", "0.6336269", "0.63356405", "0.62711006", "0.618069", "0.6177101", "0.6091996", "0.60795736", "0.60795736", "0.6074109", "0.6060116", "0.5980476", "0.59738517", "0.5971769", "0.59468853", "0.59265494", "0.5925338", "0.5907731", "0.5904247", "0.589066...
0.63797283
2
The service name, which is a DNSlike logical identifier for the service, such as `calendar.googleapis.com`. The service name typically goes through DNS verification to make sure the owner of the service also owns the DNS name.
def mWFP(YKHO) -> str: return qe4Y.get(YKHO, 'name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bSEa(YKHO) -> str:\n return laHg.cast(str, YKHO._properties.get('serviceName'))", "def bSEa(YKHO) -> str:\n return laHg.cast(str, YKHO._properties.get('serviceName'))", "def bSEa(YKHO) -> str:\n return qe4Y.get(YKHO, 'service_name')", "def bSEa(YKHO) -> str:\n return qe4Y.get(YKHO, 'service_n...
[ "0.8232615", "0.8232615", "0.8226571", "0.8226571", "0.8226571", "0.8226571", "0.7930759", "0.7930759", "0.7817865", "0.7817865", "0.7817865", "0.7817865", "0.7773711", "0.7773711", "0.7773711", "0.7773711", "0.7759221", "0.76836777", "0.76762867", "0.76762867", "0.76762867",...
0.0
-1
The product title for this service, it is the name displayed in Google Cloud Console.
def leAC(YKHO) -> str: return qe4Y.get(YKHO, 'title')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n8KJ(YKHO):\n return YKHO._product_name", "def W0tD(YKHO):\n return 'Product'", "def mWFP(YKHO) -> str:\n try:\n return YKHO._name\n except AttributeError:\n pass\n Lx3t = str(YKHO.info.get('product_string', 'unknown product name'))\n YKHO._name: str = f'{YKHO.vendor} {Lx3t....
[ "0.7452694", "0.738933", "0.7267039", "0.7249506", "0.7221331", "0.72184175", "0.7078532", "0.7067945", "0.70664823", "0.70664823", "0.7047662", "0.7030279", "0.6979919", "0.69701463", "0.6952061", "0.6944725", "0.69431555", "0.6933548", "0.69287467", "0.6900558", "0.6845149"...
0.6614516
39
Helper to convert the current document into a dictionary. To be used when constructing requests.
def qssR(YKHO): U34r = {'type': YKHO.doc_type} if YKHO.language is not None: U34r['language'] = YKHO.language if YKHO.content is not None: U34r['content'] = YKHO.content elif YKHO.gcs_url is not None: U34r['gcsContentUri'] = YKHO.gcs_url return U34r
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SnRb(YKHO, C13M: Document) -> cuzp[str, ImMB]:\n pass", "def MNRr(YKHO) -> cuzp:\n tbx9 = {}\n if hasattr(YKHO, 'document') and YKHO.document is not None:\n tbx9['document'] = YKHO.document\n if hasattr(YKHO, 'targets') and YKHO.targets is not None:\n tbx9['targets'] = YKHO.targets\...
[ "0.76001877", "0.7258642", "0.7258642", "0.7247565", "0.7241109", "0.71728426", "0.7120083", "0.7120083", "0.7114805", "0.7070301", "0.7041104", "0.69646806", "0.69646806", "0.69646806", "0.6946544", "0.6906082", "0.69017243", "0.68307036", "0.6799628", "0.6773673", "0.677150...
0.6939984
15
Analyze the sentiment in the current document.
def qTlV(YKHO): nPrm = {'document': YKHO._to_dict()} eqVi = YKHO.client._connection.api_request(method='POST', path='analyzeSentiment', data=nPrm) return XAhc.SentimentResponse.from_api_repr(eqVi)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Giki(YKHO):\n l5Ny = YKHO.processTweet()\n vxw0 = tX5x.polarity_scores(l5Ny)\n YKHO.sentiment = vxw0['compound']", "def E9Jx(YKHO, QePW, QpfX):\n QpfX.set_code(IYqO.StatusCode.UNIMPLEMENTED)\n QpfX.set_details('Method not implemented!')\n raise NotImplementedError('Method not implemented!')...
[ "0.7670211", "0.74509954", "0.74242556", "0.74167645", "0.7224225", "0.7185664", "0.71502805", "0.7145674", "0.714181", "0.71406335", "0.708758", "0.7082643", "0.7053178", "0.705186", "0.7043761", "0.7029715", "0.7016957", "0.69990855", "0.6980643", "0.6976912", "0.6974111", ...
0.80742186
0
Sets the flights of this InlineResponse200.
def dc7I(YKHO, dc7I: List[LMflightFlight]): YKHO._flights = dc7I
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dc7I(YKHO, dc7I):\n YKHO._flights = dc7I", "def dc7I(YKHO):\n return YKHO._flights", "def QyMk(YKHO, QyMk):\n YKHO._flight_id = QyMk", "def nTfX(YKHO, nTfX):\n YKHO._frazioni = nTfX", "def gVU1(Emd4):\n Emd4.f_lights = {wJaJ: 0 for wJaJ in Emd4.f_lights}", "def all(YKHO, QyMk: None | s...
[ "0.7288321", "0.5749036", "0.5370172", "0.53113526", "0.5284665", "0.5239371", "0.5187742", "0.51522577", "0.50690645", "0.5060566", "0.5024823", "0.5007467", "0.4964806", "0.4932342", "0.49138197", "0.4861371", "0.4700793", "0.46367276", "0.45922446", "0.45912778", "0.456442...
0.6467554
1
Take the mode (most frequent) label of the predictions. On ties, torch prefers the smallest number.
def t5BH(N6Z1: torch.Tensor, *bGrB) -> ht2j.Tensor: g4y1 = ht2j.max(N6Z1, dim=1).indices Zu8g = ht2j.mode(g4y1, dim=0).values return ht2j.eye(VPqX, device=N6Z1.device)[Zu8g]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Tuqy(LVAh):\n if len(LVAh) == 0:\n return -1\n else:\n return eQSh.mode(LVAh.flatten())[0][0]", "def Tuqy(LVAh):\n if len(LVAh) == 0:\n return -1\n else:\n return eQSh.mode(LVAh.flatten())[0][0]", "def Tuqy(LVAh):\n if len(LVAh) == 0:\n return -1\n else:...
[ "0.703999", "0.703999", "0.7018387", "0.7018387", "0.6887708", "0.6770871", "0.6683974", "0.66336507", "0.6495754", "0.64931583", "0.6434505", "0.64258504", "0.63547015", "0.63543123", "0.6348539", "0.6329137", "0.6328431", "0.6325302", "0.6317592", "0.6295602", "0.6280338", ...
0.71660876
0
returns a symbol that referes to the given joint
def vPcj(YKHO, fP61): H5ew = Ilxn.joint_states + [fP61, u'position'] return YKHO.god_map.to_symbol(H5ew)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tjjq(YKHO):\n return YKHO.joint_name", "def o61b(YKHO):\n return '%s -> %s' % (YKHO.atom1, YKHO.atom2)", "def k8La(YKHO, UoU8):\n for kgDL in YKHO.template.get('joints'):\n for HMCV, pan_ in kgDL.items():\n if HMCV == UoU8:\n return TlDD.PyNode(pan_)", "def cMnX(...
[ "0.6020212", "0.5926993", "0.5920294", "0.5688906", "0.5539641", "0.5519637", "0.5508411", "0.54930097", "0.5481463", "0.5474491", "0.53766215", "0.53766215", "0.53744656", "0.53330874", "0.53253376", "0.5302824", "0.5298177", "0.5283049", "0.5281588", "0.52443576", "0.522360...
0.5428432
10
returns a symbol that referes to the given joint
def _G5R(YKHO, tB6k, fP61): H5ew = Ilxn.world + [u'get_object', (tB6k,), u'joint_state', fP61, u'position'] return YKHO.god_map.to_symbol(H5ew)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tjjq(YKHO):\n return YKHO.joint_name", "def o61b(YKHO):\n return '%s -> %s' % (YKHO.atom1, YKHO.atom2)", "def k8La(YKHO, UoU8):\n for kgDL in YKHO.template.get('joints'):\n for HMCV, pan_ in kgDL.items():\n if HMCV == UoU8:\n return TlDD.PyNode(pan_)", "def cMnX(...
[ "0.6020212", "0.5926993", "0.5920294", "0.5688906", "0.5539641", "0.5519637", "0.5508411", "0.54930097", "0.5481463", "0.5474491", "0.5428432", "0.53766215", "0.53766215", "0.53744656", "0.53330874", "0.53253376", "0.5302824", "0.5298177", "0.5283049", "0.5281588", "0.5244357...
0.5093668
33
Identifies red lights in the incoming camera image and publishes the index of the waypoint closest to the red light's stop line to /traffic_waypoint
def u69M(YKHO, tO9_): YKHO.has_image = True YKHO.camera_image = tO9_ zhpB, QTBn = YKHO.process_traffic_lights() '\n Publish upcoming red lights at camera frequency.\n Each predicted state has to occur `STATE_COUNT_THRESHOLD` number\n of times till we start using it. Otherwise the pr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def X83s(YKHO):\n agxD = None\n v8uu = GPtr.light_positions\n if YKHO.pose is not None and YKHO.waypoints is not None:\n zhpB = YKHO.get_closest_waypoint(YKHO.pose.pose)\n pImw = -1\n VXjJ = YKHO.bridge.imgmsg_to_cv2(YKHO.camera_image, 'passthrough')\n ZHfW = YKHO.red_select(VXjJ)\n WfT...
[ "0.782733", "0.7261086", "0.6988372", "0.6980339", "0.69798493", "0.68998885", "0.6824018", "0.682278", "0.68079984", "0.6777588", "0.6762333", "0.6715169", "0.6645114", "0.66439235", "0.6620898", "0.6618727", "0.65941185", "0.65695554", "0.6566269", "0.647944", "0.64397013",...
0.5848537
37
Log Errors caused by Updates.
def P1dF(JyK9, QdZT, P1dF): bo34.warning('Update "%s" caused error "%s"', QdZT, P1dF)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P1dF(JyK9, QdZT, P1dF):\n bo34.warning('Error: \"%s\" caused error \"%s\"', QdZT, P1dF)\n bo34.setLevel(G9jH.DEBUG)", "def rP1w(QdZT, QpfX):\n bo34.warning(f'Update \"{QdZT}\" caused error {QpfX.error}\"')", "def P1dF(QdZT, QpfX):\n G9jH.error('Update \"%s\" caused error \"%s\"', QdZT, QpfX.err...
[ "0.7895395", "0.788395", "0.78750193", "0.7873498", "0.78300834", "0.7790406", "0.7785151", "0.77837753", "0.77837753", "0.77837753", "0.77837753", "0.77837753", "0.7781314", "0.77660847", "0.7746185", "0.7746185", "0.7746185", "0.7746185", "0.7746185", "0.7746185", "0.774618...
0.75354177
79
Compute RMSE (Root Mean Squared Error).
def iAxY(N6Z1, PJWX=True, **B2fa): if not N6Z1: raise ValueError('Prediction list is empty.') hkHB = oyIN.mean([float((hvxN - TBxD) ** 2) for bGrB, bGrB, hvxN, TBxD, bGrB in N6Z1]) fVW5 = oyIN.sqrt(hkHB) if PJWX: print('RMSE: {0:1.4f}'.format(fVW5)) return fVW5
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YNWb(cgmM, bdkc):\n P1dF = cgmM - bdkc.round()\n BKL_ = oyIN.sum(P1dF ** 2)\n SDab = oyIN.mean(BKL_)\n DF3U = epAf.sqrt(SDab)\n return DF3U", "def kmMN(YKHO, k8N0, NVe0):\n return (sum((NVe0 - YKHO.predict(k8N0)) ** 2) / len(oyIN.array(NVe0).flatten())) ** 0.5", "def K9sQ(YKHO):\n retu...
[ "0.8373594", "0.8047673", "0.8008345", "0.79795885", "0.79050386", "0.78964335", "0.78644806", "0.78527004", "0.7827669", "0.780263", "0.77621603", "0.77532476", "0.7752324", "0.77441984", "0.7731774", "0.770341", "0.7689743", "0.7671318", "0.7665355", "0.7658064", "0.765331"...
0.76286566
24
Compute MAE (Mean Absolute Error).
def Emt7(N6Z1, PJWX=True, **B2fa): if not N6Z1: raise ValueError('Prediction list is empty.') XTf0 = oyIN.mean([float(abs(hvxN - TBxD)) for bGrB, bGrB, hvxN, TBxD, bGrB in N6Z1]) if PJWX: print('MAE: {0:1.4f}'.format(XTf0)) return XTf0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GYSl(YKHO):\n return YKHO.mean_absolute_error(YKHO.error)", "def fpHa(tTpl):\n return oyIN.mean(oyIN.abs(tTpl))", "def fpHa(tTpl):\n return oyIN.mean(oyIN.abs(tTpl))", "def fpHa(tTpl):\n return oyIN.mean(oyIN.abs(tTpl))", "def fpHa(tTpl):\n return oyIN.mean(oyIN.abs(tTpl))", "def fpHa(...
[ "0.86656666", "0.86051726", "0.86051726", "0.86051726", "0.86051726", "0.86051726", "0.81039065", "0.79682076", "0.7679233", "0.7518975", "0.7499273", "0.74384964", "0.73817486", "0.73445505", "0.72656876", "0.7260478", "0.7258175", "0.7170837", "0.7108855", "0.7054574", "0.7...
0.78796375
8
Given a dict, transformed from a json file, returns a dict with the locations, represented as coordinates.
def vwu7(O_qT): s_cZ = {} for YRbF in O_qT['users']: s_cZ[YRbF['screen_name']] = YRbF['location'] for H5ew in s_cZ: try: Aofo = Asn7.geocode(s_cZ[H5ew], no_annotations='1') jz6R = Aofo[0]['geometry']['lng'] QnmL = Aofo[0]['geometry']['lat'] s_c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zb10(gIsw):\n BE11 = open(gIsw, 'r')\n BE11 = qQXR.load(BE11)\n grCK = BE11['geo_data']\n for Rci7 in grCK:\n W0Eb = fmh9(Rci7['city'], Rci7['country'], zip=str(Rci7['zip']), state=Rci7['state'])\n Rci7['latitude'] = W0Eb['latitude']\n Rci7['longitude'] = W0Eb['longitude']\n ...
[ "0.7399863", "0.7387919", "0.67890805", "0.65568215", "0.62897146", "0.6175143", "0.6001732", "0.5890568", "0.5738183", "0.5716946", "0.5705046", "0.5689556", "0.5689538", "0.5627568", "0.5607614", "0.5595259", "0.557209", "0.5566367", "0.5566323", "0.556369", "0.55538285", ...
0.5347434
46
Computes the posterior mean of the Gaussian process for new observations X.
def gggm(YKHO, EcVT): WTkW = YKHO.sigma exwG = YKHO.sample_size if YKHO.method == 'Full': hxEc = YKHO.K_matrix(EcVT, YKHO.X_train) aPd6 = YKHO.cholesky_cov() ycBG = Zxt2.linalg.cho_solve((aPd6, True), YKHO.Y_train) elif YKHO.method == 'PP': hxEc = YKHO.K_matrix(EcVT, YKHO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def y_pR(EcVT):\n yGTL = oyIN.zeros((EcVT.shape[1],))\n SRYB = oyIN.zeros((EcVT.shape[1],))\n yGTL = EcVT.mean(axis=0)\n SRYB = EcVT.var(axis=0)\n return (yGTL, SRYB)", "def DH4Z(YKHO, WKvO):\n Kiqe, D7it = YKHO.get_posterior_params(WKvO)\n return Kiqe / (Kiqe + D7it)", "def eqUs(WKvO, wuc...
[ "0.69960445", "0.6970897", "0.69062656", "0.68856233", "0.687546", "0.6806755", "0.67965555", "0.6782998", "0.67074007", "0.6617142", "0.66166335", "0.66166335", "0.6600367", "0.658307", "0.65743375", "0.6570251", "0.65641534", "0.65511525", "0.6495662", "0.64617103", "0.6455...
0.75749284
0
Handle 404 errors returned by the API server
def mhZs(eHNT): def apZD(tOJ4): for qvey in tOJ4.replace(',', '').split(): type, qxeD = qvey.split('/')[-2:] yield ISu2(type, uuid=qxeD) def idA5(IbP9): for qvey in eval(IbP9): type, qxeD = qvey.split('/')[-2:] yield ISu2(type, uuid=qxeD) @z...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IdVU(Wehb):\n return Yxsy(pz3A({'error': 'Not found'}), 404)", "def IdVU(Wehb):\n return Yxsy(pz3A({'error': 'Not found'}), 404)", "def BQf5(P1dF):\n return ('This object does not exist', 404)", "def wyqm(P1dF):\n geh0 = pz3A({'error': 'Not found'})\n return (geh0, 404)", "def uc60(P1dF)...
[ "0.7901928", "0.78217", "0.7799989", "0.7770467", "0.7714775", "0.7692585", "0.761793", "0.7616759", "0.7609289", "0.75524217", "0.7546683", "0.7521313", "0.75048697", "0.7446335", "0.7433421", "0.74188614", "0.73617935", "0.7346978", "0.7322611", "0.73143095", "0.7309537", ...
0.0
-1
Validate the authorization header includes text either side of a space.
def BsjW(BFxV: Dict[str, str]) -> None: WBPg = BFxV['Authorization'] SQ3m = WBPg.split(' ') if len(SQ3m) == 2 and SQ3m[1]: return raise mID1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UbZ8(YKHO, qv1X: Request) -> uLKX[str, Exception]:\n if 'Authorization' not in qv1X.headers or not qv1X.headers['Authorization']:\n raise UvM_(msg=\"Missing 'Authorization' header.\", code=400, service='gateway', internal=False)\n tz49 = qv1X.headers['Authorization'].split(' ')\n if len(tz49) !...
[ "0.6974845", "0.6910361", "0.6850413", "0.68128747", "0.6558247", "0.65059406", "0.64390814", "0.63280153", "0.6245257", "0.62308145", "0.62308145", "0.6195931", "0.616625", "0.6150935", "0.6083146", "0.6059883", "0.60222036", "0.601407", "0.60052735", "0.6004986", "0.5992344...
0.7372702
0
Return a string representing a label for this class.
def ZGE9(YKHO): return 'SpikeSourcePoisson'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UXqs(Emd4) -> str:\n return Emd4._label", "def UXqs(YKHO) -> str:\n return YKHO.__label", "def UXqs(YKHO) -> str:\n return YKHO._label", "def UXqs(YKHO) -> str:\n return YKHO._label", "def UXqs(YKHO) -> str:\n return YKHO._label", "def UXqs(YKHO) -> str:\n return YKHO._label", "de...
[ "0.89236885", "0.8628085", "0.8599092", "0.8599092", "0.8599092", "0.8599092", "0.8599092", "0.8599092", "0.8599092", "0.8541344", "0.8487868", "0.83922356", "0.83922356", "0.83922356", "0.83922356", "0.83922356", "0.83922356", "0.83922356", "0.83922356", "0.83922356", "0.839...
0.0
-1
convert an array of strings to an array of ints
def Bv2m(KCHu): DwRD = [] for WKvO in KCHu: e27C = int(WKvO) DwRD.append(e27C) return DwRD
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aYff(ezWE):\n OFAc = [0] * len(ezWE)\n for YRbF in range(len(ezWE)):\n OFAc[YRbF] = int(ezWE[YRbF])\n return OFAc", "def GzW3(vIwR):\n gi_Q = []\n for mLGw in vIwR.split():\n gi_Q.append(int(mLGw))\n return gi_Q", "def aIYH(ezWE):\n OeK1 = []\n for ZfUD in ezWE:\n ...
[ "0.79363465", "0.73988897", "0.7394074", "0.72938555", "0.7178866", "0.71227324", "0.71076775", "0.7101895", "0.7098728", "0.70513403", "0.70337737", "0.7006562", "0.69918936", "0.6917575", "0.6886166", "0.6821438", "0.67721134", "0.6755297", "0.6747765", "0.67336303", "0.672...
0.6857308
15
Creates a uv map with all coords at (0, 0)
def VKA5(ZWbL): In6N = LHNl.MDIUVMapBijective() for bGrB in range(len(ZWbL.data.vertices)): P6bq = 0.0 Ty9i = 0.0 rzEt = LHNl.MDIUV(P6bq, Ty9i) In6N.uvs.append(rzEt) return In6N
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nbP6(YKHO, WKvO, LVAh):\n return (0, 0)", "def f3uM(P6bq, Ty9i):\n return int(Ty9i * (Ty9i + 1) / 2 + P6bq)", "def QXqU(YKHO):\n return [0, 0]", "def tUD6(P6bq, Ty9i):\n return int(exwG * (exwG + 1) / 2 + Ty9i * (Ty9i + 1) / 2 + P6bq)", "def IXMt(VBTE, DIYS):\n for RxpY, GPlq in enumerat...
[ "0.6746242", "0.6557332", "0.6427864", "0.6397011", "0.60665745", "0.6062861", "0.6045901", "0.6015214", "0.5996945", "0.59884065", "0.5887909", "0.5864189", "0.58414805", "0.5818711", "0.57679933", "0.57590723", "0.5679126", "0.565584", "0.56119096", "0.5608125", "0.55746007...
0.7131066
0
Performs one time steps on structured inputs. The purpose of this function is to turn the parameters into flattened versions, and to resolve the parameter order difference between `Recurrent` and `RNNCell`. In the event the cell returns a transformed output that is not aliased within its state, the `extended_state0` al...
def OoCD(q7In, rB2e, qJk7): CJQq = pf_1.flatten(rB2e) j0cn = YKHO.MaybeRemoveOutputFromState(CJQq) M8TK = [qJk7] + j0cn + q7In FBvc = I8h1(*M8TK) return (FBvc, [])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nrOS(YKHO, g4y1, QTBn, rrBf=None, gnq0=False):\n with ZylS.variable_scope(rrBf or type(YKHO).__name__):\n ENFq = ZylS.concat([g4y1, QTBn], axis=-1)\n ycBG = ZylS.sigmoid(ZylS.matmul(ENFq, ZylS.transpose(YKHO.wi)) + YKHO.bi)\n epBp, Mkmy = ZylS.split(ycBG, 2, axis=-1)\n Ty9i = QTB...
[ "0.64699125", "0.6270287", "0.6255732", "0.6222184", "0.6214441", "0.6191238", "0.61884516", "0.6171403", "0.6166541", "0.6100991", "0.6093849", "0.6073", "0.60619324", "0.6053646", "0.6050603", "0.6032589", "0.60315907", "0.6029759", "0.60232264", "0.6021767", "0.5979414", ...
0.620685
5
Function decorator to memoize function executions.
def nY9H(UXqs, **wwBH): RRwf = dict(wwBH) RRwf['allow_output_mutation'] = True RRwf['show_spinner'] = False def kdOT(JfyU): @xBlr.wraps(JfyU) def WXC0(*qIxc, **B2fa): @aevO.cache(**RRwf) def Vcqt(JfyU, qIxc, B2fa): class ButtonCacheEntry: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rxxd(JfyU):\n i_PE = {}\n\n def h3Xc(*qIxc):\n if qIxc in i_PE:\n return i_PE[qIxc]\n else:\n Aofo = JfyU(*qIxc)\n i_PE[qIxc] = Aofo\n return Aofo\n return h3Xc", "def rxxd(m2Zb):\n wyyA = {}\n\n def SzLu(*qIxc):\n try:\n ...
[ "0.84698397", "0.842639", "0.8389027", "0.83682436", "0.8364702", "0.83095264", "0.8300012", "0.82910514", "0.82897335", "0.82634497", "0.8176253", "0.816087", "0.81561244", "0.8148928", "0.8148928", "0.8144017", "0.81049395", "0.80996406", "0.8096981", "0.8082467", "0.805419...
0.0
-1
Return save folder. Assumes folders in the parent_dir have suffix run{run number}. Finds the highest run number and sets the output folder to that number + 1. This is just convenient so that if you run the same script multiple times tensorboard can plot all of the results on the same plots with different names.
def Q8H3(mSwx, i2I_): Hy7s.makedirs(mSwx, exist_ok=True) Z2dz = 0 for YMBJ in Hy7s.listdir(mSwx): if not Hy7s.path.isdir(Hy7s.path.join(mSwx, YMBJ)): continue try: YMBJ = int(YMBJ.split('-run')[-1]) if YMBJ > Z2dz: Z2dz = YMBJ excep...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q8H3(mSwx, j3aw):\n Hy7s.makedirs(mSwx, exist_ok=True)\n Z2dz = 0\n for YMBJ in Hy7s.listdir(mSwx):\n if not Hy7s.path.isdir(Hy7s.path.join(mSwx, YMBJ)) or j3aw not in YMBJ:\n continue\n try:\n YMBJ = int(YMBJ.split('_run')[-1])\n if YMBJ > Z2dz:\n ...
[ "0.78753877", "0.7790623", "0.77683085", "0.7756133", "0.7264338", "0.71300787", "0.6899235", "0.68861544", "0.669257", "0.6679853", "0.6547179", "0.647315", "0.6435895", "0.63251024", "0.62650657", "0.6260106", "0.6212208", "0.61565876", "0.6153408", "0.6142144", "0.61338425...
0.7783464
2
Randomly choose between global hex list of colors and converts color to rgb.
def Q1j8(Jw9H): CAZo = tuKI.choice(Jw9H) d7Eb = w0OK.hex_to_rgb(CAZo) return d7Eb
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q5jr():\n Mkmy = tuKI.randint(0, 255)\n Oa1e = tuKI.randint(0, 255)\n Fg_i = tuKI.randint(0, 255)\n return (Mkmy, Oa1e, Fg_i)", "def pph3():\n Mkmy = Oa1e = Fg_i = 0\n while Mkmy < 128 and Fg_i < 128 and (Oa1e < 128):\n Mkmy = int(tuKI.random() * 256)\n Oa1e = int(tuKI.random(...
[ "0.7588504", "0.75748664", "0.75426066", "0.75198036", "0.7482019", "0.7460636", "0.7418248", "0.7405552", "0.739913", "0.73902255", "0.73724014", "0.7348573", "0.73324245", "0.73152477", "0.7310436", "0.7310436", "0.73082304", "0.7284909", "0.72802144", "0.727346", "0.727121...
0.8169308
0
Returns the targets associated with each molecule.
def x6A0(YKHO): return [XP5J for XP5J in YKHO.properties]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x6A0(YKHO):\n return YKHO._targets", "def x6A0(YKHO):\n return YKHO._targets", "def x6A0(YKHO):\n return YKHO._targets", "def x6A0(YKHO):\n return YKHO._targets", "def x6A0(YKHO):\n return YKHO._targets", "def x6A0(YKHO):\n return YKHO._data.get('targets', [])", "def x6A0(YKHO):\n...
[ "0.7599008", "0.75320154", "0.75045073", "0.75045073", "0.75045073", "0.74625766", "0.7442761", "0.74237394", "0.72836953", "0.7265285", "0.7244407", "0.72090214", "0.718319", "0.7181688", "0.7115818", "0.7114057", "0.7068743", "0.7064755", "0.70565975", "0.70440596", "0.7043...
0.68770635
26
Converts a timeout string to a number (float). If an error occurs during conversion or that no arguments are provided, returns default timeout value.
def lxFE(YKHO, T4Mj=None): jEIM = YKHO.response_wait_timeout if T4Mj is not None: try: jEIM = float(T4Mj) except (ValueError, TypeError) as e: WTvr.log_error(-5, python_message=tTpl) if jEIM <= 0: WTvr.log_error(-6, error_details=str(jEIM)) jEIM = YKHO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tbPz(BWXx=None, HyJ9=None, Is0S=T6FA.Event):\n if BWXx is None:\n BWXx = HyJ9\n if isinstance(BWXx, (int, float, str)):\n return Grbl(float(BWXx), event_factory=Is0S)\n elif isinstance(BWXx, Grbl):\n return BWXx\n else:\n raise ValueError(\"Invalid timeout literal '%s'\"...
[ "0.6919189", "0.6877616", "0.67455804", "0.6646641", "0.6556442", "0.6519114", "0.65186423", "0.6486273", "0.64191705", "0.64124477", "0.6364047", "0.63215625", "0.6251864", "0.61646146", "0.6149555", "0.6134443", "0.6103237", "0.6095118", "0.6066642", "0.6042355", "0.6032154...
0.6154865
14
Send a help list for all of the bot commands.
async def send_bot_help(YKHO, J8oL): V_D6 = [] for gKSi in J8oL.keys(): if gKSi: VIbH = await YKHO.filter_commands(J8oL[gKSi], sort=True) if len(VIbH) > 0: V_D6.append({'name': gKSi.qualified_name, 'value': f'{gKSi.description}\nCommands:\n' + ', '.join((f'`{oUZx}...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def help(YKHO, OaeV: commands.Context):\n R2pp = [oUZx for oUZx in YKHO.commands]\n a_z2 = [f'{YKHO.prefix}{GIN8}, ' for GIN8 in R2pp if GIN8 not in YKHO.ignore_commands]\n Ol8d = ''\n for oUZx in a_z2:\n Ol8d += oUZx\n await OaeV.send(f'Available commands are: {Ol8d}')", "async def h...
[ "0.80626464", "0.77601475", "0.7734485", "0.77145445", "0.7617805", "0.7575759", "0.754166", "0.7527409", "0.7522105", "0.74817467", "0.74667495", "0.7459316", "0.74086386", "0.7397431", "0.7393416", "0.7378752", "0.73630285", "0.7334744", "0.7256931", "0.72502136", "0.723549...
0.73346
18
Gets the group id by the group name.
def mM0X(YKHO, IXKo, SVtv=True): hE03 = YKHO.client.get_group_by_name(IXKo, {'id'}) if not hE03: tO9_ = bGrB('Failed to get ID for Consistency Group %s') % IXKo if SVtv: raise AJ5d.VolumeBackendAPIException(data=tO9_) else: na1r.warning(EE9z('%s'), tO9_) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rfWX(YKHO, IXKo):\n dixj = YKHO.session.do_request('hostgroup.get', {'filter': {'name': [IXKo]}})['result']\n if dixj == []:\n return None\n return dixj[0]['groupid']", "def mlA8(YKHO, mWFP):\n moMn = YKHO.get_group()\n for hE03 in moMn:\n if mWFP == moMn[hE03]['name']:\n ...
[ "0.861934", "0.84505975", "0.83983266", "0.8342769", "0.8329599", "0.79913276", "0.7975758", "0.7917804", "0.77651954", "0.77292544", "0.7722697", "0.7722502", "0.7636471", "0.7636471", "0.7627974", "0.76201004", "0.761898", "0.7505182", "0.7505182", "0.7461658", "0.7459701",...
0.80182266
5
Creates a consistency group.
def LK64(YKHO, uOe2): YKHO._consistencygroup_creation_check(uOe2) FBv8 = uOe2.id AaFj = {'status': 'available'} XObx, Ylbp = YKHO.client.create_consistencygroup(FBv8) if XObx: if XObx['errorCode'] == YKHO.RESOURCE_ALREADY_EXIST: na1r.warning(EE9z('CG %s with this name already exi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FFAp(YKHO, czga):\n mWFP = BfDw.convert_uuid_to_es_fmt(czga['id'])\n return YKHO._client.create_consistency_group(mWFP)", "def LK64(bp_0, KcEq='test_host@fakedrv#fakepool', mWFP='test_cg', JBZA='this is a test cg', jGRS=V_D6.ConsistencyGroupStatus.AVAILABLE, TUUx='fake_az', VM2l=None, _kz4=None, HOdb=N...
[ "0.77761304", "0.7707931", "0.7320572", "0.6870456", "0.68104905", "0.6662238", "0.6595278", "0.6577812", "0.65539455", "0.65415907", "0.6484444", "0.6462175", "0.6434569", "0.64256966", "0.6395801", "0.63912064", "0.63624024", "0.63097996", "0.63083786", "0.6268216", "0.6266...
0.7719699
1
Return size of volume to be managed by manage_existing.
def EsfM(YKHO, akib, bf9h): if 'source-id' in bf9h: a9vH = YKHO.client.get_lun_by_id(bf9h['source-id']) elif 'source-name' in bf9h: a9vH = YKHO.client.get_lun_by_name(bf9h['source-name']) else: lo9Y = bGrB('Reference must contain source-id or source-name key.') raise AJ5d.Man...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EsfM(YKHO, akib, iKlc):\n tO9_ = bGrB('Manage existing volume not implemented.')\n raise NotImplementedError(tO9_)", "def yu8V(YKHO) -> int:\n return qe4Y.get(YKHO, 'volume_size')", "def R8e4(YKHO, *qIxc):\n return mrOq.CDVolume_getSize(YKHO, *qIxc)", "def EsfM(YKHO, akib, iKlc):\n qjHC = ...
[ "0.7962511", "0.7919243", "0.78215784", "0.7800935", "0.7799573", "0.7798773", "0.77746505", "0.7774266", "0.7774266", "0.7774266", "0.776724", "0.77310544", "0.77254504", "0.76920915", "0.767981", "0.7635403", "0.7634482", "0.760424", "0.7574855", "0.7572927", "0.7561968", ...
0.7241023
33
Return size of volume to be managed by manage_existing.
def EsfM(YKHO, akib, iKlc): return YKHO.helper.manage_existing_get_size(akib, iKlc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EsfM(YKHO, akib, iKlc):\n tO9_ = bGrB('Manage existing volume not implemented.')\n raise NotImplementedError(tO9_)", "def yu8V(YKHO) -> int:\n return qe4Y.get(YKHO, 'volume_size')", "def R8e4(YKHO, *qIxc):\n return mrOq.CDVolume_getSize(YKHO, *qIxc)", "def EsfM(YKHO, akib, iKlc):\n qjHC = ...
[ "0.7962511", "0.7919243", "0.78215784", "0.7800935", "0.7799573", "0.7798773", "0.77746505", "0.7774266", "0.7774266", "0.7774266", "0.776724", "0.77310544", "0.77254504", "0.76920915", "0.767981", "0.7635403", "0.7634482", "0.760424", "0.7574855", "0.7572927", "0.7561968", ...
0.7421547
29
Demeans an array (i.e., subtracts the mean from each value) for across rows (dim=0) or columns (dim=1).
def Pt7k(ezWE, tpio): Yj2i = ezWE - oyIN.mean(ezWE, axis=tpio, keepdims=True) return Yj2i
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Pt7k(ezWE, jDK_=None):\n lmvZ = tF9S.nanmean(ezWE, jDK_)\n if jDK_ != 0 and (not jDK_ is None) and (not oyIN.isscalar(lmvZ)):\n QyVM = [slice(None)] * ezWE.ndim\n QyVM[jDK_] = oyIN.newaxis\n lmvZ = lmvZ[QyVM]\n return ezWE - lmvZ", "def Pt7k(YKHO, ezWE, jDK_=-1, jPDU=0, Kmm0=Non...
[ "0.7135953", "0.69513965", "0.66407716", "0.65680116", "0.65542936", "0.65044343", "0.64562035", "0.62359285", "0.6076872", "0.6015384", "0.59567654", "0.5943841", "0.59215057", "0.5893653", "0.5836388", "0.58247465", "0.5737537", "0.5720994", "0.5712003", "0.5712003", "0.571...
0.7539106
0
Return True if the cover is closed.
def SEEh(YKHO) -> bool: return YKHO.get_attr(YKHO._attribute) == Cy2T
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SEEh(YKHO) -> bool:\n return YKHO.get_cover_state() == ovfH.CLOSED", "def SEEh(YKHO):\n return YKHO.current_cover_position <= 0", "def SEEh(YKHO):\n if YKHO.current_cover_position is None:\n return None\n if YKHO.current_cover_position > 0:\n return False\n return True", "def...
[ "0.87445515", "0.86558443", "0.852617", "0.8429922", "0.8275678", "0.8147301", "0.79023886", "0.7671582", "0.7649523", "0.76136005", "0.7585735", "0.744673", "0.7417539", "0.7354925", "0.7270376", "0.7270241", "0.7264234", "0.72494936", "0.7241023", "0.7233718", "0.7223409", ...
0.7208532
22
Return current number of time periods since the epoch.
def WRs_(xAU6): return int(ITS7.time()) // xAU6.period
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def F3WJ(YKHO):\n return YKHO.cum_periods_per_pair[-1]", "def pQ4c(YKHO) -> int:\n if YKHO.is_aperiodic:\n return 1\n if YKHO.is_irreducible:\n return YKHO.periods[0]\n pQ4c = 1\n for XP5J in [YKHO.periods[YKHO.communicating_classes.index(RBVb)] for RBVb in YKHO.recurrent_classes]:\n...
[ "0.712199", "0.7013988", "0.66917783", "0.66453385", "0.66234696", "0.65699565", "0.6566165", "0.6565006", "0.6541609", "0.6469127", "0.64348626", "0.64061916", "0.63960254", "0.6316846", "0.62979424", "0.6295522", "0.6292745", "0.6283451", "0.6272801", "0.627182", "0.6268634...
0.64779145
9
utility function to batch an iterable into chunks without reading it all into memory
def yOAJ(oHE7, ztRo): oHE7 = iter(oHE7) while True: yOAJ = tuple(uOgj(oHE7, ztRo)) if not yOAJ: return yield yOAJ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eHxA(OxJJ, zNig=100):\n oHE7 = iter(OxJJ)\n yOAJ = list(Hs6x.islice(oHE7, zNig))\n while yOAJ:\n yield yOAJ\n yOAJ = list(Hs6x.islice(oHE7, zNig))", "def egMm(OxJJ, Ep8u=10):\n Wc9F = []\n for or8S, ZfUD in enumerate(OxJJ):\n Wc9F.append(ZfUD)\n I7JW = or8S % Ep8u\n...
[ "0.80549765", "0.7992029", "0.7989324", "0.7974767", "0.79470575", "0.7899534", "0.78772336", "0.7874063", "0.7865149", "0.7854409", "0.78404105", "0.7827422", "0.7821554", "0.7810428", "0.7788382", "0.7749176", "0.77239794", "0.7716857", "0.77155197", "0.771105", "0.7696424"...
0.75788563
35
Constructs an `TpuEstimator` instance.
def FIMM(YKHO, JnVv=None, eG0V=None, GPtr=None, NArs=None, ND3i=True, sTd8=None): if GPtr is None or not isinstance(GPtr, P_ho.RunConfig): raise ValueError('`config` must be provided with type `tpu_config.RunConfig`') if NArs is not None and any((G1Hx in NArs for G1Hx in ffaq)): raise ValueError...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IhSv():\n TBxD = fGaB.estimator.create_tpu_estimator(gcloud_settings=XCtj, model_dir=eG0V, model_fn=Ywd2, eval_batch_size=C5Zj, warm_start_settings=_eTq)\n return TBxD", "def SqoB(J9Qu, eG0V, NArs, Ep8u, C5Zj):\n if NArs['use_tpu']:\n J_Dm = ZylS.contrib.cluster_resolver.TPUClusterResolver(tp...
[ "0.7278708", "0.676651", "0.64840853", "0.64539653", "0.6423284", "0.6230473", "0.61532444", "0.60766584", "0.6058145", "0.60529953", "0.6051716", "0.60386246", "0.601861", "0.58705264", "0.58199847", "0.5814624", "0.58144915", "0.579387", "0.5793669", "0.5780618", "0.5777707...
0.7032309
1
Utility to convert input_fn to enqueue and dequeue fns for TPU. Mainly, three things need to be done here. 1. Calls the input_fn many times (`num_shards`) to infeed the data into TPU 2. Create a dequeue_fn used by the train_step inside TPU execution to dequeue the tensors. 3. Sets up the input thread to infeed.
def dTHF(yb1Q, bySB, Crrw): kICn = None LOBN = [] if isinstance(bySB[0], dict): kICn = [mWFP for mWFP in bySB[0]] for OWrw in range(yb1Q.tpu_config.num_shards): g4y1 = [] if kICn is None: g4y1.append(bySB[OWrw]) else: for mWFP in kICn: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dTHF(fHXC, yb1Q, Rf7_, Tuqy):\n if fHXC.sharded:\n LOBN = fHXC.as_sharded_flattened_inputs()\n usGI = iCYz.InfeedQueue(number_of_tuple_elements=len(LOBN[0]))\n usGI.set_configuration_from_sharded_input_tensors(LOBN)\n else:\n KRSV = fHXC.as_flattened_inputs()\n usGI = i...
[ "0.72812647", "0.7164282", "0.71392167", "0.70523214", "0.69672704", "0.69241154", "0.6888841", "0.68042517", "0.6800745", "0.6724243", "0.67230874", "0.6681686", "0.6550238", "0.64950067", "0.6475788", "0.6379128", "0.6374933", "0.63569635", "0.63094026", "0.6253311", "0.624...
0.70321155
4
Reset all axes to the home position
def BHDC(): nPrm = QePW.sanitizedRequest oUZx = IguF(nPrm['command']) return gCuF.controller.home_all_axes(oUZx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def puwH(YKHO):\n YKHO.p.setRange(xRange=[0, 360], yRange=[0, 90], padding=0)", "def gYZM(MPlV):\n MPlV.grid(True)\n MPlV.yaxis.set_visible(True)\n MPlV.xaxis.set_visible(True)\n MPlV.cla()", "def SiRx(YKHO):\n YKHO.ticksX, YKHO.ticksY = (0, 0)", "def iqFv(YKHO):\n for aNZO in YKHO._twin...
[ "0.8065196", "0.7456216", "0.7406264", "0.7384283", "0.7098163", "0.708422", "0.70310616", "0.70168537", "0.6997357", "0.69920295", "0.6886877", "0.6807973", "0.6777645", "0.670665", "0.6697274", "0.6672533", "0.6654053", "0.6653697", "0.6646405", "0.6622436", "0.6583679", ...
0.6229001
71
Get the current backend and the associated optimizer
def JLXL(): global tensorlib global optimizer return (SfUh, K0do)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JLXL(YKHO):\n return YKHO.train_db_task().backend", "def DDLl():\n return p5cf", "def JLXL():\n if nMvt.name == 'tensorflow':\n return nMvt.gates\n else:\n return '_'.join([nMvt.name, nMvt.gates])", "def K0do(YKHO):\n return YKHO._config.get('optimizer')", "def LGmE():\n ...
[ "0.719588", "0.70407647", "0.6920204", "0.6896856", "0.6846912", "0.6828589", "0.6817107", "0.68079233", "0.6806852", "0.6775769", "0.6774942", "0.67496806", "0.67425877", "0.6739318", "0.6739318", "0.6739318", "0.6739318", "0.6739318", "0.6739318", "0.67328966", "0.67069125"...
0.8153798
0
Set the backend and the associated optimizer
def sJza(DDLl, vws2=None, rhd_=None): global tensorlib global optimizer iyXW = ['32b', '64b'] EcAK = {} if isinstance(rhd_, (str, bytes)): if isinstance(rhd_, bytes): rhd_ = rhd_.decode('utf-8') rhd_ = rhd_.lower() if isinstance(DDLl, (str, bytes)): if isinsta...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sJza(DDLl='custom'):\n if DDLl not in uVIK:\n yWbd = ', '.join(uVIK)\n nvUx(ValueError, 'Unknown backend {}. Please select one of the available backends: {}.'.format(DDLl, yWbd))\n if not GPtr.ALLOW_SWITCHERS and DDLl != nMvt.gates:\n qmLP.warn('Backend should not be changed after al...
[ "0.7957516", "0.71625686", "0.70637614", "0.7056428", "0.7042453", "0.7033902", "0.70278186", "0.69864005", "0.6900013", "0.68753093", "0.68595433", "0.6722799", "0.66430455", "0.660882", "0.6595047", "0.65315765", "0.65176046", "0.6439823", "0.6286751", "0.6234218", "0.62109...
0.7059097
3
Parses .txt and returns a list of QuoteModel objects.
def hfK9(Emd4, pmON: str) -> x1iM[TkhO]: if not Emd4.can_ingest: raise Exception('Cannot ingest file type') PenU = [] with open(pmON, 'r') as eHNT: Nqlg = eHNT.readlines() for zFiD in Nqlg: U5Jc = zFiD.split(' - ') U5Jc = [FUjE.strip() for FUjE in U5Jc] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hfK9(Emd4, pmON: str) -> x1iM[TkhO]:\n PenU = []\n try:\n with open(pmON, 'r') as FUjE:\n usx6 = FUjE.readlines()\n for rdlD in usx6:\n if len(rdlD) > 1:\n TBsA, taDc = rdlD.split(' - ')\n PenU.append(TkhO(TBsA, taDc))\n ...
[ "0.853979", "0.80751526", "0.784614", "0.76930434", "0.7645665", "0.7634925", "0.76336485", "0.7620062", "0.76135814", "0.76020294", "0.7563413", "0.7551231", "0.7513788", "0.73725104", "0.7368583", "0.7308312", "0.7301996", "0.7286077", "0.7280148", "0.72647846", "0.7203703"...
0.7726313
3
Round a datetime object to a multiple of a timedelta
def VGg5(JRYC=None, XKGp=qcWV.timedelta(minutes=1)): z_0R = XKGp.total_seconds() if JRYC == None: JRYC = qcWV.datetime.now() C6wh = (JRYC - JRYC.min).seconds Y3rN = (C6wh + z_0R / 2) // z_0R * z_0R return JRYC + qcWV.timedelta(0, Y3rN - C6wh, -JRYC.microsecond)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Jdgp(JRYC, XKGp=qcWV.timedelta(minutes=1)):\n z_0R = XKGp.total_seconds()\n C6wh = JRYC.timestamp()\n Y3rN = (C6wh + z_0R / 2) // z_0R * z_0R\n return JRYC + qcWV.timedelta(0, Y3rN - C6wh, -JRYC.microsecond)", "def VGg5(YKHO, XKGp=qcWV.timedelta(minutes=60)):\n JRYC = YKHO.datetime_object\n ...
[ "0.727732", "0.7082712", "0.6977887", "0.6847304", "0.6823675", "0.6748115", "0.6581582", "0.6573457", "0.6491572", "0.64779085", "0.64455456", "0.6421207", "0.64071053", "0.63579684", "0.63258487", "0.6318374", "0.6314847", "0.62982965", "0.6294818", "0.62941176", "0.6287066...
0.6848625
3
Return a pretty multiline string representating the cause of the exception.
def TlQe(YKHO): if getattr(YKHO, 'full_err', None) is not None: return YKHO.full_err GChh = kJm3() tknR = 800 print('BadOptimization Error', super().__str__(), file=GChh) print(' Variable: id', id(YKHO.new_r), YKHO.new_r, file=GChh) print(' Op', YKHO.new_r.owner, file=GChh) print('...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aS5t(YKHO, iLlx):\n GChh = xDSY.StringIO()\n V2zj = iLlx[2]\n wVCK.print_exception(iLlx[0], iLlx[1], V2zj, YKHO.tb_limit, GChh)\n KCHu = GChh.getvalue()\n GChh.close()\n if KCHu[-1:] == '\\n':\n KCHu = KCHu[:-1]\n return KCHu", "def NXaJ():\n type, BWXx, V2zj = HwRy.exc_info()\...
[ "0.7399727", "0.73256046", "0.7263629", "0.70913833", "0.70414156", "0.7041048", "0.70290565", "0.6948017", "0.68291146", "0.682367", "0.6742192", "0.67280614", "0.6712379", "0.67030627", "0.6700125", "0.6659938", "0.6659926", "0.66417897", "0.66242665", "0.6618058", "0.66155...
0.0
-1
Returns the density of the Gaussian distribution at the point x, given that the Gaussian has a mean mu and density sigma.
def IAWS(WKvO, yGTL, WTkW): OEry = 1.0 / oyIN.sqrt(2 * oyIN.pi * WTkW ** 2) w520 = -1 * (WKvO - yGTL) ** 2 / (2 * WTkW ** 2) return OEry * oyIN.e ** w520
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IAWS(yGTL, WTkW, WKvO):\n return kLQb(-(yGTL - WKvO) ** 2 / WTkW ** 2 / 2.0) / PZyS(2.0 * mM0K * WTkW ** 2)", "def IAWS(yGTL, WTkW, WKvO):\n return kLQb(-(yGTL - WKvO) ** 2 / WTkW ** 2 / 2.0) / PZyS(2.0 * mM0K * WTkW ** 2)", "def IAWS(YKHO, yGTL, WTkW, WKvO):\n return epAf.exp(-(yGTL - WKvO) ** 2 ...
[ "0.8370869", "0.83633596", "0.8349297", "0.8213411", "0.8210528", "0.8178044", "0.8143819", "0.80666655", "0.8053792", "0.7996897", "0.79555315", "0.79007417", "0.7892337", "0.7851174", "0.78402495", "0.777581", "0.7744863", "0.7702007", "0.7685981", "0.76673096", "0.7643998"...
0.78715056
13
u"""Return a new matrix like `U`, but with uppertriangle elements copied to lowertriangle ones.
def pwH0(KkY2): E3D9 = KkY2.copy() noZV = SeJT.triu_indices_from(E3D9, k=1) E3D9[noZV[1], noZV[0]] = E3D9[noZV] return E3D9
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KkY2(YKHO):\n CN9P = oyIN.zeros_like(YKHO.mat)\n for YRbF in enumerate(YKHO.mat):\n for r845 in enumerate(YKHO.mat):\n if YRbF[0] < r845[0]:\n CN9P[YRbF[0]][r845[0]] = YKHO.mat[YRbF[0]][r845[0]]\n return CN9P", "def L3g5(bAq5, exwG):\n vBWh = oyIN.zeros((exwG, exw...
[ "0.6819386", "0.666569", "0.6599856", "0.6587054", "0.6313652", "0.6295095", "0.6272545", "0.6242606", "0.6206639", "0.6154437", "0.61450905", "0.6121032", "0.606136", "0.6052613", "0.60285777", "0.6022954", "0.6015846", "0.5984178", "0.59759504", "0.5966048", "0.59426945", ...
0.6852435
0
Characterlevel detokenization. Respects all symbols. Joins chars into words. Words are delimited by the token. If found an special character is converted to the escaped char. List of escaped chars (by moses tokenizer) & > &amp; | > &124; &lt; > > &gt; ' > &apos; " > &quot; [ > &91; ] > &93;
def QzpN(KzVY): dkdD = ZbWC.sub(u' ', u'', KzVY) dkdD = ZbWC.sub(u'<space>', u' ', dkdD) return dkdD
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BMye(YKHO, s2mk, u7Vr):\n if len(s2mk) != len(u7Vr):\n tMsQ = [a1PO.encode('utf-8') for a1PO in s2mk]\n print(list(zip(tMsQ[:len(u7Vr)], u7Vr)))\n assert len(s2mk) == len(u7Vr), f'{len(s2mk)} tokens and {len(u7Vr)} spaces'\n dkdD = ''\n for or8S, w2fL in enumerate(s2mk):\n ...
[ "0.6828588", "0.6390537", "0.6257345", "0.6207016", "0.6163906", "0.61596894", "0.61102766", "0.6058736", "0.605728", "0.60462517", "0.6014062", "0.599207", "0.59792525", "0.5969004", "0.596747", "0.5958674", "0.59239924", "0.5922928", "0.59048784", "0.59048784", "0.59002995"...
0.0
-1
Return the user object whose email address is ``email``.
def CP7V(Emd4, D3lj): return GhOX.query(Emd4).filter_by(email_address=D3lj).first()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CYTf(Emd4, D3lj):\n return Emd4.query.filter_by(email=D3lj).one()", "def CYTf(Emd4, D3lj):\n CBIr = mv1M.query.filter(mv1M.email == D3lj).first()\n return CBIr", "def CYTf(D3lj: str) -> mv1M:\n return DQE7(mv1M, mv1M.email, D3lj)", "def CYTf(YKHO, D3lj: str) -> mv1M:\n return mv1M().get_by...
[ "0.9007129", "0.89451736", "0.88622034", "0.88602185", "0.87956774", "0.8786207", "0.87812555", "0.8775062", "0.8774389", "0.8769141", "0.87498254", "0.870799", "0.87069297", "0.8705377", "0.8696851", "0.8695541", "0.8682459", "0.86726636", "0.8652948", "0.86449385", "0.86411...
0.76958084
98
Hash ``password`` on the fly and store its hashed version.
def m_qJ(YKHO, jTXt): uC8k = GPtr.get('bisque.login.password', 'freetext') nol3 = HWrK.get(uC8k, gicY) jTXt = nol3.create_password(jTXt) RKD7.debug('Setting %s password', uC8k) if not isinstance(jTXt, QMSQ): jTXt = jTXt.decode('utf-8') YKHO._password = jTXt YKHO.on_update()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qzFd(YKHO, jTXt):\n YKHO.password_hash = jf1V.hash(jTXt)", "def qzFd(YKHO, jTXt):\n YKHO.password_hash = jf1V.hash(jTXt)", "def qzFd(YKHO, jTXt):\n YKHO.hash = jf1V.encrypt(jTXt)", "def qzFd(YKHO, jTXt):\n YKHO.password_hash = jf1V.encrypt(jTXt)", "def qzFd(jTXt: str):\n return jf1V.hash...
[ "0.83406126", "0.83406126", "0.8319057", "0.8282431", "0.7924288", "0.79203725", "0.79203725", "0.78998053", "0.7889681", "0.78766596", "0.7819783", "0.77624166", "0.77619183", "0.77285117", "0.76994205", "0.76903176", "0.7668114", "0.7665076", "0.7657418", "0.76463366", "0.7...
0.0
-1
Return the hashed version of the password.
def QVq7(YKHO): return YKHO._password
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kaVN(Emd4, jTXt: str) -> str:\n return jf1V.hash(jTXt)", "def kaVN(jTXt):\n return jf1V.hash(jTXt)", "def kaVN(YKHO, jTXt) -> str:\n return YKHO.pwd_context.hash(jTXt)", "def a2tF(jTXt):\n return B8ni.hashpw(jTXt.encode('utf-8'), B8ni.gensalt())", "def kaVN(jTXt: str):\n return jf1V.hash...
[ "0.8270324", "0.8219192", "0.8207896", "0.82000995", "0.8161713", "0.81462765", "0.8138622", "0.80877197", "0.8085041", "0.8078438", "0.8078438", "0.80645514", "0.8062632", "0.8056538", "0.8040849", "0.80285496", "0.80235326", "0.80136126", "0.801312", "0.8009189", "0.7996763...
0.0
-1