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 |
|---|---|---|---|---|---|---|
L{EntityReference.isEqualToNode} returns C{True} if and only if passed a L{EntityReference} with the same C{eref}. | def et_p(YKHO):
YKHO.assertTrue(wCU5.EntityReference('quot').isEqualToNode(wCU5.EntityReference('quot')))
YKHO.assertFalse(wCU5.EntityReference('quot').isEqualToNode(wCU5.EntityReference('apos'))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def et_p(YKHO):\n YKHO.assertTrue(wCU5.Comment('foo').isEqualToNode(wCU5.Comment('foo')))\n YKHO.assertFalse(wCU5.Comment('foo').isEqualToNode(wCU5.Comment('bar')))",
"def et_p(YKHO):\n YKHO.assertTrue(wCU5.Text('foo', raw=True).isEqualToNode(wCU5.Text('foo', raw=True)))\n YKHO.assertFalse(wCU5.Text(... | [
"0.68780863",
"0.6787271",
"0.6785235",
"0.67619246",
"0.6699799",
"0.6653078",
"0.6596119",
"0.6579199",
"0.6565943",
"0.6565943",
"0.6565943",
"0.6565943",
"0.6565943",
"0.6565943",
"0.6541637",
"0.6525136",
"0.651554",
"0.650439",
"0.6485231",
"0.64653045",
"0.6464006",
... | 0.7617485 | 0 |
L{CharacterData.isEqualToNode} returns C{True} if and only if passed a L{CharacterData} with the same value. | def et_p(YKHO):
YKHO.assertTrue(wCU5.CharacterData('foo').isEqualToNode(wCU5.CharacterData('foo')))
YKHO.assertFalse(wCU5.CharacterData('foo').isEqualToNode(wCU5.CharacterData('bar'))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def et_p(YKHO):\n YKHO.assertTrue(wCU5.Text('foo', raw=True).isEqualToNode(wCU5.Text('foo', raw=True)))\n YKHO.assertFalse(wCU5.Text('foo', raw=True).isEqualToNode(wCU5.Text('foo', raw=False)))\n YKHO.assertFalse(wCU5.Text('foo', raw=True).isEqualToNode(wCU5.Text('bar', raw=True)))",
"def et_p(YKHO):\n ... | [
"0.738277",
"0.7253524",
"0.7039424",
"0.6908673",
"0.66028327",
"0.6600238",
"0.6585547",
"0.6583863",
"0.6577872",
"0.6572126",
"0.6539471",
"0.653871",
"0.6527414",
"0.6517194",
"0.64820117",
"0.6478136",
"0.6449373",
"0.64149505",
"0.64014226",
"0.63977957",
"0.63977957",... | 0.8211571 | 0 |
L{Comment.isEqualToNode} returns C{True} if and only if passed a L{Comment} with the same value. | def et_p(YKHO):
YKHO.assertTrue(wCU5.Comment('foo').isEqualToNode(wCU5.Comment('foo')))
YKHO.assertFalse(wCU5.Comment('foo').isEqualToNode(wCU5.Comment('bar'))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def et_p(YKHO):\n YKHO.assertTrue(wCU5.Text('foo', raw=True).isEqualToNode(wCU5.Text('foo', raw=True)))\n YKHO.assertFalse(wCU5.Text('foo', raw=True).isEqualToNode(wCU5.Text('foo', raw=False)))\n YKHO.assertFalse(wCU5.Text('foo', raw=True).isEqualToNode(wCU5.Text('bar', raw=True)))",
"def et_p(YKHO):\n ... | [
"0.7042378",
"0.69207114",
"0.6825619",
"0.6711751",
"0.6532045",
"0.6448358",
"0.64096946",
"0.6371987",
"0.63098246",
"0.630525",
"0.6291116",
"0.6283747",
"0.625781",
"0.6254449",
"0.62543035",
"0.6239836",
"0.6236558",
"0.6235521",
"0.623516",
"0.62280375",
"0.6225916",
... | 0.8120229 | 0 |
L{Text.isEqualToNode} returns C{True} if and only if passed a L{Text} which represents the same data. | def et_p(YKHO):
YKHO.assertTrue(wCU5.Text('foo', raw=True).isEqualToNode(wCU5.Text('foo', raw=True)))
YKHO.assertFalse(wCU5.Text('foo', raw=True).isEqualToNode(wCU5.Text('foo', raw=False)))
YKHO.assertFalse(wCU5.Text('foo', raw=True).isEqualToNode(wCU5.Text('bar', raw=True))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def et_p(YKHO):\n YKHO.assertTrue(wCU5.CharacterData('foo').isEqualToNode(wCU5.CharacterData('foo')))\n YKHO.assertFalse(wCU5.CharacterData('foo').isEqualToNode(wCU5.CharacterData('bar')))",
"def et_p(YKHO):\n YKHO.assertTrue(wCU5.Comment('foo').isEqualToNode(wCU5.Comment('foo')))\n YKHO.assertFalse(... | [
"0.7719826",
"0.7153343",
"0.70115167",
"0.69836247",
"0.68577915",
"0.6737991",
"0.6737991",
"0.66891706",
"0.66722697",
"0.6666619",
"0.6628506",
"0.65702856",
"0.6566772",
"0.6554966",
"0.6486234",
"0.6486155",
"0.645282",
"0.644173",
"0.64055055",
"0.639332",
"0.6333793",... | 0.8088939 | 0 |
L{CDATASection.isEqualToNode} returns C{True} if and only if passed a L{CDATASection} which represents the same data. | def et_p(YKHO):
YKHO.assertTrue(wCU5.CDATASection('foo').isEqualToNode(wCU5.CDATASection('foo')))
YKHO.assertFalse(wCU5.CDATASection('foo').isEqualToNode(wCU5.CDATASection('bar'))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def et_p(YKHO):\n YKHO.assertTrue(wCU5.CharacterData('foo').isEqualToNode(wCU5.CharacterData('foo')))\n YKHO.assertFalse(wCU5.CharacterData('foo').isEqualToNode(wCU5.CharacterData('bar')))",
"def et_p(YKHO):\n YKHO.assertTrue(wCU5.Comment('foo').isEqualToNode(wCU5.Comment('foo')))\n YKHO.assertFalse(... | [
"0.72366613",
"0.7124912",
"0.69343543",
"0.6627913",
"0.66263425",
"0.63725823",
"0.6323338",
"0.62364805",
"0.608901",
"0.5900952",
"0.58850586",
"0.5881725",
"0.58811694",
"0.58593446",
"0.58593446",
"0.58484423",
"0.5819848",
"0.5815039",
"0.57970625",
"0.5782651",
"0.577... | 0.8236708 | 0 |
L{Element.isEqualToNode} returns C{True} if and only if passed a L{Element} with the same C{nodeName}, C{namespace}, C{childNodes}, and C{attributes}. | def et_p(YKHO):
YKHO.assertTrue(wCU5.Element('foo', {'a': 'b'}, object(), namespace='bar').isEqualToNode(wCU5.Element('foo', {'a': 'b'}, object(), namespace='bar')))
YKHO.assertFalse(wCU5.Element('foo', {'a': 'b'}, object(), namespace='bar').isEqualToNode(wCU5.Element('bar', {'a': 'b'}, object(), namespace='bar... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def et_p(YKHO):\n YKHO.assertTrue(wCU5.Text('foo', raw=True).isEqualToNode(wCU5.Text('foo', raw=True)))\n YKHO.assertFalse(wCU5.Text('foo', raw=True).isEqualToNode(wCU5.Text('foo', raw=False)))\n YKHO.assertFalse(wCU5.Text('foo', raw=True).isEqualToNode(wCU5.Text('bar', raw=True)))",
"def K4dr(YKHO):\n ... | [
"0.7600452",
"0.75965786",
"0.7391182",
"0.7340185",
"0.71408194",
"0.71254873",
"0.683705",
"0.6709254",
"0.66867435",
"0.6637152",
"0.66185874",
"0.6614132",
"0.6499848",
"0.63778204",
"0.6362679",
"0.63106674",
"0.6304668",
"0.62923145",
"0.6270764",
"0.6259272",
"0.625626... | 0.83450013 | 0 |
r""" Returns the resulting weights after projecting the warped image to the appearance PCA model. | def _mSQ(BEhH, BKWy):
return BEhH.project(BKWy) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vjO3(BEhH, BKWy):\n return BEhH.project_whitened(BKWy)",
"def lbnt(YKHO, cAx9=None):\n return YKHO.weights",
"def ts_N(BEhH, BKWy):\n yk4i = BKWy.as_vector() - BEhH.mean().as_vector()\n return BEhH.distance_to_subspace_vector(yk4i).ravel()",
"def sc5R(yzQ0):\n UHFx, TVTK, H2v2 = yzQ0.shape... | [
"0.7075061",
"0.7024004",
"0.6159093",
"0.6102681",
"0.6023811",
"0.5965906",
"0.5952454",
"0.59521574",
"0.59521574",
"0.5876808",
"0.5825755",
"0.5825755",
"0.579902",
"0.57966685",
"0.57725024",
"0.5765794",
"0.5760121",
"0.57548803",
"0.57458174",
"0.57455736",
"0.5723853... | 0.77569914 | 0 |
r""" Returns the sheared weights after projecting the warped image to the appearance PCA model. | def vjO3(BEhH, BKWy):
return BEhH.project_whitened(BKWy) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _mSQ(BEhH, BKWy):\n return BEhH.project(BKWy)",
"def lbnt(YKHO, cAx9=None):\n return YKHO.weights",
"def wT46(YKHO):\n return YKHO.w",
"def wT46(YKHO):\n return YKHO.w",
"def dFoS(YKHO, _mSQ):\n yzQ0 = YKHO._checkWeights(_mSQ)[:, 0]\n nPrm = YKHO._X.values\n wEsz = nPrm.std(axis=0)... | [
"0.7537543",
"0.6542833",
"0.60598075",
"0.60598075",
"0.6040029",
"0.59810275",
"0.59810275",
"0.58955127",
"0.5841016",
"0.57966393",
"0.57925606",
"0.57862437",
"0.57811165",
"0.5775303",
"0.5771316",
"0.5762864",
"0.5760654",
"0.5755237",
"0.5751095",
"0.5751095",
"0.5749... | 0.73289466 | 1 |
r""" Returns the difference between the warped image and the image constructed by projecting the warped image onto the appearance model and rebuilding it from the weights found. | def by6d(BEhH, BKWy):
return BKWy.as_vector() - Uvi1(BEhH, BKWy) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vjO3(BEhH, BKWy):\n return BEhH.project_whitened(BKWy)",
"def _mSQ(BEhH, BKWy):\n return BEhH.project(BKWy)",
"def ts_N(BEhH, BKWy):\n yk4i = BKWy.as_vector() - BEhH.mean().as_vector()\n return BEhH.distance_to_subspace_vector(yk4i).ravel()",
"def Uvi1(BEhH, BKWy):\n return BEhH.reconstruc... | [
"0.7821988",
"0.7783034",
"0.7074368",
"0.6763651",
"0.61127186",
"0.5731688",
"0.5690223",
"0.56700194",
"0.55773956",
"0.55749404",
"0.553094",
"0.55147016",
"0.5483856",
"0.5455198",
"0.54106396",
"0.5396004",
"0.5395626",
"0.53915787",
"0.5383176",
"0.5367313",
"0.5367009... | 0.7930226 | 0 |
r""" Returns a version of the whitened warped image where all the basis of the model have been projected out and which has been scaled by the inverse of the appearance model's noise_variance. | def ts_N(BEhH, BKWy):
yk4i = BKWy.as_vector() - BEhH.mean().as_vector()
return BEhH.distance_to_subspace_vector(yk4i).ravel() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vjO3(BEhH, BKWy):\n return BEhH.project_whitened(BKWy)",
"def qiKr(YKHO):\n QGq3 = oyIN.sqrt(YKHO.sigma2Ws)\n WCBr = oyIN.array([tuKI.normalvariate(mu=XcU5, sigma=hbs2) for XcU5, hbs2 in zip(YKHO.trueWs, QGq3)])\n YKHO.Ws = WCBr",
"def tsq2(YKHO):\n return jwHw(YKHO.wcs, slice=YKHO.slice)",
... | [
"0.65179044",
"0.5988133",
"0.5972664",
"0.5965843",
"0.58926404",
"0.5871921",
"0.58687574",
"0.5842857",
"0.5795244",
"0.57837456",
"0.5781137",
"0.5746274",
"0.5728072",
"0.57197857",
"0.5701537",
"0.5665248",
"0.5664834",
"0.5640986",
"0.5567546",
"0.55642813",
"0.5559560... | 0.58698815 | 6 |
Sets the organization_class of this CategoryTestFetchData. | def av0E(YKHO, av0E):
if av0E is None:
raise ValueError('Invalid value for `organization_class`, must not be `None`')
YKHO._organization_class = av0E | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wbiw(YKHO, wbiw):\n YKHO._organization = wbiw",
"def wbiw(YKHO, wbiw):\n YKHO._organization = wbiw",
"def wbiw(YKHO, wbiw):\n YKHO._organization = wbiw",
"def wbiw(YKHO, wbiw):\n YKHO._organization = wbiw",
"def wbiw(YKHO, wbiw):\n YKHO._organization = wbiw",
"def wbiw(YKHO, wbiw):\n ... | [
"0.61573005",
"0.61573005",
"0.61573005",
"0.61573005",
"0.61573005",
"0.61573005",
"0.61573005",
"0.5827093",
"0.55741596",
"0.5509534",
"0.5333997",
"0.53096044",
"0.52715296",
"0.52636033",
"0.520498",
"0.5171442",
"0.5142618",
"0.50913274",
"0.50862825",
"0.50862825",
"0.... | 0.7380586 | 0 |
Returns the string representation of the model | def gTzM(YKHO):
return CgYo.pformat(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.8043786 | 90 |
Check if the API call returns correct number of ecosystems. | def ybqB(QpfX, mLGw):
Nz2P = QpfX.response.json()['items']
assert len(Nz2P) == mLGw
for tTpl in Nz2P:
assert 'ecosystem' in tTpl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tLcd(YKHO):\n ywwl = 10\n nOZ8 = 0\n srfb = 0\n rdzv = 0\n WzEE = 0\n V0tW = YKHO._create_inventories(ywwl)\n for dKc3 in V0tW:\n if dKc3.available == 0:\n nOZ8 += 1\n elif dKc3.available == 1:\n srfb += 1\n YKHO.assertEqual(nOZ8 + srfb, ywwl)\n _h... | [
"0.65355873",
"0.6100185",
"0.60753995",
"0.6040517",
"0.60376894",
"0.59609807",
"0.5923271",
"0.59150857",
"0.5877904",
"0.5843798",
"0.5823564",
"0.5822688",
"0.5817048",
"0.5787983",
"0.5780515",
"0.5779517",
"0.5770798",
"0.5767256",
"0.57503134",
"0.57138723",
"0.570788... | 0.7642473 | 0 |
Returns the animation. This method returns the animation with the given name. If no animation with this name was loaded, None is returned. | def WQPn(YKHO, mWFP):
if mWFP in YKHO._animations.keys():
return YKHO._animations[mWFP]
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QpTf(YKHO, mWFP):\n return YKHO.find(YKHO.animpath, '%s.json' % mWFP)",
"def e66p(YKHO):\n geh0 = YKHO.__request(YKHO.CURRENT_ANIMATION_URL)\n Ky4F = geh0.get('selectedAnimationName', None)\n return Ky4F",
"def f8hO(YKHO, mWFP):\n h3Xc = HHr8(name=mWFP)\n RTF_(YKHO.load_animation_asynchro... | [
"0.8087497",
"0.7170971",
"0.70997995",
"0.7089115",
"0.67345136",
"0.65230817",
"0.63759935",
"0.6353226",
"0.6323384",
"0.60529524",
"0.59910005",
"0.59751457",
"0.59147716",
"0.5874671",
"0.58268905",
"0.5771959",
"0.5759923",
"0.57308024",
"0.5687823",
"0.5647838",
"0.559... | 0.904884 | 0 |
Converts string price to float repr, if price is 0 returns 0.01 | def unHH(vIwR):
return float(vIwR[1:]) if float(vIwR[1:]) > 0 else 0.01 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _kBO(Lx3t):\n try:\n hI0L = Lx3t['price'].replace(',', '.')\n return float(hI0L)\n except KeyError:\n return float('0.00')",
"def Przj(Emd4, UX5e):\n if UX5e:\n XKkI = [Npgh for Npgh in UX5e if Npgh.isnumeric() or Npgh == '.']\n if XKkI:\n return float('... | [
"0.76174986",
"0.7609125",
"0.7488216",
"0.74284923",
"0.735298",
"0.71156245",
"0.70894784",
"0.6968323",
"0.69216233",
"0.6893665",
"0.68829805",
"0.6838372",
"0.68356574",
"0.68029594",
"0.67902327",
"0.6778496",
"0.6755796",
"0.6724235",
"0.6668949",
"0.6633171",
"0.66201... | 0.80544585 | 0 |
Period when this report was specified to start. | def KLIi(YKHO):
return hA3p(YKHO.data.get('period_begin')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lGFN(YKHO):\n return YKHO._period_start",
"def pQ4c(YKHO) -> int:\n return YKHO.__period",
"def pQ4c(YKHO):\n return YKHO._simulator.period",
"def zN5d(YKHO):\n return YKHO._schedule_period",
"def pQ4c(YKHO):\n return YKHO._period",
"def pQ4c(YKHO):\n return YKHO._period",
"def pQ... | [
"0.7306723",
"0.6873832",
"0.68455553",
"0.6815185",
"0.672151",
"0.672151",
"0.672151",
"0.672151",
"0.6685529",
"0.66588575",
"0.6648394",
"0.66111344",
"0.66111344",
"0.6581438",
"0.6581438",
"0.6571494",
"0.6540604",
"0.64426464",
"0.64421403",
"0.641331",
"0.6402269",
... | 0.7208854 | 1 |
Period when this report was specified to end. | def XV6Z(YKHO):
return hA3p(YKHO.data.get('period_end')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XV6Z(YKHO):\n return YKHO._period_end",
"def C7pn(YKHO) -> float:\n return YKHO.start_time + YKHO.period",
"def pQ4c(YKHO) -> int:\n return YKHO.__period",
"def C7pn(YKHO):\n return YKHO.time_range()[1]",
"def pQ4c(YKHO):\n return YKHO._period",
"def pQ4c(YKHO):\n return YKHO._perio... | [
"0.7770182",
"0.7572607",
"0.68518424",
"0.68143344",
"0.6791107",
"0.6791107",
"0.6791107",
"0.6791107",
"0.6771554",
"0.6766911",
"0.6737692",
"0.6694182",
"0.6694182",
"0.6679081",
"0.6664369",
"0.6664369",
"0.6664369",
"0.6664369",
"0.6664369",
"0.6664369",
"0.6664369",
... | 0.7692577 | 1 |
Get folder where the scripts are stored, e.g. ~/.shdw/scripts | def HkhS():
return Hy7s.path.join(jRQh(), 'scripts') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HkhS():\n return oAb3.Path(xAKo).parent.parent",
"def TCZx():\n return Hy7s.path.dirname(xAKo)",
"def TCZx():\n return Hy7s.path.dirname(xAKo)",
"def Uweh(YKHO):\n return YKHO.get_file_dir('script')",
"def VZuY():\n return Hy7s.path.join(Hy7s.path.dirname(xAKo), 'scripts')",
"def TCZx(... | [
"0.8301828",
"0.82464325",
"0.82464325",
"0.82378703",
"0.81103754",
"0.8104175",
"0.8025384",
"0.79984796",
"0.78299665",
"0.77911186",
"0.7778887",
"0.7739495",
"0.7685904",
"0.76776844",
"0.7671026",
"0.75837266",
"0.74413836",
"0.74350244",
"0.73479116",
"0.73479116",
"0.... | 0.88690156 | 0 |
Normalize data using norm | def NkkI(YKHO, CkYf):
Sa_m = CkYf.sensor_count_norm
FQNo = CkYf.motor_count_norm
YKHO.sensor_and_motor_norm = oyIN.empty((YKHO.sample_count, Sa_m + FQNo), dtype=float)
YKHO.sensor_norm = YKHO.sensor_and_motor_norm[:, 0:Sa_m]
YKHO.motor_norm = YKHO.sensor_and_motor_norm[:, Sa_m:Sa_m + FQNo]
YKHO.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NkkI(YKHO, CkYf='l1'):\n nPrm = YKHO.data.astype(oyIN.float64)\n YKHO.data = N3vq.preprocessing.normalize(nPrm, axis=1, norm=CkYf)",
"def Q7gV(YKHO):\n print('Normalizing data ...')\n YKHO.data = oyIN.array(list(map(lambda ZfUD: ZfUD / oyIN.linalg.norm(ZfUD), YKHO.data)))\n print('Done!')",
... | [
"0.824855",
"0.8151957",
"0.80303633",
"0.79162717",
"0.7890806",
"0.78794247",
"0.7836993",
"0.78005934",
"0.77747476",
"0.7767319",
"0.77341276",
"0.77299607",
"0.77098274",
"0.77030087",
"0.76788825",
"0.7673333",
"0.76425093",
"0.7640751",
"0.7635552",
"0.76223624",
"0.76... | 0.74408066 | 42 |
Normalize raw sensor values | def IMBi(YKHO, Iz2h):
return (Iz2h - YKHO.descr.sensor_min) * 2.0 / YKHO.descr.sensor_range - 1.0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jB82(YKHO, o3EY):\n return oyIN.int_(oyIN.round((o3EY + 1) * YKHO.descr.sensor_range * 0.5 + YKHO.descr.sensor_min))",
"def jnV4(YKHO, nPrm):\n rCiM = (nPrm - min(nPrm)) / (max(nPrm) - min(nPrm))\n return rCiM",
"def lptT(YKHO, Iz2h):\n return (Iz2h - YKHO.descr.motor_min) * 2.0 / YKHO.descr.mo... | [
"0.74739397",
"0.7140219",
"0.70833164",
"0.7004604",
"0.6968946",
"0.6903113",
"0.68987674",
"0.6878427",
"0.68642634",
"0.6861444",
"0.6860134",
"0.6853091",
"0.6839516",
"0.6829013",
"0.6823791",
"0.6823575",
"0.6799669",
"0.678596",
"0.67830527",
"0.67820984",
"0.6781303"... | 0.8362212 | 0 |
Normalize raw motor values | def lptT(YKHO, Iz2h):
return (Iz2h - YKHO.descr.motor_min) * 2.0 / YKHO.descr.motor_range - 1.0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LO_l(YKHO, o3EY):\n return oyIN.int_(oyIN.round((o3EY + 1) * YKHO.descr.motor_range * 0.5 + YKHO.descr.motor_min))",
"def IMBi(YKHO, Iz2h):\n return (Iz2h - YKHO.descr.sensor_min) * 2.0 / YKHO.descr.sensor_range - 1.0",
"def jnV4(YKHO):\n pass",
"def NkkI(YKHO, CkYf):\n Sa_m = CkYf.sensor_cou... | [
"0.7548245",
"0.70039517",
"0.65427256",
"0.651834",
"0.64070874",
"0.63736564",
"0.6319574",
"0.6277246",
"0.62762463",
"0.6227341",
"0.62213576",
"0.62154984",
"0.620393",
"0.61976767",
"0.6071903",
"0.60573876",
"0.6032249",
"0.6022983",
"0.60182494",
"0.60146034",
"0.5986... | 0.82735026 | 0 |
Set the value of effective full width at half maximum (FWHM) on Gaussian quadrature plane. | def vBD4(YKHO, BWXx=None, Yx_b=None):
if BWXx is not None and Yx_b is not None:
raise ValueError('One of inputs (value, loadFilePath) should be None.')
if BWXx is not None:
YKHO.GQFWHMeff = BWXx
if Yx_b is not None:
nPrm = oyIN.loadtxt(Yx_b)
YKHO.GQFWHMeff = nPrm[1, -1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zm7_(YKHO, THRx: 'float const') -> 'void':\n return sWT0.itkN4BiasFieldCorrectionImageFilterIUC3IUC3IUC3_SetBiasFieldFullWidthAtHalfMaximum(YKHO, THRx)",
"def zm7_(YKHO, THRx: 'float const') -> 'void':\n return sWT0.itkN4BiasFieldCorrectionImageFilterIF3IUC3IUC3_SetBiasFieldFullWidthAtHalfMaximum(YKHO,... | [
"0.70683587",
"0.7038711",
"0.7028073",
"0.701823",
"0.7011559",
"0.7010131",
"0.700155",
"0.6999925",
"0.6995784",
"0.69880325",
"0.69831556",
"0.69736737",
"0.6971476",
"0.6970998",
"0.695636",
"0.6951462",
"0.68105406",
"0.6796285",
"0.6786902",
"0.6762006",
"0.67387766",
... | 0.0 | -1 |
Handles any exception if there is an error in the code. A custom response is sent to the user. A log with the error is created. | async def validation_exception_handler(QePW, BQDi):
bo34.info(BQDi)
return DUoS(f'Ops! Something went wrong.', status_code=jGRS.HTTP_500_INTERNAL_SERVER_ERROR) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HpJk(QePW, geh0, AJ5d, Wxnj):\n G9jH.info('ErrorHandler code %s' % Wxnj)\n G9jH.info('Exception: %s' % AJ5d)\n geh0.set_status(Wxnj)\n geh0.headers['Access-Control-Allow-Origin'] = QePW.headers.get('Origin', '*')\n geh0.headers['Access-Control-Allow-Methods'] = 'GET, POST, OPTIONS, PUT'\n geh... | [
"0.78230363",
"0.76325476",
"0.7481058",
"0.74774617",
"0.74462897",
"0.7246552",
"0.7236443",
"0.7216077",
"0.7193025",
"0.7192454",
"0.71904784",
"0.7185427",
"0.717438",
"0.71719754",
"0.71506906",
"0.7134037",
"0.7122104",
"0.7109122",
"0.7100538",
"0.70983005",
"0.709089... | 0.0 | -1 |
Get the current time in UTC. | def wzkt():
i8WE = GQJo.parse('now', qcWV.now(rIAI(tTNw)))[0]
return ITS7.strftime(wDJa, i8WE) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ej5x():\n return FXGE.utc.localize(qcWV.datetime.utcnow())",
"def SsoH(YKHO):\n return qcWV.datetime.now(tz=FXGE.UTC)",
"def g1yo() -> qcWV:\n if gCuF.IS_TEST_ENVIRONMENT:\n return gCuF.TEST_CURRENT_TIME\n return qcWV.now(FXGE.UTC)",
"def iuQ8(YKHO):\n return YKHO._utc",
"def m7L9... | [
"0.86658484",
"0.8059768",
"0.80196154",
"0.801167",
"0.7927554",
"0.790034",
"0.7880041",
"0.78638285",
"0.7848554",
"0.78329086",
"0.7791845",
"0.7790419",
"0.776332",
"0.77566665",
"0.7747814",
"0.7733801",
"0.77261317",
"0.7670204",
"0.76576036",
"0.7652594",
"0.76273066"... | 0.0 | -1 |
Generate random string of length 10 | def MLuy():
KoG3 = vIwR.ascii_lowercase
return './static/' + ''.join((tuKI.choice(KoG3) for YRbF in range(10))) + '.jpg' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eTqN():\n return str(qxeD.uuid4())[:10]",
"def YzjY(YKHO, u54L=10):\n return ''.join((tuKI.SystemRandom().choice(vIwR.ascii_letters + vIwR.digits) for bGrB in range(u54L)))",
"def e7Tf(Fb9w=10):\n SIyd = vIwR.ascii_letters + vIwR.digits\n return ''.join([tuKI.choice(SIyd) for YRbF in range(Fb9w... | [
"0.8441165",
"0.82625014",
"0.81734365",
"0.8126501",
"0.8114687",
"0.807784",
"0.805606",
"0.80353713",
"0.80293334",
"0.8029107",
"0.79933697",
"0.7962815",
"0.79427636",
"0.7928253",
"0.7856311",
"0.7848705",
"0.7819952",
"0.78119254",
"0.78013647",
"0.78005797",
"0.779373... | 0.0 | -1 |
Fix the quotes and double quotes so that they can be used within a text without problems | def QrZ9(rAlR):
rAlR = rAlR.replace("'", "\\'")
rAlR = rAlR.replace('"', '\\"')
return rAlR | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OCZt(l5Ny):\n l5Ny = l5Ny.replace('"', '\"')\n l5Ny = l5Ny.replace(Ey5j, '"')\n return l5Ny",
"def yhqV(l5Ny):\n try:\n return '\"' + l5Ny.encode(encoding='UTF-8', errors='xmlcharrefreplace').replace('\\n', ' ') + '\"'\n except AttributeError:\n return str(l5Ny)",
"def... | [
"0.78687024",
"0.7579468",
"0.7487889",
"0.7443669",
"0.74413925",
"0.7418288",
"0.7397696",
"0.73932076",
"0.73639417",
"0.73016274",
"0.7275052",
"0.7252012",
"0.71190774",
"0.7098888",
"0.70557547",
"0.69846517",
"0.698321",
"0.69787693",
"0.69197285",
"0.6914478",
"0.6877... | 0.7105352 | 13 |
Test to make sure we get the expected behavior after scanning all the files in the test/resources/rules/md001 directory. Note that with three frontmatter files in this directory and no config to enable that extension, Md022 will report bad heading formats. | def FRMU():
tLl1 = mR62()
VRAY = ['--disable-rules', 'MD003', 'scan', 'test/resources/rules/md001']
hIa0 = 1
sGEu = 'test/resources/rules/md001/front_matter_with_alternate_title.md:2:1: ' + 'MD022: Headings should be surrounded by blank lines. ' + '[Expected: 1; Actual: 0; Above] (blanks-around-headings... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ikf7():\n tLl1 = mR62()\n fcvf = Hy7s.path.join('test', 'resources', 'rules', 'md020', 'with_setext_headings.md')\n VRAY = ['scan', fcvf]\n hIa0 = 0\n sGEu = ''\n pHd6 = ''\n VF51 = tLl1.invoke_main(arguments=VRAY)\n VF51.assert_results(sGEu, pHd6, hIa0)",
"def XG1U():\n tLl1 = mR6... | [
"0.7580063",
"0.72823864",
"0.7160965",
"0.7124584",
"0.69272846",
"0.6829238",
"0.67153805",
"0.6700881",
"0.66950697",
"0.66921747",
"0.6650149",
"0.64387",
"0.6393526",
"0.63700867",
"0.6327355",
"0.6298122",
"0.62661046",
"0.6189664",
"0.618485",
"0.6181977",
"0.6102468",... | 0.7814838 | 0 |
Test to make sure the rule does not trigger with a document with a frontmatter element with no title and the front matter extension enabled, and a following Atx Heading of level 3. | def TlUP():
tLl1 = mR62()
VRAY = ['--set', 'extensions.front-matter.enabled=$!True', 'scan', 'test/resources/rules/md001/front_matter_with_no_title.md']
hIa0 = 0
sGEu = ''
pHd6 = ''
VF51 = tLl1.invoke_main(arguments=VRAY)
VF51.assert_results(sGEu, pHd6, hIa0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def axYf(YKHO):\n YKHO.check_markdown('##Header', '<p>##Header</p>')",
"def SVep(YKHO):\n BuqO = YKHO.ast.get_section_headings()\n if len(BuqO) != 0:\n G9jH.warning(\"In {0}: Sub-headings are often a sign a lesson needs to be split into multiple topics. Please make sure this subsection doesn't be... | [
"0.6208592",
"0.6038372",
"0.60049015",
"0.59984815",
"0.5921322",
"0.5801328",
"0.5788049",
"0.57699156",
"0.57503355",
"0.5669588",
"0.56655794",
"0.5663831",
"0.56602293",
"0.56591254",
"0.56437665",
"0.56416774",
"0.56183594",
"0.56101525",
"0.5604586",
"0.5574566",
"0.55... | 0.67428726 | 0 |
Create and return a new user. | def eLpg(YKHO, D3lj, jTXt):
try:
wKy1, Slw0 = D3lj.strip().split('@', 1)
except ValueError:
pass
else:
D3lj = '@'.join([wKy1, Slw0.lower()])
B2fa = {'email': D3lj, 'password': vT87(jTXt)}
return super(Nc2H, YKHO).create(**B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lYUQ(D3lj, jTXt):\n Q5YQ = mv1M(D3lj, jTXt)\n return Q5YQ",
"def lYUQ(YKHO):\n return egNl().objects.create_user(YKHO.user_email, YKHO.user_password)",
"def lYUQ():\n nPrm = QePW.get_json()\n return CfQI(nPrm)",
"def Ss1U():\n CBIr = mv1M.objects.get_or_create(username='john', first_nam... | [
"0.8400247",
"0.8339993",
"0.8324968",
"0.82426304",
"0.82285994",
"0.81801134",
"0.8161598",
"0.81462926",
"0.8144961",
"0.81275487",
"0.81274325",
"0.81274325",
"0.81274325",
"0.81274325",
"0.81274325",
"0.81241375",
"0.811842",
"0.8108549",
"0.8094399",
"0.80879855",
"0.80... | 0.0 | -1 |
Validate that a user exists with the supplied credentials | def NLCy(YKHO, D3lj, jTXt):
CBIr = YKHO.get(email=D3lj)
if CBIr:
if z8jj(CBIr['password'], jTXt):
return CBIr
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cmV_(NtEF, jTXt):\n return mv1M.user_exist(NtEF, jTXt)",
"def HO5O(YKHO):\n pB3N = {'email': 'test@gmail.com', 'password': 'test123@pass', 'name': 'Test name'}\n lYUQ(**pB3N)\n CBIr = YKHO.client.post(CKgv, pB3N)\n YKHO.assertEqual(CBIr.status_code, jGRS.HTTP_400_BAD_REQUEST)",
"def K9qj():\... | [
"0.78316975",
"0.7815482",
"0.7665427",
"0.75499773",
"0.74748933",
"0.7451652",
"0.7451652",
"0.7392929",
"0.73706716",
"0.7358269",
"0.73429435",
"0.7320154",
"0.7318644",
"0.73156244",
"0.7315098",
"0.72992486",
"0.729227",
"0.72881377",
"0.72615826",
"0.7245739",
"0.72406... | 0.0 | -1 |
Load a trained model from /trained_models. Not to confuse with get_model(), which is load the model skeleton in choose_model() | def yfe9(ZGE9):
VqRE = 'trained_models/' + ZGE9
C3ST = uyMl(VqRE)
with open(VqRE + '/labels.txt') as eHNT:
QXyl = eHNT.readline().split(' ')
return (C3ST, QXyl) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IMdJ():\n return uyMl(bNss)",
"def IMdJ() -> None:\n print('Loading trained model')\n return uyMl('/cs/scratch/agj6/saved_models/dataset-{}_mammogramtype-{}_model-{}_lr-{}_b-{}_e1-{}_e2-{}_roi-{}_{}_saved-model.h5'.format(GPtr.dataset, GPtr.mammogram_type, GPtr.model, GPtr.learning_rate, GPtr.batch_... | [
"0.85343236",
"0.8516932",
"0.8414536",
"0.8300317",
"0.8300317",
"0.8300317",
"0.8230759",
"0.7778933",
"0.7768146",
"0.77597785",
"0.76971626",
"0.76763844",
"0.7674373",
"0.76134187",
"0.7613208",
"0.761225",
"0.761225",
"0.75950474",
"0.7593542",
"0.7588417",
"0.75848746"... | 0.0 | -1 |
Add new vertex to the graph | def ohmD(YKHO) -> int:
YKHO.v_count += 1
YKHO.adj_matrix.append(list())
for yv6U in YKHO.adj_matrix:
while len(yv6U) < YKHO.v_count:
yv6U.append(0)
return YKHO.v_count | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ohmD(YKHO):\n pass",
"def ohmD(YKHO, Ty9i):\n pass",
"def ohmD(YKHO, SLBp):\n YKHO.vertices.append(SLBp)",
"def ohmD(YKHO, rJkO):\n YKHO.vertices[rJkO] = []",
"def ohmD(YKHO, SLBp=Yegm()):\n YKHO.vertices.append(SLBp)",
"def ohmD(YKHO, niHF: n):\n rJkO = Yegm(niHF)\n YKHO._graph[... | [
"0.87688035",
"0.8624204",
"0.8588565",
"0.8440784",
"0.8436661",
"0.84127146",
"0.8399679",
"0.8357171",
"0.83412665",
"0.83412665",
"0.83412665",
"0.83412665",
"0.83412665",
"0.8291809",
"0.8289213",
"0.8274887",
"0.8257404",
"0.8257404",
"0.8257404",
"0.82511395",
"0.82429... | 0.0 | -1 |
Remove edge from the graph | def iyca(YKHO, zZcM: int, zr3f: int) -> None:
zNig = len(YKHO.adj_matrix) - 1
if zZcM > zNig or zr3f > zNig:
return
if zZcM < 0 or zr3f < 0:
return
if zZcM == zr3f:
return
if YKHO.adj_matrix[zZcM][zr3f] == 0:
return
else:
YKHO.adj_matrix[zZcM][zr3f] = 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iyca(YKHO, tTpl):\n pass",
"def iyca(YKHO, tTpl):\n try:\n YKHO.hyperedge.remove(set(tTpl))\n except ValueError:\n raise jHsn.NetworkXError('The edge %s is not in the hypergraph' % tTpl)",
"def iyca(YKHO, tTpl):\n Ty9i, yzQ0 = tTpl\n try:\n del YKHO[Ty9i][yzQ0]\n ... | [
"0.880476",
"0.83624655",
"0.8225278",
"0.82229453",
"0.81683093",
"0.8104377",
"0.8085876",
"0.803971",
"0.7966392",
"0.78567153",
"0.7855424",
"0.7811427",
"0.7792635",
"0.7787015",
"0.77771056",
"0.7749481",
"0.77477556",
"0.77212983",
"0.7720773",
"0.76923627",
"0.7692067... | 0.0 | -1 |
Return true if provided path is valid, False otherwise | def zwDd(YKHO, pmON: []) -> bool:
zNig = len(pmON)
if zNig == 0 or zNig == 1:
return True
d6pt = 0
while d6pt < zNig:
zZcM = pmON[d6pt]
zr3f = pmON[d6pt + 1]
if YKHO.adj_matrix[zZcM][zr3f] > 0:
if zr3f == pmON[-1]:
return True
d6pt ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JK0O(YKHO, pmON: str) -> bool:\n pass",
"def JK0O(Emd4, pmON):\n return bool(Emd4.PATH.match(pmON))",
"def JK0O(Emd4, pmON):\n return bool(Emd4.PATH.match(pmON))",
"def deVW(YKHO, pmON: Path) -> bool:\n raise NotImplementedError",
"def SGVO(pmON):\n return Hy7s.path.isfile(pmON) and Hy7s... | [
"0.86613053",
"0.8561277",
"0.8561277",
"0.8548114",
"0.85066164",
"0.8493407",
"0.84178156",
"0.83500564",
"0.831822",
"0.8313069",
"0.8313069",
"0.8250806",
"0.82173276",
"0.81746197",
"0.8153064",
"0.79939026",
"0.79677796",
"0.79538393",
"0.79470676",
"0.79107803",
"0.790... | 0.7254796 | 48 |
Create list for choices kwarg of Field from enum class | def mrPm(BRR6):
return [(hkS8, hkS8) for hkS8 in BRR6.__dict__.keys() if not hkS8.startswith('_')] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def A5t8(YKHO, mrPm):\n if mrPm:\n return mrPm if callable(mrPm) else lambda: mrPm\n elif isinstance(YKHO.field_type, qQ1Y.EnumMeta):\n return lambda: list(YKHO.field_type.__members__.keys())\n return lambda: None",
"def YDRQ(Jyyj):\n qQ1Y = maau.Enum(Jyyj.label, Jyyj.choices)\n retu... | [
"0.72313565",
"0.70900834",
"0.70046365",
"0.69586754",
"0.6920054",
"0.6852168",
"0.677815",
"0.677815",
"0.6738539",
"0.66420364",
"0.6640862",
"0.66102344",
"0.6569438",
"0.6519153",
"0.64948064",
"0.647067",
"0.6470095",
"0.6469045",
"0.64555496",
"0.64436936",
"0.6441173... | 0.642075 | 22 |
Return unique identifier for camera. Need to overide this because the base class only returns the 1st 6 characters of the serial number, which is not a unique identifier for most of the camera types | def PObu(YKHO):
return YKHO._serial_number | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ShR8(YKHO):\n return f'reolink_camera_{YKHO._base.unique_id}'",
"def okcC(YKHO):\n return YKHO._camera.uid",
"def Artt(YKHO):\n if not YKHO._cam:\n raise HHzy('The camera is not opened!')\n return hex(YKHO._cam.contents.guid)[2:-1]",
"def ShR8(YKHO) -> str:\n return f'{YKHO.charger.... | [
"0.84128565",
"0.74282646",
"0.7342325",
"0.7295147",
"0.7248974",
"0.711377",
"0.7109413",
"0.7105346",
"0.7094455",
"0.7094455",
"0.7090136",
"0.70757157",
"0.70663875",
"0.7064967",
"0.7058031",
"0.7039712",
"0.70319664",
"0.7016303",
"0.70054156",
"0.700297",
"0.69932944"... | 0.0 | -1 |
Current temperature of the camera's image sensor. | def L8Ty(YKHO):
return YKHO._SBIGDriver.query_temp_status(YKHO._handle).imagingCCDTemperature * P6bq.Celsius | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PQ0h(YKHO):\n return YKHO._get_location(jKi7.b('CustomData|CameraTemp1!'))",
"def CMHP(YKHO) -> float:\n return YKHO.device['sensors']['temperature']",
"def CMHP(YKHO):\n if YKHO._sensor == fVsx:\n return YKHO._external_temp\n else:\n return YKHO._room_temp",
"def ovGo(YKHO) -> ... | [
"0.77913177",
"0.7747414",
"0.7743242",
"0.7682124",
"0.7644198",
"0.7611236",
"0.7610815",
"0.75988305",
"0.75558716",
"0.75552666",
"0.75267977",
"0.7511518",
"0.750104",
"0.74738324",
"0.7463117",
"0.7463117",
"0.74611706",
"0.74477935",
"0.7436591",
"0.7433842",
"0.742744... | 0.70918065 | 78 |
Take in a numpy array X,y, theta and generate the cost function using theta as parameter in a linear regression model | def Yiqv(EcVT, LVAh, q7In):
r8hN = len(LVAh)
N6Z1 = EcVT.dot(q7In)
HvUZ = (N6Z1 - LVAh) ** 2
return 1 / (2 * r8hN) * oyIN.sum(HvUZ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MU2M(q7In, EcVT, LVAh):\n r8hN = len(LVAh)\n epBp = EcVT @ q7In\n MKlR = m1Hg(epBp)\n Oa10 = (-LVAh @ oyIN.log(MKlR) - (1 - LVAh) @ oyIN.log(1 - MKlR)) / r8hN\n Ro40 = (MKlR - LVAh) @ EcVT / r8hN\n return (Oa10, Ro40)",
"def qzBL(q7In, EcVT, LVAh):\n Mkmy = m1Hg(EcVT.dot(q7In.reshape(EcV... | [
"0.80922234",
"0.8023049",
"0.8018978",
"0.7961106",
"0.7911814",
"0.7883477",
"0.7836631",
"0.78257257",
"0.77703565",
"0.77331316",
"0.7730536",
"0.7724897",
"0.7626974",
"0.76232797",
"0.76153797",
"0.76119524",
"0.76087224",
"0.7559954",
"0.75325125",
"0.75238645",
"0.751... | 0.7321609 | 31 |
Constructor of ParallelBeamZ class | def FIMM(YKHO, ACCB, zaY1, cflT, wW3z):
khHy.__init__(YKHO, wW3z)
YKHO.Ex = ACCB
YKHO.Ey = zaY1
YKHO.z0 = cflT | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, UqpO, G1Hx, p1Ip=None):\n if type(UqpO) == oyIN.ndarray:\n YKHO._pixels = UqpO\n YKHO._basis_grid = None\n YKHO.num_pixels = UqpO.shape[0]\n YKHO._xyz_type = 'explicit'\n elif type(UqpO) == FEuE.BasisGrid:\n YKHO._pixels = None\n YKHO._basis_grid = Uqp... | [
"0.67959124",
"0.6692257",
"0.6689065",
"0.6686188",
"0.6672025",
"0.6573568",
"0.65518636",
"0.6538809",
"0.6524262",
"0.6498995",
"0.6443214",
"0.64005446",
"0.63942325",
"0.6393422",
"0.6393378",
"0.6362584",
"0.63313985",
"0.63230026",
"0.6304539",
"0.62872446",
"0.628701... | 0.0 | -1 |
Find the model in the arg Looks for `frameReport`, `report`, and `modelName`. Might be a compute or analysis model. | def SXjq(Emd4, YEnM):
if isinstance(YEnM, fpEg.STRING_TYPES):
Ylbp = YEnM
elif isinstance(YEnM, dict):
for YRbF in ('frameReport', 'report', 'computeModel', 'modelName'):
if YRbF in YEnM:
Ylbp = YEnM.get(YRbF)
break
else:
Ylbp = Non... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jYof(WLRG='model_type', DMw4=None):\n oEge, W3Ts = ('', '')\n uBeC = bsaa()\n if WLRG in uBeC:\n DMw4 = uBeC[WLRG]\n if not DMw4:\n for tXcE, d7pR in enumerate(HwRy.argv[:-1]):\n if d7pR == '--%s' % WLRG:\n DMw4 = HwRy.argv[tXcE + 1].lower()\n ... | [
"0.64212584",
"0.64026004",
"0.6314192",
"0.6154364",
"0.60913867",
"0.60859704",
"0.6067999",
"0.6058653",
"0.6009938",
"0.6008869",
"0.59522176",
"0.5931631",
"0.5883649",
"0.5879111",
"0.58313686",
"0.5804013",
"0.57932484",
"0.5789892",
"0.57888013",
"0.5784394",
"0.57699... | 0.63567626 | 2 |
Returns ``animation`` for models with ``Animation`` in name Subclasses should override, but call this. The mapping of ``Animation`` to ``animation`` should stay consistent here. | def tNs_(Emd4, uUmd, _hkX):
if SIq9 in uUmd.lower():
return SIq9
return uUmd | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WQPn(YKHO, mWFP):\n if mWFP in YKHO._animations.keys():\n return YKHO._animations[mWFP]\n return None",
"def QpTf(YKHO, mWFP):\n return YKHO.find(YKHO.animpath, '%s.json' % mWFP)",
"def WQPn(YKHO, Vfpw):\n return YKHO.animations[Vfpw]",
"def e66p(YKHO):\n geh0 = YKHO.__request(YKHO.... | [
"0.76659167",
"0.7171372",
"0.691515",
"0.6724026",
"0.6516551",
"0.6111142",
"0.60018194",
"0.5989836",
"0.5953844",
"0.59141725",
"0.5837817",
"0.58032477",
"0.57605016",
"0.5759716",
"0.5759484",
"0.5725844",
"0.56848836",
"0.5623837",
"0.5598814",
"0.5594685",
"0.55855125... | 0.6182896 | 5 |
Returns a string with information about the element such as atomic number, symbol, atomic mass, group and period | def wHJl(YKHO):
return '<Element %s. atomic_number = %d, symbol %s, group = %s, period = %d>' % (YKHO.element, YKHO.atomic_number, YKHO.symbol, YKHO.group_number, YKHO.period_number) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SnfU(YKHO) -> str:\n if any((getattr(YKHO, WKvO, None) is None for WKvO in ('info', 'nset', 'n', 'lmax', 'lmin', 'nshell', 'exponents', 'coefficients'))):\n raise ValueError('Must have all attributes defined to get string representation')\n yvT9 = f'{YKHO.element} {YKHO.name} {' '.join(YKHO.alias_... | [
"0.62936825",
"0.6281036",
"0.6226632",
"0.6134974",
"0.6134974",
"0.61193",
"0.61157626",
"0.60659593",
"0.6018641",
"0.5957383",
"0.5924567",
"0.59149766",
"0.59104776",
"0.59078723",
"0.5887704",
"0.5849761",
"0.5796587",
"0.5792155",
"0.57863796",
"0.57829505",
"0.5778888... | 0.7335278 | 0 |
Return nothing Save a JSON representation of the object in a file | def xkzz(YKHO):
Ux0P = YKHO.__file_path
SeSY = dict()
Nkld = YKHO.__objects
for z1Rg in Nkld:
SeSY[z1Rg] = Nkld[z1Rg].to_dict()
with open(Ux0P, mode='w', encoding='utf-8') as eHNT:
eHNT.write(qQXR.dumps(SeSY)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xkzz(YKHO):\n YKHO.__file_path = 'file.json'\n with open(YKHO.__file_path, 'w') as DfdU:\n qQXR.dump(YKHO.__objects, DfdU, default=str)",
"def ncJT(object, nUeQ):\n with open(nUeQ, 'wb') as hlel:\n qQXR.dump(object, hlel)",
"def M8gv(YKHO, Ux0P):\n\n def mivr(KAOR):\n if no... | [
"0.7814732",
"0.7788531",
"0.7675278",
"0.7622844",
"0.76023805",
"0.75081617",
"0.74985427",
"0.74972224",
"0.7489385",
"0.74735624",
"0.74653596",
"0.74653596",
"0.74638116",
"0.74588495",
"0.7447399",
"0.74196804",
"0.74088305",
"0.73983973",
"0.7394469",
"0.7387678",
"0.7... | 0.75253123 | 5 |
Returns an object from a JSON string from the JSON string in an textfile. | def U3hF(YKHO):
Ux0P = YKHO.__file_path
try:
with open(Ux0P, mode='r', encoding='utf-8') as eHNT:
EfGk = qQXR.loads(eHNT.read())
for z1Rg in EfGk:
if z1Rg.split('.')[0] == 'Place':
YKHO.__objects[z1Rg] = pRgP(**EfGk[z1Rg])
elif z1Rg.split('.')[... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EBvf(Ux0P):\n with open(Ux0P, encoding='utf-8') as Vf_1:\n zFiD = Vf_1.readline()\n M_Yt = qQXR.loads(zFiD)\n return M_Yt",
"def refC(Emd4, wM3v):\n with open(wM3v, 'r', encoding='utf-8') as nUeQ:\n l5Ny = nUeQ.read()\n return Emd4.from_dict(qQXR.loads(l5Ny))",
"def refC(Em... | [
"0.79432714",
"0.7605759",
"0.7592442",
"0.7580964",
"0.7576881",
"0.7576881",
"0.7576881",
"0.7576881",
"0.7576881",
"0.7576881",
"0.7575687",
"0.7575687",
"0.7531813",
"0.75245035",
"0.75245035",
"0.7423001",
"0.7402049",
"0.7402049",
"0.7396664",
"0.7369569",
"0.73656094",... | 0.0 | -1 |
Return a dictionary of all symbols as key and their current price as value | def xXyj(YKHO):
WKvO = YKHO.client.get_all_tickers()
q_E9 = {}
for fK8P in WKvO:
o61b = fK8P['symbol']
hI0L = fK8P['price']
q_E9[o61b] = float(hI0L)
return q_E9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mUwC(YKHO):\n JHT3 = {}\n with YKHO.lock:\n JHT3['on-demand'] = YKHO.on_demand_price_dict\n JHT3['spot'] = YKHO.spot_price_list\n return JHT3",
"def o61b(YKHO):\n return {'USD': '$', 'GBP': '£', 'EUR': '€', 'CNY': '角', 'JPY': '¥', 'MXN': '$'}[YKHO.value]",
"def AVpI(YKHO):\n Be... | [
"0.70851153",
"0.68401825",
"0.6706395",
"0.6612203",
"0.64788234",
"0.6422348",
"0.64033484",
"0.64033484",
"0.64033484",
"0.64033484",
"0.64033484",
"0.64033484",
"0.6386874",
"0.6380899",
"0.63684875",
"0.6366309",
"0.6355989",
"0.6336639",
"0.63039285",
"0.628405",
"0.624... | 0.61400515 | 26 |
Given a model instance save it to the database. | def lac1(YKHO, QePW, YEnM, L03z, nZuS):
YEnM.save()
wyyA.delete(zgsZ(YEnM.key)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xkzz(Emd4, KAOR=None):\n if KAOR:\n NCls().add(KAOR)\n NCls().commit()",
"def xkzz(YKHO, NCls, C3ST):\n YKHO._isinstance(C3ST)\n NCls.add(C3ST)\n NCls.flush()\n return C3ST",
"def lac1(YKHO, *qIxc, **B2fa):\n pass",
"def h7aa(YKHO, C3ST):\n raise NotImplementedError()",
"... | [
"0.78303504",
"0.7749092",
"0.75495917",
"0.75167227",
"0.75073874",
"0.74566686",
"0.74345255",
"0.7374292",
"0.7366541",
"0.7217654",
"0.72112834",
"0.7198146",
"0.7198146",
"0.7197217",
"0.7193832",
"0.7193832",
"0.7193832",
"0.7193832",
"0.7193832",
"0.7193832",
"0.719383... | 0.0 | -1 |
Ensures correct output from do_batch_normalization. In this case the resulting distribution is centered, because scale = 1 and shift = 0. | def QuZm(YKHO):
PPYW = DiNR.do_batch_normalization(feature_matrix=ye3t + 0.0, scale_parameter=1.0, shift_parameter=0.0)
YKHO.assertTrue(XTiz.allclose(PPYW, vLD8, atol=ANWk)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NkkI(YKHO):\n YKHO.scale(1 / YKHO.sum())",
"def NkkI(WKvO, KMvS, UqYS, aMvu, Rf7_, YxhP, aiJ_, DkWr, NXpY, SGf8):\n return QCgq.apply(WKvO, KMvS, UqYS, aMvu, Rf7_, YxhP, aiJ_, DkWr, NXpY, SGf8)",
"def ph8s(LNo8, NXpY):\n hGax = oyIN.copy(LNo8)\n Yfee = oyIN.mean(hGax)\n TxuS = oyIN.std(hGax)... | [
"0.641554",
"0.6403681",
"0.63761383",
"0.63004404",
"0.6263181",
"0.6261915",
"0.6235824",
"0.6151174",
"0.6138484",
"0.61384505",
"0.6100857",
"0.60988486",
"0.60773414",
"0.6069309",
"0.6055324",
"0.6043616",
"0.60089505",
"0.5988916",
"0.59879214",
"0.59487635",
"0.594776... | 0.72899413 | 0 |
Construct the network structure (i.e. computational graph) for tensorflow. | def KMyW(YKHO, NgvF, XfQO):
Zode = YKHO.encoder.forward(YKHO.encoder_input, YKHO.trainable, YKHO.is_training)
N77f = ZylS.constant(0.0)
if YKHO.enc_class_num is not 0:
xB9x, wBkj = ZylS.split(Zode, [YKHO.enc_hidden_num, YKHO.enc_class_num], axis=1)
N77f += ZylS.losses.softmax_cross_entropy(Y... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pmwp(gxm5, svPB, kEas=3, rb7a=3, TxAj=512):\n DGTE = ZylS.Graph()\n with DGTE.as_default():\n with ZylS.name_scope('Input'):\n Hwir = ZylS.placeholder(ZylS.float32, shape=(None, gxm5), name='Input_Labels')\n g7wi = ZylS.placeholder(ZylS.float32, shape=(None, svPB), name='Inpu... | [
"0.75187266",
"0.7491467",
"0.74228644",
"0.7411155",
"0.7369005",
"0.7352819",
"0.7340667",
"0.73017114",
"0.72944254",
"0.7255894",
"0.7193913",
"0.71927994",
"0.71681094",
"0.7163416",
"0.7156587",
"0.7155592",
"0.7151252",
"0.71450984",
"0.713895",
"0.71387804",
"0.713015... | 0.0 | -1 |
Constructor for class Image, parsing raw feature and validating fields | def FIMM(YKHO, rdlD):
uc9J = rdlD.rstrip('\n')
uc9J = uc9J.split(',')
if len(uc9J) != 7:
raise Exception('Img row invalid')
YKHO.name = uc9J[0]
YKHO.point = PvyL((float(uc9J[2]), float(uc9J[1])))
YKHO.z = uc9J[3]
YKHO.yaw = uc9J[4]
YKHO.pitch = uc9J[5]
YKHO.roll = uc9J[6]
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, r8m5=None, cUEj=None, BW1J=None, bySB=None):\n super(KnQB, YKHO).__init__()\n YKHO._image_id = None\n YKHO._features_count = None\n YKHO._feature_length_in_bits = None\n YKHO._features = None\n if r8m5 is not None:\n YKHO.image_id = r8m5\n if cUEj is not None:\n YK... | [
"0.7316695",
"0.70866346",
"0.70674455",
"0.7042561",
"0.70292234",
"0.6979063",
"0.6953203",
"0.69217026",
"0.67803377",
"0.6768191",
"0.6749777",
"0.6742066",
"0.6714685",
"0.6652516",
"0.6649302",
"0.66371685",
"0.6616822",
"0.66077745",
"0.66077745",
"0.66077745",
"0.6603... | 0.6302532 | 53 |
Shortcut to make placeholders. Default dtype is tf.float32. | def I4YG(kc1W):
wQcs = []
for mWFP, qIxc in kc1W.items():
if len(qIxc) == 2 and isinstance(qIxc[1], exCv):
ROpF, yDqo = qIxc
else:
ROpF, yDqo = (qIxc, 'tf.float32')
wQcs.append("{0} = tf.placeholder({2}, {1}, name='{0}')".format(mWFP, ROpF, yDqo))
return wQcs | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def q5nL(YKHO):\n WKvO = ZylS.placeholder('float', [YKHO.layer_shape[0], 1], name='x-input')\n return WKvO",
"def ajAQ(jHsn, KndY):\n return (ZylS.placeholder(float, shape=[None, jHsn], name='x'), ZylS.placeholder(float, shape=[None, KndY], name='y'))",
"def TxBl(YKHO):\n YKHO.input_placeholder = Z... | [
"0.6811697",
"0.68021804",
"0.6672742",
"0.6632873",
"0.66087526",
"0.65836275",
"0.65619",
"0.6511501",
"0.6498563",
"0.64925283",
"0.64519197",
"0.6448476",
"0.6448212",
"0.64471275",
"0.6441063",
"0.6417418",
"0.64171183",
"0.64154005",
"0.6409919",
"0.64067155",
"0.638670... | 0.70265293 | 0 |
Get a variable from a scope, or create it if it doesn't exist. kwargs will be passed to tf.get_variable if a new one is created. | def FfGe(XuY2, h7Vl, **B2fa):
try:
with ZylS.variable_scope(h7Vl) as rrBf:
return ZylS.get_variable(XuY2, **B2fa)
except ValueError:
with ZylS.variable_scope(h7Vl, reuse=True) as rrBf:
return ZylS.get_variable(XuY2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def by3i(SRYB, rrBf=None):\n rrBf = '' if rrBf is None else rrBf\n with ZylS.variable_scope(rrBf, reuse=True):\n Ty9i = ZylS.get_variable(SRYB)\n return Ty9i",
"def aO1F(mWFP, *qIxc, **B2fa):\n try:\n return ZylS.get_variable(mWFP, *qIxc, **B2fa)\n except ValueError:\n ZylS.ge... | [
"0.7413247",
"0.73799455",
"0.70803857",
"0.63503706",
"0.63503706",
"0.63503706",
"0.61749023",
"0.61669636",
"0.6152137",
"0.6151638",
"0.61007315",
"0.60940504",
"0.60940504",
"0.607981",
"0.6059434",
"0.6036157",
"0.60324776",
"0.6028683",
"0.6028683",
"0.60272986",
"0.60... | 0.8017618 | 0 |
Return string representation of this feed. | def wHJl(YKHO):
return '<{}(feed={})>'.format(YKHO.__class__.__name__, YKHO._feed) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHJl(YKHO) -> str:\n return '<{}(feed={})>'.format(YKHO.__class__.__name__, YKHO.feed)",
"def yLCI(YKHO):\n return str(YKHO)",
"def yLCI(YKHO):\n return str(YKHO)",
"def Napc(YKHO):\n return repr(YKHO)",
"def zAg0(YKHO):\n return QGpr.tostring(YKHO.toxml(), pretty_print=True).decode()",
... | [
"0.8111574",
"0.73792994",
"0.73792994",
"0.7311426",
"0.72828466",
"0.727597",
"0.7268891",
"0.7252979",
"0.7252979",
"0.7252979",
"0.7247692",
"0.7211932",
"0.7211932",
"0.7211932",
"0.7211932",
"0.7211932",
"0.7211932",
"0.7211932",
"0.7211932",
"0.7211932",
"0.7211932",
... | 0.7823191 | 1 |
Return the last successful update of this feed. | def kMH5(YKHO) -> h8nf[qcWV]:
return YKHO._last_update_successful | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cV9T(YKHO):\n return YKHO._last_update",
"def cV9T(YKHO):\n return YKHO.initial_payload.get('last_update', None)",
"def mn17(YKHO):\n return YKHO._last_updated",
"def cV9T(YKHO):\n return YKHO.json_dict.get('last_update', None)",
"def w1di(YKHO):\n YEnM = YKHO.get_object()\n return YE... | [
"0.76692647",
"0.75460845",
"0.7422285",
"0.73794836",
"0.7256428",
"0.71968096",
"0.71608657",
"0.71446663",
"0.7108213",
"0.7075491",
"0.7075403",
"0.7075403",
"0.7075403",
"0.706186",
"0.7043376",
"0.7030104",
"0.7030104",
"0.7004944",
"0.69704014",
"0.6924891",
"0.6919181... | 0.7747782 | 0 |
Compute the mean of the estimated power of 5 replications over sample sizes. | def OmH2(sg14, QOe9, bVA9=False):
if QOe9 == 'MaxMargin':
QOe9 = ['MaxMargin', 'Dcorr']
qyiR = aQ_M(wAEU(sg14))
EULa = oyIN.array([oyIN.mean([naF9(QOe9, pow_type='indep', sim=sg14, n=100, p=tpio, auto=bVA9, noise=True) for bGrB in range(c05y)]) for tpio in qyiR])
oyIN.savetxt('../benchmarks/vs_s... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JBMS(gGnb):\n return j93S(gGnb) / Esro(gGnb)",
"def rVV8(zNig):\n return oyIN.ones((zNig, zNig)) / (zNig * zNig)",
"def tekL(k50i: Collection[float]) -> float:\n return sum((kLQb(WKvO) for WKvO in k50i)) / len(k50i)",
"def tgoM(ywwl, WKvO):\n beOw = [wu2O(ywwl) for YRbF in range(WKvO)]\n r... | [
"0.65831405",
"0.6396107",
"0.6339612",
"0.631425",
"0.6241461",
"0.62243414",
"0.6194965",
"0.61844873",
"0.6168202",
"0.61658525",
"0.61251014",
"0.612495",
"0.60885537",
"0.60473156",
"0.6036353",
"0.6017224",
"0.60160947",
"0.59877527",
"0.5975096",
"0.59728837",
"0.59553... | 0.0 | -1 |
Return an Azure Key Vault record. | def Ueki(YKHO):
yield from iD4G.run(YKHO._get_tenant_kvs, YKHO._process_key_vault, YKHO._processes, YKHO._threads, __name__) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Dvy1(l1YK, finE):\n OMV9 = l1YK.as_dict()\n SA3J = False\n if OMV9['properties'].get('enable_soft_delete'):\n SA3J = OMV9['properties'].get('enable_soft_delete')\n xX5G = False\n if OMV9['properties'].get('enable_purge_protection'):\n xX5G = OMV9['properties'].get('enable_purge_pro... | [
"0.6134625",
"0.6036094",
"0.5974198",
"0.5678424",
"0.56042945",
"0.5488768",
"0.5448064",
"0.54430735",
"0.5409855",
"0.5385078",
"0.5353108",
"0.5350433",
"0.5332988",
"0.53320974",
"0.5318647",
"0.52216774",
"0.52126336",
"0.52071285",
"0.5197253",
"0.51771224",
"0.516321... | 0.0 | -1 |
Normalize the Key Vault data plane record. | def mgy2(oHE7, eWAo, F8DO, finE, ehIZ):
try:
for YRbF, Ty9i in enumerate(oHE7):
OMV9 = Ty9i.as_dict()
aC0l = OMV9.get('id')
if eWAo == 'key_vault_key':
aC0l = OMV9.get('kid')
M2aC = OMV9['attributes'].get('expires') is not None
etR_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q7gV():\n pass",
"def Q7gV(YKHO, nPrm):\n return nPrm",
"def jnV4(YKHO):\n pass",
"def NkkI(YKHO):\n pass",
"def Dvy1(l1YK, finE):\n OMV9 = l1YK.as_dict()\n SA3J = False\n if OMV9['properties'].get('enable_soft_delete'):\n SA3J = OMV9['properties'].get('enable_soft_delete')\... | [
"0.7315642",
"0.6820962",
"0.667054",
"0.64588046",
"0.6458378",
"0.6430046",
"0.61066395",
"0.6100841",
"0.6068712",
"0.6024937",
"0.5991924",
"0.5850494",
"0.58379954",
"0.582723",
"0.58131856",
"0.5793342",
"0.5731137",
"0.57281774",
"0.5710885",
"0.5697187",
"0.5678473",
... | 0.0 | -1 |
parameter initialization according to the standard normal distribution | def vSpt(r8hN):
if isinstance(r8hN, U78l.Conv2d):
r8hN.weight.data.normal_(0, 1)
if r8hN.bias is not None:
r8hN.bias.data.normal_(0, 1)
if isinstance(r8hN, U78l.Linear):
r8hN.weight.data.normal_(0, 1)
if r8hN.bias is not None:
r8hN.bias.data.normal_(0, 1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def h6h3(JBMS=0.0, M1Jx=0.01):\n\n def PvP4(r8hN):\n if isinstance(r8hN, U78l.Linear):\n tpio = r8hN.weight.data.size()\n DbxN.normal_(r8hN.weight.data, mean=JBMS, std=M1Jx / tpio[1])\n if isinstance(r8hN, cR9W):\n tpio = r8hN.centres.data.size()\n DbxN.... | [
"0.7299623",
"0.7273023",
"0.72107136",
"0.71805",
"0.7169051",
"0.7169051",
"0.71401507",
"0.7083015",
"0.706212",
"0.7060746",
"0.70319825",
"0.69895995",
"0.69606435",
"0.69284546",
"0.6917806",
"0.6917551",
"0.68741995",
"0.6865607",
"0.68173635",
"0.67856324",
"0.6784388... | 0.0 | -1 |
the kaiming parameter initialization with normal distribution | def OWJJ(r8hN):
if isinstance(r8hN, U78l.Conv2d):
U78l.init.kaiming_normal_(r8hN.weight, nonlinearity='relu')
if r8hN.bias is not None:
U78l.init.constant_(r8hN.bias, 0)
elif isinstance(r8hN, U78l.Linear):
U78l.init.kaiming_normal_(r8hN.weight, nonlinearity='relu')
if... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UMh3(YKHO, MkKh=10):\n YKHO.alpha = oyIN.ones(YKHO.K) * MkKh\n YKHO.means = 2 * oyIN.random.rand(YKHO.K, YKHO.D) - 1\n YKHO.covariances = oyIN.array([oyIN.eye(2) for bGrB in range(YKHO.K)])\n YKHO.update_precisions_from_covariances()",
"def j8mR(YKHO):\n YKHO.static_test_kaiming_initializer_co... | [
"0.69887215",
"0.6958081",
"0.68214893",
"0.67709583",
"0.67627555",
"0.6704674",
"0.66999954",
"0.6661587",
"0.6649957",
"0.658668",
"0.64963126",
"0.64961815",
"0.64765143",
"0.64387965",
"0.643457",
"0.64242584",
"0.6421443",
"0.63662887",
"0.6356678",
"0.6348658",
"0.6334... | 0.0 | -1 |
Cleaning input dataset, Removing punctuation marks, Removing Guardians advertisement setences Lowercasing the data | def o8c1(nPrm):
Cj2W = []
Cj2W = [ZbWC.sub(pattern='[\\!"#$%&\\*+,-./:;<=>?@^_`()|~=•–]', repl='', string=WKvO).strip().split(' ') for WKvO in nPrm.split('\n') if not WKvO.endswith('www.theguardian.com')]
return [[LVAh.replace('“', '').replace('”', '').replace("'", '').lower() for LVAh in WKvO] for WKvO in ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KElI(__n6):\n if isinstance(__n6, list):\n return [str.lower(YRbF.replace(' ', '')) for YRbF in __n6]\n elif isinstance(__n6, str):\n return str.lower(__n6.replace(' ', ''))\n else:\n return ' '",
"def o8c1(nPrm):\n nPrm = nPrm.lower()\n nPrm = nPrm.strip()\n return nPr... | [
"0.7615324",
"0.7315411",
"0.73041236",
"0.72312176",
"0.722668",
"0.72164947",
"0.68841803",
"0.67537725",
"0.67334",
"0.6721274",
"0.6691398",
"0.6689342",
"0.6688809",
"0.6662802",
"0.6654832",
"0.6652014",
"0.66354185",
"0.6622841",
"0.6620382",
"0.6619153",
"0.6612923",
... | 0.6533091 | 26 |
Return image path given image id. As this function is used in building the image features, and some of the | def XfFs(YKHO, r8m5: str) -> str:
if r8m5 not in YKHO.valid_image_ids:
r8m5 = YKHO.blank_image_id
return Hy7s.path.join(YKHO.get_image_path(YKHO.opt), r8m5) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QMAG(h_xa, qlA9, r8m5):\n return Hy7s.path.join(h_xa, qlA9, 'images', r8m5 + '.jpg')",
"def Wp06(YKHO, A0tR):\n kwEa = YKHO.game_index_training[A0tR]\n iI7L = YKHO.img_metadata[str(kwEa)]['filename']\n p4m8 = YKHO.images_path + '/' + iI7L\n return p4m8",
"def iV4L(YKHO, r8m5: str) -> str:\n ... | [
"0.78077227",
"0.7618827",
"0.7612228",
"0.7563638",
"0.7467675",
"0.73081154",
"0.7231339",
"0.71978277",
"0.7175798",
"0.71290267",
"0.70452017",
"0.7036134",
"0.69920015",
"0.6949986",
"0.6948657",
"0.6853645",
"0.6831498",
"0.68228847",
"0.6811233",
"0.6805812",
"0.680136... | 0.84665054 | 0 |
Determines path to the data file. | def s8df(YKHO, y7GR: Opt) -> str:
i0XC = Hy7s.path.join(y7GR['datapath'], 'igc')
return i0XC | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s8df(YKHO, Ux0P):\n wd8X = Hy7s.path.dirname(xAKo)\n return Hy7s.path.join(wd8X, '..', 'data', Ux0P)",
"def p5UZ(YKHO, Ux0P):\n return Hy7s.path.join(Hy7s.path.dirname(xAKo), 'data', Ux0P)",
"def s8df() -> str:\n i0XC = Hy7s.path.join(Hy7s.path.dirname(xAKo), 'data')\n return i0XC",
"def s... | [
"0.8467249",
"0.8348426",
"0.8322356",
"0.8311043",
"0.8289156",
"0.82309073",
"0.82285917",
"0.82214886",
"0.8117438",
"0.810469",
"0.8011348",
"0.80092734",
"0.7999476",
"0.7984532",
"0.7955973",
"0.7940754",
"0.7924985",
"0.7921555",
"0.79099643",
"0.78975314",
"0.7842273"... | 0.7608614 | 48 |
Returns an active user that matches the payload's user id and email. | def K2e4(YKHO, pB3N):
C3ST = egNl()
uJjO = pB3N.get('id', None)
if not uJjO:
raise Bx6I.AuthenticationFailed('Invalid payload')
try:
CBIr = C3ST.objects.get(pk=uJjO, is_active=True)
except C3ST.DoesNotExist:
raise Bx6I.AuthenticationFailed('Invalid signature')
return CBIr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def atbI(YKHO, D3lj, Urat=False):\n CBIr = YKHO.users.find_one({'email': D3lj})\n if not CBIr:\n raise Exception('User not found')\n if Urat:\n return CBIr\n try:\n yo7_ = qcWV.utcnow().replace(tzinfo=CBIr['_created'].tzinfo)\n RA_F = (yo7_.date() - CBIr['_created'].date()).... | [
"0.7514856",
"0.75097454",
"0.74558693",
"0.7308307",
"0.72597086",
"0.7250959",
"0.71942514",
"0.71728665",
"0.71669465",
"0.7166468",
"0.71334505",
"0.7112367",
"0.7112084",
"0.71118134",
"0.7083313",
"0.7082216",
"0.7061471",
"0.70522046",
"0.70522046",
"0.70522046",
"0.70... | 0.70902157 | 14 |
Computes the precision for the specified values of k | def vjyh(hlel, pan_, hz5a=(1,)):
with ht2j.no_grad():
Gq8e = max(hz5a)
Ep8u = pan_.size(0)
bGrB, nvEb = hlel.topk(Gq8e, 1, True, True)
nvEb = nvEb.t()
gXXc = nvEb.eq(pan_.view(1, -1).expand_as(nvEb))
Ylbp = []
for G1Hx in hz5a:
R2Dg = gXXc[:G1Hx].v... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rhd_(u5Ef, G1Hx):\n return len(u5Ef) / G1Hx",
"def sEak(Mkmy, G1Hx):\n assert G1Hx >= 1\n Mkmy = oyIN.asarray(Mkmy)[:G1Hx]\n return oyIN.mean(Mkmy)",
"def sEak(YKHO, G1Hx):\n fdMZ = YKHO.pred_rankings.rdd.map(lambda SjLr: (SjLr[2], SjLr[1]))\n Wbxz = rRQi(fdMZ)\n return Wbxz.precisionA... | [
"0.8003211",
"0.79748034",
"0.79735845",
"0.7941222",
"0.78642285",
"0.7803938",
"0.7707779",
"0.7621563",
"0.7593218",
"0.75612706",
"0.752028",
"0.7430132",
"0.74122673",
"0.7375894",
"0.7374447",
"0.7321427",
"0.7254542",
"0.7236769",
"0.72279894",
"0.7204469",
"0.7137302"... | 0.0 | -1 |
Method returns random string. | def GLL2(u54L=3):
return ''.join((tuKI.choice(vIwR.ascii_uppercase + vIwR.digits) for bGrB in range(u54L))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bcVV(YKHO):\n gLiZ = vIwR.ascii_uppercase + vIwR.digits\n return ''.join((tuKI.choice(gLiZ) for WKvO in range(20)))",
"def eTqN():\n return str(qxeD.uuid4())[:10]",
"def tuKI():\n return str(qxeD.uuid4())",
"def zJoO(YKHO) -> str:\n return ''.join(mrPm(vIwR.ascii_letters + vIwR.digits, k=1... | [
"0.8595487",
"0.8347674",
"0.83272266",
"0.8315122",
"0.8056539",
"0.80333006",
"0.7991574",
"0.79303104",
"0.79003805",
"0.789472",
"0.7858942",
"0.7852469",
"0.7837171",
"0.78257746",
"0.7688772",
"0.76614606",
"0.7575688",
"0.7575679",
"0.75739145",
"0.7571079",
"0.7571079... | 0.74084765 | 38 |
Returns the average life expectancies for each sex for a chosen state for people with none of the diseases (healthy) compared to those with one of the four | def _KeJ(QTBn, wnys='hs611db', BaHi='ATW', jTXt='', GTA_='cmspop'):
wspz = ('AK', 'AL', 'AR', 'AZ', 'CA', 'CO', 'CT', 'DC', 'DE', 'FL', 'GA', 'HI', 'IA', 'ID', 'IL', 'IN', 'KS', 'KY', 'LA', 'MA', 'MD', 'ME', 'MI', 'MN', 'MO', 'MS', 'MT', 'NC', 'ND', 'NE', 'NH', 'NJ', 'NM', 'NV', 'NY', 'OH', 'OK', 'OR', 'PA', 'RI', ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H3vP(vxW9):\n return (sQBt('female', vxW9) + sQBt('male', vxW9)) / 2.0",
"def QcZW(QTBn):\n import numpy as oyIN\n import pandas as rLdf\n import matplotlib.pyplot as QrM1\n import itertools\n assert isinstance(QTBn, str)\n EvQg = rLdf.read_csv('./data/train.csv')\n cuCq = rLdf.read_c... | [
"0.63902456",
"0.6200903",
"0.6181152",
"0.60741395",
"0.5989828",
"0.5895142",
"0.5858077",
"0.58339083",
"0.57583886",
"0.5757108",
"0.57155305",
"0.5706307",
"0.56720084",
"0.56379586",
"0.5629535",
"0.5545246",
"0.5524407",
"0.5409278",
"0.53309697",
"0.53217006",
"0.5312... | 0.7201374 | 0 |
Gets the error response we want to send back to the client and the status from the original mobilize america response. | def MWTm(sx8k):
D2Rh = sx8k.get('error', {})
JBvl = D2Rh.pop('status_code', jGRS.HTTP_400_BAD_REQUEST)
MwSv = M9PE.from_error(D2Rh)
LbBU = Ts4I(MwSv.name, D2Rh)
return (LbBU, JBvl) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yE2g(Ol8d='Internal Server Error', JBvl=500):\n pB3N = {'status': JBvl, 'result': Ol8d}\n return (pB3N, JBvl)",
"def qwFv(tO9_):\n qQXR, bGrB = c295(tO9_)\n return (qQXR, FdK3)",
"def aqGw(YKHO, geh0):\n if geh0.get('status_code') in (403, 500, 503):\n return geh0.get('status_txt', 'U... | [
"0.7505915",
"0.74559903",
"0.73906815",
"0.7268255",
"0.7211524",
"0.7211524",
"0.7211524",
"0.7211524",
"0.7156141",
"0.71244925",
"0.70927703",
"0.69981045",
"0.69335943",
"0.6911137",
"0.6904185",
"0.6731455",
"0.67052144",
"0.6691486",
"0.668323",
"0.66767913",
"0.665733... | 0.6843796 | 15 |
Generate an error response object from the code and error message. Used to pass through the mobilize america error so that the front end has access to it. | def Ts4I(kmfd, QoqA):
aeup = QoqA.get('detail')
if kmfd == M9PE.ZIP_INVALID.name:
return {'code': M9PE.VALIDATION.name, 'detail': eEtV()}
return {'code': kmfd, 'detail': aeup or QoqA} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rS_m(Wxnj, l5Ny, vN4r=None):\n return {'error': {'code': Wxnj, 'text': l5Ny}}",
"def jxdG(SaEn):\n geh0 = {'_status': 'ERR', '_error': {'code': SaEn, 'message': rJmL[str(SaEn)]['description']}}\n return geh0",
"def isYT(Ol8d, VrDF='ValidationError', Wxnj=cwhV['ERROR']):\n XObx = {}\n XObx['d... | [
"0.799126",
"0.7739552",
"0.7693718",
"0.76249087",
"0.76088756",
"0.7561762",
"0.7496854",
"0.74034685",
"0.7380213",
"0.73532003",
"0.7326729",
"0.7279652",
"0.72546536",
"0.72444934",
"0.71961844",
"0.7091742",
"0.70818895",
"0.70808893",
"0.70751506",
"0.7069809",
"0.7057... | 0.68953276 | 28 |
Return the full path to the scenes directory. | def gY8a(YKHO):
return YKHO.GetDirectory(PrJt) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OyQC(YKHO, Ux0P):\n sWmO = Hy7s.getcwd()\n return sWmO + ehMU + Ux0P",
"def pmON(YKHO, y0cW=PSrQ.DATA_DIR):\n kpxX = YKHO.sensing_date().strftime('%Y-%m')\n qzOP = GkAb(y0cW or '') / 'Repository/Archive' / YKHO.id / kpxX / YKHO.tile_id()\n return qzOP",
"def MK9x():\n pmON = xAKo\n for... | [
"0.6789306",
"0.66998065",
"0.669398",
"0.6587731",
"0.65491086",
"0.6536206",
"0.6485",
"0.64078575",
"0.63720644",
"0.6366421",
"0.63286775",
"0.6328139",
"0.6309067",
"0.6305557",
"0.63009244",
"0.62915957",
"0.62850076",
"0.62786794",
"0.62761825",
"0.6269122",
"0.6267803... | 0.7606836 | 0 |
Return the full path to the models directory. | def Cmi5(YKHO):
return YKHO.GetDirectory(_vtG) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eG0V(YKHO):\n return Hy7s.path.abspath(YKHO._model_dir)",
"def klOW(YKHO):\n return YKHO.path_to_model_dir",
"def eG0V(YKHO) -> str:\n return YKHO._model_dir",
"def qwLT():\n oEge = Hy7s.path.dirname(Hy7s.path.realpath(xAKo))\n return '%s/models' % oEge",
"def adEr(YKHO) -> str:\n pas... | [
"0.8701075",
"0.8603952",
"0.8468464",
"0.8361689",
"0.8353604",
"0.80489475",
"0.80334485",
"0.80085665",
"0.7955978",
"0.783166",
"0.7725182",
"0.77188873",
"0.7667782",
"0.7657608",
"0.765728",
"0.7610924",
"0.7474294",
"0.7448602",
"0.7446141",
"0.7331446",
"0.73116285",
... | 0.82078207 | 5 |
Return the full path to the scripts directory. | def Muo0(YKHO):
return YKHO.GetDirectory(jWvg) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VZuY():\n return Hy7s.path.join(Hy7s.path.dirname(xAKo), 'scripts')",
"def Uweh(YKHO):\n return YKHO.get_file_dir('script')",
"def HkhS():\n return Hy7s.path.join(jRQh(), 'scripts')",
"def rlTN():\n return Hy7s.path.dirname(Hy7s.path.abspath(xAKo))",
"def TCZx():\n return Hy7s.path.dirna... | [
"0.89701366",
"0.8694759",
"0.8681584",
"0.8641067",
"0.8588789",
"0.8588789",
"0.85862255",
"0.8538925",
"0.85074395",
"0.83779913",
"0.82272345",
"0.8194548",
"0.8194548",
"0.8187649",
"0.81762284",
"0.80736154",
"0.80261165",
"0.7982275",
"0.7982275",
"0.7922422",
"0.78598... | 0.83685946 | 10 |
Initialises a new 'Name' instance. | def FIMM(YKHO, mWFP='', e3gf=None, mq76=None, *qIxc, **lcZy):
YKHO.name = mWFP
YKHO._IdentifiedObject = None
YKHO.IdentifiedObject = e3gf
YKHO._NameType = None
YKHO.NameType = mq76
super(av29, YKHO).__init__(*qIxc, **lcZy) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, mWFP: str):\n YKHO._name = mWFP",
"def FIMM(YKHO, mWFP):\n YKHO.Name = mWFP",
"def FIMM(Ro_8, *, mWFP: pulumi.Input[Union[str, 'Name']]):\n qe4Y.set(Ro_8, 'name', mWFP)",
"def FIMM(YKHO, mWFP: str) -> None:\n YKHO.name = mWFP",
"def FIMM(YKHO, mWFP):\n assert isinstance(mWFP, ... | [
"0.77450573",
"0.7733725",
"0.7686665",
"0.7670282",
"0.76488966",
"0.7646114",
"0.7642152",
"0.7642152",
"0.76227",
"0.7588469",
"0.7588469",
"0.75634634",
"0.75634634",
"0.75634634",
"0.75634634",
"0.75634634",
"0.7538194",
"0.7535935",
"0.74241394",
"0.7422747",
"0.7422747... | 0.7831068 | 0 |
fullyqualified name for model. Includes all subdirs below 'models' path and the filename | def Xy5V(YKHO):
SQ3m = KkWy(YKHO.filepath)
mWFP, bGrB = Hy7s.path.splitext(SQ3m[-1])
return [YKHO.own_project['name']] + SQ3m[1:-1] + [mWFP] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uqvc(YKHO) -> str:\n if YKHO.short_name is not None:\n return Hy7s.path.join(CB7x, YKHO.short_name)\n else:\n raise ValueError('No short name specified!!!')",
"def BNkc(YKHO):\n pmON = Hy7s.path.join(oimG.model, f'{YKHO.name}.model')\n return pmON",
"def TbE8():\n return HNvu",... | [
"0.7827348",
"0.77283007",
"0.7726103",
"0.7514524",
"0.7495971",
"0.7480491",
"0.74054724",
"0.73794377",
"0.7342331",
"0.72015387",
"0.7190074",
"0.7175722",
"0.7035143",
"0.6992351",
"0.6958682",
"0.6958682",
"0.6885106",
"0.6860956",
"0.68323475",
"0.6810045",
"0.67916656... | 0.0 | -1 |
Try to get current alias symbol. | def dVmA(D2wb: HgncManager, Grwu: str, GMwE: str) -> AzJI[str, str, str]:
BOjq = D2wb.get_hgnc_from_alias_symbol(Grwu)
if not BOjq:
bo34.debug('No found HGNC Symbol for id %s in (%s)', Grwu, GMwE)
return (GMwE, Grwu, Grwu)
return (QHaC, BOjq.symbol, BOjq.identifier) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y6cM(YKHO, aDi_):\n if aDi_ in YKHO.aliases:\n return YKHO.aliases[aDi_]\n return None",
"def NVoh(YKHO, mWFP, eJTR):\n wEf2 = YKHO.lookupSymbolAndScope(mWFP, eJTR)\n if wEf2 is None:\n return None\n else:\n rrBf, aDi_ = wEf2\n return aDi_",
"def QnsE(YKHO):\n ... | [
"0.7544866",
"0.6665769",
"0.65834844",
"0.6572464",
"0.65126383",
"0.6490871",
"0.64856315",
"0.6445897",
"0.6423171",
"0.6313708",
"0.6286909",
"0.626434",
"0.62476754",
"0.62473804",
"0.6200198",
"0.61642915",
"0.61574125",
"0.61311966",
"0.61192954",
"0.6118616",
"0.61129... | 0.61236346 | 18 |
Check whether element is iterable. | def SSEK(U6D_, qt2O, fwzn):
if isinstance(U6D_, (set, list)):
TjI9 = fwzn.split('/')[-1]
bo34.debug(f'Multiple values for "{qt2O}": {U6D_} [{TjI9}]')
if len(U6D_) == 1:
return list(U6D_)[0]
if len(U6D_) > 1:
for _bel in U6D_:
if cR68.match(_bel... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GfZ5(d7pR):\n return hasattr(d7pR, '__iter__')",
"def OxJJ(WKvO):\n try:\n iter(WKvO)\n except TypeError:\n return False\n else:\n return True",
"def OxJJ(WKvO):\n try:\n iter(WKvO)\n except TypeError:\n return False\n else:\n return True",
"... | [
"0.8169957",
"0.8122941",
"0.8122941",
"0.80974996",
"0.8094598",
"0.80775636",
"0.8043127",
"0.78879744",
"0.7878335",
"0.7872252",
"0.7864585",
"0.78633267",
"0.78472656",
"0.7839237",
"0.7831788",
"0.7830145",
"0.78134966",
"0.78111976",
"0.7793763",
"0.7774316",
"0.773258... | 0.0 | -1 |
Return unique identifier from a Zeroconf service. `service_type` is the Zeroconf service type (e.g. _mediaremotetv._tcp.local), `service_name` name of the service (e.g. Office or Living Room) and `properties` all keyvalue properties belonging to the service. The unique identifier is returned if available, otherwise `No... | def dIdM(NvwP: str, bSEa: str, C9U5: Mapping[str, str]) -> h8nf[str]:
if NvwP in [YtRc, DUmt]:
return bSEa.split('_')[0]
if NvwP == Yl8h:
return C9U5.get('Machine ID')
if NvwP == ArJA:
return C9U5.get('UniqueIdentifier')
if NvwP == D_2D:
return C9U5.get('deviceid')
if... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nBcv(YKHO):\n try:\n return YKHO.__properties[FGgH.remote.PROP_ENDPOINT_SERVICE_ID]\n except KeyError:\n return 0",
"def nBcv(YKHO):\n try:\n return YKHO.__properties[FGgH.remote.PROP_ENDPOINT_SERVICE_ID]\n except KeyError:\n return 0",
"def liCf(YKHO) -> qe4Y.Output... | [
"0.67073345",
"0.6674707",
"0.6527641",
"0.65087765",
"0.65087765",
"0.65087765",
"0.65087765",
"0.65087765",
"0.65087765",
"0.65087765",
"0.64476746",
"0.6406918",
"0.6406918",
"0.6406918",
"0.6406918",
"0.6406918",
"0.63924515",
"0.6360959",
"0.634952",
"0.634952",
"0.63495... | 0.83662105 | 0 |
Initialize an API client | def FIMM(YKHO, oFhs='', KcEq=ExMO.Host, bIwZ=ExMO.Port, Jk_C=GkAb.Analytics.Root):
YKHO.analytics = xiv5(token_id=oFhs, host=KcEq, port=bIwZ, path_prefix=Jk_C) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, rSTc=None):\n if rSTc is not None:\n YKHO.set_client(rSTc)",
"def FIMM(YKHO, rJDA=None, w2IS=URH5):\n if rJDA is None:\n if APYD not in Hy7s.environ:\n raise W5uR(t6X3)\n rJDA = Hy7s.environ[APYD]\n if TJsC in Hy7s.environ:\n w2IS = Hy7s.environ[TJsC... | [
"0.7849757",
"0.759335",
"0.75740874",
"0.7536824",
"0.74623996",
"0.7378072",
"0.73481715",
"0.7334125",
"0.7333633",
"0.7316324",
"0.7293914",
"0.72135496",
"0.71902466",
"0.7181966",
"0.7161731",
"0.71464807",
"0.7135843",
"0.7135843",
"0.71194154",
"0.7114525",
"0.7084329... | 0.0 | -1 |
Adds a node to the graph. | def g5gD(YKHO, Q6kx):
if Q6kx.alias is None:
Q6kx.alias = BWvy()
YKHO.nodes[Q6kx.alias] = Q6kx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g5gD(YKHO, Q6kx):\n YKHO.graph[Q6kx]",
"def g5gD(YKHO, Q6kx):\n YKHO.nodes.add(Q6kx)",
"def g5gD(YKHO, Q6kx):\n YKHO._nodes.add(Q6kx)",
"def g5gD(YKHO, Q6kx):\n YKHO._check_nodes([Q6kx])\n jHsn.DiGraph.add_node.im_func(YKHO, Q6kx)",
"def g5gD(YKHO, Q6kx):\n YKHO.nodes.append(Q6kx)",
... | [
"0.89833",
"0.8455864",
"0.83965313",
"0.83696383",
"0.83613396",
"0.83613396",
"0.8339028",
"0.8280353",
"0.8257101",
"0.82200056",
"0.81799775",
"0.81763947",
"0.8143598",
"0.80873346",
"0.806757",
"0.8065594",
"0.80502516",
"0.8038804",
"0.7998562",
"0.7998562",
"0.7878067... | 0.0 | -1 |
If the input binary image has too much white pixels, return True. | def gp_G(llUt, l08i=0.98):
H2v2, TVTK = llUt.shape
ya_S = oyIN.count_nonzero(llUt)
if ya_S > H2v2 * TVTK * l08i:
return True
else:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yJKb(llUt):\n H2v2, TVTK = llUt.shape\n nVTx = oyIN.where(oyIN.sum(llUt, axis=0) == H2v2 * 255)[0]\n if len(nVTx) > 0:\n return True",
"def IXOb(BHsk, LNo8):\n jzdc = True\n for YRbF in Ni9Y(3):\n if not jzdc:\n break\n jzdc = LNo8[BHsk[1]][BHsk[0] * 3 + YRbF] >... | [
"0.7367348",
"0.69592905",
"0.6897827",
"0.6792557",
"0.6707971",
"0.65642166",
"0.6561948",
"0.6544101",
"0.6538752",
"0.65160966",
"0.6491545",
"0.6428208",
"0.6423817",
"0.6423817",
"0.6379333",
"0.637502",
"0.63684374",
"0.63602906",
"0.63216865",
"0.6319131",
"0.63121986... | 0.80475086 | 0 |
Get the preferred parameter location for a new parameter which will appended to the end of an existing set of params. If existing parameters use custom storage, this method should not be used. params existing set parameters to which the next parameter will be appended. (may be null) dataType dataType associated with ne... | def i3rc(YKHO, NArs: List[ghidra.program.model.listing.Parameter], eYpX: ghidra.program.model.data.DataType, YPqY: ghidra.program.model.listing.Program) -> RnTg.program.model.listing.VariableStorage:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZR8D(YKHO, vosY: int, NArs: List[ghidra.program.model.listing.Parameter], eYpX: ghidra.program.model.data.DataType, YPqY: ghidra.program.model.listing.Program) -> RnTg.program.model.listing.VariableStorage:\n ...",
"def hbd3(YKHO, NArs: Sequence[float]) -> tuple[int, ...]:\n or8S = int(oyIN.argmax(YKHO... | [
"0.6110551",
"0.58612084",
"0.5393288",
"0.53605235",
"0.5201764",
"0.51763546",
"0.5170445",
"0.5151805",
"0.51119816",
"0.5110193",
"0.5095082",
"0.50768346",
"0.5070499",
"0.5070499",
"0.5070499",
"0.5070499",
"0.5070499",
"0.5062915",
"0.5059069",
"0.50348914",
"0.5029015... | 0.74796516 | 0 |
Get the preferred return location given the specified dataType. In truth, there is no one location. The routines that use this method tend to want the default storage location for integer or pointer return values. dataType first parameter dataType or null for a default undefined type. program return location or { Varia... | def J3wu(YKHO, eYpX: ghidra.program.model.data.DataType, YPqY: ghidra.program.model.listing.Program) -> RnTg.program.model.listing.VariableStorage:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Xl0D(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'data_location')",
"def ZR8D(YKHO, vosY: int, NArs: List[ghidra.program.model.listing.Parameter], eYpX: ghidra.program.model.data.DataType, YPqY: ghidra.program.model.listing.Program) -> RnTg.program.model.listing.VariableStorage:\n ...",
"def jBLA(YKH... | [
"0.6120895",
"0.60769755",
"0.5964172",
"0.5964172",
"0.5964172",
"0.5964172",
"0.5964172",
"0.5964172",
"0.5964172",
"0.59499246",
"0.5936558",
"0.5910292",
"0.5846362",
"0.5846362",
"0.58441365",
"0.57895076",
"0.57705986",
"0.57238",
"0.5697758",
"0.5697758",
"0.5697758",
... | 0.80918634 | 0 |
String representation of the position. | def zAg0(YKHO) -> str:
if not YKHO.file_name:
return '{0:d}.{1:d}'.format(YKHO.start_line, YKHO.start_column + 1)
return '{0!s}:{1:d}.{2:d}'.format(Hy7s.path.relpath(YKHO.file_name), YKHO.start_line, YKHO.start_column + 1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHJl(YKHO):\n return str(YKHO.position)",
"def VQng(YKHO):\n return '{0} {1:.8f} {2:.8f} {3:.8f}'.format(*tuple([YKHO.get_id()] + list(YKHO.coords)))",
"def wHJl(YKHO):\n return YKHO.string + ' ' + str(YKHO.position)",
"def NaFG(YKHO):\n return f'{YKHO.location.x},{YKHO.location.y},{YKHO.dire... | [
"0.864676",
"0.8226318",
"0.7899737",
"0.7893408",
"0.7886809",
"0.78581786",
"0.78065324",
"0.77978957",
"0.77732253",
"0.7743515",
"0.7727054",
"0.7727054",
"0.7699248",
"0.7698408",
"0.7676531",
"0.7510667",
"0.7485122",
"0.7484527",
"0.7441312",
"0.74102485",
"0.7406465",... | 0.0 | -1 |
This integer valued energy function E for Boolean networks is decreasing with transitions. That is, E(x) >= E(y) holds for any transition x > y. It is based on the number of free variables in the smallest trapspace that contains state. The energy is therefore n >= E(x) >= 0 and E(x)=0 for steady states holds. | def VYvU(rPed: dict, QTBn) -> int:
wnPR = mF3s(rPed, QTBn, type_='min', fname_asp=None, representation='str')[0]
VYvU = wnPR.count('-')
return VYvU | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VYvU(YKHO):\n tTpl = 0\n for YRbF in range(len(YKHO.state)):\n tTpl += YKHO.distance_matrix[YKHO.state[YRbF - 1]][YKHO.state[YRbF]]\n return tTpl",
"def VqvA(YKHO):\n ut5U = 0\n for YRbF in Ni9Y(YKHO.n):\n F49T = 0\n F49T += 0.5 * sum(((1 if YKHO.spins[r845] else -1) * yzQ... | [
"0.60443234",
"0.5997383",
"0.5716787",
"0.5670764",
"0.5650499",
"0.56291544",
"0.5532682",
"0.5520916",
"0.55012095",
"0.5463932",
"0.5459242",
"0.54402125",
"0.54371965",
"0.5429375",
"0.53925985",
"0.5377148",
"0.5367808",
"0.53515947",
"0.5346512",
"0.53310996",
"0.53252... | 0.5482403 | 9 |
Gets the asset_data of this RelayerApiAssetDataTradeInfoSchema. | def xtNF(YKHO):
return YKHO._asset_data | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kC9M(YKHO):\n return YKHO.trade_data",
"def v0Aw(YKHO):\n return YKHO._payload.get_asset()",
"def v0Aw(YKHO):\n import predix.data.asset\n IbHI = D1Hb.data.asset.Asset()\n return IbHI",
"def LaSW(YKHO):\n return YKHO._data_asset_key",
"def v0Aw(YKHO, uY1h):\n return YKHO._request('... | [
"0.60424846",
"0.602011",
"0.59398264",
"0.5830952",
"0.58167124",
"0.5675434",
"0.56482387",
"0.56349534",
"0.5634114",
"0.5432719",
"0.5432719",
"0.52811754",
"0.5200871",
"0.5169003",
"0.51379156",
"0.5135747",
"0.5130894",
"0.5129571",
"0.5123883",
"0.51190984",
"0.510173... | 0.6988789 | 0 |
Gets the min_amount of this RelayerApiAssetDataTradeInfoSchema. | def IkE6(YKHO):
return YKHO._min_amount | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IkE6(YKHO):\n return YKHO.__min_amount",
"def min(YKHO):\n return float(YKHO._stats.get('min_value', 0))",
"def ytxf(YKHO) -> _ys5:\n return YKHO._fetch('minimum order amount', YKHO.market.code)(YKHO._min_order_amount)()",
"def tmGi(YKHO):\n return YKHO._min",
"def dgIT(YKHO):\n return Y... | [
"0.731708",
"0.68642795",
"0.658409",
"0.65763104",
"0.6531365",
"0.6512051",
"0.6499764",
"0.64870036",
"0.6439536",
"0.64118266",
"0.63905156",
"0.63905156",
"0.63645834",
"0.6358975",
"0.6277313",
"0.6277313",
"0.6277313",
"0.6277313",
"0.6227245",
"0.62184316",
"0.6207078... | 0.73766017 | 0 |
Gets the max_amount of this RelayerApiAssetDataTradeInfoSchema. | def u2mG(YKHO):
return YKHO._max_amount | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def u2mG(YKHO):\n return YKHO.__max_amount",
"def uwdP(YKHO) -> int:\n return YKHO.max_amount",
"def max(YKHO):\n return float(YKHO._stats.get('max_value', 0))",
"def bQ6z(YKHO) -> float:\n return YKHO.data['value'].max().round(2)",
"def _DLF(YKHO) -> qe4Y.Output[h8nf[float]]:\n return qe4Y.... | [
"0.73034227",
"0.71592695",
"0.6422409",
"0.63784665",
"0.6276809",
"0.6276809",
"0.61376405",
"0.6114828",
"0.6096716",
"0.6081963",
"0.6081963",
"0.6081963",
"0.6081963",
"0.60498255",
"0.60116154",
"0.600796",
"0.600796",
"0.5988827",
"0.5988827",
"0.5988827",
"0.5988827",... | 0.7352865 | 0 |
Returns the string representation of the model | def gTzM(YKHO):
return CgYo.pformat(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.0 | -1 |
Split list into equal sized sublists of sub_len size | def nJNG(nPrm, sBFZ=None):
return [nPrm[YRbF:YRbF + sBFZ] for YRbF in Ni9Y(0, len(nPrm), sBFZ)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qevE(hqkT, E0wO):\n yvT9 = []\n ZbOB = []\n UHFx = 0\n for U6D_ in hqkT:\n if UHFx == E0wO:\n UHFx = 0\n yvT9.append(ZbOB)\n ZbOB = []\n ZbOB.append(U6D_)\n UHFx += 1\n else:\n ZbOB.append(U6D_)\n UHFx += 1\n... | [
"0.7294592",
"0.72677344",
"0.7214363",
"0.72068614",
"0.7188821",
"0.71629065",
"0.7149425",
"0.70897734",
"0.7087554",
"0.7061074",
"0.7059721",
"0.70361054",
"0.7009735",
"0.6963111",
"0.6951099",
"0.6931289",
"0.6926139",
"0.69192255",
"0.6912907",
"0.6893179",
"0.6829665... | 0.8463054 | 0 |
convert infix expression to postfix expression | def XtMr(Jwtf):
tlxW = -1
Flog = list()
hEAh = str()
for hcXw in Jwtf:
if hcXw in Byma.OPERATORS:
if hcXw == Byma.CLOSE_BRACKET:
while Flog:
seET = Flog.pop()
tlxW -= 1
if seET == Byma.OPEN_BRACKET:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZGns(YKHO, EP60):\n E5BI = S9Ut()\n XLK4 = []\n for Npgh in EP60.split():\n if Npgh.isupper() or Npgh.isdigit():\n XLK4.append(Npgh)\n elif Npgh == '(':\n E5BI.push(Npgh)\n elif Npgh == ')':\n tlxW = E5BI.pop()\n while tlxW != '(':\n ... | [
"0.8567454",
"0.855297",
"0.85049057",
"0.8342272",
"0.83154726",
"0.83118755",
"0.8285667",
"0.82740027",
"0.8099325",
"0.8045274",
"0.7835232",
"0.78340334",
"0.7833753",
"0.78042024",
"0.7791028",
"0.77495986",
"0.77385485",
"0.7729655",
"0.7708342",
"0.76969904",
"0.76740... | 0.78776044 | 10 |
RETIRE UNITS BASED ON CF IN PRIOR CE RUN Retires coal plants that don't meet CF threshold in PRIOR CE run. These units may not retire due to limiting retirements per planning margin. | def lxvz(fVyn, LERK, QgNy, HNL5, MKvg, RDzV, iziO, FrLH):
gN6L = S2Nh(fVyn, LERK, QgNy, HNL5, MKvg, RDzV, iziO)
KwgB(LERK, gN6L, FrLH)
return gN6L | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def S2Nh(fVyn, LERK, QgNy, HNL5, MKvg, RDzV, iziO):\n phOH = dict()\n for ETu_ in HNL5['vPegu']:\n phOH[tuple(ETu_.keys)] = float(ETu_.level) * RDzV\n phOH = list(phOH.items())\n VHj2 = rLdf.DataFrame({'gcm': [G1Hx[0][0] for G1Hx in phOH], 'genId': [G1Hx[0][1] for G1Hx in phOH], 'genValue': [YRb... | [
"0.66615653",
"0.548637",
"0.54480046",
"0.54321647",
"0.541554",
"0.5328378",
"0.5276322",
"0.52584887",
"0.5224836",
"0.51914805",
"0.51800174",
"0.5131344",
"0.5129444",
"0.51207405",
"0.5110524",
"0.51063895",
"0.5092389",
"0.508485",
"0.50703",
"0.5057028",
"0.505516",
... | 0.5643819 | 1 |
Performs database connection using database settings from settings.py. Returns sqlalchemy engine instance | def WyYT():
return y2U9(rOmR(**aL7g)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WyYT():\n return y2U9(rOmR(**GPtr.DATABASE))",
"def WyYT():\n return y2U9(moDH)",
"def WyYT():\n return y2U9(KIPK().get('CONNECTION_STRING'))",
"def WyYT():\n return y2U9(KIPK().get('CONNECTION_STRING'))",
"def WyYT():\n return y2U9(KIPK().get('CONNECTION_STRING'))",
"def WyYT():\n ... | [
"0.82957757",
"0.82326174",
"0.82313275",
"0.82313275",
"0.82313275",
"0.8226787",
"0.8192142",
"0.81758535",
"0.808144",
"0.808144",
"0.808144",
"0.808144",
"0.808144",
"0.808144",
"0.808144",
"0.808144",
"0.808144",
"0.808144",
"0.808144",
"0.808144",
"0.8071709",
"0.8054... | 0.8215336 | 7 |
Test case for api_tags_post | def aOVz(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eNp3(YKHO):\n pass",
"def aKNH(YKHO):\n pass",
"def KaCp(YKHO):\n pass",
"def Zt0I(YKHO):\n R9U6 = OhYN.objects.create(title='Test tag', slug='test-tag')\n GTT9 = OhYN.objects.create(title='Test tag 2', slug='test-tag-2')\n pB3N = {'title': 'Test post', 'slug': 'test-post', 'content': '... | [
"0.7988782",
"0.76069254",
"0.7529655",
"0.7513966",
"0.73326606",
"0.72940844",
"0.7269577",
"0.72236276",
"0.72013587",
"0.71808004",
"0.717633",
"0.71733814",
"0.7168539",
"0.71585613",
"0.7134911",
"0.71286124",
"0.7127486",
"0.71074426",
"0.70857245",
"0.7057088",
"0.705... | 0.9261985 | 0 |
Gets full path and name of the data file. | def ONyz(YKHO):
return YKHO.file | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g5wr(**bGrB):\n return xe5l() + KAfx",
"def SAR5(YKHO):\n return Hy7s.path.basename(YKHO.data_path)",
"def KAfx(YKHO) -> str:\n return YKHO._data_file",
"def Zesg(Ux0P):\n return GkAb(xAKo).parent / 'data/' + Ux0P",
"def KAfx(YKHO, Ux0P):\n return Hy7s.path.join(YKHO.data, Ux0P)",
"def... | [
"0.8486251",
"0.829203",
"0.82848245",
"0.8138797",
"0.80926466",
"0.80437857",
"0.7948236",
"0.7838454",
"0.7804004",
"0.7799224",
"0.7772799",
"0.7762952",
"0.77567124",
"0.76838285",
"0.7673396",
"0.7651726",
"0.761409",
"0.76075846",
"0.7595844",
"0.7592806",
"0.7592386",... | 0.0 | -1 |
Gets path of the data file. | def OyQC(YKHO):
return YKHO.data_path | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s8df(YKHO, Ux0P):\n wd8X = Hy7s.path.dirname(xAKo)\n return Hy7s.path.join(wd8X, '..', 'data', Ux0P)",
"def s8df():\n QHUq = RUFc(xAKo)\n return TLI7(QHUq)",
"def s8df(YKHO, i0XC):\n return Hy7s.path.join(YKHO.get_path(YKHO.config['data']), i0XC)",
"def s8df() -> str:\n i0XC = Hy7s.path... | [
"0.8609221",
"0.84257793",
"0.8391428",
"0.8390898",
"0.8377682",
"0.8324318",
"0.82582474",
"0.81287605",
"0.80591947",
"0.80174166",
"0.8015016",
"0.79876715",
"0.79701847",
"0.79380286",
"0.7933365",
"0.7932908",
"0.7932908",
"0.792536",
"0.79224247",
"0.79091763",
"0.7908... | 0.866826 | 0 |
Gets start time of the data file as datetime object. | def XJUz(YKHO):
return YKHO.start_datetime.get_data_file_time_value() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XJUz(YKHO):\n return YKHO._file.getStartdatetime()",
"def XY1q(YKHO):\n return YKHO.start_datetime.get_data_file_time_value_eifc()",
"def R4lU(YKHO) -> qcWV.datetime:\n return qcWV.datetime.strptime(YKHO.reader.QueryInfoByName('starttime'), '%d.%m.%Y %H:%M:%S.%f')",
"def SWox(YKHO):\n return ... | [
"0.85328066",
"0.80973697",
"0.7924657",
"0.78522974",
"0.7743831",
"0.7717845",
"0.7667435",
"0.7667435",
"0.763724",
"0.76316804",
"0.75536215",
"0.7491387",
"0.7491387",
"0.7488465",
"0.7476233",
"0.7469314",
"0.746289",
"0.7456269",
"0.7456269",
"0.7454979",
"0.7454979",
... | 0.89666945 | 0 |
Gets start time of the data file as ISO string. | def OG5f(YKHO):
return YKHO.start_datetime.get_data_file_time_value_isostr() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XJUz(YKHO):\n return YKHO.start_datetime.get_data_file_time_value()",
"def XJUz(YKHO):\n return YKHO._file.getStartdatetime()",
"def VUww(YKHO) -> str:\n return YKHO.start_time().replace(microsecond=0).isoformat(' ')",
"def cKAQ(YKHO):\n if YKHO.__start_time == 0:\n return None\n re... | [
"0.7810065",
"0.75795895",
"0.7555451",
"0.7554342",
"0.7546567",
"0.7260194",
"0.7260194",
"0.7260194",
"0.7260194",
"0.72150064",
"0.72096896",
"0.72096896",
"0.72096896",
"0.72096896",
"0.72096896",
"0.72096896",
"0.72096896",
"0.72096896",
"0.72096896",
"0.72096896",
"0.7... | 0.86058754 | 0 |
Gets start time of the data file as EI filename convention string. | def XY1q(YKHO):
return YKHO.start_datetime.get_data_file_time_value_eifc() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XJUz(YKHO):\n return YKHO.start_datetime.get_data_file_time_value()",
"def OG5f(YKHO):\n return YKHO.start_datetime.get_data_file_time_value_isostr()",
"def XJUz(YKHO):\n return YKHO._file.getStartdatetime()",
"def f9EB(YKHO):\n YKHO.parse_filename(qcWV.datetime.now())\n return YKHO.filena... | [
"0.7285625",
"0.72480035",
"0.7207267",
"0.7205088",
"0.7050249",
"0.69924283",
"0.68810856",
"0.67674816",
"0.67502564",
"0.67502564",
"0.67502564",
"0.67502564",
"0.67502564",
"0.67502564",
"0.67502564",
"0.67502564",
"0.67502564",
"0.67502564",
"0.67502564",
"0.67502564",
... | 0.76154155 | 0 |
Gets end time of the data file as datetime object. | def I8y8(YKHO):
return YKHO.end_datetime.get_data_file_time_value() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def X85E(YKHO):\n return YKHO.end_datetime.get_data_file_time_value_eifc()",
"def C7pn(YKHO):\n return hA3p(YKHO.data.get('end_ms')) if YKHO.data.get('start_ms') != 0 else 0",
"def wirM(YKHO):\n return YKHO.end",
"def NgWO(YKHO):\n return YKHO.endtime",
"def wirM(YKHO):\n return YKHO.end_tim... | [
"0.81545806",
"0.7742425",
"0.7609737",
"0.7575462",
"0.7555655",
"0.7536613",
"0.7536613",
"0.75317705",
"0.74985313",
"0.748525",
"0.7473791",
"0.7473791",
"0.7398051",
"0.7397446",
"0.738428",
"0.73776853",
"0.7349563",
"0.73444664",
"0.73444664",
"0.73444664",
"0.73444664... | 0.8798824 | 0 |
Gets end time of the data file as ISO string. | def Sdu6(YKHO):
return YKHO.end_datetime.get_data_file_time_value_isostr() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I8y8(YKHO):\n return YKHO.end_datetime.get_data_file_time_value()",
"def X85E(YKHO):\n return YKHO.end_datetime.get_data_file_time_value_eifc()",
"def TxHy(YKHO):\n if YKHO.__end_time == 0:\n return None\n return qcWV.fromtimestamp(float(YKHO.__end_time) / 1000).isoformat()",
"def bMyR... | [
"0.78042156",
"0.7684154",
"0.7681135",
"0.7593444",
"0.74893266",
"0.7405636",
"0.7405636",
"0.7405636",
"0.7405636",
"0.7405636",
"0.7405636",
"0.7405636",
"0.7405636",
"0.7398387",
"0.7388625",
"0.73657644",
"0.7261672",
"0.7236939",
"0.7190271",
"0.7175029",
"0.71632314",... | 0.8384079 | 0 |