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 |
|---|---|---|---|---|---|---|
r""" A util function to assert equality between DataFrame schemas `actual` and `expected`. | def oY0f(n5sN: StructType, aEqx: StructType):
if not isinstance(n5sN, JGNz):
raise JlXB(error_class='UNSUPPORTED_DATA_TYPE', message_parameters={'data_type': type(n5sN)})
if not isinstance(aEqx, JGNz):
raise JlXB(error_class='UNSUPPORTED_DATA_TYPE', message_parameters={'data_type': type(aEqx)})
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def J3WZ(*qIxc, **B2fa):\n return CwDs.testing.assert_frame_equal(*qIxc, **B2fa)",
"def kX3a(n5sN: Union[DataFrame, 'pandas.DataFrame', 'pyspark.pandas.DataFrame', List[Row]], aEqx: Union[DataFrame, 'pandas.DataFrame', 'pyspark.pandas.DataFrame', List[Row]], v5gZ: bool=False, LL2J: float=1e-05, rU28: float=1e... | [
"0.76983297",
"0.73875946",
"0.73732233",
"0.7292583",
"0.7259319",
"0.6952309",
"0.6891865",
"0.676894",
"0.675779",
"0.67065775",
"0.66105354",
"0.6542659",
"0.6516614",
"0.64949",
"0.6438868",
"0.6395335",
"0.6391977",
"0.63785875",
"0.63687503",
"0.63269514",
"0.6319671",... | 0.7725539 | 0 |
r""" A util function to assert equality between `actual` and `expected` (DataFrames or lists of Rows), with optional parameters `checkRowOrder`, `rtol`, and `atol`. Supports Spark, Spark Connect, pandas, and pandasonSpark DataFrames. For more information about pandasonSpark DataFrame equality, see the docs for `assertP... | def kX3a(n5sN: Union[DataFrame, 'pandas.DataFrame', 'pyspark.pandas.DataFrame', List[Row]], aEqx: Union[DataFrame, 'pandas.DataFrame', 'pyspark.pandas.DataFrame', List[Row]], v5gZ: bool=False, LL2J: float=1e-05, rU28: float=1e-08):
if n5sN is None and aEqx is None:
return True
elif n5sN is None:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C8ET(VztK, pZRn):\n VQvn = len(VztK.index)\n uBGT = len(pZRn.index)\n if VQvn != uBGT:\n return False\n df3h = list(VztK)\n YdQ0 = list(pZRn)\n if set(df3h) != set(YdQ0):\n return False\n for YRbF in range(VQvn):\n for fXN9 in df3h:\n if fXN9 in GzQI:\n ... | [
"0.69159925",
"0.6901112",
"0.68442774",
"0.6634684",
"0.65648437",
"0.65572244",
"0.6544937",
"0.6445347",
"0.63448954",
"0.6335299",
"0.62914133",
"0.6286389",
"0.6203698",
"0.6195336",
"0.61271876",
"0.60658383",
"0.6018451",
"0.5992225",
"0.59762865",
"0.5937835",
"0.5916... | 0.8470979 | 0 |
Compute the area of a circle. | def CUf1(r1VO):
mM0K = 3.1459
f0tD = mM0K * r1VO * r1VO
return f0tD | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yX2h(FV9o):\n return mM0K * FV9o.radius * FV9o.radius",
"def LA4l(r1VO):\n return r1VO",
"def f0tD(YKHO):\n yX2h = YKHO.radius * YKHO.radius * epAf.pi\n return yX2h",
"def yX2h(r1VO):\n f0tD = r1VO ** 2 * epAf.pi\n return f0tD",
"def yX2h(r1VO):\n return epAf.pi * r1VO ** 2",
"de... | [
"0.88504136",
"0.85048157",
"0.85001105",
"0.8386002",
"0.83100843",
"0.8227617",
"0.8169852",
"0.8162947",
"0.811259",
"0.811259",
"0.80413824",
"0.8018954",
"0.7989672",
"0.7985272",
"0.7985272",
"0.7925053",
"0.790935",
"0.7903146",
"0.7883748",
"0.7854282",
"0.77885884",
... | 0.8264187 | 5 |
Determines if a number is prime or not Assumes number >= 2. | def T1qg(FGW3):
if FGW3 <= 3:
return True
for YRbF in range(2, FGW3):
if FGW3 % YRbF == 0:
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def T1qg(FGW3):\n if FGW3 < 2:\n return False\n elif FGW3 == 2:\n return True\n elif FGW3 % 2 == 0:\n return False\n else:\n for WKvO in range(2, FGW3):\n if FGW3 % WKvO == 0:\n return False\n else:\n return True",
"def T1qg(FGW3... | [
"0.8489698",
"0.83052456",
"0.82943106",
"0.8213757",
"0.8149834",
"0.8135847",
"0.81108284",
"0.81106746",
"0.81100315",
"0.8079408",
"0.8075915",
"0.80657643",
"0.8062846",
"0.80615866",
"0.80513763",
"0.8051195",
"0.80415773",
"0.8012108",
"0.7976685",
"0.7965905",
"0.7959... | 0.81217796 | 6 |
Returns a list of all the prime numbers up to some point. | def V49s(jBPN=100):
rPed = []
for YRbF in range(2, jBPN + 1):
if T1qg(YRbF):
rPed.append(YRbF)
return rPed | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rPed(exwG):\n Aofo = []\n YRbF = 2\n while exwG > 0:\n if _f0Y(YRbF):\n Aofo += [YRbF]\n exwG -= 1\n YRbF += 1\n return Aofo",
"def rPed(exwG):\n return [YRbF for YRbF, Ty9i in enumerate(Cts7(exwG)) if Ty9i]",
"def B4V4():\n H5ew = []\n for wEf2 in r... | [
"0.7541519",
"0.7422097",
"0.74013466",
"0.7386543",
"0.7381085",
"0.7351718",
"0.7328013",
"0.7320042",
"0.73178786",
"0.730062",
"0.72995716",
"0.72492504",
"0.7247809",
"0.72209156",
"0.72175145",
"0.7160399",
"0.7154014",
"0.71406513",
"0.71346384",
"0.7105755",
"0.710436... | 0.7662729 | 0 |
test unauthorized updating of an article | def xQAV(YKHO):
geh0 = YKHO.client.put(gxEw('article', kwargs={'slug': YKHO.stored_articles[0].slug}), YKHO.article_data, content_type='application/json')
YKHO.assertEqual(geh0.status_code, jGRS.HTTP_401_UNAUTHORIZED) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WJKu(YKHO):\n yIBT = YKHO.create_article()\n h0TT = yIBT[0]\n eOtH = YKHO.create_article_user2()\n geh0 = YKHO.test_client.put(h0TT, YKHO.article_update_data, format='json', HTTP_AUTHORIZATION=eOtH)\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_403_FORBIDDEN)",
"def bjk5(YKHO):\n bD7m = gx... | [
"0.82482296",
"0.7753639",
"0.774073",
"0.76733994",
"0.7619352",
"0.7618392",
"0.74182343",
"0.7311979",
"0.7310526",
"0.7160378",
"0.7158078",
"0.71107006",
"0.7110057",
"0.7068463",
"0.7053723",
"0.70387393",
"0.7034788",
"0.6986374",
"0.69689155",
"0.696123",
"0.6958695",... | 0.847877 | 0 |
Escape string if it needed | def Z58w(l5Ny, xAU6):
if hasattr(l5Ny, '__html__'):
return yLCI(l5Ny.__html__())
if i7k0(xAU6):
return IguF(yLCI(l5Ny))
return yLCI(l5Ny) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Cizj(l5Ny):\n return IguF(l5Ny)",
"def cNUU(YKHO, BWXx):\n if '\"' in BWXx and \"'\" in BWXx:\n Tmdx = BWXx.split('\"')\n Aofo = ['concat(']\n for Npeo in Tmdx:\n Aofo.append('\"%s\"' % Npeo)\n Aofo.append(', \\'\"\\', ')\n Aofo = Aofo[0:-1]\n if... | [
"0.7720622",
"0.734751",
"0.72297686",
"0.715109",
"0.7141102",
"0.713001",
"0.71193695",
"0.70924956",
"0.70805585",
"0.7066848",
"0.7053307",
"0.7052727",
"0.7048034",
"0.7025315",
"0.6966079",
"0.6952095",
"0.69413227",
"0.691578",
"0.6883722",
"0.6872962",
"0.6847334",
... | 0.62162924 | 69 |
Returns the string uniquely identifying the objects supported by this adapter. | def S5Rp(YKHO):
return YKHO._persistentHandler.GetKind() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return 'v{} ({} objects)'.format(YKHO.get_version(), len(YKHO.objects))",
"def mxw9(YKHO):\n if hasattr(YKHO, 'id'):\n return str(YKHO.id)\n else:\n return 'obj%s' % id(YKHO)",
"def H5ew(YKHO) -> str:\n return f'{YKHO.model.__module__}.{YKHO.model.__qualname__}'",
... | [
"0.6308345",
"0.5993113",
"0.5831586",
"0.58136255",
"0.57996637",
"0.5786493",
"0.5757091",
"0.57227117",
"0.5686962",
"0.5657973",
"0.5656497",
"0.5644706",
"0.56261927",
"0.55964285",
"0.55956435",
"0.55956435",
"0.55956435",
"0.5589599",
"0.5574854",
"0.55719423",
"0.5571... | 0.0 | -1 |
Adds a name to the ``BAD_DEFAULT_NAMES`` constant. | def DSay(YKHO, mWFP):
global BAD_DEFAULT_NAMES
T_aq.append(mWFP) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AMQQ(YKHO):\n pass",
"def JGxW(YKHO, mWFP: str) -> None:\n YKHO._names.append(mWFP)",
"def xNqL(YKHO):\n YKHO.do_test_bad_name('', 'tmp/frog')\n YKHO.do_test_bad_name('.b', 'tmp/frog')\n YKHO.do_test_bad_name('a b', 'tmp/frog')\n YKHO.do_test_bad_name('a-b', 'tmp/frog')",
"def HeOm(YKHO... | [
"0.59021527",
"0.5378136",
"0.5306618",
"0.52976656",
"0.52873755",
"0.5273112",
"0.5210146",
"0.518594",
"0.5145325",
"0.51442534",
"0.51395917",
"0.5127722",
"0.5116573",
"0.5061738",
"0.50417435",
"0.50306684",
"0.50078964",
"0.49940425",
"0.49924943",
"0.49736753",
"0.495... | 0.86145234 | 0 |
Create gaussian random neurons with mean 0 and std 0.1 Paramters | def RxjY(ROpF, yokr, mWFP, IHts=False):
if len(ROpF) == 4:
usVx = ROpF[0] * ROpF[1] * ROpF[2] + ROpF[3]
else:
usVx = ROpF[0] + ROpF[1]
import math
z2bo = math.sqrt(3.0 / usVx)
MuED = ZylS.truncated_normal(ROpF, stddev=z2bo, seed=yokr)
if IHts:
with ZylS.device('/gpu'):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bQkB(ROpF, JBMS, M1Jx):\n return ZylS.random.normal(shape=ROpF, mean=JBMS, stddev=M1Jx, dtype=ZylS.float32)",
"def FEua(Oa1e, khtY, XkN1):\n JBMS = khtY.attr('mean')\n M1Jx = khtY.attr('std')\n ROpF = khtY.attr('shape')\n yokr = khtY.attr('seed')\n yDqo = khtY.attr('dtype')\n yDqo = ON1p... | [
"0.7242885",
"0.70618623",
"0.7009105",
"0.69712627",
"0.69441926",
"0.6901758",
"0.6845194",
"0.6832439",
"0.6757164",
"0.6742909",
"0.6687057",
"0.6656068",
"0.65831083",
"0.655626",
"0.655626",
"0.6539461",
"0.65062827",
"0.6494746",
"0.64495975",
"0.643922",
"0.64358133",... | 0.0 | -1 |
Create the Sigmoid activations | def jjTV(WKvO, oug5):
return ZylS.nn.sigmoid(ZylS.nn.bias_add(WKvO, oug5)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m1Hg(EcVT, XcU5, Fg_i):\n sdgB = oyIN.dot(EcVT, XcU5) + Fg_i\n return 1.0 / (1.0 + oyIN.exp(-sdgB))",
"def _4Ie(YKHO):\n YKHO.assertEqual([0.5, 0.5], list(fmAV.Sigmoid().output(oyIN.array([0, 0]))))\n YKHO.assertEqual([0.25, 0.25], list(fmAV.Sigmoid().derivative(oyIN.array([0, 0]))))",
"def YJA... | [
"0.7342629",
"0.71994466",
"0.7126781",
"0.70241576",
"0.7006406",
"0.69733554",
"0.6897453",
"0.6887438",
"0.682553",
"0.67981684",
"0.67945796",
"0.67911595",
"0.6777103",
"0.67690724",
"0.67690724",
"0.6767741",
"0.67479026",
"0.67454016",
"0.67336917",
"0.6723501",
"0.672... | 0.66957223 | 29 |
Load a dataset from a pseudoJSON format into a dataframe using regular expressions. | def AyYN(pmON: str) -> rLdf.DataFrame:
with open(pmON) as eHNT:
nPrm = []
pGHf = 0
for kbdK, zFiD in enumerate(eHNT):
try:
C3q7 = ZbWC.sub("(?<={|\\s)'|'(?=,|:|})", '"', zFiD)
C3q7 = ZbWC.sub('(?<!{)(?<!,\\s|:\\s)\\"(?!,|:|})', '\\"', C3q7)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def onUf(nPrm: str) -> CwDs.DataFrame:\n zZcM = qQXR.loads(nPrm)\n if isinstance(zZcM, list):\n return CwDs.DataFrame.from_records(zZcM)\n if 'instances' in zZcM:\n return CwDs.DataFrame.from_records(zZcM['instances'])\n if 'inputs' in zZcM:\n return CwDs.DataFrame.from_dict(zZcM['... | [
"0.65512294",
"0.64251316",
"0.63482034",
"0.626196",
"0.6242598",
"0.62420356",
"0.6228313",
"0.6217159",
"0.61914164",
"0.61044127",
"0.60880584",
"0.602224",
"0.5987146",
"0.5970327",
"0.59500456",
"0.5946346",
"0.59037405",
"0.58589023",
"0.58433455",
"0.583905",
"0.57889... | 0.707326 | 0 |
Test whether simple language assignments work. | def LoxY(YKHO):
with y_o0.override('ca-fr'):
WKvO = KKvy(id=99)
YKHO.assertEqual(WKvO.get_current_language(), y_o0.get_language())
YKHO.assertEqual(y_o0.get_language(), 'ca-fr')
WKvO.shared = 'SHARED'
WKvO.tr_title = 'TRANS_CA'
WKvO.save()
with y_o0.override('en'):
WK... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JJuA(YKHO):\n from pydsl.Check import PLYChecker\n from pydsl.contrib.grammar import example_ply\n from pydsl.Grammar.Definition import PLYGrammar\n k_d6 = PLYGrammar(example_ply)\n ZUyI = PLYChecker(k_d6)\n YKHO.assertTrue(ZUyI.check('O'))\n YKHO.assertTrue(ZUyI.check(['O']))\n YKHO.as... | [
"0.6310641",
"0.6060468",
"0.599178",
"0.56740606",
"0.56232727",
"0.5611379",
"0.55829835",
"0.5528159",
"0.5500011",
"0.5457057",
"0.54499966",
"0.54244083",
"0.5416987",
"0.53762317",
"0.53744453",
"0.5359855",
"0.53310466",
"0.5323407",
"0.5316347",
"0.53136516",
"0.53128... | 0.0 | -1 |
Test whether the fallback language will be returned. | def H_QE(YKHO):
WKvO = KKvy()
WKvO.set_current_language(YKHO.conf_fallback)
WKvO.tr_title = 'TITLE_FALLBACK'
WKvO.set_current_language(YKHO.other_lang1)
WKvO.tr_title = 'TITLE_XX'
WKvO.save()
with y_o0.override(YKHO.other_lang2):
WKvO = KKvy.objects.get(pk=WKvO.pk)
YKHO.asser... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a6ZF(YKHO):\n WKvO = KKvy()\n WKvO.set_current_language(YKHO.conf_fallback)\n WKvO.tr_title = 'TITLE_FALLBACK'\n YKHO.assertEqual(WKvO.safe_translation_getter('tr_title', language_code=YKHO.other_lang1), 'TITLE_FALLBACK')",
"def N7dR(rQow):\n if rQow in yR_P.availableLanguages:\n return... | [
"0.6848912",
"0.68328774",
"0.6577089",
"0.6419347",
"0.63697207",
"0.6334066",
"0.63288254",
"0.62855226",
"0.6222532",
"0.621996",
"0.61875546",
"0.61556274",
"0.6140968",
"0.6094647",
"0.6042376",
"0.60421646",
"0.60056376",
"0.60056376",
"0.5968734",
"0.5946268",
"0.59452... | 0.6194439 | 10 |
Test whether the fallback language will be returned, even when the current language does not have a translation. | def a6ZF(YKHO):
WKvO = KKvy()
WKvO.set_current_language(YKHO.conf_fallback)
WKvO.tr_title = 'TITLE_FALLBACK'
YKHO.assertEqual(WKvO.safe_translation_getter('tr_title', language_code=YKHO.other_lang1), 'TITLE_FALLBACK') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oFA8(WKvO):\n a1PO = bGrB(WKvO)\n if a1PO == WKvO:\n vC9B = MKlR.get_lang()\n MKlR.set_lang('en', graceful_fail=True)\n a1PO = bGrB(WKvO)\n if vC9B and vC9B[0] != 'en':\n MKlR.set_lang(vC9B[0])\n return a1PO",
"def H_QE(YKHO):\n WKvO = KKvy()\n WKvO.set_c... | [
"0.68344426",
"0.6577702",
"0.6505614",
"0.64714944",
"0.6422906",
"0.6281233",
"0.6223175",
"0.6146871",
"0.6022335",
"0.5994682",
"0.59941596",
"0.5975893",
"0.59654105",
"0.5961348",
"0.59572476",
"0.5945812",
"0.5936099",
"0.59205437",
"0.5916614",
"0.5916575",
"0.5916294... | 0.7377528 | 0 |
Test whether a failure in the fallback language can return any saved language (if configured for it). | def Ov9H(YKHO):
WKvO = edPo()
WKvO.set_current_language(YKHO.other_lang1)
WKvO.tr_title = 'TITLE_XX'
WKvO.save()
with y_o0.override(YKHO.other_lang2):
WKvO = edPo.objects.get(pk=WKvO.pk)
YKHO.assertRaises(Km_I, lambda: WKvO._get_translated_model(use_fallback=True))
YKHO.asser... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a6ZF(YKHO):\n WKvO = KKvy()\n WKvO.set_current_language(YKHO.conf_fallback)\n WKvO.tr_title = 'TITLE_FALLBACK'\n YKHO.assertEqual(WKvO.safe_translation_getter('tr_title', language_code=YKHO.other_lang1), 'TITLE_FALLBACK')",
"def H_QE(YKHO):\n WKvO = KKvy()\n WKvO.set_current_language(YKHO.c... | [
"0.7212526",
"0.6849443",
"0.6600157",
"0.6560149",
"0.6535749",
"0.64586776",
"0.64235204",
"0.6392549",
"0.6263481",
"0.62573576",
"0.6206418",
"0.6178404",
"0.61254287",
"0.60736537",
"0.6070547",
"0.6039757",
"0.6025215",
"0.6023762",
"0.5987965",
"0.594508",
"0.5931846",... | 0.68017066 | 2 |
Create a new point at the given coordinates. | def FIMM(YKHO, gdGq, VBPk):
YKHO.x = gdGq
YKHO.y = VBPk | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wTOg(YKHO, jNOo, **xAU6):\n if 'fill' not in xAU6:\n xAU6['fill'] = YKHO.variables.foreground_color\n o4D3, si3g = (jNOo[0] - YKHO.variables.point_size, jNOo[1] - YKHO.variables.point_size)\n ajwV, skBL = (jNOo[0] + YKHO.variables.point_size, jNOo[1] + YKHO.variables.point_size)\n fi6e = YKH... | [
"0.7404491",
"0.7181391",
"0.71479046",
"0.71479046",
"0.7141722",
"0.6773949",
"0.67493427",
"0.650266",
"0.6469327",
"0.64393455",
"0.6358204",
"0.63443464",
"0.6252241",
"0.62502253",
"0.6229518",
"0.62291485",
"0.6227966",
"0.6197312",
"0.61617047",
"0.61275893",
"0.60861... | 0.0 | -1 |
Extract the sender's user name (along with domain) from a message. | def dibm(YKHO, p9K5):
YLAH = p9K5.getFrom()
cM24 = p9K5.getType()
NtEF = YLAH.getNode()
zrIJ = YLAH.getDomain()
if cM24 == 'chat':
return '%s@%s' % (NtEF, zrIJ)
else:
return '' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NgsT(Ol8d):\n B9Lv = Ol8d['payload']['headers']\n for WBPg in B9Lv:\n if WBPg['name'] == 'From':\n return WBPg['value']",
"def GsrO(Gfdf):\n tO9_ = D3lj.message_from_string(Gfdf)\n vC92 = tO9_['From']\n if vC92 is None:\n raise IOError('Parsing email failed. Aborting.'... | [
"0.71224266",
"0.670886",
"0.6625382",
"0.64819384",
"0.6446587",
"0.6266081",
"0.6256763",
"0.6192217",
"0.61241996",
"0.60984236",
"0.60064584",
"0.59985036",
"0.5958869",
"0.5958743",
"0.5937346",
"0.58827424",
"0.5855",
"0.5834904",
"0.5834348",
"0.5829208",
"0.58213013",... | 0.7252869 | 0 |
GIVEN association_schemas, schemas and expected schemas WHEN _combine_defined_expected_schemas is called with the association_schemas and schemas THEN the expected schemas are returned. | def tHOb(tttP, JIS1, pPxl):
IdEu = jE7E._combine_defined_expected_schemas(association_schemas=tttP, schemas=JIS1)
assert list(IdEu) == pPxl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Xl8I(YKHO):\n jGRS = MSBM.compare_schemas(YKHO.base_schema, YKHO.base_schema)\n assert jGRS == MSBM.Update.no_update",
"def cImY(YKHO):\n LQmj = qflg.get_supported_schemas()\n s2d9 = ['HAZUS_v1.0', 'SARA_v1.0', 'SUPPASRI2013_v2.0', 'Mavrouli_et_al_2014', 'Torres_Corredor_et_al_2017', 'Medina_2019... | [
"0.5959065",
"0.58535624",
"0.57733697",
"0.57481474",
"0.56645024",
"0.56559",
"0.5615618",
"0.55334675",
"0.54384345",
"0.5413236",
"0.5248974",
"0.5242514",
"0.5219947",
"0.52178687",
"0.516955",
"0.51643205",
"0.5131712",
"0.5037063",
"0.5019627",
"0.49969617",
"0.4936883... | 0.87451875 | 0 |
Returns a list of categories. | def LQuW(YKHO, QLAf=1):
return YKHO.execute('metaWeblog.getCategories', QLAf, YKHO.username, YKHO.password) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N3tc(YKHO):\n return YKHO.categories",
"def LeZt(YKHO) -> x1iM[str]:\n return YKHO._categories",
"def LeZt(YKHO):\n h50c = YKHO.game_categories.all()\n return [gigf.category for gigf in h50c]",
"def LeZt(YKHO):\n DpUl = YKHO.con.execute('select category from cc')\n return [Csk6[0] for C... | [
"0.8440817",
"0.8315814",
"0.8314017",
"0.8310888",
"0.83058816",
"0.82756895",
"0.82337904",
"0.8194744",
"0.8162497",
"0.81154656",
"0.81095296",
"0.80690354",
"0.80144095",
"0.79708874",
"0.79260206",
"0.7908823",
"0.78879285",
"0.78876674",
"0.7869511",
"0.7858786",
"0.78... | 0.7163902 | 58 |
Returns the template type identifed by templateType | def DAt9(YKHO, umgu, QLAf=1):
return YKHO.execute('metaWeblog.getTemplate', YKHO.appkey, QLAf, YKHO.username, YKHO.password, umgu) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qm1k(YKHO, xr_q: Union[TemplateType, str]) -> str:\n return YKHO.options.get('templates', {}).get(xr_q, xr_q)",
"def rPXJ(YKHO):\n ERo6 = YKHO.get_template_names()\n if ERo6:\n return ERo6[0]\n return None",
"def QNO6(OYqn):\n if not isinstance(OYqn, type):\n raise Exception('A... | [
"0.7040897",
"0.62723136",
"0.6185413",
"0.61840194",
"0.61464596",
"0.6105184",
"0.6094218",
"0.6094218",
"0.60608715",
"0.60608715",
"0.60573214",
"0.60502917",
"0.6006524",
"0.59371454",
"0.58809084",
"0.5845159",
"0.5840387",
"0.5825666",
"0.5813442",
"0.5795834",
"0.5787... | 0.592524 | 14 |
Sets the new template value for templateType | def yNOe(YKHO, rPXJ, umgu, QLAf=1):
return YKHO.execute('metaWeblog.setTemplate', YKHO.appkey, QLAf, YKHO.username, YKHO.password, rPXJ, umgu) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yNOe(YKHO, mWFP, BWXx):\n YKHO.templates[mWFP] = BWXx",
"def Yfby(YKHO, rPXJ):\n YKHO.template = rPXJ",
"def rPXJ(YKHO, BWXx: str):\n YKHO._template = BWXx",
"def rPXJ(YKHO, rPXJ):\n YKHO._template = rPXJ",
"def rPXJ(YKHO, rPXJ):\n YKHO._template = rPXJ",
"def rPXJ(YKHO, rPXJ):\n YK... | [
"0.72401804",
"0.69655174",
"0.6950046",
"0.6802819",
"0.67317826",
"0.67317826",
"0.6559379",
"0.64316505",
"0.6042992",
"0.6042992",
"0.60326844",
"0.60045385",
"0.5961694",
"0.5880146",
"0.5880146",
"0.5879733",
"0.5845343",
"0.5827922",
"0.5739706",
"0.5727141",
"0.571689... | 0.6361871 | 8 |
Sample images from the generator. Images are returned as a 4D tensor of values between 1 and 1. Dimensions are (number, channels, height, width). Returns the tensor on cpu. | def S3VX(YKHO, a7E5=None, mLGw=None):
mLGw = YKHO.batch_size if mLGw is None else mLGw
a7E5 = YKHO.noise_fn(mLGw) if a7E5 is None else a7E5
with ht2j.no_grad():
gGnb = YKHO.generator(a7E5)
gGnb = gGnb.cpu()
return gGnb | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C6M2(YKHO):\n oOCl = oyIN.random.normal(0, 1, [YKHO.batch_size, YKHO.n_z])\n Ynfo = YKHO.sess.run(YKHO.gen_img, feed_dict={YKHO.z: oOCl})\n return Ynfo",
"def FUjd(c2Yh, VCFe, Y_cu):\n epBp = iQnE(FQf7(oyIN.random.normal(0, 1, (VCFe ** 2, qIxc.latent_dim))))\n Crrw = oyIN.array([mLGw for bGrB ... | [
"0.71397203",
"0.6762263",
"0.66119605",
"0.65456355",
"0.65301275",
"0.63306653",
"0.6296912",
"0.6291886",
"0.6173806",
"0.6147632",
"0.61286056",
"0.61251837",
"0.6118454",
"0.6080944",
"0.6076369",
"0.6019585",
"0.5981345",
"0.59795886",
"0.59572834",
"0.5936184",
"0.5931... | 0.58694637 | 27 |
Get the front element. | def T7C_(YKHO) -> int:
if not YKHO.empty():
return YKHO.queue[0]
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uW34(YKHO):\n VnzS = YKHO.queue[YKHO.front]\n return VnzS\n pass",
"def uW34(YKHO):\n if not YKHO.isEmpty():\n return YKHO._data[0]\n else:\n return -1",
"def VnzS(YKHO):\n return YKHO.queue[0] if not YKHO.empty() else None",
"def vYJ5(YKHO):\n if YKHO.items:\n r... | [
"0.82009244",
"0.79261875",
"0.7852642",
"0.7791182",
"0.77886623",
"0.75723046",
"0.752337",
"0.7510604",
"0.7478953",
"0.7379256",
"0.7379256",
"0.734284",
"0.7323573",
"0.7320296",
"0.7291721",
"0.72772557",
"0.7269801",
"0.72657627",
"0.7253295",
"0.72355044",
"0.72213495... | 0.0 | -1 |
Returns whether the queue is empty. | def lsmZ(YKHO) -> bool:
if YKHO.queue is not None and len(YKHO.queue) > 0:
print('len > 0')
return False
else:
print('len = 0')
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FBfn(YKHO):\n return len(YKHO.the_queue) == 0",
"def FBfn(YKHO):\n return len(YKHO.__queue) > 0",
"def FBfn(YKHO):\n return len(YKHO.queue) == 0",
"def FBfn(YKHO):\n return len(YKHO.queue) == 0",
"def FBfn(YKHO):\n return YKHO.queue == []",
"def FBfn(YKHO):\n return not YKHO._queue"... | [
"0.9269721",
"0.92503",
"0.92358637",
"0.92358637",
"0.915549",
"0.9098092",
"0.9094519",
"0.9092212",
"0.9072709",
"0.9053566",
"0.8920166",
"0.8913699",
"0.8877523",
"0.8843482",
"0.8843482",
"0.88358456",
"0.88035",
"0.8757838",
"0.87572837",
"0.87309694",
"0.8628997",
"... | 0.86455876 | 20 |
Dot product of a multidimensional array `X` with `y` The dimensions in `dims_to_omit` will not be summed across during dot product | def frHZ(EcVT, LVAh, zWOA=None, K6cM=False):
EcVT = BfDw.to_numpy(EcVT)
LVAh = BfDw.to_numpy(LVAh)
if BfDw.is_arr_of_arr(EcVT):
Htse = (oyIN.arange(0, len(LVAh)) + EcVT.ndim - len(LVAh)).astype(int)
else:
' \n Deal with particular use case - see above @TODO \n '
if ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dkyL(EcVT, WKvO, zWOA=None):\n if WKvO.dtype == object:\n Htse = (oyIN.arange(0, len(WKvO)) + EcVT.ndim - len(WKvO)).astype(int)\n else:\n if WKvO.shape[0] != EcVT.shape[1]:\n \"\\n Case when the first dimension of `x` is likely the same as the first dimension of `A`\\... | [
"0.7115924",
"0.6953984",
"0.6933321",
"0.68162864",
"0.6706298",
"0.6659779",
"0.65913343",
"0.65912616",
"0.65912616",
"0.65912616",
"0.65912616",
"0.658698",
"0.6584329",
"0.64502925",
"0.64465165",
"0.6437212",
"0.6432815",
"0.6425201",
"0.63853264",
"0.63719",
"0.6287879... | 0.7780148 | 0 |
Computes the softmax function on a set of values | def N93T(pImw, u4lp=True):
pImw = BfDw.to_numpy(pImw)
hlel = []
if BfDw.is_arr_of_arr(pImw):
for YRbF in range(len(pImw.values)):
hlel.append(N93T(pImw[YRbF]), return_numpy=True)
hlel = pImw - pImw.max(axis=0)
hlel = oyIN.exp(hlel)
hlel = hlel / oyIN.sum(hlel, axis=0)
if ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N93T(hkxX):\n nwEM = oyIN.exp(hkxX)\n return nwEM / sum(nwEM)",
"def N93T(WKvO):\n \"\"\"\"\"\"\n return kLQb(WKvO) / sum(kLQb(WKvO), axis=0)",
"def N93T(WKvO):\n return oyIN.exp(WKvO) / oyIN.sum(oyIN.exp(WKvO), axis=0)",
"def N93T(WKvO):\n return oyIN.exp(WKvO) / oyIN.sum(oyIN.exp(WKvO... | [
"0.8528085",
"0.8507878",
"0.8450174",
"0.84251046",
"0.8408506",
"0.83823514",
"0.83823514",
"0.83611655",
"0.83611655",
"0.83611655",
"0.83611655",
"0.83611655",
"0.83611655",
"0.83611655",
"0.83611655",
"0.8348335",
"0.83306015",
"0.82923174",
"0.8276887",
"0.825371",
"0.8... | 0.0 | -1 |
Dot product of a multidimensional array with `x` Pytorch version, using Tensor instances | def dkyL(EcVT, WKvO, zWOA=None):
if WKvO.dtype == object:
Htse = (oyIN.arange(0, len(WKvO)) + EcVT.ndim - len(WKvO)).astype(int)
else:
if WKvO.shape[0] != EcVT.shape[1]:
"\n Case when the first dimension of `x` is likely the same as the first dimension of `A`\n ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def klFI(ZPkg, YJkM):\n return [ht2j.sum(WKvO * LVAh).item() for WKvO, LVAh in zip(ZPkg, YJkM)]",
"def uYbU(WKvO, WZcn):\n return nMvt.squeeze(nMvt.dot(WKvO, nMvt.expand_dims(WZcn)), axis=-1)",
"def uYbU(WKvO, WZcn):\n if nMvt.backend() == 'tensorflow':\n return nMvt.squeeze(nMvt.dot(WKvO, nMvt... | [
"0.71418947",
"0.7107715",
"0.7055948",
"0.7055948",
"0.7055948",
"0.7055948",
"0.7044271",
"0.70261943",
"0.70071626",
"0.69877404",
"0.6953907",
"0.6940456",
"0.6814771",
"0.6814771",
"0.6766073",
"0.6666709",
"0.66335356",
"0.66203845",
"0.64884347",
"0.6363446",
"0.634066... | 0.76654434 | 0 |
Assert that a request to get the list of financing statements by account works as expected. | def lf9n(cuiw, x0hE, DvJO, QoB4, Tf5Y, jGRS, KISn):
MOPg = None
if KISn:
MOPg = FkU2(DvJO, Tf5Y)
else:
MOPg = O9Yb(DvJO, Tf5Y)
geh0 = x0hE.get('/api/v1/financing-statements', headers=MOPg)
assert geh0.status_code == jGRS | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uAXt(YKHO):\n pass",
"def KVPY(YKHO):\n pass",
"def yOAJ(YKHO):\n pass",
"def Rm7n(cuiw, x0hE, DvJO, QoB4, Tf5Y, jGRS, KISn, JTXy):\n wk5E.config.update(AUTH_SVC_URL=p4iT)\n MOPg = None\n if jGRS == qed_.UNAUTHORIZED and QoB4.startswith('Report'):\n MOPg = y5nS(DvJO, Tf5Y)\n e... | [
"0.66166705",
"0.65591276",
"0.64822525",
"0.6476762",
"0.6369302",
"0.6149325",
"0.6130372",
"0.60753024",
"0.60651505",
"0.6049486",
"0.603502",
"0.59404",
"0.59388465",
"0.58264506",
"0.5817997",
"0.5815823",
"0.58110297",
"0.58095855",
"0.5800521",
"0.5799558",
"0.5786518... | 0.77414936 | 0 |
Assert that a valid registration statement request payment details setup works as expected. | def r8KG(cuiw, x0hE, DvJO, QDsj, AoQ6, JTXy, UXqs, BWXx, rWx5):
l6D9 = AS0T()
l6D9.base_registration_num = JTXy
l6D9.registration_type = QDsj
l6D9.registration_type_cl = AoQ6
l6D9.life = rWx5
iQG7 = efpG(l6D9)
assert iQG7
assert iQG7['label'] == UXqs
assert iQG7['value'] == BWXx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def udYd(YKHO):\n pass",
"def A6c_(YKHO):\n BGqR = YKHO.form_data()\n L03z = dS5Q(data=BGqR)\n YKHO.assertTrue(L03z.is_valid())",
"def S5mx(YKHO):\n YKHO.tc_id = 'Ts_009'\n YKHO.tc_desc = 'Verify user is able to register into the application with existing email id'\n YKHO.tc_step = 'TC Sta... | [
"0.689102",
"0.66715384",
"0.65011936",
"0.64929",
"0.63131696",
"0.6284002",
"0.62742704",
"0.62742704",
"0.625769",
"0.6255785",
"0.6253347",
"0.62246287",
"0.620609",
"0.62058455",
"0.62017286",
"0.6190478",
"0.61643046",
"0.6083413",
"0.6055412",
"0.6051621",
"0.6037832",... | 0.6471333 | 4 |
Retrieves and returns an operator function from the operators dictionary | def UdlG(YKHO, seET):
OMwU = YKHO.operators_dict[seET]['function']
return OMwU | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OfrP(H5ew):\n if H5ew.startswith('re_'):\n seET = oyIN.real\n aRpU = H5ew[3:]\n elif H5ew.startswith('im_'):\n seET = oyIN.imag\n aRpU = H5ew[3:]\n elif H5ew.startswith('abs_'):\n seET = oyIN.abs\n aRpU = H5ew[4:]\n else:\n seET = None\n aRpU ... | [
"0.7313074",
"0.6987077",
"0.69248444",
"0.690362",
"0.6759537",
"0.67052007",
"0.66636276",
"0.66033304",
"0.6590329",
"0.65899694",
"0.65899694",
"0.65899694",
"0.6580057",
"0.65425295",
"0.6518205",
"0.6518205",
"0.6507782",
"0.645952",
"0.64503586",
"0.64333814",
"0.63877... | 0.8350798 | 0 |
== operator >>> a=vec4(1.0, 0.5, 1.8, 0.2) >>> b=vec4(0.3, 0.75, 0.5, 0.6) >>> c=vec4(0.3, 0.75, 0.5, 0.6) >>> print a==b 0 >>> print b==c 1 >>> print a==None 0 | def xa14(YKHO, Elif):
if isinstance(Elif, MYYA):
return YKHO.x == Elif.x and YKHO.y == Elif.y and (YKHO.z == Elif.z)
else:
return 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jSLS(YKHO):\n hQHm = lNLu(3, 4, 5)\n assert hQHm == [3, 4, 5]\n assert hQHm != [0, 2, 4]\n jlSq = lNLu(3.0, 4.0, 5.0)\n assert hQHm == jlSq\n bUZ8 = lNLu(2, 2)\n assert hQHm != bUZ8",
"def JutH(YKHO, jzdc, Fg_i):\n return jzdc == Fg_i",
"def HNkk():\n Ty9i = lNLu(1.0)\n lU6q(T... | [
"0.71596485",
"0.6752081",
"0.6558199",
"0.64226145",
"0.6393129",
"0.63800573",
"0.6372398",
"0.63587886",
"0.62853384",
"0.6281824",
"0.62749404",
"0.6266902",
"0.6252037",
"0.62360805",
"0.6228141",
"0.6159024",
"0.61418253",
"0.61297715",
"0.60959065",
"0.60959065",
"0.60... | 0.7216642 | 0 |
!= operator >>> a=vec4(1.0, 0.5, 1.8, 0.2) >>> b=vec4(0.3, 0.75, 0.5, 0.6) >>> c=vec4(0.3, 0.75, 0.5, 0.6) >>> print a!=b 1 >>> print b!=c 0 >>> print a!=None 1 | def Vdqg(YKHO, Elif):
if isinstance(Elif, MYYA):
return YKHO.x != Elif.x or YKHO.y != Elif.y or YKHO.z != Elif.z
else:
return 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Ty9i):\n return not YKHO == Ty9i",
"def Ef6G(YKHO):\n jzdc = ei4T.OpaqueObject(YKHO.bytes_a, aVkO.OpaqueDataType.NONE)\n Fg_i = ei4T.OpaqueObject(YKHO.bytes_a, aVkO.OpaqueDataType.NONE)\n YKHO.assertFalse(jzdc != Fg_i)\n YKHO.assertFalse(Fg_i != jzdc)",
"def rNcD():\n Ty9i = lN... | [
"0.67293215",
"0.6710038",
"0.6705562",
"0.66843194",
"0.66678643",
"0.6649943",
"0.6638707",
"0.65897065",
"0.6585865",
"0.6579708",
"0.65600467",
"0.6547943",
"0.6546595",
"0.6506967",
"0.6465807",
"0.6460124",
"0.6458504",
"0.6458486",
"0.64293873",
"0.6391207",
"0.6371383... | 0.7350774 | 0 |
Return the length of the vector. abs(v) is equivalent to v.length(). >>> a=vec4(1.0, 0.5, 1.8, 0.2) >>> print abs(a) 2.12837966538 | def PKV0(YKHO):
return epAf.sqrt(YKHO * YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def L3jt(Ty9i):\n return PZyS(s2vS(Ty9i, Ty9i))",
"def u54L(he6J):\n return oyIN.linalg.norm(he6J)",
"def u54L(Ty9i: Vec2) -> float:\n return PZyS(Ty9i.x ** 2 + Ty9i.y ** 2)",
"def AArG(iArr):\n return oyIN.linalg.norm(iArr)",
"def u54L(Ty9i):\n return epAf.sqrt(Ty9i[0] ** 2 + Ty9i[1] ** 2)"... | [
"0.71823514",
"0.7158193",
"0.71298605",
"0.70785236",
"0.6977913",
"0.6934305",
"0.6925117",
"0.6742262",
"0.6704664",
"0.6516641",
"0.6505409",
"0.64873105",
"0.6460217",
"0.64487803",
"0.64338255",
"0.64201725",
"0.64109606",
"0.63741386",
"0.62219065",
"0.6197205",
"0.616... | 0.0 | -1 |
Return normalized vector. >>> a=vec4(1.0, 0.5, 1.8, 1.2) >>> print a.normalize() (0.4107, 0.2053, 0.7392, 0.4928) | def NkkI(YKHO):
qJ40 = 1.0 / epAf.sqrt(YKHO * YKHO)
return MYYA(YKHO.x * qJ40, YKHO.y * qJ40, YKHO.z * qJ40, YKHO.w * qJ40) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NkkI(Ty9i):\n return Ty9i / oyIN.linalg.norm(Ty9i)",
"def UVvS(YKHO):\n hQHm = lNLu.ones(4)\n exwG = hQHm.norm()\n assert exwG == 2\n assert hQHm.normalize() == [0.5, 0.5, 0.5, 0.5]",
"def lvMM(YKHO):\n XOOk = F_On.Vector(4, 0, 0)\n YKHO.assertEqual(XOOk.normalize(), F_On.Vector(1, 0, ... | [
"0.788879",
"0.7861582",
"0.7850532",
"0.7795936",
"0.7792428",
"0.7788715",
"0.77336645",
"0.7667583",
"0.7648203",
"0.75915927",
"0.75636274",
"0.7538247",
"0.7512167",
"0.74981666",
"0.7475287",
"0.74209076",
"0.7387201",
"0.73497456",
"0.731963",
"0.72808266",
"0.7265521"... | 0.72553086 | 22 |
Gets the last monday from the current date. | def jmca():
yo7_ = oCzq()
if yo7_.date().weekday() == 0:
i8WE = yo7_.replace(hour=0, minute=0, second=0, microsecond=0)
else:
KsDi = kNM8('monday')
R9Hf = uHUx(7)
i8WE = KsDi - R9Hf
return i8WE | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def to5W():\n yo7_ = qcWV.date.today()\n K6CF = yo7_ - qcWV.timedelta(days=7)\n return K6CF - qcWV.timedelta(days=K6CF.isoweekday() - 1)",
"def Bool(YKHO):\n yo7_ = qcWV.date.today()\n ZRLU = yo7_.weekday()\n if ZRLU == 0:\n return yo7_\n LslM = yo7_ + fCoM(7 - ZRLU)\n return LslM"... | [
"0.80530095",
"0.75411814",
"0.70993084",
"0.61955106",
"0.6064312",
"0.6052801",
"0.5919568",
"0.59080815",
"0.58877736",
"0.5881692",
"0.58812904",
"0.5820446",
"0.5801678",
"0.5776073",
"0.5769336",
"0.56857544",
"0.5675953",
"0.56252724",
"0.56252724",
"0.56074405",
"0.55... | 0.8217596 | 0 |
Fakes kivy.app.App().user_data_dir behavior. On Android, `/sdcard/` is returned. | def bxMd():
kvcN = 'etheroll'
h_xa = Hy7s.path.join('/sdcard', kvcN)
h_xa = Hy7s.path.expanduser(h_xa)
if not Hy7s.path.exists(h_xa):
Hy7s.mkdir(h_xa)
return h_xa | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xe5l():\n return GkAb(wk5E.config['USER_DIR']) / 'data'",
"def bxMd(i1I_=None, w6CR=None, DpZH=None, NQKh=False):\n if Oz1B == 'win32':\n if w6CR is None:\n w6CR = i1I_\n PtXs = 'CSIDL_APPDATA' if NQKh else 'CSIDL_LOCAL_APPDATA'\n pmON = Hy7s.path.normpath(GyOh(PtXs))\n ... | [
"0.7553962",
"0.7316263",
"0.70587647",
"0.70180464",
"0.7005296",
"0.692841",
"0.6765933",
"0.66890043",
"0.66840297",
"0.6629934",
"0.6536314",
"0.6534623",
"0.6509561",
"0.6482653",
"0.64717263",
"0.6399371",
"0.63757616",
"0.6300804",
"0.6299296",
"0.62900484",
"0.6281457... | 0.8476021 | 0 |
Returns the full user store path. | def V4A1(Emd4):
bxMd = Emd4.user_data_dir()
eOIA = Hy7s.path.join(bxMd, 'store.json')
return eOIA | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eOIA(YKHO):\n return pmON.join(sEAN.store_home, YKHO._store_path)",
"def pmON(YKHO):\n pmON = Hy7s.path.join(YKHO.base_dir, YKHO.store().replace(' ', '_'), YKHO.package_name())\n return Hy7s.path.abspath(pmON)",
"def aREU(YKHO):\n return pmON.join(sEAN.user_home, YKHO._user_home_path)",
"def ... | [
"0.81895006",
"0.7218433",
"0.70371765",
"0.70076007",
"0.6771286",
"0.6631976",
"0.656026",
"0.6530616",
"0.6466402",
"0.6441794",
"0.6434768",
"0.64077437",
"0.63808817",
"0.63743067",
"0.6348079",
"0.6331507",
"0.63272524",
"0.63159424",
"0.630236",
"0.62826437",
"0.627674... | 0.8070438 | 1 |
Returns user Store object. | def niGF(Emd4):
eOIA = Emd4.get_store_path()
VUF1 = aPQn(eOIA)
return VUF1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oxS6(YKHO):\n return YKHO._store",
"def Ila5(YKHO, PObu: int) -> chU6:\n if PObu not in YKHO.user_store.keys():\n YKHO.user_store[PObu] = chU6()\n return YKHO.user_store[PObu]",
"def niGF(YKHO, EE2u: str) -> ImMB:\n pass",
"def niGF(EE2u: str):\n return LDOr.get_store(EE2u)",
"def... | [
"0.7637911",
"0.74381936",
"0.70836437",
"0.7053572",
"0.6722289",
"0.6647391",
"0.6490641",
"0.6461784",
"0.6457468",
"0.6434544",
"0.6426389",
"0.64130074",
"0.63642406",
"0.6328346",
"0.63175863",
"0.6257397",
"0.6242331",
"0.61393493",
"0.6101946",
"0.6097517",
"0.6048142... | 0.71066767 | 2 |
Convert PointcloudObject from json format to PointcloudObject class object. Raise error if object class name is not found in the given project meta. | def pktP(Emd4, nPrm, VsPg: ProjectMeta, vB84: Optional[KeyIdMap]=None):
FPCQ = nPrm[jwa9.OBJ_CLASS_NAME]
YtGk = VsPg.get_obj_class(FPCQ)
if YtGk is None:
raise RuntimeError(f'Failed to deserialize a object from JSON: class name {FPCQ!r} was not found in the given project meta.')
NBcv = nPrm.get(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pktP(Emd4, zHD8, nP0Q):\n nPrm = qQXR.loads(nP0Q)\n AU8u = zHD8.getPoint(nPrm['index'])\n assert AU8u.label == nPrm['label']\n return AU8u",
"def wW97(Emd4, G0K4):\n YGFP = qQXR.loads(G0K4)\n if 'metadata' in YGFP.keys():\n COFj = YGFP['metadata']\n return H1ja(COFj)",
"def ... | [
"0.5674716",
"0.56341666",
"0.5249367",
"0.5205585",
"0.5200604",
"0.5124668",
"0.51157826",
"0.5095639",
"0.509161",
"0.508861",
"0.50402766",
"0.50354743",
"0.50292784",
"0.4970865",
"0.4955115",
"0.49413005",
"0.4935173",
"0.49193874",
"0.4916021",
"0.4881285",
"0.4866979"... | 0.6292825 | 0 |
Check if arguments are bytearray type. | def yFdn(*qIxc, JfyU=None):
JfyU = JfyU or tq_1.stack()[2][3]
for SRYB in qIxc:
if not isinstance(SRYB, (bytearray, g760.abc.ByteString, g760.abc.MutableSequence)):
mWFP = type(SRYB).__name__
raise MmMn('Function {} expected bytearray, {} got instead.'.format(JfyU, mWFP)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ryFt(*qIxc, JfyU=None):\n JfyU = JfyU or tq_1.stack()[2][3]\n for SRYB in qIxc:\n if not isinstance(SRYB, (bytes, g760.abc.ByteString)):\n mWFP = type(SRYB).__name__\n raise lV9r('Function {} expected bytes, {} got instead.'.format(JfyU, mWFP))",
"def KRNN(nPrm):\n try:\... | [
"0.7123308",
"0.69805497",
"0.6775227",
"0.6613514",
"0.6410562",
"0.63643706",
"0.6336684",
"0.6321724",
"0.62752074",
"0.62711704",
"0.6221194",
"0.6170714",
"0.6151636",
"0.61204803",
"0.60709316",
"0.60700154",
"0.6061411",
"0.60583705",
"0.6043087",
"0.6032286",
"0.60289... | 0.805826 | 0 |
Check if arguments are valid IP fragments. | def Lz2l(*qIxc, JfyU=None):
JfyU = JfyU or tq_1.stack()[2][3]
for SRYB in qIxc:
rQG_(SRYB, func=JfyU)
mVzq = SRYB.get('bufid')
gTXJ(mVzq[3], func=JfyU)
xkIS(SRYB.get('mf'), func=JfyU)
j5az(mVzq[0], mVzq[1], func=JfyU)
yFdn(SRYB.get('header'), SRYB.get('payload'), ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hgVt(*qIxc, iquo, JfyU=None):\n JfyU = JfyU or tq_1.stack()[2][3]\n if 'IP' in iquo:\n Lz2l(*qIxc, func=JfyU)\n elif 'TCP' in iquo:\n e9Dd(*qIxc, func=JfyU)\n else:\n raise vDQH('Unknown fragmented protocol {}.'.format(iquo))",
"def fDZH(YKHO, *qIxc, **B2fa):\n D8Ke = B2fa... | [
"0.69496536",
"0.6913988",
"0.68251556",
"0.67215425",
"0.6707531",
"0.6686689",
"0.65425295",
"0.6470914",
"0.64500386",
"0.6441643",
"0.6431439",
"0.6421317",
"0.6419145",
"0.63725364",
"0.6369929",
"0.62483984",
"0.6155837",
"0.60663074",
"0.60530376",
"0.603464",
"0.60288... | 0.76423246 | 0 |
Index number of Node's parent. | def PAwq(YKHO, d6pt):
return (d6pt - 1) // 2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Bc1k(YKHO):\n return (YKHO.index - 1) // 2",
"def KwgP(YKHO, d6pt):\n return (d6pt - 1) // 2 if d6pt else 0",
"def _AKB(YKHO, d6pt):\n if d6pt == 0:\n print('index 0 has no parent')\n return None\n return (d6pt - 1) // 2",
"def uI3T(YKHO, _AKB):\n return 2 * _AKB + 1",
"def... | [
"0.8465723",
"0.84116554",
"0.8338773",
"0.8079576",
"0.8058377",
"0.7990692",
"0.7978887",
"0.79007167",
"0.7893246",
"0.7802129",
"0.7769121",
"0.77592045",
"0.76885056",
"0.7567606",
"0.7537025",
"0.7433137",
"0.7433137",
"0.7386975",
"0.7386975",
"0.73465246",
"0.7342386"... | 0.7914551 | 7 |
Push new node to heap. | def _jXH(YKHO, wEf2):
YKHO.high_low.append(wEf2)
try:
YKHO.compare_parent(YKHO.high_low.index(YKHO.high_low[-1]))
except (ValueError, IndexError):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _jXH(YKHO, Esd_):\n YKHO.data.append(Esd_)\n YKHO.heapify_up(len(YKHO.data) - 1)",
"def _jXH(YKHO, ZfUD):\n _eVy.heappush(YKHO.heap, ZfUD)",
"def _jXH(YKHO, WKvO):\n assert WKvO not in YKHO.rank\n YRbF = len(YKHO.heap)\n YKHO.heap.append(WKvO)\n YKHO.rank[WKvO] = YRbF\n YKHO.up(YRbF... | [
"0.8444514",
"0.7848727",
"0.78118044",
"0.78118044",
"0.7649651",
"0.76081616",
"0.7455478",
"0.74523085",
"0.74441534",
"0.74408734",
"0.7437499",
"0.7362907",
"0.7360342",
"0.73462677",
"0.7332794",
"0.7312991",
"0.7278878",
"0.7253293",
"0.72472167",
"0.7245877",
"0.72455... | 0.0 | -1 |
Returns a dictionary containing all \ keys/values of __dict__ of the instance | def MNRr(YKHO):
Op6c = YKHO.__dict__.copy()
Op6c['__class__'] = YKHO.__class__.__name__
Op6c['created_at'] = YKHO.created_at.isoformat()
Op6c['updated_at'] = YKHO.updated_at.isoformat()
return Op6c | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dict(YKHO):\n return YKHO.__dict__",
"def dict(YKHO):\n return YKHO.__dict__",
"def dict(YKHO):\n return YKHO.__dict__",
"def dict(YKHO):\n return YKHO.__dict__",
"def dict(YKHO):\n return YKHO.__dict__",
"def dict(YKHO):\n return YKHO.__dict__",
"def dict(YKHO):\n return YKHO.... | [
"0.8119648",
"0.8119648",
"0.8119648",
"0.8119648",
"0.8119648",
"0.8119648",
"0.8119648",
"0.8113213",
"0.80770403",
"0.8059921",
"0.80488795",
"0.7931788",
"0.78788424",
"0.7855015",
"0.7850087",
"0.7835467",
"0.7804142",
"0.78040427",
"0.77662045",
"0.77662045",
"0.7761186... | 0.0 | -1 |
Merge multiple peerattention vectors with softmax weighted sum. Summation weights are to be learned. | def moh8(k5Tt, wH3T):
assert wH3T == 'channels_last'
if vPBo.precision == 'bfloat16':
yDqo = ZylS.bfloat16
else:
yDqo = ZylS.float32
Zh3r = lambda: ZylS.random.truncated_normal([len(k5Tt)], mean=0.0, stddev=0.01, dtype=ZylS.float32)
c3Oi = ZylS.Variable(initial_value=Zh3r, trainable=... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def j2HH(YKHO, MS4g, xkyd):\n z_5M = ZylS.expand_dims(MS4g, 1)\n oLJ2 = ZylS.reduce_sum(ZylS.multiply(ZylS.nn.l2_normalize(xkyd, 2), ZylS.nn.l2_normalize(z_5M, 2)), axis=2, keepdims=True)\n return oLJ2",
"def VY2x(YKHO, MS4g, xkyd):\n z_5M = ZylS.expand_dims(MS4g, 1)\n oLJ2 = ZylS.reduce_sum(ZylS.... | [
"0.63174134",
"0.6019576",
"0.59645855",
"0.5860701",
"0.58158046",
"0.58050877",
"0.5740221",
"0.5724694",
"0.5657316",
"0.5654487",
"0.5631598",
"0.5629281",
"0.5627464",
"0.56265223",
"0.55272156",
"0.54916185",
"0.54543835",
"0.5452842",
"0.5412232",
"0.53938234",
"0.5389... | 0.6785601 | 0 |
Applies peerattention or selfattention to the input tensor. Depending on the attention_mode, this function either applies channelwise selfattention or peerattention. For the peerattention, the function combines multiple candidate attention vectors (given as attention_in), by learning softmaxsum weights described in the... | def MFAo(g4y1, JwyU=None, EuUk=None, B5Q2=False, wH3T='channels_last'):
assert wH3T == 'channels_last'
Ir5V = 2 if B5Q2 else 1
if JwyU == 'peer':
Fw3A = moh8(EuUk, wH3T)
else:
Fw3A = ZylS.reduce_mean(g4y1, [Ir5V, Ir5V + 1])
Fw3A = ZylS.layers.dense(inputs=Fw3A, units=g4y1.shape[-1], ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bass(g4y1, d6pt=None, JwyU=None, EuUk=None, B5Q2=False, wH3T='channels_last'):\n assert wH3T == 'channels_last'\n if vPBo.precision == 'bfloat16':\n yDqo = ZylS.bfloat16\n else:\n yDqo = ZylS.float32\n if B5Q2:\n z0aZ = 2\n FQtu = pNcW.conv3d_same_padding\n else:\n ... | [
"0.6992957",
"0.6568058",
"0.6156407",
"0.61359924",
"0.60557026",
"0.60174334",
"0.5929724",
"0.58681947",
"0.5831827",
"0.5756102",
"0.57403576",
"0.57319397",
"0.5724981",
"0.5673115",
"0.56562346",
"0.56551075",
"0.5627412",
"0.56231594",
"0.5611072",
"0.5598629",
"0.5582... | 0.7708854 | 0 |
Weighted summation of multiple tensors, while using peerattention. Summation weights are to be learned. Uses spatial max pooling and 1x1 conv. to match their sizes. Before the summation, each connection (i.e., each input) itself is scaled with channelwise peerattention. Notice that attention is applied for each connect... | def bass(g4y1, d6pt=None, JwyU=None, EuUk=None, B5Q2=False, wH3T='channels_last'):
assert wH3T == 'channels_last'
if vPBo.precision == 'bfloat16':
yDqo = ZylS.bfloat16
else:
yDqo = ZylS.float32
if B5Q2:
z0aZ = 2
FQtu = pNcW.conv3d_same_padding
else:
z0aZ = 1
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Sv4c(YKHO, g4y1):\n Sv4c = 0\n for YRbF in range(YKHO.num_inputs):\n Sv4c += YKHO.weights[YRbF] * g4y1[YRbF]\n return Sv4c",
"def Sv4c(SppC: torch.Tensor, v2uf: torch.Tensor) -> ht2j.Tensor:\n if v2uf.dim() == 2 and SppC.dim() == 3:\n return v2uf.unsqueeze(1).bmm(SppC).squeeze(1)\n ... | [
"0.64456135",
"0.64004964",
"0.6128083",
"0.5837993",
"0.5818645",
"0.57929534",
"0.5750522",
"0.57195956",
"0.57069093",
"0.5691577",
"0.5686715",
"0.5661932",
"0.5614349",
"0.5606911",
"0.56056756",
"0.55789816",
"0.55646145",
"0.55515784",
"0.55425936",
"0.55415326",
"0.55... | 0.613748 | 2 |
Layers for an object input stem. It expects its input tensor to have a separate channel for each object class. | def PFC5(g4y1, wH3T='channels_last'):
g4y1 = ZylS.layers.max_pooling2d(inputs=g4y1, pool_size=4, strides=4, padding='SAME', data_format=wH3T)
g4y1 = ZylS.identity(g4y1, 'initial_max_pool')
return g4y1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ADam(YKHO, DYuh: int, ehZ7: int) -> None:\n if YKHO.deep_stem:\n YKHO.stem = U78l.Sequential(t2yU(YKHO.conv_cfg, DYuh, ehZ7 // 2, kernel_size=3, stride=2, padding=1, bias=False), n0Aj(YKHO.norm_cfg, ehZ7 // 2)[1], wI9Z(YKHO.act_cfg), t2yU(YKHO.conv_cfg, ehZ7 // 2, ehZ7 // 2, kernel_size=3, stride=1, ... | [
"0.66733164",
"0.5661516",
"0.5449797",
"0.54201984",
"0.54192364",
"0.5331143",
"0.53262913",
"0.5311166",
"0.52820355",
"0.5276426",
"0.5272333",
"0.5253867",
"0.52439356",
"0.5229762",
"0.5223",
"0.5218706",
"0.52033144",
"0.51987857",
"0.51977605",
"0.5194592",
"0.5185334... | 0.6407818 | 1 |
Initialize the device tracker. | def FIMM(YKHO, S3vU, mWFP, _G4g, WTZD, ht7m):
super().__init__(coordinator=S3vU, name=mWFP, icon=_G4g, system_id=WTZD, item_id=ht7m)
YKHO._is_connected = None
YKHO._mac = None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hEPN(YKHO):\n super().doInitializeDevice()",
"def FIMM(YKHO):\n YKHO._device_info = None",
"def PObR(YKHO):\n G9jH.debug('TrackerPlugin.initialise')",
"def OM8D(YKHO):\n YKHO.flush()\n print('Initializing sensor...')\n try:\n YKHO.get_sample()\n print('Initialization succe... | [
"0.7160093",
"0.7106584",
"0.6990375",
"0.68960536",
"0.68530416",
"0.6840721",
"0.6785245",
"0.6755943",
"0.6738518",
"0.673659",
"0.6674065",
"0.6674065",
"0.6674065",
"0.66533786",
"0.66435075",
"0.66409814",
"0.66363734",
"0.6611633",
"0.6580973",
"0.65477747",
"0.6540741... | 0.0 | -1 |
Method to return the nth layer in the current Circuit object. The parameter must be between 0 and the actual number of the layers. | def h3Xc(YKHO, _J4B):
if isinstance(_J4B, int):
return m2Zb(YKHO, _J4B)
else:
raise TypeError('Invalid input! Argument must be integer.') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RY3r(YKHO, YRbF):\n return YKHO.layers[YRbF]",
"def Dvtt(m2Zb):\n\n def h3Xc(YKHO, _J4B):\n \"\"\"Method to return the n-th layer in the current Circuit object. The parameter must be \n between 0 and the actual number of the layers.\n \n Arguments:\n nth {int} -- ... | [
"0.74039906",
"0.7303725",
"0.69746095",
"0.68346196",
"0.68017435",
"0.67166066",
"0.6616348",
"0.63373065",
"0.62569845",
"0.62414855",
"0.61188614",
"0.61021084",
"0.60773087",
"0.59991795",
"0.59467095",
"0.593577",
"0.5902343",
"0.58861685",
"0.58295953",
"0.58232975",
"... | 0.0 | -1 |
flatten the sequences in each example of the true captions and predictions so we have tensors of words instead of sequences for loss and accuracy calculations | def gkZS(hlel, w75t):
umxe = hlel.reshape(-1, hlel.shape[-1])
NmSj = w75t.reshape(-1)
return (umxe, NmSj) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def inEx(YKHO, pR3T):\n JzlP = [aTqo for aTqo in pR3T if 'text' in aTqo]\n AMx8 = [YRbF for YRbF, aTqo in enumerate(pR3T) if 'text' in aTqo]\n f65o = len(JzlP)\n if f65o == 0:\n return (None, None, None)\n tn6o = [MUE7(maxlen=YKHO.truncate) for bGrB in JzlP]\n for Xt2W, aTqo in zip(tn6o, J... | [
"0.6802924",
"0.6551474",
"0.6539345",
"0.6402594",
"0.63733006",
"0.63539624",
"0.6330711",
"0.63050795",
"0.6302647",
"0.62914574",
"0.6282509",
"0.62229526",
"0.62117743",
"0.61994916",
"0.61399454",
"0.6124157",
"0.61102086",
"0.6097946",
"0.6077377",
"0.60758656",
"0.606... | 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 Hy7s.path.join(Hy7s.path.dirname(xAKo), 'resources') + Hy7s.path.sep",
"def Q63V(Qth0):\n try:\n XSj5 = HwRy._MEIPASS\n except Exception:\n XSj5 = Hy7s.path.abspath(Hy7s.path.join(Hy7s.path.dirname(HwRy.modules[__name__].__file__), 'assets'))\n return Hy7s.path.join... | [
"0.83695436",
"0.8280479",
"0.82485795",
"0.8139178",
"0.8114118",
"0.80985415",
"0.80940944",
"0.80797124",
"0.80677074",
"0.80673695",
"0.8062465",
"0.8062465",
"0.8062465",
"0.8062465",
"0.8062465",
"0.8062465",
"0.8062465",
"0.80569947",
"0.80545217",
"0.80403364",
"0.802... | 0.80448323 | 32 |
Convert a XYZ to a linear RGB color. | def n2f6(RM3a):
d7Eb = oyIN.tensordot(Kt_s, RM3a, axes=[1, 0])
if g9SH == Qzjy:
d7Eb = oyIN.where(d7Eb < 0, 0, d7Eb)
return d7Eb
if g9SH == CXRs:
YNcW = oyIN.amin(d7Eb, axis=0)
wIK7 = oyIN.amax(d7Eb, axis=0)
X6rE = oyIN.where(wIK7 > 0.0, wIK7 / (wIK7 - YNcW + 1e-05), ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XDvP(d7Eb):\n ezWE = Y1RL(d7Eb).copy()\n return VnKZ(gk7L, ezWE)",
"def bb8O(UqpO: Vector) -> lNLu:\n return lfCk.dot(hOo6, UqpO, dims=lfCk.D2_D1)",
"def FAlm(d7Eb):\n ezWE = Y1RL(d7Eb).copy()\n return VnKZ(yW9F, ezWE)",
"def BQ7T(UqpO):\n JFER = UqpO - UqpO.min()\n return (255 * JFE... | [
"0.81819946",
"0.79236525",
"0.74586886",
"0.72327024",
"0.71910244",
"0.7093997",
"0.691178",
"0.69071716",
"0.68039477",
"0.6675804",
"0.66532797",
"0.66480094",
"0.65368104",
"0.6492271",
"0.6417387",
"0.63902515",
"0.6373076",
"0.6356713",
"0.6335993",
"0.6333796",
"0.630... | 0.7181704 | 5 |
Convert a spectrum to an XYZ color. | def qXmR(Cqok):
if Cqok.ndim == 1:
YPYk = (780 - 380) / (Cqok.shape[0] - 1)
m_Mg = oyIN.arange(380.0, 780.00001, YPYk)
EcVT = oyIN.dot(Cqok, ezgG(m_Mg)) * YPYk * 0.003975 * 683.002
fuBA = oyIN.dot(Cqok, Sx6o(m_Mg)) * YPYk * 0.003975 * 683.002
Nk6w = oyIN.dot(Cqok, Q1mz(m_Mg))... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DFNv():\n print('=== RGB Example: RGB->XYZ ===')\n d7Eb = iwQW(120, 130, 140)\n print(d7Eb)\n UqpO = nNkg(d7Eb, Looi, target_illuminant='D50')\n print(UqpO)\n print('=== End Example ===\\n')",
"def ELrW(_owh: Callable) -> gyIm:\n UqpO = _owh(FOZo) @ h1VR\n UqpO /= sum(UqpO)\n retur... | [
"0.68718624",
"0.6836622",
"0.65651786",
"0.6556949",
"0.63715595",
"0.6284183",
"0.6274084",
"0.622245",
"0.6151981",
"0.6149913",
"0.6128306",
"0.60980576",
"0.6085835",
"0.5869543",
"0.5809921",
"0.5785121",
"0.5774022",
"0.57447714",
"0.5670647",
"0.5559354",
"0.55158025"... | 0.0 | -1 |
returns a string of current date time | def wzkt(YKHO):
Hy7s.environ['TZ'] = Fv2L.timezone
ITS7.tzset()
return ITS7.strftime('%B %d %Y %H:%M:%S IST', ITS7.localtime()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f1rh():\n return B72W().strftime('%Y%m%d-%H%M%S')",
"def JUFO() -> str:\n return hLAQ(RN2L())",
"def EUP2():\n wzkt = JRYC.datetime.now()\n LLuI = wzkt.strftime('%d/%m %H:%M')\n return LLuI",
"def ApjM():\n return ITS7.strftime('%Y-%m-%d-%H-%M-%S', ITS7.localtime())",
"def _PtW():\n ... | [
"0.8863057",
"0.85551643",
"0.8418663",
"0.8417083",
"0.84119695",
"0.83947015",
"0.839124",
"0.8383969",
"0.83806187",
"0.8353671",
"0.8292408",
"0.8200105",
"0.81669843",
"0.8157392",
"0.8141736",
"0.81312805",
"0.81081635",
"0.809255",
"0.80834556",
"0.8061674",
"0.8042652... | 0.7843392 | 27 |
A standard HTTP 401 response A quick helper for defining 401 responses. If you're using a custom error schema you'll have to build those manually. Otherwise you can use this little helper. | def KgRE(JBZA=None):
hsRj = dict(gnPz.RESPONSE_404)
if JBZA is not None:
hsRj['description'] = JBZA
return geh0(401, hsRj) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def p_Hn():\n return ({'errors': ['Unauthorized']}, 401)",
"def p_Hn():\n return c1Bu(401)",
"def owlG():\n geh0 = {'status': 'failed', 'error': 'Not Authorised'}\n return zs78(geh0, status=401)",
"def Q03S():\n return ('Request denied due to failed authorization', 201, {'Content-Type': 'text/... | [
"0.7609733",
"0.75625587",
"0.75416195",
"0.72230184",
"0.72032976",
"0.7132038",
"0.69067967",
"0.67542374",
"0.6681121",
"0.66397214",
"0.660845",
"0.6597849",
"0.65929997",
"0.6530423",
"0.652699",
"0.65259355",
"0.6523081",
"0.6523081",
"0.6523081",
"0.6523081",
"0.652308... | 0.7693875 | 0 |
Gets the directory of the GCD emulator installation in the Cloud SDK. | def IgWS():
cKnv = gnPz.GetCloudSDKRoot()
AspT = Hy7s.path.join(cKnv, 'platform', 'cloud-datastore-emulator')
if not Hy7s.path.isdir(AspT):
raise NqJH()
return AspT | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sP2q(YKHO):\n return QMOX.get_install_dir(YKHO) + '/egs5'",
"def rBl9(YKHO):\n import mewlo\n pmON = Hy7s.path.dirname(Hy7s.path.realpath(mewlo.__file__))\n return pmON",
"def sP2q(YKHO):\n return QMOX.get_install_dir(YKHO) + '/madgraph4/src'",
"def sP2q(YKHO):\n return QMOX.get_install... | [
"0.70556486",
"0.70523596",
"0.6851314",
"0.6815847",
"0.6671107",
"0.6644766",
"0.6583252",
"0.65683895",
"0.65080917",
"0.6471657",
"0.64602643",
"0.64542145",
"0.6446775",
"0.6358676",
"0.62971956",
"0.6295621",
"0.62947387",
"0.62768257",
"0.6275268",
"0.6265594",
"0.6265... | 0.79414386 | 0 |
Return an array of nodes that match the selector. | def NMoC(YKHO, PKko):
EtM5 = YKHO.get_stage()
ezWE = []
H5ew = PKko[1:]
if PKko[0] == '#':
ezWE = [EtM5.ids[H5ew]] if EtM5.ids[H5ew] else []
elif PKko[0] == '.':
ezWE = [EtM5.name[H5ew]] if EtM5.name[H5ew] else []
elif PKko == 'Shape' or PKko == 'Group' or PKko == 'Layer':
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f9Hv(YKHO, PKko):\n ezWE = []\n\n def eNvf(v9Lt):\n afYC = v9Lt.get_children()\n for exwG in Ni9Y(len(afYC)):\n aUGN = afYC[exwG]\n if aUGN.node_type == PKko:\n ezWE.append(aUGN)\n elif aUGN.node_type != 'Shape':\n eNvf(aUGN)\n ... | [
"0.79346216",
"0.6637341",
"0.6591449",
"0.63993907",
"0.63603497",
"0.6252161",
"0.6182585",
"0.6114835",
"0.6106636",
"0.6079316",
"0.6057584",
"0.6050366",
"0.59143454",
"0.585621",
"0.5775321",
"0.57579166",
"0.57579166",
"0.57494694",
"0.5744418",
"0.5727931",
"0.5727556... | 0.67726207 | 1 |
Raise a warning when there is no bold.json file in the derivatives and no TR value is passed as argument. create_fake_bids_dataset does not add JSON files in derivatives, so the TR value will be inferred from the raw. | def ybBy(ZqHk):
X549 = i5x_(base_dir=ZqHk, n_sub=10, n_ses=1, tasks=['main'], n_runs=[1])
TbLj = None
HbIg = 'No bold.json .* BIDS'
with trZe.warns(UserWarning, match=HbIg):
FYrf, *bGrB = dLdc(dataset_path=str(ZqHk / X549), task_label='main', space_label='MNI', img_filters=[('desc', 'preproc')],... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jN4E(DRce, ZqHk):\n __n6 = 'asl003'\n mC1D = Hy7s.path.join(DRce, __n6)\n cp2H = Hy7s.path.join(mC1D, 'dataset_description.json')\n s4Kt = Gy3D('broken_dataset_description.json')\n RDuA.copyfile(s4Kt, cp2H)\n bGrB = lgEA(mC1D, report_path=True)",
"def z3Rr():\n X549 = pWww(1, 1)\n Hy7... | [
"0.67136127",
"0.6419759",
"0.6279266",
"0.60406315",
"0.5771079",
"0.570997",
"0.55316436",
"0.54587936",
"0.538173",
"0.5353694",
"0.52473235",
"0.51361567",
"0.510288",
"0.50434864",
"0.50396687",
"0.50316787",
"0.50310415",
"0.5016742",
"0.50019306",
"0.49982435",
"0.4986... | 0.55570894 | 6 |
Throw errors for impossible values of slice_time_ref. | def UMq9(ZqHk, nfX4, wfRC, tf1m):
X549 = i5x_(base_dir=ZqHk, n_sub=1, n_ses=1, tasks=['main'], n_runs=[1])
with trZe.raises(wfRC, match=tf1m):
dLdc(dataset_path=str(ZqHk / X549), task_label='main', space_label='MNI', img_filters=[('desc', 'preproc')], slice_time_ref=nfX4) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wafq(YKHO):\n wzkt = qcWV(2015, 2, 1, 0, 0, 0)\n YKHO.assert_TPVE(LrXp, '-0', wzkt)\n YKHO.assert_TPVE(LrXp, '-12', wzkt)\n YKHO.assert_TPVE(LrXp, '-12fortnights', wzkt)\n YKHO.assert_TPVE(LrXp, '-20150101', wzkt)",
"def PjKe(YKHO):\n VOlW = oyIN.timedelta64(3, 'm')\n YKHO.assertFalse(Bf... | [
"0.59740174",
"0.5969644",
"0.59234804",
"0.55987054",
"0.552183",
"0.5508553",
"0.54925036",
"0.54893005",
"0.54732615",
"0.54333735",
"0.5414704",
"0.5399426",
"0.5391708",
"0.5383287",
"0.53792614",
"0.5348952",
"0.5314342",
"0.5313568",
"0.530637",
"0.53061914",
"0.530222... | 0.56039155 | 3 |
Create a fake BIDS dataset for testing purposes. Only use if the dataset does not need to me modified. | def CqT1(DPva):
oEge = DPva.mktemp('bids')
DYlQ, xRB7, xCjU, EhZh = Z_6h()
return i5x_(base_dir=oEge, n_sub=DYlQ, n_ses=xRB7, tasks=xCjU, n_runs=EhZh) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wVn_(oEge=GkAb()):\n DYlQ, xRB7, xCjU, EhZh = Z_6h()\n return i5x_(base_dir=oEge, n_sub=DYlQ, n_ses=xRB7, tasks=xCjU, n_runs=EhZh)",
"def oUGu(XSj5, Ep8u, qqqI):\n GRJK = ['feature', 'label']\n Zhis = 4\n if qqqI:\n pmON = Hy7s.path.join(XSj5, 'aclImdb_train.mindrecord0')\n else:\n ... | [
"0.7589008",
"0.67663085",
"0.66735876",
"0.66464376",
"0.64651084",
"0.6411151",
"0.63837785",
"0.63636094",
"0.6352759",
"0.62958187",
"0.62745464",
"0.6217625",
"0.6174667",
"0.6173498",
"0.6153021",
"0.61488056",
"0.614349",
"0.61408573",
"0.60948145",
"0.6094493",
"0.608... | 0.7406092 | 1 |
Create a new BIDS dataset for testing purposes. Use if the dataset needs to be modified after creation. | def wVn_(oEge=GkAb()):
DYlQ, xRB7, xCjU, EhZh = Z_6h()
return i5x_(base_dir=oEge, n_sub=DYlQ, n_ses=xRB7, tasks=xCjU, n_runs=EhZh) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jxpQ(ekCf, c55i):\n w7uZ = sJtT(c55i)\n D7WV = f'Sandbox for {c55i}'\n JBZA = f'Sandbox created for storing records affected by the cleaning rules applied to {c55i}'\n lZWd = {'label': '', 'tag': ''}\n oUGu(project_id=ekCf, dataset_id=w7uZ, friendly_name=D7WV, description=JBZA, label_or_tag=lZWd... | [
"0.72225416",
"0.71146643",
"0.6973474",
"0.6835339",
"0.68005854",
"0.6789647",
"0.67770785",
"0.6750304",
"0.67432195",
"0.672013",
"0.6676298",
"0.66512585",
"0.6648852",
"0.66420376",
"0.65818185",
"0.65669626",
"0.65132225",
"0.64935243",
"0.6442006",
"0.6441676",
"0.643... | 0.73201877 | 0 |
Returns an int64_list from a bool / enum / int / uint. | def Oety(BWXx):
return ZylS.train.Feature(int64_list=ZylS.train.Int64List(value=[BWXx])) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Kmpz(FiiE):\n Aofo = []\n for d7pR in FiiE:\n if isinstance(d7pR, (list, tuple)):\n Aofo.append(Kmpz(d7pR))\n elif d7pR is True:\n Aofo.append(1)\n elif d7pR is False:\n Aofo.append(0)\n else:\n Aofo.append(d7pR)\n return Aofo",
... | [
"0.68822104",
"0.6595804",
"0.6461252",
"0.6448161",
"0.6367609",
"0.62926817",
"0.6269916",
"0.621823",
"0.6104528",
"0.59533274",
"0.5947467",
"0.5901199",
"0.5863832",
"0.5863832",
"0.58563983",
"0.5844792",
"0.58434534",
"0.5829844",
"0.5801042",
"0.5793561",
"0.5793561",... | 0.54461515 | 68 |
Check multi hot output when num_oov_indices=0. | def UH9O(YKHO):
oIAx = ['earth', 'wind', 'and', 'fire']
WY9P = oyIN.array([['earth', 'wind', 'and', 'fire'], ['fire', 'and', 'earth', '']])
NTvP = oyIN.array([['earth', 'wind', 'and', 'michigan'], ['fire', 'and', 'earth', 'michigan']])
sGEu = [[1, 1, 1, 1, 0], [1, 0, 1, 1, 0]]
WbAn = bdPE.Input(shap... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Pc9B(YKHO):\n oIAx = ['earth', 'wind', 'and', 'fire']\n Ddli = oyIN.array(['earth', 'wind', 'and', 'fire', 'michigan', ''])\n sGEu = [[0, 1, 0, 0, 0, 0], [0, 0, 1, 0, 0, 0], [0, 0, 0, 1, 0, 0], [0, 0, 0, 0, 1, 0], [1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0]]\n WbAn = bdPE.Input(shape=(1,), dtype=ZylS.st... | [
"0.6768287",
"0.66786337",
"0.6630894",
"0.6470745",
"0.64362365",
"0.63419646",
"0.62434363",
"0.6220508",
"0.61954635",
"0.61909366",
"0.6139158",
"0.61019975",
"0.60925364",
"0.5979992",
"0.5893066",
"0.58705664",
"0.58368444",
"0.5836512",
"0.5836512",
"0.5836512",
"0.583... | 0.7623501 | 0 |
Convert class labels from scalars to onehot vectors. | def kPpE(lexL, jTqs=2):
svPB = lexL.shape[0]
whV7 = oyIN.arange(svPB) * jTqs
xZkh = oyIN.zeros((svPB, jTqs))
xZkh.flat[(whV7 + lexL.ravel()).astype(int)] = 1
return xZkh.astype(oyIN.float32) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KLLm(Crrw, KndY=None):\n return nMvt.utils.to_categorical(Crrw, KndY)",
"def KLLm(Crrw, KndY=None):\n PnsN = nMvt.utils.to_categorical(Crrw, KndY)\n return PnsN",
"def LQDo(Crrw: torch.Tensor, jTqs: int) -> ht2j.Tensor:\n if len(Crrw.size()) == 1:\n return vuvg.one_hot(Crrw, jTqs).float(... | [
"0.8250402",
"0.807683",
"0.80523187",
"0.7977843",
"0.7908335",
"0.7900327",
"0.7892233",
"0.7869711",
"0.7849721",
"0.7849721",
"0.7826951",
"0.7826122",
"0.77677035",
"0.7765413",
"0.77540547",
"0.77540547",
"0.77540547",
"0.77489346",
"0.7742955",
"0.7737176",
"0.77226317... | 0.7352546 | 56 |
Generates a sparse map from code point (range) to enum value. The first value in each array entry starts a new range of code points (with the given value). | def l7MR(KQGe, a7vb, JxjF, tyNF):
Abn6 = a7vb + '_'
KQGe.write(f'static constexpr MapEntry<CodePoint, {JxjF}> {Abn6}[] = {{\n')
CUs1 = None
o0EL = max(tyNF)
for U7YL in range(0, o0EL + 2):
BWXx = tyNF.get(U7YL, 'Invalid')
if BWXx != CUs1:
KQGe.write(f' {{{hex(U7YL)}, {... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xyk2():\n r9Hf = 1\n _XSe = oyIN.array([10, 15, 25, 30, 40, 47, 57, 63, 69, 74, 81])\n cmPJ = dict()\n cmPJ[1] = 1\n for or8S, wEf2 in enumerate(_XSe):\n for r845 in range(r9Hf + 1, wEf2):\n cmPJ[r845] = int(or8S + 2)\n r9Hf = r845\n return cmPJ",
"def UdKq(YKHO):\n... | [
"0.6391758",
"0.5867845",
"0.57499003",
"0.57434297",
"0.561485",
"0.55679965",
"0.55129176",
"0.54985493",
"0.549772",
"0.549772",
"0.549772",
"0.549772",
"0.54837114",
"0.5459323",
"0.54566735",
"0.54491353",
"0.5380602",
"0.53535604",
"0.5346144",
"0.5328194",
"0.5302363",... | 0.64528584 | 0 |
This function prints and plots the confusion matrix. Normalization can be applied by setting `normalize=True`. | def LwSz(Bcwd, KndY, NkkI=False, leAC='Confusion matrix', iMGt=QrM1.cm.Blues):
if NkkI:
Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]
print('Normalized confusion matrix')
else:
print('Confusion matrix, without normalization')
QrM1.imshow(Bcwd, interpolation='nearest... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LwSz(Bcwd, KndY=[0, 1], NkkI=False, leAC='Confusion matrix', RMso=False):\n if NkkI:\n Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]\n print('Normalized confusion matrix')\n else:\n print('Confusion matrix, without normalization')\n if RMso:\n print(Bcwd)"... | [
"0.8192804",
"0.8094402",
"0.80277497",
"0.80176693",
"0.7992383",
"0.7989708",
"0.7979215",
"0.79741204",
"0.7959607",
"0.7955097",
"0.79358983",
"0.79329205",
"0.7932711",
"0.79295874",
"0.79247147",
"0.79228914",
"0.792216",
"0.79215133",
"0.7921201",
"0.7920765",
"0.79161... | 0.78950405 | 28 |
Get limit of Yaxis | def amGp(YKHO):
return YKHO._myCanvas.getXLimit() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tXvl(YKHO):\n return YKHO.axes.get_ylim()",
"def tXvl(YKHO):\n return YKHO._myCanvas.getYLimit()",
"def M65t(YKHO):\n if isinstance(YKHO._frame, tk5Y.TH1F):\n return (YKHO._frame.GetMinimum(), YKHO._frame.GetMaximum())\n else:\n return (YKHO._frame.GetYaxis().GetXmin(), YKHO._fram... | [
"0.8265511",
"0.75236475",
"0.7141598",
"0.7037268",
"0.7024883",
"0.69983655",
"0.69983655",
"0.6991727",
"0.69353473",
"0.69142056",
"0.68743515",
"0.67710173",
"0.6748132",
"0.66947263",
"0.6654522",
"0.6604168",
"0.6550604",
"0.65480614",
"0.65154654",
"0.64956313",
"0.64... | 0.5856544 | 54 |
Get limit of Yaxis | def tXvl(YKHO):
return YKHO._myCanvas.getYLimit() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tXvl(YKHO):\n return YKHO.axes.get_ylim()",
"def M65t(YKHO):\n if isinstance(YKHO._frame, tk5Y.TH1F):\n return (YKHO._frame.GetMinimum(), YKHO._frame.GetMaximum())\n else:\n return (YKHO._frame.GetYaxis().GetXmin(), YKHO._frame.GetYaxis().GetXmax())",
"def rTQi(YKHO):\n Xk2t = [aN... | [
"0.8265511",
"0.7141598",
"0.7037268",
"0.7024883",
"0.69983655",
"0.69983655",
"0.6991727",
"0.69353473",
"0.69142056",
"0.68743515",
"0.67710173",
"0.6748132",
"0.66947263",
"0.6654522",
"0.6604168",
"0.6550604",
"0.65480614",
"0.65154654",
"0.64956313",
"0.64914024",
"0.64... | 0.75236475 | 1 |
Get the minimum Y value of the plots on canvas | def RVAj(YKHO):
if len(YKHO._statDict) == 0:
return 10000000000.0
Wa13 = YKHO._statDict.keys()
LChT = YKHO._statDict[Wa13[0]][2]
for tMF9 in range(1, len(Wa13)):
if YKHO._statDict[Wa13[tMF9]][2] < LChT:
LChT = YKHO._statDict[Wa13[tMF9]][2]
return LChT | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KDmU(YKHO):\n return YKHO.get_min_value(YKHO.Y_INDEX)",
"def v6e1(YKHO):\n return min((YKHO(0).y, 0), (YKHO(1).y, 1))[1]",
"def zQe_(YKHO):\n return YKHO.miny",
"def COt1(YKHO):\n min = 1e+30\n for YRbF in range(0, YKHO.GetN()):\n XP5J = (YnkN.Double(), YnkN.Double())\n YKHO.... | [
"0.78607774",
"0.777665",
"0.751787",
"0.725175",
"0.7201014",
"0.7022723",
"0.68792015",
"0.68529654",
"0.68529654",
"0.68529654",
"0.68529654",
"0.68529654",
"0.68529654",
"0.68529654",
"0.68529654",
"0.68529654",
"0.68529654",
"0.68529654",
"0.68529654",
"0.68529654",
"0.6... | 0.76430845 | 2 |
Get the maximum Y value of the plots on canvas | def clzQ(YKHO):
if len(YKHO._statDict) == 0:
return -10000000000.0
Wa13 = YKHO._statDict.keys()
dCLF = YKHO._statDict[Wa13[0]][3]
for tMF9 in range(1, len(Wa13)):
if YKHO._statDict[Wa13[tMF9]][3] > dCLF:
dCLF = YKHO._statDict[Wa13[tMF9]][3]
return dCLF | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rwK9(YKHO):\n return YKHO.get_max_value(YKHO.Y_INDEX)",
"def c4gB(YKHO):\n return max((YKHO(0).y, 0), (YKHO(1).y, 1))[1]",
"def oiMZ(YKHO):\n return YKHO.maxy",
"def RfKK(YKHO) -> float:\n return YKHO.pendulum2.get_max_y()",
"def tXvl(YKHO):\n return YKHO.axes.get_ylim()",
"def T9yE(*q... | [
"0.79613554",
"0.78683895",
"0.7839702",
"0.7352151",
"0.73371184",
"0.7322131",
"0.72898877",
"0.7154325",
"0.7135273",
"0.711554",
"0.6986447",
"0.69081545",
"0.6864131",
"0.6818311",
"0.66734755",
"0.6637421",
"0.6637421",
"0.663179",
"0.64385056",
"0.6435802",
"0.6428614"... | 0.8015036 | 0 |
Get limit of Yaxis | def amGp(YKHO):
return YKHO.axes.get_xlim() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tXvl(YKHO):\n return YKHO.axes.get_ylim()",
"def tXvl(YKHO):\n return YKHO._myCanvas.getYLimit()",
"def M65t(YKHO):\n if isinstance(YKHO._frame, tk5Y.TH1F):\n return (YKHO._frame.GetMinimum(), YKHO._frame.GetMaximum())\n else:\n return (YKHO._frame.GetYaxis().GetXmin(), YKHO._fram... | [
"0.8265511",
"0.75236475",
"0.7141598",
"0.7037268",
"0.7024883",
"0.69983655",
"0.69983655",
"0.6991727",
"0.69353473",
"0.69142056",
"0.68743515",
"0.67710173",
"0.6748132",
"0.66947263",
"0.6654522",
"0.6604168",
"0.6550604",
"0.65480614",
"0.65154654",
"0.64956313",
"0.64... | 0.0 | -1 |
Get limit of Yaxis | def tXvl(YKHO):
return YKHO.axes.get_ylim() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tXvl(YKHO):\n return YKHO._myCanvas.getYLimit()",
"def M65t(YKHO):\n if isinstance(YKHO._frame, tk5Y.TH1F):\n return (YKHO._frame.GetMinimum(), YKHO._frame.GetMaximum())\n else:\n return (YKHO._frame.GetYaxis().GetXmin(), YKHO._frame.GetYaxis().GetXmax())",
"def rTQi(YKHO):\n Xk2t... | [
"0.75236475",
"0.7141598",
"0.7037268",
"0.7024883",
"0.69983655",
"0.69983655",
"0.6991727",
"0.69353473",
"0.69142056",
"0.68743515",
"0.67710173",
"0.6748132",
"0.66947263",
"0.6654522",
"0.6604168",
"0.6550604",
"0.65480614",
"0.65154654",
"0.64956313",
"0.64914024",
"0.6... | 0.8265511 | 0 |
Check if a point is within this rectangle | def J67g(YKHO, jDtZ):
if (jDtZ.x >= YKHO.pMin.x and jDtZ.x <= YKHO.pMax.x) and (jDtZ.y >= YKHO.pMin.y and jDtZ.y <= YKHO.pMax.y):
return True
else:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bJYl(AU8u, lued):\n CLNC = lued.getP1()\n r902 = lued.getP2()\n return CLNC.getX() < AU8u.getX() < r902.getX() and CLNC.getY() < AU8u.getY() < r902.getY()",
"def bJYl(AU8u, lued):\n CLNC = lued.getP1()\n r902 = lued.getP2()\n return CLNC.getX() < AU8u.getX() < r902.getX() and CLNC.getY() < ... | [
"0.8459191",
"0.8448",
"0.8276222",
"0.82759917",
"0.8263758",
"0.81937826",
"0.81937826",
"0.8173055",
"0.81075454",
"0.81075454",
"0.7951817",
"0.78297275",
"0.7829285",
"0.7806901",
"0.7800947",
"0.7781443",
"0.7757449",
"0.77498335",
"0.77234465",
"0.7716403",
"0.77064466... | 0.68621826 | 78 |
Display 404.html if user clicks on a link that doesn't work or navigates to a page that does not exist. | def oWad(tTpl):
return TvZl('404.html') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m7kB(tTpl):\n return (TvZl('404.html'), 404)",
"def m7kB(tTpl):\n return (TvZl('404.html'), 404)",
"def m7kB(tTpl):\n return (TvZl('404.html'), 404)",
"def m7kB(tTpl):\n return TvZl('404.html', page_title=404)",
"def m7kB(tTpl):\n return TvZl('404.html')",
"def Ni4Z(P1dF):\n return ... | [
"0.798152",
"0.7959293",
"0.7959293",
"0.7939192",
"0.7917982",
"0.79015326",
"0.78965855",
"0.78110796",
"0.77109545",
"0.7685571",
"0.758875",
"0.75545585",
"0.7554513",
"0.75172687",
"0.75172687",
"0.75172687",
"0.75172687",
"0.75172687",
"0.75172687",
"0.75172687",
"0.751... | 0.701538 | 68 |
Return True if the tile (m, n) has been cleaned. Assumes that (m, n) represents a valid tile inside the room. | def I7c5(YKHO, r8hN, exwG):
Z1El = epAf.floor(r8hN)
iPHV = epAf.floor(exwG)
dIAN = 0
if (Z1El, iPHV) in YKHO.tiles.keys():
dIAN = YKHO.tiles[Z1El, iPHV]
if dIAN == 1:
return True
else:
return False
else:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I7c5(YKHO, r8hN, exwG):\n if (r8hN, exwG) in YKHO.clean_tiles:\n return True\n return False",
"def I7c5(YKHO, r8hN, exwG):\n return YKHO.tiles[exwG][r8hN] == True",
"def I7c5(YKHO, r8hN, exwG):\n if YKHO.tiles[DhiK(r8hN, exwG)] == 'clean':\n return True\n else:\n return ... | [
"0.8860509",
"0.8857077",
"0.8600327",
"0.85327154",
"0.8515746",
"0.847085",
"0.71480656",
"0.6395455",
"0.63458645",
"0.6323974",
"0.6269661",
"0.6255303",
"0.6246633",
"0.6234912",
"0.62200385",
"0.62122416",
"0.6193986",
"0.6129132",
"0.6123928",
"0.6123849",
"0.609755",
... | 0.84705424 | 6 |
Return the total number of tiles in the room. | def xrV0(YKHO):
return YKHO.numTiles | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xrV0(YKHO):\n return YKHO.height * YKHO.width",
"def xrV0(YKHO):\n return len(list(Lx3t(list(range(YKHO.width + 1))[1:], list(range(YKHO.height + 1))[1:])))",
"def xrV0(YKHO):\n return YKHO.width * YKHO.height",
"def PS2n(YKHO):\n return YKHO.num_row_tiles * YKHO.num_col_tiles",
"def xrV0(Y... | [
"0.8205867",
"0.81903553",
"0.81504375",
"0.8046322",
"0.8039323",
"0.79811716",
"0.7871275",
"0.7472709",
"0.7407938",
"0.7151273",
"0.7067083",
"0.6982381",
"0.69224",
"0.6857802",
"0.6832814",
"0.6813225",
"0.67038375",
"0.66893554",
"0.66816777",
"0.6676057",
"0.66583914"... | 0.78123623 | 7 |
Return a random position inside the room. | def kxG1(YKHO):
Z1El = tuKI.randrange(0, YKHO.width)
iPHV = tuKI.randrange(0, YKHO.height)
FzF3 = DhiK(Z1El, iPHV)
return FzF3 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kxG1(YKHO):\n return DhiK(tuKI.random() * YKHO.w, tuKI.random() * YKHO.h)",
"def kxG1(YKHO):\n WKvO = tuKI.randint(0, YKHO.width - 1)\n LVAh = tuKI.randint(0, YKHO.height - 1)\n return DhiK(WKvO, LVAh)",
"def kxG1(YKHO):\n return DhiK(tuKI.uniform(0, YKHO.width), tuKI.uniform(0, YKHO.height)... | [
"0.84095305",
"0.8408874",
"0.8339333",
"0.8331419",
"0.8253471",
"0.8129327",
"0.79893064",
"0.7975111",
"0.79634804",
"0.78944933",
"0.76948863",
"0.74812585",
"0.74559724",
"0.73774105",
"0.73208076",
"0.730955",
"0.7219106",
"0.7115554",
"0.7098047",
"0.70740753",
"0.7016... | 0.83306754 | 4 |
Return True if pos is inside the room. | def sfPQ(YKHO, oeNL):
Z1El = oeNL.getX()
iPHV = oeNL.getY()
Z1El = epAf.floor(Z1El)
iPHV = epAf.floor(iPHV)
if Z1El >= YKHO.width or iPHV >= YKHO.height:
return False
if (Z1El, iPHV) in YKHO.tiles.keys():
return True
else:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sfPQ(YKHO, oeNL):\n X3hi = oeNL.getX()\n ZDfp = oeNL.getY()\n if X3hi >= 0 and X3hi < YKHO.width and (ZDfp >= 0) and (ZDfp < YKHO.height):\n return True\n return False",
"def sfPQ(YKHO, oeNL):\n if oeNL.getX() >= 0 and oeNL.getX() < YKHO.w:\n if oeNL.getY() >= 0 and oeNL.getY() <... | [
"0.85856265",
"0.85830444",
"0.8501791",
"0.8394953",
"0.8270461",
"0.81534183",
"0.7664707",
"0.75780624",
"0.7245776",
"0.7134537",
"0.70549065",
"0.7034335",
"0.6900973",
"0.6892583",
"0.6865422",
"0.6829012",
"0.6828001",
"0.6822237",
"0.68087435",
"0.68055147",
"0.679743... | 0.79472804 | 6 |
Initializes a Robot with the given speed in the specified room. The robot initially has a random direction and a random position in the room. The robot cleans the tile it is on. | def FIMM(YKHO, abiq, iBLD):
YKHO.room = abiq
YKHO.speed = iBLD
YKHO.position = abiq.getRandomPosition()
YKHO.room.cleanTileAtPosition(YKHO.position)
YKHO.direction = tuKI.randrange(0, 359) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, abiq, iBLD):\n YKHO.room = abiq\n YKHO.position = abiq.getRandomPosition()\n YKHO.room.cleanTileAtPosition(YKHO.position)\n YKHO.direction = tuKI.random() * 360\n YKHO.speed = iBLD",
"def FIMM(YKHO, abiq, iBLD):\n YKHO.room = abiq\n YKHO.speed = iBLD\n YKHO.direction = tuKI... | [
"0.8125557",
"0.77230936",
"0.7592438",
"0.61862105",
"0.59543926",
"0.58640534",
"0.5848188",
"0.5805232",
"0.5797039",
"0.5790063",
"0.57604414",
"0.5734589",
"0.5660592",
"0.5609966",
"0.555827",
"0.5556169",
"0.5551704",
"0.54865193",
"0.54490894",
"0.54391056",
"0.542069... | 0.77279794 | 1 |
Set the direction of the robot to DIRECTION. | def VDvV(YKHO, XSoh):
YKHO.direction = XSoh | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VDvV(YKHO, XSoh):\n YKHO.direction = XSoh",
"def VDvV(YKHO, XSoh):\n YKHO.direction = XSoh",
"def zWQZ(YKHO, EaBz=2):\n pass",
"def oivB(YKHO, bPBo):\n YKHO.__direction = bPBo",
"def oivB(YKHO, dir):\n if dir == 0:\n YKHO.direction = [0, -1]\n elif dir == 1:\n YKHO.direc... | [
"0.74564767",
"0.74564767",
"0.71080387",
"0.7050842",
"0.7025068",
"0.6972867",
"0.6806668",
"0.6626092",
"0.6500536",
"0.6461539",
"0.64010406",
"0.6326288",
"0.63147664",
"0.6281464",
"0.6212341",
"0.6212341",
"0.6146971",
"0.61024934",
"0.60986555",
"0.60986555",
"0.60843... | 0.7256985 | 3 |
Outputs the total energy of the given spin configuration | def Qa0i(bLm4):
VYvU = 0
for YRbF in range(0, 4):
VYvU += ocvr(YRbF, bLm4)
return VYvU | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VYvU(YKHO):\n YKHO.E = -oyIN.sum(YKHO.phi) + 0.5 * YKHO.mass * oyIN.sqrt(YKHO.v_x ** 2 + YKHO.v_y ** 2)",
"def ZZ0C(V6IE, vuvg, C7Ls, asBq):\n return Hq1e(V6IE, vuvg, C7Ls) + SdHX(asBq)",
"def s4uc(YKHO):\n ut5U = 0\n for YRbF in range(len(YKHO.config)):\n for r845 in range(len(YKHO.conf... | [
"0.6324113",
"0.6247011",
"0.60491854",
"0.60466695",
"0.59428436",
"0.591719",
"0.5911947",
"0.58963424",
"0.58858967",
"0.58377",
"0.5803956",
"0.5790898",
"0.57766014",
"0.5766067",
"0.5750985",
"0.5746054",
"0.57380354",
"0.56743914",
"0.56682783",
"0.5667951",
"0.5657655... | 0.6347612 | 0 |
Universal function for getting the last check timestamp from the database. | def mcDH():
if not (_c1T := EfUA((_c1T for _c1T in hicd)).order_by(lambda _c1T: QoB4(_c1T.id)).first()):
_c1T = hicd(timestamp=int(qcWV.timestamp(qcWV.now())))
jSYO()
return _c1T.timestamp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def avrH():\n YJA7 = UPGR.select().aggregate(FYKK.Max(UPGR.last_checked_on))\n if YJA7:\n return SOW7(YJA7)\n return SOW7(qcWV.utcnow())",
"def FS1P():\n try:\n Rnqj = list(RX0T.find().sort([('_id', -1)]).limit(1))[0]['_id'].generation_time\n except:\n Rnqj = 0\n return Rnq... | [
"0.7620695",
"0.7239033",
"0.71900094",
"0.7068376",
"0.7060469",
"0.7007021",
"0.690555",
"0.69018924",
"0.6866147",
"0.6823457",
"0.6808223",
"0.6682971",
"0.6656807",
"0.6656807",
"0.6591904",
"0.657678",
"0.656801",
"0.65632534",
"0.6553776",
"0.6547247",
"0.6525119",
"... | 0.843174 | 0 |
Universal function for putting the current timestamp to the database. | def VbFk(E3oo):
jvSB = hicd(timestamp=E3oo)
jSYO()
return | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D8Mh(YKHO, E3oo):\n return YKHO.insert_into_database(database_name=YKHO.database_name, table_name='analysisprofile', column_names=['table_name', 'type_name', 'timestamp'], values=[YKHO.table_name, YKHO.typename, E3oo], on_duplicate_update=[2])",
"def hJvi(YKHO):\n YKHO._timestamp = qcWV.datetime.now()"... | [
"0.7050297",
"0.7008639",
"0.6838591",
"0.6727643",
"0.66863275",
"0.66773427",
"0.6626668",
"0.65469885",
"0.652817",
"0.6497407",
"0.6490424",
"0.6490161",
"0.6482401",
"0.6470913",
"0.6462958",
"0.6431067",
"0.6386423",
"0.63814455",
"0.63661665",
"0.6362835",
"0.6331277",... | 0.78021604 | 0 |
Find closest range that includes item. Items in `ranges` and `what_to_find` must be comparable. | def fQ9p(XT48: Iterable[CT], ejGl: CT) -> h8nf[s0V0]:
XT48 = sorted(XT48)
while XT48:
OgtD = len(XT48) // 2
nHEA = XT48[OgtD]
if ejGl == nHEA:
return ejGl
elif ejGl > nHEA:
if len(XT48) == 1:
return nHEA
XT48 = XT48[OgtD:]
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qKRB(YKHO, ZfUD: Union[T, Iterable[T], 'RangeSet']) -> NSaB:\n if ZfUD in YKHO:\n for xlLU in YKHO._ranges:\n if ZfUD in xlLU:\n return xlLU\n if a0Kp(ZfUD):\n ZoSe = [xlLU for xlLU in YKHO._ranges for rKtI in ZfUD if rKtI in xlLU]\n if ZoSe:\n ... | [
"0.59909505",
"0.59014136",
"0.5696106",
"0.5512061",
"0.5499331",
"0.5481417",
"0.54173446",
"0.54109436",
"0.52654797",
"0.514055",
"0.51252985",
"0.5076432",
"0.5072844",
"0.50693536",
"0.5057959",
"0.5017377",
"0.49474496",
"0.49372503",
"0.49328104",
"0.49114496",
"0.488... | 0.8241459 | 0 |
Returns the concrete implementation of this class that is activated in the currently running application. | def EdZF(Emd4):
return EdZF('draftcalculationset') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D6B2(Emd4):\n if Emd4._interface:\n KnxT = Emd4._interface.get_active()\n if KnxT:\n return Emd4(KnxT)\n else:\n return None\n else:\n raise NotImplementedError('Unsupported platform')",
"def EdZF(YKHO):\n return YKHO.__capabilities['IMPLEMENTATION']... | [
"0.7264234",
"0.69521856",
"0.6431449",
"0.63812023",
"0.63368917",
"0.6294266",
"0.6200229",
"0.6143116",
"0.5998701",
"0.59842914",
"0.59648526",
"0.5946588",
"0.5946588",
"0.59409744",
"0.5918161",
"0.58731633",
"0.58670205",
"0.58601266",
"0.58522797",
"0.5844307",
"0.584... | 0.0 | -1 |
The Unique Identifier that represents this DraftCalculationSet in the datastore. Read only. | def PObu(YKHO):
return YKHO._uid | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ShR8(YKHO):\n return YKHO._id",
"def ShR8(YKHO):\n return YKHO._id",
"def Y9Ym(YKHO):\n return YKHO.unique_id",
"def ShR8(YKHO):\n return YKHO._unique_id",
"def ShR8(YKHO):\n return YKHO._unique_id",
"def ShR8(YKHO):\n return YKHO._unique_id",
"def ShR8(YKHO):\n return YKHO._un... | [
"0.7288059",
"0.7288059",
"0.7219837",
"0.7182736",
"0.7182736",
"0.7182736",
"0.7182736",
"0.7182736",
"0.7182736",
"0.7182736",
"0.7182736",
"0.7182736",
"0.7182736",
"0.7182736",
"0.7182736",
"0.7182736",
"0.7182736",
"0.7182736",
"0.7182736",
"0.7182736",
"0.7182736",
"... | 0.0 | -1 |
The DraftInstrumentVersion that this DraftCalculationSet is associated with. Read only. | def SxqL(YKHO):
if isinstance(YKHO._draft_instrument_version, str):
qBtS = EdZF('draftinstrumentversion')
return qBtS.get_by_uid(YKHO._draft_instrument_version)
else:
return YKHO._draft_instrument_version | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mg2a(YKHO):\n return YKHO.firmata_version",
"def kaPv(YKHO):\n return YKHO._version",
"def kaPv(YKHO):\n return YKHO._version",
"def DpZH(YKHO):\n return YKHO.definition_id",
"def kaPv(YKHO):\n return YKHO.versions[0].number",
"def DpZH(YKHO):\n return YKHO._version",
"def kaPv(YK... | [
"0.6429964",
"0.6296803",
"0.6296803",
"0.6266581",
"0.62297416",
"0.6171772",
"0.6166159",
"0.6131871",
"0.6121966",
"0.6121966",
"0.6121966",
"0.6121966",
"0.6121966",
"0.6121966",
"0.6121966",
"0.6121966",
"0.6121966",
"0.6121966",
"0.6121966",
"0.6121966",
"0.61139894",
... | 0.7446886 | 0 |
Returns a unicode string that represents this DraftCalculationSet, suitable for use in humanvisible places. | def y0hN(YKHO):
return brQJ(YKHO.uid) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO) -> str:\n if YKHO.afix and YKHO.shx.frag:\n return k3IH._fragatomstr.format(YKHO.name, YKHO.x, YKHO.y, YKHO.z)\n elif sum([abs(P6bq) for P6bq in YKHO.uvals[2:]]) > 1e-05 and (not YKHO.qpeak):\n try:\n return k3IH._anisatomstr.format(YKHO.name, YKHO.sfac_num, YKHO.x, YK... | [
"0.6583114",
"0.655105",
"0.6497109",
"0.6391775",
"0.6389378",
"0.63841146",
"0.63523316",
"0.63523316",
"0.6351772",
"0.63037384",
"0.6295328",
"0.62944436",
"0.6290646",
"0.6235966",
"0.62019545",
"0.61869335",
"0.6182589",
"0.61641157",
"0.61603343",
"0.6145033",
"0.61375... | 0.0 | -1 |
Adds a new colorbar with appropriate land cover colours and labels. For DEA Land Cover Level 4 data, this function must be used with a double plot. The 'ax' should be on the left side of the figure, and the colour bar will added on the right hand side. | def kkKa(LZpg, aNZO, D3vS, H4hf=False, senY=False):
if D3vS == 'level4' and senY == True:
k13D = LZpg.add_axes([0.62, 0.1, 0.02, 0.8])
ENzu = 'vertical'
nDTU, Kbd7, C_Et, tshe = X939('level4_colourbar_labels', colour_bar=True)
elif D3vS == 'level4' and senY == False:
nDTU, Kbd7, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Rz7N(YKHO, LZpg, aNZO, X7zS, MYQr, UXqs=''):\n import matplotlib as x5MY\n oeNL = aNZO.get_position()\n BFKx = [oeNL.x1 + 0.025, oeNL.y0 + 0.0125, 0.015, oeNL.height * 0.4]\n k13D = LZpg.add_axes(BFKx)\n CkYf = x5MY.colors.BoundaryNorm(X7zS, MYQr.N)\n wn16 = x5MY.colorbar.ColorbarBase(k13D, c... | [
"0.71719074",
"0.6997285",
"0.6997285",
"0.669836",
"0.6589449",
"0.6548926",
"0.6535307",
"0.6534403",
"0.64707905",
"0.61600375",
"0.6088786",
"0.6042188",
"0.6027793",
"0.6013357",
"0.6005772",
"0.58875835",
"0.58337307",
"0.5830993",
"0.58112824",
"0.5753336",
"0.57336825... | 0.62691385 | 9 |
Check that the argument is not an existing category shortcut name. | async def is_not_category_shortcut_name(wAVY, QpfX, PJWX=True):
return await Dzrx(wAVY, QpfX, 'category', PJWX) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def is_not_shortcut_name(wAVY, QpfX, AINo, PJWX):\n pyRJ = getattr(QpfX, AINo + '_data')\n if wAVY not in pyRJ.shortcuts:\n return wAVY\n if PJWX:\n uynS = await QpfX.language.get_text('existing_' + AINo + '_shortcut_name')\n await HumI.invalid_argument(QpfX, wAVY, uynS)\n re... | [
"0.7714414",
"0.76516664",
"0.71216595",
"0.6816582",
"0.6740102",
"0.66602737",
"0.61879903",
"0.6073239",
"0.5952041",
"0.58476436",
"0.5802075",
"0.57566094",
"0.57301205",
"0.5690447",
"0.5583418",
"0.5580576",
"0.55643153",
"0.55020016",
"0.54982567",
"0.54508346",
"0.54... | 0.827925 | 0 |
Check that the argument is not an existing channel shortcut name. | async def is_not_channel_shortcut_name(wAVY, QpfX, PJWX=True):
return await Dzrx(wAVY, QpfX, 'channel', PJWX) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def is_not_shortcut_name(wAVY, QpfX, AINo, PJWX):\n pyRJ = getattr(QpfX, AINo + '_data')\n if wAVY not in pyRJ.shortcuts:\n return wAVY\n if PJWX:\n uynS = await QpfX.language.get_text('existing_' + AINo + '_shortcut_name')\n await HumI.invalid_argument(QpfX, wAVY, uynS)\n re... | [
"0.8021469",
"0.77694243",
"0.76260203",
"0.75722325",
"0.7248981",
"0.7163433",
"0.68407595",
"0.6828904",
"0.6738982",
"0.6223066",
"0.6189678",
"0.6130569",
"0.6077997",
"0.60470206",
"0.5755157",
"0.57352763",
"0.55038905",
"0.5478418",
"0.5454215",
"0.5315024",
"0.530802... | 0.84186035 | 0 |
Check that the argument is not an existing user shortcut name. | async def is_not_user_shortcut_name(wAVY, QpfX, PJWX=True):
return await Dzrx(wAVY, QpfX, 'user', PJWX) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def is_not_shortcut_name(wAVY, QpfX, AINo, PJWX):\n pyRJ = getattr(QpfX, AINo + '_data')\n if wAVY not in pyRJ.shortcuts:\n return wAVY\n if PJWX:\n uynS = await QpfX.language.get_text('existing_' + AINo + '_shortcut_name')\n await HumI.invalid_argument(QpfX, wAVY, uynS)\n re... | [
"0.82053435",
"0.7482318",
"0.7463285",
"0.73930466",
"0.71741325",
"0.7152495",
"0.6540151",
"0.65401393",
"0.6266788",
"0.6210341",
"0.6193953",
"0.60781914",
"0.6072022",
"0.59953326",
"0.5864005",
"0.5799297",
"0.56280684",
"0.5585906",
"0.5585906",
"0.55737007",
"0.55294... | 0.83287245 | 0 |
Check that the argument is an existing category shortcut name. | async def is_category_shortcut_name(wAVY, QpfX, PJWX=True):
return await ejOY(wAVY, QpfX, 'category', PJWX) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def is_not_category_shortcut_name(wAVY, QpfX, PJWX=True):\n return await Dzrx(wAVY, QpfX, 'category', PJWX)",
"async def is_not_shortcut_name(wAVY, QpfX, AINo, PJWX):\n pyRJ = getattr(QpfX, AINo + '_data')\n if wAVY not in pyRJ.shortcuts:\n return wAVY\n if PJWX:\n uynS = await Qp... | [
"0.77973664",
"0.72644895",
"0.72339296",
"0.6776437",
"0.6587396",
"0.6404537",
"0.6306758",
"0.62658197",
"0.62185323",
"0.60457426",
"0.60327756",
"0.5943239",
"0.57920647",
"0.57240665",
"0.57042533",
"0.5626002",
"0.5623887",
"0.5571702",
"0.54368025",
"0.5416069",
"0.53... | 0.83351207 | 0 |
Check that the argument is an existing channel shortcut name. | async def is_channel_shortcut_name(wAVY, QpfX, PJWX=True):
return await ejOY(wAVY, QpfX, 'channel', PJWX) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def is_not_channel_shortcut_name(wAVY, QpfX, PJWX=True):\n return await Dzrx(wAVY, QpfX, 'channel', PJWX)",
"async def is_shortcut_name(wAVY, QpfX, AINo, PJWX):\n pyRJ = getattr(QpfX, AINo + '_data')\n if wAVY in pyRJ.shortcuts:\n return wAVY\n if PJWX:\n uynS = await QpfX.languag... | [
"0.7970405",
"0.7644696",
"0.76247466",
"0.73243815",
"0.73227364",
"0.7235993",
"0.7053422",
"0.695774",
"0.6666271",
"0.66454387",
"0.65955013",
"0.6527631",
"0.6350113",
"0.6033046",
"0.5913773",
"0.5825547",
"0.5636676",
"0.5555158",
"0.5408972",
"0.5294163",
"0.5292916",... | 0.8366964 | 0 |
The user's current status | def QTBn(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ByGp(Emd4):\n return pz3A(status=Emd4._user_status())",
"def jGRS(YKHO):\n return Aj3E.Pending.value",
"def jGRS(YKHO) -> str:\n return qe4Y.get(YKHO, 'status')",
"def jGRS(YKHO) -> str:\n return qe4Y.get(YKHO, 'status')",
"def jGRS(YKHO) -> str:\n return qe4Y.get(YKHO, 'status')",
"de... | [
"0.7699138",
"0.76246744",
"0.75170374",
"0.75170374",
"0.75170374",
"0.75170374",
"0.75170374",
"0.75170374",
"0.75170374",
"0.75170374",
"0.75170374",
"0.75170374",
"0.75170374",
"0.75170374",
"0.75170374",
"0.75170374",
"0.75170374",
"0.75170374",
"0.75170374",
"0.75170374",... | 0.0 | -1 |
Sets default input parameters for optimization | def FIMM(YKHO, ZYLP, mWFP='relax_settings'):
rRJq = {'EDIFF': 1e-17, 'NSW': 20, 'IBRION': 2, 'ISIF': 2, 'ISYM': -1, 'NBLOCK': 1, 'KBLOCK': 20}
brcW.__init__(YKHO, ionic_settings=rRJq, name=mWFP)
YKHO.update_electronic_sttings('ENCUT', ZYLP) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, muwo={}, nPrm=None):\n super().__init__(defaults={**f2sE.parameters, **muwo}, data=nPrm)",
"def kP1P(YKHO):\n super().set_default_parameters()",
"def kP1P(YKHO):\n super().set_default_parameters()\n if not 'replace_existing_files' in vars(YKHO):\n YKHO.replace_existing_files =... | [
"0.7754295",
"0.73901623",
"0.72867495",
"0.71303463",
"0.71303463",
"0.71303463",
"0.71063876",
"0.6973967",
"0.6917061",
"0.68457067",
"0.68178463",
"0.6796467",
"0.67123127",
"0.67046577",
"0.6677439",
"0.6677376",
"0.66621226",
"0.66601384",
"0.6644934",
"0.66376185",
"0.... | 0.0 | -1 |
Gets the id of this Attribution. Unique ID | def id(YKHO):
return YKHO._id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ShR8(YKHO):\n return YKHO._id",
"def ShR8(YKHO):\n return YKHO._id",
"def unpH(YKHO):\n return YKHO.__id",
"def unpH(YKHO):\n return YKHO.__id",
"def unpH(YKHO):\n return YKHO._id",
"def unpH(YKHO):\n return YKHO._id",
"def unpH(YKHO):\n return YKHO._id",
"def unpH(YKHO):\n ... | [
"0.7676196",
"0.7676196",
"0.7439954",
"0.7439954",
"0.7434042",
"0.7434042",
"0.7434042",
"0.7434042",
"0.7434042",
"0.7434042",
"0.74323577",
"0.74294955",
"0.73866296",
"0.73866296",
"0.73866296",
"0.73866296",
"0.73866296",
"0.73866296",
"0.73866296",
"0.73866296",
"0.738... | 0.0 | -1 |
Sets the id of this Attribution. Unique ID | def id(YKHO, id):
YKHO._id = id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V_9M(YKHO, hbFX=None):\n if hbFX is None:\n YKHO.id = id(YKHO)\n else:\n YKHO.id = hbFX",
"def V_9M(YKHO, id):\n YKHO.__id = id",
"def V_9M(YKHO, hbFX):\n YKHO.id_ = hbFX",
"def V_9M(YKHO, id):\n YKHO.data['id'] = id",
"def psjw(YKHO, id):\n YKHO.id = int(id)",
"def id... | [
"0.75763136",
"0.7568043",
"0.75300276",
"0.73452944",
"0.7331687",
"0.73202986",
"0.73202986",
"0.73202986",
"0.73202986",
"0.73202986",
"0.728498",
"0.728498",
"0.728498",
"0.728498",
"0.728498",
"0.728498",
"0.728498",
"0.728498",
"0.728498",
"0.728498",
"0.728498",
"0.7... | 0.0 | -1 |