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 |
|---|---|---|---|---|---|---|
Ensure error is thrown if 'Authorization' header is empty. | def SK1w(YKHO):
geh0 = YKHO.client.get('/lexical/authping', headers=dict(Authorization='Bearer invalid', LoginType='sso'))
nPrm = qQXR.loads(geh0.data.decode())
YKHO.assertEqual(geh0.status_code, 401)
YKHO.assertIn('Invalid token.', nPrm['message'])
YKHO.assertIn('error', nPrm['status']) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zbl8(BFxV: Dict[str, str]) -> None:\n if 'Authorization' in BFxV:\n return\n raise QGuP",
"def cCQZ(YKHO):\n YKHO.assertNotIn('x-auth-token', MOPg())",
"def FPSZ(P1dF):\n Cq54(P1dF.message)\n return ({'message': P1dF.message}, 401)",
"def N6iC(YKHO):\n\n def joGJ(kire, y1xg):\n ... | [
"0.7556006",
"0.715505",
"0.69333655",
"0.68528205",
"0.6756595",
"0.6756331",
"0.6738673",
"0.67256314",
"0.6714928",
"0.6698976",
"0.66687053",
"0.66642493",
"0.6649767",
"0.6582449",
"0.65808636",
"0.654988",
"0.654988",
"0.6534057",
"0.65026075",
"0.65026075",
"0.64943",
... | 0.62412846 | 57 |
Get this session's unique ID | def id(YKHO):
return YKHO.session_token | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JkXK():\n return str(qxeD.uuid4())",
"def JkXK():\n return str(qxeD.uuid4())",
"def JkXK():\n return str(qxeD.uuid4())",
"def JkXK():\n return str(qxeD.uuid4())",
"def JkXK() -> str:\n return str(qxeD.uuid4())",
"def fBNT(YKHO):\n if 'id' not in cuiw:\n YKHO._allocate_new_ses... | [
"0.86434436",
"0.86434436",
"0.86434436",
"0.86434436",
"0.84328145",
"0.8397107",
"0.8376769",
"0.8373995",
"0.83367246",
"0.8245195",
"0.8230292",
"0.81468236",
"0.8004168",
"0.7997602",
"0.79505897",
"0.7948093",
"0.79309523",
"0.79309523",
"0.79309523",
"0.79309523",
"0.7... | 0.80184746 | 12 |
Construct the TTS class. | def FIMM(YKHO, ABQW='.'):
cuiw = DMju(profile_name='default')
YKHO.polly = cuiw.client('polly')
YKHO.sounds_dir = ABQW | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, *qIxc):\n ZYgz.TCs_swiginit(YKHO, ZYgz.new_TCs(*qIxc))",
"def FIMM(YKHO, *qIxc):\n PZpo.TCs_swiginit(YKHO, PZpo.new_TCs(*qIxc))",
"def FIMM(YKHO):\n YKHO.cfgmgr = c7yn()\n if not Hy7s.path.exists(Hy7s.path.join(YKHO.cfgmgr.get_cfgpath(), 'tts')):\n Hy7s.makedirs(Hy7s.path.join... | [
"0.6727012",
"0.65472466",
"0.64834696",
"0.6482605",
"0.64573693",
"0.63456225",
"0.6270126",
"0.6167621",
"0.6165671",
"0.61115694",
"0.6036361",
"0.6033763",
"0.60332495",
"0.60059303",
"0.59874403",
"0.5920601",
"0.58894265",
"0.58440256",
"0.58232003",
"0.58116287",
"0.5... | 0.0 | -1 |
Calculate the Mean Squared Error | def sgS2(VlDb, W061):
return oyIN.mean((W061 - VlDb) ** 2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SDab(YKHO):\n r8hN = YKHO.y_actual.shape[0]\n hkHB = YKHO.sum_of_squares_of_residuals()\n return hkHB / r8hN",
"def Wk1P(YKHO) -> oyIN.float:\n try:\n return SDab(YKHO.u_exact, YKHO.u_numerical)\n except ValueError:\n return oyIN.inf",
"def Z2Se(LVAh, JBMS):\n return (LVAh -... | [
"0.80203134",
"0.77682674",
"0.7725131",
"0.76279515",
"0.7611367",
"0.76074433",
"0.7572429",
"0.74959487",
"0.7464452",
"0.7458623",
"0.7408454",
"0.7332991",
"0.73211175",
"0.73139274",
"0.73031217",
"0.72866607",
"0.72702104",
"0.7259065",
"0.7227528",
"0.7215265",
"0.721... | 0.0 | -1 |
Calculate the Root Mean Squared Error | def qTF0(VlDb, W061):
return oyIN.sqrt(sgS2(W061, VlDb)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DF3U(YKHO):\n return oyIN.sqrt(YKHO.mean_squared_error())",
"def DF3U(Y8eF, aMgO):\n return oyIN.sqrt(SDab(Y8eF, aMgO))",
"def DF3U(Y8eF, aMgO):\n return oyIN.sqrt(SDab(Y8eF, aMgO))",
"def DF3U(Y8eF, gjpc):\n return PZyS(SDab(Y8eF, gjpc))",
"def _td_(YKHO) -> float:\n return YKHO._call_j... | [
"0.8206586",
"0.7738329",
"0.7730034",
"0.77214354",
"0.76346904",
"0.7504709",
"0.7504709",
"0.74335206",
"0.7414677",
"0.74050194",
"0.73929024",
"0.73597556",
"0.7344961",
"0.72206444",
"0.72205585",
"0.72145647",
"0.70783",
"0.706198",
"0.7032054",
"0.7030265",
"0.697029"... | 0.0 | -1 |
Calculate the Normalized Root Mean Squared Error normalized by observation standard deviation | def E0UL(VlDb, W061):
return qTF0(VlDb, W061) / oyIN.std(W061) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OHCj(Y8eF, aMgO):\n hkHB = SDab(Y8eF, aMgO)\n SRYB = oyIN.var(Y8eF)\n _TTN = oyIN.sqrt(hkHB / SRYB)\n return 1 - _TTN",
"def DF3U(YKHO):\n return oyIN.sqrt(YKHO.mean_squared_error())",
"def r0lV(WKvO):\n return 2.0 * WKvO * jQ3Z['close_price_change'].std() + jQ3Z['close_price_change'].mea... | [
"0.74192196",
"0.71601194",
"0.71428514",
"0.70838416",
"0.7078447",
"0.70180887",
"0.7013488",
"0.70133317",
"0.70092124",
"0.6993775",
"0.69837767",
"0.6970633",
"0.69656885",
"0.69278914",
"0.69272476",
"0.69177586",
"0.69060034",
"0.68820167",
"0.6880779",
"0.68776643",
"... | 0.0 | -1 |
Calculate the Normalized Root Mean Squared Error normalized by observation mean | def ufkf(VlDb, W061):
return qTF0(VlDb, W061) / oyIN.mean(W061) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OHCj(Y8eF, aMgO):\n hkHB = SDab(Y8eF, aMgO)\n SRYB = oyIN.var(Y8eF)\n _TTN = oyIN.sqrt(hkHB / SRYB)\n return 1 - _TTN",
"def DF3U(YKHO):\n return oyIN.sqrt(YKHO.mean_squared_error())",
"def r0lV(WKvO):\n return 2.0 * WKvO * jQ3Z['close_price_change'].std() + jQ3Z['close_price_change'].mea... | [
"0.75787044",
"0.72685087",
"0.709768",
"0.70160604",
"0.6981222",
"0.69747967",
"0.69462705",
"0.6945752",
"0.6916372",
"0.68885094",
"0.6885399",
"0.68772465",
"0.6843553",
"0.6823197",
"0.67940754",
"0.6780234",
"0.67690486",
"0.67449117",
"0.6742715",
"0.6742715",
"0.6735... | 0.6397311 | 76 |
Calculate the Normalized Root Mean Squared Error normalized by observation max min | def q5wx(VlDb, W061):
return qTF0(VlDb, W061) / (oyIN.max(W061) - oyIN.min(W061)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D7zl(YKHO):\n return (tVah((YKHO.maximum - YKHO.mu) / 2 ** 0.5 / YKHO.sigma) - tVah((YKHO.minimum - YKHO.mu) / 2 ** 0.5 / YKHO.sigma)) / 2",
"def OHCj(Y8eF, aMgO):\n hkHB = SDab(Y8eF, aMgO)\n SRYB = oyIN.var(Y8eF)\n _TTN = oyIN.sqrt(hkHB / SRYB)\n return 1 - _TTN",
"def r0lV(WKvO):\n retu... | [
"0.72293276",
"0.7163455",
"0.7024199",
"0.68844134",
"0.68838525",
"0.68113106",
"0.67919666",
"0.67611814",
"0.6754405",
"0.671743",
"0.669893",
"0.6681296",
"0.6672799",
"0.6652232",
"0.66395664",
"0.66171354",
"0.66171354",
"0.6604143",
"0.6599953",
"0.6587541",
"0.657461... | 0.65932447 | 19 |
A factory method for creating and initializing the backend. | async def create(Emd4, nuPx: RedisConnection, lGbz: typing.Optional[asyncio.AbstractEventLoop]=None) -> 'RedisBackend':
return Emd4(nuPx, lGbz) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def create(Fv2L: hatJson.Data) -> 'Backend':\n DDLl = C6NV()\n DDLl._async_group = VlWd.Group()\n DDLl.executor = VlWd.create_executor(1)\n DDLl._db_con = await DDLl.executor(sQYM, Fv2L)\n return DDLl",
"def FIMM(YKHO, DDLl):\n YKHO._backend = DDLl",
"def xOjS(mWFP, GPtr):\n na1r.deb... | [
"0.76298416",
"0.75454783",
"0.7186058",
"0.71113956",
"0.7092286",
"0.70445555",
"0.6971727",
"0.68673134",
"0.6831583",
"0.6796418",
"0.67166215",
"0.67147",
"0.6708702",
"0.6704223",
"0.66795987",
"0.6634987",
"0.6624083",
"0.6623048",
"0.6606134",
"0.6604013",
"0.6577645"... | 0.0 | -1 |
Get values by the passed keys from a storage. | async def get(YKHO, *sjXb: typing.Sequence[str]) -> laHg.Sequence[laHg.Any]:
return [H5ew.decode('utf-8') for H5ew in await YKHO.adapter.mget(*sjXb)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(YKHO, sjXb):\n raise NotImplementedError",
"async def get(YKHO, H5ew: Optional[str]=None, sjXb: Optional[List[str]]=None, uJjO: Optional[int]=None, **B2fa) -> S8SU.GetResponseModel:\n NArs = YKHO.get_set_params(locals())\n geh0 = await YKHO.api.request('storage.get', NArs)\n C3ST = S8SU.GetR... | [
"0.6716932",
"0.66711277",
"0.6633061",
"0.6582067",
"0.6554997",
"0.6474117",
"0.6424057",
"0.642075",
"0.641556",
"0.64148515",
"0.6362444",
"0.63461447",
"0.63401765",
"0.6299831",
"0.61898935",
"0.61881095",
"0.6184003",
"0.61811167",
"0.61710733",
"0.61265653",
"0.606954... | 0.601561 | 26 |
Return number of items in the iterable. | def u54L(OxJJ):
try:
return len(OxJJ)
except TypeError:
return sum((1 for ZfUD in OxJJ)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fcYF(YKHO):\n UHFx = 0\n for bGrB in YKHO:\n UHFx += 1\n return UHFx",
"def NkwD(OxJJ: Iterable, hzC2: bool=False) -> int:\n if hasattr(OxJJ, '__len__') and (not hzC2):\n return len(OxJJ)\n return sum((1 for bGrB in OxJJ))",
"def u54L(oHE7: Iteratable) -> int:\n YRbF = 0\n ... | [
"0.83505404",
"0.81528693",
"0.7913218",
"0.7870425",
"0.7869314",
"0.7859793",
"0.78396875",
"0.7814424",
"0.77919585",
"0.7738533",
"0.7735192",
"0.7729031",
"0.7702053",
"0.76993966",
"0.7669385",
"0.7652755",
"0.7616417",
"0.7596203",
"0.7595044",
"0.7593645",
"0.7539288"... | 0.74939644 | 23 |
returns a randomly parameterized cosine function to control a specific joint. | def Z4uv():
E7MA = tuKI.uniform(0.3, 0.5)
kb87 = tuKI.uniform(0.1, 0.2)
def zTKA(N8Pq):
yzQ0 = E7MA * N8Pq.to_sec()
return kb87 * epAf.cos(yzQ0 * 2 * epAf.pi)
return zTKA | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hsFe(YKHO):\n yzQ0 = 0.5 * (oyIN.cos(oyIN.pi * YKHO.r / YKHO.l) + 1.0)\n A07C = oyIN.abs(YKHO.r) > YKHO.l\n yzQ0[A07C] = 0\n return yzQ0",
"def hsFe(YKHO):\n yzQ0 = 0.5 * (oyIN.cos(oyIN.pi * YKHO.r / YKHO.l) + 1.0)\n A07C = oyIN.abs(YKHO.r) > YKHO.l\n yzQ0[A07C] = 0\n return yzQ0",
... | [
"0.6081571",
"0.6081571",
"0.60363346",
"0.6022867",
"0.5882552",
"0.5710574",
"0.570599",
"0.5692854",
"0.56878185",
"0.5659204",
"0.5647208",
"0.56304806",
"0.5623248",
"0.562256",
"0.5620172",
"0.5619291",
"0.56161344",
"0.5567036",
"0.556238",
"0.5558348",
"0.55577695",
... | 0.0 | -1 |
Update and return an existing `Location` instance, given the validated data. | def QdZT(YKHO, KAOR, vGfb):
KAOR.location_code = vGfb.get('location_code', KAOR.location_code)
KAOR.description = vGfb.get('description', KAOR.description)
KAOR.city = vGfb.get('city', KAOR.city)
KAOR.country = vGfb.get('country', KAOR.country)
KAOR.save()
return KAOR | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QdZT(YKHO, KAOR, vGfb):\n try:\n Ixc8 = vGfb.pop('get_projects')\n YKHO._save_location_projects(Ixc8, KAOR)\n except KeyError:\n pass\n try:\n rE4W = vGfb.pop('get_geo_data')\n YKHO._save_geodata(rE4W, KAOR)\n except KeyError:\n pass\n KAOR.display_name ... | [
"0.73619235",
"0.7098464",
"0.7077179",
"0.7004789",
"0.6929324",
"0.67872053",
"0.67131066",
"0.6538412",
"0.65204597",
"0.6470338",
"0.64494634",
"0.6448468",
"0.6371468",
"0.6326088",
"0.6288042",
"0.62746197",
"0.6270509",
"0.6268357",
"0.6265222",
"0.6264444",
"0.6234557... | 0.7742754 | 0 |
This default evaluation function just returns the score of the state. The score is the same one displayed in the Pacman GUI. This evaluation function is meant for use with adversarial search agents (not reflex agents). | def fHT3(rfNN):
return rfNN.getScore() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fHT3(Ov5A):\n return Ov5A.getScore()",
"def fHT3(Ov5A):\n return Ov5A.getScore()",
"def fHT3(Ov5A):\n return Ov5A.getScore()",
"def b7La(YKHO, QTBn):\n iBIi, oyg0, YPaw = QTBn\n return phK_(oyg0, iBIi)",
"def fHT3(rfNN):\n return rfNN.getScore()",
"def fHT3(rfNN: GameState):\n re... | [
"0.8074817",
"0.8053869",
"0.8053869",
"0.7937262",
"0.7678457",
"0.76620513",
"0.7644102",
"0.76350343",
"0.7594473",
"0.7594473",
"0.7594473",
"0.7594473",
"0.7594473",
"0.7594473",
"0.7594473",
"0.7594473",
"0.7594473",
"0.7594473",
"0.7554624",
"0.7554624",
"0.7554624",
... | 0.74899554 | 80 |
Returns the current outside temperature for the configured location (in Celsius). | def OVYP(YKHO) -> float:
Aofo = NMoC(u6kE % (rJDA, Rci7)).json()['current_observation']['temp_c']
bo34.debug('Wunderground reports temp for location %s as %s', Rci7, Aofo)
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OVYP(YKHO):\n if YKHO._update_on_read:\n YKHO.update()\n return YKHO.get_conv_val('OUTSIDE_TEMPERATURE')",
"def cqzk(YKHO) -> float:\n return float(YKHO.controller.entities.sensor.outside_temperature_feels_like.state)",
"def WyAM(YKHO) -> float:\n return float(YKHO.get_state(YKHO.entitie... | [
"0.7887628",
"0.7844753",
"0.7141909",
"0.69823253",
"0.6958742",
"0.6949715",
"0.69447845",
"0.6932374",
"0.69278824",
"0.6918365",
"0.6900091",
"0.6841668",
"0.6821929",
"0.6804277",
"0.67806435",
"0.67486817",
"0.67423123",
"0.6740906",
"0.6732998",
"0.6726671",
"0.6715843... | 0.82191503 | 0 |
Returns the current outside relative humidity for the configured location. | def LDK1(YKHO) -> float:
Aofo = NMoC(u6kE % (rJDA, Rci7)).json()['current_observation']['relative_humidity']
Aofo = YKHO.__wu_humidity_str_to_float(Aofo)
bo34.debug('Wunderground reports humidity for location %s as %s', Rci7, Aofo)
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OVYP(YKHO) -> float:\n Aofo = NMoC(u6kE % (rJDA, Rci7)).json()['current_observation']['temp_c']\n bo34.debug('Wunderground reports temp for location %s as %s', Rci7, Aofo)\n return Aofo",
"def OVYP(YKHO):\n if YKHO._update_on_read:\n YKHO.update()\n return YKHO.get_conv_val('OUTSIDE_TEM... | [
"0.78209877",
"0.73223996",
"0.71971124",
"0.71681863",
"0.71681863",
"0.7086873",
"0.70585287",
"0.7040757",
"0.7033855",
"0.7005936",
"0.6977217",
"0.68747014",
"0.6864809",
"0.68617094",
"0.68238837",
"0.68199486",
"0.68199486",
"0.6788721",
"0.67842007",
"0.67605925",
"0.... | 0.8550796 | 0 |
Extracts the numerical portion of a wunderground humidity string via regex | def vVl3(c5ki) -> float:
return float(kUBT(RC4a, c5ki).group(1)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F6Zw(YKHO, HlGW):\n if YKHO.Report.code is not None:\n a9Hh = ZbWC.compile(HlGW)\n for TOmy in YKHO.Report.getRawMetarCode().split():\n kUBT = a9Hh.match(TOmy)\n if kUBT:\n return kUBT.string[kUBT.start(0):kUBT.end(0)]",
"def oFNp(l5Ny):\n SQ3m = l5Ny.... | [
"0.61098534",
"0.6073502",
"0.60161954",
"0.5920243",
"0.5873171",
"0.57976073",
"0.578232",
"0.57748806",
"0.5716489",
"0.56615573",
"0.56313443",
"0.56226945",
"0.56082875",
"0.55891615",
"0.55688053",
"0.5540728",
"0.55147773",
"0.5510659",
"0.55059886",
"0.54822004",
"0.5... | 0.5919122 | 4 |
A function for recursively traversing a node in an elementTree to find all instances of a tag. Note that this method differs from findall() since it goes for all nodes, subnodes, subsubnodes etc. recursively @ In, node, ET.Element, the current node to search under @ In, element, str, the string name of the tags to loca... | def zQXv(YKHO, Q6kx, U6D_):
Aofo = []
for LihS in Q6kx.iter(tag=U6D_):
Aofo.append(LihS)
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s52Z(tk5Y, hLhr):\n eEku = []\n for B2Dn in tk5Y:\n xDcj = f'.//{hLhr}'\n eEku = B2Dn.findall(xDcj)\n break\n return eEku",
"def c2KQ(YKHO, TZ9E):\n EmMj = []\n for aUGN in YKHO.children:\n if aUGN.tag == TZ9E:\n EmMj.append(aUGN)\n EmMj.extend(aUG... | [
"0.70876515",
"0.68534946",
"0.66564035",
"0.65872175",
"0.64275813",
"0.63128173",
"0.6142252",
"0.59448045",
"0.5894459",
"0.58854353",
"0.5843139",
"0.5810539",
"0.5805522",
"0.57855207",
"0.5780904",
"0.57219523",
"0.57084316",
"0.5704734",
"0.5671404",
"0.56628007",
"0.5... | 0.7793434 | 0 |
Devuelve la longitud de una cadena | def u54L(FiiE, xzoi):
YEnM = FiiE[0]
if type(YEnM) == list:
return len(YEnM)
else:
return len(FiiE[0]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Swre(JRYC):\n Csk6 = QTwm(JRYC['GPSInfo']['GPSLongitude'][0])\n r8hN = QTwm(JRYC['GPSInfo']['GPSLongitude'][1])\n KCHu = QTwm(JRYC['GPSInfo']['GPSLongitude'][2])\n return Csk6 + r8hN / 60.0 + KCHu / 3600.0",
"def rgrY(YKHO):\n return YKHO.longitude",
"def q4_V(YKHO):\n return YKHO._longit... | [
"0.720115",
"0.6831662",
"0.6535016",
"0.64328766",
"0.64052635",
"0.6306949",
"0.6208577",
"0.61984456",
"0.6174141",
"0.6110821",
"0.60584754",
"0.60584754",
"0.60538995",
"0.6051133",
"0.5996914",
"0.5966733",
"0.594274",
"0.59379154",
"0.5936911",
"0.5936462",
"0.59363157... | 0.0 | -1 |
Load a saved trained model from the file. This is called by the server to evaluate your submission on hidden data. Only modify this if you modified save_model. | def uyMl():
with open('trained_model.pickle', 'rb') as pan_:
ad8h = t2lc.load(pan_)
return ad8h | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"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_size, GPtr.max_epoch_frozen, GPtr.max_ep... | [
"0.7677634",
"0.7599577",
"0.75439835",
"0.74918604",
"0.74581045",
"0.74379164",
"0.7405665",
"0.73372686",
"0.7337007",
"0.7336515",
"0.73255974",
"0.7323435",
"0.73026484",
"0.7295338",
"0.72760934",
"0.7257329",
"0.7241871",
"0.7239813",
"0.7235794",
"0.72190064",
"0.7218... | 0.770489 | 0 |
Plot the stock Prices for given data frames | def d8hr(jQ3Z, leAC='Stock Prices', NkkI=False):
jQ3Z = Q7gV(jQ3Z) if NkkI else jQ3Z
aNZO = jQ3Z.plot(title=leAC, fontsize=2)
aNZO.set_xlabel('Date')
aNZO.set_ylabel('Price')
QrM1.show() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TfGS(jQ3Z):\n JI1i = iEax.Figure()\n Cwt5 = 0.3\n skyf = 1\n for LpID in jQ3Z.columns.values:\n if LpID == 'portfolio':\n Cwt5 = 1\n skyf = 3\n else:\n Cwt5 = 0.3\n skyf = 1\n JI1i.add_trace(iEax.Scatter(x=jQ3Z.index.values, y=jQ3Z[Lp... | [
"0.7037158",
"0.6973799",
"0.67487234",
"0.67487234",
"0.67487234",
"0.6736524",
"0.6677631",
"0.66767126",
"0.66348726",
"0.65407425",
"0.65306985",
"0.6505651",
"0.6238508",
"0.62162775",
"0.61527383",
"0.6148574",
"0.6129781",
"0.6123475",
"0.6114569",
"0.61140203",
"0.608... | 0.6832818 | 2 |
this method will add a new record to database. and perform the commit and refresh operation to db | def iOFp(NCls: Session, vxW9: schema.CountryAdd):
g6bS = C3ST.Country(country_code=vxW9.country_code, country_name=vxW9.country_name, population=vxW9.population, continent=vxW9.continent, fun_facts=vxW9.fun_facts, country_capital=vxW9.country_capital)
NCls.add(g6bS)
NCls.commit()
NCls.refresh(g6bS)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H2v5(YKHO):\n NCls.session.add(YKHO)\n NCls.session.commit()",
"def cnPh(Emd4, YEnM):\n pths.session.add(YEnM)\n pths.session.commit()",
"def xkzz(YKHO):\n NCls.session.commit()",
"def xEm8(YKHO):\n rdlD = YKHO.get_inputs()\n if rdlD == False:\n AI9e.showwarning('Chyba', 'Niek... | [
"0.73618233",
"0.7346836",
"0.7316448",
"0.72971296",
"0.7285672",
"0.7278873",
"0.7272142",
"0.72486943",
"0.72486943",
"0.72486943",
"0.7198113",
"0.71712565",
"0.71712565",
"0.71712565",
"0.71712565",
"0.71712565",
"0.71712565",
"0.71712565",
"0.71712565",
"0.7139657",
"0.... | 0.0 | -1 |
Sets the channel of this Message. | def YwkQ(YKHO, YwkQ):
YKHO._channel = YwkQ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LW3q(YKHO, YwkQ):\n pass",
"def LW3q(YKHO, YwkQ):\n YKHO.kb.set_channel(YwkQ)",
"def XT_j(YwkQ):\n pass",
"def LW3q(YKHO, YwkQ):\n reov(Channel=YwkQ)",
"def LW3q(YKHO, YwkQ):\n YKHO.radio_send.set_channel(YwkQ)\n YKHO.radio_recv.set_channel(YwkQ)",
"def MJ6J(YKHO, YwkQ: int) -> None... | [
"0.8340882",
"0.8017189",
"0.7559567",
"0.7528529",
"0.7496757",
"0.7429734",
"0.7410937",
"0.7400928",
"0.7234737",
"0.71041787",
"0.7099308",
"0.7044221",
"0.70269156",
"0.69357544",
"0.6932894",
"0.6882596",
"0.6869302",
"0.6866838",
"0.6825617",
"0.6807008",
"0.6779926",
... | 0.8015394 | 3 |
Sets the last_thread_comment of this Message. | def nr3g(YKHO, nr3g):
YKHO._last_thread_comment = nr3g | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aM_I(MgeT, aM_I, ALmv):\n MgeT.time_last_reply = qcWV.utcnow()",
"def TDCb(YKHO, aM_I):\n YKHO._current_frame.comment = aM_I",
"def MYh5(YKHO, aM_I, qxeD, PxFn):\n return YKHO.get_bytes(b'COMM', aM_I, qxeD, str(PxFn[0]).encode(), str(PxFn[1]).encode(), str(PxFn[2]).encode(), str(PxFn[3]).encode(),... | [
"0.63478035",
"0.62742925",
"0.60919374",
"0.596857",
"0.58828753",
"0.58738786",
"0.5831354",
"0.5831354",
"0.5831354",
"0.5831354",
"0.5831354",
"0.5831354",
"0.5831354",
"0.5831354",
"0.5825613",
"0.5815251",
"0.58126694",
"0.58126694",
"0.5772296",
"0.56681097",
"0.563985... | 0.87633806 | 0 |
Sets the created of this Message. | def _EYN(YKHO, _EYN):
YKHO._created = _EYN | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _EYN(YKHO, _EYN):\n YKHO._created = _EYN",
"def zACL(YKHO, _EYN):\n YKHO.created = _EYN",
"def _EYN(YKHO, _EYN):\n if _EYN is None:\n raise ValueError('Invalid value for `created`, must not be `None`')\n YKHO._created = _EYN",
"def _EYN(YKHO, _EYN: str):\n YKHO._created = _EYN",
"... | [
"0.746039",
"0.7300499",
"0.7211813",
"0.7181714",
"0.7004859",
"0.6875516",
"0.6875516",
"0.6875516",
"0.6875516",
"0.6875516",
"0.6875516",
"0.6875516",
"0.6875516",
"0.6875516",
"0.6839479",
"0.67694855",
"0.67676985",
"0.67335415",
"0.67335415",
"0.67335415",
"0.67335415"... | 0.730914 | 4 |
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.83939064",
"0.83558416",
"0.8296191",
"0.8133439",
"0.81156427",
"0.810097",
"0.81001526",
"0.8099001",
"0.8099001",
"0.80936444",
"0.80936444",
"0.80936444",
"0.80936444",
"0.80862904",
"0.80862904",
"0.80862904",
"0.80862904",
"0.80862904",
"0.80677134",
"0.80598736",
"0... | 0.0 | -1 |
Return a list of the Store object that represent the data stored in this array. | def F1m0(YKHO) -> list[h8nf[P39m]]:
return YKHO._stores.copy() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qC3j(YKHO):\n return YKHO._entity_holder._data_stores_by_id",
"def lYn2():\n zVa7 = QABK()\n zVa7.setServiceName('RGMAService')\n pPNr = zVa7._callServiceMethod('listTupleStores')\n F1m0 = []\n for tuple in pPNr.getData():\n F1m0.append(F3v8(tuple.getString(0), tuple.getBool(1), tupl... | [
"0.7006276",
"0.6982651",
"0.6980964",
"0.68043613",
"0.6689544",
"0.66786706",
"0.66471106",
"0.66471106",
"0.6553824",
"0.6551962",
"0.6534295",
"0.6526869",
"0.64941525",
"0.6471725",
"0.6448893",
"0.6399944",
"0.6390465",
"0.6381486",
"0.6350474",
"0.63479656",
"0.6310788... | 0.7279381 | 0 |
Defines an MSE loss | def NdfM(N6Z1, x6A0):
Qv42 = N6Z1['pose']
ewj5 = x6A0['pose']
N77f = U78l.MSELoss(reduction='mean')
return N77f(Qv42, ewj5) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qET2(nvEb, pan_):\n return vuvg.mse_loss(nvEb, pan_, reduction='none')",
"def hkHB(aPiQ, wncy):\n return U78l.MSELoss(reduction='mean')(aPiQ, wncy)",
"def hkHB(N77f, AIKr):\n return ((N77f - AIKr) ** 2).mean()",
"def EWWT(YDYE, omIE):\n N77f = (YDYE - omIE).pow(2).sum()\n hkHB = 1.0 / YDYE... | [
"0.7990566",
"0.75432736",
"0.7538341",
"0.74974895",
"0.7434678",
"0.74081856",
"0.7387144",
"0.737529",
"0.7337238",
"0.7307874",
"0.7258809",
"0.72445256",
"0.72418964",
"0.71753573",
"0.70772666",
"0.705877",
"0.7053685",
"0.7039979",
"0.7029776",
"0.7029776",
"0.7010303"... | 0.0 | -1 |
this constructor method takes 5 strings as input 1 > Movie Title 2 > Storyline 3 > IMDB rating 4 > Link to poster Image 5 > Link to youtube trailer this function does not return anything | def FIMM(YKHO, EiNU, pTZR, iI6s, GXjR, T_rQ):
YKHO.title = EiNU
YKHO.storyline = pTZR
YKHO.rating = iI6s
YKHO.poster_image_url = GXjR
YKHO.trailer_youtube_url = T_rQ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, EiNU, pTZR, GXjR, RUE3):\n YKHO.title = EiNU\n YKHO.storyline = pTZR\n YKHO.poster_image_url = GXjR\n YKHO.trailer_youtube_url = RUE3",
"def FIMM(YKHO, EiNU, pTZR, GXjR, RUE3):\n YKHO.title = EiNU\n YKHO.storyline = pTZR\n YKHO.poster_image_url = GXjR\n YKHO.trailer_youtube... | [
"0.8235599",
"0.8211901",
"0.8211901",
"0.8211901",
"0.818846",
"0.8182099",
"0.818179",
"0.81718516",
"0.8164748",
"0.8156169",
"0.8134399",
"0.8134334",
"0.8134334",
"0.8134334",
"0.8122437",
"0.81125855",
"0.81125855",
"0.81125855",
"0.81125855",
"0.81125855",
"0.81125855"... | 0.81811213 | 7 |
Maps the points in a square to the points of a circle / disc. The points will have the same angle and the ratio of distance from origin to maximum distance will be conserved. | def _7AP(WKvO, LVAh):
def QN5Y(YylR: float) -> float:
"""Uses the appropriate function based on angle.
Functions will be the reciprocal of the of length
from the origin to the sides of a square centred
on the origin with side length two.
Arguments:
ang... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mRWl(YRbF, r845, kZr1, ZRmL, NOLA):\n WKvO = YRbF / (kZr1 - 1)\n LVAh = r845 / (ZRmL - 1)\n rVnq = r845 / ZRmL * 2.0 * oyIN.pi\n if ZRmL % 2 == 1 and r845 != int(ZRmL / 2.0) or ZRmL % 2 == 0:\n if r845 < ZRmL / 2.0:\n if YRbF >= r845 and YRbF <= kZr1 - 1 - r845:\n j... | [
"0.65739703",
"0.6463983",
"0.63159066",
"0.62520957",
"0.62182593",
"0.62026924",
"0.6143807",
"0.61424774",
"0.61385185",
"0.6136779",
"0.6077389",
"0.60761553",
"0.6048099",
"0.60103726",
"0.59663117",
"0.59402066",
"0.59352344",
"0.5917517",
"0.5878225",
"0.5858754",
"0.5... | 0.7150615 | 0 |
Finds a single tag in the given HTML with the specified tag name that contains the specified child tag name. | def vvXl(_R2e, hLhr, aUGN):
return _R2e.find(lambda a1PO: a1PO.name == hLhr and a1PO.find(aUGN)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fNfC(_R2e, hLhr, _AKB):\n return _R2e.find(lambda a1PO: a1PO.name == _AKB and a1PO.find(hLhr)).find(hLhr)",
"def lIvt(tk5Y, hLhr, NbWK=False):\n if tk5Y is None:\n return None\n for aUGN in tk5Y:\n if aylJ(aUGN.tag) == hLhr:\n return aUGN\n if NbWK:\n raise ValueEr... | [
"0.7457907",
"0.7312285",
"0.6966808",
"0.69107175",
"0.6790131",
"0.6775622",
"0.66367733",
"0.6460375",
"0.6373876",
"0.6354131",
"0.6347207",
"0.6324091",
"0.6309937",
"0.6237239",
"0.61630446",
"0.61295253",
"0.6108439",
"0.61015344",
"0.6101011",
"0.6094635",
"0.6075528"... | 0.8829182 | 0 |
Finds a single tag in the given HTML with the specified tag name that contains the specified parent tag name. | def fNfC(_R2e, hLhr, _AKB):
return _R2e.find(lambda a1PO: a1PO.name == _AKB and a1PO.find(hLhr)).find(hLhr) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vvXl(_R2e, hLhr, aUGN):\n return _R2e.find(lambda a1PO: a1PO.name == hLhr and a1PO.find(aUGN))",
"def lIvt(tk5Y, hLhr, NbWK=False):\n if tk5Y is None:\n return None\n for aUGN in tk5Y:\n if aylJ(aUGN.tag) == hLhr:\n return aUGN\n if NbWK:\n raise ValueError(f'Expec... | [
"0.7755945",
"0.683353",
"0.6631069",
"0.6629705",
"0.6598421",
"0.65373445",
"0.64060825",
"0.6403088",
"0.6380777",
"0.6299353",
"0.6292378",
"0.62377095",
"0.6217121",
"0.61117923",
"0.6022369",
"0.59972405",
"0.5981977",
"0.59397095",
"0.59079397",
"0.59055126",
"0.589158... | 0.8756893 | 0 |
return element from configuration dict | def NMoC(YKHO, U6D_):
return YKHO.config_dict[U6D_] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OP2O(YKHO, mWFP):\n return YKHO.config[mWFP]",
"def OP2O(YKHO, H5ew):\n return YKHO.config[H5ew]",
"def OP2O(YKHO, H5ew):\n return YKHO._config[H5ew]",
"def OP2O(YKHO, H5ew):\n return YKHO._config[H5ew]",
"def OP2O(YKHO, H5ew):\n return YKHO.config.get(H5ew)",
"def qNlZ(YKHO, H5ew, U6D... | [
"0.69760716",
"0.68533623",
"0.67638296",
"0.67638296",
"0.67482764",
"0.6637884",
"0.6554983",
"0.6528402",
"0.64881414",
"0.64881414",
"0.64881414",
"0.648512",
"0.6396247",
"0.6370802",
"0.6361257",
"0.6281545",
"0.6239323",
"0.62231135",
"0.62212",
"0.621036",
"0.61819595... | 0.8014316 | 0 |
Sets the cq_dam_image_cache_max_dimension of this ComDayCqDamCoreImplCacheCQBufferedImageCacheProperties. | def sNqx(YKHO, sNqx):
YKHO._cq_dam_image_cache_max_dimension = sNqx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o9Mu(YKHO, o9Mu):\n YKHO._cq_dam_image_cache_max_memory = o9Mu",
"def ai5w(YKHO, ai5w):\n YKHO._cq_dam_image_cache_max_age = ai5w",
"def FIMM(YKHO, o9Mu=None, ai5w=None, sNqx=None):\n YKHO._cq_dam_image_cache_max_memory = None\n YKHO._cq_dam_image_cache_max_age = None\n YKHO._cq_dam_image_ca... | [
"0.7699691",
"0.69122165",
"0.6484821",
"0.5697923",
"0.5567753",
"0.55201304",
"0.5476706",
"0.54691106",
"0.5423653",
"0.54103845",
"0.5393151",
"0.5390835",
"0.53693235",
"0.53610116",
"0.53463084",
"0.53203416",
"0.5318356",
"0.5315806",
"0.5312178",
"0.5309754",
"0.51925... | 0.86177814 | 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.864179",
"0.85105866",
"0.7853924",
"0.77452",
"0.7712474",
"0.76976854",
"0.76601666",
"0.7638181",
"0.7621996",
"0.76074743",
"0.76074743",
"0.76074743",
"0.7607432",
"0.7599404",
"0.75858897",
"0.7582702",
"0.75715727",
"0.75683635",
"0.7539386",
"0.7539386",
"0.7528709... | 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 | 69 |
Convert string to boolean, catches common strings for true/false. | def oOc6(Ty9i):
if Ty9i.lower() in ('yes', 'true', 't', 'y', '1'):
return True
elif Ty9i.lower() in ('no', 'false', 'f', 'n', '0'):
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M0mR(YKHO, str):\n try:\n if str.lower() == 'true':\n return True\n elif str.lower() == 'false':\n return False\n else:\n raise ValueError\n except:\n return False",
"def M0mR(vIwR):\n if vIwR == 'True':\n return True\n elif vIwR... | [
"0.88223743",
"0.8811291",
"0.8803892",
"0.88021225",
"0.8800452",
"0.8789139",
"0.87546253",
"0.8691756",
"0.8672643",
"0.8641921",
"0.86418927",
"0.8622225",
"0.8596154",
"0.85846674",
"0.8584441",
"0.85770035",
"0.8568645",
"0.8568645",
"0.8568645",
"0.8568645",
"0.8566124... | 0.8323365 | 41 |
Simple check to see if all variables are assigned. If a variable has value 0, then there are still unassigned variables. | def FARB(YKHO, QTBn):
for rdlD in QTBn:
dgIT = min(rdlD)
if dgIT == 0:
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I3xs(YKHO):\n for Ty9i in YKHO.network.variables:\n if Ty9i.isAssigned():\n for XmAe in YKHO.network.getNeighborsOfVariable(Ty9i):\n if Ty9i.getAssignment() == XmAe.getAssignment():\n return False\n return True",
"def ZZQq(lhin):\n for SRYB in lhin... | [
"0.72458494",
"0.71847004",
"0.69138366",
"0.6886722",
"0.67444134",
"0.6717513",
"0.66438943",
"0.6594142",
"0.6496239",
"0.63770217",
"0.6332631",
"0.6224558",
"0.6220144",
"0.6200072",
"0.6197207",
"0.61635184",
"0.614656",
"0.6133453",
"0.61081153",
"0.6103102",
"0.610253... | 0.0 | -1 |
Get box number from row and col indices. Box number range from 08 | def gT2A(YKHO, rdlD, fvDH):
nUZO = rdlD // 3
ognS = fvDH // 3
FlUN = nUZO * 3 + ognS
return FlUN | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oZxg(YKHO, f6_R: int, D1Qf: int) -> (int, int):\n eNuZ = f6_R // YKHO.BOX_SIZE\n qx4p = D1Qf // YKHO.BOX_SIZE\n return (eNuZ, qx4p)",
"def wHeb(VmPb, FlUN):\n d6pt = 0\n for jzdc, Fg_i in zip(VmPb, FlUN):\n d6pt = d6pt * Fg_i + jzdc\n return d6pt",
"def wHeb(YKHO, WKvO, LVAh):\n ... | [
"0.7470597",
"0.72692096",
"0.70886856",
"0.7024812",
"0.6953729",
"0.6762561",
"0.6665985",
"0.665636",
"0.6630126",
"0.6627437",
"0.65816796",
"0.6579236",
"0.6568535",
"0.6515059",
"0.6515059",
"0.64794695",
"0.6462393",
"0.644564",
"0.6443982",
"0.64339036",
"0.6417099",
... | 0.7026883 | 3 |
Return the resource label used in logs entries. | def W3Tm(YKHO):
if hasattr(YKHO, 'svc'):
UXqs = YKHO.svc.loggerpath + '.'
else:
UXqs = LV2M.nodename + '.'
if YKHO.rid is None:
UXqs += YKHO.type
return UXqs
if YKHO.subset is None:
UXqs += YKHO.rid
return UXqs
UqER = YKHO.rid.split('#')
if len(UqE... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SIjJ(YKHO):\n pass",
"def UXqs(YKHO):\n return YKHO.resourcetype()",
"def UXqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'label')",
"def UXqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'label')",
"def UXqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'label')",
"def UXqs(YKHO) -> str:\n return qe4Y... | [
"0.7831734",
"0.71227974",
"0.6848513",
"0.6848513",
"0.6848513",
"0.6848513",
"0.6848513",
"0.6848513",
"0.6848513",
"0.6848513",
"0.6848513",
"0.6848513",
"0.6848513",
"0.6848513",
"0.6848513",
"0.6848513",
"0.6848513",
"0.6848513",
"0.6848513",
"0.6848513",
"0.6848513",
... | 0.6881976 | 2 |
The full path to the provisioned state cache file. | def xHZc(YKHO):
return Hy7s.path.join(YKHO.var_d, 'provisioned') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eR0P(YKHO):\n return YKHO.get_cache_directory() + '/' + YKHO.get_local_filename()",
"def x6nZ(YKHO, GikI):\n return Hy7s.path.join(YKHO.environment_base(GikI), YKHO._config.state_file())",
"def gLDJ(YKHO) -> GkAb:\n return YKHO._cache_path",
"def fEVd(YKHO) -> GkAb:\n return YKHO._get_cache_d... | [
"0.76484007",
"0.75601655",
"0.7484026",
"0.7444847",
"0.73321605",
"0.72008044",
"0.71984935",
"0.71984935",
"0.7169396",
"0.7134444",
"0.7131545",
"0.7109094",
"0.7089907",
"0.7073539",
"0.7069216",
"0.70435035",
"0.70144945",
"0.69830424",
"0.6956147",
"0.6955481",
"0.6935... | 0.0 | -1 |
Return the resource provisioned state from the ondisk cache and its state change time as a dictionnary. | def NRJw(YKHO):
try:
gr3b = YKHO.is_provisioned()
except Exception as exc:
YKHO.status_log('provisioned: %s' % str(BQDi), 'error')
gr3b = False
nPrm = {}
if gr3b is not None:
nPrm['state'] = gr3b
s537 = YKHO.provisioned_flag_mtime()
if s537 is not None:
nP... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oeOK(YKHO, qv1X):\n YKHO._enforce(qv1X, new_policy='cache_list')\n return dict(cached_images=YKHO.cache.get_cached_images(), queued_images=YKHO.cache.get_queued_images())",
"def sfS8(YKHO):\n return qQXR.loads(open('cache', 'r').read())",
"def QTBn(YKHO) -> cuzp[str, ImMB]:\n QTBn = {'resources... | [
"0.70623326",
"0.6882872",
"0.66078424",
"0.6248125",
"0.618354",
"0.61767477",
"0.61678016",
"0.6147377",
"0.61202544",
"0.6107204",
"0.6101152",
"0.6094009",
"0.6090286",
"0.60843873",
"0.6083827",
"0.60820496",
"0.60815334",
"0.6080942",
"0.6076144",
"0.60744953",
"0.60642... | 0.6460011 | 3 |
Function to return the number of samples in the dataset. | def szAg(YKHO):
return len(YKHO.data_file) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cDK5(YKHO, __n6):\n return YKHO.counts[__n6]",
"def yU06(YKHO):\n return YKHO._num_samples",
"def AV8x(YKHO):\n return YKHO.data.shape[0]",
"def eAYh(YKHO):\n return YKHO.samples.shape[0]",
"def eAYh(YKHO):\n return sum((1 for bGrB in YKHO.sample_names))",
"def eAYh(YKHO):\n return ... | [
"0.88107365",
"0.8257617",
"0.81447214",
"0.8030149",
"0.79816914",
"0.7943323",
"0.7938338",
"0.7903365",
"0.78770906",
"0.77899235",
"0.7774748",
"0.7774662",
"0.77623",
"0.7746066",
"0.77426064",
"0.7723757",
"0.7709014",
"0.7709014",
"0.76932657",
"0.7661823",
"0.7632079"... | 0.0 | -1 |
Print a ResourceGroup instance. | def fzl7(uOe2):
print('\tName: {}'.format(uOe2.name))
print('\tId: {}'.format(uOe2.id))
print('\tLocation: {}'.format(uOe2.location))
print('\tTags: {}'.format(uOe2.tags))
RqpY(uOe2.properties) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SfXu(uOe2: Group) -> None:\n print(qQXR.dumps(xASv.group_as_json_dict(uOe2)))",
"def _JxB(cQ68):\n for mWFP in cQ68:\n print(mWFP)\n return",
"def fzl7(uOe2):\n print('\\tName: {}'.format(uOe2.name))\n print('\\tId: {}'.format(uOe2.id))\n print('\\tLocation: {}'.format(uOe2.locatio... | [
"0.7221476",
"0.67805415",
"0.6453057",
"0.6257244",
"0.62163526",
"0.6109028",
"0.6030294",
"0.59900004",
"0.5945413",
"0.59148645",
"0.58836764",
"0.5857246",
"0.5844516",
"0.58314866",
"0.58202875",
"0.5779533",
"0.57566535",
"0.57494724",
"0.57458526",
"0.57458526",
"0.57... | 0.6437623 | 3 |
Ensures there are some tasks present for testing. | def DBpL(mcuP, gtOS):
d6pt = mcuP()
d6pt.update_ranking_rules(['typo', 'exactness'])
d6pt.reset_ranking_rules()
d6pt.add_documents(gtOS)
d6pt.add_documents(gtOS) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k3Nw(YKHO):\n pass",
"def ajiK(YKHO):\n pass",
"def QR6t(YKHO):\n YKHO.assertEqual(YKHO.tasks, ['get_list_of_alma_sftp_files_to_transer', 'move_file_to_s3', 'archive_files_in_sftp', 'update_variables', 'success_slack_trigger'])",
"def Pi4M(YKHO):\n xCjU = o2Vr.get_tasks(Edpv['username'])\n ... | [
"0.7637514",
"0.7298715",
"0.72203887",
"0.7201246",
"0.7048263",
"0.7027462",
"0.7025786",
"0.7022088",
"0.6995865",
"0.69605803",
"0.68936855",
"0.68356204",
"0.6830783",
"0.6817787",
"0.6797835",
"0.6772374",
"0.67239195",
"0.67239195",
"0.67181265",
"0.6702697",
"0.665197... | 0.0 | -1 |
Return the number of copies of `other` in `self`. | def EIrV(YKHO, Elif):
return len(YKHO.copies(Elif)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qlcl(YKHO, Elif):\n return len(YKHO.contiguous_copies(Elif))",
"def XZgE(YKHO, Elif):\n return len(YKHO.get_connections(Elif))",
"def FOdN(YKHO, Elif):\n return len(YKHO) + len(Elif)",
"def FOdN(YKHO, Elif):\n return len(YKHO.contents) + len(Elif.contents)",
"def FOdN(YKHO, Elif):\n retu... | [
"0.77950484",
"0.7393314",
"0.7220448",
"0.70474464",
"0.7023846",
"0.6949744",
"0.6936118",
"0.69162667",
"0.68770105",
"0.6849581",
"0.6838641",
"0.68091416",
"0.6802585",
"0.6658304",
"0.665112",
"0.6625325",
"0.66092956",
"0.6594261",
"0.6589542",
"0.65886253",
"0.6577802... | 0.8743071 | 0 |
Return the number of contiguous copies of `other` in `self`. | def Qlcl(YKHO, Elif):
return len(YKHO.contiguous_copies(Elif)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EIrV(YKHO, Elif):\n return len(YKHO.copies(Elif))",
"def yHH9(YKHO, Elif):\n return len(YKHO * Elif)",
"def XZgE(YKHO, Elif):\n return len(YKHO.get_connections(Elif))",
"def FOdN(YKHO, Elif):\n return len(YKHO) + len(Elif)",
"def szAg(YKHO):\n exwG = 0\n for or8S in iter(YKHO):\n ... | [
"0.76564425",
"0.69995934",
"0.67219657",
"0.65986073",
"0.65690863",
"0.65104276",
"0.648673",
"0.6391137",
"0.6386628",
"0.6367104",
"0.6336752",
"0.62646896",
"0.62587875",
"0.6250703",
"0.62066656",
"0.61692107",
"0.6154896",
"0.6142756",
"0.6084779",
"0.6075352",
"0.6052... | 0.8595417 | 0 |
Extract the Docker version from the user agent, taking special care to handle the case of a 1.5 client requesting an auth token, which sends a broken user agent. If we can not positively identify a version, return None. | def ZVYI(gjEP):
tPVV = sX5b.search(gjEP)
if tPVV:
NIW9 = tPVV.group(1).split('.')
BGCH = [XP5J[:-1].lstrip('0') + XP5J[-1] for XP5J in NIW9]
return moxu('.'.join(BGCH), partial=True)
elif P9_N.match(gjEP):
return moxu(ZgjI)
else:
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qlcM(Lb1u):\n Aofo = lYwp.search(Lb1u.lower())\n if not Aofo:\n return None\n return Aofo.groupdict()",
"def Ov5n(Lb1u):\n if Lb1u is not None and '/' in Lb1u:\n YWSi, ZI14 = Lb1u.split('/', 1)\n if YWSi == 'git-lfs':\n DpZH = ZI14.split(' ')[0]\n AMID =... | [
"0.65903986",
"0.6366704",
"0.6313291",
"0.61081624",
"0.60796297",
"0.6036537",
"0.59997463",
"0.5951505",
"0.5934587",
"0.5910866",
"0.5874572",
"0.5853803",
"0.5839547",
"0.5839189",
"0.58334565",
"0.5830661",
"0.5829491",
"0.5829175",
"0.58277386",
"0.5818732",
"0.5799379... | 0.83139336 | 0 |
Set the energy threshold E for the integrator. | def Wl3b(YKHO, ut5U):
YKHO.setGlobalVariable(1, ut5U) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qTMd(YKHO, hAA5):\n YKHO._energy = hAA5 * uwaB.e",
"def v5tn(YKHO, aj0M: float) -> None:\n ...",
"def RZGU(YKHO, VYvU):\n YKHO.energy = VYvU",
"def Pr1H(YKHO, eFy4=0.0025):\n YKHO.bunch.getSyncParticle().kinEnergy(eFy4)",
"def RZGU(YKHO, VYvU):\n YKHO._energy = VYvU",
"def VYvU(YKHO, V... | [
"0.7304871",
"0.7091019",
"0.70309174",
"0.693486",
"0.6910597",
"0.67880434",
"0.66993517",
"0.66571844",
"0.665078",
"0.66317767",
"0.6582646",
"0.6493221",
"0.6477321",
"0.64402574",
"0.64096284",
"0.6401199",
"0.6367962",
"0.63604933",
"0.6349635",
"0.6287369",
"0.6267506... | 0.6571287 | 11 |
Given the actual potential energy of the system, return the value of the effective potential. | def iz0F(YKHO, VYvU):
Cwt5 = YKHO.getAlpha()
ut5U = YKHO.getE()
if not pTJN(VYvU):
VYvU = VYvU * _0Mu
if VYvU > ut5U:
return VYvU
return VYvU + (ut5U - VYvU) * (ut5U - VYvU) / (Cwt5 + ut5U - VYvU) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VYvU(YKHO):\n return (YKHO.m * oyIN.sum(YKHO.omega * YKHO.omega) + oyIN.sum(YKHO.v * YKHO.v)) / (2 * YKHO.h)",
"def TdMr(YKHO, RR8p):\n YKHO.update(RR8p)\n return YKHO.energy",
"def cF9g(YKHO):\n return YKHO._energy / uwaB.e",
"def RUOA(YKHO):\n return YKHO.total_energy / 2",
"def TdMr(Y... | [
"0.71995604",
"0.69865704",
"0.69729775",
"0.67665154",
"0.6755018",
"0.6752488",
"0.673137",
"0.67009544",
"0.6689568",
"0.66348344",
"0.6614784",
"0.6571021",
"0.65639865",
"0.6548631",
"0.65356344",
"0.6520897",
"0.6520897",
"0.6519169",
"0.6514465",
"0.65034956",
"0.65023... | 0.7090424 | 1 |
Set the energy threshold E for the boosted force group. | def dnv8(YKHO, ut5U):
YKHO.setGlobalVariable(1, ut5U) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def v5tn(YKHO, aj0M: float) -> None:\n ...",
"def Pr1H(YKHO, eFy4=0.0025):\n YKHO.bunch.getSyncParticle().kinEnergy(eFy4)",
"def qTMd(YKHO, hAA5):\n YKHO._energy = hAA5 * uwaB.e",
"def RZGU(YKHO, VYvU):\n YKHO.energy = VYvU",
"def bGOi(YKHO):\n if YKHO.energy < 100:\n YKHO.energy += 0... | [
"0.6505852",
"0.650138",
"0.64855963",
"0.6392958",
"0.63315284",
"0.628015",
"0.6257919",
"0.6173869",
"0.6146143",
"0.60597503",
"0.6022207",
"0.599161",
"0.596175",
"0.5952407",
"0.58811545",
"0.5833993",
"0.58329874",
"0.5829815",
"0.5827559",
"0.5795411",
"0.577663",
"... | 0.5785666 | 20 |
Set the energy threshold E for the total energy. | def V0KW(YKHO, ut5U):
YKHO.setGlobalVariable(1, ut5U) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qTMd(YKHO, hAA5):\n YKHO._energy = hAA5 * uwaB.e",
"def RZGU(YKHO, VYvU):\n YKHO.energy = VYvU",
"def v5tn(YKHO, aj0M: float) -> None:\n ...",
"def RZGU(YKHO, VYvU):\n YKHO._energy = VYvU",
"def VYvU(YKHO, VYvU):\n YKHO.__energy = VYvU",
"def bGOi(YKHO):\n if YKHO.energy < 100:\n ... | [
"0.7342823",
"0.7088749",
"0.70672935",
"0.69657236",
"0.6958241",
"0.69075096",
"0.6801457",
"0.67697513",
"0.6534438",
"0.65091133",
"0.64228064",
"0.6402198",
"0.6372805",
"0.63704884",
"0.63209164",
"0.63188607",
"0.63023937",
"0.6281219",
"0.62659276",
"0.62659276",
"0.6... | 0.73556954 | 0 |
Set the energy threshold E for the boosted force group. | def dnv8(YKHO, ut5U):
YKHO.setGlobalVariable(3, ut5U) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def v5tn(YKHO, aj0M: float) -> None:\n ...",
"def Pr1H(YKHO, eFy4=0.0025):\n YKHO.bunch.getSyncParticle().kinEnergy(eFy4)",
"def qTMd(YKHO, hAA5):\n YKHO._energy = hAA5 * uwaB.e",
"def RZGU(YKHO, VYvU):\n YKHO.energy = VYvU",
"def bGOi(YKHO):\n if YKHO.energy < 100:\n YKHO.energy += 0... | [
"0.65037394",
"0.6498268",
"0.6482778",
"0.6390816",
"0.63306725",
"0.6278025",
"0.62561065",
"0.6176284",
"0.6143057",
"0.6057938",
"0.60219824",
"0.59936446",
"0.59607106",
"0.594958",
"0.5880856",
"0.5834329",
"0.5828982",
"0.5824511",
"0.5793715",
"0.5782572",
"0.5777897"... | 0.5829963 | 16 |
Given the actual potential energy of the system, return the value of the effective potential. | def iz0F(YKHO, rOhO, TDKJ):
P73k = YKHO.getAlphaTotal()
vN9B = YKHO.getETotal()
XFzm = YKHO.getAlphaGroup()
CVUs = YKHO.getEGroup()
if not pTJN(rOhO):
rOhO = rOhO * _0Mu
if not pTJN(TDKJ):
TDKJ = TDKJ * _0Mu
wLus = 0.0 * _0Mu
if rOhO < vN9B:
wLus = wLus + (vN9B - ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VYvU(YKHO):\n return (YKHO.m * oyIN.sum(YKHO.omega * YKHO.omega) + oyIN.sum(YKHO.v * YKHO.v)) / (2 * YKHO.h)",
"def iz0F(YKHO, VYvU):\n Cwt5 = YKHO.getAlpha()\n ut5U = YKHO.getE()\n if not pTJN(VYvU):\n VYvU = VYvU * _0Mu\n if VYvU > ut5U:\n return VYvU\n return VYvU + (ut5U -... | [
"0.7200664",
"0.7092609",
"0.6986203",
"0.6975091",
"0.67666113",
"0.6754631",
"0.6752155",
"0.67310137",
"0.6702336",
"0.66901684",
"0.66345316",
"0.66140527",
"0.6571812",
"0.65651137",
"0.6550518",
"0.6536765",
"0.6522826",
"0.6522826",
"0.65201616",
"0.65154356",
"0.65046... | 0.6214548 | 53 |
Is the sequence a project tree | def i9V5(aWuw):
return tUl7(aWuw).judge_legal() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i9V5(aWuw, IDBL=False, CxNP=False):\n if IDBL and (not cbsB(aWuw)):\n return False\n e4Pp = sum((sdCG == 0 for sdCG in aWuw))\n if e4Pp == 0:\n return False\n if not CxNP and e4Pp > 1:\n return False\n if any((YRbF == sdCG for YRbF, sdCG in enumerate(aWuw, 1))):\n ret... | [
"0.6855305",
"0.6625436",
"0.62324345",
"0.6165622",
"0.6033506",
"0.58024204",
"0.57691586",
"0.57211846",
"0.57202345",
"0.57054335",
"0.56754375",
"0.5633974",
"0.5611955",
"0.5611955",
"0.5587244",
"0.5586216",
"0.5578412",
"0.55568045",
"0.5513316",
"0.5503813",
"0.55038... | 0.5685297 | 10 |
hashes a password using pbkdf2_sha512 | def qzFd(jTXt):
return MsCT.encrypt(jTXt) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qzFd(jTXt):\n return MsCT.encrypt(jTXt)",
"def qzFd(jTXt):\n mNdd = HBct.pbkdf2_hmac('sha512', jTXt.encode('utf-8'), E4Up.encode('utf-8'), 100000)\n mNdd = MRxC.hexlify(mNdd)\n return mNdd.decode('ascii')",
"def qzFd(jTXt):\n NTfD = HBct.sha256(Hy7s.urandom(60)).hexdigest().encode('ascii')\n... | [
"0.86617017",
"0.8464213",
"0.8391892",
"0.8341001",
"0.83101434",
"0.83101434",
"0.83101434",
"0.83101434",
"0.83101434",
"0.83101434",
"0.83101434",
"0.82997274",
"0.82847506",
"0.82847506",
"0.8283329",
"0.82768196",
"0.82763267",
"0.826498",
"0.82526606",
"0.8236841",
"0.... | 0.83950907 | 2 |
Create a topic/channel. Arguments cookie_jar session id topic_name topic to create visible 0; not visible to other users 1; visible to all user s | def fgXp(_piz, O7Jy, oWb2=1):
ZpzO = rOmR + 'channel/create'
U34r = {'topic': O7Jy, 'visible': oWb2}
try:
geh0 = G4JS.post(ZpzO, headers=MOPg, json=U34r, cookies=_piz, timeout=None)
return geh0.json()
except ut5U.RequestException as e_e:
return {'Error': PQBG} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fgXp(vC92, KAOR, **B2fa):\n from .serializers import TopicSerializer\n j3hq = TopicSerializer(KAOR)\n print(j3hq.data)\n yAVq(vC92, KAOR)",
"def BdN0(Z9rn, NtEF, rlUa, XOh9=1, yir6=1):\n jg2_ = MAqI(Z9rn.config.master_host, CBIr, config=Z9rn.config)\n XhEh(jg2_, NtEF, rlUa, XOh9, yir6)",
... | [
"0.63755274",
"0.61237854",
"0.6068289",
"0.6000345",
"0.59129643",
"0.58899504",
"0.58659256",
"0.5836595",
"0.5833238",
"0.5829387",
"0.5808783",
"0.57785094",
"0.57769763",
"0.5750348",
"0.5702127",
"0.5684978",
"0.5668637",
"0.56634754",
"0.56557184",
"0.56344837",
"0.563... | 0.82495916 | 0 |
Return vector of degrees of freedom of the variable. | def nrOS(YKHO, YPaw=0, VVyp=None, JRYC=None):
if VVyp is None:
nPrm = YKHO.data[YPaw]
if nPrm is not None:
return nPrm[YKHO.indx]
else:
raise ValueError('data of variable are not set! (%s, step %d)' % (YKHO.name, YPaw))
else:
if YKHO.history is None:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nyfv(YKHO) -> TYfJ:\n return YKHO._java_model.degreesOfFreedom()",
"def nUPH(YKHO):\n return YKHO.determinant()",
"def DVnB(YKHO):\n rLdf = YKHO.coefficients['pd']\n h1Ga = YKHO.coefficients['sumP_gldm']\n try:\n CCrh = XTiz.sum(rLdf ** 2) / h1Ga\n return CCrh\n except ZeroD... | [
"0.6418732",
"0.63798773",
"0.61324364",
"0.6078054",
"0.6053103",
"0.604727",
"0.6041291",
"0.6002193",
"0.5962902",
"0.5953882",
"0.59149647",
"0.59131396",
"0.591285",
"0.585608",
"0.58232945",
"0.5822233",
"0.5820128",
"0.5803586",
"0.5803529",
"0.5767931",
"0.57409126",
... | 0.0 | -1 |
Translate dof connectivity of the variable to active dofs. | def xJer(YKHO, QUfX, d16V):
YKHO.adof_conns = {}
for H5ew, Bc4p in YKHO.field.dof_conns.iteritems():
SRYB = YKHO.get_primary()
YYY_ = (SRYB.name,) + H5ew[2:]
if YYY_ in QUfX:
YKHO.adof_conns[YYY_] = QUfX[YYY_]
else:
if SRYB.name in d16V.indx:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cGkw(YKHO):\n lTDS = YKHO.mesh.dimension\n lZEv = 0\n eOi3 = [None] * (lTDS + 1)\n for On1j in Ni9Y(lTDS + 1):\n Vyww = YKHO.mesh.topology.n_entities[On1j]\n rEU2 = YKHO.element.dof_tuple[On1j] * Vyww\n tWJV = lZEv + 1 + oyIN.arange(rEU2, dtype=int)\n eOi3[On1j] = tWJV.r... | [
"0.55282515",
"0.5347667",
"0.5228771",
"0.5131235",
"0.5052159",
"0.5038022",
"0.49847078",
"0.4969221",
"0.49586213",
"0.49576998",
"0.49320385",
"0.49320385",
"0.48964095",
"0.4890337",
"0.48474383",
"0.48434654",
"0.48356837",
"0.48286864",
"0.4822044",
"0.48008978",
"0.4... | 0.4658719 | 34 |
Returns an id for the producer that calls this. | def Mx0x(YKHO):
YKHO.queue.append([])
nNFh = len(YKHO.queue) - 1
YKHO.producers_id_list.append(nNFh)
return nNFh | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def unpH(YKHO):\n return YKHO.__identifier",
"def id(YKHO):\n return YKHO.py_concurrency.pid",
"def vDgp(YKHO):\n return YKHO.__id",
"def vDgp(YKHO):\n return YKHO.__id",
"def vDgp(YKHO):\n return YKHO.__id",
"def vDgp(YKHO):\n return YKHO.__id",
"def vDgp(YKHO):\n return YKHO.__id... | [
"0.7244625",
"0.72244185",
"0.7195314",
"0.7195314",
"0.7195314",
"0.7195314",
"0.7195314",
"0.7195314",
"0.7195314",
"0.7195314",
"0.7195314",
"0.7195314",
"0.7195314",
"0.7195314",
"0.7195314",
"0.7195314",
"0.7195314",
"0.7195314",
"0.7195314",
"0.7195314",
"0.7195314",
... | 0.0 | -1 |
Return a list with all the products in the cart. | def pH8m(YKHO, sVCJ):
return YKHO.carts[sVCJ] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CnKV(YKHO):\n xDcj = f'SELECT * FROM products'\n DpUl = YKHO.conn.cursor()\n DpUl.execute(xDcj)\n dixj = DpUl.fetchall()\n if not dixj:\n return False\n Ldyl = []\n for Aofo in dixj:\n Lx3t = msfn(Aofo[0], Aofo[1], Aofo[2], Aofo[3]).to_json()\n Ldyl.append(Lx3t)\n r... | [
"0.7501086",
"0.7337104",
"0.7274092",
"0.720298",
"0.71939456",
"0.714639",
"0.7072601",
"0.70306045",
"0.7023351",
"0.6986939",
"0.69607383",
"0.69322145",
"0.6918735",
"0.69042814",
"0.6874761",
"0.6864657",
"0.6862476",
"0.6862476",
"0.6850779",
"0.68431234",
"0.6838714",... | 0.0 | -1 |
Validate that organization_id is in the GET params and it's an int. | def dDpO(JfyU):
@zaGL(JfyU)
def cqnm(QePW, *qIxc, **B2fa):
P1dF = False
try:
int(QePW.GET['organization_id'])
except (ValueError, KeyError):
P1dF = True
if P1dF:
Z1yi = 'application/json'
Ol8d = {'status': 'error', 'message': 'Inva... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lrqs(FYKK):\n\n @zaGL(FYKK)\n def cqnm(YKHO, QePW, *qIxc, **B2fa):\n g9KT = QePW.query_params.get('organization_id', None)\n if g9KT is None:\n return DbbF('Valid organization_id is required in the query parameters.')\n try:\n int(g9KT)\n except (TypeErro... | [
"0.68054956",
"0.6664827",
"0.61899585",
"0.6077002",
"0.5996481",
"0.5994638",
"0.59303963",
"0.5776406",
"0.5739335",
"0.5715471",
"0.56479496",
"0.5630337",
"0.56277704",
"0.56245536",
"0.562454",
"0.5618206",
"0.5584975",
"0.5571737",
"0.5541557",
"0.5537166",
"0.5527531"... | 0.74598944 | 0 |
Validate that organization_id is in the GET params and it's an int. | def lrqs(FYKK):
@zaGL(FYKK)
def cqnm(YKHO, QePW, *qIxc, **B2fa):
g9KT = QePW.query_params.get('organization_id', None)
if g9KT is None:
return DbbF('Valid organization_id is required in the query parameters.')
try:
int(g9KT)
except (TypeError, ValueError)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dDpO(JfyU):\n\n @zaGL(JfyU)\n def cqnm(QePW, *qIxc, **B2fa):\n P1dF = False\n try:\n int(QePW.GET['organization_id'])\n except (ValueError, KeyError):\n P1dF = True\n if P1dF:\n Z1yi = 'application/json'\n Ol8d = {'status': 'error', ... | [
"0.74604136",
"0.66640234",
"0.6190816",
"0.60775447",
"0.5996867",
"0.599313",
"0.5929731",
"0.5775285",
"0.5739203",
"0.5716164",
"0.5648079",
"0.5630735",
"0.5630232",
"0.56257474",
"0.56235087",
"0.5618149",
"0.5585153",
"0.5573791",
"0.5542203",
"0.5538979",
"0.5527976",... | 0.6805938 | 1 |
Gets the location of this SkySchema. | def Rci7(YKHO) -> MzNR:
return YKHO._location | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Rci7(YKHO):\n return YKHO._feature.attributes.get(YKHO._schema.location)",
"def hbd3(YKHO):\n return YKHO._location",
"def Rci7(YKHO):\n return YKHO._get_field('location')",
"def hbd3(YKHO):\n return YKHO.__location",
"def Rci7(YKHO):\n return YKHO._wrapped_instance.Location()",
"def R... | [
"0.7418998",
"0.71328276",
"0.7127105",
"0.7108985",
"0.7090152",
"0.7077573",
"0.70765215",
"0.70515037",
"0.70515037",
"0.70515037",
"0.70515037",
"0.70515037",
"0.70515037",
"0.70515037",
"0.70515037",
"0.70515037",
"0.70515037",
"0.70515037",
"0.70515037",
"0.70515037",
"... | 0.763508 | 0 |
Sets the location of this SkySchema. | def Rci7(YKHO, Rci7: EpwLocationSchema):
if Rci7 is None:
raise ValueError('Invalid value for `location`, must not be `None`')
YKHO._location = Rci7 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YK7p(YKHO, BWXx):\n YKHO.designLocation = BWXx",
"def YK7p(YKHO, Rci7):\n YKHO._location = Rci7",
"def QDqo(YKHO, Rci7):\n YKHO.loc = Rci7",
"def Rci7(YKHO, Rci7):\n YKHO._location = Rci7",
"def MtGr(YKHO, Rci7):\n YKHO._location = Rci7",
"def Rci7(YKHO, Rci7):\n YKHO._location = Rc... | [
"0.70360506",
"0.6837932",
"0.6825259",
"0.66436106",
"0.66242516",
"0.659137",
"0.659137",
"0.659137",
"0.659137",
"0.659137",
"0.6586018",
"0.6586018",
"0.6586018",
"0.6586018",
"0.6586018",
"0.6586018",
"0.6586018",
"0.6586018",
"0.6586018",
"0.6586018",
"0.6586018",
"0.... | 0.61577654 | 31 |
Gets the sky_type of this SkySchema. | def iqq3(YKHO) -> int:
return YKHO._sky_type | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iqq3(YKHO, iqq3: int):\n if iqq3 is None:\n raise ValueError('Invalid value for `sky_type`, must not be `None`')\n YKHO._sky_type = iqq3",
"def type(YKHO):\n return YKHO._type.get_waarde()",
"def type(YKHO):\n return YKHO._type.get_waarde()",
"def type(YKHO):\n return YKHO._type.get... | [
"0.70087224",
"0.64933133",
"0.64933133",
"0.64933133",
"0.64933133",
"0.64933133",
"0.64933133",
"0.64933133",
"0.64933133",
"0.64933133",
"0.64933133",
"0.64488924",
"0.64488924",
"0.64488924",
"0.64488924",
"0.64488924",
"0.64488924",
"0.64488924",
"0.64027596",
"0.64027596"... | 0.82285887 | 0 |
Create a new channel group. | def AL0I(YKHO, G3WP=False, MpXb=None):
yYUJ = YKHO.parent.labels.chan_name
if yYUJ is None:
tO9_ = 'No dataset loaded'
YKHO.parent.statusBar().showMessage(tO9_)
ESjr.debug(tO9_)
else:
if MpXb is None:
Dokz = LLCE.getText(YKHO, 'New Channel Group', 'Enter Name')
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def A9W3(e7pw):\n mWFP = QePW.json.get('name')\n kZIt = QePW.json.get('dis')\n Ghho = QePW.json.get('category')\n if mWFP and kZIt and Ghho:\n uOe2 = NCls.Group.find_one_or_404({'_id': aA6B(e7pw)})\n P0xY = {'name': mWFP, 'dis': kZIt, 'category': Ghho, 'groupId': e7pw}\n MCCk = NCl... | [
"0.7741949",
"0.74454",
"0.7375184",
"0.7334012",
"0.73323274",
"0.7316226",
"0.7291702",
"0.7277541",
"0.7273233",
"0.721311",
"0.7138247",
"0.7102646",
"0.7082666",
"0.7064926",
"0.70622456",
"0.7027489",
"0.7008759",
"0.70057535",
"0.6979654",
"0.6975341",
"0.69447845",
... | 0.72444993 | 9 |
Normalizes the data to mean 0 and standard deviation 1 | def NkkI(WKvO, yDqo='float32'):
WKvO = WKvO.astype(yDqo) / 255
return WKvO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WuUW(nPrm, JBMS, M1Jx):\n return (nPrm - JBMS) / M1Jx",
"def NkkI(YKHO):\n YKHO.data_mean = oyIN.mean(YKHO.data, axis=0, dtype=oyIN.float32)\n YKHO.data_std = oyIN.std(YKHO.data, axis=0, dtype=oyIN.float32)\n YKHO.data_std[YKHO.data_std == 0] = 1\n YKHO.data = (YKHO.data - YKHO.data_mean) / YK... | [
"0.83881927",
"0.835939",
"0.81906253",
"0.8161079",
"0.80848825",
"0.80765754",
"0.8070307",
"0.8061591",
"0.80392313",
"0.8028722",
"0.8026455",
"0.7971508",
"0.7937416",
"0.79271483",
"0.78999424",
"0.7800293",
"0.7792389",
"0.77390856",
"0.7722725",
"0.7669364",
"0.764757... | 0.0 | -1 |
Customize the queryset according to the current user. | def k66M(YKHO):
SR0I = super().get_queryset().prefetch_related('categories', 'tags')
if YKHO.action == 'retrieve':
SR0I = SR0I.prefetch_related('composition', 'composition__ingredients', 'composition__ingredients__ingredient', 'composition__ingredients__unit', 'categories', 'tags')
if YKHO.request.u... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k66M(YKHO):\n return super().get_queryset().filter(user=YKHO.request.user)",
"def k66M(YKHO):\n return super().get_queryset().filter(user=YKHO.request.user)",
"def k66M(YKHO):\n SR0I = super().get_queryset()\n return SR0I.filter(user_id=YKHO.request.user.id)",
"def k66M(YKHO):\n return YKH... | [
"0.78702545",
"0.78702545",
"0.7849568",
"0.7678316",
"0.7678316",
"0.7678316",
"0.7678316",
"0.7678316",
"0.7678316",
"0.7678316",
"0.7678316",
"0.7678316",
"0.76634246",
"0.76434815",
"0.76298016",
"0.75413203",
"0.7509956",
"0.74465215",
"0.7390658",
"0.7381898",
"0.738174... | 0.0 | -1 |
Return a dedicated serializer according to the HTTP verb. | def l5oD(YKHO):
if YKHO.action not in ['retrieve', 'list']:
return IyFz.RecipeCreateUpdateSerializer
elif YKHO.action == 'list':
return IyFz.RecipeListSerializer
return IyFz.RecipeRetrieveSerializer | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def l5oD(YKHO):\n DBSP = YKHO.request.query_params.get('stub', None)\n if DBSP is not None:\n DBSP = YcAF(DBSP)\n if DBSP:\n return YKHO.stub_serializer\n else:\n if YKHO.request.method == 'POST' and getattr(YKHO, 'create_serializer', None) is not None:\n return YKHO.cre... | [
"0.69955754",
"0.6845319",
"0.6781762",
"0.6762707",
"0.673303",
"0.6721236",
"0.6714854",
"0.6698665",
"0.669624",
"0.66907233",
"0.66907233",
"0.6671956",
"0.6669745",
"0.6647933",
"0.6647263",
"0.6643766",
"0.66434574",
"0.6642179",
"0.6637056",
"0.6607783",
"0.66010416",
... | 0.67451864 | 4 |
Customize the queryset according to the current user. | def k66M(YKHO):
SR0I = super().get_queryset()
olS0 = O59A.objects.select_related('recipe').prefetch_related('recipe', 'recipe__categories', 'recipe__tags')
if YKHO.request.user.is_authenticated and YKHO.request.user.is_staff:
return SR0I.prefetch_related(lUKL('selectedrecipe_set', queryset=olS0))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k66M(YKHO):\n return super().get_queryset().filter(user=YKHO.request.user)",
"def k66M(YKHO):\n return super().get_queryset().filter(user=YKHO.request.user)",
"def k66M(YKHO):\n SR0I = super().get_queryset()\n return SR0I.filter(user_id=YKHO.request.user.id)",
"def k66M(YKHO):\n return YKH... | [
"0.78702545",
"0.78702545",
"0.7849568",
"0.7678316",
"0.7678316",
"0.7678316",
"0.7678316",
"0.7678316",
"0.7678316",
"0.7678316",
"0.7678316",
"0.7678316",
"0.76634246",
"0.76434815",
"0.76298016",
"0.75413203",
"0.7509956",
"0.74465215",
"0.7390658",
"0.7381898",
"0.738174... | 0.0 | -1 |
Return a dedicated serializer according to the HTTP verb. | def l5oD(YKHO):
if YKHO.action not in ['retrieve', 'list']:
return IyFz.RecipeSelectionCreateUpdateSerializer
return IyFz.RecipeSelectionRetrieveSerializer | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def l5oD(YKHO):\n DBSP = YKHO.request.query_params.get('stub', None)\n if DBSP is not None:\n DBSP = YcAF(DBSP)\n if DBSP:\n return YKHO.stub_serializer\n else:\n if YKHO.request.method == 'POST' and getattr(YKHO, 'create_serializer', None) is not None:\n return YKHO.cre... | [
"0.69955754",
"0.6845319",
"0.6781762",
"0.6762707",
"0.67451864",
"0.673303",
"0.6721236",
"0.6714854",
"0.6698665",
"0.669624",
"0.66907233",
"0.66907233",
"0.6671956",
"0.6669745",
"0.6647933",
"0.6647263",
"0.6643766",
"0.66434574",
"0.6642179",
"0.6637056",
"0.6607783",
... | 0.63759744 | 46 |
Calculate the loss from the logits and the labels. | def Lvgp(YKHO, KeL5, Crrw, q8GA=1):
with YKHO.graph.as_default():
with YKHO.graph.device('/gpu:0'):
with ZylS.name_scope('loss'):
CqbS = ZylS.nn.weighted_cross_entropy_with_logits(logits=KeL5, targets=ZylS.to_float(Crrw), pos_weight=q8GA)
bi6l = ZylS.reduce_mean(C... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N77f(YKHO, KeL5, Crrw):\n N77f = ZylS.nn.softmax_cross_entropy_with_logits(KeL5, Crrw)\n return N77f",
"def xBoL(YKHO, KeL5, Crrw):\n with ZylS.name_scope('loss'):\n N8L0 = ZylS.nn.sparse_softmax_cross_entropy_with_logits(logits=KeL5, labels=Crrw)\n N77f = ZylS.reduce_mean(N8L0)\n ... | [
"0.810347",
"0.7919697",
"0.7916163",
"0.79013795",
"0.78708136",
"0.78403515",
"0.7819447",
"0.781558",
"0.7802786",
"0.76971865",
"0.767624",
"0.7665419",
"0.76623595",
"0.7656767",
"0.76519936",
"0.7640201",
"0.7630921",
"0.7620021",
"0.7591599",
"0.7578196",
"0.7577666",
... | 0.76826495 | 10 |
Sets the learning rate to the initial LR decayed by 10 every 30 epochs | def e_63(YKHO, K0do, qtWj):
for YRbF, Lwm5 in enumerate(K0do.param_groups):
if YRbF == 0:
WMj5 = 0.1 ** (qtWj // YKHO.epoch_step)
Lwm5['lr'] = WMj5 * YKHO.lrp
print('backbone learning rate', Lwm5['lr'])
if YRbF == 1:
WMj5 = 0.1 ** (qtWj // YKHO.epoch_s... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e_63(K0do, qtWj):\n nIX4 = nIX4 * 0.1 ** ((qtWj - 117) // 30)",
"def e_63(K0do, qtWj, qIxc):\n tspZ = qIxc.lr * 0.1 ** (qtWj // 30)\n K0do.state_dict()['param_groups'][-1]['lr'] = tspZ",
"def e_63(ma4o, K0do, qtWj, ctbl):\n tspZ = ma4o * 0.1 ** (qtWj // int(epAf.ceil(30.0 / ctbl)))\n for Lwm... | [
"0.79924035",
"0.7941122",
"0.788959",
"0.78281564",
"0.782284",
"0.7817474",
"0.7810824",
"0.78024215",
"0.7791471",
"0.7788609",
"0.77817833",
"0.7765111",
"0.7764646",
"0.77615",
"0.7749031",
"0.77383786",
"0.77301776",
"0.772407",
"0.7712326",
"0.77088904",
"0.7705022",
... | 0.0 | -1 |
Renders the home page. | def kZiy(QePW):
assert isinstance(QePW, eu5F)
return _1tc(QePW, 'app/index.html', {'title': 'Home Page', 'year': qcWV.now().year}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kZiy():\n return TvZl('home.html')",
"def C_QL():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('homepage.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('pages/home.html')",
"def kZiy():\n leAC =... | [
"0.86085397",
"0.85661966",
"0.8562984",
"0.84564984",
"0.8353822",
"0.8353445",
"0.832796",
"0.83265287",
"0.83265287",
"0.8311966",
"0.83088946",
"0.83046836",
"0.8296962",
"0.82942903",
"0.82942903",
"0.82872546",
"0.8279762",
"0.8279762",
"0.8279762",
"0.8279762",
"0.8279... | 0.0 | -1 |
Renders the home page. | def W4NP(QePW):
assert isinstance(QePW, eu5F)
return _1tc(QePW, 'app/indexlt.html', {'title': 'Namu puslapis', 'year': qcWV.now().year}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kZiy():\n return TvZl('home.html')",
"def C_QL():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('homepage.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('pages/home.html')",
"def kZiy():\n leAC =... | [
"0.86085397",
"0.85661966",
"0.8562984",
"0.84564984",
"0.8353822",
"0.8353445",
"0.832796",
"0.83265287",
"0.83265287",
"0.8311966",
"0.83088946",
"0.83046836",
"0.8296962",
"0.82942903",
"0.82942903",
"0.82872546",
"0.8279762",
"0.8279762",
"0.8279762",
"0.8279762",
"0.8279... | 0.0 | -1 |
Renders the contact page. | def Mxk0(QePW):
assert isinstance(QePW, eu5F)
return _1tc(QePW, 'app/contact.html', {'title': 'Contact', 'message': 'Your contact page.', 'year': qcWV.now().year}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mxk0():\n bo34.info('User visited the contact page.')\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n ... | [
"0.85942996",
"0.856412",
"0.856412",
"0.8553042",
"0.84771496",
"0.84180754",
"0.84098697",
"0.8347894",
"0.8342256",
"0.8328687",
"0.82468224",
"0.82289207",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.8... | 0.7544711 | 59 |
Renders the contact page. | def hNFU(QePW):
assert isinstance(QePW, eu5F)
return _1tc(QePW, 'app/contactlt.html', {'title': 'Kontaktai', 'message': 'Kontaktu puslapis', 'year': qcWV.now().year}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mxk0():\n bo34.info('User visited the contact page.')\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n ... | [
"0.8593812",
"0.85634434",
"0.85634434",
"0.8552254",
"0.84763634",
"0.841743",
"0.840855",
"0.83479303",
"0.8341409",
"0.8328061",
"0.82459533",
"0.8228356",
"0.81823075",
"0.81823075",
"0.81823075",
"0.81823075",
"0.81823075",
"0.81823075",
"0.81823075",
"0.81823075",
"0.81... | 0.0 | -1 |
Returns filename such as N27E086.hgt, concatenated with HGTDIR where these 'hgt' files are kept | def g_2H(FDPT, QnmL, Hdht):
if QnmL >= 0:
PCpl = 'N'
elif QnmL < 0:
PCpl = 'S'
if FDPT >= 0:
Kb07 = 'E'
elif FDPT < 0:
Kb07 = 'W'
T0am = '%(ns)s%(lat)02d%(ew)s%(lon)03d.hgt' % {'lat': abs(oyIN.floor(QnmL)), 'lon': abs(oyIN.floor(FDPT)), 'ns': PCpl, 'ew': Kb07}
if ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g_2H(FDPT, QnmL):\n if QnmL >= 0:\n PCpl = 'N'\n elif QnmL < 0:\n PCpl = 'S'\n if FDPT >= 0:\n Kb07 = 'E'\n elif FDPT < 0:\n Kb07 = 'W'\n T0am = PCpl + str(int(epAf.floor(abs(QnmL)))) + Kb07 + str(int(epAf.ceil(abs(FDPT)))) + '.hgt'\n I6Up = Hy7s.path.join(BmW9, T0... | [
"0.6513708",
"0.64956623",
"0.64079845",
"0.63113594",
"0.631031",
"0.61858684",
"0.6147972",
"0.6101752",
"0.60856056",
"0.6081989",
"0.6032733",
"0.602821",
"0.6018455",
"0.6008016",
"0.5998601",
"0.5979754",
"0.5965585",
"0.59572095",
"0.59559155",
"0.5946331",
"0.59376585... | 0.66316825 | 0 |
Actual test for the edge removal. For a single v. | def FhQ0(yvY1, D70y, Ty9i, tk5Y):
P6bq, MKlR = D70y
if P6bq == Ty9i:
raise jHsn.NetworkXError('Wrongly passed the edge and removable node')
VTcd = FlFu(yvY1, P6bq, Ty9i, tk5Y)
sTrf = yvY1.successors(MKlR)
assert len(sTrf) == 1, 'Hybrids must have only one child'
K3B_ = lambda WKvO: SFw_(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Pkw7(YKHO):\n T8d8 = R7Za(val='v0')\n hQHm = R7Za(val='v1')\n jlSq = R7Za(val='v2')\n wyXI = SSad((T8d8, hQHm))\n fVCN = SSad((hQHm, T8d8))\n OexQ = SSad((T8d8, jlSq))\n T8d8.add_edge(wyXI)\n T8d8.add_edge(fVCN)\n T8d8.add_edge(OexQ)\n T8d8.remove_edge(wyXI)\n YKHO.assertFalse(... | [
"0.76000744",
"0.75931776",
"0.74039716",
"0.72337604",
"0.6954145",
"0.6951188",
"0.68987215",
"0.6881267",
"0.684208",
"0.68325955",
"0.6777147",
"0.66909254",
"0.6688823",
"0.6668859",
"0.6635054",
"0.6630756",
"0.6559707",
"0.65571165",
"0.65385777",
"0.6502249",
"0.64724... | 0.6164533 | 38 |
Create domain object based on the bounds and kernel type. | def aoA_(SGPK):
BHTB = []
NNNY = []
ETOM = []
VLhJ = []
for xqoZ in SGPK:
X7zS = [xqoZ['min'], xqoZ['max']]
if xqoZ['type'] == 'float' and xqoZ['kernel'] == '':
NNNY.append(X7zS)
elif xqoZ['type'] == 'float' and xqoZ['kernel'] != '':
BHTB.append(zEgx.E... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, KI6t):\n YKHO._domain_bounds = jth9.deepcopy(KI6t)\n YKHO._domain_type = Jcsk.DomainTypes.tensor_product",
"def reQV():\n Crrw = oyIN.ones(ROpF)\n Mf7r = bVlf(Crrw, affine=None)\n return Mf7r",
"def FIMM(YKHO, KI6t):\n YKHO._tensor_product_domain = rGLf(KI6t)\n YKHO._domain_... | [
"0.6277824",
"0.6228377",
"0.59686095",
"0.59324867",
"0.5791746",
"0.5669816",
"0.55975634",
"0.5567557",
"0.5548127",
"0.551326",
"0.55100435",
"0.55035466",
"0.5447306",
"0.5420503",
"0.5382443",
"0.53366053",
"0.53365606",
"0.5326023",
"0.532187",
"0.53195244",
"0.5313908... | 0.64688617 | 0 |
Returns ndarray of centroids of elements. Returns numpy array of shape ( elements, 2) where each element in the array is a list of x, y coordinates | def yHxN(YKHO):
YKHO.message('Generating centroids')
return oyIN.divide(oyIN.sum(YKHO.element_coordinates(), axis=1), 3.0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hFSn(UqER):\n BHsk = []\n for U6D_ in UqER:\n LTIa = U6D_['points']\n LTIa = [WKvO[:-1] for WKvO in LTIa]\n EcVT = oyIN.array([int(XP5J[0]) for XP5J in LTIa], dtype=oyIN.int64)\n fuBA = oyIN.array([int(XP5J[1]) for XP5J in LTIa], dtype=oyIN.int64)\n BHsk.append([EcVT.me... | [
"0.7838981",
"0.77431405",
"0.75934994",
"0.75860846",
"0.7546717",
"0.7538134",
"0.7495657",
"0.7482063",
"0.7468995",
"0.7396836",
"0.72507167",
"0.72449917",
"0.7233114",
"0.7224276",
"0.7223842",
"0.7218317",
"0.721478",
"0.7182148",
"0.7166158",
"0.7137751",
"0.71226287"... | 0.7723075 | 2 |
Add an iterable of values underneath a specific key, preserving any values already under that key. >>> omd = OrderedMultiDict([('a', 1)]) >>> omd.addlist('a', range(3)) >>> omd OrderedMultiDict([('a', 1), ('a', 0), ('a', 1), ('a', 2)]) | def uez0(YKHO, G1Hx, Ty9i):
if not Ty9i:
return
EW6z = YKHO._insert
hkxX = super(dZJl, YKHO).setdefault(G1Hx, [])
for jnf5 in Ty9i:
EW6z(G1Hx, jnf5)
hkxX.extend(Ty9i) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Jp1D(OxJJ, H5ew, hU8D, JfyU):\n gKsA = list()\n for ZfUD in OxJJ:\n tbx9 = rFMq(ZfUD, hU8D, ZfUD[H5ew])\n gKsA.append(tbx9)\n gKsA = SsQT(gKsA, hU8D, JfyU)\n return gKsA",
"def H2v5(YKHO, H5ew, BWXx):\n if isinstance(BWXx, list):\n for Ty9i in BWXx:\n YKHO.add(H... | [
"0.6933865",
"0.6932772",
"0.6738996",
"0.6688416",
"0.6688416",
"0.6656111",
"0.6612341",
"0.6569696",
"0.65651405",
"0.6457549",
"0.64519435",
"0.6426072",
"0.64004344",
"0.6384602",
"0.6333696",
"0.61861545",
"0.6177799",
"0.61361325",
"0.61294687",
"0.61200505",
"0.610600... | 0.6870773 | 2 |
Remove and return the mostrecently inserted value under the key k, or the mostrecently inserted key if k is not provided. If no values remain under k, it will be removed | def uwL0(YKHO, G1Hx=AnPu, WmM4=AnPu):
if G1Hx is AnPu:
if YKHO:
G1Hx = YKHO.root[ELOZ][n527]
else:
if WmM4 is AnPu:
raise KeyError('empty %r' % type(YKHO))
return WmM4
try:
YKHO._remove(G1Hx)
except KeyError:
if WmM4 is AnPu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BEuN(YKHO, G1Hx, *qIxc):\n Aofo = super(gMXa, YKHO).pop(G1Hx, *qIxc)\n try:\n YKHO.key_sort_order.remove(G1Hx)\n except ValueError:\n pass\n return Aofo",
"def BEuN(YKHO, G1Hx, Csk6=None):\n try:\n wEf2 = YKHO[G1Hx]\n del YKHO[G1Hx]\n return wEf2\n except ... | [
"0.7162018",
"0.70949626",
"0.7004032",
"0.68809825",
"0.6844364",
"0.67348015",
"0.67076004",
"0.6689399",
"0.66590893",
"0.66018176",
"0.6472629",
"0.6366926",
"0.6363364",
"0.63300586",
"0.63074017",
"0.63070554",
"0.62789613",
"0.62554705",
"0.62361586",
"0.6225156",
"0.6... | 0.7538726 | 0 |
String representations of Hiera instance. | def wHJl(YKHO):
def grJw(H5ew):
"""Takes an instance attribute and returns a string like:
'key=value'
"""
return '='.join((H5ew, repr(getattr(YKHO, H5ew, None))))
eXkc = map(grJw, ['config_filename', 'hiera_binary', 'hiera_vars'])
fHzd = ', '.join(eXkc)
return '{... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def an4s(YKHO):\n hlel = 'order: {} connectedModules: {} connectedFaces: {} '.format(YKHO.order, YKHO.child_module, YKHO.attached_face)\n hlel += 'freq: {} amplitude: {} phase: {} rot: {} stiff: {}\\n'.format(YKHO.freq, YKHO.amplitude, YKHO.phase, YKHO.rotation, YKHO.stiffness)\n return hlel",
"def wHJl... | [
"0.70717406",
"0.69121885",
"0.6905911",
"0.68633235",
"0.68367314",
"0.67902184",
"0.6785392",
"0.6778878",
"0.6739309",
"0.67296046",
"0.6720101",
"0.67091423",
"0.66956586",
"0.6679612",
"0.6675089",
"0.6670783",
"0.66617376",
"0.6650976",
"0.6646316",
"0.6645411",
"0.6643... | 0.0 | -1 |
Create a view of the site landing page | def d6pt(QePW):
QpfX = {'title': 'Home', 'nbar': 'home'}
yEHD.success(QePW, 'This is a test message')
return _1tc(QePW, 'main/index.html', QpfX) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F_xU():\n return TvZl('index.html')",
"def hXw_():\n return TvZl('landing_page.html')",
"def hXw_(QePW):\n return SGJU('landing.html')",
"def F_xU():\n return TvZl('landing.html')",
"def d6pt():\n return TvZl('landing.html')",
"def hXw_(QePW):\n return _1tc(QePW, 'Bangazon/index.htm... | [
"0.7849186",
"0.7808729",
"0.7765263",
"0.7730095",
"0.75808096",
"0.75735813",
"0.7483958",
"0.74427384",
"0.74211574",
"0.73529637",
"0.7266999",
"0.72262454",
"0.7193797",
"0.7190584",
"0.7154584",
"0.7064121",
"0.70285547",
"0.7016924",
"0.6997127",
"0.6989311",
"0.698931... | 0.0 | -1 |
Return True if sensor is a valid sensor number. | def exvV(XtFw):
return XtFw in ajbX() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SGVO(YKHO):\n return MBR5.is_valid_number(YKHO)",
"def SGVO(YKHO):\n return MBR5.is_valid_number(YKHO)",
"def SGVO(YKHO) -> bool:\n if YKHO.port is not None:\n return 0 < YKHO.port <= 65535\n return True",
"def ye72(YKHO):\n return YKHO.__validate_first_condition() and YKHO.__valida... | [
"0.68570566",
"0.6852012",
"0.6581416",
"0.6541532",
"0.6534775",
"0.6489725",
"0.64665955",
"0.6427406",
"0.63840574",
"0.6380292",
"0.62991035",
"0.62498146",
"0.6221384",
"0.6173342",
"0.61718154",
"0.61648184",
"0.614815",
"0.6125499",
"0.61128443",
"0.60983247",
"0.60855... | 0.73694474 | 0 |
Creates ShredsDistance entries for every pair of Clusters. | def _8h4(ReNU=False, DVQL=po4t):
if ReNU:
lPLB.objects(distance_type='jaccard').delete()
ItBq = afRL(repeats=DVQL)
YStn = [lPLB() for bGrB in Ni9Y(aJVk)]
for TaUL in E0cw(aJVk, pwpd(ItBq)):
for YRbF, Ayfi in enumerate(TaUL):
if Ayfi:
czQW, tGKH, pImw = Ayfi
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D00Z(YKHO):\n for Z9rn in Ni9Y(YKHO.n_clusters):\n e6ux = YKHO.centroids_[Z9rn, :]\n for YRbF in range(YKHO.X_fit_.shape[0]):\n KAOR = YKHO.X_fit_[YRbF, :]\n YKHO.distances_[YRbF, Z9rn] = oyIN.linalg.norm(e6ux - KAOR)",
"def Kort(YKHO):\n YKHO.dists = {}\n for S1R... | [
"0.6872951",
"0.67119503",
"0.6675139",
"0.65456563",
"0.65439415",
"0.6418239",
"0.6414527",
"0.6404596",
"0.63845307",
"0.63783634",
"0.63755053",
"0.634741",
"0.6304747",
"0.6281001",
"0.6273426",
"0.61932313",
"0.61663204",
"0.6154324",
"0.61326355",
"0.612237",
"0.608967... | 0.0 | -1 |
Return the location of the latest model and training state files. If there isn't a valid checkpoint then return None. | def txpF(YKHO) -> h8nf[AzJI[str, str]]:
deXY = YKHO._find_all_checkpoints()
if len(deXY) <= 0:
return None
x8fl = max(deXY)
return (YKHO._model_state_path(*x8fl), YKHO._training_state_path(*x8fl)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WvV7(TLI7: str):\n wBvU = Hy7s.path.join(TLI7, 'checkpoint')\n if not qJi5.Exists(wBvU):\n G9jH.info('File %s does not exist', wBvU)\n return None\n bGDx = Hy7s.path.join(TLI7, 'export')\n if not qJi5.Exists(bGDx):\n G9jH.info('Eval export folder %s does not exist', bGDx)\n ... | [
"0.80051035",
"0.74957365",
"0.7402161",
"0.7400596",
"0.7365569",
"0.7336385",
"0.7333685",
"0.7285304",
"0.7280307",
"0.72749096",
"0.7223586",
"0.7187632",
"0.7068497",
"0.70547146",
"0.70446813",
"0.6990522",
"0.6982013",
"0.6973939",
"0.6966781",
"0.69565827",
"0.6951803... | 0.838182 | 0 |
Make path safe by making it relative and local | def o7ZT(pmON):
return M0_Y.sub('', pmON) or '.' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o7ZT(pmON):\n return pmON.replace('\\\\', '/').replace(' ', '%20')",
"def gD9D(YKHO, XP5J):\n return Hy7s.path.abspath(Hy7s.path.expanduser(XP5J))",
"def bkQF(pmON):\n return pmON.replace('\\\\', '/')",
"def FxE9(KCHu):\n return KCHu.replace('/', Hy7s.sep)",
"def ZPcq(pmON):\n if pmON is... | [
"0.7314259",
"0.72307116",
"0.72085",
"0.7207202",
"0.71996933",
"0.71930605",
"0.7171385",
"0.7151165",
"0.7151165",
"0.71496",
"0.71448445",
"0.70335674",
"0.70233935",
"0.6973875",
"0.69410217",
"0.69380164",
"0.69232404",
"0.6909701",
"0.69025356",
"0.6899363",
"0.6888476... | 0.72703743 | 1 |
Convert integers larger than 64 bits to bytearray Smaller integers are left alone | def m8EV(BWXx):
if BWXx.bit_length() > 63:
return BWXx.to_bytes((BWXx.bit_length() + 9) // 8, 'little', signed=True)
return BWXx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aEe2(BWXx: int) -> bytes:\n return BWXx.to_bytes(hmHS, HwRy.byteorder)",
"def jykZ(YRbF, exwG):\n return AcPw(faNJ(YRbF, exwG))",
"def AcPw(UOVU):\n return UOVU.tobytes()",
"def emTA(Fg_i):\n return sum((Fg_i[YRbF] << 8 * YRbF for YRbF in range(8)))",
"def y57E(FGW3, aM8h):\n if aM8h == ... | [
"0.7189958",
"0.7144355",
"0.71312726",
"0.70217067",
"0.6891211",
"0.68347013",
"0.68091047",
"0.6767069",
"0.6746787",
"0.6719622",
"0.67135704",
"0.67084515",
"0.66928965",
"0.6692187",
"0.6686232",
"0.66843164",
"0.6658197",
"0.6657511",
"0.66266197",
"0.66242754",
"0.660... | 0.6093943 | 88 |
Returns starting state of the board. | def W9gz():
return [[KAvf, KAvf, KAvf], [KAvf, KAvf, KAvf], [KAvf, KAvf, KAvf]] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tQN_(YKHO):\n return YKHO.board",
"def tQN_(YKHO):\n return YKHO.board",
"def tQN_(YKHO):\n return YKHO.board",
"def tQN_(YKHO):\n return YKHO.board",
"def tQN_(YKHO):\n return YKHO.board",
"def tQN_(YKHO):\n return YKHO._start_state",
"def Ee93():\n exwG = ahzX(mF_7, 5)\n r... | [
"0.88089895",
"0.88089895",
"0.88089895",
"0.88089895",
"0.88089895",
"0.74338734",
"0.74220616",
"0.73280495",
"0.72895044",
"0.7281317",
"0.7281317",
"0.72770363",
"0.7247598",
"0.7224691",
"0.7224691",
"0.7224691",
"0.7224691",
"0.7224691",
"0.7224691",
"0.7224691",
"0.722... | 0.0 | -1 |
Returns set of all possible actions (i, j) available on the board. | def xASv(iBIi):
if f9TP(iBIi):
return None
jNNc = set()
for Mkmy in range(3):
for Z9rn in range(3):
if iBIi[Mkmy][Z9rn] == KAvf:
jNNc.add((Mkmy, Z9rn))
return jNNc | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xASv(iBIi):\n Ylbp = set()\n for YRbF in range(len(iBIi)):\n for r845 in range(len(iBIi[0])):\n if iBIi[YRbF][r845] == KAvf:\n Ylbp.add((YRbF, r845))\n return Ylbp",
"def xASv(YKHO):\n hksT = YKHO.locs[YKHO.player()]\n if hksT is None:\n return YKHO.libe... | [
"0.80770516",
"0.79341656",
"0.7917363",
"0.79116917",
"0.78717023",
"0.7765625",
"0.775029",
"0.77443236",
"0.773819",
"0.7730579",
"0.77292395",
"0.77082807",
"0.76999694",
"0.7685536",
"0.76759756",
"0.7670597",
"0.7665187",
"0.7653482",
"0.76416993",
"0.7633349",
"0.76320... | 0.7523222 | 30 |
Returns the winner of the game, if there is one. | def bHVe(iBIi):
if iBIi[0][0] == iBIi[0][1] == iBIi[0][2]:
if iBIi[0][0] != KAvf:
return iBIi[0][0]
elif iBIi[1][0] == iBIi[1][1] == iBIi[1][2]:
if iBIi[1][0] != KAvf:
return iBIi[1][0]
elif iBIi[2][0] == iBIi[2][1] == iBIi[2][2]:
if iBIi[2][0] != KAvf:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bHVe(YKHO):\n if YKHO.done():\n return YKHO._winner\n else:\n return None",
"def ND5o(YKHO):\n return YKHO.win_conditions()[0]",
"def bHVe(YKHO):\n return YKHO.board.winner()",
"def bHVe(YKHO):\n J2w6 = Bu_I.compute_winner_index(YKHO.result, YKHO.game)\n if J2w6 is False:\... | [
"0.84201545",
"0.8357224",
"0.8287156",
"0.8198129",
"0.8198129",
"0.81681716",
"0.8121104",
"0.8058183",
"0.79694533",
"0.7951787",
"0.7908961",
"0.78944266",
"0.7893119",
"0.7887846",
"0.7862604",
"0.7850654",
"0.78501695",
"0.7831248",
"0.7811274",
"0.7769089",
"0.7764623"... | 0.0 | -1 |
Returns 1 if X has won the game, 1 if O has won, 0 otherwise. | def f7Dd(iBIi):
if bHVe(iBIi) == EcVT:
return 1
elif bHVe(iBIi) == LTX_:
return -1
else:
return 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hHs1(YKHO):\n return YKHO.winner() == YKHO.X_VAL",
"def oyg0(iBIi):\n bHVe(iBIi)\n c8fa = 0\n Jszs = 0\n for YRbF in range(3):\n for r845 in range(3):\n if iBIi[YRbF][r845] == LTX_:\n Jszs += 1\n elif iBIi[YRbF][r845] == EcVT:\n c8fa +... | [
"0.77424365",
"0.76659137",
"0.76277214",
"0.76231354",
"0.7454816",
"0.74429065",
"0.7343262",
"0.73380995",
"0.730919",
"0.73055065",
"0.7282344",
"0.7275253",
"0.7243713",
"0.7232735",
"0.72066796",
"0.7182169",
"0.71800816",
"0.7175844",
"0.7175734",
"0.71677667",
"0.7151... | 0.6856486 | 61 |
Return length of longest suffix of 'a' matching a prefix of 'b' that is at least 'min_length' characters long. If no such overlap exists, return 0. | def yHH9(jzdc, Fg_i, G1Hx):
yKcO = 0
while True:
yKcO = jzdc.find(Fg_i[:G1Hx], yKcO)
if yKcO == -1:
return 0
if Fg_i.startswith(jzdc[yKcO:]):
return len(jzdc) - yKcO
yKcO += 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yHH9(jzdc, Fg_i, Lx0h):\n yKcO = 0\n while True:\n yKcO = jzdc.find(Fg_i[:Lx0h], yKcO)\n if yKcO == -1:\n return 0\n if Fg_i.startswith(jzdc[yKcO:]):\n return len(jzdc) - yKcO\n yKcO += 1",
"def yHH9(jzdc, Fg_i, Lx0h=3):\n yKcO = 0\n while True:\n... | [
"0.8012816",
"0.79121184",
"0.7897748",
"0.76000357",
"0.68349886",
"0.6664622",
"0.66583836",
"0.65268993",
"0.65181375",
"0.6438087",
"0.6430524",
"0.6340211",
"0.6332574",
"0.6296914",
"0.6287369",
"0.6238593",
"0.61880714",
"0.6147045",
"0.6143428",
"0.61368316",
"0.61091... | 0.59632695 | 27 |
Catch CustomError exception globally, serialize into JSON, and respond with specified status. | def QaZE(P1dF):
pB3N = dict()
pB3N['status'] = P1dF.status
pB3N['message'] = P1dF.message
return (pB3N, P1dF.status) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dBGf(tTpl):\n geh0 = oGir(qQXR.dumps({'success': False, 'message': tTpl.message}), status=tTpl.code, mimetype='application/json')\n return geh0",
"def dBGf(P1dF):\n geh0 = pz3A(P1dF.to_dict())\n geh0.status_code = P1dF.status_code\n return geh0",
"def dBGf(tTpl):\n P4t4.logger.error(f'glo... | [
"0.7874761",
"0.7862676",
"0.7775308",
"0.7730906",
"0.7703933",
"0.7641378",
"0.7620859",
"0.759038",
"0.7574895",
"0.7571859",
"0.7559383",
"0.7559383",
"0.75322866",
"0.7527873",
"0.7527873",
"0.7527873",
"0.7527873",
"0.7527873",
"0.7527873",
"0.7519795",
"0.7488977",
"... | 0.0 | -1 |
Area under the ROC curve and ROC curves. Input shapes are (N,C) where N is the of data and C is the of classes. | def No_o(UXqs, o3Uj):
svPB = UXqs.shape[1]
fKXA = oyIN.zeros(svPB)
for YRbF in range(svPB):
fKXA[YRbF] = Qq_d(UXqs[:, YRbF], o3Uj[:, YRbF])
return fKXA | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def B2J7(qI6z, WDHD, tM0r):\n K4cd = fKLU(qI6z, num_classes=len(set(list(set(qI6z)) + list(set(WDHD)))))\n OS6F = dict()\n Wbxj = dict()\n B4ss = dict()\n for YRbF in range(len(set(list(set(qI6z)) + list(set(WDHD))))):\n OS6F[YRbF], Wbxj[YRbF], bGrB = v5W1(K4cd[:, YRbF], tM0r[:, YRbF])\n ... | [
"0.6778404",
"0.67749095",
"0.64971983",
"0.64342207",
"0.6353684",
"0.63439894",
"0.6340764",
"0.6289565",
"0.62777984",
"0.62545556",
"0.6239464",
"0.62184155",
"0.61970764",
"0.6170741",
"0.615536",
"0.614751",
"0.61457974",
"0.6143033",
"0.61342883",
"0.6115258",
"0.61129... | 0.5961697 | 32 |
Area under the PR curve and PR curves. Input shapes are (N,C) where N is the of data and C is the of classes. | def OaOg(UXqs, o3Uj):
svPB = UXqs.shape[1]
mXYw = oyIN.zeros(svPB)
for YRbF in range(svPB):
mXYw[YRbF] = o0TP(UXqs[:, YRbF], o3Uj[:, YRbF])
return mXYw | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lZzq(XP5J, vexM, Mkmy):\n if len(XP5J) == 2:\n XP5J.append(0)\n vexM.append(0)\n Mkmy.append(0)\n WKvO = []\n LVAh = []\n for YRbF in range(3):\n WKvO.append(vexM[YRbF] - XP5J[YRbF])\n LVAh.append(Mkmy[YRbF] - XP5J[YRbF])\n return 0.5 * ((WKvO[1] * LVAh[2] - WK... | [
"0.64774257",
"0.6446425",
"0.6369642",
"0.63504887",
"0.63120496",
"0.62579477",
"0.62467617",
"0.6211656",
"0.61644924",
"0.61575955",
"0.61448574",
"0.61400294",
"0.6121673",
"0.60989875",
"0.6081746",
"0.60561997",
"0.60550535",
"0.6054936",
"0.60405433",
"0.6028753",
"0.... | 0.0 | -1 |