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 |
|---|---|---|---|---|---|---|
Test that the items can be retrieved. | def cg1K(YKHO):
YKHO.assertEqual([('described_model_type', YKHO.expected_described_model)], list(YKHO.mapped_model.items())) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lItn(YKHO):\n _hkX = YKHO.app.get('/items')\n YKHO.assertEqual(_hkX.status_code, jGRS.HTTP_200_OK)\n nPrm = qQXR.loads(_hkX.data)\n YKHO.assertEqual(len(nPrm), 3)",
"def JEFk(YKHO, QmTQ):\n Aofo = JKCy.get_items_page(1, 'a', 1)\n assert Aofo.total == 97\n ZfUD = Aofo.items[0]\n assert... | [
"0.74696356",
"0.7277848",
"0.7122716",
"0.68902785",
"0.68500966",
"0.6840849",
"0.6809992",
"0.6799842",
"0.6778106",
"0.6757121",
"0.67133766",
"0.6710793",
"0.6653335",
"0.6622517",
"0.6612151",
"0.66074485",
"0.66016537",
"0.65803057",
"0.6577676",
"0.6576313",
"0.654119... | 0.62851614 | 47 |
fully connected layers or dense layer | def oGYF(PhLZ, uK2T):
FBfN = U78l.Linear(PhLZ, uK2T)
U78l.init.kaiming_normal_(FBfN.weight)
return FBfN | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tuA3(vHnr, gqIb, YDYE=ZylS.nn.relu, lzjZ='', nfqd=False):\n if not lzjZ:\n lzjZ = ''.join((str(WKvO) for WKvO in oyIN.random.randint(9, size=10)))\n yzQ0 = ZylS.Variable(ZylS.truncated_normal([int(vHnr.shape[1]), gqIb]), name='w_' + lzjZ)\n if nfqd:\n ZylS.summary.histogram('weights', yz... | [
"0.71426284",
"0.6833023",
"0.6805999",
"0.67833257",
"0.67681617",
"0.6711874",
"0.6682316",
"0.6651481",
"0.6631076",
"0.6611241",
"0.65508956",
"0.65147924",
"0.6511002",
"0.64513654",
"0.64409477",
"0.63658357",
"0.63640463",
"0.6321559",
"0.62621194",
"0.6261182",
"0.623... | 0.58284247 | 94 |
Returns Classroom in good representation for user | def zAg0(YKHO):
return 'Classroom {} has a capacity of {} persons and has the following equipment: {}.'.format(YKHO.number, str(YKHO.capacity), ', '.join(YKHO.equipment)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHJl(YKHO):\n return \"Classroom('{}', {}, {})\".format(YKHO.number, YKHO.capacity, str(YKHO.equipment))",
"def zAg0(YKHO):\n return YKHO.room_name",
"def zAg0(YKHO):\n return YKHO.room.name",
"def qQXR(YKHO):\n return {'name': YKHO.neighbourhood_group, 'neighbourhood': YKHO.room_type}",
"d... | [
"0.6388747",
"0.58620846",
"0.5832608",
"0.55203956",
"0.5508624",
"0.5427314",
"0.54227597",
"0.5291813",
"0.5283396",
"0.52249587",
"0.5194744",
"0.5179897",
"0.51505965",
"0.51442033",
"0.5131981",
"0.5128399",
"0.51204616",
"0.5106739",
"0.5105534",
"0.5094171",
"0.507423... | 0.5878091 | 1 |
Classroom, Classroom > bool Returns True if first room have bigger capacity then second room | def w9Ds(YKHO, FeLt):
return YKHO.capacity > FeLt.capacity | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jmxi(YKHO, Elif: Card) -> bool:\n return not YKHO.__le__(Elif)",
"def _WdZ(YKHO, Elif: 'EvalItem') -> bool:\n return YKHO.size <= Elif.size and Elif.result <= YKHO.result",
"def jmxi(YKHO, Elif):\n return YKHO.weight() > Elif.weight()",
"def jmxi(YKHO, Elif):\n if Elif.num_of_certified_applic... | [
"0.61225253",
"0.5890521",
"0.5887941",
"0.58851635",
"0.5883985",
"0.5871",
"0.5871",
"0.58323383",
"0.57970667",
"0.57674",
"0.57477105",
"0.57477105",
"0.5667831",
"0.5658871",
"0.56532055",
"0.5647148",
"0.56317246",
"0.56295174",
"0.5624304",
"0.55907315",
"0.5584328",
... | 0.73677325 | 0 |
Takes a datetime object and returns POSIX UTC in nanoseconds | def BLk4(i8WE):
return GRk0.timegm(i8WE.utctimetuple()) * int(1000.0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JrxT(JRYC):\n return arPL(JRYC - qtWj)",
"def vuh5(ZCQF=None):\n if not ZCQF:\n ZCQF = qcWV.datetime.utcnow()\n return epAf.ceil((ZCQF - zbhm).total_seconds())",
"def YkBn(_c1T):\n E3oo = xyXF.utc_to_gps(GRk0.timegm(_c1T.utctimetuple()))\n kU5D = _c1T.microsecond * 1000\n return (E... | [
"0.7196696",
"0.6794556",
"0.67814964",
"0.6744819",
"0.6744819",
"0.67223793",
"0.6684839",
"0.6624673",
"0.65977186",
"0.6539144",
"0.6514163",
"0.65055406",
"0.64669174",
"0.64562154",
"0.63818485",
"0.6372414",
"0.6349268",
"0.62804013",
"0.62467533",
"0.6239043",
"0.6236... | 0.6813911 | 1 |
Remove previous transaction DB and reinitialize the action objects so we don't have to worry about conflicts from reusing PDS ID's/DOI's between tests. | def FCbF(YKHO) -> None:
if Hy7s.path.isfile(YKHO.db_name):
Hy7s.remove(YKHO.db_name)
YKHO._list_action = qUdz(db_name=YKHO.db_name)
YKHO._reserve_action = mumK(db_name=YKHO.db_name)
YKHO._release_action = xcOm(db_name=YKHO.db_name) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SiRx():\n GTYX()\n Cc7Y()",
"def tBIc(YKHO):\n T74E.transaction_list = []",
"def tBIc(YKHO):\n NCls.session.rollback()\n NCls.drop_all()",
"def tBIc(YKHO):\n NCls.session.commit()\n NCls.drop_all()",
"def tBIc(YKHO):\n C3ST.DBSession.rollback()",
"def tBIc(YKHO):\n NCls.ses... | [
"0.69345915",
"0.6716611",
"0.66229075",
"0.6542029",
"0.65316594",
"0.6505639",
"0.64698505",
"0.6453844",
"0.6446514",
"0.6446514",
"0.64258087",
"0.64258087",
"0.63932043",
"0.6385942",
"0.636722",
"0.636722",
"0.636722",
"0.636722",
"0.636722",
"0.636722",
"0.636722",
"... | 0.6570783 | 3 |
Returns count of open changes per reviewer per project Fetches all open changes from gerrit, and returns a dictionary containing all projects with open changes, and for each project, all reviewers and the count of changes they are reviewing. e.g. { | def riLH():
GPtr = hUgu()
tCXw = ps_8.fetch_open_changes(GPtr.hostname(), GPtr.username(), GPtr.port())
oNJG = {}
for OLjJ in tCXw:
bNKA = OLjJ.project
wdw8 = OLjJ.reviewers
if not wdw8:
continue
wdw8[:] = [sJkv for sJkv in wdw8 if sJkv.name and 'Jenkins' not ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TQzA(B5PH):\n S6iz = FrSJ.get_open_change_reviewers_per_project()\n if B5PH not in S6iz and B5PH != tzY1:\n G9jH.warning('Project %s does not have any current reviewers', B5PH)\n return []\n if B5PH == tzY1:\n ICDw = CLd2(S6iz)\n else:\n ICDw = S6iz[B5PH]\n return dZY... | [
"0.6898937",
"0.6401227",
"0.62829226",
"0.61762327",
"0.61221975",
"0.6012132",
"0.58491695",
"0.56204873",
"0.5591274",
"0.5577237",
"0.54595",
"0.54480326",
"0.54340416",
"0.53901017",
"0.5334617",
"0.52910286",
"0.52823967",
"0.5252443",
"0.5237763",
"0.5233384",
"0.52304... | 0.87611914 | 0 |
Return an UTCaware datetime in case of USE_TZ=True. | def cKEZ(BWXx: datetime) -> qcWV:
if gCuF.USE_TZ:
BWXx = BWXx.replace(tzinfo=rIAI.utc)
return BWXx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CQ1B():\n Aues = qcWV.datetime.utcnow()\n assert Aues.tzinfo is None",
"def Hjpa():\n Aues = qcWV.datetime.utcnow()\n assert Aues.tzinfo is None\n assert Aues == qcWV.datetime(1970, 1, 1, 4)",
"def jm53(i8WE: datetime) -> qcWV:\n if i8WE.tzinfo is None:\n return qcWV(*i8WE.timetupl... | [
"0.7496584",
"0.72608817",
"0.71937054",
"0.71411216",
"0.71222836",
"0.7066944",
"0.7022482",
"0.6987124",
"0.6978549",
"0.696762",
"0.6947956",
"0.6856145",
"0.6847567",
"0.68384445",
"0.6833825",
"0.6821648",
"0.6819736",
"0.6792303",
"0.67815375",
"0.6744564",
"0.67071795... | 0.77953434 | 0 |
Return all Resume for job applied id. | def M9dc(ChRj):
return L_TV.query.filter(L_TV.job_applied_id == ChRj, L_TV.note_category == 'Resume').all() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aEEq(ChRj):\n return L_TV.query.filter(L_TV.job_applied_id == ChRj, L_TV.note_category == 'Recruiter Contact').all()",
"def Ws23():\n return Vh3D.query.all()",
"def kvfq(YKHO, rjee):\n oCfW = W7aK.get_job_by_id(rjee)\n YKHO.access_handler.check_resume(oCfW)\n YKHO.master.resume_job(oCfW)",
... | [
"0.5769213",
"0.56241286",
"0.55435765",
"0.54594284",
"0.5418937",
"0.53563815",
"0.53016",
"0.5262021",
"0.5253391",
"0.5253391",
"0.5225734",
"0.521197",
"0.51903236",
"0.5136629",
"0.51281595",
"0.51190066",
"0.5110543",
"0.5109377",
"0.50861925",
"0.5067618",
"0.50420934... | 0.8092352 | 0 |
Initializes the MLP with a number of inputs and outputs. Weights are initialized randomly with the specified seed. | def FIMM(YKHO, oug5, _mSQ, OR7m, BKEM):
if oug5 is None:
YKHO.weights = _mSQ
YKHO.has_bias = False
else:
YKHO.weights = [XTiz.vstack([oug5[G1Hx], _mSQ[G1Hx]]) for G1Hx in range(len(oug5))]
YKHO.has_bias = True
YKHO.hidden_activation = OR7m
YKHO.output_activation = BKEM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sTi3(YKHO, yokr=None):\n if yokr != None:\n oyIN.random.seed(yokr)\n YKHO.weights = oyIN.random.randn(YKHO.number_of_nodes, YKHO.input_dimensions)",
"def sTi3(YKHO, yokr=None):\n if yokr != None:\n oyIN.random.seed(yokr)\n YKHO.weights = oyIN.random.randn(YKHO.number_of_nodes, YKHO.... | [
"0.7367139",
"0.7290737",
"0.6733939",
"0.66796666",
"0.66537523",
"0.6579989",
"0.64707845",
"0.6466867",
"0.6453057",
"0.64230084",
"0.6421071",
"0.6394768",
"0.6393354",
"0.6384965",
"0.6360607",
"0.6356197",
"0.6325219",
"0.63211054",
"0.63164985",
"0.63026685",
"0.628809... | 0.0 | -1 |
Load an internal yaml node parsing, defaulting to a scalar value. | def Ysnk(Emd4, DWkG: yaml.Loader, Q6kx: yaml.Node) -> 'YamlModifier':
BWXx = DWkG.construct_scalar(laHg.cast(eJb6.ScalarNode, Q6kx))
return Emd4(BWXx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tELg(YKHO, Q6kx):\n _GFg = Hy7s.path.join(YKHO._root, YKHO.construct_scalar(Q6kx))\n with open(_GFg, 'r') as qEHH:\n return eJb6.load(qEHH, apZ7)",
"def Ysnk(Emd4, DWkG: yaml.Loader, Q6kx: yaml.Node) -> 'InjectString':\n m6Me = DWkG.construct_scalar(laHg.cast(eJb6.ScalarNode, Q6kx))\n BWXx... | [
"0.73322433",
"0.63728184",
"0.61908674",
"0.61466956",
"0.6134764",
"0.6104053",
"0.6015713",
"0.59930307",
"0.598406",
"0.59112525",
"0.5903671",
"0.5833151",
"0.5768858",
"0.5761115",
"0.57025176",
"0.5649191",
"0.5563314",
"0.55608124",
"0.5558609",
"0.5475866",
"0.542939... | 0.7018517 | 1 |
Parse yaml node into this class object for Lobotomy processing. | def JVxb(Emd4, DWkG: yaml.Loader, Q6kx: yaml.Node) -> 'YamlModifier':
return Emd4._from_yaml(DWkG, Q6kx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, Q6kx: yaml.Node) -> None:\n YKHO.yaml_node = Q6kx",
"def OXMy(Emd4, LVAh):\n return Emd4(eJb6.load(LVAh, sGP3))",
"def YEZ9(Emd4, JZXy):\n try:\n import bulletml.bulletyaml\n import yaml\n except ImportError:\n raise _OuM('PyYAML is not available')\n else:\n ... | [
"0.7190225",
"0.68135875",
"0.6604197",
"0.6597981",
"0.65922415",
"0.65773606",
"0.6518172",
"0.65123314",
"0.6395062",
"0.6377166",
"0.6372749",
"0.6344428",
"0.6335441",
"0.6274441",
"0.6237253",
"0.60822874",
"0.60467535",
"0.6043854",
"0.6027036",
"0.5990031",
"0.5938824... | 0.73717535 | 0 |
Register the comparator with the PyYaml loader. | def gr_i(Emd4):
eJb6.add_constructor(Emd4.label(), Emd4.parse_yaml)
eJb6.add_representer(Emd4, Emd4.dump_yaml) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c_2p(YKHO, GFDZ: dict):\n YKHO._comparator = GFDZ",
"def ZwJq(YKHO, GFDZ):\n YKHO._comparator = GFDZ",
"def WXCv(H5ew, yR_P):\n gr_i(H5ew, yR_P, QoGw)",
"def dFyb():\n nesi = eJb6.resolver.BaseResolver.DEFAULT_MAPPING_TAG\n\n def qYOK(or6r, nPrm):\n return or6r.represent_dict(nPrm.i... | [
"0.58455926",
"0.5207403",
"0.51714724",
"0.5046912",
"0.49322683",
"0.48709297",
"0.47904545",
"0.4760413",
"0.46908015",
"0.46855125",
"0.4660275",
"0.4592575",
"0.45680568",
"0.44943762",
"0.44933996",
"0.44847608",
"0.44837308",
"0.4481726",
"0.4451131",
"0.44410124",
"0.... | 0.5855883 | 0 |
Load an internal yaml node parsing. | def Ysnk(Emd4, DWkG: yaml.Loader, Q6kx: yaml.Node) -> 'ToJson':
try:
BWXx = DWkG.construct_mapping(Q6kx, deep=True)
except eJb6.constructor.ConstructorError:
BWXx = DWkG.construct_sequence(Q6kx, deep=True)
return Emd4(BWXx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tELg(YKHO, Q6kx):\n _GFg = Hy7s.path.join(YKHO._root, YKHO.construct_scalar(Q6kx))\n with open(_GFg, 'r') as qEHH:\n return eJb6.load(qEHH, apZ7)",
"def JVxb(Emd4, DWkG: yaml.Loader, Q6kx: yaml.Node) -> 'YamlModifier':\n return Emd4._from_yaml(DWkG, Q6kx)",
"def Tqk8(DWkG: SafeLineLoader, Q... | [
"0.73915166",
"0.71310484",
"0.673423",
"0.66889703",
"0.6588866",
"0.65676856",
"0.6481034",
"0.64551365",
"0.63675475",
"0.6336091",
"0.631003",
"0.6225353",
"0.6186448",
"0.61831933",
"0.61275",
"0.60967654",
"0.6024105",
"0.6010759",
"0.6009358",
"0.60079056",
"0.59998393... | 0.6249713 | 11 |
Load an internal yaml node parsing. | def Ysnk(Emd4, DWkG: yaml.Loader, Q6kx: yaml.Node) -> 'InjectString':
m6Me = DWkG.construct_scalar(laHg.cast(eJb6.ScalarNode, Q6kx))
BWXx = qQXR.loads(laHg.cast(str, m6Me).strip('"\''))
return Emd4(BWXx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tELg(YKHO, Q6kx):\n _GFg = Hy7s.path.join(YKHO._root, YKHO.construct_scalar(Q6kx))\n with open(_GFg, 'r') as qEHH:\n return eJb6.load(qEHH, apZ7)",
"def JVxb(Emd4, DWkG: yaml.Loader, Q6kx: yaml.Node) -> 'YamlModifier':\n return Emd4._from_yaml(DWkG, Q6kx)",
"def Tqk8(DWkG: SafeLineLoader, Q... | [
"0.73915166",
"0.71310484",
"0.673423",
"0.66889703",
"0.6588866",
"0.65676856",
"0.6481034",
"0.64551365",
"0.63675475",
"0.6336091",
"0.631003",
"0.6249713",
"0.6225353",
"0.6186448",
"0.61831933",
"0.61275",
"0.60967654",
"0.6024105",
"0.6010759",
"0.6009358",
"0.60079056"... | 0.55722076 | 63 |
Load an internal yaml node parsing. | def Ysnk(Emd4, DWkG: yaml.Loader, Q6kx: yaml.Node) -> 'BotoError':
BWXx = DWkG.construct_mapping(Q6kx, deep=True)
return Emd4(BWXx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tELg(YKHO, Q6kx):\n _GFg = Hy7s.path.join(YKHO._root, YKHO.construct_scalar(Q6kx))\n with open(_GFg, 'r') as qEHH:\n return eJb6.load(qEHH, apZ7)",
"def JVxb(Emd4, DWkG: yaml.Loader, Q6kx: yaml.Node) -> 'YamlModifier':\n return Emd4._from_yaml(DWkG, Q6kx)",
"def Tqk8(DWkG: SafeLineLoader, Q... | [
"0.73915166",
"0.71310484",
"0.673423",
"0.66889703",
"0.6588866",
"0.65676856",
"0.64551365",
"0.63675475",
"0.6336091",
"0.631003",
"0.6249713",
"0.6225353",
"0.6186448",
"0.61831933",
"0.61275",
"0.60967654",
"0.6024105",
"0.6010759",
"0.6009358",
"0.60079056",
"0.59998393... | 0.6481034 | 6 |
Returns the 2 endpoints of an array of points from a line | def wnQ_(rPMI):
A_IW = []
for XP5J in rPMI:
p06G = 0
for vexM in rPMI:
if oyIN.linalg.norm(XP5J - vexM) == 1:
p06G += 1
A_IW.append(p06G)
ZIhy = oyIN.where(oyIN.array(A_IW) == 1)
return rPMI[ZIhy] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wWri(Nqlg):\n bPRz = []\n for zFiD in Nqlg:\n for YRbF in [0, -1]:\n bPRz.append(zFiD.coords[YRbF])\n OKCj = set(bPRz)\n return [PvyL(XP5J) for XP5J in OKCj]",
"def Iry1(IW05, si3g, skBL):\n if IW05 is None:\n return None\n VMex, BlB8 = IW05\n o4D3 = int((si3g - ... | [
"0.75531864",
"0.7405382",
"0.69150645",
"0.6756434",
"0.6724094",
"0.6720841",
"0.66821533",
"0.6652843",
"0.6637193",
"0.65996283",
"0.65701735",
"0.6523543",
"0.6521626",
"0.65032506",
"0.6477672",
"0.64699537",
"0.64601064",
"0.6448242",
"0.6385857",
"0.63586706",
"0.6358... | 0.73925066 | 2 |
Returns true if the other session or sample has the same hardware specs as this one, false otherwise. | def gsiU(YKHO, Elif):
return YKHO.vendorId == Elif.vendorId and YKHO.deviceId == Elif.deviceId and (YKHO.physicalMemory == Elif.physicalMemory) and (YKHO.osInfo == Elif.osInfo) and (YKHO.cpuSpeed[0] == Elif.cpuSpeed[0]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qyh2(YKHO, Elif: 'PArray') -> bool:\n yZeb = YKHO._current_device_index\n return yZeb in Elif._array",
"def kUBT(DsmF, AhhR):\n if DsmF.is_power_onoff() and AhhR.is_power_onoff():\n return True\n if DsmF.number_windows() != AhhR.number_windows():\n return False\n if DsmF['speed']... | [
"0.6838293",
"0.666635",
"0.65126216",
"0.64928484",
"0.63411206",
"0.6300568",
"0.62982696",
"0.61403143",
"0.6127172",
"0.6109003",
"0.6074839",
"0.60358554",
"0.59964126",
"0.59953624",
"0.5989709",
"0.59614843",
"0.59588736",
"0.59384286",
"0.59161776",
"0.5901873",
"0.58... | 0.7975851 | 0 |
Validates that the two password inputs match. | def _Rkm(YKHO):
if YKHO.clean_data.get('password1', None) and YKHO.clean_data.get('password2', None) and (YKHO.clean_data['password1'] == YKHO.clean_data['password2']):
return YKHO.clean_data['password2']
raise H6V6.ValidationError(u'You must type the same password each time') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EvfH(GUUE: str, tTya: str) -> bool:\n if GUUE == tTya:\n return True\n else:\n raise ValueError('Пароли не совпадают')",
"def BhJx(YKHO):\n GUUE = YKHO.cleaned_data.get('password1')\n tTya = YKHO.cleaned_data.get('password2')\n if GUUE and tTya and (GUUE != tTya):\n raise ... | [
"0.79399914",
"0.7775991",
"0.75286",
"0.751961",
"0.7506222",
"0.7504838",
"0.745747",
"0.745747",
"0.74129796",
"0.7394356",
"0.7387584",
"0.7368053",
"0.73406",
"0.73406",
"0.7324741",
"0.73213553",
"0.73095393",
"0.7277372",
"0.72607356",
"0.72343296",
"0.7186055",
"0.7... | 0.71904254 | 20 |
Get a random element from the set. | def UIrZ(YKHO) -> int:
return YKHO.nums[tuKI.randint(0, len(YKHO.nums) - 1)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UIrZ(YKHO):\n return YKHO.nums[tuKI.randint(0, len(YKHO.nums) - 1)]",
"def UIrZ(YKHO):\n exwG = len(YKHO.keys)\n while exwG > 0:\n d6pt = tuKI.randint(0, exwG - 1)\n Ufrw = YKHO.keys[d6pt]\n if Ufrw in YKHO.ds:\n return Ufrw\n else:\n YKHO.keys[d6pt]... | [
"0.77060276",
"0.738916",
"0.7296881",
"0.72187954",
"0.6871744",
"0.68453854",
"0.68330806",
"0.67740154",
"0.67226046",
"0.6703282",
"0.6665089",
"0.66356236",
"0.66217655",
"0.6612035",
"0.66000897",
"0.6567767",
"0.6477719",
"0.6462421",
"0.64428514",
"0.64162946",
"0.640... | 0.0 | -1 |
Returns the qualified name of the identifier given using the namespace prefix. | def cVnI(YKHO, Ilxn):
j8eK = Ilxn if isinstance(Ilxn, jKi7.string_types) else Ilxn.uri if isinstance(Ilxn, vd32) else None
if j8eK and j8eK.startswith(YKHO._uri):
return Exyj(YKHO, j8eK[len(YKHO._uri):])
else:
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ca97(YKHO, y0cW):\n M0dE = YKHO.module.i_ctx.get_module(YKHO.module.i_prefixes[y0cW][0])\n return M0dE.search_one('namespace').arg",
"def NOzI(YKHO, CZgE):\n MOpt = YKHO._getPrefixDict()\n if MOpt.has_key(CZgE):\n y0cW = MOpt[CZgE]\n else:\n y0cW = 'ns1'\n while y0cW in MO... | [
"0.769194",
"0.7337281",
"0.7326206",
"0.7299526",
"0.72524375",
"0.7053602",
"0.69734764",
"0.69541156",
"0.6775588",
"0.6710584",
"0.67020273",
"0.66632754",
"0.66148424",
"0.65285033",
"0.6503347",
"0.64935726",
"0.64636904",
"0.64574414",
"0.6445418",
"0.6430217",
"0.6414... | 0.6731498 | 9 |
Sets the export_host of this ExportResponseMetadata. | def X5SK(YKHO, X5SK):
YKHO._export_host = X5SK | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jeUS(YKHO, jeUS):\n YKHO._response_host = jeUS",
"def jeUS(YKHO, jeUS):\n YKHO._response_host = jeUS",
"def KcEq(YKHO, KcEq):\n YKHO._host = KcEq",
"def KcEq(YKHO, KcEq):\n YKHO._host = KcEq",
"def KcEq(YKHO, KcEq):\n YKHO._host = KcEq",
"def KcEq(YKHO, KcEq):\n YKHO._host = KcEq",
... | [
"0.7138213",
"0.7138213",
"0.644298",
"0.644298",
"0.644298",
"0.644298",
"0.6365714",
"0.6363546",
"0.6119689",
"0.5977553",
"0.5908788",
"0.58681583",
"0.5725987",
"0.5704862",
"0.5632454",
"0.5604846",
"0.5604846",
"0.5506752",
"0.5506752",
"0.5476766",
"0.54253507",
"0.... | 0.8150576 | 0 |
Sets the requested_object_list of this ExportResponseMetadata. | def wdVf(YKHO, wdVf):
YKHO._requested_object_list = wdVf | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WxMY(YKHO, WxMY):\n YKHO._exported_object_list = WxMY",
"def uHe3(YKHO, v7Hv):\n YKHO.response_list = v7Hv",
"def wEv8(YKHO, ei4T: list):\n YKHO._objects = ei4T",
"def rPit(YKHO, xDcj, V_D6, BA9O, yKcO, qoqK, MHmF):\n qQTo = None\n try:\n WIlN = True\n if not MHmF:\n ... | [
"0.65758",
"0.58558273",
"0.5800644",
"0.5349972",
"0.51523393",
"0.5088856",
"0.5084719",
"0.5048292",
"0.50420725",
"0.5036184",
"0.50234246",
"0.50130266",
"0.4954567",
"0.4948551",
"0.49092585",
"0.49018076",
"0.49018076",
"0.48524174",
"0.48476678",
"0.47991368",
"0.4791... | 0.843938 | 0 |
Sets the exported_object_list of this ExportResponseMetadata. | def WxMY(YKHO, WxMY):
YKHO._exported_object_list = WxMY | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, X5SK=None, rKMs=None, wdVf=None, WxMY=None):\n YKHO._export_host = None\n YKHO._export_date = None\n YKHO._requested_object_list = None\n YKHO._exported_object_list = None\n YKHO.discriminator = None\n if X5SK is not None:\n YKHO.export_host = X5SK\n if rKMs is not None:\... | [
"0.57387066",
"0.572405",
"0.5720836",
"0.50837755",
"0.5052673",
"0.4954005",
"0.49233595",
"0.48638776",
"0.48131937",
"0.47819278",
"0.47225076",
"0.47225076",
"0.47171348",
"0.46870238",
"0.46680313",
"0.46198332",
"0.46057516",
"0.45436734",
"0.45278898",
"0.45272794",
"... | 0.8515711 | 0 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, NlbY):
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 |
Compute the softmax of each element along an axis of X. | def N93T(EcVT, q7In=1.0, jDK_=None):
LVAh = oyIN.atleast_2d(EcVT)
if jDK_ is None:
jDK_ = next((r845[0] for r845 in enumerate(LVAh.shape) if r845[1] > 1))
LVAh = LVAh * float(q7In)
LVAh = LVAh - oyIN.expand_dims(oyIN.max(LVAh, axis=jDK_), jDK_)
LVAh = oyIN.exp(LVAh)
GM4D = oyIN.expand_di... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N93T(YKHO, WKvO):\n yvT9 = oyIN.zeros(WKvO.shape)\n for YRbF in range(WKvO.shape[0]):\n IA3S = WKvO[YRbF] - oyIN.max(WKvO[YRbF])\n yvT9[YRbF] = oyIN.exp(IA3S) / oyIN.sum(oyIN.exp(IA3S), axis=0)\n return yvT9",
"def N93T(WKvO: npt.NDArray) -> eQHC.NDArray:\n Z5xZ = oyIN.max(WKvO, axi... | [
"0.86482805",
"0.8523447",
"0.8501702",
"0.8450376",
"0.8424998",
"0.8401389",
"0.83826745",
"0.8379566",
"0.83725315",
"0.8363791",
"0.83552516",
"0.83450276",
"0.8326659",
"0.8309501",
"0.8274441",
"0.82731706",
"0.8266031",
"0.8248805",
"0.8248805",
"0.8244989",
"0.824277"... | 0.0 | -1 |
Return the offset in hours from UTC as a float. | def EULI(YKHO):
for bGrB, U6D_ in QGpr.iterparse(YKHO.source):
if U6D_.tag == M7nw:
return float(U6D_.text or 0.0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YfmJ(YKHO) -> float:\n return YKHO.AD.tz.utcoffset(YKHO.datetime()).total_seconds() / 60",
"def mVXc():\n fCoM = qcWV.datetime.now() - qcWV.datetime.utcnow()\n return fCoM.total_seconds()",
"def nJdo() -> float:\n import time\n import datetime\n OeQj = time.time()\n UJxm = (datetime.da... | [
"0.70775425",
"0.6989547",
"0.6908614",
"0.67074597",
"0.6508781",
"0.64082044",
"0.6225916",
"0.6165682",
"0.61237943",
"0.6042478",
"0.6030816",
"0.59795976",
"0.58823085",
"0.5826774",
"0.57685786",
"0.5765773",
"0.57652164",
"0.5705759",
"0.5696149",
"0.5687313",
"0.56625... | 0.4868406 | 78 |
Localize tznaive TimeSeries to a fixedoffset time zone. Most time zones are offset from UTC by a whole number of hours, but a few are offset by 30 or 45 minutes. An offset of 0 is specialcased to return UTC. | def csYv(bOBl, ybCl=0, jth9=True):
return bOBl.tz_localize(lEjt(ybCl * 60), copy=jth9) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Bqzo(vgXP):\n if isinstance(vgXP, fCoM):\n vgXP = vgXP.total_seconds() // 60\n Zihr = '-' if vgXP < 0 else '+'\n nQIw = '%02d%02d' % divmod(abs(vgXP), 60)\n mWFP = Zihr + nQIw\n return rIAI(fCoM(minutes=vgXP), mWFP)",
"def Bqzo(vgXP):\n if isinstance(vgXP, fCoM):\n vgXP = vgXP... | [
"0.733858",
"0.73315036",
"0.7123728",
"0.6075806",
"0.5935274",
"0.58467084",
"0.5763584",
"0.5721623",
"0.5694093",
"0.56887317",
"0.56338304",
"0.5555357",
"0.555062",
"0.55430114",
"0.5529573",
"0.5487007",
"0.54707557",
"0.54601884",
"0.5453896",
"0.5438302",
"0.5430976"... | 0.64824516 | 3 |
Convert sequence of evenly spaced nonnegative ints to equivalent slice. If the returned slice object is `s = slice(start, stop, step)`, the | def Hsfy(d6pt):
if not len(d6pt):
return slice(None, 0, None)
if any((YRbF < 0 for YRbF in d6pt)):
raise ValueError(f'Could not convert {d6pt} to a slice (contains negative elements)')
ZSRk = set(oyIN.diff(d6pt))
YPaw = ZSRk.pop() if ZSRk else 1
if YPaw == 0 or ZSRk:
raise Va... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R6Bn(Q6uT, yKcO=None, JCyR=None, YPaw=None):\n return Q6uT[yKcO:JCyR:YPaw]",
"def bhtV(KCHu):\n yKcO, JCyR, YPaw = (KCHu.start, KCHu.stop, KCHu.step)\n if yKcO is None:\n yKcO = 0\n if YPaw is None:\n YPaw = 1\n if yKcO < 0 or YPaw < 0 or (JCyR is not None and JCyR < 0):\n ... | [
"0.8011135",
"0.7739454",
"0.74094546",
"0.72735506",
"0.717713",
"0.70792943",
"0.7041868",
"0.690513",
"0.6796296",
"0.6779164",
"0.6697571",
"0.6686825",
"0.66782004",
"0.66213644",
"0.6585468",
"0.6580096",
"0.647419",
"0.6415965",
"0.64123",
"0.63498336",
"0.63340086",
... | 0.7165115 | 5 |
Short humanfriendly string representation of lazy indexer object. | def wHJl(YKHO):
return "<katdal.{} '{}': shape {}, type {} at {:#x}>".format(YKHO.__class__.__name__, YKHO.name, YKHO.shape, YKHO.dtype, id(YKHO)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return '{}_human'.format(YKHO.index)",
"def zAg0(YKHO) -> str:\n return f'K{YKHO._index_to_unicode(YKHO.index)}'",
"def wHJl(YKHO):\n return str(YKHO.index)",
"def wHJl(YKHO):\n return '%s[%s]' % (YKHO.index_type, YKHO.query)",
"def nGaZ(YKHO):\n return '#{}'.format(YKHO.co... | [
"0.6915522",
"0.68598956",
"0.6718207",
"0.6625014",
"0.6598968",
"0.65907544",
"0.6485251",
"0.64300734",
"0.6380875",
"0.62672544",
"0.62349004",
"0.6124259",
"0.609269",
"0.60701317",
"0.60654444",
"0.6030815",
"0.60238296",
"0.59876156",
"0.59537524",
"0.5930237",
"0.5860... | 0.0 | -1 |
Extract a selected array from the underlying dataset. This applies the given secondstage index on top of the firststage index and retrieves the relevant data from the dataset as an array, optionally transforming it afterwards. | def OP2O(YKHO, uZq5):
qC1Y = len(YKHO.dataset.shape)
uZq5 = list(uZq5) if isinstance(uZq5, tuple) else [uZq5]
NhVh = tuple(uZq5)
uZq5 = uZq5[:qC1Y] + [slice(None)] * (qC1Y - len(uZq5))
uZq5 = [CBF7 if v0Sk is None else v0Sk[CBF7] for CBF7, v0Sk in zip(uZq5, YKHO._lookup)]
SuM2, PMDI = ([], [])
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EfUA(Sk_F, d6pt):\n if Sk_F is None or any((YRbF is None for YRbF in Sk_F)):\n return Sk_F\n return tuple((YRbF.ravel()[d6pt] for YRbF in Sk_F))",
"def OP2O(YKHO, d6pt: int) -> AzJI[ImMB, ImMB]:\n V52X, pan_ = (YKHO.data[d6pt], YKHO.targets[d6pt])\n if YKHO.transform is not None:\n ... | [
"0.5978752",
"0.57524294",
"0.5708342",
"0.55696416",
"0.556528",
"0.5534159",
"0.55027837",
"0.54934233",
"0.54812884",
"0.54775065",
"0.54741627",
"0.54486006",
"0.5447731",
"0.54420215",
"0.54378104",
"0.5379849",
"0.537284",
"0.5363644",
"0.5344681",
"0.5316661",
"0.53088... | 0.5002727 | 73 |
Extract a selected array from the underlying dataset. This applies the given secondstage index on top of the current dataset, which already has a firststage index and optional transforms applied to it. The indexer also finally stops being lazy and triggers dask computation to arrive at the output array. Both indexing s... | def OP2O(YKHO, uZq5):
return YKHO.get([YKHO], uZq5)[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xK2c(input, tpio, d6pt):\n RCd1 = [input.shape[0]] + [1 if YRbF != tpio else -1 for YRbF in range(1, len(input.shape))]\n Vloh = list(input.shape)\n Vloh[0] = -1\n Vloh[tpio] = -1\n d6pt = d6pt.view(RCd1).expand(Vloh)\n return ht2j.gather(input, tpio, d6pt)",
"def B5NT(Oa1e, khtY, XkN1):\n ... | [
"0.6476484",
"0.61325866",
"0.5939623",
"0.5834367",
"0.5815109",
"0.5787023",
"0.578326",
"0.5776111",
"0.56746083",
"0.563971",
"0.5628474",
"0.5548305",
"0.5501211",
"0.5498332",
"0.5483299",
"0.54740727",
"0.54704463",
"0.5469028",
"0.54643875",
"0.54544646",
"0.54269475"... | 0.0 | -1 |
Short humanfriendly string representation of indexer object. | def wHJl(YKHO):
return "<katdal.{} '{}': shape {}, type {} at {:#x}>".format(YKHO.__class__.__name__, YKHO.name, YKHO.shape, YKHO.dtype, id(YKHO)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO) -> str:\n return f'K{YKHO._index_to_unicode(YKHO.index)}'",
"def zAg0(YKHO):\n return '{}_human'.format(YKHO.index)",
"def wHJl(YKHO):\n return '%s[%s]' % (YKHO.index_type, YKHO.query)",
"def wHJl(YKHO):\n return str(YKHO.index)",
"def wHJl(YKHO) -> str:\n return f'{YKHO.__cla... | [
"0.7194278",
"0.7162457",
"0.711871",
"0.69272774",
"0.6822385",
"0.6694754",
"0.6636655",
"0.6632189",
"0.66048366",
"0.6591673",
"0.65751594",
"0.65524185",
"0.640755",
"0.63549006",
"0.62816143",
"0.61983436",
"0.6137607",
"0.6099416",
"0.60898465",
"0.6058687",
"0.6045976... | 0.0 | -1 |
Compute x @ y, broadcasting over the first `N 2` ranks. | def b3fq(WKvO, LVAh, mWFP):
with ZylS.variable_scope(mWFP) as rrBf:
return ZylS.reduce_sum(ZylS.nn.dropout(WKvO[..., ZylS.newaxis] * LVAh[..., ZylS.newaxis, :, :], 1), axis=-2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gQjt(WKvO, LVAh):\n exwG = WKvO.shape[0]\n Ylbp = oyIN.zeros(WKvO.shape)\n for YRbF in range(exwG):\n for r845 in range(exwG):\n for G1Hx in range(exwG):\n Ylbp[YRbF, r845] += WKvO[YRbF, G1Hx] * LVAh[G1Hx, r845]\n return Ylbp",
"def jXvc(WKvO, LVAh):\n return h... | [
"0.564049",
"0.5376758",
"0.5373917",
"0.53423446",
"0.53102696",
"0.5265047",
"0.5245262",
"0.5209597",
"0.5205773",
"0.51244324",
"0.51001847",
"0.5094103",
"0.5083796",
"0.5059849",
"0.5039474",
"0.50308985",
"0.50294924",
"0.49719357",
"0.49697846",
"0.49624175",
"0.49606... | 0.50320524 | 15 |
Shift input ids one token to the right, and wrap the last non pad token (usually ). | def DynO(YKHO, Pha6, AhI9):
dZmY = Pha6.clone()
bhDt = (Pha6.ne(AhI9).sum(dim=1) - 1).unsqueeze(-1)
dZmY[:, 0] = Pha6.gather(1, bhDt).squeeze()
dZmY[:, 1:] = Pha6[:, :-1]
return dZmY | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DynO(Pha6, AhI9):\n dZmY = Pha6.clone()\n bhDt = (Pha6.ne(AhI9).sum(dim=1) - 1).unsqueeze(-1)\n dZmY[:, 0] = Pha6.gather(1, bhDt).squeeze()\n dZmY[:, 1:] = Pha6[:, :-1]\n return dZmY",
"def DynO(YKHO, Pha6: torch.Tensor, AhI9: int, ba7w: int):\n nAJP = Pha6.new_zeros(Pha6.shape)\n nAJP[:... | [
"0.8174382",
"0.7355779",
"0.730172",
"0.62766033",
"0.5987434",
"0.59027076",
"0.5735923",
"0.5567176",
"0.5503809",
"0.54715633",
"0.54715633",
"0.54715633",
"0.5460714",
"0.54170334",
"0.5338661",
"0.53169227",
"0.52875674",
"0.52819985",
"0.5207631",
"0.51908386",
"0.5179... | 0.81405616 | 1 |
Use the current date, add ".0", to build a suffix for the Docker tag. | def Cwks() -> str:
wzkt = qcWV.datetime.now(tz=qcWV.timezone.utc).astimezone()
return wzkt.strftime('.%Y%m%d.0') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D9ia():\n return ITS7.strftime('%Y-%m-%d_%I.%M%p_')",
"def nCjo(YKHO, TZ9E):\n return YKHO.repository_name + ':' + TZ9E",
"def Yt3I():\n import pylab\n pylab.figtext(0.04, 0.02, str(qcWV.datetime.today())[:16], size=8)",
"def nkxS(YKHO, P4t4):\n return f'briefcase/{P4t4.bundle}.{P4t4.app_n... | [
"0.6210457",
"0.60344297",
"0.60149807",
"0.5938053",
"0.58830386",
"0.58757097",
"0.58196324",
"0.57140756",
"0.56970084",
"0.5608625",
"0.5577733",
"0.55712014",
"0.54981995",
"0.54633343",
"0.54130644",
"0.5384314",
"0.5372933",
"0.536144",
"0.53580433",
"0.5355393",
"0.53... | 0.7845467 | 0 |
Fill the missing values(NaN) in column with the mean value of the group the row belongs to. The rows are grouped based on the values of another column | def FSZV(jQ3Z, uOe2, iVRZ):
jQ3Z[iVRZ].fillna(jQ3Z.groupby(uOe2)[iVRZ].transform('mean'), inplace=True)
return jQ3Z | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hyKc(jQ3Z):\n jQ3Z = jQ3Z.fillna(jQ3Z.mean().fillna(0).to_dict())\n return jQ3Z",
"def JrF2(YKHO, afDV):\n JBMS = oyIN.mean(afDV)\n afDV = afDV.fillna(JBMS)\n return afDV",
"def mLJz(jQ3Z: pd.DataFrame) -> rLdf.DataFrame:\n dMYj = jQ3Z.count() / len(jQ3Z)\n WfCS = dMYj[dMYj < 1].index\... | [
"0.733223",
"0.6911329",
"0.6804728",
"0.6377485",
"0.63724154",
"0.6184612",
"0.6125718",
"0.61130387",
"0.61074495",
"0.60799503",
"0.6020397",
"0.6011322",
"0.6011322",
"0.59590447",
"0.58487135",
"0.5830829",
"0.5822329",
"0.58109444",
"0.57864994",
"0.57757205",
"0.57416... | 0.8269875 | 0 |
Build an actor (policy) network that maps states > actions. | def KVH6(YKHO, QTBn):
WKvO = vuvg.relu(YKHO.fc1(QTBn))
WKvO = vuvg.relu(YKHO.fc2(WKvO))
return vuvg.tanh(YKHO.fc3(WKvO)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def j1Fc(wspz, HQGy, NArs, h7Vl):\n NtOa = h7Vl + '/'\n with ZylS.variable_scope(h7Vl):\n OCat = ZylS.layers.dense(wspz, units=NArs.actor_hidden_units[0], activation=None, kernel_initializer=NArs.initializer)\n if NArs.use_batch_norm:\n OCat = ZylS.layers.layer_norm(OCat, center=True... | [
"0.6934474",
"0.6363443",
"0.6269951",
"0.6208458",
"0.6200558",
"0.6186873",
"0.6146386",
"0.61460924",
"0.6127505",
"0.6019301",
"0.60004425",
"0.5977054",
"0.59594935",
"0.5952402",
"0.59490156",
"0.5928663",
"0.59146357",
"0.58966",
"0.58931005",
"0.5890896",
"0.5879405",... | 0.0 | -1 |
Add a new experience to memory. | def H2v5(YKHO, QTBn, XeOP, vOGg, rxHc, _ins):
tTpl = YKHO.experience(QTBn, XeOP, vOGg, rxHc, _ins)
YKHO.memory.append(tTpl) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wOcu(YKHO, QTBn, XeOP, vOGg, rxHc, _ins):\n tTpl = YKHO.experience(QTBn, XeOP, vOGg, rxHc, _ins, YKHO.max_priority)\n YKHO.memory.append(tTpl)",
"def H2v5(YKHO, QTBn, XeOP, vOGg, rxHc, _ins):\n GsKL = XlZM(QTBn, XeOP, vOGg, rxHc, _ins)\n YKHO.memory.append(GsKL)",
"def H2v5(YKHO, GsKL):\n YK... | [
"0.79568833",
"0.79042006",
"0.78795445",
"0.7577913",
"0.7570969",
"0.74478436",
"0.7361023",
"0.72697705",
"0.721816",
"0.71451885",
"0.7106998",
"0.7101183",
"0.69837016",
"0.68905056",
"0.68842727",
"0.6755663",
"0.6712557",
"0.6677425",
"0.64961654",
"0.6488678",
"0.6486... | 0.71984994 | 19 |
Return the current size of internal memory. | def szAg(YKHO):
return len(YKHO.memory) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R8e4(YKHO) -> int:\n return len(YKHO.mem)",
"def R8e4(YKHO):\n return YKHO.bf.memory()",
"def ZGo4(YKHO):\n return YKHO.xlist('get-memsize')[1][0] * 1024",
"def zNig(YKHO):\n zNig = 0\n zNig += YKHO.data.size * HwRy.getsizeof(YKHO.data)\n return zNig / 1024.0 / 1024.0 / 1024.0",
"def ... | [
"0.8573752",
"0.82169205",
"0.8200361",
"0.8087402",
"0.8021614",
"0.7890747",
"0.78219426",
"0.78017354",
"0.77905464",
"0.7758844",
"0.77559924",
"0.77559924",
"0.775519",
"0.77544576",
"0.7733221",
"0.7732168",
"0.7720068",
"0.77145016",
"0.77092093",
"0.77077913",
"0.7697... | 0.75127405 | 56 |
Return a string suitable for use in progress messages as a short hint to what we're processing. If we have a PreReceiveTuple with a Git branch/tag name, return that name (minus any refs/heads/ prefix). If not, return None. | def XwzY(YKHO):
if not (YKHO._current_prt and YKHO._current_prt.ref):
return None
KCHu = YKHO._current_prt.ref
tX49 = ['refs/heads/', 'refs/tags/']
for XP5J in tX49:
if KCHu.startswith(XP5J):
return KCHu[len(XP5J):]
return KCHu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IFzv(jehQ):\n return jehQ.replace('refs/heads/', '')",
"def atzA():\n r8hN = cikR.match(KxpW)\n if r8hN:\n return r8hN.group(1)\n return fXtz",
"def JlIF(YKHO) -> str:\n kUBT = YKHO.status()\n if kUBT.branch_upstream is None:\n if kUBT.branch_head is None:\n raise... | [
"0.5595505",
"0.5560799",
"0.5542163",
"0.5362832",
"0.52647954",
"0.5257069",
"0.52282697",
"0.51733804",
"0.516051",
"0.5108076",
"0.51070267",
"0.51055515",
"0.50913596",
"0.50558054",
"0.5049445",
"0.5048159",
"0.5032945",
"0.502492",
"0.50247127",
"0.49994317",
"0.499059... | 0.5560326 | 2 |
Return loggable string for a single fe_commit['files'] element. | def Cc2S(wfv1):
Tuqy = ' '
if 'mode' in wfv1:
Tuqy = wfv1['mode']
B2KD = ' '
if 'sha1' in wfv1:
B2KD = vejr.abbrev(wfv1['sha1'])
return onL9('{mode} {action} {sha1} {path}').format(mode=Tuqy, action=wfv1['action'], sha1=B2KD, path=wfv1['path']) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mYVu(YKHO):\n dV7s = YKHO.app.current_file_index()\n RRlC = YKHO.app.get_files()\n MVVZ = RRlC[dV7s:] + RRlC[:dV7s]\n hkWs = []\n for eHNT in MVVZ:\n IznC = eHNT.name + ['', '*'][eHNT.is_changed()]\n if not hkWs:\n hkWs.append('[' + IznC + ']')\n else:\n ... | [
"0.6204323",
"0.5932406",
"0.5878049",
"0.57989603",
"0.57780176",
"0.57196337",
"0.5701259",
"0.55389786",
"0.5513501",
"0.54978555",
"0.5449646",
"0.54407847",
"0.5358694",
"0.5305338",
"0.5279703",
"0.52198076",
"0.52079505",
"0.52038187",
"0.51883763",
"0.51697344",
"0.51... | 0.57862025 | 4 |
Helper function to convert string to list. Used to convert shape attribute string to list format. | def Mlpe(RvVu):
dfOq = []
VDwR = RvVu.split(',')
for wEf2 in VDwR:
wEf2 = str(wEf2.strip())
wEf2 = wEf2.replace('(', '')
wEf2 = wEf2.replace(')', '')
wEf2 = wEf2.replace('L', '')
wEf2 = wEf2.replace('[', '')
wEf2 = wEf2.replace(']', '')
if wEf2 not in ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n0SL(input):\n if isinstance(input, str):\n return [input]\n else:\n return input",
"def mFWN(BWXx):\n if hasattr(BWXx, '__iter__') and (not isinstance(BWXx, str)):\n return list(BWXx)\n return [BWXx]",
"def CD8v(Emd4, Ty9i: Union[List[str], str]) -> x1iM[str]:\n if isin... | [
"0.73350626",
"0.7006628",
"0.69769",
"0.6960579",
"0.6908072",
"0.68899715",
"0.68545306",
"0.6836377",
"0.6827319",
"0.67761135",
"0.6765714",
"0.67551106",
"0.6631985",
"0.6618425",
"0.6563515",
"0.6554849",
"0.65231544",
"0.65141433",
"0.6511315",
"0.64754456",
"0.647153"... | 0.65169 | 17 |
Map MXNet's convolution operator attributes to onnx's Conv operator and return the created node. | def lUO8(Q6kx, **B2fa):
mWFP, uvt8, o8Kj = Zo7w(Q6kx, B2fa)
mreF = list(JfWs(o8Kj, 'kernel'))
C8ku = list(JfWs(o8Kj, 'stride', [1, 1]))
Uul3 = list(JfWs(o8Kj, 'pad', [0, 0]))
Cijt = int(o8Kj.get('num_group', 1))
mJgj = list(JfWs(o8Kj, 'dilate', [1, 1]))
Uul3 = Uul3 + Uul3
xlax = BlLG.hel... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Kukt(Emd4, khtY, dbXf):\n Q6kx = Emd4._common_singa_tensor_to_onnx_node(khtY, dbXf)\n G1Hx = [khtY.handle.kernel_h, khtY.handle.kernel_w]\n KCHu = [khtY.handle.stride_h, khtY.handle.stride_w]\n Rldr = khtY.odd_padding\n XP5J = [khtY.handle.pad_h + Rldr[0], khtY.handle.pad_w + Rldr[1], khtY.handl... | [
"0.69920486",
"0.66528916",
"0.6432573",
"0.59314674",
"0.59063995",
"0.5811342",
"0.5794324",
"0.57784176",
"0.57155585",
"0.5674647",
"0.5611912",
"0.5560294",
"0.552098",
"0.5466808",
"0.5450267",
"0.54139715",
"0.5381454",
"0.538118",
"0.53697866",
"0.5363581",
"0.5358975... | 0.7379639 | 0 |
Map MXNet's deconvolution operator attributes to onnx's ConvTranspose operator and return the created node. | def wAIH(Q6kx, **B2fa):
mWFP, g4y1, o8Kj = Zo7w(Q6kx, B2fa)
mreF = list(JfWs(o8Kj, 'kernel'))
C8ku = list(JfWs(o8Kj, 'stride', [1, 1]))
Uul3 = list(JfWs(o8Kj, 'pad', [0, 0]))
Cijt = int(o8Kj.get('num_group', 1))
mJgj = list(JfWs(o8Kj, 'dilate', [1, 1]))
yY9N = list(JfWs(o8Kj, 'adj', [0, 0]))... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def G7eJ(Emd4, khtY, dbXf):\n Q6kx = Emd4._common_singa_tensor_to_onnx_node(khtY, dbXf)\n Q6kx.attribute.extend([B0gN.make_attribute('perm', khtY.perm)])\n return Q6kx",
"def RzIw(pKvt):\n gt4n = pKvt.get_shape().as_list()[-1]\n WKvO = uVjH(filters=gt4n, kernel_size=4, strides=2, padding='same', u... | [
"0.6097374",
"0.601943",
"0.58937025",
"0.58428407",
"0.57710683",
"0.5762493",
"0.56841415",
"0.55704516",
"0.55147016",
"0.55106026",
"0.5437586",
"0.5421498",
"0.53722894",
"0.53698725",
"0.53527224",
"0.5335422",
"0.5334541",
"0.53216076",
"0.5319174",
"0.5318343",
"0.530... | 0.790625 | 0 |
Map MXNet's FullyConnected operator attributes to onnx's Gemm operator and return the created node. | def uRcV(Q6kx, **B2fa):
mWFP, uvt8, o8Kj = Zo7w(Q6kx, B2fa)
MuED = B2fa['initializer']
c6jX = Mqp0(o8Kj, 'no_bias')
nXwO = []
yhyn = 'flatten_' + str(B2fa['idx'])
C015 = BlLG.helper.make_node('Flatten', inputs=[uvt8[0]], outputs=[yhyn], name=yhyn)
uvt8[0] = yhyn
nXwO.append(C015)
if ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def reCF(Emd4, khtY, dbXf):\n Q6kx = Emd4._common_singa_tensor_to_onnx_node(khtY, dbXf)\n Q6kx.attribute.extend([B0gN.make_attribute('alpha', float(khtY.alpha)), B0gN.make_attribute('beta', float(khtY.beta)), B0gN.make_attribute('transA', khtY.transA), B0gN.make_attribute('transB', khtY.transB)])\n return... | [
"0.6879449",
"0.5942417",
"0.58318627",
"0.5746459",
"0.5413726",
"0.53791827",
"0.5367006",
"0.5331266",
"0.527826",
"0.5257274",
"0.52468914",
"0.5242588",
"0.5240532",
"0.51549006",
"0.515457",
"0.51430964",
"0.5114177",
"0.5093029",
"0.50854313",
"0.5052347",
"0.50358003"... | 0.5959116 | 1 |
Map MXNet's BatchNorm operator attributes to onnx's BatchNormalization operator and return the created node. | def F5o3(Q6kx, **B2fa):
mWFP, uvt8, o8Kj = Zo7w(Q6kx, B2fa)
H0zq = float(o8Kj.get('momentum', 0.9))
SGf8 = float(o8Kj.get('eps', 0.001))
MdRt = BlLG.helper.make_node('BatchNormalization', uvt8, [mWFP], name=mWFP, epsilon=SGf8, momentum=H0zq)
return [MdRt] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yMCP(Emd4, khtY, dbXf):\n _hZ2 = 1e-05\n MdRt = Emd4._common_singa_tensor_to_onnx_node(khtY, dbXf)\n MdRt.attribute.extend([B0gN.make_attribute('momentum', khtY.handle.factor), B0gN.make_attribute('epsilon', _hZ2)])\n Ziit = []\n DGwS = {'mean': khtY.running_mean, 'var': khtY.running_var}\n f... | [
"0.6464468",
"0.6376962",
"0.61264753",
"0.5883445",
"0.57059985",
"0.57012653",
"0.56393033",
"0.5572092",
"0.55718195",
"0.551708",
"0.54826975",
"0.5470176",
"0.5425131",
"0.5422429",
"0.54030514",
"0.5381643",
"0.5354029",
"0.5310859",
"0.52805203",
"0.5256326",
"0.522801... | 0.7146321 | 0 |
Map MXNet's cos operator attributes to onnx's Cos operator and return the created node. | def bcV3(Q6kx, **B2fa):
return PZJO('Cos', Q6kx, B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YhSR(YKHO):\n return type(YKHO)(YKHO.parent(), YKHO._simplify(YKHO._express.cos()))",
"def fm9S(Q6kx, **B2fa):\n return PZJO('Acos', Q6kx, B2fa)",
"def YhSR(YEnM):\n if isinstance(YEnM, iQnE):\n wEf2 = oyIN.cos(YEnM.val)\n vf2_ = -oyIN.sin(YEnM.val)\n if len(YEnM.der.shape) > ... | [
"0.68186814",
"0.64716417",
"0.6203887",
"0.6197016",
"0.6076361",
"0.60689795",
"0.6031383",
"0.5917666",
"0.5856112",
"0.5803058",
"0.5774136",
"0.57586396",
"0.5689945",
"0.56162506",
"0.56064403",
"0.5498463",
"0.5487711",
"0.5412239",
"0.53912306",
"0.53586626",
"0.53557... | 0.77887577 | 0 |
Map MXNet's asin operator attributes to onnx's asin operator and return the created node. | def UHXt(Q6kx, **B2fa):
return PZJO('Asin', Q6kx, B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LeGq(Emd4, vWye, g4y1, bwrw=cyDF):\n if vWye.op_type in Emd4._special_operators:\n bBb2 = getattr(Emd4, Emd4._special_operators[vWye.op_type])\n else:\n bBb2 = Emd4._common_onnx_node_to_singa_op\n return bBb2(vWye, g4y1, bwrw)",
"def Z6OX(YKHO):\n return type(YKHO)(YKHO.parent(), YK... | [
"0.5615745",
"0.5525026",
"0.5475919",
"0.5348382",
"0.52133733",
"0.512875",
"0.5086857",
"0.50501585",
"0.49973157",
"0.49967095",
"0.49640378",
"0.49598986",
"0.49447057",
"0.49313256",
"0.49242523",
"0.4889783",
"0.48892346",
"0.48825702",
"0.4869105",
"0.48690882",
"0.48... | 0.68138564 | 0 |
Map MXNet's sigmoid operator attributes to onnx's Sigmoid operator and return the created node. | def vAno(Q6kx, **B2fa):
return PZJO('Sigmoid', Q6kx, B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BxpZ(Emd4, khtY, dbXf):\n Q6kx = Emd4._common_singa_tensor_to_onnx_node(khtY, dbXf)\n Q6kx.attribute.extend([B0gN.make_attribute('alpha', khtY.alpha), B0gN.make_attribute('beta', khtY.gamma)])\n return Q6kx",
"def BxpZ(Emd4, vWye, g4y1, bwrw):\n Cwt5 = vWye.getattr('alpha', 0.2)\n UqYS = vWye.... | [
"0.7370613",
"0.7041682",
"0.6546022",
"0.648128",
"0.6382078",
"0.6377375",
"0.6302575",
"0.6283234",
"0.6230437",
"0.6167952",
"0.6156127",
"0.60304093",
"0.59833264",
"0.5979358",
"0.5970586",
"0.593866",
"0.59101063",
"0.5903408",
"0.5903408",
"0.5856696",
"0.58536077",
... | 0.7811297 | 0 |
Map MXNet's relu operator attributes to onnx's Relu operator and return the created node. | def SXYu(Q6kx, **B2fa):
return PZJO('Relu', Q6kx, B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eUPC(Emd4, khtY, dbXf):\n Q6kx = Emd4._common_singa_tensor_to_onnx_node(khtY, dbXf)\n Q6kx.attribute.extend([B0gN.make_attribute('alpha', khtY.alpha)])\n return Q6kx",
"def QZir(input, LpaZ=False):\n return o8DQ.apply('Relu', input.device, [input], outputs=[input if LpaZ else None], alpha=0.0)",
... | [
"0.6200267",
"0.60108554",
"0.57318294",
"0.57223237",
"0.55151415",
"0.5508822",
"0.55065703",
"0.5483933",
"0.5419298",
"0.5369124",
"0.53125054",
"0.52744555",
"0.52538085",
"0.5234616",
"0.5223587",
"0.52179486",
"0.51698667",
"0.51464564",
"0.51462084",
"0.51363164",
"0.... | 0.7071261 | 0 |
Map MXNet's Activation operator attributes to onnx's Tanh/Relu operator and return the created node. | def dzlE(Q6kx, **B2fa):
mWFP, uvt8, o8Kj = Zo7w(Q6kx, B2fa)
KLM6 = o8Kj['act_type']
tQzt = {'tanh': 'Tanh', 'relu': 'Relu', 'sigmoid': 'Sigmoid', 'softrelu': 'Softplus', 'softsign': 'Softsign'}
C4IK = tQzt.get(KLM6)
if C4IK:
Q6kx = BlLG.helper.make_node(C4IK, uvt8, [mWFP], name=mWFP)
els... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eUPC(Emd4, khtY, dbXf):\n Q6kx = Emd4._common_singa_tensor_to_onnx_node(khtY, dbXf)\n Q6kx.attribute.extend([B0gN.make_attribute('alpha', khtY.alpha)])\n return Q6kx",
"def reCF(Emd4, khtY, dbXf):\n Q6kx = Emd4._common_singa_tensor_to_onnx_node(khtY, dbXf)\n Q6kx.attribute.extend([B0gN.make_at... | [
"0.6525348",
"0.6170288",
"0.6057955",
"0.583563",
"0.5773526",
"0.5732154",
"0.55703044",
"0.5537313",
"0.54962003",
"0.5491791",
"0.54823685",
"0.548114",
"0.54719126",
"0.54137206",
"0.5379066",
"0.53318",
"0.5318398",
"0.53031856",
"0.5283017",
"0.52783245",
"0.5272741",
... | 0.6768296 | 0 |
Map MXNet's pad operator attributes to onnx's Pad operator and return the created node. | def UFlS(Q6kx, **B2fa):
mWFP, uvt8, o8Kj = Zo7w(Q6kx, B2fa)
F2V0 = Mlpe(o8Kj.get('pad_width'))
R8yb = jkaF(F2V0)
uOxW = o8Kj.get('mode')
if uOxW == 'constant':
KHPh = float(o8Kj.get('constant_value')) if 'constant_value' in o8Kj else 0.0
Q6kx = BlLG.helper.make_node('Pad', inputs=uvt... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pnt_(vWye):\n a5kz = vWye.get_attribute_value('auto_pad')\n UP6E = vWye.get_attribute_value('pads', ())\n RndV = vWye.get_attribute_value('kernel_shape')\n if a5kz:\n if a5kz == 'VALID':\n UP6E = [0, 0] * len(RndV)\n else:\n\n def KHPh(pNRf):\n ret... | [
"0.57889557",
"0.5579466",
"0.54904",
"0.5398082",
"0.52853227",
"0.5275017",
"0.5262226",
"0.52524114",
"0.51949155",
"0.51621807",
"0.5159108",
"0.508906",
"0.50823164",
"0.5075376",
"0.5003475",
"0.49345222",
"0.49055016",
"0.49049303",
"0.49036154",
"0.4897707",
"0.488882... | 0.7317738 | 0 |
Map MXNet's dot operator attributes to onnx's MatMul and Transpose operators based on the values set for transpose_a, transpose_b attributes. | def pgfN(Q6kx, **B2fa):
mWFP, uvt8, o8Kj = Zo7w(Q6kx, B2fa)
cTuL = uvt8[0]
BpN1 = uvt8[1]
OCA6 = None
uugB = None
nMM9 = Mqp0(o8Kj, 'transpose_a')
u9h_ = Mqp0(o8Kj, 'transpose_b')
yhyn = 'transpose' + str(B2fa['idx'])
if nMM9:
cTuL = yhyn + '_a'
OCA6, = madU(uvt8[0], ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CZna(YKHO, Elif):\n from divisi2 import operators\n return operators.transpose_dot(YKHO, Elif)",
"def tSJY(yhyn, o8Kj, ZWtV=None, M4a2=None):\n ZWtV = ZWtV if ZWtV else l0PR\n M4a2 = M4a2 if M4a2 else CJJp\n if yhyn in ZWtV:\n pass\n elif yhyn in M4a2:\n yhyn, o8Kj = M4a2[yhyn... | [
"0.5712867",
"0.56176335",
"0.554931",
"0.5514312",
"0.5504516",
"0.54418373",
"0.5436186",
"0.54350364",
"0.54332083",
"0.5432765",
"0.5416694",
"0.53294843",
"0.53082806",
"0.5298505",
"0.52948254",
"0.5290505",
"0.52547127",
"0.52381",
"0.5236047",
"0.5189316",
"0.5149108"... | 0.6954135 | 0 |
Map MXNet's Pooling operator attributes to onnx's MaxPool/AveragePool/GlobalMaxPool/GlobalAveragePool operators based on the input node's attributes and return the created node. | def CBIN(Q6kx, **B2fa):
mWFP, uvt8, o8Kj = Zo7w(Q6kx, B2fa)
WZcn = eval(o8Kj['kernel'])
QLje = o8Kj['pool_type'] if o8Kj.get('pool_type') else 'max'
_0fC = eval(o8Kj['stride']) if o8Kj.get('stride') else (1, 1)
VhhE = Mqp0(o8Kj, 'global_pool')
qpV3 = o8Kj.get('p_value', 'None')
tkK2 = o8Kj.g... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def X29t(Q6kx, **B2fa):\n mWFP, uvt8, o8Kj = Zo7w(Q6kx, B2fa)\n zQI_ = Mlpe(o8Kj.get('pooled_size'))\n NXpY = float(o8Kj.get('spatial_scale'))\n Q6kx = BlLG.helper.make_node('MaxRoiPool', uvt8, [mWFP], pooled_shape=zQI_, spatial_scale=NXpY, name=mWFP)\n return [Q6kx]",
"def QCTS(YKHO, yhyn, g4y1, ... | [
"0.6422184",
"0.6282772",
"0.61572933",
"0.6030548",
"0.59187293",
"0.5839444",
"0.5670332",
"0.55067396",
"0.546821",
"0.53994155",
"0.5370744",
"0.5343035",
"0.52772164",
"0.5261299",
"0.5253784",
"0.52436227",
"0.5200312",
"0.51936644",
"0.51801187",
"0.51740825",
"0.51138... | 0.7350024 | 0 |
Map MXNet's exp operator attributes to onnx's Exp operator and return the created node. | def NTmi(Q6kx, **B2fa):
return PZJO('Exp', Q6kx, B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kLQb(YKHO):\n return type(YKHO)(YKHO.parent(), YKHO._simplify(YKHO._express.exp()))",
"def kLQb(YKHO: Float[LinearOperator, '*batch M N']) -> auK0[qlPq, '*batch M N']:\n return YKHO.__class__(YKHO._diag.exp())",
"def VN2L(YKHO):\n return YKHO._express",
"def Rpla(*qIxc, **_Wat) -> aM69.Expon:\n ... | [
"0.63551813",
"0.6045158",
"0.5848142",
"0.58281314",
"0.5785661",
"0.5784021",
"0.5707887",
"0.56942314",
"0.5616022",
"0.5590413",
"0.5572627",
"0.5540329",
"0.5512824",
"0.5411621",
"0.53919",
"0.5374348",
"0.535856",
"0.5315022",
"0.5296157",
"0.5277749",
"0.52776116",
... | 0.7500115 | 0 |
Map MXNet's _copy operator attributes to onnx's Identity operator and return the created node. | def _LbC(Q6kx, **B2fa):
return PZJO('Identity', Q6kx, B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i3ak(YKHO):\n U7YL = YKHO.__class__(YKHO.op, YKHO.inputs, [hlel.clone() for hlel in YKHO.outputs])\n U7YL.tag = jth9(YKHO.tag)\n return U7YL",
"def ucru(YKHO) -> 'Individual':\n return GkPB(YKHO.main_node.copy(), to_pipeline=YKHO._to_pipeline)",
"def nrOS(YKHO):\n Esd_ = o7DN()\n Esd_.op ... | [
"0.6040742",
"0.59664553",
"0.59002656",
"0.58588904",
"0.5807119",
"0.5798085",
"0.572463",
"0.57207906",
"0.56919736",
"0.56849563",
"0.567741",
"0.5644937",
"0.55868983",
"0.55787975",
"0.5568176",
"0.55487376",
"0.5499865",
"0.5467768",
"0.5450066",
"0.5446349",
"0.543404... | 0.7632108 | 0 |
Map MXNet's LeakyReLU operator attributes to onnx's Elu/LeakyRelu/PRelu operators based on the input node's attributes and return the created node. | def Ksr6(Q6kx, **B2fa):
mWFP, uvt8, o8Kj = Zo7w(Q6kx, B2fa)
MuED = B2fa['initializer']
KLM6 = o8Kj.get('act_type', 'leaky')
Cwt5 = float(o8Kj.get('slope', 0.25))
C4IK = {'elu': 'Elu', 'leaky': 'LeakyRelu', 'prelu': 'PRelu', 'selu': 'Selu'}
Vcfj = 'reshape' + str(B2fa['idx'])
lt9u = BlLG.mapp... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hgPV(Emd4, vWye, g4y1, bwrw):\n Cwt5 = vWye.getattr('alpha', 0.01)\n bGrB, KVH6 = Emd4._common_onnx_node_to_singa_op(vWye, g4y1, bwrw)\n return (bGrB, KVH6(Cwt5))",
"def SXYu(Q6kx, **B2fa):\n return PZJO('Relu', Q6kx, B2fa)",
"def eUPC(Emd4, khtY, dbXf):\n Q6kx = Emd4._common_singa_tensor_to... | [
"0.6645275",
"0.64907336",
"0.64269954",
"0.6418857",
"0.6116449",
"0.59967774",
"0.5878855",
"0.5858891",
"0.5726611",
"0.567721",
"0.5667963",
"0.56440437",
"0.55542094",
"0.5381494",
"0.5375752",
"0.5368928",
"0.535867",
"0.5342397",
"0.5317905",
"0.5286128",
"0.5262697",
... | 0.67764103 | 0 |
Map MXNet's softmax operator attributes to onnx's Softmax operator and return the created node. | def texz(Q6kx, **B2fa):
mWFP, uvt8, o8Kj = Zo7w(Q6kx, B2fa)
jDK_ = int(o8Kj.get('axis', -1))
ElqX = []
jDK_ = -1
kVTi = BlLG.helper.make_node('Transpose', inputs=uvt8, perm=(0, 2, 3, 1), name=mWFP + '_tr1', outputs=[mWFP + '_tr1'])
FDJo = BlLG.helper.make_node('Softmax', inputs=[mWFP + '_tr1'], ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NNr8(Emd4, khtY, dbXf):\n Q6kx = Emd4._common_singa_tensor_to_onnx_node(khtY, dbXf)\n Q6kx.attribute.extend([B0gN.make_attribute('axis', khtY.axis)])\n return Q6kx",
"def NNr8(Emd4, vWye, g4y1, bwrw):\n aM8h = vWye.getattr('axis', 1)\n if aM8h < 0:\n aM8h = len(g4y1[0].shape) + aM8h\n ... | [
"0.7634255",
"0.681238",
"0.6320847",
"0.6268783",
"0.6250723",
"0.58051175",
"0.57759976",
"0.5714223",
"0.5651559",
"0.5626642",
"0.5621024",
"0.56144696",
"0.5528945",
"0.54495025",
"0.54494274",
"0.54198587",
"0.54136854",
"0.5412554",
"0.54050344",
"0.5390913",
"0.538304... | 0.6541797 | 2 |
Map MXNet's RNN operator attributes to onnx's RNN operator and return the created node. | def y17s(Q6kx, **B2fa):
mWFP, uvt8, o8Kj = Zo7w(Q6kx, B2fa)
Ziit = []
Tuqy = o8Kj['mode'].upper()
yoTc = {}
if Tuqy != 'LSTM':
raise NotImplementedError('Only LSTM mode RNN conversion to ONNX is currently supported.')
wjbX = yoTc['hidden_size'] = int(o8Kj.get('state_size'))
if eval(o... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def inPM(Emd4, khtY, dbXf):\n Q6kx = Emd4._common_singa_tensor_to_onnx_node(khtY, dbXf)\n K6m2 = {vhpA.float32: V2As.FLOAT, vhpA.int32: V2As.INT32}\n Q6kx.attribute.extend([B0gN.make_attribute('to', K6m2[khtY.to])])\n return Q6kx",
"def zcnN(Emd4, khtY, dbXf):\n bXc0 = YCUn()\n bXc0.name = khtY... | [
"0.573704",
"0.5696308",
"0.5613529",
"0.56037074",
"0.55654407",
"0.5430018",
"0.54215723",
"0.5411738",
"0.540513",
"0.5397167",
"0.5390512",
"0.5343584",
"0.53244823",
"0.53124344",
"0.5312318",
"0.5296085",
"0.5295705",
"0.52775544",
"0.5250277",
"0.52421296",
"0.52008814... | 0.6088374 | 0 |
Map MXNet's LRN operator attributes to onnx's LRN operator and return the created node. | def DWS1(Q6kx, **B2fa):
mWFP, uvt8, o8Kj = Zo7w(Q6kx, B2fa)
Cwt5 = float(o8Kj.get('alpha', 0.0001))
UqYS = float(o8Kj.get('beta', 0.75))
oug5 = float(o8Kj.get('knorm', 1.0))
zNig = int(o8Kj.get('nsize'))
AnV4 = BlLG.helper.make_node('LRN', inputs=uvt8, outputs=[mWFP], name=mWFP, alpha=Cwt5, beta... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def L59b(YKHO, fHgE):\n return YCiQ.calcLnLFromNode(YKHO, fHgE)",
"def GBnY(Emd4, o8Kj):\n if o8Kj.get_int('axis') != 1:\n raise RuntimeError(f'Unsupported axis {o8Kj.get_int('axis')} in operator relay lrn operator. Only axis = 1 is supported by Onnx.')\n return {'alpha': o8Kj.alpha, 'beta': o8Kj... | [
"0.5615053",
"0.5551711",
"0.5397873",
"0.5347614",
"0.53341866",
"0.5257164",
"0.5226096",
"0.5202186",
"0.5176221",
"0.5120736",
"0.5096025",
"0.5051921",
"0.50324756",
"0.5027518",
"0.50227654",
"0.49056938",
"0.48989987",
"0.48988622",
"0.4888863",
"0.4885868",
"0.4884632... | 0.6714993 | 0 |
Map MXNet's L2Normalization operator attributes to onnx's LpNormalization operator and return the created node. | def LKlL(Q6kx, **B2fa):
mWFP, uvt8, o8Kj = Zo7w(Q6kx, B2fa)
Tuqy = o8Kj.get('mode', 'instance')
if Tuqy != 'channel':
raise AttributeError('L2Normalization: ONNX currently supports channel mode only')
ofIH = BlLG.helper.make_node('LpNormalization', uvt8, [mWFP], axis=1, name=mWFP)
return [of... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rn5K(Oa1e, khtY, XkN1):\n WKvO = Oa1e.get_node(khtY.input('X')[0])\n jDK_ = khtY.attr('axis')\n WruT = [jDK_]\n _hZ2 = khtY.attr('epsilon')\n yvT9 = Bchp.nn.l2_normalize(WKvO, _hZ2, WruT)\n Oa1e.add_node(khtY.output('Out')[0], yvT9)",
"def rn5K(Q6kx, **B2fa):\n mWFP, uvt8, o8Kj = Zo7w(Q6... | [
"0.59415656",
"0.5882721",
"0.58236057",
"0.5708504",
"0.5625045",
"0.54728884",
"0.54538465",
"0.53243077",
"0.5301751",
"0.52801716",
"0.5251732",
"0.51723593",
"0.5098865",
"0.50875914",
"0.5062995",
"0.5036322",
"0.5006597",
"0.4991197",
"0.49699366",
"0.49565876",
"0.491... | 0.71821564 | 0 |
Map MXNet's Dropout operator attributes to onnx's Dropout operator and return the created node. | def bCvf(Q6kx, **B2fa):
mWFP, uvt8, o8Kj = Zo7w(Q6kx, B2fa)
Q7Be = float(o8Kj.get('p', 0.5))
Q7Be = oyIN.array(Q7Be, dtype=oyIN.float32)
Lq2W = False
Lq2W = oyIN.array(Lq2W, dtype=oyIN.bool)
tdyi = vtfk(Q7Be, mWFP + '_ratio', B2fa)
tdyi = vtfk(Lq2W, mWFP + '_mode', B2fa)
aRLB = BlLG.help... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iFRT(Emd4, khtY, dbXf):\n Q6kx = Emd4._common_singa_tensor_to_onnx_node(khtY, dbXf)\n Q6kx.attribute.extend([B0gN.make_attribute('ratio', khtY.ratio)])\n return Q6kx",
"def iFRT(Emd4, vWye, g4y1, bwrw):\n dMYj = vWye.getattr('ratio', 0)\n bGrB, KVH6 = Emd4._common_onnx_node_to_singa_op(vWye, g... | [
"0.7353928",
"0.65540075",
"0.6395461",
"0.6285999",
"0.5709964",
"0.55830383",
"0.55629826",
"0.55001",
"0.5478698",
"0.5474093",
"0.546457",
"0.53771776",
"0.53521633",
"0.5260273",
"0.5242218",
"0.51851434",
"0.5174336",
"0.5164886",
"0.5147427",
"0.51048636",
"0.5103446",... | 0.7049092 | 1 |
Map MXNet's argmax operator attributes to onnx's ArgMax operator and return the created node. | def UAVk(Q6kx, **B2fa):
mWFP, uvt8, o8Kj = Zo7w(Q6kx, B2fa)
jDK_ = int(o8Kj.get('axis'))
JsoO = Mqp0(o8Kj, 'keepdims')
Q6kx = BlLG.helper.make_node('ArgMax', inputs=uvt8, axis=jDK_, keepdims=JsoO, outputs=[mWFP], name=mWFP)
return [Q6kx] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BK5q(Q6kx, **B2fa):\n return PZJO('Max', Q6kx, B2fa)",
"def IIbJ(Q6kx, **B2fa):\n mWFP, uvt8, o8Kj = Zo7w(Q6kx, B2fa)\n BuKN = o8Kj.get('axis', None)\n MPlV = Mlpe(str(BuKN)) if BuKN is not None else None\n JsoO = Mqp0(o8Kj, 'keepdims')\n if MPlV is not None:\n Q6kx = BlLG.helper.mak... | [
"0.70940566",
"0.6874972",
"0.61902833",
"0.61549073",
"0.61046344",
"0.60914123",
"0.6080087",
"0.5927143",
"0.5927143",
"0.5880221",
"0.58306336",
"0.57700604",
"0.57442945",
"0.57169616",
"0.56744826",
"0.5666791",
"0.56665546",
"0.5664926",
"0.5634875",
"0.5621766",
"0.55... | 0.7944788 | 0 |
Map MXNet's max operator attributes to onnx's ReduceMax operator and return the created node. | def IIbJ(Q6kx, **B2fa):
mWFP, uvt8, o8Kj = Zo7w(Q6kx, B2fa)
BuKN = o8Kj.get('axis', None)
MPlV = Mlpe(str(BuKN)) if BuKN is not None else None
JsoO = Mqp0(o8Kj, 'keepdims')
if MPlV is not None:
Q6kx = BlLG.helper.make_node('ReduceMax', inputs=uvt8, outputs=[mWFP], axes=MPlV, keepdims=JsoO, n... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BK5q(Q6kx, **B2fa):\n return PZJO('Max', Q6kx, B2fa)",
"def max(WKvO, mYBm=True, mWFP=None):\n return yU2A(WKvO, oyIN.max, mYBm, mWFP)",
"def UAVk(Q6kx, **B2fa):\n mWFP, uvt8, o8Kj = Zo7w(Q6kx, B2fa)\n jDK_ = int(o8Kj.get('axis'))\n JsoO = Mqp0(o8Kj, 'keepdims')\n Q6kx = BlLG.helper.make_... | [
"0.7659286",
"0.6377665",
"0.6145082",
"0.6139816",
"0.6064376",
"0.6055874",
"0.6041896",
"0.6037136",
"0.5989364",
"0.5909807",
"0.5900593",
"0.5855207",
"0.58143365",
"0.5796772",
"0.57937384",
"0.57896626",
"0.5788211",
"0.578123",
"0.5748129",
"0.57333666",
"0.57123965",... | 0.7726849 | 0 |
Map MXNet's mean operator attributes to onnx's ReduceMean operator and return the created node. | def XOBR(Q6kx, **B2fa):
mWFP, uvt8, o8Kj = Zo7w(Q6kx, B2fa)
BuKN = o8Kj.get('axis', None)
MPlV = Mlpe(str(BuKN)) if BuKN is not None else None
JsoO = Mqp0(o8Kj, 'keepdims')
if MPlV is not None:
Q6kx = BlLG.helper.make_node('ReduceMean', inputs=uvt8, outputs=[mWFP], axes=MPlV, keepdims=JsoO, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SmGo():\n\n class ReduceMeanTester(i_Aq):\n\n def Ncmy(YKHO) -> BlLG.ModelProto:\n Q6kx = Pfft('ReduceMean', inputs=['v0'], outputs=['v1'], axes=[1, 2])\n g4y1 = [U34r('v0', V2As.FLOAT, (1, 3, 4, 5))]\n o4Jx = [U34r('v1', V2As.FLOAT, [1, 1, 1, 5])]\n pNZh =... | [
"0.6283045",
"0.6170426",
"0.61373425",
"0.58561695",
"0.5818263",
"0.5725782",
"0.5599807",
"0.5562414",
"0.5543096",
"0.5514586",
"0.5514586",
"0.5514586",
"0.5514586",
"0.5514586",
"0.54903483",
"0.5438709",
"0.5438554",
"0.53819174",
"0.53819174",
"0.5381861",
"0.5380131"... | 0.7579308 | 0 |
Map MXNet's Cast operator attributes to onnx's Cast operator and return the created node. | def ZBS6(Q6kx, **B2fa):
mWFP, uvt8, o8Kj = Zo7w(Q6kx, B2fa)
yDqo = o8Kj['dtype']
if yDqo == 'float32':
yDqo = 'float'
elif yDqo == 'float64':
yDqo = 'double'
Q6kx = BlLG.helper.make_node('Cast', uvt8, [mWFP], to=getattr(BlLG.TensorProto, yDqo.upper()), name=mWFP)
return [Q6kx] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def inPM(Emd4, khtY, dbXf):\n Q6kx = Emd4._common_singa_tensor_to_onnx_node(khtY, dbXf)\n K6m2 = {vhpA.float32: V2As.FLOAT, vhpA.int32: V2As.INT32}\n Q6kx.attribute.extend([B0gN.make_attribute('to', K6m2[khtY.to])])\n return Q6kx",
"def inPM(Emd4, vWye, g4y1, bwrw):\n Br5Q = vWye.getattr('to')\n ... | [
"0.72991306",
"0.70823056",
"0.6469727",
"0.6260471",
"0.58524877",
"0.56869894",
"0.5614678",
"0.5614463",
"0.5590272",
"0.5541235",
"0.5510816",
"0.5470201",
"0.54070497",
"0.5351177",
"0.53237814",
"0.5306725",
"0.5301981",
"0.5294145",
"0.528131",
"0.5262491",
"0.5260314"... | 0.67715365 | 2 |
Map MXNet's SliceChannel operator attributes to onnx's Squeeze or Split operator based on squeeze_axis attribute and return the created node. | def yads(Q6kx, **B2fa):
mWFP, uvt8, hB0Y, o8Kj = Zo7w(Q6kx, B2fa, with_shapes=True)
I07O = int(o8Kj.get('num_outputs'))
jDK_ = int(o8Kj.get('axis', 1))
Hm2U = int(o8Kj.get('squeeze_axis', 0))
if Hm2U == 1 and I07O == 1:
Q6kx = BlLG.helper.make_node('Squeeze', uvt8, [mWFP], axes=[jDK_], name=... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AQsf(Emd4, khtY, dbXf):\n Q6kx = Emd4._common_singa_tensor_to_onnx_node(khtY, dbXf)\n Q6kx.attribute.extend([B0gN.make_attribute('axes', list(khtY.axis))])\n return Q6kx",
"def AQsf(Emd4, vWye, g4y1, bwrw):\n MPlV = vWye.getattr('axes')\n bGrB, KVH6 = Emd4._common_onnx_node_to_singa_op(vWye, g... | [
"0.6746628",
"0.6559421",
"0.61696434",
"0.61142856",
"0.5958457",
"0.5643979",
"0.5640216",
"0.54976195",
"0.54508215",
"0.54356575",
"0.53339934",
"0.53273505",
"0.51586306",
"0.5094175",
"0.5021248",
"0.50043905",
"0.49964705",
"0.49707195",
"0.4929398",
"0.4861826",
"0.48... | 0.669003 | 1 |
Map MXNet's expand_dims operator attributes to onnx's Unsqueeze operator and return the created node. | def xTGi(Q6kx, **B2fa):
mWFP, uvt8, o8Kj = Zo7w(Q6kx, B2fa)
jDK_ = int(o8Kj.get('axis'))
Q6kx = BlLG.helper.make_node('Unsqueeze', uvt8, [mWFP], axes=[jDK_], name=mWFP)
return [Q6kx] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AQsf(Emd4, khtY, dbXf):\n Q6kx = Emd4._common_singa_tensor_to_onnx_node(khtY, dbXf)\n Q6kx.attribute.extend([B0gN.make_attribute('axes', list(khtY.axis))])\n return Q6kx",
"def AQsf(Emd4, vWye, g4y1, bwrw):\n MPlV = vWye.getattr('axes')\n bGrB, KVH6 = Emd4._common_onnx_node_to_singa_op(vWye, g... | [
"0.7386183",
"0.6739398",
"0.6726751",
"0.637353",
"0.62995607",
"0.60692775",
"0.60286963",
"0.60238683",
"0.59741277",
"0.59160703",
"0.5735533",
"0.5717082",
"0.5696729",
"0.5589094",
"0.55591923",
"0.5529139",
"0.55204725",
"0.5500257",
"0.54655224",
"0.54617375",
"0.5455... | 0.716333 | 1 |
Map MXNet's squeeze operator attributes to onnx's squeeze operator and return the created node. | def q7hL(Q6kx, **B2fa):
mWFP, uvt8, o8Kj = Zo7w(Q6kx, B2fa)
jDK_ = o8Kj.get('axis', None)
if not jDK_:
raise AttributeError('Squeeze: Missing axis attribute: ONNX currently requires axis to be specified for squeeze operator')
jDK_ = Mlpe(jDK_)
Q6kx = BlLG.helper.make_node('Squeeze', uvt8, [m... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AQsf(Emd4, khtY, dbXf):\n Q6kx = Emd4._common_singa_tensor_to_onnx_node(khtY, dbXf)\n Q6kx.attribute.extend([B0gN.make_attribute('axes', list(khtY.axis))])\n return Q6kx",
"def AQsf(Emd4, vWye, g4y1, bwrw):\n MPlV = vWye.getattr('axes')\n bGrB, KVH6 = Emd4._common_onnx_node_to_singa_op(vWye, g... | [
"0.7598868",
"0.717895",
"0.6282262",
"0.60528755",
"0.5627854",
"0.5592299",
"0.5459605",
"0.53992504",
"0.5209412",
"0.52017725",
"0.5185037",
"0.5168814",
"0.5109538",
"0.50819665",
"0.50502604",
"0.5031043",
"0.500968",
"0.49988806",
"0.49876928",
"0.49575466",
"0.4944436... | 0.6714586 | 2 |
Map MXNet's reciprocal operator attributes to onnx's Reciprocal operator and return the created node. | def Y2Zc(Q6kx, **B2fa):
return PZJO('Reciprocal', Q6kx, B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nrOS(YKHO):\n Esd_ = o7DN()\n Esd_.op = YKHO\n return Esd_",
"def nrOS(YKHO):\n Esd_ = dz6B.__call__(YKHO)\n return Esd_",
"def nrOS(YKHO):\n Esd_ = dz6B.__call__(YKHO)\n return Esd_",
"def nrOS(YKHO):\n Esd_ = o7DN()\n Esd_.op = YKHO\n return Esd_",
"def XeOP(YKHO):\n ... | [
"0.5679397",
"0.56778276",
"0.56740934",
"0.56724566",
"0.56111914",
"0.5536893",
"0.54996645",
"0.5413009",
"0.5394044",
"0.53590983",
"0.5352823",
"0.53090364",
"0.53014636",
"0.5288799",
"0.525179",
"0.52360773",
"0.5220722",
"0.5163405",
"0.5150799",
"0.51470494",
"0.5146... | 0.689847 | 0 |
Map MXNet's hard_sigmoid operator attributes to onnx's HardSigmoid operator and return the created node. | def EaeE(Q6kx, **B2fa):
mWFP, uvt8, o8Kj = Zo7w(Q6kx, B2fa)
Cwt5 = float(o8Kj.get('alpha', 0.2))
UqYS = float(o8Kj.get('beta', 0.5))
Q6kx = BlLG.helper.make_node('HardSigmoid', uvt8, [mWFP], alpha=Cwt5, beta=UqYS, name=mWFP)
return [Q6kx] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BxpZ(Emd4, khtY, dbXf):\n Q6kx = Emd4._common_singa_tensor_to_onnx_node(khtY, dbXf)\n Q6kx.attribute.extend([B0gN.make_attribute('alpha', khtY.alpha), B0gN.make_attribute('beta', khtY.gamma)])\n return Q6kx",
"def BxpZ(Emd4, vWye, g4y1, bwrw):\n Cwt5 = vWye.getattr('alpha', 0.2)\n UqYS = vWye.... | [
"0.8193963",
"0.7711967",
"0.72541773",
"0.6859289",
"0.67957366",
"0.6224166",
"0.6205663",
"0.62023205",
"0.61203086",
"0.608539",
"0.6069968",
"0.6067994",
"0.6048303",
"0.5977827",
"0.59394383",
"0.59345216",
"0.5905961",
"0.584112",
"0.57807565",
"0.5772983",
"0.5710771"... | 0.75288194 | 2 |
Map MXNet's broadcast logical or operator attributes to onnx's Or operator and return the created node. | def Nbc1(Q6kx, **B2fa):
return PZJO('Or', Q6kx, B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RK4I(Q6kx, **B2fa):\n return PZJO('Xor', Q6kx, B2fa)",
"def AJkB(Q6kx, **B2fa):\n return PZJO('And', Q6kx, B2fa)",
"def cmHj(YKHO, uze5, IQuB, t5cZ):\n from onnx import helper\n from onnx import TensorProto\n lULz = helper.make_tensor_value_info('input1', TensorProto.BOOL, uze5)\n ChBB = ... | [
"0.6557331",
"0.59182656",
"0.58574575",
"0.5785354",
"0.5779746",
"0.5683941",
"0.563225",
"0.5597137",
"0.5566193",
"0.5559112",
"0.55208814",
"0.5506325",
"0.5495919",
"0.5447485",
"0.54401416",
"0.54356146",
"0.54324657",
"0.54322755",
"0.5418937",
"0.54083866",
"0.540492... | 0.76808363 | 0 |
Map MXNet's broadcast logical xor operator attributes to onnx's Xor operator and return the created node. | def RK4I(Q6kx, **B2fa):
return PZJO('Xor', Q6kx, B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Nbc1(Q6kx, **B2fa):\n return PZJO('Or', Q6kx, B2fa)",
"def IfwU(YKHO, *qIxc):\n return SFZ4(YKHO, *qIxc)",
"def NMeF():\n cY_1 = oyIN.array([[0, 0, 0], [0, 1, 1], [1, 0, 1], [1, 1, 0], [1, 1, 0], [1, 0, 1], [0, 1, 1], [0, 0, 0]])\n Bcwd = oyIN.array([[0, 1, 1], [1, 0, 1], [1, 1, 0]])\n retur... | [
"0.738217",
"0.64635605",
"0.6400872",
"0.62084186",
"0.5969626",
"0.59505045",
"0.59500635",
"0.58331794",
"0.58050483",
"0.57880586",
"0.56789726",
"0.5678336",
"0.5673798",
"0.567273",
"0.5661514",
"0.5651046",
"0.5638466",
"0.5637232",
"0.55427027",
"0.5538561",
"0.548832... | 0.79945916 | 0 |
Map MXNet's ROIPooling operator attributes to onnx's MaxRoiPool operator and return the created node. | def X29t(Q6kx, **B2fa):
mWFP, uvt8, o8Kj = Zo7w(Q6kx, B2fa)
zQI_ = Mlpe(o8Kj.get('pooled_size'))
NXpY = float(o8Kj.get('spatial_scale'))
Q6kx = BlLG.helper.make_node('MaxRoiPool', uvt8, [mWFP], pooled_shape=zQI_, spatial_scale=NXpY, name=mWFP)
return [Q6kx] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CBIN(Q6kx, **B2fa):\n mWFP, uvt8, o8Kj = Zo7w(Q6kx, B2fa)\n WZcn = eval(o8Kj['kernel'])\n QLje = o8Kj['pool_type'] if o8Kj.get('pool_type') else 'max'\n _0fC = eval(o8Kj['stride']) if o8Kj.get('stride') else (1, 1)\n VhhE = Mqp0(o8Kj, 'global_pool')\n qpV3 = o8Kj.get('p_value', 'None')\n t... | [
"0.641093",
"0.58088446",
"0.56600386",
"0.5579279",
"0.55671954",
"0.55426383",
"0.5540293",
"0.54378605",
"0.5431979",
"0.54058385",
"0.5381407",
"0.5371967",
"0.5365166",
"0.53410465",
"0.5257729",
"0.52336967",
"0.5228986",
"0.5204838",
"0.51902246",
"0.5179581",
"0.51613... | 0.7807513 | 0 |
Map MXNet's broadcast_to operator attributes to onnx's Expand operator and return the created node. | def kIOb(Q6kx, **B2fa):
mWFP, uvt8, o8Kj = Zo7w(Q6kx, B2fa)
ihqc = Mlpe(o8Kj['shape'])
MuED = B2fa['initializer']
fbC0 = oyIN.array(ihqc, dtype='int64')
sB1G = BlLG.mapping.NP_TYPE_TO_TENSOR_TYPE[fbC0.dtype]
Htse = oyIN.shape(fbC0)
avdD = 'expand_attr_tensor' + str(B2fa['idx'])
G7uC = Bl... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KyCx(Oa1e, khtY, XkN1):\n WKvO = Oa1e.get_node(khtY.input('X')[0])\n u5Om = khtY.attr('target_shape')\n yvT9 = Bchp.broadcast_to(WKvO, u5Om)\n Oa1e.add_node(khtY.output('Out')[0], yvT9)",
"def DdmK(Q6kx, **B2fa):\n return PZJO('Pow', Q6kx, B2fa)",
"def Pvr7(Q6kx, **B2fa):\n return PZJO('M... | [
"0.6505846",
"0.604694",
"0.60059506",
"0.59943974",
"0.5957492",
"0.5825268",
"0.5748968",
"0.57150435",
"0.5620855",
"0.5597498",
"0.55732626",
"0.5556347",
"0.5554119",
"0.5502286",
"0.54921335",
"0.5468958",
"0.5464709",
"0.5461847",
"0.5448856",
"0.54340446",
"0.53191674... | 0.74339557 | 0 |
raise from_none(ValueError('a')) == raise ValueError('a') from None | def El3r(BQDi):
BQDi.__cause__ = None
BQDi.__suppress_context__ = True
return BQDi | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EycH(BIFc):\n if BIFc:\n raise dI7S()\n return None",
"def RY1Z(YKHO):\n a1PO = Vzmu('A or B')\n with YKHO.assertRaises(xFJ_):\n a1PO.equivalent_to(float())\n with YKHO.assertRaises(xFJ_):\n a1PO.equivalent_to(None)",
"def PIFF(YKHO):\n aEqx = TypeError\n CK9p = No... | [
"0.65491164",
"0.6507355",
"0.63295954",
"0.61693627",
"0.6143416",
"0.60782343",
"0.59815896",
"0.5925763",
"0.5909486",
"0.5908904",
"0.5904242",
"0.58995235",
"0.5848055",
"0.5834902",
"0.5818783",
"0.57958984",
"0.5760411",
"0.5742847",
"0.57380986",
"0.5723444",
"0.57004... | 0.68841505 | 0 |
Applies selected activation function to intermediate output. | def utyH(duJk, IrZK):
if IrZK is None:
return duJk
if IrZK == 'gelu':
duJk = U78l.gelu(duJk)
elif IrZK == 'relu':
duJk = U78l.relu(duJk)
elif IrZK == 'sigmoid':
duJk = U78l.sigmoid(duJk)
elif IrZK == 'softmax':
duJk = U78l.softmax(duJk)
elif IrZK == 'celu'... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Kmxe(WKvO):\n return WKvO",
"def wIZO(YKHO, ebYs):\n if len(YKHO.inputs) is 2:\n YKHO.two_activation(ebYs)\n elif len(YKHO.inputs) is 3:\n YKHO.three_activation(ebYs)\n else:\n YKHO.large_activation(ebYs)",
"def nrOS(YKHO, g4y1):\n return YKHO._hidden_activation(g4y1)",
... | [
"0.7604806",
"0.7194517",
"0.6661993",
"0.6523873",
"0.64537185",
"0.6431659",
"0.64278513",
"0.6370167",
"0.63165534",
"0.6285312",
"0.6285312",
"0.6214801",
"0.6194766",
"0.6191587",
"0.6181813",
"0.614133",
"0.6128814",
"0.6084095",
"0.607957",
"0.6078586",
"0.60711646",
... | 0.7784417 | 0 |
Return tf mlperf model parameters in a dictionary format. Use get_tf_model_variables if using kerasBERT checkpoint. This function works | def D5XW(lqQH, phrK):
AgTV = bgFP.BertConfig.from_json_file(lqQH)
q4aw = AgTV.max_position_embeddings
sjh1 = {}
BYWQ = 76
pNZh = ZylS.Graph()
cb_Q = ZylS.Session(graph=pNZh)
with pNZh.as_default():
Pha6 = ZylS.zeros((4, q4aw), dtype=ZylS.int32)
qV0r = ZylS.zeros((4, q4aw), dt... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q6vU():\n sFYp = ZylS.get_collection(ZylS.GraphKeys.TRAINABLE_VARIABLES)\n tO9_ = ['']\n wjRY = 0\n for Ty9i in sFYp:\n ROpF = Ty9i.get_shape()\n _pUq = ROpF.num_elements()\n wjRY += _pUq\n tO9_.append('{}: shape={}, dim={}'.format(Ty9i.name, ROpF.as_list(), _pUq))\n ... | [
"0.65184647",
"0.65112454",
"0.638817",
"0.63505626",
"0.6223993",
"0.6148675",
"0.6122482",
"0.6062248",
"0.6055513",
"0.6027013",
"0.600799",
"0.59653383",
"0.59652144",
"0.5957283",
"0.59522676",
"0.5892172",
"0.58268005",
"0.5810189",
"0.58081865",
"0.57768404",
"0.577381... | 0.7301645 | 0 |
Return tf model parameters in a dictionary format. | def oFNr(lqQH, phrK):
GPtr = b32v.BertConfig.from_json_file(lqQH)
tsWk = 20
bGrB, K22v = Nraz.squad_model(GPtr, tsWk)
vauY = ZylS.train.Checkpoint(model=K22v)
vauY.restore(phrK).assert_existing_objects_matched()
jQY2 = GPtr.__dict__
sjh1 = {Ty9i.name: Ty9i.numpy() for Ty9i in K22v.variables}... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _8gI(YKHO):\n SGPK = {sjXb._topology: YKHO.topology, sjXb._size: YKHO.size, sjXb._name: YKHO.name, sjXb._learning_rate: YKHO.learningRate, sjXb._momentum: YKHO.momentum}\n return SGPK",
"def W6RH(YKHO):\n return {'dropout': YKHO._dropout, 'layer_size': YKHO._layer_size, 'num_layers': YKHO._num_layer... | [
"0.73577815",
"0.7218848",
"0.7189309",
"0.7117365",
"0.71154326",
"0.7032748",
"0.70010006",
"0.6994405",
"0.69852734",
"0.69549537",
"0.6953729",
"0.6948936",
"0.69394284",
"0.6904722",
"0.6866829",
"0.6861575",
"0.6858673",
"0.6855758",
"0.6850728",
"0.68482053",
"0.681446... | 0.0 | -1 |
Compute the transformation matrix from Magellanic Stream coordinates to spherical Galactic. | def ffsz():
return H2DR(v1Wb) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vthk():\n return v1Wb",
"def FwhA(q7In=45):\n q7In = q7In / 360 * 2 * oyIN.pi\n Upvm = oyIN.cos(q7In)\n BhJz = oyIN.sin(q7In)\n o4sw = oyIN.array([[1, Upvm, 0], [0, BhJz, 0], [0, 0, 1]])\n return o4sw",
"def FwhA(YKHO):\n KCHu = YKHO.sin()\n Z9rn = YKHO.cos()\n return oyIN.array(... | [
"0.6758652",
"0.6351473",
"0.6289319",
"0.6249192",
"0.5900926",
"0.58043545",
"0.5739055",
"0.55864763",
"0.558487",
"0.55819327",
"0.55792",
"0.55535346",
"0.5547185",
"0.5533851",
"0.55322266",
"0.55322266",
"0.55189437",
"0.551152",
"0.5510809",
"0.54767853",
"0.5444235",... | 0.67547804 | 1 |
Check on input data for proper shape and dtype | def f1NS(YKHO, F_On):
if F_On.shape[-1] == 4 and F_On.ndim == 2:
jcPU = YKHO._convert_coords_to_coordinates(F_On)
YKHO._data_type = YKHO._data_types[1]
elif F_On.shape[-1] == 2 and F_On.ndim == 3:
jcPU = YKHO._convert_image_to_coordinates(F_On)
YKHO._data_type = YKHO._data_types[... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Fuw0(gOGe, KDwe):\n return True",
"def vtM7(YKHO, nPrm):\n if oyIN.ndim(nPrm) != 2:\n raise ValueError('Input data must be a two dimensional numpy array. Data received has shape (%g, %g).' % nPrm.shape)",
"def Ev22(YKHO, KDwe):\n if not len(KDwe) == 2:\n raise ValueError('data_shape ... | [
"0.7713703",
"0.76080585",
"0.74882436",
"0.7184162",
"0.71101797",
"0.70855606",
"0.7055508",
"0.7006338",
"0.6966901",
"0.6945867",
"0.6939449",
"0.69268495",
"0.69028056",
"0.68751085",
"0.6828708",
"0.6807963",
"0.67849463",
"0.6784447",
"0.6716908",
"0.67096233",
"0.6709... | 0.0 | -1 |
Sets the view given the indices to slice with. | def AhJN(YKHO, _0VL):
iXlf = YKHO._mesh_vertices
y_PJ = YKHO._mesh_triangles
if len(y_PJ) == 0:
YKHO._node.set_data(vertices=None, faces=None)
else:
YKHO._node.set_data(vertices=iXlf[:, ::-1], faces=y_PJ, color=YKHO.color)
YKHO._need_visual_update = True
YKHO._update() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, _0VL: Tuple[int, ...], SuPp: Tuple[slice, ...]=(slice(0, 0, 0),)):\n YKHO.indices = _0VL\n YKHO.slices = SuPp",
"def dNZM(YKHO, H5ew):\n YKHO._constant_neighs = True\n YKHO.ks = range(1) if YKHO.ks is None else YKHO.ks\n if H5ew is None:\n YKHO.idxs = slice(0, YKHO._n, 1)\n ... | [
"0.62833464",
"0.61686224",
"0.6001683",
"0.58963263",
"0.5595757",
"0.5592054",
"0.5561091",
"0.55347645",
"0.5515838",
"0.55009526",
"0.5443674",
"0.5426867",
"0.5424508",
"0.53574157",
"0.52848315",
"0.52843475",
"0.5270382",
"0.5265261",
"0.52636987",
"0.5232416",
"0.5228... | 0.77993363 | 0 |
Utility function zed.uchicago.edu Converts list into string separated by dashes or empty string if input list is not list or is empty | def ddrW(x1iM):
if x1iM is None:
return ''
if not x1iM:
return ''
return '-'.join((str(LihS) for LihS in x1iM)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XQ0m(mZmz):\n if not mZmz:\n return '[]'\n else:\n return '\\n- ' + '\\n- '.join(mZmz)",
"def hrsK(aPd6):\n if len(aPd6) == 0:\n return ''\n return aPd6[0] + hrsK(aPd6[1:])",
"def hrsK(aPd6):\n if len(aPd6) == 0:\n return ''\n return aPd6[0] + hrsK(aPd6[1:])",
... | [
"0.7693768",
"0.6974077",
"0.6974077",
"0.6955682",
"0.6715619",
"0.6706818",
"0.66814554",
"0.6577999",
"0.6566847",
"0.65541935",
"0.65537137",
"0.65157914",
"0.6480404",
"0.64604145",
"0.6455032",
"0.6404342",
"0.63729745",
"0.63619614",
"0.63449293",
"0.6314343",
"0.62951... | 0.7753648 | 0 |
Creates an instance of this model from a dictionary | def rQfz(Emd4, cmPJ):
if cmPJ is None:
return None
xdur = cmPJ.get('PrimaryLanguage')
LTqB = cmPJ.get('SecondaryLanguage')
Dnm8 = cmPJ.get('XmlSignature')
for H5ew in Emd4._names.values():
if H5ew in cmPJ:
del cmPJ[H5ew]
return Emd4(xdur, LTqB, Dnm8, cmPJ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rQfz(Emd4, cmPJ):\n if cmPJ is None:\n return None\n id = cmPJ.get('id')\n mWFP = cmPJ.get('name')\n tDvy = cmPJ.get('type')\n fFb7 = cmPJ.get('usageBytes')\n return Emd4(id, mWFP, tDvy, fFb7)",
"def eLpg(Emd4, cmPJ):\n return Emd4(**cmPJ)",
"def eLpg(Emd4, cmPJ):\n return Em... | [
"0.83181584",
"0.8168118",
"0.8168118",
"0.8118749",
"0.8089047",
"0.79787344",
"0.7949278",
"0.79231393",
"0.7898951",
"0.78923255",
"0.7882321",
"0.7882212",
"0.7876749",
"0.78585315",
"0.7836853",
"0.7801407",
"0.7801407",
"0.7801407",
"0.7801407",
"0.7801407",
"0.7801407"... | 0.788838 | 10 |
Gets the stateaction value of the target network. That is, the current estimate of the target network for the next state including the seen reward. | def _Wlq(YKHO, BKVD, vwlo, KMvS, nQSc):
Gz4L = YKHO.qnetwork_target(BKVD).detach()
DQci = Gz4L.max(1)
DQci = DQci[0]
DQci = DQci.unsqueeze(1)
hOTA = vwlo + KMvS * DQci * (1 - nQSc)
return hOTA | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Hrr1(YKHO, QTBn, XeOP):\n tFdA = ht2j.from_numpy(QTBn).float().to(YKHO.device)\n hlel = ht2j.dot(YKHO.weights[XeOP, :], tFdA.view(-1))\n return hlel",
"def Zmkp(YKHO, QTBn):\n _hZ2 = YKHO.epsilon\n qieF = YKHO.get_legal_actions(QTBn)\n if len(qieF) == 0:\n return 0.0\n enxE = qieF... | [
"0.74637866",
"0.738342",
"0.7381812",
"0.72057045",
"0.7147627",
"0.7144865",
"0.7104878",
"0.7084618",
"0.7046648",
"0.7013591",
"0.69931084",
"0.6982195",
"0.69723356",
"0.69467",
"0.6917595",
"0.69127136",
"0.68956476",
"0.68674845",
"0.67943704",
"0.67933476",
"0.6788547... | 0.0 | -1 |
Gets shortest angular distance between two positions regardless of direction | def VaS1(YKHO, gwqK, yCTS):
return min(abs(gwqK - yCTS), abs(gwqK - yCTS + 360)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oysP(cntZ: Waypoint, CsFy: Waypoint) -> int:\n return int(Ayfi.vincenty(cntZ.coords(), CsFy.coords()).m)",
"def SAmJ(gwqK, yCTS, xvBI=False):\n uIGg = float('nan')\n if gwqK in QxdR.all_undefined:\n return uIGg\n elif yCTS in QxdR.all_undefined:\n return uIGg\n elif gwqK.chromoso... | [
"0.7098709",
"0.70844555",
"0.6993295",
"0.69222057",
"0.68783516",
"0.68510944",
"0.6760011",
"0.6758225",
"0.6641673",
"0.66253275",
"0.66251695",
"0.66108775",
"0.6573693",
"0.65723246",
"0.65262455",
"0.6504858",
"0.6500021",
"0.6487806",
"0.644004",
"0.64247996",
"0.6398... | 0.68771785 | 5 |
Change the password used to protect OATH accounts. Allows you to set or change a password that will be required to access the OATH accounts stored on the YubiKey. | def nZuS(OaeV, jTXt, Y7Bk, uGpu, lVty):
if Y7Bk and uGpu:
OaeV.fail('--clear cannot be combined with --new-password.')
Il6L(OaeV, jTXt, False, prompt='Enter the current password')
cuiw = OaeV.obj['session']
sjXb = OaeV.obj['oath_keys']
jf3N = cuiw.device_id
if Y7Bk:
cuiw.unset_ke... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def faAE(ixlG):\n zlZD(ixlG, changed_data='password')",
"def zZft(YKHO, zN5h):\n pass",
"def faAE(YKHO, uGpu):\n M4N3 = YKHO.nearest_pandevice()\n YKHO.password_hash = M4N3.request_password_hash(uGpu)\n YKHO.update('password_hash')",
"def faAE(YKHO, jTXt, m0Ov):\n hl9o = {'newpasswd': m0Ov,... | [
"0.7618517",
"0.746997",
"0.7434945",
"0.7257479",
"0.7143954",
"0.70882785",
"0.70502394",
"0.7047161",
"0.6986982",
"0.6944256",
"0.6928588",
"0.69195575",
"0.68995327",
"0.68914664",
"0.6882281",
"0.68337",
"0.6824367",
"0.6823735",
"0.6792913",
"0.67883617",
"0.67817914",... | 0.73968214 | 3 |
Store the YubiKeys password on this computer to avoid having to enter it on each use. | def lVty(OaeV, jTXt):
cuiw = OaeV.obj['session']
jf3N = cuiw.device_id
sjXb = OaeV.obj['oath_keys']
if not cuiw.locked:
if jf3N in sjXb:
del sjXb[cuiw.device_id]
sjXb.write()
bo34.info('Deleted remembered access key')
k8wH.echo('This YubiKey is not pas... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nCXD(YKHO):\n V8yT.passwords.append(YKHO)",
"def nCXD(YKHO, uGpu):\n Nzyw = ePba.crypt(uGpu, iterations=55)\n YKHO.write(YKHO.password_filename, Nzyw)",
"def ajfy(YKHO, IoJQ):\n luqh = fj5c()\n YKHO.__aes_key = luqh.AES_KEY\n YKHO.__password = luqh.encrypt(IoJQ)",
"def p8eh(YKHO, IoJQ):... | [
"0.6675744",
"0.65866464",
"0.65817255",
"0.63898677",
"0.6381752",
"0.63418746",
"0.6293246",
"0.6226015",
"0.62100047",
"0.6160657",
"0.61586887",
"0.6145468",
"0.6143356",
"0.6109165",
"0.59605056",
"0.59529567",
"0.5867149",
"0.582038",
"0.580043",
"0.5765957",
"0.5743831... | 0.6156244 | 11 |
Home page for app (and project) | def d6pt(QePW):
NtEF = QePW.session.get('username', False)
z39Z = QePW.session.get('profile', False)
tpXL = ''
Cj_U = Hy7s.path.dirname(Hy7s.path.abspath(xAKo))
with open(Hy7s.path.join(Cj_U, '../baseurl.txt'), 'r', encoding='utf-8') as eHNT:
tpXL = eHNT.readline()
tpXL = tpXL.replac... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kZiy():\n return TvZl('index.html', title='Home Page', year=qcWV.now().year)",
"def kZiy():\n return TvZl('index.html', title='Home Page', year=qcWV.now().year)",
"def C_QL():\n return TvZl('home/index.html', title='Bem vindo!')",
"def kZiy():\n return TvZl('index.html', title='Home Page', ye... | [
"0.8311739",
"0.81331044",
"0.81042373",
"0.80418706",
"0.80418706",
"0.80418706",
"0.80418706",
"0.80418706",
"0.80418706",
"0.80418706",
"0.80418706",
"0.80418706",
"0.80418706",
"0.8040029",
"0.799967",
"0.79859835",
"0.7929723",
"0.79114187",
"0.7904756",
"0.7903732",
"0.... | 0.0 | -1 |
Tutorial page for app | def hWhz(QePW):
NtEF = QePW.session.get('username', False)
z39Z = QePW.session.get('profile', False)
if NtEF:
QpfX = {'username': NtEF, 'profile': z39Z}
return _1tc(QePW, 'MedTAG_sket_dock_App/index.html', QpfX)
else:
return vKnz('MedTAG_sket_dock_App:login') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Wu0p(QePW):\n assert isinstance(QePW, eu5F)\n return _1tc(QePW, 'tutorials.html', context_instance=K1Ja(QePW, {}))",
"def Uakd(QePW):\n assert isinstance(QePW, eu5F)\n return _1tc(QePW, 'callForTutorials.html', context_instance=K1Ja(QePW, {}))",
"def DGg7(YKHO):\n try:\n OnyC = getatt... | [
"0.7307964",
"0.67953116",
"0.6754259",
"0.66745186",
"0.66534",
"0.6528225",
"0.64401436",
"0.64039856",
"0.63926584",
"0.63527006",
"0.6335105",
"0.62391394",
"0.6103462",
"0.60975313",
"0.6084304",
"0.6075097",
"0.6068865",
"0.603304",
"0.6026463",
"0.59866536",
"0.5966442... | 0.5979742 | 20 |
This view checks if a user has an associated gt for a report | def jDY9(QePW):
XeOP = QePW.GET.get('action', None)
h4M6 = QePW.GET.get('id_report', None)
rQow = QePW.GET.get('language', None)
NtEF = QePW.session['username']
Tuqy = QePW.session['mode']
N1p7 = UzPC.cursor()
N1p7.execute('SELECT COUNT(*) FROM ground_truth_log_file where ns_id = %s and user... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def orO2(YKHO, CBIr):\n return dgX8.objects.filter(recipe=YKHO, chef=CBIr).exists()",
"def RJMH(YKHO, CBIr, keBP=True):\n return CBIr.is_superuser and keBP or len(YKHO.tas.filter(id=CBIr.id)) > 0",
"def h_Tg(CBIr):\n try:\n tdiJ = cQ68.objects.get(name=gCuF.PAYMENT_REPORT_GENERATOR_GROUP)\n ... | [
"0.6260666",
"0.6116303",
"0.5899749",
"0.5702829",
"0.5593343",
"0.5565848",
"0.5547417",
"0.5547417",
"0.5541943",
"0.5512871",
"0.55068207",
"0.5493356",
"0.54900455",
"0.5473812",
"0.5417657",
"0.53915375",
"0.5383512",
"0.53717935",
"0.5370812",
"0.53642553",
"0.5324591"... | 0.5986029 | 2 |
Returns True if |benchmark| has a valid type. | def dY8y(T1WL):
HWRD = FRul(T1WL)
if HWRD not in kp_l:
nfqd.error('%s has an invalid benchmark type %s, must be one of %s', T1WL, HWRD, kp_l)
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xzCw(T1WL):\n if not fUbN(T1WL):\n return False\n if T1WL not in GVBS():\n nfqd.error('%s must have a benchmark.yaml.', T1WL)\n return False\n try:\n Lm_x(T1WL)\n except eJb6.parser.ParserError:\n nfqd.error('%s must have a valid benchmark.yaml file. Failed to par... | [
"0.6986698",
"0.6440675",
"0.6303851",
"0.62154716",
"0.6090882",
"0.608178",
"0.6064316",
"0.6046675",
"0.5970051",
"0.5952641",
"0.58843154",
"0.58391774",
"0.5755268",
"0.57513607",
"0.5732901",
"0.57144207",
"0.56996477",
"0.56742626",
"0.55769104",
"0.5570763",
"0.556722... | 0.837678 | 0 |
Initializes this object's schema, input_files and output_path. | def FIMM(YKHO, uPxI, qZLi, n80H):
YKHO.schema = uPxI
YKHO.input_files = qZLi
YKHO.output_path = n80H | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO.read_input_file()\n YKHO.read_simulation_files()",
"def FIMM(YKHO):\n YKHO.parsed = False\n eHKs = Hy7s.path.dirname(Hy7s.path.realpath(xAKo))\n YKHO.xsdfilename = Hy7s.path.join(eHKs, 'xml', 'schema.xsd')\n YKHO.schema = 'schema.xsd'\n YKHO.predictors = []\n YKHO.p... | [
"0.69186145",
"0.6781864",
"0.6756163",
"0.6735031",
"0.6637486",
"0.6575436",
"0.6545899",
"0.65405905",
"0.6535554",
"0.65054566",
"0.6497379",
"0.6446711",
"0.6439875",
"0.64162254",
"0.6388665",
"0.63697845",
"0.63621044",
"0.63425386",
"0.6337463",
"0.6333185",
"0.633097... | 0.8291974 | 0 |
Delete all the processed files. | def x0SS():
DjBa()
O6k6() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tJMA(YKHO):\n YKHO.backup_files()\n YKHO.delete_files()",
"def mTtn():\n for Ux0P in bTjy:\n cDRl(Ux0P)",
"def cF1p(YKHO, RFOL=True):\n if RFOL:\n YKHO.flush(False)\n for AesY in YKHO.filePathDict.keys():\n if YKHO.outDir is None:\n ypig = AesY\n else:\... | [
"0.8073947",
"0.79849833",
"0.77544034",
"0.76999974",
"0.7654225",
"0.7631646",
"0.75604534",
"0.753863",
"0.753267",
"0.74747413",
"0.74153626",
"0.7402632",
"0.74007124",
"0.737596",
"0.73452044",
"0.7335899",
"0.72531056",
"0.72057813",
"0.7180837",
"0.71535826",
"0.71242... | 0.0 | -1 |
Plots an image and the projections (sums) of it on the x, y axes. | def QnBo(LNo8, leAC='', **B2fa):
LZpg = QrM1.figure()
i912 = Klo7.GridSpec(3, 2, width_ratios=[3, 1], height_ratios=[0.2, 3, 1])
MVVT = QrM1.subplot(i912[1, 0])
QrM1.title(leAC)
vJ4g = QrM1.imshow(LNo8, aspect='auto', **B2fa)
fTVC = QrM1.subplot(i912[2, 0], sharex=MVVT)
QrM1.plot(LNo8.sum(ax... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nUHY(LNo8):\n LZpg = QcNK.figure()\n aNZO = LZpg.add_subplot(1, 1, 1)\n gwMT = aNZO.imshow(LNo8, cmap=x5MY.cm.Greys)\n gwMT.set_interpolation('nearest')\n aNZO.xaxis.set_ticks_position('top')\n aNZO.yaxis.set_ticks_position('left')\n QcNK.show()",
"def nUHY(LNo8):\n LZpg = QcNK.figure... | [
"0.6885412",
"0.6744014",
"0.6729617",
"0.6729617",
"0.6729617",
"0.66539717",
"0.6561349",
"0.6445221",
"0.64222753",
"0.6366756",
"0.62954986",
"0.62783086",
"0.6277011",
"0.6251577",
"0.623828",
"0.62100685",
"0.62035716",
"0.6173411",
"0.6167177",
"0.61653167",
"0.6155882... | 0.7413701 | 0 |
rebins a numpy array. | def _zYY(jzdc, *qIxc):
ROpF = jzdc.shape
lnU0 = len(ROpF)
aM8h = oyIN.asarray(ROpF) / oyIN.asarray(qIxc)
hYRC = ['a.reshape('] + ['args[%d],factor[%d],' % (YRbF, YRbF) for YRbF in range(lnU0)] + [')'] + ['.mean(%d)' % (YRbF + 1) for YRbF in range(lnU0)]
return eval(''.join(hYRC)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _zYY(qw7D, DbyF=None, NXpY=None):\n if DbyF is not None:\n if isinstance(DbyF, float):\n DbyF = [int(DbyF)] * len(qw7D.shape)\n elif isinstance(DbyF, int):\n DbyF = [DbyF] * len(qw7D.shape)\n elif len(DbyF) != len(qw7D.shape):\n raise RuntimeError('')\n ... | [
"0.7262481",
"0.65253717",
"0.65092903",
"0.64562315",
"0.63404644",
"0.633843",
"0.6212981",
"0.62020236",
"0.6028213",
"0.5951686",
"0.5910494",
"0.5862693",
"0.57666206",
"0.57557595",
"0.57353413",
"0.5715855",
"0.5715112",
"0.5693231",
"0.5686959",
"0.56741536",
"0.56739... | 0.5666983 | 22 |
Class to create sqlalchemy engine that creates a connection to the postgresql database | def FIMM(YKHO):
with open('config.json') as GPtr:
nPrm = qQXR.load(GPtr)
jTXt = YKHO.decode_password(nPrm['db']['password'])
bgT2 = 'postgresql://' + nPrm['db']['username'] + ':' + jTXt + '@' + nPrm['db']['hostname'] + ':' + nPrm['db']['port'] + '/' + nPrm['db']['database']
YKHO.engine = y2U9(bg... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def y2U9(YKHO):\n YtR6 = f'postgresql://{YKHO.user}:{YKHO.password}@{YKHO.host}/{YKHO.database_name}'\n return y2U9(YtR6)",
"def ReLR():\n return y2U9('postgresql+psycopg2://postgres:postgres@localhost:5432/postgres')",
"def WyYT():\n return y2U9(rOmR(**aL7g))",
"def y2U9(YKHO, P8oC):\n try:\n... | [
"0.85938287",
"0.81512064",
"0.7748867",
"0.7690821",
"0.76155734",
"0.75913906",
"0.75913906",
"0.75913906",
"0.75913906",
"0.7512063",
"0.75113755",
"0.75113755",
"0.75113755",
"0.75113755",
"0.75113755",
"0.74599236",
"0.74490184",
"0.7440237",
"0.7433673",
"0.7428703",
"0... | 0.7128721 | 37 |
Fetch table rows as DataFrame from DB | def OkEm(YKHO, GTA_):
try:
jQ3Z = rLdf.read_sql('SELECT * from ' + GTA_, YKHO.engine)
print('-I- Completed read of DataFrame from ' + GTA_)
return jQ3Z
except Exception as e:
print('-W- ' + str(tTpl)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ymhD(YKHO, xDcj):\n N1p7 = YKHO.conn.cursor()\n N1p7.execute(xDcj)\n nPrm = N1p7.fetchall()\n WhX8 = N1p7.description\n WhX8 = [tuple([WKvO[0].split('.')[1] if '.' in WKvO[0] else WKvO[0]] + list(WKvO[1:])) for WKvO in WhX8]\n AAHb = [WhX8[YRbF][0] for YRbF in range(len(WhX8))]\n bHVN = rL... | [
"0.77204275",
"0.7645398",
"0.7582545",
"0.75139314",
"0.7212028",
"0.71883446",
"0.7178315",
"0.71595347",
"0.7121151",
"0.71134925",
"0.7097488",
"0.7083992",
"0.70649976",
"0.70540386",
"0.70290405",
"0.7011723",
"0.6963181",
"0.6963087",
"0.6963087",
"0.6942861",
"0.69389... | 0.7459254 | 4 |