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 |
|---|---|---|---|---|---|---|
Creates a file name containing current date followed by a random number | def Gje8():
JxRN = str(qcWV.now().strftime('%d_%m_%Y'))
BSzh = '_' + str(ajWY(10000, 50001))
return JxRN + BSzh | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GK7x(YKHO):\n dISJ = qcWV.datetime.now().strftime('%Y%m%d%H%M%S')\n return '%s%s' % (dISJ, str(tuKI.randrange(1000, 10000)))",
"def fwix(YKHO):\n return ''.join(map(lambda WKvO: '%02d' % WKvO, ITS7.localtime(ITS7.time())[:6])) + str(qukk(10000, 99999)) + '.py'",
"def qUV2():\n Si_B = tuKI.getra... | [
"0.84422535",
"0.80052423",
"0.7848828",
"0.7806016",
"0.777303",
"0.7658735",
"0.75913465",
"0.7574104",
"0.75314325",
"0.7504726",
"0.7437939",
"0.74050725",
"0.73683184",
"0.73076737",
"0.72988665",
"0.72970635",
"0.7256247",
"0.72362936",
"0.7234767",
"0.71946216",
"0.719... | 0.8082434 | 1 |
Clears the console in order to make a more pleasant game | def hSs6():
if Hy7s.name == 'posix':
Hy7s.system('clear')
elif Hy7s.name in ('nt', 'dos', 'ce'):
Hy7s.system('CLS') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yPVe() -> None:\n print('\\x1bc', end='')",
"def Htfn():\n Hy7s.system('cls' if Hy7s.name == 'nt' else 'clear')",
"def Htfn():\n if a9EH.system() == 'Linux':\n Hy7s.system('clear')\n elif a9EH.system() == 'Windows':\n Hy7s.system('cls')",
"def Htfn():\n if a9EH.system() == 'W... | [
"0.8509947",
"0.81908226",
"0.81418765",
"0.8137041",
"0.8125201",
"0.8086388",
"0.8068141",
"0.8040767",
"0.8028347",
"0.8021144",
"0.7999432",
"0.79975563",
"0.79600185",
"0.79574436",
"0.78789353",
"0.7874123",
"0.7860934",
"0.7860934",
"0.7846252",
"0.7829024",
"0.7825486... | 0.0 | -1 |
Given a list of samples, return the desired cofidence intervals. Returns the minimum and maximum confidence levels | def WPp9(gGnb, WTkW=0.68, tWOY=False, _mSQ=None, Pyrc=40, type='equalArea'):
Zt0j = XAfe(gGnb)
WKvO = oyIN.linspace(min(gGnb), max(gGnb), 1000)
Zt0j = XAfe(gGnb)
LVAh = Zt0j(WKvO)
if type == 'equalArea' or tWOY:
if tWOY:
J3jG = WKvO[oyIN.flatnonzero(LVAh <= WTkW)[-1]]
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HmdB(YKHO, CIH_):\n if len(CIH_) == 1:\n return (CIH_[0], CIH_[0])\n JBMS = oyIN.mean(CIH_)\n exwG = len(CIH_)\n lypQ = exwG * oyIN.sum(oyIN.square(CIH_)) - oyIN.square(oyIN.sum(CIH_))\n ciZM = exwG * (exwG - 1)\n ee6l = oyIN.sqrt(lypQ / ciZM)\n a1PO = eQSh.t.ppf(1 - YKHO.confidence... | [
"0.7327466",
"0.7031482",
"0.7025725",
"0.6710159",
"0.6679896",
"0.66796416",
"0.6665514",
"0.66542906",
"0.65372396",
"0.6496495",
"0.64134526",
"0.639124",
"0.62670875",
"0.6213702",
"0.6106244",
"0.60998553",
"0.6068966",
"0.6068255",
"0.6064373",
"0.6063369",
"0.6046112"... | 0.6320974 | 12 |
Sets the _date of this Transaction. | def dcJF(YKHO, dcJF):
YKHO.__date = dcJF | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wjGx(YKHO, _c1T):\n YKHO.date = _c1T\n return",
"def gq4h(YKHO, _c1T):\n YKHO.__date = _c1T",
"def gq4h(YKHO, _c1T):\n YKHO.__date = _c1T\n return YKHO",
"def wjGx(YKHO, _c1T):\n pass",
"def _c1T(YKHO, _c1T):\n YKHO._date = _c1T",
"def _c1T(YKHO, _c1T):\n YKHO._date = _c1T",
... | [
"0.86427563",
"0.8619267",
"0.8561246",
"0.83380294",
"0.8337706",
"0.8261041",
"0.8261041",
"0.8261041",
"0.8261041",
"0.8261041",
"0.82607603",
"0.8214492",
"0.8214492",
"0.81453586",
"0.81095463",
"0.8008868",
"0.7955632",
"0.7955632",
"0.7914496",
"0.78760815",
"0.7837044... | 0.8204187 | 13 |
Sets the detail_category_id of this Transaction. | def Cmhy(YKHO, Cmhy):
YKHO._detail_category_id = Cmhy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Oto6(YKHO, Oto6):\n YKHO._detail_category = Oto6",
"def VMw8(YKHO, VMw8):\n YKHO._category_id = VMw8",
"def VMw8(YKHO, VMw8):\n YKHO._category_id = VMw8",
"def VMw8(YKHO, VMw8):\n YKHO._category_id = VMw8",
"def VMw8(YKHO, VMw8):\n YKHO._category_id = VMw8",
"def Zvc6(YKHO, Zvc6):\n ... | [
"0.81245446",
"0.6246477",
"0.6129573",
"0.6129573",
"0.6129573",
"0.5831027",
"0.55943567",
"0.55833805",
"0.55833805",
"0.5582893",
"0.556634",
"0.54821277",
"0.5480237",
"0.54501665",
"0.5441497",
"0.5436692",
"0.54279816",
"0.53952485",
"0.5342964",
"0.5342964",
"0.534296... | 0.85496473 | 0 |
Sets the description of this Transaction. | def JBZA(YKHO, JBZA):
YKHO._description = JBZA | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JBZA(YKHO, JBZA):\n YKHO._description = JBZA",
"def AqxA(YKHO, a1PO):\n YKHO.description = a1PO",
"def JBZA(YKHO, JBZA):\n YKHO._description = JBZA",
"def JBZA(YKHO, JBZA):\n YKHO._description = JBZA",
"def JBZA(YKHO, JBZA):\n YKHO._description = JBZA",
"def JBZA(YKHO, JBZA):\n YKHO... | [
"0.8157108",
"0.81534153",
"0.81503737",
"0.81503737",
"0.81503737",
"0.81503737",
"0.81503737",
"0.81503737",
"0.81503737",
"0.81503737",
"0.81503737",
"0.81503737",
"0.81471276",
"0.81471276",
"0.81471276",
"0.81471276",
"0.81266934"
] | 0.81248486 | 21 |
Sets the memo of this Transaction. | def i_PE(YKHO, i_PE):
YKHO._memo = i_PE | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sldi(YKHO, sldi):\n YKHO._payout_memo = sldi",
"def sldi(YKHO, sldi):\n YKHO._payout_memo = sldi",
"def dfND(YKHO, ZkWT, i_PE):\n fytP = YKHO._find_node(ZkWT)\n if fytP:\n fytP.memo = i_PE",
"def DCDu(YKHO, TZ9E: str, i_PE: IMemento) -> None:\n YKHO._memo_map[TZ9E] = i_PE",
"def r... | [
"0.6638286",
"0.6638286",
"0.6559574",
"0.60935324",
"0.59325725",
"0.58293945",
"0.57821816",
"0.5646632",
"0.5444193",
"0.543647",
"0.5433118",
"0.54051745",
"0.54051745",
"0.539629",
"0.5294684",
"0.52667207",
"0.5247433",
"0.52212495",
"0.52212495",
"0.51961714",
"0.51832... | 0.8294583 | 0 |
Sets the principal of this Transaction. | def AQnM(YKHO, AQnM):
YKHO._principal = AQnM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ft3u(YKHO, mWFP, BWXx):\n YKHO.principal = {mWFP: BWXx}\n return YKHO",
"def SDXC(YKHO, SDXC):\n YKHO._principal_amount = SDXC",
"def g1WR(YKHO, p5B8):\n YKHO.__extra_principal = float(p5B8)",
"def xb1y(YKHO, xb1y):\n YKHO._principal_repaid = xb1y",
"def KZHI(YKHO, KZHI):\n YKHO._prin... | [
"0.76959157",
"0.74597174",
"0.6677291",
"0.6639748",
"0.6536713",
"0.6467109",
"0.6263246",
"0.6256674",
"0.61815125",
"0.61369544",
"0.6105056",
"0.5936965",
"0.58919156",
"0.58919156",
"0.5834311",
"0.57998836",
"0.574426",
"0.57322174",
"0.57322174",
"0.57322174",
"0.5732... | 0.82874674 | 0 |
Sets the amount of this Transaction. | def Z5kt(YKHO, Z5kt):
YKHO._amount = Z5kt | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z5kt(YKHO, Z5kt: int):\n YKHO._amount = Z5kt",
"def Z5kt(YKHO, Z5kt: float):\n YKHO._amount = Z5kt",
"def QmX6(YKHO, Z5kt: float):\n YKHO.__amount = Z5kt\n return YKHO",
"def Z5kt(YKHO, Z5kt):\n YKHO._amount = Z5kt",
"def jGTW(YKHO, Z5kt):\n YKHO.__amount = Z5kt",
"def P2WC(YKHO, P2... | [
"0.842838",
"0.83434975",
"0.8270232",
"0.8197351",
"0.8092285",
"0.8047576",
"0.7841777",
"0.74554497",
"0.7373616",
"0.7373616",
"0.736888",
"0.7222654",
"0.7222654",
"0.7222654",
"0.7170558",
"0.7104786",
"0.7088895",
"0.70648193",
"0.70648193",
"0.7004027",
"0.69623524",
... | 0.8447394 | 1 |
Sets the valoren of this Transaction. | def ePox(YKHO, ePox):
YKHO._valoren = ePox | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jq5k(YKHO, exwG):\n YKHO.teco.setval(exwG)",
"def U4QD(YKHO, *qIxc):\n return PZpo.PNEANetV_SetVal(YKHO, *qIxc)",
"def set(YKHO, wEf2):\n YKHO.value = wEf2",
"def U4QD(YKHO, *qIxc):\n return PZpo.TCnComV_SetVal(YKHO, *qIxc)",
"def _S9o(YKHO, BWXx):\n YKHO.val = BWXx",
"def U4QD(YKHO, *... | [
"0.73360616",
"0.69001496",
"0.672163",
"0.65206957",
"0.6490802",
"0.64340174",
"0.6379172",
"0.63446337",
"0.6328071",
"0.6322111",
"0.6322111",
"0.6295479",
"0.621009",
"0.6183441",
"0.6165088",
"0.61563474",
"0.61534756",
"0.6145295",
"0.61219037",
"0.611385",
"0.6103903"... | 0.77327645 | 0 |
Sets the merchant of this Transaction. | def Il2k(YKHO, Il2k):
YKHO._merchant = Il2k | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BOmy(YKHO, BOmy):\n YKHO._merchant_guid = BOmy",
"def aCFu(YKHO, aCFu):\n YKHO._merchant_id = aCFu",
"def aCFu(YKHO, aCFu):\n YKHO._merchant_id = aCFu",
"def aCFu(YKHO, aCFu: str):\n YKHO._merchant_id = aCFu",
"def ys5w(YKHO, ys5w):\n YKHO._merchant_info = ys5w",
"def aCFu(YKHO, aCFu):... | [
"0.7523472",
"0.74205536",
"0.74205536",
"0.7346057",
"0.68694013",
"0.68151796",
"0.6479318",
"0.64386964",
"0.63415176",
"0.6248996",
"0.6200029",
"0.59557164",
"0.5835382",
"0.57703966",
"0.56948626",
"0.5626208",
"0.5529262",
"0.5526561",
"0.5521962",
"0.5464402",
"0.5447... | 0.85723895 | 0 |
Sets the transaction_date of this Transaction. | def wouM(YKHO, wouM):
YKHO._transaction_date = wouM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ajWs(YKHO, ajWs):\n YKHO._transaction_creation_date = ajWs",
"def yX1l(YKHO, yX1l: date):\n YKHO._transfer_date = yX1l",
"def wjGx(YKHO, _c1T):\n YKHO.date = _c1T\n return",
"def gq4h(YKHO, _c1T):\n YKHO.__date = _c1T",
"def gq4h(YKHO, _c1T):\n YKHO.__date = _c1T\n return YKHO",
... | [
"0.7827856",
"0.72814006",
"0.72684294",
"0.71511185",
"0.7110182",
"0.69626033",
"0.68558717",
"0.68558717",
"0.68558717",
"0.68558717",
"0.68558717",
"0.6849705",
"0.6784559",
"0.6775927",
"0.6763793",
"0.67426336",
"0.66879684",
"0.6674635",
"0.66618675",
"0.66618675",
"0.... | 0.89208555 | 0 |
Sets the created_date of this Transaction. | def a0GP(YKHO, a0GP):
YKHO._created_date = a0GP | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a0GP(YKHO, a0GP):\n YKHO._created_date = a0GP",
"def NqtR(YKHO, a0GP=None):\n pass",
"def a0GP(YKHO, a0GP: datetime):\n YKHO._created_date = a0GP",
"def JjkJ(YKHO, JjkJ):\n YKHO._date_created = JjkJ",
"def JjkJ(YKHO, JjkJ):\n YKHO._date_created = JjkJ",
"def JjkJ(YKHO, JjkJ):\n YKHO... | [
"0.8492598",
"0.84796286",
"0.8421371",
"0.80225",
"0.7966119",
"0.7966119",
"0.7966119",
"0.7966119",
"0.7966119",
"0.7966119",
"0.7966119",
"0.7966119",
"0.7966119",
"0.7966119",
"0.7966119",
"0.7966119",
"0.7966119",
"0.7910564",
"0.76996297",
"0.764892",
"0.75819653",
"... | 0.84518397 | 2 |
Sets the post_date of this Transaction. | def YzVs(YKHO, YzVs):
YKHO._post_date = YzVs | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JqUB(YKHO, JqUB):\n YKHO._posted_date = JqUB",
"def JqUB(YKHO, JqUB):\n YKHO._posted_date = JqUB",
"def gi6A(Fi3q):\n try:\n m8z6 = T97t.get(T97t.id == Fi3q)\n m8z6.post_date = qcWV.now().strftime('%Y-%m-%d')\n m8z6.save()\n return True\n except T97t.DoesNotExist:\n ... | [
"0.73489124",
"0.73489124",
"0.61248606",
"0.6122487",
"0.60085964",
"0.5971191",
"0.5862595",
"0.5849192",
"0.578809",
"0.5762475",
"0.5710687",
"0.5705952",
"0.56907713",
"0.56855685",
"0.56852084",
"0.56682736",
"0.5644372",
"0.5641234",
"0.56280166",
"0.5602592",
"0.55991... | 0.8817504 | 0 |
Sets the parent_category_id of this Transaction. | def QuYu(YKHO, QuYu):
YKHO._parent_category_id = QuYu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H7rZ(YKHO, H7rZ):\n YKHO._parent_id = H7rZ",
"def H7rZ(YKHO, H7rZ):\n YKHO._parent_id = H7rZ",
"def H7rZ(YKHO, H7rZ):\n YKHO._parent_id = H7rZ",
"def H7rZ(YKHO, H7rZ):\n YKHO._parent_id = H7rZ",
"def H7rZ(YKHO, H7rZ):\n YKHO._parent_id = H7rZ",
"def H7rZ(YKHO, H7rZ):\n YKHO._parent_... | [
"0.7169221",
"0.7169221",
"0.7169221",
"0.7169221",
"0.7169221",
"0.7169221",
"0.7169221",
"0.70510685",
"0.69055897",
"0.68052644",
"0.68052644",
"0.6624999",
"0.658251",
"0.64509076",
"0.64509076",
"0.64509076",
"0.64500093",
"0.64489734",
"0.64137346",
"0.64042497",
"0.640... | 0.8509326 | 0 |
Sets the running_balance of this Transaction. | def wkzc(YKHO, wkzc):
YKHO._running_balance = wkzc | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lOjx(YKHO, lOjx):\n YKHO._running_count = lOjx",
"def wMl7(YKHO, wMl7):\n YKHO._balance = wMl7",
"def wMl7(YKHO, wMl7):\n YKHO._balance = wMl7",
"def bn31(YKHO, BWXx):\n YKHO._balance = BWXx",
"def wMl7(YKHO, wMl7):\n YKHO.__balance = wMl7",
"def TJgP(YKHO, HX9S):\n YKHO.conn['confi... | [
"0.67348677",
"0.6439889",
"0.6439889",
"0.64039487",
"0.6320955",
"0.6249171",
"0.60694575",
"0.59679425",
"0.596763",
"0.59467727",
"0.5812981",
"0.57635856",
"0.57635856",
"0.5724609",
"0.5668401",
"0.5637559",
"0.5564497",
"0.5557176",
"0.5486606",
"0.5477939",
"0.5421768... | 0.87018216 | 0 |
Returns the string representation of the model | def gTzM(YKHO):
return CgYo.pformat(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
if not isinstance(Elif, T74E):
return True
return YKHO.to_dict() != Elif.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.0 | -1 |
Converts the Piecewise Aggregate Approximation of x to a series of letters. | def CUdD(YKHO, By7T):
LWRr = ''
for YRbF in range(0, len(By7T)):
xXnC = False
for r845 in range(0, len(YKHO.beta)):
if By7T[YRbF] < YKHO.beta[r845]:
LWRr += chr(YKHO.aOffset + r845)
xXnC = True
break
if not xXnC:
LWR... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kgqm(YKHO, WKvO):\n By7T, _0VL = YKHO.to_PAA(YKHO.normalize(WKvO))\n YKHO.scaling_factor = oyIN.sqrt(len(WKvO) * 1.0 / (YKHO.word_size * 1.0))\n return (YKHO.alphabetize(By7T), _0VL)",
"def tYLV(YKHO, WKvO):\n jzdc, Fg_i = YKHO.powerise10(WKvO)\n if -3 < Fg_i < 3:\n return '%.4g' % WKvO... | [
"0.7200848",
"0.62673646",
"0.60119694",
"0.5900463",
"0.58554184",
"0.5825226",
"0.5807646",
"0.57707125",
"0.57242507",
"0.5692738",
"0.5659781",
"0.56131184",
"0.5583511",
"0.55771494",
"0.5569724",
"0.5554261",
"0.55516994",
"0.5534742",
"0.5520931",
"0.55153614",
"0.5506... | 0.5805669 | 7 |
Parse string that represents a boolean value. | def lIW9(BWXx):
return (BWXx or '').lower() in ('on', 'true', 'yes') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hYJ7(KCHu):\n KCHu = KCHu.strip().lower()\n if KCHu in ('yes', 'true', 'on', '1'):\n return True\n elif KCHu in ('no', 'false', 'off', '0', 'none'):\n return False\n else:\n raise ValueError('Invalid boolean value %r' % KCHu)",
"def lIW9(_J6_: str) -> bool:\n if _J6_.lower... | [
"0.8416435",
"0.8336035",
"0.83013904",
"0.82481235",
"0.82423073",
"0.8204106",
"0.8202231",
"0.81449044",
"0.8061958",
"0.805896",
"0.80561274",
"0.80149066",
"0.79198503",
"0.7918919",
"0.79180866",
"0.7880813",
"0.7846124",
"0.7832044",
"0.7831168",
"0.7828793",
"0.779787... | 0.78809917 | 15 |
Initialize new LdapConfig with options parsed from config file on the ``path``. | def FIMM(YKHO, pmON):
Fv2L = pCTH(pmON) if pmON else {}
if 'uri' in Fv2L:
YKHO.uris = Fv2L['uri'].split()
else:
KcEq = Fv2L.get('host', kJGR)
bIwZ = Fv2L.get('port', wdKa)
YKHO.uris = ['ldap://%s:%s' % (KcEq, bIwZ)]
YKHO.base = Fv2L.get('nss_base_passwd', '').split('?')[0... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aNkb(pmON):\n GPtr = enR0.RawConfigParser({'ldap_search_filter': None})\n GPtr.read(pmON)\n Aofo = []\n for mWFP in GPtr.sections():\n Aofo.append(Yurf(name=mWFP, suffix=GPtr.get(mWFP, 'suffix'), ldap_uris=GPtr.get(mWFP, 'ldap_uri').split(','), ldap_user_name=GPtr.get(mWFP, 'ldap_user_name')... | [
"0.6205981",
"0.6074544",
"0.60607415",
"0.6015655",
"0.5984078",
"0.59063035",
"0.5831779",
"0.5827105",
"0.58089966",
"0.5793296",
"0.5781043",
"0.5733049",
"0.5712148",
"0.568795",
"0.5617068",
"0.56055754",
"0.5597084",
"0.5538228",
"0.5511036",
"0.5509205",
"0.550621",
... | 0.6979894 | 0 |
Return True iff the string represents a valid integer. | def iUPF(vIwR):
return bool(ZbWC.search('^[-]?[0-9]+$', vIwR)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Myyj(KCHu: str) -> bool:\n try:\n int(KCHu)\n return True\n except ValueError:\n return False",
"def Myyj(vIwR):\n try:\n int(vIwR)\n return True\n except ValueError:\n return False",
"def Myyj(vIwR):\n try:\n int(vIwR)\n return True\n ... | [
"0.8784455",
"0.87450355",
"0.87450355",
"0.87136674",
"0.867574",
"0.86287606",
"0.85712653",
"0.85542446",
"0.85542446",
"0.85542446",
"0.8547887",
"0.853073",
"0.8478076",
"0.84735465",
"0.8472232",
"0.8458248",
"0.84457654",
"0.84419817",
"0.8436128",
"0.8436128",
"0.8425... | 0.82337767 | 29 |
Return True iff the string represents a valid fraction. | def O_Y2(vIwR):
n4Hf = ZbWC.search('^-?[0-9]+/([0-9]+)$', vIwR)
return bool(bool(n4Hf) and int(n4Hf.group(1))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CdXw(VN2L):\n eHNT = H4yH.fraction(VN2L)\n return eHNT[0].is_Integer and eHNT[1].is_Integer and (eHNT[1] != 0)",
"def QpCZ(KCHu: str) -> bool:\n try:\n float(KCHu)\n return True\n except ValueError:\n return False",
"def nRHh(KCHu: str) -> bool:\n try:\n float(KCH... | [
"0.71475774",
"0.69857025",
"0.69207984",
"0.68841517",
"0.6864371",
"0.6861426",
"0.6861416",
"0.6861416",
"0.6850743",
"0.6846115",
"0.6844571",
"0.6834081",
"0.6832783",
"0.6831077",
"0.683067",
"0.6809139",
"0.67793983",
"0.67546725",
"0.675446",
"0.6742381",
"0.6734801",... | 0.84224206 | 0 |
Iterate over all the declarations stored within this context. | def Vs4Q(YKHO):
for pEO9 in YKHO._decls.values():
for K93d in pEO9:
yield K93d | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vs4Q(YKHO):\n for K93d in YKHO._decls:\n yield K93d",
"def gy37(YKHO, Q6kx):\n for kn8A in Q6kx.declarations:\n YKHO.visit(kn8A)",
"def _xnv(YKHO):\n if YKHO._optimized:\n return YKHO._all_decls_not_recursive\n return YKHO._get_declarations_impl()",
"def _xnv(YKHO):\n ... | [
"0.733235",
"0.717803",
"0.6450092",
"0.6403335",
"0.6201799",
"0.615101",
"0.600585",
"0.59849846",
"0.5970421",
"0.5865825",
"0.58487064",
"0.58067393",
"0.5779157",
"0.5731079",
"0.5692762",
"0.5661919",
"0.5660376",
"0.5647053",
"0.5646865",
"0.5623153",
"0.5604171",
"0... | 0.7006018 | 2 |
Return whether this declaration context encloses an other declaration context 'other'. | def opb3(YKHO, Elif):
return Elif == YKHO or (Elif.parent and YKHO.encloses(Elif.parent)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lwNJ(YKHO):\n return YKHO._tag == 'other'",
"def lwNJ(YKHO):\n return YKHO._tag == 'other'",
"def lwNJ(YKHO):\n return YKHO._tag == 'other'",
"def lwNJ(YKHO):\n return YKHO._tag == 'other'",
"def lwNJ(YKHO):\n return YKHO._tag == 'other'",
"def lwNJ(YKHO):\n return YKHO._tag == 'oth... | [
"0.67366403",
"0.67366403",
"0.67366403",
"0.67366403",
"0.67366403",
"0.67366403",
"0.67366403",
"0.67366403",
"0.67366403",
"0.67366403",
"0.67366403",
"0.67366403",
"0.67366403",
"0.67366403",
"0.67366403",
"0.67366403",
"0.67366403",
"0.67366403",
"0.67366403",
"0.67366403"... | 0.6804856 | 0 |
Log Errors caused by Updates. | def P1dF(JyK9, QdZT, P1dF):
bo34.warning('Update "%s" caused error "%s"', QdZT, P1dF) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P1dF(JyK9, QdZT, P1dF):\n bo34.warning('Error: \"%s\" caused error \"%s\"', QdZT, P1dF)\n bo34.setLevel(G9jH.DEBUG)",
"def rP1w(QdZT, QpfX):\n bo34.warning(f'Update \"{QdZT}\" caused error {QpfX.error}\"')",
"def P1dF(QdZT, QpfX):\n G9jH.error('Update \"%s\" caused error \"%s\"', QdZT, QpfX.err... | [
"0.7895395",
"0.788395",
"0.78750193",
"0.7873498",
"0.78300834",
"0.7790406",
"0.7785151",
"0.77837753",
"0.77837753",
"0.77837753",
"0.77837753",
"0.77837753",
"0.7781314",
"0.77660847",
"0.7746185",
"0.7746185",
"0.7746185",
"0.7746185",
"0.7746185",
"0.7746185",
"0.774618... | 0.76361257 | 65 |
Name of the current input source. | def JZXy(YKHO):
return YKHO._status.source | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KoHv(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'source_name')",
"def KoHv(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'source_name')",
"def KoHv(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'source_name')",
"def KoHv(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y... | [
"0.88115805",
"0.8352229",
"0.8352229",
"0.8352229",
"0.82161313",
"0.7646011",
"0.7583743",
"0.75818515",
"0.75818515",
"0.75818515",
"0.7559096",
"0.7555666",
"0.7330288",
"0.73110974",
"0.7224072",
"0.7217536",
"0.72103053",
"0.72103053",
"0.7177751",
"0.7177751",
"0.71777... | 0.0 | -1 |
List of available input sources. | def oOdw(YKHO):
return [LSFv.AUX.value, LSFv.BLUETOOTH.value] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oOdw(YKHO) -> x1iM[str]:\n if YKHO.mysources:\n return YKHO.mysources\n return YKHO._get_list('SI')",
"def ULJA(YKHO) -> h8nf[bdIy[str]]:\n return qe4Y.get(YKHO, 'input_data_sources')",
"def ULJA(YKHO) -> h8nf[bdIy[str]]:\n return qe4Y.get(YKHO, 'input_data_sources')",
"def w1o0(YKHO):... | [
"0.765328",
"0.76203656",
"0.76203656",
"0.7598599",
"0.745293",
"0.745293",
"0.74438626",
"0.74329925",
"0.73871773",
"0.7371998",
"0.7325716",
"0.7312083",
"0.7304809",
"0.7294203",
"0.7252239",
"0.7170494",
"0.71214986",
"0.70619494",
"0.70545626",
"0.70545626",
"0.7051095... | 0.661651 | 51 |
Boolean if volume is currently muted. | def qHHI(YKHO):
return YKHO._volume.muted | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qHHI(YKHO):\n return YKHO.device.get_muted()",
"def qHHI(YKHO):\n return YKHO._muted",
"def qHHI(YKHO):\n return YKHO._muted",
"def qHHI(YKHO):\n return YKHO._muted",
"def qHHI(YKHO):\n return YKHO._muted",
"def qHHI(YKHO):\n return YKHO._muted",
"def qHHI(YKHO):\n return YKHO.... | [
"0.89479625",
"0.8876313",
"0.8876313",
"0.8876313",
"0.8876313",
"0.8876313",
"0.8876313",
"0.8876313",
"0.88687724",
"0.8857336",
"0.88423115",
"0.8840626",
"0.8806076",
"0.88016236",
"0.87876433",
"0.8767073",
"0.8750962",
"0.8665265",
"0.8185604",
"0.806479",
"0.7917085",... | 0.8912609 | 1 |
Send media pause command to media player. | def MG0H(YKHO) -> None:
YKHO._device.pause() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MG0H(YKHO):\n YKHO._key(uwaB.KEY_PAUSE)",
"def zXYK(YKHO):\n YKHO.send_media_passthrough_cmd(u_nz.CMD_MEDIA_PAUSE, YKHO.sec_ad)",
"def Nakq(YKHO) -> None:\n YKHO._device.play_pause()",
"def MG0H(YKHO):\n YKHO._fetch_status()\n YKHO.hass.services.call('ais_ai_service', 'publish_command_to_f... | [
"0.8093296",
"0.8076824",
"0.7940963",
"0.79196495",
"0.78538954",
"0.781814",
"0.78029436",
"0.7789635",
"0.77732486",
"0.7681111",
"0.7670882",
"0.7619046",
"0.753801",
"0.753801",
"0.7535961",
"0.74587077",
"0.739897",
"0.73983765",
"0.73881745",
"0.7387762",
"0.7350688",
... | 0.77733004 | 8 |
Image url of current playing media. | def jlYN(YKHO):
return YKHO._status.image | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jlYN(YKHO) -> str | None:\n if YKHO._currently_playing.get('item') is None or not YKHO._currently_playing['item']['album']['images']:\n return None\n return jL8T(YKHO._currently_playing['item']['album'])",
"def jlYN(YKHO):\n if YKHO._stream_image is None:\n return 'http://localhost:818... | [
"0.8391614",
"0.8232066",
"0.8213623",
"0.82109135",
"0.8130162",
"0.79643553",
"0.79459935",
"0.7683956",
"0.74568343",
"0.7444492",
"0.73765844",
"0.73736334",
"0.7348825",
"0.73280025",
"0.727053",
"0.7255315",
"0.7250822",
"0.7237203",
"0.72178316",
"0.7175083",
"0.717437... | 0.81204623 | 5 |
Title of current playing media. | def _0LT(YKHO):
if YKHO._status.station_name is not None:
return YKHO._status.station_name
if YKHO._status.artist is not None:
return f'{YKHO._status.artist} - {YKHO._status.track}'
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _0LT(YKHO):\n return YKHO._player_dev.current_title",
"def _0LT(YKHO) -> str | None:\n ZfUD = YKHO._currently_playing.get('item') or {}\n return ZfUD.get('name')",
"def sUzl(YKHO):\n return YKHO.title",
"def _0LT(YKHO):\n return YKHO.device.get_media_title()",
"def _0LT(YKHO):\n retur... | [
"0.9074788",
"0.8974278",
"0.8637662",
"0.8612",
"0.8540756",
"0.84744346",
"0.84744346",
"0.84651077",
"0.8461154",
"0.8393813",
"0.8361119",
"0.83494514",
"0.8334087",
"0.83109385",
"0.82211417",
"0.8217555",
"0.8200619",
"0.8179813",
"0.8170073",
"0.81019264",
"0.8097681",... | 0.8171462 | 18 |
Return entity specific state attributes. | def TzCU(YKHO):
azoT = {}
if YKHO._zone and 'master' in YKHO._zone:
azoT[miYx] = YKHO._zone
N4Ug = [YKHO._zone['master']] + YKHO._zone['slaves']
azoT[wunf] = N4Ug
return azoT | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TzCU(YKHO) -> GySg[str, ImMB] | None:\n return YKHO.entity_description.attr_fn(YKHO.coordinator.data)",
"def upgy(YKHO):\n return YKHO._state_attrs",
"def R1i3(YKHO):\n return YKHO._entity.get(VogU, {})",
"def upgy(YKHO):\n azoT = {}\n for H5ew in YKHO._attributes.keys():\n azoT[H5e... | [
"0.77880514",
"0.7753825",
"0.7723497",
"0.75742304",
"0.7506973",
"0.74901575",
"0.74901575",
"0.7486428",
"0.7486428",
"0.7417578",
"0.7388287",
"0.7388287",
"0.7388287",
"0.73793864",
"0.7336377",
"0.73197085",
"0.7298241",
"0.72695273",
"0.7248613",
"0.72151804",
"0.72151... | 0.0 | -1 |
Create a flask application for the provided model | def Nd3k(C3ST: Model) -> L2w0:
print(yo2H)
P4t4 = L2w0(__name__, template_folder=yo2H, static_folder=yo2H, static_url_path='')
CyRP(P4t4)
@P4t4.route('/')
def BzrN():
return TvZl('index.html')
@P4t4.route('/station/<station>')
def xYWo(gnAD):
try:
gnAD = C3ST.st... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LUif():\n P4t4 = L2w0(__name__)\n P4t4.model = wOed.load()\n sSY8(P4t4)\n CyRP(P4t4)\n P4t4.extensions['bootstrap']['cdns']['jquery'] = SM0z()\n P4t4.extensions['bootstrap']['cdns']['bootstrap'] = SM0z()\n from .views import main as CBFj\n P4t4.register_blueprint(CBFj)\n return P4t4"... | [
"0.8000502",
"0.7929066",
"0.78591645",
"0.7829723",
"0.78010833",
"0.7744369",
"0.7729849",
"0.7709013",
"0.7695412",
"0.7685089",
"0.7659895",
"0.7618245",
"0.76056814",
"0.7552649",
"0.7543364",
"0.7539525",
"0.7538696",
"0.75386363",
"0.7524744",
"0.7520685",
"0.7502913",... | 0.0 | -1 |
Convert a list of lists to numpy array, padded with 0s if needed | def kSDB(jzdc):
Fg_i = oyIN.zeros([len(jzdc), len(max(jzdc, key=lambda WKvO: len(WKvO)))])
for YRbF, r845 in enumerate(jzdc):
Fg_i[YRbF][0:len(r845)] = r845
return Fg_i | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SzeA(XZLe):\n return oyIN.stack(XZLe, axis=0)",
"def IJ2J(UHhk):\n S06t = []\n for YRbF in range(len(UHhk)):\n S06t.append(qw7D(UHhk[YRbF], dtype=fSkI))\n return S06t",
"def tWEc(IqQl):\n from numpy import array, int16\n dn1Z = array(IqQl, dtype=int16)\n return dn1Z",
"def tWE... | [
"0.70449245",
"0.6868621",
"0.67965096",
"0.6709364",
"0.66961706",
"0.66961706",
"0.6580891",
"0.6576266",
"0.6482835",
"0.6482812",
"0.64698076",
"0.63821423",
"0.6302933",
"0.62751085",
"0.6271966",
"0.62693906",
"0.62403595",
"0.6187196",
"0.6163522",
"0.6159197",
"0.6152... | 0.6579747 | 7 |
Flatten at list of lists to a lists | def PWgb(nwEZ):
return list(Hs6x.chain.from_iterable(nwEZ)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MKPt(nwEZ):\n Aofo = []\n for LihS in nwEZ:\n Aofo.extend(LihS)\n return Aofo",
"def PWgb(nwEZ):\n return [ZfUD for XuXy in nwEZ for ZfUD in XuXy]",
"def PWgb(nwEZ):\n return [ZfUD for XuXy in nwEZ for ZfUD in XuXy]",
"def PWgb(nwEZ):\n return [ZfUD for XuXy in nwEZ for ZfUD in X... | [
"0.83383024",
"0.83138996",
"0.83138996",
"0.83138996",
"0.83120435",
"0.830662",
"0.8288531",
"0.8228496",
"0.81662863",
"0.8166261",
"0.8166261",
"0.8113121",
"0.81036955",
"0.81036955",
"0.8102035",
"0.8102035",
"0.8102035",
"0.8101504",
"0.80893034",
"0.80829275",
"0.8076... | 0.82218295 | 8 |
Description of the role. | def JBZA(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'description') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO):\n return 'Role'",
"def wHJl(YKHO):\n return f'<Role({YKHO.name})>'",
"def wHJl(YKHO):\n return f'<Role({YKHO.name})>'",
"def zAg0(YKHO):\n return YKHO.role",
"def LmAn(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'role')",
"def wHJl(YKHO) -> str:\n return YKHO.role... | [
"0.77669454",
"0.753441",
"0.753441",
"0.7527533",
"0.74852973",
"0.74832076",
"0.7387209",
"0.7387209",
"0.7387209",
"0.7387209",
"0.7387209",
"0.7387209",
"0.7387209",
"0.7387209",
"0.733858",
"0.7338335",
"0.7310643",
"0.7310643",
"0.7201409",
"0.71834546",
"0.7157023",
... | 0.0 | -1 |
Whether to force detaching any policies the role has before destroying it. Defaults to `false`. | def DBeR(YKHO) -> h8nf[qe4Y.Input[bool]]:
return qe4Y.get(YKHO, 'force_detach_policies') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DBeR(YKHO) -> qe4Y.Output[h8nf[bool]]:\n return qe4Y.get(YKHO, 'force_detach_policies')",
"def i_au(YKHO):\n h2IT = []\n for Qabx in YKHO.aws_role_policies:\n try:\n geh0 = YKHO.client.detach_role_policy(RoleName=YKHO.dwh_db_role, PolicyArn=Qabx['arn'])\n except YKHO.client.... | [
"0.77522504",
"0.62560016",
"0.6064151",
"0.5993252",
"0.5810783",
"0.5423655",
"0.5392353",
"0.53473216",
"0.5333242",
"0.52835184",
"0.52624077",
"0.52604973",
"0.5225533",
"0.5190869",
"0.5161902",
"0.51516557",
"0.5138147",
"0.51152205",
"0.5098342",
"0.5089791",
"0.50895... | 0.7763388 | 1 |
Configuration block defining an exclusive set of IAM inline policies associated with the IAM role. See below. If no blocks are configured, the provider will not manage any inline policies in this resource. Configuring one empty block (i.e., `inline_policy {}`) will cause the provider to remove _all_ inline policies add... | def t8iH(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input['RoleInlinePolicyArgs']]]]:
return qe4Y.get(YKHO, 'inline_policies') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t8iH(YKHO) -> qe4Y.Output[bdIy['outputs.RoleInlinePolicy']]:\n return qe4Y.get(YKHO, 'inline_policies')",
"def eaBH(YKHO, Aofo: Result, syVT: str, LmAn: IAMRole):\n if not LmAn.Properties.Policies:\n return\n for Qabx in LmAn.Properties.Policies:\n for WNtM in Qabx.PolicyDocument.state... | [
"0.6530699",
"0.6087205",
"0.59387594",
"0.5310998",
"0.5305028",
"0.52909935",
"0.5197966",
"0.4983956",
"0.49790773",
"0.49608895",
"0.492338",
"0.48381358",
"0.48305392",
"0.48244947",
"0.4816102",
"0.4816102",
"0.48108977",
"0.4777315",
"0.47408488",
"0.47036657",
"0.4683... | 0.6973156 | 1 |
Maximum session duration (in seconds) that you want to set for the specified role. If you do not specify a value for this setting, the default maximum of one hour is applied. This setting can have a value from 1 hour to 12 hours. | def ljZo(YKHO) -> h8nf[qe4Y.Input[int]]:
return qe4Y.get(YKHO, 'max_session_duration') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mPBU(YKHO):\n ZpyY(GSyo.utils).invoke(sjXf('aws iam get-role')).thenReturn((False, 'does-not-matter'))\n XP5J = {'role_arn': 'arn:aws:iam::1234567890:role/FullAdmin', 'region': 'us-east-1'}\n kDRY = GSyo.core.get_role_max_session_duration('default', XP5J)\n YKHO.assertEqual(3600, kDRY)",
"def ljZ... | [
"0.74495256",
"0.6703471",
"0.65843153",
"0.6534865",
"0.64311075",
"0.6413989",
"0.6306917",
"0.6245871",
"0.61616665",
"0.6106374",
"0.60784155",
"0.6051488",
"0.6021646",
"0.5951269",
"0.5951269",
"0.5951269",
"0.5951269",
"0.59387285",
"0.5910042",
"0.58967096",
"0.589390... | 0.69203764 | 2 |
ARN of the policy that is used to set the permissions boundary for the role. | def HX6Q(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'permissions_boundary') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qFaa(Emd4):\n return jSk9('AWSBatchFullAccess')",
"def qFaa(Emd4):\n return jSk9('CloudWatchAgentServerPolicy')",
"def I5rx(YKHO) -> str:\n return qe4Y.get(YKHO, 'firewall_policy_arn')",
"def YpaH():\n c2Yh.definitions.construct_definitions()\n print(c2Yh.definitions.get_aws_policy())",
... | [
"0.6984101",
"0.69291157",
"0.68262726",
"0.6733684",
"0.66052145",
"0.6509966",
"0.6509966",
"0.646428",
"0.6432399",
"0.6383002",
"0.6383002",
"0.6383002",
"0.6383002",
"0.6383002",
"0.6383002",
"0.6354407",
"0.63489187",
"0.63489187",
"0.63489187",
"0.6338311",
"0.6337575"... | 0.0 | -1 |
Keyvalue mapping of tags for the IAM role. 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 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) -> GySg[str, str]:\n return qe4Y.get(YKHO, 'tags')",
"def dJ1p(YKHO) -> GySg[str, str]:\n return qe4Y.get(YKHO, 'tags')",
"def dJ1p(YKHO) -> G... | [
"0.5850357",
"0.5850357",
"0.5850357",
"0.5850357",
"0.5850357",
"0.5850357",
"0.5850357",
"0.5850357",
"0.5850357",
"0.5850357",
"0.5850357",
"0.5850357",
"0.5850357",
"0.5850357",
"0.5593486",
"0.5593486",
"0.5593486",
"0.5593486",
"0.55614036",
"0.55614036",
"0.55614036",
... | 0.539311 | 81 |
Amazon Resource Name (ARN) specifying the role. | def hMqs(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'arn') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BDB0() -> str:\n TJZp = iVGz.client('sts')\n Z31E = TJZp.get_caller_identity()['Account']\n return f'arn:aws:iam::{Z31E}:role/{kxTZ()}'",
"def axXk(YKHO) -> str:\n return qe4Y.get(YKHO, 'role_arn')",
"def axXk(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'role_arn')",
"def axXk(YKHO) ... | [
"0.87290615",
"0.85385895",
"0.8459027",
"0.8459027",
"0.8459027",
"0.8459027",
"0.8459027",
"0.8459027",
"0.8459027",
"0.8459027",
"0.8459027",
"0.8459027",
"0.8459027",
"0.8459027",
"0.8459027",
"0.8459027",
"0.8459027",
"0.8459027",
"0.8459027",
"0.8459027",
"0.8459027",
... | 0.0 | -1 |
Description of the role. | def JBZA(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'description') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO):\n return 'Role'",
"def wHJl(YKHO):\n return f'<Role({YKHO.name})>'",
"def wHJl(YKHO):\n return f'<Role({YKHO.name})>'",
"def zAg0(YKHO):\n return YKHO.role",
"def LmAn(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'role')",
"def wHJl(YKHO) -> str:\n return YKHO.role... | [
"0.77669454",
"0.753441",
"0.753441",
"0.7527533",
"0.74852973",
"0.74832076",
"0.7387209",
"0.7387209",
"0.7387209",
"0.7387209",
"0.7387209",
"0.7387209",
"0.7387209",
"0.7387209",
"0.733858",
"0.7338335",
"0.7310643",
"0.7310643",
"0.7201409",
"0.71834546",
"0.7157023",
... | 0.0 | -1 |
Configuration block defining an exclusive set of IAM inline policies associated with the IAM role. See below. If no blocks are configured, the provider will not manage any inline policies in this resource. Configuring one empty block (i.e., `inline_policy {}`) will cause the provider to remove _all_ inline policies add... | def t8iH(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input['RoleInlinePolicyArgs']]]]:
return qe4Y.get(YKHO, 'inline_policies') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t8iH(YKHO) -> qe4Y.Output[bdIy['outputs.RoleInlinePolicy']]:\n return qe4Y.get(YKHO, 'inline_policies')",
"def eaBH(YKHO, Aofo: Result, syVT: str, LmAn: IAMRole):\n if not LmAn.Properties.Policies:\n return\n for Qabx in LmAn.Properties.Policies:\n for WNtM in Qabx.PolicyDocument.state... | [
"0.6531876",
"0.6088405",
"0.59401083",
"0.5311051",
"0.53064185",
"0.5292015",
"0.5198124",
"0.49828225",
"0.49793592",
"0.49613908",
"0.49238098",
"0.48374435",
"0.4830718",
"0.48249954",
"0.48169467",
"0.48169467",
"0.4811",
"0.47792968",
"0.47413072",
"0.47061437",
"0.468... | 0.6974776 | 0 |
Maximum session duration (in seconds) that you want to set for the specified role. If you do not specify a value for this setting, the default maximum of one hour is applied. This setting can have a value from 1 hour to 12 hours. | def ljZo(YKHO) -> h8nf[qe4Y.Input[int]]:
return qe4Y.get(YKHO, 'max_session_duration') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mPBU(YKHO):\n ZpyY(GSyo.utils).invoke(sjXf('aws iam get-role')).thenReturn((False, 'does-not-matter'))\n XP5J = {'role_arn': 'arn:aws:iam::1234567890:role/FullAdmin', 'region': 'us-east-1'}\n kDRY = GSyo.core.get_role_max_session_duration('default', XP5J)\n YKHO.assertEqual(3600, kDRY)",
"def ljZ... | [
"0.7450004",
"0.6704203",
"0.65850645",
"0.65340984",
"0.64320755",
"0.64131826",
"0.63082784",
"0.6245215",
"0.6160712",
"0.6104971",
"0.60782814",
"0.6051824",
"0.60221297",
"0.595043",
"0.595043",
"0.595043",
"0.595043",
"0.5939198",
"0.59099895",
"0.5895978",
"0.58927894"... | 0.6921019 | 1 |
ARN of the policy that is used to set the permissions boundary for the role. | def HX6Q(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'permissions_boundary') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qFaa(Emd4):\n return jSk9('AWSBatchFullAccess')",
"def qFaa(Emd4):\n return jSk9('CloudWatchAgentServerPolicy')",
"def I5rx(YKHO) -> str:\n return qe4Y.get(YKHO, 'firewall_policy_arn')",
"def YpaH():\n c2Yh.definitions.construct_definitions()\n print(c2Yh.definitions.get_aws_policy())",
... | [
"0.6984296",
"0.6929582",
"0.68254375",
"0.6735346",
"0.6604959",
"0.6511117",
"0.6511117",
"0.64645344",
"0.6431688",
"0.63822424",
"0.63822424",
"0.63822424",
"0.63822424",
"0.63822424",
"0.63822424",
"0.6354313",
"0.6348907",
"0.6348907",
"0.6348907",
"0.6337377",
"0.63372... | 0.0 | -1 |
Keyvalue mapping of tags for the IAM role. 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 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) -> GySg[str, str]:\n return qe4Y.get(YKHO, 'tags')",
"def dJ1p(YKHO) -> GySg[str, str]:\n return qe4Y.get(YKHO, 'tags')",
"def dJ1p(YKHO) -> G... | [
"0.5850357",
"0.5850357",
"0.5850357",
"0.5850357",
"0.5850357",
"0.5850357",
"0.5850357",
"0.5850357",
"0.5850357",
"0.5850357",
"0.5850357",
"0.5850357",
"0.5850357",
"0.5850357",
"0.5593486",
"0.5593486",
"0.5593486",
"0.5593486",
"0.55614036",
"0.55614036",
"0.55614036",
... | 0.539311 | 83 |
Stable and unique string identifying the role. | def ShR8(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'unique_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LmAn(YKHO) -> str:\n return qe4Y.get(YKHO, 'role')",
"def LmAn(YKHO) -> str:\n return qe4Y.get(YKHO, 'role')",
"def LmAn(YKHO) -> str:\n return qe4Y.get(YKHO, 'role')",
"def LmAn(YKHO) -> str:\n return qe4Y.get(YKHO, 'role')",
"def LmAn(YKHO) -> str:\n return qe4Y.get(YKHO, 'role')",
"... | [
"0.8124145",
"0.8124145",
"0.8124145",
"0.8124145",
"0.8124145",
"0.8124145",
"0.8124145",
"0.8124145",
"0.8110489",
"0.8048078",
"0.80388874",
"0.8012812",
"0.8012812",
"0.786935",
"0.78665143",
"0.78665143",
"0.78665143",
"0.7864086",
"0.7852299",
"0.78457963",
"0.78457963"... | 0.0 | -1 |
Provides an IAM role. | def FIMM(Ro_8, kFeU: str, VKhi: Optional[pulumi.ResourceOptions]=None, cuh1: Optional[pulumi.Input[str]]=None, JBZA: Optional[pulumi.Input[str]]=None, DBeR: Optional[pulumi.Input[bool]]=None, t8iH: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['RoleInlinePolicyArgs']]]]]=None, jIXB: Optional[pulumi.Input... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LmAn(YKHO) -> lTJ4.aws_iam.IRole:\n return HEOD.get(YKHO, 'role')",
"def LmAn(YKHO) -> lTJ4.aws_iam.IRole:\n return HEOD.get(YKHO, 'role')",
"def oJGu(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'iam_role')",
"def LmAn(YKHO) -> laHg.Optional[lTJ4.aws_iam.IRole]:\n ...",
"def LmAn(YKH... | [
"0.7982622",
"0.7982622",
"0.7946265",
"0.7840297",
"0.7840297",
"0.78305405",
"0.7765257",
"0.7672271",
"0.7672271",
"0.7672271",
"0.7672271",
"0.7672271",
"0.7672271",
"0.75884193",
"0.75884193",
"0.75884193",
"0.75884193",
"0.7494102",
"0.7445458",
"0.7345788",
"0.7345788"... | 0.0 | -1 |
Provides an IAM role. | def FIMM(Ro_8, kFeU: str, qIxc: RoleArgs, VKhi: Optional[pulumi.ResourceOptions]=None):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LmAn(YKHO) -> lTJ4.aws_iam.IRole:\n return HEOD.get(YKHO, 'role')",
"def LmAn(YKHO) -> lTJ4.aws_iam.IRole:\n return HEOD.get(YKHO, 'role')",
"def oJGu(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'iam_role')",
"def LmAn(YKHO) -> laHg.Optional[lTJ4.aws_iam.IRole]:\n ...",
"def LmAn(YKH... | [
"0.7982622",
"0.7982622",
"0.7946265",
"0.7840297",
"0.7840297",
"0.78305405",
"0.7765257",
"0.7672271",
"0.7672271",
"0.7672271",
"0.7672271",
"0.7672271",
"0.7672271",
"0.75884193",
"0.75884193",
"0.75884193",
"0.75884193",
"0.7494102",
"0.7445458",
"0.7345788",
"0.7345788"... | 0.0 | -1 |
Amazon Resource Name (ARN) specifying the role. | def hMqs(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'arn') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BDB0() -> str:\n TJZp = iVGz.client('sts')\n Z31E = TJZp.get_caller_identity()['Account']\n return f'arn:aws:iam::{Z31E}:role/{kxTZ()}'",
"def axXk(YKHO) -> str:\n return qe4Y.get(YKHO, 'role_arn')",
"def axXk(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'role_arn')",
"def axXk(YKHO) ... | [
"0.87290615",
"0.85385895",
"0.8459027",
"0.8459027",
"0.8459027",
"0.8459027",
"0.8459027",
"0.8459027",
"0.8459027",
"0.8459027",
"0.8459027",
"0.8459027",
"0.8459027",
"0.8459027",
"0.8459027",
"0.8459027",
"0.8459027",
"0.8459027",
"0.8459027",
"0.8459027",
"0.8459027",
... | 0.0 | -1 |
Description of the role. | def JBZA(YKHO) -> qe4Y.Output[h8nf[str]]:
return qe4Y.get(YKHO, 'description') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO):\n return 'Role'",
"def wHJl(YKHO):\n return f'<Role({YKHO.name})>'",
"def wHJl(YKHO):\n return f'<Role({YKHO.name})>'",
"def zAg0(YKHO):\n return YKHO.role",
"def LmAn(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'role')",
"def wHJl(YKHO) -> str:\n return YKHO.role... | [
"0.77669454",
"0.753441",
"0.753441",
"0.7527533",
"0.74852973",
"0.74832076",
"0.7387209",
"0.7387209",
"0.7387209",
"0.7387209",
"0.7387209",
"0.7387209",
"0.7387209",
"0.7387209",
"0.733858",
"0.7338335",
"0.7310643",
"0.7310643",
"0.7201409",
"0.71834546",
"0.7157023",
... | 0.0 | -1 |
Configuration block defining an exclusive set of IAM inline policies associated with the IAM role. See below. If no blocks are configured, the provider will not manage any inline policies in this resource. Configuring one empty block (i.e., `inline_policy {}`) will cause the provider to remove _all_ inline policies add... | def t8iH(YKHO) -> qe4Y.Output[bdIy['outputs.RoleInlinePolicy']]:
return qe4Y.get(YKHO, 'inline_policies') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t8iH(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input['RoleInlinePolicyArgs']]]]:\n return qe4Y.get(YKHO, 'inline_policies')",
"def t8iH(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input['RoleInlinePolicyArgs']]]]:\n return qe4Y.get(YKHO, 'inline_policies')",
"def eaBH(YKHO, Aofo: Result, syVT: str, LmAn: IAMRole):\n... | [
"0.6974776",
"0.6974776",
"0.6088405",
"0.59401083",
"0.5311051",
"0.53064185",
"0.5292015",
"0.5198124",
"0.49828225",
"0.49793592",
"0.49613908",
"0.49238098",
"0.48374435",
"0.4830718",
"0.48249954",
"0.48169467",
"0.48169467",
"0.4811",
"0.47792968",
"0.47413072",
"0.4706... | 0.6531876 | 2 |
Maximum session duration (in seconds) that you want to set for the specified role. If you do not specify a value for this setting, the default maximum of one hour is applied. This setting can have a value from 1 hour to 12 hours. | def ljZo(YKHO) -> qe4Y.Output[h8nf[int]]:
return qe4Y.get(YKHO, 'max_session_duration') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mPBU(YKHO):\n ZpyY(GSyo.utils).invoke(sjXf('aws iam get-role')).thenReturn((False, 'does-not-matter'))\n XP5J = {'role_arn': 'arn:aws:iam::1234567890:role/FullAdmin', 'region': 'us-east-1'}\n kDRY = GSyo.core.get_role_max_session_duration('default', XP5J)\n YKHO.assertEqual(3600, kDRY)",
"def ljZ... | [
"0.7450004",
"0.6921019",
"0.6921019",
"0.65850645",
"0.65340984",
"0.64320755",
"0.64131826",
"0.63082784",
"0.6245215",
"0.6160712",
"0.6104971",
"0.60782814",
"0.6051824",
"0.60221297",
"0.595043",
"0.595043",
"0.595043",
"0.595043",
"0.5939198",
"0.59099895",
"0.5895978",... | 0.6704203 | 3 |
ARN of the policy that is used to set the permissions boundary for the role. | def HX6Q(YKHO) -> qe4Y.Output[h8nf[str]]:
return qe4Y.get(YKHO, 'permissions_boundary') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qFaa(Emd4):\n return jSk9('AWSBatchFullAccess')",
"def qFaa(Emd4):\n return jSk9('CloudWatchAgentServerPolicy')",
"def I5rx(YKHO) -> str:\n return qe4Y.get(YKHO, 'firewall_policy_arn')",
"def YpaH():\n c2Yh.definitions.construct_definitions()\n print(c2Yh.definitions.get_aws_policy())",
... | [
"0.6984296",
"0.6929582",
"0.68254375",
"0.6735346",
"0.6604959",
"0.6511117",
"0.6511117",
"0.64645344",
"0.6431688",
"0.63822424",
"0.63822424",
"0.63822424",
"0.63822424",
"0.63822424",
"0.63822424",
"0.6354313",
"0.6348907",
"0.6348907",
"0.6348907",
"0.6337377",
"0.63372... | 0.0 | -1 |
Keyvalue mapping of tags for the IAM role. 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 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) -> GySg[str, str]:\n return qe4Y.get(YKHO, 'tags')",
"def dJ1p(YKHO) -> GySg[str, str]:\n return qe4Y.get(YKHO, 'tags')",
"def dJ1p(YKHO) -> G... | [
"0.5850357",
"0.5850357",
"0.5850357",
"0.5850357",
"0.5850357",
"0.5850357",
"0.5850357",
"0.5850357",
"0.5850357",
"0.5850357",
"0.5850357",
"0.5850357",
"0.5850357",
"0.5850357",
"0.5593486",
"0.5593486",
"0.5593486",
"0.5593486",
"0.55614036",
"0.55614036",
"0.55614036",
... | 0.0 | -1 |
Stable and unique string identifying the role. | def ShR8(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'unique_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LmAn(YKHO) -> str:\n return qe4Y.get(YKHO, 'role')",
"def LmAn(YKHO) -> str:\n return qe4Y.get(YKHO, 'role')",
"def LmAn(YKHO) -> str:\n return qe4Y.get(YKHO, 'role')",
"def LmAn(YKHO) -> str:\n return qe4Y.get(YKHO, 'role')",
"def LmAn(YKHO) -> str:\n return qe4Y.get(YKHO, 'role')",
"... | [
"0.8124145",
"0.8124145",
"0.8124145",
"0.8124145",
"0.8124145",
"0.8124145",
"0.8124145",
"0.8124145",
"0.8110489",
"0.8048078",
"0.80388874",
"0.8012812",
"0.8012812",
"0.786935",
"0.78665143",
"0.78665143",
"0.78665143",
"0.7864086",
"0.7852299",
"0.78457963",
"0.78457963"... | 0.0 | -1 |
returns true if the player can take a final move. | def M7bQ(YKHO, QTBn):
if YKHO.type == 'NIM':
if QTBn['rem_stones'] <= 0:
return True
elif 2 not in QTBn['board']:
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HXH6(YKHO):\n if YKHO.get_move_card_count() != 0:\n if YKHO.get_last_card()[0] == 'J':\n W3lR = YKHO.pre_joker_card()\n else:\n W3lR = YKHO.get_last_card()\n if W3lR[0] not in ['2', '6']:\n return True\n elif YKHO.get_take_card_count() != 0:\n ... | [
"0.7403461",
"0.7279686",
"0.72229266",
"0.71809006",
"0.695575",
"0.68926877",
"0.688988",
"0.68705755",
"0.6840865",
"0.6809387",
"0.6804386",
"0.6801455",
"0.6782218",
"0.6769097",
"0.67508024",
"0.66772985",
"0.6601884",
"0.6601006",
"0.6596873",
"0.65951",
"0.6560829",
... | 0.0 | -1 |
Creates a board as a 1 dim list consisting of cells | def Zt4O(YKHO, SzBE: str):
iBIi = []
for hcXw in SzBE:
iBIi.append(int(hcXw))
return iBIi | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def efGj(YKHO):\n YKHO.cells = [[]]\n for LVAh in range(YKHO.num_rows):\n YKHO.cells.append([])\n for WKvO in range(int(epAf.ceil(YKHO.width / YKHO.cell_side_length))):\n YKHO.cells[LVAh].append(riCw(LVAh, WKvO))\n return YKHO.cells",
"def iEsn():\n return [[' ' for fvDH in r... | [
"0.8550096",
"0.851711",
"0.83638054",
"0.8359974",
"0.8293727",
"0.820049",
"0.8144129",
"0.80608207",
"0.80008733",
"0.79737407",
"0.79593873",
"0.7892919",
"0.7890313",
"0.78294647",
"0.7787189",
"0.77378017",
"0.77288985",
"0.77065593",
"0.76929945",
"0.7681464",
"0.76720... | 0.0 | -1 |
Return the supplier parts associated with this part | def kh0D(YKHO):
return q9zX.SupplierPart.list(YKHO._api, part=YKHO.pk) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RA2W(YKHO):\n return lbgi.objects.all().filter(supplier=YKHO.id)",
"def SQ3m(YKHO):\n return YKHO._parts",
"def yUIO():\n return rJTv.get_all_supplier('_id')",
"def cyBt(YKHO):\n return dO_4.objects.all().filter(supplier=YKHO.id)",
"def XJcJ(YKHO) -> bdIy[cVBR]:\n raise NotImplementedErr... | [
"0.6467783",
"0.63734317",
"0.63047284",
"0.6263506",
"0.6259553",
"0.61292946",
"0.61148655",
"0.61148655",
"0.61148655",
"0.6075101",
"0.60215676",
"0.59359366",
"0.5883097",
"0.58664095",
"0.58501947",
"0.5812232",
"0.5797677",
"0.5792043",
"0.57812256",
"0.5736729",
"0.57... | 0.88550365 | 0 |
Sets the on/off state of the sensors 1 ON 0 OFF | def f_yO(JkAp, ZKGP):
wohN.toggle_sensor_state()
WxML(JkAp, ZKGP, 'sensor') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uS83(YKHO):\n YKHO.set_state(_rDc)\n YKHO.set_dehumidification_target()\n YKHO.set_max_on_timer()",
"def VCNZ(YKHO):\n YKHO.device.updateStateOnServer(key='onOffState', value=True)\n YKHO.updateStateImage()",
"def EJxF(YKHO, QTBn):\n if YKHO.__led_on != QTBn:\n YKHO.__led_on = QTBn... | [
"0.74970686",
"0.7491064",
"0.746525",
"0.7436964",
"0.73676693",
"0.7219989",
"0.72089577",
"0.72089577",
"0.7202333",
"0.7169565",
"0.7137438",
"0.7101541",
"0.7081927",
"0.70454985",
"0.70382386",
"0.70380807",
"0.7035323",
"0.70195395",
"0.70195395",
"0.6973584",
"0.69337... | 0.7268902 | 5 |
Sets the on/off state of the sensors 1 ON 0 OFF | def kgnB(JkAp, ZKGP):
wohN.toggle_relay_state()
WxML(JkAp, ZKGP, 'relay') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uS83(YKHO):\n YKHO.set_state(_rDc)\n YKHO.set_dehumidification_target()\n YKHO.set_max_on_timer()",
"def VCNZ(YKHO):\n YKHO.device.updateStateOnServer(key='onOffState', value=True)\n YKHO.updateStateImage()",
"def EJxF(YKHO, QTBn):\n if YKHO.__led_on != QTBn:\n YKHO.__led_on = QTBn... | [
"0.74985284",
"0.7492433",
"0.7465849",
"0.7437933",
"0.7368258",
"0.72682756",
"0.72211826",
"0.7208304",
"0.7208304",
"0.7202455",
"0.71697456",
"0.71372825",
"0.71012735",
"0.7082412",
"0.70459545",
"0.70391923",
"0.70384765",
"0.7035384",
"0.7018788",
"0.7018788",
"0.6973... | 0.0 | -1 |
The slope of the regression line (original units). | def VMex(a1PO, WKvO, LVAh):
Mkmy = dNGY(a1PO, WKvO, LVAh)
return Mkmy * oyIN.std(a1PO.column(LVAh)) / oyIN.std(a1PO.column(WKvO)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VMex(YKHO):\n return YKHO._slope",
"def VMex(YKHO) -> oyIN.float64:\n return YKHO._result.params[1]",
"def VMex(YKHO):\n return (YKHO.endpoint.y - YKHO.startpoint.y) / (YKHO.endpoint.x - YKHO.startpoint.x)",
"def O5md(YKHO):\n return YKHO.y / YKHO.x",
"def O5md(YKHO):\n return YKHO.y / Y... | [
"0.8809228",
"0.8595816",
"0.84005606",
"0.8349675",
"0.8321087",
"0.83040166",
"0.8278998",
"0.8153629",
"0.7986926",
"0.79201365",
"0.78935313",
"0.761619",
"0.7612165",
"0.75950605",
"0.7567283",
"0.75657076",
"0.75218785",
"0.75170594",
"0.74819845",
"0.74733144",
"0.7451... | 0.718584 | 39 |
The intercept of the regression line (original units). | def BlB8(a1PO, WKvO, LVAh):
return oyIN.mean(a1PO.column(LVAh)) - VMex(a1PO, WKvO, LVAh) * oyIN.mean(a1PO.column(WKvO)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BlB8(zFiD):\n return zFiD.y1 - VMex(zFiD) * zFiD.x1",
"def yuNP(YKHO):\n return YKHO.y1 - YKHO.slope * YKHO.x1",
"def uqnJ(YKHO):\n if not YKHO.fit_cate_intercept:\n raise AttributeError('No intercept was fitted!')\n return fK_O(YKHO.model_final.coef_, YKHO.model_final.intercept_, YKHO._... | [
"0.79136676",
"0.78406096",
"0.7485854",
"0.74785316",
"0.71822417",
"0.7061071",
"0.70060635",
"0.7004371",
"0.7003964",
"0.6965657",
"0.6880761",
"0.6831721",
"0.6643417",
"0.66333073",
"0.6585233",
"0.65082705",
"0.64996976",
"0.6483796",
"0.6461115",
"0.645781",
"0.644493... | 0.71871454 | 4 |
Returns the current agent status string. | def BKcS(YKHO):
return YKHO.data['agent-status']['current'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def J7Lg(YKHO):\n return YKHO.data['agent-status']['message']",
"def VLTN(YKHO):\n return 'Current status: {0}'.format(YKHO._active)",
"def jGRS(YKHO) -> str:\n return qe4Y.get(YKHO, 'status')",
"def jGRS(YKHO) -> str:\n return qe4Y.get(YKHO, 'status')",
"def jGRS(YKHO) -> str:\n return qe4Y... | [
"0.7746956",
"0.77304256",
"0.76908994",
"0.76908994",
"0.76908994",
"0.76908994",
"0.76908994",
"0.76908994",
"0.76908994",
"0.76908994",
"0.76908994",
"0.76908994",
"0.76908994",
"0.76908994",
"0.76908994",
"0.76908994",
"0.76908994",
"0.76908994",
"0.76908994",
"0.76908994",... | 0.8200491 | 0 |
Get the time when the `agent_status` was last updated. | def c9s1(YKHO):
pw_q = YKHO.data['agent-status']['since']
pw_q = pw_q[:26]
return qcWV.strptime(pw_q, '%Y-%m-%dT%H:%M:%S.%f') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ca58(YKHO) -> str:\n return qe4Y.get(YKHO, 'last_status_time')",
"def grbR(YKHO):\n aevO = YKHO.statinfo\n if not aevO:\n YKHO.restat()\n aevO = YKHO.statinfo\n return float(aevO.st_ctime)",
"def grbR(YKHO):\n aevO = YKHO.statinfo\n if not aevO:\n YKHO.restat()\n ... | [
"0.74504435",
"0.7175249",
"0.7175249",
"0.71458864",
"0.7120012",
"0.7120012",
"0.7120012",
"0.7120012",
"0.7120012",
"0.7120012",
"0.7120012",
"0.7120012",
"0.7120012",
"0.7110631",
"0.7053937",
"0.6985427",
"0.6985427",
"0.69662625",
"0.6926301",
"0.69092643",
"0.6862273",... | 0.66650194 | 32 |
Get the agent status message. | def J7Lg(YKHO):
return YKHO.data['agent-status']['message'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BxDu(YKHO):\n return Hy7s.popen(YKHO.binName + ' get_status_message').read().strip()",
"def GuCi(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'status_message')",
"def GuCi(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'status_message')",
"def GuCi(YKHO) -> str:\n return qe4Y.get(YK... | [
"0.77548",
"0.7714215",
"0.7714215",
"0.7656474",
"0.7640488",
"0.73271585",
"0.7289263",
"0.726418",
"0.706968",
"0.70014066",
"0.70014066",
"0.69334877",
"0.6922456",
"0.6915616",
"0.6892171",
"0.6857794",
"0.6813832",
"0.6798856",
"0.67618227",
"0.6736985",
"0.6722973",
... | 0.8930532 | 0 |
Random expand original image with borders, this is identical to placing the original image on a larger canvas. | def ecmn(LNo8, c8oy, KOzF=3, LGJQ=0, VWvw=True):
MKlR, yzQ0, Z9rn = LNo8.shape
k6ch = tuKI.uniform(1, KOzF)
if VWvw:
Efz2 = k6ch
else:
Efz2 = tuKI.uniform(1, KOzF)
QYSp, xvJ_ = (int(MKlR * Efz2), int(yzQ0 * k6ch))
H2Hj = tuKI.randint(0, QYSp - MKlR)
C3yo = tuKI.randint(0, xvJ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vJSp(LNo8):\n NXpY = XTiz.random.choice(bunL)\n GN0K, Rjb4, bGrB = LNo8.shape\n awiv = LNo8[int(GN0K * NXpY):-int(GN0K * NXpY), int(Rjb4 * NXpY):-int(Rjb4 * NXpY), :]\n return Zxt2.misc.imresize(awiv, (32, 32))",
"def yotB(LNo8, oUSw, KOzF=4.0, L4iJ=[0.0, 0.0, 0.0], yokr=None):\n dMYj = ZylS.r... | [
"0.6712097",
"0.65734875",
"0.63044614",
"0.6213424",
"0.6185744",
"0.6155296",
"0.6149256",
"0.6075344",
"0.6050898",
"0.59859496",
"0.5946434",
"0.59087265",
"0.58975714",
"0.5888078",
"0.5866628",
"0.5844361",
"0.58251053",
"0.5809218",
"0.5805027",
"0.5794304",
"0.578016"... | 0.6708523 | 1 |
Api endpoint for listing all payments associated to an event. | def ETOi(RQ6U=None):
if RQ6U is not None:
tvqc = QRWf.query.get(RQ6U)
if tvqc is None:
return eTsH(404)
if not tvqc.has_edit_rights(c5ow) and (not c5ow.is_accountant()):
return eTsH(403)
elif not c5ow.is_accountant():
return eTsH(403)
B2Dn = int(QePW.a... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Wh0A(YKHO):\n return YKHO._query_api_object(SSCD, '/rest/payments', collection_name='payments')",
"def list(USOo=None, B2Dn=None):\n fNWj = dict(((H5ew, BWXx) for H5ew, BWXx in [('page', B2Dn), ('per_page', USOo)] if BWXx))\n pu1N = xiv5()\n geh0, bGrB = pu1N.get(iAwL.url(iAwL.PAYMENT_RESOURCE, p... | [
"0.648576",
"0.63976836",
"0.63133454",
"0.6273533",
"0.6240857",
"0.6176314",
"0.6106848",
"0.609471",
"0.60593337",
"0.5951996",
"0.5827717",
"0.5666143",
"0.5608793",
"0.56080925",
"0.5585144",
"0.5524003",
"0.5503258",
"0.5483398",
"0.5472849",
"0.5440834",
"0.54267013",
... | 0.8517103 | 0 |
Api endpoint for listing all payments items and prices associated to an event. | def OH1K(RQ6U):
tvqc = QRWf.query.get(RQ6U)
if tvqc is None:
return eTsH(404)
if not tvqc.requires_payment():
return eTsH(400)
Aofo = PyDP.query.filter_by(enabled=True).filter(PyDP.item.has(event_id=RQ6U)).all()
nPrm = kh8R(many=True).dump(Aofo)
return (qQXR.dumps(nPrm), 200, {'c... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ETOi(RQ6U=None):\n if RQ6U is not None:\n tvqc = QRWf.query.get(RQ6U)\n if tvqc is None:\n return eTsH(404)\n if not tvqc.has_edit_rights(c5ow) and (not c5ow.is_accountant()):\n return eTsH(403)\n elif not c5ow.is_accountant():\n return eTsH(403)\n B2D... | [
"0.7787588",
"0.62021136",
"0.57642543",
"0.57146317",
"0.5662919",
"0.5657352",
"0.56341326",
"0.55972207",
"0.558574",
"0.5533569",
"0.547223",
"0.5414852",
"0.5387751",
"0.53858787",
"0.53836405",
"0.5376846",
"0.5372889",
"0.5350715",
"0.53497183",
"0.5337291",
"0.5313483... | 0.7503016 | 1 |
Initialise self for training purpose. This is called after `setup` in callbacks.py. | def IJnW(YKHO):
YKHO.eval_eor_file = xU0C.open_file('../../' + wFs9, mode='a')
YKHO.experience = XlZM()
YKHO.visited_coords = []
YKHO.reward_sum = 0
YKHO.rewards = []
YKHO.trainingStrength = 0
YKHO.collected_coins = 0
YKHO.killed_opponents = 0
YKHO.self_kill = 0
YKHO.number_of_cr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WB4h(YKHO):\n YKHO.__init__()",
"def DbxN() -> None:\n qIxc = rwTO()\n GPtr = KTBF()\n GPtr = {**GPtr, **qIxc}\n ppBc = rvMG(GPtr, mode='train')\n TnHC = rvMG(GPtr, mode='val')\n C3ST = DurR(GPtr)\n CErl = uO_S(GPtr, C3ST, ppBc, TnHC, TnHC)\n CErl.run()",
"def FIMM(YKHO):\n im... | [
"0.8489262",
"0.7606876",
"0.7429573",
"0.7393768",
"0.7393768",
"0.73914737",
"0.73914737",
"0.73914737",
"0.7388772",
"0.7376497",
"0.7320257",
"0.73108757",
"0.7308385",
"0.73000175",
"0.7292455",
"0.72517836",
"0.7238396",
"0.7227987",
"0.7227987",
"0.72229284",
"0.722007... | 0.0 | -1 |
This function is used when the query_type is discounted_products_list It traverses through all the products in the data.For each products it applies all the filters in the requests using the above functions. If a product passes all the filters its id is added to a list named result. Then the result list is returned in ... | def bk6j(YKHO):
Aofo = []
for Lx3t in YKHO.product_json:
if YKHO.check_filters(Lx3t):
Aofo.append(Lx3t['_id']['$oid'])
print(100 * ((Lx3t['price']['regular_price']['value'] - Lx3t['price']['offer_price']['value']) / Lx3t['price']['regular_price']['value']))
print(Lx3t... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def apve(YKHO, Lx3t):\n EngI = None\n ZvmG = None\n d1q8 = None\n bliF = None\n for filter in YKHO.filters:\n xfJD = filter['operand1']\n seET = filter['operator']\n wQab = filter['operand2']\n if xfJD == 'discount':\n if not YKHO.check_discount(Lx3t, seET, wQa... | [
"0.6784243",
"0.66849923",
"0.6684027",
"0.66775376",
"0.6608511",
"0.6374402",
"0.6236083",
"0.6205478",
"0.6184362",
"0.60905945",
"0.60555613",
"0.6040348",
"0.6036094",
"0.6015587",
"0.6013548",
"0.59327537",
"0.59085906",
"0.59030485",
"0.5901081",
"0.5893391",
"0.58892"... | 0.7382817 | 0 |
update mean_mu and sigma_mu X is data sigma_mu = (beta + N )^1 I mean_mu = sigma_mu sum( X_n ) | def QGJP(YKHO, EcVT):
qSrQ = YKHO.a_tau_tilde / YKHO.b_tau_tilde
YKHO.sigma_mu = 1.0 / (YKHO.beta + YKHO.N * qSrQ) * oyIN.eye(YKHO.d)
rWFH = oyIN.sum(EcVT - oyIN.dot(YKHO.means_w, YKHO.means_z), axis=1, keepdims=True)
YKHO.mean_mu = oyIN.dot(qSrQ * YKHO.sigma_mu, rWFH) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PZse(yGTL, ywwl, WKvO):\n Z9rn = 1.0 / ywwl\n yGTL = Z9rn * ((ywwl - 1.0) * yGTL + WKvO)\n return yGTL",
"def MHpq(LVAh, UkX0, _mSQ, iDjq):\n f2rf = jgjc(iDjq, g4y1, g4y1) + oyIN.eye(Kt_s) * 1e-06\n _mSQ = _mSQ[:, :, oyIN.newaxis] * oyIN.logical_not(oyIN.isnan(LVAh))\n tjUW = oyIN.diag(_mSQ... | [
"0.6971255",
"0.69307834",
"0.69075817",
"0.68155414",
"0.67861205",
"0.67601615",
"0.6441532",
"0.6353617",
"0.63359666",
"0.6329858",
"0.6300858",
"0.6275945",
"0.62531805",
"0.6196175",
"0.6178941",
"0.61106575",
"0.6094954",
"0.60661066",
"0.6055033",
"0.605154",
"0.60108... | 0.7689366 | 0 |
Given an unsorted array of integers, find the number of longest increasing subsequence. | def E0nj(YKHO, xYvp):
if not xYvp:
return 0
qgK3 = [1] * len(xYvp)
okbD = [1] * len(xYvp)
for YRbF in range(1, len(xYvp)):
for r845 in range(0, YRbF):
if xYvp[YRbF] > xYvp[r845]:
if qgK3[r845] + 1 > qgK3[YRbF]:
qgK3[YRbF] = qgK3[r845] + 1
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GmKF(ezWE: List[int]) -> int:\n kZX9 = set(ezWE)\n n6mp = 0\n for geyT in ezWE:\n nqXB = 0\n if geyT - 1 not in kZX9:\n while geyT in kZX9:\n nqXB += 1\n geyT += 1\n n6mp = max(n6mp, nqXB)\n return n6mp",
"def rLfO(ezWE):\n if n... | [
"0.82872635",
"0.804486",
"0.7715123",
"0.77084404",
"0.76041096",
"0.7412266",
"0.73850566",
"0.7305091",
"0.72708994",
"0.72141176",
"0.71974254",
"0.71800625",
"0.7124891",
"0.7115953",
"0.7065052",
"0.7037623",
"0.70059705",
"0.6984454",
"0.69232315",
"0.6909768",
"0.6899... | 0.69571656 | 18 |
Removes all HTML tags from a text | def QrZ9(YKHO, l5Ny):
return rKuS(l5Ny, 'html.parser').get_text() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JZhs(l5Ny):\n x0SS = ZbWC.compile('<.*?>')\n return ZbWC.sub(x0SS, '', l5Ny)",
"def DVW7(l5Ny):\n RBfQ = ZbWC.compile('<.*?>')\n return RBfQ.sub('', l5Ny)",
"def JZhs(l5Ny):\n import re\n x0SS = re.compile('<.*?>')\n return re.sub(x0SS, '', l5Ny)",
"def JZhs(l5Ny):\n import re\n ... | [
"0.91093105",
"0.903183",
"0.9000399",
"0.9000399",
"0.8992384",
"0.8939359",
"0.8939223",
"0.8939223",
"0.8939223",
"0.8939223",
"0.8939223",
"0.8939223",
"0.89384246",
"0.8921409",
"0.8921409",
"0.8921409",
"0.8920256",
"0.8905202",
"0.8864721",
"0.8792745",
"0.8649287",
... | 0.7662444 | 51 |
Function to get user by email | def CYTf(D3lj):
CBIr = mv1M.query.filter(mv1M.email == D3lj).first()
Aofo = _I9k.dump(CBIr)
return pz3A(Aofo) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lCqJ(D3lj):\n vexM = mv1M.all()\n vexM.filter('email = ', D3lj)\n return vexM.get()",
"def TKWP(Emd4, D3lj: str):\n for CBIr in Emd4.users:\n if CBIr.email == D3lj:\n return CBIr",
"def CYTf(Emd4, D3lj):\n for hbFX in NCls.users:\n CBIr = NCls.users.get(hbFX)\n ... | [
"0.8863106",
"0.8612748",
"0.85011816",
"0.8398651",
"0.83924353",
"0.8349331",
"0.83166575",
"0.83166575",
"0.83100426",
"0.83043844",
"0.83027375",
"0.82838",
"0.824843",
"0.82472074",
"0.8242178",
"0.8224018",
"0.8183228",
"0.81828874",
"0.81765413",
"0.8172474",
"0.817247... | 0.7693616 | 74 |
Function to get user by id. | def bt8D(id):
CBIr = mv1M.query.get(id)
Aofo = _I9k.dump(CBIr)
return pz3A(Aofo) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bt8D(id):\n return mv1M.query.get(id)",
"def bt8D(id):\n Mkmy = G4JS.get(NKRf + '/user/' + str(id))\n CBIr = Mkmy.json()\n return CBIr",
"def TKWP(YKHO, id):\n return YKHO._fetch_json('users/' + id)",
"def bt8D(id):\n return 'do some magic!'",
"def g971(id):\n return mv1M.query.get... | [
"0.8846819",
"0.88135344",
"0.8801141",
"0.87528086",
"0.8719405",
"0.86892307",
"0.86377895",
"0.8589538",
"0.8589538",
"0.8589362",
"0.85205805",
"0.8494217",
"0.8477458",
"0.84075844",
"0.83970916",
"0.8367671",
"0.8347136",
"0.8338355",
"0.8321729",
"0.8314967",
"0.829551... | 0.7875962 | 99 |
Function to get user password. | def I5sv(jTXt):
CBIr = mv1M.query.get(jTXt)
Aofo = _I9k.dump(CBIr)
return pz3A(Aofo) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QVq7(YKHO):\n return YKHO.password",
"def Ox0V():\n return globals.password",
"def QVq7(YKHO):\n return YKHO._password",
"def QVq7(YKHO):\n return YKHO._password",
"def QVq7(YKHO):\n return YKHO._password",
"def uOmc(YKHO):\n return YKHO.password",
"def QVq7(YKHO) -> str:\n ret... | [
"0.8374072",
"0.8333213",
"0.8331265",
"0.8331265",
"0.8331265",
"0.8263494",
"0.8261276",
"0.82339764",
"0.8228469",
"0.81867224",
"0.8170438",
"0.8129799",
"0.8120091",
"0.81126183",
"0.809694",
"0.8022163",
"0.8015147",
"0.7981959",
"0.7960238",
"0.7945475",
"0.79404455",
... | 0.7426871 | 97 |
Two grams should remain two grams after normalization | def DRnQ(YKHO):
gOBC = CkYf(2, y54C)
YKHO.assertEquals(gOBC, 2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def luVs(YKHO):\n gOBC = CkYf(2, fAAP, UAIz)\n YKHO.assertAlmostEquals(gOBC, 92, 2)",
"def bcW2(Cs6h):\n return Cs6h * 2.0 - 1.0",
"def jnV4(YKHO):\n YKHO.protein.image = YKHO.protein.image / 3.44\n YKHO.ligand.image = YKHO.ligand.image / 3.98",
"def BpYe(YKHO, rrLg):\n uGp6 = [XP5J.array_f... | [
"0.58857226",
"0.5822339",
"0.5819196",
"0.579924",
"0.579924",
"0.57194215",
"0.5687477",
"0.5682707",
"0.5660104",
"0.5660104",
"0.56559676",
"0.56497943",
"0.5646384",
"0.559171",
"0.5588388",
"0.55511",
"0.550364",
"0.5471499",
"0.5453721",
"0.54446596",
"0.54359317",
"... | 0.592767 | 0 |
Normalize a row of weight based measurements (in grams) to 100g | def K1Da(YKHO):
jUI6 = [1.0]
Wn0r = [3.75]
x0Pt = [1.01]
fJsr = [0.16]
ZLJ_ = zip(jUI6, Wn0r, x0Pt, fJsr)
utGq = list(FGaW(ZLJ_))
YKHO.assertEquals(len(utGq), 1)
YKHO.assertEquals(len(utGq[0]), 4)
YKHO.assertAlmostEquals(utGq[0][0], 16.9, 1)
YKHO.assertAlmostEquals(utGq[0][1], 63... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zdKO(jQ3Z):\n jQ3Z['Weight'] = jQ3Z['Weight'] / 1000\n return jQ3Z",
"def Gehp(YKHO):\n yzQ0 = oyIN.array([1.0, YKHO.weight])\n return oyIN.around(yzQ0 / oyIN.sum(yzQ0), 4)",
"def jnV4(rdlD):\n wjRY = rdlD.abs().sum()\n e2AD = rdlD / wjRY\n return e2AD",
"def XoQd(YKHO):\n YKHO.we... | [
"0.72979045",
"0.69182295",
"0.66850114",
"0.6632557",
"0.6628286",
"0.6476997",
"0.6464125",
"0.6429392",
"0.6408203",
"0.6401171",
"0.6401171",
"0.6351714",
"0.6299007",
"0.6284914",
"0.62766945",
"0.6264689",
"0.62635607",
"0.6243531",
"0.6230438",
"0.622792",
"0.62118053"... | 0.6714571 | 2 |
Shorten string if needed and append ellipsis at the end | def KBYu(vIwR: str, u54L=100) -> str:
if len(vIwR) <= u54L:
return vIwR
else:
return vIwR[:u54L] + '...' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def T63M(vIwR: str, u54L: Optional[int]=65, kpeu: Optional[bool]=True) -> str:\n Vg4u = ''\n if kpeu and len(vIwR) > u54L:\n Vg4u = '...'\n u54L -= len(Vg4u)\n return f'{Vg4u}{vIwR[-u54L:]}'",
"def t788(Inpp, u54L=20):\n if len(Inpp) > u54L:\n Inpp = Inpp[:u54L // 2] + '...' + In... | [
"0.8330674",
"0.7875",
"0.7823791",
"0.7791334",
"0.7676297",
"0.75461197",
"0.7491282",
"0.74781054",
"0.7464144",
"0.74084014",
"0.73758554",
"0.73536396",
"0.7317199",
"0.72950983",
"0.72923243",
"0.72923243",
"0.72923243",
"0.72923243",
"0.72923243",
"0.72923243",
"0.7292... | 0.7845629 | 2 |
Close connection to storage. We don't use storage at this moment, but in future... | async def disconnect_storage() -> None:
qAYJ = GzoF()
await qAYJ.storage.close()
await qAYJ.storage.wait_closed() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ugYo(AJ5d):\n S8SU.close()",
"def DDI8(YKHO=None):\n S8SU.close()",
"def EM8p(YKHO):\n if YKHO._storage_file:\n YKHO._storage_file.Close()\n YKHO._storage_file = None",
"def I6Qs(YKHO):\n YKHO.storage.close()",
"def oC1U(YKHO):\n YKHO.client.logout()\n YKHO.client = None... | [
"0.81116045",
"0.79706055",
"0.784243",
"0.7823192",
"0.7792864",
"0.76746935",
"0.7633799",
"0.7599072",
"0.7421122",
"0.7339485",
"0.73387617",
"0.7337799",
"0.72792995",
"0.72792995",
"0.7254348",
"0.7211782",
"0.71865773",
"0.71377444",
"0.71335596",
"0.70964426",
"0.7096... | 0.7577698 | 8 |
Add employee to database | def cf8O(YKHO) -> None:
global default_img
mWFP: str = YKHO.name_entry.text()
SSA0: str = YKHO.surname_entry.text()
bWtk: str = YKHO.phone_entry.text()
D3lj: str = YKHO.email_entry.text()
VXjJ: str = m6iO
UTX6: str = YKHO.address_entry.toPlainText()
if mWFP and SSA0 and (bWtk != ''):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VdWS():\n mVxG = cjEZ.new_employee()\n cjEZ.insert_emp(mVxG)",
"def Ypwf(qQS9):\n with iHv3.connect('employee_database.db'):\n iHv3.connect('employee_database.db').cursor().execute('INSERT INTO employees VALUES (:ID, :first, :last, :role)', {'ID': qQS9.ID, 'first': qQS9.first, 'last': qQS9.la... | [
"0.8761684",
"0.8059549",
"0.7979717",
"0.7916833",
"0.7381929",
"0.730697",
"0.7240162",
"0.7185508",
"0.71720445",
"0.7155268",
"0.7046106",
"0.6988616",
"0.69259304",
"0.6905578",
"0.6898349",
"0.68646204",
"0.678307",
"0.67790294",
"0.67215693",
"0.6711555",
"0.6622007",
... | 0.69315344 | 12 |
Returns the OrgUnit object, which is configured in the ResponsibleOrgUnit behavior field. | def kWpF(YKHO):
s2Jj = T26t(YKHO).responsible_org_unit
if s2Jj:
return FJhe().fetch_org_unit(s2Jj)
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cIo4(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'organization_unit')",
"def NDN9(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'org_unit')",
"def JsxB(YKHO):\n bD7m = YKHO.admin_base_url + YKHO.ORGANIZATIONAL_UNIT_PATH\n geh0 = YKHO._get(url=bD7m)\n YKHO._check_respon... | [
"0.6572692",
"0.6512325",
"0.6467722",
"0.6418699",
"0.6405571",
"0.5840132",
"0.556134",
"0.5530565",
"0.54911035",
"0.5470836",
"0.543054",
"0.5399879",
"0.5356072",
"0.5356072",
"0.5346837",
"0.5346837",
"0.5346837",
"0.5346319",
"0.5310962",
"0.53070086",
"0.5288945",
"... | 0.71871126 | 0 |
The Inbox does not have a sequence number. | def zIFP(YKHO):
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E2Df(YKHO):\n PdI0 = (yield YKHO.get_transport())\n IuGV = PdI0.message_stash\n yield IuGV.set_sequence_number_message_id(37, 'def')\n KREW = (yield IuGV.get_sequence_number_message_id(37))\n YKHO.assertEqual(KREW, 'def')\n yield YKHO.fake_smsc.handle_pdu(Hnpa(sequence_number=37, message_id='... | [
"0.627485",
"0.62434846",
"0.604821",
"0.59810895",
"0.594827",
"0.58842444",
"0.58842444",
"0.57923526",
"0.5780478",
"0.5724227",
"0.56888336",
"0.5536063",
"0.5521364",
"0.5506718",
"0.5505047",
"0.5495444",
"0.5437461",
"0.54222476",
"0.5346979",
"0.531537",
"0.5315319",
... | 0.5879879 | 7 |
Get all products filter by price | def irKv(YKHO, hI0L: int) -> 'Response':
try:
Ldyl = msfn.query.filter(msfn.price == hI0L).all()
if len(Ldyl) == 0:
return (Yxsy(pz3A(message='Aucun produit trouvé pour {} '.format(I_t4), count=len(Ldyl))), 200)
else:
return (Yxsy(pz3A(products=[XP5J.json() for XP5J i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rfw3(YKHO):\n Ldyl = BZOu().fetch_all_products()\n p0nG = []\n for Lx3t in Ldyl:\n nPrm = {Lx3t['product_name']: Lx3t['price']}\n p0nG.append(nPrm)\n return p0nG",
"def CxaC(YKHO, **NArs):\n w2IS = '/products'\n return YKHO.request(w2IS, params=NArs)",
"def vNbG(QePW):\n ... | [
"0.7049993",
"0.6739446",
"0.67087126",
"0.6704923",
"0.65933084",
"0.64950633",
"0.6479118",
"0.64382786",
"0.6403636",
"0.63912934",
"0.6358093",
"0.63553584",
"0.63507986",
"0.63485235",
"0.6340567",
"0.63119656",
"0.63119656",
"0.63081527",
"0.62979877",
"0.62805915",
"0.... | 0.67833364 | 1 |
Set group parameter for provided client. | def xFV6(YKHO, x0hE, z39Z, PZqB):
YKHO.logger.info('Asserting client %s profile to %s' % (x0hE, z39Z))
if False in list(YKHO.states.values()):
raise LV4k
if z39Z not in YKHO.public:
YKHO.logger.error('Failed to set client %s to private group %s' % (x0hE, z39Z))
raise KHdn
if x0hE... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aNPh(YKHO, *qIxc, **B2fa):\n pass",
"def uOe2(YKHO, BWXx):\n YKHO.logger.warn('Setting values on group will NOT update the remote Canvas instance.')\n YKHO._group = BWXx",
"def scR9(YKHO, uOe2):\n YKHO.ipcon.send_request(YKHO, Xg1t.FUNCTION_SET_GROUP, (uOe2,), '4c', '')",
"def scR9(YKHO, uOe2... | [
"0.70731974",
"0.69531137",
"0.6835473",
"0.6793608",
"0.67035836",
"0.6677244",
"0.660487",
"0.6390975",
"0.62773305",
"0.6276142",
"0.6268038",
"0.62287325",
"0.61852384",
"0.61852384",
"0.61852384",
"0.61852384",
"0.61852384",
"0.61852384",
"0.61852384",
"0.61852384",
"0.6... | 0.0 | -1 |
Creates the cmdline argument parser. | def EpPs() -> j1Jz.ArgumentParser:
wvEv = j1Jz.ArgumentParser(formatter_class=t_TD)
nIh5 = wvEv.add_subparsers(help='Commands', dest='command')
iFc4 = nIh5.add_parser('extract', help='Extract features from input repositories', formatter_class=t_TD)
iFc4.set_defaults(handler=lacS)
lE1i(iFc4)
iFc4... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def w4jA():\n wvEv = j1Jz.ArgumentParser(description='program that converts a\\n FASTA file with multple sequence to a FASTA file with one sequence,\\n it adds extension, .fna, if the sequence header has complete genome,\\n and adds .contif if the sequence header has partial sequence label'... | [
"0.74873096",
"0.7382019",
"0.7268528",
"0.7195992",
"0.71797997",
"0.7142218",
"0.70868707",
"0.7086751",
"0.7075535",
"0.70714015",
"0.70634997",
"0.7060596",
"0.70482534",
"0.7003029",
"0.6992455",
"0.69748545",
"0.6969606",
"0.69635993",
"0.69625545",
"0.6960229",
"0.6951... | 0.6785934 | 55 |
we have to write a tiny little script to calcualte time differences it's assumed that date1 is later than date2 | def PtEJ(Ilc0, w0do):
eHNT = lambda Csk6: map(int, Csk6.split(':'))
MKlR, r8hN, KCHu = (Csk6[0] - Csk6[1] for Csk6 in zip(eHNT(Ilc0), eHNT(w0do)))
return MKlR * 60 * 60 + r8hN * 60 + KCHu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C61p(Ilc0, w0do):\n FNIR = iVVu(Ilc0.timetuple()) + Ilc0.microsecond / 1000000.0\n eO9c = iVVu(w0do.timetuple()) + w0do.microsecond / 1000000.0\n return FNIR - eO9c",
"def PtEJ(n2Q1, SpII):\n return qcWV.datetime.combine(qcWV.date.min, SpII) - qcWV.datetime.combine(qcWV.date.min, n2Q1)",
"def P... | [
"0.826414",
"0.7810456",
"0.7653792",
"0.7471697",
"0.7431633",
"0.7395806",
"0.7370069",
"0.7356005",
"0.7316951",
"0.7314206",
"0.7312902",
"0.7219586",
"0.7207761",
"0.72075015",
"0.7192865",
"0.7179112",
"0.71721727",
"0.71512765",
"0.7134974",
"0.7107129",
"0.7042613",
... | 0.7577537 | 3 |
return approximate solution of Hs = b with ||s|| <= Delta | def Jw76(C7Ls, Fg_i, xQLp, ZheM, uGwy):
KCHu = oyIN.array([0, 0])
_gQ_ = -Fg_i
XP5J = -xQLp @ _gQ_
R8Hb = -oyIN.dot(_gQ_, XP5J)
RA_F = R8Hb
KMvS = RA_F
Y7fn = 0
wW3z = 0
while RA_F >= ZheM ** 2 * R8Hb:
vexM = C7Ls @ XP5J
q7In = oyIN.dot(vexM, XP5J)
E3D9 = oyIN... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GERS(eHNT, jzdc, Fg_i, _hZ2):\n while abs(jzdc - Fg_i) > _hZ2:\n Z9rn = (jzdc + Fg_i) / 2.0\n dlau = eHNT(Z9rn)\n vjJT = eHNT(jzdc)\n if dlau * vjJT > 0.0:\n jzdc = Z9rn\n else:\n Fg_i = Z9rn\n return jzdc",
"def LXOH(a1PO, lch6, umWR, cJsZ, SGf8... | [
"0.61973417",
"0.6162859",
"0.6158235",
"0.61403537",
"0.61203885",
"0.60808647",
"0.6061605",
"0.60609084",
"0.59516907",
"0.5945253",
"0.59195274",
"0.5911407",
"0.58997405",
"0.5883403",
"0.58750236",
"0.5865157",
"0.5856639",
"0.5832663",
"0.58135575",
"0.5800954",
"0.578... | 0.67246866 | 0 |
Specifies the name which should be used for this Storage Mover Source Endpoint. Changing this forces a new resource to be created. | def mWFP(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO, mWFP: str):\n YKHO.obj.metadata.name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO._create_resource('name', mWFP)\n YKHO._create_resource('hostname', mWFP)",
"def mWFP(YKHO, mWFP):\n YKHO._name = mWFP",
"def zPdd(YKHO, *qIxc, **B2fa):\n pass",
"def zPdd(YKHO, *qIxc, **B2fa):\n pas... | [
"0.65995055",
"0.646495",
"0.6273049",
"0.6263535",
"0.6263535",
"0.62227786",
"0.62227786",
"0.62227786",
"0.62227786",
"0.62227786",
"0.62227786",
"0.62227786",
"0.62227786",
"0.62227786",
"0.62227786",
"0.62227786",
"0.62227786",
"0.62227786",
"0.62227786",
"0.62227786",
"... | 0.0 | -1 |
Specifies the name which should be used for this Storage Mover Source Endpoint. Changing this forces a new resource to be created. | def mWFP(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO, mWFP: str):\n YKHO.obj.metadata.name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO._create_resource('name', mWFP)\n YKHO._create_resource('hostname', mWFP)",
"def mWFP(YKHO, mWFP):\n YKHO._name = mWFP",
"def zPdd(YKHO, *qIxc, **B2fa):\n pass",
"def zPdd(YKHO, *qIxc, **B2fa):\n pas... | [
"0.6600058",
"0.6467661",
"0.62739974",
"0.6265134",
"0.6265134",
"0.62237304",
"0.62237304",
"0.62237304",
"0.62237304",
"0.62237304",
"0.62237304",
"0.62237304",
"0.62237304",
"0.62237304",
"0.62237304",
"0.62237304",
"0.62237304",
"0.62237304",
"0.62237304",
"0.62237304",
... | 0.0 | -1 |
Specifies the name which should be used for this Storage Mover Source Endpoint. Changing this forces a new resource to be created. | def mWFP(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO, mWFP: str):\n YKHO.obj.metadata.name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO._create_resource('name', mWFP)\n YKHO._create_resource('hostname', mWFP)",
"def mWFP(YKHO, mWFP):\n YKHO._name = mWFP",
"def zPdd(YKHO, *qIxc, **B2fa):\n pass",
"def zPdd(YKHO, *qIxc, **B2fa):\n pas... | [
"0.660088",
"0.64674866",
"0.62747586",
"0.62662673",
"0.62662673",
"0.62245965",
"0.62245965",
"0.62245965",
"0.62245965",
"0.62245965",
"0.62245965",
"0.62245965",
"0.62245965",
"0.62245965",
"0.62245965",
"0.62245965",
"0.62245965",
"0.62245965",
"0.62245965",
"0.62245965",
... | 0.0 | -1 |
Parse the given function definition and return information regarding the contained definition. | def hfK9(Emd4, nPrm):
try:
Aofo = Emd4.FuncDefn.parseString(nPrm)
dfOq = Aofo.asList()
qIxc = dfOq[3:dfOq.index(')')]
TrA5 = ZbWC.sub('[^\\{]+\\{', '', nPrm, count=1)
SQ3m = TrA5.strip().split('\n')
TrA5 = '\n'.join(SQ3m[0:-1])
return PPx4(Aofo[1], qIxc, TrA5,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oydM(l5Ny, MnRD, pu8V, tJPp, v9CE, AvtT):\n yyrm = ceoS()\n yyrm.parse_def(l5Ny)\n assert yyrm.func_indent == MnRD\n assert yyrm.arg_name_list == pu8V\n assert yyrm.arg_type_list == tJPp\n assert yyrm.arg_value_list == v9CE\n assert yyrm.return_type_annotated == AvtT",
"def rhDt(aadv):\n... | [
"0.7633585",
"0.6716185",
"0.6470679",
"0.6443333",
"0.64174753",
"0.63752943",
"0.63516074",
"0.63257915",
"0.6322246",
"0.6321138",
"0.62984097",
"0.6284531",
"0.6186055",
"0.61454636",
"0.6144639",
"0.6119488",
"0.6094246",
"0.6075476",
"0.6062463",
"0.60585105",
"0.604650... | 0.66714656 | 2 |
Return an int iterator of shrunk result. | def mSbW(YKHO, BWXx):
return YKHO.shrinker.shrink(BWXx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vs4Q(YKHO) -> bDy6[int]:\n return filter(YKHO.__contains__, range(YKHO.bits.bit_length()))",
"def kwNW(YKHO):\n for YRbF in range(2 ** len(YKHO)):\n yield YRbF",
"def Vs4Q(YKHO) -> bDy6[int]:\n YKHO.dataset.shuffle()\n return iter(range(len(YKHO.dataset)))",
"def cinv(FGW3):\n while... | [
"0.5763713",
"0.56758654",
"0.56196713",
"0.5612897",
"0.55881584",
"0.5491563",
"0.54068667",
"0.53498197",
"0.5334841",
"0.5305636",
"0.5260587",
"0.5253059",
"0.52303666",
"0.5197818",
"0.51947755",
"0.519113",
"0.5180473",
"0.51792693",
"0.51673865",
"0.5165356",
"0.51644... | 0.0 | -1 |
returns header of column separated values. | def ivWK(YKHO):
return YKHO.fields | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E_hp(jQ3Z):\n VxuA = jQ3Z.columns.values\n return ','.join(VxuA)",
"def dlVx(YKHO):\n return ['#' + YKHO.columns[0]] + YKHO.columns[1:]",
"def yJAH(YKHO, nJ9F, nxyw, o4D3, si3g):\n return [[str(YKHO._data.name)] for bGrB in range(nJ9F, o4D3)]",
"def GF1b(YKHO, OGYo):\n WBPg = OGYo[CQ4l]\n ... | [
"0.7496505",
"0.7059197",
"0.7059108",
"0.70179087",
"0.69944644",
"0.6971254",
"0.6888934",
"0.68737316",
"0.6868509",
"0.6836515",
"0.6813715",
"0.6801675",
"0.67533636",
"0.67174244",
"0.6700975",
"0.6688027",
"0.6654822",
"0.6646432",
"0.6644162",
"0.6590267",
"0.65840024... | 0.0 | -1 |
returns header of column separated values. | def t1Gm(YKHO):
return '\t'.join(YKHO.getHeaders()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E_hp(jQ3Z):\n VxuA = jQ3Z.columns.values\n return ','.join(VxuA)",
"def dlVx(YKHO):\n return ['#' + YKHO.columns[0]] + YKHO.columns[1:]",
"def yJAH(YKHO, nJ9F, nxyw, o4D3, si3g):\n return [[str(YKHO._data.name)] for bGrB in range(nJ9F, o4D3)]",
"def GF1b(YKHO, OGYo):\n WBPg = OGYo[CQ4l]\n ... | [
"0.7496505",
"0.7059197",
"0.7059108",
"0.70179087",
"0.69944644",
"0.6971254",
"0.6888934",
"0.68737316",
"0.6868509",
"0.6836515",
"0.6813715",
"0.6801675",
"0.67533636",
"0.67174244",
"0.6700975",
"0.6688027",
"0.6654822",
"0.6646432",
"0.6644162",
"0.6590267",
"0.65840024... | 0.63959134 | 30 |
Checks that the user is logged in and has the appropriate permissions to access this view. A PERMISSION_DENIED error is returned if the user does not have the proper permissions. | def cSmA(IuXB):
def ZmIX(LpBI):
def pvox(QePW, UcEl='json', *qIxc, **B2fa):
if not QePW.user.is_authenticated():
geh0 = uYD_(QePW, bM5Y)
elif not QePW.user.has_perm(IuXB):
geh0 = uYD_(QePW, JyDJ)
else:
geh0 = LpBI(QePW, *q... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o7xd(YKHO):\n return M1EP(YKHO.request.user, 'assignments.can_see') and M1EP(YKHO.request.user, 'assignments.can_manage')",
"def o7xd(YKHO):\n if YKHO.action in ('list', 'retrieve'):\n Aofo = YKHO.get_access_permissions().check_permissions(YKHO.request.user)\n elif YKHO.action in ('create', '... | [
"0.7164488",
"0.71504265",
"0.71504265",
"0.7149521",
"0.7091688",
"0.7073305",
"0.7030258",
"0.7012425",
"0.6991189",
"0.69780666",
"0.6962709",
"0.6962709",
"0.69444597",
"0.69424033",
"0.69071364",
"0.6901444",
"0.6901444",
"0.6901444",
"0.6901444",
"0.6901444",
"0.6899141... | 0.0 | -1 |
Initializes main game board matrix structure | def l1V2(YKHO):
for YRbF in range(yXc0):
ZLJ_ = []
for r845 in range(No5k):
if YRbF == 0:
Fyji = vk5O(r845, YRbF, XDQs, MwCX, QHvf, _Kel, tn17, 1)
Fyji.color = YKHO.solution[r845]
ZLJ_.append(Fyji)
else:
Fyji = v... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO.board = oyIN.zeros((P5Bq, P5Bq))",
"def idFV():\n iBIi = dict()\n for YRbF in range(BrEt):\n for r845 in range(BrEt):\n ZMlM = (YRbF, r845)\n iBIi[ZMlM] = S5NE\n iBIi[3, 3] = KV14\n iBIi[3, 4] = VdA6\n iBIi[4, 3] = VdA6\n iBIi[4, 4] = KV14\... | [
"0.78505176",
"0.77515954",
"0.7686246",
"0.7666985",
"0.76080936",
"0.7594252",
"0.74998707",
"0.74436605",
"0.7423188",
"0.73996603",
"0.7331542",
"0.7261424",
"0.7260919",
"0.7242532",
"0.72317916",
"0.7217048",
"0.7206404",
"0.7175847",
"0.7163397",
"0.71458197",
"0.71354... | 0.0 | -1 |