query stringlengths 10 3.6k | document stringlengths 19 61.4k | metadata dict | negatives listlengths 0 101 | negative_scores listlengths 0 101 | document_score stringlengths 3 10 | document_rank stringclasses 102
values |
|---|---|---|---|---|---|---|
Sets the access_token of this CableServiceZipCodesUpdatePost. | def NT__(YKHO, NT__):
YKHO._access_token = NT__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lbWq(YKHO, NT__):\n YKHO.access_token = NT__",
"def s0r0(YKHO, NT__):\n YKHO.access_token = NT__",
"def u2tf(YKHO, NT__):\n YKHO.__access_token = NT__",
"def NT__(YKHO, NT__):\n if NT__ is None:\n raise ValueError('Invalid value for `access_token`, must not be `None`')\n YKHO._acces... | [
"0.65677935",
"0.6564535",
"0.6481153",
"0.6463677",
"0.64628935",
"0.64628935",
"0.638443",
"0.607224",
"0.59944725",
"0.58657146",
"0.58657146",
"0.58657146",
"0.58657146",
"0.5827314",
"0.5705297",
"0.57047004",
"0.5637186",
"0.5614571",
"0.55580133",
"0.5548265",
"0.55400... | 0.6737605 | 0 |
Returns the string representation of the model | def gTzM(YKHO):
return CgYo.pformat(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.0 | -1 |
Filter the image to include only yellow and white pixels | def U1Yt(LNo8):
Cd_s = XC5k.cvtColor(LNo8, XC5k.COLOR_BGR2HSV)
CiBc = 255
Dcsu = oyIN.array([CiBc, 100, 100])
rEI5 = oyIN.array([255, 255, 255])
iFpi = XC5k.inRange(LNo8, Dcsu, rEI5)
TqB8 = XC5k.bitwise_and(LNo8, LNo8, mask=iFpi)
PxAJ = oyIN.array([30, 100, 100])
kxqz = oyIN.array([255, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z0l_(LNo8):\n gwAu = 200\n ZxDD = oyIN.array([255, 255, 255])\n wKb9 = oyIN.array([gwAu, gwAu, gwAu])\n qVw1 = XC5k.inRange(LNo8, wKb9, ZxDD)\n NJOl = XC5k.bitwise_and(LNo8, LNo8, mask=qVw1)\n uJKG = XC5k.cvtColor(LNo8, XC5k.COLOR_BGR2HSV)\n ZxDD = oyIN.array([110, 255, 255])\n wKb9 = o... | [
"0.78664327",
"0.7448109",
"0.7418988",
"0.732087",
"0.7294683",
"0.7288233",
"0.7275989",
"0.72436696",
"0.72317153",
"0.7159616",
"0.71018314",
"0.7097728",
"0.706579",
"0.70208234",
"0.70191175",
"0.7017517",
"0.6998909",
"0.6973353",
"0.6940127",
"0.693359",
"0.69030803",... | 0.8001689 | 0 |
whether the var_name is belong to cur_rank | def oYh7(YKHO, mWFP):
n8LW = YKHO._get_dist_attr(mWFP)
assert n8LW is not None
return YKHO.rank_id in n8LW.process_mesh.process_ids | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TYse(YKHO, XuY2):\n return XuY2 in YKHO.data.columns",
"def TYse(YKHO, XuY2):\n return XuY2 in YKHO.weights.columns",
"def lgif(YKHO, fvDH: str, mWFP: str) -> bool:\n kc1W = YKHO._collection(fvDH)\n return mWFP in kc1W",
"def Ff8F(BWXx: str):\n return BWXx in HRrY or HRrY.get(BWXx) is not ... | [
"0.73189664",
"0.73119015",
"0.63672173",
"0.6240348",
"0.6089152",
"0.59447736",
"0.5868186",
"0.58214754",
"0.5811053",
"0.5788943",
"0.5713553",
"0.57067764",
"0.56852734",
"0.56571823",
"0.5656266",
"0.564683",
"0.56466043",
"0.5620883",
"0.55820763",
"0.55775404",
"0.556... | 0.60586876 | 5 |
Update norms using moving avg | def XloE(YKHO, QLDE, cb_Q):
YKHO.obsnorm.update(QLDE, sess=cb_Q) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JK6b(YKHO, OPz8):\n n_Ql, ybU4 = OPz8\n WiXu = oyIN.array(n_Ql)\n Q5GK = oyIN.array(ybU4)\n YKHO.obs_norm.update(WiXu)\n YKHO.goal_norm.update(Q5GK)",
"def gAl9(YKHO):\n if not YKHO.mean_normalised:\n if YKHO.gts.ndim == 2:\n YKHO.gts = YKHO.gts - fHeP.mean(YKHO.gts, axis=... | [
"0.7349613",
"0.6712962",
"0.6640026",
"0.6589324",
"0.65621",
"0.6508028",
"0.64948267",
"0.646005",
"0.64431316",
"0.64082927",
"0.64082927",
"0.63966125",
"0.6377124",
"0.63612074",
"0.634468",
"0.6321462",
"0.62846994",
"0.62750536",
"0.62749594",
"0.62719804",
"0.6231813... | 0.0 | -1 |
Gets the type of this QueueMessage. | def type(YKHO):
return YKHO._type | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FRul(YKHO):\n from .toolbox import get_registered_message_type\n return get_registered_message_type(YKHO.cls)",
"def FxTh(YKHO) -> Kt_s:\n return YKHO.message_type",
"def Logs(YKHO) -> qTHV:\n return YKHO.payload.type",
"def type(YKHO) -> qTHV:\n return YKHO.payload.type",
"def Logs(YKHO... | [
"0.8320316",
"0.8285065",
"0.8175978",
"0.8094301",
"0.7863469",
"0.78595376",
"0.7854353",
"0.7777477",
"0.77021945",
"0.7626373",
"0.75927514",
"0.73873657",
"0.73873657",
"0.73873657",
"0.73873657",
"0.73873657",
"0.73873657",
"0.7316314",
"0.7316314",
"0.7316314",
"0.7316... | 0.67861444 | 72 |
Gets the expires of this QueueMessage. | def yxS0(YKHO):
return YKHO._expires | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yxS0(YKHO):\n if YKHO._expires_present:\n return YKHO._expires_value\n else:\n raise AttributeError(\"missing required field 'expires'\")",
"def yxS0(YKHO):\n if YKHO._expires_present:\n return YKHO._expires_value\n else:\n return None",
"def yxS0(YKHO) -> qcWV.datet... | [
"0.7504185",
"0.72561175",
"0.70854455",
"0.70124274",
"0.70124274",
"0.7009269",
"0.68714654",
"0.67751795",
"0.67074805",
"0.6688096",
"0.6675869",
"0.6675869",
"0.66114515",
"0.661064",
"0.65304846",
"0.6512973",
"0.6420187",
"0.64119345",
"0.6397014",
"0.63935506",
"0.637... | 0.7371078 | 1 |
Gets the id of this QueueMessage. | def id(YKHO):
return YKHO._id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ynMe(YKHO):\n return YKHO.messageid",
"def KREW(YKHO) -> int:\n assert YKHO.is_set('message_id'), 'message_id is not set'\n return YWvJ(int, YKHO.get('message_id'))",
"def KREW(YKHO) -> int:\n assert YKHO.is_set('message_id'), 'message_id is not set.'\n return YWvJ(int, YKHO.get('message_id'... | [
"0.8040188",
"0.79042",
"0.78992206",
"0.78873277",
"0.7782442",
"0.7782442",
"0.7599597",
"0.7549926",
"0.7510142",
"0.7510142",
"0.7369236",
"0.70966166",
"0.70167816",
"0.7007324",
"0.7007324",
"0.7007324",
"0.7004992",
"0.69515884",
"0.69515884",
"0.69515884",
"0.69515884... | 0.0 | -1 |
Sets the id of this QueueMessage. | def id(YKHO, id):
YKHO._id = id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V_9M(YKHO, id):\n YKHO._id = id",
"def psjw(YKHO, id):\n YKHO._id = id",
"def V_9M(YKHO, id):\n YKHO.id = id",
"def V_9M(YKHO, id):\n YKHO.id = id",
"def KREW(YKHO, KREW):\n YKHO._message_id = KREW",
"def V_9M(YKHO, id):\n YKHO.id = id",
"def V_9M(YKHO, id):\n YKHO.id = id",
... | [
"0.72854036",
"0.7201454",
"0.7175817",
"0.7175817",
"0.7151064",
"0.71504444",
"0.71052295",
"0.71052295",
"0.7060988",
"0.7036657",
"0.7014337",
"0.6965559",
"0.6965559",
"0.6965559",
"0.6965559",
"0.6949503",
"0.6931646",
"0.69303405",
"0.69303405",
"0.69303405",
"0.693034... | 0.0 | -1 |
Gets the delay of this QueueMessage. | def h7D2(YKHO):
return YKHO._delay | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d0Lv(YKHO):\n return YKHO._delay",
"def d0Lv(YKHO) -> int:\n return YKHO.delay",
"def h7D2(YKHO) -> fCoM:\n return YKHO._delay",
"def h7D2(YKHO) -> fCoM:\n return YKHO._delay",
"def h7D2(YKHO) -> laHg.Optional[lTJ4.core.Duration]:\n return YKHO._values.get('delay')",
"def uC_I(YKHO):\n... | [
"0.82825816",
"0.8140642",
"0.81381786",
"0.81381786",
"0.7952673",
"0.793502",
"0.7790514",
"0.7756836",
"0.758783",
"0.7549617",
"0.73184055",
"0.7301029",
"0.72106576",
"0.718545",
"0.71273637",
"0.7124953",
"0.7077888",
"0.707346",
"0.7010521",
"0.7010521",
"0.700619",
... | 0.8035965 | 4 |
Gets the timeout of this QueueMessage. | def vYBr(YKHO):
return YKHO._timeout | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Rv29(YKHO):\n return YKHO.get_job()['timeout']",
"def C2Nn(YKHO):\n return YKHO._timeout",
"def kWoe(YKHO):\n return YKHO._timeout",
"def Rv29(YKHO):\n return YKHO.timeout",
"def KIZn(YKHO):\n return YKHO.__timeout",
"def KIZn(YKHO):\n return YKHO.__timeout",
"def kWoe(YKHO):\n ... | [
"0.81421214",
"0.80848676",
"0.78545487",
"0.7819216",
"0.780905",
"0.780905",
"0.77835864",
"0.77710205",
"0.7744013",
"0.7744013",
"0.77065283",
"0.76877874",
"0.76877874",
"0.76788974",
"0.7601306",
"0.7486522",
"0.7461859",
"0.7461859",
"0.741706",
"0.7414629",
"0.7381077... | 0.7663174 | 16 |
Gets the modified_columns of this QueueMessage. | def Wy1W(YKHO):
return YKHO._modified_columns | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FSKv(YKHO):\n return YKHO.columns",
"def USnX(YKHO):\n return YKHO.cols_changed",
"def ZLJ_(YKHO):\n return YKHO._columns",
"def ZLJ_(YKHO):\n return YKHO._columns",
"def ZLJ_(YKHO):\n return YKHO._columns",
"def ZLJ_(YKHO):\n return YKHO._columns",
"def ZLJ_(YKHO):\n return YK... | [
"0.6902687",
"0.6883378",
"0.67940915",
"0.67940915",
"0.67940915",
"0.67940915",
"0.67940915",
"0.67424625",
"0.6709806",
"0.6687071",
"0.6674253",
"0.6650085",
"0.65917957",
"0.65494585",
"0.64852476",
"0.6437394",
"0.6420181",
"0.6390808",
"0.63851607",
"0.63565665",
"0.63... | 0.85290647 | 0 |
Gets the message of this QueueMessage. | def Ol8d(YKHO):
return YKHO._message | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Eair(YKHO):\n return YKHO._message",
"def Eair(YKHO):\n return YKHO._message",
"async def _get_message(YKHO) -> LuKW:\n if YKHO._closed:\n raise Yxfp('The message pump is closed')\n if YKHO._pending_message is not None:\n try:\n return YKHO._pending_message\n fin... | [
"0.8136227",
"0.8136227",
"0.8089004",
"0.8031353",
"0.8019651",
"0.80088544",
"0.79565585",
"0.7947636",
"0.7944162",
"0.78817743",
"0.78732777",
"0.7870685",
"0.7870685",
"0.7841857",
"0.7756783",
"0.77373356",
"0.7735625",
"0.7652255",
"0.76255125",
"0.7603746",
"0.7571001... | 0.7419118 | 26 |
Returns the string representation of the model | def gTzM(YKHO):
return EyO9(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.0 | -1 |
Generate a list of csr matrices out of a 3dimensional coo format | def KjFg(EY5n, yDqo=float, ROpF=None, jDK_=0):
Csk6, WhY1 = EY5n
assert len(WhY1) == 3
for h16r in WhY1:
assert len(Csk6) == len(h16r)
ROpF = [max(h16r) + 1 for h16r in WhY1] if ROpF is None else ROpF
Up5w = [YRbF for YRbF in range(len(ROpF)) if YRbF != jDK_]
KjFg = [0] * ROpF[jDK_]
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CV6u(YKHO):\n print('*** Creating matrix ***')\n usx6 = []\n ZLJ_ = []\n nPrm = []\n for SOtT in YKHO.kmerdicts:\n for SteT in YKHO.kmerdicts[SOtT]:\n usx6.append(YKHO.strain_to_index[SteT])\n ZLJ_.append(YKHO.kmer_to_index[SOtT])\n if _Fei.kmer_count == 1... | [
"0.7259138",
"0.6843471",
"0.67022794",
"0.6683842",
"0.6490897",
"0.64809453",
"0.64483446",
"0.6448051",
"0.6369573",
"0.6329653",
"0.63234556",
"0.62641966",
"0.6220327",
"0.6210046",
"0.6183973",
"0.6182742",
"0.6167562",
"0.6146117",
"0.6141607",
"0.61217433",
"0.6097007... | 0.66013956 | 4 |
Initializes a game of ShootyBoats. | def FIMM(YKHO, KcSv: Player, h3kA: Player) -> None:
YKHO.player1 = KcSv
YKHO.player2 = h3kA
YKHO.winner = None
YKHO.turn = KcSv
YKHO.running = False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def B6be(Emd4):\n mrVL = zAej(name='Water Level', unit='m', min_value=20, max_value=22, level=20.5)\n ovGo = zAej(name='Air Temperature', unit='°C', min_value=10, max_value=40, level=15)\n Ox_6 = u9H_(name='Meat Cows', damage_rates={mrVL: 10, ovGo: 15}, value=20, cost=100)\n QUVW = u9H_(name='Milk Cows... | [
"0.6896931",
"0.6745657",
"0.66829544",
"0.66767406",
"0.6600074",
"0.65665656",
"0.655061",
"0.6525318",
"0.65209115",
"0.65198743",
"0.65156305",
"0.6438063",
"0.6437303",
"0.64352643",
"0.6434706",
"0.6431471",
"0.64114356",
"0.63664496",
"0.63382745",
"0.633786",
"0.63254... | 0.0 | -1 |
Get Q4 controller current limit (parameter will be negative) | def jkAg(YKHO):
jvSB = Nq1b.c_longdouble()
Aofo = YKHO.tcio_dll_obj.TC4GetQ4LimitCurrent(Nq1b.byref(jvSB))
if Aofo != JACI:
print('DllClose failed')
jvSB = None
return jvSB | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def K3hO():\n return u406[0]",
"def jqY7(YKHO) -> float:\n return YKHO._current_limit",
"def K3hO(YKHO):\n raise NotImplementedError()",
"def K3hO(YKHO):\n return YKHO.__limit",
"def K3hO(YKHO):\n return YKHO.__limit",
"def K3hO(YKHO):\n return YKHO.__limit",
"def qoqK(YKHO) -> qe4Y.I... | [
"0.8003945",
"0.7639251",
"0.75720304",
"0.75318176",
"0.75318176",
"0.75318176",
"0.74994934",
"0.74994934",
"0.7490005",
"0.74809456",
"0.74773055",
"0.74255157",
"0.7406901",
"0.7406901",
"0.7406901",
"0.7395345",
"0.7395345",
"0.7395345",
"0.7395345",
"0.7395345",
"0.7395... | 0.72406834 | 23 |
Function to get the market price of an item from somewhere. Not yet implemented, simply returns 24 as a placeholder. | def gxV2(rujl):
return 24 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N_Zi(ZfUD):\n VIXL = ZfUD['listing']['price']['currency']\n Z5kt = ZfUD['listing']['price']['amount']\n return Z5kt",
"def gxV2(rujl):\n return 24",
"def gxV2(rujl):\n print(rujl)\n return 24",
"def SGnS(YKHO, zDRZ):\n return YKHO._get_inner(zDRZ, 'sell') * YKHO.event_manager.get(zDR... | [
"0.7364914",
"0.7277282",
"0.72126263",
"0.71140414",
"0.69583416",
"0.69552845",
"0.69282055",
"0.69201034",
"0.6905921",
"0.6773118",
"0.67611766",
"0.67199534",
"0.6719825",
"0.67164737",
"0.67037046",
"0.668507",
"0.6672283",
"0.6661065",
"0.6639343",
"0.66375",
"0.663500... | 0.72653246 | 2 |
Get value of the instance property. There i no value for a class instance (or more correctly, there had better not be, since we have no way to do it with this methodology. | def xtUD(YKHO, KAOR, qsJ6):
if KAOR:
return YKHO.__myget(KAOR).value
else:
return 'Class variable not initialised' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xtUD(YKHO, p4_k, Emd4):\n return YKHO.value",
"def xtUD(YKHO, KAOR, qsJ6):\n if KAOR is None:\n return YKHO\n return KAOR.value",
"def feOr(YKHO):\n return YKHO.__value",
"def dV7Y(YKHO, property, NCls):\n try:\n property = NCls.session.query(NCls.Property).get(property)\n ... | [
"0.8198016",
"0.7652627",
"0.74853885",
"0.7426798",
"0.73828375",
"0.73647004",
"0.7342004",
"0.73027754",
"0.7263121",
"0.72295254",
"0.71897566",
"0.7183162",
"0.7176937",
"0.7154956",
"0.7144001",
"0.7120052",
"0.7110466",
"0.710789",
"0.7091286",
"0.70728743",
"0.7068578... | 0.8042382 | 1 |
Check if user is confirmed or not. | def ee9W(YKHO, L03z):
if not hasattr(L03z, 'user_cache'):
return super(ddoR, YKHO).form_invalid(L03z)
if L03z.user_cache and (not L03z.user_cache.is_confirmed):
tO9_ = obQw(bGrB(u"Votre email {} n'a toujours pas été vérifié. Cliquez <a class='alert-link' href='#'>ici</a> pour renvoyer un email")... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mtyT(YKHO) -> bool:\n return YKHO._is_confirmed",
"def SBw5(YKHO):\n return bool",
"def mtyT(YKHO) -> bool:\n U34r = YKHO.transaction_info\n return U34r is not None and U34r.is_confirmed()",
"def qutR(YKHO, CBIr):\n if CBIr.confirmed_at is not None:\n gztc(Eair('ALREADY_CONFIRMED')[... | [
"0.77538663",
"0.75526977",
"0.74786603",
"0.743724",
"0.7300461",
"0.72284603",
"0.72284603",
"0.72284603",
"0.72284603",
"0.71163875",
"0.70911247",
"0.70182097",
"0.6920732",
"0.6912803",
"0.69119716",
"0.6869826",
"0.6766859",
"0.6725768",
"0.6724707",
"0.6667494",
"0.663... | 0.0 | -1 |
Converts the model data to a serializable dict Define self.HIDDEN_PROPERTIES as any properties to exclude! | def jVXo(YKHO):
return YKHO.to_dict(exclude=getattr(YKHO, 'HIDDEN_PROPERTIES', [])) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DQ1s(YKHO):\n nPrm = {}\n Poe1 = YKHO.white_list()\n for hGI9, yxNu in FZ5p(YKHO).items():\n if hGI9 in Poe1:\n nPrm[hGI9] = yxNu\n return nPrm",
"def _fYl(YKHO):\n j28w = ['titles', 'roles', 'created', 'modified']\n Csk6 = {}\n for XP5J in zPjx.util.object_mapper(YKHO)... | [
"0.74527395",
"0.71976864",
"0.6827299",
"0.6825023",
"0.6804428",
"0.67969406",
"0.6796898",
"0.67677844",
"0.6730453",
"0.6708589",
"0.66531837",
"0.66473985",
"0.6618987",
"0.66169405",
"0.658222",
"0.6558162",
"0.6543562",
"0.6539706",
"0.6531356",
"0.65258926",
"0.648914... | 0.7788552 | 0 |
The set of arguments for constructing a Cdn resource. | def FIMM(Ro_8, *, hLRM: pulumi.Input[str], MSpN: Optional[pulumi.Input[str]]=None, MN3X: Optional[pulumi.Input[str]]=None, BN4g: Optional[pulumi.Input[str]]=None, h9HD: Optional[pulumi.Input[int]]=None):
qe4Y.set(Ro_8, 'origin', hLRM)
if MSpN is not None:
qmLP.warn("Certificate IDs may change, for examp... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(Ro_8, kFeU: str, qIxc: CdnArgs, VKhi: Optional[pulumi.ResourceOptions]=None):\n ...",
"def FIMM(Ro_8, *, c3Ov: pulumi.Input[str], d1Tj: pulumi.Input[str], c7pe: pulumi.Input[Sequence[pulumi.Input['DomainNewSourceArgs']]], Di79: Optional[pulumi.Input['DomainNewCertificateConfigArgs']]=None, jr1t: Opti... | [
"0.7511938",
"0.61835575",
"0.6086259",
"0.5962707",
"0.5885353",
"0.583052",
"0.583052",
"0.5799472",
"0.57955873",
"0.5790832",
"0.57682014",
"0.57591844",
"0.570224",
"0.56868494",
"0.56284344",
"0.5620822",
"0.5592155",
"0.5579712",
"0.5577234",
"0.5558885",
"0.5540956",
... | 0.0 | -1 |
The fully qualified domain name, (FQDN) for a Space. | def hLRM(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'origin') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vk56(YKHO) -> str:\n return qe4Y.get(YKHO, 'fully_qualified_domain_name')",
"def vk56(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'fully_qualified_domain_name')",
"def lLIo(YKHO):\n SQ3m = YKHO._parts + ('namespace', 'domain')\n qIxc = [getattr(YKHO, XP5J) for XP5J in SQ3m]\n return Y... | [
"0.79325974",
"0.7660729",
"0.74187726",
"0.7321062",
"0.7321062",
"0.7321062",
"0.7321062",
"0.7321062",
"0.7321062",
"0.7321062",
"0.73128",
"0.72484815",
"0.72484815",
"0.72292596",
"0.72195995",
"0.7130491",
"0.7108109",
"0.7102561",
"0.7102561",
"0.7102561",
"0.7102561",... | 0.0 | -1 |
The unique name of a DigitalOcean managed TLS certificate used for SSL when a custom subdomain is provided. | def MN3X(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'certificate_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZYBB(YKHO) -> str:\n return qe4Y.get(YKHO, 'tls_cert_name')",
"def ZYBB(YKHO) -> str:\n return qe4Y.get(YKHO, 'tls_cert_name')",
"def r5O1(YKHO) -> str:\n return qe4Y.get(YKHO, 'sub_domain_name')",
"def r5O1(YKHO) -> str:\n return qe4Y.get(YKHO, 'sub_domain_name')",
"def r5O1(YKHO) -> str:\... | [
"0.7498316",
"0.7498316",
"0.7183634",
"0.7183634",
"0.7183634",
"0.7183634",
"0.6915446",
"0.68854845",
"0.6884267",
"0.6820975",
"0.6778806",
"0.6778806",
"0.6777334",
"0.66207874",
"0.66207874",
"0.660063",
"0.64829874",
"0.6471473",
"0.6471473",
"0.6456703",
"0.6441308",
... | 0.64963657 | 17 |
The fully qualified domain name (FQDN) of the custom subdomain used with the CDN Endpoint. | def BN4g(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'custom_domain') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IVsD(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'fqdn_subdomain')",
"def r5O1(YKHO) -> str:\n return qe4Y.get(YKHO, 'sub_domain_name')",
"def r5O1(YKHO) -> str:\n return qe4Y.get(YKHO, 'sub_domain_name')",
"def r5O1(YKHO) -> str:\n return qe4Y.get(YKHO, 'sub_domain_name')",
"d... | [
"0.799073",
"0.7916162",
"0.7916162",
"0.7916162",
"0.7916162",
"0.78186566",
"0.77580196",
"0.7751641",
"0.7688433",
"0.7655814",
"0.761704",
"0.7544243",
"0.75207096",
"0.7505239",
"0.7505239",
"0.7486883",
"0.7472118",
"0.7394232",
"0.7387048",
"0.7387048",
"0.7387048",
... | 0.7092995 | 45 |
The time to live for the CDN Endpoint, in seconds. Default is 3600 seconds. | def h9HD(YKHO) -> h8nf[qe4Y.Input[int]]:
return qe4Y.get(YKHO, 'ttl') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PMtK(YKHO):\n return YKHO._time_to_live_seconds",
"def vcah(YKHO):\n return 60",
"def h9HD(YKHO) -> h8nf[float]:\n if YKHO.stream_info.config.max_age is None:\n return None\n return YKHO.stream_info.config.max_age",
"def h9HD(YKHO) -> h8nf[float]:\n if YKHO.stream_info.config.max_ag... | [
"0.6882769",
"0.67019176",
"0.6636942",
"0.6636942",
"0.6490727",
"0.6389183",
"0.63203657",
"0.6318573",
"0.62329865",
"0.6206451",
"0.62018275",
"0.62016666",
"0.6138507",
"0.61323965",
"0.61323965",
"0.61323965",
"0.61323965",
"0.61323965",
"0.6114182",
"0.6098682",
"0.609... | 0.0 | -1 |
The unique name of a DigitalOcean managed TLS certificate used for SSL when a custom subdomain is provided. | def MN3X(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'certificate_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZYBB(YKHO) -> str:\n return qe4Y.get(YKHO, 'tls_cert_name')",
"def ZYBB(YKHO) -> str:\n return qe4Y.get(YKHO, 'tls_cert_name')",
"def r5O1(YKHO) -> str:\n return qe4Y.get(YKHO, 'sub_domain_name')",
"def r5O1(YKHO) -> str:\n return qe4Y.get(YKHO, 'sub_domain_name')",
"def r5O1(YKHO) -> str:\... | [
"0.75008726",
"0.75008726",
"0.7182078",
"0.7182078",
"0.7182078",
"0.7182078",
"0.69166386",
"0.6887481",
"0.68858874",
"0.68205845",
"0.6777055",
"0.6777055",
"0.6775979",
"0.6622257",
"0.6622257",
"0.6602216",
"0.64827484",
"0.6472342",
"0.6472342",
"0.64576495",
"0.644285... | 0.6497476 | 16 |
The fully qualified domain name (FQDN) of the custom subdomain used with the CDN Endpoint. | def BN4g(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'custom_domain') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IVsD(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'fqdn_subdomain')",
"def r5O1(YKHO) -> str:\n return qe4Y.get(YKHO, 'sub_domain_name')",
"def r5O1(YKHO) -> str:\n return qe4Y.get(YKHO, 'sub_domain_name')",
"def r5O1(YKHO) -> str:\n return qe4Y.get(YKHO, 'sub_domain_name')",
"d... | [
"0.7990868",
"0.7915119",
"0.7915119",
"0.7915119",
"0.7915119",
"0.7817672",
"0.7757267",
"0.7751704",
"0.7687766",
"0.76537323",
"0.7616437",
"0.75432795",
"0.751896",
"0.75043654",
"0.75043654",
"0.74862105",
"0.74704105",
"0.7392635",
"0.7387987",
"0.7387987",
"0.7387987"... | 0.7091141 | 46 |
The fully qualified domain name (FQDN) from which the CDNbacked content is served. | def w2IS(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'endpoint') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lLIo(YKHO):\n return YKHO._fqdn",
"def lLIo(YKHO):\n return YKHO._fqdn",
"def vk56(YKHO) -> str:\n return qe4Y.get(YKHO, 'fully_qualified_domain_name')",
"def lLIo(YKHO) -> str:\n return qe4Y.get(YKHO, 'fqdn')",
"def lLIo(YKHO) -> str:\n return qe4Y.get(YKHO, 'fqdn')",
"def lLIo(YKHO) ... | [
"0.74980384",
"0.74980384",
"0.749291",
"0.7457913",
"0.7457913",
"0.7457913",
"0.7457913",
"0.7457913",
"0.7457913",
"0.7457913",
"0.74299747",
"0.7421639",
"0.7347569",
"0.73408765",
"0.72611046",
"0.7210414",
"0.7210414",
"0.7210414",
"0.7210414",
"0.7184595",
"0.7184595",... | 0.0 | -1 |
The fully qualified domain name, (FQDN) for a Space. | def hLRM(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'origin') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vk56(YKHO) -> str:\n return qe4Y.get(YKHO, 'fully_qualified_domain_name')",
"def vk56(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'fully_qualified_domain_name')",
"def lLIo(YKHO):\n SQ3m = YKHO._parts + ('namespace', 'domain')\n qIxc = [getattr(YKHO, XP5J) for XP5J in SQ3m]\n return Y... | [
"0.79325974",
"0.7660729",
"0.74187726",
"0.7321062",
"0.7321062",
"0.7321062",
"0.7321062",
"0.7321062",
"0.7321062",
"0.7321062",
"0.73128",
"0.72484815",
"0.72484815",
"0.72292596",
"0.72195995",
"0.7130491",
"0.7108109",
"0.7102561",
"0.7102561",
"0.7102561",
"0.7102561",... | 0.0 | -1 |
The time to live for the CDN Endpoint, in seconds. Default is 3600 seconds. | def h9HD(YKHO) -> h8nf[qe4Y.Input[int]]:
return qe4Y.get(YKHO, 'ttl') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PMtK(YKHO):\n return YKHO._time_to_live_seconds",
"def vcah(YKHO):\n return 60",
"def h9HD(YKHO) -> h8nf[float]:\n if YKHO.stream_info.config.max_age is None:\n return None\n return YKHO.stream_info.config.max_age",
"def h9HD(YKHO) -> h8nf[float]:\n if YKHO.stream_info.config.max_ag... | [
"0.6882769",
"0.67019176",
"0.6636942",
"0.6636942",
"0.6490727",
"0.6389183",
"0.63203657",
"0.6318573",
"0.62329865",
"0.6206451",
"0.62018275",
"0.62016666",
"0.6138507",
"0.61323965",
"0.61323965",
"0.61323965",
"0.61323965",
"0.61323965",
"0.6114182",
"0.6098682",
"0.609... | 0.0 | -1 |
The unique name of a DigitalOcean managed TLS certificate used for SSL when a custom subdomain is provided. | def MN3X(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'certificate_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZYBB(YKHO) -> str:\n return qe4Y.get(YKHO, 'tls_cert_name')",
"def ZYBB(YKHO) -> str:\n return qe4Y.get(YKHO, 'tls_cert_name')",
"def r5O1(YKHO) -> str:\n return qe4Y.get(YKHO, 'sub_domain_name')",
"def r5O1(YKHO) -> str:\n return qe4Y.get(YKHO, 'sub_domain_name')",
"def r5O1(YKHO) -> str:\... | [
"0.7498316",
"0.7498316",
"0.7183634",
"0.7183634",
"0.7183634",
"0.7183634",
"0.6915446",
"0.68854845",
"0.6884267",
"0.6820975",
"0.6778806",
"0.6778806",
"0.6777334",
"0.660063",
"0.64963657",
"0.64963657",
"0.64963657",
"0.64829874",
"0.6471473",
"0.6471473",
"0.6456703",... | 0.66207874 | 13 |
The fully qualified domain name (FQDN) of the custom subdomain used with the CDN Endpoint. | def BN4g(YKHO) -> qe4Y.Output[h8nf[str]]:
return qe4Y.get(YKHO, 'custom_domain') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IVsD(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'fqdn_subdomain')",
"def r5O1(YKHO) -> str:\n return qe4Y.get(YKHO, 'sub_domain_name')",
"def r5O1(YKHO) -> str:\n return qe4Y.get(YKHO, 'sub_domain_name')",
"def r5O1(YKHO) -> str:\n return qe4Y.get(YKHO, 'sub_domain_name')",
"d... | [
"0.799073",
"0.7916162",
"0.7916162",
"0.7916162",
"0.7916162",
"0.78186566",
"0.77580196",
"0.7751641",
"0.7688433",
"0.7655814",
"0.761704",
"0.7544243",
"0.75207096",
"0.7505239",
"0.7505239",
"0.7486883",
"0.7472118",
"0.7387048",
"0.7387048",
"0.7387048",
"0.7387048",
... | 0.7394232 | 17 |
The fully qualified domain name (FQDN) from which the CDNbacked content is served. | def w2IS(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'endpoint') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lLIo(YKHO):\n return YKHO._fqdn",
"def lLIo(YKHO):\n return YKHO._fqdn",
"def vk56(YKHO) -> str:\n return qe4Y.get(YKHO, 'fully_qualified_domain_name')",
"def lLIo(YKHO) -> str:\n return qe4Y.get(YKHO, 'fqdn')",
"def lLIo(YKHO) -> str:\n return qe4Y.get(YKHO, 'fqdn')",
"def lLIo(YKHO) ... | [
"0.74957454",
"0.74957454",
"0.7491788",
"0.74557406",
"0.74557406",
"0.74557406",
"0.74557406",
"0.74557406",
"0.74557406",
"0.74557406",
"0.7428915",
"0.74191964",
"0.7345487",
"0.7339679",
"0.72590244",
"0.7207969",
"0.7207969",
"0.7207969",
"0.7207969",
"0.7182548",
"0.71... | 0.0 | -1 |
The fully qualified domain name, (FQDN) for a Space. | def hLRM(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'origin') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vk56(YKHO) -> str:\n return qe4Y.get(YKHO, 'fully_qualified_domain_name')",
"def vk56(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'fully_qualified_domain_name')",
"def lLIo(YKHO):\n SQ3m = YKHO._parts + ('namespace', 'domain')\n qIxc = [getattr(YKHO, XP5J) for XP5J in SQ3m]\n return Y... | [
"0.7931993",
"0.7660061",
"0.74191177",
"0.7321504",
"0.7321504",
"0.7321504",
"0.7321504",
"0.7321504",
"0.7321504",
"0.7321504",
"0.7312239",
"0.72488797",
"0.72488797",
"0.72297657",
"0.72199816",
"0.7130596",
"0.71082914",
"0.71023184",
"0.71023184",
"0.71023184",
"0.7102... | 0.0 | -1 |
The time to live for the CDN Endpoint, in seconds. Default is 3600 seconds. | def h9HD(YKHO) -> qe4Y.Output[int]:
return qe4Y.get(YKHO, 'ttl') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PMtK(YKHO):\n return YKHO._time_to_live_seconds",
"def vcah(YKHO):\n return 60",
"def h9HD(YKHO) -> h8nf[float]:\n if YKHO.stream_info.config.max_age is None:\n return None\n return YKHO.stream_info.config.max_age",
"def h9HD(YKHO) -> h8nf[float]:\n if YKHO.stream_info.config.max_ag... | [
"0.6885237",
"0.67011845",
"0.66376734",
"0.66376734",
"0.64913845",
"0.63910186",
"0.6320152",
"0.631933",
"0.6234837",
"0.6206684",
"0.6203096",
"0.6201957",
"0.61394477",
"0.61333734",
"0.61333734",
"0.61333734",
"0.61333734",
"0.61333734",
"0.61142737",
"0.60989076",
"0.6... | 0.5616253 | 97 |
Initialisation of the local logging system. The Python logger is used and the handler automatically opens a new log file at midnight. The logger's name is defined by the name of the class of the corresponding module. The directory of the log files must be set in the initialization of the object. (self.dir_logging) If t... | def fXRM(YKHO):
if YKHO.log_me:
hOrn = G9jH.getLevelName(YKHO.log_level)
h9HD = '{:%Y-%m-%d_%H_%M_%S}'.format(qcWV.datetime.now())
Kwmb = YKHO.dir_logging
gIsw = Kwmb + YKHO.mod_name + '_' + h9HD + '.log'
print(gIsw)
bo34 = G9jH.getLogger(YKHO.mod_name)
bo34.s... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, wJ2a: str=None):\n if wJ2a[-1] != '/':\n wJ2a += '/'\n sbkI(wJ2a)\n YKHO.error_logger = YKHO._create_logger(uwaB.ERROR, wJ2a)\n YKHO.info_logger = YKHO._create_logger(uwaB.INFO, wJ2a)\n YKHO.debug_logger = YKHO._create_logger(uwaB.DEBUG, wJ2a)\n YKHO.trace_logger = YKHO._cre... | [
"0.75503474",
"0.7376494",
"0.7363986",
"0.73516434",
"0.73444587",
"0.7279876",
"0.7248085",
"0.7219571",
"0.72080725",
"0.71791905",
"0.7177724",
"0.7165163",
"0.7162889",
"0.715592",
"0.71510285",
"0.71473217",
"0.7143521",
"0.71227705",
"0.7105143",
"0.70530987",
"0.70386... | 0.6839772 | 46 |
Deserialize 8bit signed integer. | def YTBR(WKvO):
if not isinstance(WKvO, iL8K):
raise o3HX('cannot deserialize %r to signed 8-bit integer' % WKvO)
if WKvO < TL9F or WKvO > mnyR:
raise o3HX('%r out of range for signed 8-bit integer' % WKvO)
return WKvO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eauo(WKvO):\n if not isinstance(WKvO, iL8K):\n raise o3HX('cannot deserialize %r to unsigned 8-bit integer' % WKvO)\n if WKvO < 0 or WKvO > GpHu:\n raise o3HX('%r out of range for unsigned 8-bit integer' % WKvO)\n return WKvO",
"def PKak(BSLH):\n return pVtH(Is2J, BSLH)",
"def R4u... | [
"0.7378366",
"0.7138274",
"0.665078",
"0.6584773",
"0.650965",
"0.6384601",
"0.6321779",
"0.6246789",
"0.6209675",
"0.609476",
"0.6037352",
"0.6030559",
"0.6017403",
"0.59919244",
"0.5982216",
"0.59553504",
"0.5908842",
"0.5830036",
"0.5823516",
"0.57756174",
"0.57693684",
... | 0.8025626 | 0 |
Deserialize 64bit unsigned integer. | def og5H(WKvO):
if not isinstance(WKvO, iL8K):
raise o3HX('cannot deserialize %r to unsigned 64-bit integer' % WKvO)
if WKvO < 0 or WKvO > KwjO:
raise o3HX('%r out of range for unsigned 64-bit integer' % WKvO)
return WKvO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bh0I(WKvO):\n if not isinstance(WKvO, iL8K):\n raise o3HX('cannot deserialize %r to signed 64-bit integer' % WKvO)\n if WKvO < BLCt or WKvO > Coou:\n raise o3HX('%r out of range for signed 64-bit integer' % WKvO)\n return WKvO",
"def Gvyj(YKHO, J7UI):\n return YKHO.inner.decode_uint... | [
"0.75479674",
"0.7427727",
"0.72267056",
"0.7107907",
"0.6840987",
"0.68351024",
"0.6833625",
"0.66602826",
"0.65988696",
"0.65541744",
"0.649636",
"0.64591223",
"0.6445792",
"0.6348643",
"0.6322618",
"0.6224469",
"0.6136814",
"0.61363333",
"0.613242",
"0.6100992",
"0.6038484... | 0.8347955 | 0 |
Returns the default float type, as a string. (e.g. 'float16', 'float32', 'float64'). Returns String, the current default float type. | def fkU4():
return YHOW | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AXK6(YEnM: Any) -> eBH2[auK0]:\n return SisA(auK0, YEnM, {XTiz.float16: 16, XTiz.float32: 32, XTiz.float64: 64, float: elf1})",
"def WJ2U(YKHO) -> str:\n return TlLn.STRING.prefixed(YKHO.xs_prefix)",
"def FRul():\n eHNT = 1.987654321\n WKvO = format(eHNT, '.3')\n print(WKvO)\n print(type(... | [
"0.68288577",
"0.6568271",
"0.6328981",
"0.62224275",
"0.6131896",
"0.6074356",
"0.60660285",
"0.60597783",
"0.6033049",
"0.60166943",
"0.599942",
"0.59464765",
"0.5943421",
"0.58496505",
"0.58100545",
"0.5722531",
"0.5688261",
"0.56578404",
"0.5651184",
"0.56341404",
"0.5628... | 0.0 | -1 |
A logger that prints text to cerr, the default error output stream. | def LhiZ(mWFP=__name__, ABDL=Ke5A, FMLJ=L6D_):
return ujI6(aYqa(), mWFP, ABDL, FMLJ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def w1xV(*qIxc):\n GgQp('stderr', *qIxc)",
"def Po8m(tO9_: str) -> None:\n print(tO9_, file=wIbz)",
"def XObx(Ol8d):\n (print >> HwRy.stderr, Ol8d)",
"def i6F6(*qIxc, **B2fa):\n if I45O:\n B2fa.pop('end', None)\n B2fa.pop('file', None)\n I45O.error(*qIxc, **B2fa)\n else:\n... | [
"0.67058146",
"0.63430095",
"0.6305935",
"0.62301356",
"0.6179123",
"0.61719936",
"0.6131921",
"0.612932",
"0.612153",
"0.6106865",
"0.6098494",
"0.6083807",
"0.6077982",
"0.60517764",
"0.605043",
"0.6032467",
"0.60290766",
"0.6027764",
"0.60146165",
"0.6005124",
"0.5983797",... | 0.0 | -1 |
Test all workload can be accessed without policy. | def dXyv(YKHO):
YKHO.check_namespace_access(YKHO.nsa_wl, True, True, True)
YKHO.check_namespace_access(YKHO.nsb_wl, True, True, True)
YKHO.check_namespace_access(YKHO.default_wl, True, True, True)
YKHO.check_namespace_access(YKHO.omit_wl, True, True, True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pLjR(YKHO):\n geh0 = YKHO.client.get(YKHO.url)\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_403_FORBIDDEN)",
"def wun3(YKHO):\n geh0 = YKHO.client.get(YKHO.url)\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_403_FORBIDDEN)",
"def HByF(YKHO):\n geh0 = YKHO.client.get(YKHO.image_url)\n YK... | [
"0.6747751",
"0.64775306",
"0.6374884",
"0.6265313",
"0.61252564",
"0.61100084",
"0.61095035",
"0.6051992",
"0.60427403",
"0.6014759",
"0.60136324",
"0.6007446",
"0.6004289",
"0.599505",
"0.5974285",
"0.5969105",
"0.5962225",
"0.59442765",
"0.59328073",
"0.59317595",
"0.59168... | 0.67747724 | 0 |
Test global network policy with different order. | def nobJ(YKHO):
YKHO.add_global_ingress(500, 'Deny', 'default')
YKHO.add_global_ingress(200, 'Allow', 'nsa')
YKHO.add_global_ingress(100, 'Deny', 'nsb')
YKHO.check_namespace_access(YKHO.nsa_wl, True, False, False)
YKHO.check_namespace_access(YKHO.nsb_wl, True, False, False)
YKHO.check_namespace_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FACR(YKHO):\n YKHO.run_subtests({'policy': [None, DB01({KGC8}), DB01({U78l.Sequential})]}, YKHO._test_policy)",
"def bQMQ(YKHO):\n KGj6 = YKHO.policy_params_independent.copy()\n KGj6['maddpg'] = False\n Qabx = ImAv(**KGj6)\n YKHO.assertListEqual(sorted([SRYB.name for SRYB in r51G()]), ['a/mode... | [
"0.6809781",
"0.64659274",
"0.63482",
"0.6137907",
"0.6118894",
"0.6048571",
"0.6048152",
"0.6026534",
"0.5926108",
"0.5925166",
"0.58969617",
"0.58784306",
"0.5869639",
"0.5822056",
"0.58145976",
"0.5802056",
"0.578241",
"0.57819474",
"0.57771176",
"0.5770813",
"0.5750884",
... | 0.6901584 | 0 |
Test mixed deny network policy for namespaces mixed with global network policy. | def Pom4(YKHO):
YKHO.add_global_ingress(200, 'Allow')
YKHO.add_namespace_ingress('nsa', 300, 'Deny', 'default')
YKHO.add_namespace_ingress('nsa', 100, 'Deny', 'nsb')
YKHO.add_namespace_ingress('nsb', 300, 'Deny', 'default')
YKHO.add_namespace_ingress('nsb', 100, 'Deny', 'nsa')
YKHO.add_namespace... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cMwN(YKHO):\n YKHO.add_global_ingress(200, 'Allow')\n YKHO.add_namespace_ingress('nsa', 300, 'Deny', 'nsb')\n YKHO.add_namespace_ingress('nsa', 100, 'Deny', 'default')\n YKHO.check_namespace_access(YKHO.nsa_wl, True, True, False)\n YKHO.check_namespace_access(YKHO.nsb_wl, True, True, True)\n ... | [
"0.76108205",
"0.7358134",
"0.72851217",
"0.72411925",
"0.70980144",
"0.6995507",
"0.6753657",
"0.6649198",
"0.660087",
"0.6571601",
"0.61522937",
"0.60911304",
"0.6043822",
"0.5982865",
"0.59672874",
"0.5936761",
"0.585156",
"0.58202463",
"0.57664055",
"0.5763979",
"0.571796... | 0.778285 | 0 |
Convert class_id in loaded segmentation mask to label. | def b32D(YKHO, ZHfW):
if isinstance(ZHfW, str):
if ZHfW.endswith('npy'):
ZHfW = oyIN.load(ZHfW)
else:
ZHfW = oyIN.fromfile(ZHfW, dtype=oyIN.int64)
UXqs = YKHO.cat_id2class[ZHfW]
return UXqs | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FEdX(YKHO, r8m5):\n U34r = YKHO.image_info[r8m5]\n ZHfW = frG3.io.imread(U34r['maskpath'])\n if ZHfW.ndim == 3:\n ZHfW = ZHfW[:, :, 0]\n ZHfW = ZHfW[:, :] / 255\n UXqs = Tcon.label(ZHfW, connectivity=2)\n vFVk = oyIN.zeros((ZHfW.shape[0], ZHfW.shape[1], UXqs.max()), dtype='int32')\n ... | [
"0.72406614",
"0.7238432",
"0.7021324",
"0.6932089",
"0.69101804",
"0.6903186",
"0.678552",
"0.6716915",
"0.6607179",
"0.65889895",
"0.65225214",
"0.6515522",
"0.64632666",
"0.6448604",
"0.6419977",
"0.64185244",
"0.64098066",
"0.64018506",
"0.6390395",
"0.63883173",
"0.63878... | 0.84127665 | 0 |
Dumps the configuration to a YAML file in the specified location. This will not reflect any runtime modifications to the configuration object. | def W1Sa(YKHO, Lvqq: pathlib.Path) -> None:
R8cc = {}
for Jyyj in o8Kj.fields(YKHO.__class__):
if Jyyj.name in {'config_location', 'schema_loc'}:
continue
if Jyyj.name in YKHO._attr_templates:
R8cc[Jyyj.name] = str(YKHO._attr_templates[Jyyj.name])
continue
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ChRH():\n global _config\n global _modified\n if VDLm:\n cLAE = vmCi()\n tzAq, IaaG = Hy7s.path.split(cLAE)\n Hy7s.makedirs(tzAq, exist_ok=True)\n with open(cLAE, 'w') as eHNT:\n eJb6.dump(viqz, eHNT)\n VDLm = False",
"def F0fg(GPtr: dict) -> None:\n ... | [
"0.7724625",
"0.72865707",
"0.7173719",
"0.71182585",
"0.7086119",
"0.7049659",
"0.6983395",
"0.68132704",
"0.67137676",
"0.67137676",
"0.6664579",
"0.66614586",
"0.6584148",
"0.65707755",
"0.6570408",
"0.6537372",
"0.64725477",
"0.64626336",
"0.6449259",
"0.64396065",
"0.640... | 0.6226798 | 34 |
On first call, this loads the configuration object, on subsequent calls, this returns the original configuration object. | def eMhT() -> y8cn:
return fOck() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nrOS(YKHO):\n if YKHO._config is None:\n YKHO.load()\n return YKHO._config",
"def LgIG(YKHO):\n Nu1S = YKHO.get_config()\n YKHO.config.read(Nu1S)\n return YKHO.config",
"def LgIG(YKHO):\n if isinstance(YKHO.config, dict):\n return YKHO.config\n with open(YKHO.config, 'r')... | [
"0.7610702",
"0.73516065",
"0.720609",
"0.71476763",
"0.712591",
"0.7073085",
"0.70719844",
"0.7055934",
"0.7050016",
"0.7017123",
"0.7013118",
"0.6908976",
"0.6888572",
"0.68803376",
"0.6877478",
"0.6864678",
"0.6835746",
"0.6834967",
"0.6833399",
"0.6828209",
"0.68237984",
... | 0.70484334 | 9 |
Str representation of HaberModel. | def zAg0(YKHO):
return '%s - %s' % (YKHO.baslik, YKHO.slug) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(next(iter(YKHO.model_dict.values()))).split('(')[0]",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc... | [
"0.75253135",
"0.7500537",
"0.74344784",
"0.74279976",
"0.7224155",
"0.72104776",
"0.7198297",
"0.71370065",
"0.70855",
"0.70613927",
"0.70355266",
"0.703088",
"0.703088",
"0.70090306",
"0.70053154",
"0.70053154",
"0.7003297",
"0.69969416",
"0.699561",
"0.6993879",
"0.6993638... | 0.0 | -1 |
Converts str "True/False to Boolean TRUE/FALSE | def M0mR(KCHu):
if KCHu == 'true':
return True
elif KCHu == 'false':
return False
else:
raise ValueError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M0mR(KCHu):\n if KCHu == 'True':\n return True\n elif KCHu == 'False':\n return False",
"def sisc(str):\n return True if str.lower() == 'true' else False",
"def M0mR(vIwR):\n if vIwR == 'True':\n return True\n elif vIwR == 'False':\n return False",
"def UcEP(KCH... | [
"0.8752542",
"0.86819357",
"0.8591184",
"0.8589338",
"0.85475063",
"0.8530947",
"0.8490616",
"0.84789205",
"0.8472856",
"0.84616023",
"0.8408513",
"0.8391983",
"0.8387027",
"0.83677065",
"0.8360309",
"0.83551",
"0.83323985",
"0.833204",
"0.83308953",
"0.83192754",
"0.83178467... | 0.8382907 | 13 |
This method tests that a user can successfully activate their account | def W6rq(YKHO):
Ylbp = YKHO.client.post('/api/users/', YKHO.reg_data, format='json')
eOtH = Ylbp.data['token']
geh0 = YKHO.client.get('/api/users/activate_account/{}/'.format(eOtH))
YKHO.assertIn('Your account has been successfully activated. Complete profile', geh0.json()['user']['message'])
YKHO.a... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def unW8(YKHO, P4t4):\n Wxnj = YKHO.test_registration_form(P4t4)\n Mkmy = P4t4.test_client().get('/activate?code=' + Wxnj, follow_redirects=True)\n assert b'your account has been activated' in Mkmy.get_data()",
"def unW8(YKHO):\n Ylbp = YKHO.client.post(vY3x, YKHO.payload)\n if Ylbp.status_code ==... | [
"0.8179561",
"0.8128141",
"0.78672075",
"0.7775222",
"0.7589467",
"0.75830394",
"0.7537854",
"0.7482564",
"0.7400082",
"0.7362334",
"0.7309255",
"0.71459264",
"0.7101623",
"0.709595",
"0.7091938",
"0.70718616",
"0.70584315",
"0.7006206",
"0.69822115",
"0.69802254",
"0.6974495... | 0.7841059 | 3 |
This method tests that a user can only activate their account once | def V3YN(YKHO):
Ylbp = YKHO.client.post('/api/users/', YKHO.reg_data, format='json')
eOtH = Ylbp.data['token']
YKHO.client.get('/api/users/activate_account/{}/'.format(eOtH))
geh0 = YKHO.client.get('/api/users/activate_account/{}/'.format(eOtH))
YKHO.assertIn('Account already activated. Please login... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Bdtv(YKHO):\n YKHO.user.is_verified = True\n YKHO.user.save()\n eOtH = DvJO.encode({'email': YKHO.user.email}, gCuF.SECRET_KEY).decode('utf-8') + '~1'\n geh0 = YKHO.client.get(YKHO.verify_url + '?token={}'.format(eOtH), format='json')\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_200_OK)",
"d... | [
"0.76452506",
"0.73893005",
"0.71046823",
"0.7094611",
"0.70469236",
"0.69524133",
"0.69194335",
"0.690228",
"0.6896079",
"0.6896023",
"0.68314445",
"0.6822003",
"0.680277",
"0.67496794",
"0.67122734",
"0.67000353",
"0.66987675",
"0.6659375",
"0.66425914",
"0.66211456",
"0.66... | 0.75349927 | 1 |
Test case verifies that a specific project details are rendered when a specific project is selected from the project list | def q0cZ(YKHO):
LGO2 = YKHO.client.get(gxEw('check_mate:project_details', args=(1,)))
YKHO.assertEqual(LGO2.status_code, 302)
YKHO.client.login(username='test_user', password='secret')
geh0 = YKHO.client.get(gxEw('check_mate:project_details', args=(1,)))
YKHO.assertEqual(geh0.status_code, 200)
Y... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ItlL(YKHO):\n with YKHO.login(YKHO.user):\n geh0 = YKHO.client.get(gxEw('projectroles:update', kwargs={'project': YKHO.project.sodar_uuid}))\n YKHO.assertEqual(geh0.status_code, 200)\n L03z = geh0.context['form']\n YKHO.assertIsNotNone(L03z)\n YKHO.assertIsInstance(L03z.fields['type'].wid... | [
"0.7260041",
"0.71741056",
"0.7160099",
"0.7144487",
"0.71063113",
"0.7055645",
"0.7003192",
"0.7001485",
"0.6954505",
"0.6954505",
"0.69516736",
"0.68942755",
"0.68845624",
"0.6881383",
"0.6866307",
"0.68621886",
"0.684912",
"0.68434185",
"0.68212444",
"0.67909026",
"0.67547... | 0.73205334 | 0 |
Test case verifies that the project edit form loads with expected fields if the user is authenticated | def dF9f(YKHO):
LGO2 = YKHO.client.get(gxEw('check_mate:project_edit', args=(1,)))
YKHO.assertFalse(LGO2.content)
YKHO.assertEqual(LGO2.status_code, 302)
YKHO.client.login(username='test_user', password='secret')
geh0 = YKHO.client.get(gxEw('check_mate:project_edit', args=(1,)))
YKHO.assertEqual... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dF9f(YKHO):\n with Xvb7.app.test_request_context():\n Xvb7.app.preprocess_request()\n w2B8 = Xvb7.g.rdb_conn\n Mkmy.table('projects').insert({'id': 'TESTPROJ01', 'name': 'TESTPROJ01'}).run(w2B8)\n im04 = YKHO.app.post('/editProjectForm', content_type='multipart/form-data', data={... | [
"0.81248397",
"0.80425084",
"0.78693134",
"0.7808126",
"0.764674",
"0.76109374",
"0.7529335",
"0.7502562",
"0.74460536",
"0.7408894",
"0.74076813",
"0.7377726",
"0.7264162",
"0.72197956",
"0.71319616",
"0.707758",
"0.70631814",
"0.7054354",
"0.7019417",
"0.7003618",
"0.698694... | 0.8541857 | 0 |
Test case verifies that the project add form page loads with expected fields if user is authenticated | def cglI(YKHO):
LGO2 = YKHO.client.get(gxEw('check_mate:project_add'))
YKHO.assertFalse(LGO2.content)
YKHO.assertEqual(LGO2.status_code, 302)
YKHO.client.login(username='test_user', password='secret')
geh0 = YKHO.client.get(gxEw('check_mate:project_add'))
YKHO.assertEqual(geh0.status_code, 200) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sAj0(YKHO):\n YKHO.client.login(username='test_user', password='secret')\n geh0 = YKHO.client.post(gxEw('check_mate:project_add'), {'project_name': 'New Project', 'project_description': 'This is a new project.', 'project_due': '2019-05-02'})\n YKHO.assertEqual(geh0.status_code, 302)",
"def dF9f(YKHO... | [
"0.76334846",
"0.75423187",
"0.7232603",
"0.7138939",
"0.7126178",
"0.7072119",
"0.7041899",
"0.70411664",
"0.7030606",
"0.7023193",
"0.6981211",
"0.69672084",
"0.6963507",
"0.6943923",
"0.69216484",
"0.69146633",
"0.69136244",
"0.69099474",
"0.6868444",
"0.68631107",
"0.6854... | 0.85809314 | 0 |
An alternative constructor to get a working instance of the API. | def bG4O(Emd4, lkei: TCollabConfig) -> 'SignalExchangeAPI':
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO) -> None:\n YKHO.api = fyIx()",
"def FIMM(YKHO, nNXP):\n YKHO.api = nNXP",
"def FIMM(YKHO, NtEF, jTXt):\n YKHO.api = fyIx(NtEF, jTXt)",
"def FIMM(YKHO, nNXP: OpVersion) -> None:\n YKHO.api = nNXP",
"def FIMM(YKHO):\n YKHO.key = nNXP['key']\n YKHO.secret = nNXP['secret']\n ... | [
"0.8119505",
"0.75580245",
"0.75204027",
"0.74730647",
"0.74425375",
"0.7409265",
"0.73526645",
"0.7320335",
"0.7320335",
"0.7320335",
"0.7309588",
"0.7290533",
"0.7285808",
"0.7221594",
"0.7212263",
"0.7212263",
"0.7184725",
"0.716584",
"0.716584",
"0.716584",
"0.716584",
... | 0.0 | -1 |
Returns the dataclass used to control checkpoint for this API | def EnDU() -> a1PO.Type[QTBn.TFetchCheckpoint]:
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ERUk(YKHO, nPrm):\n TXzq = len(nPrm)\n return nPrm[TXzq - 1]",
"def Z3zW(YKHO):\n return YKHO._ClassificationDataset",
"def hYY3(YKHO):\n return YKHO._checkpoint_op_type",
"def FWAS(YKHO):\n if YKHO._data_class is None:\n import roslib\n try:\n roslib.load_manifest... | [
"0.6282791",
"0.6178345",
"0.6154529",
"0.59091836",
"0.590385",
"0.5899958",
"0.5866739",
"0.57848823",
"0.57616127",
"0.5708419",
"0.5664959",
"0.5610332",
"0.55871916",
"0.55856675",
"0.55678093",
"0.55486625",
"0.5526635",
"0.5507563",
"0.54894096",
"0.5489397",
"0.546286... | 0.70246565 | 0 |
Convert the record from the API format to the format needed for indexing. This is the fallback method of creating state when there isn't a specialized storage for the fetch type. | def OAhx(Emd4, EbR5: t.Sequence[t.Type[SignalType]], lkei: TCollabConfig, R2iL: t.Mapping[state.TUpdateRecordKey, state.TUpdateRecordValue]) -> a1PO.Dict[a1PO.Type[mvwx], a1PO.Dict[str, QTBn.TFetchedSignalMetadata]]:
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NYWx(YKHO, khdS, AIu6):\n nPrm = {}\n for d6pt, H5ew in enumerate(YKHO.RECORD_FORMAT.keys()):\n BWXx = iYZ_(AIu6, d6pt)\n HbND = YKHO.RECORD_FORMAT[H5ew]\n if BWXx and HbND:\n try:\n if HbND == s_TI:\n BWXx = HbND.objects.get(name__iexact=... | [
"0.6539578",
"0.62033814",
"0.58578163",
"0.577306",
"0.5698095",
"0.5629809",
"0.55923647",
"0.5522412",
"0.551756",
"0.55136067",
"0.54940766",
"0.5466843",
"0.54664433",
"0.54527134",
"0.5451171",
"0.54315066",
"0.54062366",
"0.5387766",
"0.53809655",
"0.5378456",
"0.53784... | 0.0 | -1 |
T.__new__(S, ...) > a new object with type S, a subtype of T | def fwuD(o4sw, *SPTI):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw):\n pass",
"def fwuD(YKHO, o4sw... | [
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497",
"0.74194497"... | 0.72122014 | 65 |
Add a simple field to the form data. | def FxjZ(YKHO, mWFP, BWXx):
YKHO.form_fields.append((mWFP, BWXx))
return | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FxjZ(YKHO, mWFP, BWXx):\n if BWXx == None:\n BWXx = ''\n YKHO.form_fields.append((mWFP, BWXx))\n return",
"def FxjZ(YKHO, mWFP, BWXx):\n YKHO.form_fields.append((mWFP, str(BWXx)))\n return",
"def FxjZ(YKHO, mWFP, BWXx):\n YKHO.form_fields.append((mWFP, BWXx))",
"def FxjZ(YKHO, mW... | [
"0.77391976",
"0.75317854",
"0.7503595",
"0.7479653",
"0.7418919",
"0.70539933",
"0.6575748",
"0.65572834",
"0.6554097",
"0.65278184",
"0.6500375",
"0.6466462",
"0.6423372",
"0.63811696",
"0.6359002",
"0.63150984",
"0.62681633",
"0.6264281",
"0.6243674",
"0.6218067",
"0.61662... | 0.7440104 | 5 |
Iterate something printing progress bar to stdout | def _PML(CPRN):
TRdr = iP2j(0, len(CPRN))
for YRbF, BWXx in enumerate(CPRN):
yield BWXx
TRdr.update_and_print(YRbF, HwRy.stderr) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V8xp(dfHy, wjRY, y0cW='', ZI14='', phJ9=1, aM3G=100):\n f9h1 = '{0:.' + str(phJ9) + 'f}'\n xSSH = f9h1.format(100 * (dfHy / float(wjRY)))\n pe2p = int(round(aM3G * dfHy / float(wjRY)))\n S6Fl = '█' * pe2p + '-' * (aM3G - pe2p)\n (HwRy.stdout.write('\\r%s |%s| %s%s %s' % (y0cW, S6Fl, xSSH, '%', Z... | [
"0.75857496",
"0.7512818",
"0.7508685",
"0.74939257",
"0.7482953",
"0.7479201",
"0.7450523",
"0.74454826",
"0.742989",
"0.7425391",
"0.7425391",
"0.7425391",
"0.74081284",
"0.7404413",
"0.7401087",
"0.7392322",
"0.7391385",
"0.7374701",
"0.73701346",
"0.735437",
"0.7353964",
... | 0.7217535 | 88 |
Logistic regression using gradient descent. Return the loss and the updated w. | def UKod(LVAh, UShr, Iuqe, ABAq, KMvS):
yzQ0 = Iuqe
for iter in range(ABAq):
ICX2 = c51G(LVAh, UShr, yzQ0)
yzQ0 = yzQ0 - KMvS * ICX2
N77f = clq4(LVAh, UShr, yzQ0)
return (yzQ0, N77f) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iRD8(LVAh, UShr, yzQ0, w4rS):\n N77f = Sxtp(LVAh, UShr, yzQ0) + w4rS * yzQ0.T @ yzQ0\n ICX2 = rNgq(LVAh, UShr, yzQ0) + 2 * w4rS * yzQ0\n return (N77f, ICX2)",
"def VzIN(XcU5, EcVT, LVAh, lQ3t):\n N77f = 0\n HFON = 0\n ywwl, lWPh = EcVT.shape\n Nq1b = XcU5.shape[1]\n JxU2 = oyIN.zeros(... | [
"0.79474384",
"0.793531",
"0.7875811",
"0.7727287",
"0.76861614",
"0.7652985",
"0.76134044",
"0.7606559",
"0.76064503",
"0.75577915",
"0.7518191",
"0.7498359",
"0.7494772",
"0.74583477",
"0.7453113",
"0.74507964",
"0.7446491",
"0.7441279",
"0.7419377",
"0.7419017",
"0.7412013... | 0.7377999 | 23 |
Penalized logistic regression using gradient descent. Return the loss and the updated w. | def wnl5(LVAh, UShr, w4rS, Iuqe, ABAq, KMvS):
yzQ0 = Iuqe
for iter in range(ABAq):
ICX2, e_VS = KdC0(LVAh, UShr, yzQ0, w4rS)
yzQ0 = yzQ0 - KMvS * oyIN.linalg.solve(e_VS, ICX2)
VdWm = w4rS * oyIN.sum(oyIN.power(yzQ0, 2))
N77f = clq4(LVAh, UShr, yzQ0)
return (yzQ0, N77f) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jiLp(LVAh, UShr, yzQ0, w4rS):\n N77f = UK3r(LVAh, UShr, yzQ0) + w4rS / 2 * yzQ0.T.dot(yzQ0)\n ICX2 = MvdP(LVAh, UShr, yzQ0) + w4rS * yzQ0\n return (N77f, ICX2)",
"def jiLp(LVAh, UShr, yzQ0, w4rS):\n eAYh = LVAh.shape[0]\n N77f = PY9B(LVAh, UShr, yzQ0) + w4rS * oyIN.squeeze(yzQ0.T.dot(yzQ0))\n ... | [
"0.79635775",
"0.7929677",
"0.79190874",
"0.7910024",
"0.7904784",
"0.78292847",
"0.78085345",
"0.7675098",
"0.75994056",
"0.75912267",
"0.74802965",
"0.7418855",
"0.74074537",
"0.73890877",
"0.73198175",
"0.7250225",
"0.72422117",
"0.7205401",
"0.7198223",
"0.71868926",
"0.7... | 0.7086972 | 27 |
Do logistic regriession by Newton's method. return the loss and updated w. | def ENki(LVAh, UShr, Iuqe, ABAq, KMvS):
yzQ0 = Iuqe
for iter in range(ABAq):
Ro40 = c51G(LVAh, UShr, yzQ0)
ZqWh = Mq9I(LVAh, UShr, yzQ0)
if oyIN.linalg.matrix_rank(ZqWh) == ZqWh.shape[0]:
yzQ0 = yzQ0 - oyIN.dot(KMvS, oyIN.linalg.solve(ZqWh, Ro40))
iAxY = clq4(LVAh, UShr, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VzIN(XcU5, EcVT, LVAh, lQ3t):\n N77f = 0\n HFON = 0\n ywwl, lWPh = EcVT.shape\n Nq1b = XcU5.shape[1]\n JxU2 = oyIN.zeros((ywwl, Nq1b))\n ZU58 = oyIN.zeros((lWPh, Nq1b))\n for YRbF in range(ywwl):\n vHYh = EcVT[YRbF]\n cHAw = LVAh[YRbF]\n Evdd = oyIN.dot(EcVT[YRbF], XcU... | [
"0.76866513",
"0.7551445",
"0.73114693",
"0.7241839",
"0.7238221",
"0.7218981",
"0.7176198",
"0.7147509",
"0.7112662",
"0.7097293",
"0.7064261",
"0.7049045",
"0.70421547",
"0.7018774",
"0.7003618",
"0.7000467",
"0.6997175",
"0.69918966",
"0.6981007",
"0.6969825",
"0.6966712",... | 0.0 | -1 |
build k indices for kfold. | def a4rF(LVAh, sSDk, yokr):
gqUV = LVAh.shape[0]
VOlW = int(gqUV / sSDk)
oyIN.random.seed(yokr)
_0VL = oyIN.random.permutation(gqUV)
a_4G = [_0VL[G1Hx * VOlW:(G1Hx + 1) * VOlW] for G1Hx in range(sSDk)]
return oyIN.array(a_4G) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a4rF(LVAh, sSDk, yokr):\n \"\"\"build k indices for k-fold.\"\"\"\n gqUV = LVAh.shape[0]\n VOlW = int(gqUV / sSDk)\n oyIN.random.seed(yokr)\n _0VL = oyIN.random.permutation(gqUV)\n a_4G = [_0VL[G1Hx * VOlW:(G1Hx + 1) * VOlW] for G1Hx in range(sSDk)]\n return oyIN.array(a_4G)",
"def a4rF(... | [
"0.8147923",
"0.7920322",
"0.78636",
"0.78578305",
"0.78578305",
"0.7852471",
"0.7851632",
"0.7820169",
"0.7806145",
"0.73644537",
"0.73370546",
"0.7038534",
"0.69905734",
"0.6826553",
"0.67935085",
"0.6787416",
"0.6763014",
"0.6755921",
"0.67309886",
"0.6562994",
"0.6526764"... | 0.7869487 | 3 |
Get youtube id from local file | def eiTi(YKHO, leAC):
mvPQ = YKHO.get_movie_data(leAC)
rDEk = mvPQ['youtube']
mxNC = YKHO.extract_youtube_id(rDEk)
return mxNC | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def utuI(YKHO):\n if not YKHO.video_embed:\n return ''\n r8hN = ZbWC.search('/embed/([A-Za-z0-9\\\\-=_]*)', YKHO.video_embed)\n if r8hN:\n return r8hN.group(1)\n return ''",
"def eiTi(AnJ3: str):\n if 'youtube.com' in AnJ3:\n DYeJ = AnJ3.split('?v=')[1].split('&')[0]\n elif... | [
"0.7064523",
"0.7033654",
"0.69468015",
"0.6877678",
"0.6851665",
"0.6844821",
"0.6799314",
"0.6769949",
"0.6694673",
"0.6629159",
"0.66208833",
"0.6554556",
"0.65505916",
"0.65293866",
"0.6524659",
"0.65230376",
"0.6474961",
"0.6474337",
"0.64551395",
"0.6440367",
"0.6385122... | 0.6481167 | 16 |
Open JSON file and return contents | def eskD(YKHO, leAC):
oOVi = open('movie_info.json')
mvPQ = qQXR.loads(oOVi.read())
oOVi.close()
return mvPQ[leAC] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NC4D(nUeQ):\n with open(nUeQ, 'r') as apum:\n nPrm = qQXR.load(apum)\n return nPrm",
"def ku8p(yiHj):\n with open(yiHj, 'r') as apum:\n nPrm = qQXR.load(apum)\n return nPrm",
"def GvL1(VqRE):\n with open(VqRE) as KAfx:\n nPrm = qQXR.load(KAfx)\n return nPrm",
"d... | [
"0.8292577",
"0.79885155",
"0.7926347",
"0.7918668",
"0.7914976",
"0.78409696",
"0.7788748",
"0.7762308",
"0.7747598",
"0.77422166",
"0.77075803",
"0.7678332",
"0.76686656",
"0.7668535",
"0.7654492",
"0.7643089",
"0.76308006",
"0.7611676",
"0.76074034",
"0.7579575",
"0.755869... | 0.0 | -1 |
Create a new list from the input list, with duplicate items removed. Order is preserved. The list items must be hashable. | def vaOw(YKHO, zXzD):
Aofo = []
PwWw = set()
for ZfUD in zXzD:
if not ZfUD in PwWw:
PwWw.add(ZfUD)
Aofo.append(ZfUD)
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DaEM(IqQl):\n return list(U8Lr.fromkeys(IqQl))",
"def aIUk(uf0f: List) -> x1iM:\n PwWw: cuzp[ImMB, bool] = {}\n Aofo = []\n for ZfUD in uf0f:\n if ZfUD in PwWw:\n continue\n PwWw[ZfUD] = True\n Aofo.append(ZfUD)\n return Aofo",
"def cXrt(e5Mv):\n bDFL = set... | [
"0.82500964",
"0.78827745",
"0.7881917",
"0.7834486",
"0.78278536",
"0.7785348",
"0.7776584",
"0.772304",
"0.7676337",
"0.7645504",
"0.76450855",
"0.76439947",
"0.763607",
"0.76261175",
"0.76194674",
"0.75869435",
"0.75829095",
"0.7582531",
"0.7563127",
"0.75606394",
"0.75109... | 0.73115855 | 30 |
Set a Thermocycler's target lid temperature. | async def execute(YKHO, NArs: SetTargetLidTemperatureParams) -> sMzx:
S0Eo = YKHO._state_view.modules.get_thermocycler_module_substate(NArs.moduleId)
T6n4 = S0Eo.validate_target_lid_temperature(NArs.celsius)
cwXy = YKHO._equipment.get_module_hardware_api(S0Eo.module_id)
if cwXy is not None:
awai... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def set_lid_temperature(YKHO, ycBG: float) -> None:\n YKHO._lid_temperature.target = ycBG\n YKHO._lid_temperature.current = ycBG",
"def FjjB(YKHO, **B2fa):\n if fJ9T in B2fa:\n YKHO._target_temperature = B2fa[fJ9T]\n YKHO._inhibit = YKHO._target_temperature\n YKHO._lwlink.set_temp... | [
"0.7901353",
"0.7423512",
"0.72199255",
"0.7140049",
"0.70576113",
"0.68605924",
"0.6846312",
"0.68393785",
"0.6800736",
"0.6773098",
"0.6764776",
"0.66985506",
"0.66075873",
"0.6509651",
"0.6490528",
"0.64402044",
"0.6408461",
"0.6386904",
"0.6346416",
"0.6319394",
"0.627871... | 0.6399015 | 17 |
Create and save a User with the given email and password. | def xWi2(YKHO, D3lj, jTXt, **wdCM):
if not D3lj:
raise ValueError('The given email must be set')
D3lj = YKHO.normalize_email(D3lj)
CBIr = YKHO.model(email=D3lj, **wdCM)
CBIr.set_password(jTXt)
CBIr.save(using=YKHO._db)
return CBIr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xWi2(YKHO, D3lj, jTXt, **wdCM):\n if not D3lj:\n raise ValueError('The email must be set')\n D3lj = YKHO.normalize_email(D3lj)\n CBIr = YKHO.model(email=D3lj, **wdCM)\n CBIr.set_password(jTXt)\n CBIr.save()",
"def xWi2(YKHO, D3lj, jTXt, **wdCM):\n D3lj = YKHO.normalize_email(D3lj)\n ... | [
"0.87665397",
"0.85455835",
"0.8536973",
"0.8528016",
"0.8527418",
"0.8526371",
"0.8518934",
"0.8508949",
"0.8505274",
"0.8504788",
"0.8504788",
"0.8504788",
"0.8494268",
"0.8494268",
"0.8494256",
"0.84932417",
"0.84915674",
"0.84907323",
"0.84892243",
"0.8489087",
"0.8488738... | 0.84754986 | 32 |
Create and save a regular User with the given email and password. | def lYUQ(YKHO, D3lj, jTXt=None, **wdCM):
wdCM.setdefault('is_staff', False)
wdCM.setdefault('is_superuser', False)
return YKHO._create_user(D3lj, jTXt, **wdCM) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xWi2(YKHO, D3lj, jTXt, **wdCM):\n if not D3lj:\n raise ValueError('The email must be set')\n D3lj = YKHO.normalize_email(D3lj)\n CBIr = YKHO.model(email=D3lj, **wdCM)\n CBIr.set_password(jTXt)\n CBIr.save()",
"def xWi2(YKHO, D3lj, jTXt, **wdCM):\n CBIr = YKHO.model(email=D3lj, **wdCM... | [
"0.8743023",
"0.86428183",
"0.86063707",
"0.86046314",
"0.86043674",
"0.86028653",
"0.85993475",
"0.85993475",
"0.85993475",
"0.85935956",
"0.8584281",
"0.8553917",
"0.85443616",
"0.8531463",
"0.8522245",
"0.85208696",
"0.8518207",
"0.8516093",
"0.8514466",
"0.8506865",
"0.85... | 0.0 | -1 |
Create and save a SuperUser with the given email and password. | def Zp54(YKHO, D3lj, jTXt, **wdCM):
wdCM.setdefault('is_staff', True)
wdCM.setdefault('is_superuser', True)
if wdCM.get('is_staff') is not True:
raise ValueError('Superuser must have is_staff=True.')
if wdCM.get('is_superuser') is not True:
raise ValueError('Superuser must have is_superu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zp54(YKHO, D3lj, jTXt=None, **dDGN):\n YKHO._create_user(D3lj, True, jTXt, **dDGN)",
"def Zp54(YKHO, D3lj: str, jTXt: str, **wdCM: Dict[str, bool]):\n wdCM.setdefault('is_staff', True)\n wdCM.setdefault('is_superuser', True)\n wdCM.setdefault('is_active', True)\n if wdCM.get('is_staff') is not... | [
"0.81715554",
"0.80949867",
"0.8072965",
"0.80660135",
"0.80614394",
"0.80550295",
"0.80352277",
"0.79790324",
"0.79607594",
"0.7955878",
"0.7946088",
"0.7942262",
"0.7942262",
"0.7942262",
"0.7942262",
"0.7942262",
"0.7942262",
"0.7942262",
"0.7942262",
"0.7939117",
"0.79350... | 0.7789182 | 57 |
Method for getting user by id | def bt8D(Emd4, uJjO):
CBIr = mv1M.query.get(uJjO)
return CBIr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TKWP(YKHO, id):\n return YKHO._fetch_json('users/' + id)",
"def g971(id):\n return mv1M.query.get(int(id))",
"def NMoC(YKHO, id):\n CBIr = mv1M.query.filter_by(id=id).first_or_404()\n return CBIr",
"def bt8D(id):\n Mkmy = G4JS.get(NKRf + '/user/' + str(id))\n CBIr = Mkmy.json()\n ret... | [
"0.875019",
"0.85765636",
"0.8560602",
"0.84866184",
"0.84297603",
"0.84297603",
"0.8395494",
"0.8367293",
"0.8334864",
"0.8327705",
"0.82987094",
"0.82942533",
"0.8290248",
"0.82401377",
"0.8227419",
"0.8194542",
"0.816728",
"0.81595963",
"0.8157894",
"0.8153086",
"0.8127858... | 0.80413204 | 31 |
Method for getting user by email | def CYTf(Emd4, D3lj):
CBIr = mv1M.query.filter(mv1M.email == D3lj).first()
return CBIr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lCqJ(D3lj):\n vexM = mv1M.all()\n vexM.filter('email = ', D3lj)\n return vexM.get()",
"def TKWP(Emd4, D3lj: str):\n for CBIr in Emd4.users:\n if CBIr.email == D3lj:\n return CBIr",
"def evaC(YKHO, D3lj):\n Ty9i = YhYs.objects.get(email=D3lj)\n return Ty9i",
"def CYTf(E... | [
"0.88469803",
"0.8727157",
"0.85671914",
"0.8528737",
"0.8519489",
"0.8498861",
"0.84590065",
"0.8454958",
"0.8387184",
"0.83472526",
"0.8338389",
"0.8330228",
"0.8307724",
"0.8300394",
"0.8283844",
"0.8238714",
"0.8238499",
"0.8233839",
"0.82138693",
"0.8211375",
"0.8173565"... | 0.8085359 | 27 |
Remove brackets from species name. e.g., st__[Eubacterium] siraeum 70/3 | def m7fG(YKHO, ARXy):
if ARXy.startswith('['):
ARXy = ARXy.replace('[', '', 1).replace(']', '', 1)
return ARXy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zUqu(YKHO):\n return ZbWC.sub('[^A-Za-z0-9()-]', '_', YKHO.species)",
"def xGH9(_6NH):\n yKcO = _6NH.find('(')\n return _6NH[:yKcO - 1]",
"def VXfo(mWFP):\n return ZbWC.sub('[(].*[)]', '', mWFP).strip().title()",
"def _XWc(YKHO, Bnkd):\n MnD1 = [a1PO.strip() for a1PO in YKHO.metadata[Bnkd]... | [
"0.74448603",
"0.66498095",
"0.6605175",
"0.6558199",
"0.65126705",
"0.64760506",
"0.63721097",
"0.61816096",
"0.6169908",
"0.61240345",
"0.61081046",
"0.6031312",
"0.5991757",
"0.59904355",
"0.59668946",
"0.59553325",
"0.5914091",
"0.59117484",
"0.591071",
"0.5827969",
"0.58... | 0.6878613 | 1 |
get the value of property _RpAddr | def MrYf(YKHO):
if YKHO.force_auto_sync:
YKHO.get('RpAddr')
return YKHO._RpAddr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Lh3g(YKHO):\n if YKHO.force_auto_sync:\n YKHO.get('RPAddress')\n return YKHO._RPAddress",
"def ceuN(YKHO):\n return YKHO.address",
"def Nn1n(YKHO):\n return YKHO.__address",
"def ceuN(YKHO):\n return YKHO.address",
"def UTX6(YKHO):\n return YKHO.__address",
"def UTX6(YKHO):\n... | [
"0.73999363",
"0.7119058",
"0.6887389",
"0.6865628",
"0.6810048",
"0.6810048",
"0.6778517",
"0.6778517",
"0.6778517",
"0.676618",
"0.6714804",
"0.6714804",
"0.6714804",
"0.670717",
"0.670717",
"0.670717",
"0.670717",
"0.669913",
"0.6692659",
"0.66892964",
"0.66719127",
"0.6... | 0.8163993 | 0 |
get the value of property _RpHoldTime | def nUYH(YKHO):
if YKHO.force_auto_sync:
YKHO.get('RpHoldTime')
return YKHO._RpHoldTime | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M8io(YKHO):\n return YKHO.__hold_time",
"def M8io(YKHO):\n return YKHO.__hold_time",
"def aIg4(YKHO):\n return YKHO.__lsp_holdtime",
"def kNWg(YKHO):\n return YKHO.__remaining_hold_time",
"def kNWg(YKHO):\n return YKHO.__remaining_hold_time",
"def xOZo(YKHO):\n return YKHO.rtime",
... | [
"0.7884846",
"0.7884846",
"0.7679251",
"0.7531963",
"0.7531963",
"0.6882698",
"0.6869808",
"0.6831531",
"0.67982846",
"0.6693802",
"0.6676501",
"0.6676501",
"0.65107495",
"0.650569",
"0.6505285",
"0.64785784",
"0.647847",
"0.6451723",
"0.642256",
"0.638191",
"0.6362928",
"0... | 0.8576983 | 0 |
verify if the reset password token is correct | def cqId(eOtH):
KCHu = p0CG(E4Up)
try:
uJjO = KCHu.loads(eOtH)['user_id']
except:
return None
return mv1M.query.get(uJjO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def u3Fe(YKHO):\n CBIr = mv1M.query.filter_by(username='project.member').first()\n eOtH = CBIr.get_reset_password_token()\n YKHO.assertTrue(CBIr.verify_reset_password_token(eOtH))",
"def AnU1(YKHO):\n sN2f = YKHO.userDb\n eOtH = QkJJ.createToken(YKHO.test_users['admin_email'], sN2f, 'password_rese... | [
"0.8112398",
"0.80054027",
"0.7842863",
"0.784074",
"0.7802952",
"0.7661658",
"0.7634902",
"0.76005936",
"0.7560945",
"0.7524348",
"0.75152785",
"0.7502206",
"0.74924505",
"0.7444118",
"0.74350077",
"0.74303335",
"0.74198383",
"0.7408343",
"0.73693675",
"0.7356026",
"0.733704... | 0.7150482 | 31 |
Returns an error, as YAML export requires a directory as a target. | def Zwuw(Emd4, nZhD: 'Journal'):
raise cwLQ(LuKW(BgN3.YamlMustBeDirectory, y897.ERROR)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gKOx():\n return SGPW('clowder.yaml') + ' appears to be missing'",
"def kMNK(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'render_yaml_to_directory')",
"def D4JP(YKHO, iNbl):\n GPtr = {'project_name': 'My Project', 'repo_name': 'my-project', 'python_package': 'my_project', 'output_dir':... | [
"0.6311878",
"0.6257279",
"0.6185466",
"0.6179358",
"0.6086177",
"0.6084545",
"0.5974948",
"0.5899299",
"0.5849039",
"0.5663687",
"0.56144553",
"0.5583683",
"0.55751884",
"0.55532086",
"0.55398166",
"0.5532857",
"0.55183923",
"0.5503819",
"0.5481234",
"0.54809797",
"0.5468688... | 0.6058916 | 6 |
Method that adds a new song to the rooms song list. | def pVNq(YKHO, GJPU):
YKHO.song_list.append(GJPU) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pVNq(YKHO, i34x):\n if i34x is not None:\n YKHO.songs.append(i34x)",
"def pVNq(YKHO, i34x, dQgj=None):\n Iq4Z = hQ_L(i34x, YKHO.tracks)\n if Iq4Z is None:\n Iq4Z = jwfB(i34x, YKHO.artist)\n if dQgj is None:\n YKHO.tracks.append(Iq4Z)\n else:\n YKHO.t... | [
"0.747902",
"0.71752167",
"0.71571875",
"0.71338356",
"0.69832456",
"0.69771534",
"0.68481576",
"0.6789522",
"0.6777596",
"0.67189676",
"0.6685153",
"0.6668908",
"0.6658942",
"0.66531587",
"0.66478837",
"0.66423804",
"0.65980655",
"0.6588399",
"0.6581219",
"0.657102",
"0.6558... | 0.78566724 | 0 |
Takes in the forward and reverse sequence and tries to match it up to an index. Returns the index (as an integer), 1 if no match is found | def KWAC(YKHO, JdKG, odY8):
Aofo = [None] * 2
hVvE = JdKG[0:5].seq
qXZT = odY8[0:5].seq
Aofo[0] = VY1Q(hVvE, YKHO.forward_indices)
Aofo[1] = VY1Q(qXZT, YKHO.reverse_indices)
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kS1Y(Q6uT, BWXx):\n for YRbF, WKvO in enumerate(Q6uT):\n if qQy2(WKvO, BWXx):\n return YRbF\n return -1",
"def qiX_(aWuw, U6D_):\n for YRbF, tTpl in enumerate(reversed(aWuw)):\n if U6D_ == tTpl:\n return len(aWuw) - 1 - YRbF\n else:\n raise ValueError('r... | [
"0.6617503",
"0.6581142",
"0.6557524",
"0.63896924",
"0.63720477",
"0.6308541",
"0.62914544",
"0.625839",
"0.62577355",
"0.618025",
"0.6174713",
"0.6172672",
"0.6163329",
"0.61543113",
"0.6154197",
"0.61307925",
"0.61194754",
"0.6112981",
"0.6105179",
"0.6097234",
"0.6094529"... | 0.65505034 | 3 |
A helper function to iterate through a list and find a target sequence Returns the index of the found sequence, or if not found 1 | def VY1Q(pan_, oMB_):
Aofo = -1
for YRbF, d6pt in enumerate(oMB_):
if pan_.find(d6pt) != -1:
Aofo = YRbF
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bn4h(pan_, list):\n for YRbF in range(len(list) - 1, -1, -1):\n if list[YRbF] == pan_:\n return YRbF\n return None",
"def TrX4(list: list, pan_: int) -> h8nf[int]:\n for YRbF in range(0, len(list)):\n if list[YRbF] == pan_:\n return YRbF\n return None",
"def ... | [
"0.8005328",
"0.78967756",
"0.7883405",
"0.7872084",
"0.78627783",
"0.78245306",
"0.7823855",
"0.76649016",
"0.75709456",
"0.75440294",
"0.74777704",
"0.7413579",
"0.7402221",
"0.73947823",
"0.7320735",
"0.7283466",
"0.7270531",
"0.72591907",
"0.7253963",
"0.72467554",
"0.717... | 0.7594775 | 8 |
create a dataframe of the 36 individual category columns | def o8c1(jQ3Z):
LeZt = jQ3Z['categories'].str.split(';', expand=True)
LeZt.reset_index(inplace=True)
LeZt = LeZt.drop('index', axis=1)
rdlD = LeZt[:1].transpose()[0]
bOKj = rdlD.apply(lambda WKvO: WKvO[:-2]).tolist()
LeZt.columns = bOKj
for iVRZ in LeZt:
LeZt[iVRZ] = LeZt[iVRZ].apply... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QuFz():\n jQ3Z = rLdf.DataFrame({'a': [1, 5, 2, 3, 3], 'b': ['w', 'w', 'z', 'y', 'x'], 'c': ['a', 'a', 'c', 'b', 'a']}, index=[10, 15, 200, 251, 59])\n jQ3Z['c'] = jQ3Z['c'].astype('category')\n return jQ3Z",
"def xLq2():\n jQ3Z = rLdf.DataFrame({'a': [4, 2, 2, 1, 3], 'b': ['x', 'z', 'y', 'x', 'x... | [
"0.75079334",
"0.73413026",
"0.7138679",
"0.7006177",
"0.69875026",
"0.6975424",
"0.6765703",
"0.67213",
"0.6575497",
"0.65675783",
"0.6508789",
"0.6497674",
"0.6492131",
"0.6453736",
"0.64251447",
"0.63996476",
"0.63955474",
"0.6366772",
"0.63594794",
"0.6356202",
"0.6246077... | 0.0 | -1 |
Adds 1 if even number and substracts 1 if odd number | def DwOh(YKHO, d6pt):
if d6pt % 2 == 0:
return d6pt + 1
else:
return d6pt - 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kYZq(WKvO):\n return WKvO % 2",
"def QyvM(_1qI):\n Ylbp = _1qI % 2 == 0\n if Ylbp:\n return 'Even'\n return 'Odd'",
"def O7cO(FGW3):\n return FGW3 + 1 if FGW3 % 2 == 0 else FGW3",
"def lMy_(BWXx):\n return BWXx % 2 == 1",
"def bdx0(kAne):\n Aofo = 0\n ewCu = 1\n while ... | [
"0.71839345",
"0.7057913",
"0.7016563",
"0.69887793",
"0.6981958",
"0.6907111",
"0.69018555",
"0.68826115",
"0.68410516",
"0.68408734",
"0.68364835",
"0.6826338",
"0.68245375",
"0.6822359",
"0.6817581",
"0.6815075",
"0.68109024",
"0.68051225",
"0.67901707",
"0.67755663",
"0.6... | 0.0 | -1 |
Takes image and returns magnitude | def UQfH(YKHO, GN36):
bo34.debug('Getting Magnitude for showing it')
lZgL = oyIN.fft.fftshift(YKHO.images[GN36].magnitude)
fWvc = 20 * oyIN.log(lZgL)
return fWvc | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YXbZ(LNo8):\n mS2J = XC5k.Sobel(LNo8, XC5k.CV_32F, 1, 0)\n YdmJ = XC5k.Sobel(LNo8, XC5k.CV_32F, 0, 1)\n FOSW = oyIN.sqrt(oyIN.power(mS2J, 2) + oyIN.power(YdmJ, 2))\n return FOSW",
"def _4_4(YKHO, VXjJ):\n knl1 = YKHO.s_magnitude_thresh\n qJtC = XC5k.cvtColor(VXjJ, XC5k.COLOR_BGR2HLS)\n Z... | [
"0.8471904",
"0.7304604",
"0.72741175",
"0.69440323",
"0.6759953",
"0.6747607",
"0.6723647",
"0.67127395",
"0.6700207",
"0.66922534",
"0.6679781",
"0.6673735",
"0.6633252",
"0.6612276",
"0.6593773",
"0.6576636",
"0.6576331",
"0.6533116",
"0.6528827",
"0.65161574",
"0.6506867"... | 0.68725455 | 4 |
Smart constructor for the metadata injector. It is smart, because it handles ``instance_type`` properly. It supports ``Instance`` and ``Union`` types. | def FIMM(YKHO, g2CK: MypyType, DEXX: MypyType, OaeV: MethodContext) -> None:
YKHO._associated_type = g2CK
YKHO._ctx = OaeV
YKHO._instance_types = dnxa(DEXX)
YKHO._added_types: x1iM[ec6H] = [] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def l4AV(YKHO, *qIxc, **B2fa):\n return YKHO.get_type()(*qIxc, **B2fa)",
"def M34g(e5kH: Metadata):\n Emd4 = CNDk(e5kH.type_name)\n return g8x2(e5kH.data, Emd4)",
"def fP9s(vOsx: typing.Type, vIwR: str) -> laHg.Any:\n ...",
"def fwuD(Emd4, *qIxc, **B2fa):\n if Emd4 is uY1f:\n raise Type... | [
"0.7003261",
"0.6599676",
"0.6439048",
"0.6372141",
"0.6360944",
"0.6088659",
"0.6036618",
"0.6002231",
"0.59964484",
"0.5987345",
"0.597971",
"0.59663266",
"0.5934739",
"0.5933902",
"0.5931807",
"0.59264517",
"0.59245384",
"0.59194547",
"0.5904641",
"0.59008265",
"0.58849645... | 0.5804302 | 27 |
Get direct access to the logs =================================== Returns any Logs of the instance. | def nfqd(YKHO) -> any:
return YKHO.__logs | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nfqd(YKHO):\n if YKHO._logs is None:\n bD7m = YKHO._url + '/logs'\n YKHO._logs = I0nW(url=bD7m, gis=YKHO._gis)\n return YKHO._logs",
"def nfqd(YKHO, wOb_=None):\n return YKHO.s_logs",
"def c8l_(YKHO):\n return YKHO.sync(YKHO._get_logs)",
"def XuUT(YKHO):\n return YKHO._reques... | [
"0.7904153",
"0.7847974",
"0.7788656",
"0.7745748",
"0.75967395",
"0.7435127",
"0.7432995",
"0.73909605",
"0.7246743",
"0.71926326",
"0.71734965",
"0.71306515",
"0.7054584",
"0.7054584",
"0.7034861",
"0.7028322",
"0.7014719",
"0.7004521",
"0.6988004",
"0.6953565",
"0.69490933... | 0.79516834 | 0 |
Get the finished state ====================== Returns str The finished state of the log entry. | def IXlb(YKHO) -> str:
return YKHO.__is_finished | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Pt1K(YKHO) -> str:\n return qe4Y.get(YKHO, 'finished')",
"def Pt1K(YKHO) -> str:\n return qe4Y.get(YKHO, 'finished')",
"def Pt1K(YKHO) -> str:\n return qe4Y.get(YKHO, 'finished')",
"def cfFy(YKHO):\n if YKHO.state == 'idle':\n return None\n elif YKHO.state == 'running':\n YKH... | [
"0.71355665",
"0.71355665",
"0.71355665",
"0.6982677",
"0.6796555",
"0.6546984",
"0.65434",
"0.63578093",
"0.63090587",
"0.6247883",
"0.6247883",
"0.6235722",
"0.62216735",
"0.6205421",
"0.6169471",
"0.6169471",
"0.6165424",
"0.61490047",
"0.6135239",
"0.6112369",
"0.6077018"... | 0.6560677 | 5 |
Displays statistics on the most frequent times of travel. | def dWJR(jQ3Z):
print('\nCalculating The Most Frequent Times of Travel...\n')
SWox = ITS7.time()
sve5 = AIgT[jQ3Z['Month'].mode()[0]].title()
print('{} is the most popular month'.format(sve5))
StUT = jQ3Z['Day_of_week'].mode()[0]
print('{} is the most popular day of the week'.format(StUT))
p... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dWJR(jQ3Z):\n print('\\nCalculating The Most Frequent Times of Travel...\\n')\n SWox = ITS7.time()\n print('The most common month of travel is: {} '.format(jQ3Z.Month.mode()[0]))\n print('The most common day of travel is: {} '.format(jQ3Z.Day.mode()[0]))\n print('The most common hour of travel i... | [
"0.79996175",
"0.7920857",
"0.7891767",
"0.78612196",
"0.785926",
"0.7838814",
"0.779974",
"0.77848285",
"0.7735119",
"0.7723049",
"0.771342",
"0.7708436",
"0.770453",
"0.77017164",
"0.7689714",
"0.7685842",
"0.7680146",
"0.76788265",
"0.76721054",
"0.7661351",
"0.7660023",
... | 0.7621012 | 33 |
Displays statistics on the most popular stations and trip. | def Huc_(jQ3Z):
print('\nCalculating The Most Popular Stations and Trip...\n')
SWox = ITS7.time()
_8rG = jQ3Z['Start Station'].mode()[0]
print('{} is the most popular start station'.format(_8rG))
oFx8 = jQ3Z['End Station'].mode()[0]
print('{} is the most popular end station'.format(oFx8))
jQ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations and Trip...\\n')\n SWox = ITS7.time()\n v6Be(jQ3Z)\n BeYU(jQ3Z)\n O6Ct(jQ3Z)\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)",
"def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations ... | [
"0.7665365",
"0.76264536",
"0.7610902",
"0.75852126",
"0.7576492",
"0.7567089",
"0.75577486",
"0.7538181",
"0.75294757",
"0.7502035",
"0.74997437",
"0.7496321",
"0.74872565",
"0.74840283",
"0.7475714",
"0.7472988",
"0.7437631",
"0.74366206",
"0.7433223",
"0.7428372",
"0.74269... | 0.73160547 | 48 |
Displays statistics on the total and average trip duration. | def kDMA(jQ3Z):
print('\nCalculating Trip Duration...\n')
SWox = ITS7.time()
print(jQ3Z['Trip Duration'].sum(axis=0))
bJiw = jQ3Z['Trip Duration'].sum(axis=0)
eFix = [bJiw, 0, 0, 0, 0]
N2tC = [60, 60, 24, 365]
for YRbF in range(len(eFix) - 1):
eFix[YRbF + 1] = eFix[YRbF] // N2tC[YRbF... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kDMA(dMlt):\n print('\\nCalculating Trip Duration...\\n')\n SWox = ITS7.time()\n qZ1g = dMlt['Trip Duration'].sum()\n print('The total travel time is ', qZ1g, ' seconds.')\n NPSF = dMlt['Trip Duration'].mean()\n print('The average travel time is ', NPSF, ' seconds.')\n print('\\nThis took ... | [
"0.8251978",
"0.81471264",
"0.80965656",
"0.80127156",
"0.7987783",
"0.79834235",
"0.7978646",
"0.79705906",
"0.7965226",
"0.79636025",
"0.79616374",
"0.79614663",
"0.79523134",
"0.7948989",
"0.79445267",
"0.7937707",
"0.7923821",
"0.792045",
"0.79198813",
"0.7918623",
"0.791... | 0.0 | -1 |
Set test result in internal dictionary. Updates UI. | def mK2m(YKHO, APmz, ZsSl, hlel, ZpyY, gBjs, vEqo=None, UpHd=None, yZCz=None, ALzj=None):
t6eX = False
if APmz not in YKHO.test_data:
YKHO.test_data[APmz] = {'id': APmz}
t6eX = True
if yZCz:
sqsH = ibdo.from_dict(yZCz).as_traceback()
yZCz = wVCK.extract_tb(sqsH)
hlel ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xJpF(YKHO, Aofo):\n YKHO.result = Aofo",
"def DGFA(Aofo):\n global TOTAL_TEST_PASSED\n global TOTAL_TEST_FAILED\n global TOTAL_TEST_WAIVED\n global TOTAL_TEST_COUNT\n global TOTAL_TEST_CYCLES\n if 'PASSED' in Aofo:\n FHk2 += 1\n elif 'FAILED' in Aofo:\n Vfiz += 1\n el... | [
"0.71721965",
"0.70032835",
"0.69553435",
"0.686865",
"0.6778934",
"0.6768639",
"0.6740866",
"0.67236626",
"0.66718125",
"0.65953755",
"0.65888923",
"0.6500247",
"0.6494354",
"0.6494354",
"0.6494354",
"0.6494354",
"0.6494354",
"0.64655536",
"0.643869",
"0.6422999",
"0.6408102... | 0.6939131 | 3 |
Decorator to enable fp16 training automatically. This decorator is useful when you write custom modules and want to support mixed precision training. If inputs arguments are fp32 tensors, they will be converted to fp16 automatically. Arguments other than fp32 tensors are ignored. | def qnwo(JlxD=None, BovB=False):
def QT91(M_m8):
@xBlr.wraps(M_m8)
def Ki7w(*qIxc, **B2fa):
if not isinstance(qIxc[0], ht2j.nn.Module):
raise TypeError('@auto_fp16 can only be used to decorate the method of nn.Module')
if not (hasattr(qIxc[0], 'fp16_enabled'... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qnwo(JlxD=None, BovB=False):\n\n def QT91(M_m8):\n\n @xBlr.wraps(M_m8)\n def Ki7w(*qIxc, **B2fa):\n if not isinstance(qIxc[0], ht2j.nn.Module):\n raise TypeError('@auto_fp16 can only be used to decorate the method of nn.Module')\n if not (hasattr(qIxc[0], '... | [
"0.77247846",
"0.75361955",
"0.710576",
"0.64303035",
"0.633665",
"0.6323001",
"0.6323001",
"0.6323001",
"0.6228534",
"0.6228534",
"0.6170057",
"0.61295724",
"0.6119307",
"0.6049888",
"0.60137546",
"0.5972313",
"0.5972313",
"0.596486",
"0.5935038",
"0.5868505",
"0.5857897",
... | 0.7622836 | 1 |
Returns the (weighted) negative loglikelihood loss between outputs and targets. Note that this does not compute a softmax, so you should input logprobabilities to this. See ``softmax_cross_entropy`` if you need your loss to compute a softmax. | def u3Vg(o4Jx, x6A0, *, _mSQ=None):
if isinstance(x6A0, llWB):
x6A0 = x6A0.data
Ji9R = (range(len(x6A0)), x6A0)
Llmz = _mSQ[x6A0] if _mSQ is not None else oyIN.ones_like(x6A0)
return -sum(o4Jx[Ji9R] * Llmz) / sum(Llmz) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jS9s(LVAh, UShr, yzQ0):\n KCHu = UShr.dot(yzQ0)\n vC9B = oyIN.log(1 + UShr.dot(yzQ0))\n for YRbF in range(len(LVAh)):\n if oyIN.isinf(vC9B[YRbF]):\n vC9B[YRbF] = KCHu[YRbF]\n for YRbF in range(len(LVAh)):\n if vC9B[YRbF] == 0:\n vC9B[YRbF] = oyIN.log(2) + KCHu[YR... | [
"0.7452148",
"0.7238985",
"0.7214931",
"0.7151526",
"0.713501",
"0.7131982",
"0.706514",
"0.70621395",
"0.7059832",
"0.69625056",
"0.69454324",
"0.6916246",
"0.6906446",
"0.69059026",
"0.6903561",
"0.6900662",
"0.6874702",
"0.6852616",
"0.6823547",
"0.6820257",
"0.6818175",
... | 0.8183786 | 0 |
Fixture for the list action class. | def _Jaa(QePW, TcAq):
rXQl = SfUO(TcAq)
qIxc = lakk()
qIxc.file = QePW.param
qIxc.search = False
rXQl.init(qIxc)
return (rXQl, QePW.param) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def v_nO(YKHO):\n pass",
"def Er9p(YKHO):\n pass",
"def v_nO(YKHO):\n geh0 = YKHO.client.get(gxEw(YKHO.urlprefix + '_list'))\n YKHO.assertEqual(geh0.status_code, 200)",
"def KWyg(YKHO):\n pass",
"def mvuv(YKHO):\n pass",
"def zKKk(YKHO):\n geh0 = YKHO.client.get(f'/{YKHO.root_url}/')... | [
"0.758769",
"0.7553835",
"0.75094134",
"0.7384095",
"0.7236318",
"0.70740676",
"0.703379",
"0.7001398",
"0.6956672",
"0.69357777",
"0.6923243",
"0.69121826",
"0.69060785",
"0.6874479",
"0.68470263",
"0.6818734",
"0.6764607",
"0.6731202",
"0.6725413",
"0.6690251",
"0.6672272",... | 0.0 | -1 |
Initialize the ship and set its start position. | def FIMM(YKHO, tJm0, Vjhr):
super(riCe, YKHO).__init__()
YKHO.screen = Vjhr
YKHO.ai_settings = tJm0
' Load all ship images and get its rect; load explosion frames. '
YKHO.image = a9eO.image.load('images/ship.png')
YKHO.explode_frames = ['images/shipex_1.png', 'images/shipex_2.png', 'images/shipe... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, Vjhr, iBLD, yKcO):\n super().__init__()\n YKHO.screen = Vjhr\n YKHO.image = a9eO.image.load('player/square_sprite.png')\n YKHO.rect = YKHO.image.get_rect()\n YKHO.speed = iBLD\n YKHO.rect.x = yKcO[0]\n YKHO.rect.y = yKcO[1]\n YKHO.x = float(YKHO.rect.x)\n YKHO.y = float(YK... | [
"0.72302324",
"0.70166045",
"0.6973555",
"0.6951173",
"0.6941406",
"0.6908548",
"0.6897607",
"0.68764865",
"0.6847966",
"0.6812477",
"0.68030113",
"0.677655",
"0.6757202",
"0.67110693",
"0.6699109",
"0.6697289",
"0.6696996",
"0.66824675",
"0.6668388",
"0.6663467",
"0.665522",... | 0.63303256 | 50 |
Create a layer norm initialised with W and B | def FIMM(YKHO, Mo6Q, ojMW=1, R9Vf=0, SGf8=1e-05, SIws=True):
super(e8yJ, YKHO).__init__()
YKHO.layer_norm = U78l.LayerNorm(Mo6Q, eps=SGf8, elementwise_affine=SIws)
YKHO.layer_norm.weight.data.mul_(ojMW)
YKHO.layer_norm.bias.data.add_(R9Vf) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vUJ3(Oa1e, input, Mo6Q, upAO, oug5, SGf8, fmUb):\n upAO.setDebugName('layernorm_weight')\n oug5.setDebugName('layernorm_bias')\n return Oa1e.op('mmdeploy::LayerNorm', input, upAO, oug5, affine_i=1, epsilon_f=SGf8)",
"def X4Bc(Oa1e, input, Mo6Q, upAO, oug5, SGf8, fmUb):\n upAO.setDebugName('layern... | [
"0.76165545",
"0.7230991",
"0.68287194",
"0.66882616",
"0.66845053",
"0.66616094",
"0.6634586",
"0.66321474",
"0.65759623",
"0.6569261",
"0.6551976",
"0.65334433",
"0.65238076",
"0.65238076",
"0.65208566",
"0.6516706",
"0.6502518",
"0.64571786",
"0.64565814",
"0.6440783",
"0.... | 0.731539 | 1 |
Embedding layer scaled by sqrt(d_model) | def FIMM(YKHO, Aw06, hfjP):
super(VJNT, YKHO).__init__()
YKHO.d_model = hfjP
YKHO.emb = U78l.Embedding(Aw06, hfjP) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M2aS(lhva, zk33, jXxl, cDNJ, XJsN=False):\n ZspY = DilS(jXxl, lhva, weights=[cDNJ], input_length=zk33, trainable=XJsN, name='embedding_layer')\n return ZspY",
"def FIMM(YKHO, CtWL, Agjb, KTQ3):\n super(nx2M, YKHO).__init__()\n CPLx = CtWL.pad_id\n YKHO.embed_size = Agjb\n YKHO.embedding = U... | [
"0.62470526",
"0.6242145",
"0.6033636",
"0.60290843",
"0.6011819",
"0.59997255",
"0.5983615",
"0.5940424",
"0.58650815",
"0.58622813",
"0.58617866",
"0.5833908",
"0.5820844",
"0.58108044",
"0.57632613",
"0.57619333",
"0.5761794",
"0.5752188",
"0.5739196",
"0.57258034",
"0.571... | 0.66537195 | 0 |
Retrieves a list of all translation groups. | def moMn(YKHO):
return list(YKHO._group_dict.values()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aSJg() -> x1iM[cQ68]:\n return BDu7(cQ68)",
"def aSJg(YKHO):\n return YKHO.conn.query(pMFV)",
"def MvIi():\n return u8YN()",
"def Xmem(YKHO):\n return map(YKHO.__getPUS().getGroupById, YKHO.__getPUS().getGroupNames())",
"def aSJg() -> list:\n XwLS = C4gk.getgrall()\n return [YRbF[0] f... | [
"0.76501155",
"0.75921404",
"0.757757",
"0.7545195",
"0.7464522",
"0.74008167",
"0.73228353",
"0.7314081",
"0.7312367",
"0.7216797",
"0.7178547",
"0.71205395",
"0.71131724",
"0.70445085",
"0.7034533",
"0.6996677",
"0.69729114",
"0.69611764",
"0.6958535",
"0.69267994",
"0.6919... | 0.6857815 | 22 |