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 |
|---|---|---|---|---|---|---|
Transform ``Doc`` into a semantic network, where nodes are either "words" or "sents" and edges between nodes may be weighted in different ways. | def TTx_(A97Q: Doc, *, Ziit: str='words', NkkI: Optional[Union[str, Callable[[Union[Span, Token]], str]]]='lemma', GF6d: str='default', fvO8: int=10) -> jHsn.Graph:
if Ziit == 'words':
if GF6d == 'default':
GF6d = 'cooc_freq'
return eVVj.terms_to_semantic_network(list(JDhM.words(A97Q)), ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IYlQ(YKHO, KnxT=10, oeNL=None):\n YKHO.graph = jHsn.Graph()\n 'The word graph initialization.'\n OMKB = 0.01\n n3F1 = 1000\n if oeNL is None:\n oeNL = {'NOUN', 'PROPN', 'ADJ'}\n l5Ny = [(GIN8, yAmx.pos[YRbF] in oeNL) for yAmx in YKHO.sentences for YRbF, GIN8 in enumerate(yAmx.stems)]\n... | [
"0.6483017",
"0.63971376",
"0.58785343",
"0.57583314",
"0.57549",
"0.57419676",
"0.5735403",
"0.5704072",
"0.55816895",
"0.55785185",
"0.55373836",
"0.55256563",
"0.5506989",
"0.5493666",
"0.54279083",
"0.5424429",
"0.5324541",
"0.5307003",
"0.5301583",
"0.52716583",
"0.52547... | 0.79944474 | 0 |
Spawns a bullet randomly for the enemy | def gYqc(YKHO) -> None:
ADdS = YKHO.generate_random_no() * YKHO.fps * 4
if ADdS > 10:
return
if len(YKHO.enemies):
JjEH = YKHO.get_random_enemy()
else:
JjEH = None
YKHO.shoot_bullet(JjEH) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gYqc(YKHO) -> None:\n ADdS = YKHO.generate_random_no() * YKHO.fps * 4\n if ADdS > 10:\n return\n if len(YKHO.enemies):\n JjEH = YKHO.get_random_enemy()\n else:\n JjEH = None\n YKHO.shoot_bullet(JjEH)",
"def Z3oV(YKHO, JjEH):\n YKHO.bullets.append(GBVa(JjEH.x_pos, JjEH.y... | [
"0.81873274",
"0.747472",
"0.7212416",
"0.69514096",
"0.6892207",
"0.68900156",
"0.68144035",
"0.6786647",
"0.6774511",
"0.6703487",
"0.66866815",
"0.66657674",
"0.6642969",
"0.6633033",
"0.6631039",
"0.66293365",
"0.6625179",
"0.66234857",
"0.66050714",
"0.6600077",
"0.65962... | 0.80798674 | 1 |
Update the player and the sprites | def QdZT(YKHO) -> None:
if YKHO.resetted:
YKHO.resetted = False
YKHO.reset_surface()
YKHO.player1.update()
YKHO.enemies.update()
YKHO.other_enemies.update()
YKHO.randomly_spawn_mothership()
YKHO.explosions.update()
YKHO.spawn_enemy_bullets()
YKHO.player1_bullet.update()
Y... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QdZT(YKHO):\n YKHO.all_sprites.update()",
"def QdZT(YKHO):\n for LEXu in YKHO.sprite:\n LEXu.move((0, -YKHO.game.player.current_direction[1] * YKHO.game.player.frame_speed))\n for W061 in YKHO.game.obstacles:\n W061.update()",
"def QdZT(YKHO):\n for Jqc7 in YKHO.sprite_list:\n ... | [
"0.7930924",
"0.7779309",
"0.76736444",
"0.7635609",
"0.7610473",
"0.7534346",
"0.7512742",
"0.748772",
"0.746944",
"0.73789",
"0.7374562",
"0.73243916",
"0.73235106",
"0.7274035",
"0.7263669",
"0.72382176",
"0.72170764",
"0.7215181",
"0.7206248",
"0.71849185",
"0.71717185",
... | 0.7356181 | 11 |
Gets the score of the player in the current state | def hckV(YKHO) -> int:
return YKHO.p1_score | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def p1kx(YKHO):\n return YKHO.data.totalPlayerScore",
"def SQRS(YKHO):\n return YKHO.score",
"def hckV(YKHO):\n return nNXP.get_score(YKHO.api_key, YKHO.game_state.game_id)",
"def LOOi(YKHO):\n uqhx = sum([AU8u == 0 for AU8u in YKHO.score_history])\n p0Hv = sum([AU8u == 1 for AU8u in YKHO.scor... | [
"0.80844074",
"0.78849965",
"0.7735252",
"0.76453656",
"0.76332337",
"0.76330936",
"0.76126605",
"0.75311327",
"0.7473524",
"0.74632037",
"0.7461593",
"0.7444454",
"0.7442627",
"0.7437386",
"0.7430991",
"0.7416492",
"0.7415772",
"0.7408038",
"0.73993075",
"0.7387024",
"0.7383... | 0.71321875 | 42 |
Generate a random number for the life of the enemy | def Hmml(YKHO) -> int:
mLGw = int(YKHO.difficulty.get_multiplier(YKHO.generate_random_no() * YKHO.wave))
return mLGw if mLGw >= 1 else 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s0zE(YKHO):\n iezW = tuKI.randint(70, 100)\n YKHO.lifespan = iezW\n return YKHO.lifespan",
"def ydtM(YKHO):\n YKHO._randNum = YKHO._rand.randint(0, 100)",
"def ApfE(max):\n return ajWY(1, max)",
"def Vd1f(YKHO) -> Uhl8:\n yv6U = tuple(YKHO.enemies)\n return yv6U[int(YKHO.generate_ran... | [
"0.70131695",
"0.68772745",
"0.6734712",
"0.6682916",
"0.66157687",
"0.6615754",
"0.6612429",
"0.6596722",
"0.65761596",
"0.6562303",
"0.65243787",
"0.6473441",
"0.6452654",
"0.6443534",
"0.64352965",
"0.6423572",
"0.64112806",
"0.6403397",
"0.6378877",
"0.6371603",
"0.637019... | 0.0 | -1 |
Check if enemy touched the bottom of the screen | def mDvW(YKHO) -> bool:
return any(filter(lambda WKvO: WKvO.get_y() + WKvO.get_height() // 2 > YKHO.screen_height - YKHO.player1.get_height() - 100, YKHO.enemies)) or any(filter(lambda WKvO: WKvO.get_y() + WKvO.get_height() // 2 > YKHO.screen_height - YKHO.player1.get_height() - 100, YKHO.other_enemies)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mDvW(YKHO) -> bool:\n return any(filter(lambda WKvO: WKvO.get_y() + WKvO.get_height() // 2 > YKHO.screen_height - YKHO.player1.get_height() - 100, YKHO.enemies)) or any(filter(lambda WKvO: WKvO.get_y() + WKvO.get_height() // 2 > YKHO.screen_height - YKHO.player1.get_height() - 100, YKHO.other_enemies))",
... | [
"0.81669307",
"0.7407581",
"0.7382622",
"0.7306274",
"0.729241",
"0.7287407",
"0.7255789",
"0.7217643",
"0.71545327",
"0.7154145",
"0.70596427",
"0.7051583",
"0.69543827",
"0.68653494",
"0.6852023",
"0.68420875",
"0.6806337",
"0.6743024",
"0.6707628",
"0.67069495",
"0.6704318... | 0.81441844 | 1 |
Find the distance between points p1 and p2. | def Ayfi(EBgd, HpuQ):
return oyIN.sqrt(oyIN.sum(oyIN.power(HpuQ - EBgd, 2))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MXsf(EBgd, HpuQ):\n Csk6 = epAf.sqrt((EBgd.x - HpuQ.x) ** 2 + (EBgd.y - HpuQ.y) ** 2)\n return Csk6",
"def YyoZ(EBgd, HpuQ):\n Jw7X = EBgd.x - HpuQ.x\n eUWA = EBgd.y - HpuQ.y\n pImw = epAf.sqrt(Jw7X ** 2 + eUWA ** 2)\n return pImw",
"def Ayfi(EBgd, HpuQ):\n o4D3, si3g, ajwV, skBL = (EB... | [
"0.9157659",
"0.9084791",
"0.9082961",
"0.90553373",
"0.90488195",
"0.90287924",
"0.8966809",
"0.8915717",
"0.8833326",
"0.8824888",
"0.8804841",
"0.8782666",
"0.877666",
"0.87694174",
"0.876634",
"0.8756339",
"0.8753137",
"0.8752543",
"0.8750875",
"0.874771",
"0.8745007",
... | 0.8718387 | 22 |
Find the k nearest neighbors of point p and return their indices. | def boAI(XP5J, LTIa, G1Hx=5):
TaUL = oyIN.zeros(LTIa.shape[0])
for YRbF in range(len(TaUL)):
TaUL[YRbF] = Ayfi(XP5J, LTIa[YRbF])
QyVM = oyIN.argsort(TaUL)
return QyVM[:G1Hx] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def boAI(XP5J, LTIa, G1Hx=3):\n TaUL = oyIN.zeros(LTIa.shape[0])\n for YRbF in range(len(TaUL)):\n TaUL[YRbF] = Ayfi(XP5J, LTIa[YRbF])\n QyVM = TaUL.argsort()\n return QyVM[:G1Hx]",
"def boAI(XP5J, LTIa, G1Hx=5):\n TaUL = oyIN.zeros(LTIa.shape[0])\n for YRbF in range(len(TaUL)):\n ... | [
"0.86477625",
"0.8636435",
"0.8548976",
"0.80847377",
"0.80000985",
"0.78098166",
"0.7762509",
"0.7517119",
"0.7498437",
"0.7496666",
"0.748712",
"0.7455598",
"0.74026424",
"0.73864484",
"0.73733336",
"0.7306879",
"0.72917086",
"0.72792643",
"0.720736",
"0.7196266",
"0.719204... | 0.8509959 | 3 |
head The linked list's head. Note that the head is guanranteed to be not null, so it contains at least one node. | def FIMM(YKHO, sdCG):
YKHO.nd = sdCG | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sdCG(YKHO, Q6kx=None):\n if Q6kx:\n assert type(Q6kx) == o7DN\n YKHO._head = Q6kx",
"def sdCG(YKHO) -> Msxl:\n raise NotImplementedError",
"def _IVA(YKHO):\n if YKHO.head is None:\n return None\n if YKHO.head.nextNode is None:\n YKHO.head = None\n return None\n ... | [
"0.76411873",
"0.7578093",
"0.7449713",
"0.743742",
"0.7422956",
"0.73587567",
"0.7331137",
"0.7246257",
"0.70767224",
"0.69025797",
"0.69025797",
"0.69025797",
"0.69025797",
"0.6885695",
"0.6877986",
"0.6872714",
"0.6862045",
"0.6837811",
"0.68361455",
"0.68322337",
"0.68274... | 0.0 | -1 |
Returns a random node's value. | def UIrZ(YKHO):
r9Hf = 1
fHgE = YKHO.nd
Ty9i = fHgE.val
while fHgE:
if tuKI.randint(1, r9Hf) == 1:
Ty9i = fHgE.val
fHgE = fHgE.next
r9Hf += 1
return Ty9i | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RjKZ(YKHO):\n return YKHO[YKHO.random_key()]",
"def UIrZ(YKHO):\n Q6kx = YKHO.head\n from random import randint\n for YRbF in Ni9Y(randint(0, YKHO.len - 1)):\n Q6kx = Q6kx.next\n return Q6kx.val",
"def ALfI(YKHO):\n return tuKI.randint(1, 10)",
"def RHmZ(YKHO):\n return YKHO.V... | [
"0.7683627",
"0.765839",
"0.74031866",
"0.738855",
"0.7353973",
"0.7183241",
"0.70771766",
"0.7077015",
"0.702326",
"0.699212",
"0.6940177",
"0.6845422",
"0.6834654",
"0.68165374",
"0.67828757",
"0.67084455",
"0.6703253",
"0.6688887",
"0.664814",
"0.66145146",
"0.66139895",
... | 0.6889105 | 11 |
Get the vector size | def kuoY(YKHO):
return YKHO._get_model().vector_size | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def len(YKHO):\n WKvO = YKHO.vector\n return epAf.sqrt(WKvO[0] * WKvO[0] + WKvO[1] * WKvO[1])",
"def fMD5(YKHO):\n return xnhW.itkVectorImageUL2_GetVectorLength(YKHO)",
"def fMD5(YKHO):\n return xnhW.itkVectorImageUS2_GetVectorLength(YKHO)",
"def VMOf(YKHO):\n return C_3H.itkVariableLengthVect... | [
"0.830202",
"0.8297388",
"0.82536805",
"0.82508457",
"0.8219237",
"0.8201389",
"0.8190251",
"0.81835127",
"0.8178165",
"0.81542975",
"0.8126371",
"0.812015",
"0.81148493",
"0.81088483",
"0.80878705",
"0.8077322",
"0.8061722",
"0.8020511",
"0.8019634",
"0.8004074",
"0.79832566... | 0.7622957 | 40 |
Return the raw (full) expression | def ajlz(YKHO):
return YKHO.root.parse() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pbwP(YKHO):\n return YKHO.expr",
"def pbwP(YKHO):\n return '(' + YKHO.expr + ')'",
"def lsX7(YKHO):\n return YKHO.root.parse(simplified=True)",
"def VN2L(YKHO):\n return YKHO._expr",
"def VN2L(YKHO):\n return YKHO._expr",
"def lsX7(YKHO):\n return YKHO._get_expression()",
"def G5Z... | [
"0.7119479",
"0.7067927",
"0.67899793",
"0.6750105",
"0.6750105",
"0.6717647",
"0.6676295",
"0.6640487",
"0.6618248",
"0.6597284",
"0.65555227",
"0.6525816",
"0.6518928",
"0.647473",
"0.647473",
"0.647473",
"0.6447281",
"0.64467096",
"0.6429308",
"0.6428846",
"0.6396703",
"... | 0.8041256 | 0 |
Return a reloadable string of the tree and key attributes | def xkzz(YKHO):
return f'{YKHO.tree_type}{YKHO.raw_expression}' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mZe3(YKHO):\n sWfS = YKHO.__class__.__name__ + '('\n qIxc = []\n for H5ew, BWXx in YKHO.__dict__.items():\n if H5ew == 'elements':\n continue\n qIxc.append(H5ew + '=' + repr(BWXx))\n aZ0K = ', '.join(qIxc) + ')'\n sWfS += aZ0K\n return sWfS",
"def wHJl(YKHO):\n ... | [
"0.6734171",
"0.6648578",
"0.64526",
"0.6439365",
"0.64212495",
"0.6395022",
"0.6386998",
"0.6344816",
"0.6319192",
"0.6305012",
"0.62962824",
"0.62181544",
"0.6183958",
"0.6179214",
"0.6177775",
"0.61684966",
"0.61541176",
"0.61534274",
"0.61407095",
"0.61250395",
"0.6102267... | 0.0 | -1 |
Return the total number of nodes in subtree | def ekKQ(YKHO):
return YKHO.root.n_children | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EKkU(J_Es):\n mLGw = 1\n for aUGN in J_Es.children:\n mLGw += 1 + len(aUGN.children)\n EKkU(aUGN)\n return mLGw",
"def Kytq(J_Es):\n pass",
"def ges3(YKHO, tk5Y=True) -> int:\n mLGw = 0\n for jehQ in YKHO.branches:\n mLGw += jehQ.count_tree_nodes(root=False) + 1\n ... | [
"0.8475512",
"0.838793",
"0.8240475",
"0.82263607",
"0.81606424",
"0.8119027",
"0.8117472",
"0.8035665",
"0.8020379",
"0.8012911",
"0.7994203",
"0.79937464",
"0.79292893",
"0.7839991",
"0.7830921",
"0.78182936",
"0.7771437",
"0.7734488",
"0.7733518",
"0.7716066",
"0.7706587",... | 0.0 | -1 |
Returns a new serializer class for the given DTO class, which should be a ``namedtuple``. This just produces a ``ReadOnlyField`` for each field of the DTO class that is not in ``exclude``. | def dccV(LhDj, DNHh=[]):
if nf7Q.is_dataclass(LhDj):
V_D6 = [eHNT.name for eHNT in nf7Q.fields(LhDj)]
else:
V_D6 = LhDj._fields
return type(LhDj.__name__ + 'Serializer', (IyFz.Serializer,), {mWFP: IyFz.ReadOnlyField() for mWFP in V_D6 if mWFP not in DNHh}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DNHh(Emd4, _8Wg):\n\n class SerializableExcluded(Emd4):\n V_D6 = [(Jyyj, etWH) for Jyyj, etWH in Emd4.fields if Jyyj not in _8Wg]\n FUtM = None\n return N_8a",
"def AsEg(Emd4, DNHh=Eomf, gTwq=gLkH, KSgG=ye8e):\n setattr(Emd4, 'dictalchemy_exclude', DNHh)\n setattr(Emd4, 'dictalchemy... | [
"0.60618544",
"0.5823846",
"0.5775112",
"0.5352252",
"0.5351683",
"0.5309976",
"0.5186778",
"0.51749784",
"0.5104974",
"0.5026497",
"0.49567243",
"0.4956293",
"0.49290168",
"0.48624194",
"0.47747678",
"0.47470427",
"0.47424462",
"0.47219393",
"0.47146195",
"0.4706084",
"0.470... | 0.83652455 | 0 |
Returns the self link for a ref. | def hp_Y(YKHO, QePW, ehIZ, id):
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xSkb(YKHO):\n bD7m = YKHO._getLink(Sy0P)\n assert len(bD7m) > 0, 'Could not determine the self link.'\n return bD7m",
"def b_Ox(YKHO):\n return YKHO._properties.get('selfLink')",
"def b_Ox(YKHO):\n return YKHO._properties.get('selfLink')",
"def b_Ox(YKHO):\n return YKHO._properties.get(... | [
"0.7820507",
"0.7332685",
"0.7332685",
"0.7332685",
"0.7332685",
"0.73300177",
"0.73300177",
"0.73300177",
"0.73300177",
"0.73300177",
"0.73300177",
"0.73300177",
"0.7261621",
"0.72058874",
"0.7123679",
"0.7026155",
"0.6981414",
"0.6973215",
"0.6973215",
"0.6973215",
"0.69732... | 0.0 | -1 |
Round to nearest integer towards zero. Round an array of floats elementwise to nearest integer towards zero. The rounded values are returned as floats. | def yhqV(WKvO, LVAh=None):
WKvO = jHsn.asanyarray(WKvO)
if LVAh is None:
LVAh = jHsn.zeros_like(WKvO)
si3g = jHsn.floor(WKvO)
skBL = jHsn.ceil(WKvO)
LVAh[...] = jHsn.where(WKvO >= 0, si3g, skBL)
return LVAh | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KACG(jzdc):\n nPrm = oyIN.asanyarray(jzdc)\n BWXx = oyIN.where(nPrm >= 0, oyIN.floor(nPrm + 0.5), oyIN.ceil(nPrm - 0.5)).astype(int)\n if not hasattr(jzdc, '__iter__'):\n BWXx = BWXx.item()\n return BWXx",
"def pfTA(VPfE):\n Zihr = (VPfE >= 0) * 2 - 1\n yvT9 = oyIN.array(VPfE + Zihr ... | [
"0.66687554",
"0.6470684",
"0.63777864",
"0.62538266",
"0.6251441",
"0.61891866",
"0.61147076",
"0.6055755",
"0.60481805",
"0.60293376",
"0.5998347",
"0.5871829",
"0.5817841",
"0.5786644",
"0.57597417",
"0.5746987",
"0.57287204",
"0.57188135",
"0.57109433",
"0.56678224",
"0.5... | 0.0 | -1 |
Return True where x is infinity, and False otherwise. | def SRhW(WKvO, LVAh=None):
if LVAh is None:
WKvO = jHsn.asarray(WKvO)
LVAh = jHsn.empty(WKvO.shape, dtype=jHsn.bool_)
jHsn.logical_and(jHsn.isinf(WKvO), jHsn.signbit(WKvO), LVAh)
return LVAh | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Rb_1(YKHO, WKvO):\n pass",
"def ogDa(WKvO):\n WKvO = o4sw(WKvO)\n return WKvO != s9L3 and WKvO != -s9L3 and (WKvO != JNix)",
"def ogDa(WKvO):\n return sfxH.isfinite(WKvO)",
"def SzCS(YKHO, WKvO):\n pass",
"def jVJG(WKvO):\n return sfxH.isinf(WKvO)",
"def jVJG(WKvO):\n ZFoc = m5hN... | [
"0.82410276",
"0.82051754",
"0.81098366",
"0.8002493",
"0.7897428",
"0.7823558",
"0.7630247",
"0.7624669",
"0.7584223",
"0.75841016",
"0.7484035",
"0.74757826",
"0.7429222",
"0.7428418",
"0.742816",
"0.7422101",
"0.74202895",
"0.74051386",
"0.73831236",
"0.7375997",
"0.737469... | 0.6727401 | 61 |
r"""If `objs` are callable (like functions), call each of `objs` in the given order. If `objs` are context managers (such as Device instances to be connected), enter each context in the given order, and return a context manager suited for a `with` statement. This is the sequential implementation of the `concurrently` f... | def m8P2(*p9NO, **_Wat):
return tnu6(S8Sk, p9NO, _Wat) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZHTV(*p9NO, **_Wat):\n return tnu6(rHec, p9NO, _Wat)",
"def GcCZ(FYKK, p9NO):\n with zKwq.futures.ThreadPoolExecutor(XKBJ) as dBuj:\n SYSq = {dBuj.submit(FYKK, YEnM): YEnM for YEnM in p9NO}\n for oCfW in zKwq.futures.as_completed(SYSq):\n yield (oCfW, SYSq[oCfW])",
"def S8Sk(... | [
"0.71390307",
"0.60985184",
"0.5766422",
"0.54975283",
"0.51800215",
"0.5160768",
"0.51578075",
"0.51345855",
"0.5130159",
"0.5117949",
"0.5077333",
"0.50736153",
"0.50501525",
"0.5024483",
"0.5017982",
"0.4973103",
"0.49544105",
"0.49493417",
"0.49438527",
"0.494242",
"0.492... | 0.6941727 | 1 |
Return a dictionary of all attributes in the class | def all(Emd4):
U5bT = {}
for G1Hx, Ty9i in Emd4.__dict__.items():
if isinstance(Ty9i, dict) and (not G1Hx.startswith('_')):
U5bT.update([(G1Hx + '_' + Xyq7, jlSq) for Xyq7, jlSq in Ty9i.items()])
return U5bT | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def h6gc(YKHO, Emd4):\n azoT = tq_1.getmembers(Emd4, lambda jzdc: not tq_1.isroutine(jzdc))\n return {jzdc[0]: jzdc[1] for jzdc in azoT if not (jzdc[0].startswith('__') and jzdc[0].endswith('__'))}",
"def azoT(Emd4):\n return dict(Emd4._attributes)",
"def ldca(Emd4: type) -> x1iM[str]:\n return lis... | [
"0.8493221",
"0.8486599",
"0.8178229",
"0.80960286",
"0.8050382",
"0.791453",
"0.7907119",
"0.77648485",
"0.7738773",
"0.77141464",
"0.7705617",
"0.7647909",
"0.7647673",
"0.7646582",
"0.7645962",
"0.76440156",
"0.7639312",
"0.7625154",
"0.76187456",
"0.7618346",
"0.7565875",... | 0.0 | -1 |
Plot model loss and accuracy through epochs. | def x75Y(YbcW, SsqE, _0UF, UiRP):
pPPK = '#34495E'
jlxe = '#2ECC71'
nH0o = '#E23B13'
LZpg, (hh7H, fTVC) = QrM1.subplots(2, figsize=(10, 8))
hh7H.plot(range(1, len(YbcW) + 1), YbcW, pPPK, linewidth=5, label='training')
hh7H.plot(range(1, len(_0UF) + 1), _0UF, jlxe, linewidth=5, label='validation'... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mBbd(YKHO):\n QrM1.plot(YKHO.model.history.history['loss'])\n QrM1.plot(YKHO.model.history.history['val_loss'])\n QrM1.title('Model loss')\n QrM1.ylabel('Loss')\n QrM1.xlabel('Epoch')\n QrM1.legend(['Train', 'Test'], loc='upper right')\n return QrM1.show()",
"def mBbd(YKHO):\n QrM1.pl... | [
"0.8261776",
"0.82285136",
"0.8138557",
"0.8018733",
"0.79982907",
"0.7991229",
"0.7932334",
"0.78862983",
"0.787881",
"0.78601956",
"0.78599006",
"0.78491664",
"0.78298795",
"0.7819278",
"0.7809163",
"0.78086823",
"0.77876997",
"0.77607536",
"0.7732576",
"0.7721147",
"0.7719... | 0.78384364 | 12 |
Compute overlap between boxes_a and boxes_b | def _xWy(k7TE, x7pN):
k7TE = ZylS.expand_dims(k7TE, 1)
x7pN = ZylS.expand_dims(x7pN, 0)
ShLW = ZylS.math.maximum(k7TE[..., :2], x7pN[..., :2])
nc23 = ZylS.math.minimum(k7TE[..., 2:], x7pN[..., 2:])
WP1B = yd8O(ShLW, nc23)
s9o6 = yd8O(k7TE[..., :2], k7TE[..., 2:])
nJDE = yd8O(x7pN[..., :2], x... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I7Mo(wGB6, QFOH):\n tspZ = ht2j.clamp_min(ht2j.min(wGB6[..., [2]], QFOH[..., [2]]) - ht2j.max(wGB6[..., [0]], QFOH[..., [0]]), 0)\n V2zj = ht2j.clamp_min(ht2j.min(wGB6[..., [3]], QFOH[..., [3]]) - ht2j.max(wGB6[..., [1]], QFOH[..., [1]]), 0)\n C7_8 = tspZ * V2zj\n b65I = (wGB6[..., [2]] - wGB6[...,... | [
"0.8393119",
"0.8238345",
"0.8229841",
"0.8198292",
"0.809933",
"0.8042918",
"0.8042918",
"0.8042918",
"0.8042918",
"0.8042918",
"0.8042918",
"0.8042918",
"0.8042918",
"0.8022393",
"0.8014987",
"0.795451",
"0.7943496",
"0.7857329",
"0.77379334",
"0.7716812",
"0.77089894",
"... | 0.728131 | 47 |
Function to vertically flip the image The gt boxes will be need to be modified accordingly | def xPm2(VXjJ, oUSw, Crrw):
VXjJ = VXjJ.transpose(hnIv.FLIP_TOP_BOTTOM)
oUSw = ZylS.stack([oUSw[:, 0], 1 - oUSw[:, 3], oUSw[:, 2], 1 - oUSw[:, 1]], axis=1)
return (VXjJ, oUSw, Crrw) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mwd5(YKHO):\n YKHO.cv2_image = XC5k.flip(YKHO.cv2_image, 0)\n YKHO.pil_image = uGYG.Image.fromarray(YKHO.cv2_image)\n YKHO.tk_image = uGYG.ImageTk.PhotoImage(YKHO.pil_image)\n YKHO.refresh_image()",
"def xPm2(YKHO, Tz44, gb5P):\n VXjJ = Yw_3.Image(Tz44.data)\n VXjJ.vertical_flip()\n T4M1... | [
"0.789431",
"0.78803796",
"0.76400447",
"0.7633699",
"0.76085144",
"0.7521109",
"0.7293592",
"0.72807676",
"0.72569036",
"0.72489107",
"0.72489107",
"0.71556747",
"0.7124624",
"0.70924354",
"0.70737165",
"0.7029205",
"0.69841075",
"0.6971155",
"0.69691706",
"0.69244224",
"0.6... | 0.80749553 | 0 |
Transform a timedelta expressed in seconds into a human readable string | def ZI0z(Z9rn):
Z9rn = int(Z9rn)
ulWt = Z9rn // 31104000
X_bn = Z9rn // 2592000
Sm0u = Z9rn // 86400
Wave = Z9rn // 3600 % 24
O66n = Z9rn // 60 % 60
C6wh = Z9rn % 60
if ulWt > 0:
return str(ulWt) + 'Y'
if X_bn > 0:
return str(X_bn) + 'MO'
if Sm0u > 0:
retu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gfaV(g75m, C6wh=False):\n if g75m is None:\n return ''\n TKQ0, wXAI = divmod(g75m.days * 24.0 * gUNY + g75m.seconds, gUNY)\n cpvk, KG9w = divmod(wXAI, 60)\n if C6wh or KG9w:\n return '%d:%02d:%02d' % (TKQ0, cpvk, KG9w)\n else:\n return '%d:%02d' % (TKQ0, cpvk)",
"def ct8j(... | [
"0.8098839",
"0.7928898",
"0.7816734",
"0.7808166",
"0.77001375",
"0.7699289",
"0.75968486",
"0.759032",
"0.7553564",
"0.7533047",
"0.7503245",
"0.7451008",
"0.7399149",
"0.739095",
"0.73854804",
"0.7346373",
"0.73180485",
"0.72875375",
"0.7191996",
"0.7169238",
"0.7148357",
... | 0.0 | -1 |
Given an ascending array and a target value, return the number of elements in the array that is less than or equal to the target value. | def sV4O(xYvp, pan_):
assert all((xYvp[YRbF] <= xYvp[YRbF + 1] for YRbF in range(len(xYvp) - 1))), 'Input list is not sorted ascendingly!'
if pan_ >= xYvp[-1]:
return len(xYvp)
YRbF = 0
for YRbF, mLGw in enumerate(xYvp):
if mLGw > pan_:
return YRbF
return YRbF | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ueZH(ezWE: list[int], pan_: int) -> int:\n UHFx = 0\n ezWE.sort()\n for YRbF, Ty9i in enumerate(ezWE):\n yKcO = YRbF + 1\n Os4s = len(ezWE) - 1\n while yKcO < Os4s:\n MCOv = Ty9i + ezWE[yKcO] + ezWE[Os4s]\n if MCOv < pan_:\n UHFx += Os4s - yKcO... | [
"0.6882168",
"0.6499808",
"0.64073896",
"0.6329657",
"0.6329255",
"0.6104552",
"0.60938996",
"0.60417926",
"0.6019222",
"0.5974255",
"0.5955659",
"0.5948747",
"0.590484",
"0.5902435",
"0.58872056",
"0.58770275",
"0.58584523",
"0.58030885",
"0.576109",
"0.5731192",
"0.57230276... | 0.7470932 | 0 |
Focal loss (autoweighted cross entropy variant). | def UYCc(input: torch.Tensor, pan_: torch.Tensor, KMvS=2, Cwt5=1):
pan_ = pan_.detach()
Obdg = vuvg.cross_entropy(input, pan_, reduce=False)
N77f = Cwt5 * (1 - ht2j.exp(-Obdg)) ** KMvS * Obdg
return N77f.mean() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UYCc(Y8eF=None, aMgO=None):\n Y8eF = ZylS.one_hot(Y8eF, 21)\n o3Uj = ZylS.nn.sigmoid(aMgO)\n Cwt5 = 0.1\n KMvS = 1\n Iujo = ZylS.ones_like(Y8eF) * Cwt5\n Iujo = ZylS.where(ZylS.equal(Y8eF, 1), Iujo, 1 - Iujo)\n TvvM = ZylS.where(ZylS.equal(Y8eF, 1), 1 - o3Uj, o3Uj)\n TvvM = Iujo * TvvM ... | [
"0.81649977",
"0.8032639",
"0.79205185",
"0.7892342",
"0.7842385",
"0.7818838",
"0.781201",
"0.781201",
"0.77946866",
"0.7757961",
"0.77103925",
"0.7637199",
"0.7637199",
"0.7562966",
"0.7544017",
"0.75405407",
"0.7520007",
"0.7507255",
"0.75002354",
"0.74987483",
"0.748527",... | 0.7922817 | 2 |
Function that retrieves the physical address. | def ccBJ(YKHO, KCHu: int, XP5J: int, yzQ0: int) -> int:
Xf84 = YKHO._st.frameNum(KCHu)
pioN = YKHO._pt.address(Xf84, XP5J, yzQ0)
return pioN | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def syxc(YKHO) -> int:\n ...",
"def syxc(YKHO, rQow: ghidra.program.model.lang.Language) -> RnTg.program.model.address.Address:\n ...",
"def Gd_m(YKHO) -> int:\n ...",
"def ceuN(YKHO) -> Swre:\n ...",
"def g9fk(YKHO) -> str:\n return YKHO.GetInformation().GetAddressAsString('')",
"def vAkW... | [
"0.8637509",
"0.7918083",
"0.7312189",
"0.7294329",
"0.7290656",
"0.72251874",
"0.7151595",
"0.7137749",
"0.71317345",
"0.7126785",
"0.7126785",
"0.7126785",
"0.7043578",
"0.70260847",
"0.7010282",
"0.6968266",
"0.6968266",
"0.6933207",
"0.6933207",
"0.6933207",
"0.692674",
... | 0.0 | -1 |
return a deep copy of ``val`` so that there is no sharing of mutable data between val and the returned copy. | def vQRG(wEf2: Any) -> ImMB:
raise ValueError("don't know how to handle type %r" % type(wEf2)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GCWz(YKHO, wEf2):\n pass",
"def jth9(YKHO):\n yvT9 = type(YKHO)(value=_qLf(YKHO.value), _func=getattr(YKHO, '_func', None))\n if not hasattr(YKHO, '_func'):\n del yvT9._func\n return yvT9",
"def _qLf(wEf2, rb7a=0):\n if isinstance(wEf2, list):\n if rb7a >= 8:\n raise... | [
"0.72481185",
"0.6376608",
"0.6360499",
"0.6352261",
"0.6066254",
"0.6041188",
"0.60293466",
"0.5958082",
"0.5902745",
"0.5895342",
"0.5895342",
"0.5886966",
"0.5826512",
"0.5823055",
"0.5813566",
"0.5800352",
"0.5786599",
"0.5773199",
"0.57726496",
"0.5762063",
"0.57286274",... | 0.6796728 | 1 |
Plot the distribution scores in a nice chart | def ummb(cCrA):
WKvO = []
LVAh = []
for YRbF in cCrA:
WKvO.append(YRbF)
LVAh.append(cCrA[YRbF])
Oa1e, hh7H = QrM1.subplots(1)
hh7H.bar(WKvO, LVAh, color='black')
hh7H.set_title('Distribution of the ' + EYO0 + ' algorithm', fontsize=34)
hh7H.set_ylim(0, 100000)
hh7H.set_xl... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WUBO(YKHO):\n QrM1.plot(YKHO.scores)\n QrM1.show()",
"def f52L(PPHi, HmAy):\n QrM1.bar(PPHi, HmAy, color='b')\n QrM1.xlabel('Score')\n QrM1.ylabel('Frenquence')\n QrM1.title('Distribution of Score')\n QrM1.show()",
"def WUBO(YKHO, InLe=False):\n import matplotlib.pyplot as QrM1\n ... | [
"0.7795069",
"0.7383149",
"0.72823536",
"0.72266287",
"0.70826656",
"0.7078372",
"0.7008309",
"0.7007171",
"0.6969485",
"0.6965108",
"0.6961561",
"0.6917515",
"0.69165725",
"0.68414843",
"0.6825972",
"0.68079305",
"0.67725855",
"0.66864955",
"0.66720396",
"0.66598237",
"0.665... | 0.7204034 | 4 |
Inserts a word into the trie. | def JPHp(YKHO, GIN8: str) -> None:
_9jN = YKHO.root
for Npgh in GIN8:
_9jN = _9jN.children[Npgh]
_9jN.is_word = True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JPHp(YKHO, GIN8: str) -> None:\n jvSB = YKHO.node\n for YRbF in GIN8:\n if YRbF not in jvSB.char:\n jvSB.char[YRbF] = ep_x()\n jvSB = jvSB.char[YRbF]\n if jvSB.isword is False:\n jvSB.isword = True",
"def JPHp(YKHO, GIN8: str) -> None:\n XP5J = YKHO.root\n for Y... | [
"0.89349246",
"0.8875727",
"0.88754433",
"0.88664436",
"0.8845666",
"0.88351166",
"0.8829387",
"0.88241696",
"0.88215303",
"0.88025844",
"0.87970716",
"0.87917984",
"0.87870646",
"0.8786165",
"0.8785743",
"0.87801075",
"0.8779744",
"0.87764865",
"0.87708014",
"0.8767584",
"0.... | 0.8662979 | 36 |
Returns if the word is in the trie. | def TgwQ(YKHO, GIN8: str) -> bool:
_9jN = YKHO.root
if not _9jN:
return False
for Npgh in GIN8:
if Npgh not in _9jN.children:
return False
_9jN = _9jN.children[Npgh]
return _9jN.is_word | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FYXB(YKHO, GIN8):\n GIN8 = GIN8.strip()\n tk5Y = YKHO.root\n for Z9rn in GIN8:\n if Z9rn not in tk5Y:\n return False\n tk5Y = tk5Y[Z9rn]\n return tk5Y.end_of_word",
"def DUe0(YKHO, ZOCz, GIN8):\n if type(GIN8) != str:\n raise TypeError('Trie only works on str!')... | [
"0.82730556",
"0.8268669",
"0.8264989",
"0.821454",
"0.8189983",
"0.81762034",
"0.81695247",
"0.81329536",
"0.7981468",
"0.7973667",
"0.7966321",
"0.79540753",
"0.7881218",
"0.7876813",
"0.78663623",
"0.7835046",
"0.7819606",
"0.7812851",
"0.7811768",
"0.7795306",
"0.77902055... | 0.752685 | 59 |
Returns if there is any word in the trie that starts with the given prefix. | def BYxH(YKHO, y0cW: str) -> bool:
_9jN = YKHO.root
if not _9jN:
return False
for Npgh in y0cW:
if Npgh not in _9jN.children:
return False
_9jN = _9jN.children[Npgh]
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BYxH(YKHO, y0cW):\n GIN8 = y0cW\n if not GIN8:\n return True\n nsYX = GIN8[0]\n if nsYX not in YKHO.trie_map:\n return False\n Tifd = YKHO.trie_map[nsYX]\n for YRbF in range(1, len(GIN8)):\n LihS = GIN8[YRbF]\n if LihS not in Tifd.childMap:\n return Fals... | [
"0.86427087",
"0.84568375",
"0.8440557",
"0.84156126",
"0.8415607",
"0.8406983",
"0.8381444",
"0.83702785",
"0.83358693",
"0.8327568",
"0.8326861",
"0.82399535",
"0.82294077",
"0.81727576",
"0.8160271",
"0.8152815",
"0.81473583",
"0.8115703",
"0.801165",
"0.7983931",
"0.79839... | 0.0 | -1 |
Tokenizes the entire dataset using atomwise tokenization method This function takes complete dataset X and number of maximum tokens and tokenizes the dataset into list numerical numbers representing molecules in the dataset. First, a lookup dictionary is created using the entire dataset and smiles pretrained tokenizati... | def hPW3(EcVT, Cj7G=1500):
i_4r = []
for jxry in EcVT:
Q4kH = ULnh(jxry)
i_4r += Q4kH
if len(set(i_4r)) < Cj7G:
Cj7G = len(set(i_4r))
dict = mBkc(i_4r).most_common(Cj7G)
dict = {WKvO[0]: YRbF for YRbF, WKvO in enumerate(dict)}
BQR7 = []
for mvm2 in EcVT:
n50m ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CpzD(EcVT, Cj7G=1500):\n i_4r = []\n for jxry in EcVT:\n i_4r += list(jxry)\n if len(set(i_4r)) < Cj7G:\n Cj7G = len(set(i_4r))\n dict = mBkc(i_4r).most_common(Cj7G)\n dict = {WKvO[0]: YRbF for YRbF, WKvO in enumerate(dict)}\n BQR7 = []\n for mvm2 in EcVT:\n n50m = lis... | [
"0.6564258",
"0.6410608",
"0.6101615",
"0.6030711",
"0.5693101",
"0.5614824",
"0.5450244",
"0.54491085",
"0.539241",
"0.5347919",
"0.5338052",
"0.53250223",
"0.5318277",
"0.5299139",
"0.528319",
"0.52816826",
"0.523286",
"0.5204891",
"0.5202599",
"0.5194075",
"0.51924664",
... | 0.76273876 | 0 |
creates the fields for selecting a team | def qz_t(dBAz, eN17):
for YRbF in range(0, len(eN17)):
dBAz[YRbF].fields['team_picked'] = H6V6.ModelChoiceField(queryset=r2Kd.objects.filter(name=eN17[YRbF].home_team_name) | r2Kd.objects.filter(name=eN17[YRbF].away_team_name) | r2Kd.objects.filter(name='Draw'), widget=H6V6.Select(attrs={'class': 'form-cont... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HQiH(cGyw, pd7b, pP4Z, PObu):\n TBEy = NCls.fetch_tuple(uPSZ.select_countries)\n SCpB = z3rX.makeSelector(TBEy, True)\n WCNn = NCls.fetch_tuple(uPSZ.select_vanues)\n JXcn = z3rX.makeSelector(WCNn, True)\n Baxs = NCls.fetch_tuple(uPSZ.select_sports)\n cbZA = z3rX.makeSelector(Baxs, True)\n ... | [
"0.67821133",
"0.6630196",
"0.64265895",
"0.6075645",
"0.5966841",
"0.5894405",
"0.5865806",
"0.5837278",
"0.5824344",
"0.57964355",
"0.5765176",
"0.5762539",
"0.57288486",
"0.5702548",
"0.56972253",
"0.5682904",
"0.56761914",
"0.5672079",
"0.5650523",
"0.5622881",
"0.5610158... | 0.7226904 | 0 |
Replace qiskit_ibm.IBMProvider with a mock that returns a single backend. Note this will set the value of qiskit_ibm.IBMProvider to a MagicMock object. It is intended to be run as part of docstrings with jupyterexample in a hidden cell so that later examples which rely on ibm quantum devices so that the docs can be bui... | def FUs_(DDLl):
TAK1 = CFMy()
if not hasattr(GZPb, DDLl):
raise NameError('The specified backend name is not a valid mock from qiskit.test.mock')
llcw = getattr(GZPb, DDLl)()
TAK1.get_backend.return_value = llcw
TAK1.return_value = TAK1
haeM.IBMProvider = TAK1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O_66(kT1P):\n return kT1P.get_backend('ionq_simulator')",
"def Ei0m(YKHO):\n Vr86 = {W30o for W30o in dir(YKHO.provider.backend) if isinstance(getattr(YKHO.provider.backend, W30o), Ap9Y)}\n zxMY = {W30o.name().lower() for W30o in YKHO.provider._backends.values()}\n YKHO.assertEqual(Vr86, zxMY)",
... | [
"0.6354667",
"0.62691534",
"0.611695",
"0.60469687",
"0.57765377",
"0.5775282",
"0.5726129",
"0.56339747",
"0.56269157",
"0.56022644",
"0.55410177",
"0.55336964",
"0.5525096",
"0.5524996",
"0.552373",
"0.55035716",
"0.5484587",
"0.545913",
"0.54169023",
"0.54157126",
"0.53801... | 0.81957555 | 0 |
Mean % of Time Gained | def nEqp(_SYM, Dvwi):
LQ9S = m1kg(_SYM)
lI2O = m1kg(Dvwi)
mvvt = LQ9S - lI2O
Vb7o = mvvt[mvvt > 0]
EHFP = -mvvt[mvvt < 0]
jc4s = oyIN.percentile(EHFP, 90)
W1ll = oyIN.percentile(EHFP, 95)
FSaK = (LQ9S - lI2O).divide(lI2O) * 100
NDk9 = FSaK[FSaK > 0]
YTfS = -FSaK[FSaK < 0]
ret... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IvhD(YKHO) -> float:\n return YKHO.total_time / YKHO.valid_count",
"def xZkv():\n return bBLp / Icon",
"def qqgr(YKHO):\n return sum(YKHO.times) / len(YKHO.times)",
"def qqgr(YKHO):\n return sum(YKHO.times) / len(YKHO.times)",
"def BBfX(YKHO):\n return sum(YKHO.dtime_log) / len(YKHO.dtim... | [
"0.81633085",
"0.7921418",
"0.7623574",
"0.75721365",
"0.7483508",
"0.73888534",
"0.7227325",
"0.7163166",
"0.70985186",
"0.70955825",
"0.70891005",
"0.7075563",
"0.70685786",
"0.7028221",
"0.70261675",
"0.7023854",
"0.70077723",
"0.6969162",
"0.6949716",
"0.6947331",
"0.6946... | 0.0 | -1 |
Clears the console according to the operating system being used. | def Htfn(a9EH):
if a9EH == 'Windows':
Hy7s.system('cls')
elif a9EH == 'Linux':
Hy7s.system('clear') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Htfn():\n if a9EH.system() == 'Windows':\n Hy7s.system('cls')\n elif a9EH.system() == 'Linux':\n Hy7s.system('clear')",
"def Htfn():\n if a9EH.system() == 'Linux':\n Hy7s.system('clear')\n elif a9EH.system() == 'Windows':\n Hy7s.system('cls')",
"def Htfn():\n if m... | [
"0.8691388",
"0.8520103",
"0.8324124",
"0.83096796",
"0.81204623",
"0.7989778",
"0.7973705",
"0.7856829",
"0.7813915",
"0.7789393",
"0.7772975",
"0.77244496",
"0.7700448",
"0.7671876",
"0.76667035",
"0.7664943",
"0.7664232",
"0.7651607",
"0.7569048",
"0.756256",
"0.7546599",
... | 0.8676739 | 1 |
Return TITLE property of the CONFIG fiel. | def Upwb():
HxGy = uCNW.mainapp
GPtr = HxGy.config
leAC = GPtr.get('TITLE', 'Executive Dashbaord')
return Yxsy(pz3A({'title': leAC})) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def leAC(YKHO):\n return YKHO.config.title",
"def leAC(YKHO):\n return YKHO.header.configuration_designation",
"def leAC(YKHO):\n if 'title' in YKHO._prop_dict:\n return YKHO._prop_dict['title']\n else:\n return None",
"def Rycv(YKHO):\n return YKHO.config_line.config.title",
"... | [
"0.8376729",
"0.74533945",
"0.7422285",
"0.7412036",
"0.73725736",
"0.7342171",
"0.72904634",
"0.71362084",
"0.71047276",
"0.6982196",
"0.6982196",
"0.6922737",
"0.68861836",
"0.6885205",
"0.6850016",
"0.6850016",
"0.6850016",
"0.6850016",
"0.6850016",
"0.6850016",
"0.6850016... | 0.6676445 | 93 |
Get GKE cluster's full resource name and cluster URI. | def H_3F(Me5y, kXUa):
if Me5y is None and kXUa is None:
return (None, None)
CqcG = None
if Me5y:
CqcG, Rci7, mWFP = ekoV(Me5y)
else:
CqcG = C9U5.VALUES.core.project.GetOrFail()
Rci7, mWFP = QiE2(kXUa)
return W2dQ(CqcG, Rci7, mWFP) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iZhX(YKHO) -> str:\n return qe4Y.get(YKHO, 'cluster_uri')",
"def ooXF(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'cluster_endpoint')",
"def KMW5(YKHO) -> str:\n return qe4Y.get(YKHO, 'cluster_network_uri')",
"def A9IH(YKHO):\n return YKHO.client().clusters.get(YKHO.resource_id)",
"d... | [
"0.7389964",
"0.67641366",
"0.67318195",
"0.67266995",
"0.654497",
"0.653333",
"0.65257543",
"0.64985037",
"0.63952357",
"0.6365171",
"0.6359923",
"0.6359923",
"0.6359923",
"0.6359923",
"0.629306",
"0.6275784",
"0.6275784",
"0.6234635",
"0.6234635",
"0.619335",
"0.61414754",
... | 0.6226319 | 19 |
Called to update the sprite. Do this every frame. Handles moving the sprite by its velocity | def QdZT(YKHO):
YKHO.move(YKHO.velocity) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QdZT(YKHO):\n YKHO.animate()\n YKHO.acc = iArr(0, 0)\n H5ew = g74T.key.get_pressed()\n if H5ew[g74T.K_RIGHT]:\n YKHO.acc.x = JfOK\n if H5ew[g74T.K_LEFT]:\n YKHO.acc.x = -JfOK\n if H5ew[g74T.K_UP]:\n YKHO.acc.y = -JfOK\n if H5ew[g74T.K_DOWN]:\n YKHO.acc.y = JfOK\... | [
"0.80801874",
"0.7887698",
"0.78405356",
"0.78267974",
"0.7802493",
"0.77846557",
"0.77062654",
"0.7677969",
"0.7595593",
"0.7595593",
"0.7557281",
"0.7541302",
"0.7528228",
"0.7515512",
"0.7503977",
"0.7479091",
"0.74677926",
"0.74501914",
"0.7444932",
"0.74424726",
"0.74390... | 0.80643517 | 1 |
Called to update the sprite. Do this every frame. Handles moving the sprite by its velocity. Caps the speed as necessary. | def QdZT(YKHO):
iBLD = epAf.hypot(YKHO.velx, YKHO.vely)
if iBLD > YKHO.maxspeed:
iBLD = YKHO.maxspeed
YylR = epAf.atan2(YKHO.vely, YKHO.velx)
YKHO.velx = epAf.cos(YylR) * iBLD
YKHO.vely = epAf.sin(YylR) * iBLD
YKHO.move(YKHO.velx, YKHO.vely) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QdZT(YKHO):\n YKHO.animate()\n YKHO.acc = iArr(0, 0)\n H5ew = g74T.key.get_pressed()\n if H5ew[g74T.K_RIGHT]:\n YKHO.acc.x = JfOK\n if H5ew[g74T.K_LEFT]:\n YKHO.acc.x = -JfOK\n if H5ew[g74T.K_UP]:\n YKHO.acc.y = -JfOK\n if H5ew[g74T.K_DOWN]:\n YKHO.acc.y = JfOK\... | [
"0.80466056",
"0.7673564",
"0.76421577",
"0.76403475",
"0.7594917",
"0.7573075",
"0.75581074",
"0.75581074",
"0.75408536",
"0.75408536",
"0.7518686",
"0.7490472",
"0.74782157",
"0.7467931",
"0.7466046",
"0.7438878",
"0.7438878",
"0.7438878",
"0.74062026",
"0.7385985",
"0.7374... | 0.72464573 | 33 |
Put the ball back in the middle and stop it from moving | def SiRx(YKHO):
YKHO.rect.centerx = 260
YKHO.rect.bottom = 549
YKHO.velx = 0
YKHO.vely = 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def psSi(YKHO):\n if YKHO.rect.right > zMH2:\n YKHO.xmove = YKHO.xmove * -1\n if YKHO.rect.left < 0:\n YKHO.xmove = YKHO.xmove * -1\n if YKHO.rect.bottom > vkJL:\n YKHO.ymove = YKHO.ymove * -1\n if YKHO.rect.top < 0:\n YKHO.ymove = YKHO.ymove * -1",
"def gevY(YKHO):\n Y... | [
"0.7518649",
"0.7503061",
"0.72491574",
"0.7212333",
"0.7212333",
"0.71951467",
"0.71815336",
"0.71730566",
"0.71559906",
"0.71505606",
"0.7109708",
"0.7002874",
"0.6975233",
"0.69706315",
"0.6943217",
"0.69394195",
"0.69369185",
"0.691928",
"0.6912012",
"0.68986386",
"0.6898... | 0.6504456 | 77 |
Resets the scores to zero. | def SiRx(YKHO):
YKHO.score = 0
YKHO.reRender() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NLKW(YKHO):\n YKHO.score = 0",
"def NLKW(YKHO):\n YKHO.score = 0",
"def SiRx(YKHO):\n YKHO.totalscore = 0",
"def jMKS(YKHO):\n YKHO._player1score = 0\n YKHO._player2score = 0",
"def SiRx(YKHO):\n YKHO.score = 0\n YKHO.count_obstacles = 0\n YKHO.count_moves = 0",
"def SiRx(YKHO... | [
"0.9015239",
"0.9015239",
"0.8726403",
"0.8576394",
"0.81523794",
"0.8074243",
"0.7824967",
"0.7784929",
"0.77774316",
"0.776521",
"0.7549991",
"0.7546256",
"0.7497645",
"0.7488378",
"0.7464361",
"0.74241716",
"0.73876446",
"0.7372856",
"0.735971",
"0.7353614",
"0.73311806",
... | 0.806788 | 6 |
Tests if created class is Review | def VHC1(YKHO):
gpRq = E1cg()
YKHO.assertAlmostEqual(type(gpRq), E1cg) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ADEH(YKHO):\n YKHO.assertTrue(issubclass(YKHO.review.__class__, KcDH), True)",
"def _QDl(YKHO):\n seHR = E1cg()\n YKHO.assertEqual(isinstance(seHR, E1cg), True)",
"def fwUu(YKHO):\n P8oC = E1cg()\n YKHO.assertIsInstance(P8oC, E1cg)",
"def Buc1(YKHO):\n o5Dc = E1cg()\n YKHO.assertEqua... | [
"0.79323053",
"0.789457",
"0.78061104",
"0.77919084",
"0.77542037",
"0.76867795",
"0.7616191",
"0.7567585",
"0.75432783",
"0.7436993",
"0.7404832",
"0.7404832",
"0.7306307",
"0.7153986",
"0.7134767",
"0.70859987",
"0.7051821",
"0.70472294",
"0.70472014",
"0.70318526",
"0.7013... | 0.73534936 | 12 |
Tests if created class is subclass of BaseModel | def kkAu(YKHO):
gpRq = E1cg()
YKHO.assertIsInstance(gpRq, KcDH)
YKHO.assertTrue(hasattr(gpRq, 'id'))
YKHO.assertTrue(hasattr(gpRq, 'created_at'))
YKHO.assertTrue(hasattr(gpRq, 'updated_at')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I_4h(YKHO):\n raTX = mv1M()\n YKHO.assertEqual(issubclass(type(raTX), KcDH), True)",
"def I_4h(YKHO):\n YKHO.assertTrue(issubclass(E1cg, KcDH))",
"def wdfw(YKHO):\n YKHO.assertTrue(issubclass(FYrf.Place, FYrf.BaseModel))",
"def aqpG(YKHO):\n YKHO.assertTrue(issubclass(YKHO.model.__class__,... | [
"0.81625885",
"0.8141445",
"0.8104708",
"0.79660445",
"0.79557335",
"0.79413617",
"0.78856325",
"0.78856325",
"0.7804935",
"0.77891",
"0.7788837",
"0.77482146",
"0.7736977",
"0.7732235",
"0.76999044",
"0.7693724",
"0.7693452",
"0.7615108",
"0.7567224",
"0.7515968",
"0.7498798... | 0.757905 | 18 |
Get discount rewards to update the network. | def AC1_(YKHO, cb_Q, vwlo, PA2I, QTBn, Zode):
BWXx = 0.0
iyCK = oyIN.zeros_like(vwlo)
if not PA2I:
BWXx = cb_Q.run(YKHO.value, feed_dict={YKHO.local_state: [QTBn], YKHO.local_h_in: Zode})[0, 0]
for YRbF in reversed(range(len(vwlo))):
BWXx = vwlo[YRbF] + YKHO.discount_factor * BWXx
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mynO(YKHO):\n Mkmy = oyIN.array(YKHO.rewards)\n g2lU = oyIN.zeros_like(Mkmy)\n S8qo = 0\n for a1PO in reversed(range(0, Mkmy.size)):\n S8qo = S8qo * YKHO.gamma + Mkmy[a1PO]\n g2lU[a1PO] = S8qo\n g2lU += oyIN.array(YKHO.rewards_smooth)\n return g2lU",
"def p9R9(YKHO):\n vwlo... | [
"0.71787816",
"0.6954553",
"0.68623096",
"0.6822281",
"0.6548607",
"0.6473738",
"0.6452638",
"0.6452127",
"0.6450242",
"0.64112985",
"0.6401693",
"0.637272",
"0.637272",
"0.63208336",
"0.62571007",
"0.6252071",
"0.6201422",
"0.6195474",
"0.614787",
"0.6140209",
"0.6131138",
... | 0.6470614 | 6 |
reset s_list, a_list, r_list for train mode. | def qpAD(YKHO):
YKHO.s_list = []
YKHO.a_list = []
YKHO.r_list = []
YKHO.v_list = [] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ka5c(YKHO):\n YKHO.best_val_loss = None\n YKHO.best_params = None\n YKHO.train_loss_history = []\n YKHO.val_loss_history = []\n YKHO.train_batch_loss = []\n YKHO.val_batch_loss = []\n YKHO.num_operation = 0",
"def SiRx(YKHO):\n YKHO.train_loss.reset_states()\n YKHO.train_accuracy.r... | [
"0.70798576",
"0.70043665",
"0.700077",
"0.6941748",
"0.6941748",
"0.69307476",
"0.68652123",
"0.6745424",
"0.67046446",
"0.66869026",
"0.6684589",
"0.66782373",
"0.6647226",
"0.6641623",
"0.6617485",
"0.66141754",
"0.66141754",
"0.66065407",
"0.65889",
"0.6563631",
"0.655727... | 0.7546056 | 0 |
Add person to Related People list | def nRki(YKHO, a70H):
YKHO._open_inline_edit()
D3lj = a70H.email
YKHO._root.text_field(placeholder='Add person').set(D3lj)
tCqz = YKHO._root.element(class_name='ui-menu-item', text=ZbWC.compile(D3lj))
tCqz.click()
YKHO._confirm_inline_edit() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vriw(YKHO, a70H):\n YKHO.persons.append(a70H)",
"def nRki(YKHO, a70H, oeNL=0):\n a70H.road = YKHO\n YKHO.people[a70H.pid] = a70H\n a70H.pos = oeNL",
"def u7wh(YKHO, t7v3):\n for a70H in t7v3:\n YKHO.add_person(a70H)",
"def nRki(YKHO, ABDL, pzya, FeUB):\n pass",
"def GEVe(YKHO, ... | [
"0.76833117",
"0.72513336",
"0.7136563",
"0.70551646",
"0.6982015",
"0.6950739",
"0.6942345",
"0.6924633",
"0.69059277",
"0.6808609",
"0.68024266",
"0.68012863",
"0.6774586",
"0.6717575",
"0.66361326",
"0.65947914",
"0.65876645",
"0.65454346",
"0.64647925",
"0.64495665",
"0.6... | 0.6000455 | 36 |
Mechanism to parse package information from a `setup.[py|cfg]` file. This uses the implementation at `poetry.utils.setup_reader.SetupReader` in order to parse the file. This is not reliable for complex setup files and should only attempted as a fallback. | def rkZl(Emd4, pmON: Path) -> Ms2r:
if not Emd4.has_setup_files(pmON):
raise b4lH(pmON, 'No setup files (setup.py, setup.cfg) was found.')
try:
Aofo = Qrok.read_from_directory(pmON)
except Exception as e:
raise b4lH(pmON, tTpl)
VlSJ = Aofo['python_requires']
if VlSJ is None:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oBTH(YKHO, nUeQ):\n ...",
"def Se0l(Ux0P):\n from distutils.sysconfig import parse_makefile, expand_makefile_vars, _variable_rx\n from distutils.text_file import TextFile\n from distutils.util import split_quoted\n vars = parse_makefile(Ux0P)\n nUeQ = TextFile(Ux0P, strip_comments=1, skip_b... | [
"0.624627",
"0.62291765",
"0.61601204",
"0.61514443",
"0.61113983",
"0.60831434",
"0.60332143",
"0.6020405",
"0.5960879",
"0.5883579",
"0.58565307",
"0.58436793",
"0.5812181",
"0.57883716",
"0.5763063",
"0.5726896",
"0.5684951",
"0.5677111",
"0.5591685",
"0.5587067",
"0.55798... | 0.67722005 | 0 |
Build the hidden layers, with support for batch normalization and dropout. | def l0pP(YKHO, g4y1):
for gEmA in range(YKHO.n_hidden_layers):
if YKHO.dropout_rate:
g4y1 = ZylS.layers.dropout(g4y1, YKHO.dropout_rate, training=YKHO._training)
g4y1 = ZylS.layers.dense(g4y1, YKHO.n_neurons, kernel_initializer=YKHO.initializer, name='hidden%d' % (gEmA + 1))
if Y... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MHEM(YKHO):\n raise NotImplementedError",
"def MP8d(YKHO):\n H2v2 = dvgN(dvgN(YKHO.height, 2), 2)\n TVTK = dvgN(dvgN(YKHO.width, 2), 2)\n YKHO.hiddens1 = D5BU(YKHO.batch_size, h1Dz, [H2v2, TVTK], 'encoder1')\n H2v2 = dvgN(H2v2, 2)\n TVTK = dvgN(TVTK, 2)\n YKHO.hiddens2 = D5BU(YKHO.batch_... | [
"0.7469801",
"0.7151779",
"0.7068695",
"0.7066242",
"0.69820136",
"0.69296366",
"0.6911971",
"0.68900037",
"0.68782204",
"0.68676615",
"0.68124664",
"0.68084186",
"0.6788635",
"0.6779453",
"0.67745966",
"0.676115",
"0.6706839",
"0.6693852",
"0.66844296",
"0.66817397",
"0.6669... | 0.0 | -1 |
The set of arguments for constructing a EndpointPolicy resource. | def FIMM(Ro_8, *, WqqX: pulumi.Input['EndpointMatcherArgs'], VINR: pulumi.Input[str], type: pulumi.Input['EndpointPolicyType'], VES9: Optional[pulumi.Input[str]]=None, BkLq: Optional[pulumi.Input[str]]=None, JBZA: Optional[pulumi.Input[str]]=None, Crrw: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]=None, Rci7... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(Ro_8, kFeU: str, qIxc: EndpointPolicyArgs, 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: PolicyArgs, VKhi: Optional[pulumi.ResourceOptions]=None):\n ... | [
"0.7478097",
"0.66644984",
"0.6418272",
"0.6262814",
"0.62402165",
"0.62100434",
"0.6205508",
"0.6137549",
"0.61108327",
"0.6015537",
"0.5975148",
"0.5970587",
"0.5966167",
"0.5893451",
"0.5834408",
"0.5822869",
"0.58117676",
"0.57753277",
"0.5770429",
"0.57534355",
"0.574890... | 0.5485565 | 51 |
Optional. This field specifies the URL of AuthorizationPolicy resource that applies authorization policies to the inbound traffic at the matched endpoints. Refer to Authorization. If this field is not specified, authorization is disabled(no authz checks) for this endpoint. | def VES9(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'authorization_policy') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FraT(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'authorization_endpoint')",
"def FraT(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'authorization_endpoint')",
"def FraT(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'authorization_endpoint')",
"def VES9(YKHO) -> qe4Y.O... | [
"0.67033625",
"0.67033625",
"0.63278294",
"0.6327587",
"0.6216953",
"0.60875237",
"0.6005727",
"0.59948856",
"0.58564043",
"0.5845904",
"0.58375597",
"0.5774121",
"0.5651417",
"0.56061107",
"0.5579505",
"0.5579505",
"0.5578731",
"0.5566458",
"0.5481513",
"0.54541326",
"0.5435... | 0.69252753 | 0 |
Optional. A URL referring to ServerTlsPolicy resource. ServerTlsPolicy is used to determine the authentication policy to be applied to terminate the inbound traffic at the identified backends. If this field is not set, authentication is disabled(open) for this endpoint. | def JrlT(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'server_tls_policy') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JrlT(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'server_tls_policy')",
"def JrlT(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'server_tls_policy')",
"def g_M9(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'tls_policy')",
"def BkLq(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(... | [
"0.7062631",
"0.7062631",
"0.6662472",
"0.62006056",
"0.6001048",
"0.5940464",
"0.5686734",
"0.559744",
"0.5560329",
"0.5560329",
"0.5560329",
"0.5560329",
"0.5560329",
"0.5560329",
"0.54223937",
"0.53835154",
"0.53835154",
"0.53740287",
"0.5362277",
"0.5298221",
"0.5279642",... | 0.7424727 | 1 |
Optional. This field specifies the URL of AuthorizationPolicy resource that applies authorization policies to the inbound traffic at the matched endpoints. Refer to Authorization. If this field is not specified, authorization is disabled(no authz checks) for this endpoint. | def VES9(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'authorization_policy') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VES9(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'authorization_policy')",
"def FraT(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'authorization_endpoint')",
"def FraT(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'authorization_endpoint')",
"def FraT(YKHO) -> qe... | [
"0.6923674",
"0.67038614",
"0.67038614",
"0.6328598",
"0.62184024",
"0.6086247",
"0.6004793",
"0.5996133",
"0.5855814",
"0.5845266",
"0.58347595",
"0.5774559",
"0.5651046",
"0.5606043",
"0.557821",
"0.5578085",
"0.5578085",
"0.5567333",
"0.54803985",
"0.5453185",
"0.54373926"... | 0.63267875 | 4 |
Optional. A URL referring to ServerTlsPolicy resource. ServerTlsPolicy is used to determine the authentication policy to be applied to terminate the inbound traffic at the identified backends. If this field is not set, authentication is disabled(open) for this endpoint. | def JrlT(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'server_tls_policy') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JrlT(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'server_tls_policy')",
"def JrlT(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'server_tls_policy')",
"def g_M9(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'tls_policy')",
"def BkLq(YKHO) -> h8nf[qe4Y.Input[str]]:\n return... | [
"0.7424947",
"0.7424947",
"0.66637135",
"0.620165",
"0.6001974",
"0.5941285",
"0.5686368",
"0.55982244",
"0.55610716",
"0.55610716",
"0.55610716",
"0.55610716",
"0.55610716",
"0.55610716",
"0.5423256",
"0.53831846",
"0.53831846",
"0.5375636",
"0.5361815",
"0.5300649",
"0.5282... | 0.7062782 | 3 |
Setup the test driver and create test users | def FCbF(YKHO):
print('--------------------------NEXT-TEST----------------------------------------------')
uh1m = lE6K()
uh1m.binary_location = '/usr/bin/chromium-browser'
uh1m.add_argument('--headless')
YKHO.driver = cSpz.Chrome(executable_path='/home/ryanwright1992/chromedriver', chrome_options=uh... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FCbF(YKHO):\n NCls.drop_all()\n NCls.create_all()\n P4t4.config['TESTING'] = True\n YKHO.client = P4t4.test_client()",
"def FCbF(YKHO):\n YKHO.new_user = YJv1('Judy', 'homeboys123')",
"def FCbF(YKHO):\n YKHO.app = YKHO._set_up_test_app(LUif)\n YKHO.client = YKHO._set_up_client(YKHO.app... | [
"0.79215294",
"0.7725097",
"0.7697246",
"0.76811624",
"0.76715344",
"0.765637",
"0.76455784",
"0.76433146",
"0.7605227",
"0.75957507",
"0.75616986",
"0.75599694",
"0.7558361",
"0.755231",
"0.75503296",
"0.75489503",
"0.7548203",
"0.7516397",
"0.7497342",
"0.7487061",
"0.74789... | 0.0 | -1 |
Clear screen using ANSI escape codes | def yPVe(leAC: str=''):
if not ZbJx.debug:
print('\x1b[2J\x1b[H', end='')
if leAC:
print()
wOoH(leAC)
print() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yPVe():\n HwRy.stdout.write('\\x1b[H\\x1b[J')",
"def yPVe():\n HwRy.stdout.write('\\x1b[H\\x1b[J')",
"def Y7Bk():\n HwRy.stdout.write('\\x1b[2j\\x1bc\\x1bc')",
"def yPVe():\n print('\\x1b[H\\x1b[J')",
"def K1Qd() -> None:\n print(chr(27) + '[2J')",
"def Y7Bk():\n Hy7s.system('cls||e... | [
"0.84076816",
"0.84076816",
"0.8238033",
"0.8198377",
"0.81697536",
"0.81322765",
"0.812318",
"0.8117639",
"0.8060576",
"0.8055091",
"0.8010265",
"0.800832",
"0.800832",
"0.80022824",
"0.7993112",
"0.79902476",
"0.7985269",
"0.7981362",
"0.79594415",
"0.7949577",
"0.7949577",... | 0.0 | -1 |
Returns a string of random letters | def NTfD(u54L=2):
import string
import random
KoG3 = string.ascii_letters + string.digits
return ''.join([random.SystemRandom().choice(KoG3) for bGrB in range(u54L)]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H5XX():\n KoG3 = list(vIwR.ascii_lowercase)\n zNig = tuKI.randint(7, 10)\n tuKI.shuffle(KoG3)\n return ''.join(KoG3[:zNig])",
"def BWvy():\n gLiZ = vIwR.ascii_lowercase\n return ''.join([tuKI.choice(gLiZ) for WKvO in range(8)])",
"def BWvy():\n KoG3 = vIwR.ascii_lowercase\n return '... | [
"0.8494162",
"0.8484444",
"0.8377764",
"0.83699614",
"0.8367171",
"0.8315875",
"0.8297207",
"0.82937694",
"0.8276021",
"0.8218958",
"0.82074994",
"0.81891704",
"0.81891704",
"0.81891704",
"0.81855816",
"0.8182975",
"0.8171597",
"0.8153171",
"0.8135084",
"0.8088183",
"0.807141... | 0.0 | -1 |
Normalize the matrix between a and b | def NkkI(Xn71, jzdc, Fg_i):
RRUb = float(Xn71.min())
ZKOD = float(Xn71.max())
return jzdc + (Xn71 - RRUb) * (Fg_i - jzdc) / (ZKOD - RRUb) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NkkI(EcVT, jzdc, Fg_i):\n return (Fg_i - jzdc) * (EcVT - EcVT.min()) / (EcVT.max() - EcVT.min()) + jzdc",
"def gRCa(jzdc):\n riV5, k7Td, bGrB = jzdc.shape\n ZPmK = oyIN.zeros_like(jzdc)\n for vC9B in range(riV5):\n for r8hN in range(k7Td):\n Ngpo = (2.0 * vC9B + 1.0) * sBEs.fact... | [
"0.7500853",
"0.72526944",
"0.71485555",
"0.7056637",
"0.70499665",
"0.6998084",
"0.6969455",
"0.6930488",
"0.69123787",
"0.68824404",
"0.6871347",
"0.6845373",
"0.68337685",
"0.6824724",
"0.6778462",
"0.67744577",
"0.6766117",
"0.6748559",
"0.67432237",
"0.6729945",
"0.67130... | 0.7493086 | 1 |
Returns two dictionaries, one containing patches of the image with no missing pixels and the other with only patches with missing pixels | def eV7d(Xn71, YPaw=100, BvVu=-100):
KCHu = int(YPaw / 2)
jYcH, MEWY, UuDR = Xn71.shape
hB5o, xBu3 = ([], dict())
for YRbF in range(KCHu, jYcH, YPaw):
for r845 in range(KCHu, MEWY, YPaw):
Po4F = wp2m(YRbF, r845, YPaw, Xn71)
if BvVu in Po4F:
xBu3[YRbF, r845... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gIoK(jeRD, zNig=300):\n jbKe = dict()\n print('Bad patches...')\n jbKe = set()\n for MuKo in jeRD:\n for sQo5 in jeRD[MuKo][1]:\n for YRbF in range(jeRD[MuKo][0]):\n pmON = Hy7s.path.join(VgVR.PATH_TO_PATCHES, zNig, MuKo, sQo5, f'{YRbF}.jpg')\n with h... | [
"0.6434736",
"0.6372919",
"0.61506146",
"0.6009155",
"0.5988394",
"0.5958891",
"0.5912852",
"0.5848853",
"0.58379036",
"0.5746567",
"0.5682602",
"0.5682596",
"0.56822425",
"0.5677114",
"0.5656203",
"0.56443185",
"0.56402296",
"0.5612003",
"0.560766",
"0.5604707",
"0.55475193"... | 0.6799836 | 0 |
Returns a new list from the current list and index, wrapping around if need be. | def YbVu(u54L):
return [aqea[YRbF % 256] for YRbF in range(uKWF, uKWF + u54L)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aNZY(S06t):\n global my_list\n for YRbF, Z9rn in enumerate(S06t):\n aqea[(uKWF + YRbF) % 256] = Z9rn",
"def aNZY(S06t):\n global my_list\n for YRbF, Z9rn in enumerate(S06t):\n aqea[(uKWF + YRbF) % 256] = Z9rn",
"def N0Pp(yv6U, YRbF):\n yv6U[:] = yv6U[YRbF:] + yv6U[:YRbF]",
"d... | [
"0.67471385",
"0.67471385",
"0.63583463",
"0.63186944",
"0.6312969",
"0.625591",
"0.62354106",
"0.61965764",
"0.61594564",
"0.6152481",
"0.6116868",
"0.608866",
"0.6086968",
"0.608513",
"0.60849214",
"0.6070518",
"0.6064781",
"0.6040319",
"0.59968036",
"0.5995233",
"0.5965074... | 0.58061814 | 35 |
Return a list of nodes. | def Ziit(YKHO, OqpA=None, LLEp=False):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ziit(YKHO) -> x1iM[str]:\n return YKHO.get_node_list()",
"def aAQH(YKHO):\n return YKHO._list_request('nodes')",
"def CDNe(YKHO) -> x1iM[ywwl]:\n raise NotImplementedError",
"def Ziit(YKHO):\n return [YKHO.node]",
"def aAQH(YKHO):\n raise NotImplementedError()",
"def Ziit(YKHO):\n r... | [
"0.8868421",
"0.855454",
"0.8450967",
"0.8435416",
"0.84040934",
"0.83915734",
"0.8291819",
"0.826117",
"0.817267",
"0.81412876",
"0.81412876",
"0.81412876",
"0.8126188",
"0.8122496",
"0.81198776",
"0.8100278",
"0.80964714",
"0.8092041",
"0.8080018",
"0.80561894",
"0.80491906... | 0.0 | -1 |
Add edge ids to the PG frame. | def Vt3M(YKHO, mC4V):
c7pe = [tTpl[0] for tTpl in mC4V]
x6A0 = [tTpl[1] for tTpl in mC4V]
lmpc = rLdf.DataFrame({'@source_id': c7pe, '@target_id': x6A0})
lmpc = lmpc.set_index(['@source_id', '@target_id'])
YKHO._edges = YKHO._edges.append(lmpc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uLca(YKHO):\n for D70y in YKHO.graph.edges:\n YKHO.graph.edges[D70y]['mob_id'] = YKHO.count\n tTpl = YKHO.get_edge(D70y, YKHO.graph)\n YKHO.edges[YKHO.count] = tTpl\n YKHO.id_to_edge[YKHO.count] = D70y\n YKHO.add_to_back(tTpl)\n YKHO.count += 1",
"def Vt3M(YKHO, m... | [
"0.7284789",
"0.67392796",
"0.67392796",
"0.67173237",
"0.66716295",
"0.6647106",
"0.65530235",
"0.64741975",
"0.63833135",
"0.63521624",
"0.6351955",
"0.63071966",
"0.6286831",
"0.6264707",
"0.62642086",
"0.6244811",
"0.62229264",
"0.6218864",
"0.61970615",
"0.6193924",
"0.6... | 0.71918356 | 1 |
Return a list of nodes. | def Ziit(YKHO, OqpA=None, LLEp=False, TcW_=False, fY9F=None, zmKv=None):
jQ3Z = YKHO._nodes
if OqpA is not None:
if '@type' not in YKHO._nodes:
return []
jQ3Z = YKHO._nodes[YKHO._nodes['@type'].apply(lambda WKvO: Ml0w(WKvO, OqpA))]
if LLEp:
if fY9F:
jQ3Z = jQ3... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ziit(YKHO) -> x1iM[str]:\n return YKHO.get_node_list()",
"def aAQH(YKHO):\n return YKHO._list_request('nodes')",
"def CDNe(YKHO) -> x1iM[ywwl]:\n raise NotImplementedError",
"def Ziit(YKHO):\n return [YKHO.node]",
"def aAQH(YKHO):\n raise NotImplementedError()",
"def Ziit(YKHO):\n r... | [
"0.8868421",
"0.855454",
"0.8450967",
"0.8435416",
"0.84040934",
"0.83915734",
"0.8291819",
"0.826117",
"0.817267",
"0.81412876",
"0.81412876",
"0.81412876",
"0.8126188",
"0.8122496",
"0.81198776",
"0.8100278",
"0.80964714",
"0.8092041",
"0.8080018",
"0.80561894",
"0.80491906... | 0.0 | -1 |
Get nodes included in the input list. | def iYjE(YKHO, Ziit):
return YKHO._nodes[YKHO._nodes.index.isin(Ziit)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vTxU(YKHO):\n return YKHO.node_list",
"def CDNe(YKHO) -> x1iM[ywwl]:\n raise NotImplementedError",
"def Ziit(YKHO):\n return YKHO.nodes_list",
"def CDNe(YKHO):\n return YKHO.NodeSystem.getNodesList()",
"def Ziit(YKHO) -> x1iM[str]:\n return YKHO.get_node_list()",
"def Ziit(YKHO):\n ... | [
"0.70754385",
"0.6848712",
"0.68214095",
"0.6790108",
"0.67177147",
"0.67098975",
"0.66798174",
"0.66778487",
"0.6649519",
"0.66177446",
"0.6604077",
"0.6561108",
"0.654833",
"0.65475243",
"0.64872557",
"0.6456079",
"0.6456079",
"0.6456079",
"0.6443505",
"0.64373577",
"0.6435... | 0.0 | -1 |
Get neighors of the node. | def A_IW(YKHO, Lnes):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QwJh(YKHO, Q6kx):\n return (pmON.to_node for pmON in YKHO.neighbors[Q6kx])",
"def A_IW(YKHO, Q6kx):\n try:\n Aofo = list(YKHO._graph.neighbors(Q6kx))\n except jHsn.NetworkXError:\n Aofo = []\n return Aofo",
"def qIRx(YKHO):\n pass",
"def BTfj(YKHO):\n return YKHO.neighbors... | [
"0.789026",
"0.7890069",
"0.78561777",
"0.7843237",
"0.7831089",
"0.7794304",
"0.7761531",
"0.7752225",
"0.7749027",
"0.7742983",
"0.77394456",
"0.77332485",
"0.77309483",
"0.77309483",
"0.77309483",
"0.77309483",
"0.77274334",
"0.77067655",
"0.770122",
"0.770122",
"0.770122"... | 0.71384007 | 54 |
Generates a random ASCIIcoded string. | def UYL8(u54L):
if u54L < 200:
return ''.join((tuKI.choice(vIwR.letters + vIwR.digits) for YRbF in Ni9Y(u54L)))
else:
raise ValueError('Use length values no greater than 200') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eHHU(u54L):\n gLiZ = vIwR.ascii_letters + vIwR.digits\n Wxnj = ''\n for bGrB in range(u54L):\n Wxnj += gLiZ[tuKI.randint(0, len(gLiZ) - 1)]\n return Wxnj",
"def olwh(YKHO, u54L=8):\n U5bT = ''\n for YRbF in range(u54L):\n WKvO = -1\n while WKvO in (-1, 91, 92, 93, 94, 9... | [
"0.7921032",
"0.7916269",
"0.7916269",
"0.7853202",
"0.7810303",
"0.77966106",
"0.7785076",
"0.7771682",
"0.7713084",
"0.76965916",
"0.7679012",
"0.7670065",
"0.76659346",
"0.76659346",
"0.76025975",
"0.7585366",
"0.75626594",
"0.7557027",
"0.7556523",
"0.7525175",
"0.751769"... | 0.74848944 | 22 |
Gets the centroid of a bounding box. | def H7Bo(QnmL: float, jz6R: float, H2v2: float, TVTK: float) -> tuple[float, float]:
L3KG = QnmL + H2v2 / 2
HkG4 = jz6R + TVTK / 2
return (HkG4, L3KG) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IBzD(FlUN):\n assert isinstance(FlUN, oyIN.ndarray)\n assert FlUN.shape == (4,)\n o4D3, si3g, ajwV, skBL = FlUN\n return (int((o4D3 + ajwV) / 2), int((si3g + skBL) / 2))",
"def e6ux(YKHO):\n return YKHO.polygon.centroid",
"def e6ux(YKHO):\n return YKHO.coords.centroid",
"def e6ux(YKHO):... | [
"0.78861725",
"0.7881294",
"0.7862691",
"0.7862691",
"0.7858099",
"0.77503926",
"0.76943916",
"0.76063037",
"0.75978714",
"0.7589916",
"0.74892545",
"0.74799615",
"0.74698883",
"0.7456831",
"0.74565923",
"0.7446868",
"0.7398823",
"0.73968714",
"0.73531103",
"0.73152447",
"0.7... | 0.0 | -1 |
Write the code for forward pass through all layers of the model and return loss and predictions. If targets == None, loss should be None. If not, then return the loss computed. | def Yorg(YKHO, WKvO, x6A0=None):
YKHO.x = WKvO
YKHO.targets = x6A0
zNig = len(YKHO.layers)
Zi0m = None
YRbF = 0
while YRbF < zNig:
Zi0m = YKHO.layers[YRbF].forward_pass(YKHO.x)
YRbF += 1
if YRbF == zNig:
break
xgFu = YKHO.layers[YRbF]
YKHO.x = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Yorg(YKHO, WKvO, x6A0=None):\n YKHO.x = WKvO\n YKHO.targets = x6A0\n cODk = None if x6A0 is None else 0\n for gEmA in YKHO.layers:\n WKvO = gEmA.forward_pass(WKvO)\n if cODk is not None:\n try:\n cODk += gEmA.weight_loss_func()\n except AttributeEr... | [
"0.7177681",
"0.7134721",
"0.6845001",
"0.6832668",
"0.6815592",
"0.67538214",
"0.67491585",
"0.67467093",
"0.66294646",
"0.66148174",
"0.6583563",
"0.6577298",
"0.6554729",
"0.65379804",
"0.6515321",
"0.649953",
"0.64734644",
"0.64532584",
"0.6377318",
"0.6369922",
"0.636032... | 0.63280976 | 23 |
takes a subreddit and outputs a dataframe with the 100 hottest posts | def qwna(_5RM):
Oz7a = {'title': [], 'author': [], 'score': [], 'id': [], 'url': [], 'comms_num': [], 'created': [], 'body': []}
for w213 in _5RM.hot(limit=100):
Oz7a['title'].append(w213.title)
Oz7a['author'].append(w213.author)
Oz7a['score'].append(w213.score)
Oz7a['id'].append... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pyG_(fjwK, qoqK, p1kx, qzWu):\n nPrm = {}\n for _5RM in fjwK:\n nPrm[_5RM.display_name] = []\n for w213 in _5RM.hot(limit=qoqK):\n if w213.stickied is False and (w213.score >= p1kx or w213.num_comments >= qzWu):\n m8z6 = {}\n m8z6['title'] = w213.tit... | [
"0.7146438",
"0.6928466",
"0.6928142",
"0.6908042",
"0.68777657",
"0.68151635",
"0.6762308",
"0.67573756",
"0.674732",
"0.67334783",
"0.673242",
"0.67208016",
"0.67182",
"0.6708435",
"0.66992193",
"0.6684895",
"0.6678831",
"0.6659597",
"0.6654121",
"0.6652348",
"0.664191",
... | 0.80493295 | 0 |
Converts a SQLAlchemy result to a ``list`` of ``dict`` objects, each of which represents a row in the result set. | def yuPr(Aofo):
usx6 = [dict(rdlD) for rdlD in Aofo.fetchall()]
for rdlD in usx6:
for iVRZ in rdlD:
if isinstance(rdlD[iVRZ], SOnQ.Decimal):
rdlD[iVRZ] = float(rdlD[iVRZ])
elif isinstance(rdlD[iVRZ], memoryview):
rdlD[iVRZ] = bytes(rdlD[iVRZ])
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PKBI(N1p7):\n dixj = []\n AlVb = [Csk6[0] for Csk6 in N1p7.description]\n while True:\n usx6 = N1p7.fetchmany()\n if not usx6:\n break\n for rdlD in usx6:\n dixj.append(dict(Hs6x.izip(AlVb, rdlD)))\n return dixj",
"def b2b8(dixj):\n YV0D = []\n gz7... | [
"0.7772449",
"0.7753793",
"0.76198286",
"0.74864894",
"0.7394706",
"0.73541373",
"0.71449417",
"0.71290797",
"0.7079989",
"0.7077222",
"0.7060819",
"0.70573014",
"0.70573014",
"0.70548266",
"0.70226127",
"0.69488525",
"0.6897122",
"0.68848777",
"0.6858628",
"0.6798061",
"0.67... | 0.7564992 | 3 |
Maximum likelihood variance of kappa | def g5BA(yl0s, MDzo=1):
SRYB = oyIN.exp(2 * MDzo * yl0s) / MDzo ** 2
return SRYB | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I8JS(YKHO):\n return YKHO.k * YKHO.theta ** 2",
"def I8JS(YKHO):\n return YKHO.m2 / (YKHO.count - 1) if YKHO.count > 1 else epAf.inf * YKHO.m2",
"def I8JS(YKHO):\n return (epAf.exp(YKHO.sigma ** 2) - 1.0) * epAf.exp(2.0 * YKHO.mu + YKHO.sigma ** 2)",
"def I8JS(YKHO):\n yGTL = YKHO.expected()\... | [
"0.70139074",
"0.6760815",
"0.67247367",
"0.65937513",
"0.65160584",
"0.649772",
"0.64965785",
"0.64733624",
"0.64733624",
"0.6445552",
"0.6418126",
"0.64060134",
"0.6384302",
"0.6373124",
"0.6354121",
"0.63303304",
"0.63267225",
"0.62816304",
"0.6264345",
"0.62623906",
"0.62... | 0.6314556 | 17 |
Maximum likelihood variance of sigma | def w6MU(yl0s, d6Vu, MDzo=1):
SRYB = d6Vu ** 2 / 4 * (((oyIN.exp(2 * MDzo * yl0s) - 1) ** 2 + 2 * MDzo ** 2 * yl0s ** 2 * (oyIN.exp(2 * MDzo * yl0s) + 1) - 4 * MDzo * yl0s * (oyIN.exp(2 * MDzo * yl0s) - 1)) / (MDzo ** 2 * (oyIN.exp(2 * MDzo * yl0s) - 1) * yl0s ** 2))
return SRYB | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I8JS(YKHO):\n return (epAf.exp(YKHO.sigma ** 2) - 1.0) * epAf.exp(2.0 * YKHO.mu + YKHO.sigma ** 2)",
"def I8JS(YKHO):\n return YKHO.sigma",
"def qvVm(YKHO):\n return YKHO.sigma_n",
"def qvVm(YKHO):\n return YKHO.sigma_n",
"def ZkMG(xqoZ):\n return xqoZ.mean_v ** 2 + bw58(xqoZ)",
"def I... | [
"0.7696951",
"0.73981977",
"0.72036153",
"0.72036153",
"0.718719",
"0.7151089",
"0.7150146",
"0.7091974",
"0.705548",
"0.7015336",
"0.7008569",
"0.69621587",
"0.6866489",
"0.68621194",
"0.67394096",
"0.6724271",
"0.6723411",
"0.6689003",
"0.6663117",
"0.6653752",
"0.6638477",... | 0.65419734 | 31 |
Returns message type (class) associated with the message. | def FRul(YKHO):
from .toolbox import get_registered_message_type
return get_registered_message_type(YKHO.cls) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FxTh(YKHO) -> Kt_s:\n return YKHO.message_type",
"def Logs(YKHO) -> qTHV:\n return YKHO.payload.type",
"def Logs(YKHO) -> str:\n return qe4Y.get(YKHO, 'message_type')",
"def Logs(YKHO) -> int:\n return YKHO._message_type",
"def type(YKHO):\n return H6Cb.message_type(YKHO)",
"def type(Y... | [
"0.8406925",
"0.82436466",
"0.81780976",
"0.808652",
"0.80730194",
"0.7920955",
"0.7815951",
"0.7809162",
"0.7781957",
"0.77009624",
"0.7689758",
"0.7650059",
"0.7650059",
"0.7650059",
"0.7650059",
"0.7650059",
"0.7650059",
"0.7650059",
"0.7650059",
"0.7650059",
"0.7650059",
... | 0.87186176 | 0 |
Get the World the Cell is part of. | def Umch(YKHO):
return YKHO._metabolism | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EmUK(YKHO):\n return YKHO._world",
"def EmUK(YKHO):\n return YKHO._world",
"def KS9I(YKHO) -> CmPG:\n return YKHO._world",
"def mNus(YKHO):\n return YKHO._current_world",
"def EmUK(YKHO) -> LPPI:\n return YKHO._world()",
"def veMr(YKHO) -> q9wD:\n return YKHO._world_handle",
"def ... | [
"0.7749079",
"0.7749079",
"0.7524122",
"0.7325852",
"0.71675116",
"0.6902286",
"0.67416906",
"0.6727081",
"0.6563984",
"0.6515157",
"0.64735377",
"0.6440252",
"0.6341773",
"0.6308986",
"0.6299096",
"0.62968177",
"0.62277454",
"0.6210519",
"0.616292",
"0.61505914",
"0.6137287"... | 0.0 | -1 |
Get the set of Cells on this World. | def JnVq(YKHO):
return YKHO._cells | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JaGK(YKHO):\n return YKHO.cells",
"def myPA(YKHO):\n return YKHO._cell_sets",
"def rnKf(YKHO):\n return YKHO.cellmap.keys()",
"def U0NY(YKHO):\n return YKHO.cells",
"def JnVq(YKHO):\n if YKHO._cells:\n return YKHO._cells\n else:\n return [HpW8(G1Hx, Ty9i) for G1Hx, Ty9i ... | [
"0.7833807",
"0.78072417",
"0.7802779",
"0.7756208",
"0.7668747",
"0.74161017",
"0.7308329",
"0.72060424",
"0.7198185",
"0.7022182",
"0.6972161",
"0.6955666",
"0.6901075",
"0.6879776",
"0.6773131",
"0.6727763",
"0.6693289",
"0.66890687",
"0.66862184",
"0.65947753",
"0.6565953... | 0.7659644 | 5 |
Get and set the set of Individuals residing on this World. | def xRqF(YKHO):
if YKHO._individuals is n9YZ:
YKHO._individuals = set()
for Z9rn in YKHO.cells:
YKHO._individuals.update(Z9rn.individuals)
return YKHO._individuals | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dbRo(YKHO):\n return [YKHO._individualIdMap[hbFX] for hbFX in YKHO._individualIds]",
"def DYDD(YKHO):\n for __n6 in YKHO.getDatasets():\n for DM04 in __n6.getIndividuals():\n yield DM04",
"def vBiI(YKHO):\n if YKHO._direct_individuals is n9YZ:\n YKHO._direct_individuals = ... | [
"0.6324294",
"0.59953636",
"0.58854145",
"0.5582438",
"0.55801165",
"0.55550146",
"0.5491129",
"0.53582567",
"0.5357337",
"0.5353606",
"0.53180414",
"0.52902716",
"0.52750736",
"0.52749354",
"0.52717274",
"0.5248214",
"0.5234091",
"0.52334696",
"0.52128977",
"0.52088934",
"0.... | 0.664309 | 0 |
Stochastic Hamiltonian Monte Carlo sampling. | def W3mF(EcVT, LVAh, E3D9, Nq1b, cDK5, n6mj, Dgo4, Ep8u=1, BkjL=1, Rf07=0.5):
dsE5 = {}
exwG = len(LVAh)
gGnb = [Dgo4]
H0zq = aevO.norm(0, 1)
zNig = (cDK5,) + Dgo4.shape[:1]
NMXX = oyIN.random.choice(exwG, exwG, replace=False)
EcVT = EcVT[NMXX,]
LVAh = LVAh[NMXX]
Bugx = 0
for y4f... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DsIe():\n Iqja = 0.03\n SPhj = Iqja * tuKI.randint(1, 100) / 100.0\n return SPhj",
"def Kkot(KCHu, _IBo, ywwl, SGf8, aPd6):\n FBNX = []\n vf0e = []\n VSx2 = []\n DbOn = 0.0\n vexM = oyIN.copy(KCHu)\n for YRbF in range(ywwl):\n vexM, UB_b, jzdc, ORsB = g0uX(vexM, _IBo, SGf8, ... | [
"0.65215516",
"0.619823",
"0.60529137",
"0.6048676",
"0.59800375",
"0.5889609",
"0.584004",
"0.58269674",
"0.5763243",
"0.5722854",
"0.5692395",
"0.56516397",
"0.5634049",
"0.56326634",
"0.5627249",
"0.56126845",
"0.56058216",
"0.5598863",
"0.55854625",
"0.5541277",
"0.553393... | 0.0 | -1 |
Splits our intervals so that none contain more than max_size candidates. Slices up the intervals in this RangeSet into a equivalent set of intervals (i.e., spanning the same number of candidates), each of which contains at most max_size candidates. This function does not modify this RangeSet. | def gdL3(zQZR: ranges.RangeSet, VioT: List[int], E0wO: int) -> x1iM[bYAk.Range]:
if E0wO <= 0:
raise ValueError('max_size must be > 0: {}'.format(E0wO))
gWpu = []
nYWH = 0
for VOlW in zQZR:
pD9e = 0
lUak = VOlW.reference_name
Jfn1 = VOlW.start
W8_b = VOlW.start
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qrt_(YKHO, E0wO):\n if E0wO <= 0:\n raise ValueError('max_size must be > 0: {}'.format(E0wO))\n for VOlW in YKHO:\n lUak = VOlW.reference_name\n for oeNL in range(VOlW.start, VOlW.end, E0wO):\n yield ICv5(lUak, oeNL, min(VOlW.end, oeNL + E0wO))",
"def x1DN(YKHO, ztRo):\n... | [
"0.7015423",
"0.57825494",
"0.57525975",
"0.5718917",
"0.5663978",
"0.5648992",
"0.554099",
"0.54802877",
"0.54629755",
"0.5434107",
"0.5391906",
"0.53849363",
"0.53837585",
"0.5361824",
"0.53557897",
"0.53445613",
"0.5303181",
"0.5290805",
"0.5282608",
"0.52194345",
"0.52088... | 0.62236446 | 1 |
Returns value at the head of the queue | def T7C_(YKHO):
if YKHO.head is not None:
print(YKHO.head.data)
return YKHO.head.data
print('Error: Empty Queue.') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UEx2(YKHO):\n if YKHO.is_empty():\n raise IndexError('Queue empty')\n else:\n return YKHO.first.item",
"def T7C_(YKHO):\n if YKHO._size > 0:\n return YKHO.head.valor\n raise IndexError('The queue is empty!')",
"def tmL8(YKHO):\n return YKHO.queue[-1]",
"def uW34(YKHO):... | [
"0.8144882",
"0.813738",
"0.80853695",
"0.8066201",
"0.7991341",
"0.7968181",
"0.79215354",
"0.790587",
"0.7885675",
"0.78848255",
"0.7854478",
"0.7854406",
"0.7809206",
"0.7803939",
"0.780305",
"0.7799206",
"0.7791177",
"0.7779141",
"0.7761728",
"0.775969",
"0.7755155",
"0... | 0.73220104 | 49 |
Adds a node with some data to the tail. | def H2v5(YKHO, nPrm):
BdN0 = o7DN(nPrm)
if YKHO.tail is not None:
YKHO.tail.next = BdN0
YKHO.tail = BdN0
if YKHO.head is None:
YKHO.head = BdN0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oHxR(YKHO, nPrm):\n if YKHO.head == None:\n YKHO.addAtHead(nPrm)\n else:\n ZbOB = YKHO.head\n Esd_ = o7DN(nPrm)\n while ZbOB.next != None:\n ZbOB = ZbOB.next\n ZbOB.next = Esd_\n YKHO.length += 1",
"def N8wS(YKHO, nPrm):\n Q6kx = YKHO\n while Q... | [
"0.8632961",
"0.843837",
"0.8376119",
"0.8041356",
"0.8041356",
"0.80063236",
"0.7988509",
"0.7971377",
"0.79680973",
"0.7886722",
"0.788596",
"0.78625995",
"0.7861298",
"0.7859737",
"0.78510344",
"0.7849838",
"0.7828356",
"0.7824011",
"0.78198254",
"0.78081644",
"0.77442",
... | 0.7653897 | 23 |
Removes a node from the head of the queue and show head data. | def kSdD(YKHO):
nPrm = None
if YKHO.head is not None:
nPrm = YKHO.head.data
YKHO.head = YKHO.head.next
else:
print('Error: Cannot remove from an empty queue')
return
if YKHO.head is None:
YKHO.tail = None
return nPrm if nPrm is not None else None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vmd7(YKHO):\n if YKHO._is_empty():\n raise Exception('ERROR: List is empty!')\n else:\n GHi7 = YKHO.head\n YKHO.head = GHi7.next\n GHi7.next = None\n del GHi7\n if YKHO.head is None:\n YKHO.tail = YKHO.head",
"def ViDL(YKHO):\n gGq6 = DeQs()\n ... | [
"0.723092",
"0.7190392",
"0.71198714",
"0.70125735",
"0.6930044",
"0.67858106",
"0.67685467",
"0.6765754",
"0.674491",
"0.6741847",
"0.67407936",
"0.6712743",
"0.6710359",
"0.6708712",
"0.6701844",
"0.6693961",
"0.66793776",
"0.66784596",
"0.6671701",
"0.6669933",
"0.6659803"... | 0.71777284 | 2 |
Initialize a Career object. | def FIMM(YKHO):
YKHO.retired = False
YKHO.seasons = [] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, VSkG):\n super(dxOG, YKHO).__init__()\n YKHO.commissioner = VSkG\n YKHO.league = None",
"def FIMM(YKHO, GrFV):\n super(GZNM, YKHO).__init__()\n YKHO.announcer = GrFV\n YKHO.team = None",
"def FIMM(YKHO, XPoT=None, QG_W=None, Etyx=None):\n YKHO.liable = XPoT\n YKHO.charge_... | [
"0.69313544",
"0.66795",
"0.5984332",
"0.5901567",
"0.58761775",
"0.58603936",
"0.5837264",
"0.5826855",
"0.58096975",
"0.5763941",
"0.57409745",
"0.5693627",
"0.56676227",
"0.5659923",
"0.56582224",
"0.5629916",
"0.56211144",
"0.56107056",
"0.56092966",
"0.56092966",
"0.5609... | 0.0 | -1 |
Initialize a PlayerCareer object. | def FIMM(YKHO, oyg0):
super(_yc9, YKHO).__init__()
YKHO.player = oyg0
YKHO.team = None
YKHO.statistics = F1mG(player=oyg0)
YKHO.planning_to_retire = False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, GrFV):\n super(GZNM, YKHO).__init__()\n YKHO.announcer = GrFV\n YKHO.team = None",
"def FIMM(YKHO, qsJ6):\n super(SLDY, YKHO).__init__()\n YKHO.owner = qsJ6\n YKHO.team = None",
"def FIMM(YKHO, VSkG):\n super(dxOG, YKHO).__init__()\n YKHO.commissioner = VSkG\n YKHO.lea... | [
"0.7392339",
"0.7023463",
"0.69479316",
"0.6390048",
"0.63697964",
"0.6362546",
"0.63263065",
"0.6229445",
"0.6135861",
"0.595042",
"0.5861424",
"0.5837796",
"0.5776062",
"0.57350177",
"0.57316184",
"0.572847",
"0.5727392",
"0.5725665",
"0.5725216",
"0.5706692",
"0.56979865",... | 0.8262333 | 0 |
Initialize a ScoutCareer object. | def FIMM(YKHO, f413):
super(SSCf, YKHO).__init__()
YKHO.scout = f413
YKHO.team = None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, GrFV):\n super(GZNM, YKHO).__init__()\n YKHO.announcer = GrFV\n YKHO.team = None",
"def FIMM(YKHO, VSkG):\n super(dxOG, YKHO).__init__()\n YKHO.commissioner = VSkG\n YKHO.league = None",
"def FIMM(YKHO, qsJ6):\n super(SLDY, YKHO).__init__()\n YKHO.owner = qsJ6\n YKHO.t... | [
"0.7000784",
"0.6747008",
"0.624971",
"0.5982733",
"0.5835819",
"0.5761103",
"0.5705753",
"0.5686473",
"0.5681531",
"0.5561342",
"0.55376476",
"0.5523733",
"0.5516406",
"0.54604393",
"0.54579633",
"0.5446548",
"0.5446052",
"0.54182315",
"0.541739",
"0.5403636",
"0.53644353",
... | 0.8001739 | 0 |
Initialize a CommissionerCareer object. | def FIMM(YKHO, VSkG):
super(dxOG, YKHO).__init__()
YKHO.commissioner = VSkG
YKHO.league = None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, GrFV):\n super(GZNM, YKHO).__init__()\n YKHO.announcer = GrFV\n YKHO.team = None",
"def FIMM(YKHO, wVxQ):\n super(GX_o, YKHO).__init__()\n YKHO.umpire = wVxQ\n YKHO.league = None\n YKHO.statistics = gE5W(umpire=wVxQ)",
"def FIMM(YKHO, f413):\n super(SSCf, YKHO).__init__()... | [
"0.7265368",
"0.6393393",
"0.6319852",
"0.62316597",
"0.6160913",
"0.60028684",
"0.5871364",
"0.5867557",
"0.5861653",
"0.5745859",
"0.5712193",
"0.57101315",
"0.566652",
"0.5662766",
"0.5655533",
"0.55899924",
"0.5581399",
"0.55795544",
"0.5560818",
"0.55587476",
"0.5546167"... | 0.803167 | 0 |
Initialize a UmpireCareer object. | def FIMM(YKHO, wVxQ):
super(GX_o, YKHO).__init__()
YKHO.umpire = wVxQ
YKHO.league = None
YKHO.statistics = gE5W(umpire=wVxQ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, VSkG):\n super(dxOG, YKHO).__init__()\n YKHO.commissioner = VSkG\n YKHO.league = None",
"def FIMM(YKHO, GrFV):\n super(GZNM, YKHO).__init__()\n YKHO.announcer = GrFV\n YKHO.team = None",
"def FIMM(YKHO, qsJ6):\n super(SLDY, YKHO).__init__()\n YKHO.owner = qsJ6\n YKHO.t... | [
"0.70491934",
"0.6939362",
"0.6678869",
"0.63571477",
"0.6238411",
"0.6066528",
"0.60517186",
"0.59441483",
"0.5908578",
"0.587882",
"0.5863832",
"0.5837687",
"0.58249605",
"0.5801604",
"0.5787548",
"0.57839376",
"0.5781891",
"0.5749189",
"0.5746495",
"0.57442373",
"0.5744237... | 0.827385 | 0 |
Encodes a column into multiple binary columns. Requires DF and column name | def RHxJ(jQ3Z, iVRZ):
BnAQ = rLdf.get_dummies(jQ3Z[iVRZ])
jQ3Z = rLdf.concat((jQ3Z, BnAQ), axis=1)
jQ3Z.drop([iVRZ], axis=1, inplace=True)
return jQ3Z | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GbEr(jQ3Z, AlVb):\n for YRbF in AlVb:\n jQ3Z[YRbF] = jQ3Z[YRbF].apply(lambda WKvO: 1 if WKvO == 'y' else 0)\n return jQ3Z",
"def amPf(Kiac):\n E2zf = CwDs.DataFrame(index=Kiac.index)\n for fvDH in Kiac.columns:\n nPrm = CwDs.get_dummies(Kiac[fvDH], prefix=fvDH.encode('ascii', 'repla... | [
"0.7836085",
"0.69709027",
"0.69709027",
"0.69709027",
"0.69453037",
"0.69123495",
"0.6888545",
"0.6858149",
"0.6755773",
"0.66230553",
"0.65405774",
"0.65373296",
"0.650985",
"0.64545316",
"0.64541215",
"0.6453824",
"0.6434566",
"0.6421542",
"0.6385254",
"0.63776344",
"0.634... | 0.66768163 | 9 |
If the restore flag is present, allow users to select a backup to restore from. | def iXC1(YKHO, yEHD):
if not YKHO.args.restore:
return
if YKHO.args.local:
print('Cannot restore when running ok with --local.')
return
YKHO.access_token = Jpbe.authenticate(YKHO.args.authenticate)
print('Loading backups...')
geh0 = YKHO.request('user')
if not geh0:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g3HC(YKHO):\n if not YKHO._writable:\n YKHO.warning_permission()\n return\n Ux0P = ''\n if YKHO.platform == 'OS X':\n Ux0P = '/Users/' + Ux0P\n VqRE = CsJA.QFileDialog.getOpenFileName(YKHO, U1As('Util', 'Restore hosts', None), wDYU.QString(Ux0P), U1As('Util', 'Backup File(*.bak... | [
"0.6148332",
"0.60902524",
"0.5984438",
"0.5971214",
"0.5940876",
"0.5830004",
"0.5817585",
"0.5800266",
"0.57710177",
"0.57229835",
"0.57229835",
"0.57229835",
"0.57176846",
"0.56845874",
"0.5655522",
"0.5636665",
"0.5636665",
"0.56362337",
"0.5614226",
"0.5584221",
"0.55717... | 0.555191 | 21 |
Return the CDS of a coding transcript. Transcripts that are only CDS are NOT reported. | def b0Jg(YKHO, Kp6R=False):
if not YKHO.stranded:
raise pNUl('CDS for an unstranded transcript makes little sense: ' + YKHO.name)
if YKHO.hasORF == 0:
return None
if Kp6R == True and (YKHO.cdsStart == YKHO.start and YKHO.cdsEnd == YKHO.end):
return None
yKcO = YKHO.cdsStart
O... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ehcz(YKHO) -> bdIy:\n if not YKHO.is_coding:\n raise y2AN('No CDS sequence on non-coding transcript')\n return YKHO.cds.extract_sequence()",
"def OMaT(MI4h):\n for UShr in MI4h:\n if 'ccdsid' in UShr['info']:\n return UShr['info']['ccdsid']",
"def qQGx(jQ3Z):\n b0Jg = j... | [
"0.6875018",
"0.6547177",
"0.6543753",
"0.64067125",
"0.61763424",
"0.6072379",
"0.58463025",
"0.57762194",
"0.5619527",
"0.55485827",
"0.55421793",
"0.55049974",
"0.54579145",
"0.54187685",
"0.5411198",
"0.54069674",
"0.5396556",
"0.5394892",
"0.5375081",
"0.53707314",
"0.53... | 0.6395001 | 4 |
Returns the introns of a transcript | def KqOT(YKHO):
if YKHO.bedType < 12 or YKHO.nEx < 2:
return None
dPUe = YKHO.exStarts.split(',')
IEpn = YKHO.exLengths.split(',')
W6uj = list()
XqVb = list()
for exwG in range(0, YKHO.nEx - 1):
W6uj.append(int(dPUe[exwG]) + int(IEpn[exwG]))
XqVb.append(int(dPUe[exwG + 1]... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lLrV(yUxg: pysam.AlignedSegment, yKcO, kw8x):\n try:\n eA8y = yUxg.get_tag('jI').tolist()\n except KeyError:\n RemL = N8tL(yKcO, kw8x)\n eA8y = [int(WKvO) for WKvO in RemL.split(',')[1:]]\n if eA8y[0] == -1:\n return []\n else:\n return eA8y",
"def oZVZ(YKHO):\n... | [
"0.60471886",
"0.5896099",
"0.56920224",
"0.5682037",
"0.56609917",
"0.5623156",
"0.5556987",
"0.54523206",
"0.54523206",
"0.5416937",
"0.54073745",
"0.5341741",
"0.5297278",
"0.5292245",
"0.52558905",
"0.5225058",
"0.5196794",
"0.5181883",
"0.51781124",
"0.5165685",
"0.51537... | 0.5975533 | 1 |
Convert a string of characters into a list of tokens. | def pG_y(gLiZ: str) -> list:
mEiX = gLiZ.count('(')
vglQ = gLiZ.count(')')
if mEiX != vglQ:
raise l8Sf(f'Syntax Error: number of left parens ({mEiX}) does not match number of right parens ({vglQ})')
return gLiZ.replace('\n', ' ').replace('(', ' ( ').replace(')', ' ) ').split() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UpLc(KCHu: str) -> x1iM[str]:\n return list(KCHu)",
"def wr3U(gLiZ: str) -> list:\n return gLiZ.replace('(', ' ( ').replace(')', ' ) ').split()",
"def wr3U(gLiZ):\n s2mk = []\n sOU6 = None\n LFlW = ''\n while len(gLiZ) > 0:\n Z9rn, gLiZ = N0vW(gLiZ)\n if SA09(Z9rn):\n ... | [
"0.80281806",
"0.7895696",
"0.7543609",
"0.7532472",
"0.74789083",
"0.7416911",
"0.7371687",
"0.72521424",
"0.71892035",
"0.7163162",
"0.71388733",
"0.6976841",
"0.6961809",
"0.695168",
"0.69397336",
"0.6936073",
"0.68849075",
"0.686892",
"0.68464375",
"0.6841577",
"0.6828894... | 0.6836184 | 20 |
Subclasses with incorrect method signatures | def vnHe(YKHO):
class IFoo(yF2U):
def L70P(YKHO, wAVY):
pass
@nY2i(dj_p)
class Foo(kw5A):
def L70P(YKHO, wAVY):
pass
class Bar(TUKh):
def L70P(YKHO):
pass
YKHO.assertRaises(_r_u, g4BY, i2Ac, dj_p, 2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nrOS(YKHO):\n raise NotImplementedError('The subclass must implement this method.')",
"def nrOS(YKHO, *qIxc):\n raise NotImplementedError()",
"def nrOS(YKHO):\n raise NotImplementedError()",
"def hQ7u(YKHO, *qIxc, **B2fa):\n pass",
"def hQ7u(YKHO, *qIxc, **B2fa):\n pass",
"def hQ7u(YKH... | [
"0.75054294",
"0.73280627",
"0.7244334",
"0.72228104",
"0.72228104",
"0.72228104",
"0.72228104",
"0.72228104",
"0.72228104",
"0.72228104",
"0.72228104",
"0.72228104",
"0.72228104",
"0.72228104",
"0.72228104",
"0.72228104",
"0.72228104",
"0.72228104",
"0.72228104",
"0.72228104",... | 0.0 | -1 |
Retrieve the underlying pyomo model | def pZd3(YKHO):
return YKHO._pyomo_model | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pZd3(YKHO):\n return YKHO",
"def YrZb(YKHO):\n with YKHO._rl:\n return YKHO._e.get_model()",
"def LClM(YKHO):\n return YKHO.model",
"def YrZb(YKHO):\n print('Method not implemented!')",
"def YrZb(YKHO):\n raise NotImplementedError()",
"def YrZb(YKHO):\n raise NotImplementedEr... | [
"0.8434622",
"0.7759058",
"0.75084585",
"0.73873997",
"0.729772",
"0.72639084",
"0.72430897",
"0.71959805",
"0.7158956",
"0.7070298",
"0.7059559",
"0.7059559",
"0.7059559",
"0.7059559",
"0.7059559",
"0.7059559",
"0.7040434",
"0.69987434",
"0.69987434",
"0.6952045",
"0.6932299... | 0.870047 | 0 |
If this callback contains state that should be checkpointed for training, return it here (with a key that's unique to this callback). If the state lives in a pytorch object with a `state_dict` method, this should return the output of `state_dict()`, not the object itself. This default implementation suffices when there... | def xA7f(YKHO) -> dict:
return {} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vauY(YKHO):\n return YKHO._checkpoint",
"def GgYG(YKHO, yFgu=None, y0cW='', niN6=False):\n return YKHO.state_dict(yFgu, y0cW, niN6)",
"def Jlfr(YKHO, ITS7):\n pass",
"def Jlfr(YKHO, ITS7):\n return dict(s=YKHO.sir.s, i=YKHO.sir.i)",
"def GgYG(YKHO, yFgu=None, y0cW='', niN6=False):\n retu... | [
"0.65697277",
"0.63581103",
"0.6341236",
"0.62818915",
"0.6266929",
"0.62553656",
"0.62353593",
"0.6220024",
"0.6216075",
"0.61745733",
"0.6113639",
"0.6083128",
"0.6065328",
"0.6035786",
"0.6032827",
"0.5989218",
"0.5976109",
"0.59759486",
"0.59759486",
"0.5972663",
"0.59692... | 0.0 | -1 |
The unique identifier for the application that is assigned to an application by Azure AD. Not nullable. | def B7c0(YKHO):
return YKHO.properties.get('appId', None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def K6wN(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'application_id')",
"def K6wN(YKHO) -> str:\n return qe4Y.get(YKHO, 'application_id')",
"def K6wN(YKHO) -> str:\n return qe4Y.get(YKHO, 'application_id')",
"def K6wN(YKHO) -> str:\n return qe4Y.get(YKHO, 'application_id')",
"def K6wN(YKHO) ->... | [
"0.81777716",
"0.8084111",
"0.8084111",
"0.8084111",
"0.79150677",
"0.79150677",
"0.79150677",
"0.79150677",
"0.79150677",
"0.79150677",
"0.7879132",
"0.7861616",
"0.78017116",
"0.77686644",
"0.77686644",
"0.77208793",
"0.77143544",
"0.77082217",
"0.77082217",
"0.76816493",
"... | 0.77884686 | 13 |
The display name for the application. Supports $filter (eq, ne, NOT, ge, le, in, startsWith), $search, and $orderBy. | def qQNS(YKHO):
return YKHO.properties.get('displayName', None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qQNS(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'display_name')",
"def qQNS(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'display_name')",
"def qQNS(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'display_name')",
"def qQNS(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'dis... | [
"0.7219381",
"0.7219381",
"0.7219381",
"0.7219381",
"0.7219381",
"0.7219381",
"0.7219381",
"0.7219381",
"0.7219381",
"0.7219381",
"0.7219381",
"0.7219381",
"0.7212024",
"0.7212024",
"0.7212024",
"0.7212024",
"0.7212024",
"0.7212024",
"0.7212024",
"0.7212024",
"0.72101957",
... | 0.0 | -1 |
Gets the title of the current page. | def Upwb(YKHO):
return YKHO.get_string('getTitle', []) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Upwb(YKHO):\n return YKHO.get_page_title()",
"def fyvm(YKHO):\n return YKHO._page_title",
"def Upwb(YKHO):\n fyvm = YKHO.driver.title\n return fyvm",
"def fyvm(YKHO):\n return YKHO.driver.title",
"def Upwb(YKHO):\n YKHO.page_readiness_wait()\n try:\n return YKHO.driver.title... | [
"0.8953965",
"0.8667615",
"0.83869433",
"0.8328284",
"0.8104329",
"0.8044303",
"0.8044303",
"0.8044303",
"0.80317867",
"0.8024364",
"0.8024364",
"0.8019298",
"0.798735",
"0.7976197",
"0.7976197",
"0.7976197",
"0.7976197",
"0.7976197",
"0.7976197",
"0.7976197",
"0.7976197",
... | 0.7771139 | 82 |
Gets the (whitespacetrimmed) value of an input field (or anything else with a value parameter). For checkbox/radio elements, the value will be "on" or "off" depending on whether the element is checked or not. 'locator' is an element locator | def Zmkp(YKHO, uG8F):
return YKHO.get_string('getValue', [uG8F]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zmkp(YKHO, uG8F):\n return YKHO.apu.get_element_attribute(uG8F, 'value')",
"def OJGh(YKHO):\n return YKHO.text_field_web_element.get_attribute('value')",
"def aQHs(YKHO):\n if YKHO.disabled:\n return None\n if not YKHO.is_text_type and YKHO.element.value == YKHO.element._default:\n ... | [
"0.617244",
"0.5833947",
"0.5813171",
"0.54801935",
"0.5477048",
"0.5477048",
"0.5440053",
"0.54246926",
"0.5423528",
"0.53819454",
"0.53819454",
"0.53819454",
"0.53819454",
"0.53819454",
"0.53819454",
"0.53819454",
"0.53819454",
"0.53819454",
"0.53819454",
"0.53819454",
"0.5... | 0.55749446 | 3 |
Returns the specified expression. This is useful because of JavaScript preprocessing. It is used to generate commands like assertExpression and waitForExpression. 'expression' is the value to return | def yGUq(YKHO, lsX7):
return YKHO.get_string('getExpression', [lsX7]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b7La(YKHO, lsX7):\n return eval(lsX7)",
"def lsX7(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'expression')",
"def lsX7(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'expression')",
"def lsX7(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'expression')",
"def lsX7(YKHO) -> qe4Y... | [
"0.75215244",
"0.71940273",
"0.71940273",
"0.71940273",
"0.71940273",
"0.71940273",
"0.71940273",
"0.71940273",
"0.71940273",
"0.7108999",
"0.7107909",
"0.7106406",
"0.70304936",
"0.7001043",
"0.7001043",
"0.7001043",
"0.6993782",
"0.6993782",
"0.6993782",
"0.6993782",
"0.699... | 0.8187719 | 0 |