query stringlengths 10 3.6k | document stringlengths 19 61.4k | metadata dict | negatives listlengths 0 101 | negative_scores listlengths 0 101 | document_score stringlengths 3 10 | document_rank stringclasses 102
values |
|---|---|---|---|---|---|---|
Returns a fullyqualified location string. | def UxUL(bNKA: str, Rci7: str) -> str:
return 'projects/{project}/locations/{location}'.format(project=bNKA, location=Rci7) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hbd3(YKHO) -> str:\n raise NotImplementedError()",
"def PrXH(YKHO):\n raise NotImplementedError",
"def aYU_(YKHO) -> str:\n return '???' if YKHO.location is None else YKHO.location.gnu_style_repr(relative=True)",
"def xkW5(m6Me):\n a1PO = ZbWC.findall('\\\\n(?i)location:\\\\s*(.*)\\\\r\\\\s*'... | [
"0.7628572",
"0.7587895",
"0.7518726",
"0.74279094",
"0.734031",
"0.734031",
"0.73248327",
"0.73233604",
"0.72983885",
"0.72983885",
"0.72983885",
"0.72983885",
"0.72983885",
"0.72983885",
"0.72983885",
"0.72983885",
"0.72983885",
"0.72983885",
"0.72983885",
"0.72983885",
"0.... | 0.0 | -1 |
Initialize an Arrow with the specified damage, name, height, width, and position (x,y) | def FIMM(YKHO, mWFP, a033, H2v2, TVTK, WKvO, LVAh, YtJp):
a9eO.sprite.Sprite.__init__(YKHO)
YKHO.damage = a033
YKHO.name = mWFP
YKHO.image, YKHO.rect = DZ0a(mWFP + '.png')
YKHO.image = a9eO.transform.scale(YKHO.image, (H2v2, TVTK))
YKHO.rect.height = H2v2
YKHO.rect.width = TVTK
YKHO.rect... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, YylR, p8Jz, H2v2, QzhK):\n YKHO.xpos = QzhK\n YKHO.ypos = H2v2\n q7In = Y_1E(YylR)\n YKHO.xvel = p8Jz * YhSR(q7In)\n YKHO.yvel = p8Jz * YUNn(q7In)\n YKHO.ymax = H2v2",
"def FIMM(YKHO, mWFP, ZnpV, H2v2, TVTK, WKvO, LVAh, zTvC):\n a9eO.sprite.Sprite.__init__(YKHO)\n YKHO.imag... | [
"0.6475193",
"0.6411617",
"0.6375884",
"0.6313614",
"0.62964666",
"0.62855536",
"0.62823725",
"0.62690645",
"0.6160577",
"0.6155512",
"0.61493915",
"0.6082406",
"0.6054202",
"0.60494196",
"0.60491407",
"0.6046637",
"0.60432243",
"0.6031253",
"0.60310596",
"0.60239804",
"0.598... | 0.6433467 | 1 |
Initialize a hero with the specified health, height, width, and position (x,y) | def FIMM(YKHO, mWFP, ZnpV, H2v2, TVTK, WKvO, LVAh, zTvC):
a9eO.sprite.Sprite.__init__(YKHO)
YKHO.image, YKHO.rect = DZ0a(mWFP + '.png')
YKHO.image = a9eO.transform.scale(YKHO.image, (H2v2, TVTK))
YKHO.rect.height = H2v2
YKHO.rect.width = TVTK
YKHO.rect.left = WKvO
YKHO.rect.top = LVAh
YK... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, qfpW, WKvO, LVAh, TVTK=10, H2v2=10):\n YKHO.image = a9eO.Surface([TVTK, H2v2])\n YKHO.image.fill(qfpW)\n YKHO.rect = YKHO.image.get_rect()\n YKHO.width = TVTK\n YKHO.height = H2v2\n YKHO.x = -YKHO.width / 2\n YKHO.y = -YKHO.height / 2\n YKHO.xVel = 0\n YKHO.yVel = 0\n Y... | [
"0.7291342",
"0.70888156",
"0.7088191",
"0.6970048",
"0.68870324",
"0.6765054",
"0.6740735",
"0.6725424",
"0.6695698",
"0.6694695",
"0.66604286",
"0.66544694",
"0.66363376",
"0.6596537",
"0.6593804",
"0.65889734",
"0.6582123",
"0.6574773",
"0.65519994",
"0.6497339",
"0.649521... | 0.70199907 | 3 |
Initialize the game with the screen size and sprites | def FIMM(YKHO, TVTK, H2v2):
a9eO.init()
YKHO.width = TVTK
YKHO.height = H2v2
YKHO.screen = a9eO.display.set_mode((YKHO.width, YKHO.height))
YKHO.hero = zBLS('Hero', 250, 320, 320, 0, 630, 0)
YKHO.monster = dl2_('Monster', 150, 200, 200, 947, 220, 2)
YKHO.arrow_group = a9eO.sprite.Group()
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GBWC(YKHO):\n a9eO.init()\n YKHO.all_sprites = a9eO.sprite.Group()\n YKHO.BG_COLOR = uwaB.WHITE\n YKHO.clock = a9eO.time.Clock()\n a9eO.display.set_caption('Enter {}'.format(uwaB.TITLE))\n YKHO.screen = a9eO.display.set_mode((uwaB.SCREEN_WIDTH, uwaB.SCREEN_HEIGHT))\n YKHO.font = a9eO.font.... | [
"0.7673559",
"0.7610511",
"0.7493823",
"0.7480934",
"0.74267983",
"0.7423003",
"0.7357311",
"0.73267686",
"0.7303973",
"0.72482157",
"0.7213823",
"0.71965605",
"0.71580577",
"0.71559745",
"0.7116694",
"0.71147203",
"0.7110188",
"0.7095826",
"0.7092978",
"0.7085302",
"0.708422... | 0.0 | -1 |
Draws updated and newly generated sprites | def EVEV(YKHO):
YKHO.hero_sprites.draw(YKHO.screen)
YKHO.monster_sprites.draw(YKHO.screen)
for LgWF in YKHO.arrow_group.sprites():
YKHO.arrow_sprites = a9eO.sprite.RenderPlain(LgWF)
YKHO.arrow_sprites.draw(YKHO.screen)
for DdMV in YKHO.fireball_group.sprites():
YKHO.fireball_spri... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JmFt(YKHO):\n YKHO.sprite.draw()",
"def NgQf(YKHO):\n YKHO.player.draw()\n for ee8p in YKHO.coins:\n ee8p.draw()\n for rA91 in YKHO.bricks:\n rA91.draw()",
"def JmFt(YKHO):\n YKHO.map.draw()\n YKHO.sprites.draw()",
"def JmFt(YKHO):\n Z9rn = YKHO.camera\n for WKvO in ... | [
"0.7805738",
"0.7804773",
"0.77289665",
"0.76104885",
"0.75613064",
"0.74642426",
"0.7349135",
"0.73398584",
"0.73198926",
"0.72956467",
"0.7281646",
"0.72249305",
"0.72249305",
"0.71966374",
"0.7172459",
"0.71613604",
"0.71186787",
"0.7111704",
"0.70921344",
"0.7057068",
"0.... | 0.7677137 | 3 |
Normalize the color if specified. | def zxwX(YEnM):
if 'color' in YEnM:
qfpW = YEnM.pop('color')
qfpW = XbT4(qfpW)
if qfpW is not None:
YEnM['color'] = qfpW | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VYlc(zZcM, JBMS, M1Jx=None):\n if JBMS is not None:\n zZcM -= JBMS\n if M1Jx is not None:\n zZcM /= M1Jx\n return zZcM",
"def jnV4(YKHO, qfpW=3):\n if qfpW == YKHO.COLOR_RGB:\n qfpW = YKHO.COLOR_RED\n YKHO._normalize(color=YKHO.COLOR_GREEN)\n YKHO._normalize(col... | [
"0.74537975",
"0.73223305",
"0.73021865",
"0.65728205",
"0.6567105",
"0.64543617",
"0.62685996",
"0.6255914",
"0.6141948",
"0.6141948",
"0.6135831",
"0.61188483",
"0.6112813",
"0.61124456",
"0.60949534",
"0.60163957",
"0.6013934",
"0.59815985",
"0.5971111",
"0.5964054",
"0.59... | 0.56902355 | 40 |
Write the string as comma separated numbers, folowing the number normalization rules. | def XbT4(BWXx):
if BWXx.count(',') != 3:
return
try:
Mkmy, Oa1e, Fg_i, jzdc = (float(YRbF) for YRbF in BWXx.split(','))
except ValueError:
return
if any((WKvO < 0 or WKvO > 1 for WKvO in (Mkmy, Oa1e, Fg_i, jzdc))):
return
qfpW = (mELm(YRbF) for YRbF in (Mkmy, Oa1e, Fg... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Slee(BWXx):\n zXzD = str(BWXx)\n BdN0 = ZbWC.sub('^(-?\\\\d+)(\\\\d{3})', '\\\\g<1>,\\\\g<2>', zXzD)\n if zXzD == BdN0:\n return BdN0\n else:\n return Slee(BdN0)",
"def Slee(BWXx):\n zXzD = str(BWXx)\n BdN0 = ZbWC.sub('^(-?\\\\d+)(\\\\d{3})', '\\\\g<1>,\\\\g<2>', zXzD)\n if... | [
"0.6241959",
"0.6207732",
"0.61724645",
"0.6125414",
"0.6125414",
"0.6102535",
"0.60129946",
"0.59279865",
"0.58419317",
"0.5836725",
"0.5807011",
"0.57294166",
"0.57214403",
"0.5703257",
"0.56767696",
"0.5671099",
"0.56199867",
"0.55796534",
"0.557458",
"0.55583555",
"0.5542... | 0.0 | -1 |
Get a boolean indicating if a path exists. | def Xz5F(ZTJf, *_o7t):
pmON = bVex(ZTJf, *_o7t)
return Hy7s.path.exists(pmON) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vtfo(pmON):\n return bool",
"def vqzx(pmON):\n return MZ_0.exists(pmON)",
"def _35x(pmON):\n if not pmON:\n return False\n else:\n return Hy7s.path.exists(pmON)",
"def _35x(YKHO) -> bool:\n return Hy7s.path.exists(YKHO.pathname)",
"def vtfo(YKHO, pmON: str) -> bool:\n pa... | [
"0.8827266",
"0.84505504",
"0.839795",
"0.81858706",
"0.8164752",
"0.81474173",
"0.8136903",
"0.8111904",
"0.8103623",
"0.80961883",
"0.806701",
"0.806701",
"0.806701",
"0.80365145",
"0.8030312",
"0.7998658",
"0.7985035",
"0.79441726",
"0.7931175",
"0.7912362",
"0.787845",
... | 0.0 | -1 |
r""" Compare self to other, where the coercion model has already ensured that other has the same parent as self. | def Aicm(YKHO, Elif):
if not isinstance(Elif, JS1A):
if isinstance(Elif, lJKo):
return eHkp(YKHO, Elif.matrix_form())
else:
raise RuntimeError('Bug in coercion code')
return eHkp(YKHO.__matrix, Elif.__matrix) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TPjt(YKHO, Elif):\n return YKHO.is_ancestor(Elif, allow_same=True)",
"def yaGw(YKHO):\n return YKHO",
"def xa14(YKHO, Elif):\n try:\n if Elif.parent() != YKHO.parent():\n return False\n except AttributeError:\n return False\n return fHNa([fHNa(bGrB) for bGrB in YKHO.... | [
"0.7218775",
"0.71036476",
"0.70006114",
"0.6968414",
"0.6868386",
"0.6868386",
"0.6868386",
"0.6868386",
"0.6868386",
"0.6868386",
"0.68645734",
"0.68499523",
"0.68439996",
"0.6833426",
"0.6818087",
"0.6778261",
"0.6767404",
"0.67654395",
"0.6758238",
"0.67199105",
"0.671870... | 0.0 | -1 |
r""" String representation of self. | def aRbh(YKHO):
return 'Hecke operator on %s defined by:\n%s' % (YKHO.parent().module(), YKHO.__matrix) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yLCI(YKHO) -> str:\n return YKHO.__str__()",
"def zAg0(YKHO):\n return YKHO.tostring()",
"def yLCI(YKHO) -> str:\n return str(YKHO)",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def rIkN(YKHO) -> str:\n return str(YKHO)",
"def gTzM(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO):... | [
"0.8652221",
"0.8625032",
"0.86233217",
"0.8612876",
"0.8599235",
"0.85905826",
"0.85698104",
"0.85149574",
"0.85144436",
"0.8509709",
"0.8505498",
"0.8504453",
"0.8504453",
"0.8502806",
"0.8502806",
"0.84714824",
"0.84714824",
"0.84249246",
"0.84165156",
"0.84165156",
"0.841... | 0.0 | -1 |
Return the matrix that defines this Hecke algebra element. | def SppC(YKHO):
return YKHO.__matrix | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lRGx(YKHO):\n return YKHO.matrix",
"def lRGx(YKHO):\n return YKHO.matrix",
"def aOUW(YKHO):\n return YKHO.matrix",
"def lRGx(YKHO):\n return YKHO._M",
"def _1R3(YKHO):\n return YKHO.matrix",
"def ID2X(YKHO) -> aLMY:\n ...",
"def SppC(YKHO):\n return YKHO._matrix",
"def SppC(Y... | [
"0.76048183",
"0.76048183",
"0.7517739",
"0.74702317",
"0.7407821",
"0.73891515",
"0.7365162",
"0.73376465",
"0.73376465",
"0.73376465",
"0.73376465",
"0.73376465",
"0.73376465",
"0.7310473",
"0.72695285",
"0.7247402",
"0.7244048",
"0.71958184",
"0.7183981",
"0.7167076",
"0.7... | 0.747248 | 3 |
r""" Multiply self by other (which has already been coerced into an element of the parent of self). | def F38I(YKHO, Elif):
return YKHO.parent()(Elif.matrix() * YKHO.matrix(), check=False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F38I(YKHO, Elif):\n yvY1 = YKHO.parent()\n if yvY1.zeta.is_in_cache():\n WKvO = YKHO.element() + Elif.element()\n else:\n WKvO = tuple((LVAh * epBp for LVAh, epBp in zip(YKHO.values_on_gens(), Elif.values_on_gens())))\n return yvY1.element_class(yvY1, WKvO, check=False)",
"def E_tF(... | [
"0.810064",
"0.80486846",
"0.8011027",
"0.79877144",
"0.79748535",
"0.7931353",
"0.7856856",
"0.78542686",
"0.784452",
"0.78360283",
"0.782315",
"0.782315",
"0.78182876",
"0.7801909",
"0.77747977",
"0.77385527",
"0.77160186",
"0.77051544",
"0.77028984",
"0.7689834",
"0.767017... | 0.7813257 | 13 |
r""" Compare self and other (where the coercion model has already ensured that self and other have the same parent). Hecke operators on the same space compare as equal if and only if their matrices are equal, so we check if the indices are the same and if not we compute the matrices (which is potentially expensive). | def Aicm(YKHO, Elif):
if not isinstance(Elif, lJKo):
if isinstance(Elif, JS1A):
return eHkp(YKHO.matrix_form(), Elif)
else:
raise RuntimeError('Bug in coercion code')
if YKHO.__n == Elif.__n:
return 0
return eHkp(YKHO.matrix(), Elif.matrix()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Aicm(YKHO, Elif):\n if not YKHO.check_size(Elif):\n raise ValueError('The matrix are not of equal size')\n if Pusg(lambda kYGz, ftz7: kYGz and ftz7, map(seET.eq, YKHO.m, Elif.m), True):\n return 0\n return -1",
"def xa14(YKHO, Elif):\n if not isinstance(Elif, H0vI):\n return ... | [
"0.72885686",
"0.7288232",
"0.726339",
"0.72265446",
"0.70885277",
"0.699859",
"0.6979724",
"0.6976115",
"0.6971303",
"0.68973684",
"0.6855472",
"0.68516976",
"0.6836019",
"0.68320894",
"0.682536",
"0.6813589",
"0.67990184",
"0.6791088",
"0.6777894",
"0.67435217",
"0.67307544... | 0.73992324 | 0 |
r""" String representation of self | def aRbh(YKHO):
return 'Hecke operator T_%s on %s' % (YKHO.__n, YKHO.domain()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return YKHO.tostring()",
"def zAg0(YKHO):\n return repr(YKHO)",
"def yLCI(YKHO) -> str:\n return YKHO.__str__()",
"def zAg0(YKHO) -> str:\n return repr(YKHO)",
"def zAg0(YKHO):\n return repr(YKHO)",
"def zAg0(YKHO):\n return repr(YKHO)",
"def yLCI(YKHO) -> str:\n ... | [
"0.86630696",
"0.8604246",
"0.8571434",
"0.8541741",
"0.8530439",
"0.8530439",
"0.8523575",
"0.84824544",
"0.8469104",
"0.8469104",
"0.8469104",
"0.8463923",
"0.8456848",
"0.8456848",
"0.8442753",
"0.843774",
"0.8433291",
"0.8433291",
"0.8430114",
"0.8430114",
"0.8400906",
... | 0.0 | -1 |
Multiply this Hecke operator by another element of the same algebra. If the other element is of the form `T_m` for some m, we check whether the product is equal to `T_{mn}` and return that; if the product is not (easily seen to be) of the form `T_{mn}`, then we calculate the product of the two matrices and return a Hec... | def F38I(YKHO, Elif):
if isinstance(Elif, lJKo) and Elif.parent() == YKHO.parent():
exwG = None
if bD3J.gcd(YKHO.__n, Elif.__n) == 1:
exwG = YKHO.__n * Elif.__n
else:
V6IE = set(bD3J.prime_divisors(YKHO.domain().level()))
if V6IE.issubset(set(bD3J.prime_di... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F38I(YKHO, Elif):\n yvY1 = YKHO.parent()\n if yvY1.zeta.is_in_cache():\n WKvO = YKHO.element() + Elif.element()\n else:\n WKvO = tuple((LVAh * epBp for LVAh, epBp in zip(YKHO.values_on_gens(), Elif.values_on_gens())))\n return yvY1.element_class(yvY1, WKvO, check=False)",
"def F38I(... | [
"0.69931465",
"0.6743648",
"0.65738183",
"0.64411414",
"0.6436827",
"0.6427926",
"0.64105594",
"0.64105594",
"0.6399584",
"0.6389909",
"0.63822067",
"0.6328233",
"0.6314429",
"0.6286951",
"0.62642735",
"0.6256172",
"0.6255319",
"0.62476265",
"0.62476265",
"0.6208815",
"0.6181... | 0.736856 | 0 |
Return the matrix underlying this Hecke operator. | def SppC(YKHO, *qIxc, **c_sp):
try:
return YKHO.__matrix
except AttributeError:
YKHO.__matrix = YKHO.parent().hecke_matrix(YKHO.__n, *qIxc, **c_sp)
return YKHO.__matrix | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lRGx(YKHO):\n return YKHO.matrix",
"def lRGx(YKHO):\n return YKHO.matrix",
"def SppC(YKHO):\n return YKHO._matrix",
"def aOUW(YKHO):\n return YKHO.matrix",
"def SppC(YKHO):\n return YKHO.__matrix",
"def _1R3(YKHO):\n return YKHO.matrix",
"def lRGx(YKHO):\n return YKHO._M",
"d... | [
"0.75277954",
"0.75277954",
"0.74882674",
"0.74517184",
"0.738696",
"0.73635364",
"0.73409575",
"0.7322952",
"0.7267186",
"0.7257523",
"0.7257523",
"0.7257523",
"0.7257523",
"0.7257523",
"0.7257523",
"0.7222672",
"0.71149814",
"0.7030059",
"0.7026097",
"0.69895786",
"0.698732... | 0.6472992 | 46 |
The relative path to the directory containing meson.build This path is relative to the root of the extracted tarball, not to the ``build_directory``. Defaults to the current directory. | def _yUq(YKHO):
return YKHO.stage.source_path | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SfyY(YKHO):\n return YKHO._build_dir",
"def KKuB(YKHO):\n return Hy7s.path.join(YKHO.stage.path, YKHO.build_dirname)",
"def D0Qi(YKHO):\n return YKHO.get_meta()['build_dir']",
"def PU3_(YKHO):\n return Hy7s.path.join(YKHO._git_root, YKHO.package, 'BUILD')",
"def SfyY(YKHO):\n YKHO._valid... | [
"0.78203243",
"0.7726728",
"0.75652236",
"0.7478996",
"0.7259529",
"0.721787",
"0.71466285",
"0.710512",
"0.7102384",
"0.70803833",
"0.7020466",
"0.7017679",
"0.6946404",
"0.68737125",
"0.6869936",
"0.68620443",
"0.68547505",
"0.68495834",
"0.68493694",
"0.68416166",
"0.68326... | 0.0 | -1 |
Produces a list of all command line arguments to pass the specified compiler flags to meson. | def Sa9O(YKHO, JbyC):
setattr(YKHO, 'meson_flag_args', []) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H5P4():\n zqTz = {'debug': 'd', 'optimize': 'O', 'dont_write_bytecode': 'B', 'no_user_site': 's', 'no_site': 'S', 'ignore_environment': 'E', 'verbose': 'v', 'bytes_warning': 'b', 'py3k_warning': '3'}\n qIxc = []\n for I1mm, y7GR in zqTz.items():\n Ty9i = getattr(HwRy.flags, I1mm)\n if Ty... | [
"0.7364707",
"0.71529746",
"0.7011269",
"0.68243176",
"0.6806393",
"0.6740823",
"0.6739216",
"0.6716975",
"0.6715681",
"0.6689246",
"0.6682381",
"0.66775477",
"0.6652339",
"0.66302013",
"0.6608691",
"0.66058004",
"0.65848964",
"0.658178",
"0.65711045",
"0.655677",
"0.655343",... | 0.6993829 | 3 |
Computes the mean absolute error between x and y. | def W4jA(WKvO: JaxArray, LVAh: JaxArray, HyuX: Optional[Iterable[int]]=(0,)) -> DKWv:
zxk8 = 'mean_absolute_error'
if WKvO.shape != LVAh.shape:
qmLP.warn(' {} {} : arg1 {} and arg2 {}'.format(u_uE, zxk8, WKvO.shape, LVAh.shape))
N77f = oQ5W.abs(WKvO - LVAh)
jDK_ = [YRbF for YRbF in range(N77f.nd... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W4jA(yzQ0, EcVT, LVAh):\n XObx = oyIN.mean(oyIN.abs(oyIN.subtract(oyIN.dot(EcVT, yzQ0), oyIN.array(LVAh, oyIN.float64))))\n return XObx",
"def W4jA(yzQ0, EcVT, LVAh):\n o9Wy = EcVT.dot(yzQ0)\n yYlc = oyIN.absolute(o9Wy - LVAh)\n ywwl = LVAh.shape[0]\n XObx = oyIN.sum(yYlc) / ywwl\n retur... | [
"0.7976467",
"0.7903605",
"0.7782106",
"0.76740277",
"0.7536628",
"0.75279534",
"0.74727845",
"0.74385184",
"0.73832786",
"0.7341",
"0.72971493",
"0.72696877",
"0.7227028",
"0.7193452",
"0.7182568",
"0.71721077",
"0.7083453",
"0.7024592",
"0.7008375",
"0.69883424",
"0.6975963... | 0.77449036 | 3 |
Computes the mean squared error between x and y. | def SDab(WKvO: JaxArray, LVAh: JaxArray, HyuX: Optional[Iterable[int]]=(0,)) -> DKWv:
zxk8 = 'mean_squared_error'
if WKvO.shape != LVAh.shape:
qmLP.warn(' {} {} : arg1 {} and arg2 {}'.format(u_uE, zxk8, WKvO.shape, LVAh.shape))
N77f = (WKvO - LVAh) ** 2
jDK_ = [YRbF for YRbF in range(N77f.ndim) ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ewIN(WKvO, LVAh):\n return oyIN.sqrt(((WKvO - LVAh) ** 2).mean())",
"def mAKE(WKvO, LVAh):\n return oyIN.mean((WKvO - LVAh) ** 2)",
"def SDab(EcVT, fuBA):\n wD7h = ((EcVT - fuBA) ** 2).sum(axis=1)\n iAxY = XTiz.sqrt(XTiz.mean(wD7h))\n return iAxY",
"def ny2L(WKvO, LVAh):\n return oyIN.m... | [
"0.82632506",
"0.8040025",
"0.7839541",
"0.7823363",
"0.7788289",
"0.7774206",
"0.77617157",
"0.77191997",
"0.76946825",
"0.76138586",
"0.7611925",
"0.74988323",
"0.7457119",
"0.74459165",
"0.7342957",
"0.7301919",
"0.7275778",
"0.7235636",
"0.7209361",
"0.71989155",
"0.71851... | 0.75384164 | 11 |
The operation that failed, if known. N.B. If the failed op was synthesized at runtime, e.g. a `Send` or `Recv` op, there will be no corresponding `tf.Operation` object. In that case, this will return `None`, and you should instead use the `tf.errors.OpError.node_def` to discover information about the op. | def khtY(YKHO):
return YKHO._op | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YWNh(YKHO):\n return YKHO._last_op_error",
"def YmIe(pNZh: ops.Graph, yhyn: Optional[str]) -> h8nf[IPme.Operation]:\n if not yhyn:\n return None\n ZCRR = pNZh.get_operation_by_name(yhyn)\n G9jH.debug('Op found in the graph: %s', yhyn)\n return ZCRR",
"def P1dF(YKHO):\n P1dF = YKHO.... | [
"0.6449634",
"0.63188595",
"0.6196903",
"0.61668426",
"0.598058",
"0.5965185",
"0.5963671",
"0.5957184",
"0.59072137",
"0.5869914",
"0.58626306",
"0.58533424",
"0.58419687",
"0.5832933",
"0.57817775",
"0.57665694",
"0.57267624",
"0.5627647",
"0.5617428",
"0.5617428",
"0.56174... | 0.5194712 | 65 |
Generates a random string of given length out of upercase, lowercase alphabets and, numerals | def BWvy(exwG):
P8oC = vIwR.ascii_letters + vIwR.digits
Mkmy = ''
for YRbF in range(0, exwG):
Mkmy = Mkmy + P8oC[tuKI.randrange(0, len(P8oC))]
return Mkmy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lx9M(u54L):\n return ''.join((tuKI.choice(vIwR.ascii_lowercase) for bGrB in range(u54L)))",
"def a2Ud(u54L=10):\n SuXy = vIwR.ascii_letters + vIwR.digits\n dEzN = ''.join((tuKI.choice(SuXy) for YRbF in range(u54L)))\n return dEzN",
"def gSN1(u54L):\n return ''.join((tuKI.choice(H_Aw) for bGr... | [
"0.8548454",
"0.8461882",
"0.8457494",
"0.8424955",
"0.8399264",
"0.8394373",
"0.83593607",
"0.8328795",
"0.8323841",
"0.83234227",
"0.8293949",
"0.8279622",
"0.82784104",
"0.8276184",
"0.826045",
"0.82543457",
"0.82529616",
"0.8251922",
"0.8251275",
"0.8250748",
"0.8250748",... | 0.0 | -1 |
the higherOrder function return a lambda function | def uvd3(di96):
""" return the lambda function:x is the parameter of the lambda expression
because we need to pass two parameter :element from iterator;the prime number to be the divisor
we could return a lambda function to achieve it:the lambda contains two variable:x(passed from the iterator to be the di... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BPeJ(JfyU):\n \"\"\"*** YOUR CODE HERE ***\"\"\"\n return kZw3",
"def BPeJ(JfyU):\n \"\"\"*** YOUR CODE HERE ***\"\"\"\n return lambda WKvO: lambda LVAh: JfyU(WKvO, LVAh)",
"def BPeJ(JfyU):\n \"\"\"*** YOUR CODE HERE ***\"\"\"\n return lambda LVAh: lambda WKvO: JfyU(WKvO, LVAh)",
"def y... | [
"0.6656227",
"0.66512424",
"0.6637753",
"0.6588053",
"0.64858127",
"0.6377984",
"0.633472",
"0.6330937",
"0.62226045",
"0.6218861",
"0.6207589",
"0.61766255",
"0.6150303",
"0.61218643",
"0.61024326",
"0.61024326",
"0.6079337",
"0.60770506",
"0.6049735",
"0.60409844",
"0.60296... | 0.0 | -1 |
Test that the y and x coordinates are added back in the correct place in the cube dimensions. | def E9oB(YKHO):
g4y1 = [dHE2(), azbY(), fI2I(), ttVh()]
for nPrm, qZLi in g4y1:
with YKHO.subTest(data=nPrm, input_files=qZLi):
CtWL = zoYt()
WbAn = ViNN(CtWL)
WbAn.set_inputs(nPrm)
bdfb = _7pL(qZLi, WbAn, None)
tk32 = bdfb.get_cubes()[0]
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def j1Sf(YKHO):\n t0qN = NOzy('mean')\n geJG = {'lwe_thickness_of_precipitation_amount': {'points': [2.0]}}\n S3w6 = Ty8a.cube.CubeList([YKHO.cube1, YKHO.cube2])\n Aofo = t0qN.process(S3w6, 'new_cube_name', revised_coords=geJG)\n YKHO.assertEqual(Aofo.coord('lwe_thickness_of_precipitation_amount').p... | [
"0.6964172",
"0.6919822",
"0.6888955",
"0.6722233",
"0.67159444",
"0.6681011",
"0.66738796",
"0.656714",
"0.65606916",
"0.65177286",
"0.65115416",
"0.65048033",
"0.6496133",
"0.645783",
"0.64118075",
"0.64085567",
"0.63860327",
"0.6385859",
"0.6380666",
"0.6332753",
"0.632823... | 0.71651536 | 0 |
Test the Met Office weather platform. | async def test_one_weather_site_running(ajET: HomeAssistant, sisH: requests_mock.Mocker) -> None:
WADM = qQXR.loads(dMy2('metoffice.json'))
GV1x = qQXR.dumps(WADM['all_sites'])
RWZi = qQXR.dumps(WADM['wavertree_hourly'])
oJVE = qQXR.dumps(WADM['wavertree_daily'])
sisH.get('/public/data/val/wxfcs/all... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def test_v4_weather(ajET: HomeAssistant) -> None:\n e6AL = await iObY(ajET, N59J)\n assert e6AL.state == A1PM\n assert e6AL.attributes[PlJk] == v7XK\n assert len(e6AL.attributes[rfA8]) == 14\n assert e6AL.attributes[rfA8][0] == {Zrmb: A1PM, uAGj: '2021-03-07T11:00:00+00:00', TGep: 0, CE4y: 0, ... | [
"0.71476746",
"0.7082427",
"0.7019405",
"0.693236",
"0.69164723",
"0.6884179",
"0.68483794",
"0.6815508",
"0.67822266",
"0.6764468",
"0.66437334",
"0.662159",
"0.6605458",
"0.6501997",
"0.6497091",
"0.6450905",
"0.6440323",
"0.6432161",
"0.64209914",
"0.64081633",
"0.6381838"... | 0.6741074 | 10 |
Returns MNIST data as a 3tuple containing the training data, | def UlWi():
with lGU7.open('data/mnist.pkl.gz', 'rb') as eHNT:
bPNP, G91x, Zwka = rIin.load(eHNT)
return (bPNP, G91x, Zwka) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jEop(YKHO):\n (cC56, SBxS), (sAoX, Yc8x) = w37D.load_data()\n ndi4 = (28, 28, 1)\n cC56 = oyIN.reshape(cC56, [-1, *ndi4])\n sAoX = oyIN.reshape(sAoX, [-1, *ndi4])\n cC56 = cC56.astype('float32') / 255.0\n sAoX = sAoX.astype('float32') / 255.0\n return (cC56, sAoX)",
"def bPNP():\n VED... | [
"0.8002567",
"0.7928405",
"0.7845342",
"0.7692261",
"0.76856107",
"0.76752615",
"0.75952834",
"0.7568021",
"0.7489148",
"0.74166006",
"0.73918426",
"0.73761594",
"0.73734605",
"0.73734605",
"0.73734605",
"0.7363199",
"0.73595524",
"0.7338758",
"0.73313427",
"0.7211405",
"0.72... | 0.67121744 | 48 |
List mounted zfs filesystems | def iMX6():
Ylbp = PHIk['cmd.run_all'](pk8S['zfs.zfs_command'](command='mount'), python_shell=False)
if Ylbp['retcode'] == 0:
U5bT = U8Lr()
for XZBf in Ylbp['stdout'].splitlines():
XZBf = XZBf.split()
U5bT[XZBf[0]] = XZBf[-1]
return U5bT
else:
return p... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def j1TK(YKHO, Z2o0):\n tGEk = []\n B7og = Yn3K.check_output(['df', '-PT']).decode('utf-8')\n for bTKY in B7og.splitlines()[1:]:\n bTKY = bTKY.split()\n begE = bTKY[0]\n ygbW = bTKY[1]\n v2CM = bTKY[6]\n XR14 = int(bTKY[3]) * 1024\n zNig = int(bTKY[2]) * 1024\n ... | [
"0.72632176",
"0.7247591",
"0.7198499",
"0.71407807",
"0.70415217",
"0.6885884",
"0.67928916",
"0.6689802",
"0.66555727",
"0.6580763",
"0.6567041",
"0.6566226",
"0.65612084",
"0.6560115",
"0.6532898",
"0.65233123",
"0.64853615",
"0.6478884",
"0.64568424",
"0.6438123",
"0.6409... | 0.8244259 | 0 |
Returns best directions at seed location to start tracking. | def uxwT(YKHO, AU8u):
yOP5 = YKHO.pmf_gen.get_pmf(AU8u)
return YKHO._peak_directions(yOP5) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vE7N():\n rM81 = Rdj6.load_obstacles('../data/world_obstacles.txt')\n xi3E = Rdj6.load_goal('../data/goal.txt')\n yKcO = [0, 0]\n xi3E = tuple(Rdj6.map2img([xi3E])[0])\n yKcO = tuple(Rdj6.map2img([yKcO])[0])\n fQxG = oyIN.array([[0, 0], [36, 0], [0, 36], [36, 36]])\n SJxE = oyIN.array([18,... | [
"0.60181993",
"0.59964234",
"0.59717065",
"0.5965509",
"0.59496313",
"0.5932819",
"0.5906177",
"0.590484",
"0.5880688",
"0.5856897",
"0.5848601",
"0.5778805",
"0.57526344",
"0.5738092",
"0.57249427",
"0.57173854",
"0.5711956",
"0.56890774",
"0.56818044",
"0.56818044",
"0.5661... | 0.0 | -1 |
Create a base class with a metaclass. | def rSS7(e5kH, *gitN):
return e5kH('NewBase', gitN, {}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rSS7(e5kH, P8oC=object):\n return e5kH('NewBase', (P8oC,), {})",
"def rSS7(e5kH, P8oC=object):\n return e5kH('NewBase', (P8oC,), {})",
"def rSS7(e5kH, P8oC=object):\n return e5kH('NewBase', (P8oC,), {})",
"def rSS7(e5kH, P8oC=object):\n return e5kH('NewBase', (P8oC,), {})",
"def rSS7(e5kH, ... | [
"0.82980454",
"0.82980454",
"0.82980454",
"0.82980454",
"0.82980454",
"0.82980454",
"0.82321227",
"0.82321227",
"0.82321227",
"0.82321227",
"0.8203042",
"0.8017039",
"0.8017039",
"0.78227603",
"0.77492",
"0.7551718",
"0.7547112",
"0.74752706",
"0.74461424",
"0.74461424",
"0.7... | 0.80391204 | 11 |
Return number of samples in arraylike x. | def P266(WKvO):
if hasattr(WKvO, 'fit') and callable(WKvO.fit):
raise TypeError('Expected sequence or array-like, got estimator %s' % WKvO)
if not hasattr(WKvO, '__len__') and (not hasattr(WKvO, 'shape')):
if hasattr(WKvO, '__array__'):
WKvO = oyIN.asarray(WKvO)
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cDK5(YKHO) -> int:\n return len(YKHO._xa.sample)",
"def pUuX(YKHO):\n return len(YKHO._y)",
"def jIYh(YKHO) -> int:\n return YKHO._Xtr.shape[0]",
"def HyK4(YKHO, WKvO: List[float]) -> int:\n return len(WKvO)",
"def eAYh(YKHO):\n return YKHO.samples.shape[0]",
"def AV8x(YKHO):\n vTeR... | [
"0.7533582",
"0.7496259",
"0.74502164",
"0.73329216",
"0.7318629",
"0.73006666",
"0.72978854",
"0.7258437",
"0.7235571",
"0.7195865",
"0.7143606",
"0.70573485",
"0.7056855",
"0.7035349",
"0.70340395",
"0.7004598",
"0.6995627",
"0.69949687",
"0.6994437",
"0.69680625",
"0.69444... | 0.81934226 | 0 |
Compute data covariance with the generative model. ``cov = components_.T S2 components_ + sigma2 eye(n_features)`` where S2 contains the explained variances, and sigma2 contains the noise variances. Returns | def naBM(YKHO):
Elf2 = YKHO.components_
FydL = YKHO.explained_variance_
if YKHO.whiten:
Elf2 = Elf2 * oyIN.sqrt(FydL[:, oyIN.newaxis])
cty8 = oyIN.maximum(FydL - YKHO.noise_variance_, 0.0)
PFC2 = oyIN.dot(Elf2.T * cty8, Elf2)
PFC2.flat[::len(PFC2) + 1] += YKHO.noise_variance_
return ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def naBM(YKHO):\n Elf2 = YKHO.components_\n FydL = YKHO.explained_variance_\n if YKHO.whiten:\n Elf2 = Elf2 * oyIN.sqrt(FydL[:, oyIN.newaxis])\n cty8 = oyIN.maximum(FydL - YKHO.noise_variance_, 0.0)\n PFC2 = oyIN.dot(Elf2.T * cty8, Elf2)\n PFC2.flat[::len(PFC2) + 1] += YKHO.noise_variance_... | [
"0.71682906",
"0.70447725",
"0.6905958",
"0.68852335",
"0.6874417",
"0.6874417",
"0.68180877",
"0.6799478",
"0.67835057",
"0.6687398",
"0.6599821",
"0.6534442",
"0.65066624",
"0.6397717",
"0.6386102",
"0.6377997",
"0.6370992",
"0.634608",
"0.63453096",
"0.63267237",
"0.631582... | 0.71696126 | 0 |
Compute data precision matrix with the generative model. Equals the inverse of the covariance but computed with the matrix inversion lemma for efficiency. Returns | def VvxU(YKHO):
ROaS = YKHO.components_.shape[1]
if YKHO.n_components_ == 0:
return oyIN.eye(ROaS) / YKHO.noise_variance_
if YKHO.n_components_ == ROaS:
return aJJu.inv(YKHO.get_covariance())
Elf2 = YKHO.components_
FydL = YKHO.explained_variance_
if YKHO.whiten:
Elf2 = E... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pSVG(YKHO):\n YKHO._mat = YKHO.E.isogeny_class(order=YKHO.curves)._mat",
"def VvxU(YKHO):\n ROaS = YKHO.components_.shape[1]\n if YKHO.n_components_ == 0:\n return oyIN.eye(ROaS) / YKHO.noise_variance_\n if YKHO.n_components_ == ROaS:\n return aJJu.inv(YKHO.get_covariance())\n El... | [
"0.601323",
"0.5895649",
"0.5890929",
"0.5889089",
"0.5877819",
"0.583478",
"0.58057964",
"0.57124346",
"0.56880903",
"0.56734633",
"0.5661375",
"0.56405705",
"0.5625989",
"0.5621142",
"0.56027526",
"0.5592718",
"0.5582677",
"0.55771625",
"0.5570511",
"0.55577064",
"0.5556273... | 0.5896466 | 1 |
Turn seed into a np.random.RandomState instance | def p11e(yokr):
if yokr is None or yokr is oyIN.random:
return oyIN.random.mtrand._rand
if isinstance(yokr, (mSrU.Integral, oyIN.integer)):
return oyIN.random.RandomState(yokr)
if isinstance(yokr, oyIN.random.RandomState):
return yokr
raise ValueError('%r cannot be used to seed a... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yokr(o5eM: int=0):\n QTBn = oyIN.random.get_state()\n oyIN.random.seed(o5eM)\n yield\n oyIN.random.set_state(QTBn)",
"def to59(YKHO):\n yokr = YKHO._params['seed'] if 'seed' in YKHO._params else None\n t3eI = oyIN.random.RandomState(seed=yokr)\n return t3eI",
"def yokr(YKHO, yokr=None)... | [
"0.81438094",
"0.7911968",
"0.7851633",
"0.7828771",
"0.77397126",
"0.7720357",
"0.7709723",
"0.7702962",
"0.76881766",
"0.76804405",
"0.76750857",
"0.76288515",
"0.76288515",
"0.7562748",
"0.7494193",
"0.7488604",
"0.7477351",
"0.7456756",
"0.7456756",
"0.7388109",
"0.738509... | 0.71927774 | 42 |
translate x by subtracting its mean (so the result has mean 0) | def UCnk(WKvO):
cgTt = JBMS(WKvO)
return [Y7fn - cgTt for Y7fn in WKvO] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UCnk(WKvO):\n fTjR = JBMS(WKvO)\n return [kidU - fTjR for kidU in WKvO]",
"def UCnk(WKvO):\n fTjR = JBMS(WKvO)\n return [kidU - fTjR for kidU in WKvO]",
"def UCnk(WKvO):\n fTjR = JBMS(WKvO)\n return [kidU - fTjR for kidU in WKvO]",
"def UCnk(WKvO):\n fTjR = JBMS(WKvO)\n return [ki... | [
"0.789805",
"0.77329683",
"0.77329683",
"0.77329683",
"0.77329683",
"0.77329683",
"0.7079062",
"0.70445853",
"0.7034231",
"0.7034231",
"0.6968305",
"0.69679195",
"0.69649017",
"0.6962058",
"0.69551945",
"0.69523513",
"0.69154924",
"0.68932325",
"0.68923855",
"0.6872617",
"0.6... | 0.8002999 | 0 |
Returns the instance name. | def mWFP(YKHO):
return YKHO._name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zeTD(YKHO) -> str:\n return qe4Y.get(YKHO, 'instance_name')",
"def zeTD(YKHO) -> str:\n return qe4Y.get(YKHO, 'instance_name')",
"def zeTD(YKHO) -> str:\n return qe4Y.get(YKHO, 'instance_name')",
"def zeTD(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'instance_name')",
"def zeTD(YKHO)... | [
"0.9321811",
"0.9321811",
"0.9321811",
"0.9116468",
"0.8778056",
"0.86262035",
"0.86057866",
"0.85218114",
"0.821136",
"0.81341875",
"0.8131701",
"0.8068521",
"0.78712094",
"0.78384995",
"0.7802461",
"0.7802461",
"0.7802461",
"0.77686507",
"0.77668434",
"0.77616894",
"0.77616... | 0.0 | -1 |
Returns a copy of this SchInstance. | def jth9(YKHO, a35g, siZ_=None):
if siZ_ is None:
siZ_ = YKHO._term_mapping.copy()
return n6dg(YKHO._db, YKHO._gen_lib_name, YKHO._gen_cell_name, a35g, static=YKHO._static, connections=siZ_, master=YKHO._master, parameters=YKHO.parameters.copy()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jth9(YKHO):\n return YKHO",
"def FzJk(YKHO):\n jth9 = ZXja(YKHO._nces__id, YKHO.__total_sudents, YKHO.__total_funding)\n for AAbN in YKHO.__neighbors:\n jth9.add_neighbor(AAbN)\n return jth9",
"def jth9(YKHO):\n return jth9(YKHO)",
"def jth9(YKHO):\n return YKHO.__copy__()",
"d... | [
"0.7644008",
"0.7616718",
"0.75802976",
"0.7530812",
"0.7530812",
"0.7530812",
"0.7530812",
"0.7529634",
"0.7529634",
"0.7529634",
"0.7529634",
"0.7529634",
"0.7529474",
"0.751045",
"0.751045",
"0.74599314",
"0.74599314",
"0.74599314",
"0.74599314",
"0.74599314",
"0.74484295"... | 0.0 | -1 |
Returns a dictionary from parameter names to descriptions. Returns | def Rdgn(Emd4):
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MnWk(YKHO):\n aevO = YKHO.describe()\n return dict([(XP5J['key'], XP5J) for XP5J in aevO['parameters']])",
"def SGPK(YKHO):\n return dict(((G1Hx, getattr(YKHO, G1Hx)) for G1Hx in YKHO._parameter_names))",
"def SGPK(YKHO) -> cuzp[str, ImMB]:\n return {mWFP: getattr(YKHO, mWFP) for mWFP in YKHO.p... | [
"0.8323599",
"0.7416645",
"0.73098916",
"0.72821087",
"0.7112357",
"0.69728196",
"0.69145745",
"0.6907672",
"0.68064445",
"0.68014175",
"0.68006855",
"0.6749965",
"0.67406386",
"0.6739034",
"0.670004",
"0.66252285",
"0.65529186",
"0.6518889",
"0.65064925",
"0.6504026",
"0.649... | 0.0 | -1 |
The master cell name. | def tRfS(YKHO):
if YKHO.is_primitive():
return YKHO.get_cell_name_from_parameters()
return super(awyi, YKHO).cell_name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iHcw(YKHO):\n return YKHO._gen_cell_name if YKHO._master is None else YKHO._master.cell_name",
"def z5Ad(YKHO):\n return YKHO._orig_cell_name",
"def U5qm(YKHO):\n return YKHO._orig_cell_name",
"def daU3(YKHO):\n return super(awyi, YKHO).cell_name",
"def LDIG(YKHO) -> h8nf[str]:\n return ... | [
"0.9308889",
"0.8076868",
"0.68202186",
"0.67022526",
"0.6667237",
"0.6645765",
"0.6566846",
"0.6566846",
"0.6566846",
"0.6566846",
"0.6519259",
"0.6462282",
"0.6458263",
"0.64062184",
"0.6345783",
"0.6332382",
"0.63240093",
"0.6260365",
"0.62336403",
"0.62027836",
"0.6202783... | 0.70491195 | 2 |
Returns the schematic parameter dictionary of this instance. | def et_6(YKHO):
return {} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Rdgn(Emd4):\n return dict(buf_sch_params='buffer schematic parameters', dff_sch_params='dff schematic parameters', n_stage='number of stages', debug='True to debug')",
"def JcP6(YKHO):\n if YKHO._derived_properties['simul_parameters'] is None:\n YKHO._derived_properties['simul_parameters'] = {}\... | [
"0.723491",
"0.7190538",
"0.717179",
"0.71293247",
"0.71275145",
"0.7077122",
"0.69915354",
"0.6976411",
"0.69323754",
"0.6928064",
"0.69204205",
"0.69083214",
"0.6902461",
"0.6878822",
"0.68774825",
"0.6842685",
"0.6769703",
"0.6756372",
"0.675619",
"0.6755457",
"0.67503405"... | 0.8768616 | 0 |
Sets the updated_at of this UserInvite. | def zB0d(YKHO, zB0d):
if zB0d is None:
raise ValueError('Invalid value for `updated_at`, must not be `None`')
YKHO._updated_at = zB0d | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jh2W(YKHO, BWXx):\n setattr(YKHO, YKHO.UPDATED_AT, BWXx)",
"def zB0d(YKHO, zB0d):\n YKHO._updated_at = zB0d",
"def zB0d(YKHO, zB0d):\n YKHO._updated_at = zB0d",
"def zB0d(YKHO, zB0d):\n YKHO._updated_at = zB0d",
"def zB0d(YKHO, zB0d):\n YKHO._updated_at = zB0d",
"def zB0d(YKHO, zB0d):\... | [
"0.7102635",
"0.66403896",
"0.66403896",
"0.66403896",
"0.66403896",
"0.66403896",
"0.66403896",
"0.66403896",
"0.66403896",
"0.66403896",
"0.66403896",
"0.66403896",
"0.66403896",
"0.66403896",
"0.66403896",
"0.66403896",
"0.66403896",
"0.6467349",
"0.60923463",
"0.6011616",
... | 0.6332692 | 18 |
Sets the email of this UserInvite. | def D3lj(YKHO, D3lj):
if D3lj is None:
raise ValueError('Invalid value for `email`, must not be `None`')
YKHO._email = D3lj | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def srEc(YKHO, D3lj=''):\n YKHO._email = D3lj",
"def srEc(YKHO, D3lj):\n YKHO.email = D3lj",
"def lEeL(YKHO, D3lj):\n YKHO.__email = D3lj",
"def D3lj(YKHO, BWXx):\n YKHO._email = BWXx",
"def lEeL(YKHO, D3lj: str):\n YKHO.__email = D3lj\n return YKHO",
"def D3lj(YKHO, D3lj):\n if D3lj... | [
"0.76925004",
"0.7683076",
"0.7625542",
"0.7600183",
"0.7585095",
"0.74772996",
"0.74772996",
"0.7473724",
"0.74504876",
"0.7359424",
"0.7359424",
"0.7354233",
"0.7330242",
"0.7330242",
"0.7330242",
"0.7330242",
"0.7330242",
"0.7318916",
"0.7318916",
"0.7318916",
"0.7318916",... | 0.71904707 | 41 |
Sets the token of this UserInvite. | def eOtH(YKHO, eOtH):
if eOtH is None:
raise ValueError('Invalid value for `token`, must not be `None`')
YKHO._token = eOtH | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SQxU(YKHO, eOtH):\n YKHO.__token = eOtH",
"def SQxU(YKHO, eOtH):\n YKHO.__token = eOtH",
"def SQxU(YKHO, eOtH):\n YKHO.validateToken()\n YKHO.token = eOtH",
"def SQxU(YKHO, eOtH):\n YKHO.__token = eOtH\n return None",
"def eOtH(YKHO, eOtH):\n YKHO._token = eOtH",
"def eOtH(YKHO, ... | [
"0.6822971",
"0.6822971",
"0.67202884",
"0.6535085",
"0.6458046",
"0.6458046",
"0.64478064",
"0.63828474",
"0.63746226",
"0.6354536",
"0.6350933",
"0.6350933",
"0.6350933",
"0.6350616",
"0.6296056",
"0.62020075",
"0.62011826",
"0.61439466",
"0.6141665",
"0.6077969",
"0.605511... | 0.63991755 | 7 |
Sets the created_at of this UserInvite. | def aJ2e(YKHO, aJ2e):
if aJ2e is None:
raise ValueError('Invalid value for `created_at`, must not be `None`')
YKHO._created_at = aJ2e | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kpUr(YKHO, BWXx):\n setattr(YKHO, YKHO.CREATED_AT, BWXx)",
"def aJ2e(YKHO, aJ2e):\n YKHO._created_at = aJ2e",
"def aJ2e(YKHO, aJ2e):\n YKHO._created_at = aJ2e",
"def aJ2e(YKHO, aJ2e):\n YKHO._created_at = aJ2e",
"def aJ2e(YKHO, aJ2e):\n YKHO._created_at = aJ2e",
"def aJ2e(YKHO, aJ2e):\... | [
"0.73307073",
"0.7088875",
"0.7088875",
"0.7088875",
"0.7088875",
"0.7088875",
"0.7088875",
"0.7088875",
"0.7088875",
"0.7088875",
"0.7088875",
"0.7088875",
"0.7088875",
"0.7088875",
"0.7088875",
"0.7088875",
"0.7088875",
"0.7088875",
"0.7088875",
"0.7088875",
"0.7088875",
... | 0.6666902 | 36 |
Returns the string representation of the model | def gTzM(YKHO):
return CgYo.pformat(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.0 | -1 |
Draws a line described by the hough transform to an image | def TA7X(LNo8, pImw, q7In, qfpW=0):
usx6, WfCS = LNo8.shape
if abs(q7In) < mM0K / 4:
nJ9F = pe1d(pImw / YhSR(q7In))
o4D3 = pe1d(nJ9F - usx6 * YUNn(q7In))
desY = (0, nJ9F, usx6, o4D3)
else:
nxyw = pe1d(pImw / YUNn(q7In))
si3g = pe1d(nxyw + WfCS * YhSR(q7In))
de... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def J4BZ(VXjJ, Nqlg, qfpW):\n s3Vn, PLSm, oM7x = VXjJ.shape\n for YRbF in range(len(Nqlg)):\n oZuG = Nqlg[YRbF][0][0]\n q7In = Nqlg[YRbF][0][1]\n Dmt6 = oyIN.cos(q7In)\n fOhA = oyIN.sin(q7In)\n vgXP = 4000\n WKvO = oZuG * Dmt6\n LVAh = oZuG * fOhA\n o4D... | [
"0.82551795",
"0.80385274",
"0.8016715",
"0.7624685",
"0.7591729",
"0.7556362",
"0.74347156",
"0.7341249",
"0.7321602",
"0.7257834",
"0.7255535",
"0.7198555",
"0.7174601",
"0.71365654",
"0.71119714",
"0.70750487",
"0.70734066",
"0.7038613",
"0.70385027",
"0.702963",
"0.702725... | 0.74430984 | 6 |
Calculate the Mean squared Error | def jpEG(LVAh, UShr, yzQ0):
tTpl = LVAh - UShr @ yzQ0
return 1.0 / (2.0 * len(LVAh)) * tTpl.dot(tTpl) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z2Se(LVAh, JBMS):\n return (LVAh - JBMS).pow(2).sum()",
"def SDab(YKHO):\n r8hN = YKHO.y_actual.shape[0]\n hkHB = YKHO.sum_of_squares_of_residuals()\n return hkHB / r8hN",
"def Cpaj(YKHO) -> float:\n return YKHO._call_java('meanSquaredError')",
"def SDab(P1dF):\n return oyIN.average(P1d... | [
"0.78447056",
"0.7812342",
"0.7770314",
"0.77591693",
"0.7721746",
"0.76901203",
"0.76677793",
"0.7664942",
"0.7601136",
"0.7565156",
"0.74139845",
"0.74074835",
"0.7385972",
"0.7326278",
"0.7316492",
"0.731525",
"0.726299",
"0.72078645",
"0.7196223",
"0.719006",
"0.7146009",... | 0.0 | -1 |
Compute the regularized logistic gradient regression using GD | def wnl5(LVAh, UShr, w4rS, Iuqe, ABAq, KMvS):
gwAu = 1e-08
VTcd = [Iuqe]
N8L0 = []
yzQ0 = Iuqe
for bGrB in range(ABAq):
N77f, ICX2 = GidH(LVAh, UShr, yzQ0, w4rS)
yzQ0 = yzQ0 - KMvS * ICX2
VTcd.append(yzQ0)
N8L0.append(N77f)
if len(N8L0) > 1 and oyIN.abs(N8L0[-... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def waMj(WKvO, LVAh, E3D9, wOp_, JkES, b0Ix, H0zq, vtMg=None):\n yzQ0 = wOp_\n ncXl = oyIN.zeros(yzQ0.shape)\n for qtWj in range(JkES):\n RRSr = EW5f.minibatch(WKvO, E3D9)\n for YRbF in range(E3D9):\n G1Hx = oyIN.random.randint(E3D9)\n EcVT, fuBA = (WKvO[RRSr[G1Hx]], LV... | [
"0.7539076",
"0.7403958",
"0.7399059",
"0.73376745",
"0.733046",
"0.7240031",
"0.72279596",
"0.7225802",
"0.7219368",
"0.71055007",
"0.7074572",
"0.70388514",
"0.70307344",
"0.7014201",
"0.6977283",
"0.6949994",
"0.694448",
"0.69321907",
"0.6926506",
"0.6904426",
"0.690124",
... | 0.65330184 | 68 |
build k indices for kfold. | def a4rF(LVAh, sSDk, yokr):
gqUV = LVAh.shape[0]
VOlW = int(gqUV / sSDk)
oyIN.random.seed(yokr)
_0VL = oyIN.random.permutation(gqUV)
a_4G = [_0VL[G1Hx * VOlW:(G1Hx + 1) * VOlW] for G1Hx in range(sSDk)]
return oyIN.array(a_4G) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a4rF(LVAh, sSDk, yokr):\n \"\"\"build k indices for k-fold.\"\"\"\n gqUV = LVAh.shape[0]\n VOlW = int(gqUV / sSDk)\n oyIN.random.seed(yokr)\n _0VL = oyIN.random.permutation(gqUV)\n a_4G = [_0VL[G1Hx * VOlW:(G1Hx + 1) * VOlW] for G1Hx in range(sSDk)]\n return oyIN.array(a_4G)",
"def a4rF(... | [
"0.8147923",
"0.7920322",
"0.78636",
"0.78578305",
"0.78578305",
"0.7852471",
"0.7851632",
"0.7820169",
"0.7806145",
"0.73644537",
"0.73370546",
"0.7038534",
"0.69905734",
"0.6826553",
"0.67935085",
"0.6787416",
"0.6763014",
"0.6755921",
"0.67309886",
"0.6562994",
"0.6526764"... | 0.7869487 | 5 |
build k indices for kfold. | def uMzy(LVAh, WKvO, sSDk, w4rS, tjON, yokr=1, NKcE='ridge', WHx2='false', RKD7='false'):
a_4G = a4rF(LVAh, sSDk, yokr)
'return the loss of ridge regression.'
rVnq = Zi4e(WKvO, 'mean', tjON, WHx2, RKD7)
_ueu = []
sduv = []
for G1Hx in range(0, sSDk):
vC9B = 0
for YRbF in range(0,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a4rF(LVAh, sSDk, yokr):\n \"\"\"build k indices for k-fold.\"\"\"\n gqUV = LVAh.shape[0]\n VOlW = int(gqUV / sSDk)\n oyIN.random.seed(yokr)\n _0VL = oyIN.random.permutation(gqUV)\n a_4G = [_0VL[G1Hx * VOlW:(G1Hx + 1) * VOlW] for G1Hx in range(sSDk)]\n return oyIN.array(a_4G)",
"def a4rF(... | [
"0.8147981",
"0.7920362",
"0.78696626",
"0.78696626",
"0.78696626",
"0.78696626",
"0.78696626",
"0.78696626",
"0.78696626",
"0.78696626",
"0.78696626",
"0.78696626",
"0.78696626",
"0.78696626",
"0.78696626",
"0.78696626",
"0.78696626",
"0.78696626",
"0.7863773",
"0.78579795",
... | 0.0 | -1 |
Get the full path for an entry in this directory. | def OP2O(YKHO, Ux0P):
return eNtr.join(YKHO.path, Ux0P) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DmaD(Emd4):\n return Emd4.json_io()['entry_path']",
"def fwGe(YKHO):\n return YKHO.getDbRecord().getColumnValue(MkNf)",
"def GSwS(YKHO):\n return str(Hy7s.path.join(YKHO.path, YKHO.directory))",
"def OyQC(YKHO):\n return Hy7s.path.join(YKHO.location, YKHO.name)",
"def pmON(YKHO):\n retur... | [
"0.78798676",
"0.73766196",
"0.7193766",
"0.7165499",
"0.71179825",
"0.7047601",
"0.70279455",
"0.70185214",
"0.6982487",
"0.69811875",
"0.6979427",
"0.69762707",
"0.6956626",
"0.6919456",
"0.69081527",
"0.6880217",
"0.6866911",
"0.68556833",
"0.685246",
"0.6851564",
"0.68515... | 0.0 | -1 |
Compute the isoparametric curve at parameter u. | def h9D1(YKHO, P6bq):
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eHNT(P6bq):\n Ty9i = P6bq[0]\n q7In = P6bq[1]\n WKvO = P6bq[2]\n LVAh = P6bq[3]\n return oyIN.array([-Oa1e * YUNn(q7In) - NZVw / c6hb * (Oa1e / DxNS ** 2) * Ty9i ** 2, -Oa1e * YhSR(q7In) / Ty9i + Oa1e / DxNS ** 2 * Ty9i, Ty9i * YhSR(q7In), Ty9i * YUNn(q7In)])",
"def eval(YKHO, P6bq: float):\n ... | [
"0.6547113",
"0.6456787",
"0.6420376",
"0.64156413",
"0.64156413",
"0.6375425",
"0.6331735",
"0.6284218",
"0.62017745",
"0.61070174",
"0.60164547",
"0.5945176",
"0.5908751",
"0.59048843",
"0.5839925",
"0.583987",
"0.5808089",
"0.5780414",
"0.5737644",
"0.5724059",
"0.57127726... | 0.6630249 | 0 |
For every point not in the cluster, compute its distance to the centroid of the latter | def _wsV(YKHO):
jhCq = YKHO.cluster_stop.centroid
e6ux = ntLm.Stop('centroid', jhCq[0], jhCq[1])
wgab = []
for JCyR in YKHO.manager_stop.values():
if not JCyR.guid in YKHO.cluster_stop.keys():
pImw = e6ux.get_distance_to_another_stop(JCyR)
wgab.append((pImw, JCyR.guid))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HSHx(hKn5):\n AqG2 = len(hKn5)\n zlDh = sum((AU8u[0] for AU8u in hKn5)) / AqG2\n wr0o = sum((AU8u[1] for AU8u in hKn5)) / AqG2\n return [zlDh, wr0o]",
"def Ayfi(LTIa, yHxN):\n return ((LTIa - yHxN) ** 2).sum(axis=1)",
"def __fe(YKHO):\n return oyIN.divide(oyIN.add(YKHO.points[0], YKHO.poi... | [
"0.79915583",
"0.7842564",
"0.7673449",
"0.75943446",
"0.74044704",
"0.736471",
"0.72974014",
"0.72753334",
"0.72668207",
"0.7258574",
"0.72564685",
"0.72402424",
"0.72402424",
"0.72371346",
"0.72350156",
"0.72280693",
"0.7227603",
"0.7214488",
"0.7201694",
"0.71880907",
"0.7... | 0.0 | -1 |
Check whether an user has a valic license for this type of event | def fkfL(YKHO, CBIr):
if not YKHO.license_types:
return True
pYE2 = YKHO.license_types.split()
return len(pYE2) == 0 or CBIr.license_category in pYE2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E5SX(YKHO, CBIr=None):\n Sdxo, Ol8d = (False, '')\n if YKHO.usage == YKHO.SINGLE_USE:\n Sdxo = not YKHO.applications.exists()\n if not Sdxo:\n Ol8d = bGrB('This voucher has already been used')\n elif YKHO.usage == YKHO.MULTI_USE:\n Sdxo = True\n elif YKHO.usage == YK... | [
"0.6646204",
"0.66084224",
"0.6383779",
"0.6383779",
"0.6383779",
"0.6383779",
"0.6383779",
"0.6383779",
"0.6383779",
"0.6383779",
"0.6383779",
"0.6383779",
"0.6383779",
"0.6383779",
"0.6383779",
"0.637042",
"0.637042",
"0.637042",
"0.637042",
"0.637042",
"0.637042",
"0.637... | 0.6833171 | 0 |
Initialise an NPLinker instance. | def FIMM(YKHO, sQcT=None):
if isinstance(sQcT, str):
sQcT = {'config': sQcT}
elif not isinstance(sQcT, dict):
raise Exception('Invalid type for userconfig (should be None/str/dict, found "{}")'.format(type(sQcT)))
YKHO._config = PSrQ(sQcT)
iZNb.setLogLevelStr(YKHO._config.config['logleve... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, *qIxc):\n PZpo.TNGraphMP_swiginit(YKHO, PZpo.new_TNGraphMP(*qIxc))",
"def FIMM(YKHO, *qIxc):\n ZYgz.TNGraphMP_swiginit(YKHO, ZYgz.new_TNGraphMP(*qIxc))",
"def FIMM(YKHO, *qIxc):\n PZpo.TNGraph_swiginit(YKHO, PZpo.new_TNGraph(*qIxc))",
"def FIMM(YKHO, *qIxc):\n PZpo.TNGraphNodeI_swi... | [
"0.66015804",
"0.6485484",
"0.6474445",
"0.64565",
"0.64249307",
"0.6334255",
"0.6330955",
"0.63167715",
"0.6211563",
"0.6187217",
"0.6136812",
"0.6118029",
"0.6096514",
"0.60786366",
"0.607683",
"0.6042721",
"0.60421497",
"0.5991976",
"0.59783643",
"0.5961159",
"0.59373075",... | 0.0 | -1 |
Returns path to the current dataset root directory | def jNha(YKHO):
return YKHO._loader._root | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QxS4() -> str:\n return str(GkAb(xAKo).resolve().parent / 'data')",
"def s8df():\n tETI = WQbV(TLI7(xAKo))\n h_xa = gzes(tETI, 'data')\n return h_xa",
"def tTqh(YKHO):\n if YKHO._root is None:\n print('The datasource is not stored in an experiment file!\\nTherefore, no directory is kn... | [
"0.8476739",
"0.83655715",
"0.81268203",
"0.81061214",
"0.8099818",
"0.80896455",
"0.80293155",
"0.7949939",
"0.79255825",
"0.7900992",
"0.78873044",
"0.7857786",
"0.7857412",
"0.78196794",
"0.7812677",
"0.7794744",
"0.7794744",
"0.7781116",
"0.7774716",
"0.7737184",
"0.76448... | 0.0 | -1 |
Returns dataset description. If nplinker finds a 'description.txt' file in the root directory of the dataset, the content will be parsed and made available through this property. | def IzZU(YKHO):
return YKHO._loader.description_text | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R_ym(YKHO, IzZU):\n return ''",
"def cEKB(YKHO, j3aw):\n FBfN = YKHO.client\n Aofo = FBfN.getMetadataSet(j3aw, True)\n if Aofo['Value']:\n KJu6 = Aofo['Value']\n QYl8 = ''\n QYl8 += 'Dataset %s was defined with the following metadata conditions:\\n' % j3aw\n for H5ew i... | [
"0.7397134",
"0.721833",
"0.71797425",
"0.6949894",
"0.68385553",
"0.68322057",
"0.68305135",
"0.67666817",
"0.6751701",
"0.67509025",
"0.6747729",
"0.6725387",
"0.6708978",
"0.6700313",
"0.6699634",
"0.6685826",
"0.66697586",
"0.6669489",
"0.6658934",
"0.6622496",
"0.6622496... | 0.80338544 | 0 |
Returns the current BiGSCAPE clustering cutoff value | def GgmT(YKHO):
return YKHO._loader._bigscape_cutoff | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tAX0(YKHO):\n return YKHO._cutoff",
"def YDHQ(YKHO):\n return YKHO.cutoffDistance",
"def YDHQ(YKHO):\n return YKHO.cutoffDistance",
"def YDHQ(YKHO):\n return YKHO.cutoffDistance",
"def GYZx(YKHO):\n return YKHO._distance_cutoff",
"def CISY(YKHO):\n return YKHO._linkage_cutoff",
"d... | [
"0.74502313",
"0.72411495",
"0.72411495",
"0.72411495",
"0.6898245",
"0.68065226",
"0.65929025",
"0.6509039",
"0.64697856",
"0.6399483",
"0.6230163",
"0.6228273",
"0.6198111",
"0.61351657",
"0.61297923",
"0.61184776",
"0.6115541",
"0.6014758",
"0.5997372",
"0.59672284",
"0.59... | 0.6998604 | 4 |
Returns a list of all the GCFs in the dataset | def gjPU(YKHO):
return YKHO._gcfs | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o1a4(YKHO):\n PjvR = []\n for Z9rn in YKHO.gd_feature_set.get_ids():\n PjvR.append(YKHO.gd_feature_set.__getitem__(Z9rn).name)\n return PjvR",
"def w3Be(Oa1e):\n Pl7w = Oa1e.math.get_perron_frobenius()\n GYWo = Oa1e.math.get_pagerank()\n NLwF = []\n FlNd = []\n gUOI = []\n f... | [
"0.6424099",
"0.6319398",
"0.62382454",
"0.62382454",
"0.621532",
"0.6203543",
"0.614271",
"0.6111242",
"0.6058729",
"0.60157746",
"0.6000992",
"0.59854126",
"0.59719956",
"0.5919292",
"0.58908504",
"0.58215857",
"0.5820047",
"0.5814461",
"0.5795544",
"0.57911515",
"0.5753991... | 0.6341291 | 1 |
Convert epoch time in milliseconds to [year, month, day, hour, minute, second] | def LrXp(p6zu) -> list:
_c1T = ITS7.strftime('%Y-%m-%d-%H-%M-%S', ITS7.gmtime(p6zu / 1000))
return [int(YRbF) for YRbF in _c1T.split('-')] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OLXh(BWXx):\n return qtWj + fCoM(seconds=BWXx)",
"def Jj31(BWXx):\n return (BWXx - qtWj).total_seconds()",
"def _Et7(JRYC):\n qtWj = qcWV.datetime.utcfromtimestamp(0)\n lsFA = []\n for wEf2 in range(len(JRYC)):\n LVAh = JRYC[wEf2]\n lsFA.append((LVAh - qtWj).total_seconds() * 1... | [
"0.6952216",
"0.6834652",
"0.67823035",
"0.67693996",
"0.67161924",
"0.66487604",
"0.6598872",
"0.6594803",
"0.65829736",
"0.6555313",
"0.64705086",
"0.64705086",
"0.6452607",
"0.6429601",
"0.64192784",
"0.641511",
"0.6414753",
"0.6380874",
"0.63482463",
"0.6333631",
"0.63248... | 0.6924531 | 1 |
Return the scheme instance on which this manager is installed. | def ht58(YKHO):
return YKHO.__scheme | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tSrE(YKHO):\n return cTbu(YKHO._package_options)",
"def ht58(YKHO) -> r_02:\n return YKHO._scheme",
"def QNnW(YKHO):\n return bi0n(YKHO.environ)",
"def se6S(YKHO):\n return YKHO.__merge_scheme(YKHO.__master_scheme)",
"def ht58(YKHO) -> str:\n return qe4Y.get(YKHO, 'scheme')",
"def Zn7e... | [
"0.75736",
"0.66908884",
"0.66699547",
"0.6497147",
"0.6451524",
"0.6346098",
"0.62189597",
"0.6200905",
"0.6176264",
"0.60981303",
"0.6042471",
"0.6035041",
"0.599031",
"0.599031",
"0.59861606",
"0.5979696",
"0.5974456",
"0.5966094",
"0.59555364",
"0.59511036",
"0.59339315",... | 0.7364443 | 1 |
Return the SchemeNode instance for the OWWidget. Raise a KeyError if the widget does not map to a node in the scheme. | def gwkN(YKHO, TEdI):
return YKHO.__node_for_widget[TEdI] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gwkN(YKHO, TEdI):\n return YKHO.widget_manager.node_for_widget(TEdI)",
"def R5vk(YKHO, Q6kx):\n return YKHO.widget_manager.widget_for_node(Q6kx)",
"def IyQV(Emd4, U34r, mWFP):\n CBIr = U34r.context.user\n if not CBIr.has_perm('buckets.view_bucket'):\n raise HMo9('Not allowed')\n try:\... | [
"0.7252442",
"0.5432996",
"0.5270236",
"0.52511865",
"0.52458405",
"0.52075374",
"0.5205332",
"0.5202098",
"0.51985806",
"0.5182295",
"0.51631755",
"0.5161009",
"0.5050892",
"0.50418484",
"0.5036487",
"0.50330126",
"0.5008745",
"0.500566",
"0.5003687",
"0.5002459",
"0.4968203... | 0.74646723 | 0 |
Simple average using the mean function from Numpy. | def aCJh(aO51):
Dhj_(num_list=aO51)
return JBMS(aO51) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Pueu(ezWE):\n return ezWE.mean()",
"def S8vG(BkYD):\n return qw7D.mean(BkYD)",
"def N9AW(aeVx):\n from numpy import mean\n return mean(aeVx)",
"def JBMS(mJLf):\n import numpy as oyIN\n return oyIN.mean(mJLf)",
"def YT4S(ezWE):\n sum = 0\n for YRbF in range(0, ezWE.shape[0]):\n ... | [
"0.8368997",
"0.8149858",
"0.78122115",
"0.7725725",
"0.76816154",
"0.75435317",
"0.75213695",
"0.7511447",
"0.7432323",
"0.7428881",
"0.7403091",
"0.7378096",
"0.7374323",
"0.7351898",
"0.73501635",
"0.73331577",
"0.72950864",
"0.727848",
"0.7277356",
"0.72767645",
"0.727379... | 0.767438 | 5 |
Average of items in a list using reduce + lambda. | def SnJU(aO51):
Dhj_(num_list=aO51)
return Pusg(lambda WKvO, LVAh: WKvO + LVAh, aO51) / len(aO51) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DH4Z(ohXh):\n return Pusg(lambda WKvO, LVAh: WKvO + LVAh, ohXh) / len(ohXh)",
"def qqgr(BDwY):\n return sum(BDwY) / float(len(BDwY))",
"def DH4Z(DumB=[]):\n return sum(DumB) / len(DumB)",
"def S8vG(vC9B):\n MCOv = sum(vC9B, 0.0)\n return MCOv / len(vC9B)",
"def JBMS(DumB):\n return fl... | [
"0.733668",
"0.7109689",
"0.7108698",
"0.70958775",
"0.7069757",
"0.7057644",
"0.7057644",
"0.6999134",
"0.6997625",
"0.69942147",
"0.69886494",
"0.6979079",
"0.6971836",
"0.69621253",
"0.69488674",
"0.69221073",
"0.69088095",
"0.690461",
"0.6887617",
"0.6868123",
"0.68517935... | 0.7228286 | 1 |
Receive, log and return the new reward Returns float newly received reward | def Jc_J(YKHO):
PIi0 = False
while not PIi0:
try:
eHNT = open(YKHO.REWARD_LOG, 'r')
nPrm = eHNT.read()
eHNT.close()
nPrm = nPrm.split()
if len(nPrm) != _w7H:
continue
vOGg, HxWr = (float(nPrm[0]), int(nPrm[1]))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F6Ol(YKHO, vOGg: float) -> None:\n pass",
"def F6Ol(YKHO):\n pass",
"def vOGg(YKHO):\n pass",
"def vOGg(YKHO, vOGg):\n return vOGg + 0.01",
"def RND6(YKHO, vOGg: float) -> float:\n pass",
"def F6Ol(YKHO, vOGg: float) -> None:\n YKHO.rewards.append(vOGg)",
"def F6Ol(YKHO, vOGg):\n ... | [
"0.8200381",
"0.7564017",
"0.7466511",
"0.74437666",
"0.7427944",
"0.7332053",
"0.73024166",
"0.72908825",
"0.7285448",
"0.7258006",
"0.7243173",
"0.7236413",
"0.719923",
"0.7178098",
"0.715763",
"0.71410865",
"0.7137209",
"0.7119137",
"0.7112672",
"0.71004593",
"0.7097876",
... | 0.7404454 | 5 |
Instantiate the Embbeder based on the given number of input features. | def FIMM(YKHO, uiVZ: int, DrWq: int, GNuz: int, tspZ: float, Ux0P: str='gleams.hdf5'):
YKHO.num_precursor_features = uiVZ
YKHO.num_fragment_features = DrWq
YKHO.num_ref_spectra_features = GNuz
YKHO.lr = tspZ
YKHO.filename = Ux0P
YKHO.siamese_model = YKHO.siamese_model_parallel = None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, C3ST, bySB=None, Crrw=None, w1ih=0.7, ngbz=10):\n super(ukt7, YKHO).__init__(C3ST, bySB, Crrw, w1ih, ngbz)",
"def FIMM(YKHO, ROaS, WZcn):\n YKHO.n_features = ROaS\n YKHO.kernel = WZcn",
"def FIMM(YKHO, xq76=None, WOp0=None, **B2fa):\n super().__init__(**B2fa)\n if xq76 is None:\n ... | [
"0.64093643",
"0.63007486",
"0.62576395",
"0.61736274",
"0.60726684",
"0.6051286",
"0.59183025",
"0.5905839",
"0.590449",
"0.5891446",
"0.58745635",
"0.5856457",
"0.58232707",
"0.5807981",
"0.5803844",
"0.5774578",
"0.57707167",
"0.5754668",
"0.5741758",
"0.57260036",
"0.5725... | 0.0 | -1 |
Get the base embedder model (i.e. a single arm of the Siamese model). | def oBkc(YKHO, eyrV: bool=False) -> wOed:
if YKHO.siamese_model_parallel is None or YKHO.siamese_model is None:
raise ValueError("The embedder model hasn't been constructed yet")
elif eyrV and YKHO.siamese_model_parallel is not YKHO.siamese_model:
return YKHO.siamese_model_parallel.get_layer('si... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YrZb(YKHO):\n with YKHO._rl:\n return YKHO._e.get_model()",
"def QN8m(YKHO):\n return YKHO.mid_model",
"def aeIP(YKHO):\n if YKHO.model_type == 'gpt2':\n return fg69(config=YKHO.config)\n else:\n return mZCj(config=YKHO.config)",
"def WYyz(YKHO):\n return YKHO.referenc... | [
"0.63985044",
"0.63379246",
"0.6266257",
"0.62520134",
"0.624964",
"0.62197226",
"0.61843526",
"0.61685747",
"0.61052966",
"0.609401",
"0.6067567",
"0.60622483",
"0.6056173",
"0.6036621",
"0.6025187",
"0.60030633",
"0.60007524",
"0.5937827",
"0.59227777",
"0.5899173",
"0.5884... | 0.7026599 | 0 |
Create the Siamese model and set previously stored weights for its embedder model. | def tyeH(YKHO) -> None:
YKHO.build()
YKHO._get_embedder_model().load_weights(YKHO.filename) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Cc7Y(YKHO) -> None:\n try:\n with ZylS.device('/cpu:0'):\n YKHO.siamese_model = YKHO._build_siamese_model()\n J9Qu = OpZU()\n YKHO.siamese_model_parallel = ZlUL.multi_gpu_model(YKHO.siamese_model, gpus=J9Qu)\n bo34.info('Parallelizing the embedder model over %d GPUs', ... | [
"0.73177314",
"0.7265593",
"0.7125497",
"0.6201494",
"0.6116837",
"0.60537976",
"0.6034924",
"0.60191333",
"0.60007757",
"0.59364486",
"0.58941615",
"0.58834493",
"0.58604836",
"0.5856187",
"0.57997096",
"0.57760376",
"0.5737749",
"0.5693494",
"0.5680893",
"0.56389916",
"0.56... | 0.5250202 | 90 |
Construct the Siamese model. The Siamese model consists of two instances of the embedder model whose weights are tied. Returns Model The Siamese model. | def ywj_(YKHO) -> wOed:
niXn = YKHO._build_embedder_model()
rIPU = [X6a0((YKHO.num_precursor_features,), name='input_precursor_left'), X6a0((YKHO.num_fragment_features,), name='input_fragment_left'), X6a0((YKHO.num_ref_spectra_features,), name='input_ref_spectra_left')]
t0Kv = [X6a0((YKHO.num_precursor_feat... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Cc7Y(YKHO) -> None:\n try:\n with ZylS.device('/cpu:0'):\n YKHO.siamese_model = YKHO._build_siamese_model()\n J9Qu = OpZU()\n YKHO.siamese_model_parallel = ZlUL.multi_gpu_model(YKHO.siamese_model, gpus=J9Qu)\n bo34.info('Parallelizing the embedder model over %d GPUs', ... | [
"0.73643804",
"0.6669482",
"0.6468438",
"0.6335938",
"0.62593246",
"0.59570223",
"0.59423316",
"0.58993614",
"0.5888138",
"0.5799638",
"0.5766409",
"0.57544965",
"0.5688978",
"0.5679305",
"0.56644785",
"0.56320965",
"0.5629502",
"0.5614462",
"0.5599483",
"0.55837476",
"0.5563... | 0.8267476 | 0 |
Displays statistics on the most frequent times of travel. | def dWJR(jQ3Z):
print('\nCalculating The Most Frequent Times of Travel...\n')
SWox = ITS7.time()
XYie = rD0F[jQ3Z['month'].mode()[0]]
print('The most common travel month is --> {}'.format(XYie.title()))
SOOw = jQ3Z['day_of_week'].mode()[0]
print('The most common travel day is --> {}'... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dWJR(jQ3Z):\n print('\\nCalculating The Most Frequent Times of Travel...\\n')\n SWox = ITS7.time()\n print('The most common month of travel is: {} '.format(jQ3Z.Month.mode()[0]))\n print('The most common day of travel is: {} '.format(jQ3Z.Day.mode()[0]))\n print('The most common hour of travel i... | [
"0.79996175",
"0.7920857",
"0.7891767",
"0.78612196",
"0.785926",
"0.7838814",
"0.77848285",
"0.7735119",
"0.7723049",
"0.771342",
"0.7708436",
"0.770453",
"0.77017164",
"0.7689714",
"0.7685842",
"0.7680146",
"0.76788265",
"0.76721054",
"0.7661351",
"0.7660023",
"0.7657289",
... | 0.779974 | 6 |
Displays statistics on the most popular stations and trip. | def Huc_(jQ3Z):
print('\nCalculating The Most Popular Stations and Trip...\n')
SWox = ITS7.time()
Qko7 = jQ3Z['Start Station'].mode()[0]
print('The most popular start station is --> {}'.format(Qko7))
ErC5 = jQ3Z['End Station'].mode()[0]
print('The most popular end station is ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations and Trip...\\n')\n SWox = ITS7.time()\n v6Be(jQ3Z)\n BeYU(jQ3Z)\n O6Ct(jQ3Z)\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)",
"def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations ... | [
"0.7665365",
"0.76264536",
"0.7610902",
"0.75852126",
"0.7576492",
"0.7567089",
"0.75577486",
"0.7538181",
"0.75294757",
"0.7502035",
"0.74997437",
"0.7496321",
"0.74872565",
"0.74840283",
"0.7475714",
"0.7472988",
"0.7437631",
"0.74366206",
"0.7433223",
"0.7428372",
"0.74269... | 0.73271143 | 44 |
Displays statistics on the total and average trip duration. | def kDMA(jQ3Z):
print('\nCalculating Trip Duration...\n')
SWox = ITS7.time()
sanW = jQ3Z['duration_t'].sum()
print('The total travel time for is --> {} days {} hours {} minutes'.format(sanW.days, sanW.seconds // 3600, sanW.seconds // 60 % 60))
GdtM = jQ3Z['duration_t'].mean()
print('The averag... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kDMA(dMlt):\n print('\\nCalculating Trip Duration...\\n')\n SWox = ITS7.time()\n qZ1g = dMlt['Trip Duration'].sum()\n print('The total travel time is ', qZ1g, ' seconds.')\n NPSF = dMlt['Trip Duration'].mean()\n print('The average travel time is ', NPSF, ' seconds.')\n print('\\nThis took ... | [
"0.82516754",
"0.8146482",
"0.8095984",
"0.80120844",
"0.79869586",
"0.7983244",
"0.7978337",
"0.7969659",
"0.7964662",
"0.7963039",
"0.79611284",
"0.7960862",
"0.79516",
"0.7948492",
"0.79436684",
"0.793671",
"0.79231024",
"0.79199594",
"0.7919324",
"0.7918097",
"0.7917122",... | 0.77880365 | 100 |
create a cached backend instance that is used the whole session makes instanciating backend cheap | def DDLl(FHhW):
return yIVm.get_backend(FHhW) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JLXL():\n _OIP = '_cached_backend_instance'\n if not hasattr(JLXL, _OIP):\n setattr(JLXL, _OIP, oBqy()())\n return getattr(JLXL, _OIP)",
"def DDLl():\n return p5cf",
"def FIMM(YKHO, DDLl):\n YKHO._backend = DDLl",
"async def create(Fv2L: hatJson.Data) -> 'Backend':\n DDLl = C6NV(... | [
"0.7608363",
"0.7112992",
"0.6956325",
"0.68798846",
"0.66882265",
"0.66882265",
"0.66882265",
"0.6574581",
"0.65159404",
"0.6489994",
"0.64680237",
"0.6416613",
"0.63811284",
"0.634526",
"0.62953675",
"0.62299573",
"0.6227947",
"0.6218807",
"0.6188734",
"0.6168498",
"0.61660... | 0.0 | -1 |
Test that numbers between 0 and 5 are all even. | def EVW3(YKHO):
for YRbF in range(0, 6):
with YKHO.subTest(i=YRbF):
YKHO.assertEqual(YRbF % 2, 0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EVW3(BWXx: int) -> bool:\n return BWXx % 2 == 0",
"def EVW3(BWXx):\n return BWXx % 2 == 0",
"def ubP8(FGW3):\n for U6D_ in range(FGW3):\n if FGW3 % 2 == 0:\n return True\n return False",
"def ubP8(exwG):\n return",
"def ubP8(exwG):\n return exwG % 2 == 0",
"def ubP... | [
"0.80284196",
"0.80152595",
"0.77469635",
"0.7738126",
"0.75897807",
"0.75883913",
"0.75529456",
"0.7520037",
"0.7520037",
"0.75121653",
"0.7480418",
"0.7480418",
"0.7480418",
"0.7480418",
"0.7476438",
"0.7459373",
"0.7457399",
"0.7443138",
"0.7432484",
"0.7429225",
"0.742760... | 0.6913297 | 40 |
Create and return a new user with encrypted password given the validated data. | def eLpg(YKHO, vGfb):
return egNl().objects.create_user(**vGfb) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eLpg(YKHO, vGfb):\n CBIr = mv1M.objects.create(**vGfb)\n CBIr.set_password(vGfb.get('password'))\n CBIr.save()\n return CBIr",
"def eLpg(YKHO, vGfb):\n CBIr = YJv1(**vGfb)\n CBIr.set_password(vGfb['password'])\n CBIr.save()\n return CBIr",
"def eLpg(YKHO, vGfb):\n tTya = vGfb.pop... | [
"0.8595106",
"0.8526166",
"0.84178096",
"0.8369306",
"0.82648265",
"0.8240402",
"0.82334167",
"0.8182585",
"0.81476957",
"0.8135898",
"0.81193656",
"0.8047541",
"0.7942285",
"0.79140204",
"0.789966",
"0.78747725",
"0.7846411",
"0.7837937",
"0.7821778",
"0.77132964",
"0.769479... | 0.0 | -1 |
Creates and saves a Person with the given name, email and password. | def lYUQ(YKHO, mWFP=None, D3lj=None, jTXt=None, **wdCM):
wzkt = rIAI.now()
if not D3lj:
raise ValueError('Users must have an email address')
if not mWFP:
raise ValueError('Users must have a name')
D3lj = Kn1m.normalize_email(D3lj)
CBIr = YKHO.model(name=mWFP, email=D3lj, is_staff=Fal... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kI0b(Emd4, D3lj, jTXt, mWFP, URHx):\n kz9X = B8ni.generate_password_hash(jTXt).decode('UTF-8')\n CBIr = mv1M(name=mWFP, email=D3lj, password=kz9X, google_enabled=URHx)\n NCls.session.add(CBIr)\n return CBIr",
"def lYUQ(Emd4, D3lj, jTXt, IznC, dW_5):\n jTXt = hash(jTXt)\n CBIr = Emd4(email=D... | [
"0.72432923",
"0.71650183",
"0.7112317",
"0.70123553",
"0.6999392",
"0.6997322",
"0.69750524",
"0.6964581",
"0.6958882",
"0.6958668",
"0.69367665",
"0.6923326",
"0.69218904",
"0.69176",
"0.6888259",
"0.68880594",
"0.688281",
"0.6871003",
"0.68700904",
"0.6858737",
"0.68584204... | 0.698576 | 6 |
Create a new, inactive ``User`` and email its activation key to the ``User``, returning the new ``User``. By default, an activation email will be sent to the new user. To disable this, pass ``send_email=False``. | def nhZz(YKHO, mWFP, D3lj, jTXt, qpDA, pC5n=True, **wdCM):
with Kh6j.atomic():
a70H = nj3W.objects.create_user(mWFP, D3lj, jTXt, **wdCM)
a70H.is_active = False
a70H.save()
a70H = YKHO.set_activation_key(a70H)
if pC5n:
a70H.send_activation_email(qpDA)
retur... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xWi2(YKHO, D3lj, jTXt, k8EC, **wdCM):\n if not D3lj:\n raise ValueError('The given email must be set')\n D3lj = YKHO.normalize_email(D3lj)\n CBIr = YKHO.model(email=D3lj, **wdCM)\n CBIr.set_password(jTXt)\n CBIr.generate_activation_key()\n CBIr.send_activation_email(k8EC)\n CBIr.sav... | [
"0.8212076",
"0.79322755",
"0.77516735",
"0.7497574",
"0.73056924",
"0.72655576",
"0.72585076",
"0.72527945",
"0.721239",
"0.7166164",
"0.71554404",
"0.7145977",
"0.71049356",
"0.7104048",
"0.7090793",
"0.70632285",
"0.7063124",
"0.7053585",
"0.7004833",
"0.70044637",
"0.6994... | 0.8267816 | 0 |
Validate an activation key and activate the corresponding ``User`` if valid. If the key is valid and has not expired, return the ``User`` after activating. If the key is not valid or has expired, return ``False``. If the key is valid but the ``User`` is already active, return ``False``. To prevent reactivation of an ac... | def NWpQ(YKHO, OYTW):
if AnzE.search(OYTW.lower()):
try:
a70H = YKHO.get(activation_key=OYTW)
except YKHO.model.DoesNotExist:
return False
if not a70H.activation_key_expired():
a70H.is_active = True
a70H.date_activated = qcWV.datetime.now(FXGE.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NWpQ(YKHO, OYTW):\n if ZbWC.match('[a-f0-9]{40}', OYTW):\n try:\n SGll = YKHO.get(activation_key=OYTW)\n except YKHO.model.DoesNotExist:\n return False\n if not SGll.activation_key_expired():\n CBIr = SGll.user\n CBIr.is_active = True\n ... | [
"0.859822",
"0.762951",
"0.71850413",
"0.7163408",
"0.6815045",
"0.6734362",
"0.67271656",
"0.6682174",
"0.664228",
"0.653737",
"0.6513644",
"0.64765745",
"0.6474788",
"0.64703405",
"0.64507496",
"0.64429665",
"0.64222854",
"0.6414809",
"0.63417095",
"0.63238895",
"0.63233757... | 0.86231965 | 0 |
Determine whether this ``Person``'s activation key has expired, returning a boolean ``True`` if the key has expired. | def BIyx(YKHO):
ad72 = qcWV.timedelta(days=gCuF.ACCOUNT_ACTIVATION_DAYS)
return YKHO.activation_key == YKHO.ACTIVATED or YKHO.date_created + ad72 <= qcWV.datetime.now(FXGE.utc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BIyx(YKHO):\n ad72 = qcWV.timedelta(days=gCuF.ACCOUNT_ACTIVATION_DAYS)\n return YKHO.key_generated + ad72 <= qcWV.datetime.utcnow().replace(tzinfo=h5YN)",
"def BIyx(YKHO):\n ad72 = qcWV.timedelta(days=gCuF.ACCOUNT_ACTIVATION_DAYS)\n return YKHO.activation_key == YKHO.ACTIVATED or YKHO.user.user.d... | [
"0.8301302",
"0.82619727",
"0.8044057",
"0.7638636",
"0.75513387",
"0.75459313",
"0.7525039",
"0.75242245",
"0.7522011",
"0.7508674",
"0.75071627",
"0.74946195",
"0.7483798",
"0.7480475",
"0.7461341",
"0.7459578",
"0.7438659",
"0.7431966",
"0.7417354",
"0.7404951",
"0.7404951... | 0.84216124 | 0 |
manhattan heuristic with no diagnal movement | def fkhm(yKcO, pan_):
Jssk = abs(yKcO.position[0] - pan_.position[0])
q6fc = abs(yKcO.position[1] - pan_.position[1])
return Jssk + q6fc | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fkhm(Q6kx, xi3E):\n o4D3, si3g = (Q6kx.state.index(1) // 4, Q6kx.state.index(1) % 4)\n ajwV, skBL = (xi3E // 4, xi3E % 4)\n return abs(ajwV - o4D3) + abs(skBL - si3g)",
"def PpfQ():\n e8uw = rtqq()\n TdZL = ['E', 'N']\n HECQ = 0\n Tll6 = 0\n Xl9d = {'N': 1, 'E': 10, 'S': 0, 'W': 0}\n ... | [
"0.74078214",
"0.73515487",
"0.7315361",
"0.72797275",
"0.71540105",
"0.7127417",
"0.6897489",
"0.68589026",
"0.6746192",
"0.67202556",
"0.6688091",
"0.6675192",
"0.6673771",
"0.66422683",
"0.6624272",
"0.661786",
"0.65480494",
"0.65415573",
"0.6495478",
"0.64565617",
"0.6450... | 0.6941022 | 6 |
Set up test couch instance | def FCbF(YKHO):
YKHO.dbsURL = 'http://cmsdbsprod.cern.ch/cms_dbs_prod_global/servlet/DBSServlet'
YKHO.dataset = '/RelValProdTTbar/JobRobot-MC_3XY_V24_JobRobot-v1/GEN-SIM-DIGI-RECO'
'Set up couch test environment'
YKHO.testInit = U_df(xAKo)
YKHO.testInit.setupCouch('wmcore-acdc-acservice', 'GroupUser... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FCbF(YKHO):\n YKHO.testInit = U_df(xAKo)\n YKHO.testInit.setLogging()\n YKHO.testInit.setDatabaseConnection()\n YKHO.testInit.setupCouch('promptskim_t', 'ConfigCache')\n YKHO.testInit.setSchema(customModules=['WMCore.WMBS'], useDefault=False)\n tcau = WoXI(Hy7s.environ['COUCHURL'])\n YKHO.... | [
"0.79316044",
"0.7907129",
"0.78493047",
"0.6904387",
"0.6900299",
"0.687678",
"0.680313",
"0.67890793",
"0.67890793",
"0.67890793",
"0.67890793",
"0.67847234",
"0.67663133",
"0.6725271",
"0.6721336",
"0.67202294",
"0.66795063",
"0.6630359",
"0.6630359",
"0.6623074",
"0.66147... | 0.7263018 | 3 |
Direct to Contact Us Page | def RyYT():
return TvZl('contactus2.html') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FmUo():\n Dwep('Sorry, we are still implementing the Contact Page feature. Coming soon!')\n return vKnz('/')",
"def RyYT(QePW):\n return SGJU('contact.html', {}, context_instance=K1Ja(QePW))",
"def RyYT():\n return TvZl('contact_us.html', title='CONP | Contact Us', user=c5ow)",
"def Mxk0():\n... | [
"0.768059",
"0.75766903",
"0.75156325",
"0.7406399",
"0.73240674",
"0.7170339",
"0.7098338",
"0.709126",
"0.69543594",
"0.69175506",
"0.69083667",
"0.689642",
"0.68804777",
"0.68664956",
"0.6826068",
"0.68231136",
"0.68231136",
"0.68231136",
"0.68231136",
"0.68231136",
"0.682... | 0.67840236 | 34 |
Returns a instance in a string representation | def zAg0(YKHO):
return '[{}] ({}) {}'.format(YKHO.__class__.__name__, YKHO.id, YKHO.__dict__) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gTzM(YKHO, KAOR):\n raise NotImplementedError",
"def zAg0(YKHO):\n return '<{} instance>'.format(type(YKHO).__name__)",
"def zAg0(YKHO) -> str:\n return lSJJ(YKHO)",
"def zAg0(YKHO):\n return YKHO.as_string()",
"def zAg0(YKHO):\n return YKHO.as_string()",
"def zAg0(YKHO):\n return s... | [
"0.805819",
"0.78663874",
"0.765431",
"0.75351506",
"0.75351506",
"0.7516635",
"0.7516635",
"0.7516635",
"0.7516635",
"0.7516635",
"0.7516635",
"0.7516635",
"0.7516635",
"0.7516635",
"0.7516635",
"0.7516635",
"0.7516635",
"0.7516635",
"0.7516635",
"0.7516635",
"0.7516635",
... | 0.0 | -1 |
returns current AWS regions as a list. | def RRfM():
zQZR = []
G8qs = iVGz.client('ec2').describe_regions()
for eXVH in G8qs['Regions']:
zQZR.append(eXVH['RegionName'])
return zQZR | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zQZR(YKHO):\n YKHO.logger.debug('regions()')\n return YKHO.backend.request('GET', 'regions')",
"def kCFc(YKHO):\n geh0 = YKHO.aws_client.describe_regions()\n return [zn0c['RegionName'] for zn0c in geh0['Regions']]",
"def kkjR():\n x0hE = iVGz.client('ec2')\n geh0 = x0hE.describe_regions()... | [
"0.82946825",
"0.8147654",
"0.81402236",
"0.8119189",
"0.8118474",
"0.80462605",
"0.80305123",
"0.79989487",
"0.79845655",
"0.79845655",
"0.79845655",
"0.79845655",
"0.79845655",
"0.79845655",
"0.79845655",
"0.79845655",
"0.79845655",
"0.79845655",
"0.79845655",
"0.79845655",
... | 0.8383304 | 0 |
R^2 value but adapted to fit into my code | def jNuf(Y8eF, aMgO):
Mkmy = oyIN.square(Y8eF - aMgO) / oyIN.sum(oyIN.square(Y8eF - oyIN.mean(Y8eF)))
return 1 - oyIN.sum(Mkmy) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t2U8(YKHO):\n return YKHO._r2",
"def KoVS(J1b4):\n return 1.0 - oyIN.sqrt(1.0 - J1b4)",
"def oWpE(KCHu, z1Rg):\n if isinstance(z1Rg, Ckdx) and (not z1Rg.isConstant()):\n z1Rg = z1Rg.ve()\n elif hasattr(z1Rg, 'getVal'):\n z1Rg = z1Rg.getVal()\n Ty9i = KCHu.getVal() if KCHu.isCon... | [
"0.7360251",
"0.7241613",
"0.7174133",
"0.70962864",
"0.70137995",
"0.69818807",
"0.69390064",
"0.69295627",
"0.69043535",
"0.6885453",
"0.6868966",
"0.6862068",
"0.6848162",
"0.68394136",
"0.68209803",
"0.6819367",
"0.67739147",
"0.6772759",
"0.67686343",
"0.67559385",
"0.67... | 0.0 | -1 |
The softmax function. The result is the probability of a class based on the input vector. | def N93T(WKvO):
epBp = oyIN.exp(WKvO)
return epBp / oyIN.sum(epBp, axis=0, keepdims=True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N93T(Ty9i):\n return oyIN.exp(Ty9i) / oyIN.sum(oyIN.exp(Ty9i))",
"def N93T(UnuI):\n return Zxt2.special.softmax(UnuI)",
"def N93T(WKvO):\n WKvO = oyIN.exp(WKvO)\n return WKvO / oyIN.sum(WKvO)",
"def N93T(WKvO):\n return oyIN.exp(WKvO) / sum(oyIN.exp(WKvO))",
"def N93T(YKHO, he6J):\n z... | [
"0.8031402",
"0.7939017",
"0.7897734",
"0.7878824",
"0.78616446",
"0.7857258",
"0.7840145",
"0.7840145",
"0.7837858",
"0.7826724",
"0.78188777",
"0.78120184",
"0.78073835",
"0.7803932",
"0.77981323",
"0.7796471",
"0.77889293",
"0.7782614",
"0.7782614",
"0.7782614",
"0.7782614... | 0.7757166 | 49 |
A full forwards pass through the whole network. The outputs of the network are stored in each layer. | def f6wx(YKHO, WKvO):
for gEmA in YKHO.layers:
gEmA.forward(WKvO)
WKvO = gEmA.output
return WKvO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oztf(YKHO, pKvt):\n YKHO.layers[0].forward(pKvt)\n for YRbF in range(1, len(YKHO.layers)):\n YKHO.layers[YRbF].forward(YKHO.layers[YRbF - 1].outp)",
"def BoEA(YKHO):\n for YRbF in range(YKHO.number_of_layers - 1):\n YKHO.layers[YRbF].feed(YKHO.inputs)\n YKHO.inputs = YKHO.layers... | [
"0.77479154",
"0.76719177",
"0.7562186",
"0.74971205",
"0.74885404",
"0.7448818",
"0.7378245",
"0.7329445",
"0.73161083",
"0.73161083",
"0.7310112",
"0.7291646",
"0.7251552",
"0.72509336",
"0.72501236",
"0.7215657",
"0.7198869",
"0.7180122",
"0.71653044",
"0.7128515",
"0.7116... | 0.76229554 | 2 |
Adapts the learning rate for every layer | def zCmc(YKHO, tspZ):
for gEmA in YKHO.layers:
gEmA.learning_rate = tspZ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e_63(YKHO, K0do, qtWj):\n for YRbF, Lwm5 in enumerate(K0do.param_groups):\n if YRbF == 0:\n WMj5 = 0.1 ** (qtWj // YKHO.epoch_step)\n Lwm5['lr'] = WMj5 * YKHO.lrp\n print('backbone learning rate', Lwm5['lr'])\n if YRbF == 1:\n WMj5 = 0.1 ** (qtWj // ... | [
"0.7852037",
"0.78235996",
"0.7812399",
"0.78114396",
"0.78109163",
"0.78059036",
"0.7791344",
"0.7784498",
"0.7759533",
"0.7740421",
"0.77186394",
"0.7717961",
"0.7714479",
"0.77104914",
"0.769817",
"0.7690819",
"0.76880836",
"0.76865005",
"0.7682117",
"0.76685596",
"0.76675... | 0.85145396 | 0 |
Create a random vector using optional min and max. | def tuKI(min=-1, max=1, qfpW=Hg7b.WHITE, TVTK=1, LgWF=[0.1, 0.5]):
WKvO = tuKI.uniform(min, max)
LVAh = tuKI.uniform(min, max)
return lNLu(WKvO, LVAh, color=qfpW, width=TVTK, arrow=LgWF) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ADdS(XLKX, J4g0):\n return tuKI.random() * (J4g0 - XLKX) + XLKX",
"def HANA(YKHO, SUNP):\n return [YKHO.rand_in_bounds(SUNP[YRbF][0], SUNP[YRbF][1]) for YRbF in range(len(SUNP))]",
"def tuKI(O2Zy, vvwy, taSc):\n return lNLu(tuKI.randrange(O2Zy), tuKI.randrange(vvwy), tuKI.randrange(taSc))",
"def... | [
"0.7800459",
"0.7475602",
"0.7471166",
"0.7434878",
"0.72959566",
"0.72434735",
"0.7210466",
"0.71945155",
"0.71826607",
"0.7168895",
"0.71643203",
"0.71119314",
"0.70995545",
"0.7093543",
"0.7077837",
"0.70699877",
"0.70025027",
"0.69262624",
"0.68994856",
"0.6854133",
"0.67... | 0.7855661 | 0 |
Create a vector using norm and angle from polar coordonnates. | def g5zm(CkYf, YylR, qfpW=Hg7b.WHITE, TVTK=1, LgWF=[0.1, 0.5]):
WKvO, LVAh = lNLu.cartesian([CkYf, YylR])
return lNLu(WKvO, LVAh, color=qfpW, width=TVTK, arrow=LgWF) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CkYf(YKHO):\n return lNLu.polar([YKHO.x, YKHO.y])[0]",
"def iWHy(YKHO, iArr):\n return (iArr - YKHO.position).as_polar()[1]",
"def efYa(YKHO, iArr):\n return epAf.radians((iArr - YKHO.position).as_polar()[1])",
"def zKTJ(YKHO):\n return (YKHO.norm, YKHO.angle)",
"def yJOI(WKvO, LVAh):\n ... | [
"0.736289",
"0.73461694",
"0.72949713",
"0.72846055",
"0.72522694",
"0.7158272",
"0.7089311",
"0.70371133",
"0.7002098",
"0.6996114",
"0.6995599",
"0.6929028",
"0.6929028",
"0.6929028",
"0.68697846",
"0.6838091",
"0.6836472",
"0.68211013",
"0.6810356",
"0.6809382",
"0.6784684... | 0.81522304 | 0 |
Return the negative vector. | def la4d(YKHO):
WKvO = -YKHO.x
LVAh = -YKHO.y
return lNLu(WKvO, LVAh, width=YKHO.width, color=YKHO.color) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def la4d(YKHO):\n vC9B = []\n for exwG in range(len(YKHO)):\n vC9B.append(-YKHO.vec[exwG])\n return iArr(vC9B)",
"def la4d(YKHO):\n return Cd5b(-YKHO.x, -YKHO.y, -YKHO.z)",
"def la4d(YKHO):\n oW_4 = []\n for YRbF in range(YKHO.__mDim):\n oW_4.append(-1 * YKHO[YRbF])\n return ... | [
"0.8806029",
"0.84707475",
"0.8161453",
"0.80331796",
"0.8008118",
"0.79779017",
"0.7917939",
"0.79117435",
"0.79019946",
"0.78366953",
"0.766871",
"0.7554359",
"0.7456615",
"0.7449081",
"0.7422538",
"0.74144304",
"0.7394518",
"0.7374794",
"0.7321173",
"0.7288398",
"0.7280984... | 0.79116 | 8 |
Add two vectors together. | def FOdN(YKHO, Elif):
return lNLu(YKHO.x + Elif.x, YKHO.y + Elif.y, width=YKHO.width, color=YKHO.color) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xXeU(jzdc, Fg_i):\n return (jzdc[0] + Fg_i[0], jzdc[1] + Fg_i[1])",
"def KfxW(hQHm, jlSq):\n return hQHm + jlSq",
"def GAyv(Yipr, Vkf3):\n return [jzdc + Fg_i for jzdc, Fg_i in zip(Yipr, Vkf3)]",
"def JsGA(hQHm, jlSq):\n if ROpF(hQHm) != ROpF(jlSq):\n raise Rhzo('You cannot add two vec... | [
"0.87604916",
"0.8460392",
"0.8392649",
"0.8381374",
"0.83610046",
"0.8320696",
"0.8299876",
"0.82995445",
"0.82792705",
"0.82792705",
"0.82792705",
"0.817343",
"0.8159019",
"0.8135297",
"0.8072357",
"0.8022275",
"0.7947645",
"0.7917501",
"0.78548527",
"0.7828706",
"0.781414"... | 0.0 | -1 |
Add a vector to another. | def CaoY(YKHO, Elif):
YKHO.x += Elif.x
YKHO.y += Elif.y
return YKHO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Wzyp(ENWa, ZoT5):\n Kt9y = hkxX(ENWa)\n I_KI = hkxX(ZoT5)\n cCPj = list(Kt9y)\n Y6v1 = list(I_KI)\n ZySs = []\n if len(cCPj) >= len(Y6v1):\n M62B = ENWa(0)\n else:\n M62B = ZoT5(0)\n for YRbF in range(M62B):\n ZySs.append(cCPj[YRbF] + Y6v1[YRbF])\n return Q_4j(M6... | [
"0.8220864",
"0.80374455",
"0.79657185",
"0.7965065",
"0.7870146",
"0.7865683",
"0.780036",
"0.77546155",
"0.77064395",
"0.7701222",
"0.7687296",
"0.76705796",
"0.7654686",
"0.7645983",
"0.75784606",
"0.75703967",
"0.756347",
"0.75337565",
"0.75170016",
"0.7508276",
"0.750350... | 0.0 | -1 |
Get NIC ID for given vm instence | def jOfi(YKHO, VFHf=None):
if not VFHf:
VFHf = YKHO.vm_json.get('name')
MKLR = '%s-NIC' % VFHf
try:
Vddj = YKHO.network_client.network_interfaces.get(YKHO.resource_group, MKLR)
return Vddj.id
except Exception as e:
YIoF('Error while getting NIC id: %s' % str(tTpl)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wBQH(**bGrB):\n BfDw.validate_node_property(uwaB.NETWORK_INTERFACE_KEY, OaeV.instance.runtime_properties)\n uOlS = BfDw.get_azure_config(OaeV)\n JuHa = uOlS[uwaB.SUBSCRIPTION_KEY]\n TRLE = uOlS[uwaB.RESOURCE_GROUP_KEY]\n clva = uwaB.AZURE_API_VERSION_06\n w_1n = OaeV.instance.runtime_properti... | [
"0.7705286",
"0.69816285",
"0.69718266",
"0.69718266",
"0.69718266",
"0.67706555",
"0.67706555",
"0.67706555",
"0.67706555",
"0.6671603",
"0.6671603",
"0.6629326",
"0.6585933",
"0.6577304",
"0.65090084",
"0.64917696",
"0.64911544",
"0.6489967",
"0.6455177",
"0.6424699",
"0.63... | 0.8170849 | 0 |
Generates a single obstacle object in the given column | def IEoH(YKHO, P3RF: int, fhZS: str) -> AzJI[g74T.Rect, AzJI[int, ...]]:
_dWL = (6 - YKHO._difficulty) * YKHO._h_step * 2
WKvO = P3RF * _dWL + 2 * YKHO._h_step
LVAh = tuKI.randrange(0, int(0.9 * YKHO._height), YKHO._v_step)
ZAK5 = _dWL - YKHO._h_step * 2
meNz = tuKI.randint(1, YKHO._object_type[fhZS... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IjJ4():\n VF2_ = 5\n bFbC = tuKI.randint(0, VF2_ - 1)\n if bFbC == 0:\n LNo8 = uabj('sensorland/images/resistor.png')\n TiWO = [69, 35]\n elif bFbC == 1:\n LNo8 = uabj('sensorland/images/capacitor_0.png')\n TiWO = [69, 38]\n elif bFbC == 2:\n LNo8 = uabj('senso... | [
"0.62344193",
"0.60152626",
"0.5994903",
"0.5981428",
"0.58926326",
"0.5863818",
"0.5677052",
"0.5653271",
"0.5531896",
"0.5521426",
"0.54280543",
"0.5426228",
"0.5395003",
"0.53469753",
"0.5319385",
"0.53117585",
"0.5307405",
"0.5294022",
"0.52750933",
"0.52750933",
"0.52750... | 0.6059884 | 1 |
Gets the transit value for the card. TODO2 use a formulation for transit. | def xP99():
return Qjts | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zmkp(YKHO):\n return YKHO.__card_value",
"def dMj6(YKHO):\n return YKHO.value",
"def Zmkp(dxhl):\n return dxhl[0]",
"def uhi4(YKHO, Sd1T, SgCe=False):\n if SgCe:\n if Sd1T == 11:\n return str(Sd1T) + '*A'\n return Sd1T\n if type(Sd1T) == int:\n return Sd1T\n... | [
"0.68181074",
"0.681794",
"0.6270077",
"0.60198164",
"0.5978425",
"0.5941942",
"0.59224087",
"0.59134847",
"0.5860333",
"0.57767504",
"0.5759511",
"0.57530195",
"0.57516456",
"0.5741499",
"0.57329494",
"0.5723936",
"0.5711483",
"0.57043684",
"0.57004553",
"0.5655198",
"0.5637... | 0.54153186 | 50 |
Sets the cluster of this NfsExportWhereInput. | def hKn5(YKHO, hKn5):
YKHO._cluster = hKn5 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hKn5(YKHO, hKn5):\n if YKHO.local_vars_configuration.client_side_validation and hKn5 is None:\n raise ValueError('Invalid value for `cluster`, must not be `None`')\n YKHO._cluster = hKn5",
"def hKn5(YKHO, hKn5):\n if YKHO.local_vars_configuration.client_side_validation and hKn5 is None:\n ... | [
"0.69661474",
"0.69661474",
"0.69661474",
"0.69661474",
"0.69661474",
"0.67778194",
"0.6629948",
"0.6629948",
"0.63719136",
"0.6332856",
"0.61824083",
"0.6171084",
"0.6146498",
"0.6129634",
"0.61202204",
"0.61202204",
"0.61202204",
"0.61202204",
"0.61202204",
"0.61159223",
"0... | 0.69660443 | 6 |
Sets the description_not of this NfsExportWhereInput. | def ICeg(YKHO, ICeg):
YKHO._description_not = ICeg | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PRg5(YKHO, PRg5):\n YKHO._description_not_contains = PRg5",
"def KFBX(YKHO, KFBX):\n YKHO._description_not_ends_with = KFBX",
"def ZVWh(YKHO, ZVWh):\n YKHO._description_not_in = ZVWh",
"def zFmU(YKHO, zFmU):\n YKHO._description_not_starts_with = zFmU",
"def T9SL(YKHO, T9SL):\n YKHO._desc... | [
"0.7159462",
"0.6783604",
"0.6546094",
"0.6365862",
"0.6146947",
"0.60164076",
"0.59750026",
"0.59750026",
"0.59750026",
"0.59750026",
"0.59750026",
"0.59750026",
"0.59750026",
"0.59750026",
"0.59750026",
"0.59750026",
"0.5957331",
"0.5957331",
"0.5957331",
"0.5949888",
"0.59... | 0.7796982 | 0 |
Sets the description_not_in of this NfsExportWhereInput. | def ZVWh(YKHO, ZVWh):
YKHO._description_not_in = ZVWh | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PRg5(YKHO, PRg5):\n YKHO._description_not_contains = PRg5",
"def ZOfS(YKHO, ZOfS):\n YKHO._name_not_in = ZOfS",
"def ZOfS(YKHO, ZOfS):\n YKHO._name_not_in = ZOfS",
"def ZOfS(YKHO, ZOfS):\n YKHO._name_not_in = ZOfS",
"def ZOfS(YKHO, ZOfS):\n YKHO._name_not_in = ZOfS",
"def ICeg(YKHO, IC... | [
"0.6957048",
"0.6864602",
"0.6864602",
"0.6864602",
"0.6864602",
"0.6794119",
"0.67445534",
"0.6721207",
"0.6664205",
"0.66211534",
"0.64989465",
"0.64730537",
"0.64319456",
"0.64113545",
"0.64113545",
"0.64113545",
"0.64113545",
"0.64113545",
"0.64113545",
"0.6410468",
"0.64... | 0.835895 | 0 |
Sets the description_not_starts_with of this NfsExportWhereInput. | def zFmU(YKHO, zFmU):
YKHO._description_not_starts_with = zFmU | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Lzp5(YKHO, Lzp5):\n YKHO._serial_not_starts_with = Lzp5",
"def KFBX(YKHO, KFBX):\n YKHO._description_not_ends_with = KFBX",
"def AOyS(YKHO, AOyS):\n YKHO._version_not_starts_with = AOyS",
"def PRg5(YKHO, PRg5):\n YKHO._description_not_contains = PRg5",
"def zYFK(YKHO, zYFK):\n YKHO._desc... | [
"0.6977121",
"0.69619113",
"0.6819911",
"0.68142766",
"0.67528075",
"0.6660258",
"0.6660258",
"0.6660258",
"0.6660258",
"0.65390766",
"0.6526621",
"0.6499056",
"0.6490994",
"0.6490903",
"0.6461333",
"0.6425143",
"0.6376744",
"0.62227446",
"0.6053348",
"0.6050766",
"0.60075825... | 0.8166941 | 0 |