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 |
|---|---|---|---|---|---|---|
returns a colour created from a tuple with three integers. Written by Anthony Luo | def ELBo(s_7v: Tuple[int]):
Mkmy = s_7v[0]
Oa1e = s_7v[1]
Fg_i = s_7v[2]
return egIk(Mkmy, Oa1e, Fg_i) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YZDX(Z9rn):\n return (Z9rn.red(), Z9rn.green(), Z9rn.blue(), Z9rn.alpha())",
"def YZDX(Z9rn):\n return (Z9rn.red(), Z9rn.green(), Z9rn.blue(), Z9rn.alpha())",
"def pRvN():\n qfpW = tuple(oyIN.random.choice(range(256), size=3))\n return tuple((int(Z9rn) for Z9rn in qfpW))",
"def pRvN():\n q... | [
"0.80848527",
"0.8068387",
"0.7715438",
"0.7715438",
"0.75761616",
"0.7565231",
"0.7399749",
"0.72874373",
"0.7270064",
"0.7253445",
"0.7253253",
"0.72185963",
"0.7112367",
"0.70604825",
"0.6975907",
"0.69685704",
"0.69592583",
"0.6949783",
"0.69319165",
"0.6930661",
"0.68990... | 0.6397369 | 69 |
return cococompatible convex polygon for a 480x640 image, given cropped mask and bbox | def itNh(lDIN, cviu):
GkS6 = oyIN.zeros((480, 640), dtype=oyIN.uint8)
[WKvO, LVAh, TVTK, H2v2] = cviu
for YRbF in Ni9Y(H2v2):
for r845 in Ni9Y(TVTK):
GkS6[LVAh + YRbF][WKvO + r845] = lDIN[YRbF][r845]
Yjcv, Iowl, gEYm = XC5k.findContours(GkS6, XC5k.RETR_TREE, XC5k.CHAIN_APPROX_SIMPLE)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def p_jG(ZHfW, YWI1=100, PWAq=0.5, MeZ0=25, XJW5=1):\n ZHfW = ZHfW[0]\n OKBY = oyIN.array(ZHfW > PWAq, dtype=oyIN.uint8)\n lNai = OKBY.shape\n cVfo = oyIN.zeros((lNai[0] + 2 * XJW5, lNai[1] + 2 * XJW5), dtype=oyIN.uint8)\n cVfo[XJW5:lNai[0] + XJW5, XJW5:lNai[1] + XJW5] = OKBY\n Iowl = Tcon.find_c... | [
"0.6547564",
"0.63899606",
"0.626469",
"0.6227939",
"0.6210326",
"0.6132318",
"0.60366243",
"0.6020332",
"0.6018554",
"0.60070395",
"0.5995332",
"0.5967037",
"0.596691",
"0.59490234",
"0.5936722",
"0.5898639",
"0.5862577",
"0.5858927",
"0.5853591",
"0.58311075",
"0.5783125",
... | 0.7758025 | 0 |
Displays statistics on the most frequent times of travel. | def dWJR(jQ3Z):
print('\nCalculating The Most Frequent Times of Travel...\n')
SWox = ITS7.time()
sve5 = jQ3Z['month'].mode()[0]
print('The most common month of travel was ' + str(sve5) + '.\n')
StUT = jQ3Z['day_of_week'].mode()[0]
print('The most common day of travel was ' + StUT + '.\n')
jQ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dWJR(jQ3Z):\n print('\\nCalculating The Most Frequent Times of Travel...\\n')\n SWox = ITS7.time()\n print('The most common month of travel is: {} '.format(jQ3Z.Month.mode()[0]))\n print('The most common day of travel is: {} '.format(jQ3Z.Day.mode()[0]))\n print('The most common hour of travel i... | [
"0.79996175",
"0.7920857",
"0.7891767",
"0.78612196",
"0.785926",
"0.7838814",
"0.779974",
"0.77848285",
"0.7735119",
"0.7723049",
"0.771342",
"0.7708436",
"0.770453",
"0.77017164",
"0.7689714",
"0.7685842",
"0.7680146",
"0.76788265",
"0.76721054",
"0.7661351",
"0.7660023",
... | 0.75625914 | 48 |
Displays statistics on the most popular stations and trip. | def Huc_(jQ3Z):
print('\nCalculating The Most Popular Stations and Trip...\n')
SWox = ITS7.time()
_8rG = jQ3Z['Start Station'].mode()[0]
print('The most commonly used starting station for bikeshares was ' + _8rG + '.\n')
oFx8 = jQ3Z['End Station'].mode()[0]
print('The most commonly used ending s... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations and Trip...\\n')\n SWox = ITS7.time()\n v6Be(jQ3Z)\n BeYU(jQ3Z)\n O6Ct(jQ3Z)\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)",
"def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations ... | [
"0.7665365",
"0.76264536",
"0.7610902",
"0.75852126",
"0.7576492",
"0.7567089",
"0.75577486",
"0.7538181",
"0.75294757",
"0.7502035",
"0.74997437",
"0.7496321",
"0.74872565",
"0.74840283",
"0.7475714",
"0.7472988",
"0.7437631",
"0.74366206",
"0.7433223",
"0.7428372",
"0.74269... | 0.0 | -1 |
Displays statistics on the total and average trip duration. | def kDMA(jQ3Z):
print('\nCalculating Trip Duration...\n')
SWox = ITS7.time()
r8hN, KCHu = divmod(int(jQ3Z['Trip Duration'].sum()), 60)
MKlR, r8hN = divmod(r8hN, 60)
Csk6, MKlR = divmod(MKlR, 24)
print('Total bikeshare travel time: ' + str(Csk6) + ' days, ' + str(MKlR) + ' hours, ' + str(r8hN) + ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kDMA(dMlt):\n print('\\nCalculating Trip Duration...\\n')\n SWox = ITS7.time()\n qZ1g = dMlt['Trip Duration'].sum()\n print('The total travel time is ', qZ1g, ' seconds.')\n NPSF = dMlt['Trip Duration'].mean()\n print('The average travel time is ', NPSF, ' seconds.')\n print('\\nThis took ... | [
"0.8251978",
"0.81471264",
"0.80965656",
"0.80127156",
"0.7987783",
"0.79834235",
"0.7978646",
"0.79705906",
"0.7965226",
"0.79636025",
"0.79616374",
"0.79614663",
"0.79523134",
"0.7948989",
"0.79445267",
"0.7937707",
"0.7923821",
"0.792045",
"0.79198813",
"0.7918623",
"0.791... | 0.0 | -1 |
Get root folder path | def EL0N() -> str:
return str(GkAb(xAKo).parent.parent) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E0im():\n return mSqg",
"def j193():\n return OZo6",
"def Rip8(YKHO):\n return YKHO.root_path",
"def E0im(YKHO):\n return YKHO.path[0:len(YKHO.path) - len(B5hR)]",
"def E0im(YKHO):\n return YKHO.path",
"def E0im(YKHO):\n return YKHO._root_path",
"def jNha(YKHO) -> str:\n return... | [
"0.8785335",
"0.87023944",
"0.8659265",
"0.86287796",
"0.8499859",
"0.8465978",
"0.8441234",
"0.8428998",
"0.8264924",
"0.8175446",
"0.8147877",
"0.8121974",
"0.80954325",
"0.8087239",
"0.8087096",
"0.8071315",
"0.80648065",
"0.8039359",
"0.79782414",
"0.79463774",
"0.7939448... | 0.0 | -1 |
Formats error message as json | def HbrT(YKHO, Ol8d, Wxnj, **dDGN):
geh0 = dict(**dDGN)
geh0['error'] = Ol8d
return (geh0, Wxnj) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def U_vr(qQXR):\n return qQXR['message'] + ' ' + qQXR['errors'][0]['message']",
"def sVBQ(Ol8d):\n return GtGV(isError=True, message=Ol8d)",
"def oKIV(YKHO):\n return qQXR.dumps(YKHO.obj_err(), ensure_ascii=False)",
"def D6JL(YKHO):\n raise ValueError(qQXR.dumps({'foo': 'bar'}))",
"def zmnX(YKH... | [
"0.7738402",
"0.7614337",
"0.7585109",
"0.74753433",
"0.73985183",
"0.7389072",
"0.7313222",
"0.72937983",
"0.7293258",
"0.72599113",
"0.71978563",
"0.7170395",
"0.7166579",
"0.7163158",
"0.71254027",
"0.71170056",
"0.70705175",
"0.7067949",
"0.70330435",
"0.6858627",
"0.6855... | 0.73185843 | 6 |
Walk class hierarchy, yielding most derived classes first. | def KVRU(mBOY, Sfqs=None):
if not Sfqs:
Sfqs = []
for dm7U in mBOY.__subclasses__():
if dm7U not in Sfqs:
Sfqs.append(dm7U)
for xJIZ in KVRU(dm7U, Sfqs):
yield xJIZ
yield dm7U | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KVRU(mBOY, Sfqs=None):\n if not Sfqs:\n Sfqs = []\n for dm7U in mBOY.__subclasses__():\n if dm7U not in Sfqs:\n Sfqs.append(dm7U)\n for xJIZ in KVRU(dm7U, Sfqs):\n yield xJIZ\n yield dm7U",
"def _Jci(Emd4: T) -> bDy6[Kt_s]:\n if not dRzq(... | [
"0.77614766",
"0.73642457",
"0.7305562",
"0.7302895",
"0.72800344",
"0.725901",
"0.7251547",
"0.7238527",
"0.70416087",
"0.70299435",
"0.69795763",
"0.69675153",
"0.69066477",
"0.6894324",
"0.68935674",
"0.6823248",
"0.6800516",
"0.67823356",
"0.67684436",
"0.67031336",
"0.66... | 0.7719625 | 1 |
Parse bool value from request params. | def xC0r(H5ew, NArs, WmM4=False, U3Fm=True):
xqoZ = NArs.get(H5ew, WmM4)
try:
xqoZ = RZBP.bool_from_string(xqoZ, strict=U3Fm, default=WmM4)
except ValueError:
tO9_ = bGrB('Invalid value %(param)s for %(param_string)s. Expecting a boolean.') % {'param': xqoZ, 'param_string': H5ew}
rai... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HxGV(Jyyj):\n return Jyyj.lower() == 'true' if Jyyj else False",
"def bvww(Emd4, BWXx):\n BWXx = BWXx.lower()\n return BWXx in ('1', 'true', 'yes')",
"def lIW9(Emd4, BWXx, WmM4=None):\n if BWXx is None:\n return WmM4\n elif isinstance(BWXx, bool):\n return BWXx\n elif isinst... | [
"0.7924076",
"0.7642999",
"0.7404972",
"0.71659666",
"0.7161127",
"0.7101691",
"0.70621395",
"0.7041595",
"0.7013566",
"0.7011618",
"0.6988549",
"0.697214",
"0.697214",
"0.69598055",
"0.6918457",
"0.6914756",
"0.6901818",
"0.6893863",
"0.68879396",
"0.6880074",
"0.6839903",
... | 0.70259947 | 8 |
Get the current repository's URL. | def hKhs(type):
if type == 'git-svn':
return tgM5('config', '--get', 'svn-remote.svn.url', _show=False)[0]
assert type == 'git'
return tgM5('config', '--get', 'remote.origin.url', _show=False)[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Pssr(YKHO) -> str:\n return qe4Y.get(YKHO, 'repository_url')",
"def fAYo(YKHO):\n return YKHO.theRepositoryURL",
"def TN9o(YKHO):\n pass",
"def Pssr(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'repository_url')",
"def Pssr(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, '... | [
"0.88483083",
"0.87925434",
"0.87276703",
"0.87269396",
"0.86211777",
"0.8571627",
"0.8532231",
"0.83138704",
"0.8280175",
"0.8280175",
"0.827797",
"0.827797",
"0.82774544",
"0.82037723",
"0.7966176",
"0.7704879",
"0.75590444",
"0.7436871",
"0.74090093",
"0.74027133",
"0.7390... | 0.7205204 | 28 |
Get the current working tree's hash. | def OoXC(type, VAvy=False):
if type == 'git-svn':
return ''.join(filter(str.isdigit, LpTw('info', _show=VAvy)[4]))
assert type == 'git'
return tgM5('rev-parse', 'HEAD', _show=VAvy, _stream=False)[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Pv7Z(YKHO):\n return CVtN(YKHO.uploader._tree_hashes)",
"def hash(YKHO):\n return Hy7s.popen('git rev-parse HEAD').read().strip()",
"def hash(YKHO):\n return Hy7s.popen('git rev-parse HEAD').read().strip()",
"def uk0M(YKHO):\n return YKHO.hash",
"def OoXC(YKHO):\n return YKHO.hash",
"d... | [
"0.8220348",
"0.7774552",
"0.7774552",
"0.77704525",
"0.7753089",
"0.76940113",
"0.7678212",
"0.7678212",
"0.7678212",
"0.76705134",
"0.7542912",
"0.7497819",
"0.7497819",
"0.74336416",
"0.7416191",
"0.7391944",
"0.7376629",
"0.73634154",
"0.7301633",
"0.7282912",
"0.7271513"... | 0.0 | -1 |
Normalizing words with nltk library | def UCNp(l5Ny, BsfS):
if BsfS:
qWsH('wordnet')
LkXt = GFnk()
qAC4 = [LkXt.lemmatize(GIN8) for GIN8 in l5Ny.split()]
return ' '.join(qAC4) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lvMM():\n WhQ6 = xXCW(e1GD, nFV5, random_state=1)\n WhQ6.normalize(stopwords=False, custom_stopwords=['yes'])\n assert WhQ6['Corpus'][0] == ['sir', '12']",
"def NkkI(V22M, btCh=False, XPB5=False, v_nw=False):\n for GIN8 in V22M:\n GIN8 = GIN8.lower()\n if GIN8 in pC3l:\n ... | [
"0.7622829",
"0.7561697",
"0.7429119",
"0.741425",
"0.741425",
"0.7395622",
"0.7395622",
"0.7391213",
"0.7338148",
"0.73213637",
"0.7250277",
"0.72292227",
"0.71755767",
"0.7158189",
"0.7149216",
"0.7141497",
"0.7020197",
"0.69949836",
"0.69342196",
"0.68482316",
"0.68274957"... | 0.7381118 | 8 |
Return the IDs of the local mesh in the context of the global parallel mesh. Does not include the IDs of boundary cells. E.g., would return [0, 1] for mesh A ``` A B | 0 | 1 || 2 | 3 | ``` | def oq69(YKHO):
return fXG2.arange(YKHO.mesh.offset + YKHO.mesh.overlap['left'], YKHO.mesh.offset + YKHO.mesh.nx - YKHO.mesh.overlap['right']) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qiic(YKHO):\n return fXG2.arange(0, YKHO.mesh.ny * YKHO.mesh.nx * YKHO.mesh.nz)",
"def WkOa(YKHO):\n return fXG2.arange(YKHO.mesh.overlap['front'] * YKHO.mesh.nx * YKHO.mesh.ny, (YKHO.mesh.nz - YKHO.mesh.overlap['back']) * YKHO.mesh.nx * YKHO.mesh.ny)",
"def Qiic(YKHO):\n return fXG2.arange(0, YKH... | [
"0.7593951",
"0.75838673",
"0.7524992",
"0.74857074",
"0.74562746",
"0.7368909",
"0.7357217",
"0.7314926",
"0.7147559",
"0.7144043",
"0.7136747",
"0.70913744",
"0.7083272",
"0.7067569",
"0.7065134",
"0.7047078",
"0.6982636",
"0.69121575",
"0.6873017",
"0.6864061",
"0.6818252"... | 0.6989082 | 16 |
Return the IDs of the local mesh in the context of the global parallel mesh. Includes the IDs of boundary cells. E.g., would return [0, 1, 2] for mesh A ``` A B | 0 | 1 || 2 | 3 | ``` | def Vwn7(YKHO):
return fXG2.arange(YKHO.mesh.offset, YKHO.mesh.offset + YKHO.mesh.nx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qiic(YKHO):\n return fXG2.arange(0, YKHO.mesh.ny * YKHO.mesh.nx * YKHO.mesh.nz)",
"def WkOa(YKHO):\n return fXG2.arange(YKHO.mesh.overlap['front'] * YKHO.mesh.nx * YKHO.mesh.ny, (YKHO.mesh.nz - YKHO.mesh.overlap['back']) * YKHO.mesh.nx * YKHO.mesh.ny)",
"def Qiic(YKHO):\n return fXG2.arange(0, YKH... | [
"0.76157606",
"0.75635594",
"0.7544058",
"0.74904406",
"0.7466201",
"0.7436722",
"0.7371908",
"0.7323244",
"0.7244443",
"0.7207153",
"0.72047246",
"0.71509385",
"0.7066397",
"0.7011556",
"0.6999803",
"0.6998063",
"0.6986126",
"0.6983336",
"0.69219875",
"0.68702054",
"0.678598... | 0.7157797 | 11 |
Return the IDs of the local mesh in isolation. Includes the IDs of boundary cells. E.g., would return [0, 1, 2] for mesh A ``` A B | 0 | 1 || 2 | | ``` | def Qiic(YKHO):
return fXG2.arange(0, YKHO.mesh.nx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WkOa(YKHO):\n return fXG2.arange(YKHO.mesh.overlap['front'] * YKHO.mesh.nx * YKHO.mesh.ny, (YKHO.mesh.nz - YKHO.mesh.overlap['back']) * YKHO.mesh.nx * YKHO.mesh.ny)",
"def Qiic(YKHO):\n return fXG2.arange(0, YKHO.mesh.ny * YKHO.mesh.nx * YKHO.mesh.nz)",
"def Qiic(YKHO):\n return fXG2.arange(0, YKH... | [
"0.7662687",
"0.7646891",
"0.7583072",
"0.7492852",
"0.74836284",
"0.74675936",
"0.7433868",
"0.711905",
"0.70766044",
"0.7061286",
"0.6987608",
"0.6968526",
"0.69577986",
"0.69172835",
"0.6901843",
"0.6869693",
"0.68578494",
"0.67562795",
"0.67287713",
"0.668274",
"0.6577697... | 0.7532735 | 3 |
Return the IDs of the local mesh in the context of the global parallel mesh. Does not include the IDs of faces of boundary cells. E.g., would return [0, 1, 2] for mesh A ``` A || B 0 1 2 3 4 ``` | def DrHq(YKHO):
return fXG2.arange(YKHO.mesh.offset + YKHO.mesh.overlap['left'], YKHO.mesh.offset + YKHO.mesh.numberOfFaces - YKHO.mesh.overlap['right']) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qiic(YKHO):\n return fXG2.arange(0, YKHO.mesh.ny * YKHO.mesh.nx * YKHO.mesh.nz)",
"def WkOa(YKHO):\n return fXG2.arange(YKHO.mesh.overlap['front'] * YKHO.mesh.nx * YKHO.mesh.ny, (YKHO.mesh.nz - YKHO.mesh.overlap['back']) * YKHO.mesh.nx * YKHO.mesh.ny)",
"def Qiic(YKHO):\n return fXG2.arange(0, YKH... | [
"0.74950457",
"0.74796605",
"0.74175423",
"0.736591",
"0.73524773",
"0.72860086",
"0.7267561",
"0.7242004",
"0.72072434",
"0.7201774",
"0.7161927",
"0.7123742",
"0.70112765",
"0.6997704",
"0.6952669",
"0.6951528",
"0.69515187",
"0.692082",
"0.68826985",
"0.6849411",
"0.677010... | 0.6973402 | 14 |
Return the IDs of the local mesh in the context of the global parallel mesh. Includes the IDs of faces of boundary cells. E.g., would return [0, 1, 2, 3] for mesh A ``` A || B 0 1 2 3 4 ``` | def dFkd(YKHO):
return fXG2.arange(YKHO.mesh.offset, YKHO.mesh.offset + YKHO.mesh.numberOfFaces) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qiic(YKHO):\n return fXG2.arange(0, YKHO.mesh.ny * YKHO.mesh.nx * YKHO.mesh.nz)",
"def WkOa(YKHO):\n return fXG2.arange(YKHO.mesh.overlap['front'] * YKHO.mesh.nx * YKHO.mesh.ny, (YKHO.mesh.nz - YKHO.mesh.overlap['back']) * YKHO.mesh.nx * YKHO.mesh.ny)",
"def Qiic(YKHO):\n return fXG2.arange(0, YKH... | [
"0.744204",
"0.7368569",
"0.73595065",
"0.7332651",
"0.73223734",
"0.7300004",
"0.7254892",
"0.7250998",
"0.7249799",
"0.72237265",
"0.71417546",
"0.70853597",
"0.7079942",
"0.70659834",
"0.69940495",
"0.69712305",
"0.69566816",
"0.6919713",
"0.6907298",
"0.68795353",
"0.6793... | 0.70708066 | 13 |
Return the IDs of the local mesh in isolation. Includes the IDs of faces of boundary cells. E.g., would return [0, 1, 2, 3] for mesh A ``` A || B 0 1 2 3 | ``` | def I50H(YKHO):
return fXG2.arange(0, YKHO.mesh.numberOfFaces) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZWAn(YKHO):\n return fXG2.arange(YKHO.mesh.numberOfFaces)",
"def WkOa(YKHO):\n return fXG2.arange(YKHO.mesh.overlap['front'] * YKHO.mesh.nx * YKHO.mesh.ny, (YKHO.mesh.nz - YKHO.mesh.overlap['back']) * YKHO.mesh.nx * YKHO.mesh.ny)",
"def Qiic(YKHO):\n return fXG2.arange(0, YKHO.mesh.ny * YKHO.mesh.... | [
"0.74376154",
"0.74188423",
"0.74176496",
"0.7384195",
"0.7353577",
"0.73375654",
"0.72829",
"0.72162473",
"0.72088087",
"0.71978337",
"0.7134603",
"0.69219685",
"0.6888982",
"0.6862035",
"0.6685039",
"0.66546357",
"0.66543394",
"0.6618973",
"0.6604909",
"0.65560395",
"0.6553... | 0.7425478 | 1 |
Return the IDs of the local mesh in the context of the global parallel mesh. Does not include the IDs of boundary cells. E.g., would return [0, 1] for mesh A ``` | 4 | 5 | B | 2 | 3 | ========= | 0 | 1 | A ``` | def oq69(YKHO):
return fXG2.arange((YKHO.mesh.offset[1] + YKHO.mesh.overlap['bottom']) * YKHO.mesh.nx, (YKHO.mesh.offset[1] + YKHO.mesh.ny - YKHO.mesh.overlap['top']) * YKHO.mesh.nx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qiic(YKHO):\n return fXG2.arange(0, YKHO.mesh.ny * YKHO.mesh.nx * YKHO.mesh.nz)",
"def WkOa(YKHO):\n return fXG2.arange(YKHO.mesh.overlap['front'] * YKHO.mesh.nx * YKHO.mesh.ny, (YKHO.mesh.nz - YKHO.mesh.overlap['back']) * YKHO.mesh.nx * YKHO.mesh.ny)",
"def Qiic(YKHO):\n return fXG2.arange(0, YKH... | [
"0.7632433",
"0.7615889",
"0.7562493",
"0.75212705",
"0.74853003",
"0.7405828",
"0.73781854",
"0.7352785",
"0.7174896",
"0.7171769",
"0.71698225",
"0.7117565",
"0.71104693",
"0.7105675",
"0.70961964",
"0.7078458",
"0.7027827",
"0.69995964",
"0.6894667",
"0.6892581",
"0.685172... | 0.69364464 | 18 |
Return the IDs of the local mesh in the context of the global parallel mesh. Includes the IDs of boundary cells. E.g., would return [0, 1, 2, 3] for mesh A ``` | 4 | 5 | B | 2 | 3 | ========= | 0 | 1 | A ``` | def Vwn7(YKHO):
return fXG2.arange(YKHO.mesh.offset[1] * YKHO.mesh.nx, (YKHO.mesh.offset[1] + YKHO.mesh.ny) * YKHO.mesh.nx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qiic(YKHO):\n return fXG2.arange(0, YKHO.mesh.ny * YKHO.mesh.nx * YKHO.mesh.nz)",
"def WkOa(YKHO):\n return fXG2.arange(YKHO.mesh.overlap['front'] * YKHO.mesh.nx * YKHO.mesh.ny, (YKHO.mesh.nz - YKHO.mesh.overlap['back']) * YKHO.mesh.nx * YKHO.mesh.ny)",
"def Qiic(YKHO):\n return fXG2.arange(0, YKH... | [
"0.76644266",
"0.7613832",
"0.7588656",
"0.7533563",
"0.7505932",
"0.7478646",
"0.74000275",
"0.73720926",
"0.72408503",
"0.72391486",
"0.7195012",
"0.7181886",
"0.707952",
"0.70762205",
"0.70597154",
"0.70331806",
"0.7033009",
"0.70162046",
"0.6987064",
"0.69065887",
"0.6848... | 0.72752434 | 8 |
Return the IDs of the local mesh in the context of the global parallel mesh. Does not include the IDs of boundary cells. | def oq69(YKHO):
return fXG2.arange((YKHO.mesh.offset[2] + YKHO.mesh.overlap['front']) * YKHO.mesh.nx * YKHO.mesh.ny, (YKHO.mesh.offset[2] + YKHO.mesh.nz - YKHO.mesh.overlap['back']) * YKHO.mesh.nx * YKHO.mesh.ny) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qiic(YKHO):\n return fXG2.arange(0, YKHO.mesh.ny * YKHO.mesh.nx * YKHO.mesh.nz)",
"def WkOa(YKHO):\n return fXG2.arange(YKHO.mesh.overlap['front'] * YKHO.mesh.nx * YKHO.mesh.ny, (YKHO.mesh.nz - YKHO.mesh.overlap['back']) * YKHO.mesh.nx * YKHO.mesh.ny)",
"def Qiic(YKHO):\n return fXG2.arange(0, YKH... | [
"0.7441133",
"0.7419485",
"0.735714",
"0.73047626",
"0.729654",
"0.72030765",
"0.71997064",
"0.7167162",
"0.70349747",
"0.6950154",
"0.6937584",
"0.69227755",
"0.6911877",
"0.6902942",
"0.68805635",
"0.6867842",
"0.6839219",
"0.6836865",
"0.67543656",
"0.6734732",
"0.67270213... | 0.6976645 | 9 |
Return the IDs of the local mesh in the context of the global parallel mesh. Includes the IDs of boundary cells. | def Vwn7(YKHO):
return fXG2.arange(YKHO.mesh.offset[2] * YKHO.mesh.nx * YKHO.mesh.ny, (YKHO.mesh.offset[2] + YKHO.mesh.nz) * YKHO.mesh.nx * YKHO.mesh.ny) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qiic(YKHO):\n return fXG2.arange(0, YKHO.mesh.ny * YKHO.mesh.nx * YKHO.mesh.nz)",
"def Qiic(YKHO):\n return fXG2.arange(0, YKHO.mesh.ny * YKHO.mesh.nx)",
"def WkOa(YKHO):\n return fXG2.arange(YKHO.mesh.overlap['front'] * YKHO.mesh.nx * YKHO.mesh.ny, (YKHO.mesh.nz - YKHO.mesh.overlap['back']) * YKH... | [
"0.76002467",
"0.7522053",
"0.7508059",
"0.7451436",
"0.74482495",
"0.742603",
"0.7352814",
"0.7295304",
"0.72192514",
"0.7171906",
"0.71665835",
"0.7150596",
"0.70703876",
"0.7016828",
"0.70062774",
"0.69800574",
"0.6966551",
"0.69599503",
"0.69387877",
"0.686637",
"0.680687... | 0.71959305 | 9 |
This view is for the basic landing page of the website. | def kZiy(QePW):
if QePW.user.is_authenticated():
return vKnz(gCuF.SITE_URL + 'gistsubmit/')
return SGJU('index.html', locals(), context_instance=K1Ja(QePW)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hXw_(QePW):\n return SGJU('landing.html')",
"def hXw_(QePW):\n return _1tc(QePW, 'Bangazon/index.html')",
"def F_xU():\n return TvZl('index.html')",
"def F_xU(QePW):\n return ZGOq.render(QePW, 'ecosystem/landing.html')",
"def C_QL(QePW):\n return _1tc(QePW, 'campusbuy2_0/landing.html')",... | [
"0.82420886",
"0.8185318",
"0.8005778",
"0.7954268",
"0.78783536",
"0.7873085",
"0.7870802",
"0.7825248",
"0.7791297",
"0.77391475",
"0.7715282",
"0.7644038",
"0.75996125",
"0.7580285",
"0.75795084",
"0.75209767",
"0.74685043",
"0.7467873",
"0.74667996",
"0.7451883",
"0.74508... | 0.0 | -1 |
Converts the given string containing integers into a an array of ints | def phZW(RcQu):
U5bT = []
if not ZYHs(RcQu):
G9jH.error('invalid what, cannot convert to array: {0}'.format(RcQu))
return U5bT
for Z9rn in RcQu:
yuVB = int(Z9rn)
if yuVB == 0:
yuVB = 10
U5bT.append(yuVB)
U5bT.sort()
return U5bT | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cxLC(vIwR):\n eK7y = vIwR.splitlines()\n return [int(ZfUD) for ZfUD in eK7y]",
"def GzW3(vIwR):\n gi_Q = []\n for mLGw in vIwR.split():\n gi_Q.append(int(mLGw))\n return gi_Q",
"def yKmo(vIwR):\n return [int(KCHu) for KCHu in vIwR.split()]",
"def mXcU(vIwR):\n return map(int, ... | [
"0.81388277",
"0.80107296",
"0.7858658",
"0.7791726",
"0.77431303",
"0.772519",
"0.771758",
"0.7678565",
"0.76687425",
"0.7667409",
"0.745772",
"0.74150723",
"0.7301718",
"0.7286839",
"0.7267853",
"0.7253456",
"0.7174521",
"0.71563363",
"0.7120357",
"0.70624644",
"0.70602095"... | 0.0 | -1 |
Creates an array of ints representing the item deck The cards in this deck are 1..10 | def S96q():
khoC = []
for p78A in range(1, 11):
for lY0q in range(12, p78A - 1, -1):
khoC.append(p78A)
Nobg = hXNa(khoC)
return Nobg | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def S7Pb(YKHO):\n nf_0 = []\n for fo4a in range(13):\n for dpSP in range(4):\n nf_0.append(F1Hz(dpSP, fo4a))\n return nf_0",
"def g6JR(YKHO):\n iCfd = ['Hearts', 'Spades', 'Clubs', 'Diamonds']\n dxhl = []\n for KCHu in range(len(iCfd)):\n for WKvO in range(1, 14):\n ... | [
"0.68801314",
"0.6844358",
"0.6745202",
"0.67340386",
"0.67153937",
"0.6705981",
"0.66848195",
"0.6684618",
"0.66832757",
"0.66216403",
"0.6597083",
"0.65554845",
"0.65436393",
"0.6536787",
"0.652912",
"0.64503145",
"0.6449926",
"0.6448176",
"0.64372003",
"0.6393941",
"0.6387... | 0.6795434 | 2 |
Return list of nodes in graph. | def Ziit(YKHO):
if not hasattr(YKHO, '_nodes'):
YKHO._nodes = list(YKHO.keys())
return YKHO._nodes | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ziit(YKHO):\n return (exwG for exwG in YKHO.graph)",
"def aAQH(YKHO):\n return list(YKHO._graph_dict.keys())",
"def AyQV(YKHO):\n return list(YKHO.graph.keys())",
"def Ziit(YKHO):\n return list(YKHO._graph.keys())",
"def AyQV(YKHO):\n return YKHO.graph.keys()",
"def AyQV(YKHO):\n re... | [
"0.8501271",
"0.8404678",
"0.8292576",
"0.8159748",
"0.8041623",
"0.8041623",
"0.8029169",
"0.800129",
"0.79811025",
"0.7974816",
"0.79449254",
"0.77189475",
"0.7704131",
"0.7678588",
"0.76638836",
"0.7651417",
"0.76485556",
"0.7637145",
"0.7618407",
"0.7611989",
"0.76106286"... | 0.7230315 | 53 |
Converts a value into a valid string. | def PGcp(BWXx):
if isinstance(BWXx, bytes):
try:
return BWXx.decode(HwRy.getfilesystemencoding())
except UnicodeError:
return BWXx.decode('utf-8', 'replace')
return g9qP(BWXx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def whrw(BWXx) -> str:\n return str(BWXx) if BWXx else str()",
"def Nc2D(BWXx):\n YKHO.verbose('trying to convert value to string : %s', BWXx)\n return str(BWXx)",
"def DzmH(BWXx):\n if isinstance(BWXx, (str, qcWV.datetime, float, int)):\n return sOMG(BWXx) if isinstance(BWXx, str) else BWXx... | [
"0.82958364",
"0.8248438",
"0.8244203",
"0.80104405",
"0.7919959",
"0.7908866",
"0.77647924",
"0.76337695",
"0.7573038",
"0.7493097",
"0.74833363",
"0.74800724",
"0.7471452",
"0.7471452",
"0.74576837",
"0.74531424",
"0.7437236",
"0.7412375",
"0.73810875",
"0.7302371",
"0.7299... | 0.7095736 | 33 |
Saves part of dataframe to csv file. Starts at the beginning of the file until max_per_file events are saved | def J_Me(YKHO, yMlJ, pmON, uCQD=1000, Zolo=0):
print('Len1: ', len(yMlJ))
Jj5P = yMlJ.iloc[:uCQD]
Jj5P.to_csv(pmON + str(Zolo) + '.csv', index=False, header=None)
yMlJ = yMlJ.tail(len(yMlJ) - uCQD)
print('Len2: ', len(yMlJ))
return yMlJ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a3up(YKHO, pmON, uCQD=1000, Zolo=0):\n aBA5 = len(YKHO.c_dataframe)\n if aBA5 < uCQD:\n YKHO.c_dataframe.to_csv(pmON + '0.csv', index=False, header=None)\n return True\n syCC = Zolo\n wok0 = uCQD\n while wok0 < aBA5:\n YKHO.c_dataframe.iloc[wok0 - uCQD:wok0].to_csv(pmON + st... | [
"0.75355744",
"0.6996249",
"0.6975323",
"0.69727117",
"0.69578475",
"0.6927608",
"0.6913524",
"0.6812559",
"0.6798168",
"0.67681056",
"0.6756387",
"0.6734176",
"0.6718539",
"0.66919744",
"0.6670143",
"0.6584529",
"0.657451",
"0.6556913",
"0.65529466",
"0.6548908",
"0.65479916... | 0.7688341 | 0 |
Returns the number of events in the DataHandler object. | def szAg(YKHO):
return len(YKHO.c_dataframe) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KKYo(YKHO):\n return YKHO.event_count",
"def RgZG(YKHO):\n return len(YKHO._events)",
"def oqnT(YKHO):\n return YKHO.n_events",
"def p77L(YKHO):\n return YKHO.fEvtTree.GetEntries()",
"def vSgE(YKHO):\n return YKHO.db.count()",
"def Z75t(YKHO):\n return YKHO._events.GetEventCount()",... | [
"0.8222727",
"0.76621646",
"0.7605691",
"0.755671",
"0.75419754",
"0.7494163",
"0.7458318",
"0.7370577",
"0.72307163",
"0.7097438",
"0.70656914",
"0.6995115",
"0.69911057",
"0.6915459",
"0.69030124",
"0.6786489",
"0.6740669",
"0.67152566",
"0.67076105",
"0.6673636",
"0.666659... | 0.0 | -1 |
Transform Data to with transformation function, add min and max value columns | def gSlC(YKHO, N8wG, olEd=['t_min', 't_max']):
YKHO.c_dataframe.reindex(columns=[*YKHO.c_dataframe.columns.tolist(), *olEd])
YKHO.c_dataframe = YKHO.c_dataframe.apply(N8wG, axis=1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HVBg(YKHO):\n for fvDH in YKHO.df.columns:\n UHzl = YKHO.df_min_max[YKHO.df_min_max['Target'] == fvDH]['Min'].values[0]\n KiSw = YKHO.df_min_max[YKHO.df_min_max['Target'] == fvDH]['Max'].values[0]\n YKHO.df[fvDH] = YKHO.df[fvDH].sub(UHzl, axis=0) / (KiSw - UHzl)",
"def WgYu(YKHO):\n ... | [
"0.71870196",
"0.69064623",
"0.6700026",
"0.6663832",
"0.663336",
"0.6613863",
"0.65990597",
"0.6528313",
"0.6526786",
"0.6526786",
"0.6477474",
"0.6458837",
"0.64416015",
"0.6423761",
"0.6415405",
"0.6392896",
"0.6385946",
"0.63858026",
"0.6369294",
"0.6366768",
"0.6251903",... | 0.6220459 | 21 |
Get an argparse.ArgumentParser object for parsing arguments passed to the program | def xuJu() -> j1Jz.ArgumentParser:
wvEv = j1Jz.ArgumentParser('Log Arguments')
wvEv.add_argument('--log_directory', type=str, default='./log', help='The name of the directory in which a log should be built')
wvEv.add_argument('--print_log', action='store_true', help='Log message entries are printed when thi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def z0ba(YKHO, **B2fa):\n import argparse\n VqfF = argparse.ArgumentParser(prog=B2fa['argv0'], description=YKHO.summary)\n return VqfF",
"def xuJu():\n return j1Jz.ArgumentParser()",
"def x_K3():\n return j1Jz.ArgumentParser(formatter_class=j1Jz.RawDescriptionHelpFormatter, description=uOCC, epi... | [
"0.8277447",
"0.810095",
"0.7909158",
"0.78405464",
"0.770618",
"0.76111394",
"0.76111394",
"0.76111394",
"0.76111394",
"0.76111394",
"0.76034",
"0.75937796",
"0.75515187",
"0.75515187",
"0.7545448",
"0.7532923",
"0.75259376",
"0.7524635",
"0.7481279",
"0.74791676",
"0.747832... | 0.0 | -1 |
Load the model that was saved to disk | def uyMl(YKHO, ZGE9: str) -> ht2j.nn.Module:
pmON = f'{YKHO._log_dir}/{ZGE9}.pth'
C3ST = ht2j.load(pmON)
return C3ST | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uyMl(YKHO):\n pass",
"def uyMl(YKHO):\n pass",
"def uyMl(YKHO):\n pass",
"def uyMl(YKHO):\n pass",
"def uyMl():\n with open(GPtr.root + '/main/model.bin', 'rb') as vJOV:\n C3ST = t2lc.load(vJOV)\n return C3ST",
"def O5RJ(YKHO):\n pmON = YKHO._get_model_path()\n with ope... | [
"0.83363456",
"0.83363456",
"0.83363456",
"0.83363456",
"0.8297028",
"0.82529545",
"0.81775635",
"0.8105826",
"0.8096795",
"0.80637974",
"0.80637974",
"0.8049679",
"0.80192894",
"0.8007135",
"0.79733825",
"0.79410416",
"0.7907905",
"0.7903568",
"0.78989065",
"0.7897065",
"0.7... | 0.0 | -1 |
Return the first element which matches the path. | def neBz(YKHO, pmON):
JDmx = pmON.strip('/').split('/')
if not JDmx[0]:
return YKHO
return YKHO._find(JDmx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OyQC(YKHO, pmON):\n UqER = pmON.split('/')\n while not UqER[0]:\n UqER.pop(0)\n Q6kx = YKHO.root\n OJK0 = UqER.pop(0)\n if Q6kx.matchpath(OJK0):\n while UqER:\n OJK0 = UqER.pop(0)\n Q6kx = Q6kx.get_element(OJK0)\n return Q6kx\n else:\n raise I... | [
"0.758268",
"0.73582846",
"0.7170025",
"0.71024406",
"0.70868933",
"0.70540315",
"0.6966237",
"0.6910888",
"0.6904226",
"0.68143135",
"0.6788983",
"0.67131215",
"0.6690097",
"0.66266793",
"0.66144085",
"0.65904665",
"0.6550173",
"0.6508569",
"0.6502494",
"0.64936364",
"0.6399... | 0.6550263 | 16 |
Mark as read any unread messages in the current queryset. Optionally, filter these by recipient first. | def N29b(YKHO, nG3o=None):
tu9d = YKHO.unread(True)
if nG3o:
tu9d = tu9d.filter(recipient=nG3o)
return tu9d.update(unread=False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VdGr(YKHO, nG3o=None):\n tu9d = YKHO.read(True)\n if nG3o:\n tu9d = tu9d.filter(recipient=nG3o)\n return tu9d.update(unread=True)",
"def Tigl(uJjO: int, vQNw: list=None):\n xDcj = LuKW.query.filter(LuKW.to_user_id == uJjO, LuKW.read == Uiw6())\n if vQNw:\n xDcj = xDcj.filter(LuKW... | [
"0.8127104",
"0.70566094",
"0.70474243",
"0.6849787",
"0.6764571",
"0.6725347",
"0.6655015",
"0.6554968",
"0.6521361",
"0.6498889",
"0.64915276",
"0.63887817",
"0.6384269",
"0.6379244",
"0.6366151",
"0.6339284",
"0.63075304",
"0.6297737",
"0.6284858",
"0.6117242",
"0.60928816... | 0.78829026 | 1 |
Mark as unread any read messages in the current queryset. Optionally, filter these by recipient first. | def VdGr(YKHO, nG3o=None):
tu9d = YKHO.read(True)
if nG3o:
tu9d = tu9d.filter(recipient=nG3o)
return tu9d.update(unread=True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N29b(YKHO, nG3o=None):\n tu9d = YKHO.unread(True)\n if nG3o:\n tu9d = tu9d.filter(recipient=nG3o)\n return tu9d.update(unread=False)",
"def tDS8(YKHO):\n YKHO.mark_all_emails_as_read()",
"def Rclc(YKHO, KBgZ, PObu, A07C, QpfX=None):\n for YEnM in YKHO.browse(KBgZ, PObu, A07C, context=... | [
"0.78310037",
"0.7016322",
"0.6982996",
"0.6958439",
"0.69005144",
"0.68458676",
"0.6792435",
"0.6597672",
"0.64878935",
"0.6487746",
"0.64717406",
"0.6447399",
"0.6404287",
"0.6399766",
"0.6395987",
"0.6390323",
"0.6388686",
"0.63644993",
"0.6311012",
"0.62928194",
"0.626297... | 0.8174852 | 0 |
Shortcut for the ``django.utils.timesince.timesince`` function of the current timestamp. | def i1Gn(YKHO, wzkt=None):
from django.utils.timesince import i1Gn as uygB
return uygB(YKHO.timestamp, wzkt) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i1Gn(YKHO, wzkt=None):\n return uygB(YKHO.timestamp, wzkt)",
"def i1Gn(YKHO, wzkt=None):\n return IRs0(YKHO.timestamp, wzkt).encode('utf8').replace(b'\\xc2\\xa0', b' ').decode('utf8')",
"def s8bP(YKHO, KAOR, wzkt=None):\n return i1Gn(KAOR.created_at, wzkt)",
"def s8bP(YKHO, KAOR, wzkt=None):\n ... | [
"0.8039526",
"0.75242424",
"0.75095326",
"0.75095326",
"0.7155287",
"0.715382",
"0.70945436",
"0.70547813",
"0.6944074",
"0.68430966",
"0.6827084",
"0.67421573",
"0.67236876",
"0.6722201",
"0.6641184",
"0.66269946",
"0.65302503",
"0.6442294",
"0.6399407",
"0.6381331",
"0.6380... | 0.84943205 | 0 |
view root in page function that returns the index page and its data | def d6pt():
NhKY = WdGy('popular')
Q8el = WdGy('upcoming')
jQrV = WdGy('now_playing')
leAC = 'Home - Welcome to the best Movie review Website online'
fO0K = QePW.args.get('movie_query')
if fO0K:
return vKnz(nKyW('main.search', movie_name=fO0K))
else:
return TvZl('index.html',... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tk5Y():\n CBIr = TKWP()\n return TvZl('index.html', homepage=True, user=CBIr)",
"def t7ng():\n return TvZl('index.html')",
"def t7ng():\n return TvZl('index.html')",
"def t7ng():\n return TvZl('index.html')",
"def t7ng():\n return TvZl('index.html')",
"def t7ng():\n return TvZl('... | [
"0.7918043",
"0.78929836",
"0.78928345",
"0.7885204",
"0.7885204",
"0.7885204",
"0.7885204",
"0.7872585",
"0.787147",
"0.78544223",
"0.7835792",
"0.78322095",
"0.7825793",
"0.7810831",
"0.78094286",
"0.7809157",
"0.78012687",
"0.7792967",
"0.7787277",
"0.7786602",
"0.7777856"... | 0.0 | -1 |
Finds the prime factors of an integer n | def LBq1(exwG: int):
aWCg = []
br9u = lO1m(PZyS(exwG))
VURB = bJun(br9u)
while exwG > 1:
for YRbF in range(0, len(VURB)):
if exwG % VURB[YRbF] == 0:
exwG = exwG / VURB[YRbF]
aWCg.append(VURB[YRbF])
break
return aWCg | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Llmz(exwG):\n return (G1Hx for G1Hx, Ty9i in S2wa(exwG))",
"def OvlX(exwG):\n YRbF = 2\n Llmz = []\n while YRbF * YRbF <= exwG:\n if exwG % YRbF:\n YRbF += 1\n else:\n exwG //= YRbF\n Llmz.append(YRbF)\n if exwG > 1:\n Llmz.append(exwG)\n ... | [
"0.9042946",
"0.8849053",
"0.87956625",
"0.87313104",
"0.8700076",
"0.868714",
"0.86675894",
"0.8667164",
"0.8643236",
"0.8635902",
"0.86344934",
"0.8632522",
"0.8624182",
"0.86222845",
"0.8621279",
"0.86113095",
"0.86113095",
"0.8606194",
"0.8606194",
"0.85898966",
"0.858626... | 0.82413965 | 56 |
Finds the kth to last node in a linked list | def Gbpr(sdCG, G1Hx):
WL52 = sdCG
Q6kx = sdCG
O5ip = 0
while WL52.next is not None:
WL52 = WL52.next
O5ip += 1
if O5ip > G1Hx:
Q6kx = Q6kx.next
return Q6kx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Gbpr(CLNC: LinkedList, G1Hx: int) -> o7DN:\n if G1Hx <= 0 or G1Hx > CLNC.size:\n raise IndexError('list index out of range')\n exwG = CLNC.head\n for YRbF in range(1, CLNC.size - G1Hx + 1):\n exwG = exwG.next\n return exwG",
"def bpfX(G1Hx, sdCG):\n if sdCG is None:\n retu... | [
"0.9043075",
"0.9000631",
"0.87037724",
"0.86848",
"0.8640724",
"0.860831",
"0.8543682",
"0.8527365",
"0.8515529",
"0.8498135",
"0.84083915",
"0.8322755",
"0.8290079",
"0.8172097",
"0.81043017",
"0.80810267",
"0.8037888",
"0.7927049",
"0.77527916",
"0.75618505",
"0.7553991",
... | 0.8917681 | 2 |
Unique identifier for this trace. The trace ID is a opaque value that identifies this trace across process boundaries. If a trace ID is not explicitly set, then this implementation will generate a random 128bit value and return it as a string of lowercased hexadecimal digits. | def nS60(YKHO):
if YKHO._trace_id is None:
if YKHO.parents:
YKHO._trace_id = YKHO.parents[0].trace_id
else:
YKHO._trace_id = MRxC.hexlify(Hy7s.urandom(16))
return YKHO._trace_id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nS60(YKHO) -> str:\n return YKHO._trace_id",
"def nS60(YKHO):\n if not hasattr(YKHO, '_trace_id'):\n YKHO._trace_id = YKHO._get_first_header(wk5E.config['DM_TRACE_ID_HEADERS']) or str(qxeD.uuid4().hex)\n return YKHO._trace_id",
"def id(YKHO):\n from machine import unique_id\n _KGn = u... | [
"0.7457739",
"0.7438681",
"0.73263067",
"0.721783",
"0.72134155",
"0.7145294",
"0.71399665",
"0.7093619",
"0.70797956",
"0.7073492",
"0.70691276",
"0.70656836",
"0.70386434",
"0.7021672",
"0.7013319",
"0.69597846",
"0.6900596",
"0.6898086",
"0.6889791",
"0.6880647",
"0.685164... | 0.8107121 | 0 |
Unique identifier for this span. The span ID is a opaque value that uniquely identifies this span within the parent span. If a span ID is not explicitly set, then this implementation will generate a random 64bit value and return it as a string of lowercased hexadecimal digits. | def AdiV(YKHO):
if YKHO._span_id is None:
YKHO._span_id = MRxC.hexlify(Hy7s.urandom(8))
return YKHO._span_id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AdiV(YKHO):\n if not hasattr(YKHO, '_span_id'):\n YKHO._span_id = YKHO._get_first_header(wk5E.config['DM_SPAN_ID_HEADERS'])\n return YKHO._span_id",
"def nS60(YKHO):\n if YKHO._trace_id is None:\n if YKHO.parents:\n YKHO._trace_id = YKHO.parents[0].trace_id\n else:\n ... | [
"0.75949323",
"0.74312145",
"0.7204219",
"0.7204216",
"0.70410126",
"0.69933057",
"0.69892937",
"0.6943228",
"0.68940204",
"0.68909454",
"0.68736637",
"0.682868",
"0.68225527",
"0.68225527",
"0.6802299",
"0.67973584",
"0.67585284",
"0.67585284",
"0.67585284",
"0.67585284",
"0... | 0.8928212 | 0 |
Normalize the name. Includes cleaning up Windows style paths, ensuring an ending trailing slash, and coercing from pathlib.PurePath. | def SREd(mWFP):
if isinstance(mWFP, oAb3.PurePath):
mWFP = str(mWFP)
SREd = Qumu.normpath(mWFP).replace('\\', '/')
if mWFP.endswith('/') and (not SREd.endswith('/')):
SREd += '/'
if SREd == '.':
SREd = ''
return SREd | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def U_IC(YKHO, mWFP):\n SREd = Qumu.normpath(mWFP).replace('\\\\', '/')\n if mWFP.endswith('/') and (not SREd.endswith('/')):\n SREd += '/'\n return SREd",
"def NkkI(YKHO, mWFP):\n if not mWFP:\n bGrB, mWFP = Hy7s.path.split(Hy7s.getcwd())\n return ZbWC.sub('[\\\\s\\\\-_]', '', mWFP.... | [
"0.8675274",
"0.806913",
"0.7995704",
"0.7399923",
"0.7374345",
"0.735934",
"0.7323592",
"0.72811013",
"0.72629863",
"0.7248419",
"0.7181993",
"0.7177786",
"0.71466863",
"0.71358454",
"0.71139055",
"0.70443946",
"0.7033394",
"0.7011803",
"0.7007969",
"0.69521713",
"0.6941986"... | 0.8418664 | 1 |
Create variable in `GraphKeys.(LOCAL|METRIC_VARIABLES`) collections. | def EPC7(ROpF, yDqo, fz2t=True, mWFP=None):
return ZylS.Variable(lambda: ZylS.zeros(ROpF, yDqo), trainable=False, collections=[ZylS.GraphKeys.LOCAL_VARIABLES, ZylS.GraphKeys.METRIC_VARIABLES], validate_shape=fz2t, name=mWFP) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EV4f(YKHO, HaEQ):\n Aofo = {}\n for Q6kx, BWXx in zip(YKHO._metric_variable_placeholders, HaEQ):\n Aofo[Q6kx] = BWXx\n return Aofo",
"def jLmB(YKHO, r8hN: Model):\n CiNg: cuzp[str, RELP] = {}\n for Ty9i in YKHO.curr_v2s.keys():\n CiNg[Ty9i] = r8hN.add_var(var_type=m1nk, name=f'{T... | [
"0.6318603",
"0.61465096",
"0.59314126",
"0.59198374",
"0.5906929",
"0.5850183",
"0.56896067",
"0.5639101",
"0.5637461",
"0.56219554",
"0.55753",
"0.5573651",
"0.5572216",
"0.5549043",
"0.552925",
"0.5510698",
"0.54506326",
"0.54419166",
"0.54258907",
"0.54178536",
"0.5412136... | 0.5462933 | 16 |
Given a list `A` find the first prefix of the list in which all the different elements are covered. | def hnFq(k0lF):
tjUW = set(k0lF)
for or8S in range(len(k0lF)):
if k0lF[or8S] in tjUW:
tjUW.remove(k0lF[or8S])
if len(tjUW) == 0:
return or8S | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def y0cW(k0lF):\n tX49 = oRi_(int)\n for GIN8 in k0lF:\n for YRbF in range(len(GIN8)):\n tX49[GIN8[:YRbF]] += 1\n Ylbp = []\n for GIN8 in k0lF:\n wOmD = GIN8\n for YRbF in range(len(GIN8)):\n if tX49[GIN8[:YRbF]] == 1:\n wOmD = GIN8[:YRbF]\n ... | [
"0.7714398",
"0.65837306",
"0.63785154",
"0.6370954",
"0.6340132",
"0.62870586",
"0.62534636",
"0.62232524",
"0.621476",
"0.6170363",
"0.6168296",
"0.61431426",
"0.6123575",
"0.61206764",
"0.6102203",
"0.60735536",
"0.6015585",
"0.60048956",
"0.59758705",
"0.5949549",
"0.5938... | 0.6172042 | 9 |
Return the Q Value of the system. | def vexM(Oz1B):
dg7v, iYf1, J1b4, CYjz = Oz1B
vexM = epAf.sqrt(dg7v * iYf1 * J1b4 * CYjz) / (iYf1 * (J1b4 + CYjz))
return vexM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AVx5(YKHO) -> float:\n return YKHO.q",
"def ms3j(YKHO):\n return YKHO.qval",
"def bzMy(YKHO):\n return YKHO.agent.get_max_q(YKHO.env.belief_state)",
"def Bs9p(YKHO):\n return YKHO._Q",
"def bzUX(YKHO):\n if YKHO._q is None:\n if YKHO._equatorial is not None:\n YKHO._q =... | [
"0.83484966",
"0.81265384",
"0.79306626",
"0.7815361",
"0.7661467",
"0.74245006",
"0.7377289",
"0.7341593",
"0.7284908",
"0.724878",
"0.7117238",
"0.71084374",
"0.7096235",
"0.7090684",
"0.7085454",
"0.70565546",
"0.7018111",
"0.7017034",
"0.70046276",
"0.7003765",
"0.6948898... | 0.70663553 | 15 |
Displays statistics on the most frequent times of travel. | def dWJR(jQ3Z):
print('\nCalculating The Most Frequent Times of Travel...\n')
SWox = ITS7.time()
r8hN = str(jQ3Z['month'].mode()[0])
sve5 = a3xb[r8hN]
print('The most common month is: {} \n'.format(sve5.capitalize()))
StUT = jQ3Z['day_of_week'].mode()[0]
print('The most common day of week is... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dWJR(jQ3Z):\n print('\\nCalculating The Most Frequent Times of Travel...\\n')\n SWox = ITS7.time()\n print('The most common month of travel is: {} '.format(jQ3Z.Month.mode()[0]))\n print('The most common day of travel is: {} '.format(jQ3Z.Day.mode()[0]))\n print('The most common hour of travel i... | [
"0.79996175",
"0.7920857",
"0.7891767",
"0.78612196",
"0.785926",
"0.7838814",
"0.779974",
"0.77848285",
"0.7735119",
"0.7723049",
"0.771342",
"0.7708436",
"0.770453",
"0.77017164",
"0.7689714",
"0.7685842",
"0.7680146",
"0.76788265",
"0.76721054",
"0.7661351",
"0.7660023",
... | 0.7599545 | 40 |
Displays statistics on the most popular stations and trip. | def Huc_(jQ3Z):
print('\nCalculating The Most Popular Stations and Trip...\n')
SWox = ITS7.time()
v5cD = jQ3Z['Start Station'].value_counts().idxmax()
print('The most commonly used start station was {} '.format(v5cD))
x99G = jQ3Z['End Station'].value_counts().idxmax()
print('The most commonly us... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations and Trip...\\n')\n SWox = ITS7.time()\n v6Be(jQ3Z)\n BeYU(jQ3Z)\n O6Ct(jQ3Z)\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)",
"def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations ... | [
"0.7665365",
"0.76264536",
"0.7610902",
"0.75852126",
"0.7576492",
"0.7567089",
"0.75577486",
"0.7538181",
"0.75294757",
"0.7502035",
"0.74997437",
"0.7496321",
"0.74872565",
"0.74840283",
"0.7475714",
"0.7472988",
"0.7437631",
"0.74366206",
"0.7433223",
"0.7428372",
"0.74269... | 0.72855896 | 57 |
Displays statistics on the total and average trip duration. | def kDMA(jQ3Z):
print('\nCalculating Trip Duration...\n')
SWox = ITS7.time()
FIEZ = jQ3Z.groupby('month')['Trip Duration'].sum()
print('The total travel time {} [s] \n'.format(FIEZ))
sWXm = jQ3Z.groupby('month')['Trip Duration'].mean()
print('The mean travel time {} \n'.format(sWXm))
print('... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kDMA(dMlt):\n print('\\nCalculating Trip Duration...\\n')\n SWox = ITS7.time()\n qZ1g = dMlt['Trip Duration'].sum()\n print('The total travel time is ', qZ1g, ' seconds.')\n NPSF = dMlt['Trip Duration'].mean()\n print('The average travel time is ', NPSF, ' seconds.')\n print('\\nThis took ... | [
"0.8251978",
"0.81471264",
"0.80965656",
"0.80127156",
"0.7987783",
"0.79834235",
"0.7978646",
"0.79705906",
"0.7965226",
"0.79636025",
"0.79616374",
"0.79614663",
"0.79523134",
"0.7948989",
"0.79445267",
"0.7937707",
"0.7923821",
"0.792045",
"0.79198813",
"0.7918623",
"0.791... | 0.0 | -1 |
Show the landing page. | def sjbM(YKHO):
geh0 = YKHO.c.get('/')
YKHO.assertTemplateUsed(geh0, 'landing.html') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hXw_(QePW):\n return SGJU('landing.html')",
"def F_xU():\n return TvZl('index.html')",
"def F_xU():\n return TvZl('landing.html')",
"def hXw_():\n return TvZl('landing_page.html')",
"def hXw_(QePW):\n return _1tc(QePW, 'Bangazon/index.html')",
"def d6pt():\n return TvZl('landing.htm... | [
"0.81097543",
"0.79991925",
"0.79164433",
"0.78260326",
"0.76843166",
"0.7499933",
"0.74035937",
"0.73366576",
"0.7313795",
"0.7310755",
"0.71608585",
"0.71230763",
"0.707042",
"0.7066038",
"0.7050196",
"0.6979915",
"0.6927092",
"0.6917601",
"0.6908629",
"0.6843608",
"0.68199... | 0.0 | -1 |
converts a datetime to a string in eve format | def EhyH(JRYC: object) -> str:
tOwQ = qcWV(JRYC.year, JRYC.month, JRYC.day, JRYC.hour, JRYC.minute, JRYC.second)
return tOwQ.isoformat() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ab7L(Ty9i):\n if isinstance(Ty9i, qcWV):\n return Ty9i.strftime('%Y-%m-%dT%H:%M:%S')\n return Ty9i",
"def pTGH(qSq0):\n return qSq0.strftime('%Y/%m/%d %H:%M')",
"def X0tj(JRYC):\n return JRYC.isoformat()",
"def yLCI(_c1T):\n return qcWV.strftime(_c1T, '%Y-%m-%dT%H:%M')",
"def oKfy... | [
"0.80075085",
"0.7544327",
"0.74211174",
"0.7373132",
"0.7372547",
"0.724629",
"0.72005713",
"0.71714103",
"0.7161192",
"0.71572137",
"0.7156944",
"0.71351695",
"0.7121754",
"0.7107983",
"0.70819163",
"0.70499396",
"0.7036258",
"0.7032137",
"0.70221627",
"0.7006416",
"0.69944... | 0.7741937 | 1 |
Make a DELETE request to Start Record Call endpoint Expect a response 405 (Method Not Allowed) response | def RWYL(YKHO):
QePW = YKHO.client.delete('/startrec/', {})
YKHO.assertEquals(QePW.status_code, 405) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E0C5(YKHO):\n QePW = YKHO.client.delete('/endrec/', {})\n YKHO.assertEquals(QePW.status_code, 405)",
"def PTpj(YKHO):\n YKHO.error(405)",
"def PTpj(YKHO, *qIxc, **B2fa):\n B2fa['method'] = wlcv\n return YKHO.request(*qIxc, **B2fa)",
"def vrBC(Bmg9, id):\n geh0 = JTJW('/rest/' + Bmg9 + '... | [
"0.7801122",
"0.74117583",
"0.71941763",
"0.7152224",
"0.7151053",
"0.7057391",
"0.7051908",
"0.70511484",
"0.6961124",
"0.69457436",
"0.68929374",
"0.6817843",
"0.68028927",
"0.67940265",
"0.67465425",
"0.6727547",
"0.6722904",
"0.6698914",
"0.6692692",
"0.66751987",
"0.6651... | 0.82611316 | 0 |
Resets the REWARDS matrix to zero for starting an episode. | def DqFB(YKHO):
YKHO.rewards = oyIN.zeros(YKHO.agent_count) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SiRx(YKHO):\n YKHO.episode = 0\n YKHO.all_scores = []\n YKHO.all_iterations = []\n YKHO.scores_window = MUE7(maxlen=YKHO.window_len)",
"def SiRx(YKHO):\n YKHO.episode = 0\n YKHO.all_scores = []\n YKHO.all_iterations = []\n YKHO.scores_window = MUE7(maxlen=YKHO.window_len)",
"def SiR... | [
"0.7171256",
"0.7171256",
"0.71699184",
"0.7097028",
"0.7090225",
"0.7037614",
"0.70297986",
"0.69274014",
"0.69242173",
"0.6838073",
"0.679444",
"0.6769748",
"0.67287046",
"0.6707868",
"0.6700198",
"0.66663677",
"0.6659252",
"0.66585195",
"0.6657347",
"0.6637278",
"0.6635508... | 0.0 | -1 |
Ensure we blo up when there is a user with the same username | def VJoh(YKHO):
AroK = wjqx.create_user(username='testUser1', email='test@example.com', first_name='Test', last_name='User')
YKHO.assertRaises(ValueError, wjqx.create_user, username=AroK.username, email='test@example.com', first_name='Test', last_name='User') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z3WL(YKHO, NtEF):\n if NtEF.data != c5ow.username:\n CBIr = mv1M.query.filter_by(username=NtEF.data).first()\n if CBIr:\n raise sUXu('The username is used already')",
"def Jjss(NtEF):\n Gvth(NtEF)\n try:\n mv1M.objects.get(username=NtEF)\n raise sUXu('Username ... | [
"0.7347147",
"0.7245116",
"0.7173139",
"0.713062",
"0.70934397",
"0.7039314",
"0.69745773",
"0.6907187",
"0.68349546",
"0.68259114",
"0.68097585",
"0.678866",
"0.6769256",
"0.67617834",
"0.6740988",
"0.67180663",
"0.6706125",
"0.6691002",
"0.6611223",
"0.65781844",
"0.6567523... | 0.63955545 | 35 |
test creation of a cart model with a user | def f_Fl(YKHO):
CBIr = vRCC.create_user(username='test_user', password='password', email='user@test.com', first_name='test', last_name='user')
xryH = vRCC.create_cart(user_id=CBIr.id, session_key='1234abc')
YKHO.assertTrue(isinstance(xryH, mukb)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AvcF(YKHO):\n xryH = vRCC.create_cart(session_key='1234abc')\n YKHO.assertTrue(isinstance(xryH, mukb))",
"def e6ly(YKHO):\n YKHO.cart = mukb.objects.create(user=YKHO.user)\n YKHO.cart.items.add(YKHO.item)\n YKHO.cart.set_total()\n YKHO.cart.save()\n YKHO.client.login(username='norma', pa... | [
"0.82368404",
"0.7654941",
"0.76464057",
"0.76322263",
"0.761734",
"0.7568589",
"0.75206673",
"0.7441513",
"0.7368464",
"0.73252463",
"0.7308845",
"0.7191733",
"0.71378773",
"0.7099698",
"0.7001555",
"0.69978064",
"0.6975017",
"0.69604665",
"0.6954034",
"0.6942927",
"0.693675... | 0.8648956 | 0 |
Creates and saves a User with the given email and password. | def lYUQ(YKHO, D3lj, jTXt=None):
wzkt = rIAI.now()
if not D3lj:
raise ValueError('Users must have a valid email address')
D3lj = K4hx.normalize_email(D3lj)
CBIr = YKHO.model(email=D3lj)
CBIr.set_password(jTXt)
ksfB = True
WJxI = False
_Kb1 = False
qMrd = False
KGDo = wzkt... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xWi2(YKHO, D3lj, jTXt, **wdCM):\n if not D3lj:\n raise ValueError('The email must be set')\n D3lj = YKHO.normalize_email(D3lj)\n CBIr = YKHO.model(email=D3lj, **wdCM)\n CBIr.set_password(jTXt)\n CBIr.save()",
"def lYUQ(YKHO, D3lj: str, jTXt: str, **wdCM: dict):\n if not D3lj:\n ... | [
"0.87203795",
"0.8471124",
"0.8462932",
"0.84520763",
"0.84274495",
"0.84224284",
"0.84208685",
"0.84165066",
"0.8410754",
"0.8409538",
"0.8409538",
"0.8401648",
"0.84014827",
"0.8391565",
"0.83900344",
"0.83900344",
"0.83900344",
"0.83900344",
"0.83900344",
"0.83900344",
"0.... | 0.0 | -1 |
Creates and saves a superuser with the given email and password. | def Zp54(YKHO, D3lj, jTXt):
CBIr = YKHO.create_user(D3lj, jTXt)
CBIr.is_staff = True
_Kb1 = True
CBIr.is_active = True
CBIr.is_superuser = True
CBIr.save(using=YKHO.db)
return CBIr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zp54(YKHO, D3lj, jTXt=None, **dDGN):\n YKHO._create_user(D3lj, True, jTXt, **dDGN)",
"def Zp54(YKHO, D3lj, jTXt, **wdCM):\n if jTXt is None:\n raise TypeError('Superusers must have a password.')\n CBIr = YKHO.create_user(D3lj, password=jTXt, **wdCM)\n CBIr.is_superuser = True\n CBIr.is_... | [
"0.8555722",
"0.83575016",
"0.83508795",
"0.830083",
"0.8291109",
"0.82742244",
"0.82727426",
"0.8251127",
"0.82483673",
"0.82372046",
"0.82254887",
"0.8222463",
"0.8222279",
"0.8215102",
"0.82104456",
"0.82021487",
"0.8192061",
"0.8187187",
"0.81800467",
"0.81787187",
"0.817... | 0.8057407 | 100 |
Parse command line arguments for CoAP gateway application. | def OTw7():
if not hasattr(xAU6, 'coap_port'):
mIH9('coap_port', default=IOnY, help='Gateway CoAP server port')
if not hasattr(xAU6, 'interface'):
mIH9('interface', default=None, help='Gateway CoAP 6LowPAN interface')
if not hasattr(xAU6, 'max_time'):
mIH9('max_time', default=nO2h, h... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iXC1(Ltpw=[]):\n if Ltpw != []:\n HwRy.argv[1:] = Ltpw\n try:\n uvp4(extra_args_func=OTw7)\n except SyntaxError as exc:\n bo34.critical('Invalid config file: {}'.format(BQDi))\n return\n except FileNotFoundError as exc:\n bo34.error('Config file not found: {}'.for... | [
"0.69933385",
"0.67624134",
"0.6658153",
"0.6645442",
"0.65665054",
"0.64859086",
"0.6475048",
"0.6459449",
"0.6437186",
"0.643415",
"0.64207125",
"0.642024",
"0.6413549",
"0.640288",
"0.64015836",
"0.6393058",
"0.63894635",
"0.6383412",
"0.6381337",
"0.6378628",
"0.6375721",... | 0.0 | -1 |
Property to retrieve the numerical value representing the current axis. | def dBR3(YKHO):
return YKHO._axis_number | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jDK_(YKHO):\n return YKHO._axis",
"def jDK_(YKHO):\n return YKHO._axis",
"def JFTO(YKHO) -> int:\n raise NotImplementedError",
"def TdyR(YKHO):\n YKHO.check_alive()\n return YKHO.plotobj.get_current_axis()",
"def WKvO(YKHO) -> aM69.Axis:\n return YKHO._instance.x",
"def WKvO(YKHO) -... | [
"0.78131723",
"0.78131723",
"0.7557863",
"0.7477738",
"0.72618514",
"0.72618514",
"0.72618514",
"0.7065339",
"0.6983046",
"0.69793254",
"0.69187784",
"0.691694",
"0.691694",
"0.6883083",
"0.68409246",
"0.6832027",
"0.68253595",
"0.6819852",
"0.68072474",
"0.68072474",
"0.6793... | 0.76535755 | 2 |
Property for the status of the DC input of this axis. Only applicable for scanner/dither axes. | def TRGp(YKHO):
return YKHO.get('positionerGetDcInEnable', (YKHO.axis_number, None))[0].value | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Bc4p(YKHO):\n return YKHO._dc",
"def F7Yy(YKHO):\n return YKHO._ddc_enabled",
"def _hVM(YKHO):\n return float(YKHO.get('positionerGetDcLevel', (YKHO.axis_number, None))[0].value) / 1000",
"def KEqe(YKHO) -> bool:\n return YKHO.get(uM5o.ATTR_DSX)",
"def Oueu(YKHO):\n KCHu = YKHO.get_statu... | [
"0.65310866",
"0.6243477",
"0.6058927",
"0.5901258",
"0.5898654",
"0.58858806",
"0.58646315",
"0.5729508",
"0.5664122",
"0.5662189",
"0.56483597",
"0.56262475",
"0.55884176",
"0.5571811",
"0.5568984",
"0.55629444",
"0.55562234",
"0.5527049",
"0.5518454",
"0.55099034",
"0.5498... | 0.70389956 | 0 |
Property for the actual DC level in volts of this axis. | def _hVM(YKHO):
return float(YKHO.get('positionerGetDcLevel', (YKHO.axis_number, None))[0].value) / 1000 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o0W0(YKHO):\n return YKHO._dc_voltage",
"def WUR2(YKHO):\n return YKHO._volume.actual / 100",
"def WUR2(YKHO):\n return YKHO._volume_level / 100.0",
"def qjHC(YKHO):\n if getattr(YKHO, '_vol', None) is None:\n if YKHO.nCy > 1:\n raise NotImplementedError('vol not yet impleme... | [
"0.7494495",
"0.65290827",
"0.64685583",
"0.64334834",
"0.641992",
"0.63707626",
"0.6346218",
"0.63359344",
"0.63308936",
"0.6309541",
"0.62834924",
"0.6264712",
"0.6264712",
"0.6264712",
"0.6264712",
"0.6264712",
"0.6264712",
"0.6212989",
"0.6153112",
"0.6153112",
"0.6149924... | 0.81319565 | 0 |
Property for the status of the internal signal generation of this axis. Only applicable for scanner/dither axes. | def xoNp(YKHO):
return YKHO.get('positionerGetIntEnable', (YKHO.axis_number, None))[0].value | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VLTN(YKHO):\n return super(_QHg, YKHO).get_status()",
"def QTBn(YKHO):\n return YKHO.mean if not YKHO.is_binary else YKHO.count",
"def jGRS(YKHO):\n return YKHO.get('positionerGetStatus', (YKHO.axis_number, None))[0].value",
"def QTBn(YKHO):\n return YKHO._odometer",
"def QTBn(YKHO):\n r... | [
"0.6513341",
"0.6429481",
"0.64235646",
"0.6362281",
"0.63000184",
"0.6226328",
"0.61627454",
"0.61627454",
"0.61493415",
"0.61097157",
"0.60383683",
"0.60383683",
"0.60228825",
"0.6019158",
"0.6017334",
"0.5996579",
"0.5996579",
"0.5970602",
"0.59608513",
"0.595932",
"0.5959... | 0.0 | -1 |
Property for the actual position of this axis in micrometer. | def dQgj(YKHO):
return float(YKHO.get('positionerGetPosition', (YKHO.axis_number, None))[0].value) / 1000 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def im9A(YKHO) -> float:\n raise NotImplementedError",
"def Iuzb(YKHO):\n return YKHO.motor.position * YKHO.direction",
"def dQgj(YKHO) -> float:\n return NXpY(YKHO._position, YKHO.min_position, YKHO.max_position, 0, 1)",
"def dQgj(YKHO):\n return YKHO.__position",
"def dQgj(YKHO) -> float:\n ... | [
"0.7203781",
"0.718978",
"0.713907",
"0.708333",
"0.7066404",
"0.7050693",
"0.7050693",
"0.7050693",
"0.7050693",
"0.7050693",
"0.7050693",
"0.7050693",
"0.7050693",
"0.7050693",
"0.7050693",
"0.7050693",
"0.70502335",
"0.70366776",
"0.7014839",
"0.6993821",
"0.69705075",
"... | 0.79003835 | 0 |
Property for the number of successive steps caused by external trigger or manual step request. | def OKLX(YKHO, paSp):
YKHO.set('positionerStepCount', (YKHO.axis_number, paSp)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AIZ9(YKHO):\n return YKHO._environment.num_steps()",
"def AIZ9(YKHO) -> int:\n return YKHO._num_steps",
"def AIZ9(YKHO):\n return YKHO._num_steps",
"def y0XX(YKHO):\n return YKHO.steps",
"def AIZ9(YKHO) -> int:\n return YKHO._num_steps",
"def AIZ9(YKHO) -> int:\n return YKHO._num_st... | [
"0.8296003",
"0.818414",
"0.8148657",
"0.8122618",
"0.80714935",
"0.80714935",
"0.8030914",
"0.80295837",
"0.78484935",
"0.7814108",
"0.7746024",
"0.7708327",
"0.7665231",
"0.7589592",
"0.7582383",
"0.7410295",
"0.7389329",
"0.73711634",
"0.7271213",
"0.72548825",
"0.72383416... | 0.6480228 | 62 |
Sets the hysteresis of the external trigger. | def VmI3(YKHO, f2d7, _hZ2):
YKHO.call('positionerTriggerEpsilon', (f2d7, int(_hZ2 * 1000))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lBm4(YKHO, msQz=20):\n YKHO.send_packet(b'$' + bytes([msQz]))",
"def DKxL(YKHO, BWXx):\n YKHO.set_sensor = BWXx\n YKHO.ITC.setHeaterSensor(YKHO.set_sensor)",
"def bY4N(YKHO, j1YQ, ftOb):\n YKHO.H_low_thresh = j1YQ\n YKHO.H_high_thresh = ftOb\n YKHO.use_h_only = 1",
"def dFyA(YKHO):\n ... | [
"0.6940305",
"0.6425815",
"0.6356785",
"0.63502157",
"0.6181153",
"0.6157222",
"0.611588",
"0.6074896",
"0.6038781",
"0.6029333",
"0.6017345",
"0.6016812",
"0.5975495",
"0.5968292",
"0.59407365",
"0.58974904",
"0.58926624",
"0.5882778",
"0.5866979",
"0.5823788",
"0.58190805",... | 0.0 | -1 |
Gustavo's method for generating uniformly distributed auc values. | def OUVU(r8hN, Xc47):
if r8hN < 2:
raise ValueError('The number of base classifiers, m, must be greater than 2.')
if len(Xc47) != 2:
raise ValueError('Must supply len(2) sequence of AUC values.')
for lXI5 in Xc47:
if lXI5 < 0 or lXI5 > 1:
raise ValueError('AUC values must... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zUeS(n5sN, IKSE):\n Mkmy = Y3R3(IKSE)\n Gl7Y = TDNB(n5sN)\n kRuK = len(n5sN) - Gl7Y\n WlMo = sum([Mkmy[YRbF] for YRbF in range(len(Mkmy)) if n5sN[YRbF] == 1])\n zUeS = (WlMo - Gl7Y * (Gl7Y + 1) / 2.0) / (kRuK * Gl7Y)\n HwRy.stdout.write('.')\n return zUeS",
"def lA0Q(ezWE):\n return (... | [
"0.71751887",
"0.71028477",
"0.6914596",
"0.6899183",
"0.6797971",
"0.677021",
"0.67149615",
"0.67141414",
"0.671079",
"0.6704264",
"0.66643846",
"0.6659886",
"0.6659223",
"0.66299015",
"0.6591035",
"0.6546948",
"0.6543226",
"0.6539397",
"0.6523308",
"0.6518236",
"0.65106726"... | 0.62990034 | 36 |
Standard error of mean over replicate values. | def h9Wc(YKHO):
if YKHO._next < 2:
raise ZeroDivisionError('Require >= 2 data points to compute S.E.M.')
elif YKHO._next < YKHO._size:
print('SEM computed for less than total replicate number.')
return oyIN.std(YKHO._data[:YKHO._next], ddof=1) / oyIN.sqrt(len(YKHO))
return oyIN.std(Y... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pVKw(gGnb):\n return F_Am(gGnb) / epAf.sqrt(len(gGnb))",
"def w7P0(YKHO, ewCu):\n pass",
"def M1Jx(YKHO):\n return epAf.sqrt(YKHO._sigma - YKHO._avg ** 2)",
"def aH2Y(ywwl, yGTL):\n return oyIN.sqrt(yGTL / float(ywwl))",
"def iAxY(UAju):\n return JBMS([P1dF ** 2 for P1dF in UAju]) ** 0.5... | [
"0.7294843",
"0.71811026",
"0.712754",
"0.7092269",
"0.6980286",
"0.68973124",
"0.6883387",
"0.68139184",
"0.67933947",
"0.67872024",
"0.676539",
"0.6757152",
"0.67512995",
"0.6721763",
"0.67152584",
"0.67092407",
"0.6696303",
"0.6695726",
"0.66943556",
"0.6651472",
"0.664153... | 0.0 | -1 |
Update attribute values specified in _data_attributes. | def r7tU(YKHO, _bM2=None, EGG0=None, *, WKvO, LVAh):
YKHO.reset_data()
YKHO.x = WKvO
YKHO.y = LVAh
YKHO.xerr = _bM2
YKHO.yerr = EGG0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QdZT(YKHO, nPrm, ziTe, a5Jp, xoJV, honC, ONjn):\n YKHO.data = nPrm\n YKHO.attr_values = ziTe\n YKHO.attr_list = a5Jp\n YKHO.attr_values_dict = xoJV\n YKHO.attr_dict = honC\n YKHO.test_percentage = ONjn",
"def qfQ9(YKHO, **B2fa) -> None:\n pass",
"def r7tU(YKHO, *qIxc, **B2fa):\n for... | [
"0.7664663",
"0.76432097",
"0.75404155",
"0.747841",
"0.7439574",
"0.73851556",
"0.7297928",
"0.7246412",
"0.7195941",
"0.7191787",
"0.7165945",
"0.71356475",
"0.70410585",
"0.69865125",
"0.69271773",
"0.6894601",
"0.688073",
"0.68798983",
"0.6842884",
"0.6815928",
"0.6793729... | 0.0 | -1 |
Defines the VGG arg scope. | def oPRq(oNEO=0.0005):
with Fz20.arg_scope([Fz20.conv2d, Fz20.fully_connected], weights_regularizer=yjPc.l2_regularizer(oNEO), biases_initializer=wZLW.zeros_initializer()):
with Fz20.arg_scope([Fz20.conv2d], padding='SAME') as E2mn:
return E2mn | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oPRq(oNEO=0.0005):\n with Fz20.arg_scope([Fz20.conv2d, Fz20.fully_connected], activation_fn=ZylS.nn.relu, weights_regularizer=Fz20.l2_regularizer(oNEO), biases_initializer=ZylS.zeros_initializer()):\n with Fz20.arg_scope([Fz20.conv2d], padding='SAME') as E2mn:\n return E2mn",
"def oPRq(o... | [
"0.68490136",
"0.68490136",
"0.6821719",
"0.6690125",
"0.66432786",
"0.6314513",
"0.6314513",
"0.6283248",
"0.6166139",
"0.60979295",
"0.6056658",
"0.60288376",
"0.6018577",
"0.59011203",
"0.5890113",
"0.5884457",
"0.58068717",
"0.5776957",
"0.573302",
"0.57084674",
"0.563564... | 0.6766015 | 3 |
Adds a listener on the specified event. This only modifies the global listener map; this does not modify the connection's list of listeners., and this does not cause any RegisterListenerResponse to be sent back to the client. | def xXkW(rh3n, jkf2, H1aQ):
gYT8 = (rh3n, jkf2)
if gYT8 not in IGoX:
IGoX[gYT8] = []
IGoX[gYT8].append(H1aQ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IqnM(YKHO, DN9V, tvqc):\n YKHO.__app.listener(tvqc)(DN9V)",
"def zF0X(YKHO, tvqc, DN9V):\n if tvqc not in YKHO.listeners:\n YKHO.listeners[tvqc] = []\n YKHO.listeners[tvqc] += [DN9V]",
"def eBK5(YKHO, tvqc):\n return J8uC.SBListener_AddEvent(YKHO, tvqc)",
"def HgJo(YKHO, jkf2, DCgT):\n... | [
"0.7674742",
"0.74998045",
"0.6851387",
"0.6846615",
"0.6778619",
"0.6673838",
"0.6664478",
"0.6662225",
"0.66489255",
"0.6641704",
"0.6636051",
"0.65784264",
"0.6578394",
"0.6578394",
"0.6569512",
"0.6539837",
"0.6539837",
"0.65348595",
"0.65169007",
"0.65157473",
"0.6500925... | 0.67388743 | 5 |
Adds a watch on the specified object. This only modifies the global watch map; this does not modify the connection's list of watches., and this does not cause any WatchObjectResponse to be sent back to the client. | def Ug1q(rh3n, tB6k, H1aQ):
WJCz = (rh3n, tB6k)
if WJCz not in c4TW:
c4TW[WJCz] = []
c4TW[WJCz].append(H1aQ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H2v5(YKHO, YEnM):\n from Model import domainobject\n if isinstance(YEnM, domainobject.DomainObject):\n H5ew = YKHO.getGlobalName(YEnM)\n YKHO.__objects[H5ew] = YEnM\n else:\n a1PO = str(type(YEnM))\n raise Exception(\"Only DomainObjects can be stored in the ObjectWatcher's ... | [
"0.64027935",
"0.6059411",
"0.604411",
"0.60237914",
"0.5900832",
"0.5826967",
"0.58184767",
"0.58107674",
"0.5786095",
"0.56558317",
"0.5644983",
"0.56255543",
"0.5566321",
"0.5554823",
"0.5531807",
"0.55200094",
"0.5514536",
"0.5514168",
"0.5471576",
"0.5468705",
"0.5414842... | 0.6964895 | 0 |
Returns the current value of the object. This is used instead of self._value to allow for subclasses to provide custom values for the object. VirtualObject in particular makes use of this. The return value must be an instance of protobuf.Instance. | def NMoC(YKHO):
return YKHO._value | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def znbs(YKHO):\n return YKHO._objValue",
"def BWXx(YKHO) -> ImMB:\n return YKHO._value",
"def BWXx(YKHO) -> ImMB:\n return YKHO._value",
"def BWXx(YKHO) -> ImMB:\n return YKHO._value",
"def BWXx(YKHO) -> ImMB:\n return YKHO._value",
"def BWXx(YKHO) -> ImMB:\n return YKHO._value",
"de... | [
"0.7462013",
"0.716933",
"0.71684724",
"0.71684724",
"0.71684724",
"0.71684724",
"0.71684724",
"0.71684724",
"0.71321815",
"0.71321815",
"0.71321815",
"0.7131869",
"0.70845014",
"0.7065828",
"0.7039325",
"0.7023146",
"0.7022521",
"0.7001455",
"0.7001455",
"0.69975156",
"0.699... | 0.6864102 | 90 |
Initializes this object. Name, and doc are the same as on the Object constructor. Accessor is a function that takes no arguments and returns the object's current value as a normal Python object. The resulting object will be converted to an encoded instance before being returned from the object's get() function. | def FIMM(YKHO, mWFP, A97Q, CU1e):
xBeT.__init__(YKHO, 0, mWFP, A97Q, None)
YKHO.accessor = CU1e | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO.__api_name = None\n YKHO.__name = None\n YKHO.__description = None\n YKHO.__id = None\n YKHO.__type = None\n YKHO.__variable_group = None\n YKHO.__value = None\n YKHO.__key_modified = dict()",
"def FIMM(YKHO, vC92, mWFP, A97Q, BWXx):\n YKHO.name = mWFP\n YKHO.... | [
"0.6380967",
"0.63780886",
"0.6279303",
"0.62342364",
"0.6232599",
"0.6210914",
"0.6208881",
"0.6202708",
"0.6163466",
"0.6142937",
"0.61391515",
"0.61257386",
"0.60636115",
"0.60484034",
"0.6047674",
"0.60466516",
"0.60086125",
"0.5974442",
"0.5963103",
"0.59624684",
"0.5953... | 0.7825117 | 0 |
Adds the specified message to this connection's message queue. It will be sent to the underlying socket as soon as possible by the connection's output thread. This can be called from any thread. If the message is None, this function returns without doing anything. This allows for code that constructs a message pair wit... | def s_GD(YKHO, Ol8d):
if Ol8d is not None:
if isinstance(Ol8d, dict) and Ol8d['message_type'] is None:
return
YKHO.message_queue.put(Ol8d, block=True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qJdH(YKHO, Ol8d):\n YKHO.send_queue.put(Ol8d)",
"def nXxB(YKHO, tO9_=None):\n YKHO.queue.put(tO9_)",
"def nXxB(YKHO, tO9_=None):\n YKHO.queue.put(tO9_)",
"def s_GD(Emd4, Ol8d):\n Emd4.message_queue.append(Ol8d)",
"def NpNj(YKHO, Ol8d):\n assert isinstance(Ol8d, RC5h)\n YKHO.queue.put(... | [
"0.7027234",
"0.69466215",
"0.69466215",
"0.68871194",
"0.68557584",
"0.6836561",
"0.6797582",
"0.66755533",
"0.66590106",
"0.6574718",
"0.654896",
"0.6429558",
"0.64208275",
"0.6409707",
"0.6405014",
"0.6399973",
"0.63908577",
"0.63162357",
"0.62952256",
"0.6276149",
"0.6264... | 0.64031416 | 15 |
Allow access to the wrapped function if the request contains a valid token. | def rCGq(eHNT):
@zaGL(eHNT)
def XIpm(*qIxc, **B2fa):
CFPV = OJoH(admin_only=False)
for mWFP, wEf2 in CFPV.items():
setattr(XIpm, mWFP, wEf2)
return eHNT(*qIxc, **B2fa)
return XIpm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def B36k(JfyU):\n\n def h3Xc(QePW, *qIxc, **B2fa):\n if not hasattr(QePW, 'user'):\n raise wPvU\n eOtH = QePW.POST.get('token', None)\n if eOtH:\n try:\n v7Zz = QePW.user['access']['token']['id']\n if eOtH == v7Zz:\n ret... | [
"0.80834186",
"0.78976035",
"0.7860157",
"0.78390706",
"0.78088045",
"0.7797861",
"0.77500397",
"0.7700022",
"0.7700022",
"0.76679504",
"0.764176",
"0.7622884",
"0.75410956",
"0.7536305",
"0.75345266",
"0.75300545",
"0.74806374",
"0.74771225",
"0.7462306",
"0.7439021",
"0.742... | 0.74900746 | 16 |
returns whether or not a valid exit exists in the direction given | def l7zH(zNqJ, sZCl):
return sZCl in zNqJ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MHPi(YKHO, nhBs, kGOI, LTyj, aVwp):\n g2tC = vp0m(nhBs, kGOI, LTyj, YKHO.location)\n if g2tC in JbSN.keys():\n return YKHO.exits[aVwp]",
"def hLdc(YKHO):\n VTiv = YKHO.getSeenCells()\n for VmPb in VTiv.keys():\n if VmPb.isExit:\n return True\n return False",
"def Bkh... | [
"0.7550462",
"0.69590634",
"0.6575394",
"0.6540482",
"0.63944",
"0.6393506",
"0.637569",
"0.63443446",
"0.609365",
"0.5943461",
"0.5931984",
"0.5929126",
"0.5895593",
"0.5871624",
"0.58464897",
"0.5838775",
"0.58340216",
"0.57906604",
"0.5784476",
"0.5755223",
"0.5718805",
... | 0.7328751 | 1 |
Check the user is/isn't globally whitelisted/blacklisted. | async def global_perms(YKHO, Ol8d: discord.Message) -> bool:
if await YKHO.bot.is_owner(Ol8d.author):
return True
try:
return await YKHO.bot.allowed_by_whitelist_blacklist(Ol8d.author)
except AttributeError:
KXwX = await YKHO.bot.db.whitelist()
if KXwX:
return Ol8... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gTSV(YKHO):\n return YKHO.server.getHandle().getWhitelist().isWhitelisted(YKHO.profile)",
"def Q2ML(YKHO, OaeV):\n if not isinstance(OaeV.message.channel, ZOrr.abc.PrivateChannel):\n if Mx2M.guildinfo(OaeV.message.guild).is_banned(OaeV.message.author):\n return False\n return True"... | [
"0.7303535",
"0.71075463",
"0.69465226",
"0.6823669",
"0.6819756",
"0.6778268",
"0.6751742",
"0.6638469",
"0.6620949",
"0.65928674",
"0.65879154",
"0.65862715",
"0.6517149",
"0.64421386",
"0.6425296",
"0.6414009",
"0.64004004",
"0.64004004",
"0.63675714",
"0.63587207",
"0.635... | 0.62846947 | 27 |
a view for the courses and events page | def sVfc(QePW):
rPXJ = 'courses_and_events/courses_and_events.html'
QpfX = {'title': 'courses and events'}
return _1tc(QePW, rPXJ, QpfX) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ubU7(QePW):\n QpfX = {'courses': k8nB, 'address': K_2B}\n return _1tc(QePW, 'courses/courses.html', QpfX)",
"def sDlr(QePW):\n deMH = []\n h4dK = getattr(gCuF, 'COURSE_DISCOVERY_MEANINGS', {})\n if not gCuF.FEATURES.get('ENABLE_COURSE_DISCOVERY'):\n deMH = k8nB(QePW.user)\n if ky... | [
"0.7522298",
"0.7155886",
"0.708613",
"0.70165145",
"0.70111984",
"0.6988799",
"0.6979964",
"0.6912853",
"0.689848",
"0.68847287",
"0.68768287",
"0.6870858",
"0.6865009",
"0.6860397",
"0.68345594",
"0.6771126",
"0.6754822",
"0.67492735",
"0.6580647",
"0.6577948",
"0.6555123",... | 0.84092456 | 0 |
a view for the training courses page | def SEBZ(QePW):
rPXJ = 'courses_and_events/training_courses.html'
QpfX = {'title': 'training courses'}
return _1tc(QePW, rPXJ, QpfX) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ubU7(QePW):\n QpfX = {'courses': k8nB, 'address': K_2B}\n return _1tc(QePW, 'courses/courses.html', QpfX)",
"def sDlr(QePW):\n deMH = []\n h4dK = getattr(gCuF, 'COURSE_DISCOVERY_MEANINGS', {})\n if not gCuF.FEATURES.get('ENABLE_COURSE_DISCOVERY'):\n deMH = k8nB(QePW.user)\n if ky... | [
"0.7718909",
"0.7346206",
"0.72475106",
"0.7126055",
"0.71181434",
"0.70647323",
"0.7045066",
"0.697816",
"0.6969141",
"0.69414866",
"0.69375795",
"0.6923509",
"0.69028014",
"0.6827135",
"0.68164235",
"0.67773926",
"0.6729405",
"0.67017764",
"0.66380286",
"0.6616753",
"0.6596... | 0.8545028 | 0 |
Utility function to normalize the rows of a numpy array. | def HBfW(jzdc, jDK_=-1, T4Wy=2):
V70B = oyIN.atleast_1d(oyIN.linalg.norm(jzdc, T4Wy, jDK_))
V70B[V70B == 0] = 1
return jzdc / oyIN.expand_dims(V70B, jDK_) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def U95B(WKvO):\n return WKvO / oyIN.linalg.norm(WKvO, axis=1)[:, None]",
"def aB7J(WKvO: np.ndarray):\n return oyIN.nan_to_num(WKvO / oyIN.linalg.norm(WKvO, ord=2, axis=1, keepdims=True))",
"def aB7J(k0lF):\n return k0lF / oyIN.linalg.norm(k0lF, axis=1)[:, None]",
"def aB7J(WKvO):\n exwG = oyIN.... | [
"0.82785344",
"0.817685",
"0.8174514",
"0.81406945",
"0.8048306",
"0.80285233",
"0.7907667",
"0.7905748",
"0.790059",
"0.7820183",
"0.77831936",
"0.7765601",
"0.76452655",
"0.76019204",
"0.75923526",
"0.743208",
"0.7421466",
"0.7412548",
"0.73429585",
"0.7292032",
"0.7282715"... | 0.0 | -1 |
View MainPage should render main_page.html template. | def BAhe(YKHO) -> None:
YKHO.assertTemplateUsed(YKHO.response, 'main_app/main_page.html') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ev1b():\n return TvZl('mainpage.html')",
"def Ev1b():\n return TvZl('main.html')",
"def Ozko():\n return TvZl('index.html')",
"def Ev1b():\n bo34.info('At main app page.')\n return TvZl('index.html')",
"def Ozko():\n return B2Dn('main')",
"def NMoC(YKHO):\n YKHO.RenderStaticHtml(... | [
"0.8582353",
"0.8566343",
"0.83478355",
"0.8162933",
"0.78727514",
"0.7702612",
"0.767442",
"0.7633095",
"0.7629619",
"0.75410503",
"0.75372916",
"0.7521707",
"0.7519195",
"0.7466713",
"0.74552226",
"0.740406",
"0.73670155",
"0.73501986",
"0.7281408",
"0.72718394",
"0.724278"... | 0.7441698 | 15 |
get the most positively correlated sentences with this sentence | def _h7k(YKHO, yAmx, UHFx=10, XPB5=True):
yAmx = YKHO.tokenizer(yAmx, block_id=0, form_tagged_doc=False)[0]
whFj = YKHO.model.infer_vector(yAmx)
return YKHO.model.docvecs.most_similar([whFj], topn=UHFx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i0Uw(YKHO, yAmx):\n kbGe = YKHO._get_candidate_sentences(yAmx)\n ZCUv = []\n for SkC9 in kbGe:\n SrDO = 0\n for YRbF in range(1, len(SkC9)):\n try:\n p1kx = YKHO.bigrams[SkC9[YRbF - 1], SkC9[YRbF]] / YKHO.vocab[SkC9[YRbF - 1]]\n except ZeroDivisionErr... | [
"0.65464544",
"0.64653957",
"0.6393349",
"0.6181375",
"0.61164075",
"0.610016",
"0.60691583",
"0.60537916",
"0.6046816",
"0.5984151",
"0.598028",
"0.5938171",
"0.59347767",
"0.59328467",
"0.59319824",
"0.5914137",
"0.5905655",
"0.5896238",
"0.58849657",
"0.5872492",
"0.586962... | 0.6173848 | 4 |
Displays statistics on the most frequent times of travel. | def dWJR(jQ3Z):
print('\nCalculating The Most Frequent Times of Travel...\n')
SWox = ITS7.time()
jQ3Z['hour'] = jQ3Z['Start Time'].dt.hour
print('The most common month is: \n {} \nthe most common day of week is: \n {} \nthe most common start hour is:\n {} \n'.format(jQ3Z['month'].mode()[0], jQ3Z['day_o... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dWJR(jQ3Z):\n print('\\nCalculating The Most Frequent Times of Travel...\\n')\n SWox = ITS7.time()\n print('The most common month of travel is: {} '.format(jQ3Z.Month.mode()[0]))\n print('The most common day of travel is: {} '.format(jQ3Z.Day.mode()[0]))\n print('The most common hour of travel i... | [
"0.79996175",
"0.7920857",
"0.7891767",
"0.78612196",
"0.785926",
"0.7838814",
"0.779974",
"0.77848285",
"0.7735119",
"0.7723049",
"0.771342",
"0.7708436",
"0.770453",
"0.77017164",
"0.7689714",
"0.7685842",
"0.7680146",
"0.76788265",
"0.76721054",
"0.7661351",
"0.7660023",
... | 0.74940574 | 72 |
Displays statistics on the most popular stations and trip. | def Huc_(jQ3Z):
print('\nCalculating The Most Popular Stations and Trip...\n')
SWox = ITS7.time()
print('The most start station is \n', jQ3Z['Start Station'].mode()[0])
print('The most end station is \n', jQ3Z['End Station'].mode()[0])
jQ3Z['trip station'] = jQ3Z['Start Station'] + ' ' + jQ3Z['End S... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations and Trip...\\n')\n SWox = ITS7.time()\n v6Be(jQ3Z)\n BeYU(jQ3Z)\n O6Ct(jQ3Z)\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)",
"def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations ... | [
"0.7665365",
"0.76264536",
"0.7610902",
"0.75852126",
"0.7576492",
"0.7567089",
"0.75577486",
"0.7538181",
"0.75294757",
"0.7502035",
"0.74997437",
"0.7496321",
"0.74872565",
"0.74840283",
"0.7475714",
"0.7472988",
"0.7437631",
"0.74366206",
"0.7433223",
"0.7428372",
"0.74269... | 0.73715705 | 32 |
Displays statistics on the total and average trip duration. | def kDMA(jQ3Z):
print('\nCalculating Trip Duration...\n')
SWox = ITS7.time()
print('The total travel time is: \n', jQ3Z['Trip Duration'].sum(0))
print('The mean travel time is: \n', jQ3Z['Trip Duration'].mean(0))
print('\nThis took %s seconds.' % (ITS7.time() - SWox))
print('-' * 40) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kDMA(dMlt):\n print('\\nCalculating Trip Duration...\\n')\n SWox = ITS7.time()\n qZ1g = dMlt['Trip Duration'].sum()\n print('The total travel time is ', qZ1g, ' seconds.')\n NPSF = dMlt['Trip Duration'].mean()\n print('The average travel time is ', NPSF, ' seconds.')\n print('\\nThis took ... | [
"0.8251978",
"0.81471264",
"0.80965656",
"0.80127156",
"0.7987783",
"0.79834235",
"0.7978646",
"0.79705906",
"0.7965226",
"0.79636025",
"0.79616374",
"0.79614663",
"0.79523134",
"0.7948989",
"0.79445267",
"0.7937707",
"0.7923821",
"0.792045",
"0.79198813",
"0.7918623",
"0.791... | 0.78609866 | 52 |
Determines the user agent string for the current platform (to retrieve a valid ESN) Returns | def t36J():
Oz1B = a9EH.system()
if Oz1B == 'Darwin':
return 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36'
if Oz1B == 'Windows':
return 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Ch... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hb1q(Emd4):\n P8oC = 'Mozilla/5.0 {0} AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36'\n AsJd = Emd4.get_platform()\n if AsJd == 'MacOSX':\n return P8oC.format('(Macintosh; Intel Mac OS X 10_10_1)')\n if AsJd == 'Windows':\n return P8oC.format('(Windows NT 10.... | [
"0.7692199",
"0.74980783",
"0.74498975",
"0.7279267",
"0.71939456",
"0.7135889",
"0.7114959",
"0.6989834",
"0.6917629",
"0.68138945",
"0.68057173",
"0.6801335",
"0.6798203",
"0.6713937",
"0.6712411",
"0.6701503",
"0.6698717",
"0.66796124",
"0.6651644",
"0.6622711",
"0.660259"... | 0.76496905 | 1 |
Get IAM ARN role | def CLpm(WyWQ, QIi1):
try:
return WyWQ.get_role(RoleName=QIi1)['Role']['Arn']
except Exception as exp:
xfXC.logger.error(f'Error occurred while retrieving IAM Role: {kLQb}')
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BDB0() -> str:\n TJZp = iVGz.client('sts')\n Z31E = TJZp.get_caller_identity()['Account']\n return f'arn:aws:iam::{Z31E}:role/{kxTZ()}'",
"def oJMC(h1Ur):\n try:\n print('1.3 Get the IAM role ARN')\n geh0 = ENHu.get_role(RoleName=h1Ur)\n return geh0['Role']['Arn']\n except... | [
"0.83410466",
"0.81130785",
"0.8094994",
"0.8069979",
"0.8048679",
"0.8048679",
"0.8048679",
"0.8048679",
"0.8048679",
"0.8048679",
"0.8006781",
"0.79052883",
"0.78179616",
"0.78179616",
"0.78179616",
"0.78179616",
"0.78179616",
"0.78179616",
"0.78179616",
"0.78179616",
"0.78... | 0.7809258 | 57 |
Computes gauss quadrature points and weights for the given list of cells. | def aPRy(YKHO, A5e3: np.ndarray) -> oyIN.ndarray:
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gPYU():\n return oyIN.ones(2)",
"def G5kt(gYUB, SRYB, o_tg):\n _Wm3 = list()\n YRbF = 0\n for YRbF in range(len(SRYB)):\n ZKuE = gYUB.diff(SRYB[YRbF])\n CLdO = ZKuE * o_tg[YRbF]\n eBtN = CLdO * CLdO\n _Wm3.append(eBtN)\n YRbF = YRbF + 1\n G5kt = oyIN.sum(_Wm3... | [
"0.6220376",
"0.6019005",
"0.59695715",
"0.5942782",
"0.5934284",
"0.59338856",
"0.59338856",
"0.5881469",
"0.58696216",
"0.5855384",
"0.5838069",
"0.58057755",
"0.5788551",
"0.5788213",
"0.5782681",
"0.57803166",
"0.5690392",
"0.5688919",
"0.5686925",
"0.56532395",
"0.563615... | 0.69719183 | 0 |
Run the standalone application in a seperate thread. | def H3O1(YKHO, *qIxc: Any, **B2fa: Any) -> Esm4:
YKHO._daemonized = True
MgeT = Esm4(target=YKHO.run, args=qIxc, kwargs=B2fa, daemon=True)
MgeT.start()
return MgeT | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iXC1(YKHO):\n YKHO.Thread = Esm4(target=YKHO.__main_loop__)\n YKHO.Thread.start()",
"def b8V_():\n LCJe().mainloop()",
"def iXC1(Emd4, *qIxc, **B2fa):\n P4t4 = Emd4(*qIxc, **B2fa)\n P4t4.mainLoop()",
"def iXC1(YKHO):\n YKHO.mainloop()",
"def iXC1(YKHO):\n YKHO.mainloop()",
"def z... | [
"0.77447623",
"0.73320127",
"0.7302215",
"0.72506815",
"0.72506815",
"0.71816903",
"0.71730435",
"0.7159776",
"0.7146281",
"0.70494485",
"0.701666",
"0.7014924",
"0.69789636",
"0.6950904",
"0.6935271",
"0.69081867",
"0.6873237",
"0.6853704",
"0.6847661",
"0.6829046",
"0.68149... | 0.0 | -1 |
Get absolute path to resource, works for dev and for PyInstaller | def JFat(t_yv):
try:
XSj5 = HwRy._MEIPASS
except Exception:
XSj5 = Hy7s.path.abspath('.')
return Hy7s.path.join(XSj5, t_yv) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gZBG():\n return khtY.abspath(khtY.join(khtY.dirname(xAKo), 'resources') + khtY.sep)",
"def JFat(Qth0):\n if getattr(HwRy, 'frozen', None):\n ObT1 = HwRy._MEIPASS\n else:\n ObT1 = Hy7s.path.join(Hy7s.getcwd())\n return Hy7s.path.join(ObT1, Qth0)",
"def JFat(t_yv):\n try:\n ... | [
"0.86645055",
"0.8190357",
"0.8175001",
"0.8163073",
"0.80863976",
"0.80863976",
"0.80863976",
"0.80863976",
"0.8086095",
"0.80784917",
"0.8077746",
"0.8073863",
"0.8065137",
"0.80625504",
"0.80625504",
"0.80625504",
"0.80625504",
"0.80625504",
"0.80625504",
"0.80625504",
"0.... | 0.80456185 | 26 |
Name of rendered input element. | def mWFP(YKHO):
A7od = YKHO.field.model.__class__.__name__
_sei = YKHO.field.parent._bound_pk
assert _sei != ''
if isinstance(_sei, jUrF) or not hasattr(_sei, '__iter__'):
Gs2B = BxV9(_sei)
else:
Gs2B = u'_'.join([BxV9(G1Hx) for G1Hx in _sei])
AdfU = dict(model=A7od, pk=Gs2B, nam... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dvBq(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'input_name')",
"def dvBq(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'input_name')",
"def bUue(YKHO) -> KjgF:\n return KjgF(YKHO, Rc4l())",
"def mWFP(YKHO):\n return YKHO.el.name.text",
"def mWFP(YKHO) -> qe4Y.Input[str]:\n re... | [
"0.7623613",
"0.7623613",
"0.74860555",
"0.7265238",
"0.7056029",
"0.7056029",
"0.7056029",
"0.7056029",
"0.7056029",
"0.7056029",
"0.7056029",
"0.7056029",
"0.7056029",
"0.7056029",
"0.7056029",
"0.7056029",
"0.7056029",
"0.7056029",
"0.7056029",
"0.7056029",
"0.7056029",
... | 0.0 | -1 |
Sets different properties on the Field object. In contrast to the other methods that tweak a Field, this one changes thing INPLACE, without creating a new object and returning it. This is the behavior for the other methods like ``readonly()``, ``required()``, ``with_html()``, ``with_metadata``, ``with_renderer()``, ``w... | def set(YKHO, **bdzN):
J8oL = dict(renderer='_renderer', readonly='_readonly', null_as='_null_option', label='label_text')
for hkS8, BWXx in bdzN.items():
if hkS8 == 'validate':
YKHO.validators.append(BWXx)
elif hkS8 == 'validators':
YKHO.validators.extend(BWXx)
e... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c9Hd(YKHO):\n qqAG = YKHO.request.get('fieldtype', 'TEXT')\n olEY = YKHO.request.get('fieldmode', 'EDITABLE')\n k1ax = YKHO.request.get('fieldformula', '')\n YKHO.context.setFieldType(qqAG)\n YKHO.context.setFieldMode(olEY)\n YKHO.context.setFormula(k1ax)\n YKHO.context.aq_inner.at_post_ed... | [
"0.620707",
"0.6152913",
"0.6148923",
"0.592784",
"0.58913624",
"0.5871176",
"0.5851007",
"0.58231926",
"0.578576",
"0.5775827",
"0.5774111",
"0.5764054",
"0.57333493",
"0.57319313",
"0.5690755",
"0.56765234",
"0.5668276",
"0.5608568",
"0.5596284",
"0.5548955",
"0.5531618",
... | 0.63112223 | 0 |
Get or set the label for the field. If a value is provided then change the label associated with this field. By default, the field name is used, modified for readability (e.g., 'user_name' > 'User name'). | def UXqs(YKHO, l5Ny=fItd):
if l5Ny is fItd:
if YKHO.label_text is not None:
l5Ny = YKHO.label_text
else:
l5Ny = YKHO.parent.prettify(YKHO.key)
if l5Ny:
HNyk = yJQf(request=YKHO.parent._request)
return MKlR.escape_once(HNyk(l5Ny))
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DeTJ(YKHO, UXqs=None):\n if UXqs is not None:\n YKHO.label = UXqs",
"def DeTJ(YKHO):\n if YKHO.label != None:\n return YKHO.label\n else:\n return YKHO.name",
"def QtqY(BWXx, d7pR):\n try:\n C3ST = XLL2.get_model('cts_forms', BWXx)\n Jyyj = C3ST._meta.get_fiel... | [
"0.7352142",
"0.73126155",
"0.7283242",
"0.7280353",
"0.7274923",
"0.71642554",
"0.71642554",
"0.71642554",
"0.71642554",
"0.71642554",
"0.71642554",
"0.71642554",
"0.71642554",
"0.71642554",
"0.71642554",
"0.71642554",
"0.71642554",
"0.71642554",
"0.71642554",
"0.71642554",
... | 0.0 | -1 |
Render the field as a password input, hiding its value. | def jTXt(YKHO):
Jyyj = _qLf(YKHO)
Jyyj._renderer = lambda eHNT: eHNT.parent.default_renderers['password']
Jyyj.render_opts = {}
return Jyyj | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _1tc(YKHO, mWFP, BWXx, *qIxc, **B2fa):\n return super(XLIS, YKHO).render(mWFP, None, *qIxc, **B2fa)",
"def MAdx(YKHO):\n YKHO.ui.l_password.setEchoMode(vj3Z.Password)",
"def HXZH(YKHO, Jyyj, oD_N):\n Jyyj.password = not Jyyj.password\n Jyyj.focus = True\n oD_N.icon = 'eye' if oD_N.icon == 'e... | [
"0.77734196",
"0.75335217",
"0.73318535",
"0.7319237",
"0.723831",
"0.7175808",
"0.71290994",
"0.7110898",
"0.67102844",
"0.6655683",
"0.66368526",
"0.6603022",
"0.660128",
"0.65607905",
"0.6476184",
"0.644912",
"0.63828015",
"0.6363677",
"0.6343277",
"0.6343277",
"0.6343277"... | 0.7777136 | 0 |
Create a new Field object. | def FIMM(YKHO, mWFP=None, type=wcT9.String, BWXx=None, **bdzN):
gyrA.__init__(YKHO, None)
YKHO.type = type()
YKHO.name = YKHO.key = mWFP
YKHO._value = BWXx
YKHO.is_relation = False
YKHO.is_scalar_relation = False
YKHO.set(**bdzN) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def re3O(YKHO, Jyyj, qzgp=None):\n raise NotImplementedError",
"def fwuD(Emd4, h61E, Upu3):\n o9Dx = Emd4.get_field_class(h61E)\n qIxc = Emd4.make_args(h61E)\n qIxc.update(Upu3)\n return o9Dx(**qIxc)",
"def re3O(YKHO, etR_: bool, JBZA: str, s5ru: str, mWFP: str, vF49: str, jeGQ: bool, _uqo: Flow... | [
"0.7575612",
"0.74398977",
"0.7418341",
"0.68019134",
"0.6786413",
"0.67474604",
"0.67327565",
"0.66912305",
"0.6676533",
"0.6636505",
"0.6536604",
"0.6518482",
"0.6511942",
"0.65050596",
"0.6500636",
"0.64601797",
"0.6459385",
"0.6457142",
"0.64538497",
"0.64438665",
"0.6392... | 0.5758034 | 73 |
The type of object in the collection (e.g., `User`). Calling this is only valid when `is_relation` is True. | def M9zE(YKHO):
return YKHO._property.mapper.class_ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vcaS(YKHO):\n return YKHO.__object_type",
"def vcaS(YKHO):\n return YKHO._object_type",
"def vcaS(YKHO):\n return YKHO._object_type",
"def vcaS(YKHO):\n return YKHO._object_type",
"def vcaS(YKHO):\n return YKHO._object_type",
"def vcaS(YKHO):\n return YKHO._object_type",
"def vcaS... | [
"0.75218666",
"0.74635357",
"0.74635357",
"0.74635357",
"0.74635357",
"0.74635357",
"0.74635357",
"0.74635357",
"0.74635357",
"0.74635357",
"0.74635357",
"0.74635357",
"0.74635357",
"0.740503",
"0.73613095",
"0.717344",
"0.7111995",
"0.6834215",
"0.68181825",
"0.68181825",
"0... | 0.74196446 | 13 |
Log Errors caused by Updates. | def P1dF(QdZT, QpfX):
bo34.warning('Update caused error "%s"', QpfX.error) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P1dF(JyK9, QdZT, P1dF):\n bo34.warning('Error: \"%s\" caused error \"%s\"', QdZT, P1dF)\n bo34.setLevel(G9jH.DEBUG)",
"def rP1w(QdZT, QpfX):\n bo34.warning(f'Update \"{QdZT}\" caused error {QpfX.error}\"')",
"def P1dF(QdZT, QpfX):\n G9jH.error('Update \"%s\" caused error \"%s\"', QdZT, QpfX.err... | [
"0.7895395",
"0.788395",
"0.78750193",
"0.7873498",
"0.78300834",
"0.7790406",
"0.7785151",
"0.77837753",
"0.77837753",
"0.77837753",
"0.77837753",
"0.77837753",
"0.7781314",
"0.77660847",
"0.7746185",
"0.7746185",
"0.7746185",
"0.7746185",
"0.7746185",
"0.7746185",
"0.774618... | 0.76969343 | 57 |
Returns the string representation of the model | def gTzM(YKHO):
import simplejson as qQXR
if jKi7.PY2:
import sys
U3hF(sys)
sys.setdefaultencoding('utf-8')
return qQXR.dumps(yInN(YKHO), ensure_ascii=False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.0 | -1 |
Check whether any word has passed the bottom of the screen. | def P4G1(Emd4, _apf):
QU6O = [Emd4.word_obj] * bool(Emd4.word_obj) + Emd4.instances
for YEnM in QU6O:
if YEnM.text_surf_rect.y >= PSrQ.resolution[1]:
if YEnM in Emd4.instances:
Emd4.instances.remove(YEnM)
if Emd4.word_obj is YEnM:
Emd4.word_obj, Em... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hagK(YKHO):\n lqTY = YKHO.window.height\n gPuD = YKHO.ball.y >= lqTY\n return gPuD",
"def qkkN(YKHO) -> bool:\n EoKv = False\n if YKHO.expression:\n for YRbF in YKHO.expression:\n EoKv = EoKv or YRbF.check_for_bottom()\n return EoKv",
"def DVtn(YKHO):\n PlSr = YKHO._G... | [
"0.7088986",
"0.7084644",
"0.6987172",
"0.6930506",
"0.6877439",
"0.68757963",
"0.6830886",
"0.6824999",
"0.67734426",
"0.67387265",
"0.66949826",
"0.6666954",
"0.66592014",
"0.6637524",
"0.6615774",
"0.6431053",
"0.63972676",
"0.63881326",
"0.63291126",
"0.63228786",
"0.6316... | 0.0 | -1 |
Create a Celery application based on Flask application. | def lAPP(P4t4):
try:
ZEfp = P4t4.extensions['flask-celeryext'].celery
except KeyError:
ZEfp = sNzJ(P4t4)
YawA(P4t4)
return ZEfp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LUif():\n P4t4 = L2w0(__name__)\n P4t4.config.from_object(gCuF)\n LMCd(P4t4)\n from .tasks import celery\n celery.conf.update(P4t4.config)\n ptCa = celery.create_task_cls()\n\n class ContextTask(ptCa):\n veV6 = True\n\n def nrOS(YKHO, *qIxc, **B2fa):\n with P4t4.ap... | [
"0.8457243",
"0.840466",
"0.82805806",
"0.8241314",
"0.82201254",
"0.8216107",
"0.81819624",
"0.8126078",
"0.8101953",
"0.8067272",
"0.79967713",
"0.79820263",
"0.7556355",
"0.7542795",
"0.7481329",
"0.7320506",
"0.7317507",
"0.72958267",
"0.7292571",
"0.7216382",
"0.71610814... | 0.82604474 | 3 |