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 |
|---|---|---|---|---|---|---|
Convert a string from CamelCase to snake_case. | def wz8e(uhRd):
return ZbWC.sub('((?<=[a-z0-9])[A-Z]|(?!^)[A-Z](?=[a-z]))', '_\\1', uhRd).lower() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AQcz(str):\n j93S = ZbWC.sub('(.)([A-Z][a-z]+)', '\\\\1_\\\\2', str)\n Nqp_ = ZbWC.sub('-', '_', j93S)\n return ZbWC.sub('([a-z0-9])([A-Z])', '\\\\1_\\\\2', Nqp_).lower()",
"def taD7(GPn9):\n j93S = ZbWC.sub('(.)([A-Z][a-z]+)', '\\\\1_\\\\2', GPn9)\n Nqp_ = ZbWC.sub('([a-z0-9])([A-Z])', '\\\\1... | [
"0.8274245",
"0.8262749",
"0.8261688",
"0.8215879",
"0.8154332",
"0.8059317",
"0.7972546",
"0.79585224",
"0.7878156",
"0.7826248",
"0.77483594",
"0.7737882",
"0.7732599",
"0.7685381",
"0.7680826",
"0.76576835",
"0.76340514",
"0.7619145",
"0.7574448",
"0.7569673",
"0.7550979",... | 0.7988082 | 6 |
Convert a string from snake_case to CamelCase. | def YseT(EX77, GGXh=True):
EX77 = EX77.split('_')
j4nt = EX77[0]
if GGXh:
j4nt = j4nt.title()
return j4nt + ''.join((GIN8.title() for GIN8 in EX77[1:])) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kCQi(BQoY: str) -> str:\n V22M = BQoY.strip('_').split('_')\n return V22M[0] + ''.join((GIN8[:1].upper() + GIN8[1:] for GIN8 in V22M[1:]))",
"def kCQi(vIwR: str):\n return ''.join((dMQI.title() for dMQI in vIwR.split('_')))",
"def hr_R(BQoY):\n qWBe = BQoY.split('_')\n return ' '.join(qWBe).... | [
"0.86246634",
"0.83741486",
"0.8289731",
"0.8143544",
"0.81357396",
"0.80857646",
"0.8007097",
"0.79348457",
"0.7823642",
"0.77712065",
"0.7767378",
"0.7764126",
"0.77620256",
"0.77437127",
"0.76985806",
"0.76731175",
"0.7655576",
"0.7531545",
"0.7531545",
"0.7526505",
"0.749... | 0.7848616 | 8 |
Convert a string timespan definition to seconds, for example converting '1m30s' to 90. If timedef is already an int, the value will be returned unmodified. | def hDH5(A33i):
if isinstance(A33i, int):
return A33i
Uvlw = ('w', 'd', 'h', 'm', 's')
y3OZ = {'w': 604800, 'd': 86400, 'h': 3600, 'm': 60, 's': 1}
A33i = A33i.lower()
if A33i.isdigit():
return int(A33i)
elif len(A33i) == 0:
return 0
C6wh = -1
for Cqok in Uvlw:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def B0uL(XF7F):\n if XF7F.endswith('m'):\n lcOE = 60 * int(XF7F.replace('m', ''))\n elif XF7F.endswith('h'):\n lcOE = 60 * 60 * int(XF7F.replace('h', ''))\n elif XF7F.endswith('d'):\n lcOE = 24 * 60 * 60 * int(XF7F.replace('d', ''))\n elif XF7F.endswith('y'):\n lcOE = 365 * ... | [
"0.661844",
"0.6596993",
"0.64785796",
"0.62308425",
"0.61873764",
"0.61799085",
"0.61782384",
"0.6168959",
"0.6117218",
"0.60825104",
"0.60699874",
"0.60465664",
"0.60432637",
"0.6032382",
"0.6032382",
"0.6024347",
"0.59915835",
"0.5989029",
"0.59780324",
"0.5857638",
"0.582... | 0.8204206 | 0 |
Generate a random string of size length consisting of mixed case letters and numbers. This function is not meant for cryptographic purposes. | def omrF(zNig):
return ''.join((tuKI.choice(vIwR.ascii_letters + vIwR.digits) for WKvO in range(zNig))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EIGR(zNig=16):\n return ''.join(tuKI.SystemRandom().choices(vIwR.ascii_lowercase, k=zNig))",
"def BWvy(u54L=25):\n return ''.join((tuKI.choice(vIwR.ascii_letters) for YRbF in range(25)))",
"def Jv62(u54L=8, KoG3=vIwR.ascii_letters + vIwR.digits):\n return ''.join((tuKI.choice(KoG3) for WKvO in ran... | [
"0.83059156",
"0.8127696",
"0.8112817",
"0.81016755",
"0.80542344",
"0.8051191",
"0.8049026",
"0.8022436",
"0.8022372",
"0.8020393",
"0.8013599",
"0.79988366",
"0.799749",
"0.79864305",
"0.7985201",
"0.7980375",
"0.79667085",
"0.7959023",
"0.79474497",
"0.79383326",
"0.792966... | 0.8381686 | 0 |
Generate a random string of size length consisting of lowercase letters and numbers. This function is not meant for cryptographic purposes. | def hlj7(zNig):
return ''.join((tuKI.choice(vIwR.ascii_lowercase + vIwR.digits) for WKvO in range(zNig))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EIGR(zNig=16):\n return ''.join(tuKI.SystemRandom().choices(vIwR.ascii_lowercase, k=zNig))",
"def omrF(zNig):\n return ''.join((tuKI.choice(vIwR.ascii_letters + vIwR.digits) for WKvO in range(zNig)))",
"def BWvy(u54L=1, QmjV=False, cKm3=False):\n SIyd = BHGE\n Wxnj = str()\n if QmjV:\n ... | [
"0.8234897",
"0.8215414",
"0.80826694",
"0.79948",
"0.79917085",
"0.795191",
"0.79310286",
"0.79141015",
"0.78891426",
"0.78398776",
"0.7821437",
"0.7809333",
"0.78037405",
"0.78032714",
"0.7795994",
"0.7790688",
"0.7778142",
"0.7766082",
"0.77655256",
"0.77626395",
"0.776003... | 0.83950144 | 0 |
Unescape a string which uses backslashes to escape single quotes. | def egRF(EtF8):
EtF8 = EtF8.replace('\\\\', '\\')
EtF8 = EtF8.replace("\\'", "'")
return EtF8 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tnoA(KCHu, tZ2K='utf-8'):\n return uRlK.unquote(KCHu).decode(tZ2K)",
"def O5gF(KCHu):\n if not hasattr(KCHu, 'strip'):\n return KCHu\n return KCHu.strip('\"\\'')",
"def O5gF(KCHu):\n if not hasattr(KCHu, 'strip'):\n return KCHu\n return KCHu.strip(\"'\").strip('\"').strip(\"'\"... | [
"0.7666476",
"0.75588465",
"0.74770653",
"0.74721175",
"0.72262454",
"0.7162784",
"0.70051026",
"0.6963691",
"0.6960679",
"0.69293374",
"0.69101226",
"0.68697846",
"0.6863432",
"0.6786456",
"0.6667868",
"0.6588384",
"0.65671295",
"0.6556592",
"0.6544375",
"0.6530809",
"0.6525... | 0.8027732 | 0 |
Filters a dataframe to create a json for visualisation. This function loads in a dataframe and open a json file. It takes the last entry from the json list and searches all the entries in a column this column is specified by the length of the json list. With these ids it creates a new dataframe with only the data of th... | def hwii(bOBl, JGnA, Cmic=False):
hBFO = jZ4I.literal_eval(JGnA)
qBqe = {1: 'Kingdom', 2: 'Phylum', 3: 'Class', 4: 'Order', 5: 'Family', 6: 'Genus', 7: 'Species', 8: 'Strain'}
ZI14 = qBqe[len(hBFO)]
sZx9 = bOBl[bOBl['fw_' + ZI14] == hBFO[-1]]
D4t4 = bOBl[bOBl['rv_' + ZI14] == hBFO[-1]]
Y4EM = rL... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def scf7(r8ET, PcZo):\n tyNF = [['name', 'cik', 'city', 'state', 'street1', 'street2', 'zip_code', 'year_of_incorp', 'min_inv', 'tot_off', 'tot_sold', 'tot_rem', 'ind_group_type', 'has_non_accred', 'num_non_accred', 'tot_num_inv']]\n for YGFP in r8ET:\n with open(YGFP, 'rb') as eHNT:\n nPrm... | [
"0.5956797",
"0.5609698",
"0.55020446",
"0.54574645",
"0.54470164",
"0.54257125",
"0.5330677",
"0.5296108",
"0.52862954",
"0.5263498",
"0.52603763",
"0.5250862",
"0.5246143",
"0.52284694",
"0.5184295",
"0.51831394",
"0.518165",
"0.51586086",
"0.5155978",
"0.51553744",
"0.5140... | 0.72070074 | 0 |
Creates the scatterplot for the TSNE manifold | def wR4G(WKvO, Crrw, leAC):
Jw9H = len(oyIN.unique(Crrw))
tn62 = oyIN.array(uuEx.color_palette('hls', Jw9H))
eHNT = QrM1.figure(figsize=(8, 8))
aNZO = QrM1.subplot(aspect='equal')
Sa_m = aNZO.scatter(WKvO[:, 0], WKvO[:, 1], lw=0, s=40, c=tn62[Crrw.astype(oyIN.int)])
QrM1.xlim(-25, 25)
QrM1.y... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UVQq(bySB: {}, Crrw: {}):\n ElPO = cAlZ(n_components=2, perplexity=40, n_iter=900, random_state=0)\n awzU = ElPO.fit_transform(bySB)\n OR2u = len(oyIN.unique(Crrw[:, 0]))\n RLKD = oyIN.unique(Crrw[:, 1])\n tn62 = oyIN.array(uuEx.color_palette('hls', OR2u))\n LZpg, aNZO = QrM1.subplots(figsize... | [
"0.72057503",
"0.7132178",
"0.67768025",
"0.6736781",
"0.6725734",
"0.6716488",
"0.67094535",
"0.6527351",
"0.6480331",
"0.6459953",
"0.6376036",
"0.636726",
"0.63483053",
"0.62898505",
"0.6289107",
"0.628467",
"0.6283769",
"0.6270437",
"0.62231493",
"0.6214353",
"0.6178722",... | 0.0 | -1 |
Make and configure a copy of the `base_estimator_` attribute. | def AJAU(YKHO, SStx=True, t3eI=None):
BHCt = i3ak(YKHO.base_estimator_)
BHCt.set_params(**dict(((XP5J, getattr(YKHO, XP5J)) for XP5J in YKHO.estimator_params)))
if t3eI is not None:
hHTI(BHCt, t3eI)
if SStx:
YKHO.estimators_.append(BHCt)
return BHCt | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Frq5(YKHO):\n raise NotImplementedError()",
"def VNw3(YKHO, WmM4=HmMl()):\n if not isinstance(YKHO.n_estimators, (mSrU.Integral, oyIN.integer)):\n raise ValueError(f'n_estimators must be an integer, got {type(YKHO.n_estimators)}.')\n if YKHO.n_estimators <= 0:\n raise ValueError(f'n_es... | [
"0.6869325",
"0.6501932",
"0.6487164",
"0.6436401",
"0.6214268",
"0.61973447",
"0.6064689",
"0.5992623",
"0.5946241",
"0.589978",
"0.58753",
"0.58749306",
"0.5782988",
"0.57625115",
"0.57625115",
"0.5751477",
"0.57204956",
"0.56995547",
"0.5597314",
"0.5593558",
"0.5548333",
... | 0.6956835 | 0 |
The lower bound of the x domain. | def cIN9(YKHO):
return YKHO._xlow | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IDsK(YKHO) -> float:\n ...",
"def bGS6(YKHO):\n return YKHO.__xmin",
"def BQGg(YKHO):\n return MF4b([Fg_i[0] for Fg_i in YKHO.bounds])",
"def dpeR(YKHO):\n return YKHO.minx",
"def wBZN(YKHO):\n return YKHO.get_min_value(YKHO.X_INDEX)",
"def ZPAf(YKHO):\n IDsK = -YKHO._get_observatio... | [
"0.755378",
"0.74567384",
"0.74098676",
"0.7383982",
"0.72788846",
"0.71961635",
"0.7194346",
"0.7194346",
"0.71797466",
"0.7095927",
"0.7078646",
"0.7032228",
"0.6950686",
"0.6947169",
"0.6940819",
"0.6934742",
"0.6885356",
"0.6872937",
"0.6848953",
"0.68318367",
"0.67915076... | 0.70035803 | 12 |
The upper bound of the x domain. | def V1mt(YKHO):
return YKHO._xhigh | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def A2Fp(YKHO) -> float:\n ...",
"def bYzl(YKHO):\n return MF4b([Fg_i[1] for Fg_i in YKHO.bounds])",
"def KI6t(YKHO):\n return (YKHO._xmin, YKHO._xmax, YKHO._ymin, YKHO._ymax, YKHO._zmin, YKHO._zmax)",
"def gLHL(YKHO):\n return YKHO._upper_bound",
"def bYzl(YKHO):\n return YKHO.bbox[1][0]",
... | [
"0.7560285",
"0.7407665",
"0.7165652",
"0.70841944",
"0.70641977",
"0.6960108",
"0.6901441",
"0.6822403",
"0.6810636",
"0.6791146",
"0.67753196",
"0.6705533",
"0.66854876",
"0.6626655",
"0.6611438",
"0.6607535",
"0.6561816",
"0.65474766",
"0.65267235",
"0.6508877",
"0.6473561... | 0.0 | -1 |
The lower bound of the y domain. | def _HWG(YKHO):
return YKHO._ylow | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KDmU(YKHO):\n return YKHO.get_min_value(YKHO.Y_INDEX)",
"def COt1(YKHO):\n min = 1e+30\n for YRbF in range(0, YKHO.GetN()):\n XP5J = (YnkN.Double(), YnkN.Double())\n YKHO.GetPoint(YRbF, XP5J[0], XP5J[1])\n if XP5J[1] < min:\n min = XP5J[1]\n return min",
"def zQe... | [
"0.7280139",
"0.7276417",
"0.72226584",
"0.7168623",
"0.70772773",
"0.70644826",
"0.70241946",
"0.6878043",
"0.6878043",
"0.6878043",
"0.6878043",
"0.6878043",
"0.6878043",
"0.6878043",
"0.6878043",
"0.6878043",
"0.6878043",
"0.6878043",
"0.6878043",
"0.6878043",
"0.6878043",... | 0.6892845 | 7 |
The upper bound of the y domain. | def mJu_(YKHO):
return YKHO._yhigh | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tXvl(YKHO):\n return YKHO.axes.get_ylim()",
"def oiMZ(YKHO):\n return YKHO.maxy",
"def RfKK(YKHO) -> float:\n return YKHO.pendulum2.get_max_y()",
"def c4gB(YKHO):\n return max((YKHO(0).y, 0), (YKHO(1).y, 1))[1]",
"def A2Fp(YKHO) -> float:\n ...",
"def M65t(YKHO):\n if isinstance(YKH... | [
"0.76149464",
"0.739293",
"0.7347229",
"0.7205525",
"0.72054195",
"0.70474464",
"0.70457596",
"0.70355254",
"0.7028071",
"0.7008995",
"0.6927743",
"0.6893805",
"0.6875597",
"0.68409944",
"0.68193877",
"0.68093294",
"0.6805115",
"0.67994106",
"0.67994106",
"0.679863",
"0.67843... | 0.6526077 | 58 |
Creates and saves a user with ``is_superuser`` set to ``True```. | def Zp54(YKHO, D3lj, jTXt, **wdCM):
return YKHO.create_user(D3lj, jTXt, is_staff=True, is_superuser=True, **wdCM) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zp54(YKHO, D3lj, jTXt):\n CBIr = YKHO.create_user(D3lj, jTXt)\n CBIr.is_staff = True\n CBIr.is_superuser = True\n CBIr.save(using=YKHO._db)\n return CBIr",
"def Zp54(YKHO, D3lj, jTXt, **NSmi):\n CBIr = YKHO.create_user(D3lj, jTXt)\n CBIr.is_superuser = True\n CBIr.is_staff = True\n ... | [
"0.81693876",
"0.80808634",
"0.80598706",
"0.80303854",
"0.80086094",
"0.8005846",
"0.7984878",
"0.7981301",
"0.79732907",
"0.7966382",
"0.7960046",
"0.79431605",
"0.7910489",
"0.79082066",
"0.7885791",
"0.7876728",
"0.78748",
"0.7859453",
"0.78576285",
"0.7852983",
"0.784459... | 0.76822585 | 53 |
Return input list as diagonal matrix. | def NMLy(vC9B):
tpio = len(vC9B)
E3D9 = oyIN.zeros((tpio, tpio))
oyIN.fill_diagonal(E3D9, vC9B)
return SppC(E3D9) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mbeH(a2b1=None, aDxC=u1ox, JfyU=None, n9UN=True, x0SS=False):\n if a2b1 is None:\n a2b1 = []\n if JfyU is None:\n JfyU = mbeH\n OFuV = []\n for ZfUD in a2b1:\n if _ev6(ZfUD):\n ZfUD = JfyU(ZfUD)\n if not x0SS or not fNrG(ZfUD):\n OFuV.append(ZfUD)\n... | [
"0.7755619",
"0.74313694",
"0.7182874",
"0.7018743",
"0.6937086",
"0.681921",
"0.67138505",
"0.66392463",
"0.66321486",
"0.65091425",
"0.64636755",
"0.6434628",
"0.6423502",
"0.62808996",
"0.62422687",
"0.6228172",
"0.6209113",
"0.61758906",
"0.61608684",
"0.6148629",
"0.6142... | 0.80969495 | 0 |
Return matrix with negative values set to zero. | def B0w2(E3D9):
E3D9[oyIN.where(E3D9 < 0)] = 0
return E3D9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def la4d(YKHO):\n Aofo = []\n for rdlD in YKHO.g:\n Aofo.append([-1 * exwG for exwG in rdlD])\n return aLMY(Aofo)",
"def la4d(YKHO):\n return y6O1(map(lambda WKvO: -WKvO, YKHO.mlist))",
"def la4d(YKHO):\n aTu0 = []\n for YRbF in range(YKHO.h):\n rdlD = []\n for r845 in ra... | [
"0.76243263",
"0.7563646",
"0.75580144",
"0.7358723",
"0.7310662",
"0.72867644",
"0.7284216",
"0.7188416",
"0.71556604",
"0.71500736",
"0.7108573",
"0.6983111",
"0.69672877",
"0.6960416",
"0.691239",
"0.6884161",
"0.68766946",
"0.687511",
"0.6855092",
"0.68545777",
"0.6849326... | 0.60442895 | 88 |
Return matrix with negative values set to zero. | def aBSi(E3D9):
E3D9[oyIN.where(E3D9 > 0)] = 0
return E3D9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def la4d(YKHO):\n Aofo = []\n for rdlD in YKHO.g:\n Aofo.append([-1 * exwG for exwG in rdlD])\n return aLMY(Aofo)",
"def la4d(YKHO):\n return y6O1(map(lambda WKvO: -WKvO, YKHO.mlist))",
"def la4d(YKHO):\n aTu0 = []\n for YRbF in range(YKHO.h):\n rdlD = []\n for r845 in ra... | [
"0.76243263",
"0.7563646",
"0.75580144",
"0.7358723",
"0.72867644",
"0.7284216",
"0.7188416",
"0.71556604",
"0.71500736",
"0.7108573",
"0.6983111",
"0.69672877",
"0.6960416",
"0.691239",
"0.6884161",
"0.68766946",
"0.687511",
"0.6855092",
"0.68545777",
"0.68493265",
"0.684932... | 0.7310662 | 4 |
Returns current service configuration preset | def ZVz9(YKHO, oQ6x):
if oQ6x not in B373:
raise AssertionError('Behaviour %s is not registred in ServiceAPI (%s)' % (oQ6x, str(B373.keys())))
y4ch = B373[oQ6x]
kT1P = y4ch()
Kz8N = kT1P.get_manifest(oQ6x)
if Kz8N:
return kT1P.get_preset(Kz8N)
else:
raise BaseException('C... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wewR(YKHO) -> str | None:\n QTBn = YKHO._state\n return QTBn.custom_preset or Hh5d.from_esphome(QTBn.preset_compat(YKHO._api_version))",
"def tgzD():\n return X8Rg",
"def wewR(YKHO) -> h8nf[str]:\n return YKHO._preset",
"def XzxE(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'pre... | [
"0.6515062",
"0.6276675",
"0.625593",
"0.62427366",
"0.62224907",
"0.62178314",
"0.621284",
"0.617045",
"0.61603224",
"0.6145862",
"0.60998875",
"0.599241",
"0.5959012",
"0.5957863",
"0.5947781",
"0.5933238",
"0.59199774",
"0.5905573",
"0.58989686",
"0.58883196",
"0.58865637"... | 0.68381345 | 0 |
Adjusts the learning rates of the optimizers. | def r2EO(YKHO, N0dy=None, oZS_=None, V9LS=None, fenK=None, ffjd=None):
if N0dy:
YKHO._a_train.lr.assign(N0dy)
if oZS_:
YKHO._alpha_train.lr.assign(oZS_)
if YKHO.use_lyapunov:
if V9LS:
YKHO._l_train.lr.assign(V9LS)
if fenK:
YKHO._lambda_train.lr.assign(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e_63(qIxc, K0do, qtWj):\n if qtWj * 3 == qIxc.epochs or qtWj * 3 == 2 * qIxc.epochs:\n tspZ = qIxc.lr * 0.1 ** (qtWj * 3 // qIxc.epochs)\n print('Changing Learning Rate to {}'.format(tspZ))\n for Lwm5 in K0do.param_groups:\n Lwm5['lr'] = tspZ",
"def e_63(YKHO, K0do, qtWj, q... | [
"0.7902265",
"0.781789",
"0.7754488",
"0.7667442",
"0.76529497",
"0.76516366",
"0.7639675",
"0.76214665",
"0.7611798",
"0.7578702",
"0.75758976",
"0.75666684",
"0.75664407",
"0.7556834",
"0.754952",
"0.75482213",
"0.75413835",
"0.7530248",
"0.75238013",
"0.75238013",
"0.75238... | 0.0 | -1 |
Property used to clip lambda to be equal or bigger than 0.0 in order to prevent it from becoming nan when log_labda becomes inf. Further we clip it to be lower or equal than 1.0 in order to prevent lambda from exploding when the the hyperparameters are chosen badly. | def TrpW(YKHO):
return ZylS.clip_by_value(ZylS.exp(YKHO.log_labda), *XOlq) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MkS9(UoyG, TjgV):\n SGf8 = 1e-06 * 0.5 * (TjgV.log_max - TjgV.log_min)\n eU5P, NPSy = UoyG\n eU5P.assign(ZylS.clip_by_value(eU5P, clip_value_min=TjgV.log_min, clip_value_max=TjgV.log_max - 2 * SGf8))\n NPSy.assign(ZylS.clip_by_value(NPSy, clip_value_min=eU5P + SGf8, clip_value_max=TjgV.log_max))",
... | [
"0.6807709",
"0.6133363",
"0.6007942",
"0.5977572",
"0.59513134",
"0.59020984",
"0.58992976",
"0.5898119",
"0.5853264",
"0.5846974",
"0.5801608",
"0.57939166",
"0.5728134",
"0.5699257",
"0.5680772",
"0.5668276",
"0.56555265",
"0.55422413",
"0.55391026",
"0.5529962",
"0.549097... | 0.665226 | 1 |
Initialize all Company's fields. | def FIMM(YKHO, *qIxc, **B2fa):
YKHO._caffe = B2fa.pop('caffe')
B2fa.setdefault('label_suffix', '')
super(ak7B, YKHO).__init__(*qIxc, **B2fa)
YKHO.fields['name'].label = 'Nazwa' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _GMr(YKHO):\n pass",
"def FIMM(YKHO, mWFP, **ekf9):\n YKHO.name = mWFP\n YKHO.__dict__.update(ekf9)",
"def FIMM(YKHO):\n YKHO.constant_fields = {}\n YKHO.post_score_renames = {}\n YKHO.form = None\n YKHO.form_field_regex = None\n YKHO.field_count = None\n YKHO.set_generic_fields(... | [
"0.6863239",
"0.65022624",
"0.6477633",
"0.64356196",
"0.6250767",
"0.61995405",
"0.60311306",
"0.6015784",
"0.5975103",
"0.5966057",
"0.5945797",
"0.58824325",
"0.58824325",
"0.58760387",
"0.58603305",
"0.58238846",
"0.5793218",
"0.5789367",
"0.578211",
"0.5773175",
"0.57566... | 0.5360942 | 80 |
Search product store by product id | def WQhH(YKHO, Mc9N):
return YKHO.fetch_all('\n SELECT\n s.name\n FROM\n product_stores as ps\n INNER JOIN\n stores as s ON s.id = ps.store_id\n WHERE\n ps.product_id=%s;\n ', (Mc9N,)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DSYl(Mc9N):\n for VUF1 in F1m0.get_all_stores().values():\n if Mc9N in VUF1.inventory.products_dict:\n TK2h = VUF1.inventory.products_dict[Mc9N]\n return TK2h\n raise Exception('product not found')",
"def n37m(YKHO, Mc9N, fmKd):\n return YKHO.fetch_one('\\n SELECT... | [
"0.8201761",
"0.79626584",
"0.79549867",
"0.6679",
"0.667048",
"0.6665637",
"0.66565716",
"0.66284305",
"0.6609666",
"0.6539821",
"0.64811045",
"0.63692534",
"0.6365759",
"0.6345285",
"0.62997335",
"0.62674946",
"0.62614584",
"0.6250654",
"0.62439996",
"0.61956626",
"0.618576... | 0.80801195 | 1 |
Return the location string `loc` translated into a standardized form. | def tsBk(hksT, WmM4=None):
if hksT in (None, True):
hksT = WmM4
elif isinstance(hksT, (str, wpGN)):
if hksT in PB_M.values():
pass
else:
try:
hksT = PB_M[hksT]
except KeyError:
raise KeyError(f'Invalid location {hksT!r}.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def clVq(Rci7):\n WY3t = Rci7.split()\n if len(WY3t) > 1:\n if len(WY3t) == 2 and len(WY3t[1]) == 2:\n Rci7 = f'{WY3t[0].title()} {WY3t[1].upper()}'\n elif len(WY3t) == 3 and len(WY3t[2]) == 2:\n Rci7 = f'{WY3t[0].title()} {WY3t[1].title()} {WY3t[2].upper()}'\n else... | [
"0.69732296",
"0.6872208",
"0.64715505",
"0.62651414",
"0.61977404",
"0.61682653",
"0.61576915",
"0.6153057",
"0.61100024",
"0.6080847",
"0.5956795",
"0.5908905",
"0.58818525",
"0.5772944",
"0.57470673",
"0.5737565",
"0.5731913",
"0.5704558",
"0.5690827",
"0.56661564",
"0.562... | 0.69895846 | 0 |
Return the column or row gridspec range for the axes. | def zadb(YKHO, WKvO):
if not hasattr(YKHO, 'get_subplotspec'):
raise RuntimeError(f'Axes is not a subplot.')
KG9w = YKHO.get_subplotspec()
if WKvO == 'x':
bGrB, bGrB, bGrB, bGrB, iIDh, C0Wu = KG9w.get_active_rows_columns()
return (iIDh, C0Wu)
else:
bGrB, bGrB, ecEc, znzI,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Jc_N(YKHO, *qIxc, **B2fa):\n Lcab = YKHO.axes.projection.proj4_params.get('lon_0', 0)\n MEXo, OV1s = type(YKHO)._axes_domain(YKHO, *qIxc, **B2fa)\n MEXo = oyIN.asarray(MEXo) + Lcab\n return (MEXo, OV1s)",
"def X7zS(YKHO):\n return (YKHO.min_col, YKHO.min_row, YKHO.max_col, YKHO.max_row)",
"d... | [
"0.6727762",
"0.6689823",
"0.6543232",
"0.63710177",
"0.6327657",
"0.63255554",
"0.63080287",
"0.62501",
"0.60856366",
"0.60605794",
"0.60460764",
"0.6028095",
"0.6011696",
"0.59951967",
"0.5986672",
"0.59041333",
"0.59020406",
"0.5864935",
"0.58642626",
"0.586413",
"0.585376... | 0.76912916 | 0 |
The axes number. This controls the order of abc labels and the order of appearence in the `~proplot.subplots.subplot_grid` returned by `~proplot.subplots.subplots`. | def FGW3(YKHO):
return YKHO._number | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IwFQ(aNZO=None, Dgb6=5, Lkuq=None, FAFF=5, pV5f=None, bcAN=True, uGl4=True):\n aNZO = ya25(aNZO)\n if Lkuq is None:\n Lkuq = 2 * Dgb6\n if pV5f is None:\n pV5f = 2 * FAFF\n if bcAN:\n fulD(aNZO.xaxis, Dgb6, Lkuq)\n if uGl4:\n fulD(aNZO.yaxis, FAFF, pV5f)",
"def _rde... | [
"0.658098",
"0.6492361",
"0.64193594",
"0.6222354",
"0.61947435",
"0.60646665",
"0.5988294",
"0.5959212",
"0.5818488",
"0.5791443",
"0.5772391",
"0.57558435",
"0.57472575",
"0.56982183",
"0.5644749",
"0.5644749",
"0.5605827",
"0.55798703",
"0.55665565",
"0.55303043",
"0.55302... | 0.0 | -1 |
Convert the boolean "left", "right", "top", and "bottom" rc settings to a location string. Returns ``None`` if settings are unchanged. | def Po5l(WKvO, vIwR):
if WKvO == 'x':
tlxW = RBVb.get(f'{vIwR}.top', context=True)
es2x = RBVb.get(f'{vIwR}.bottom', context=True)
if tlxW is None and es2x is None:
return None
elif tlxW and es2x:
return 'both'
elif tlxW:
return 'top'
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def L2UI(YKHO):\n U5bT = '%s: ' % str(YKHO.location)\n if YKHO.char_location:\n U5bT += YKHO.char_location\n elif YKHO.x is not None:\n U5bT += '(%s, %s)' % (YKHO.x, YKHO.y)\n if YKHO.parent_item:\n U5bT += ' [Socketed]'\n return U5bT",
"def AeX4(YKHO, NUkQ=None):\n ow9O = ... | [
"0.51739573",
"0.5161101",
"0.50401664",
"0.5020561",
"0.4988331",
"0.49158645",
"0.48718396",
"0.4846016",
"0.48161334",
"0.47410035",
"0.47079167",
"0.46945345",
"0.46372974",
"0.46126524",
"0.4609368",
"0.4591622",
"0.45858857",
"0.4585241",
"0.45738342",
"0.4567532",
"0.4... | 0.61846006 | 0 |
Apply alternate x axis overrides. | def Q5gR(YKHO):
if YKHO._altx_child is not None:
YKHO._shared_y_axes.join(YKHO, YKHO._altx_child)
YKHO.spines['top'].set_visible(False)
YKHO.spines['bottom'].set_visible(True)
YKHO.xaxis.tick_bottom()
YKHO.xaxis.set_label_position('bottom')
elif YKHO._altx_parent is not N... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HYOR(YKHO):\n d7pR = YKHO._dualx_arg\n if d7pR is None:\n return\n NXpY = YKHO.xaxis._scale\n edY3 = YKHO.get_xlim()\n if (NXpY, *edY3) == YKHO._dualx_cache:\n return\n aUGN = YKHO._altx_child\n nJCu = SiKb.Scale('function', d7pR, invert=True, parent_scale=NXpY)\n aUGN.xax... | [
"0.69636244",
"0.6499312",
"0.64706177",
"0.63704365",
"0.63455576",
"0.6198285",
"0.6192671",
"0.615085",
"0.60232383",
"0.60180944",
"0.59796655",
"0.59656805",
"0.5847485",
"0.5836692",
"0.5811789",
"0.5811789",
"0.58003503",
"0.5762862",
"0.5748239",
"0.574348",
"0.573644... | 0.5682529 | 24 |
Apply alternate y axis overrides. | def JpW5(YKHO):
if YKHO._alty_child is not None:
YKHO._shared_x_axes.join(YKHO, YKHO._alty_child)
YKHO.spines['right'].set_visible(False)
YKHO.spines['left'].set_visible(True)
YKHO.yaxis.tick_left()
YKHO.yaxis.set_label_position('left')
elif YKHO._alty_parent is not None:... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gQT0(YKHO):\n d7pR = YKHO._dualy_arg\n if d7pR is None:\n return\n NXpY = YKHO.yaxis._scale\n edY3 = YKHO.get_ylim()\n if (NXpY, *edY3) == YKHO._dualy_cache:\n return\n aUGN = YKHO._alty_child\n nJCu = SiKb.Scale('function', d7pR, invert=True, parent_scale=NXpY)\n aUGN.yax... | [
"0.73877794",
"0.726645",
"0.71623874",
"0.69469917",
"0.68925786",
"0.676576",
"0.659426",
"0.659426",
"0.6499343",
"0.6498948",
"0.64673245",
"0.64503443",
"0.6432815",
"0.6427218",
"0.63749826",
"0.63413054",
"0.6321191",
"0.6318312",
"0.623573",
"0.62345433",
"0.62186015"... | 0.5576093 | 78 |
Lock the child "dual" y axis limits to the parent. | def gQT0(YKHO):
d7pR = YKHO._dualy_arg
if d7pR is None:
return
NXpY = YKHO.yaxis._scale
edY3 = YKHO.get_ylim()
if (NXpY, *edY3) == YKHO._dualy_cache:
return
aUGN = YKHO._alty_child
nJCu = SiKb.Scale('function', d7pR, invert=True, parent_scale=NXpY)
aUGN.yaxis._scale = nJC... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ya6h(YKHO):\n YKHO.masterContainer.range2d.y_range.high = YKHO.verticalLimit",
"def JpW5(YKHO):\n if YKHO._alty_child is not None:\n YKHO._shared_x_axes.join(YKHO, YKHO._alty_child)\n YKHO.spines['right'].set_visible(False)\n YKHO.spines['left'].set_visible(True)\n YKHO.yaxi... | [
"0.67958367",
"0.6299733",
"0.61978877",
"0.61506903",
"0.61500907",
"0.6014267",
"0.5869512",
"0.58608377",
"0.58156776",
"0.57801855",
"0.5761993",
"0.5750932",
"0.57143724",
"0.5655746",
"0.56293875",
"0.56244546",
"0.56170636",
"0.5613716",
"0.5594056",
"0.5594056",
"0.55... | 0.7377673 | 0 |
Return a circle `~matplotlib.path.Path` used as the outline for polar stereographic, azimuthal equidistant, and Lambert conformal projections. This was developed from `this cartopy example \ | def yJAA(ywwl=100):
q7In = oyIN.linspace(0, 2 * oyIN.pi, ywwl)
hgjH, r1VO = ([0.5, 0.5], 0.5)
_19w = oyIN.vstack([oyIN.sin(q7In), oyIN.cos(q7In)]).T
return k4mo.Path(_19w * r1VO + hgjH) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def toiM(YKHO):\n global circ_main\n lM3V = Lr0q(stroke_color=hJxn).scale(2).shift(pY1r * 5)\n global dot_circ\n pZLn = H0x_(lambda: i9da(lM3V.get_end()))\n global dot_center\n riXj = i9da(pY1r * 5)\n global line_circ\n l2F2 = H0x_(lambda: NTRO(start=riXj.get_center(), end=pZLn.get_center()... | [
"0.6730185",
"0.6723566",
"0.66747",
"0.665132",
"0.6631254",
"0.6631254",
"0.6543495",
"0.6538131",
"0.65189123",
"0.650842",
"0.64933336",
"0.6448144",
"0.64127535",
"0.63649946",
"0.63298136",
"0.6275898",
"0.62495387",
"0.6245766",
"0.621852",
"0.6212398",
"0.62025374",
... | 0.73424065 | 0 |
See also `~proplot.subplots.subplots`, `Axes`, `GeoAxes`, `BasemapAxes` | def FIMM(YKHO, *qIxc, **B2fa):
YKHO._boundinglat = None
YKHO._latmax = None
YKHO._latlines = None
YKHO._lonlines = None
YKHO._lonlines_values = None
YKHO._latlines_values = None
YKHO._lonlines_labels = None
YKHO._latlines_labels = None
super().__init__(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pbyQ(PoPm, eWWU, wS6u, OY8H, HLAZ):\n OUcv = float(OY8H[0])\n AUTd = float(OY8H[1])\n cDF8 = oyIN.linspace(OUcv, AUTd, 7, endpoint=True)\n hMw_ = QrM1.subplot(i912[PoPm])\n hMw_.set_xticks(cDF8)\n hMw_.set_yscale('log')\n hMw_.invert_yaxis()\n hMw_.minorticks_off()\n hMw_.set_yticks(... | [
"0.7011268",
"0.682092",
"0.677713",
"0.67477703",
"0.670136",
"0.65120953",
"0.64482105",
"0.6423057",
"0.63425046",
"0.6225653",
"0.62017584",
"0.6189277",
"0.6178828",
"0.6094234",
"0.6085826",
"0.6067051",
"0.60514414",
"0.60292953",
"0.6029143",
"0.60128194",
"0.60038006... | 0.0 | -1 |
Stringify an iterable of dicts. This dumps each dict with JSON, and joins them with ``joinable``. | def BxV9(OxJJ: Iterable, yLVn: str='\n') -> str:
return yLVn.join((qQXR.dumps(A97Q, default=UIYs.default) for A97Q in OxJJ)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PjZe(YKHO, MnRD=1):\n smAg = U8Lr({str(G1Hx): Ty9i for G1Hx, Ty9i in YKHO.items()})\n for G1Hx, Ty9i in smAg.items():\n if isinstance(Ty9i, dict):\n smAg[G1Hx] = U8Lr({str(LEev): hQHm for LEev, hQHm in Ty9i.items()})\n for LEev, hQHm in smAg[G1Hx].items():\n if... | [
"0.63903606",
"0.63702756",
"0.63616145",
"0.62354517",
"0.6223313",
"0.61667544",
"0.614596",
"0.613535",
"0.61313087",
"0.6118176",
"0.6118176",
"0.6112242",
"0.6112242",
"0.6091572",
"0.6078463",
"0.6055636",
"0.6052664",
"0.6025587",
"0.60035354",
"0.5973798",
"0.5971142"... | 0.7861865 | 0 |
Returns a random ply from the list of legal plies | def MBtz(YKHO, iBIi, fF1T):
u4La = EdLY(iBIi, YKHO, fF1T)
SKze = u4La.generate_legal_ply_list()
return tuKI.choice(SKze) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tJEo():\n return tuKI.choice(d1QR)",
"def xNwC():\n return tuKI.choice(HMeC())",
"def lXME():\n return tuKI.choice(PbVm)",
"def tHgn(list):\n return tuKI.choice(list)",
"def Okhq():\n return tuKI.choice(y_1H)",
"def Uu03(yv6U):\n Acvy = tuKI.randint(0, len(yv6U) - 1)\n return yv6... | [
"0.6429419",
"0.635384",
"0.6205529",
"0.6162186",
"0.6018892",
"0.5996375",
"0.59512514",
"0.5947652",
"0.5947652",
"0.5947652",
"0.5851176",
"0.5848463",
"0.584434",
"0.58240527",
"0.5748063",
"0.5746718",
"0.57356095",
"0.57247037",
"0.572159",
"0.570818",
"0.5682471",
"... | 0.6272928 | 2 |
Computes the precision for the specified values of k | def vjyh(hlel, pan_, hz5a=(1, 5)):
Gq8e = max(hz5a)
Ep8u = pan_.size(0)
bGrB, nvEb = hlel.topk(Gq8e, 1, True, True)
nvEb = nvEb.t()
gXXc = nvEb.eq(pan_.reshape(1, -1).expand_as(nvEb))
Ylbp = []
for G1Hx in hz5a:
R2Dg = gXXc[:G1Hx].reshape(-1).float().sum(0, keepdim=True)
Ylbp... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rhd_(_ger, nvEb, G1Hx):\n G1Hx = min(len(nvEb), G1Hx)\n OCOs = min(len(_ger), G1Hx)\n return sum([int(nvEb[YRbF] in _ger) for YRbF in range(G1Hx)]) / OCOs",
"def sEak(Mkmy, G1Hx):\n assert G1Hx >= 1\n Mkmy = oyIN.asarray(Mkmy)[:G1Hx] != 0\n if Mkmy.size != G1Hx:\n raise ValueError('R... | [
"0.76427615",
"0.74189496",
"0.7418079",
"0.72710466",
"0.72456723",
"0.72446615",
"0.7237539",
"0.72213703",
"0.7210107",
"0.7058935",
"0.6852219",
"0.6786084",
"0.67836976",
"0.6768417",
"0.67273885",
"0.67181736",
"0.67181736",
"0.67181736",
"0.67181736",
"0.67181736",
"0.... | 0.0 | -1 |
Returns a list of legal actions. | def REUT(YimI: gs.GameState) -> h8nf[x1iM[int]]:
if YimI.is_game_ended():
return None
ovgf = []
if YimI.is_auction_started():
jlsA = YimI.get_auction_suns()
H2NP = float('-inf')
if sum((1 for geyT in jlsA if geyT is not None)) > 0:
H2NP = max((geyT for geyT in jls... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ovgf(YKHO):\n return YKHO.env.legal_actions()",
"def Cv80(YKHO):\n pass",
"def o7yi(YKHO):\n return YKHO.game.get_legal_actions()",
"def o7yi(YKHO):\n raise NotImplementedError",
"def ovgf(YKHO):\n raise NotImplementedError",
"def eqLF(YKHO):\n return YKHO.actions",
"def z8Ay(YKHO... | [
"0.8528816",
"0.83546525",
"0.82642806",
"0.81164455",
"0.7654911",
"0.7615163",
"0.76089287",
"0.75425416",
"0.74945986",
"0.7452249",
"0.74353325",
"0.7398746",
"0.7342401",
"0.7249083",
"0.72484213",
"0.72288615",
"0.71232915",
"0.71228725",
"0.7108967",
"0.7095986",
"0.70... | 0.0 | -1 |
Creates a boolean mask indicating missing labels. | def n5fH(LVAh, FuoA=xl5Y):
Q3Ef(FuoA)
if len(LVAh) == 0:
raise ValueError("'y' is not allowed to be empty.")
if not isinstance(LVAh, oyIN.ndarray):
SnBA = set((a1PO.__qualname__ for a1PO in set((type(Ty9i) for Ty9i in PIs9(LVAh)))))
SnBA.add(type(FuoA).__qualname__)
ye72 = Fa... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d0yi(LVAh, FuoA=xl5Y):\n return ~n5fH(LVAh, FuoA)",
"def nfK_(Y8eF, jTqs, DE1V=255):\n zG3c = Y8eF < jTqs\n QmU9 = Y8eF != DE1V\n ZHfW = zG3c & QmU9\n return ZHfW",
"def rUth(Crrw):\n ooTa = ZylS.shape(Crrw)[0]\n hVkF = ZylS.logical_not(OPo9(Crrw))\n H_De = ZylS.logical_not(ZylS.eye... | [
"0.7139526",
"0.68248355",
"0.65871716",
"0.635173",
"0.6303694",
"0.6146008",
"0.5951915",
"0.5909726",
"0.5901916",
"0.58459425",
"0.58449423",
"0.5818529",
"0.5798815",
"0.57935375",
"0.5788884",
"0.5788884",
"0.57888615",
"0.5728622",
"0.5714743",
"0.56810504",
"0.5665661... | 0.6468965 | 3 |
Creates a boolean mask indicating present labels. | def d0yi(LVAh, FuoA=xl5Y):
return ~n5fH(LVAh, FuoA) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rUth(Crrw):\n ooTa = ZylS.shape(Crrw)[0]\n hVkF = ZylS.logical_not(OPo9(Crrw))\n H_De = ZylS.logical_not(ZylS.eye(ooTa, dtype=ZylS.bool))\n return ZylS.logical_and(hVkF, H_De)",
"def nfK_(Y8eF, jTqs, DE1V=255):\n zG3c = Y8eF < jTqs\n QmU9 = Y8eF != DE1V\n ZHfW = zG3c & QmU9\n return Z... | [
"0.6684058",
"0.66000956",
"0.64278036",
"0.6178175",
"0.6136527",
"0.6009337",
"0.5936251",
"0.5748361",
"0.5718689",
"0.5711214",
"0.56704587",
"0.56682354",
"0.56485933",
"0.56300926",
"0.56155103",
"0.56117207",
"0.5609615",
"0.5593846",
"0.557923",
"0.55767304",
"0.55508... | 0.58319783 | 7 |
Return the total points after adding amount roundPoints. | def mDrp(YKHO, Z5kt):
YKHO.pointsThisRound = Z5kt
YKHO.pointsTotal += Z5kt
return YKHO.pointsTotal | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YYJ9(YKHO, **B2fa):\n LTIa = 0.0\n for H5ew, BWXx in YKHO.stat_data.items():\n LTIa = LTIa + ifvj[H5ew][1](BWXx)\n return round(LTIa, YKHO.__class__.default_round)",
"def nkGx(YKHO):\n YKHO.round_points = 0\n for gwV4 in YKHO.dice:\n if gwV4 == 1:\n YKHO.round_points +... | [
"0.7794225",
"0.77458435",
"0.74563384",
"0.70752335",
"0.687383",
"0.6612332",
"0.6508645",
"0.6455777",
"0.64535975",
"0.623415",
"0.61971956",
"0.6150033",
"0.6068901",
"0.60395116",
"0.6026796",
"0.6024767",
"0.6024767",
"0.5996103",
"0.5982745",
"0.5982685",
"0.5982685",... | 0.82475317 | 0 |
Give a readable representation of an instance. | def Ku9n(YKHO):
return '%s' % YKHO.name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHJl(YKHO):\n return '<instance of {}>'.format(YKHO.__class__.__name__)",
"def UpuU(YKHO, KAOR):\n return KAOR",
"def wHJl(YKHO):\n return repr(YKHO.__dict__['_obj'])",
"def wHJl(YKHO):\n return YKHO.pretty_print(YKHO.__dict__)",
"def wHJl(YKHO) -> str:\n return str(YKHO.as_dict())",
"... | [
"0.7497366",
"0.73179793",
"0.72952557",
"0.7288701",
"0.7233661",
"0.72258234",
"0.72258234",
"0.72258234",
"0.72258234",
"0.72258234",
"0.72258234",
"0.72258234",
"0.72258234",
"0.72258234",
"0.72258234",
"0.72258234",
"0.72258234",
"0.72258234",
"0.72258234",
"0.72258234",
... | 0.0 | -1 |
Give a unambiguous representation of an instance. | def wHJl(YKHO):
return '<%s#%s>' % (YKHO.__class__.__name__, YKHO.id) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sHxj(KAOR, *qIxc, **B2fa):\n Ltpw = []\n if qIxc:\n Ltpw.append(', '.join([f'{Ty9i!r}' for Ty9i in qIxc]))\n if B2fa:\n Ltpw.append(', '.join([f'{G1Hx}={Ty9i!r}' for G1Hx, Ty9i in B2fa.items()]))\n return f'{KAOR.__class__.__name__}({', '.join(Ltpw)})'",
"def wHJl(YKHO):\n return... | [
"0.66376984",
"0.6537621",
"0.6477478",
"0.6430123",
"0.641789",
"0.6415765",
"0.6366801",
"0.6353466",
"0.6337205",
"0.6300465",
"0.6299766",
"0.62791187",
"0.6257913",
"0.6257781",
"0.62315995",
"0.623087",
"0.62297136",
"0.62293833",
"0.62238556",
"0.6221245",
"0.6207133",... | 0.61025745 | 36 |
Give a readable representation of an instance. | def Ku9n(YKHO):
return '%s' % YKHO.name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHJl(YKHO):\n return '<instance of {}>'.format(YKHO.__class__.__name__)",
"def UpuU(YKHO, KAOR):\n return KAOR",
"def wHJl(YKHO):\n return repr(YKHO.__dict__['_obj'])",
"def wHJl(YKHO):\n return YKHO.pretty_print(YKHO.__dict__)",
"def wHJl(YKHO) -> str:\n return str(YKHO.as_dict())",
"... | [
"0.7497366",
"0.73179793",
"0.72952557",
"0.7288701",
"0.7233661",
"0.72258234",
"0.72258234",
"0.72258234",
"0.72258234",
"0.72258234",
"0.72258234",
"0.72258234",
"0.72258234",
"0.72258234",
"0.72258234",
"0.72258234",
"0.72258234",
"0.72258234",
"0.72258234",
"0.72258234",
... | 0.0 | -1 |
Give a unambiguous representation of an instance. | def wHJl(YKHO):
return '<%s#%s>' % (YKHO.__class__.__name__, YKHO.id) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sHxj(KAOR, *qIxc, **B2fa):\n Ltpw = []\n if qIxc:\n Ltpw.append(', '.join([f'{Ty9i!r}' for Ty9i in qIxc]))\n if B2fa:\n Ltpw.append(', '.join([f'{G1Hx}={Ty9i!r}' for G1Hx, Ty9i in B2fa.items()]))\n return f'{KAOR.__class__.__name__}({', '.join(Ltpw)})'",
"def wHJl(YKHO):\n return... | [
"0.66376984",
"0.6537621",
"0.6477478",
"0.6430123",
"0.641789",
"0.6415765",
"0.6366801",
"0.6353466",
"0.6337205",
"0.6300465",
"0.6299766",
"0.62791187",
"0.6257913",
"0.6257781",
"0.62315995",
"0.623087",
"0.62297136",
"0.62293833",
"0.62238556",
"0.6221245",
"0.6207133",... | 0.61025745 | 35 |
Give a readable representation of an instance. | def Ku9n(YKHO):
return '%s' % YKHO.name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHJl(YKHO):\n return '<instance of {}>'.format(YKHO.__class__.__name__)",
"def UpuU(YKHO, KAOR):\n return KAOR",
"def wHJl(YKHO):\n return repr(YKHO.__dict__['_obj'])",
"def wHJl(YKHO):\n return YKHO.pretty_print(YKHO.__dict__)",
"def wHJl(YKHO) -> str:\n return str(YKHO.as_dict())",
"... | [
"0.7497366",
"0.73179793",
"0.72952557",
"0.7288701",
"0.7233661",
"0.72258234",
"0.72258234",
"0.72258234",
"0.72258234",
"0.72258234",
"0.72258234",
"0.72258234",
"0.72258234",
"0.72258234",
"0.72258234",
"0.72258234",
"0.72258234",
"0.72258234",
"0.72258234",
"0.72258234",
... | 0.0 | -1 |
Give a unambiguous representation of an instance. | def wHJl(YKHO):
return '<%s#%s>' % (YKHO.__class__.__name__, YKHO.id) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sHxj(KAOR, *qIxc, **B2fa):\n Ltpw = []\n if qIxc:\n Ltpw.append(', '.join([f'{Ty9i!r}' for Ty9i in qIxc]))\n if B2fa:\n Ltpw.append(', '.join([f'{G1Hx}={Ty9i!r}' for G1Hx, Ty9i in B2fa.items()]))\n return f'{KAOR.__class__.__name__}({', '.join(Ltpw)})'",
"def wHJl(YKHO):\n return... | [
"0.66376984",
"0.6537621",
"0.6477478",
"0.6430123",
"0.641789",
"0.6415765",
"0.6366801",
"0.6353466",
"0.6337205",
"0.6300465",
"0.6299766",
"0.62791187",
"0.6257913",
"0.6257781",
"0.62315995",
"0.623087",
"0.62297136",
"0.62293833",
"0.62238556",
"0.6221245",
"0.6207133",... | 0.61025745 | 34 |
Test files with Old Mac style (\r) new lines. | def ECpP(qIxc):
print('============= Testing for Correctness (Old Mac) =============')
return fFpQ(qIxc, '\r') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SmhZ(Dhyu):\n return PFn7.sub('\\r\\n', Dhyu)",
"def pglp(YKHO, str):\n if str[-2:] == '\\r\\n':\n return str\n if str[-1:] == '\\n':\n return str[:-1] + '\\r\\n'\n else:\n return str + '\\r\\n'",
"def wC1j():\n RRlC = []\n for YBcr in ['.py', '.sh', 'Dockerfile', '.t... | [
"0.62769717",
"0.61840206",
"0.61330277",
"0.60605717",
"0.60098916",
"0.5922205",
"0.58722496",
"0.58499676",
"0.5830125",
"0.5820324",
"0.5800086",
"0.5793824",
"0.5778984",
"0.57156223",
"0.56969976",
"0.56681",
"0.56644446",
"0.56610334",
"0.56268644",
"0.56259274",
"0.56... | 0.7088799 | 0 |
Initialize a Card object with its suit,rank and value attributes | def FIMM(YKHO, iCfd, fdMZ):
YKHO.suit = iCfd
YKHO.rank = fdMZ
YKHO.value = hkxX[fdMZ] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, iCfd: str, fdMZ: str) -> None:\n YKHO.suit = iCfd\n YKHO.rank = fdMZ\n YKHO.value = F1Hz.values[fdMZ]\n YKHO.hidden = False",
"def FIMM(YKHO, fdMZ, iCfd):\n YKHO._rank = fdMZ\n YKHO._suit = iCfd",
"def FIMM(YKHO, BWXx, iCfd):\n YKHO.value = BWXx\n YKHO.suit = iCfd",
"de... | [
"0.8676571",
"0.79790235",
"0.79657143",
"0.7928229",
"0.7881141",
"0.78622735",
"0.7693859",
"0.76407725",
"0.76212704",
"0.75948614",
"0.75285524",
"0.74861115",
"0.74777955",
"0.74388266",
"0.7358639",
"0.73016906",
"0.7265924",
"0.72590697",
"0.7224853",
"0.7220318",
"0.7... | 0.80752605 | 1 |
Sets the reward_tooltip_items of this DestinyPublicActivityStatus. | def Bb3A(YKHO, Bb3A):
YKHO._reward_tooltip_items = Bb3A | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RiDe(YKHO, vOGg):\n YKHO.reward = vOGg",
"def KyoD(YKHO, crqo):\n vOGg = crqo.reshape(YKHO.cols, YKHO.rows).T\n YKHO.show_heatmap(vOGg, 'Pseudo Reward')",
"def TlaV(YKHO):\n if YKHO.reward_im is None and YKHO.reward_ax is None:\n LZpg, YKHO.reward_ax = QrM1.subplots()\n YKHO.rewar... | [
"0.50329757",
"0.5007686",
"0.4965978",
"0.4818254",
"0.48142833",
"0.4776663",
"0.4732582",
"0.47028562",
"0.4555676",
"0.455364",
"0.45310986",
"0.44369736",
"0.44249675",
"0.4415582",
"0.43645728",
"0.43599954",
"0.43471318",
"0.43036735",
"0.4301712",
"0.4301712",
"0.4293... | 0.8688591 | 0 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, ozTK):
return False
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8088132",
"0.8088132",
"0.8054589",
"0.7982687",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748"
] | 0.0 | -1 |
check if 2 grids are equal return boolean value | def yu09(oMoz, HwYe):
if oMoz == HwYe:
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yu09(oMoz, HwYe):\n if oMoz == HwYe:\n return True\n else:\n return False",
"def yu09(oMoz, HwYe):\n for YRbF in range(4):\n for r845 in range(4):\n if oMoz[YRbF][r845] != HwYe[YRbF][r845]:\n return False\n return True",
"def yu09(oMoz, HwYe):\n ... | [
"0.8933384",
"0.87099695",
"0.8585009",
"0.8558586",
"0.8200414",
"0.80762106",
"0.79177386",
"0.7875002",
"0.784008",
"0.75213224",
"0.7462791",
"0.7448489",
"0.7448489",
"0.74154866",
"0.7414818",
"0.73950034",
"0.7244226",
"0.7191573",
"0.7164593",
"0.7132306",
"0.71306413... | 0.8914656 | 1 |
Look in a string where `@` indicates the beginning of a new entry and return the indices. | def IsOi(cDu2):
for or8S, eOtH in enumerate(cDu2):
if eOtH == '@':
yield or8S | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def elvR(KCHu):\n f2sq = {}\n for D3lj in set(ZbWC.findall(RpvW, KCHu)):\n if D3lj[0].startswith('//'):\n continue\n f2sq[D3lj[0]] = YITT(D3lj[0], KCHu)\n return f2sq",
"def uLiF(qoGC, VyPo):\n U5bT = []\n QyVM = qoGC.find(VyPo)\n while QyVM > -1 and QyVM < len(qoGC):\n... | [
"0.6102411",
"0.6010226",
"0.584344",
"0.58310753",
"0.5739727",
"0.572319",
"0.564796",
"0.5634735",
"0.5634735",
"0.5634735",
"0.5633217",
"0.5602149",
"0.5587446",
"0.55604684",
"0.55604684",
"0.5529293",
"0.5527629",
"0.5518075",
"0.5491215",
"0.54701257",
"0.54701257",
... | 0.7022743 | 0 |
r""" Compare self to other | def D5J5(YKHO, Elif):
if not isinstance(Elif, sA3i):
return False
cIT_ = YKHO.multiplier() == Elif.WR and YKHO._weight_rat == Elif._weight_rat
cIT_ = cIT_ and YKHO.prec == Elif.prec and (YKHO._sym_type == Elif._sym_type)
cIT_ = cIT_ and YKHO._is_dual_rep == Elif._is_dual_rep
return cIT_ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n pass",
"def xa14(YKHO, Elif):\n pass",
"def xa14(YKHO, Elif):\n return YKHO.index == Elif.index",
"def xa14(YKHO, Elif):\n raise NotImplementedError",
"def xa14(YKHO, Elif):\n raise NotImplementedError",
"def xa14(YKHO, Elif):\n raise NotImplementedError",
"def... | [
"0.7890652",
"0.7890652",
"0.7886981",
"0.7879732",
"0.7879732",
"0.7879732",
"0.7810033",
"0.7765567",
"0.77633846",
"0.7742791",
"0.77094406",
"0.77094406",
"0.77094406",
"0.77094406",
"0.77078545",
"0.7626272",
"0.76236933",
"0.76212025",
"0.7618451",
"0.7616242",
"0.76159... | 0.0 | -1 |
r""" Return LaTeX string representation of self. | def eMsG(YKHO):
XP5J = YKHO._weight_rat.numer()
vexM = YKHO._weight_rat.denom()
gv2B = KCHu = '\\begin{verbatim}\\end{verbatim}'
BdN0 = ''
KCHu = '\\begin{verbatim}\\end{verbatim}'
KCHu += ' Space of Vector-Valued harmonic weak Maass forms on $'
KCHu += _svw(YKHO.multiplier().group()) + '$ ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHJl(YKHO):\n if YKHO.latex == YKHO.sans_parens:\n xM0K = u'\"{}\"'.format(YKHO.latex)\n else:\n xM0K = u'\"{}\" or \"{}\"'.format(YKHO.latex, YKHO.sans_parens)\n if YKHO.tall:\n GDMi = u'<[{}]>'\n else:\n GDMi = u'<{}>'\n return GDMi.format(xM0K)",
"def eMsG(YKHO):... | [
"0.7874056",
"0.77069783",
"0.7481031",
"0.73524547",
"0.7328107",
"0.72101086",
"0.7167516",
"0.7133799",
"0.71101266",
"0.709899",
"0.703869",
"0.69825625",
"0.69733673",
"0.69389904",
"0.6854402",
"0.6851698",
"0.68008584",
"0.6795204",
"0.67890733",
"0.6788342",
"0.675256... | 0.69453704 | 13 |
r""" Calculate the symmetry type (even/odd) for the combination of representation and weight. | def bc0X(YKHO):
a1PO = YKHO._weight - 0.5
if not Myyj(a1PO):
raise ValueError('Need half-integral value of weight! Got k={0}, k-1/2={1}'.format(YKHO._weight, a1PO))
xTkX = zllO(float(a1PO))
if kYZq(xTkX):
mJZE = -1
else:
mJZE = 1
if YKHO._is_dual_rep:
mJZE = -mJZE... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def j1me(YKHO):\n rrK4 = YKHO.get_atoms()[0].get_symmetry_class()\n _gpF = 1\n for WhQ6 in YKHO.get_atoms()[1:]:\n if WhQ6.get_symmetry_class() != rrK4[-1]:\n rrK4 += str(_gpF) + WhQ6.get_symmetry_class()\n _gpF = 1\n else:\n _gpF += 1\n rrK4 += str(_gpF)\... | [
"0.6355566",
"0.62997293",
"0.62865067",
"0.61532146",
"0.5913813",
"0.58368105",
"0.56588554",
"0.56498265",
"0.56127125",
"0.558194",
"0.5545168",
"0.5459059",
"0.54154664",
"0.5409102",
"0.5359808",
"0.53589046",
"0.53527033",
"0.53405666",
"0.53338766",
"0.53324234",
"0.5... | 0.72310233 | 0 |
r""" Return LaTeX string representation of self. | def eMsG(YKHO):
gv2B = KCHu = '\\begin{verbatim}\\end{verbatim}'
BdN0 = ''
KCHu = '\\begin{verbatim}\\end{verbatim}'
KCHu += 'Element of ' + YKHO._space._latex_().replace(gv2B, BdN0) + ' With principal part '
hvFG = YKHO._space.multiplier()
H4yH = ''
for Fg_i, r8hN in YKHO._principal_part:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHJl(YKHO):\n if YKHO.latex == YKHO.sans_parens:\n xM0K = u'\"{}\"'.format(YKHO.latex)\n else:\n xM0K = u'\"{}\" or \"{}\"'.format(YKHO.latex, YKHO.sans_parens)\n if YKHO.tall:\n GDMi = u'<[{}]>'\n else:\n GDMi = u'<{}>'\n return GDMi.format(xM0K)",
"def eMsG(YKHO):... | [
"0.7874056",
"0.77069783",
"0.7481031",
"0.73524547",
"0.7328107",
"0.7167516",
"0.7133799",
"0.71101266",
"0.709899",
"0.703869",
"0.69825625",
"0.69733673",
"0.69453704",
"0.69389904",
"0.6854402",
"0.6851698",
"0.68008584",
"0.6795204",
"0.67890733",
"0.6788342",
"0.675256... | 0.72101086 | 5 |
Wrapper for dot product operation, in order to be compatible with both Theano and Tensorflow | def uYbU(WKvO, WZcn):
if nMvt.backend() == 'tensorflow':
return nMvt.squeeze(nMvt.dot(WKvO, nMvt.expand_dims(WZcn)), axis=-1)
else:
return nMvt.dot(WKvO, WZcn) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yKrh(n2Q1: torch.Tensor, SpII: torch.Tensor, PJWX: bool=False):\n assert n2Q1.size() == SpII.size(), 'Sizes for dot-product must match'\n return ohcp.dot_prod(n2Q1, SpII, PJWX)",
"def iVXA(jzdc, Fg_i):\n return oyIN.einsum('ijk,ikl->ijl', jzdc, Fg_i)",
"def BJ1H(jzdc, Fg_i):\n jzdc, Fg_i = (uM5... | [
"0.7651723",
"0.76122725",
"0.75896275",
"0.7535402",
"0.75178",
"0.74978065",
"0.7466889",
"0.74378735",
"0.7429341",
"0.7418364",
"0.73810273",
"0.7376632",
"0.7343613",
"0.7331493",
"0.73104995",
"0.7309816",
"0.72749436",
"0.727089",
"0.7263545",
"0.7240149",
"0.72044",
... | 0.74902385 | 8 |
Calulate the area under the curve using trapezoid rule. | def KfOd(LTIa):
zUeS = 0.0
for ANJu, lCHq in zip(LTIa[1:], LTIa[:-1]):
P8oC = (ANJu[0] - lCHq[0]) / 100.0
H2v2 = ((ANJu[1] - lCHq[1]) / 2.0 + lCHq[1]) / 100.0
zUeS += P8oC * H2v2
return zUeS | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _wDu(LSh8, MRRk, CN9P):\n f0tD = (CN9P + LSh8) / 2 * MRRk\n return f0tD",
"def a3PS(WKvO, LVAh):\n return ht2j.trapz(x=WKvO, y=LVAh)",
"def f0tD(YKHO):\n return 0.5 * oyIN.abs(oyIN.dot(YKHO.x, oyIN.roll(YKHO.y, 1)) - oyIN.dot(YKHO.y, oyIN.roll(YKHO.x, 1)))",
"def f0tD(WKvO, LVAh):\n return... | [
"0.7307549",
"0.7014052",
"0.6953364",
"0.6681373",
"0.66544855",
"0.6547498",
"0.65455425",
"0.640952",
"0.6367776",
"0.6318975",
"0.629288",
"0.6282757",
"0.6256094",
"0.6256003",
"0.6249781",
"0.62264097",
"0.6210032",
"0.61856854",
"0.6172808",
"0.61625344",
"0.6157337",
... | 0.0 | -1 |
The color palette for the plots | def Jp3o(YKHO) -> cuzp[str, cuzp[str, str]]:
return YKHO.full_palette | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iMGt(YKHO):\n return YKHO._palette",
"def MYQr(YKHO):\n tn62 = [(0, 0, 0), (0, 0, 0), (0, 0, 0), (0, 0, 0), (0, 0, 0), (111, 74, 0), (81, 0, 81), (128, 64, 128), (244, 35, 232), (250, 170, 160), (230, 150, 140), (70, 70, 70), (102, 102, 156), (190, 153, 153), (180, 165, 180), (150, 100, 100), (150, 120... | [
"0.72215426",
"0.71344244",
"0.7085886",
"0.700568",
"0.698577",
"0.6982167",
"0.6880612",
"0.6862478",
"0.68534267",
"0.6704881",
"0.6642504",
"0.6568294",
"0.65532327",
"0.65447545",
"0.6539193",
"0.6484552",
"0.64768326",
"0.645193",
"0.6449726",
"0.6449726",
"0.64342874",... | 0.0 | -1 |
Get the kappa vrc01 aa dataframe Returns pd.DataFrame the kappa vrc01 aa dataframe from an ANARCI alignment | def MbxP(YKHO) -> rLdf.DataFrame:
return rLdf.read_feather(YKHO.figure_data_paths.kappa_vrc01_aa_path) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rA3f(YKHO) -> rLdf.DataFrame:\n return rLdf.read_feather(YKHO.figure_data_paths.lambda_vrc01_aa_path)",
"def Fwo9(YKHO) -> rLdf.DataFrame:\n return rLdf.read_feather(YKHO.figure_data_paths.vrc01_reference_airr_path)",
"def VB6U(URrF):\n ib4A = BSBk.fix_fasta(URrF)\n IMMP = rLdf.DataFrame(list(i... | [
"0.6568845",
"0.5562857",
"0.5498447",
"0.54653466",
"0.5458336",
"0.54002815",
"0.53500247",
"0.5220452",
"0.51550066",
"0.5150146",
"0.5144609",
"0.5140636",
"0.51400375",
"0.5122771",
"0.50870925",
"0.50739056",
"0.50713927",
"0.5047849",
"0.49883994",
"0.49727836",
"0.495... | 0.7584036 | 0 |
Get the lambda vrc01 aa dataframe Returns pd.DataFrame the lambda vrc01 aa dataframe from an ANARCI alignment | def rA3f(YKHO) -> rLdf.DataFrame:
return rLdf.read_feather(YKHO.figure_data_paths.lambda_vrc01_aa_path) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MbxP(YKHO) -> rLdf.DataFrame:\n return rLdf.read_feather(YKHO.figure_data_paths.kappa_vrc01_aa_path)",
"def Fwo9(YKHO) -> rLdf.DataFrame:\n return rLdf.read_feather(YKHO.figure_data_paths.vrc01_reference_airr_path)",
"def wp61(YKHO):\n Txb3 = YKHO.lca\n xl8I = 0\n LYBt = 1\n qnvl = 2\n ... | [
"0.6482792",
"0.58868605",
"0.57496387",
"0.56747735",
"0.5594335",
"0.5439382",
"0.5367475",
"0.5309153",
"0.5295174",
"0.52419627",
"0.5188785",
"0.51565063",
"0.5125295",
"0.51240903",
"0.51061106",
"0.50893843",
"0.50756",
"0.5070951",
"0.505273",
"0.5048198",
"0.50437456... | 0.7756964 | 0 |
Get the mature spr dataframe Returns pd.DataFrame the mature spr dataframe | def bklZ(YKHO) -> rLdf.DataFrame:
return rLdf.read_feather(YKHO.figure_data_paths.mature_spr_path) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CwDs(YKHO):\n ZWCE, f2rf, IKSE = ([], [], [])\n for AF9n, mWFP in enumerate(YKHO.posterior_parameter.row_names):\n ZWCE.append(mWFP)\n IKSE.append(oyIN.sqrt(float(YKHO.posterior_parameter[AF9n, AF9n].x)))\n FR0k = YKHO.parcov.row_names.index(mWFP)\n f2rf.append(oyIN.sqrt(float... | [
"0.62534106",
"0.61115843",
"0.6092848",
"0.5914531",
"0.58889925",
"0.5883527",
"0.5882141",
"0.5873399",
"0.58594275",
"0.58415014",
"0.58376426",
"0.5835708",
"0.5808138",
"0.58006",
"0.57592905",
"0.5751611",
"0.57237345",
"0.5707251",
"0.5687984",
"0.56701714",
"0.566633... | 0.735769 | 0 |
Get the fhcrc preprocessed manifest path | def IOP8(YKHO) -> GkAb:
return YKHO.flow_data_paths.fhcrc_preprocessed_manifest_path | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mcyk(YKHO) -> GkAb:\n return YKHO.flow_data_paths.fhcrc_processed_manifest_path",
"def d0xy(YKHO) -> GkAb:\n return YKHO.flow_data_paths.vrc_preprocessed_manifest_path",
"def sT5B(YKHO) -> GkAb:\n return YKHO.flow_data_paths.vrc_processed_manifest_path",
"def yeGC(YKHO) -> GkAb:\n return YKHO... | [
"0.82355773",
"0.7385821",
"0.70105916",
"0.6928901",
"0.6481178",
"0.6300706",
"0.62544096",
"0.61917967",
"0.6068125",
"0.6046459",
"0.59490186",
"0.5940529",
"0.5925866",
"0.5905864",
"0.5848496",
"0.5787247",
"0.57800484",
"0.57773006",
"0.57353354",
"0.57251936",
"0.5721... | 0.8456232 | 0 |
Get the vrc preprocessed manifest path | def d0xy(YKHO) -> GkAb:
return YKHO.flow_data_paths.vrc_preprocessed_manifest_path | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sT5B(YKHO) -> GkAb:\n return YKHO.flow_data_paths.vrc_processed_manifest_path",
"def IOP8(YKHO) -> GkAb:\n return YKHO.flow_data_paths.fhcrc_preprocessed_manifest_path",
"def Mcyk(YKHO) -> GkAb:\n return YKHO.flow_data_paths.fhcrc_processed_manifest_path",
"def YBwZ(YKHO) -> str:\n return YKH... | [
"0.8122157",
"0.7384365",
"0.7035069",
"0.6927623",
"0.68263435",
"0.6376462",
"0.6311443",
"0.62634593",
"0.61096555",
"0.6075289",
"0.59285253",
"0.59008056",
"0.57407707",
"0.5691818",
"0.5690067",
"0.5668195",
"0.5668195",
"0.5627052",
"0.56229764",
"0.5617677",
"0.556105... | 0.842788 | 0 |
Get the fhcrc swapped manifest path | def yeGC(YKHO) -> GkAb:
return YKHO.flow_data_paths.fhcrc_swapped_manifest_path | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mcyk(YKHO) -> GkAb:\n return YKHO.flow_data_paths.fhcrc_processed_manifest_path",
"def IOP8(YKHO) -> GkAb:\n return YKHO.flow_data_paths.fhcrc_preprocessed_manifest_path",
"def g5Hs(YKHO) -> GkAb:\n return YKHO.flow_data_paths.vrc_swapped_manifest_path",
"def YBwZ(YKHO) -> str:\n return YKHO.... | [
"0.7469115",
"0.7247928",
"0.71629834",
"0.6766603",
"0.6544952",
"0.6372282",
"0.63124305",
"0.6283842",
"0.59238535",
"0.5832267",
"0.57961273",
"0.57715434",
"0.5767921",
"0.5750788",
"0.57071453",
"0.570525",
"0.5679978",
"0.5676775",
"0.5661969",
"0.565913",
"0.5624786",... | 0.820003 | 0 |
Compute the distance between two x,y points. | def pImw(jzdc, Fg_i):
nJ9F, nxyw = jzdc
o4D3, si3g = Fg_i
return epAf.sqrt((o4D3 - nJ9F) ** 2 + (si3g - nxyw) ** 2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pImw(YKHO, WKvO, LVAh):\n o4D3, si3g = WKvO\n ajwV, skBL = LVAh\n return oyIN.sqrt(pow(o4D3 - ajwV, 2) + pow(si3g - skBL, 2))",
"def Ayfi(o4D3, si3g, ajwV, skBL):\n pImw = ((o4D3 - ajwV) ** 2 + (si3g - skBL) ** 2) ** 0.5\n return pImw",
"def Ayfi(o4D3, si3g, ajwV, skBL):\n return ((ajwV -... | [
"0.82147384",
"0.8136396",
"0.80773187",
"0.8067292",
"0.8052601",
"0.80061305",
"0.8004327",
"0.7961775",
"0.79296297",
"0.7915189",
"0.7845875",
"0.7838246",
"0.78197706",
"0.77951884",
"0.7776585",
"0.7756899",
"0.77390945",
"0.7703851",
"0.76833993",
"0.7677335",
"0.76686... | 0.7431686 | 40 |
comparator (called when pushing to the heap) | def JWbp(YKHO, Elif):
return YKHO.dist_from_source < Elif.dist_from_source | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sEWy(YKHO, k0lF):\n pass",
"def sEWy(YKHO, k0lF):\n pass",
"def sEWy(list):\n pass",
"def JWbp(YKHO, Elif):\n return YKHO._comparator.compare_measurements(YKHO, Elif) == 1",
"def ENpy(YKHO):\n for bGrB in range(len(YKHO.elements)):\n for YRbF in range(len(YKHO.elements) - 1, 0, -1... | [
"0.6591348",
"0.6591348",
"0.658925",
"0.65889597",
"0.6513194",
"0.6512085",
"0.650862",
"0.6505402",
"0.6505402",
"0.6505402",
"0.65047455",
"0.6460824",
"0.6455891",
"0.6447242",
"0.64215535",
"0.63799185",
"0.63748467",
"0.63716006",
"0.636787",
"0.6322795",
"0.63220364",... | 0.0 | -1 |
Construct a new VariableReference. | def FIMM(YKHO, mWFP=None, rrBf=None, kc1W=None):
YKHO.name = mWFP
YKHO.scope: 'VariableScope' = rrBf
YKHO.variables: fHNa[GwId] = kc1W or set() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b1RI(YKHO, mWFP=None):\n return YKHO.Variable(YKHO, name=mWFP)",
"def b1RI(YKHO, mWFP=None):\n return YKHO.Variable(YKHO, name=mWFP)",
"def b1RI(YKHO, mWFP=None):\n return YKHO.Variable(YKHO, name=mWFP)",
"def BdN0(YKHO, mWFP: str, Mot6) -> iKYI:\n cKGD = YKHO.map.memory.new_address()\n KC... | [
"0.6842301",
"0.6821262",
"0.6821262",
"0.67990375",
"0.6468719",
"0.6173369",
"0.61438274",
"0.61057633",
"0.6008527",
"0.58597016",
"0.5818307",
"0.5766487",
"0.57641315",
"0.5693819",
"0.56853634",
"0.56706727",
"0.56184345",
"0.557714",
"0.5561737",
"0.55457634",
"0.55069... | 0.58468145 | 10 |
Get all MemoryVariables that this identifier refers to. | def NMoC(YKHO) -> fHNa[GwId]:
return YKHO.variables | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZNog(YKHO):\n kc1W = YKHO.variables.values()\n for Es0b in kc1W:\n mWFP = Es0b['name']\n if mWFP in YKHO.references:\n Es0b['data'] = YKHO.references[mWFP]\n return kc1W",
"def lSnF(YKHO):\n return []",
"def lSnF(YKHO):\n return [YKHO.item]",
"def lSnF(YKHO):\n ... | [
"0.7053034",
"0.69206697",
"0.69037837",
"0.6869848",
"0.68115973",
"0.67545646",
"0.6695661",
"0.6684118",
"0.6630701",
"0.6627313",
"0.6612584",
"0.6548015",
"0.6533839",
"0.6533839",
"0.6533839",
"0.6516953",
"0.6510546",
"0.64899004",
"0.64874756",
"0.6467995",
"0.6462474... | 0.8071724 | 0 |
Create a new VariableScope instance, to be used to store all identifiers in this scope. | def FIMM(YKHO, JpqS: 'VariableScopeMap', YaxH: T.VariableScopeNode):
super().__init__()
YKHO.map = JpqS
YKHO.scope_node = YaxH
YKHO.is_class = isinstance(YKHO.scope_node, jZ4I.ClassDef) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GnEi(YKHO):\n\n def ki6W(gJdh=None, mWFP=None, ROpF=None, yDqo=m1c7.float32, MuED=None, R5ZC=None, CJGY=None, XJsN=True, g760=None, qGnU=None, N8s_=None, fz2t=True, Ic0L=None):\n del gJdh, R5ZC, g760, qGnU, N8s_\n del Ic0L, fz2t\n if mWFP in YKHO.tf_variables:\n if CJGY:\n ... | [
"0.6874674",
"0.68339735",
"0.6656265",
"0.63238454",
"0.61743724",
"0.61082643",
"0.6071707",
"0.60496354",
"0.60496354",
"0.60396457",
"0.59702694",
"0.5969781",
"0.5930553",
"0.59227246",
"0.5904457",
"0.58862716",
"0.58732116",
"0.584882",
"0.58378506",
"0.583114",
"0.574... | 0.0 | -1 |
Unbind all keys and axis bindings. | def abFj(Emd4):
if Emd4.instance() is None:
return
Emd4.instance().m_axis_bindings.clear()
Emd4.instance().m_axis_name_table.clear()
Emd4.instance().m_button_bindings.clear()
Emd4.instance().m_button_name_table.clear() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C0gG(YKHO):\n YKHO.ignoreAll()",
"def hOEk(oD_N):\n oD_N.unbind('<Key>')\n oD_N.unbind('<Left>')\n oD_N.unbind('<Up>')\n oD_N.unbind('<Right>')\n oD_N.unbind('<Down>')",
"def KiXY(Emd4, mWFP: str):\n if Emd4.instance() is None:\n return\n if not mWFP in Emd4.instance().m_axis... | [
"0.7355052",
"0.73135966",
"0.70585966",
"0.68741304",
"0.66389227",
"0.6554727",
"0.63494813",
"0.6288113",
"0.6122433",
"0.6012808",
"0.59326375",
"0.58588797",
"0.58225805",
"0.5808854",
"0.579496",
"0.56766665",
"0.5662946",
"0.5654133",
"0.56531227",
"0.564663",
"0.56448... | 0.80250984 | 0 |
Assumes that the value for a given key is going to be a list separated by commas. It gets rid of trailing comments. If just one item is present it returns a list with a single item, if no key is found an empty list is returned. | def UMnH(YKHO, XLMv, H5ew):
BWXx = YKHO.get_safe(XLMv, H5ew, [])
if BWXx == []:
return BWXx
BWXx = ZbWC.split('\\s+#', BWXx)[0]
BWXx = BWXx.split(',')
return [WKvO.strip() for WKvO in BWXx] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nBVR(YKHO, H5ew):\n BWXx = YKHO.get(H5ew, [])\n if BWXx is None or isinstance(BWXx, (list, tuple)):\n return BWXx\n else:\n return [BWXx]",
"def eejY(YKHO, object, H5ew):\n if type(object) != type({}):\n raise OgoS('%s is not a dictionary\\n' % object)\n if not object.has_... | [
"0.6413533",
"0.60651153",
"0.6023334",
"0.6005663",
"0.5795701",
"0.57607067",
"0.5743195",
"0.5728173",
"0.56835705",
"0.5662005",
"0.56236964",
"0.5586612",
"0.55735373",
"0.55733585",
"0.55672884",
"0.55536705",
"0.5541847",
"0.5536365",
"0.55146533",
"0.550269",
"0.54917... | 0.7557113 | 0 |
Render main page template. | def mkl0(YKHO, zb3C, QTBn, uJjO, BaHi):
return TvZl('main.html', client_id=zb3C, state=QTBn, is_logged_in=uJjO is not None, user_name=BaHi, categories=YKHO._db_manager.get_category_list(), items=YKHO._db_manager.get_latest_items(10)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ozko():\n return TvZl('main_page.html')",
"def Ozko():\n return TvZl('index.html')",
"def b8V_():\n return TvZl('main.html')",
"def b8V_():\n return TvZl('main.html')",
"def OsD3():\n return TvZl('index.html')",
"def kZiy():\n return TvZl('Main_Page.html')",
"def b8V_():\n B2Dn... | [
"0.84542125",
"0.8149654",
"0.781043",
"0.781043",
"0.77628034",
"0.76904076",
"0.7510588",
"0.74726844",
"0.733926",
"0.7320448",
"0.73169184",
"0.73169184",
"0.72962743",
"0.72170645",
"0.72170645",
"0.72170645",
"0.72083807",
"0.72083807",
"0.72069556",
"0.7158631",
"0.714... | 0.69394755 | 30 |
Render delete item page template. | def YZzD(YKHO, zb3C, QTBn, uJjO, BaHi, ht7m):
ZfUD = YKHO._db_manager.get_item(ht7m)
if ZfUD is None:
Dwep('Invalid item.')
return
if ZfUD['user_id'] != uJjO:
Dwep('Only the original creator can delete an item.')
return
Ghho = YKHO._db_manager.get_category(ZfUD['category_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def In8_(zDRZ, bNIC):\n return TvZl('delete_item.html', item_name=zDRZ, catagory_name=bNIC)",
"def PTpj():\n return TvZl('layout.html')",
"def PTpj(QePW):\n return _1tc(QePW, 'modify.html')",
"def by71(YKHO):\n return '{}/{}.html'.format(YKHO.object_name, YKHO.delete_endpoint)",
"def wlcv(YKHO)... | [
"0.7681434",
"0.74165964",
"0.7204042",
"0.7025928",
"0.6522235",
"0.6492463",
"0.6477454",
"0.64534074",
"0.6420184",
"0.63661385",
"0.6327609",
"0.62736994",
"0.62624943",
"0.6201626",
"0.61725795",
"0.61488116",
"0.6122013",
"0.60973203",
"0.6095742",
"0.60839736",
"0.6051... | 0.7662626 | 1 |
Fixture that patches CloudPath dispatch and also sets up test assets in LocalS3Client's local storage directory. | def SL9R(Ehsq):
x0hE = m1Bq(local_storage_dir='tests/resources')
Ehsq.setitem(RVbJ, 's3', Mubg)
x0hE.set_as_default_client()
JA7F = OnrH('s3://partitioned-graph-data/data/staging_rewards/0.0.1')
if not JA7F.exists():
raise Exception('Oops. Ensure test data directory exists')
yield
m1... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FCbF(YKHO):\n i_PC.FileSystem._getConnectionPool = uuVs(uuVs(uuVs()))\n YKHO._factory = i_PC.FileSystem(sZBw('http://s3.amazonaws.de/bucketname/keyname'))",
"def BJCG():\n with ae7y():\n yield",
"def FCbF(YKHO):\n super(d5A_, YKHO).setUp()\n vPBo.auth_driver = 'nova.auth.ldapdriver.Fa... | [
"0.6814452",
"0.6576719",
"0.62469995",
"0.61898136",
"0.61860484",
"0.61808056",
"0.6052858",
"0.5993104",
"0.59916407",
"0.5977578",
"0.5952461",
"0.5949529",
"0.5943407",
"0.5906873",
"0.587632",
"0.5851113",
"0.58496916",
"0.58405083",
"0.5824925",
"0.58226776",
"0.580549... | 0.64572006 | 2 |
Fetches belongsTo relation template. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. | def eVNa(YKHO, id, **B2fa):
B2fa['_return_http_data_only'] = True
if B2fa.get('callback'):
return YKHO.portal_templates_id_template_get_with_http_info(id, **B2fa)
else:
nPrm = YKHO.portal_templates_id_template_get_with_http_info(id, **B2fa)
return nPrm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ojBT(Emd4):\n return Qovt.many_to_one(Emd4, 'relationship_template')",
"def koMu(YKHO, NnTR=None, uOe2=None):\n if not NnTR:\n return None\n if hasattr(NnTR, 'parent_model'):\n PmLM = DDS9.objects.get_for_model(NnTR.parent_model)\n else:\n PmLM = DDS9.objects.get_for_model(ty... | [
"0.5148095",
"0.4523694",
"0.45112363",
"0.44421116",
"0.43611196",
"0.43501973",
"0.41655436",
"0.4162977",
"0.41533896",
"0.41294488",
"0.41261658",
"0.41258445",
"0.40591744",
"0.40569058",
"0.40124512",
"0.39589107",
"0.39380306",
"0.39271602",
"0.39112172",
"0.3894326",
... | 0.0 | -1 |
Fetches belongsTo relation template. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. | def pTvh(YKHO, id, **B2fa):
HhGF = ['id', 'refresh']
HhGF.append('callback')
HhGF.append('_return_http_data_only')
NArs = locals()
for H5ew, wEf2 in BVGD(NArs['kwargs']):
if H5ew not in HhGF:
raise TypeError("Got an unexpected keyword argument '%s' to method portal_templates_id_t... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ojBT(Emd4):\n return Qovt.many_to_one(Emd4, 'relationship_template')",
"def koMu(YKHO, NnTR=None, uOe2=None):\n if not NnTR:\n return None\n if hasattr(NnTR, 'parent_model'):\n PmLM = DDS9.objects.get_for_model(NnTR.parent_model)\n else:\n PmLM = DDS9.objects.get_for_model(ty... | [
"0.5147702",
"0.45228958",
"0.45101136",
"0.4443126",
"0.43609238",
"0.4350289",
"0.41650918",
"0.41622865",
"0.41526473",
"0.41288102",
"0.41278988",
"0.41269854",
"0.40613332",
"0.4056541",
"0.4013549",
"0.39606836",
"0.3941287",
"0.39273748",
"0.39140412",
"0.38953453",
"0... | 0.0 | -1 |
Exponential Moving Average serie y numero de lag | def h8Uy(YAgj, exwG):
fdNI = YAgj.ewm(exwG, adjust=False).mean()
fdNI[0:exwG] = [oyIN.nan] * exwG
return fdNI | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eoTq(YKHO, BdN0, gv2B, Cwt5):\n return Cwt5 * BdN0 + (1 - Cwt5) * gv2B",
"def b9zi(nPrm, uvMl=10, nnVk=1):\n ZCKv = nPrm.ewm(span=uvMl).mean()\n JYmr = rLdf.Series(oyIN.append(oyIN.repeat(oyIN.nan, nnVk), ZCKv[:len(ZCKv) - nnVk]))\n ezF6 = nPrm[nnVk:] - JYmr\n EFyb = ezF6 / ZCKv\n Rtl7 = ma... | [
"0.7027028",
"0.690062",
"0.6867722",
"0.6755099",
"0.6729632",
"0.6700071",
"0.6618212",
"0.66166675",
"0.6605855",
"0.6578557",
"0.65548164",
"0.65342855",
"0.6453069",
"0.6449806",
"0.64309686",
"0.6391946",
"0.63871735",
"0.6334468",
"0.6321428",
"0.62641",
"0.62590206",
... | 0.59906495 | 30 |
Centers the GUI on the screen. | def BoL3(YKHO):
kOsA = YKHO.frameGeometry()
m5S2 = CsJA.QDesktopWidget().availableGeometry().center()
kOsA.moveCenter(m5S2)
YKHO.move(kOsA.topLeft()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hgjH(YKHO):\n YKHO.root.update_idletasks()\n yzQ0 = YKHO.root.winfo_screenwidth()\n MKlR = YKHO.root.winfo_screenheight()\n zNig = tuple((int(bGrB) for bGrB in YKHO.root.geometry().split('+')[0].split('x')))\n WKvO = yzQ0 / 2 - zNig[0] / 2\n LVAh = MKlR / 2 - zNig[1] / 2\n YKHO.root.geomet... | [
"0.80871564",
"0.7965393",
"0.7756167",
"0.7490238",
"0.74812216",
"0.7458817",
"0.74298245",
"0.7428422",
"0.74227726",
"0.7422224",
"0.7422224",
"0.7370876",
"0.7362371",
"0.7358651",
"0.7348586",
"0.720044",
"0.7038817",
"0.7001965",
"0.7001965",
"0.6972571",
"0.695803",
... | 0.7693732 | 3 |
List existing posts, filtering by user | def NEAW(QePW):
if QePW.is_ajax():
r2U1 = int(QePW.POST.get('id_user'))
if r2U1 > 0:
return _1tc(QePW, 'posts_list.html', {'posts': T97t.objects.filter(author_id=r2U1).order_by('date_pub')})
else:
return _1tc(QePW, 'posts_list.html', {'posts': T97t.objects.all().order... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k66M(YKHO):\n CBIr = Iofl(mv1M, username=YKHO.kwargs.get('username'))\n return T97t.objects.filter(author=CBIr).order_by('-date_posted')",
"def k66M(YKHO):\n return T97t.objects.filter(user_id=YKHO.kwargs['user_id'], status='published', visibility='public')",
"def IL11(YKHO):\n return T97t.sele... | [
"0.7820124",
"0.76876867",
"0.708362",
"0.70497173",
"0.6913154",
"0.68673676",
"0.6791152",
"0.6788503",
"0.6744941",
"0.6736987",
"0.6736987",
"0.6736002",
"0.6715451",
"0.6708982",
"0.66194105",
"0.6615043",
"0.65990424",
"0.6582033",
"0.6582033",
"0.65796906",
"0.65347123... | 0.73496056 | 2 |
Consolidates the customer and address received from the form. | def _fYl(YKHO):
hBFO = {'first_name': YKHO.first_name, 'last_name': YKHO.last_name, 'email': YKHO.email, 'phone': YKHO.phone, 'orders_count': YKHO.orders_count, 'currency': YKHO.currency}
FOcN = EDCT.objects.filter(customer=YKHO).first()
if FOcN:
hBFO.update({'address': FOcN.address, 'city': FOcN.ci... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UZZF(YKHO):\n m3Nh = YKHO.invoice.customer\n rRzo = m3Nh.get_billing_address()\n YKHO.fontSize(pCXF, bold=True)\n YKHO.PDF.drawString(250, 127, 'Billed To')\n YKHO.fontSize(d0Pe)\n YKHO.PDF.drawString(250, 145, YKHO.shortenStrings(YKHO.floor_string(m3Nh.customer_name), 18))\n WKvO = 175\n ... | [
"0.60455257",
"0.5631368",
"0.54577106",
"0.5394011",
"0.53440845",
"0.5283777",
"0.5259878",
"0.5246589",
"0.5231159",
"0.52098423",
"0.5175622",
"0.51498336",
"0.5141438",
"0.5121351",
"0.5116116",
"0.50999254",
"0.50952834",
"0.5079623",
"0.5075033",
"0.5073125",
"0.503270... | 0.4727696 | 57 |
A utility method to get the absolute path to a resource in the test suite. | def HeD1(Ux0P: str, pmON: str | None=None) -> str:
tk5Y = GkAb(xAKo).parent
Zg0d = tk5Y if pmON is None else tk5Y / GkAb(pmON)
return str(Zg0d / Ux0P) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def loWt(Ux0P, pmON=GkAb.TEST):\n return Hy7s.path.normpath(Hy7s.path.join(pmON.value, Ux0P))",
"def v5Y3(JFat):\n return RkCj.resource_filename(ehEJ.__name__, Hy7s.path.join('resources', JFat))",
"def Atrt(YKHO):\n xu4U = Hy7s.path.abspath(Hy7s.path.join(kJSY, '..', '..', 'resources'))\n YKHO.asse... | [
"0.7464113",
"0.73809624",
"0.71504706",
"0.7127172",
"0.7004063",
"0.6955971",
"0.68538195",
"0.6838208",
"0.68337333",
"0.6826169",
"0.67501676",
"0.6678867",
"0.66788054",
"0.6656737",
"0.6656737",
"0.6611073",
"0.65873575",
"0.6583916",
"0.6574183",
"0.6563887",
"0.655578... | 0.669425 | 11 |
y component of magnetic induction of a polygonal prism. | def xEOs(fsgT, cEY3, j7aV, Zys1):
if fsgT.shape != cEY3.shape != j7aV.shape:
raise ValueError('Input arrays xp, yp, and zp must have same shape!')
Ylbp = 0
for sY6z in Zys1:
if sY6z is None or 'magnetization' not in sY6z.props:
continue
RsfQ, suhQ, xruD = sY6z.props['magn... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LVAh(YKHO):\n return YKHO.unif[1]",
"def yDCK(tYeO, E3D9):\n return (tYeO[1] * (-1 * tYeO[0] * E3D9[0] + tYeO[1] * E3D9[1]) - tYeO[0] * tYeO[2]) / (tYeO[1] ** 2 + tYeO[0] ** 2)",
"def LVAh(YKHO) -> int:\n return YKHO.data.y_centre >> 4",
"def LVAh(YKHO) -> float:\n return YKHO.A[2] if YKHO.sc... | [
"0.6408238",
"0.631865",
"0.62111986",
"0.61402243",
"0.6126763",
"0.61127245",
"0.60375494",
"0.6009684",
"0.6009684",
"0.60026205",
"0.60026205",
"0.60026205",
"0.60026205",
"0.60026205",
"0.60026205",
"0.60026205",
"0.60026205",
"0.60026205",
"0.60026205",
"0.60014135",
"0... | 0.0 | -1 |
r""" xx component of the gravity gradient tensor of a polygonal prism. | def tARS(fsgT, cEY3, j7aV, Zys1):
if fsgT.shape != cEY3.shape != j7aV.shape:
raise ValueError('Input arrays xp, yp, and zp must have same shape!')
Ylbp = 0
for sY6z in Zys1:
if sY6z is None or 'density' not in sY6z.props:
continue
InLe = sY6z.props['density']
Ylbp... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mLgJ(YKHO, XP5J):\n _M6l = YKHO._Le(XP5J)\n gcpQ = YKHO._wf(XP5J)\n EJCE = oyIN.einsum('i...,i', YKHO.Ee, _M6l)\n W0jP = oyIN.einsum('i...,i', YKHO.Ff, gcpQ)\n return yvY1 * YKHO.d * (EJCE - W0jP)",
"def _jWN(YKHO, pV5j, zR54):\n b0rV = zR54\n oDSd = zR54\n RrDy = pV5j\n YKHO.gx = ... | [
"0.6354145",
"0.6321417",
"0.6139772",
"0.6128736",
"0.59286255",
"0.59138256",
"0.5902195",
"0.58601326",
"0.5850545",
"0.5814345",
"0.5811768",
"0.57888615",
"0.5781809",
"0.57798153",
"0.57381654",
"0.5691589",
"0.5687728",
"0.56733",
"0.5668644",
"0.5664098",
"0.5659108",... | 0.0 | -1 |
r""" xz component of the gravity gradient tensor of a polygonal prism. | def uHgm(fsgT, cEY3, j7aV, Zys1):
if fsgT.shape != cEY3.shape != j7aV.shape:
raise ValueError('Input arrays xp, yp, and zp must have same shape!')
Ylbp = 0
for sY6z in Zys1:
if sY6z is None or 'density' not in sY6z.props:
continue
InLe = sY6z.props['density']
Ylbp... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rpoQ(YKHO, WKvO, LVAh, epBp):\n return -2.0 * oyIN.pi * YKHO._rhoc_M * YKHO.a ** 3 * YKHO._b * YKHO._c * BJVy(WKvO, LVAh, epBp, YKHO._a2, YKHO._b2 * YKHO._a2, YKHO._c2 * YKHO._a2, YKHO.n, 0)",
"def _jWN(YKHO, pV5j, zR54):\n b0rV = zR54\n oDSd = zR54\n RrDy = pV5j\n YKHO.gx = b0rV\n YKHO.gy ... | [
"0.60951376",
"0.5941994",
"0.58845526",
"0.57373935",
"0.570647",
"0.5699851",
"0.5695791",
"0.5690691",
"0.5649471",
"0.559517",
"0.5587555",
"0.55728376",
"0.54975146",
"0.54818726",
"0.5474802",
"0.5469576",
"0.543638",
"0.5434871",
"0.5427537",
"0.54242975",
"0.542232",
... | 0.58045506 | 3 |
r""" yy component of the gravity gradient tensor of a polygonal prism. | def RR8J(fsgT, cEY3, j7aV, Zys1):
if fsgT.shape != cEY3.shape != j7aV.shape:
raise ValueError('Input arrays xp, yp, and zp must have same shape!')
Ylbp = 0
for sY6z in Zys1:
if sY6z is None or 'density' not in sY6z.props:
continue
InLe = sY6z.props['density']
Ylbp... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mLgJ(YKHO, XP5J):\n _M6l = YKHO._Le(XP5J)\n gcpQ = YKHO._wf(XP5J)\n EJCE = oyIN.einsum('i...,i', YKHO.Ee, _M6l)\n W0jP = oyIN.einsum('i...,i', YKHO.Ff, gcpQ)\n return yvY1 * YKHO.d * (EJCE - W0jP)",
"def _jWN(YKHO, pV5j, zR54):\n b0rV = zR54\n oDSd = zR54\n RrDy = pV5j\n YKHO.gx = ... | [
"0.6461983",
"0.6109174",
"0.6066457",
"0.6039522",
"0.59815764",
"0.59046745",
"0.58864146",
"0.5848143",
"0.5841637",
"0.5813708",
"0.5805268",
"0.5804351",
"0.5768974",
"0.5739872",
"0.57198626",
"0.5713729",
"0.5699072",
"0.5685788",
"0.5667048",
"0.5648369",
"0.5641051",... | 0.0 | -1 |
Smooth approximation of max(x, 0). | def Qa9o(Mkmy, SGf8=0.0001):
return Mot6(_ger(Mkmy, SGf8), Mkmy - SGf8 / 2, Mot6(D5g7(Mkmy, 0), 0, Mkmy ** 2 / (2 * SGf8))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PtQX(WKvO):\n return oyIN.maximum(WKvO, 0)",
"def N93T(WKvO):\n uw5A = oyIN.exp(WKvO - oyIN.max(WKvO))\n return uw5A / uw5A.sum() * 100",
"def N93T(WKvO):\n uw5A = oyIN.exp(WKvO - oyIN.max(WKvO))\n return uw5A / uw5A.sum()",
"def N93T(WKvO):\n uw5A = oyIN.exp(WKvO - oyIN.max(WKvO))\n ... | [
"0.76909333",
"0.7242114",
"0.72211206",
"0.72120976",
"0.7207449",
"0.71837384",
"0.71837384",
"0.71637946",
"0.71139526",
"0.7112843",
"0.7112843",
"0.7112843",
"0.7112843",
"0.7112843",
"0.7112843",
"0.7112843",
"0.7112843",
"0.7112843",
"0.7112843",
"0.7112843",
"0.711284... | 0.7074154 | 32 |
Sets the authenticated_at of this Session. | def kJsy(YKHO, kJsy):
if YKHO.local_vars_configuration.client_side_validation and kJsy is None:
raise ValueError('Invalid value for `authenticated_at`, must not be `None`')
YKHO._authenticated_at = kJsy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bc41(YKHO, bc41):\n YKHO._expires_at = bc41",
"def bc41(YKHO, bc41):\n YKHO._expires_at = bc41",
"def bc41(YKHO, bc41):\n YKHO._expires_at = bc41",
"def aJ2e(YKHO, aJ2e):\n YKHO._created_at = aJ2e",
"def aJ2e(YKHO, aJ2e):\n YKHO._created_at = aJ2e",
"def aJ2e(YKHO, aJ2e):\n YKHO._cr... | [
"0.6293826",
"0.6293826",
"0.6293826",
"0.6000543",
"0.6000543",
"0.6000543",
"0.6000543",
"0.6000543",
"0.6000543",
"0.6000543",
"0.6000543",
"0.6000543",
"0.6000543",
"0.6000543",
"0.6000543",
"0.6000543",
"0.6000543",
"0.6000543",
"0.6000543",
"0.6000543",
"0.59650606",
... | 0.8057676 | 0 |
Sets the id of this Session. | def id(YKHO, id):
if YKHO.local_vars_configuration.client_side_validation and id is None:
raise ValueError('Invalid value for `id`, must not be `None`')
YKHO._id = id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V_9M(YKHO, id):\n YKHO.__id = id",
"def V_9M(YKHO, hbFX):\n YKHO.id_ = hbFX",
"def ekm0(YKHO, id):\n YKHO._id = id\n return YKHO.callRemote('setID', id)",
"def psjw(YKHO, id):\n YKHO.id = int(id)",
"def V_9M(YKHO, id):\n YKHO.data['id'] = id",
"def V_9M(YKHO, id):\n YKHO.id = id\... | [
"0.8060169",
"0.7976997",
"0.7912876",
"0.79108423",
"0.7716913",
"0.76825213",
"0.76668924",
"0.750089",
"0.7493255",
"0.74792576",
"0.74792576",
"0.74792576",
"0.74611783",
"0.74611783",
"0.74611783",
"0.74611783",
"0.74611783",
"0.74611783",
"0.74611783",
"0.74611783",
"0.... | 0.0 | -1 |
Sets the identity of this Session. | def _E99(YKHO, _E99):
if YKHO.local_vars_configuration.client_side_validation and _E99 is None:
raise ValueError('Invalid value for `identity`, must not be `None`')
YKHO._identity = _E99 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mx8m(YKHO) -> None:\n ...",
"def m5M4(YKHO):\n YKHO.raw['type'] = 'IDENTITY'\n return YKHO",
"def JkXK(YKHO, JkXK):\n YKHO._session_id = JkXK",
"def W2tI(YKHO, Ilxn):\n YKHO.identifier = Ilxn",
"def f6Qh(YKHO):\n raise NotImplementedError()",
"def n10L(YKHO, n10L):\n YKHO._userid... | [
"0.7791635",
"0.6197261",
"0.60796916",
"0.60048974",
"0.5973158",
"0.5969982",
"0.5910119",
"0.5837178",
"0.5837178",
"0.57847434",
"0.5778571",
"0.57299507",
"0.5699387",
"0.5699387",
"0.56830496",
"0.5678651",
"0.5644342",
"0.56363744",
"0.5626771",
"0.5607137",
"0.5595525... | 0.6231977 | 1 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, DMju):
return False
return YKHO.to_dict() == Elif.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.80885184",
"0.80885184",
"0.805514",
"0.7983044",
"0.7966715",
"0.7966715",
"0.7966715",
"0.7966715",
"0.7966715",
"0.7966715",
"0.7966715",
"0.7966715",
"0.7966715",
"0.7966715",
"0.7966715",
"0.7966715",
"0.7966715",
"0.7966715",
"0.7966715",
"0.7966715",
"0.7966715",
... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
if not isinstance(Elif, DMju):
return True
return YKHO.to_dict() != Elif.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
... | 0.0 | -1 |
Gets list of supported targets | def x6A0():
return [NY9r(), NY9r(use_dotnet_cli=True), mW16(), tqnI(), NIgf(), jnpT()] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x6A0(YKHO):\n return YKHO.host_settings.targets",
"def WELE(YKHO):\n return YKHO._targets",
"def x6A0(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input['PlanTargetsArgs']]]]:\n return qe4Y.get(YKHO, 'targets')",
"def wCwx(YKHO):\n return []",
"def MB6m(YKHO):\n return YKHO._combined_all_versioned... | [
"0.7293561",
"0.7170189",
"0.70282674",
"0.6968068",
"0.68754953",
"0.6655958",
"0.6650611",
"0.6612449",
"0.65452045",
"0.65376955",
"0.65350795",
"0.65114605",
"0.64893305",
"0.64475656",
"0.64280295",
"0.6410246",
"0.63985056",
"0.6374582",
"0.6373402",
"0.6344824",
"0.633... | 0.61703265 | 27 |
This is the logic for the home page | def d6pt(QePW):
global user_flag
global user_value
try:
iS3m = Y4Gy.objects.order_by('title')
except Y4Gy.DoesNotExist:
raise uhgT('Question does not exist')
IbeW = bZdU.LANGUAGE
Ql2Z = Y4Gy.DIFFICULTY
if 'logout' in QePW.GET and QePW.GET['logout'].strip():
_mBG = Fal... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kZiy(YKHO, *qIxc, **B2fa):\n pass",
"def kZiy(QePW):\n return _1tc(QePW, 'compta/home.html')",
"def kZiy():\n return TvZl('home_page.html')",
"def kZiy():\n return TvZl('solai.html')",
"def kZiy():\n return TvZl('home.html', title='Home Page', year=qcWV.now().year)",
"def kZiy():\n ... | [
"0.81277597",
"0.79730403",
"0.7866615",
"0.77511966",
"0.7683469",
"0.7673385",
"0.7672684",
"0.7650412",
"0.76486945",
"0.7625424",
"0.75970364",
"0.75970364",
"0.75970364",
"0.75970364",
"0.75970364",
"0.75970364",
"0.75970364",
"0.75970364",
"0.75970364",
"0.75970364",
"0... | 0.0 | -1 |
returns a list of all the child tags of a given tag, this method is recursive and will search for more than one level of children (e.g. grandchildren) | def RbaF(RY1r, Y5bi):
eCwk = []
for TZ9E in Y5bi:
if str(TZ9E.parent) == str(RY1r):
eCwk.append(TZ9E)
eCwk.extend(RbaF(TZ9E, Y5bi))
return list(set(eCwk)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EsYy(YKHO, TZ9E):\n if TZ9E in YKHO._children_tag_table:\n Aofo = YKHO._children_tag_table[TZ9E]\n else:\n Aofo = []\n PkWu = [Z9rn for Z9rn in YKHO._children.values() if isinstance(Z9rn, WTo_)]\n cLst = []\n for Z9rn in PkWu:\n cLst += Z9rn.get_children_with_tag(TZ9E)\n ... | [
"0.822328",
"0.7453532",
"0.7074889",
"0.70508575",
"0.66183245",
"0.66120803",
"0.65444213",
"0.6512602",
"0.65079546",
"0.65056556",
"0.64782274",
"0.6452864",
"0.64208204",
"0.63882333",
"0.6346484",
"0.6325542",
"0.6318275",
"0.62972707",
"0.62794566",
"0.6278612",
"0.622... | 0.7754839 | 1 |
This does a UTC offset conversion from seconds to hours | def JyU8(UJxm):
vgXP = abs(UJxm)
ROt1 = str(vgXP // 3600)
if len(ROt1) == 1:
ROt1 = str(0) + ROt1
yVtz = str(vgXP % 3600 // 60)
if len(yVtz) == 1:
yVtz = str(0) + yVtz
if UJxm >= 0:
Zihr = '+'
else:
Zihr = '-'
a3BZ = Zihr + ROt1 + yVtz
return a3BZ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ja1h(C6wh):\n return '%+03d:%02d' % divmod(C6wh // 60, 60)",
"def rbGV(kRsb):\n return int(kRsb // 3600)",
"def VAxv(_szS):\n if _szS.tm_isdst == 1 and ITS7.daylight:\n UdQj = ITS7.altzone\n else:\n UdQj = ITS7.timezone\n Tvk5 = '-' if UdQj > 0 else '+'\n UdQj = abs(UdQj)\n ... | [
"0.6442525",
"0.62002534",
"0.61747897",
"0.6165516",
"0.61181265",
"0.60406053",
"0.59186155",
"0.58711714",
"0.58629006",
"0.5825974",
"0.5796186",
"0.5794065",
"0.5756647",
"0.5743311",
"0.57157356",
"0.57036054",
"0.57028925",
"0.57026935",
"0.56894714",
"0.5685342",
"0.5... | 0.6693794 | 0 |
Return input type to use for field | def jZUa(Jyyj):
try:
TEdI = Jyyj.field.widget
except:
raise ValueError('Expected a Field, got a %s' % type(Jyyj))
lt9u = getattr(TEdI, 'bootstrap_input_type', None)
if lt9u:
return QMSQ(lt9u)
if isinstance(TEdI, SOHx):
return u'text'
if isinstance(TEdI, Y7GZ):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lt9u(YKHO):\n return YKHO._input_type.value",
"def ZQ3C(YKHO):\n return YKHO.__input_type",
"def ZQ3C(YKHO):\n return YKHO.__input_type",
"def ZQ3C(YKHO):\n return YKHO.__input_type",
"def ZQ3C(YKHO):\n return YKHO.__input_type",
"def ZQ3C(YKHO):\n return YKHO.__input_type",
"def ... | [
"0.87449074",
"0.8471579",
"0.8471579",
"0.8471579",
"0.8471579",
"0.8471579",
"0.8471579",
"0.78139204",
"0.78139204",
"0.78139204",
"0.78139204",
"0.78139204",
"0.78139204",
"0.78139204",
"0.78139204",
"0.78139204",
"0.78139204",
"0.78139204",
"0.78139204",
"0.78139204",
"0... | 0.78877133 | 7 |
Projects a point cloud onto the camera image plane and creates a depth image. Zero depth means no point projected into the camera at that pixel location (i.e. infinite depth). | def OBQS(YKHO, wncu, meXt=True):
if not isinstance(wncu, K0ur) and (not (isinstance(wncu, PvyL) and wncu.dim == 3)):
raise ValueError('Must provide PointCloud or 3D Point object for projection')
if wncu.frame != YKHO._frame:
raise ValueError('Cannot project points in frame %s into camera with fr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HIlp(gLVc, km87):\n [H2v2, TVTK] = gLVc.shape\n jHsn = oyIN.linspace(0, TVTK - 1, TVTK)\n pvd3 = oyIN.linspace(0, H2v2 - 1, H2v2)\n P6bq, Ty9i = oyIN.meshgrid(jHsn, pvd3)\n WKvO = (P6bq.flatten() - km87.ppx) / km87.fx\n LVAh = (Ty9i.flatten() - km87.ppy) / km87.fy\n epBp = gLVc.flatten() /... | [
"0.79226345",
"0.7898453",
"0.7608489",
"0.7371517",
"0.7350767",
"0.7247594",
"0.70062256",
"0.68509597",
"0.6827371",
"0.67930317",
"0.6710671",
"0.66975486",
"0.666168",
"0.64433855",
"0.6429538",
"0.6413993",
"0.6402543",
"0.6399032",
"0.6316864",
"0.6225168",
"0.61622435... | 0.77850276 | 2 |
Navigates to the home page of the application. Context Template | def kZiy(QePW):
QpfX = {}
return _1tc(QePW, 'index.html', QpfX) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kZiy():\n return TvZl('home_page.html')",
"def kZiy(QePW):\n return TvZl('core/home.html')",
"def kZiy():\n return TvZl('Main_Page.html')",
"def kZiy(QePW):\n return _1tc(QePW, 'compta/home.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('home.html')",
... | [
"0.7681595",
"0.76518166",
"0.75686663",
"0.754621",
"0.7544986",
"0.7544986",
"0.7544986",
"0.7544986",
"0.7544986",
"0.7544986",
"0.7544986",
"0.7544986",
"0.7544986",
"0.7544986",
"0.7544986",
"0.7544986",
"0.7544986",
"0.7544986",
"0.7544986",
"0.7544986",
"0.7521783",
... | 0.72299683 | 38 |
Logout view that redirects the user to the home page. Context Template | def AXg6(QePW):
F5T4(QePW)
return vKnz('home') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KDcV(QePW):\n return _1tc(QePW, 'core/logout.html', {})",
"def AXg6(QePW):\n erK4(QePW)\n return vKnz('home')",
"def wClo(QePW):\n erK4(QePW)\n return vKnz('index')",
"def aHf9(QePW):\n erK4(QePW)\n return vKnz('/')",
"def AXg6(QePW):\n erK4(QePW)\n return _1tc(QePW, 'woofer/... | [
"0.82358855",
"0.81049544",
"0.8100261",
"0.8030044",
"0.7997599",
"0.7927355",
"0.7913461",
"0.7912544",
"0.79098403",
"0.79085064",
"0.79016024",
"0.78912157",
"0.7886612",
"0.7883113",
"0.78770083",
"0.78415686",
"0.7838008",
"0.7836889",
"0.78368014",
"0.78129435",
"0.781... | 0.8187137 | 1 |
This function creates a spark session, return spark context object. This object would be perform all the operations in spark. | def Yu9h():
ujem = lBG2.builder.config('spark.jars.packages', 'org.apache.hadoop:hadoop-aws:2.7.0').config('spark.sql.session.timeZone', 'America/Los_Angeles').getOrCreate()
return ujem | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Hv6k():\n return lBG2.builder.appName('Transforming the historical parking occupancy and blockface datasets').getOrCreate()",
"def Yu9h():\n return lBG2.builder.appName('Dataframe Reader').master('local[*]').getOrCreate()",
"def lUHD():\n Fv2L = Mwml().setMaster('local').setAppName('Logistic Regre... | [
"0.8021168",
"0.7943382",
"0.7837832",
"0.7748409",
"0.7718771",
"0.7708254",
"0.7708254",
"0.7708254",
"0.7708254",
"0.7708254",
"0.7708254",
"0.7708254",
"0.7708254",
"0.7708254",
"0.7706815",
"0.76930207",
"0.7688611",
"0.7688611",
"0.7688611",
"0.7688611",
"0.7684378",
... | 0.77955467 | 3 |