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 |
|---|---|---|---|---|---|---|
Sets the buyOpenVal of this Todays. | def VOYY(YKHO, VOYY):
YKHO._buyOpenVal = VOYY | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def G5H_(YKHO, G5H_):\n YKHO._sellOpenVal = G5H_",
"def QNds(YKHO, QNds):\n YKHO._buyOpenQtyLot = QNds",
"def S51E(YKHO, S51E):\n YKHO._buyTradedVal = S51E",
"def open(YKHO, open: float):\n if open is None:\n raise ValueError('Invalid value for `open`, must not be `None`')\n YKHO._open ... | [
"0.792224",
"0.62134796",
"0.6187658",
"0.61292297",
"0.57097995",
"0.5694079",
"0.55710834",
"0.5538013",
"0.5439113",
"0.5423213",
"0.5409403",
"0.53930104",
"0.5371976",
"0.53390944",
"0.5323059",
"0.53198767",
"0.53141415",
"0.53055614",
"0.51960117",
"0.5193765",
"0.5150... | 0.86845124 | 0 |
Sets the buyTradedVal of this Todays. | def S51E(YKHO, S51E):
YKHO._buyTradedVal = S51E | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def imrE(YKHO, imrE):\n YKHO._sellTradedVal = imrE",
"def VYCu(YKHO, VYCu):\n YKHO._buyTradedQtyLot = VYCu",
"def VOYY(YKHO, VOYY):\n YKHO._buyOpenVal = VOYY",
"def laFO(YKHO, upR9):\n YKHO.live_trading = upR9",
"def G5H_(YKHO, G5H_):\n YKHO._sellOpenVal = G5H_",
"def vy8H(YKHO, vy8H):\n ... | [
"0.6755813",
"0.6105963",
"0.6105754",
"0.59289825",
"0.5776081",
"0.54695594",
"0.54328215",
"0.5383405",
"0.52926034",
"0.5233931",
"0.519191",
"0.50842357",
"0.5061703",
"0.5025194",
"0.49871567",
"0.49049658",
"0.49037305",
"0.48808557",
"0.4878656",
"0.4819408",
"0.48194... | 0.80446833 | 0 |
Sets the buyTrdAvg of this Todays. | def n7KK(YKHO, n7KK):
YKHO._buyTrdAvg = n7KK | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V2Yc(YKHO, V2Yc):\n YKHO._sellTrdAvg = V2Yc",
"def TJkM(YKHO, qqgr, eAYh):\n YKHO._average = qqgr * eAYh\n YKHO.num_samples = eAYh",
"def lYon(YKHO, lYon):\n YKHO._weee_tax_applied = lYon",
"def XMSO(YKHO, XMSO):\n YKHO._row_total_incl_tax = XMSO",
"def S51E(YKHO, S51E):\n YKHO._buyTr... | [
"0.7440573",
"0.522036",
"0.52128994",
"0.51768416",
"0.517454",
"0.51028574",
"0.50514036",
"0.50004125",
"0.49885854",
"0.49856508",
"0.49826112",
"0.49350753",
"0.49138016",
"0.48891297",
"0.48878974",
"0.48775244",
"0.48676342",
"0.48521516",
"0.484965",
"0.48290765",
"0.... | 0.8381549 | 0 |
Sets the exposureMarginTotal of this Todays. | def bwmF(YKHO, bwmF):
YKHO._exposureMarginTotal = bwmF | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Fi7T(YKHO, Fi7T):\n YKHO._exposureMargin = Fi7T",
"def UVRr(YKHO, UVRr):\n YKHO._spanMarginTotal = UVRr",
"def Sm0u(YKHO, Sm0u):\n YKHO._days = Sm0u",
"def Sm0u(YKHO, Sm0u):\n YKHO._days = Sm0u",
"def qvqN(YKHO, ITaD):\n YKHO.logger.info(f'Setting exposure to {ITaD}')\n YKHO._driver.E... | [
"0.6919726",
"0.5897003",
"0.55853295",
"0.55853295",
"0.5266935",
"0.5245048",
"0.50665647",
"0.50144047",
"0.49765855",
"0.49096358",
"0.48703825",
"0.48626423",
"0.4814657",
"0.4814657",
"0.4814657",
"0.4814657",
"0.4814657",
"0.4814657",
"0.4814657",
"0.4814657",
"0.48066... | 0.83488405 | 0 |
Sets the instrumentName of this Todays. | def MSpD(YKHO, MSpD):
YKHO._instrumentName = MSpD | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oSgC(YKHO, mWFP):\n YKHO._name = mWFP",
"def oSgC(YKHO, mWFP):\n YKHO._name = mWFP",
"def oSgC(YKHO, mWFP):\n YKHO.name = str(mWFP)",
"def s2nd(YKHO, s2nd):\n YKHO._schedule_name = s2nd",
"def oSgC(YKHO, mWFP):\n YKHO._name = mWFP",
"def oSgC(YKHO, mWFP):\n YKHO.name = mWFP",
"def... | [
"0.5659957",
"0.5659957",
"0.5655562",
"0.56327075",
"0.5618122",
"0.5607145",
"0.5607145",
"0.5607145",
"0.5607145",
"0.5576745",
"0.5566113",
"0.5546005",
"0.5539264",
"0.552822",
"0.5500624",
"0.5500624",
"0.5500624",
"0.5500624",
"0.5500624",
"0.5500624",
"0.5500624",
"... | 0.7908122 | 0 |
Sets the lastPrice of this Todays. | def zufV(YKHO, zufV):
YKHO._lastPrice = zufV | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dFsR(YKHO, dFsR):\n YKHO._last_sold_price = dFsR",
"def yA2c(YKHO, gRga):\n YKHO._max_price = gRga",
"def iHc5(YKHO, iHc5):\n YKHO._last_sold_date = iHc5",
"def cV9T(YKHO, cV9T):\n YKHO._last_update = cV9T",
"def mn17(YKHO, mn17):\n YKHO._last_updated = mn17",
"def mn17(YKHO, mn17):\n ... | [
"0.76870024",
"0.64453244",
"0.63118416",
"0.6260388",
"0.6115564",
"0.6115564",
"0.6115564",
"0.6115564",
"0.6012773",
"0.5945576",
"0.5814375",
"0.57499397",
"0.573068",
"0.5725616",
"0.5697028",
"0.5697028",
"0.5697028",
"0.5697028",
"0.5697028",
"0.5697028",
"0.5697028",
... | 0.8106717 | 0 |
Sets the maxCODQty of this Todays. | def T9gp(YKHO, T9gp):
YKHO._maxCODQty = T9gp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tpg7(YKHO, tpg7):\n if tpg7 is None:\n raise ValueError('Invalid value for `max_sale_qty`, must not be `None`')\n YKHO._max_sale_qty = tpg7",
"def JwEZ(YKHO, Sgcx):\n YKHO.__qty = Sgcx",
"def yQpb(YKHO, yQpb):\n if yQpb is None:\n raise ValueError('Invalid value for `use_config_ma... | [
"0.6039956",
"0.5635461",
"0.5585717",
"0.54745233",
"0.54406464",
"0.54406464",
"0.5440165",
"0.54338616",
"0.54162395",
"0.54162395",
"0.54162395",
"0.5366474",
"0.53645563",
"0.534075",
"0.5307947",
"0.5268674",
"0.52447546",
"0.52447546",
"0.51799726",
"0.51434195",
"0.50... | 0.83763963 | 0 |
Sets the normalSqOffQty of this Todays. | def qsbU(YKHO, qsbU):
YKHO._normalSqOffQty = qsbU | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JwEZ(YKHO, Sgcx):\n YKHO.__qty = Sgcx",
"def Sgcx(YKHO, Sgcx):\n YKHO._qty = Sgcx",
"def lhKr(YKHO, lhKr):\n YKHO._netTrdQtyLot = lhKr",
"def Sgcx(YKHO, Sgcx):\n if Sgcx is None:\n raise ValueError('Invalid value for `qty`, must not be `None`')\n YKHO._qty = Sgcx",
"def Sgcx(YKHO,... | [
"0.5729276",
"0.54751456",
"0.54494506",
"0.50820524",
"0.50820524",
"0.4980234",
"0.4862853",
"0.4841309",
"0.4778189",
"0.47389305",
"0.47219193",
"0.47157934",
"0.46747112",
"0.46407852",
"0.4631502",
"0.46031743",
"0.4602834",
"0.45372623",
"0.45176375",
"0.44964582",
"0.... | 0.8387398 | 0 |
Sets the realizedPL of this Todays. | def sPL7(YKHO, sPL7):
YKHO._realizedPL = sPL7 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zicv(YKHO, zicv):\n YKHO._planned = zicv",
"def OhAr(YKHO, _YFz):\n YKHO._plyrbolts = _YFz",
"def aTMH(YKHO, aTMH):\n YKHO._planned_purge_date = aTMH",
"def aTMH(YKHO, aTMH):\n YKHO._planned_purge_date = aTMH",
"def qYz6(YKHO, HRJ_):\n pass",
"def dl1f(YKHO, GC8r, lQyR, rhd_=5):\n t... | [
"0.5504624",
"0.5277286",
"0.48903647",
"0.48903647",
"0.48841494",
"0.484144",
"0.4787247",
"0.4701438",
"0.4612002",
"0.45979857",
"0.45940223",
"0.4584943",
"0.45501566",
"0.45421958",
"0.45152426",
"0.45133227",
"0.4508421",
"0.45060623",
"0.45026186",
"0.44949692",
"0.44... | 0.76740044 | 0 |
Sets the sellOpenVal of this Todays. | def G5H_(YKHO, G5H_):
YKHO._sellOpenVal = G5H_ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VOYY(YKHO, VOYY):\n YKHO._buyOpenVal = VOYY",
"def CAHx(YKHO, CAHx):\n YKHO._sellOpenQtyLot = CAHx",
"def imrE(YKHO, imrE):\n YKHO._sellTradedVal = imrE",
"def R5Y8(YKHO, *qIxc, **B2fa):\n YKHO._sell_amount = YKHO.get_sell_amount_from_buy_amount(*qIxc, **B2fa)",
"def ZEdG(YKHO, ZEdG):\n ... | [
"0.7842964",
"0.64404714",
"0.5858791",
"0.57749903",
"0.57126355",
"0.56925833",
"0.56652045",
"0.5647393",
"0.5638476",
"0.5633755",
"0.5619304",
"0.55632746",
"0.5557169",
"0.55131936",
"0.5479172",
"0.5472713",
"0.5448849",
"0.53595304",
"0.53315955",
"0.5294227",
"0.5257... | 0.8756516 | 0 |
Sets the sellTradedVal of this Todays. | def imrE(YKHO, imrE):
YKHO._sellTradedVal = imrE | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def S51E(YKHO, S51E):\n YKHO._buyTradedVal = S51E",
"def vy8H(YKHO, vy8H):\n YKHO._sellTradedQtyLot = vy8H",
"def G5H_(YKHO, G5H_):\n YKHO._sellOpenVal = G5H_",
"def ZEdG(YKHO, ZEdG):\n YKHO._sells = ZEdG",
"def R5Y8(YKHO, *qIxc, **B2fa):\n YKHO._sell_amount = YKHO.get_sell_amount_from_buy_a... | [
"0.7237824",
"0.6751613",
"0.6502228",
"0.6135291",
"0.601004",
"0.6008388",
"0.586594",
"0.5793435",
"0.5705081",
"0.5620574",
"0.5545526",
"0.5523706",
"0.5516475",
"0.5416297",
"0.52913755",
"0.52766633",
"0.517192",
"0.5168107",
"0.5148421",
"0.513201",
"0.50286686",
"0... | 0.8211346 | 0 |
Sets the spanMargin of this Todays. | def H6VH(YKHO, H6VH):
YKHO._spanMargin = H6VH | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UVRr(YKHO, UVRr):\n YKHO._spanMarginTotal = UVRr",
"def Tc3O(YKHO, MVIL):\n MUcb.lib.geometry_set_margin(YKHO._geometry, Z9rn.c_float(MVIL))",
"def rKbr(YKHO, MVIL):\n YKHO.margin = MVIL * YKHO._MM_IN_MICRONS\n YKHO._create_drawing_area()\n YKHO.partition(YKHO.rows, YKHO.cols)",
"def Tc3O(... | [
"0.6576839",
"0.5993651",
"0.5863074",
"0.5770549",
"0.55829585",
"0.53886014",
"0.53886014",
"0.53337723",
"0.5246872",
"0.51989",
"0.51454604",
"0.5065816",
"0.50485206",
"0.50272894",
"0.4999453",
"0.49740312",
"0.4906146",
"0.48618513",
"0.47878632",
"0.47790757",
"0.4774... | 0.73883986 | 0 |
Sets the spanMarginTotal of this Todays. | def UVRr(YKHO, UVRr):
YKHO._spanMarginTotal = UVRr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bwmF(YKHO, bwmF):\n YKHO._exposureMarginTotal = bwmF",
"def H6VH(YKHO, H6VH):\n YKHO._spanMargin = H6VH",
"def Sm0u(YKHO, Sm0u):\n YKHO._days = Sm0u",
"def Sm0u(YKHO, Sm0u):\n YKHO._days = Sm0u",
"def DOvO(YKHO, DOvO):\n YKHO._total_seats = DOvO",
"def Tc3O(YKHO, BWXx):\n BWXx = P6b... | [
"0.61584926",
"0.6138209",
"0.55055887",
"0.55055887",
"0.5172367",
"0.5160601",
"0.5155821",
"0.5125953",
"0.5086602",
"0.50012535",
"0.4913711",
"0.48961848",
"0.47081298",
"0.46686873",
"0.46538928",
"0.46340597",
"0.46340597",
"0.46340597",
"0.46340597",
"0.46340597",
"0.... | 0.7949429 | 0 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, g9T7):
return False
return YKHO.to_dict() == Elif.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.80886984",
"0.80886984",
"0.8055307",
"0.7983415",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
if not isinstance(Elif, g9T7):
return True
return YKHO.to_dict() != Elif.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.84560555",
"0.83913696",
"0.8143685",
"0.81403786",
"0.8131871",
"0.8093231",
"0.80915105",
"0.80915105",
"0.80915105",
"0.8084564",
"0.8084564",
"0.8075547",
"0.8075547",
"0.8065006",
"0.80417657",
"0.80417657",
"0.80417657",
"0.80417657",
"0.80417657",
"0.80417657",
"0.8... | 0.0 | -1 |
Gets a collection of `InputExample`s for the train set. | def rNg5(YKHO, h_xa):
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vGUt(YKHO, PU1l):\n return PU1l",
"def rNg5(YKHO):\n raise NotImplementedError()",
"def rNg5(YKHO, eZ_W):\n raise NotImplementedError()",
"def G_y_(YKHO, nPrm, TG_K):\n _73Q = []\n for YRbF, LihS in enumerate(nPrm):\n Artt = '%s-%s' % (TG_K, YRbF)\n l5Ny = LihS[0]\n UX... | [
"0.7351723",
"0.7176769",
"0.7129576",
"0.6561703",
"0.6423176",
"0.6406007",
"0.6342966",
"0.6290008",
"0.6282498",
"0.6251752",
"0.6250117",
"0.6250117",
"0.6250117",
"0.6250117",
"0.6250117",
"0.6250117",
"0.6250117",
"0.6250117",
"0.6250117",
"0.6250117",
"0.6250117",
"... | 0.6209044 | 34 |
Gets a collection of `InputExample`s for the dev set. | def JdXm(YKHO, h_xa):
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JdXm(YKHO, eZ_W):\n raise NotImplementedError()",
"def vGUt(YKHO, PU1l):\n return PU1l",
"def X2wT(YKHO, sEAN):\n return YKHO.fam.c_get_examples(YKHO, sEAN)",
"def JdXm(YKHO):\n raise NotImplementedError()",
"def G_y_(YKHO, nPrm, TG_K):\n _73Q = []\n for YRbF, LihS in enumerate(nPrm):... | [
"0.68096465",
"0.6588737",
"0.65564847",
"0.6552217",
"0.64253366",
"0.63810265",
"0.62574667",
"0.6191878",
"0.6116491",
"0.6095453",
"0.6055614",
"0.60522205",
"0.5994734",
"0.5994734",
"0.5994734",
"0.5994734",
"0.5994734",
"0.5994734",
"0.5994734",
"0.5994734",
"0.5994734... | 0.5915606 | 36 |
A test status code of response for anonymous user | def eMGA(YKHO):
geh0 = YKHO.client.get(YKHO.get_url())
YKHO.assertEqual(geh0.status_code, YKHO.status_anonymous) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yBrx(YKHO):\n geh0 = YKHO.client.get('/api/users/whoami/')\n YKHO.assertEqual(geh0.status_code, 401)",
"def eypP(YKHO):\n YKHO.client.login(username='john', password='pass')\n geh0 = YKHO.client.get(YKHO.get_url())\n YKHO.assertEqual(geh0.status_code, YKHO.status_no_permission)",
"def rEEa(Y... | [
"0.76912373",
"0.75791943",
"0.7486997",
"0.7346519",
"0.72885984",
"0.7232091",
"0.71685225",
"0.7132378",
"0.7130539",
"0.71257293",
"0.71161425",
"0.7030195",
"0.7006366",
"0.7006366",
"0.70001423",
"0.69591725",
"0.6952329",
"0.69495934",
"0.6945756",
"0.68966967",
"0.688... | 0.8502435 | 0 |
Get the tiering_policy enum. | def ixs_(YKHO, WXKV):
if WXKV in BfDw.TieringPolicyEnum.__members__:
return BfDw.TieringPolicyEnum[WXKV]
else:
KeWr = 'Invalid choice {0} for tiering policy'.format(WXKV)
na1r.error(KeWr)
YKHO.module.fail_json(msg=KeWr) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dLs1(YKHO, dExZ):\n if dExZ in BfDw.FSLockingPolicyEnum.__members__:\n return BfDw.FSLockingPolicyEnum[dExZ]\n else:\n KeWr = 'Invalid choice {0} for locking_policy'.format(dExZ)\n na1r.error(KeWr)\n YKHO.module.fail_json(msg=KeWr)",
"def EcuX(YKHO):\n return YKHO._tier",... | [
"0.6397545",
"0.634253",
"0.63034767",
"0.63034767",
"0.63034767",
"0.6250823",
"0.6237406",
"0.62089485",
"0.61861485",
"0.61861485",
"0.61861485",
"0.61861485",
"0.6163467",
"0.6160561",
"0.6086308",
"0.6016778",
"0.5997057",
"0.59932476",
"0.5970653",
"0.5855682",
"0.58343... | 0.89365596 | 0 |
This method sets seconds in minutes, hours or days. | def M5Xf(ITS7):
vzb6 = 60
e67A = 60 * 60
AulG = 24 * 60 * 60
if ITS7 % AulG == 0:
ITS7 = ITS7 / AulG
PXGI = 'days'
elif ITS7 % e67A == 0:
ITS7 = ITS7 / e67A
PXGI = 'hours'
else:
ITS7 = ITS7 / vzb6
PXGI = 'minutes'
return '%s %s' % (ITS7, PXGI) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jUWg(YKHO, kRsb):\n YKHO.set_timed(round(kRsb * 10.0))",
"def C6wh(YKHO, C6wh):\n YKHO._seconds = C6wh",
"def Edac(YKHO, *qIxc):\n return _VfD.Date_setSecond(YKHO, *qIxc)",
"def FIMM(YKHO, C6wh):\n YKHO._seconds = C6wh",
"def m3XP(YKHO, BWXx):\n YKHO.__duration = BWXx * 1000000",
"def ... | [
"0.76748514",
"0.74424386",
"0.66163504",
"0.64558667",
"0.64133805",
"0.64109707",
"0.6401154",
"0.6397392",
"0.638656",
"0.63768166",
"0.6354098",
"0.63376427",
"0.6333682",
"0.6284368",
"0.628019",
"0.6275721",
"0.62380767",
"0.623474",
"0.6231666",
"0.62107664",
"0.620419... | 0.0 | -1 |
AuthorizationPolicyStatus defines the observed state of AuthorizationPolicy | def FIMM(Ro_8, *, Ol8d: Optional[pulumi.Input[str]]=None, ulWc: Optional[pulumi.Input[str]]=None, Tf5Y: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]=None, JZXy: Optional[pulumi.Input['AuthorizationPolicyStatusSourceArgs']]=None, QTBn: Optional[pulumi.Input[str]]=None, pan_: Optional[pulumi.Input['AuthorizationPo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OcoU(YKHO, QTBn):\n gnPz.raiseNotDefined()",
"def OcoU(YKHO, QTBn):\n gnPz.raiseNotDefined()",
"def jGRS(YKHO) -> h8nf['outputs.ValidatingAdmissionPolicyStatus']:\n return qe4Y.get(YKHO, 'status')",
"def jGRS(OaeV):\n jGRS = OaeV.status()\n k8wH.echo(k8wH.style('Policy', bold=True))\n i... | [
"0.6004429",
"0.6004429",
"0.589617",
"0.5854452",
"0.57064515",
"0.5650583",
"0.55248946",
"0.54457945",
"0.54323304",
"0.5370546",
"0.53590304",
"0.535598",
"0.5296116",
"0.52956057",
"0.5289436",
"0.52861017",
"0.5285436",
"0.52596825",
"0.5252264",
"0.5250852",
"0.5250647... | 0.50970525 | 31 |
Yields all propositions in this tree matching the specified path. | def GKJL(YKHO, pmON):
if len(pmON) == 0:
for kjp6 in YKHO.leaves:
yield kjp6
else:
rYh9 = pmON[0]
if YKHO._is_variable(rYh9):
for kjp6 in YKHO._retrieve_variable(pmON[1:]):
yield kjp6
else:
cU6W = YKHO._child_at_index(rYh9)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vs4Q(YKHO):\n for bGrB, bGrB, pmON in YKHO.frontierpq:\n yield pmON",
"def Bly5(Csk6):\n for XP5J in oLU_([], Csk6):\n yield XP5J",
"def pmON(YKHO):\n Q6kx, XP5J = (YKHO, [])\n while Q6kx:\n XP5J.append(Q6kx)\n Q6kx = Q6kx.parent\n yield from reversed(XP5J)",
"d... | [
"0.61683244",
"0.5970815",
"0.58298516",
"0.5769936",
"0.57153827",
"0.567977",
"0.5679161",
"0.5603973",
"0.5594862",
"0.5590501",
"0.55403316",
"0.55403316",
"0.5488624",
"0.5474393",
"0.5437475",
"0.54317427",
"0.5427958",
"0.5424383",
"0.5409215",
"0.5393515",
"0.53763336... | 0.58082455 | 3 |
From a list , replace a single instance of with . Raises a ValueError if is not found, or is found multiple times. | def BWXp(oEeO, jzdc, Fg_i, h8Mv=True):
d6pt = None
for YRbF, ZfUD in enumerate(oEeO):
if d6pt is None and ZfUD == jzdc:
d6pt = YRbF
if h8Mv:
break
elif d6pt is not None and ZfUD == jzdc:
raise ValueError('Multiple copies of {0} were found'.form... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q5Jc(l5Ny, list):\n for q2Xo in list:\n if q2Xo[0] in l5Ny:\n l5Ny = l5Ny.replace(q2Xo[0], q2Xo[1])\n return l5Ny",
"def dGQX(aqea, TgwQ, qx_G):\n S06t = list(map(lambda jzdc: qx_G if jzdc == TgwQ else jzdc, aqea))\n return S06t",
"def dGQX(aqea, TgwQ, qx_G):\n S06t = list(... | [
"0.68770045",
"0.672791",
"0.6654641",
"0.6552881",
"0.6478725",
"0.6427196",
"0.64206135",
"0.6399069",
"0.633334",
"0.62853277",
"0.6264004",
"0.6175482",
"0.6046381",
"0.60372823",
"0.6016073",
"0.6007531",
"0.5817499",
"0.57966685",
"0.57444364",
"0.5736971",
"0.5688116",... | 0.74271905 | 0 |
Administer a drug to this patient. After a prescription is added, the drug acts on the virus population for all subsequent time steps. If the newDrug is already prescribed to this patient, the method has no effect. | def Lu0i(YKHO, grr_):
if grr_ not in YKHO.Prescriptions:
YKHO.Prescriptions.append(grr_) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Lu0i(YKHO, grr_):\n YKHO.administeredDrugs.append(grr_)",
"def Lu0i(YKHO, grr_):\n if YKHO.prescriptions.count(grr_) == 0:\n YKHO.prescriptions.append(grr_)",
"def yq8k(YKHO, yq8k):\n YKHO.logger.debug(\"In 'illicit_drug' setter.\")\n YKHO._illicit_drug = yq8k",
"def ybIi(YKHO, ybIi):\... | [
"0.82073563",
"0.6658299",
"0.5626224",
"0.5345675",
"0.49271238",
"0.48004666",
"0.45710114",
"0.45217797",
"0.4489947",
"0.4489095",
"0.4455575",
"0.4401897",
"0.4361488",
"0.43498558",
"0.4346843",
"0.43387407",
"0.4316562",
"0.43126994",
"0.43051687",
"0.43042076",
"0.430... | 0.70758677 | 1 |
Returns the short name for the user. | def dsRp(YKHO):
return YKHO.first_name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dsRp(YKHO):\n return YKHO.username",
"def dsRp(YKHO):\n return YKHO.username",
"def dsRp(YKHO):\n return YKHO.username",
"def dsRp(YKHO):\n return YKHO.first_name",
"def dsRp(YKHO):\n return f'{YKHO.first_name} {YKHO.last_name[:1]}' if YKHO.first_name else YKHO.username",
"def dsRp(YKH... | [
"0.90316343",
"0.90316343",
"0.90316343",
"0.8829965",
"0.88074076",
"0.8665172",
"0.8423785",
"0.8335693",
"0.8307673",
"0.8281205",
"0.8281205",
"0.81919736",
"0.8174178",
"0.8150322",
"0.81289876",
"0.80974096",
"0.80956835",
"0.8077189",
"0.79694206",
"0.79643494",
"0.796... | 0.81823653 | 27 |
Returns the first_name plus the last_name, with a space in between. | def xpqj(YKHO):
eHMM = '%s %s' % (YKHO.first_name, YKHO.last_name)
return eHMM.strip() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eHMM(c9ua, zp3f):\n return c9ua + ' ' + zp3f",
"def eHMM(c9ua, zp3f):\n return c9ua + ' ' + zp3f",
"def kaIN(c9ua, zp3f):\n eHMM = c9ua + '' + zp3f\n return eHMM.title()",
"def xpqj(YKHO):\n return YKHO.first_name + ' ' + YKHO.last_name",
"def xpqj(YKHO):\n return YKHO.first_name + ' ... | [
"0.8313066",
"0.82006806",
"0.8049215",
"0.80409706",
"0.8017754",
"0.7999701",
"0.79541886",
"0.7942144",
"0.7942144",
"0.7942144",
"0.7937664",
"0.79287225",
"0.7921711",
"0.790314",
"0.7892264",
"0.7890117",
"0.7878668",
"0.786143",
"0.78528684",
"0.7823523",
"0.7813124",
... | 0.77466476 | 51 |
Vectorizes padding and masks last word of sentence. (EOS token) | def Vknw(YKHO, QpfX, bAls, ANfV, ZHfW):
bR5D = oyIN.zeros([YKHO.config.batch_size, YKHO.dataset.max_input_size, YKHO.config.word_vector_length])
_jzK = oyIN.zeros([YKHO.config.batch_size, YKHO.dataset.max_question_size, YKHO.config.word_vector_length])
l0Pg = oyIN.zeros([YKHO.config.batch_size, YKHO.dataset... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M7YV(YKHO, yAmx):\n if len(yAmx) > YKHO.pad_sentence_length:\n yAmx = yAmx[:YKHO.pad_sentence_length]\n yAmx[YKHO.pad_sentence_length - 1] = '@EOS@'\n elif len(yAmx) < YKHO.pad_sentence_length:\n yAmx.extend(['@PAD@'] * (YKHO.pad_sentence_length - len(yAmx)))\n return yAmx",
"de... | [
"0.5888574",
"0.5697063",
"0.56645525",
"0.56425786",
"0.56326514",
"0.56315976",
"0.5547267",
"0.5533461",
"0.54940605",
"0.54899",
"0.5451357",
"0.5379438",
"0.5373771",
"0.53726137",
"0.53599024",
"0.53030574",
"0.5296092",
"0.52920943",
"0.52830356",
"0.5274911",
"0.52651... | 0.0 | -1 |
Convert s, a command separated list of whole numbers, into a list of int. | def aLNT(KCHu):
return tuple((int(Ty9i) for Ty9i in KCHu.split(','))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AqGv(KCHu, Csk6=','):\n KG9w = KCHu.split(Csk6)\n ycBG = []\n for a1PO in KG9w:\n ycBG.append(int(a1PO))\n return ycBG",
"def RLP0(zFiD):\n return [int(Csk6) for Csk6 in zFiD.strip()]",
"def QK89(NArs: str) -> x1iM[int]:\n return list(map(int, NArs.split(',')))",
"def Z5wK(KCHu):... | [
"0.7293066",
"0.71518475",
"0.71385217",
"0.709224",
"0.7090437",
"0.69723064",
"0.6947008",
"0.6921535",
"0.6915192",
"0.6872384",
"0.6869889",
"0.677663",
"0.6758972",
"0.6694627",
"0.6618454",
"0.65448016",
"0.6505061",
"0.6498804",
"0.6457406",
"0.6456938",
"0.6399968",
... | 0.572374 | 78 |
Create a dict mapping label id to human readable string. | def Vhlj():
NKRf = 'http://cnbj1-fds.api.xiaomi.net/ml-datasets/imagenet/'
zuwv = '{}/imagenet_lsvrc_2015_synsets.txt'.format(NKRf)
KB72 = '{}/imagenet_metadata.txt'.format(NKRf)
Ux0P, bGrB = uRlK.urlretrieve(zuwv)
AyLP = [KCHu.strip() for KCHu in open(Ux0P).readlines()]
DSP9 = len(AyLP)
ass... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KUEj(YKHO, Crrw, J8oL):\n lNj0 = list(enumerate(list(Crrw), start=0))\n if J8oL:\n mpqj = {FGW3: str(J8oL[UXqs]) for FGW3, UXqs in lNj0}\n else:\n mpqj = {FGW3: str(UXqs) for FGW3, UXqs in lNj0}\n Mlmp = [mpqj[IxKf[0]] for IxKf in lNj0]\n return (Mlmp, mpqj)",
"def pLAs(YKHO, hbF... | [
"0.6659889",
"0.66004634",
"0.658425",
"0.6549008",
"0.65021294",
"0.6488751",
"0.6484011",
"0.640811",
"0.64059776",
"0.6376804",
"0.6359671",
"0.63115203",
"0.6235658",
"0.62094486",
"0.620497",
"0.6180193",
"0.61330223",
"0.61097467",
"0.61067617",
"0.6097204",
"0.60965496... | 0.0 | -1 |
Fills the missing values of `series` with only the value provided (default zeroes). | def Hdlf(dy_H: TimeSeries, LGJQ: float=0) -> YXTX:
return YXTX.from_times_and_values(dy_H.time_index, dy_H.pd_dataframe().fillna(value=LGJQ), freq=dy_H.freq, columns=dy_H.columns, static_covariates=dy_H.static_covariates, hierarchy=dy_H.hierarchy) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i962(dy_H: TimeSeries, LGJQ: Union[str, float]='auto', **F_z2) -> YXTX:\n i_Sf(isinstance(LGJQ, str) or isinstance(LGJQ, float), '`fill` should either be a string or a float', bo34)\n PEeS(isinstance(LGJQ, str) and LGJQ != 'auto', \"invalid string for `fill`: can only be set to 'auto'\", bo34)\n if LG... | [
"0.7136625",
"0.709207",
"0.68450874",
"0.6656159",
"0.6341916",
"0.63358647",
"0.6328167",
"0.6262715",
"0.62560636",
"0.62413216",
"0.62156135",
"0.61693394",
"0.61686003",
"0.6064794",
"0.60038745",
"0.5992132",
"0.5980443",
"0.59703183",
"0.5963774",
"0.59323215",
"0.5776... | 0.6993336 | 2 |
Checks the length for a Hugging Face Transformers tokenizer using a Hugging Face Transformers config. Copies the max_position_embeddings parameter if the tokenizer has no max_length set. This helps with backwards compatibility with older tokenizers. | def HSxD(GPtr, b0j5):
if hasattr(GPtr, 'config'):
GPtr = GPtr.config
if hasattr(GPtr, 'max_position_embeddings') and b0j5 and hasattr(b0j5, 'model_max_length') and (b0j5.model_max_length == int(1e+30)):
b0j5.model_max_length = GPtr.max_position_embeddings | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def apvU(Emd4, C3ST: PreTrainedModel, JWS6: TokenizerWrapper):\n if JWS6.num_added_special_tokens > 0:\n C3ST.resize_token_embeddings(new_num_tokens=len(JWS6.tokenizer))",
"def WnpM(YKHO, x6M1):\n tRH8, Nqlg = x6M1\n tZ2K = tRH8(Nqlg)\n tm40 = [len(zFiD.tokens['tokens']) for zFiD in Nqlg]\n ... | [
"0.5711118",
"0.5426763",
"0.5255646",
"0.5245503",
"0.5245503",
"0.5245503",
"0.5245503",
"0.5210988",
"0.52006274",
"0.50267303",
"0.50076056",
"0.49952373",
"0.49209923",
"0.48601574",
"0.48592582",
"0.4850963",
"0.4830976",
"0.48153925",
"0.48108733",
"0.47946444",
"0.479... | 0.72631747 | 0 |
Gets the best max length to use for generate calls. This method will return config.max_length if it's set. Otherwise, it will return tokenizer.model_max_length. | def Fn22(GPtr, b0j5):
if hasattr(GPtr, 'config'):
GPtr = GPtr.config
sjXb = GPtr.to_diff_dict()
return GPtr.max_length if 'max_length' in sjXb or not hasattr(b0j5, 'model_max_length') else b0j5.model_max_length | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FR_G(YKHO):\n return YKHO.__max_length",
"def BcCR(YKHO):\n return YKHO._max_length",
"def UikQ():\n return 30",
"def BcCR(YKHO) -> int | None:\n return YKHO._underlying.max_length",
"def uo_E(YKHO) -> int:\n return YKHO.max_sequence_length",
"def Kmcr(YKHO) -> int:\n return YKHO._m... | [
"0.79405546",
"0.7843473",
"0.7619192",
"0.7608121",
"0.71693355",
"0.7094461",
"0.7046673",
"0.69798476",
"0.6894663",
"0.68818414",
"0.6845005",
"0.68170446",
"0.6746684",
"0.66152346",
"0.6553684",
"0.65375984",
"0.64956737",
"0.6461967",
"0.64548415",
"0.6432982",
"0.6432... | 0.84325695 | 0 |
Translates input gpu argument into a device id. | def w8MO(wqL3):
if isinstance(wqL3, ht2j.device):
return wqL3
if wqL3 is None or not UPcG.hasaccelerator():
return -1
if isinstance(wqL3, bool):
return 0 if wqL3 else -1
return int(wqL3) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IQ8c():\n return MTKo['device_id']",
"def qibS(begE, WKvO):\n if begE is None:\n return WKvO\n elif begE < 0:\n return lDLs.to_cpu(WKvO)\n else:\n return lDLs.to_gpu(WKvO, begE)",
"def RoLE(wqL3):\n if not wqL3:\n return 'No GPU'\n elif '8086' in wqL3:\n ... | [
"0.6964336",
"0.69079167",
"0.67300904",
"0.67153615",
"0.6606423",
"0.6566457",
"0.6508084",
"0.64685595",
"0.64474094",
"0.6415288",
"0.6337208",
"0.6267058",
"0.6247046",
"0.62168324",
"0.6188465",
"0.6186235",
"0.6170216",
"0.6126492",
"0.6126492",
"0.61091566",
"0.605798... | 0.726502 | 0 |
Gets a tensor device. | def begE(w8MO):
return w8MO if isinstance(w8MO, ht2j.device) else ht2j.device(UPcG.reference(w8MO)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def begE(YKHO):\n return YKHO._tensor.device",
"def UUd9(YKHO, vhpA):\n if not vhpA.is_cuda:\n return -1\n else:\n return vhpA.get_device()",
"def VeaS():\n import torch\n if torch.cuda.is_available():\n return torch.device('cuda')\n return torch.device('cpu')",
"def be... | [
"0.8164742",
"0.76639354",
"0.7298995",
"0.72871435",
"0.72539467",
"0.72441936",
"0.7124126",
"0.70127064",
"0.68898284",
"0.6874498",
"0.6826608",
"0.6801499",
"0.6799926",
"0.6793535",
"0.676261",
"0.6665935",
"0.66055286",
"0.66055286",
"0.66055286",
"0.66055286",
"0.6605... | 0.66141444 | 16 |
Gets a tensor device reference. | def aC0l(w8MO):
return w8MO if isinstance(w8MO, str) else 'cpu' if w8MO < 0 else f'cuda:{w8MO}' if ht2j.cuda.is_available() else 'mps' if ht2j.backends.mps.is_available() else UPcG.finddevice() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def begE(YKHO):\n return YKHO._tensor.device",
"def begE(YKHO) -> ht2j.device:\n return YKHO._device",
"def UUd9(YKHO, vhpA):\n if not vhpA.is_cuda:\n return -1\n else:\n return vhpA.get_device()",
"def begE(YKHO):\n return ht2j.cuda.current_device()",
"def HNbi():\n return ... | [
"0.7835659",
"0.69524187",
"0.6910918",
"0.6675793",
"0.6584419",
"0.65061194",
"0.6471759",
"0.64582735",
"0.64544827",
"0.64336944",
"0.64211166",
"0.64211166",
"0.64211166",
"0.64211166",
"0.64211166",
"0.64086044",
"0.63569194",
"0.6350916",
"0.6350318",
"0.6339761",
"0.6... | 0.6087808 | 27 |
Get the version number of the DLL. | def lodR(YKHO):
if not YKHO.__dll:
return None
return YKHO.__dll._MPUSBGetDLLVersion() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vTHS(YKHO):\n IJ4N = gk2W.c_uint32()\n cbKy = gk2W.c_uint32()\n XkTm = gk2W.c_uint8()\n Aofo = YKHO._lib.NRFJPROG_dll_version(gk2W.byref(IJ4N), gk2W.byref(cbKy), gk2W.byref(XkTm))\n if Aofo != Xj2n.SUCCESS:\n raise yiLL(Aofo)\n return (IJ4N.value, cbKy.value, chr(XkTm.value))",
"def ... | [
"0.76344067",
"0.74684596",
"0.74162537",
"0.74123",
"0.7367389",
"0.7258252",
"0.7252815",
"0.7229101",
"0.720304",
"0.71995544",
"0.71995544",
"0.71995544",
"0.7196376",
"0.71776766",
"0.7132807",
"0.70834774",
"0.70676786",
"0.7063237",
"0.6989423",
"0.6966079",
"0.6960703... | 0.7094877 | 15 |
Get number of devices connected. | def OhZZ(YKHO, jLxp):
if not YKHO.__dll:
return 0
return YKHO.__dll._MPUSBGetDeviceCount(jLxp.encode('utf-8')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DUZc():\n ytKZ()\n return Wd0U.CountDevices()",
"def U4WG(YKHO):\n return YKHO.drt_manager.get_number_of_devices()",
"def C_sb():\n Zaep = lY0q.c_int(0)\n q7n6(DDLl.get().af_get_device_count(lY0q.pointer(Zaep)))\n return Zaep.value",
"def C_sb():\n dsE5('MpOrLibUsb.get_device_count()... | [
"0.8508309",
"0.8323714",
"0.82190895",
"0.7869438",
"0.77642435",
"0.77367294",
"0.74786454",
"0.7279567",
"0.715227",
"0.71362555",
"0.71303964",
"0.70103717",
"0.70077246",
"0.69313",
"0.6870126",
"0.68391997",
"0.67820454",
"0.67653406",
"0.6730397",
"0.66155225",
"0.6608... | 0.5994583 | 77 |
Sets configProto from tensorflow, serialized into byte array. | def GOb_(YKHO, Fg_i):
return YKHO._set(configProtoBytes=Fg_i) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GOb_(YKHO, Ty9i):\n return YKHO._set(configProtoBytes=Ty9i)",
"def jy32(Z9rn):\n IHts = Hy7s.environ.get('use_gpu', Z9rn.get('tf.config.use_gpu', Z9rn.get('use_gpu', 1)))\n _Fei = ZylS.ConfigProto(device_count={'GPU': IHts})\n VKhi = {y7GR.replace('tf.config.', ''): Z9rn[y7GR] for y7GR in Z9rn if... | [
"0.75618696",
"0.6219305",
"0.6167628",
"0.59814763",
"0.59055257",
"0.5844697",
"0.5599306",
"0.55863786",
"0.5412146",
"0.53233427",
"0.5217989",
"0.52129155",
"0.51678354",
"0.51494646",
"0.50938296",
"0.5053427",
"0.50138324",
"0.49860623",
"0.4972503",
"0.49635026",
"0.4... | 0.7518328 | 42 |
Post an object to the server by JSON; return the received object. | def JV8H(YKHO, bD7m, pB3N, MUsr=None, wPMw=False, DiuI=200, hIw9=None):
nPrm = {'payload': qQXR.dumps(pB3N)}
if MUsr:
nPrm['csrf_token'] = MUsr
GtGV = YKHO.testapp.post(str(bD7m), nPrm, expect_errors=wPMw, upload_files=hIw9)
YKHO.assertEqual(GtGV.status_int, DiuI)
return YKHO._parse_json_res... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m8z6(YKHO, bD7m, YEnM):\n with qmLP.catch_warnings():\n qmLP.simplefilter('ignore')\n return YKHO.session.post(bD7m, json=YEnM, verify=False)",
"def m8z6(**qIxc):\n global _objstore\n i50P = i50P or rVaN()\n if 'json' in qIxc:\n i50P.post(qIxc['json'])\n return {'messa... | [
"0.7611127",
"0.70503545",
"0.7015738",
"0.69528824",
"0.682873",
"0.6698919",
"0.6669453",
"0.6663495",
"0.6586448",
"0.6545432",
"0.6545432",
"0.65274906",
"0.64938664",
"0.64926225",
"0.6450602",
"0.63934225",
"0.63787633",
"0.63643277",
"0.63610274",
"0.63509077",
"0.6309... | 0.0 | -1 |
Saves a new default exploration written by owner_id. Returns the exploration domain object. | def kjH9(YKHO, RjQS, gPmJ, leAC='A title'):
bHR_ = k1lM.Exploration.create_default_exploration(RjQS, leAC, 'A category')
tK6G.save_new_exploration(gPmJ, bHR_)
return bHR_ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iwg6(YKHO, RjQS, gPmJ, leAC='A title'):\n bHR_ = k1lM.Exploration.create_default_exploration(RjQS, leAC, 'A category')\n bHR_.states[bHR_.init_state_name].widget.handlers[0].rule_specs[0].dest = vg4R.END_DEST\n bHR_.objective = 'An objective'\n tK6G.save_new_exploration(gPmJ, bHR_)\n return bHR_... | [
"0.7502665",
"0.51888716",
"0.51870084",
"0.5003496",
"0.49176863",
"0.47992614",
"0.47962826",
"0.47937116",
"0.46809012",
"0.46634847",
"0.4581752",
"0.45622504",
"0.45026258",
"0.4442152",
"0.4433455",
"0.44076717",
"0.44015548",
"0.43778506",
"0.43730906",
"0.43640757",
"... | 0.83821166 | 0 |
Give and randomize all player in the game | def M8Tv(YKHO):
AEw9 = []
for mS46 in YKHO.playersAndRoles:
AEw9.append(mS46.user.name)
tuKI.shuffle(AEw9)
return AEw9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rJrZ(YKHO):\n if YKHO.randomize_players is True:\n tuKI.shuffle(YKHO.player_field)",
"def sd_9(YKHO):\n raise NotImplementedError()",
"def S6vK(VoIc, yokr):\n oyIN.random.seed(yokr)\n Bwa6 = [mVZ4(mWFP) for mWFP in VoIc]\n for oyg0 in Bwa6:\n oyg0.set_prefs(oyIN.random.permutat... | [
"0.80500937",
"0.6924485",
"0.6726389",
"0.6663254",
"0.6662036",
"0.6647794",
"0.6628226",
"0.6618328",
"0.65626156",
"0.65197897",
"0.64625067",
"0.6444857",
"0.64310265",
"0.6389021",
"0.63687474",
"0.6366432",
"0.63451564",
"0.63302433",
"0.6316544",
"0.6315681",
"0.62979... | 0.0 | -1 |
Build complete URL to the API endpoint by replacing single formatting character (%s) in endpoint_url with instance_id of the object and combining it with base url. | def jNi7(YKHO, Wsxr: str) -> str:
return YKHO.base_url + Wsxr % YKHO.instance_id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CDTZ(YKHO, w2IS: str, NArs: Dict[str, str]=None) -> str:\n if NArs:\n return f'{YKHO.BASE_URL}/{YKHO._api_version}{w2IS}?{QIYp(NArs)}'\n return f'{YKHO.BASE_URL}/{YKHO._api_version}{w2IS}'",
"def IzyR(YKHO, w2IS):\n return YKHO.base_url + YKHO.api_path + w2IS.strip('/')",
"def LDjU(YKHO, w2... | [
"0.78190833",
"0.7807703",
"0.75187397",
"0.7305575",
"0.7272995",
"0.718999",
"0.71346897",
"0.7057869",
"0.70359516",
"0.7008521",
"0.69545925",
"0.69352406",
"0.6933932",
"0.6888178",
"0.68276626",
"0.6800728",
"0.67874175",
"0.6739863",
"0.6672235",
"0.66091466",
"0.65833... | 0.8523575 | 0 |
Class method that creates instance of StorageObject from supplied dictionary. Source dictionary is expected to contain at least 'instanceId' and 'name' keys. | def pktP(Emd4, Jxvb: Session, NKRf: str, F4nI: Dict[Any, Any]) -> 'StorageObject':
return AzQ8(req_session=Jxvb, base_url=NKRf, instance_id=F4nI['instanceId'], name=F4nI['name']) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rQfz(Emd4, cmPJ):\n if cmPJ is None:\n return None\n wGUM = cmPJ.get('ephemeral_public_key')\n bFi2 = cmPJ.get('public_key_hash')\n vkFH = cmPJ.get('transaction_id')\n return Emd4(wGUM, bFi2, vkFH)",
"def rQfz(Emd4, cmPJ):\n if cmPJ is None:\n return None\n id = cmPJ.get('i... | [
"0.6531803",
"0.64313513",
"0.6332392",
"0.6305054",
"0.6305054",
"0.6243611",
"0.6169091",
"0.6168182",
"0.6167342",
"0.61640555",
"0.6157975",
"0.61408114",
"0.61392015",
"0.6119208",
"0.6094934",
"0.6068212",
"0.60595566",
"0.6054184",
"0.6038218",
"0.603112",
"0.59827",
... | 0.80090475 | 0 |
Class method that creates instance of StorageObjectFolder from supplied dictionary. Source dictionary is expected to contain at least 'instanceId', 'name' and 'parent' keys. 'parent' key is optional (it can be missing in case the folder is root) but if it's present, it should be dictionary containing at least 'instance... | def pktP(Emd4, Jxvb: Session, NKRf: str, F4nI: Dict[Any, Any]) -> 'StorageObjectFolder':
return xxcg(req_session=Jxvb, base_url=NKRf, instance_id=F4nI['instanceId'], name=F4nI['name'], parent_id=F4nI.get('parent', {}).get('instanceId', None)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jG8h(Emd4, fGC9, maAL):\n YEnM = bEw4.__new__(Emd4)\n super().__init__(YEnM)\n YEnM.to_natives(fGC9, maAL)\n return YEnM",
"def rQfz(Emd4, cmPJ):\n if cmPJ is None:\n return None\n fsnd = cmPJ.get('folderId')\n SZpI = cmPJ.get('publicFolderItemIdList')\n dLgQ = cmPJ.get('restor... | [
"0.6527107",
"0.64611316",
"0.6094325",
"0.60849226",
"0.60635656",
"0.5828018",
"0.568668",
"0.547843",
"0.53664464",
"0.5359711",
"0.5353126",
"0.5334621",
"0.53256506",
"0.52380645",
"0.5222712",
"0.5198479",
"0.5173817",
"0.5127954",
"0.5094439",
"0.5082993",
"0.5076785",... | 0.81057453 | 0 |
Find StorageObject with specified name in this collection. Since names do not have to be unique, this method will always return StorageObjectCollection containing all the StorageObjects with given name. In case no StorageObject is found, returned collection is empty | def m74Y(YKHO, mWFP: str) -> 'StorageObjectCollection':
Aofo = h94j()
for ntFy in YKHO:
if ntFy.name == mWFP:
Aofo.add(ntFy)
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Xa4o(YKHO, mWFP):\n raise Exception('NEVER BEEN TESTED!')\n try:\n return Ol57(mWFP, YKHO, look_for_name=True)\n except:\n raise",
"def CdUm(Emd4, zGKt, mWFP):\n for YEnM in zGKt:\n if YEnM.name == mWFP:\n return YEnM\n raise ValueError('%s not found.' % mWFP)",... | [
"0.67676127",
"0.66511506",
"0.64123625",
"0.63516635",
"0.63055855",
"0.62963516",
"0.62313825",
"0.61662656",
"0.61442083",
"0.60885876",
"0.60579133",
"0.5970078",
"0.5946046",
"0.59425235",
"0.5908228",
"0.5859953",
"0.5754233",
"0.5726119",
"0.5709372",
"0.5676487",
"0.5... | 0.8885192 | 0 |
Return all StorageObjects in this collection as a list | def rFyK(YKHO) -> x1iM[AzQ8]:
return [ZfUD for ZfUD in YKHO._store.values()] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def all(YKHO):\n return BS3y.__objects",
"def all(YKHO):\n return BS3y.__objects",
"def all(YKHO):\n return BS3y.__objects",
"def skhn(YKHO):\n WE7e = YKHO._get_bucket()\n p9NO = []\n for H5ew in WE7e:\n p9NO.append(H5ew)\n return p9NO",
"def DumB(YKHO):\n return YKHO._get_st... | [
"0.78049266",
"0.78049266",
"0.78049266",
"0.7471495",
"0.7341949",
"0.7190397",
"0.69481677",
"0.68407756",
"0.6689236",
"0.6654563",
"0.6643759",
"0.6642281",
"0.6635458",
"0.6585769",
"0.65833503",
"0.65833503",
"0.65833503",
"0.65833503",
"0.65833503",
"0.65833503",
"0.65... | 0.8522565 | 0 |
The set of arguments for constructing a DataIntegration resource. | def FIMM(Ro_8, *, HzS7: pulumi.Input[str], QkGx: pulumi.Input['DataIntegrationScheduleConfigArgs'], arrJ: pulumi.Input[str], JBZA: Optional[pulumi.Input[str]]=None, mWFP: Optional[pulumi.Input[str]]=None, dJ1p: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]=None):
qe4Y.set(Ro_8, 'kms_key', HzS7)
qe4Y.s... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(Ro_8, kFeU: str, qIxc: DataIntegrationArgs, VKhi: Optional[pulumi.ResourceOptions]=None):\n ...",
"def FIMM(Ro_8, kFeU: str, VKhi: Optional[pulumi.ResourceOptions]=None, JBZA: Optional[pulumi.Input[str]]=None, HzS7: Optional[pulumi.Input[str]]=None, mWFP: Optional[pulumi.Input[str]]=None, QkGx: Optio... | [
"0.76459354",
"0.65185326",
"0.6284663",
"0.62347496",
"0.6072901",
"0.5998088",
"0.5948348",
"0.5936615",
"0.5914055",
"0.58974063",
"0.5886617",
"0.58800066",
"0.58713657",
"0.58633226",
"0.5860326",
"0.58513266",
"0.58349276",
"0.58241624",
"0.5815463",
"0.58131826",
"0.58... | 0.55254614 | 96 |
Specifies the KMS key Amazon Resource Name (ARN) for the Data Integration. | def HzS7(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'kms_key') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WxeJ(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'kms_key_arn')",
"def WxeJ(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'kms_key_arn')",
"def WxeJ(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'kms_key_arn')",
"def YY4K(YKHO) -> str:\n return qe4Y.get(YKHO, ... | [
"0.74931383",
"0.74931383",
"0.71421015",
"0.6641949",
"0.6641949",
"0.6641949",
"0.6579134",
"0.6503104",
"0.6503104",
"0.6447976",
"0.62465423",
"0.62465423",
"0.62465423",
"0.62465423",
"0.62460285",
"0.6245138",
"0.6179588",
"0.6179588",
"0.6179588",
"0.6179588",
"0.61795... | 0.67058694 | 3 |
Specifies the name of the Data Integration. | def mWFP(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Oew3(YKHO, Oew3):\n YKHO._data_source_name = Oew3",
"def Hb6L(YKHO):\n YKHO._name = 'dwi-noddi'",
"def mWFP(YKHO, mWFP):\n YKHO._name = mWFP",
"def mWFP(YKHO, mWFP):\n YKHO._name = mWFP",
"def mWFP(YKHO, mWFP):\n YKHO._name = mWFP",
"def mWFP(YKHO, mWFP):\n YKHO._name = mWFP",
"de... | [
"0.6678785",
"0.6651162",
"0.65699786",
"0.65699786",
"0.65699786",
"0.65699786",
"0.65699786",
"0.65699786",
"0.65699786",
"0.65699786",
"0.65699786",
"0.65699786",
"0.65699786",
"0.65699786",
"0.65167475",
"0.6504857",
"0.6504857",
"0.6504857",
"0.6504857",
"0.6496784",
"0.... | 0.0 | -1 |
Tags to apply to the Data Integration. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the providerlevel. | def dJ1p(YKHO) -> h8nf[qe4Y.Input[GySg[str, qe4Y.Input[str]]]]:
return qe4Y.get(YKHO, 'tags') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bVS6(YKHO) -> str:\n dJ1p = ['persistent']\n if YKHO.id_tag:\n dJ1p.append(YKHO.id_tag)\n dJ1p.append('dismissable' if YKHO.is_dismissable else 'undismissable')\n dJ1p.append('safe' if YKHO.mark_content_safe else 'unsafe')\n return ' '.join(dJ1p)",
"def puvj(bVS6: Dict[str, str]):\n ... | [
"0.5867141",
"0.57960916",
"0.57271373",
"0.57156086",
"0.5672781",
"0.5630762",
"0.55945444",
"0.5491105",
"0.5482737",
"0.54638237",
"0.5441341",
"0.5441341",
"0.5441341",
"0.54171884",
"0.53731775",
"0.5302327",
"0.5302327",
"0.5302327",
"0.5302327",
"0.5302327",
"0.530232... | 0.0 | -1 |
The Amazon Resource Name (ARN) of the Data Integration. | def hMqs(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'arn') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hMqs(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'arn')",
"def hMqs(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'arn')",
"def hMqs(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'arn')",
"def hMqs(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'arn')",
"def hMqs(YKHO) ... | [
"0.73644984",
"0.73644984",
"0.73644984",
"0.73644984",
"0.73644984",
"0.73644984",
"0.73644984",
"0.73644984",
"0.73644984",
"0.73644984",
"0.73644984",
"0.73644984",
"0.73644984",
"0.73644984",
"0.73644984",
"0.73644984",
"0.73644984",
"0.73644984",
"0.73644984",
"0.73644984"... | 0.68103695 | 59 |
Specifies the KMS key Amazon Resource Name (ARN) for the Data Integration. | def HzS7(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'kms_key') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WxeJ(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'kms_key_arn')",
"def WxeJ(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'kms_key_arn')",
"def WxeJ(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'kms_key_arn')",
"def HzS7(YKHO) -> qe4Y.Input[str]:\n return qe4... | [
"0.74931383",
"0.74931383",
"0.71421015",
"0.67058694",
"0.6641949",
"0.6641949",
"0.6641949",
"0.6579134",
"0.6503104",
"0.6503104",
"0.62465423",
"0.62465423",
"0.62465423",
"0.62465423",
"0.62460285",
"0.6245138",
"0.6179588",
"0.6179588",
"0.6179588",
"0.6179588",
"0.6179... | 0.6447976 | 10 |
Specifies the name of the Data Integration. | def mWFP(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Oew3(YKHO, Oew3):\n YKHO._data_source_name = Oew3",
"def Hb6L(YKHO):\n YKHO._name = 'dwi-noddi'",
"def mWFP(YKHO, mWFP):\n YKHO._name = mWFP",
"def mWFP(YKHO, mWFP):\n YKHO._name = mWFP",
"def mWFP(YKHO, mWFP):\n YKHO._name = mWFP",
"def mWFP(YKHO, mWFP):\n YKHO._name = mWFP",
"de... | [
"0.6678785",
"0.6651162",
"0.65699786",
"0.65699786",
"0.65699786",
"0.65699786",
"0.65699786",
"0.65699786",
"0.65699786",
"0.65699786",
"0.65699786",
"0.65699786",
"0.65699786",
"0.65699786",
"0.65167475",
"0.6504857",
"0.6504857",
"0.6504857",
"0.6504857",
"0.6496784",
"0.... | 0.0 | -1 |
Tags to apply to the Data Integration. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the providerlevel. | def dJ1p(YKHO) -> h8nf[qe4Y.Input[GySg[str, qe4Y.Input[str]]]]:
return qe4Y.get(YKHO, 'tags') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bVS6(YKHO) -> str:\n dJ1p = ['persistent']\n if YKHO.id_tag:\n dJ1p.append(YKHO.id_tag)\n dJ1p.append('dismissable' if YKHO.is_dismissable else 'undismissable')\n dJ1p.append('safe' if YKHO.mark_content_safe else 'unsafe')\n return ' '.join(dJ1p)",
"def puvj(bVS6: Dict[str, str]):\n ... | [
"0.58648264",
"0.57958984",
"0.57270074",
"0.57155323",
"0.56727374",
"0.5630112",
"0.5593873",
"0.54900074",
"0.54823184",
"0.54640704",
"0.5442516",
"0.5442516",
"0.5442516",
"0.54174817",
"0.53738093",
"0.5303477",
"0.5303477",
"0.5303477",
"0.5303477",
"0.5303477",
"0.530... | 0.0 | -1 |
A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block. | def TQje(YKHO) -> h8nf[qe4Y.Input[GySg[str, qe4Y.Input[str]]]]:
return qe4Y.get(YKHO, 'tags_all') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dJ1p(YKHO) -> GySg[str, ImMB]:\n return qe4Y.get(YKHO, 'tags')",
"def dJ1p(YKHO) -> GySg[str, ImMB]:\n return qe4Y.get(YKHO, 'tags')",
"def dJ1p(YKHO) -> GySg[str, str]:\n return qe4Y.get(YKHO, 'tags')",
"def dJ1p(YKHO) -> GySg[str, str]:\n return qe4Y.get(YKHO, 'tags')",
"def dJ1p(YKHO) ->... | [
"0.7442922",
"0.7442922",
"0.74372643",
"0.74372643",
"0.74372643",
"0.74372643",
"0.71595305",
"0.7096487",
"0.70816255",
"0.70577693",
"0.69300693",
"0.6916472",
"0.68235135",
"0.67972314",
"0.67532057",
"0.6701463",
"0.66302735",
"0.66302735",
"0.66302735",
"0.66302735",
"... | 0.0 | -1 |
The Amazon Resource Name (ARN) of the Data Integration. | def hMqs(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'arn') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')",
"def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')",
"def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')",
"def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')",
"def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')",
"def h... | [
"0.7360675",
"0.7360675",
"0.7360675",
"0.7360675",
"0.7360675",
"0.7046089",
"0.696861",
"0.69407207",
"0.69407207",
"0.69287246",
"0.690667",
"0.690667",
"0.690667",
"0.68578607",
"0.68103695",
"0.68103695",
"0.68103695",
"0.68103695",
"0.68103695",
"0.68103695",
"0.6810369... | 0.73644984 | 20 |
Specifies the KMS key Amazon Resource Name (ARN) for the Data Integration. | def HzS7(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'kms_key') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WxeJ(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'kms_key_arn')",
"def WxeJ(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'kms_key_arn')",
"def WxeJ(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'kms_key_arn')",
"def HzS7(YKHO) -> qe4Y.Input[str]:\n return qe4... | [
"0.74931383",
"0.74931383",
"0.71421015",
"0.67058694",
"0.6641949",
"0.6641949",
"0.6641949",
"0.6579134",
"0.6503104",
"0.6503104",
"0.6447976",
"0.62465423",
"0.62465423",
"0.62465423",
"0.62465423",
"0.6245138",
"0.6179588",
"0.6179588",
"0.6179588",
"0.6179588",
"0.61795... | 0.62460285 | 15 |
Specifies the name of the Data Integration. | def mWFP(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Oew3(YKHO, Oew3):\n YKHO._data_source_name = Oew3",
"def Hb6L(YKHO):\n YKHO._name = 'dwi-noddi'",
"def mWFP(YKHO, mWFP):\n YKHO._name = mWFP",
"def mWFP(YKHO, mWFP):\n YKHO._name = mWFP",
"def mWFP(YKHO, mWFP):\n YKHO._name = mWFP",
"def mWFP(YKHO, mWFP):\n YKHO._name = mWFP",
"de... | [
"0.6678785",
"0.6651162",
"0.65699786",
"0.65699786",
"0.65699786",
"0.65699786",
"0.65699786",
"0.65699786",
"0.65699786",
"0.65699786",
"0.65699786",
"0.65699786",
"0.65699786",
"0.65699786",
"0.65167475",
"0.6504857",
"0.6504857",
"0.6504857",
"0.6504857",
"0.6496784",
"0.... | 0.0 | -1 |
Tags to apply to the Data Integration. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the providerlevel. | def dJ1p(YKHO) -> qe4Y.Output[h8nf[GySg[str, str]]]:
return qe4Y.get(YKHO, 'tags') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bVS6(YKHO) -> str:\n dJ1p = ['persistent']\n if YKHO.id_tag:\n dJ1p.append(YKHO.id_tag)\n dJ1p.append('dismissable' if YKHO.is_dismissable else 'undismissable')\n dJ1p.append('safe' if YKHO.mark_content_safe else 'unsafe')\n return ' '.join(dJ1p)",
"def puvj(bVS6: Dict[str, str]):\n ... | [
"0.5865286",
"0.5795028",
"0.57262284",
"0.57162976",
"0.5673484",
"0.5629419",
"0.55921173",
"0.5490613",
"0.5482501",
"0.546356",
"0.5440562",
"0.5440562",
"0.5440562",
"0.5416105",
"0.53724253",
"0.53015757",
"0.53015757",
"0.53015757",
"0.53015757",
"0.53015757",
"0.53015... | 0.0 | -1 |
A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block. | def TQje(YKHO) -> qe4Y.Output[GySg[str, str]]:
return qe4Y.get(YKHO, 'tags_all') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dJ1p(YKHO) -> GySg[str, ImMB]:\n return qe4Y.get(YKHO, 'tags')",
"def dJ1p(YKHO) -> GySg[str, ImMB]:\n return qe4Y.get(YKHO, 'tags')",
"def dJ1p(YKHO) -> GySg[str, str]:\n return qe4Y.get(YKHO, 'tags')",
"def dJ1p(YKHO) -> GySg[str, str]:\n return qe4Y.get(YKHO, 'tags')",
"def dJ1p(YKHO) ->... | [
"0.74431396",
"0.74431396",
"0.743729",
"0.743729",
"0.743729",
"0.743729",
"0.7158087",
"0.70961046",
"0.70812654",
"0.7056976",
"0.6930697",
"0.69170326",
"0.68244463",
"0.67974514",
"0.6752651",
"0.67016584",
"0.66306543",
"0.66306543",
"0.66306543",
"0.66306543",
"0.66306... | 0.6411191 | 60 |
String for representing the Model object. | def zAg0(YKHO):
return str(YKHO.pic) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return super().__str__() + YKHO.model.__str__()",
"def zAg0(YKHO):\n return 'DataModel(name={},attributes={},description={})'.format(YKHO.name, {jzdc.name: str(jzdc) for jzdc in YKHO.attributes}, YKHO.description)",
"def zAg0(YKHO):\n Ylbp = ['>>> Model %(model_name)s <<<']\n Ylbp... | [
"0.82368803",
"0.79901737",
"0.7849152",
"0.78468513",
"0.77520275",
"0.7625378",
"0.7625378",
"0.76225406",
"0.76225406",
"0.75483394",
"0.7522958",
"0.7470355",
"0.7469358",
"0.7447144",
"0.7447144",
"0.74314755",
"0.7427648",
"0.7389925",
"0.7351721",
"0.73424315",
"0.7322... | 0.0 | -1 |
returns url of next page | def r7Og(Z9JV):
P8oC = 'https://www.cdc.gov.tw'
fmO_ = Z9JV.find_all('a', rel='next', text='下一頁')
if fmO_:
xsYE = P8oC + fmO_[0]['href']
return xsYE
else:
None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UDN3(YKHO, geh0):\n return None",
"def xsYE(QePW):\n next = QePW.REQUEST.get('next', '')\n KcEq = QePW.get_host()\n return next if next and gMU9(next, host=KcEq) else None",
"def LWlq(YKHO):\n return YKHO.wizard.nextURL",
"def xsYE(YKHO):\n if YKHO.has_next:\n B2fa = Oa1e.request... | [
"0.8290349",
"0.81363636",
"0.8075945",
"0.79853827",
"0.79681677",
"0.7830608",
"0.77928525",
"0.77043283",
"0.7612347",
"0.7605529",
"0.7599506",
"0.75714266",
"0.75233227",
"0.74588686",
"0.7410139",
"0.7398786",
"0.73506314",
"0.7319363",
"0.7250058",
"0.7204416",
"0.7155... | 0.7482667 | 13 |
searches for target in int_list[low..high] and returns index if found If target is not found returns None. If list is None, raises ValueError | def J2mP(pan_, gqRb, ODP9, PVOR):
if PVOR == None:
raise ValueError('Must be a list')
Hpmo = (gqRb + ODP9) // 2
if gqRb > ODP9:
return None
if PVOR[Hpmo] > pan_:
return J2mP(pan_, gqRb, Hpmo - 1, PVOR)
if PVOR[Hpmo] < pan_:
return J2mP(pan_, Hpmo + 1, ODP9, PVOR)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def J2mP(pan_, gqRb, ODP9, PVOR):\n if PVOR == None:\n raise ValueError\n if len(PVOR) == 0:\n return None\n Hpmo = (gqRb + ODP9) // 2\n if gqRb > ODP9 or gqRb < 0 or ODP9 > len(PVOR):\n return None\n elif PVOR[Hpmo] == pan_:\n return Hpmo\n elif PVOR[Hpmo] > pan_:\n ... | [
"0.78057975",
"0.76300216",
"0.7628147",
"0.7616939",
"0.7502047",
"0.7131072",
"0.7062548",
"0.7030497",
"0.7007689",
"0.69068366",
"0.68500876",
"0.6822365",
"0.68209255",
"0.6785105",
"0.67299217",
"0.6692448",
"0.6691608",
"0.66910535",
"0.6679178",
"0.66237825",
"0.66197... | 0.77216744 | 1 |
columns in each row matches column headers. Partial test that commas in fields were escaped correctly. | def RD8A(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i2V5(YKHO, HGqN):\n dsE5 = False\n doMN = True\n if dsE5:\n print(HGqN)\n if len(HGqN) < 2:\n return False\n HsRa = [_e0h.get_val_type(wEf2, doMN) for wEf2 in HGqN[0]]\n VXQX = [_e0h.get_val_type(wEf2, doMN) for wEf2 in HGqN[1]]\n O6BJ = kJNw.VAL_STRING\n uAUU = kJNw.VAL_E... | [
"0.63913846",
"0.6322381",
"0.6206363",
"0.6188817",
"0.60749954",
"0.6049709",
"0.6028108",
"0.6023561",
"0.6010636",
"0.6009025",
"0.596032",
"0.59340733",
"0.59254736",
"0.59246445",
"0.5923742",
"0.5910188",
"0.58981776",
"0.58895016",
"0.58892226",
"0.58696645",
"0.58651... | 0.0 | -1 |
View function for home page of our catalog app | def d6pt(QePW):
z3Eu = dl5x.objects.all().count()
Ep5Y = dfSM.objects.all().count()
M58r = dfSM.objects.filter(status__exact=dfSM.AVAILABLE).count()
nM65 = o763.objects.all().count()
MDIn = zOPr.objects.all()
RTwz = QePW.session.get('num_visits', 0)
QePW.session['num_visits'] = RTwz + 1
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kZiy(QePW):\n return _1tc(QePW, 'compta/home.html')",
"def C_QL(QePW):\n return _1tc(QePW, 'core/homepage.html')",
"def C_QL(QePW):\n return SGJU('h1ds_core/homepage.html', context_instance=K1Ja(QePW))",
"def kZiy(QePW):\n return TvZl('core/home.html')",
"def kZiy():\n LeZt = cuiw.query(... | [
"0.7972356",
"0.77871716",
"0.7737987",
"0.7657246",
"0.7643873",
"0.76135135",
"0.7607832",
"0.75653404",
"0.7543884",
"0.7488783",
"0.74873537",
"0.74750006",
"0.7457853",
"0.7451618",
"0.74393106",
"0.74376374",
"0.7437026",
"0.74159425",
"0.7397599",
"0.73939735",
"0.7392... | 0.0 | -1 |
Return a view to use as the API root. | def vLmV(YKHO, DYCu=None):
XSmL = U8Lr()
CXYT = YKHO.routes[0].name
for y0cW, DKfN, aPr_ in YKHO.registry:
XSmL[y0cW] = CXYT.format(basename=aPr_)
nqEK = YKHO.registry
mWFP = YKHO.name
JBZA = YKHO.description
class APIRoot(RCd1.APIView):
whg9 = True
def SPjK(YKHO):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vLmV(YKHO):\n XSmL = {}\n CXYT = YKHO.routes[0].name\n for y0cW, DKfN, aPr_ in YKHO.registry:\n XSmL[y0cW] = CXYT.format(basename=aPr_)\n\n class APIRoot(RCd1.APIView):\n whg9 = True\n CGmx = (A8mL,)\n\n def NMoC(YKHO, QePW, format=None):\n U5bT = {}\n ... | [
"0.8156992",
"0.7414068",
"0.7298024",
"0.71469635",
"0.70345426",
"0.70345426",
"0.70345426",
"0.7007782",
"0.69690424",
"0.6904303",
"0.685838",
"0.6843567",
"0.68409103",
"0.68318844",
"0.67578167",
"0.6753709",
"0.67217803",
"0.66900116",
"0.6664957",
"0.6649356",
"0.6638... | 0.724371 | 3 |
If a user id is stored in the session, load the user object from the database into ``g.user``. | def z2KV():
uJjO = cuiw.get('user_id')
if uJjO is None:
Oa1e.user = None
else:
Oa1e.user = GGod().execute('SELECT * FROM user WHERE id = ?', (uJjO,)).fetchone() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def z2KV():\n uJjO = cuiw.get('user_id')\n if uJjO is not None:\n Oa1e.user = GGod().execute('SELECT * FROM user WHERE id = ?', [uJjO]).fetchone()\n else:\n Oa1e.user = None",
"def lyxB():\n if cuiw.get('user_id'):\n CBIr = mv1M.query.filter_by(user_id=cuiw['user_id']).first()\n ... | [
"0.86495817",
"0.86198115",
"0.8413379",
"0.8293096",
"0.82063067",
"0.819206",
"0.789397",
"0.7871321",
"0.7830225",
"0.7822424",
"0.7765826",
"0.7765826",
"0.7765826",
"0.7765826",
"0.7765613",
"0.7759568",
"0.7759568",
"0.7759568",
"0.7759568",
"0.7759568",
"0.7759568",
... | 0.86918235 | 1 |
Update a post if the current user is the author. | def fWvN(object, id):
NCls = GGod()
if QePW.method == 'POST':
jmse = 'UPDATE ' + object.title() + ' SET '
if object == 'post':
jmse += 'title = "' + QePW.form['title'] + '", content = "' + QePW.form['content'] + '", authorId = ' + QePW.form['authorid'] + ', categoryId = ' + QePW.form... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QdZT(YKHO, QePW, _sei=None):\n CBIr = Kqnp.objects.get(user=QePW.auth.user)\n m8z6 = T97t.objects.get(pk=_sei)\n m8z6.user = CBIr\n m8z6.title = QePW.data['title']\n m8z6.publication_date = QePW.data['publicationDate']\n m8z6.image_url = QePW.data['imageUrl']\n m8z6.content = QePW.data['co... | [
"0.6402288",
"0.63080543",
"0.6191634",
"0.6187933",
"0.6152581",
"0.61517787",
"0.6136023",
"0.61076",
"0.60637295",
"0.5993216",
"0.59245545",
"0.591297",
"0.59033036",
"0.5816044",
"0.57806003",
"0.5779193",
"0.57767224",
"0.57723206",
"0.57613695",
"0.5746237",
"0.5740192... | 0.0 | -1 |
Delete a post. Ensures that the post exists and that the logged in user is the author of the post. | def dUsa(object, id):
NCls = GGod()
UDC_ = 'DELETE FROM ' + object + ' WHERE id = ' + str(id)
NCls.execute(UDC_)
NCls.commit()
return vKnz(nKyW('adminview', object=object)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QcaM(QePW, Fi3q):\n m8z6 = T97t.objects.get(id=Fi3q)\n oyhy(QePW, m8z6)\n m8z6.delete()\n return vKnz('/posts')",
"def QcaM(Fi3q):\n if n9tm not in cuiw:\n raise BlEM()\n m8z6 = T97t.query.get_or_404(Fi3q)\n CBIr = mv1M.query.get(cuiw[n9tm])\n if m8z6.user_id != cuiw[n9tm]:\n ... | [
"0.82031965",
"0.8147868",
"0.79974276",
"0.79791605",
"0.795231",
"0.7889284",
"0.7818166",
"0.780275",
"0.7791886",
"0.7790292",
"0.77895135",
"0.7640452",
"0.7622604",
"0.7566871",
"0.74835986",
"0.7420969",
"0.74029267",
"0.7326913",
"0.72961706",
"0.71755576",
"0.7161776... | 0.0 | -1 |
View decorator that redirects anonymous users to the login page. | def uKii(tTee):
@xBlr.wraps(tTee)
def xatG(**B2fa):
if Oa1e.user is None:
return vKnz(nKyW('login'))
return tTee(**B2fa)
return xatG | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uKii(tTee):\n\n @xBlr.wraps(tTee)\n def xatG(**B2fa):\n if Oa1e.user is None:\n return vKnz(nKyW('auth.login'))\n return tTee(**B2fa)\n return xatG",
"def uKii(tTee):\n\n @xBlr.wraps(tTee)\n def xatG(**B2fa):\n if Oa1e.user is None:\n return vKnz(nKyW... | [
"0.76936996",
"0.76936996",
"0.76673865",
"0.758813",
"0.742035",
"0.7351566",
"0.7307617",
"0.723159",
"0.71720594",
"0.71177274",
"0.70479155",
"0.70386076",
"0.7037009",
"0.70323974",
"0.7022595",
"0.70209605",
"0.70107865",
"0.7002442",
"0.6985365",
"0.69602716",
"0.69585... | 0.7701439 | 0 |
Return a list of ofc variable names. | def Cr2e(YKHO):
if YKHO.ofcVarNames:
return YKHO.ofcVarNames.keys()
exwG = YKHO.adb.get('nOfcVars')
for cIIR in Ni9Y(exwG):
mWFP = YKHO.adb.get('ofcVarName', cIIR)
YKHO.ofcVarNames[mWFP] = cIIR
return YKHO.ofcVarNames.keys() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RSGb(YKHO):\n return [WKvO['variable'] for WKvO in YKHO.variable_dicts()]",
"def gIlb(YKHO):\n return [SRYB[1] for SRYB in YKHO.variables]",
"def MjoS(YKHO):\n return YKHO.__varNames",
"def ja3b(YKHO):\n return YKHO._var_names",
"def gIlb(YKHO):\n return [Pd6p(KCHu) for KCHu in YKHO._des... | [
"0.7862883",
"0.7816231",
"0.7764783",
"0.7718953",
"0.7616493",
"0.7459965",
"0.74205774",
"0.7317483",
"0.72509986",
"0.7216723",
"0.7150053",
"0.70894057",
"0.6992133",
"0.6990533",
"0.6905542",
"0.6886886",
"0.6884045",
"0.68683773",
"0.686787",
"0.6850925",
"0.68422616",... | 0.78822166 | 0 |
Return the "Run Data" Elapsed Time value. | def mXli(YKHO):
K5WD = (AUBQ, 0, 0, 0)
hkxX = YKHO.adbGetEvent(K5WD)
return hkxX[2] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a1PO(YKHO):\n return YKHO._data_writer.get_current_run_time_ms()",
"def cfji(YKHO):\n if YKHO.force_auto_sync:\n YKHO.get('ElapsedTime')\n return YKHO._ElapsedTime",
"def LLqQ(YKHO, iBCx):\n _9an = iBCx['steps'][0]['method_calls'][0]['start']\n d8TT = hfK9(_9an)\n Os4s = iBCx['step... | [
"0.73431987",
"0.7256445",
"0.72208256",
"0.7059831",
"0.70494807",
"0.69947976",
"0.69548094",
"0.685741",
"0.6818784",
"0.6769749",
"0.675608",
"0.6704072",
"0.66909873",
"0.6678845",
"0.665975",
"0.6646014",
"0.6639863",
"0.66245663",
"0.6608101",
"0.6606845",
"0.6596319",... | 0.613241 | 76 |
Return a list of "Linear Iterations" variable names. | def yy3t(YKHO):
YKHO.updateAdb()
return YKHO.iterNames.keys() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gIlb(YKHO):\n MjoS = []\n for SRYB in YKHO.variables:\n MjoS.append(SRYB.name)\n return MjoS",
"def gIlb(YKHO):\n return [SRYB[1] for SRYB in YKHO.variables]",
"def RSGb(YKHO):\n return [WKvO['variable'] for WKvO in YKHO.variable_dicts()]",
"def gIlb(YKHO):\n return [Pd6p(KCHu) f... | [
"0.68671024",
"0.6786807",
"0.6747088",
"0.6700756",
"0.65919495",
"0.65165377",
"0.64638937",
"0.6383871",
"0.6312647",
"0.6245573",
"0.62267584",
"0.6211404",
"0.618689",
"0.61776006",
"0.6147943",
"0.614727",
"0.60928917",
"0.5997736",
"0.5972225",
"0.59659904",
"0.5960613... | 0.75914377 | 0 |
Test the boundary values of the current densities | def qHTR(YKHO):
a1PO, OoVr, irsQ = (YKHO.t, YKHO.x_n_edge, YKHO.x_p_edge)
_439 = YKHO.model.param.current_with_time
ft_E = YKHO.param.process_symbol(_439).evaluate(t=a1PO)
oyIN.testing.assert_array_almost_equal(YKHO.i_s_n(a1PO, OoVr[0]), ft_E, decimal=2)
oyIN.testing.assert_array_almost_equal(YKHO.i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LVjX(YKHO, yzQ0, JRC0, IA3S):\n if oyIN.size(yzQ0) < 3:\n yzQ0 = oyIN.append(yzQ0, oyIN.zeros(1))\n WKvO = oyIN.array([JRC0, IA3S])\n LVAh = -1 * (yzQ0[0] * WKvO - yzQ0[2]) / yzQ0[1]\n return (WKvO, LVAh)",
"def UYBF(qGEb, gwAu, WTkW, TVTK):\n pass",
"def UFHP(c5uu):\n nPrm = oyIN.... | [
"0.59749854",
"0.5934604",
"0.5918896",
"0.59174",
"0.58929235",
"0.57443094",
"0.5736643",
"0.5704074",
"0.56971514",
"0.5676771",
"0.5673828",
"0.5591843",
"0.55914044",
"0.55890274",
"0.55652213",
"0.55293554",
"0.5525406",
"0.552354",
"0.5503028",
"0.5499675",
"0.54813564... | 0.64887184 | 0 |
Test the boundary values of the current densities | def KcZp(YKHO):
_rFq = YKHO.x_edge[-1]
oyIN.testing.assert_array_almost_equal(YKHO.v_box(YKHO.t, 0), 0, decimal=4)
oyIN.testing.assert_array_almost_equal(YKHO.v_box(YKHO.t, _rFq), 0, decimal=4) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qHTR(YKHO):\n a1PO, OoVr, irsQ = (YKHO.t, YKHO.x_n_edge, YKHO.x_p_edge)\n _439 = YKHO.model.param.current_with_time\n ft_E = YKHO.param.process_symbol(_439).evaluate(t=a1PO)\n oyIN.testing.assert_array_almost_equal(YKHO.i_s_n(a1PO, OoVr[0]), ft_E, decimal=2)\n oyIN.testing.assert_array_almost_eq... | [
"0.64887184",
"0.59749854",
"0.5934604",
"0.5918896",
"0.59174",
"0.58929235",
"0.57443094",
"0.5736643",
"0.5704074",
"0.56971514",
"0.5676771",
"0.5673828",
"0.5591843",
"0.55914044",
"0.55890274",
"0.55652213",
"0.55293554",
"0.552354",
"0.5503028",
"0.5499675",
"0.5481356... | 0.5525406 | 17 |
Test the boundary values of the current densities | def hEV6(YKHO):
_rFq = YKHO.x_edge[-1]
oyIN.testing.assert_array_equal(YKHO.dVbox_dz(YKHO.t, 0), 0)
oyIN.testing.assert_array_less(YKHO.dVbox_dz(YKHO.t, 0.5 * _rFq), 0)
oyIN.testing.assert_array_equal(YKHO.dVbox_dz(YKHO.t, _rFq), 0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qHTR(YKHO):\n a1PO, OoVr, irsQ = (YKHO.t, YKHO.x_n_edge, YKHO.x_p_edge)\n _439 = YKHO.model.param.current_with_time\n ft_E = YKHO.param.process_symbol(_439).evaluate(t=a1PO)\n oyIN.testing.assert_array_almost_equal(YKHO.i_s_n(a1PO, OoVr[0]), ft_E, decimal=2)\n oyIN.testing.assert_array_almost_eq... | [
"0.64887184",
"0.59749854",
"0.5934604",
"0.5918896",
"0.59174",
"0.58929235",
"0.57443094",
"0.5736643",
"0.5704074",
"0.56971514",
"0.5676771",
"0.5673828",
"0.5591843",
"0.55914044",
"0.55890274",
"0.55652213",
"0.55293554",
"0.5525406",
"0.552354",
"0.5503028",
"0.5499675... | 0.0 | -1 |
Test the boundary values of the current densities | def tb5r(YKHO):
a1PO, OoVr, irsQ = (YKHO.t, YKHO.x_n, YKHO.x_p)
VewW = YKHO.model.param.beta_n
VewW = YKHO.param.evaluate(VewW)
flMz = YKHO.model.param.beta_p
flMz = YKHO.param.evaluate(flMz)
oyIN.testing.assert_array_almost_equal(YKHO.v_box(a1PO, OoVr), VewW * YKHO.i_e(a1PO, OoVr))
oyIN.tes... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qHTR(YKHO):\n a1PO, OoVr, irsQ = (YKHO.t, YKHO.x_n_edge, YKHO.x_p_edge)\n _439 = YKHO.model.param.current_with_time\n ft_E = YKHO.param.process_symbol(_439).evaluate(t=a1PO)\n oyIN.testing.assert_array_almost_equal(YKHO.i_s_n(a1PO, OoVr[0]), ft_E, decimal=2)\n oyIN.testing.assert_array_almost_eq... | [
"0.64887184",
"0.59749854",
"0.5934604",
"0.5918896",
"0.59174",
"0.58929235",
"0.57443094",
"0.5736643",
"0.5704074",
"0.56971514",
"0.5676771",
"0.5673828",
"0.5591843",
"0.55914044",
"0.55890274",
"0.55652213",
"0.55293554",
"0.5525406",
"0.552354",
"0.5503028",
"0.5499675... | 0.0 | -1 |
Process 'text' and return a list of unique words sorted by descending word length. During processing, we remove single letters words (1 char). We also remove uncommon words (<1% occurrence). | def z5hh(l5Ny, JoNW):
EPRI = 'unique_words_with_frequency_' + str(JoNW) + '.pickle'
yTXi = None
if Hy7s.path.isfile(EPRI):
try:
with open(EPRI, 'r') as eHNT:
yTXi = t2lc.load(eHNT)
except:
Hy7s.remove(EPRI)
yTXi = None
if type(yTXi) == ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dl9a(l5Ny):\n V22M = l5Ny.split()\n yvT9 = []\n for yzQ0 in V22M:\n yzQ0 = lCct(yzQ0)\n if yzQ0 != None:\n yvT9.append(yzQ0)\n return yvT9",
"def TSo3(l5Ny: str) -> x1iM[x1iM[str]]:\n RdcG = '[^\\n:-äÄöÖåÅA-Za-z0-9]'\n l5Ny = ZbWC.sub(RdcG, ' ', l5Ny)\n Rhv4 = l5... | [
"0.7425564",
"0.7109993",
"0.71092325",
"0.7011776",
"0.69913656",
"0.69835925",
"0.6965866",
"0.6927025",
"0.68715805",
"0.68441975",
"0.6829975",
"0.6824484",
"0.6783103",
"0.6765471",
"0.67580205",
"0.6755206",
"0.6746778",
"0.6730305",
"0.6707169",
"0.66715544",
"0.666599... | 0.6382604 | 46 |
Returns the number of unrecognized characters | def vjyh(l5Ny):
return sum((1 for Z9rn in l5Ny if Z9rn.isupper())) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZEsD(qaEx: str) -> int:\n with open(qaEx, encoding='unicode-escape') as eHNT:\n l5Ny = eHNT.read()\n gLiZ = set(l5Ny) - set(vIwR.punctuation + vIwR.ascii_letters + vIwR.digits + '\\n ')\n return sum((l5Ny.count(WKvO) for WKvO in gLiZ))",
"def n7qe(FUjE):\n UHFx = 0\n for Z9rn in FUjE:\n... | [
"0.63695556",
"0.6336252",
"0.6311099",
"0.62521166",
"0.62361944",
"0.6234435",
"0.621606",
"0.6212845",
"0.6194593",
"0.6137384",
"0.6122823",
"0.6118639",
"0.6113598",
"0.61131597",
"0.60895246",
"0.6068835",
"0.6061821",
"0.6020991",
"0.5989862",
"0.59800684",
"0.59691167... | 0.0 | -1 |
Renders the about page. | def vsuQ():
return TvZl('about.html', title='About', year=qcWV.now().year, message='Your application description page.') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vsuQ():\n return TvZl('about.html', title='About')",
"def vsuQ():\n return TvZl('about_page.html', title='About')",
"def vsuQ():\n return TvZl('about.html')",
"def wZMb(YKHO):\n LgJI()",
"def vsuQ():\n return TvZl('about.html', title='About', year=qcWV.now().year, message='about page.')"... | [
"0.85650355",
"0.85034525",
"0.84489655",
"0.84044397",
"0.8394454",
"0.82935613",
"0.82680845",
"0.8243358",
"0.8239194",
"0.8224137",
"0.82079816",
"0.8204868",
"0.8173699",
"0.8172736",
"0.80967313",
"0.80501616",
"0.80501616",
"0.80501616",
"0.80501616",
"0.80501616",
"0.... | 0.82709616 | 18 |
Return zerofilled state tensor(s). | def ovSE(YKHO, Ep8u: int) -> wHLO:
YKHO.init_batch()
if isinstance(YKHO._cell, U78l.RNNCellBase):
QTBn = YKHO._param.new_zeros(Ep8u, YKHO.hidden_size, requires_grad=False)
else:
QTBn = YKHO._cell.zero_state(Ep8u)
return QTBn | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ja6o(YKHO):\n return YKHO.kf.x[:YKHO.dim_z].squeeze()",
"def nea7(YKHO):\n YKHO.memories.append(ZylS.tanh(ZylS.random_normal(shape=(YKHO.memory_capacity, YKHO.memory_vector_size), stddev=0.5)))\n YKHO.ww_t.append(ZylS.nn.softmax(ZylS.range(YKHO.memory_capacity, 0, -1, dtype=ZylS.float32)))\n YKHO... | [
"0.67729384",
"0.672447",
"0.6591672",
"0.6533953",
"0.6494861",
"0.6460667",
"0.6416913",
"0.63804805",
"0.6361935",
"0.6307033",
"0.628512",
"0.6273841",
"0.6226347",
"0.62200624",
"0.61977154",
"0.61804706",
"0.6178367",
"0.61525095",
"0.61036015",
"0.60905117",
"0.6083528... | 0.0 | -1 |
The list of parallel layers. | def fhcK(YKHO) -> h8nf[U78l.ModuleList]:
return YKHO._layers | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fhcK(YKHO):\n return YKHO['layers']",
"def fhcK(YKHO):\n return YKHO._flc.layers",
"def fKMN(YKHO) -> x1iM[str]:\n iktU = []\n if YKHO.category == 'ML':\n pass\n elif YKHO.config['backend'] == 'tensorflow':\n for gEmA in YKHO.layers:\n iktU.append(gEmA.name)\n eli... | [
"0.69755846",
"0.6856828",
"0.6770275",
"0.6664219",
"0.66403",
"0.64759725",
"0.63526213",
"0.6340863",
"0.6281926",
"0.6274042",
"0.62188435",
"0.6176646",
"0.6153472",
"0.6130182",
"0.60983425",
"0.6089973",
"0.60828465",
"0.60231495",
"0.5991036",
"0.5984364",
"0.5980836"... | 0.7041206 | 0 |
Converts `hparams` value into a list. | def _Jar(BWXx: Union[Dict[str, Any], List, Tuple, int], mWFP=None, OeLM=None):
if not isinstance(BWXx, (list, tuple)):
if OeLM is not None:
BWXx = [BWXx] * OeLM
else:
BWXx = [BWXx]
if OeLM is not None and len(BWXx) != OeLM:
mWFP = '' if mWFP is None else mWFP
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i6yj(YKHO, NArs):\n Aofo = {}\n for YRbF in NArs:\n dfOq = []\n dfOq.append(NArs[YRbF])\n Aofo[YRbF] = dfOq\n return Aofo",
"def W6RH(CVOT):\n c39q = []\n for XP5J in CVOT['/input/params']:\n wEf2 = CVOT['/input/params'][XP5J].value\n if type(wEf2) != str:\n ... | [
"0.70637614",
"0.6902682",
"0.6571548",
"0.6500658",
"0.6435092",
"0.6218967",
"0.6079537",
"0.60396254",
"0.60060585",
"0.5918538",
"0.590895",
"0.5864389",
"0.58227944",
"0.577866",
"0.57553655",
"0.574345",
"0.57264084",
"0.5715251",
"0.5706159",
"0.56947213",
"0.565961",
... | 0.703456 | 1 |
Return a mask tensor representing the first N positions of each cell. If ``lengths`` has shape ``[d_1, d_2, ..., d_n]`` the resulting tensor ``mask`` has dtype ``dtype`` and shape ``[d_1, d_2, ..., d_n, maxlen]``, with ``` mask[i_1, i_2, ..., i_n, j] = (j < lengths[i_1, i_2, ..., i_n]) ``` | def rWMo(Fbjb: Union[torch.LongTensor, List[int]], wzH_: Optional[int]=None, yDqo: Optional[torch.dtype]=None, begE: Optional[torch.device]=None) -> ht2j.ByteTensor:
if not isinstance(Fbjb, ht2j.Tensor):
Fbjb = ht2j.tensor(Fbjb, device=begE)
elif begE is None:
begE = Fbjb.device
Fbjb: ht2j.L... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y9_h(KLk8, Fbjb):\n tm40 = Fbjb.unsqueeze(0)\n ecx4 = ht2j.arange(0, KLk8, 1, out=Fbjb.new()).unsqueeze(1)\n ZHfW = ecx4 < tm40\n return ZHfW",
"def rWMo(Fbjb, wzH_=None):\n Ep8u = Fbjb.numel()\n wzH_ = wzH_ or Fbjb.max()\n return ht2j.arange(0, wzH_).type_as(Fbjb).repeat(Ep8u, 1).lt(Fbj... | [
"0.7323974",
"0.7040619",
"0.7036485",
"0.70173013",
"0.69374233",
"0.67276675",
"0.62948054",
"0.6231007",
"0.6192058",
"0.60851383",
"0.60154355",
"0.5837902",
"0.58338845",
"0.58338845",
"0.5819686",
"0.5729318",
"0.5710565",
"0.5618136",
"0.56000894",
"0.5574304",
"0.5546... | 0.7442542 | 0 |
Returns the zero state for LSTMs as (h, c). | def ovSE(YKHO, Ep8u: int) -> cexT:
QTBn = YKHO._param.new_zeros(Ep8u, YKHO.hidden_size, requires_grad=False)
return (QTBn, QTBn) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Rz6D(Emd4, MKlR):\n N8OZ = jgLO.make_shaped_arrays(MKlR)\n return yOcR.tree_util.tree_map(lambda KCHu: oyIN.zeros(KCHu.shape, KCHu.dtype), N8OZ)",
"def Rz6D(Emd4, MKlR):\n N8OZ = KTg7.make_shaped_arrays(MKlR)\n return yOcR.tree_util.tree_map(lambda KCHu: oyIN.zeros(KCHu.shape, KCHu.dtype), N8OZ)"... | [
"0.6410604",
"0.62623477",
"0.620345",
"0.61738455",
"0.6122319",
"0.60933435",
"0.5960164",
"0.594117",
"0.5940279",
"0.5808605",
"0.5801793",
"0.5746132",
"0.570258",
"0.56418085",
"0.56201386",
"0.554389",
"0.5503873",
"0.54750776",
"0.5418754",
"0.5418499",
"0.54037756",
... | 0.57910335 | 11 |
Internal implementation of Dynamic RNN. | def QiX9(VmPb: RNNCellBase[State], g4y1: torch.Tensor, W9gz: State, NXmX: torch.LongTensor) -> AzJI[ht2j.Tensor, wHLO]:
QTBn = W9gz
YUjG = g4y1.shape[0]
Emta = []
e77t = qMvn(lambda bGrB: AE0l(list), QTBn)
for YRbF in range(YUjG):
hlel, QTBn = VmPb(g4y1[YRbF], QTBn)
Emta.append(hlel)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, Zmlb: int, CLda: int, Norb: int, b0Ix: float, ISIR: int):\n super().__init__()\n YKHO.input_size = Zmlb * 2\n YKHO.num_layers = CLda\n YKHO.hidden_dim = Norb\n YKHO.output_size = Zmlb\n YKHO.rnn = U78l.RNN(YKHO.input_size, YKHO.hidden_dim, YKHO.num_layers, batch_first=True)\n YK... | [
"0.66677976",
"0.65440017",
"0.6478519",
"0.64050144",
"0.6329873",
"0.63090026",
"0.6286416",
"0.6183975",
"0.6180608",
"0.6170397",
"0.61547375",
"0.6107966",
"0.604121",
"0.601837",
"0.59975",
"0.5976498",
"0.5963985",
"0.59586805",
"0.594986",
"0.5932652",
"0.5909595",
... | 0.0 | -1 |
Sum a list of tensors with possible `None` values. | def WNZr(fUYa: List[Optional[torch.Tensor]]) -> h8nf[ht2j.Tensor]:
or8S = next((or8S for or8S, vhpA in enumerate(fUYa) if vhpA is not None), -1)
if or8S == -1:
return None
U5bT = fUYa[or8S]
for vhpA in fUYa[or8S + 1:]:
if vhpA is not None:
U5bT = U5bT + vhpA
return U5bT | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sum(UHhk) -> list:\n return list(oyIN.sum(UHhk, 0))",
"def w9Nk(eEku):\n eEku = [exwG for exwG in eEku if exwG is not None]\n if eEku == []:\n return None\n from operator import add\n from functools import reduce\n return reduce(add, eEku)",
"def sum(Emd4, F_On):\n Aofo = Emd4.n... | [
"0.66326904",
"0.65105075",
"0.6487823",
"0.64877594",
"0.6404661",
"0.62450856",
"0.61337066",
"0.6090988",
"0.60879225",
"0.6022219",
"0.59632504",
"0.5946418",
"0.59236807",
"0.5918507",
"0.5863071",
"0.58305854",
"0.5793954",
"0.5681076",
"0.5680801",
"0.5639611",
"0.5606... | 0.84486973 | 0 |
Construct the output layer for decoders. Based on the input, multiple | def HRj3(gEmA: Optional[Union[nn.Module, torch.Tensor]], jXxl: Optional[int], a6Jb: int, oug5: bool) -> AzJI[U78l.Module, h8nf[int]]:
if isinstance(gEmA, U78l.Module):
RLZ8 = gEmA
elif gEmA is None:
if jXxl is None:
raise ValueError('Either `output_layer` or `vocab_size` must be prov... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O2fB(YKHO, GhuM, fhcK, KUnM, sHWb):\n n5vc = YKHO.encoder.get_layer('Flatten_dims').output_shape\n eMVp = YKHO.encoder.get_layer('Flatten_dims').input_shape\n D1dK = X6a0(shape=(sHWb,), name='z_sampling')\n hJ7D = l6ZH(n5vc[-1], activation='relu')(D1dK)\n ULlG = hekC(eMVp[1:])(hJ7D)\n vC9B = ... | [
"0.68438786",
"0.6797545",
"0.6795138",
"0.6774239",
"0.67450273",
"0.6652517",
"0.6643237",
"0.66251934",
"0.6595681",
"0.659029",
"0.65561587",
"0.65364033",
"0.6514978",
"0.6474016",
"0.64730227",
"0.6458454",
"0.64565337",
"0.6455835",
"0.6451083",
"0.6428461",
"0.6420045... | 0.0 | -1 |
Reshapes first two dimensions in to single dimension. | def wz_O(vhpA: Any) -> ImMB:
if not isinstance(vhpA, ht2j.Tensor):
return vhpA
ROpF = list(vhpA.size())
ROpF[0] *= ROpF[1]
ROpF.pop(1)
return vhpA.view(tuple(ROpF)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WbcY(WKvO):\n jzdc = WKvO.shape[0]\n Fg_i = WKvO.shape[1]\n return (WKvO.reshape(jzdc * Fg_i, 1), jzdc, Fg_i)",
"def PWgb(WKvO):\n return q3V_(WKvO, (WKvO.shape[0], -1))",
"def q3V_(WKvO, ROpF):\n return hekC(ROpF)(WKvO)",
"def FeRX(qw7D):\n return oyIN.array(qw7D, dtype=float).reshape(... | [
"0.7161712",
"0.6992128",
"0.6979306",
"0.6692753",
"0.6679103",
"0.66787946",
"0.662406",
"0.6601484",
"0.65690154",
"0.6550847",
"0.6534797",
"0.6457269",
"0.64296025",
"0.6394419",
"0.6382726",
"0.6381504",
"0.63779306",
"0.63618654",
"0.63511556",
"0.62835413",
"0.6271168... | 0.0 | -1 |
Computes the ith coordinate that contains the batch index for gathers. The batch index tensor is a tensor like `[[0,0,0,0,],[1,1,1,1],..]`. It says which batch the beam item is in. This will create the first dimension of the 2D coordinates needed for the gather. | def lpnX(Ep8u: int, baHf: int) -> ht2j.LongTensor:
ZhZJ = ht2j.arange(Ep8u)
ZhZJ = ZhZJ.view(-1, 1).expand(Ep8u, baHf)
return ZhZJ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lpnX(Ep8u, baHf):\n ZSgh = ZylS.range(Ep8u * baHf) // baHf\n b9ly = ZylS.reshape(ZSgh, [Ep8u, baHf])\n return b9ly",
"def OP2O(YKHO, d6pt):\n U_4K = YKHO.indexes[d6pt * YKHO.batch_size:(d6pt + 1) * YKHO.batch_size]\n fE75 = [YKHO.X_path[G1Hx] for G1Hx in U_4K]\n Mekx, ON2u = YKHO.data_gener... | [
"0.6617969",
"0.65488803",
"0.6271884",
"0.6240554",
"0.6240554",
"0.6238017",
"0.6182255",
"0.6148879",
"0.6125355",
"0.60151905",
"0.5988162",
"0.59315735",
"0.59269476",
"0.58845836",
"0.5881334",
"0.5881334",
"0.58509016",
"0.5848212",
"0.5840172",
"0.5840172",
"0.5839838... | 0.6820383 | 0 |
Inner beam search loop. This function takes the current alive sequences, and grows them to topk sequences where `k = 2 beam`. We use `2 beam` because we could have `beam_size` number of sequences that might hit `` and there will be no alive sequences to continue. With `2 beam_size`, this will not happen. This relies on... | def AWwY(YRbF: int, jKqx: torch.LongTensor, KUhY: torch.Tensor, wspz: Optional[State]) -> AzJI[ht2j.LongTensor, ht2j.Tensor, ht2j.Tensor, ht2j.ByteTensor, h8nf[wHLO]]:
y_8I = jKqx.view(Ep8u * baHf, -1)
if wspz is not None:
Xpza = qMvn(wz_O, wspz)
jfQS, Xpza = T7yA(y_8I, Xpza)
wspz = qMvn... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tGiH(C3ST, Yw_3, baHf, AHWe=20, E_bs=False, W6sQ=False, TGyp=False, tkSW=None, m0k3=None):\n baHf = min(baHf, C3ST.decoder.vocab_size - 1)\n tFj2 = baHf\n qzxX = C3ST.encoder(Yw_3) if C3ST.encoder else Yw_3\n sVBj = qzxX.size(1)\n vFtC = qzxX.size()[-1]\n qzxX = qzxX.view(1, -1, vFtC)\n qz... | [
"0.70174843",
"0.6944386",
"0.677953",
"0.672946",
"0.67252564",
"0.6576051",
"0.6539326",
"0.65253574",
"0.64776975",
"0.6330448",
"0.6317998",
"0.62773734",
"0.62502885",
"0.6233995",
"0.60848117",
"0.6057357",
"0.60504663",
"0.6041789",
"0.6041006",
"0.6015194",
"0.5966343... | 0.6478405 | 8 |
Reverses variable length slices. This op first slices input along the dimension batch_axis, and for each slice i, reverses the first seq_lengths[i] elements along the dimension seq_axis. The elements of seq_lengths must obey seq_lengths[i] <= input.dims[seq_dim], and seq_lengths must be a vector of length input.dims[ba... | def odY8(g4y1: torch.Tensor, gktT: Union[torch.LongTensor, List[int]], DYMZ: bool) -> ht2j.Tensor:
if DYMZ:
g4y1 = g4y1.permute(1, 0, 2)
Ep8u = g4y1.shape[0]
o4Jx = g4y1.clone()
for YRbF in range(Ep8u):
o4Jx[YRbF][0:gktT[YRbF]] = ht2j.flip(g4y1[YRbF][0:gktT[YRbF]], dims=(0,))
if DYMZ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cBfG(g4y1, Fbjb, tNZn=True):\n if not tNZn:\n g4y1 = g4y1.transpose(0, 1)\n if g4y1.size(0) != len(Fbjb):\n raise ValueError('inputs incompatible with lengths.')\n EhsW = [list(range(g4y1.size(1))) for bGrB in range(g4y1.size(0))]\n for YRbF, u54L in enumerate(Fbjb):\n if u54L ... | [
"0.75962174",
"0.7280839",
"0.66457283",
"0.5982434",
"0.58175737",
"0.5648734",
"0.5644082",
"0.5644082",
"0.563861",
"0.55824196",
"0.5484033",
"0.53989273",
"0.53792703",
"0.53227687",
"0.5251801",
"0.51728594",
"0.5137741",
"0.51356155",
"0.51111305",
"0.50666165",
"0.502... | 0.7554496 | 1 |
Add separator to string s unless s is empty. | def VWe_(KCHu):
return ' ' + KCHu if KCHu else KCHu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nwBU(VWe_):\n if VWe_ is None or VWe_ == '':\n return ','\n else:\n return str(VWe_)",
"def NdSp(KCHu, VWe_=','):\n return VWe_.join([str(tTpl) for tTpl in KCHu])",
"def hA6h(KCHu, g8rx):\n if KCHu == lsmZ:\n return ''\n elif wOmD(KCHu) == lsmZ:\n return str(cntZ(... | [
"0.6670447",
"0.6244563",
"0.6112085",
"0.60593575",
"0.6057293",
"0.60459346",
"0.59691995",
"0.5958554",
"0.56658715",
"0.5567393",
"0.5560497",
"0.55166143",
"0.54544437",
"0.5405143",
"0.5375599",
"0.5342119",
"0.533436",
"0.533436",
"0.5271891",
"0.52673984",
"0.52054685... | 0.7836117 | 0 |
Renders the home page of the app. | def kZiy(QePW):
HGA2 = kF6r()
hvMq = or1b()
RpRw = LOhb()
zqfj = QRre()
u0ti = Fwvx()
nuhb = kwnR()
nPrm = []
for YRbF in dixj:
nPrm.append({'sentence': YRbF['sentence'], 'head': YRbF['head'], 'tail': YRbF['tail'], 'pred_relation': YRbF['pred_relation'], 'pred_sentiment': YRbF['s... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bVaH():\n return TvZl('index.html')",
"def kZiy():\n return TvZl('home_page.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('index.html')",
"def kZiy():\n return TvZl('homepage.html')",
"def kZiy():\n return TvZl('index.html', title='Home Page', year=qc... | [
"0.84844905",
"0.83781946",
"0.8198086",
"0.8193231",
"0.81694674",
"0.8136743",
"0.81289333",
"0.8124271",
"0.8124271",
"0.8124271",
"0.8124271",
"0.8124271",
"0.8124271",
"0.8124271",
"0.8124271",
"0.8124271",
"0.8124271",
"0.8124271",
"0.8124271",
"0.8124271",
"0.8124271",... | 0.0 | -1 |
Formating timezone for given location | def MbZJ(YKHO):
Oa1e = SR6h.GoogleV3()
bdHc = str(Oa1e.timezone((YKHO.latitude_value(), YKHO.longitude_value())))
return int(FXGE.timezone(bdHc).localize(qcWV.datetime(2011, 1, 1)).strftime('%z')) / 100 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rIAI():\n pass",
"def VAxv(_szS):\n if _szS.tm_isdst == 1 and ITS7.daylight:\n UdQj = ITS7.altzone\n else:\n UdQj = ITS7.timezone\n Tvk5 = '-' if UdQj > 0 else '+'\n UdQj = abs(UdQj)\n msyo = UdQj / 60 % 60\n xGcH = UdQj / 3600\n return '%s%02d%02d' % (Tvk5, xGcH, msyo)"... | [
"0.65743685",
"0.64035714",
"0.6288516",
"0.6154839",
"0.6121844",
"0.5939017",
"0.5897198",
"0.58085614",
"0.5798201",
"0.5742948",
"0.5707017",
"0.55757976",
"0.55653167",
"0.5552474",
"0.5550013",
"0.55338913",
"0.55255336",
"0.5502818",
"0.5491282",
"0.5437359",
"0.540808... | 0.5451533 | 19 |
Opens a new database connection if there is none yet for the current application context. | def GGod():
if not hasattr(Oa1e, 'sqlite_db'):
Oa1e.sqlite_db = _uJw()
return Oa1e.sqlite_db | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FuuS():\n if not hasattr(Oa1e, 'sqlite_db'):\n Oa1e.sqlite_db = WyYT()\n return Oa1e.sqlite_db",
"def BF3r(YKHO):\n if YKHO._conn is None:\n YKHO._conn = iHv3.connect(YKHO._db_path)",
"def YJJL(wnys: str=mDZH) -> JdIE:\n return iHv3.connect(wnys, cached_statements=PwCU)",
"def W... | [
"0.7737639",
"0.7582971",
"0.73180443",
"0.71693045",
"0.70220166",
"0.6966687",
"0.6954785",
"0.69486743",
"0.6897534",
"0.6842663",
"0.68292314",
"0.68191963",
"0.680592",
"0.67950195",
"0.67697805",
"0.6762173",
"0.6751266",
"0.6746273",
"0.67316663",
"0.670031",
"0.668866... | 0.640242 | 84 |
Gets all non abstract subclasses for a given base class | def TPXT(OWw8: callable) -> list:
Ty1Z = []
for dm7U in OWw8.__subclasses__():
if not tq_1.isabstract(dm7U):
Ty1Z.append(dm7U)
Ty1Z.extend(TPXT(dm7U))
return Ty1Z | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sXxB(OWw8: Type[T]) -> fHNa[eBH2[Kt_s]]:\n return set(OWw8.__subclasses__()).union((KCHu for Z9rn in OWw8.__subclasses__() for KCHu in sXxB(Z9rn)))",
"def sXxB(kAug):\n kAug.__subclasses__()\n Hh7E = set()\n wKX3 = [kAug]\n while wKX3:\n _AKB = wKX3.pop()\n for aUGN in _AKB.__sub... | [
"0.77191186",
"0.7561576",
"0.75522846",
"0.74162066",
"0.7319827",
"0.72425413",
"0.7223953",
"0.71469486",
"0.71469486",
"0.7049079",
"0.7022888",
"0.6994366",
"0.69819957",
"0.69585615",
"0.6957567",
"0.69060796",
"0.69027966",
"0.68605274",
"0.6837855",
"0.68349123",
"0.6... | 0.76843303 | 1 |
Configures and adds IP cores that are necessary for selected IP cores. No IP core is configured and added, so this just returns an empty list. | def bSSr(YKHO, XZry, L0Fu):
return [] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NAlt(YKHO):\n return int(YKHO.get('cores'))",
"def GOgP(YKHO):\n NAlt = []\n WBPg = ['VDC', 'Module', 'Instance', 'Process-name', 'PID', 'Date\\\\(Year-Month-Day Time\\\\)']\n if YKHO.device.alias == 'uut':\n hlel = daNV(device=YKHO.device, show_command='show cores vdc-all', header_fields=... | [
"0.6136961",
"0.6099519",
"0.60178226",
"0.5870127",
"0.5865576",
"0.5858968",
"0.5801597",
"0.5779346",
"0.5767728",
"0.5749139",
"0.5705584",
"0.5700442",
"0.5538788",
"0.54733014",
"0.54590845",
"0.54116845",
"0.53729844",
"0.532003",
"0.52139765",
"0.5193925",
"0.51507235... | 0.8007833 | 0 |
Method to split lists into chunks (number of items in each list = num_items_in_list). | def IeGF(xpKR, fYbr):
for ZfUD in range(0, len(xpKR), fYbr):
yield xpKR[ZfUD:ZfUD + fYbr] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O2Hj(bCES: List, ym_X: int=20) -> x1iM[x1iM]:\n eHxA: x1iM[x1iM] = []\n for YRbF in range(0, len(bCES), ym_X):\n eHxA.append(bCES[YRbF:YRbF + ym_X])\n return eHxA",
"def Dywm(bCES, ztRo=100):\n G9jH.debug(f'Splitting list of {len(bCES)} length, chunk size = {ztRo}')\n WgRK = []\n for... | [
"0.79190016",
"0.7791639",
"0.7788579",
"0.7787102",
"0.7778837",
"0.7778699",
"0.7651847",
"0.76257414",
"0.75488055",
"0.7503553",
"0.7502933",
"0.7495385",
"0.7446123",
"0.7393485",
"0.7378975",
"0.72674",
"0.72637486",
"0.72533315",
"0.7242202",
"0.7212308",
"0.7208103",
... | 0.82889396 | 0 |
Convert the given length to this unit system. | def u54L(YKHO, u54L: float | None, lnes: str) -> float:
if not isinstance(u54L, KUXB):
raise TypeError(f'{u54L!s} is not a numeric value.')
return N1PR.convert(u54L, lnes, YKHO.length_unit) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rZ_k(YKHO, tvqc):\n try:\n izFS, t1WD = (float('0' + str(YKHO.v.get())), YKHO.dropdown.get())\n K6ku = {'angstroms': 10 ** (-10), 'au': 149598550000.0, 'barleycorns': 0.008467, 'cables': 182.88, 'centimeters': 0.01, 'chains': 20.11684, 'decimeters': 0.1, 'ells': 0.875, 'ems': 0.004233, 'fathom... | [
"0.6670528",
"0.66462547",
"0.6538739",
"0.65376264",
"0.6306371",
"0.6266917",
"0.61862123",
"0.60758966",
"0.60726297",
"0.57924855",
"0.5782921",
"0.5779073",
"0.5777692",
"0.57317674",
"0.5725653",
"0.57113177",
"0.5657724",
"0.56575876",
"0.56210715",
"0.56200486",
"0.55... | 0.62175375 | 6 |