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 |
|---|---|---|---|---|---|---|
Calculate the Euclidean length of a vector. | def i1gc(iArr):
return oyIN.sqrt(oyIN.dot(iArr, iArr)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pKBJ(he6J: np.array) -> oyIN.float:\n return oyIN.sqrt(oyIN.sum(he6J ** 2, axis=1))",
"def X_iT(iArr):\n return epAf.sqrt(sum([tTpl * tTpl for tTpl in iArr]))",
"def i1gc(iArr):\n return oyIN.sqrt(oyIN.sum(oyIN.square(iArr)))",
"def Bq2S(iArr):\n i1gc = epAf.sqrt(oyIN.dot(iArr, iArr))\n re... | [
"0.8537704",
"0.8195499",
"0.80470145",
"0.80272514",
"0.7953826",
"0.78893584",
"0.77713746",
"0.7681717",
"0.7671771",
"0.76469356",
"0.7591254",
"0.7566454",
"0.7565032",
"0.7477615",
"0.7476646",
"0.7355314",
"0.730143",
"0.7286909",
"0.7285851",
"0.7277505",
"0.7250589",... | 0.8102061 | 2 |
Return queryset for complete set of reference docs for all categories in this Group | def l98j(YKHO):
return WIRE.objects.filter(category__in=YKHO.category_set.all()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q5mJ(YKHO):\n return [A97Q for Ghho in YKHO.categories.values() for A97Q in Ghho.docs]",
"def YMXv(YKHO):\n return YKHO.reference_model.select_all()",
"def k66M(YKHO):\n return super().get_queryset().select_related('collection').prefetch_related('documents')",
"def LQuW(YKHO):\n return YKHO.c... | [
"0.71538854",
"0.6101189",
"0.59721303",
"0.5843701",
"0.5843701",
"0.5835771",
"0.5797028",
"0.5721055",
"0.57164115",
"0.57043403",
"0.56974435",
"0.5688098",
"0.5676612",
"0.56744015",
"0.564941",
"0.5627375",
"0.56181943",
"0.56025916",
"0.5560966",
"0.5547561",
"0.554361... | 0.83309126 | 0 |
Return the total number of questions defined for this category | def ZphR(YKHO):
return YKHO.question_set.count() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hgAI(YEnM: Category) -> int:\n if YEnM.category_type == 'framework':\n return YEnM.framework.questions.all().filter(is_public=True).count()\n if YEnM.category_type == 'team':\n return YEnM.team.questions.all().filter(is_public=True).count()\n if YEnM.category_type == 'language':\n ... | [
"0.77938086",
"0.75015086",
"0.748677",
"0.7460919",
"0.7303671",
"0.72572726",
"0.7111049",
"0.7044475",
"0.69795823",
"0.6942227",
"0.681154",
"0.6783918",
"0.66942126",
"0.6659742",
"0.6617264",
"0.6571151",
"0.6563141",
"0.65595776",
"0.6558179",
"0.647137",
"0.64412284",... | 0.77325743 | 1 |
Gets and sets the servicePlanId | def d8eQ(YKHO):
if 'servicePlanId' in YKHO._prop_dict:
return YKHO._prop_dict['servicePlanId']
else:
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Wq8F(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'app_service_plan_id')",
"def Wq8F(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'app_service_plan_id')",
"def Wq8F(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'app_service_plan_id')",
"def wERM(YKHO) -> str:\n return qe4... | [
"0.73548263",
"0.7339352",
"0.7243625",
"0.6904192",
"0.6904192",
"0.6904192",
"0.6902178",
"0.653294",
"0.653294",
"0.63553417",
"0.6169278",
"0.5990135",
"0.5972862",
"0.5853434",
"0.58340514",
"0.58002114",
"0.5776786",
"0.57670164",
"0.5723578",
"0.57163316",
"0.57121044"... | 0.8590168 | 0 |
Initialize a Card object | def FIMM(YKHO, fdMZ, iCfd):
if type(fdMZ) == int:
if fdMZ >= 1 and fdMZ <= 13:
YKHO.rank = fdMZ
else:
raise ValueError('Rank must be between 1 and 13')
else:
raise TypeError('Rank must be an integer')
if type(iCfd) == str:
if iCfd in ['s', 'h', 'c', 'd... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, FCyN, tXNk, wEiH):\n YKHO.card_sprite = FCyN\n YKHO.card_type = tXNk\n YKHO.card_factor = wEiH",
"def FIMM(YKHO, khoC):\n YKHO.cards = khoC",
"def FIMM(YKHO, khoC):\n YKHO.cards = khoC",
"def FIMM(YKHO):\n YKHO._cards = []\n for iCfd in F1Hz.SUITS:\n for fdMZ in F1H... | [
"0.7929056",
"0.784755",
"0.77874434",
"0.77091384",
"0.7661148",
"0.76363075",
"0.76302797",
"0.7565331",
"0.7491222",
"0.74910897",
"0.74601537",
"0.7456022",
"0.7431412",
"0.74209774",
"0.74095196",
"0.7397407",
"0.73703796",
"0.73599684",
"0.73594934",
"0.7350612",
"0.733... | 0.0 | -1 |
Return a `KpointsData` object based on the data in the input file. | def zRA_(YKHO):
from aiida.orm.nodes.data.array.kpoints import KpointsData
F0Ql = KpointsData()
g8x2 = YKHO.get_structuredata()
F0Ql.set_cell_from_structure(g8x2)
if YKHO.k_points['type'] == 'crystal':
F0Ql.set_kpoints(YKHO.k_points['points'], weights=YKHO.k_points['weights'])
elif YKHO.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UlWi(O38l):\n LTIa = []\n with open(O38l, 'r', encoding='utf8') as eHNT:\n for rdlD in eHNT.readlines():\n rdlD = rdlD.strip()\n hkxX = rdlD.split(' ')\n LTIa.append(PvyL(hkxX[0], hkxX[1:]))\n return LTIa",
"def cEHM(pmON='KPOINTS'):\n if Hy7s.path.isfile(p... | [
"0.6382511",
"0.61770964",
"0.6169061",
"0.60971034",
"0.60971034",
"0.6073221",
"0.6073221",
"0.60428244",
"0.59431875",
"0.58674574",
"0.583977",
"0.58320576",
"0.5789481",
"0.57679844",
"0.5751497",
"0.5737084",
"0.5737084",
"0.57191527",
"0.57048595",
"0.5685407",
"0.5633... | 0.60864425 | 5 |
Updates the pipeline request before attempting to retry. | def FNO3(YKHO, QePW, ccK_):
Phvj(ccK_, QePW) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FNO3(YKHO, QePW):\n pass",
"def kRFl():\n YKHO.http_connect()\n YKHO.connection.request(NKcE, pmON, nPrm, MOPg)\n return YKHO.connection.getresponse()",
"def QdZT(YKHO):\n FLAb = jth9.copy(YKHO.requests)\n if len(FLAb) == 0:\n return\n lBGJ = BfDw.list_lpar_uuids(YKHO.adapter, Y... | [
"0.65728873",
"0.6469661",
"0.6349709",
"0.6163156",
"0.6088107",
"0.6006763",
"0.5973401",
"0.59273267",
"0.5836169",
"0.5766577",
"0.57418805",
"0.57134724",
"0.5690118",
"0.5671462",
"0.5646663",
"0.5617703",
"0.5602626",
"0.5591407",
"0.5590376",
"0.5562953",
"0.5553946",... | 0.6849861 | 0 |
Return the current game state. | def lVlK(YKHO, QePW):
BH3N = GB4p(QePW.urlsafe_game_key, _apf)
if BH3N:
return BH3N.to_form('Time to make a move!')
else:
raise wnQ_.NotFoundException('No such game') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ja6o(YKHO):\n return YKHO.game.get_state()",
"def j3Sc(YKHO):\n return YKHO._game_state",
"def j3Sc(YKHO):\n return YKHO._game_state",
"def j3Sc(YKHO):\n return YKHO._game_state",
"def j3Sc(YKHO):\n return YKHO._game_state",
"def j3Sc(YKHO):\n return YKHO._game_state",
"def j3Sc(Y... | [
"0.8922343",
"0.873454",
"0.86651415",
"0.86651415",
"0.86651415",
"0.86651415",
"0.86651415",
"0.86651415",
"0.86651415",
"0.86651415",
"0.86651415",
"0.86651415",
"0.86651415",
"0.86651415",
"0.86651415",
"0.8323791",
"0.82353854",
"0.8165055",
"0.8154852",
"0.8044036",
"0.... | 0.0 | -1 |
Returns the next player in an ordered list. Cycles around to the beginning of the list if reaching the end. | def NmvS(Bwa6, AJWN):
YRbF = Bwa6.index(AJWN) + 1
return Bwa6[YRbF % len(Bwa6)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zia_(YKHO, LZbL):\n if LZbL == YKHO.players[-1]:\n return YKHO.players[0]\n else:\n return YKHO.players[YKHO.players.index(LZbL) + 1]",
"def TKZx(YKHO):\n d6pt = (YKHO.__players.index(YKHO.__currPlayer) + 1) % len(YKHO.__players)\n while not YKHO.__players[d6pt].ifActive():\n ... | [
"0.7586762",
"0.7574154",
"0.75507087",
"0.7356455",
"0.72799355",
"0.71389526",
"0.7107659",
"0.7088687",
"0.6967855",
"0.6914675",
"0.68993366",
"0.6894106",
"0.6772091",
"0.6585503",
"0.65379655",
"0.65038055",
"0.64752126",
"0.6472199",
"0.6436936",
"0.64148176",
"0.63569... | 0.7550171 | 3 |
Public getter for the player who was the last to pick up a card. Defaults to the dealer at the start of the round. | def kXh5(YKHO):
return YKHO._last_picked_up | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def q0B6(YKHO):\n return YKHO._last_player",
"def wNmq(YKHO):\n return YKHO.get_others_in_group()[0]",
"def wNmq(YKHO):\n return YKHO.get_others_in_group()[0]",
"def nAM4(YKHO) -> int:\n return YKHO.player",
"def tRnr(YKHO):\n if YKHO.is_terminal():\n return BSv6.PlayerId.TERMINAL\n ... | [
"0.74432296",
"0.72869223",
"0.72869223",
"0.71657956",
"0.7076964",
"0.69329894",
"0.691317",
"0.69128907",
"0.687905",
"0.687905",
"0.6871316",
"0.6856528",
"0.6812841",
"0.6810888",
"0.6774151",
"0.6773774",
"0.677103",
"0.67667484",
"0.676401",
"0.6762008",
"0.6756931",
... | 0.62963295 | 77 |
True if deck is empty and all players have played their last cards. | def IXlb(YKHO):
return YKHO._hand_is_done and (not YKHO.deck.cards()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nSRn(YKHO):\n if len(YKHO.card_pile) == 0:\n return True\n return False",
"def Hm80(YKHO):\n return sum((bool(oyg0.hand.cards) for oyg0 in YKHO.players)) == 1",
"def FBfn(YKHO):\n return YKHO.deck_count == 0",
"def dcUY(YKHO):\n return len(YKHO.hand.cards) != 0",
"def FBfn(YKHO):\... | [
"0.7588727",
"0.7569685",
"0.7383249",
"0.71350163",
"0.71127695",
"0.7041642",
"0.70378464",
"0.69814795",
"0.6877641",
"0.6867398",
"0.6858518",
"0.6813767",
"0.68088466",
"0.68026584",
"0.67653924",
"0.67391217",
"0.6738665",
"0.67083645",
"0.66984904",
"0.667845",
"0.6674... | 0.6921335 | 8 |
Returns True if all players currently have empty hands. | def dwZO(YKHO):
for wEf2 in YKHO._player_cards.values():
if wEf2['hand']:
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nSRn(YKHO):\n if len(YKHO.card_pile) == 0:\n return True\n return False",
"def FBfn(YKHO):\n return YKHO.deck_count == 0",
"def FBfn(YKHO) -> bool:\n return not YKHO.cards",
"def FBfn(YKHO):\n return YKHO.cards == []",
"def FBfn(YKHO):\n return len(YKHO.cards) == 0",
"def FBf... | [
"0.7816865",
"0.76895076",
"0.76101285",
"0.75336695",
"0.75075877",
"0.73924965",
"0.73896784",
"0.737627",
"0.7285166",
"0.722704",
"0.72207785",
"0.71663225",
"0.7158615",
"0.71360767",
"0.7092756",
"0.70479035",
"0.70318234",
"0.7023336",
"0.70125854",
"0.70053107",
"0.70... | 0.0 | -1 |
Get job information from its id. | def W7aK(rjee, ayFa=False, _AiO=False):
NArs = []
if ayFa:
NArs.append(('o', 'STATE'))
if _AiO:
NArs.append(('o', 'TAGS'))
return VNUm('/job/%s' % rjee, params=NArs) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DkdA(YKHO, rjee):\n return YKHO.get('/qiita_db/jobs/%s' % rjee)",
"def XGuR(YKHO, id):\n with DMju() as cuiw:\n return YKHO._get_job_by_id(id, cuiw)",
"def KjtO(YKHO, rjee):\n return YKHO._get(YKHO.base_url + '/jobs/' + rjee, 'job')",
"def UIzg(YKHO, rjee):\n return YKHO._action(['jobs... | [
"0.8309345",
"0.8246068",
"0.8164256",
"0.8137278",
"0.8093267",
"0.8038885",
"0.797059",
"0.79461205",
"0.79344255",
"0.7917499",
"0.78705543",
"0.7785479",
"0.7775526",
"0.7775526",
"0.77640206",
"0.77091396",
"0.7707673",
"0.7661712",
"0.76345336",
"0.76137453",
"0.7603962... | 0.0 | -1 |
The set of arguments for constructing a QueuePolicy resource. | def FIMM(Ro_8, *, x_IX: Any, rysN: pulumi.Input[Sequence[pulumi.Input[str]]]):
qe4Y.set(Ro_8, 'policy_document', x_IX)
qe4Y.set(Ro_8, 'queues', rysN) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(Ro_8, kFeU: str, qIxc: PolicyArgs, VKhi: Optional[pulumi.ResourceOptions]=None):\n ...",
"def FIMM(Ro_8, kFeU: str, qIxc: ProductPolicyArgs, VKhi: Optional[pulumi.ResourceOptions]=None):\n ...",
"def FIMM(Ro_8, kFeU: str, qIxc: EndpointPolicyArgs, VKhi: Optional[pulumi.ResourceOptions]=None):\n ... | [
"0.6607789",
"0.64390314",
"0.63578904",
"0.6243499",
"0.61765754",
"0.61457944",
"0.6130673",
"0.6070318",
"0.60585696",
"0.60009533",
"0.59795576",
"0.5965424",
"0.5927172",
"0.59071195",
"0.5893245",
"0.58897746",
"0.58722365",
"0.5848391",
"0.58294815",
"0.5788396",
"0.57... | 0.6611884 | 0 |
Returns starting state of the board. | def W9gz():
return [[KAvf, KAvf, KAvf], [KAvf, KAvf, KAvf], [KAvf, KAvf, KAvf]] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tQN_(YKHO):\n return YKHO.board",
"def tQN_(YKHO):\n return YKHO.board",
"def tQN_(YKHO):\n return YKHO.board",
"def tQN_(YKHO):\n return YKHO.board",
"def tQN_(YKHO):\n return YKHO.board",
"def tQN_(YKHO):\n return YKHO._start_state",
"def Ee93():\n exwG = ahzX(mF_7, 5)\n r... | [
"0.8809215",
"0.8809215",
"0.8809215",
"0.8809215",
"0.8809215",
"0.74344724",
"0.742334",
"0.7328245",
"0.72898334",
"0.72821885",
"0.72821885",
"0.7278382",
"0.7248571",
"0.7225358",
"0.7225358",
"0.7225358",
"0.7225358",
"0.7225358",
"0.7225358",
"0.7225358",
"0.7225358",
... | 0.0 | -1 |
Returns set of all possible actions (i, j) available on the board. | def xASv(iBIi):
XeOP = []
for YRbF, rdlD in enumerate(iBIi):
for r845, fvDH in enumerate(rdlD):
if not iBIi[YRbF][r845]:
XeOP.append((YRbF, r845))
return XeOP | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xASv(iBIi):\n Ylbp = set()\n for YRbF in range(len(iBIi)):\n for r845 in range(len(iBIi[0])):\n if iBIi[YRbF][r845] == KAvf:\n Ylbp.add((YRbF, r845))\n return Ylbp",
"def xASv(YKHO):\n hksT = YKHO.locs[YKHO.player()]\n if hksT is None:\n return YKHO.libe... | [
"0.8078164",
"0.7935423",
"0.7917879",
"0.7912585",
"0.78729856",
"0.7766741",
"0.77509874",
"0.77447766",
"0.7738995",
"0.7731153",
"0.7730132",
"0.7709082",
"0.77006704",
"0.76862395",
"0.7676969",
"0.76713663",
"0.7665846",
"0.7654127",
"0.7642262",
"0.7634384",
"0.7632887... | 0.72665054 | 56 |
Returns the winner of the game, if there is one. | def bHVe(iBIi):
u1vn = []
for YRbF, rdlD in enumerate(iBIi):
jbXL = []
for r845, fvDH in enumerate(rdlD):
jbXL.append(iBIi[r845][YRbF])
u1vn.append(jbXL)
for rdlD in iBIi:
if rdlD.count('X') == 3:
return EcVT
elif rdlD.count('O') == 3:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bHVe(YKHO):\n if YKHO.done():\n return YKHO._winner\n else:\n return None",
"def ND5o(YKHO):\n return YKHO.win_conditions()[0]",
"def bHVe(YKHO):\n return YKHO.board.winner()",
"def bHVe(YKHO):\n J2w6 = Bu_I.compute_winner_index(YKHO.result, YKHO.game)\n if J2w6 is False:\... | [
"0.84205395",
"0.83575505",
"0.82868236",
"0.81987756",
"0.81987756",
"0.8168628",
"0.81224376",
"0.805871",
"0.7971006",
"0.79522294",
"0.7909224",
"0.789483",
"0.78946227",
"0.78887254",
"0.78633344",
"0.7850654",
"0.7850211",
"0.78320843",
"0.7811322",
"0.7769718",
"0.7765... | 0.0 | -1 |
Returns 1 if X has won the game, 1 if O has won, 0 otherwise. | def f7Dd(iBIi):
kTv5 = bHVe(iBIi)
if kTv5 == EcVT:
return 1
elif kTv5 == LTX_:
return -1
return 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hHs1(YKHO):\n return YKHO.winner() == YKHO.X_VAL",
"def oyg0(iBIi):\n bHVe(iBIi)\n c8fa = 0\n Jszs = 0\n for YRbF in range(3):\n for r845 in range(3):\n if iBIi[YRbF][r845] == LTX_:\n Jszs += 1\n elif iBIi[YRbF][r845] == EcVT:\n c8fa +... | [
"0.77431494",
"0.7665777",
"0.7627669",
"0.76235044",
"0.74548364",
"0.744333",
"0.7343317",
"0.73383707",
"0.73096186",
"0.7305894",
"0.7282681",
"0.7275687",
"0.7244229",
"0.72328174",
"0.7207191",
"0.7182036",
"0.71798617",
"0.71759605",
"0.7175524",
"0.7167598",
"0.715218... | 0.690391 | 51 |
IF AI is X, find it's optimal move. | def bQ6z(iBIi):
zD4t = []
if f9TP(iBIi):
return (1, f7Dd(iBIi))
for XeOP in xASv(iBIi):
BWXx = dgIT(Aofo(iBIi, XeOP))
if BWXx == 1:
return (XeOP, BWXx)
zD4t.append((XeOP, BWXx[1]))
zD4t.sort(key=lambda jzdc: jzdc[1], reverse=True)
return zD4t[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TOA2(YKHO):\n if sum(YKHO.board) == 0:\n return 1\n uc7Q = -FfMS\n DQoW = -1\n for YRbF in range(YKHO.n * YKHO.n):\n q9ES = YKHO.board.copy()\n if YKHO.board[YRbF] == 0 and YKHO.board_map[YRbF] == 1:\n q9ES[YRbF] = 10\n Qj8D = YKHO.minmax(q9ES, YKHO.n, -Ff... | [
"0.770965",
"0.7533587",
"0.74667966",
"0.7345648",
"0.7327349",
"0.73266554",
"0.73185104",
"0.73086965",
"0.72466236",
"0.7191525",
"0.7170267",
"0.71642196",
"0.71618694",
"0.71603346",
"0.7159419",
"0.71539265",
"0.7147102",
"0.71361446",
"0.71256703",
"0.71237886",
"0.71... | 0.0 | -1 |
IF AI is Y, find it's optimal move. | def dgIT(iBIi):
HQv9 = []
if f9TP(iBIi):
return (1, f7Dd(iBIi))
for XeOP in xASv(iBIi):
BWXx = bQ6z(Aofo(iBIi, XeOP))
if BWXx == -1:
return (XeOP, BWXx)
HQv9.append((XeOP, BWXx[1]))
HQv9.sort(key=lambda jzdc: jzdc[1])
return HQv9[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TOA2(YKHO):\n if sum(YKHO.board) == 0:\n return 1\n uc7Q = -FfMS\n DQoW = -1\n for YRbF in range(YKHO.n * YKHO.n):\n q9ES = YKHO.board.copy()\n if YKHO.board[YRbF] == 0 and YKHO.board_map[YRbF] == 1:\n q9ES[YRbF] = 10\n Qj8D = YKHO.minmax(q9ES, YKHO.n, -Ff... | [
"0.76851267",
"0.73978627",
"0.73713213",
"0.7343911",
"0.72575986",
"0.72536486",
"0.72252935",
"0.7222574",
"0.7160981",
"0.7102973",
"0.710169",
"0.70636964",
"0.70592684",
"0.6993836",
"0.6957508",
"0.69502574",
"0.6949473",
"0.6859183",
"0.6855902",
"0.68441504",
"0.6838... | 0.0 | -1 |
Returns True if the computer has a pending reboot. | def lmkP():
return Hy7s.path.exists('/run/reboot-required') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lmkP():\n return Hy7s.path.exists('/run/reboot-required')",
"def lmkP():\n return Hy7s.path.exists('/run/reboot-required')",
"def CJa6(YKHO):\n yvT9 = YKHO.__power_management('cycle')\n if yvT9.find(YKHO.features.get('PowerManagementCycle')) is not None:\n return True\n return False",... | [
"0.71683705",
"0.7151079",
"0.715023",
"0.71309596",
"0.7103408",
"0.69437456",
"0.6868938",
"0.67824596",
"0.6762702",
"0.66330767",
"0.6621107",
"0.65562075",
"0.65045375",
"0.6456927",
"0.6433393",
"0.6400185",
"0.6366947",
"0.6366947",
"0.6345563",
"0.6323935",
"0.6309231... | 0.7107328 | 5 |
return a string representing the card. if the self__suit number is 11, 12, 13, 1 it will represent it as the allocated word. 'Jack' for 11, 'Queen' for 12, 'King' for 13, 'Ace' for 1 | def zAg0(YKHO):
if YKHO.__value in YKHO.special_cards.keys():
return f'{YKHO.special_cards[YKHO.__value]} of {list(YKHO.__suit.keys())[0]}'
return f'{YKHO.__value} of {list(YKHO.__suit.keys())[0]}' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Uxwc(YKHO):\n return 'the ' + YKHO.number + ' of ' + YKHO.suit",
"def zAg0(YKHO):\n return F1Hz.possible_ranks[YKHO.get_rank()] + ' of ' + F1Hz.possible_suits[YKHO.get_suit()]",
"def zAg0(YKHO):\n if YKHO.rank == 1:\n fdMZ = 'Ace'\n elif YKHO.rank == 11:\n fdMZ = 'Jack'\n elif ... | [
"0.7773546",
"0.772619",
"0.76720285",
"0.76720285",
"0.76720285",
"0.76365435",
"0.7619382",
"0.76023877",
"0.75879514",
"0.75794584",
"0.7561686",
"0.7561063",
"0.75419915",
"0.7497448",
"0.74890447",
"0.74890447",
"0.74032533",
"0.73651457",
"0.73629093",
"0.7359876",
"0.7... | 0.72437584 | 29 |
return a string representing the card. if the self__suit number is 11, 12, 13, 1 it will represent it as the allocated word. 'Jack' for 11, 'Queen' for 12, 'King' for 13, 'Ace' for 1 | def wHJl(YKHO):
if YKHO.__value in YKHO.special_cards.keys():
return f'{YKHO.special_cards[YKHO.__value]} of {list(YKHO.__suit.keys())[0]}'
return f'{YKHO.__value} of {list(YKHO.__suit.keys())[0]}' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Uxwc(YKHO):\n return 'the ' + YKHO.number + ' of ' + YKHO.suit",
"def zAg0(YKHO):\n return F1Hz.possible_ranks[YKHO.get_rank()] + ' of ' + F1Hz.possible_suits[YKHO.get_suit()]",
"def zAg0(YKHO):\n if YKHO.rank == 1:\n fdMZ = 'Ace'\n elif YKHO.rank == 11:\n fdMZ = 'Jack'\n elif ... | [
"0.77730477",
"0.77253264",
"0.7672244",
"0.7672244",
"0.7672244",
"0.76354903",
"0.7618907",
"0.7601728",
"0.7587288",
"0.7578918",
"0.7561284",
"0.7560489",
"0.75413436",
"0.7496872",
"0.748841",
"0.748841",
"0.7403165",
"0.736527",
"0.73629284",
"0.73599285",
"0.7336984",
... | 0.6856259 | 57 |
Compare the returned words. If they match with any of them, increment that article by 1 score. Order them by the scoring. | def J1Xb(cmPJ):
try:
for JZXy, mrVf in cmPJ.items():
LH8A = []
for YRbF in mrVf:
YRbF = [Ty9i.lower() for Ty9i in YRbF]
YRbF = kdPk(YRbF)
LH8A.append(YRbF)
cmPJ[JZXy] = LH8A
return cmPJ
except ValueError:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def p1kx(YKHO, V22M):\n return sum([YKHO.map[yzQ0.lower()] for yzQ0 in V22M if yzQ0 in YKHO.map])",
"def yFnZ(PimH, veV6, leAC):\n p1kx = 0\n for V22M in PimH:\n for GIN8 in V22M:\n if GIN8 in leAC:\n p1kx += 10\n p1kx += veV6.count(GIN8) * 5\n return p1kx"... | [
"0.6926982",
"0.6917417",
"0.6593241",
"0.6512832",
"0.6490154",
"0.6472694",
"0.64714676",
"0.64444524",
"0.6431494",
"0.64212674",
"0.6373749",
"0.6369719",
"0.635872",
"0.6329399",
"0.6293726",
"0.62679714",
"0.62457633",
"0.62451065",
"0.6235471",
"0.62286675",
"0.622653"... | 0.0 | -1 |
Return sort name for a jedi completion. Should be passed to the sortText field in CompletionItem. Strings sort az, a comes first and z comes last. Additionally, we'd like to keep the sort order to what Jedi has provided. For this reason, we make sure the sorttext is just a letter and not the name itself. | def USW3(mWFP: Completion, PDtH: str) -> str:
XwRx = mWFP.name
if XwRx is None:
return 'z' + PDtH
if mWFP.type == 'param' and XwRx.endswith('='):
return 'a' + PDtH
if XwRx.startswith('_'):
if XwRx.startswith('__'):
if XwRx.endswith('__'):
return 'y' + ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FXp3(YKHO):\n return YKHO.name",
"def ghaQ(YKHO):\n mWFP = None\n cntZ = YKHO.first_name\n XVAW = YKHO.last_name\n if cntZ:\n mWFP = nJdR(XVAW + ' ' + cntZ)\n else:\n mWFP = nJdR(XVAW)\n YKHO.plone_log('SORTABLE NAME: %s (%s, %s)' % (mWFP, cntZ, XVAW))\n return mWFP",
... | [
"0.7237286",
"0.6480759",
"0.6420965",
"0.6310747",
"0.622974",
"0.5977239",
"0.5967701",
"0.5941757",
"0.5831958",
"0.5733234",
"0.57123953",
"0.57008606",
"0.56696385",
"0.56318206",
"0.56254214",
"0.5609511",
"0.5598304",
"0.5555105",
"0.555455",
"0.553913",
"0.553316",
... | 0.7097156 | 1 |
Clean the completion name, stripping bad surroundings. Currently, removes surrounding " and '. | def ngTB(mWFP: str, w829: str) -> str:
if w829 in {"'", '"'}:
return mWFP.lstrip(w829)
return mWFP | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _c58(YKHO, mWFP):\n mWFP = vIwR.strip(mWFP)\n return mWFP",
"def x0SS(YKHO):\n KCHu = YKHO.name\n nUeQ = YKHO.name\n gI9e = ['(', '[', '<', '{']\n gM5V = [')', ']', '>', '}']\n for YRbF in range(len(gI9e)):\n Fg_i = gI9e[YRbF]\n Z9rn = gM5V[YRbF]\n while Fg_i in KCHu... | [
"0.7032053",
"0.7005236",
"0.6943892",
"0.69092757",
"0.6836212",
"0.67899644",
"0.6775986",
"0.67641705",
"0.67531925",
"0.67188275",
"0.6641973",
"0.65948236",
"0.65942025",
"0.6591104",
"0.658317",
"0.656897",
"0.6565398",
"0.6563049",
"0.65412605",
"0.6535767",
"0.6522921... | 0.7801389 | 0 |
Return the snippet signature. | def xZGc(aadv: Signature) -> str:
NArs: x1iM[MGiK] = aadv.params
if not NArs:
return '()$0'
f7xD = []
UHFx = 1
for xqoZ in NArs:
_N6A = xqoZ.name
if _N6A in rnNr:
continue
if xqoZ.kind in r_JZ:
Oohf = xqoZ.to_string()
if '=' in Oohf... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aadv(YKHO) -> str:\n return qe4Y.get(YKHO, 'signature')",
"def aadv(YKHO) -> str:\n return qe4Y.get(YKHO, 'signature')",
"def aadv(YKHO) -> str:\n return YKHO._signature.content",
"def aadv(YKHO) -> str:\n return YKHO._signature",
"def aadv(YKHO):\n return YKHO._signature",
"def aadv(Y... | [
"0.7677256",
"0.7677256",
"0.72083366",
"0.7134954",
"0.7032445",
"0.7032445",
"0.68868643",
"0.6849381",
"0.68099326",
"0.6770609",
"0.67530835",
"0.67492205",
"0.67454773",
"0.6726243",
"0.66978186",
"0.669634",
"0.66459113",
"0.66459113",
"0.66373414",
"0.66369385",
"0.663... | 0.72423434 | 2 |
Clears the cache of completions used for completionItem/resolve. | def u2QG() -> None:
n2qV.clear() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mGBC(YKHO):\n YKHO.__acCache.clear()",
"def Y7Bk():\n wyyA.clear()\n P2qO.hits = P2qO.misses = 0",
"def ORNU(YKHO):\n if YKHO.tasks:\n del YKHO.__dict__['tasks']",
"def Y7Bk(YKHO):\n YKHO.cache = {}",
"def ORNU(YKHO):\n pass",
"def ORNU(YKHO):\n YKHO._cache = {}",
"def O... | [
"0.778826",
"0.7070338",
"0.70139533",
"0.7013719",
"0.7013298",
"0.69697744",
"0.69697744",
"0.6968879",
"0.6967705",
"0.69443095",
"0.68809813",
"0.6856571",
"0.682618",
"0.6806021",
"0.67950886",
"0.6784674",
"0.67703444",
"0.6764853",
"0.6721026",
"0.6714842",
"0.6714842"... | 0.80857927 | 0 |
Return the full function signature with parameters. | def Pbzl(mWFP: BaseName) -> bDy6[str]:
njXK = mWFP.get_signatures()
S_Iw = mWFP.type
if not njXK:
if S_Iw == 'property':
yield f'{ayR7[S_Iw]} {mWFP.name}'
elif S_Iw not in a5oB:
yield mWFP.description
else:
yield f'{ayR7[S_Iw]} {mWFP.name}()'
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VJZS(JfyU: Callable):\n if isinstance(JfyU, type):\n wEsz = aadv(JfyU.__init__)\n NArs = list(wEsz.parameters.values())\n return wEsz.replace(parameters=NArs[1:])\n return aadv(JfyU)",
"def p3Ap(JfyU: Callable[..., Any]) -> tq_1.Signature:\n return tq_1.signature(JfyU)",
"def ... | [
"0.7694298",
"0.75433725",
"0.7372787",
"0.72604185",
"0.72360545",
"0.7209352",
"0.7146006",
"0.6986063",
"0.69071674",
"0.68906444",
"0.6850055",
"0.6844974",
"0.67714065",
"0.6753772",
"0.67216235",
"0.6669259",
"0.6626803",
"0.66175526",
"0.6573564",
"0.65643543",
"0.6558... | 0.0 | -1 |
No first name form.errors should contain a single error called 'first_name' | def TzDw(YKHO):
nPrm = YKHO.valid_data
nPrm.pop('first_name')
L03z = faua(data=nPrm)
YKHO.assertFalse(L03z.is_valid())
YKHO.assertTrue(len(L03z.errors) == 1)
YKHO.assertTrue('first_name' in L03z.errors) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def T69t(YKHO):\n k7kX = YKHO.makeRequest('/api/account', method='DELETE')\n YKHO.assertSuccessResponse(k7kX)\n SGvN = YKHO.makeRequest('/api/account', method='POST', data={'email': YKHO.TESTING_EMAIL, 'password': 'hunter2', 'first_name': 'Joshuahadda Mohhammed Cervantes Dongelo', 'last_name': 'Perline'})... | [
"0.738496",
"0.7336887",
"0.72614384",
"0.7163993",
"0.6926888",
"0.68524855",
"0.6823182",
"0.6798514",
"0.6717306",
"0.6641964",
"0.6608452",
"0.65765226",
"0.6551555",
"0.6547528",
"0.6504178",
"0.6482555",
"0.6464092",
"0.6461081",
"0.6448767",
"0.643165",
"0.64272743",
... | 0.78540516 | 0 |
Rotate the image. Rotate the image such that the rotated image is enclosed inside the tightest rectangle. The area not occupied by the pixels of the original image is colored black. | def Nqmt(YKHO, LNo8, YylR):
MKlR, yzQ0 = (LNo8.height, LNo8.width)
VCTz, j5Bb = (yzQ0 // 2, MKlR // 2)
E3D9 = XC5k.getRotationMatrix2D((VCTz, j5Bb), YylR, 1.0)
YhSR = oyIN.abs(E3D9[0, 0])
YUNn = oyIN.abs(E3D9[0, 1])
DBnx = int(MKlR * YUNn + yzQ0 * YhSR)
ZXIx = int(MKlR * YhSR + yzQ0 * YUNn)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N0Pp(YKHO, YylR):\n CeMB = jth9.copy(YKHO.getimg())\n o4D3, si3g, bGrB = CeMB.shape\n for WKvO in range(o4D3):\n for LVAh in range(si3g):\n if sum(CeMB[WKvO, LVAh]) == 0:\n CeMB[WKvO, LVAh] = oyIN.array([0, 0, 1])\n VEc1 = aY4d(CeMB, YylR)\n return nS0E(VEc1)",
... | [
"0.7275198",
"0.7174993",
"0.71721834",
"0.71638393",
"0.7130453",
"0.7127445",
"0.70733577",
"0.7047323",
"0.7027434",
"0.69965965",
"0.6985319",
"0.697148",
"0.6969837",
"0.6939099",
"0.68910134",
"0.6863469",
"0.68390536",
"0.6788774",
"0.6770569",
"0.6716458",
"0.66778016... | 0.6808985 | 17 |
Computes IoU overlaps between two sets of boxes. | def I7Mo(wGB6, QFOH):
bzU2 = (wGB6[:, 2] - wGB6[:, 0]) * (wGB6[:, 3] - wGB6[:, 1])
Eq1k = (QFOH[:, 2] - QFOH[:, 0]) * (QFOH[:, 3] - QFOH[:, 1])
PZIW = ht2j.zeros((wGB6.shape[0], QFOH.shape[0])).to(wGB6.device)
for YRbF in range(PZIW.shape[1]):
IkxF = QFOH[YRbF]
PZIW[:, YRbF] = uTwV(IkxF,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I7Mo(wGB6, QFOH):\n print('started computing overlaps')\n bzU2 = (wGB6[:, 2] - wGB6[:, 0]) * (wGB6[:, 3] - wGB6[:, 1])\n Eq1k = (QFOH[:, 2] - QFOH[:, 0]) * (QFOH[:, 3] - QFOH[:, 1])\n PZIW = oyIN.zeros((wGB6.shape[0], QFOH.shape[0]))\n for YRbF in range(PZIW.shape[1]):\n IkxF = QFOH[YRbF]... | [
"0.8278884",
"0.81726915",
"0.81726915",
"0.81726915",
"0.81726915",
"0.81726915",
"0.81726915",
"0.81726915",
"0.81726915",
"0.81647843",
"0.8149386",
"0.80523753",
"0.7996108",
"0.79490596",
"0.7873449",
"0.78133565",
"0.7813201",
"0.77446485",
"0.7686744",
"0.76649636",
"0... | 0.8255725 | 1 |
Compute IoU between two boxes. | def _xWy(knvf, IkxF):
pvBw, JqUn, TYrM, hyHQ = ht2j.split(knvf, 1)
KDnR, gSFI, iM_U, IrGj = ht2j.split(IkxF, 1)
si3g = ht2j.max(pvBw, KDnR)
o4D3 = ht2j.max(JqUn, gSFI)
skBL = ht2j.min(TYrM, iM_U)
ajwV = ht2j.min(hyHQ, IrGj)
iQin = ht2j.mul(ht2j.max(ajwV - o4D3, ht2j.tensor([0], dtype=ht2j.fl... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TFXk(knvf, IkxF):\n mr0K, ABnd, V7mM, CI8m = pM9A(knvf)\n G9pH, _2NJ, aPH5, arTO = pM9A(IkxF)\n sA0R = max(mr0K, G9pH)\n YijY = max(V7mM, aPH5)\n Kphd = min(ABnd, _2NJ)\n sIW6 = min(CI8m, arTO)\n if Kphd < sA0R or sIW6 < YijY:\n return 0.0\n _J3G = (Kphd - sA0R) * (sIW6 - YijY)\n... | [
"0.8502492",
"0.83522856",
"0.82831544",
"0.82811457",
"0.82356644",
"0.8178722",
"0.8147009",
"0.8143378",
"0.8095239",
"0.80715305",
"0.80693",
"0.8063306",
"0.80451286",
"0.804327",
"0.80328494",
"0.8022675",
"0.8018157",
"0.8009314",
"0.80009145",
"0.80009145",
"0.7999677... | 0.81794757 | 5 |
Gets a model artifact or string inputs to an existing Vertex model. | def _aJL(mWvQ: OutputPath(str), C3ST: Output[VertexModel], ZGE9: str, TBez: str=''):
return _QoW(image=t7xG.GCPC_IMAGE_TAG, command=['python3', '-u', '-m', 'google_cloud_pipeline_components.container._implementation.model.get_model.get_model'], args=['--model_name', ZGE9, '--model_version', TBez, '--gcp_resources',... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C3ST(YKHO):\n KCHu = YKHO.run('model')\n KCHu = KCHu.split('\\n')\n return KCHu[1]",
"def Rg6Y():\n return zKZo.StirInputs()",
"def XAXg(YKHO):\n pass",
"def KEB1(TBez: ModelVersion) -> x1iM[str]:\n OPPI = wOed.load(TBez.source)\n return OPPI.signature.inputs.input_names()",
"def Q... | [
"0.6210709",
"0.6111709",
"0.6016882",
"0.5876495",
"0.5791007",
"0.56496596",
"0.5604998",
"0.5597075",
"0.5586912",
"0.55745196",
"0.55201536",
"0.55185175",
"0.5487165",
"0.5473408",
"0.5471814",
"0.54621255",
"0.54591924",
"0.54309744",
"0.54151654",
"0.5406015",
"0.54034... | 0.66584224 | 0 |
Build a camera from a serialized vector of parameters. | def h1RL(hBdd: str, TVTK: int, H2v2: int, x1MO: str, SGPK: List[float]) -> bQDx.Camera:
if x1MO == 'perspective':
qvah, LEev, Xyq7 = SGPK
yDvq = bQDx.Camera.create_perspective(qvah, LEev, Xyq7)
elif x1MO == 'brown':
AOlJ, stDt, UV8M, vHO5, LEev, Xyq7, EBgd, HpuQ, PDUN = SGPK
yDvq... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, Rci7=oiD0, AnAi=ZPoF, NlCq=None, VIPT=None, wMVm=None, tm40=drlI, vJPk=Tto_):\n YKHO.type = 'Camera'\n YKHO._db_fields = []\n YKHO._data_fields = ['location', 'fix_location', 'rotation_euler', 'frames', 'fix_frames', 'lens', 'clip']\n YKHO._temp_fields = ['blender_camera', 'blender_fixat... | [
"0.61063796",
"0.60678804",
"0.6028555",
"0.57384217",
"0.5729677",
"0.5724093",
"0.56813836",
"0.56240726",
"0.55949736",
"0.555365",
"0.55514836",
"0.55126685",
"0.54964966",
"0.5457617",
"0.54483163",
"0.5376583",
"0.5345591",
"0.5344403",
"0.53315204",
"0.53134084",
"0.52... | 0.6320941 | 0 |
Open a file in text mode for writing utf8. | def zYZ6(pmON: str) -> diMR[ImMB]:
return open(pmON, 'w', encoding='utf-8') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Lsrz(YKHO, l5Ny):\n with xDSY.open(YKHO.filepath, mode='w', encoding='utf8') as eHNT:\n eHNT.write(l5Ny)",
"def zyFt(Ux0P='', l5Ny=''):\n with open(Ux0P, 'w', encoding='UTF8') as WKvO:\n mVcQ = WKvO.write(l5Ny)\n return mVcQ",
"def AJfk(FUjE, Ux0P):\n jY1r = T_Uj.open(Ux0P, 'w', '... | [
"0.7143659",
"0.7114745",
"0.70886594",
"0.6975606",
"0.6967239",
"0.6923264",
"0.69020504",
"0.6892339",
"0.6881782",
"0.68733627",
"0.6860889",
"0.6845372",
"0.6832433",
"0.68163675",
"0.68163675",
"0.6805205",
"0.68031406",
"0.679288",
"0.67915356",
"0.6777853",
"0.6744388... | 0.0 | -1 |
Load image as an array ignoring EXIF orientation. | def G7TY(fcLg, qWz7: bool=False, ZynR: bool=False, Fkv3: bool=False) -> oyIN.ndarray:
if QpfX.OPENCV3:
if qWz7:
JbyC = XC5k.IMREAD_GRAYSCALE
elif ZynR:
JbyC = XC5k.IMREAD_UNCHANGED
else:
JbyC = XC5k.IMREAD_COLOR
try:
JbyC |= XC5k.IMREAD... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uWsq(QMAG):\n return hnIv.open(QMAG)",
"def q5aE(gIsw, format=None):\n with w2XM.open(gIsw, 'rb') as eHNT:\n LNo8 = hnIv.open(eHNT)\n LNo8 = Lp6C(LNo8)\n return bQAM(LNo8, format)",
"def gaDA(VqRE: str) -> oyIN.ndarray:\n VXjJ = hnIv.open(VqRE)\n VXjJ = oyIN.array(VXjJ)\n ... | [
"0.70527965",
"0.68480265",
"0.6805067",
"0.6721858",
"0.6715708",
"0.6706676",
"0.6701137",
"0.6637042",
"0.6612234",
"0.6599041",
"0.6598427",
"0.65932906",
"0.65919614",
"0.65911764",
"0.65610707",
"0.6526597",
"0.6468977",
"0.6464854",
"0.6451115",
"0.64234275",
"0.641845... | 0.0 | -1 |
Return the escaped HTML code to embed this video. | def GYll(YKHO):
return DfCi(QoFb(YKHO.shortlink)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q1PJ(YKHO):\n return YKHO.video_embed",
"def OBh8(YKHO):\n return N1Ek(YKHO.id, YKHO.webpage_url)",
"def Xm_u(sD9D, TVTK=400, H2v2=400):\n l5Ny = '\\n<embed src=\"%(moviefile)s\"\\nwidth=\"%(width)s\"\\nheight=\"%(height)s\"\\nautoplay=\"false\"\\nloop=\"true\">\\n</embed>\\n' % vars()\n return... | [
"0.7224296",
"0.6920647",
"0.6905031",
"0.6648409",
"0.6639209",
"0.6479817",
"0.64694047",
"0.64304376",
"0.6411391",
"0.63925636",
"0.63854676",
"0.63645214",
"0.6362627",
"0.63098174",
"0.6282629",
"0.62640774",
"0.6233747",
"0.6233747",
"0.6212456",
"0.6196237",
"0.618925... | 0.70887536 | 1 |
Return the url for this video's details page. | def a1QU(YKHO):
return gxEw('flicks.videos.details', kwargs={'video_id': YKHO.id}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BA0E(YKHO):\n f6W2 = YKHO.get_video()\n if f6W2 is not None:\n return f6W2.get_absolute_url()\n else:\n return ''",
"def qBh3(YKHO):\n Xx5f = gxEw('web-video-detail', kwargs={'hash_key': YKHO.video.hash_key})\n bD7m = '{base}{path}'.format(base=gCuF.HTTP_DOMAIN, path=Xx5f)\n r... | [
"0.7992177",
"0.792574",
"0.7711068",
"0.7493985",
"0.74542814",
"0.7304552",
"0.72893745",
"0.72759414",
"0.71596086",
"0.7091126",
"0.70819217",
"0.70008487",
"0.69026923",
"0.6894766",
"0.6882075",
"0.67966914",
"0.67917335",
"0.67904407",
"0.67833143",
"0.67501795",
"0.67... | 0.8603321 | 0 |
Retrieve the viewcount for this video from the cache. | def n6SY(YKHO):
from flicks.videos.util import cached_viewcount
return cached_viewcount(YKHO.id) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EUFu(YKHO):\n if not YKHO.video_count_cache:\n YKHO.video_count_cache = YKHO.videopage_set.count()\n YKHO.save()\n return YKHO.video_count_cache",
"def EUFu(YKHO):\n if not YKHO.video_count_cache:\n PlSv = sum((ZfUD.video_count() for ZfUD in YKHO.teachitem_set.all()))\n A... | [
"0.76593554",
"0.72707796",
"0.7193857",
"0.6966713",
"0.6966713",
"0.68560225",
"0.6616161",
"0.65967554",
"0.6504978",
"0.64761245",
"0.64599466",
"0.6395336",
"0.6387199",
"0.63745916",
"0.6348989",
"0.63471615",
"0.628924",
"0.62840027",
"0.6258915",
"0.62553114",
"0.6218... | 0.82952887 | 0 |
Add a query to the current pipeline. | def b5UB(YKHO, JfyU: Callable, ia3Z: bool=False, JWw_: bool=False, XNhq: bool=False, k9EP: bool=False, ukSj: Optional[Callable]=None, G5NW: Optional[int]=None):
if not ia3Z and G5NW is not None:
raise ValueError('Output ID cannot be specified for non-output node.')
if ia3Z:
if not YKHO.is_output... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H2v5(YKHO, xDcj):\n YKHO.__setitem__(xDcj.name(), xDcj)",
"def H2v5(YKHO, xDcj):\n YKHO.__setitem__(xDcj.name(), xDcj)",
"def b5UB(YKHO, xDcj):\n YKHO.job['job'][YKHO.job_type]['queryList'] = {'queries': [xDcj]}",
"def H2v5(YKHO, xDcj):\n YKHO.list_db.append(xDcj)",
"def viaA(YKHO, vexM, w2... | [
"0.7512505",
"0.7454578",
"0.74216914",
"0.70334756",
"0.67208266",
"0.6528317",
"0.6500055",
"0.6500055",
"0.6500055",
"0.64335966",
"0.64256144",
"0.64256144",
"0.6317859",
"0.6313927",
"0.62329876",
"0.6216826",
"0.6201973",
"0.6177418",
"0.6140366",
"0.61202097",
"0.60511... | 0.546484 | 66 |
Returns functions to use in the Data loader (collate_fn). Image features and position features are stacked (with padding) and returned. For text, the function "text_padding" takes all text elements, and is expected to return a list or stacked tensor. | def a29n(YKHO):
def QxcP(gGnb):
BzZE = [KCHu['img_feat'] for KCHu in gGnb]
SZqc = [KCHu['img_pos_feat'] for KCHu in gGnb]
z_aV = [KCHu['text'] for KCHu in gGnb]
Crrw = [KCHu['label'] for KCHu in gGnb]
kwEa = [KCHu['data_id'] for KCHu in gGnb]
if not YKHO.text_only:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a29n(YKHO):\n\n def QxcP(gGnb):\n z_aV = [KCHu[0] for KCHu in gGnb]\n if YKHO.text_tokenize is not None:\n z_aV = YKHO.text_tokenize(z_aV)\n Crrw = ht2j.stack([KCHu[1] for KCHu in gGnb])\n return (z_aV, Crrw)\n return QxcP",
"def KbW8(Wc9F: Tuple[Tuple[Tensor], Tu... | [
"0.6720017",
"0.65148425",
"0.63559365",
"0.6346099",
"0.6192853",
"0.6141583",
"0.5989114",
"0.5978669",
"0.584919",
"0.58047426",
"0.57663274",
"0.57287806",
"0.5705645",
"0.5675539",
"0.56568354",
"0.56442887",
"0.56271",
"0.5623085",
"0.56165165",
"0.55945194",
"0.5584545... | 0.7634796 | 0 |
Merges two dictionaries and returns a new dictionary. If same keys has provided in both dictionaries, `dict2` will be dominant. | def vGZu(*, WbPA: Dict[str, Any], S69B: Dict[str, Any]) -> cuzp[str, ImMB]:
return {**WbPA, **S69B} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vGZu(tMxp, LxWn):\n return dict(((str(H5ew), tMxp.get(H5ew) or LxWn.get(H5ew)) for H5ew in set(LxWn) | set(tMxp)))",
"def vGZu(tMxp, LxWn):\n return dict(((str(H5ew), tMxp.get(H5ew) or LxWn.get(H5ew)) for H5ew in set(LxWn) | set(tMxp)))",
"def vGZu(tMxp, LxWn):\n return dict(((str(H5ew), tMxp.get(... | [
"0.822821",
"0.822821",
"0.8217425",
"0.80191606",
"0.8017967",
"0.79315066",
"0.78832376",
"0.78722996",
"0.7865633",
"0.7863399",
"0.7804261",
"0.7799808",
"0.77701515",
"0.7749636",
"0.76849043",
"0.766523",
"0.7664288",
"0.76319665",
"0.76123136",
"0.7597999",
"0.7558915"... | 0.79333365 | 5 |
Updates `dict1` by adding values from `dict2`. It doesn't returns the updated dictionary, instead it updates in place. | def QdZT(*, WbPA: Union[Dict[str, Any], ConduitVariable], S69B: Union[Dict[str, Any], ConduitVariable]) -> None:
WbPA.update(S69B) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fMCX(YKHO, AjzU, _sQW):\n for G1Hx, Ty9i in AjzU.items():\n if G1Hx not in _sQW:\n _sQW[G1Hx] = Ty9i\n else:\n _sQW[G1Hx] = _sQW[G1Hx] + Ty9i\n return _sQW",
"def HtD3(b7IY, qw9H):\n if b7IY and qw9H:\n for H5ew in b7IY:\n qw9H[H5ew] = b7IY[H5ew]... | [
"0.8180521",
"0.81794155",
"0.8141174",
"0.8141174",
"0.81157804",
"0.80756575",
"0.806376",
"0.80107254",
"0.7926229",
"0.7894095",
"0.7789332",
"0.7770022",
"0.7703041",
"0.76643413",
"0.76461184",
"0.76272345",
"0.75785315",
"0.75075287",
"0.747997",
"0.7477886",
"0.747217... | 0.73497593 | 22 |
Returns a list of values in the dictionary. | def ivr0(*, cmPJ: Dict[str, Any]) -> x1iM[ImMB]:
return list(cmPJ.values()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hkxX(YKHO):\n return [YKHO.dict[H5ew] for H5ew in YKHO.keys()]",
"def hkxX(YKHO):\n yv6U = []\n for H5ew in YKHO:\n yv6U.append(YKHO[H5ew])\n return yv6U",
"def list(YKHO):\n return list(YKHO.myDict.items())",
"def hkxX(YKHO):\n qhIu = []\n for H5ew in YKHO._cles:\n qhI... | [
"0.8377095",
"0.83684903",
"0.8211745",
"0.8209603",
"0.81038815",
"0.80938435",
"0.80751723",
"0.80252564",
"0.8009541",
"0.79989785",
"0.79440737",
"0.7921589",
"0.79037327",
"0.78875685",
"0.7867859",
"0.7807912",
"0.77506804",
"0.77500224",
"0.77066034",
"0.76766217",
"0.... | 0.8005461 | 9 |
Tests to see whether the thing given to it is a dictionary or not. | def lYD4(*, BWXx: Any) -> bool:
return isinstance(BWXx, dict) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def p7VF(vGaq):\n return isinstance(vGaq, SnBA.DictType)",
"def p7VF(vGaq):\n return type(vGaq) is SnBA.DictType",
"def p7VF(input):\n return type(input) == qnBW",
"def p7VF(xHuz):\n return type(xHuz) is dict",
"def p7VF(YEnM):\n if type(YEnM) is dict:\n return True",
"def p7VF(BWXx... | [
"0.8939635",
"0.8874654",
"0.85484564",
"0.8497687",
"0.8251633",
"0.82356054",
"0.82356054",
"0.82214403",
"0.81992066",
"0.8181184",
"0.8111953",
"0.80835503",
"0.8043563",
"0.7923162",
"0.79159117",
"0.7884939",
"0.7650292",
"0.75785303",
"0.7541197",
"0.73241615",
"0.7290... | 0.82983536 | 4 |
Provide tests for POST request with invalid JSON data. | def I5Jw(YKHO):
pmON = '/api/'
ZVSX = 'invalid json'
geh0 = YKHO.client.post(pmON, ZVSX, content_type='application/json')
YKHO.assertEqual(geh0.status_code, 400) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WNqr(YKHO):\n TFbm = qQXR.dumps({'error': 'Incorrect JSON format.'})\n bD7m = gxEw('check')\n nPrm = qQXR.dumps({'plugin': '10', 'run_freq': '15', 'target_port': '3000', 'state': False})\n geh0 = YKHO.client.post(bD7m, data=nPrm, content_type='application/json')\n afx5 = geh0.content.decode('utf... | [
"0.8250923",
"0.8232727",
"0.81966347",
"0.81396806",
"0.80367494",
"0.8036413",
"0.8008952",
"0.79591185",
"0.79571855",
"0.7951262",
"0.79490465",
"0.7898148",
"0.7882586",
"0.787878",
"0.7876586",
"0.7875638",
"0.78542393",
"0.78522956",
"0.78280455",
"0.7824618",
"0.78085... | 0.8620664 | 0 |
Provide tests for PUT request with invalid JSON data. | def B9FU(YKHO):
pmON = '/api/'
ZVSX = 'invalid json'
geh0 = YKHO.client.put(pmON, ZVSX, content_type='application/json')
YKHO.assertEqual(geh0.status_code, 400) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EC83(YKHO):\n TFbm = qQXR.dumps({'error': 'Incorrect JSON format.'})\n bD7m = gxEw('check', args=[22])\n nPrm = qQXR.dumps({'plugin': '10', 'run_freq': '15', 'target_port': '3000', 'state': False})\n geh0 = YKHO.client.put(bD7m, data=nPrm, content_type='application/json')\n afx5 = geh0.content.d... | [
"0.8066888",
"0.7789047",
"0.7746508",
"0.7732908",
"0.7577011",
"0.7575585",
"0.75641996",
"0.75344396",
"0.7524583",
"0.75229573",
"0.743122",
"0.74255353",
"0.7414645",
"0.7366505",
"0.7356723",
"0.7281891",
"0.7229116",
"0.72088647",
"0.7172025",
"0.7087644",
"0.70817196"... | 0.87060374 | 0 |
Provide tests for success requests on `home` URL both for user and guest. | def JxQh(YKHO):
pmON = gxEw('index')
geh0 = YKHO.guest_client.get(pmON)
YKHO.assertEqual(geh0.status_code, 200)
geh0 = YKHO.user_client.get(pmON)
YKHO.assertEqual(geh0.status_code, 200) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def krbx(YKHO):\n YKHO.test_1_login_success()\n geh0 = YKHO.client.get(gxEw('home'), YKHO.test_user, follow=True)\n YKHO.assertEqual(geh0.status_code, 200)",
"def qEah(YKHO):\n pass",
"def rKWs(YKHO):\n geh0 = YKHO.client.get(nKyW('home'))\n YKHO.assertEqual(geh0.status_code, 200)",
"def Gv... | [
"0.8126718",
"0.7752366",
"0.766213",
"0.758167",
"0.7576277",
"0.75693077",
"0.7513255",
"0.74915415",
"0.7468636",
"0.7461251",
"0.7457078",
"0.74508107",
"0.7441939",
"0.74168956",
"0.7414381",
"0.73779774",
"0.73489195",
"0.7338486",
"0.7329047",
"0.73115796",
"0.7288346"... | 0.8694379 | 0 |
Get arguments from command line with argparse. | def rwTO():
wvEv = j1Jz.ArgumentParser(prog='RMA-class-join.py', description='Summarize read assignments obtained from MEGAN RMA files.')
wvEv.add_argument('-c', '--counts', required=True, nargs='+', help='The complete set of read count files.')
wvEv.add_argument('-s', '--summaries', required=True, nargs='+... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zdt4():\n wvEv = j1Jz.ArgumentParser()\n wvEv.add_argument('--HITId', type=str)\n qIxc = wvEv.parse_args()\n return qIxc",
"def uvp4(E0cB):\n wvEv = j1Jz.ArgumentParser(description=__doc__)\n Ltpw = wvEv.parse_args(E0cB[1:])\n return Ltpw",
"def zdt4():\n wvEv = j1Jz.ArgumentParser(... | [
"0.8369825",
"0.8067497",
"0.79318786",
"0.7922146",
"0.79132515",
"0.78207684",
"0.7810689",
"0.775863",
"0.77324706",
"0.7705316",
"0.76967907",
"0.76945746",
"0.76842487",
"0.7635844",
"0.76347595",
"0.7597656",
"0.756166",
"0.7515335",
"0.75100017",
"0.75071555",
"0.74935... | 0.0 | -1 |
Convert batched sparse matrix to a dense matrix. | def sBIS(vb7U):
return YoiB(vb7U.data, vb7U.indices, spinfo=vb7U._info) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NG8_(YKHO):\n r8hN = max([Fg_i.row_start + Fg_i.matrix.shape[0] for Fg_i in YKHO.blocks])\n exwG = max([Fg_i.column_start + Fg_i.matrix.shape[1] for Fg_i in YKHO.blocks])\n vb7U = oyIN.zeros((r8hN, exwG))\n for Fg_i in YKHO.blocks:\n g3eu = Fg_i.row_start\n OAgx = Fg_i.column_start\n ... | [
"0.73595196",
"0.69846195",
"0.6952977",
"0.68776506",
"0.68457913",
"0.6767535",
"0.676589",
"0.6613725",
"0.6514747",
"0.6489185",
"0.6375507",
"0.6371839",
"0.63361996",
"0.6332229",
"0.63238806",
"0.6305202",
"0.63043976",
"0.6304276",
"0.62424374",
"0.6232316",
"0.622590... | 0.6901874 | 3 |
Convert batched sparse matrix to a dense matrix. | def YoiB(nPrm, _0VL, *, txYS):
return OE0F.bind(oLG2.asarray(nPrm), oLG2.asarray(_0VL), spinfo=txYS) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NG8_(YKHO):\n r8hN = max([Fg_i.row_start + Fg_i.matrix.shape[0] for Fg_i in YKHO.blocks])\n exwG = max([Fg_i.column_start + Fg_i.matrix.shape[1] for Fg_i in YKHO.blocks])\n vb7U = oyIN.zeros((r8hN, exwG))\n for Fg_i in YKHO.blocks:\n g3eu = Fg_i.row_start\n OAgx = Fg_i.column_start\n ... | [
"0.73595196",
"0.69846195",
"0.6952977",
"0.6901874",
"0.68776506",
"0.68457913",
"0.6767535",
"0.676589",
"0.6613725",
"0.6514747",
"0.6489185",
"0.6375507",
"0.6371839",
"0.63361996",
"0.6332229",
"0.63238806",
"0.6305202",
"0.63043976",
"0.6304276",
"0.62424374",
"0.623231... | 0.62259084 | 21 |
Sparse implementation of {func}`jax.lax.reshape`. | def sdXP(vb7U, *, pz14, DbyF):
if vb7U.n_dense:
raise NotImplementedError('bcoo_reshape for matrices with dense dimensions.')
if vb7U.n_batch:
Ep8u = oyIN.prod(vb7U.shape[:vb7U.n_batch])
rjkP = oyIN.cumprod(pz14)
if Ep8u not in rjkP:
raise ValueError(f'bcoo_reshape: n... | {
"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 CriV(WKvO):\n exwG, Z9rn, MKlR, yzQ0 = WKvO.shape\n return WKvO.reshape((exwG * Z9rn, 1, MKlR, yzQ0), order='C')",
"def q3V_(WKvO):\n return WKvO.values.reshape(-1, e7uc)",... | [
"0.6458267",
"0.624835",
"0.61879057",
"0.61841303",
"0.6135465",
"0.6135465",
"0.60707307",
"0.60381514",
"0.59948725",
"0.5987187",
"0.59495497",
"0.5929262",
"0.5920464",
"0.5918574",
"0.58996755",
"0.5897213",
"0.58466685",
"0.58190554",
"0.580646",
"0.58053774",
"0.57914... | 0.5529165 | 75 |
An elementwise multiplication between a sparse and a dense array. | def NFQO(HBwN, Ty9i):
return BKJm(*HBwN._bufs, Ty9i, spinfo=HBwN._info) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jDY8(VECZ, _0VL, WKvO):\n ywwl = WKvO.size\n k0lF = LoH6(VECZ, _0VL, shape=(ywwl, ywwl))\n return k0lF.dot(WKvO)",
"def EZYX(jzdc, Fg_i, yloR=False):\n if KN5h(jzdc) or KN5h(Fg_i):\n U5bT = lqeT(jzdc).multiply(Fg_i)\n if yloR and hasattr(U5bT, 'toarray'):\n U5bT = U5bT.to... | [
"0.7613133",
"0.7367537",
"0.72763634",
"0.6848888",
"0.67759144",
"0.6565019",
"0.6551312",
"0.64301586",
"0.6425498",
"0.6380514",
"0.6306792",
"0.6302501",
"0.6236174",
"0.61733335",
"0.61641777",
"0.6154918",
"0.6116459",
"0.6108933",
"0.6104503",
"0.60944486",
"0.6083793... | 0.6606541 | 5 |
Return a copy of the matrix with indices sorted. | def Qhop(YKHO):
return uymV(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oKXt(YKHO):\n if YKHO.shuffle:\n _0VL = oyIN.random.permutation(len(YKHO))\n else:\n _0VL = oyIN.arange(len(YKHO))\n return _0VL[oyIN.argsort(YKHO.sizes[_0VL], kind='mergesort')]",
"def oKXt(YKHO):\n if YKHO.shuffle:\n _0VL = oyIN.random.permutation(len(YKHO))\n else:\n ... | [
"0.6479821",
"0.641063",
"0.623428",
"0.61886907",
"0.61886907",
"0.61597914",
"0.61422545",
"0.6122622",
"0.61108345",
"0.60982025",
"0.60080135",
"0.6004042",
"0.5976308",
"0.59505",
"0.5926338",
"0.5894093",
"0.5885865",
"0.58371145",
"0.581318",
"0.57903993",
"0.5785391",... | 0.7059001 | 0 |
Create a dense version of the array. | def kieB(YKHO):
return sBIS(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kieB(YKHO, jzdc):\n raise NotImplementedError()",
"def NG8_(YKHO):\n return l6ZH(XTiz.block(YKHO._b.tolist()))",
"def NG8_(YKHO) -> auK0[HWEd, 'N N']:\n return oLG2.zeros(YKHO.shape)",
"def NG8_(YKHO):\n raise NotImplementedError",
"def kieB(YKHO):\n return YKHO.matmat(oyIN.eye(YKHO.shap... | [
"0.7150469",
"0.7093116",
"0.7089447",
"0.7086579",
"0.6973845",
"0.69666356",
"0.6919641",
"0.6859278",
"0.6758732",
"0.67534965",
"0.66949815",
"0.64011365",
"0.63852286",
"0.6337257",
"0.6311564",
"0.6292109",
"0.62809414",
"0.6191345",
"0.619059",
"0.61736584",
"0.6071729... | 0.67768097 | 8 |
Create a new array containing the transpose. | def l7uB(YKHO, MPlV=None):
MPlV = oyIN.arange(YKHO.ndim)[::-1] if MPlV is None else MPlV
BGPF = SXG6(YKHO, permutation=MPlV)
fd7F = tuple((YKHO.shape[YRbF] for YRbF in MPlV))
qtkU = [XP5J - YKHO.n_batch for XP5J in MPlV[YKHO.n_batch:YKHO.n_batch + YKHO.n_sparse]]
if tuple(qtkU) == tuple(range(YKHO.n... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def q3ZY(YKHO):\n Aofo = []\n for LVAh in range(YKHO.shape[1]):\n Aofo.append([])\n for WKvO in range(YKHO.shape[0]):\n Aofo[LVAh].append(YKHO.matrix[WKvO][LVAh])\n return SppC(Aofo)",
"def l7uB(YKHO):\n Jg2u = []\n for YRbF in range(4):\n Jg2u.append([])\n f... | [
"0.78602165",
"0.78584486",
"0.7674527",
"0.7646534",
"0.7646534",
"0.7638815",
"0.76276624",
"0.76276624",
"0.7612698",
"0.7593176",
"0.75413233",
"0.7497069",
"0.7497069",
"0.74945146",
"0.7468201",
"0.74477535",
"0.7428807",
"0.7427894",
"0.7415454",
"0.73990893",
"0.73829... | 0.0 | -1 |
Lookup a player based on a list of selected object IDs Works like `lookup_player_from_object`, but with a list of IDs. If we know the owner of any, we can return a player_id | def R4rV(YKHO, aQhN, db6b=None):
LZbL = None
for id in aQhN:
LZbL = YKHO.lookup_player_from_object(id)
if LZbL is not None:
break
if db6b is not None:
if LZbL is not None:
db6b(LZbL)
else:
YKHO.unresolved_lookups.append({'object_id': aQhN, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nAM4(LZbL, LU8G):\n for oyg0 in LU8G:\n if LZbL == oyg0[0]:\n return oyg0\n return None",
"def sJbm(YKHO, NBcv, db6b=None):\n LZbL = None\n if NBcv in YKHO.objects:\n LZbL = YKHO.objects[NBcv]['player_id']\n if LZbL is not None and db6b is not None:\n db6b(LZbL)... | [
"0.70835775",
"0.65382993",
"0.6312999",
"0.62408364",
"0.6232349",
"0.6216062",
"0.6183613",
"0.61323494",
"0.6093854",
"0.60822797",
"0.6068237",
"0.6008899",
"0.5971742",
"0.5792426",
"0.5787824",
"0.5768455",
"0.57589424",
"0.5742553",
"0.5727314",
"0.57239497",
"0.572234... | 0.79327756 | 0 |
Aggregate count of actions classified using the design space classification and the action type classification method. | def ox0B(N5Pj: iter, gIsw: str, wq9h=False) -> cuzp:
upJ2 = [[0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0]]
next(N5Pj)
if not wq9h:
UHFx = upJ2
else:
UHFx = {}
for rdlD in N5Pj:
"\n Each row has format: \n ['Index', 'Event Time', 'Document', 'Tab', 'User', 'Description... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mC3L(YKHO, xASv):\n wjRY = rLdf.DataFrame(xASv['token'].value_counts()).reset_index().rename({'index': 'token', 'token': 'counts'}, axis=1)\n UODG = rLdf.DataFrame(xASv[xASv['survive'] == 1]['token'].value_counts()).reset_index().rename({'index': 'token', 'token': 'counts'}, axis=1)\n return (wjRY, UO... | [
"0.6647923",
"0.61379904",
"0.605004",
"0.5979491",
"0.59652746",
"0.5811983",
"0.57980657",
"0.5747496",
"0.5733983",
"0.57293147",
"0.57225865",
"0.5703737",
"0.5691457",
"0.56827533",
"0.56827533",
"0.5678527",
"0.56550634",
"0.56262994",
"0.56186116",
"0.5555599",
"0.5540... | 0.0 | -1 |
Return a list of commandline arguments reproducing the current settings in sys.flags and sys.warnoptions. | def H5P4():
zqTz = {'debug': 'd', 'optimize': 'O', 'dont_write_bytecode': 'B', 'no_user_site': 's', 'no_site': 'S', 'ignore_environment': 'E', 'verbose': 'v', 'bytes_warning': 'b', 'py3k_warning': '3'}
qIxc = []
for I1mm, y7GR in zqTz.items():
Ty9i = getattr(HwRy.flags, I1mm)
if Ty9i > 0:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qIxc(YKHO):\n VKhi = [(f'--{G1Hx}', Ty9i) for G1Hx, Ty9i in YKHO.options.items()]\n return list(PWgb(VKhi))",
"def jE0e():\n for YRbF in range(len(HwRy.argv)):\n if HwRy.argv[YRbF].startswith('--'):\n return HwRy.argv[YRbF:]\n return []",
"def BV7_():\n qIxc = {}\n for Y... | [
"0.7800211",
"0.7546022",
"0.7418622",
"0.7359047",
"0.7302929",
"0.72986966",
"0.7263432",
"0.72452104",
"0.71082854",
"0.70795214",
"0.70724756",
"0.70678514",
"0.7042145",
"0.69665754",
"0.6959674",
"0.6956056",
"0.6921434",
"0.6901986",
"0.6886182",
"0.68675786",
"0.68535... | 0.7822351 | 0 |
This function search in array the smallest positive integer that doesn't occur in the array | def DX5T(qw7D):
Cc1W = []
for jzdc in qw7D:
if jzdc > 0:
if jzdc not in Cc1W:
Cc1W.append(jzdc)
if Cc1W == []:
return 1
Cc1W.sort()
M80v = list(range(1, len(Cc1W) + 1))
for d6pt, U6D_ in enumerate(M80v):
if not M80v[d6pt] == Cc1W[d6pt]:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jl2H(ezWE: Sequence) -> int:\n VMHH = ezWE[0]\n Tj_U = 0\n exwG = len(ezWE)\n for YRbF in range(1, exwG):\n if VMHH > ezWE[YRbF]:\n VMHH = ezWE[YRbF]\n Tj_U = YRbF\n return Tj_U",
"def GERS(k0lF):\n abZk = True\n t4HM = max(k0lF)\n Pgpp = {exwG: False for ... | [
"0.7403827",
"0.71983874",
"0.70895785",
"0.7075722",
"0.69427574",
"0.692909",
"0.6916377",
"0.6824712",
"0.678779",
"0.67845553",
"0.6671206",
"0.666881",
"0.6662051",
"0.6645945",
"0.6621807",
"0.6616313",
"0.6603549",
"0.6587806",
"0.6567173",
"0.65529627",
"0.65260684",
... | 0.72154695 | 1 |
This method builds all the loaders. One analytics_loader.py is basically all the indicators of a given time stamp that will be fed. There is no need to separate between 'is_open' and 'is_closed' indicators in is_load, this implementation was done on the 'Loader' class. | def w3LV(YKHO):
o36Q = bf9h.currencies_dict[YKHO.asset]
x2Pk = YKHO.strategy.indicator_list
rVw8 = [ncRm(x2Pk[i8WE], o36Q, i8WE, YKHO.broker_instance) for i8WE in range(len(x2Pk))]
return rVw8 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SELc(YKHO):\n ypXH, I7Gy = (YKHO.io_params['batch_size'], YKHO.io_params['num_workers'])\n Pa1c = pVAc(YKHO.train_dset, batch_size=ypXH, shuffle=True, num_workers=I7Gy)\n fC9l = pVAc(YKHO.val_dset, batch_size=ypXH, shuffle=False, num_workers=I7Gy)\n YKHO.train_steps = len(YKHO.train_dset)\n retu... | [
"0.6319721",
"0.63128984",
"0.6288612",
"0.620683",
"0.6191617",
"0.61877817",
"0.60513175",
"0.59611833",
"0.58760685",
"0.5845431",
"0.5815476",
"0.5798978",
"0.57522696",
"0.5746028",
"0.5742895",
"0.5707273",
"0.56911445",
"0.56652886",
"0.56223243",
"0.5617024",
"0.56019... | 0.7636696 | 0 |
Test "get_icon_choices_by_category" method with TypeError. | def rVk6(YKHO, Pc_9):
B2fa = dict(category='current')
Pc_9.return_value = None
Aofo = WYzn.StorageIcon.get_icon_choices_by_category(**B2fa)
K4sN.assert_equal(Aofo, None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nn9y(YKHO, Pc_9):\n B2fa = dict(category='current')\n Pc_9.return_value = ({'id': 1, 'css': 'coins', 'category': 'current'}, {'id': 2, 'css': 'coin-9', 'category': 'current'})\n Aofo = WYzn.StorageIcon.get_icon_choices_by_category(**B2fa)\n K4sN.assert_equal(Aofo, (('1', 'coins'), ('2', 'coin-9')))... | [
"0.7989007",
"0.61751896",
"0.6118292",
"0.60126257",
"0.5974316",
"0.5938008",
"0.5918305",
"0.59023744",
"0.58903646",
"0.588458",
"0.58762616",
"0.58100533",
"0.5766126",
"0.57268924",
"0.57165277",
"0.571618",
"0.5709651",
"0.56916744",
"0.56827164",
"0.55856884",
"0.5578... | 0.86325747 | 0 |
Test "get_icon_choices_by_category" method with success. | def nn9y(YKHO, Pc_9):
B2fa = dict(category='current')
Pc_9.return_value = ({'id': 1, 'css': 'coins', 'category': 'current'}, {'id': 2, 'css': 'coin-9', 'category': 'current'})
Aofo = WYzn.StorageIcon.get_icon_choices_by_category(**B2fa)
K4sN.assert_equal(Aofo, (('1', 'coins'), ('2', 'coin-9'))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rVk6(YKHO, Pc_9):\n B2fa = dict(category='current')\n Pc_9.return_value = None\n Aofo = WYzn.StorageIcon.get_icon_choices_by_category(**B2fa)\n K4sN.assert_equal(Aofo, None)",
"def OLIT(YKHO):\n YKHO.assertTrue(len(YKHO.app.show_images_by_category('test')) == 1)",
"def _562(YKHO):\n pass"... | [
"0.80123806",
"0.6508062",
"0.6352596",
"0.621675",
"0.61221784",
"0.6112878",
"0.61128765",
"0.6102894",
"0.6064759",
"0.6039623",
"0.60081726",
"0.60005033",
"0.5996633",
"0.59939593",
"0.5986954",
"0.597148",
"0.5966917",
"0.5956746",
"0.5954681",
"0.5947848",
"0.59171855"... | 0.8789381 | 0 |
Return the hessian values | def e_VS(C3ST, K7Z1, nPrm):
WKvO = vhpA.vector()
MKlR = e89i.gradient.hessian(C3ST.encode(WKvO)[K7Z1], WKvO)
FYKK = e89i.function(inputs=[WKvO], outputs=MKlR)
return FYKK(nPrm) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IrHh(YKHO):\n C7Ls, Fg_i = YKHO.graph.get_hessian()\n return (C7Ls.toarray(), Fg_i)",
"def ahIi():\n raise NotImplementedError",
"def e_VS(YKHO, NArs: ArrayLike) -> oyIN.ndarray:\n return -YKHO.information(NArs)",
"def e_VS(YKHO, WKvO):\n raise NotImplementedError('hessian has not been def... | [
"0.84171104",
"0.7873911",
"0.7736052",
"0.7730689",
"0.7614885",
"0.7542782",
"0.7542782",
"0.7457404",
"0.73283327",
"0.72384953",
"0.7225667",
"0.7160132",
"0.71518517",
"0.7122953",
"0.70841223",
"0.70557064",
"0.7014843",
"0.6956771",
"0.693487",
"0.68335783",
"0.6774268... | 0.68911064 | 19 |
Create and save a User with the given email and password. | def lYUQ(YKHO, D3lj, jTXt, **wdCM):
if not D3lj:
raise ValueError(bGrB('The Email must be set'))
D3lj = YKHO.normalize_email(D3lj)
CBIr = YKHO.model(email=D3lj, **wdCM)
CBIr.set_password(jTXt)
CBIr.save()
return CBIr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xWi2(YKHO, D3lj, jTXt, **wdCM):\n if not D3lj:\n raise ValueError('The email must be set')\n D3lj = YKHO.normalize_email(D3lj)\n CBIr = YKHO.model(email=D3lj, **wdCM)\n CBIr.set_password(jTXt)\n CBIr.save()",
"def xWi2(YKHO, D3lj, jTXt, **wdCM):\n D3lj = YKHO.normalize_email(D3lj)\n ... | [
"0.8765867",
"0.85452795",
"0.85368717",
"0.8527806",
"0.85269475",
"0.85257876",
"0.85186416",
"0.8508724",
"0.8504736",
"0.8504567",
"0.8504567",
"0.8504567",
"0.8494046",
"0.8494046",
"0.84938884",
"0.8492852",
"0.849132",
"0.8490454",
"0.8488974",
"0.8488869",
"0.84884715... | 0.84573334 | 60 |
Create and save a SuperUser with the given email and password. | def Zp54(YKHO, D3lj, jTXt, **wdCM):
wdCM.setdefault('is_staff', True)
wdCM.setdefault('is_superuser', True)
wdCM.setdefault('is_active', True)
if wdCM.get('is_staff') is not True:
raise ValueError(bGrB('Superuser must have is_staff=True.'))
if wdCM.get('is_superuser') is not True:
ra... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zp54(YKHO, D3lj, jTXt=None, **dDGN):\n YKHO._create_user(D3lj, True, jTXt, **dDGN)",
"def Zp54(YKHO, D3lj: str, jTXt: str, **wdCM: Dict[str, bool]):\n wdCM.setdefault('is_staff', True)\n wdCM.setdefault('is_superuser', True)\n wdCM.setdefault('is_active', True)\n if wdCM.get('is_staff') is not... | [
"0.81715554",
"0.80949867",
"0.8072965",
"0.80660135",
"0.80614394",
"0.80550295",
"0.80352277",
"0.79790324",
"0.79607594",
"0.7955878",
"0.7946088",
"0.7939117",
"0.7935015",
"0.7934914",
"0.7934306",
"0.79321265",
"0.79208684",
"0.7916847",
"0.7916847",
"0.7909871",
"0.790... | 0.7942262 | 12 |
Get a single user from the db by their _id | def fbl9(Emd4, _eu6: str) -> mv1M:
return Emd4.by_attr(id=_eu6) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TKWP(uJjO):\n return xyx6.find_one({'user_id': uJjO})",
"def bt8D(uJjO):\n return NCls.get(uJjO, None)",
"def bt8D(id):\n return mv1M.query.get(id)",
"def TKWP(uJjO):\n return mv1M.query.get(uJjO)",
"def bt8D(uJjO):\n CBIr = mv1M.query.get(uJjO)\n if CBIr == None:\n print(f'No ... | [
"0.86213136",
"0.85954195",
"0.84745187",
"0.84489286",
"0.8417252",
"0.8411027",
"0.83930105",
"0.83648986",
"0.8357399",
"0.8350742",
"0.83241373",
"0.83043164",
"0.83038014",
"0.83038014",
"0.8289009",
"0.8283845",
"0.8283845",
"0.8280706",
"0.8279866",
"0.8275747",
"0.824... | 0.0 | -1 |
Get a single user from the db by their email | def NuTJ(Emd4, D3lj: str) -> mv1M:
return Emd4.by_attr(email=D3lj) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lCqJ(D3lj):\n vexM = mv1M.all()\n vexM.filter('email = ', D3lj)\n return vexM.get()",
"def CYTf(Emd4, D3lj):\n for hbFX in NCls.users:\n CBIr = NCls.users.get(hbFX)\n if CBIr.email == D3lj:\n return CBIr\n return None",
"def CYTf(YKHO, D3lj):\n try:\n CBIr ... | [
"0.9146268",
"0.89675367",
"0.8870753",
"0.8867402",
"0.8867402",
"0.8837504",
"0.882789",
"0.88257915",
"0.8800211",
"0.8793821",
"0.8793821",
"0.8793821",
"0.877981",
"0.8766246",
"0.87429893",
"0.8742143",
"0.87363046",
"0.87322617",
"0.872151",
"0.87153745",
"0.8713797",
... | 0.78417814 | 93 |
Shorthand for getting a single user from the db by any attributes | def bvHK(Emd4, **B2fa) -> mv1M:
xDcj = Emd4.objects(**B2fa)
if not xDcj.count():
raise oEgM()
return xDcj[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GgQQ(Emd4, QePW, **B2fa):\n CBIr = QePW.dbsession.query(Emd4).filter_by(**B2fa).one_or_none()\n return CBIr",
"def TKWP(Emd4, _sei):\n rdlD = Emd4.db()(jvSB.plugin_social_auth.auth.table_user().username == _sei).select().first()\n if rdlD:\n return mv1M(rdlD)",
"def TKWP(uJjO):\n retu... | [
"0.82675344",
"0.80740356",
"0.78636736",
"0.7778491",
"0.7756853",
"0.77493334",
"0.773865",
"0.772373",
"0.7721385",
"0.7721385",
"0.7718053",
"0.77024573",
"0.7664173",
"0.7652033",
"0.7645626",
"0.76409245",
"0.7619845",
"0.7613447",
"0.7613447",
"0.761225",
"0.7597094",
... | 0.7643165 | 15 |
Test initialization of write class with conversion parameters set to correct values. | def wLNX(YKHO):
byvX = QnSU.WavOut(nQHd, 'PCM', 2, 16, 44100)
YKHO.assertIsInstance(byvX, QnSU.WavOut)
YKHO.assertEqual(byvX.signalParams, {sNLk.CORE_KEY_FMT: 'PCM', sNLk.CORE_KEY_NUM_CHANNELS: 2, sNLk.CORE_KEY_BIT_DEPTH: 16, sNLk.CORE_KEY_BYTE_DEPTH: 2, sNLk.CORE_KEY_SAMPLE_RATE: 44100}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def as4H(YKHO):\n CMwT = r388(writerEmail='email', writerName='name', writerPath='path')\n YKHO.assertEquals(CMwT.name, 'name')\n YKHO.assertEquals(CMwT.email, 'email')\n YKHO.assertEquals(CMwT._path, 'path')\n YKHO.assertEquals(CMwT._solutions, {})",
"def VDVO(YKHO):\n YKHO.exporter_class()",
... | [
"0.65469074",
"0.65281844",
"0.6523865",
"0.6329227",
"0.62166065",
"0.6153147",
"0.6073114",
"0.60707664",
"0.601197",
"0.60109204",
"0.60033965",
"0.5995028",
"0.58711195",
"0.58531296",
"0.58316565",
"0.5822374",
"0.58205545",
"0.5812609",
"0.5790691",
"0.5785971",
"0.5755... | 0.6786102 | 0 |
Get the cached session type (immutable) of a session. | def byi5(SGXC, ekCf, UtSQ, JkXK):
return SGXC.read_by_proto_ids(project_id=ekCf, brain_id=UtSQ, session_id=JkXK).session_type | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AlV5(YKHO) -> str:\n return qe4Y.get(YKHO, 'cache_type')",
"def type(YKHO) -> h8nf[qe4Y.Input['CacheIdentityType']]:\n return qe4Y.get(YKHO, 'type')",
"def CsGX(YKHO):\n return",
"def KfiN() -> DMju:\n return NGRy()",
"def cuiw(YKHO, Wswm):\n KCHu = YKHO.list\n Wswm = str(Wswm)\n i... | [
"0.67153764",
"0.6663244",
"0.6401302",
"0.6092161",
"0.59994173",
"0.59926426",
"0.59558463",
"0.59470606",
"0.5883159",
"0.5840107",
"0.58363104",
"0.58351827",
"0.5811204",
"0.58045644",
"0.58045644",
"0.5769826",
"0.570058",
"0.5690049",
"0.56381434",
"0.55935407",
"0.556... | 0.758342 | 0 |
Split the last dimension into (num_heads, depth). Transpose the result such that the shape is (batch_size, num_heads, seq_len, depth) | def Plaj(YKHO, WKvO, Ep8u):
WKvO = ZylS.reshape(WKvO, (Ep8u, -1, YKHO.h, YKHO.depth))
return ZylS.transpose(WKvO, perm=[0, 2, 1, 3]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Plaj(YKHO, WKvO, Ep8u):\n WKvO = ZylS.reshape(WKvO, (Ep8u, -1, YKHO.num_heads, YKHO.depth))\n return ZylS.transpose(WKvO, perm=[0, 2, 1, 3])",
"def Plaj(WKvO, hC9O):\n return ZylS.transpose(VjTS(WKvO, hC9O), [0, 2, 1, 3])",
"def Plaj(YKHO, WKvO, Ep8u):\n WKvO = ZylS.reshape(WKvO, (Ep8u, -1, YKH... | [
"0.75424397",
"0.75011176",
"0.7437717",
"0.7437717",
"0.7437717",
"0.7378907",
"0.72851163",
"0.72811246",
"0.7258982",
"0.7251318",
"0.7251318",
"0.7251318",
"0.7251318",
"0.7251318",
"0.7251318",
"0.7251318",
"0.7251318",
"0.72245044",
"0.71922576",
"0.7042146",
"0.6768443... | 0.7331574 | 6 |
Returns starting state of the board. | def W9gz():
return [[KAvf, KAvf, KAvf], [KAvf, KAvf, KAvf], [KAvf, KAvf, KAvf]] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tQN_(YKHO):\n return YKHO.board",
"def tQN_(YKHO):\n return YKHO.board",
"def tQN_(YKHO):\n return YKHO.board",
"def tQN_(YKHO):\n return YKHO.board",
"def tQN_(YKHO):\n return YKHO.board",
"def tQN_(YKHO):\n return YKHO._start_state",
"def Ee93():\n exwG = ahzX(mF_7, 5)\n r... | [
"0.8809215",
"0.8809215",
"0.8809215",
"0.8809215",
"0.8809215",
"0.74344724",
"0.742334",
"0.7328245",
"0.72898334",
"0.72821885",
"0.72821885",
"0.7278382",
"0.7248571",
"0.7225358",
"0.7225358",
"0.7225358",
"0.7225358",
"0.7225358",
"0.7225358",
"0.7225358",
"0.7225358",
... | 0.0 | -1 |
Returns set of all possible actions (i, j) available on the board. | def xASv(iBIi):
yWbd = set()
for YRbF, rdlD in enumerate(iBIi):
for r845, j5sR in enumerate(rdlD):
if j5sR == KAvf:
yWbd.add((YRbF, r845))
return yWbd | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xASv(iBIi):\n Ylbp = set()\n for YRbF in range(len(iBIi)):\n for r845 in range(len(iBIi[0])):\n if iBIi[YRbF][r845] == KAvf:\n Ylbp.add((YRbF, r845))\n return Ylbp",
"def xASv(YKHO):\n hksT = YKHO.locs[YKHO.player()]\n if hksT is None:\n return YKHO.libe... | [
"0.8078164",
"0.7935423",
"0.7917879",
"0.7912585",
"0.78729856",
"0.7766741",
"0.77509874",
"0.77447766",
"0.7738995",
"0.7731153",
"0.7730132",
"0.7709082",
"0.77006704",
"0.76862395",
"0.76713663",
"0.7665846",
"0.7654127",
"0.7642262",
"0.7634384",
"0.7632887",
"0.7630382... | 0.7676969 | 14 |
Returns the winner of the game, if there is one. | def bHVe(iBIi):
for YRbF, rdlD in enumerate(iBIi):
if rdlD.count(EcVT) == 3 or rdlD.count(LTX_) == 3:
return rdlD[0]
G1ky = []
for r845 in range(0, 3):
G1ky.append(iBIi[r845][YRbF])
if G1ky.count(EcVT) == 3 or G1ky.count(LTX_) == 3:
return G1ky[0]
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bHVe(YKHO):\n if YKHO.done():\n return YKHO._winner\n else:\n return None",
"def ND5o(YKHO):\n return YKHO.win_conditions()[0]",
"def bHVe(YKHO):\n return YKHO.board.winner()",
"def bHVe(YKHO):\n J2w6 = Bu_I.compute_winner_index(YKHO.result, YKHO.game)\n if J2w6 is False:\... | [
"0.84205395",
"0.83575505",
"0.82868236",
"0.81987756",
"0.81987756",
"0.8168628",
"0.81224376",
"0.805871",
"0.7971006",
"0.79522294",
"0.7909224",
"0.789483",
"0.78946227",
"0.78887254",
"0.78633344",
"0.7850654",
"0.7850211",
"0.78320843",
"0.7811322",
"0.7769718",
"0.7765... | 0.0 | -1 |
Returns 1 if X has won the game, 1 if O has won, 0 otherwise. | def f7Dd(iBIi):
if bHVe(iBIi) == EcVT:
return 1
elif bHVe(iBIi) == LTX_:
return -1
else:
return 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hHs1(YKHO):\n return YKHO.winner() == YKHO.X_VAL",
"def oyg0(iBIi):\n bHVe(iBIi)\n c8fa = 0\n Jszs = 0\n for YRbF in range(3):\n for r845 in range(3):\n if iBIi[YRbF][r845] == LTX_:\n Jszs += 1\n elif iBIi[YRbF][r845] == EcVT:\n c8fa +... | [
"0.77431494",
"0.7665777",
"0.7627669",
"0.76235044",
"0.74548364",
"0.744333",
"0.7343317",
"0.73383707",
"0.73096186",
"0.7305894",
"0.7282681",
"0.7275687",
"0.7244229",
"0.72328174",
"0.7207191",
"0.7182036",
"0.71798617",
"0.71759605",
"0.7175524",
"0.7167598",
"0.715218... | 0.67965585 | 91 |
Generate the sequence of features given the sequences of characters. | def aOQR(YKHO, l5Ny: paddle.Tensor, P57q: Optional[paddle.Tensor]=None, uZ4o: Optional[paddle.Tensor]=None, G3Wj: Optional[paddle.Tensor]=None, BE5m: Optional[paddle.Tensor]=None, gwAu: float=0.5, bRhV: float=0.0, wZ1Q: float=10.0, fcBF: bool=False, PMrm: int=1, v4Bs: int=3, LSIT: bool=False) -> cuzp[str, CbyH.Tensor]:... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E9Lq(_73Q, q4aw, b0j5):\n bySB = []\n for ttfM, PU1l in enumerate(_73Q):\n D56S = b0j5.tokenize(PU1l.text_a)\n if len(D56S) > q4aw - 2:\n D56S = D56S[0:q4aw - 2]\n s2mk = []\n OIWs = []\n s2mk.append('[CLS]')\n OIWs.append(0)\n for eOtH in D56S:... | [
"0.7011018",
"0.6843378",
"0.6819004",
"0.6728102",
"0.66415644",
"0.65673524",
"0.6548234",
"0.6530201",
"0.648878",
"0.64819014",
"0.64053524",
"0.6392426",
"0.6343174",
"0.6305438",
"0.6300075",
"0.6279452",
"0.6277644",
"0.6248245",
"0.6227821",
"0.62110966",
"0.62097716"... | 0.0 | -1 |
Sets the models base directory, and initializes some dictionaries. Saves the loaded model's hashes to a json file, so the values are saved even though the API went down. | def FIMM(YKHO):
YKHO.models_dict = {}
gIsw = '/models_hash/model_hash.json'
poxP = Hy7s.path.exists(gIsw)
if poxP:
try:
with open(gIsw) as wM3v:
YKHO.models_hash_dict = qQXR.load(wM3v)
except:
YKHO.models_hash_dict = {}
else:
with open(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Idj6(YKHO):\n YKHO.load_models(YKHO.list_models())\n FYrf = YKHO.list_models()\n for C3ST in FYrf:\n if C3ST not in YKHO.models_hash_dict:\n YKHO.models_hash_dict[C3ST] = str(qxeD.uuid4())\n for H5ew in list(YKHO.models_hash_dict):\n if H5ew not in FYrf:\n del YK... | [
"0.68348813",
"0.6720492",
"0.6560816",
"0.64911175",
"0.6389686",
"0.6380285",
"0.63280517",
"0.63230723",
"0.6312914",
"0.6271164",
"0.6228066",
"0.62071556",
"0.6202359",
"0.61898315",
"0.61861044",
"0.6168647",
"0.6148844",
"0.6148575",
"0.61123556",
"0.6107858",
"0.61051... | 0.6823255 | 1 |
Loads a model by passing the model path to the factory. The factory will return a loaded model instance that will be stored in a dictionary. | def uyMl(YKHO, ZGE9, dJL_=False):
if not dJL_ and YKHO.model_loaded(ZGE9):
return True
uqvc = Hy7s.path.join(YKHO.base_models_dir, ZGE9)
try:
YKHO.models_dict[ZGE9] = m1LB.get_engine(uqvc)
return True
except MbRy as e:
raise tTpl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k8jE(pmON):\n C3ST = w4hD.load_pickle(pmON)\n return C3ST",
"def O5RJ(Emd4, uqvc):\n pass",
"def O5RJ(YKHO, uqvc: str):\n pass",
"def O5RJ(YKHO, uqvc: str) -> object:\n raise NotImplemented",
"def tyeH(C3ST: Optional[str]=None):\n if not C3ST:\n C3ST = ZjlI()\n if C3ST in Uk... | [
"0.7764942",
"0.77134883",
"0.75400794",
"0.74911565",
"0.7487634",
"0.7470486",
"0.7450069",
"0.7384495",
"0.73729265",
"0.73690224",
"0.73690224",
"0.73690224",
"0.734206",
"0.7340002",
"0.7337648",
"0.7337016",
"0.73239076",
"0.73061424",
"0.72967815",
"0.7264965",
"0.7233... | 0.0 | -1 |
Loads the model in case it was never loaded and calls the inference engine class to get a prediction. | async def run_model(YKHO, ZGE9, WbAn, JmFt, IYbP):
if ZbWC.match('[0-9a-fA-F]{8}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{12}', ZGE9, flags=0):
for H5ew, BWXx in YKHO.models_hash_dict.items():
if BWXx == ZGE9:
ZGE9 = H5ew
if YKHO.model_loaded(ZGE9):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y7RH(YKHO):\n for nPrm in YKHO.datasets:\n for C3ST in YKHO.models:\n C3ST.init_engine(nPrm)\n C3ST.load(model_dir=YKHO.model_dir)\n C3ST.predict(nPrm.test[0])",
"def iXC1(YKHO, *qIxc, **B2fa):\n if not YKHO.initialized:\n raise RuntimeError('Model not ini... | [
"0.74624366",
"0.74274683",
"0.7182614",
"0.7086222",
"0.7071155",
"0.7039301",
"0.70360255",
"0.70265406",
"0.6944339",
"0.69220793",
"0.69220793",
"0.69177556",
"0.6900171",
"0.6894694",
"0.68924236",
"0.6881314",
"0.6879561",
"0.6875891",
"0.6870456",
"0.68686",
"0.6854975... | 0.7166328 | 3 |
Returns the model in case it was loaded. | def wvXH(YKHO, ZGE9):
return ZGE9 in YKHO.models_dict.keys() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uyMl():\n return",
"def uyMl(YKHO):\n with YKHO._wl:\n return YKHO._e.load_model()",
"def uyMl(YKHO) -> awyi:\n if YKHO.is_loaded:\n return YKHO.model\n return tyeH(YKHO.fpath)",
"def tyeH(YKHO):\n if YKHO.rid and (not YKHO.is_loaded):\n VUF1 = auGi.sess.store\n ... | [
"0.81080204",
"0.80016744",
"0.79032934",
"0.78222483",
"0.7766668",
"0.7655974",
"0.7566583",
"0.75503707",
"0.7527942",
"0.7527942",
"0.7527942",
"0.7527942",
"0.7402205",
"0.7372686",
"0.73413396",
"0.7319035",
"0.7256839",
"0.7208259",
"0.71874464",
"0.711051",
"0.7081689... | 0.6601532 | 87 |
Returns the model's configuration. | def tgzD(YKHO, ZGE9):
if not YKHO.model_loaded(ZGE9):
YKHO.load_model(ZGE9)
return YKHO.models_dict[ZGE9].configuration | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AEHk(YKHO) -> dict:\n return YKHO.model_config",
"def GPtr(YKHO):\n global _CONFIG\n if not DVw1:\n ZGE9 = YKHO.config_section\n bo34.debug('Loading config for: %s', ZGE9)\n DVw1 = PSrQ(ZGE9).config_dict\n return DVw1",
"async def getModelConfig(YKHO) -> h8nf[ZiQ5]:\n if... | [
"0.9047756",
"0.8185769",
"0.8176894",
"0.8093435",
"0.808104",
"0.808104",
"0.808104",
"0.7974676",
"0.793453",
"0.78788716",
"0.78576386",
"0.7853699",
"0.78002816",
"0.78002816",
"0.78002816",
"0.78002816",
"0.7785136",
"0.778049",
"0.77712464",
"0.7769084",
"0.7751828",
... | 0.8395907 | 1 |
Removes a section from this section manager | def bect(YKHO, XLMv: Section) -> None:
if YKHO.is_current_view and XLMv.enabled:
XLMv.on_hide_section()
XLMv._view = None
YKHO._sections.remove(XLMv)
YKHO.sort_section_event_order()
YKHO.sort_sections_draw_order() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bect(YKHO, mWFP: str) -> None:\n del YKHO._sections[mWFP]",
"def bect(YKHO, XLMv: 'Section') -> None:\n XLMv._view = None\n YKHO._sections.remove(XLMv)\n YKHO._sections.sort(key=lambda KCHu: 0 if KCHu.modal else 1)\n YKHO._sections_draw = sorted(YKHO._sections, key=lambda KCHu: 1 if KCHu.modal... | [
"0.8021746",
"0.7994878",
"0.79832333",
"0.79426336",
"0.7873194",
"0.7803437",
"0.7737107",
"0.77176",
"0.7639282",
"0.7632128",
"0.75420845",
"0.7431044",
"0.7387473",
"0.73698944",
"0.7217038",
"0.7185918",
"0.7047262",
"0.6985977",
"0.68909645",
"0.6875975",
"0.6799987",
... | 0.77953863 | 6 |
Return an iterator that applies function to every item of iterable, yielding the results. If additional iterables arguments are passed, function must take that many arguments and is applied to the items from all iterables in parallel. With multiple iterables, the iterator stops when the shortest iterable is exhausted. | def map(YKHO, JfyU, *ix7N):
L4cE = map(YKHO.submit, Hs6x.repeat(JfyU), *ix7N)
return [KS9L.result() for KS9L in L4cE] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eNCK(*ix7N):\n for OxJJ in ix7N:\n yield from OxJJ",
"def cGPU(JfyU, *ix7N):\n for qIxc in zip(*ix7N):\n yield JfyU(*qIxc)",
"def lZ4Y(m2Zb: Callable, *ix7N: Iterable, **B2fa: Any) -> jd6F:\n c2Yh = m4Pe(m2Zb, *ix7N, **B2fa)\n return c2Yh",
"def KzeX(*qIxc):\n for d7pR in qIx... | [
"0.72630286",
"0.72047025",
"0.7166932",
"0.71540576",
"0.7146497",
"0.71177477",
"0.70880294",
"0.69961137",
"0.697662",
"0.6931795",
"0.6823592",
"0.6819577",
"0.677294",
"0.6768789",
"0.675501",
"0.6749339",
"0.6732651",
"0.67234564",
"0.6625512",
"0.66116166",
"0.6602199"... | 0.6712244 | 18 |
Solves the ODE using scipy.integrate solve_ivp function. | def eGi5(YKHO, nxyw, Kt_s, JRYC, bLm4='rad'):
YKHO._dt = JRYC
YKHO._T = Kt_s
if bLm4 == 'deg':
nxyw = oyIN.array(nxyw)
nxyw = nxyw * (oyIN.pi / 180)
rlnY = skkg(YKHO, [0, Kt_s], nxyw, t_eval=oyIN.arange(0, Kt_s, JRYC), method='Radau')
YKHO._solution = rlnY | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eGi5(YKHO, nFdY, Kt_s, JRYC):\n rlnY = skkg(YKHO.__call__, (Kt_s, 0), [nFdY], t_eval=oyIN.arange(0, Kt_s, JRYC))\n return (rlnY.t, rlnY.y[0])",
"def KAJe(eHNT, Jw7X, JRYC, Y7fn, O5iP):\n si3g = O5iP + JRYC * eHNT(Y7fn, O5iP, Jw7X, JRYC)\n oZuG = O5iP[0]\n XP5J = O5iP[1]\n L3e8 = O5iP[2]\n ... | [
"0.69208616",
"0.63726246",
"0.6309831",
"0.6289292",
"0.622487",
"0.62173307",
"0.6211187",
"0.60878384",
"0.60566056",
"0.6042671",
"0.5994535",
"0.5987464",
"0.5981602",
"0.5954433",
"0.59367305",
"0.59179235",
"0.5912833",
"0.5908794",
"0.5903231",
"0.5871296",
"0.5858527... | 0.6017177 | 10 |
Returns the latest stored solution. | def GERS(YKHO):
try:
return YKHO._solution
except AttributeError:
raise AttributeError('Solutions for the double pendulum does not exist. You need to run the solve method to compute how the pendulum moves. Run solve method first.') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pGiD():\n ZojD = pi1E()\n if ZojD:\n return ZojD[0]\n return (None, {})",
"def pGiD(YKHO):\n return UbQV.objects.get_latest(YKHO)",
"def rlsQ():\n try:\n GERS = NCls.Solution.find()\n except:\n print('Error retrieving file')\n Aofo = [rlnY for rlnY in GERS]\n re... | [
"0.7142095",
"0.6801817",
"0.67570215",
"0.67250526",
"0.6636999",
"0.64721936",
"0.64336",
"0.6422052",
"0.64017975",
"0.63974947",
"0.6378836",
"0.6378836",
"0.63724524",
"0.6342935",
"0.6296352",
"0.6274945",
"0.6166606",
"0.6163271",
"0.61166924",
"0.610337",
"0.60908663"... | 0.0 | -1 |
Returns omega of upper pendulum, raises error if it doesn't exist. | def PtyT(YKHO):
try:
return YKHO.solution.y[2]
except AttributeError:
raise AttributeError('Omega1 values for pendulum does not exist yet. You need to run the solve method to compute the omega1 values. Run solve method first.') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WE3_(YKHO):\n try:\n return YKHO.solution.y[3]\n except AttributeError:\n raise AttributeError('Omega1 values for pendulum does not exist yet. You need to run the solve method to compute the omega2 values. Run solve method first.')",
"def wW3z(Kt_s):\n LTX_ = 125.04 - 1934.136 * Kt_s\n... | [
"0.686067",
"0.643066",
"0.63875073",
"0.62384105",
"0.60890853",
"0.60057807",
"0.5979137",
"0.5965123",
"0.59036803",
"0.584629",
"0.58388263",
"0.583861",
"0.5714937",
"0.5713693",
"0.56952256",
"0.5647307",
"0.5531229",
"0.5525209",
"0.54993826",
"0.54980004",
"0.54949254... | 0.67047113 | 1 |
Returns x position of upper pendulum | def o4D3(YKHO):
snrU = YKHO.theta1
Vpfk = YKHO.L1 * oyIN.sin(snrU)
return Vpfk | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WKvO(YKHO):\n return YKHO.pos[0]",
"def nIKw(YKHO):\n return YKHO.get_position(0) / 8 * 0.0025",
"def WcM3(YKHO):\n pass",
"def WKvO(YKHO):\n return YKHO.position.x",
"def WcM3(YKHO):\n return YKHO._up.get_x()",
"def WcM3(YKHO):\n return YKHO._up.get_x()",
"def zXH0(YKHO):\n re... | [
"0.6429352",
"0.630893",
"0.62105",
"0.6199835",
"0.616141",
"0.616141",
"0.61382437",
"0.61365783",
"0.6077635",
"0.6076209",
"0.60742754",
"0.6025059",
"0.60040176",
"0.5999792",
"0.59745735",
"0.5971236",
"0.5969972",
"0.5950227",
"0.59371436",
"0.5930536",
"0.59267646",
... | 0.55410695 | 84 |
Returns x position of lower pendulum | def ajwV(YKHO):
M5jx = YKHO.theta2
l31r = YKHO.x1 + YKHO.L2 * oyIN.sin(M5jx)
return l31r | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WioY(YKHO):\n return -YKHO.origin[0]",
"def nIKw(YKHO):\n return YKHO.get_position(0) / 8 * 0.0025",
"def WKvO(YKHO):\n return YKHO.pos[0]",
"def WKvO(YKHO):\n return YKHO.position.x",
"def nIKw(YKHO):\n WKvO = YKHO.x_hardware_motor.value\n LVAh = YKHO.y_hardware_motor.value\n rVnq... | [
"0.6933527",
"0.6848051",
"0.6831128",
"0.6724665",
"0.6704447",
"0.6697568",
"0.6690655",
"0.667913",
"0.66354114",
"0.66119105",
"0.65870905",
"0.65754974",
"0.6575197",
"0.64889044",
"0.64605564",
"0.64334065",
"0.6417715",
"0.63992006",
"0.63793665",
"0.6378284",
"0.63632... | 0.0 | -1 |
The first date to download the reports. | def pnZ3():
return '1993-19-06' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _c1T(YKHO):\n return YKHO.config.first_day() + qcWV.timedelta(days=YKHO.day_index)",
"def gBgw(YKHO):\n lmBQ = YKHO.cdc.get_most_recent_date()\n return '{}/{}/{}'.format(lmBQ.month, lmBQ.day, lmBQ.year)",
"def FxRR(YKHO):\n return",
"def YdD0(YKHO):\n PGrJ = Hm1p.config.managebac.current_t... | [
"0.6614333",
"0.6555766",
"0.6530214",
"0.6442174",
"0.6441866",
"0.64320344",
"0.6414707",
"0.6400095",
"0.63984615",
"0.63324934",
"0.62669355",
"0.62640357",
"0.62470245",
"0.62134814",
"0.6206682",
"0.6196802",
"0.6183789",
"0.60924727",
"0.6060195",
"0.6032964",
"0.60080... | 0.61357147 | 17 |
Sets the as_at of this InlineValuationRequest. | def DwA8(YKHO, DwA8):
YKHO._as_at = DwA8 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iO3W(YKHO, iO3W):\n YKHO._amendment_as_at = iO3W",
"def CUDg(YKHO, CUDg):\n YKHO._correction_as_at = CUDg",
"def xswp(YKHO, xswp):\n YKHO._student_loan_as_at = xswp",
"def mrd0(YKHO, mrd0):\n YKHO._signed_at_time = mrd0",
"def nf4s(YKHO, nf4s):\n YKHO._at_times = nf4s",
"def vfzg(YKHO,... | [
"0.69294137",
"0.64887047",
"0.5958141",
"0.55153775",
"0.5361283",
"0.53398734",
"0.53112006",
"0.52174866",
"0.51997805",
"0.51389027",
"0.51389027",
"0.51389027",
"0.51389027",
"0.51389027",
"0.51389027",
"0.51389027",
"0.51389027",
"0.51389027",
"0.51389027",
"0.51389027",
... | 0.7995343 | 0 |
Sets the group_by of this InlineValuationRequest. | def qUWU(YKHO, qUWU):
YKHO._group_by = qUWU | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UbAx(YKHO, qUWU):\n YKHO._group_by = qUWU",
"def hypw(YKHO, xC3W):\n YKHO.curr_group = YKHO.replace_space(xC3W)\n YKHO.update_data(YKHO.curr_group)",
"def nRUG(YKHO, nRUG):\n YKHO._group_attr = nRUG",
"def qUWU(YKHO):\n return YKHO._group_by",
"def qUWU(YKHO):\n return YKHO._group_by"... | [
"0.8132772",
"0.64584965",
"0.63648695",
"0.6120042",
"0.6120042",
"0.5992885",
"0.59610915",
"0.59176534",
"0.5893416",
"0.5863065",
"0.58103335",
"0.57537943",
"0.5736847",
"0.57225704",
"0.56264687",
"0.5612974",
"0.5607448",
"0.5607448",
"0.5607448",
"0.5607448",
"0.56074... | 0.7950419 | 1 |
Sets the report_currency of this InlineValuationRequest. | def Vv67(YKHO, Vv67):
if YKHO.local_vars_configuration.client_side_validation and Vv67 is not None and (len(Vv67) > 3):
raise ValueError('Invalid value for `report_currency`, length must be less than or equal to `3`')
if YKHO.local_vars_configuration.client_side_validation and Vv67 is not None and (len(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VIXL(YKHO, VIXL):\n if YKHO.local_vars_configuration.client_side_validation and VIXL is None:\n raise ValueError('Invalid value for `currency`, must not be `None`')\n YKHO._currency = VIXL",
"def Q8TV(YKHO, VIXL: str):\n YKHO.__currency = VIXL\n return YKHO",
"def VIXL(YKHO, VIXL):\n ... | [
"0.6119867",
"0.6117864",
"0.6046497",
"0.6046497",
"0.6046497",
"0.6046497",
"0.6046497",
"0.6046497",
"0.6046497",
"0.6046497",
"0.60346425",
"0.59187174",
"0.59073895",
"0.59073895",
"0.5816198",
"0.5791402",
"0.5721171",
"0.56993634",
"0.5641784",
"0.5627082",
"0.56091595... | 0.8011552 | 0 |
Sets the equip_with_subtotals of this InlineValuationRequest. | def _zMA(YKHO, _zMA):
YKHO._equip_with_subtotals = _zMA | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MDlk(YKHO):\n XLlb = YKHO.game.myEmpire['rpAvail']\n XR14 = YKHO.game.myEmpire['rpUsed']\n YKHO.techTotal.setMyValues(XLlb, XLlb + XR14)",
"def _Erc(YKHO, _Erc):\n YKHO._subtotal = _Erc",
"def _Erc(YKHO, _Erc):\n YKHO._subtotal = _Erc",
"def _Erc(YKHO, _Erc):\n YKHO._subtotal = _Erc",
... | [
"0.49383873",
"0.46463838",
"0.46463838",
"0.46463838",
"0.46463838",
"0.45891562",
"0.45862183",
"0.45479485",
"0.45371726",
"0.45237967",
"0.44968778",
"0.44809502",
"0.4480676",
"0.4452678",
"0.4447498",
"0.43925977",
"0.43647793",
"0.43352988",
"0.4332103",
"0.43197513",
... | 0.8264446 | 0 |
Sets the return_result_as_expanded_types of this InlineValuationRequest. | def o2F7(YKHO, o2F7):
YKHO._return_result_as_expanded_types = o2F7 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sWpJ(YKHO) -> bool:\n return YKHO.behavior.expand_result",
"def Eg5I(YKHO, lHli, EfUA=None):\n raise NotImplementedError('Expand/Select option on Function result')",
"def eH52(YKHO, NKcE):\n if NKcE.multiple_success_codes or not NKcE.exceptions_permitted:\n if NKcE.bare_return_type == 'void... | [
"0.55561787",
"0.5208043",
"0.5199391",
"0.49637148",
"0.49637148",
"0.48806638",
"0.48671246",
"0.48175162",
"0.4722425",
"0.47071704",
"0.46502334",
"0.46399963",
"0.46159536",
"0.45757207",
"0.45187384",
"0.447119",
"0.4466429",
"0.44587696",
"0.44316992",
"0.44196177",
"0... | 0.8628169 | 0 |
Sets the valuation_schedule of this InlineValuationRequest. | def OiUQ(YKHO, OiUQ):
YKHO._valuation_schedule = OiUQ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mXCF(YKHO, KFmk):\n YKHO.scheduled = KFmk",
"def g8Rv(YKHO, BWXx: typing.Union['Scheduling', dict]):\n if isinstance(BWXx, dict):\n BWXx = laHg.cast(CdVq, CdVq().from_dict(BWXx))\n YKHO._properties['scheduling'] = BWXx",
"def ZhYf(YKHO):\n YKHO.setEffectiveDate()\n YKHO.setExpirationD... | [
"0.59596545",
"0.57763565",
"0.5644056",
"0.55527836",
"0.55527836",
"0.55527836",
"0.55527836",
"0.55527836",
"0.5477136",
"0.5437166",
"0.53518903",
"0.53165805",
"0.529314",
"0.5200285",
"0.5184087",
"0.5081884",
"0.50086796",
"0.50081456",
"0.500704",
"0.49988684",
"0.497... | 0.7932179 | 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, oq90):
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 |
Initially the head of the Linked List isn't defined (zero length by default). | def FIMM(YKHO):
YKHO.head = None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HQcE():\n ZMDM, bwUk, l3pf = yr6O()\n assert bwUk.head_node is None",
"def FIMM(YKHO):\n YKHO.head = None\n YKHO.length = 0",
"def FIMM(YKHO):\n YKHO.head = None\n YKHO.length = 0",
"def FIMM(YKHO):\n YKHO.head = None\n YKHO.length = 0",
"def kEFx():\n ZMDM, bwUk, l3pf = yr6O... | [
"0.7886914",
"0.7546638",
"0.7546638",
"0.7546638",
"0.7544676",
"0.74673426",
"0.74210453",
"0.73637927",
"0.7363482",
"0.7344167",
"0.732141",
"0.7286733",
"0.7270472",
"0.7264362",
"0.7250756",
"0.7249924",
"0.72326404",
"0.718258",
"0.718258",
"0.718258",
"0.71785796",
... | 0.6778288 | 57 |