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 |
|---|---|---|---|---|---|---|
Gets the event_id of this Attribution. GUID to uniquely identify each event | def RQ6U(YKHO):
return YKHO._event_id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mLJR(YKHO):\n return _VfD.Event_getId(YKHO)",
"def yq5_(YKHO):\n return YKHO._event_identifier",
"def mLJR(YKHO):\n return _VfD.EventAssignment_getId(YKHO)",
"def id(YKHO) -> str:\n return YKHO._event.get('id')",
"def NOpA(YKHO):\n return 'event' + str(YKHO.id) + '@lnldb'",
"def W2tI(Y... | [
"0.77004075",
"0.76828027",
"0.7511514",
"0.74941957",
"0.7071278",
"0.6813898",
"0.6697985",
"0.6444107",
"0.64217263",
"0.6399615",
"0.6384235",
"0.6384235",
"0.6371262",
"0.63559645",
"0.6347287",
"0.6342093",
"0.63406646",
"0.6321136",
"0.63204116",
"0.6229724",
"0.622857... | 0.8119689 | 0 |
Sets the event_id of this Attribution. GUID to uniquely identify each event | def RQ6U(YKHO, RQ6U):
YKHO._event_id = RQ6U | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W2tI(YKHO, *qIxc):\n return _VfD.Event_setId(YKHO, *qIxc)",
"def TGQe(YKHO, r8tW):\n YKHO._event_identifier = r8tW",
"def SZuP(YKHO, SZuP):\n YKHO._event_crf_id = SZuP",
"def o4VC(YKHO, o4VC):\n YKHO._event_definition_id = o4VC",
"def RQ6U(YKHO):\n return YKHO._event_id",
"def b79H(YKH... | [
"0.7068648",
"0.67250323",
"0.66972053",
"0.6560106",
"0.6389217",
"0.6336854",
"0.61236817",
"0.6019163",
"0.5936472",
"0.59036267",
"0.5859706",
"0.5856476",
"0.5856476",
"0.5856476",
"0.5842595",
"0.5821639",
"0.58029324",
"0.5765438",
"0.57652056",
"0.574449",
"0.57441795... | 0.7941723 | 1 |
Gets the event_time of this Attribution. ISO 8601 timestamp when the event occurred | def r04X(YKHO):
return YKHO._event_time | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dT5f(YKHO) -> oH5k:\n return YKHO._event_date_time",
"def E3oo(YKHO) -> str:\n return YKHO._event.get('timestamp')",
"def VRN8(YKHO) -> str:\n return qe4Y.get(YKHO, 'last_event_time')",
"def Rg2G(YKHO):\n return YKHO.event_time",
"def cpro(YKHO):\n return YKHO._lastEventTime",
"def B7g... | [
"0.7529133",
"0.72693354",
"0.7199172",
"0.70013565",
"0.6959468",
"0.6944804",
"0.67671174",
"0.67251986",
"0.67251986",
"0.67251986",
"0.66964906",
"0.66337264",
"0.6510721",
"0.6501532",
"0.64707214",
"0.6462208",
"0.64168555",
"0.6405904",
"0.6405904",
"0.6405904",
"0.640... | 0.8027861 | 0 |
Gets the user of this Attribution. The user associated with the event | def CBIr(YKHO):
return YKHO._user | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CBIr(YKHO):\n P6bq = YKHO.user_info\n return YKHO.user_model.get_by_id(P6bq['user_id']) if P6bq else None",
"def TKWP(YKHO):\n return YKHO.user",
"def TKWP(YKHO):\n return YKHO.user",
"def TKWP(YKHO) -> mv1M:\n return YKHO.__user",
"def QSYG(YKHO):\n if YKHO.actor:\n return mv1... | [
"0.7216755",
"0.7169481",
"0.7169481",
"0.71501154",
"0.7004865",
"0.6934103",
"0.6867186",
"0.6866157",
"0.68658614",
"0.6829461",
"0.68294305",
"0.6811171",
"0.6770305",
"0.6761709",
"0.67599905",
"0.67593116",
"0.6756824",
"0.6694954",
"0.66812027",
"0.66464436",
"0.662352... | 0.6916587 | 8 |
Sets the user of this Attribution. The user associated with the event | def CBIr(YKHO, CBIr):
YKHO._user = CBIr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lT6e(YKHO, CBIr):\n YKHO.user = CBIr",
"def lT6e(YKHO, CBIr: User):\n YKHO.__user = CBIr",
"def lT6e(YKHO, CBIr):\n YKHO._user = CBIr",
"def CBIr(YKHO, CBIr):\n YKHO.user_id = CBIr.get_id()",
"def Ysrw(YKHO, Ysrw):\n YKHO._assigned_user = Ysrw",
"def uJjO(YKHO, uJjO):\n YKHO._user_i... | [
"0.7030192",
"0.7005123",
"0.6912455",
"0.6765181",
"0.6620565",
"0.6417723",
"0.6417723",
"0.6417723",
"0.6417723",
"0.6417723",
"0.6417723",
"0.6417723",
"0.6417723",
"0.6417723",
"0.6417723",
"0.6417723",
"0.6417723",
"0.6417723",
"0.6417723",
"0.6294006",
"0.6261342",
"... | 0.6838391 | 8 |
Sets the ip_address of this Attribution. The apparent IP address that the request was made from for the given event | def I33c(YKHO, I33c):
YKHO._ip_address = I33c | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HSdK(YKHO, I33c):\n YKHO._validator.validate_one('address', iyhn['address'], I33c)\n YKHO._ifAttributes['address'] = I33c",
"def RotX(YKHO, O7Lj) -> None:\n YKHO._ip = O7Lj",
"def D8Ke(YKHO, D8Ke):\n YKHO._ip = D8Ke",
"def D8Ke(YKHO, D8Ke):\n YKHO._ip = D8Ke",
"def D8Ke(YKHO, D8Ke):\n ... | [
"0.7258864",
"0.68725204",
"0.68331087",
"0.68331087",
"0.67893726",
"0.6680411",
"0.66675705",
"0.6384599",
"0.6258523",
"0.62479717",
"0.62407273",
"0.6240719",
"0.621986",
"0.62012976",
"0.60623646",
"0.60530937",
"0.59758955",
"0.5939559",
"0.5916013",
"0.59113735",
"0.58... | 0.74992436 | 2 |
Gets the alert_id of this Attribution. Associated Alert ID | def Q4Jn(YKHO):
return YKHO._alert_id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mLJR(YKHO):\n return _VfD.EventAssignment_getId(YKHO)",
"def id(YKHO):\n return YKHO.inspection['Id']",
"def unpH(YKHO):\n return YKHO.email",
"def unpH(YKHO):\n return YKHO.email",
"def id(YKHO) -> str:\n return YKHO._event.get('id')",
"def pk9b(YKHO):\n if not YKHO.has_assessment(... | [
"0.63383514",
"0.63126326",
"0.6082412",
"0.6082412",
"0.60770553",
"0.60588175",
"0.59976983",
"0.5992398",
"0.5992398",
"0.5992398",
"0.5992398",
"0.5992398",
"0.5992398",
"0.59288496",
"0.5916768",
"0.59153205",
"0.5908431",
"0.5908431",
"0.5908431",
"0.5908431",
"0.590843... | 0.8299062 | 0 |
Sets the alert_id of this Attribution. Associated Alert ID | def Q4Jn(YKHO, Q4Jn):
YKHO._alert_id = Q4Jn | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q4Jn(YKHO):\n return YKHO._alert_id",
"def XmU6(YKHO, XmU6):\n YKHO._attachment_id = XmU6",
"def _D7V(YKHO, _D7V):\n YKHO._attempt_id = _D7V",
"def _D7V(YKHO, _D7V):\n YKHO._attempt_id = _D7V",
"def N2WC(YKHO, N2WC):\n YKHO._alert = N2WC",
"def W2tI(YKHO, Ilxn):\n YKHO.identifier = ... | [
"0.6610224",
"0.59652615",
"0.58800614",
"0.58800614",
"0.5809505",
"0.5676793",
"0.5645119",
"0.5631877",
"0.5626034",
"0.559369",
"0.55558264",
"0.5502545",
"0.5462181",
"0.5452894",
"0.5452894",
"0.5452894",
"0.5452894",
"0.5452894",
"0.5452894",
"0.5452894",
"0.5452894",
... | 0.8049972 | 0 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, cxMi):
return False
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8088132",
"0.8088132",
"0.8054589",
"0.7982687",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
... | 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 if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748"
] | 0.0 | -1 |
Get the Twitch info for a particular user or channel. Defaults to the stream channel if not otherwise specified. | def TkgW(NtEF=None, dI18=True):
if NtEF is None:
NtEF = GPtr['channel']
n10L = TKWP(name=NtEF).id
MOPg = {'Client-ID': GPtr['twitch_clientid'], 'Authorization': f'Bearer {gNTt()}'}
Ylbp = BJsk.http.request('https://api.twitch.tv/helix/users', {'id': n10L}, headers=MOPg)
gFsc = qQXR.loads(Ylb... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def info(YKHO, OaeV, CBIr: str=None):\n keIl = ZOrr.utils.get(OaeV.message.server.members, id='186835826699665409')\n Ol8d = []\n Ol8d.append('```\\n')\n if YKHO.check_channel(OaeV):\n if YKHO.check_permission(OaeV) or OaeV.message.author == keIl:\n if CBIr:\n for... | [
"0.64792573",
"0.62760013",
"0.5989475",
"0.59008175",
"0.5709102",
"0.560341",
"0.5509573",
"0.54999375",
"0.5498269",
"0.5495266",
"0.54732907",
"0.5462964",
"0.5427126",
"0.54095864",
"0.54093236",
"0.5400716",
"0.53884894",
"0.5356492",
"0.5354375",
"0.5305137",
"0.527446... | 0.68907434 | 0 |
Compose the provided transformation matrices in order, returning a composite transformation. | def kZey(*Ymkf):
from functools import reduce
for SZFh in Ymkf:
N6QS.shape.check(locals(), 'transform', (4, 4))
if len(Ymkf) == 0:
return oyIN.eye(4)
return reduce(oyIN.dot, reversed(Ymkf)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def capf(Ymkf):\n rCS0 = [CeQg.build(a1PO) for a1PO in Ymkf]\n return _7Zj.Compose(rCS0)",
"def capf(Ymkf):\n assert isinstance(Ymkf, list)\n for SZFh in Ymkf:\n assert callable(SZFh), 'list of functions expected'\n\n def pDQF(YEnM):\n \"\"\"Composite function\"\"\"\n for SZFh... | [
"0.73806477",
"0.71900684",
"0.6566757",
"0.6342436",
"0.61065394",
"0.6098832",
"0.60898703",
"0.6055403",
"0.6051105",
"0.60494065",
"0.604814",
"0.60217744",
"0.5964446",
"0.5948745",
"0.5942753",
"0.5905177",
"0.58977467",
"0.5817636",
"0.57891387",
"0.57806534",
"0.57730... | 0.73181283 | 1 |
Return the localized time, or nothing if invalid | def Z66_(YKHO):
y6Fc = YKHO._post['effective_date']
wSVv = YKHO.context.toLocalizedTime
try:
ygE6 = wSVv(y6Fc)
except ValueError:
ygE6 = None
return ygE6 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zTPd(YKHO) -> str:\n return qe4Y.get(YKHO, 'validate_time')",
"def tGHF(YKHO, ITS7, bEov=None, WNQB=None):\n gnPz = OZpC(YKHO.context, 'translation_service')\n try:\n return gnPz.ulocalized_time(ITS7, bEov, WNQB, YKHO.context, domain='plonelocales')\n except TypeError:\n return gnPz... | [
"0.69932646",
"0.686161",
"0.6364891",
"0.6304964",
"0.6298384",
"0.6298384",
"0.6298384",
"0.6298384",
"0.6298384",
"0.6298384",
"0.626718",
"0.621727",
"0.6215109",
"0.6203647",
"0.6118992",
"0.61127424",
"0.60898465",
"0.6072921",
"0.60623085",
"0.59981835",
"0.59967357",
... | 0.0 | -1 |
Pass an input through a threebythree convolution filter and test the shape and contents of the output. | def K_n8(YKHO):
Diq_ = lambda KCHu: oQ5W.array([[[[1.0, 2.0, 1.0], [1.0, 2.0, 1.0], [1.0, 1.0, 1.0]]]]).transpose((2, 3, 0, 1))
yIp6 = u1M2.nn.ConvTranspose2D(1, 1, 3, padding=u1M2.ConvPadding.VALID, w_init=Diq_)
WKvO = oQ5W.array([[[[2.0, 1.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0], [9.0, 10.0, 11.0, 12.0], [13.0... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nkKt():\n gqcO = [3, 3, 4, 5, 3]\n ZA7G = [3, 1, 4, 4, 3]\n anIg(gqcO, ZA7G, 'Default test')\n gqcO = [1, 1, 1, 1, 1]\n ZA7G = [1, 1, 1, 1, 1]\n anIg(gqcO, ZA7G, 'Input and filter dimensions 1')\n gqcO = [3, 3, 4, 5, 3]\n ZA7G = [3, 3, 4, 5, 3]\n anIg(gqcO, ZA7G, 'Filter dimension = ... | [
"0.678101",
"0.64619225",
"0.6242446",
"0.6242446",
"0.6181452",
"0.61808455",
"0.61766505",
"0.6173934",
"0.61676973",
"0.61676973",
"0.61676973",
"0.61676973",
"0.61676973",
"0.61676973",
"0.61676973",
"0.6141687",
"0.61410797",
"0.6138883",
"0.6131771",
"0.6126494",
"0.612... | 0.59722865 | 76 |
Extracts words and their lemmas from the corpus. | def cZtA(oJIE):
FMMh = {}
for tk5Y in sFzx(oJIE):
for eOtH in tk5Y.iter('token'):
GIN8, dhx_ = obxP(eOtH)
if GIN8 and (not GIN8.isnumeric()):
FMMh[GIN8] = dhx_
return FMMh | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def paQW(rrSk):\n l5Ny = ZbWC.findall('[a-zA-Z]+', rrSk)\n V22M = [yzQ0.lower() for yzQ0 in l5Ny]\n dhx_ = Dhdw.WordNetLemmatizer()\n xCIG = [dhx_.lemmatize(yzQ0) for yzQ0 in V22M]\n nb0Z = Dhdw.pos_tag(xCIG)\n wB6u = []\n Y5bi = ['CC', 'DT', 'EX', 'IN', 'MD', 'PDT', 'POS', 'PRP', 'PRP$', 'TO'... | [
"0.6910894",
"0.68065524",
"0.6792465",
"0.67138964",
"0.66734856",
"0.66567886",
"0.6621307",
"0.66190684",
"0.6597121",
"0.655869",
"0.65532476",
"0.6508994",
"0.6508994",
"0.6479011",
"0.6464221",
"0.6399497",
"0.6386498",
"0.6382979",
"0.63828194",
"0.6361518",
"0.6361512... | 0.6672167 | 5 |
Separate a flat dataset of time steps to a list of episodes. | def qMjI(YKHO, gcn0):
nPrm = []
Q9sL = 0
for a1PO in range(len(gcn0['observations'])):
if gcn0['terminals'][a1PO]:
xgXB = {G1Hx: Ty9i[Q9sL:a1PO + 1] for G1Hx, Ty9i in gcn0.items()}
nPrm.append(xgXB)
Q9sL = a1PO + 1
return nPrm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KULu(YKHO):\n KULu = []\n for dy_H in YKHO.series:\n KULu.extend(dy_H.episodes)\n return KULu",
"def KULu(YKHO):\n KULu = []\n for qqDt in YKHO.seasons:\n KULu.extend(qqDt.episodes)\n return KULu",
"def Y_QY(l28y):\n UlCL = []\n for OZkM in l28y:\n _Jrn, XeOP, v... | [
"0.657431",
"0.64853466",
"0.63298506",
"0.6071691",
"0.59168565",
"0.58543926",
"0.5831672",
"0.5701764",
"0.5674798",
"0.56689787",
"0.5657489",
"0.5622203",
"0.56060827",
"0.5596751",
"0.5583964",
"0.5571093",
"0.5529942",
"0.5525338",
"0.55217355",
"0.5514149",
"0.5512705... | 0.74146885 | 0 |
Returns all terminal nodes. | def K3B_(YRbF, Q6kx):
aPd6 = []
if len(Q6kx.kids) > 1:
for vC9B in Q6kx.kids:
aPd6.extend(YRbF.leaves(vC9B))
return aPd6
elif len(Q6kx.kids) == 1:
return [Q6kx.kids]
else:
return [Q6kx] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qmh8(YKHO):\n return YKHO._get_all_nodes()",
"def jjsj(YKHO):\n igWq, BBC2 = oyIN.unique(YKHO.edges, return_counts=True)\n return igWq[BBC2 == 1]",
"def jjsj(YKHO):\n return YKHO._terminals.getSlice(0)",
"def jjsj(YKHO):\n return YKHO._terminals.getSlice(0)",
"def CDNe(YKHO):\n return... | [
"0.75336266",
"0.74372244",
"0.742549",
"0.742549",
"0.7239457",
"0.72101",
"0.71568227",
"0.70714515",
"0.7042101",
"0.69990045",
"0.69684607",
"0.6923247",
"0.6828183",
"0.66984993",
"0.6691665",
"0.66913104",
"0.66913104",
"0.6690032",
"0.66363406",
"0.6634267",
"0.6627518... | 0.0 | -1 |
Set CLI author in the CLI Context. The key of the new field is 'cli_author'. | def NAEm(Pvb5) -> None:
GPtr = UwV9()
qHs9 = GPtr.get(Liqb, None)
if qHs9 is None:
raise k8wH.ClickException('The AEA configurations are not initialized. Use `aea init` before continuing.')
Pvb5.obj.set_config('cli_author', qHs9) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def taDc(YKHO, BWXx):\n YKHO._set_attr('author', BWXx)",
"def Llkb(YKHO, BWXx):\n YKHO.PDFreactorConfiguration.in1['author'] = BWXx",
"def _giq(YKHO, taDc):\n YKHO.author = taDc\n YKHO.opf.author = taDc",
"def _giq(YKHO, taDc):\n YKHO.author = taDc",
"def taDc(YKHO, taDc: str):\n YKHO._au... | [
"0.712172",
"0.7076811",
"0.6991613",
"0.69884944",
"0.68343216",
"0.67940974",
"0.67659265",
"0.6738169",
"0.6679922",
"0.6679922",
"0.62304395",
"0.62190485",
"0.6212343",
"0.61998147",
"0.6173643",
"0.6171375",
"0.611324",
"0.60772645",
"0.60772645",
"0.6057968",
"0.592746... | 0.85001713 | 0 |
Return length of states list | def szAg(YKHO):
return len(YKHO.options) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def szAg(YKHO):\n YRbF = 0\n for o4sw in YKHO.states():\n YRbF += 1\n return YRbF",
"def FJYB(YKHO):\n return YKHO.n_states",
"def FJYB(YKHO):\n return YKHO.N_STATES",
"def td3t(YKHO):\n return len(YKHO._mdp.S)",
"def bT6U(YKHO):\n Rbp2 = []\n for YRbF in YKHO.state:\n ... | [
"0.8193628",
"0.81141925",
"0.80802536",
"0.7944157",
"0.7864454",
"0.7861285",
"0.7761785",
"0.77465904",
"0.74858767",
"0.72150254",
"0.71209484",
"0.6875175",
"0.68583554",
"0.6808448",
"0.6749535",
"0.66946477",
"0.6686226",
"0.6686226",
"0.65728915",
"0.6552234",
"0.6537... | 0.0 | -1 |
List of states in pending order, beginning with the current. | def gGq6(YKHO):
wOmD = YKHO.options[YKHO.idx:]
if YKHO.can_recycle():
wOmD += YKHO.options[:YKHO.idx]
return wOmD | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OMAa(YKHO) -> bdIy[Mj14]:\n pass",
"def BKVD(YKHO):\n return YKHO._states[1:]",
"def qYvF(YKHO):\n return YKHO.states",
"def BKVD(YKHO):\n return YKHO.get_next_states()",
"def By99(YKHO):\n return [LihS.getstate() for LihS in YKHO]",
"def lYEV(YKHO):\n return YKHO.__next_state",
"... | [
"0.75240695",
"0.71911144",
"0.7146012",
"0.70548993",
"0.7038693",
"0.6924317",
"0.6877204",
"0.6855313",
"0.6762768",
"0.67319113",
"0.6710305",
"0.66933197",
"0.6685741",
"0.66844004",
"0.66769594",
"0.6664634",
"0.66143936",
"0.6606134",
"0.66033614",
"0.657269",
"0.65476... | 0.0 | -1 |
Tests we can create an AVP with a code and it defaults to the defaults vendor. | def bUry(YKHO):
YKHO._compare_avp(rB4G.AVP(1, 'Hello'), rB4G.UTF8StringAVP(1, value='Hello', vendor=rB4G.VendorId.DEFAULT, flags=rB4G.FLAG_MANDATORY, name='User-Name'))
YKHO._compare_avp(rB4G.AVP(3735925567, b'wut'), rB4G.UnknownAVP(3735925567, value=b'wut', vendor=rB4G.VendorId.DEFAULT, flags=0, name='Unknown-... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UhKA(YKHO):\n with YKHO.assertRaises(f1tq):\n ndk1 = rB4G.UnknownAVP(0, b'', flags=rB4G.FLAG_VENDOR, vendor=rB4G.VendorId.DEFAULT)\n mID5 = bytearray(ndk1.length)\n ndk1.encode(mID5, 0)\n ndk1 = rB4G.UnknownAVP(0, b'', flags=rB4G.FLAG_VENDOR, vendor=1)\n mID5 = bytearray(ndk1.leng... | [
"0.7274774",
"0.66196334",
"0.6594534",
"0.59081936",
"0.57923865",
"0.56568724",
"0.56208634",
"0.54114044",
"0.54112875",
"0.5234036",
"0.5216577",
"0.5200915",
"0.51545334",
"0.51375127",
"0.5137086",
"0.51328814",
"0.5118563",
"0.5108796",
"0.5078042",
"0.5071875",
"0.505... | 0.51701176 | 12 |
Tests we can create an AVP with a code and it defaults to the defaults vendor. | def atUD(YKHO):
YKHO._compare_avp(rB4G.AVP('User-Name', 'Hello'), rB4G.UTF8StringAVP(1, value='Hello', vendor=rB4G.VendorId.DEFAULT, flags=rB4G.FLAG_MANDATORY, name='User-Name'))
with YKHO.assertRaises(ValueError):
rB4G.AVP('Wut', 'error') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UhKA(YKHO):\n with YKHO.assertRaises(f1tq):\n ndk1 = rB4G.UnknownAVP(0, b'', flags=rB4G.FLAG_VENDOR, vendor=rB4G.VendorId.DEFAULT)\n mID5 = bytearray(ndk1.length)\n ndk1.encode(mID5, 0)\n ndk1 = rB4G.UnknownAVP(0, b'', flags=rB4G.FLAG_VENDOR, vendor=1)\n mID5 = bytearray(ndk1.leng... | [
"0.7276532",
"0.66199905",
"0.6594409",
"0.59077823",
"0.5792158",
"0.56572336",
"0.56215614",
"0.54126716",
"0.5410418",
"0.52328616",
"0.52149737",
"0.52010345",
"0.5170627",
"0.513799",
"0.5136871",
"0.5132713",
"0.51185805",
"0.51092434",
"0.50762635",
"0.5070641",
"0.505... | 0.51554304 | 13 |
Tests we can create an AVP with a code and it defaults to the defaults vendor. | def itWt(YKHO):
OaPu = rB4G.AVP('Result-Code', rB4G.ResultCode.DIAMETER_SUCCESS)
YKHO.assertEqual(OaPu.value, rB4G.ResultCode.DIAMETER_SUCCESS)
YKHO._compare_avp(rB4G.AVP('Result-Code', rB4G.ResultCode.DIAMETER_SUCCESS), rB4G.ResultCodeAVP(268, 2001, vendor=rB4G.VendorId.DEFAULT, flags=rB4G.FLAG_MANDATORY, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UhKA(YKHO):\n with YKHO.assertRaises(f1tq):\n ndk1 = rB4G.UnknownAVP(0, b'', flags=rB4G.FLAG_VENDOR, vendor=rB4G.VendorId.DEFAULT)\n mID5 = bytearray(ndk1.length)\n ndk1.encode(mID5, 0)\n ndk1 = rB4G.UnknownAVP(0, b'', flags=rB4G.FLAG_VENDOR, vendor=1)\n mID5 = bytearray(ndk1.leng... | [
"0.72757536",
"0.6619766",
"0.65940857",
"0.5908258",
"0.57922417",
"0.5621205",
"0.5412011",
"0.5410173",
"0.5233202",
"0.5214631",
"0.5200039",
"0.5170654",
"0.5154851",
"0.5137301",
"0.5136124",
"0.5132803",
"0.5119158",
"0.5108666",
"0.50768244",
"0.5071064",
"0.50540316"... | 0.565635 | 5 |
Reads the MOPAC version string from the second line | def btkI(YKHO, IznC):
DpZH = 'unknown'
Nqlg = open(IznC).readlines()
for zFiD in Nqlg:
if ' Version' in zFiD:
DpZH = zFiD.split()[-2]
break
return DpZH | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vlGe():\n with open('RELEASE-VERSION', 'r') as eHNT:\n return eHNT.readline().strip()",
"def IKYb(TFhu):\n if len(TFhu) != 2:\n raise oSJR()\n VsNR = TFhu[0:2]\n return VsNR",
"def NAfC():\n KLft = Hy7s.environ['XUVTOP']\n TQfA = Hy7s.path.join(KLft, 'VERSION')\n lbRy = o... | [
"0.6760917",
"0.6625684",
"0.6598049",
"0.64503145",
"0.63550556",
"0.6235125",
"0.6222216",
"0.61286664",
"0.60776657",
"0.607554",
"0.60538125",
"0.6048213",
"0.6016605",
"0.6015268",
"0.59854823",
"0.5936133",
"0.5867915",
"0.586289",
"0.58473486",
"0.5829188",
"0.582756",... | 0.67716914 | 0 |
Return the index of the smallest element in the subarray. This is slower than simple_index_of_min because it is O(n) + O(how long deck.index takes) as opposed to O(n). | def aSYq(nf_0, qR8Z):
return nf_0.index(oyIN.min(nf_0[qR8Z:])) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lPYJ(nf_0, qR8Z):\n kpLf = nf_0[qR8Z]\n fciZ = qR8Z\n for YRbF in range(qR8Z + 1, len(nf_0)):\n if kpLf > nf_0[YRbF]:\n kpLf = nf_0[YRbF]\n fciZ = YRbF\n return fciZ",
"def jl2H(ezWE: Sequence) -> int:\n print(ezWE)\n ZSml = None\n VMHH = ezWE[0]\n for YRb... | [
"0.7571985",
"0.6844863",
"0.6593771",
"0.65777516",
"0.6504302",
"0.64333266",
"0.6399011",
"0.6368425",
"0.63648915",
"0.62642",
"0.62608546",
"0.62533414",
"0.62530565",
"0.621581",
"0.6213222",
"0.62116987",
"0.61197275",
"0.60829943",
"0.60827935",
"0.60639256",
"0.60607... | 0.79753035 | 0 |
Return the index of the smallest element in the subarray. | def lPYJ(nf_0, qR8Z):
kpLf = nf_0[qR8Z]
fciZ = qR8Z
for YRbF in range(qR8Z + 1, len(nf_0)):
if kpLf > nf_0[YRbF]:
kpLf = nf_0[YRbF]
fciZ = YRbF
return fciZ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jl2H(ezWE: Sequence) -> int:\n print(ezWE)\n ZSml = None\n VMHH = ezWE[0]\n for YRbF in range(1, len(ezWE)):\n if VMHH > ezWE[YRbF]:\n VMHH = ezWE[YRbF]\n ZSml = YRbF\n return ZSml",
"def min(YKHO):\n jzdc = YKHO.array_form\n min = len(jzdc)\n for YRbF in ... | [
"0.7663508",
"0.703998",
"0.70295393",
"0.69781405",
"0.6952867",
"0.69331414",
"0.6905875",
"0.69054496",
"0.68542624",
"0.68064356",
"0.6773403",
"0.6716843",
"0.66870177",
"0.6643967",
"0.66367596",
"0.6633392",
"0.6600657",
"0.65984774",
"0.6545687",
"0.6539135",
"0.65072... | 0.6523238 | 20 |
Return all matched platforms available | def Ly17(YKHO, a9EH):
raise NotImplemented | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kNho():\n return i3kb",
"def pHhO(YKHO):\n if YKHO.platform == 'All':\n return aprE\n else:\n return YKHO.platform.split(':')",
"def i3kb(YKHO) -> ImMB:\n return epIG('platforms')",
"def i3kb(YKHO):\n bo34.debug('Get platforms')\n return YKHO._raw_api.platforms.get()",
"... | [
"0.84017766",
"0.8085135",
"0.79573643",
"0.79467857",
"0.76988477",
"0.7620065",
"0.7570432",
"0.7530073",
"0.7499143",
"0.7158513",
"0.7156467",
"0.7073225",
"0.6983765",
"0.69668716",
"0.6952299",
"0.6806815",
"0.6774965",
"0.6767344",
"0.66853994",
"0.66564685",
"0.663886... | 0.82357883 | 1 |
Find all matched platforms available | def F8Xc(YKHO, S6do):
if S6do == uwaB.ANY:
wo28 = {}
for a9EH in YKHO.platforms.keys():
wo28.update(YKHO._filter_platforms_by_platform_type(a9EH))
return wo28
if S6do in YKHO.platforms.keys():
return YKHO.platforms[S6do]
return {} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ly17(YKHO, a9EH):\n raise NotImplemented",
"def kNho():\n return i3kb",
"def pHhO(YKHO):\n if YKHO.platform == 'All':\n return aprE\n else:\n return YKHO.platform.split(':')",
"def i3kb(YKHO) -> ImMB:\n return epIG('platforms')",
"def QwNr(PJWX=True):\n import simtk.open... | [
"0.80669224",
"0.7809959",
"0.76512045",
"0.73917407",
"0.73068094",
"0.728991",
"0.7185548",
"0.7117814",
"0.70288604",
"0.7024093",
"0.6987453",
"0.6859193",
"0.68563765",
"0.6770957",
"0.66680574",
"0.6592716",
"0.6524757",
"0.64757717",
"0.64398515",
"0.63725156",
"0.6364... | 0.671745 | 14 |
This function prints and plots the confusion matrix. Normalization can be applied by setting `normalize=True`. | def LwSz(Bcwd, ZGE9, KndY, NkkI=False, leAC='Confusion matrix', iMGt=QrM1.cm.Blues):
QrM1.imshow(Bcwd, interpolation='nearest', cmap=iMGt)
QrM1.title(leAC)
QrM1.colorbar()
wIWT = oyIN.arange(len(KndY))
QrM1.xticks(wIWT, KndY, rotation=45)
QrM1.yticks(wIWT, KndY)
if NkkI:
Bcwd = Bcwd.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LwSz(Bcwd, KndY=[0, 1], NkkI=False, leAC='Confusion matrix', RMso=False):\n if NkkI:\n Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]\n print('Normalized confusion matrix')\n else:\n print('Confusion matrix, without normalization')\n if RMso:\n print(Bcwd)"... | [
"0.8192804",
"0.8094402",
"0.80277497",
"0.80176693",
"0.7992383",
"0.7989708",
"0.7979215",
"0.79741204",
"0.7959607",
"0.7955097",
"0.79358983",
"0.79329205",
"0.7932711",
"0.79295874",
"0.79247147",
"0.79228914",
"0.792216",
"0.79215133",
"0.7921201",
"0.7920765",
"0.79161... | 0.0 | -1 |
take a 2D list with the same height and width and make a copy | def mEcU(HU2v):
zzuG = []
for YRbF in range(len(HU2v)):
zzuG.append([])
for r845 in range(len(HU2v)):
zzuG[YRbF].append(HU2v[YRbF][r845])
return zzuG | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jth9(jzdc):\n H2v2 = len(jzdc)\n TVTK = len(jzdc[0])\n Y41O = efGj(TVTK, H2v2)\n for rdlD in range(1, H2v2 - 1):\n for fvDH in range(1, TVTK - 1):\n Y41O[rdlD][fvDH] = jzdc[rdlD][fvDH]\n return Y41O",
"def HR94(Cs6h):\n P5uO = []\n P5uO = Lm0U(P5uO)\n for YRbF in ran... | [
"0.7298503",
"0.7204203",
"0.71576315",
"0.6981399",
"0.6934884",
"0.67165744",
"0.6672918",
"0.63205516",
"0.6258255",
"0.61647195",
"0.61642104",
"0.6156303",
"0.61520624",
"0.6085999",
"0.6070902",
"0.6055528",
"0.60272926",
"0.6024684",
"0.6008955",
"0.59906405",
"0.59666... | 0.6850475 | 5 |
Create an list of values from either a single data frame column or a list of data frame columns. Raises a ValueError if an empty column list is given or if the column list references columns that are unknown for the given data frame. | def fwuD(Emd4, jQ3Z, ZLJ_):
if ZLJ_ is None:
ZLJ_ = eK7y(jQ3Z.columns)
ZLJ_ = ZLJ_ if isinstance(ZLJ_, list) else [ZLJ_]
bGrB, LrJ9 = BeLB(jQ3Z.columns, ZLJ_)
if len(LrJ9) == 1:
return list(f8Bh(jQ3Z, LrJ9[0]))
elif len(LrJ9) > 1:
return list(Q1Iy(jQ3Z, LrJ9))
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z9yK(jQ3Z, kXSl=['x', 'y']):\n jQ3Z = jQ3Z.sort_values(by='frame_id')\n return [list(jQ3Z[G1Hx]) for G1Hx in kXSl]",
"def FFG1(tyNF: list[dict[str, str]], iVRZ: str) -> list[str]:\n Aofo: list[str] = []\n for rdlD in tyNF:\n ZfUD: str = rdlD[iVRZ]\n Aofo.append(ZfUD)\n return Aof... | [
"0.6222368",
"0.62052053",
"0.62052053",
"0.6142802",
"0.61373097",
"0.61370564",
"0.60793316",
"0.59654367",
"0.5932249",
"0.59143555",
"0.5908715",
"0.5708291",
"0.56409043",
"0.562518",
"0.5624335",
"0.5608264",
"0.55698436",
"0.55175346",
"0.5516278",
"0.5511064",
"0.5490... | 0.5228998 | 37 |
Iterator over values in multiple columns in a data frame. | def Q1Iy(jQ3Z, qCTI):
for bGrB, hkxX in jQ3Z.iterrows():
yield tuple([hkxX.iloc[YRbF] for YRbF in qCTI]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f8Bh(jQ3Z, qCTI):\n for bGrB, hkxX in jQ3Z.iterrows():\n yield hkxX.iloc[qCTI]",
"def Vs4Q(YKHO):\n for iVRZ, BWXx in YKHO.items():\n yield BWXx",
"def ulgM(YKHO, rdlD):\n for VmPb in rdlD:\n yield VmPb.value",
"def Vs4Q(YKHO):\n for fvDH in YKHO.columns:\n yield Y... | [
"0.74873716",
"0.7126579",
"0.7105958",
"0.69085145",
"0.68879914",
"0.6605069",
"0.6603319",
"0.6326949",
"0.6244653",
"0.62291235",
"0.62230533",
"0.61613953",
"0.6157815",
"0.6065728",
"0.6060572",
"0.6030361",
"0.59583724",
"0.58574396",
"0.5802716",
"0.5799147",
"0.57233... | 0.7742081 | 0 |
Adds parentheses as needed after functions. | def SXjU(s2mk: List[tUnion[TOKEN, AppliedFunction]], WMwn: DICT, a1V8: DICT):
Aofo: x1iM[wIXE[rjWG, ahRt]] = []
WLeb = 0
EdbX = 0
zG7Y = False
for w2fL, HHPa in zip(s2mk, s2mk[1:]):
Aofo.append(w2fL)
if w2fL[0] == d0Dv and HHPa[0] not in [NkaO, _viw, _l5i]:
if QZQn(w2fL, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sYhZ(YKHO):\n Ji5j = ' first line\\n line 1\\n line a\\n line b\\n line c\\n last line\\n '\n Wscv = ' first() line\\n line 1\\n line a\\n line b\\n line c\\n last line\\n '\n YKHO.run_test(before_b=Ji5j, after_b=Wscv, before_sel=('1.5'... | [
"0.5492504",
"0.54609454",
"0.53420275",
"0.5338748",
"0.5325564",
"0.53249234",
"0.5311519",
"0.53034157",
"0.52676934",
"0.51836956",
"0.5182259",
"0.5167372",
"0.5159088",
"0.5140353",
"0.5078504",
"0.5076138",
"0.5073122",
"0.5052128",
"0.5043448",
"0.5042157",
"0.5031736... | 0.542417 | 2 |
Return True if the track has changed since last update. | def YWmx(YKHO):
Mkre = YKHO._track_is_new
YKHO._track_is_new = False
return Mkre | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wxxj(YKHO):\n return YKHO.timestamp > 0",
"def R1aV(YKHO):\n if YKHO.is_updated:\n YKHO.is_updated = False\n return True\n else:\n return False",
"def fj40(YKHO):\n E3oo = Hy7s.stat(YKHO.filename).st_mtime\n if E3oo > YKHO.last_timestamp:\n YKHO.last_timestamp = E... | [
"0.7868006",
"0.7447631",
"0.74329317",
"0.738315",
"0.7333083",
"0.7160828",
"0.7158654",
"0.7150936",
"0.7117528",
"0.71104085",
"0.7008325",
"0.7003016",
"0.6993342",
"0.69914734",
"0.69747025",
"0.6966855",
"0.6965117",
"0.69157386",
"0.6907089",
"0.68494385",
"0.6834722"... | 0.7258955 | 5 |
Returns the cross product of two edges from input triangles | def WHx2(EmSm):
F_On = oyIN.diff(EmSm, axis=1)
W8ys = oyIN.cross(F_On[:, 0], F_On[:, 1])
return W8ys | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wnaF(jzdc, Fg_i):\n return [jzdc[1] * Fg_i[2] - jzdc[2] * Fg_i[1], jzdc[2] * Fg_i[0] - jzdc[0] * Fg_i[2], jzdc[0] * Fg_i[1] - jzdc[1] * Fg_i[0]]",
"def wnaF(y4fz, EBgd, HpuQ):\n return (EBgd[0] - y4fz[0]) * (HpuQ[1] - y4fz[1]) - (HpuQ[0] - y4fz[0]) * (EBgd[1] - y4fz[1])",
"def wnaF(jzdc, Fg_i):\n ... | [
"0.6953804",
"0.69418573",
"0.6908114",
"0.685409",
"0.6816123",
"0.67730004",
"0.6656109",
"0.66075015",
"0.6590151",
"0.65791214",
"0.6467439",
"0.64373755",
"0.6423663",
"0.6361046",
"0.63316554",
"0.6330097",
"0.63206995",
"0.6319148",
"0.629461",
"0.62701297",
"0.6269927... | 0.71049696 | 0 |
Find the n smallest elements in a dataset. | def CoC_(exwG, OxJJ, H5ew=None):
if exwG == 1:
WhY1 = iter(OxJJ)
qBwg = object()
if H5ew is None:
Aofo = min(WhY1, default=qBwg)
else:
Aofo = min(WhY1, default=qBwg, key=H5ew)
return [] if Aofo is qBwg else [Aofo]
try:
zNig = len(OxJJ)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n6OP(YKHO, exwG=5, ZLJ_: Optional[List[str]]=None, uZq5: Literal['last', 'first']='first'):\n return YKHO.sort(by=ZLJ_, ascending=True).head(exwG)",
"def UU16(YKHO, exwG, WKvO, JBZA):\n h3Aq = YKHO.item_count()\n YKHO.filter(oyIN.argsort(WKvO)[:exwG])\n DOuq = YKHO.item_count()\n with tO9_(f'U... | [
"0.7519184",
"0.74028593",
"0.68230605",
"0.6713846",
"0.66292036",
"0.64777046",
"0.6449061",
"0.63433176",
"0.6314659",
"0.62821496",
"0.62282646",
"0.62188363",
"0.6181273",
"0.6128707",
"0.60722387",
"0.6041839",
"0.60329",
"0.6024026",
"0.59280044",
"0.59096056",
"0.5835... | 0.6264568 | 10 |
r""" Compute the derivative of the GP posterior mean at the specified input location with respect to the vector embedding of the graph (e.g., if using WLsubtree, this function computes the gradient wrt each subtree pattern) The derivative is given by $ \frac{\partial \mu^}{\partial \phi ^} = \frac{\partial K(\phi, \phi... | def bKS6(YKHO, RwSd=None, G4O_=True, W8J4=False):
if YKHO.K_i is None or YKHO.logDetK is None:
raise ValueError('Inverse of Gram matrix is not instantiated. Please call the optimize function to fit on the training data first!')
if YKHO.n_vector_kernels:
if RwSd is not None:
JDeG = YK... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VVyp(YKHO, q7In):\n Zzyd = oyIN.dot(q7In.T, YKHO.X.T)\n xF3H = YKHO.logistic_fn(Zzyd)\n Zzyd = xF3H * (1.0 - xF3H)\n KMvS = oyIN.diag(Zzyd)\n EZtz = 1.0 - 2 * YKHO.logistic_fn(oyIN.dot(q7In.T, YKHO.X.T))\n EZtz = EZtz.reshape((-1, 1))\n EZtz = EZtz * YKHO.X\n assert EZtz.shape == YKHO.X... | [
"0.5653472",
"0.5646177",
"0.55743986",
"0.5564399",
"0.5548251",
"0.5548149",
"0.5504058",
"0.5481156",
"0.5478227",
"0.5437502",
"0.54346126",
"0.5433907",
"0.5432462",
"0.5431711",
"0.5431711",
"0.543036",
"0.5426751",
"0.5423553",
"0.5395775",
"0.5387857",
"0.53827244",
... | 0.58631396 | 0 |
This function gets the value of an environment variable. | def Cu40(XuY2, HyJ9=None):
try:
return Hy7s.environ[XuY2]
except KeyError:
tf1m = 'Set the %s environment variable' % XuY2
print(tf1m)
return HyJ9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Bx7h(mWFP):\n return Hy7s.environ.get(mWFP)",
"def TYk2(XuY2: str) -> str:\n if XuY2 in Hy7s.environ.keys():\n return Hy7s.environ[XuY2]",
"def E6J6(H5ew: str) -> str:\n BWXx = Hy7s.getenv(H5ew)\n assert isinstance(BWXx, str), f'the {H5ew} environment variable must be set and a string, v... | [
"0.8155902",
"0.8143186",
"0.8135923",
"0.8104177",
"0.7906808",
"0.78122395",
"0.77314556",
"0.76804584",
"0.7676385",
"0.76763076",
"0.76706797",
"0.75282305",
"0.74297893",
"0.73972905",
"0.7381869",
"0.7339875",
"0.7337856",
"0.73339266",
"0.73196",
"0.7310828",
"0.718639... | 0.72933626 | 20 |
Replace the terraform_source material with a new material. This is used in terraform.reload_template operation. | def HaCJ(xENo, pan_=False):
OaeV.logger.debug('update_terraform_source_material new_source: {}'.format(xENo))
WWgv = True
v10d = xENo
RmZy = None
Wipu = None
WL5b = Ni8F(target=pan_)
if isinstance(xENo, dict):
v10d = xENo['location']
RmZy = xENo.get('username')
Wipu =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vXnj(xENo=None, wffv=None):\n if xENo:\n Mx95 = HaCJ(xENo)\n else:\n Mx95 = jXvI()\n WL5b = Ni8F(source_path=wffv)\n fLKz = Fusb()\n OaeV.logger.debug('The storage root tree:\\n{}'.format(J_Es(fLKz)))\n if Mx95:\n hT_B(fLKz, Mx95, wffv)\n elif isinstance(xENo, str) and... | [
"0.6655648",
"0.57133335",
"0.5688341",
"0.5433815",
"0.5371916",
"0.5370673",
"0.52009857",
"0.5179576",
"0.51118106",
"0.5094926",
"0.5071477",
"0.49414852",
"0.4913425",
"0.4913305",
"0.48959532",
"0.48755416",
"0.48658475",
"0.486263",
"0.48105115",
"0.47848913",
"0.47663... | 0.70596457 | 0 |
Applies linear warmup of learning rate from 0 and decay to 0. | def QAuB(b0Ix, wbn8, H0j9):
with UtL5.default_main_program()._lr_schedule_guard():
tspZ = UtL5.layers.tensor.create_global_var(shape=[1], value=0.0, dtype='float32', persistable=True, name='scheduled_learning_rate')
Aak1 = UtL5.layers.learning_rate_scheduler._decay_step_counter()
with UtL5.l... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QP7T(vg4c, ilUN, Kdv0):\n if ilUN <= Kdv0:\n return vg4c\n return vg4c * Kdv0 / ilUN",
"def yUmD(K0do, qtWj, qIxc):\n tspZ = qIxc.lr * (qtWj + 1) / qIxc.warmup_epoch\n global current_lr\n RCJ4 = tspZ\n for Lwm5 in K0do.param_groups:\n Lwm5['lr'] = tspZ\n return RCJ4",
"de... | [
"0.65639514",
"0.64120924",
"0.6368154",
"0.6335719",
"0.6318807",
"0.6259144",
"0.62568754",
"0.623038",
"0.6226886",
"0.6204688",
"0.61304075",
"0.6118824",
"0.6041374",
"0.6029258",
"0.6018297",
"0.60096115",
"0.60096115",
"0.59863126",
"0.5964717",
"0.5952636",
"0.5941927... | 0.70584446 | 0 |
Gets the image_name of this ImageData. | def C7_O(YKHO) -> str:
return YKHO._image_name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DbLT(YKHO):\n return YKHO.imageName",
"def C7_O(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'image_name')",
"def C7_O(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'image_name')",
"def C7_O(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'image_name')",
"def m... | [
"0.8321288",
"0.8188899",
"0.78037",
"0.78037",
"0.77783084",
"0.74824905",
"0.7305873",
"0.7167769",
"0.71449965",
"0.7096319",
"0.70771646",
"0.70329046",
"0.702388",
"0.7013256",
"0.69979",
"0.69923127",
"0.69827694",
"0.69349366",
"0.69349366",
"0.68416184",
"0.68107706",... | 0.8708528 | 0 |
Sets the image_name of this ImageData. | def C7_O(YKHO, C7_O: str):
YKHO._image_name = C7_O | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GJzy(YKHO, mWFP):\n YKHO.image.name = mWFP",
"def C7_O(YKHO) -> str:\n return YKHO._image_name",
"def _rNb(YKHO, HWZI):\n YKHO.imagefile = open(HWZI, 'r+')",
"def UjST(YKHO, mWFP):\n YKHO.ds_filename = mWFP",
"def KIFJ(YKHO, LNo8):\n YKHO.data['image'] = LNo8",
"def WZrJ(YKHO, mWFP):\n... | [
"0.826169",
"0.6935366",
"0.67652696",
"0.6646094",
"0.6593884",
"0.6593407",
"0.6577544",
"0.6569843",
"0.65465504",
"0.6523291",
"0.6514473",
"0.6514473",
"0.64898485",
"0.6435465",
"0.6430254",
"0.6430254",
"0.6430254",
"0.6430254",
"0.6430254",
"0.6430254",
"0.6430254",
... | 0.87005484 | 0 |
Gets the size of this ImageData. | def zNig(YKHO) -> int:
return YKHO._size | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jiw9(YKHO):\n return YKHO._data_size",
"def zNig(YKHO):\n return YKHO.__image.size",
"def zNig(YKHO):\n return YKHO._image_size",
"def zNig(YKHO):\n return YKHO.data.size",
"def zNig(YKHO):\n if YKHO._size and (not YKHO._pil_image):\n return YKHO._size\n else:\n return Y... | [
"0.8347523",
"0.81703216",
"0.8153926",
"0.79846704",
"0.7783651",
"0.77197397",
"0.77089226",
"0.77089226",
"0.76672107",
"0.7648655",
"0.7644404",
"0.76354",
"0.76290345",
"0.76290345",
"0.7624711",
"0.7599025",
"0.7593515",
"0.7593515",
"0.7593515",
"0.7593515",
"0.7593515... | 0.73780715 | 63 |
Gets the image_type of this ImageData. | def i6XV(YKHO) -> W8hl:
return YKHO._image_type | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mbFI(YKHO):\n return YKHO.__imageType",
"def type(YKHO):\n return t7xG.image_type(YKHO)",
"def Od7N(YKHO):\n return t7xG.image_pixeltype(YKHO)",
"def SqlX(YKHO):\n LNo8 = hnIv.open(YKHO.image_data)\n return LNo8.format",
"def type(YKHO):\n return YKHO.data.type",
"def FRul(YKHO):\n ... | [
"0.8554245",
"0.84645814",
"0.7186352",
"0.71261305",
"0.7077204",
"0.70501",
"0.6845407",
"0.68451476",
"0.6739745",
"0.67381364",
"0.67335033",
"0.6672943",
"0.6672943",
"0.6672943",
"0.6672943",
"0.6672943",
"0.6672943",
"0.6672943",
"0.6672943",
"0.6672943",
"0.6672943",
... | 0.87484396 | 0 |
Sets the image_type of this ImageData. | def i6XV(YKHO, i6XV: ImageType):
YKHO._image_type = i6XV | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TG_K(YKHO, type: int):\n YKHO.type = type\n YKHO.canvas.itemconfig(YKHO.item, image=YKHO._get_image())",
"def i6XV(YKHO) -> W8hl:\n return YKHO._image_type",
"def oq00(YKHO, type):\n YKHO.__data_set_type__ = type",
"def mbFI(YKHO):\n return YKHO.__imageType",
"def TG_K(YKHO, type):\n ... | [
"0.7035137",
"0.69461876",
"0.6669106",
"0.66679066",
"0.6653907",
"0.6653907",
"0.6602624",
"0.63796544",
"0.6352169",
"0.62813157",
"0.62262034",
"0.62262034",
"0.6204599",
"0.6169611",
"0.6169611",
"0.6169611",
"0.6169611",
"0.6169611",
"0.6169611",
"0.6169611",
"0.6169611... | 0.8539408 | 0 |
Input text Output tokenized text | def wr3U(l5Ny):
l5Ny = ZbWC.sub('[^a-zA-Z0-9]', ' ', l5Ny.lower())
s2mk = dFss(l5Ny)
s2mk = [GFnk().lemmatize(GIN8) for GIN8 in s2mk if GIN8 not in UKxK]
return s2mk | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wr3U(l5Ny):\n return l5Ny.split(' ')",
"def wr3U(YKHO, l5Ny):\n l5Ny = eIAz(l5Ny)\n pRF9 = []\n for eOtH in R_0c(l5Ny):\n gLiZ = list(eOtH)\n if len(gLiZ) > YKHO.max_input_chars_per_word:\n pRF9.append(YKHO.unk_token)\n continue\n fyuJ = False\n y... | [
"0.77266514",
"0.77034426",
"0.765065",
"0.7503493",
"0.74961126",
"0.7466508",
"0.7374466",
"0.7347171",
"0.73422486",
"0.732905",
"0.72553587",
"0.72399044",
"0.72279334",
"0.7171374",
"0.71657616",
"0.7122744",
"0.71222836",
"0.71215016",
"0.7114561",
"0.7111532",
"0.71010... | 0.7147765 | 15 |
Return package version as listed in `__version__` in `init.py`. | def kaPv(B5hb):
with open(Hy7s.path.join(B5hb, '__init__.py'), 'rb') as Eosz:
zZcM = Eosz.read().decode('utf-8')
return ZbWC.search('__version__ = [\'"]([^\'"]+)[\'"]', zZcM).group(1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oRea() -> str:\n pmON = gzes(TLI7(xAKo), '__init__.py')\n pmON = ENtY(WQbV(pmON))\n with open(pmON) as eHNT:\n for zFiD in eHNT:\n if zFiD.startswith('__version__'):\n eOtH, DpZH = zFiD.split(' = ', 1)\n DpZH = DpZH.replace(\"'\", '').strip()\n ... | [
"0.8489474",
"0.83912396",
"0.83868575",
"0.8380673",
"0.83794516",
"0.8371276",
"0.8371276",
"0.8371276",
"0.8371276",
"0.8371276",
"0.8371276",
"0.8371276",
"0.8369819",
"0.8357534",
"0.83568484",
"0.8077552",
"0.7975867",
"0.7938166",
"0.78923714",
"0.78923714",
"0.7892371... | 0.8358652 | 13 |
Set the value of the shared register specified by id | def kis3(YKHO, id, BWXx):
YKHO.registers[id] = BWXx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def set(YKHO, id, H5ew, wEf2):\n try:\n AwKB = YKHO.id_dict[id]\n except KeyError:\n AwKB = {}\n YKHO.id_dict[id] = AwKB\n AwKB[H5ew] = wEf2",
"def QfhL(YKHO, QfhL):\n YKHO._reg_id = QfhL",
"def Oxlt(YKHO, id, BWXx):\n YKHO.get_thread().set(id, BWXx)",
"def f6Qh(YKHO, BWXx... | [
"0.6597757",
"0.6357648",
"0.6340989",
"0.62681997",
"0.61998284",
"0.60728663",
"0.6026996",
"0.6004376",
"0.594044",
"0.5895724",
"0.5844993",
"0.58236736",
"0.577803",
"0.5756242",
"0.57297534",
"0.57175094",
"0.571571",
"0.57069814",
"0.5700176",
"0.56964296",
"0.5681814"... | 0.77932715 | 0 |
Set the row of the matrix | def Umth(YKHO, rdlD):
ZfUD = YKHO._item()
if ZfUD is not None:
SppC = ZfUD.getMatrix()
SppC[YKHO._index, :] = (rdlD.x(), rdlD.y(), rdlD.z())
ZfUD.setMatrix(SppC) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def azY9(YKHO, rdlD):\n YKHO.ix_row = rdlD",
"def w6AF(YKHO, rdlD):\n YKHO.row = rdlD",
"def w6AF(YKHO, Mi_s, rdlD):\n YKHO.data[:, Mi_s] = rdlD\n return",
"def ESRb(SppC, UDvL, rdlD):\n Ufjr(SppC, UDvL.x, rdlD, 0)\n Ufjr(SppC, UDvL.y, rdlD, 1)\n Ufjr(SppC, UDvL.z, rdlD, 2)",
"def w6AF... | [
"0.8242423",
"0.804304",
"0.79812926",
"0.77985466",
"0.7124227",
"0.70839894",
"0.7044925",
"0.67937547",
"0.67925847",
"0.67401546",
"0.66254383",
"0.65337515",
"0.65147907",
"0.6470104",
"0.6398404",
"0.63827354",
"0.6380484",
"0.6337928",
"0.63346344",
"0.62994075",
"0.62... | 0.858889 | 0 |
Returns the range of the colormap for the current data. | def na9J(YKHO):
ZfUD = YKHO.item()
if ZfUD is not None and YKHO._colormap is not None:
return YKHO._colormap.getColormapRange(ZfUD)
else:
return (1, 100) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qOWK(YKHO):\n n4wC = YKHO.data_matrix.max()\n MynD = YKHO.data_matrix.min()\n if n4wC * MynD < 0:\n n4wC = max([n4wC, abs(MynD)])\n MynD = -1 * n4wC\n return (n4wC, MynD)",
"def LcrB(LNo8):\n D8Ke = QMsm(LNo8)\n LO8x, BkZJ = (oyIN.min(LNo8), oyIN.max(LNo8))\n if D8Ke.signed... | [
"0.78318775",
"0.7401124",
"0.70967954",
"0.7019722",
"0.69327664",
"0.67646444",
"0.66170365",
"0.66013634",
"0.6540593",
"0.64825255",
"0.64442724",
"0.6407261",
"0.6379997",
"0.63684094",
"0.62948114",
"0.62948114",
"0.6288837",
"0.62665725",
"0.62573814",
"0.62027895",
"0... | 0.84722245 | 0 |
Proxy to get raw colormap bound | def YoXL(YKHO):
if YKHO._colormap is None:
return None
elif YKHO._index == 0:
return YKHO._colormap.getVMin()
else:
return YKHO._colormap.getVMax() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fQpu(YKHO):\n if YKHO._colormap is not None:\n mmRm = YKHO._getRawBound()\n if mmRm is None:\n mmRm = YKHO._getColormapRange()[YKHO._index]\n return mmRm\n else:\n return 1.0",
"def na9J(YKHO):\n ZfUD = YKHO.item()\n if ZfUD is not None and YKHO._colormap is... | [
"0.66560954",
"0.63308734",
"0.6303656",
"0.62848014",
"0.61891127",
"0.61891127",
"0.6110057",
"0.60839653",
"0.6028771",
"0.5978778",
"0.5824225",
"0.581273",
"0.5775261",
"0.57617545",
"0.57316095",
"0.5725181",
"0.5725181",
"0.56450224",
"0.56450224",
"0.56450224",
"0.562... | 0.6836688 | 0 |
Proxy to get the isosurface's transparency | def iB6U(YKHO):
ZfUD = YKHO.item()
return 255 if ZfUD is None else ZfUD.getColor().alpha() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vVJl(YKHO):\n return YKHO._isosurface()",
"def efxn(YKHO):\n return not not YKHO.prototype.transparent",
"def HV9K(**B2fa):\n _G4g = zkdz()\n for H5ew, BWXx in B2fa.items():\n _G4g.__setattr__(H5ew, BWXx)\n return _G4g.get_surface()",
"def BglY(YKHO, *qIxc):\n return nvSv.Adaptor... | [
"0.6941713",
"0.5905076",
"0.5887201",
"0.5859804",
"0.57867056",
"0.57492626",
"0.57455003",
"0.57193583",
"0.5700761",
"0.56226635",
"0.5603784",
"0.55479586",
"0.55368334",
"0.55237794",
"0.5511958",
"0.5457478",
"0.5440486",
"0.5437211",
"0.54084915",
"0.5397053",
"0.5394... | 0.5864294 | 3 |
Remove keys from a dictionary. | def CpE3(tbx9, sjXb):
if not tbx9:
return None
BdN0 = dict(tbx9)
for H5ew in sjXb:
BdN0.pop(H5ew, None)
return BdN0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gOiW(cmPJ, sjXb):\n aY5b = cmPJ.copy()\n try:\n [aY5b.pop(H5ew) for H5ew in sjXb]\n except:\n print('Error: No ratio and sampling strategy parameters')\n return aY5b",
"def rtKA(YKHO, cmPJ, *sjXb):\n CpE3 = [G1Hx for G1Hx in cmPJ if G1Hx not in sjXb]\n YKHO.remove_from_diction... | [
"0.80267066",
"0.7995287",
"0.7878177",
"0.78185576",
"0.7806963",
"0.7792269",
"0.75980955",
"0.7573445",
"0.7501589",
"0.7490644",
"0.7386149",
"0.73702294",
"0.7354082",
"0.72534496",
"0.7247841",
"0.72042185",
"0.7182112",
"0.717825",
"0.7164922",
"0.705064",
"0.70464873"... | 0.78998464 | 2 |
Return the basename of a filepath. | def aPr_(qaEx):
return Hy7s.path.basename(qaEx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aPr_(pmON):\n return lpha(pmON)[1]",
"def yFjF(VqRE):\n return Hy7s.path.basename(VqRE)",
"def aPr_(pmON: str) -> str:\n pass",
"def aPr_(YKHO):\n return Hy7s.path.basename(YKHO.filepath)",
"def v_Ac(VqRE):\n return Hy7s.path.basename(VqRE)",
"def sYT0(GX8y):\n return GX8y.split('/'... | [
"0.85257316",
"0.8508369",
"0.85065496",
"0.8299894",
"0.82706845",
"0.8194257",
"0.8189768",
"0.8185217",
"0.8152563",
"0.812153",
"0.7950063",
"0.79432064",
"0.7893022",
"0.7892346",
"0.7858747",
"0.77643377",
"0.77129203",
"0.7682729",
"0.76708555",
"0.76598155",
"0.762425... | 0.8841317 | 0 |
Get handle for the file. Returns flowserv.model.files.base.FileHandle | def tyeH(YKHO) -> GwMw:
with YKHO.service() as nNXP:
return nNXP.runs().get_result_file(run_id=YKHO.run_id, file_id=YKHO.file_id) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JA6e(YKHO):\n return YKHO.__handle",
"def JA6e(YKHO):\n return YKHO.__handle",
"def JA6e(YKHO):\n return YKHO.__handle",
"def SJOK(YKHO) -> int:\n return YKHO.file",
"def yp7C(YKHO):\n if not YKHO._fh or YKHO._is_closed():\n Ux0P = YKHO._rotated_logfile or YKHO.filename\n i... | [
"0.6728279",
"0.6728279",
"0.6728279",
"0.66962826",
"0.6657412",
"0.6650079",
"0.66019773",
"0.6571665",
"0.65594584",
"0.65594584",
"0.65594584",
"0.6547598",
"0.6542747",
"0.6493023",
"0.6468259",
"0.645259",
"0.64515823",
"0.6428655",
"0.6421259",
"0.64070946",
"0.637004"... | 0.5722662 | 60 |
Sets the temp_staff_speciality of this Specialty. | def e_CF(YKHO, e_CF):
YKHO._temp_staff_speciality = e_CF | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, e_CF=None, J93I=None, rpno=None, DfdZ=None):\n if DfdZ is None:\n DfdZ = y8cn()\n YKHO.local_vars_configuration = DfdZ\n YKHO._temp_staff_speciality = None\n YKHO._validity = None\n YKHO._notes = None\n YKHO.discriminator = None\n if e_CF is not None:\n YKHO.temp_s... | [
"0.5879414",
"0.58567905",
"0.58567905",
"0.54648113",
"0.5373502",
"0.5302625",
"0.5095059",
"0.5080204",
"0.5047452",
"0.50008994",
"0.48750293",
"0.48400337",
"0.48036706",
"0.47380903",
"0.47277984",
"0.47154027",
"0.46658656",
"0.46656635",
"0.46576545",
"0.46576545",
"0... | 0.90729666 | 0 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, B8QK):
return False
return YKHO.to_dict() == Elif.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8088132",
"0.8088132",
"0.8054589",
"0.7982687",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
if not isinstance(Elif, B8QK):
return True
return YKHO.to_dict() != Elif.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
... | 0.0 | -1 |
returns a timeseries list from in_list data. | def k31Z(mZmz, WbTE, e5hk):
BWXx = 0
fXZ5 = []
qw7D = oyIN.array(mZmz)
if len(mZmz) > 0:
for YRbF in range(0, WbTE):
BWXx = sum(qw7D[qw7D[:, 0] == YRbF][:, 1])
if e5hk:
fXZ5.append(BWXx * 0.001)
else:
fXZ5.append(BWXx)
retur... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Fnw8(YKHO):\n Mr85 = YKHO._timestampFormat\n if Mr85 is None:\n return YKHO._timeseriesData\n O0Pg = []\n SStx = O0Pg.append\n a8Pe = YXTX.convert_epoch_to_timestamp\n for bTKY in YKHO._timeseriesData:\n SStx([a8Pe(bTKY[0], Mr85), bTKY[1]])\n return O0Pg",
"def Fnw8(YKHO):\... | [
"0.67259496",
"0.66716796",
"0.6391872",
"0.6251219",
"0.6127312",
"0.60957015",
"0.60667855",
"0.59559476",
"0.59142303",
"0.58823854",
"0.58671963",
"0.586019",
"0.58137316",
"0.57992566",
"0.5792376",
"0.57855034",
"0.5761222",
"0.5738981",
"0.5683437",
"0.566707",
"0.5598... | 0.6769592 | 0 |
Initializes and returns an object representing a test user with preset hardcoded settings and budgets. This is a helper function designed to speed up development. Uses the global variable dictionary USER_TEST_DATA for generating a new user. | def KWcJ() -> mv1M:
Q5YQ = mv1M.generate_new_user(jJDz.user_test_data)
return Q5YQ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FCbF(YKHO):\n mv1M.users = {}\n YKHO.app = mv1M('demo@email.com', 'admin', 'admin')\n YKHO.user_data = {1: {'email': 'demo@email.com', 'username': 'admin', 'password': 'admin'}}",
"def FCbF(YKHO):\n YKHO.new_user = pmuB(username='munga', bio='funny thing to say')",
"def FCbF(YKHO):\n YKHO.ne... | [
"0.693702",
"0.6841277",
"0.6841277",
"0.6830632",
"0.67392606",
"0.6670856",
"0.6645519",
"0.6604569",
"0.6583037",
"0.6559513",
"0.6557608",
"0.6556933",
"0.6540214",
"0.6511389",
"0.6510336",
"0.6507924",
"0.6506847",
"0.6502634",
"0.6482243",
"0.6469562",
"0.64657915",
... | 0.71584857 | 0 |
Create a new population, made of 'POPULATION_COUNT' individual | def YN4B():
return [DS29() for bGrB in range(YWv6)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ibwd(YKHO):\n YKHO.check_for_generation_cap()\n B7ws = list()\n for q7V9 in YKHO.population:\n g0hy = ut3e.select_partner(YKHO.fitness_scores, YKHO.population)\n aUGN = ut3e.mutate(ut3e.crossover(q7V9, g0hy))\n B7ws.append(aUGN)\n if YKHO.population == B7ws:\n print('new... | [
"0.7537086",
"0.6853734",
"0.65585643",
"0.65395",
"0.6517348",
"0.6464381",
"0.6440397",
"0.64366806",
"0.64191747",
"0.63390553",
"0.6320056",
"0.6303148",
"0.6298649",
"0.62776005",
"0.6268499",
"0.62535465",
"0.6210634",
"0.6199758",
"0.6192454",
"0.61482376",
"0.6128414"... | 0.62307024 | 16 |
Return the average fitness of the whole population | def xc9j(CHNM):
wjRY = 0
for DM04 in CHNM:
wjRY += GdaI(DM04)
return wjRY / YWv6 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xrb1(YKHO):\n return sum([tTpl.fitness for tTpl in YKHO.population]) / len(YKHO.population)",
"def xrb1(xRqF):\n c3NC = 0\n for DM04 in xRqF:\n wkbQ = DM04.get_fitness()\n c3NC += wkbQ\n return c3NC / len(xRqF)",
"def w9De(YKHO):\n wkbQ: float = 0\n for Z9rn in YKHO.characte... | [
"0.8676416",
"0.8113571",
"0.77746856",
"0.74121547",
"0.7272244",
"0.7198187",
"0.71802837",
"0.70635396",
"0.70343685",
"0.7016438",
"0.6965455",
"0.69341236",
"0.68904555",
"0.6877716",
"0.68654895",
"0.6843745",
"0.67882663",
"0.67592216",
"0.6743637",
"0.67230684",
"0.67... | 0.8343167 | 1 |
Return a list of tuple (individual, fitness) sorted from most most graded to less graded | def IqbF(CHNM):
kLQs = []
for DM04 in CHNM:
kLQs.append((DM04, GdaI(DM04)))
return kLQs.sort(key=lambda WKvO: WKvO[1], reverse=True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sk0f(YKHO):\n mmu5 = {wUil: wUil.fitness for wUil in YKHO.herbivores}\n KNet = sorted(mmu5.items(), key=lambda WKvO: WKvO[1], reverse=False)\n return KNet",
"def LcOV(BEuN, wkbQ):\n nPrm = list(zip(wkbQ, BEuN))\n wkbQ, BEuN = zip(*sorted(nPrm, key=lambda WKvO: WKvO[0]))\n return (list(BEuN)... | [
"0.73159945",
"0.72906893",
"0.6999703",
"0.68994135",
"0.6865923",
"0.6747164",
"0.67004937",
"0.66845757",
"0.6674509",
"0.6642251",
"0.65800864",
"0.652309",
"0.64563507",
"0.6436714",
"0.6413957",
"0.6386113",
"0.63547003",
"0.6350761",
"0.63291574",
"0.63251805",
"0.6323... | 0.7683326 | 0 |
The name of this hybrid compute machine. | def mWFP(YKHO) -> str:
return qe4Y.get(YKHO, 'name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oSzM(YKHO) -> str:\n return qe4Y.get(YKHO, 'machine_name')",
"def oSzM(YKHO) -> str:\n return qe4Y.get(YKHO, 'machine_name')",
"def n2sX(YKHO) -> str:\n return qe4Y.get(YKHO, 'computer_name')",
"def mWFP(YKHO):\n return f'{ueYb(YKHO._data, 0, YKHO._name)}'",
"def tN3E(YKHO) -> str:\n ret... | [
"0.78817964",
"0.78817964",
"0.7659259",
"0.74277973",
"0.73336273",
"0.73149437",
"0.72652876",
"0.7226466",
"0.7181055",
"0.7181055",
"0.7181055",
"0.71317905",
"0.7108128",
"0.709828",
"0.7077523",
"0.7077523",
"0.7068414",
"0.7063462",
"0.70512724",
"0.7047348",
"0.701734... | 0.0 | -1 |
Specifies the host OS name of the hybrid machine. | def n2sX(YKHO) -> str:
return qe4Y.get(YKHO, 'computer_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mToc():\n return PSrQ.osName_",
"def aSZW(mWFP):\n global override_platform_name\n cZl2 = mWFP",
"def a9EH():\n return 'micaz'",
"async def osname(YKHO):\n await YKHO.bot.say(FlUN(Oz1B(), 'Bash'))",
"def VOd9(Emd4):\n return Emd4.get_os_type().name",
"def pqhZ():\n fATW = HwRy.pl... | [
"0.6714382",
"0.6460827",
"0.63393486",
"0.63391984",
"0.610117",
"0.6030685",
"0.597316",
"0.59021294",
"0.5894657",
"0.58734244",
"0.5865589",
"0.5859394",
"0.5833286",
"0.58314365",
"0.5794824",
"0.57857734",
"0.578508",
"0.578508",
"0.57829136",
"0.57615554",
"0.5755917",... | 0.5323986 | 63 |
The current status of the service. | def jGRS(YKHO) -> str:
return qe4Y.get(YKHO, 'status') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oQLg(YKHO):\n return YKHO.service.status()",
"def jGRS(YKHO):\n return YKHO._get(path='status')",
"def VLTN(YKHO):\n return YKHO.status",
"def VLTN(YKHO):\n return YKHO.status",
"def VLTN(YKHO):\n return YKHO.status",
"def QtQ8(YKHO):\n return YKHO._status",
"def jGRS(YKHO):\n ... | [
"0.883464",
"0.8387259",
"0.8312966",
"0.8312966",
"0.8312966",
"0.8312398",
"0.8297007",
"0.82846177",
"0.8283935",
"0.82812774",
"0.82803196",
"0.82649493",
"0.82649285",
"0.8263274",
"0.8237908",
"0.8237908",
"0.8228103",
"0.82210577",
"0.82210577",
"0.82210577",
"0.822105... | 0.8309229 | 28 |
The current status of the service. | def jGRS(YKHO) -> str:
return qe4Y.get(YKHO, 'status') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oQLg(YKHO):\n return YKHO.service.status()",
"def jGRS(YKHO):\n return YKHO._get(path='status')",
"def VLTN(YKHO):\n return YKHO.status",
"def VLTN(YKHO):\n return YKHO.status",
"def VLTN(YKHO):\n return YKHO.status",
"def QtQ8(YKHO):\n return YKHO._status",
"def jGRS(YKHO):\n ... | [
"0.883464",
"0.8387259",
"0.8312966",
"0.8312966",
"0.8312966",
"0.8312398",
"0.8297007",
"0.82846177",
"0.8283935",
"0.82812774",
"0.82803196",
"0.82649493",
"0.82649285",
"0.8263274",
"0.8237908",
"0.8237908",
"0.8228103",
"0.82210577",
"0.82210577",
"0.82210577",
"0.822105... | 0.8309229 | 29 |
Returns any dispersion priors to be used alongside the targets. The dispersion parameter defines how fussy we want to be about capturing data with the model. If its value is tiny, this means we are using a likelihood function that is very skewed and that will reject any model run that is not fitting the data perfectly ... | def mM0c(x6A0: List[BaseTarget]):
f0BO = []
for pan_ in x6A0:
if type(pan_) not in [BYbk, llGD]:
continue
if pan_.stdev is not None:
continue
JCoA = max(pan_.data)
tTdy = 0.25 * JCoA / 4.0
HMsO = tTdy / 2.0
dqC8 = 2.0 * tTdy
mWFP = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wgnM(YKHO):\n return YKHO._dispersion",
"def Kqei(YKHO):\n if YKHO._dispersion_virial is None:\n YKHO._dispersion_virial = YKHO._get_potential(YKHO._system._dispersion)\n return YKHO._dispersion_virial",
"def wgnM(YKHO, XP5J):\n return XP5J ** 2 / (2 * YKHO.mass)",
"def sPgQ(YKHO, k78t... | [
"0.5643515",
"0.5582873",
"0.5430436",
"0.5295613",
"0.5198738",
"0.51566154",
"0.49889556",
"0.4767703",
"0.4734876",
"0.47209024",
"0.47156158",
"0.47156158",
"0.47113124",
"0.4708969",
"0.47061282",
"0.46910712",
"0.4686004",
"0.468468",
"0.4682483",
"0.4663882",
"0.465936... | 0.6571245 | 0 |
Return the logpdf of a truncated normal target, with scaling transforms | def TyRA(xJvR: np.ndarray, Xdzc: np.ndarray, P_qE: Tuple[float, float], ifkm: float):
jzdc, Fg_i = ((P_qE[0] - Xdzc) / ifkm, (P_qE[1] - Xdzc) / ifkm)
return eQSh.truncnorm.logpdf(x=xJvR, a=jzdc, b=Fg_i, loc=Xdzc, scale=ifkm) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QF3p(YKHO, WKvO, CkYf=False):\n raise NotImplementedError('Normalized logposterior not implemented')",
"def QF3p(YKHO, EcVT) -> oyIN.ndarray:\n return YKHO.dist.logpdf(YKHO.inv_trans(EcVT))",
"def QF3p(YKHO, WKvO):\n if YKHO.transform is not None:\n WKvO = YKHO.transform(WKvO)\n return (... | [
"0.7152427",
"0.68863714",
"0.6792632",
"0.677283",
"0.671924",
"0.6698928",
"0.6698928",
"0.66089755",
"0.6493909",
"0.64619803",
"0.6430027",
"0.6384575",
"0.63410777",
"0.6322924",
"0.6315878",
"0.6260283",
"0.6233927",
"0.62109506",
"0.61741453",
"0.6171708",
"0.615615",
... | 0.80364054 | 0 |
Return False if a part of a path begins with '.'. This excludes '..'. Originally glob.glob('') excluded hidden files, but this is not implemented in Path().glob nor Path().rglob(). | def Scp_(pmON):
for XP5J in pmON.parts:
if XP5J != '..' and XP5J[0] == '.':
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yhZ7(YKHO, Zg0d):\n for IOHN in YKHO._ignored:\n if jlVJ.fnmatch(Zg0d, '*/' + IOHN):\n return True\n return False",
"def wOZQ(YKHO, pmON):\n if ZbWC.match('.*\\\\\\\\.*\\\\..*$', pmON):\n return True",
"def JIYW(Emd4, pmON):\n return pmON.startswith('/') or pmON.startsw... | [
"0.72925305",
"0.7179584",
"0.6848215",
"0.6772919",
"0.67525446",
"0.6747452",
"0.6595828",
"0.6591943",
"0.65842557",
"0.6576131",
"0.65617543",
"0.65128756",
"0.65012974",
"0.64936596",
"0.6490669",
"0.6449925",
"0.64492685",
"0.64305085",
"0.6409612",
"0.64061445",
"0.640... | 0.71373856 | 2 |
We need to distinguish if a variable value is a list or a string. Since strings are also iterable in Python, this helper will decide if something is truely iterable | def OxJJ(d7pR):
return isinstance(d7pR, g760.Iterable) and (not isinstance(d7pR, jKi7.string_types)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MKQ6(BWXx):\n if isinstance(BWXx, str):\n return False\n if hasattr(BWXx, '__iter__'):\n return True\n if isinstance(BWXx, g760.abc.Sequence):\n return True\n return False",
"def eJHJ(BWXx):\n return bool(J1TN(BWXx)) or bool(lgHf(BWXx))",
"def j5rG(d7pR):\n return isi... | [
"0.80957097",
"0.7853273",
"0.7799085",
"0.77318245",
"0.77239954",
"0.7675878",
"0.7640689",
"0.7540194",
"0.752407",
"0.73801064",
"0.73743284",
"0.7362137",
"0.73524064",
"0.7340069",
"0.7337821",
"0.7315343",
"0.7276965",
"0.72492117",
"0.7202615",
"0.7142509",
"0.712903"... | 0.69525737 | 27 |
Returns the path for the project's personal settings.py file | def ViOt():
L59w = oY4T.get_project_root()
kf3C = Hy7s.path.join(L59w, '.branchdb', 'settings.py')
if Hy7s.path.exists(kf3C) is False:
raise UAju.ImproperlyConfigured('Unable to find settings module for project')
return kf3C | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TdjZ():\n return GkAb(gCuF.PROJECT_DIR)",
"def pmON(YKHO):\n return Hy7s.path.join(YKHO.config.get('path', Hy7s.getcwd()))",
"def dPDn(YKHO):\n return YKHO._settingsFilePath",
"def zHh0(YKHO):\n Emaa, RJsz = YKHO._FindKeyFiles()\n if Emaa is None:\n return None\n else:\n r... | [
"0.75405306",
"0.73080254",
"0.7250991",
"0.71388364",
"0.7102079",
"0.703298",
"0.6991099",
"0.6953136",
"0.69487226",
"0.6937468",
"0.6927678",
"0.6756015",
"0.67395085",
"0.67324567",
"0.6695109",
"0.6687042",
"0.66792583",
"0.6622428",
"0.66141045",
"0.6593675",
"0.657748... | 0.7467588 | 1 |
True if values are updated from the last commit. | def YPNF(YKHO):
return not not YKHO._olddata | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wxxj(YKHO):\n return YKHO.timestamp > 0",
"def R1aV(YKHO):\n if YKHO.is_updated:\n YKHO.is_updated = False\n return True\n else:\n return False",
"def fj40(YKHO):\n return YKHO.get_old_value() != YKHO.get_current_value()",
"def XLGg(YKHO):\n if not YKHO._is_persisted:\... | [
"0.71335584",
"0.7020878",
"0.6902419",
"0.68551445",
"0.6841551",
"0.6819969",
"0.6811344",
"0.6811067",
"0.6802319",
"0.678215",
"0.675881",
"0.6746616",
"0.6697157",
"0.6614278",
"0.6579674",
"0.65590715",
"0.65494764",
"0.6548244",
"0.65120035",
"0.6459622",
"0.64361894",... | 0.64615005 | 19 |
Get raw data value. | def m6Me(YKHO, K5BR=True, VUF1=None, z8bU=None):
Aofo = None
if VUF1 is None:
Aofo = _qLf(YKHO._data)
if not K5BR:
Aofo.update(_qLf(YKHO._olddata))
for mWFP in Aofo.keys():
BWXx = Aofo[mWFP]
if isinstance(BWXx, Ky4Y):
if z8bU is None:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def baOo(YKHO):\n return str(YKHO.data)",
"def SwtT(YKHO):\n return YKHO.__data",
"def m6Me(YKHO):\n return YKHO.data",
"def BWXx(YKHO):\n return YKHO.data",
"def BWXx(YKHO):\n return YKHO._data",
"def LUcQ(YKHO) -> str:\n return YKHO._data",
"def nPrm(YKHO) -> lsD8:\n return YKHO.... | [
"0.80224276",
"0.80034554",
"0.7855756",
"0.7830044",
"0.770457",
"0.76859075",
"0.76510423",
"0.7610414",
"0.7610414",
"0.7602802",
"0.75899315",
"0.7589458",
"0.7542597",
"0.7536696",
"0.7492894",
"0.74532044",
"0.74181926",
"0.74181926",
"0.7417145",
"0.7401385",
"0.738547... | 0.0 | -1 |
Yield successive nsized chunks from l. | def yOAJ(vC9B, exwG=500):
return [vC9B[YRbF:YRbF + exwG] for YRbF in range(0, len(vC9B), exwG)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xJ0H(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B) + 1, exwG):\n yield vC9B[YRbF:YRbF + exwG]",
"def eHxA(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield vC9B[YRbF:YRbF + exwG]",
"def I7IE(vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield ... | [
"0.8038813",
"0.79248375",
"0.7923423",
"0.7885103",
"0.78773195",
"0.7815877",
"0.77655786",
"0.77556044",
"0.77441615",
"0.7731815",
"0.77288336",
"0.772473",
"0.77028215",
"0.76889825",
"0.76889825",
"0.7664208",
"0.76570904",
"0.7655856",
"0.7655856",
"0.76458347",
"0.764... | 0.0 | -1 |
Create an instrumented HTTPRequest. | def pXPL(QOe9, bD7m, MOPg=None):
QePW = X5Wl(url=bD7m)
if MOPg:
QePW.headers = MOPg
QOe9.record(QePW, X5Wl.getHttpMethodFilter())
return QePW | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vrjI(PNq_):\n QePW = VNUm(PNq_)\n yDgX.debug('trunctated request body: {b}'.format(b=QePW.body[:1000]))\n return QePW",
"def OnyA(YKHO, PNq_, **B2fa):\n i_PC = YKHO.get(t8Pm.ARequest)\n QePW = i_PC(PNq_, YKHO, **B2fa)\n YKHO._set_request_attributes(QePW)\n return QePW",
"def d9vn(pmON,... | [
"0.67230546",
"0.66555053",
"0.6651741",
"0.6575961",
"0.6562261",
"0.65184146",
"0.6476093",
"0.6465557",
"0.64025205",
"0.631071",
"0.6229605",
"0.6197536",
"0.61496973",
"0.6097831",
"0.60914624",
"0.60518444",
"0.6049532",
"0.6039979",
"0.6020602",
"0.5949816",
"0.5934418... | 0.7716881 | 0 |
Returns a dict of params from the ycsb_run_parameters flag. | def ZaCb() -> dict[str, str]:
Aofo = {}
for aoD7 in vPBo.ycsb_run_parameters:
xqoZ, BWXx = aoD7.split('=', 1)
Aofo[xqoZ] = BWXx
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bI4R(YKHO, NArs: Mapping[str, Any]) -> None:\n vPBo['ycsb_run_parameters'].unparse()\n vPBo['ycsb_run_parameters'].parse([f'{G1Hx}={Ty9i}' for G1Hx, Ty9i in NArs.items()])",
"def SGPK(YKHO) -> dict:\n return YKHO._config.get('parameters', dict())",
"def W6RH(YKHO, y4ha=False):\n return {'alpha'... | [
"0.66948956",
"0.5923262",
"0.58479077",
"0.5789917",
"0.5765965",
"0.5756437",
"0.5718607",
"0.57155716",
"0.56974375",
"0.56855994",
"0.56721765",
"0.5669373",
"0.56531686",
"0.55967754",
"0.55722505",
"0.5561609",
"0.5554578",
"0.5540062",
"0.5536931",
"0.5535345",
"0.5523... | 0.87356853 | 0 |
The default number of threads to use for prepopulating the DB. | def yiFD(YKHO):
if vPBo['ycsb_preload_threads'].present:
return vPBo.ycsb_preload_threads
return KQUX | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aomE(YKHO, mLGw):\n YKHO.threads = mLGw",
"def aomE(YKHO, mLGw):\n assert not YKHO.prepared, \"You can't change number of threads for working server\"\n YKHO.threads = mLGw",
"def aomE(YKHO, mLGw):\n assert not YKHO.prepared, \"You can't change number of threads for working server\"\n YKHO.t... | [
"0.7067771",
"0.6930396",
"0.68709207",
"0.67615354",
"0.6754983",
"0.65983903",
"0.64322984",
"0.6348108",
"0.62967575",
"0.62967575",
"0.6276028",
"0.62652",
"0.6182031",
"0.6152251",
"0.6095681",
"0.6083724",
"0.6024834",
"0.59771067",
"0.5969814",
"0.5929784",
"0.58990264... | 0.6221764 | 12 |
Updates the learning rate given the learning rate decay. The routine has been implemented according to the original Lua SGD optimizer | def e_63(K0do):
for uOe2 in K0do.param_groups:
if 'step' not in uOe2:
uOe2['step'] = 0.0
else:
uOe2['step'] += 1.0
uOe2['lr'] = qIxc.lr * (1.0 - float(uOe2['step']) * float(qIxc.batch_size) / (qIxc.n_triplets * float(qIxc.epochs)))
return | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fggk(YKHO) -> None:\n YKHO.epsilon = YKHO.initial_epsilon / (1.0 + YKHO.rate_decay * YKHO.n_it)\n return",
"def fggk(YKHO) -> None:\n YKHO.epsilon = YKHO.initial_epsilon / (1.0 + YKHO.rate_decay * YKHO.n_it)\n return",
"def e_63(qtWj, Xsfr, BkRq, f9Ey, K0do):\n paSp = oyIN.sum(qtWj > oyIN.as... | [
"0.79988384",
"0.79988384",
"0.79249567",
"0.78758794",
"0.7809007",
"0.7806507",
"0.7762988",
"0.7748166",
"0.772173",
"0.7702849",
"0.7683031",
"0.76521736",
"0.7619114",
"0.7617891",
"0.7549729",
"0.7540333",
"0.7535086",
"0.7533632",
"0.7533569",
"0.75322956",
"0.75260246... | 0.0 | -1 |
This function prints and plots the confusion matrix. Normalization can be applied by setting `normalize=True`. | def LwSz(nSFW, tGDF, NkkI=False, leAC='Confusion matrix', iMGt=QrM1.cm.Blues):
QrM1.imshow(nSFW, interpolation='nearest', cmap=iMGt)
QrM1.title(leAC)
QrM1.colorbar()
wIWT = oyIN.arange(len(tGDF))
QrM1.xticks(wIWT, tGDF, rotation=45)
QrM1.yticks(wIWT, tGDF)
if NkkI:
nSFW = nSFW.astype... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LwSz(Bcwd, KndY=[0, 1], NkkI=False, leAC='Confusion matrix', RMso=False):\n if NkkI:\n Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]\n print('Normalized confusion matrix')\n else:\n print('Confusion matrix, without normalization')\n if RMso:\n print(Bcwd)"... | [
"0.8193291",
"0.8094472",
"0.8027684",
"0.80178267",
"0.799257",
"0.7989883",
"0.7979287",
"0.7974278",
"0.79594076",
"0.79549026",
"0.79360807",
"0.79330444",
"0.7932846",
"0.7929725",
"0.79248244",
"0.7923015",
"0.7922415",
"0.7922163",
"0.7921376",
"0.79207855",
"0.791628"... | 0.0 | -1 |
Generator for the color sequence. It is randomly "seeded" and then each rgb goes up or down randomly | def qfpW(YPaw: int=10) -> AzJI[int, int, int]:
Mkmy, Oa1e, Fg_i = (Qc2B(0, 255), Qc2B(0, 255), Qc2B(0, 255))
wtU5 = True
Hpm1 = True
AomO = True
zIcC = Qc2B(YPaw)
u4rt = Qc2B(YPaw)
Fbcu = Qc2B(YPaw)
yield (Mkmy, Oa1e, Fg_i)
while True:
if wtU5:
Mkmy += zIcC
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xt3l():\n Mkmy = ajWY(0, 255)\n Oa1e = ajWY(0, 255)\n Fg_i = ajWY(0, 255)\n return [Mkmy, Oa1e, Fg_i]",
"def wfmz():\n while True:\n for qfpW in Jw9H:\n yield qfpW",
"def yTL5():\n return (ajWY(0, 255), ajWY(0, 255), ajWY(0, 255))",
"def IQKz(Lx35):\n Lx35",
"def ... | [
"0.74278164",
"0.71978843",
"0.7139568",
"0.6939284",
"0.6925582",
"0.69157034",
"0.6897582",
"0.68463475",
"0.6822519",
"0.6778793",
"0.6778223",
"0.6738795",
"0.67335933",
"0.66673774",
"0.65956414",
"0.6593177",
"0.6553693",
"0.65395474",
"0.6532598",
"0.65268457",
"0.6509... | 0.73016506 | 1 |
Test getting component empty versions in range from MAJOR.MINORPATCH. | def XSB4(YKHO):
YKHO._ucr({'repository/online/component/a/version': ''})
YKHO._uri({'%d.%d/maintained/%d.%d-%d/' % (Trr0, mo4p, Trr0, mo4p, LIz1): ''})
fUpG = KkY2.UCS_Version((Trr0, mo4p, 0))
W6Rl = YKHO.u._get_component_versions('a', start=fUpG, end=fUpG)
YKHO.assertEqual(set((fUpG,)), W6Rl) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e53k(YKHO):\n YKHO._ucr({'repository/online/component/a/version': '%d.%d-%d' % (Trr0, mo4p, LIz1)})\n fUpG = YKHO.u._get_component_versions('a', None, None)\n YKHO.assertEqual(set((KkY2.UCS_Version((Trr0, mo4p, LIz1)),)), fUpG)",
"def G59T(YKHO):\n YKHO._ucr({'repository/online/component/a/versio... | [
"0.74467665",
"0.6859184",
"0.65874076",
"0.648513",
"0.64732474",
"0.64317703",
"0.6412375",
"0.64121705",
"0.6403816",
"0.6393205",
"0.6385913",
"0.6382778",
"0.63452363",
"0.6313942",
"0.6247261",
"0.61991024",
"0.6138728",
"0.6116541",
"0.6090701",
"0.60709894",
"0.605947... | 0.79130685 | 0 |
Returns whether the server is running or not | def Bpvr(YKHO):
if YKHO._s.fileno() > 0 and YKHO._running and YKHO._listen:
return True
else:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mC5R(YKHO):\n return BfDw.ProcessIsRunning(YKHO._gocode_handle)",
"def YmXr():\n for NRWD in O0k5.process_iter():\n if 'owserver' in NRWD.name():\n return True\n return False",
"def jGRS(YKHO):\n Ii1o = YKHO.get_pidfile()\n HX9S = True\n if Ii1o is None:\n HX9S = ... | [
"0.8862922",
"0.79929316",
"0.7974306",
"0.78983366",
"0.7892844",
"0.7865346",
"0.7791096",
"0.7775764",
"0.7755854",
"0.7755854",
"0.7755854",
"0.77360624",
"0.76863444",
"0.76863444",
"0.76343846",
"0.762743",
"0.762743",
"0.76038724",
"0.7581231",
"0.75777066",
"0.7576585... | 0.73237807 | 43 |
Barplot of nightly sleep durations. Recommended range marked. | def n4r9(YKHO, a2vR=False, eGRE=False):
print('\nPlotting sleep data...')
jQ3Z = YKHO.df_event.loc[YKHO.df_event['Event'] == 'Sleep']
QrM1.bar([jQ3Z['Start'].iloc[YRbF].day_name() for YRbF in range(jQ3Z.shape[0])], jQ3Z['Durations'], color='slategrey', alpha=0.75, edgecolor='black')
QrM1.ylabel('Hours p... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kj9G(YKHO):\n WKvO = oyIN.arange(5)\n QrM1.bar(WKvO - 0.35 / 2, YKHO.data, 0.35, label='actual')\n QrM1.bar(WKvO + 0.35 / 2, YKHO.desired_values, 0.35, label='desired')\n QrM1.ylim(-5, 80)\n QrM1.legend()\n QrM1.draw()\n QrM1.pause(1e-06)\n QrM1.clf()",
"def CAiX(NCls: str) -> None:\n... | [
"0.5930588",
"0.572087",
"0.5711313",
"0.5601863",
"0.5520968",
"0.5519898",
"0.55038047",
"0.54938954",
"0.5372862",
"0.53438085",
"0.5312784",
"0.5302064",
"0.5295697",
"0.5282974",
"0.5249401",
"0.5238924",
"0.5202922",
"0.51951",
"0.51938933",
"0.51909465",
"0.5180666",
... | 0.5859894 | 1 |
write scheduling EndDate to bulk string | def LN4g(LEXu, id):
if LEXu is None:
return None
elif LEXu.EndDate is None:
return AVfJ if id and id > 0 else None
elif LEXu.EndDate.Day is None and LEXu.EndDate.Month is None and (LEXu.EndDate.Year is None):
return None
return '{0!s}/{1!s}/{2!s}'.format(LEXu.EndDate.Month, LEXu.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Avh4(YKHO, KhBf):\n global bulk_add_begin_date\n if KhBf != '' and qcWV.datetime.strptime(KhBf, '%m/%d/%Y') > m3tP:\n YKHO.set_value_into_input_field(YKHO.bulk_add_end_date_inputbox_locator, str(KhBf))\n elif KhBf == '':\n KhBf = YKHO.get_date(last_day_of_current_month=True)\n YKH... | [
"0.61734784",
"0.5950122",
"0.58844477",
"0.57380843",
"0.57380843",
"0.5677495",
"0.5643335",
"0.56185144",
"0.5611212",
"0.5601689",
"0.55821306",
"0.55783683",
"0.5567694",
"0.5565518",
"0.5539039",
"0.55244225",
"0.55244225",
"0.55244225",
"0.55244225",
"0.55244225",
"0.5... | 0.6244539 | 0 |
Update the camera position. | def nssa(YKHO, _1tc=False):
YKHO._renderer.set_camera(distance=YKHO._renderer.plotter.camera.distance * 0.9, focalpoint=tuple(YKHO._ras), reset_camera=False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QdZT(YKHO, WpIo=None):\n if WpIo is None:\n WpIo = IU4V()\n YKHO.orientation = WpIo.GetOrientation()\n YKHO.position = WpIo.GetPosition()\n YKHO.focus = WpIo.GetFocalPoint()\n YKHO.viewup = WpIo.GetViewUp()",
"def IRwR(YKHO, ZJUk):\n if type(ZJUk) is not q955:\n ZJUk = q955(ZJ... | [
"0.744775",
"0.7214561",
"0.7158388",
"0.71143943",
"0.703741",
"0.70116735",
"0.7000465",
"0.69939184",
"0.6969257",
"0.6928624",
"0.6888417",
"0.6848921",
"0.68303734",
"0.6765151",
"0.6723604",
"0.6699508",
"0.66889185",
"0.6674749",
"0.6665917",
"0.6646208",
"0.6637829",
... | 0.7423676 | 1 |
Translate a /separated PATH to the local filename syntax. Components that mean special things to the local file system (e.g. drive or directory names) are ignored. (XXX They should probably be diagnosed.) | def TLib(YKHO, pmON):
pmON = pmON.split('?', 1)[0]
pmON = pmON.split('#', 1)[0]
NGmD = pmON.rstrip().endswith('/')
try:
pmON = uRlK.parse.unquote(pmON, errors='surrogatepass')
except UnicodeDecodeError:
pmON = uRlK.parse.unquote(pmON)
pmON = Qumu.normpath(pmON)
V22M = pmON.sp... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C3oy(pmON):\n if 'win' in HwRy.platform:\n return pmON.replace('/', '\\\\')\n elif 'linux' in HwRy.platform:\n return pmON.replace('\\\\', '/')",
"def SLEg(pmON):\n pmON = HwSA.get_file_server().manglepath(str(pmON))\n pmON = Hy7s.path.abspath(pmON)\n pmON = HwSA.get_file_server(... | [
"0.69140327",
"0.6811669",
"0.67799675",
"0.66774404",
"0.66584295",
"0.6638346",
"0.6601214",
"0.6575706",
"0.65646315",
"0.65374815",
"0.65302485",
"0.65176374",
"0.65143293",
"0.65139204",
"0.6498907",
"0.64704174",
"0.6469495",
"0.6452223",
"0.64402705",
"0.6439241",
"0.6... | 0.6657851 | 5 |
Generate group (e.g. C "enum" type). These are concatenated together with other types. Add the enum type name to the 'enums' dictionary, with the value being an ordered list of the enumerant names. Add each enumerant name to the 'consts' dictionary, with the value being the enum type the enumerant is part of. | def i7RE(YKHO, dJg4, u0KH, vbQv):
I9M2.genGroup(YKHO, dJg4, u0KH, vbQv)
ui1M = dJg4.elem
YKHO.addName(YKHO.typeCategory, u0KH, 'group')
if vbQv:
YKHO.addName(YKHO.alias, u0KH, vbQv)
else:
True
SKR0 = [LihS.get('name') for LihS in ui1M.findall('enum')]
for mWFP in SKR0:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z9Dv(YKHO):\n for uOe2 in YKHO.used_enum_groups:\n if uOe2 not in YKHO.group_to_enum_list:\n print(f'Warning: Enum group {uOe2} has no values defined.')\n continue\n UeG8 = 'basic'\n if uOe2 in YKHO.bitmask_groups:\n UeG8 = 'bitmask'\n Fhk9 = set(... | [
"0.67443454",
"0.6126453",
"0.6024333",
"0.5869336",
"0.5850984",
"0.5827923",
"0.5813711",
"0.56191635",
"0.5546251",
"0.5536986",
"0.55277187",
"0.5520093",
"0.5515278",
"0.5471771",
"0.54267377",
"0.5314525",
"0.52616084",
"0.5180064",
"0.51773727",
"0.51655954",
"0.515277... | 0.6247051 | 1 |
Verify the property that xsorted == sorted. | def XqSI(onTE, gxEw):
DUrd(_7YC, onTE, gxEw) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DUrd(uOLG, onTE, gxEw):\n aEqx = list(sorted(onTE, reverse=gxEw))\n n5sN = list(uOLG(onTE, reverse=gxEw))\n assert n5sN == aEqx",
"def v4yH(YKHO):\n Bj_2 = oyIN.inf\n for UHFx in YKHO.Nx:\n if UHFx > Bj_2:\n YKHO.sorted = False\n return YKHO.sorted\n Bj_2 = ... | [
"0.7629415",
"0.70149463",
"0.67318696",
"0.6549031",
"0.64560336",
"0.6162829",
"0.61335486",
"0.59302354",
"0.58924294",
"0.5860514",
"0.5851347",
"0.5804417",
"0.5681689",
"0.56531733",
"0.56327933",
"0.5630003",
"0.56293845",
"0.55872023",
"0.5585125",
"0.55755395",
"0.55... | 0.76159215 | 1 |
Verify the property that xsorted should produce an ordered iterable. | def Cfxg(onTE, gxEw):
OaDb(_7YC, onTE, gxEw) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OaDb(uOLG, onTE, gxEw):\n n5sN = list(uOLG(onTE, reverse=gxEw))\n n5sN = reversed(n5sN) if gxEw else n5sN\n assert all((jzdc <= Fg_i for jzdc, Fg_i in K3Td(2, n5sN)))",
"def _0CL(sJpA, onTE, gxEw):\n OaDb(sJpA, onTE, gxEw)",
"def XqSI(onTE, gxEw):\n DUrd(_7YC, onTE, gxEw)",
"def DUrd(uOLG,... | [
"0.7792605",
"0.7388446",
"0.70257944",
"0.6780707",
"0.63109887",
"0.62131774",
"0.6202232",
"0.61454636",
"0.61454636",
"0.60784477",
"0.6048586",
"0.5940456",
"0.59095055",
"0.59035015",
"0.5902631",
"0.5871712",
"0.58603173",
"0.58316886",
"0.5824965",
"0.5819334",
"0.580... | 0.8188986 | 0 |
Get resource IAM Policy. | def aEAQ(YKHO, Eorv, V_D6=None, b7IC='getIamPolicy', sOHz=True, eKtj='resource', **B2fa):
Ltpw = {eKtj: Eorv, 'fields': V_D6}
if sOHz:
Ltpw['body'] = {}
if B2fa:
Ltpw.update(B2fa)
return YKHO.execute_query(verb=b7IC, verb_arguments=Ltpw) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None, Qabx: Optional[pulumi.Input[str]]=None, EszR: Optional[pulumi.Input[str]]=None) -> 'Policy':\n VKhi = qe4Y.ResourceOptions.merge(VKhi, qe4Y.ResourceOptions(id=id))\n r6DL = iZ2D.__new__(iZ2D)\n r6DL.__dict__['policy'] ... | [
"0.737802",
"0.72027254",
"0.7168323",
"0.69987875",
"0.6989532",
"0.6989532",
"0.6985019",
"0.6985019",
"0.69473743",
"0.6858023",
"0.68462265",
"0.6814277",
"0.6814277",
"0.6814277",
"0.6808341",
"0.6799874",
"0.6773801",
"0.6753809",
"0.6753809",
"0.6727978",
"0.66902864",... | 0.6777396 | 16 |
Get Effective Org Policy for a constraint on a resource. | def rJo3(YKHO, Eorv, oVM8, V_D6=None, b7IC='getEffectiveOrgPolicy', **B2fa):
Ltpw = {'resource': Eorv, 'fields': V_D6, 'body': {'constraint': oVM8}}
if B2fa:
Ltpw.update(B2fa)
return YKHO.execute_query(verb=b7IC, verb_arguments=Ltpw) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iRqF(YKHO, Eorv, oVM8, V_D6=None, b7IC='getOrgPolicy', **B2fa):\n Ltpw = {'resource': Eorv, 'fields': V_D6, 'body': {'constraint': oVM8}}\n if B2fa:\n Ltpw.update(B2fa)\n return YKHO.execute_query(verb=b7IC, verb_arguments=Ltpw)",
"def Qabx(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'poli... | [
"0.80968934",
"0.55864364",
"0.55730957",
"0.5420763",
"0.5420763",
"0.5420763",
"0.53861594",
"0.53700894",
"0.53700894",
"0.53700894",
"0.53462505",
"0.5341753",
"0.5341753",
"0.53294295",
"0.53294295",
"0.5326492",
"0.53021175",
"0.53021175",
"0.5291533",
"0.5241858",
"0.5... | 0.8355269 | 0 |
Get Org Policy for a constraint on a resource. | def iRqF(YKHO, Eorv, oVM8, V_D6=None, b7IC='getOrgPolicy', **B2fa):
Ltpw = {'resource': Eorv, 'fields': V_D6, 'body': {'constraint': oVM8}}
if B2fa:
Ltpw.update(B2fa)
return YKHO.execute_query(verb=b7IC, verb_arguments=Ltpw) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rJo3(YKHO, Eorv, oVM8, V_D6=None, b7IC='getEffectiveOrgPolicy', **B2fa):\n Ltpw = {'resource': Eorv, 'fields': V_D6, 'body': {'constraint': oVM8}}\n if B2fa:\n Ltpw.update(B2fa)\n return YKHO.execute_query(verb=b7IC, verb_arguments=Ltpw)",
"def Qabx(YKHO) -> h8nf[str]:\n return qe4Y.get(YK... | [
"0.7961799",
"0.5886614",
"0.5819734",
"0.5819734",
"0.5779746",
"0.5779746",
"0.57551897",
"0.57020646",
"0.57005817",
"0.57005817",
"0.57005817",
"0.5654182",
"0.5603372",
"0.5498181",
"0.5498181",
"0.5444847",
"0.5444847",
"0.5444847",
"0.5433712",
"0.5433712",
"0.5394664"... | 0.8525074 | 0 |
List Org Policies applied to the resource. | def IKJU(YKHO, Eorv, V_D6=None, zD4t=None, b7IC='listOrgPolicies', **B2fa):
Ltpw = {'resource': Eorv, 'fields': V_D6, 'body': {}}
if zD4t:
Ltpw['body']['pageSize'] = zD4t
if B2fa:
Ltpw.update(B2fa)
for _hkX in YKHO.execute_search_query(verb=b7IC, verb_arguments=Ltpw):
yield _hkX | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OKeV(YKHO):\n return YKHO.con.list_policies(Scope='Local')",
"def OKeV(YKHO):\n x0hE = YKHO.connect(JBXb)\n return x0hE.list_policies()",
"def som_(YKHO, QePW):\n som_ = zNlE(YKHO.store, YKHO.tenant_id, YKHO.group_id, YKHO.dispatcher)\n return som_.app.resource()",
"def som_(YKHO):\n re... | [
"0.71970636",
"0.70879877",
"0.66128635",
"0.65661865",
"0.6551817",
"0.654684",
"0.6342682",
"0.6245317",
"0.6225215",
"0.60776854",
"0.60655266",
"0.60427415",
"0.5977009",
"0.5938768",
"0.58819604",
"0.58642495",
"0.58478636",
"0.58033216",
"0.57905436",
"0.56130326",
"0.5... | 0.6953806 | 2 |
Patch an existing resource. | def Po4F(YKHO, Eorv, nPrm, pan_=None, b7IC='patch', **B2fa):
return YKHO._modify_resource(Eorv, nPrm, pan_, b7IC, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Po4F(YKHO, Po4F):\n if not Po4F:\n raise kIbg('Patch data is required to patch a resource')\n if not YKHO.id:\n raise kIbg('Resource ID is required to patch a resource')\n YKHO.read()\n YKHO.resource = YKHO.db.update({'resourceType': YKHO.resource_type, **YKHO.resource, **Po4F})\n ... | [
"0.7661577",
"0.73802227",
"0.69220495",
"0.6906",
"0.6873507",
"0.6873213",
"0.6850698",
"0.6842172",
"0.67620045",
"0.6717471",
"0.6662254",
"0.66605353",
"0.66089517",
"0.66089517",
"0.66089517",
"0.66027886",
"0.6560444",
"0.6553121",
"0.6546462",
"0.6542933",
"0.64986235... | 0.7844134 | 0 |
r"""Encodes raw boxes given centers, pix2pix_delta and anchor_wh. | def Jg8W(format: str, eKGI: Tensor, HB9X: Tensor, AXFq: Tensor, p8gi: Tensor, yrE6: Tensor, CIn9: float, AhCl: float):
if yrE6 is None:
p9iZ = _xWy(ht2j.cat((eKGI - AXFq / 2, eKGI + AXFq / 2), 1), p8gi)
yrE6 = p9iZ.max(1)[1].view(-1)
if format == 'normalized_offset':
bRSC = ht2j.cat(((eK... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rWlk(x17p, qvIa):\n oUSw = oyIN.zeros_like(x17p)\n EARX = x17p[..., 0] / K0JX * qvIa[:, 2] + qvIa[:, 0]\n yRWF = x17p[..., 1] / Y0cU * qvIa[:, 3] + qvIa[:, 1]\n yzQ0 = x17p[..., 2] / Nm5C * qvIa[:, 2]\n MKlR = x17p[..., 3] / QXpf * qvIa[:, 3]\n oUSw[..., 0] = yRWF - MKlR / 2.0\n oUSw[..., ... | [
"0.7009174",
"0.69290155",
"0.6579339",
"0.60633",
"0.5699406",
"0.5688749",
"0.56694555",
"0.5498821",
"0.5497921",
"0.5460848",
"0.54606533",
"0.5374587",
"0.53254455",
"0.52837175",
"0.52718014",
"0.52569646",
"0.52452517",
"0.5234323",
"0.52261466",
"0.52233034",
"0.52230... | 0.68190926 | 2 |
Get the default engines from all models Returns Dict[str, str] Default engines for all containers. If unspecified, it is not included in the return dictionary. | def lUBL() -> cuzp[str, str]:
yZ8i = {}
for id, SJ5G in zfVe.items():
yZ8i[id] = SJ5G[0]
return yZ8i | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k4Sz(YKHO):\n if not 'engines' in YKHO.data:\n raise ValueError(\"This recipe doesn't have engines\")\n return YKHO.data['engines']",
"def QUTX(YKHO) -> h8nf[bdIy['outputs.CSIPowerMaxSpecDriverCommonEnvs']]:\n return qe4Y.get(YKHO, 'envs')",
"def QUTX(YKHO) -> h8nf[bdIy['outputs.CSIPowerMax... | [
"0.5998883",
"0.56760895",
"0.56644964",
"0.5658955",
"0.5629387",
"0.5629387",
"0.55861753",
"0.5564469",
"0.5558145",
"0.5551069",
"0.5544916",
"0.55386555",
"0.55249786",
"0.5501973",
"0.5498729",
"0.5489851",
"0.5487371",
"0.5481599",
"0.5444088",
"0.5371857",
"0.53668284... | 0.79566383 | 1 |
ignores extraneous keys from input dict on new instance creation | def jG8h(YKHO, input):
return YKHO(**{G1Hx: Ty9i for G1Hx, Ty9i in input.items() if G1Hx in aadv(YKHO).parameters}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jG8h(Emd4, pKvt):\n return Emd4(**{G1Hx: Ty9i for G1Hx, Ty9i in pKvt.items() if G1Hx != '__class__'})",
"def jG8h(YKHO, fGC9=None):\n for H5ew in fGC9:\n if hasattr(YKHO, H5ew):\n setattr(YKHO, H5ew, fGC9[H5ew])",
"def FIMM(YKHO, *qIxc, **B2fa):\n dict.__init__(YKHO, *qIxc, **B2f... | [
"0.7129486",
"0.6526369",
"0.6342124",
"0.6279176",
"0.62700117",
"0.62422466",
"0.62361705",
"0.6193572",
"0.61546916",
"0.6115071",
"0.61140865",
"0.61010706",
"0.61010706",
"0.60888785",
"0.6074075",
"0.60718274",
"0.6054175",
"0.60502774",
"0.60370326",
"0.602564",
"0.599... | 0.63812256 | 2 |
Returns the selling price of a player | def NgUU(YKHO):
return YKHO.selling_price | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cS4H(YKHO, adHx):\n FUjE = open('./data/player_list.txt', 'r', encoding='utf8')\n for dhJN in FUjE:\n ODx9 = dhJN.strip('\\n').split(',')\n eTPk = int(ODx9[7])\n BCSG = int(adHx)\n yk4i = eTPk - BCSG\n UPbr = int(ODx9[9])\n tGw5 = int(ODx9[11])\n if yk4i =... | [
"0.7884559",
"0.7532802",
"0.7168616",
"0.7112445",
"0.7012568",
"0.6928714",
"0.68326706",
"0.68130773",
"0.68130773",
"0.68130773",
"0.68049467",
"0.6747823",
"0.67439103",
"0.6719963",
"0.6621075",
"0.6609548",
"0.65836906",
"0.656851",
"0.652503",
"0.6511323",
"0.6447306"... | 0.71145046 | 3 |
Handles enemies escaping (not being killed before moving through the grid | def TpUK(YKHO, icVf):
for JjEH in icVf:
YKHO._lives -= JjEH.live_damage
if YKHO._lives < 0:
YKHO._lives = 0
YKHO._status_bar.set_lives(YKHO._lives)
if YKHO._lives <= 0:
YKHO._handle_game_over(won=False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def K3oo(YKHO):\n for YRbF, nqAG in enumerate(YKHO.ennemies):\n Mkmy = tuKI.uniform(0, 1)\n if Mkmy > 0.2:\n if YKHO.ennemyText != None and YKHO.PAS != None and (YKHO.can != None):\n nqAG.strategy(YKHO, YKHO.ennemyText[YRbF], YKHO.PAS, YKHO.can)\n else:\n ... | [
"0.64112216",
"0.63977736",
"0.6351522",
"0.63048184",
"0.62286985",
"0.6213931",
"0.61666626",
"0.6138728",
"0.61089534",
"0.6095456",
"0.6091025",
"0.6075746",
"0.6035971",
"0.5959755",
"0.5867931",
"0.584102",
"0.5802222",
"0.57955927",
"0.5775505",
"0.5756822",
"0.5751632... | 0.7476436 | 0 |