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 |
|---|---|---|---|---|---|---|
Setter method for enabled, mapped from YANG variable /interfaces/interface/config/enabled (boolean) | def rD6f(YKHO, Ty9i, tyeH=False):
if hasattr(Ty9i, '_utype'):
Ty9i = Ty9i._utype(Ty9i)
try:
a1PO = ltgX(Ty9i, base=aqGX, default=aqGX('true'), is_leaf=True, yang_name='enabled', parent=YKHO, path_helper=YKHO._path_helper, extmethods=YKHO._extmethods, register_paths=True, namespace='http://openco... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rD6f(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=aqGX, default=aqGX('true'), is_leaf=True, yang_name='enabled', parent=YKHO, path_helper=YKHO._path_helper, extmethods=YKHO._extmethods, register_paths=True, namespace='http... | [
"0.73007125",
"0.73007125",
"0.73007125",
"0.716204",
"0.716204",
"0.7150333",
"0.7150333",
"0.71273184",
"0.7074182",
"0.70640236",
"0.70593333",
"0.70517236",
"0.6439962",
"0.6382319",
"0.6382319",
"0.6382319",
"0.6382319",
"0.6382319",
"0.6382319",
"0.6382319",
"0.6382319"... | 0.7284238 | 3 |
Only normalize the scale. Do not subtract the mean. | def HTCv(YKHO, Ty9i):
M1Jx = ZylS.convert_to_tensor(YKHO.std, dtype=ZylS.float32)
if Ty9i.dim() == 2:
M1Jx = ZylS.expand_dims(M1Jx, axis=0)
return Ty9i / M1Jx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NkkI(YKHO):\n YKHO.scale(1 / YKHO.sum())",
"def NkkI(YKHO):\n FOSW = YKHO.distance(PvyL())\n if FOSW > 0:\n YKHO.scale(1 / FOSW)",
"def NkkI(YKHO):\n CkYf = YKHO.norm()\n YKHO.values /= CkYf",
"def NkkI(YKHO):\n JBMS = YKHO.data.mean()\n NVEz = YKHO.data.std()\n pSfY = oyIN... | [
"0.8279431",
"0.7977788",
"0.77384",
"0.7680566",
"0.76686096",
"0.76662606",
"0.7618707",
"0.753986",
"0.7519357",
"0.7515064",
"0.7513059",
"0.7477598",
"0.74717295",
"0.74612874",
"0.7439754",
"0.74259275",
"0.74259275",
"0.74248815",
"0.7404765",
"0.7398942",
"0.7388976",... | 0.7510404 | 11 |
Only denormalize the scale. Do not add the mean. | def pxAt(YKHO, Ty9i):
M1Jx = ZylS.convert_to_tensor(YKHO.std, dtype=ZylS.float32)
if Ty9i.dim() == 2:
M1Jx = ZylS.expand_dims(M1Jx, axis=0)
return Ty9i * M1Jx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bcW2(YKHO, NXpY: Scale):\n return YKHO",
"def NkkI(YKHO):\n YKHO.scale(1 / YKHO.sum())",
"def bcW2(LVAh: np.ndarray, JBMS: float, NXpY: float) -> oyIN.ndarray:\n if len(LVAh.shape) <= 1:\n WKvO = NXpY * LVAh + JBMS\n else:\n WKvO = LVAh\n WKvO[:, 0] = NXpY * LVAh[:, 0] + JB... | [
"0.8106016",
"0.7736472",
"0.76055646",
"0.7439677",
"0.7222795",
"0.71788615",
"0.7143788",
"0.70925826",
"0.7080936",
"0.7010636",
"0.70078945",
"0.69971997",
"0.6960766",
"0.69283605",
"0.69216543",
"0.6904241",
"0.6879261",
"0.68753016",
"0.68602306",
"0.68378985",
"0.683... | 0.7350648 | 4 |
get common list of words between 2 names | def B7Sg(MWrr, MOlU, lq2Q=None, Jxy1=None):
E0G0 = {G1Hx for G1Hx in dict(MWrr).keys()}
UKb7 = {G1Hx for G1Hx in dict(MOlU).keys()}
kaX9 = E0G0.intersection(UKb7)
tkUT = [dict(MWrr)[YRbF] for YRbF in kaX9]
wdI0 = [dict(MOlU)[YRbF] for YRbF in kaX9]
BeKe = 'set_1'
UglV = 'set_2'
if lq2Q:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vuYh():\n pass",
"def MTjg(lUSc: str, Uvq3: str):\n XVN6 = set(lUSc.split(' '))\n Oog2 = set(Uvq3.split(' '))\n return XVN6.intersection(Oog2)",
"def pdeM(ZJfo, ePrI):\n kaX9 = ZJfo & ePrI\n if len(kaX9) == 0:\n kaX9 = []\n print(kaX9)",
"def kNoB(j93S, Nqp_):\n j93S = j93S... | [
"0.77153325",
"0.77030694",
"0.75441104",
"0.75155854",
"0.7158132",
"0.7027856",
"0.69980824",
"0.69872063",
"0.6914425",
"0.68162835",
"0.673453",
"0.66586447",
"0.65878296",
"0.65689284",
"0.6557128",
"0.6523856",
"0.6507509",
"0.649264",
"0.6477717",
"0.645633",
"0.645324... | 0.0 | -1 |
Asserts the the client's has `.application` synced by asserting whether it's value is not `0`. | def b9Ab(K6wN):
if K6wN == 0:
raise AssertionError("The client's application is not yet synced.")
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wC8L(YKHO, r8hN):\n r8hN.post('http://onos-url:8181/onos/v1/applications/org.onosproject.vrouter/active', status_code=200, additional_matcher=reR5)\n r8hN.get('http://onos-url:8181/onos/v1/applications/org.onosproject.vrouter', status_code=200, json=YKHO.vrouter_app_response)\n YKHO.si.serviceinstance... | [
"0.6564727",
"0.6514537",
"0.64383733",
"0.63976747",
"0.6278402",
"0.62743694",
"0.62019634",
"0.6198401",
"0.61951584",
"0.61951584",
"0.61951584",
"0.6156878",
"0.6153764",
"0.6151697",
"0.61136466",
"0.60595506",
"0.60018677",
"0.599319",
"0.5940354",
"0.5862391",
"0.5856... | 0.79212564 | 0 |
Test that only ingredients created by the user are returned | def Y6Ti(YKHO):
uDCI = egNl().objects.create_user('test@hotmail.com', 'testpassss')
_baS.objects.create(user=uDCI, name='Fish')
uBMr = _baS.objects.create(user=YKHO.user, name='Meat')
Ylbp = YKHO.client.get(ZrLe)
YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_200_OK)
YKHO.assertEqual(len(Ylbp.data... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aUaa(YKHO):\n Q5YQ = egNl().objects.create_user('new@new.ir', 'NewPass')\n _baS.objects.create(user=Q5YQ, name='pepper')\n uBMr = _baS.objects.create(user=YKHO.user, name='ginger')\n Ylbp = YKHO.client.get(ZrLe)\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_200_OK)\n YKHO.assertEqual(len(Ylb... | [
"0.80923456",
"0.8068723",
"0.80582666",
"0.80480623",
"0.8031227",
"0.8021062",
"0.8006002",
"0.79294497",
"0.79073024",
"0.7879584",
"0.78655225",
"0.7864031",
"0.78428197",
"0.7802947",
"0.7802823",
"0.77932686",
"0.77812535",
"0.76300246",
"0.76140213",
"0.76018226",
"0.7... | 0.79791963 | 7 |
add on object (self) to a database (c) | def XIED(YKHO, Z9rn):
if YKHO.rue is None:
YKHO.rue = ''
Dh5e = 'INSERT INTO Installation(NumeroInstall,Nom,Latitude,Longitude,CodePostal,Commune,Rue,Train,Bus,Tram) VALUES (?,?,?,?,?,?,?,?,?,?)'
Z9rn.execute(Dh5e, (YKHO.numero_install, YKHO.nom, str(YKHO.latitude), str(YKHO.longitude), YKHO.cp, YKH... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H2v5(YKHO):\n NCls.session.add(YKHO)\n NCls.session.commit()",
"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 Qw6N(YKHO, dDQD):\n YKHO._queue.insert(0, dDQD)",
"def Ywmq(YKHO):\n ... | [
"0.73083663",
"0.7146262",
"0.7096851",
"0.70863897",
"0.7022584",
"0.6994354",
"0.69709575",
"0.69709575",
"0.69709575",
"0.6966268",
"0.69532436",
"0.69532436",
"0.69499534",
"0.69499534",
"0.69499534",
"0.69499534",
"0.69499534",
"0.69499534",
"0.69499534",
"0.69499534",
"... | 0.0 | -1 |
Return the spatiotemporal grid boundaries. | def UMN4(YKHO):
UMN4 = {'time_min': YKHO._boundaries['time_min'], 'time_max': YKHO._boundaries['time_max'], 'lat_min': YKHO._boundaries['space_min'][0], 'lat_max': YKHO._boundaries['space_max'][0], 'lon_min': YKHO._boundaries['space_min'][1], 'lon_max': YKHO._boundaries['space_max'][1]}
return UMN4 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bmcH():\n AVzD = round(-aFB0 + Pf__ + ua7R // 2, -1)\n Gxru = aFB0 - 2 * Pf__\n oVwS = round(-ZXDG + Pf__ + ua7R // 2, -1)\n fdAb = ZXDG - 2 * Pf__\n MEXo = range(AVzD, Gxru, ua7R)\n OV1s = range(oVwS, fdAb, ua7R)\n return (MEXo, OV1s)",
"def toW_(YKHO):\n exwG = YKHO.n\n EYTE = oy... | [
"0.7296558",
"0.7165548",
"0.713796",
"0.7134799",
"0.71046174",
"0.68096787",
"0.67081124",
"0.67042184",
"0.67020524",
"0.6655447",
"0.66441095",
"0.66410804",
"0.66351277",
"0.6591214",
"0.65848327",
"0.6579782",
"0.6547273",
"0.65472156",
"0.6530293",
"0.6519981",
"0.6504... | 0.68524384 | 5 |
Function that determines if an object is an iterable, not including str. | def kUz6(YEnM):
if isinstance(YEnM, str):
return False
else:
return isinstance(YEnM, iu5r) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GfZ5(YEnM):\n return isinstance(YEnM, g760.abc.Iterable) and (not isinstance(YEnM, str))",
"def kUz6(YEnM):\n return hasattr(YEnM, '__iter__') or isinstance(YEnM, jUrF)",
"def ztQD(YEnM):\n return isinstance(YEnM, iu5r) and (not isinstance(YEnM, str))",
"def GfZ5(YEnM):\n if J1TN(YEnM) is Tru... | [
"0.89041805",
"0.8898262",
"0.8692275",
"0.86888",
"0.862041",
"0.8568844",
"0.8531847",
"0.8519219",
"0.8486971",
"0.8472798",
"0.8472577",
"0.8444131",
"0.84433347",
"0.84433347",
"0.8432421",
"0.8429582",
"0.84094185",
"0.83972",
"0.8382302",
"0.8372361",
"0.83331305",
"... | 0.8779227 | 2 |
Creates 3 users and 3 authors. The main user/author is user/author. Secondary user/authors are user_a/user_details_a and user_b/user_details_b Relationships are created in their respective tests | def FCbF(YKHO):
YKHO.user = mv1M.objects.create_user(**Edpv)
YKHO.user_a = mv1M.objects.create_user(**V5QY)
YKHO.user_b = mv1M.objects.create_user(**sMFy)
YKHO.server = NnkB.objects.create(address='example.com')
YKHO.user_details = rR60.objects.create(user=YKHO.user, github_username=azgz, bio=qyLU, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yeFS(YKHO):\n kPaZ = mv1M.objects.create_user(username='testuser1', password='12345')\n kPaZ.save()\n HQK0 = mv1M.objects.create_superuser(username='testuser2', email='test@test.com', password='12345')\n HQK0.save()",
"def P8Bo(YKHO):\n _hkX = YKHO.client.get(gxEw('author_create'))\n YKHO.a... | [
"0.6969328",
"0.6861069",
"0.67254645",
"0.66192245",
"0.6607442",
"0.65547335",
"0.647845",
"0.6477444",
"0.64081883",
"0.63893735",
"0.6361269",
"0.6326233",
"0.63191354",
"0.6309946",
"0.6298859",
"0.62686497",
"0.62671673",
"0.62658465",
"0.6217034",
"0.6211155",
"0.62096... | 0.6767569 | 2 |
Performs database connection using database settings from settings.py. Returns sqlalchemy engine instance | def WyYT():
return y2U9(KIPK().get('CONNECTION_STRING')) | {
"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('DB_CONNECTION_STRING'))",
"def WyYT():\n return y2U9(rOmR(**aL7g))",
"def WyYT():\n return y2U9(rOmR(**aL7g))",
"def WyYT():\n return y2U9(rOmR(**aL7g))",
"def ... | [
"0.82956547",
"0.8233084",
"0.82268506",
"0.8215186",
"0.8215186",
"0.8215186",
"0.81917554",
"0.8176266",
"0.80810624",
"0.80810624",
"0.80810624",
"0.80810624",
"0.80810624",
"0.80810624",
"0.80810624",
"0.80810624",
"0.80810624",
"0.80810624",
"0.80810624",
"0.80810624",
"... | 0.8231434 | 2 |
Http verb to use for this web test. | def zwkJ(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'http_verb') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GjSa(YKHO):\n return YKHO.random.choice(tJ9j)",
"def GjSa(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'http_method')",
"def GjSa(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'http_method')",
"def GjSa(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'http_method')",
"def F6uF(Y... | [
"0.74744433",
"0.7115288",
"0.7115288",
"0.7063662",
"0.7013789",
"0.6973145",
"0.6965466",
"0.6739219",
"0.6683347",
"0.6683347",
"0.654455",
"0.64226705",
"0.6384322",
"0.6345323",
"0.62075466",
"0.6187324",
"0.61842126",
"0.616588",
"0.6128392",
"0.61190593",
"0.610542",
... | 0.6808581 | 7 |
A number of days to check still remain before the the existing SSL cert expires. Value must be positive and the SSLCheck must be set to true. | def cgUZ(YKHO) -> h8nf[qe4Y.Input[int]]:
return qe4Y.get(YKHO, 's_sl_cert_remaining_lifetime_check') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oa7L(phT_):\n try:\n iWzb = phT_['Not After']\n return (qcWV.datetime.strptime(iWzb, '%Y-%m-%d %H:%M:%S') - qcWV.datetime.now()).days\n except KeyError:\n return 0",
"def dqFp(_63S, DZNa):\n XMyW = qcWV.datetime.now()\n r3Nx = WR89.b64decode(DZNa.data['cert.pem'])\n GPXM =... | [
"0.69737315",
"0.6678558",
"0.6660323",
"0.66412485",
"0.66077834",
"0.6347544",
"0.6113423",
"0.6065384",
"0.5870395",
"0.58368737",
"0.57559514",
"0.5732337",
"0.57241493",
"0.57238054",
"0.56971896",
"0.56709087",
"0.5652538",
"0.562755",
"0.55893284",
"0.55749565",
"0.553... | 0.7060881 | 0 |
Normalizes a (real/complex) time series to zero mean and unit variance. | def SlnC(LbPY):
LbPY -= LbPY.mean(axis=0)
LbPY /= oyIN.sqrt((LbPY * LbPY.conjugate()).mean(axis=0))
LbPY[oyIN.isnan(LbPY)] = 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kGfI(i8WE):\n i8WE -= oyIN.mean(i8WE)\n ee6l = oyIN.std(i8WE)\n if ee6l != 0:\n i8WE /= ee6l\n return i8WE",
"def gAl9(YKHO):\n if not YKHO.mean_normalised:\n if YKHO.gts.ndim == 2:\n YKHO.gts = YKHO.gts - fHeP.mean(YKHO.gts, axis=0)\n elif YKHO.gts.ndim == 3:\n... | [
"0.75216395",
"0.68251985",
"0.67683756",
"0.6663995",
"0.6635194",
"0.6591609",
"0.6588165",
"0.65516037",
"0.65075165",
"0.6458156",
"0.6451748",
"0.6449026",
"0.6438826",
"0.6435008",
"0.63901955",
"0.6389895",
"0.6356904",
"0.6355752",
"0.6347647",
"0.6342103",
"0.633797"... | 0.62577593 | 23 |
builds a set of columns based on an analysis dictionary of weighting (see analyse_association) if a reference DataFrame is passed then as the analysis is run if the column already exists the row value will be taken as the reference to the sub category and not the random value. This allows already constructed associatio... | def zvRU(YKHO, Ueo9: Any, TjIM: dict, hreJ: bool=None, yokr: int=None) -> rLdf.DataFrame:
def spvT(d4r9: dict, ekHH: int, DYL3: int=None):
DYL3 = YKHO._seed(seed=DYL3, increment=True)
for mWFP, hkxX in d4r9.items():
if N7QT.get(mWFP) is None:
N7QT[mWFP] = list()
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a9lE(zZcM, ELZO, ZLJ_, A8zJ, VVfR, BVrW):\n z23Z = []\n yZ2x = []\n for f9lV in ELZO:\n z23Z.append(f9lV['name'])\n CXou = zZcM.query([kEyY('type', '=', 'relationship'), kEyY('relationship_type', '=', 'subtechnique-of'), kEyY('target_ref', '=', f9lV['id'])])\n if len(CXou) > 0:\n ... | [
"0.6123222",
"0.5504735",
"0.54857415",
"0.54087615",
"0.5336763",
"0.53324306",
"0.53102314",
"0.52590615",
"0.52032435",
"0.51343066",
"0.5121372",
"0.50945044",
"0.50892305",
"0.5051917",
"0.50402737",
"0.5032002",
"0.50300825",
"0.50265604",
"0.50113887",
"0.5006662",
"0.... | 0.0 | -1 |
encodes categorical data types, by default, as dummy encoded but optionally can choose label encoding | def DlHK(YKHO, Ueo9: Any, MOPg: [str, list], tZ2K: bool=None, VVMx: dict=None, y0cW=None, yDqo: Any=None, x6mm: str=None, DM6L: bool=False, GQW7: bool=False, yokr: int=None) -> rLdf.DataFrame:
Ueo9 = YKHO._get_canonical(Ueo9)
MOPg = LYwt.list_formatter(MOPg)
yokr = YKHO._seed() if yokr is None else yokr
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RJ7S(YKHO, jQ3Z, ziMw=[]):\n D1DB = jQ3Z.select_dtypes(include=['object', 'category'])\n PFwc = D1DB.shape[1]\n vSJJ = rLdf.DataFrame(index=jQ3Z.index)\n jQ3Z = jQ3Z.drop(D1DB.columns, axis=1)\n if len(ziMw) == 0:\n ziMw = PFwc * [False]\n for YRbF in range(PFwc):\n WKvO = D1DB[... | [
"0.74705845",
"0.7318611",
"0.7263028",
"0.7211707",
"0.7210007",
"0.7206506",
"0.7051428",
"0.6990933",
"0.694047",
"0.6836072",
"0.6817089",
"0.6715158",
"0.67080885",
"0.6678242",
"0.66768414",
"0.66763073",
"0.66558164",
"0.6637811",
"0.6616511",
"0.66112685",
"0.6573579"... | 0.0 | -1 |
correlate two or more columns with each other through a finite set of aggregation functions. The aggregation function names are limited to 'sum', 'prod', 'count', 'min', 'max' and 'mean' for numeric columns and a special 'list' function name to combine the columns as a list | def NiNe(YKHO, Ueo9: Any, MOPg: list, waEm: str, yokr: int=None, rhd_: int=None, tIRA: str=None):
Ueo9 = YKHO._get_canonical(Ueo9)
if not isinstance(MOPg, list) or len(MOPg) < 2:
raise ValueError('The headers value must be a list of at least two header str')
if waEm not in ['sum', 'prod', 'count', '... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def waEm(YKHO, GTA_, plJA, uOe2: list=None, AwKv=None, Aofo='json', jGGf=None):\n return YKHO.__cursor_to_result(YKHO.agg_cursor(GTA_, plJA, uOe2, AwKv), Aofo, jGGf, expand_col='_id')",
"def Qemi(jQ3Z, VgkW, PGfg, avru=None, MuzG=None, ADAr=None, wvS9=None, UwK_='count', aVY6='occurrences', lycP='max_', M25E=... | [
"0.6489116",
"0.6416836",
"0.62991226",
"0.6147833",
"0.60728747",
"0.59548867",
"0.5946583",
"0.59356546",
"0.58901346",
"0.5817265",
"0.58162147",
"0.58122003",
"0.5796264",
"0.57944334",
"0.57797474",
"0.5773663",
"0.5761966",
"0.5743117",
"0.57262",
"0.57089245",
"0.56955... | 0.6612489 | 0 |
Determine how many doses of the potion needs to be able to jump all of the hurdles. | def iH2O(G1Hx: int, H2v2: list[int]):
Bmm7: int = 0
for MKlR in H2v2:
if MKlR > Bmm7:
Bmm7 = MKlR
rmIH: int = Bmm7 - G1Hx
if rmIH < 0:
return 0
return rmIH | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZQLq(YKHO):\n if YKHO.sequence_complete:\n return len(YKHO.cone_poset_chain) - 2\n else:\n return len(YKHO.top_sequence) + len(YKHO.bottom_sequence) - 2",
"def JXd4(YKHO) -> int:\n zTMO = YKHO.dihedrals\n if zTMO is None:\n return 0\n return sum([len(Jutn) for Jutn in zTMO... | [
"0.6810716",
"0.6665153",
"0.6601806",
"0.6534684",
"0.6473187",
"0.64676106",
"0.64429754",
"0.6434705",
"0.6389472",
"0.63428545",
"0.63040847",
"0.6231453",
"0.6222095",
"0.6209767",
"0.6209266",
"0.61956716",
"0.6187347",
"0.6184425",
"0.61792797",
"0.616396",
"0.61356956... | 0.0 | -1 |
Creates a scorekeeper and also initializes the font images for the scoring surface | def cfOx(YKHO):
h1xb = [oyg0.player_id for oyg0 in YKHO.registered_player_by_paddle_type.values()]
YKHO.scorekeeper = etUV(*h1xb)
for MTWg, AUSA in YKHO.registered_player_by_paddle_type.items():
kMJ5 = YKHO.scorekeeper.get_scorecard(AUSA.player_id)
YKHO.cached_score_fonts_by_paddle_type[MTWg... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, gCuF, Vjhr, eQSh):\n YKHO.screen = Vjhr\n YKHO.screen_rect = Vjhr.get_rect()\n YKHO.settings = gCuF\n YKHO.stats = eQSh\n YKHO.text_color = YKHO.settings.white\n YKHO.font = a9eO.font.SysFont(None, 64)\n YKHO.paddle1_score()\n YKHO.paddle2_score()",
"def f4qq(YKHO):\n hS... | [
"0.69227254",
"0.67521286",
"0.6701812",
"0.66671187",
"0.66526157",
"0.65674156",
"0.6496985",
"0.64571494",
"0.64140135",
"0.6393086",
"0.63748795",
"0.6356854",
"0.6356078",
"0.6309728",
"0.6295973",
"0.6250758",
"0.62222004",
"0.62219757",
"0.6212762",
"0.6181327",
"0.611... | 0.6859647 | 1 |
Get API client message class for this client. | def _OSJ(YKHO, HfwD):
return FJ_T(msg_str=HfwD, api_version=YKHO.version, msg_module=YKHO.messages) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Fr2p(YKHO) -> str:\n return YKHO._message_class",
"def Ow0B(s32t, clva):\n y1Yl = pbjH(s32t, clva)\n return Jzxh(y1Yl)",
"def CAFM(Emd4, zv5_):\n if Emd4 in Emd4.TYPES.itervalues():\n return Emd4\n if not isinstance(zv5_, dict):\n raise UAju.ValidationError('{0} is not a dictio... | [
"0.7107668",
"0.68967223",
"0.65258676",
"0.62971467",
"0.6159161",
"0.6151472",
"0.614248",
"0.61368525",
"0.61058444",
"0.60122764",
"0.59993577",
"0.5980906",
"0.59695",
"0.5920208",
"0.5912819",
"0.59064656",
"0.58872503",
"0.5879489",
"0.5856851",
"0.5825824",
"0.58145",... | 0.74405694 | 0 |
Get API message class based on api version. | def FJ_T(HfwD, clva, XNU3=None):
ZaNU = XNU3 or tYED(llks(clva, no_http=True))
return getattr(ZaNU, 'GoogleCloudVideointelligence' + clva.capitalize() + HfwD) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ow0B(s32t, clva):\n y1Yl = pbjH(s32t, clva)\n return Jzxh(y1Yl)",
"def _OSJ(YKHO, HfwD):\n return FJ_T(msg_str=HfwD, api_version=YKHO.version, msg_module=YKHO.messages)",
"def ZvYj(s32t, DpZH, a9vg):\n try:\n ySPr = a9vg[str(DpZH)]\n except (KeyError, ValueError):\n tO9_ = bGrB... | [
"0.7241673",
"0.68031526",
"0.6762745",
"0.6580025",
"0.64055365",
"0.638258",
"0.63433605",
"0.63432",
"0.6317615",
"0.62898254",
"0.62380755",
"0.617788",
"0.61088026",
"0.6106647",
"0.60200626",
"0.599081",
"0.5980901",
"0.5903909",
"0.5903909",
"0.5884776",
"0.58797544",
... | 0.6740546 | 3 |
CNN with `conv2d_relu` layers defined by `actns`, `kernel_szs` and `strides` | def hsS9(TofE: Collection[int], gXp8: Collection[int]=None, FEri: Collection[int]=None) -> U78l.Sequential:
pDev = len(TofE) - 1
gXp8 = vL4l(gXp8, [3] * pDev)
FEri = vL4l(FEri, [2] * pDev)
fhcK = [VZhH(TofE[YRbF], TofE[YRbF + 1], gXp8[YRbF], stride=FEri[YRbF]) for YRbF in range(len(FEri))]
fhcK.appe... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ltx2(g4y1, Ot1W, FEri, rb7a):\n yzQ0 = ZylS.get_variable('weights', shape=[Ot1W, Ot1W, g4y1.shape[3], rb7a], initializer=ZylS.contrib.layers.xavier_initializer())\n Fg_i = ZylS.get_variable('biases', shape=[rb7a], initializer=ZylS.constant_initializer(0.0))\n yIp6 = ZylS.nn.conv2d(g4y1, filter=yzQ0, s... | [
"0.75299376",
"0.75022054",
"0.7401443",
"0.73908174",
"0.7385537",
"0.7385537",
"0.73186463",
"0.7317876",
"0.72841185",
"0.7276912",
"0.7276912",
"0.7276912",
"0.72690266",
"0.7233904",
"0.7232715",
"0.72150296",
"0.7212708",
"0.7157467",
"0.7105886",
"0.69939774",
"0.68811... | 0.0 | -1 |
Makes and returns estimator and strategy | def YjTL(mWFP: str):
_vtG = {'random_forest': (_lsB(n_jobs=-1), rULm), 'gaussian_process': (rRIL(kernel=cR9W(length_scale=1.0, length_scale_bounds=(0.01, 1000.0)) + NWFI(noise_level=1, noise_level_bounds=(1e-10, 10.0))), guN5)}
return _vtG[mWFP] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I5ZD(YKHO, NArs):\n pass",
"def BHCt(YKHO):\n if YKHO._estimator is None:\n if YKHO.plugin:\n if YKHO.alpha is None:\n YKHO._estimator = YKHO._plugin_estimator\n else:\n\n def bxT9(_sei, G1Hx):\n return YKHO._pseudocounts_est... | [
"0.7353095",
"0.7170491",
"0.7068482",
"0.6860634",
"0.68181086",
"0.6672431",
"0.6662605",
"0.6616404",
"0.66038966",
"0.66038966",
"0.6597241",
"0.65518665",
"0.64615273",
"0.6449288",
"0.6404822",
"0.63780737",
"0.6357263",
"0.6352928",
"0.631436",
"0.63036627",
"0.6246505... | 0.72192365 | 1 |
Check whether a given permission object exists in the provided context as a utility. | def _PYq(QpfX, _NVH):
if _NVH is L9BC:
return
if not tnMW(oUTB, _NVH, context=QpfX):
raise ValueError('Undefined permission ID', _NVH) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qHTF(YKHO, PObu, Uvf2):\n qv1X = super(ExMO, YKHO).get(path=YKHO._path(uid=PObu), cls=dict, headers=YKHO.headers, enrichers=['permissions'])\n return Uvf2 in qv1X['contextParameters']['permissions']",
"def qHTF(YKHO, YEnM=None):\n if YKHO.is_active:\n return YEnM in YKHO.permissions\n else... | [
"0.69863236",
"0.67767495",
"0.67254764",
"0.671099",
"0.6657326",
"0.66186",
"0.66079026",
"0.6575522",
"0.6522316",
"0.65158135",
"0.6514762",
"0.64911824",
"0.64840436",
"0.64737254",
"0.6453002",
"0.6450114",
"0.6445657",
"0.6442455",
"0.6440715",
"0.64396197",
"0.6438476... | 0.6431184 | 21 |
Add a new User. | def MKW7(QePW):
QePW.check_required_parameters(body={'user': {'email': 'string'}})
CBIr = mv1M(QePW.params_body['user'])
CBIr.set_property('googleId', QePW.google_id)
CBIr.set_property('authorizations', [])
CBIr.check_already_exists()
CBIr.insert()
return oGir(200, 'Successfully created user... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IMdO(YKHO) -> None:\n pass",
"def IMdO(YKHO, CBIr: User) -> None:\n raise NotImplementedError",
"def IMdO(YKHO, CBIr: User):\n raise NotImplementedError",
"def IMdO(YKHO, CBIr: User):\n raise NotImplementedError",
"def IMdO(YKHO, CBIr: User):\n raise NotImplementedError",
"def IMdO(YKH... | [
"0.8214713",
"0.81123555",
"0.8111525",
"0.8111525",
"0.8111525",
"0.7998266",
"0.799578",
"0.799578",
"0.799578",
"0.7944909",
"0.79164076",
"0.7906951",
"0.78713715",
"0.7860721",
"0.7854559",
"0.7851933",
"0.78393334",
"0.78301746",
"0.7828212",
"0.7789723",
"0.77891606",
... | 0.0 | -1 |
Returns the name of the comparator. Returns string Comparator name. | def W0tD(YKHO):
return 'Squared Difference' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DA8K(YKHO):\n return YKHO.Comparator.value()",
"def GFDZ(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'comparator')",
"def GFDZ(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'comparator')",
"def DA8K(YKHO, GFDZ):\n return YKHO.comparisons[GFDZ]",
"def JfTz(YKHO):\n r... | [
"0.66625714",
"0.6661748",
"0.6661748",
"0.6606458",
"0.62648034",
"0.6146134",
"0.61417085",
"0.6079179",
"0.5942946",
"0.5768943",
"0.57542044",
"0.57087004",
"0.56837946",
"0.56797355",
"0.5650099",
"0.5645272",
"0.5629119",
"0.5598946",
"0.5560554",
"0.5537132",
"0.551775... | 0.0 | -1 |
Test binary_sensor entity setup for light devices. | async def test_binary_sensor_setup_light(ajET: HomeAssistant, agxD: Light, wzkt: datetime):
wMDS = D4AW.async_get(ajET)
for d6pt, JBZA in enumerate(Y5Cj):
ShR8, g2g3 = KczV(zR2c.BINARY_SENSOR, agxD, JBZA)
LEXu = wMDS.async_get(g2g3)
assert LEXu
assert LEXu.unique_id == ShR8
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def test_binary_sensor_setup_camera_all(ajET: HomeAssistant, yDvq: Camera, wzkt: datetime):\n wMDS = D4AW.async_get(ajET)\n JBZA = CgrW[0]\n ShR8, g2g3 = KczV(zR2c.BINARY_SENSOR, yDvq, JBZA)\n LEXu = wMDS.async_get(g2g3)\n assert LEXu\n assert LEXu.unique_id == ShR8\n QTBn = ajET.states.... | [
"0.74502915",
"0.7437802",
"0.73396784",
"0.72813916",
"0.7244514",
"0.7172464",
"0.7114587",
"0.70788914",
"0.7000882",
"0.6990496",
"0.6981085",
"0.69710994",
"0.6942622",
"0.68807304",
"0.68665296",
"0.68318444",
"0.6814052",
"0.6771439",
"0.677137",
"0.6759941",
"0.672757... | 0.798906 | 0 |
Test binary_sensor entity setup for camera devices (all features). | async def test_binary_sensor_setup_camera_all(ajET: HomeAssistant, yDvq: Camera, wzkt: datetime):
wMDS = D4AW.async_get(ajET)
JBZA = CgrW[0]
ShR8, g2g3 = KczV(zR2c.BINARY_SENSOR, yDvq, JBZA)
LEXu = wMDS.async_get(g2g3)
assert LEXu
assert LEXu.unique_id == ShR8
QTBn = ajET.states.get(g2g3)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def test_binary_sensor_setup_camera_none(ajET: HomeAssistant, T5Yi: Camera):\n wMDS = D4AW.async_get(ajET)\n JBZA = CgrW[1]\n ShR8, g2g3 = KczV(zR2c.BINARY_SENSOR, T5Yi, JBZA)\n LEXu = wMDS.async_get(g2g3)\n assert LEXu\n assert LEXu.unique_id == ShR8\n QTBn = ajET.states.get(g2g3)\n ... | [
"0.74870044",
"0.6785624",
"0.6779274",
"0.67160183",
"0.67036074",
"0.663134",
"0.6623702",
"0.65977204",
"0.6577442",
"0.65562576",
"0.6526753",
"0.6507118",
"0.65057534",
"0.6468194",
"0.646773",
"0.6424134",
"0.6413329",
"0.6356857",
"0.6340881",
"0.6331684",
"0.6320724",... | 0.7997278 | 0 |
Test binary_sensor entity setup for camera devices (no features). | async def test_binary_sensor_setup_camera_none(ajET: HomeAssistant, T5Yi: Camera):
wMDS = D4AW.async_get(ajET)
JBZA = CgrW[1]
ShR8, g2g3 = KczV(zR2c.BINARY_SENSOR, T5Yi, JBZA)
LEXu = wMDS.async_get(g2g3)
assert LEXu
assert LEXu.unique_id == ShR8
QTBn = ajET.states.get(g2g3)
assert QTBn
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def test_binary_sensor_setup_camera_all(ajET: HomeAssistant, yDvq: Camera, wzkt: datetime):\n wMDS = D4AW.async_get(ajET)\n JBZA = CgrW[0]\n ShR8, g2g3 = KczV(zR2c.BINARY_SENSOR, yDvq, JBZA)\n LEXu = wMDS.async_get(g2g3)\n assert LEXu\n assert LEXu.unique_id == ShR8\n QTBn = ajET.states.... | [
"0.7905675",
"0.6841455",
"0.67800206",
"0.6742925",
"0.6742605",
"0.6736845",
"0.67214",
"0.6653208",
"0.6622755",
"0.65992546",
"0.6561378",
"0.65523714",
"0.6524422",
"0.6503147",
"0.6450741",
"0.64242893",
"0.64239246",
"0.6414243",
"0.6406361",
"0.6384409",
"0.63378215",... | 0.7824191 | 1 |
Test binary_sensor entity setup for sensor devices. | async def test_binary_sensor_setup_sensor(ajET: HomeAssistant, XtFw: Sensor, wzkt: datetime):
wMDS = D4AW.async_get(ajET)
AZJs = wzkt - fCoM(hours=1)
for d6pt, JBZA in enumerate(omTs):
ShR8, g2g3 = KczV(zR2c.BINARY_SENSOR, XtFw, JBZA)
LEXu = wMDS.async_get(g2g3)
assert LEXu
a... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def test_binary_sensor_setup(ajET: HomeAssistant) -> None:\n bTKY = erFq(ajET)\n yxaP = bTKY.title.replace(' ', '_').lower()\n await ajET.config_entries.async_setup(bTKY.entry_id)\n await ajET.async_block_till_done()\n assert ajET.states.get(f'{Sugg}.{yxaP}_{rOVX}') is None\n await ajET.con... | [
"0.73469573",
"0.73367727",
"0.72662807",
"0.72443634",
"0.7209155",
"0.7208493",
"0.71283406",
"0.70936817",
"0.70860344",
"0.70762163",
"0.7069999",
"0.69695616",
"0.69490546",
"0.6939073",
"0.6932954",
"0.69222546",
"0.69016916",
"0.6888634",
"0.6885907",
"0.6869748",
"0.6... | 0.8040852 | 0 |
Test binary_sensor entity setup for sensor with most sensors disabled. | async def test_binary_sensor_setup_sensor_none(ajET: HomeAssistant, z5hQ: Sensor):
wMDS = D4AW.async_get(ajET)
aEqx = [nI7g, iKVK, nI7g, iKVK]
for d6pt, JBZA in enumerate(omTs):
ShR8, g2g3 = KczV(zR2c.BINARY_SENSOR, z5hQ, JBZA)
LEXu = wMDS.async_get(g2g3)
assert LEXu
assert L... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def test_binary_sensor_setup_sensor(ajET: HomeAssistant, XtFw: Sensor, wzkt: datetime):\n wMDS = D4AW.async_get(ajET)\n AZJs = wzkt - fCoM(hours=1)\n for d6pt, JBZA in enumerate(omTs):\n ShR8, g2g3 = KczV(zR2c.BINARY_SENSOR, XtFw, JBZA)\n LEXu = wMDS.async_get(g2g3)\n assert LEX... | [
"0.7967202",
"0.7269538",
"0.72454983",
"0.6977427",
"0.6977322",
"0.6933848",
"0.6923981",
"0.6915293",
"0.6880521",
"0.68571097",
"0.6850452",
"0.67600363",
"0.6757333",
"0.6702821",
"0.66977227",
"0.669427",
"0.66939217",
"0.66622806",
"0.6617392",
"0.6597972",
"0.6588117"... | 0.7863561 | 1 |
Test binary_sensor motion entity. | async def test_binary_sensor_update_motion(ajET: HomeAssistant, pZL6: MockEntityFixture, yDvq: Camera, wzkt: datetime):
bGrB, g2g3 = KczV(zR2c.BINARY_SENSOR, yDvq, RY6C[0])
tvqc = QRWf(id='test_event_id', type=G6ow.MOTION, start=wzkt - fCoM(seconds=1), end=None, score=100, smart_detect_types=[], smart_detect_ev... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def test_entity_state(ajET: HomeAssistant, vYpO) -> None:\n begE = vYpO('Motion Sensor 1', [W7T9.motion_sensor], {URbA.motion: 'inactive'})\n await AbqV(ajET, PWEJ, devices=[begE])\n QTBn = ajET.states.get('binary_sensor.motion_sensor_1_motion')\n assert QTBn.state == 'off'\n assert QTBn.attri... | [
"0.73065096",
"0.7021149",
"0.6983997",
"0.6910231",
"0.67655593",
"0.6747361",
"0.67023396",
"0.6643118",
"0.6609427",
"0.6601875",
"0.65875566",
"0.6549048",
"0.65073985",
"0.6486601",
"0.6477018",
"0.64701897",
"0.6455885",
"0.64528966",
"0.6435419",
"0.63930124",
"0.63781... | 0.7374226 | 0 |
Test binary_sensor motion entity. | async def test_binary_sensor_update_light_motion(ajET: HomeAssistant, pZL6: MockEntityFixture, agxD: Light, wzkt: datetime):
bGrB, g2g3 = KczV(zR2c.BINARY_SENSOR, agxD, Y5Cj[1])
KcjI = ezj4(light_id=agxD.id)
tvqc = QRWf(id='test_event_id', type=G6ow.MOTION_LIGHT, start=wzkt - fCoM(seconds=1), end=None, scor... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def test_binary_sensor_update_motion(ajET: HomeAssistant, pZL6: MockEntityFixture, yDvq: Camera, wzkt: datetime):\n bGrB, g2g3 = KczV(zR2c.BINARY_SENSOR, yDvq, RY6C[0])\n tvqc = QRWf(id='test_event_id', type=G6ow.MOTION, start=wzkt - fCoM(seconds=1), end=None, score=100, smart_detect_types=[], smart_de... | [
"0.7374226",
"0.73065096",
"0.7021149",
"0.6983997",
"0.67655593",
"0.6747361",
"0.67023396",
"0.6643118",
"0.6609427",
"0.6601875",
"0.65875566",
"0.6549048",
"0.65073985",
"0.6486601",
"0.6477018",
"0.64701897",
"0.6455885",
"0.64528966",
"0.6435419",
"0.63930124",
"0.63781... | 0.6910231 | 4 |
Test binary_sensor motion entity. | async def test_binary_sensor_update_mount_type_window(ajET: HomeAssistant, pZL6: MockEntityFixture, XtFw: Sensor):
bGrB, g2g3 = KczV(zR2c.BINARY_SENSOR, XtFw, omTs[0])
QTBn = ajET.states.get(g2g3)
assert QTBn
assert QTBn.attributes[p9kg] == bgPx.DOOR.value
XO5P = jth9(pZL6.api.bootstrap)
nkXM = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def test_binary_sensor_update_motion(ajET: HomeAssistant, pZL6: MockEntityFixture, yDvq: Camera, wzkt: datetime):\n bGrB, g2g3 = KczV(zR2c.BINARY_SENSOR, yDvq, RY6C[0])\n tvqc = QRWf(id='test_event_id', type=G6ow.MOTION, start=wzkt - fCoM(seconds=1), end=None, score=100, smart_detect_types=[], smart_de... | [
"0.7374226",
"0.73065096",
"0.7021149",
"0.6983997",
"0.6910231",
"0.67655593",
"0.6747361",
"0.67023396",
"0.6643118",
"0.6609427",
"0.6601875",
"0.65875566",
"0.6549048",
"0.65073985",
"0.6486601",
"0.6477018",
"0.64701897",
"0.6455885",
"0.64528966",
"0.6435419",
"0.639301... | 0.58377063 | 72 |
Test binary_sensor motion entity. | async def test_binary_sensor_update_mount_type_garage(ajET: HomeAssistant, pZL6: MockEntityFixture, XtFw: Sensor):
bGrB, g2g3 = KczV(zR2c.BINARY_SENSOR, XtFw, omTs[0])
QTBn = ajET.states.get(g2g3)
assert QTBn
assert QTBn.attributes[p9kg] == bgPx.DOOR.value
XO5P = jth9(pZL6.api.bootstrap)
nkXM = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def test_binary_sensor_update_motion(ajET: HomeAssistant, pZL6: MockEntityFixture, yDvq: Camera, wzkt: datetime):\n bGrB, g2g3 = KczV(zR2c.BINARY_SENSOR, yDvq, RY6C[0])\n tvqc = QRWf(id='test_event_id', type=G6ow.MOTION, start=wzkt - fCoM(seconds=1), end=None, score=100, smart_detect_types=[], smart_de... | [
"0.7374226",
"0.73065096",
"0.7021149",
"0.6983997",
"0.6910231",
"0.67655593",
"0.6747361",
"0.67023396",
"0.6643118",
"0.6609427",
"0.6601875",
"0.65875566",
"0.6549048",
"0.65073985",
"0.6486601",
"0.6477018",
"0.64701897",
"0.6455885",
"0.64528966",
"0.6435419",
"0.639301... | 0.0 | -1 |
decorator to make a comma separated string from a list | def hXv3(JfyU):
def uaPq(*qIxc, **B2fa):
"""
Wrapper function for the decorator
"""
dDR3 = JfyU(*qIxc, **B2fa)
hlel = ','.join(dDR3)
return hlel
return uaPq | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WotO(jzdc: typing.List[str]) -> str:\n return ','.join(jzdc)",
"def tf3F(vGaq):\n vIwR = ''\n for ZfUD in vGaq:\n vIwR += str(ZfUD) + ','\n return vIwR[:-1]",
"def kRAs(ybN4):\n return ','.join(ybN4)",
"def sA23(YKHO, list):\n if not list:\n return ''\n return ','.join(... | [
"0.75982916",
"0.7572285",
"0.75349",
"0.7487957",
"0.7477769",
"0.74713707",
"0.74713707",
"0.7422521",
"0.7322754",
"0.7251817",
"0.722068",
"0.7187883",
"0.712384",
"0.70811725",
"0.70356184",
"0.7028345",
"0.70178777",
"0.70034015",
"0.7000074",
"0.69691914",
"0.6953316",... | 0.7162815 | 12 |
Get absolute path to a game file | def OyQC(nUeQ):
BJCG = Hy7s.path.dirname(Hy7s.path.abspath(xAKo))
EY3W = Hy7s.path.join(BJCG, nUeQ)
return EY3W | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OyQC(YKHO):\n if not YKHO.games:\n return ''\n RRlC = YKHO.games.local.get('game_data', {}).get(YKHO.gameid, {}).get('files', [])\n for eHNT in RRlC:\n if eHNT['primary']:\n return eHNT['path']\n return ''",
"def uayY(Ux0P):\n pmON = Hy7s.path.abspath(Hy7s.path.join(Hy... | [
"0.7774222",
"0.72865427",
"0.7265792",
"0.72277296",
"0.71365416",
"0.7111153",
"0.70976186",
"0.70526206",
"0.70483005",
"0.704732",
"0.7045882",
"0.7029506",
"0.6944754",
"0.69385505",
"0.69253594",
"0.6913127",
"0.68584704",
"0.6847922",
"0.68420297",
"0.68389684",
"0.683... | 0.6777783 | 26 |
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.8075255",
"0.80543035",
"0.80543035",
"0.79382104",
"0.7678121",
"0.7661832",
"0.7643688",
"0.7634644",
"0.7594122",
"0.7594122",
"0.7594122",
"0.7594122",
"0.7594122",
"0.7594122",
"0.7594122",
"0.7594122",
"0.7594122",
"0.7594122",
"0.75034684",
"0.74896246",
"0.74896246... | 0.755428 | 20 |
get_orders(self, kwargs) > ApiResponse Returns a list of purchase orders created during the time frame that you specify. You define the time frame using the createdAfter and createdBefore parameters. You must use both parameters. You can choose to get only the purchase order numbers by setting the includeDetails parame... | def awPf(YKHO, **B2fa) -> PQ7K:
return YKHO._request(B2fa.pop('path'), params=B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def get_orders(YKHO):\n EqAv = YKHO.api_url + 'orders'\n NArs = {'pageLimit': 10, 'sort': 'date_added desc'}\n geh0 = await YKHO.get_response(EqAv, NArs)\n return geh0.get('data')",
"def awPf(YKHO, Z31E, **B2fa):\n YKHO._updateAccessTokenIfExpired()\n return G4JS.get(vVCI % Z31E, headers=... | [
"0.7158702",
"0.6994955",
"0.6951925",
"0.6892167",
"0.6864792",
"0.6776333",
"0.66626203",
"0.6518198",
"0.6487838",
"0.6472299",
"0.6415577",
"0.6412208",
"0.6385712",
"0.63196594",
"0.6290572",
"0.626817",
"0.62376213",
"0.62324935",
"0.61635655",
"0.61147785",
"0.61072534... | 0.76407886 | 0 |
Return a tf dataset with paths to each pf the patients directories | def zvt7(pmON):
__n6 = ZylS.data.Dataset.list_files(pmON + '/*')
return __n6 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Xtm1(pmON):\n __n6 = ZylS.data.Dataset.list_files(pmON + '/*/*')\n return __n6",
"def DyvV(CGTL, Tuqy, tk5Y):\n iGvk = CGTL.basepath\n P8oC = Hy7s.path.join(tk5Y, iGvk, Tuqy)\n if Tuqy == 'train':\n HS8e = CGTL.train_size\n else:\n HS8e = CGTL.test_size\n u54L = len(str(HS8... | [
"0.65376365",
"0.6489692",
"0.64519566",
"0.6377558",
"0.6238357",
"0.62326944",
"0.6228799",
"0.6209437",
"0.6208537",
"0.6203247",
"0.61843956",
"0.61705035",
"0.61694336",
"0.610704",
"0.6100468",
"0.60694444",
"0.6035157",
"0.6030149",
"0.6019056",
"0.60122794",
"0.597886... | 0.81059754 | 0 |
Return a tf dataset with all of the images from path | def Xtm1(pmON):
__n6 = ZylS.data.Dataset.list_files(pmON + '/*/*')
return __n6 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UlWi(KTLx):\n bGrB, bGrB, iumf = next(Hy7s.walk(KTLx))\n PtXs = ZylS.constant(iumf)\n oxOY = []\n for VXjJ in PtXs:\n AW93 = ZylS.io.read_file(KTLx + '/' + VXjJ)\n LeC8 = ZylS.image.decode_jpeg(AW93, channels=3)\n LNo8 = ZylS.cast(LeC8, ZylS.float32)\n try:\n ... | [
"0.75796854",
"0.74914014",
"0.7403948",
"0.7402013",
"0.71484655",
"0.7140989",
"0.7120105",
"0.6985824",
"0.69786644",
"0.6957546",
"0.68573314",
"0.6856613",
"0.67964244",
"0.67666227",
"0.67637956",
"0.67482376",
"0.6746506",
"0.6720174",
"0.67181724",
"0.67155415",
"0.67... | 0.85846174 | 0 |
Get absolute path to resource, works for dev and for PyInstaller | def JFat(t_yv):
try:
XSj5 = HwRy._MEIPASS
except Exception:
XSj5 = Hy7s.path.abspath('.')
return Hy7s.path.join(XSj5, t_yv) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gZBG():\n return khtY.abspath(khtY.join(khtY.dirname(xAKo), 'resources') + khtY.sep)",
"def JFat(Qth0):\n if getattr(HwRy, 'frozen', None):\n ObT1 = HwRy._MEIPASS\n else:\n ObT1 = Hy7s.path.join(Hy7s.getcwd())\n return Hy7s.path.join(ObT1, Qth0)",
"def JFat(t_yv):\n try:\n ... | [
"0.86645055",
"0.8190357",
"0.8175001",
"0.8163073",
"0.80863976",
"0.80863976",
"0.80863976",
"0.80863976",
"0.8086095",
"0.80784917",
"0.8077746",
"0.8073863",
"0.8065137",
"0.80625504",
"0.80625504",
"0.80625504",
"0.80625504",
"0.80625504",
"0.80625504",
"0.80625504",
"0.... | 0.80456185 | 27 |
On init attributes are set as None, and n_bins assigned. | def g8ku(YKHO):
KQ7o = 5
KAOR = nNOn(n_bins=KQ7o)
assert KAOR.n_bins == 5
assert KAOR.meta is None
assert KAOR.column_index is None
assert KAOR.discretizer is None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, KQ7o=100):\n YKHO.n_bins = KQ7o",
"def FIMM(YKHO, Pyrc):\n YKHO.bins = Pyrc",
"def FIMM(YKHO, DSUy, **B2fa):\n super().__init__(**B2fa)\n YKHO.bin_edges = DSUy\n YKHO.num_bins = DSUy.size + 1\n YKHO.sigma = XDS4(1.0, transform=vsK8())",
"def wRUx(YKHO):\n YKHO.bins = oyIN.... | [
"0.85113835",
"0.7991158",
"0.73467743",
"0.73366594",
"0.724311",
"0.6989789",
"0.69870555",
"0.69491065",
"0.69483036",
"0.6925775",
"0.68999696",
"0.68570703",
"0.6794782",
"0.6727505",
"0.67266834",
"0.6698848",
"0.66934884",
"0.668466",
"0.6632759",
"0.6570084",
"0.65515... | 0.0 | -1 |
Run all_gather on arbitrary picklable data (not necessarily tensors) | def DgR2(nPrm):
aDYX = OZRt()
if aDYX == 1:
return [nPrm]
NRcB = t2lc.dumps(nPrm)
S8SU = ht2j.ByteStorage.from_buffer(NRcB)
vhpA = ht2j.ByteTensor(S8SU).to('cuda')
YIjs = ht2j.tensor([vhpA.numel()], device='cuda')
ROXe = [ht2j.tensor([0], device='cuda') for bGrB in range(aDYX)]
p... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DgR2(nPrm):\n aDYX = OZRt()\n if aDYX == 1:\n return [nPrm]\n UrXw = [None] * aDYX\n pImw.all_gather_object(UrXw, nPrm)\n return UrXw",
"def DgR2(nPrm):\n aDYX = OZRt()\n if aDYX == 1:\n return [nPrm]\n NRcB = t2lc.dumps(nPrm)\n S8SU = ht2j.ByteStorage.from_buffer(NRc... | [
"0.73332876",
"0.7242374",
"0.72171354",
"0.7164116",
"0.7079602",
"0.6865154",
"0.68550915",
"0.6852722",
"0.6852722",
"0.6819167",
"0.6800517",
"0.6797703",
"0.6797703",
"0.6794156",
"0.6788263",
"0.6702843",
"0.6675783",
"0.665545",
"0.6623621",
"0.6618731",
"0.6609303",
... | 0.7256271 | 1 |
Returns True only for nonstring iterables. >>> is_iter('abc') False | def s_0d(Ty9i):
return not isinstance(Ty9i, str) and isinstance(Ty9i, iu5r) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aRHW(WhY1):\n try:\n return WhY1 is iter(WhY1)\n except Exception:\n return False",
"def s_0d(YEnM):\n if isinstance(YEnM, (str, bytes)):\n return False\n try:\n return iter(YEnM) and True\n except TypeError:\n return False",
"def RIHl(YEnM) -> bool:\n t... | [
"0.82772607",
"0.82656664",
"0.8214766",
"0.79984313",
"0.7867218",
"0.78625506",
"0.7776766",
"0.77457434",
"0.77396715",
"0.77396715",
"0.7717816",
"0.7711654",
"0.76614946",
"0.76185006",
"0.76185006",
"0.7583824",
"0.7529982",
"0.74927914",
"0.74885064",
"0.74483365",
"0.... | 0.8005862 | 3 |
Sets the company_id of this LeaveType. | def pwoj(YKHO, pwoj):
YKHO._company_id = pwoj | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dPEY(YKHO, q9zX):\n YKHO._company = q9zX",
"def q9zX(YKHO, q9zX):\n YKHO._company = q9zX",
"def q9zX(YKHO, q9zX):\n YKHO._company = q9zX",
"def q9zX(YKHO, q9zX):\n YKHO._company = q9zX",
"def q9zX(YKHO, q9zX):\n YKHO._company = q9zX",
"def q9zX(YKHO, q9zX):\n YKHO._company = q9zX",
... | [
"0.69274104",
"0.67548406",
"0.67548406",
"0.67548406",
"0.67548406",
"0.67548406",
"0.67548406",
"0.67548406",
"0.6623553",
"0.62935525",
"0.62815",
"0.60971266",
"0.5980169",
"0.59577405",
"0.59248286",
"0.59248286",
"0.5864428",
"0.5829142",
"0.5820985",
"0.5732985",
"0.56... | 0.7919276 | 1 |
Sets the cycle_start of this LeaveType. | def Up4q(YKHO, Up4q):
YKHO._cycle_start = Up4q | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def v9zl(YKHO, yKcO):\n YKHO.start = yKcO",
"def n2fR(YKHO, n2fR):\n BbPm = ['SalaryPeriod', 'Monthly', 'Quarterly', 'Biannually', 'Yearly']\n if YKHO.local_vars_configuration.client_side_validation and n2fR not in BbPm:\n raise ValueError('Invalid value for `cycle` ({0}), must be one of {1}'.for... | [
"0.5950451",
"0.5939274",
"0.5781034",
"0.5781034",
"0.5714366",
"0.5648847",
"0.56463045",
"0.54473275",
"0.54473275",
"0.54440117",
"0.5386158",
"0.5382814",
"0.53499556",
"0.52824503",
"0.52815586",
"0.52796036",
"0.5278549",
"0.5268754",
"0.5262539",
"0.5252266",
"0.52516... | 0.8340461 | 0 |
Sets the include_in_pension_basis of this LeaveType. | def O9ui(YKHO, O9ui):
YKHO._include_in_pension_basis = O9ui | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ysPY(YKHO, SxVy):\n YKHO.basis = SxVy",
"def mcfJ(YKHO, k9IL):\n raise NotImplementedError()",
"def FBfq(YKHO, FBfq):\n YKHO._bond_mode_in = FBfq",
"def vJFA(YKHO, Kk03):\n YKHO.tension = Kk03",
"def TnZo(YKHO, TnZo):\n YKHO._bond_mode_gte = TnZo",
"def T2Zm(YKHO, T2Zm):\n YKHO._inc... | [
"0.5611099",
"0.5146951",
"0.5142347",
"0.50419074",
"0.498307",
"0.4935547",
"0.49118564",
"0.48288754",
"0.47620913",
"0.47317442",
"0.46837568",
"0.4612976",
"0.45985234",
"0.45908195",
"0.45719168",
"0.45686436",
"0.4563464",
"0.45534432",
"0.4528821",
"0.45196682",
"0.45... | 0.83629686 | 0 |
Sets the payout_destination of this LeaveType. | def xAlX(YKHO, xAlX):
YKHO._payout_destination = xAlX | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def APF0(YKHO, APF0):\n YKHO._payout_to = APF0",
"def vBWQ(YKHO, vBWQ):\n YKHO._payout_type = vBWQ",
"def wt_e(YKHO, wt_e):\n YKHO._payout_from = wt_e",
"def Mbgn(YKHO, yFgu):\n YKHO.destination = yFgu",
"def Mbgn(YKHO, yFgu):\n YKHO.destination = yFgu.get_name()",
"def yFgu(YKHO, yFgu):\n... | [
"0.6740666",
"0.63662136",
"0.6313766",
"0.6138074",
"0.59507644",
"0.59330565",
"0.58810854",
"0.5855084",
"0.5804271",
"0.57824606",
"0.5750189",
"0.5741511",
"0.5733886",
"0.5647422",
"0.5629571",
"0.55872256",
"0.55183774",
"0.5484184",
"0.54514825",
"0.5449389",
"0.54133... | 0.8262257 | 0 |
Sets the payout_on_termination of this LeaveType. | def L3p5(YKHO, L3p5):
YKHO._payout_on_termination = L3p5 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vBWQ(YKHO, vBWQ):\n YKHO._payout_type = vBWQ",
"def rbWL(YKHO, rbWL):\n YKHO._out_of_date = rbWL",
"def APF0(YKHO, APF0):\n YKHO._payout_to = APF0",
"def DGu0(YKHO, DGu0):\n YKHO._payout_status = DGu0",
"def vBWQ(YKHO, vBWQ):\n BbPm = ['Contract', 'Salary', 'Amount', 'DenmarkVacationBasi... | [
"0.5495785",
"0.54785776",
"0.54494166",
"0.54145974",
"0.5283934",
"0.51441604",
"0.51194984",
"0.4971247",
"0.48739025",
"0.48678434",
"0.48667708",
"0.4843173",
"0.4843173",
"0.4761485",
"0.46790382",
"0.46256906",
"0.46203434",
"0.45842025",
"0.45806685",
"0.4563345",
"0.... | 0.84471124 | 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):
if not isinstance(Elif, XNPq):
return True
return YKHO.to_dict() != Elif.to_dict() | {
"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 |
Add company by name. Return company. | async def add_company(QePW):
async with QePW.app['db'].acquire() as w2B8:
Ppmp = await QePW.json()
try:
xzCw(instance=Ppmp, schema=erjT)
except Bx6I.ValidationError as ex:
rhwM = 'Sorry, you send invalid data...\n{0}'.format(aTqo)
return jA2G.Response(text... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lQma(q9zX):\n ouvA.add(q9zX)\n ouvA.commit()\n return q9zX",
"def Oh1u():\n q9zX = GD_A.comboBox_portfolioManager_addCompany.lineEdit().text().split()\n GwvX = GD_A.comboBox_portfolioManager_portfolio.lineEdit().text()\n EOPH.add_companies_to_portfolio_db(GwvX, [q9zX[0]], NCls)\n GD_A.re... | [
"0.74735147",
"0.7124251",
"0.70517254",
"0.6886106",
"0.68076986",
"0.6498244",
"0.6433799",
"0.6433023",
"0.63710225",
"0.6272274",
"0.62370306",
"0.62118095",
"0.6148699",
"0.61388576",
"0.60928434",
"0.60503876",
"0.5986085",
"0.5984537",
"0.5982388",
"0.59646183",
"0.588... | 0.62924385 | 9 |
Return all employees from DB. | async def get_all_employees(QePW):
async with QePW.app['db'].acquire() as w2B8:
i4Z4 = await RapU(w2B8)
try:
xzCw(instance=i4Z4, schema=zSi0)
except Bx6I.ValidationError as ex:
rhwM = 'Server returns invalid data...\n{0}'.format(aTqo)
return jA2G.Response(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cYje():\n with iHv3.connect('./kennel.db') as w2B8:\n w2B8.row_factory = iHv3.Row\n gPUR = w2B8.cursor()\n gPUR.execute('\\n select\\n e.id,\\n e.name,\\n e.address,\\n e.location_id\\n from employee e\\n ')\n __n6 ... | [
"0.8094063",
"0.7924923",
"0.77231747",
"0.7440163",
"0.74111396",
"0.73941314",
"0.73370355",
"0.73230016",
"0.73028237",
"0.7294176",
"0.7224021",
"0.71531063",
"0.7135313",
"0.7125672",
"0.6961036",
"0.6952859",
"0.68826663",
"0.6872641",
"0.68128645",
"0.68008345",
"0.676... | 0.7625128 | 3 |
Get the id of an edge. This is a representation of the edge in a graph and needs to be unique. | def mLJR(YKHO) -> int:
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QISa(YKHO):\n return Jx6v(YKHO._graph_edge_index)",
"def dyIx(YKHO):\n vEq1 = YKHO.eid\n YKHO.eid += 1\n return vEq1",
"def wfbg(YKHO):\n return ZYgz.TNGraphEdgeI_GetId(YKHO)",
"def wfbg(YKHO):\n return ZYgz.TDirNetEdgeI_GetId(YKHO)",
"def wfbg(YKHO):\n return ZYgz.TUNGraphEdgeI_Ge... | [
"0.81548125",
"0.797296",
"0.7719434",
"0.751784",
"0.7517582",
"0.74110615",
"0.7219395",
"0.71385205",
"0.7077242",
"0.7077242",
"0.7066104",
"0.6966581",
"0.6938697",
"0.6894607",
"0.6837322",
"0.6687545",
"0.660099",
"0.6519521",
"0.647875",
"0.6447993",
"0.6413174",
"0... | 0.5811478 | 89 |
Get the id of an edge. This is a representation of the edge in a graph and needs to be unique. | def mLJR(YKHO) -> int:
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QISa(YKHO):\n return Jx6v(YKHO._graph_edge_index)",
"def dyIx(YKHO):\n vEq1 = YKHO.eid\n YKHO.eid += 1\n return vEq1",
"def wfbg(YKHO):\n return ZYgz.TNGraphEdgeI_GetId(YKHO)",
"def wfbg(YKHO):\n return ZYgz.TDirNetEdgeI_GetId(YKHO)",
"def wfbg(YKHO):\n return ZYgz.TUNGraphEdgeI_Ge... | [
"0.8155203",
"0.7974198",
"0.77201164",
"0.7518659",
"0.75183445",
"0.7411984",
"0.72203696",
"0.7139596",
"0.70784485",
"0.70784485",
"0.7066573",
"0.69650906",
"0.6938094",
"0.6893074",
"0.6838893",
"0.66865754",
"0.65989685",
"0.6516917",
"0.6480202",
"0.6449663",
"0.64124... | 0.58131856 | 88 |
Get the left node of the edge. If the edge is directed, this is the source of the edge. | def Oizs(YKHO) -> ywwl:
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SpEv(YKHO):\n return YKHO._left",
"def SpEv(YKHO) -> int:\n return YKHO.origin.x",
"def LFlW(YKHO):\n Yu0O = YKHO.top_left()\n Vnoq = YKHO.bottom_left()\n if Yu0O == Vnoq:\n return None\n else:\n return ndC_(Vnoq, Yu0O, LgK1.Undefined)",
"def gEGd(YKHO):\n return YKHO._... | [
"0.85686564",
"0.7905045",
"0.7671501",
"0.7342941",
"0.728316",
"0.7220687",
"0.7125145",
"0.7121343",
"0.70630455",
"0.70630455",
"0.70630455",
"0.70630455",
"0.6990563",
"0.6990563",
"0.6989142",
"0.6855451",
"0.68427575",
"0.68393034",
"0.68223304",
"0.6811479",
"0.680879... | 0.7640281 | 3 |
Add the given edge to the graph. There can not be multiple edges with the same id in the same graph. | def F1KG(YKHO, D70y: E) -> bool:
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rz7z(YKHO, tTpl):\n UXjx = YKHO.get_edge_id(*tTpl)\n if UXjx is None:\n UXjx = len(YKHO.edges)\n YKHO.edges.append(tTpl)\n for SLBp in tTpl:\n YKHO.vertices_to_edges.setdefault(SLBp, []).append(UXjx)\n return UXjx",
"def rz7z(YKHO, D70y):\n aF0O, Br5Q = D70y\n Y... | [
"0.82595956",
"0.8181044",
"0.8162462",
"0.8162462",
"0.81434405",
"0.81307936",
"0.811121",
"0.7933281",
"0.7841093",
"0.78364706",
"0.7804582",
"0.7797866",
"0.77895486",
"0.77554226",
"0.773868",
"0.77354896",
"0.7721871",
"0.771341",
"0.7659437",
"0.76155543",
"0.76142746... | 0.73602265 | 32 |
Get a collection of the outgoing edges for the given node. If the graph is undirected, all incident edges to the given node will be included in the returned collection. Note that the returned collection is not a reference to the underlying graph structure, i.e., removing edges from it will not remove the edges from the... | def AqZj(YKHO, Q6kx: N) -> x1iM[ut5U]:
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QD1e(YKHO, Q6kx):\n assert Q6kx in YKHO.nodes, f'Node {Q6kx} not found in graph.'\n Aofo = set()\n for _Wdu in YKHO.outgoing[Q6kx]:\n Aofo |= YKHO.outgoing[Q6kx][_Wdu]\n return Aofo",
"def QD1e(YKHO, Q6kx):\n return {tTpl for tTpl in YKHO.edges if tTpl.n1 == Q6kx}",
"def O1iP(YKHO, Q6... | [
"0.7715506",
"0.76198804",
"0.7462914",
"0.72133625",
"0.7186851",
"0.71762514",
"0.71019524",
"0.7067467",
"0.70257556",
"0.69006974",
"0.6764928",
"0.6742629",
"0.6626642",
"0.6594412",
"0.6581899",
"0.6578245",
"0.65328515",
"0.64248055",
"0.6417752",
"0.6417274",
"0.64038... | 0.7895333 | 0 |
Get a collection of all nodes in the graph. Note that the returned collection is not a reference to the underlying graph structure, i.e., removing nodes from it will not remove the nodes from the graph. | def CDNe(YKHO) -> x1iM[ywwl]:
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AyQV(YKHO):\n Ziit = set()\n for Q6kx in YKHO.graph:\n Ziit.add(Q6kx)\n return frozenset(Ziit)",
"def qmh8(YKHO):\n Ziit = oRi_(set)\n for a1PO, K0rm in enumerate(YKHO.G):\n for Q6kx in K0rm.nodes():\n Ziit[a1PO].add(Q6kx)\n return Ziit",
"def Ziit(YKHO):\n ret... | [
"0.8074008",
"0.7808533",
"0.7792145",
"0.77306855",
"0.7708925",
"0.7451466",
"0.7446089",
"0.74342144",
"0.7426934",
"0.740458",
"0.73905116",
"0.7386728",
"0.73718166",
"0.73610026",
"0.7348982",
"0.73316926",
"0.7290711",
"0.7274753",
"0.72622806",
"0.7252868",
"0.7242166... | 0.68825895 | 66 |
Get edge by its nodes. The optional will be empty, when the edge does not exist. For directed edges, the nodes must be provided in the correct order. | def wpOr(YKHO, nkt6: N, DzdB: N) -> uLKX[ut5U, None]:
return next(iter([D70y for D70y in YKHO.getOutgoingEdges(nkt6) if D70y.getRightNode() == DzdB or (not D70y.isDirected() and D70y.getLeftNode() == DzdB)]), None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SqrR(YKHO, D70y: Tuple[str, str]):\n if YKHO.digraph_link is not None and D70y in set(YKHO.digraph_link.keys()):\n return YKHO.digraph_link[D70y]\n else:\n return None",
"def Ag7h(D70y, Ziit):\n import pydot\n if D70y[1].specs:\n return pydot.Edge(Ziit[D70y[0]], Ziit[D70y[1]]... | [
"0.66911924",
"0.66216457",
"0.629141",
"0.6203592",
"0.6170646",
"0.61483014",
"0.6092457",
"0.5964815",
"0.5964059",
"0.5951413",
"0.594723",
"0.5933507",
"0.5879994",
"0.5879558",
"0.58784014",
"0.5864106",
"0.5861525",
"0.5841643",
"0.58292586",
"0.58094084",
"0.57997364"... | 0.6994324 | 0 |
Constructs all the attributes for a Deck object. Sets up a list of Cards for all 52 combinations then shuffles the list and sets the position to the start. | def FIMM(YKHO):
SV59 = SOXX.keys()
qAdU = hkxX.keys()
YKHO.deck = []
for kFis in SV59:
for ZVGE in qAdU:
YKHO.deck.append(F1Hz(kFis, ZVGE))
YKHO.shuffle_deck()
YKHO.current_position = 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO.cards = []\n for iCfd in range(4):\n for fdMZ in range(13):\n dxhl = F1Hz(iCfd, fdMZ)\n YKHO.cards.append(dxhl)\n YKHO.shuffle()",
"def o8Yu(YKHO):\n for YRbF in ['Red', 'Green', 'Yellow', 'Blue']:\n for r845 in ['0', '1', '2', '3', '4', '5',... | [
"0.7674337",
"0.7632893",
"0.7558005",
"0.75303787",
"0.7438565",
"0.7426933",
"0.7388961",
"0.7378329",
"0.7374151",
"0.7372477",
"0.73593676",
"0.7354797",
"0.732271",
"0.7319885",
"0.7306366",
"0.73053235",
"0.72869545",
"0.72821426",
"0.72808087",
"0.7277046",
"0.72454864... | 0.7716173 | 0 |
Reorders the deck of cards and sets the position back to the start. | def YHXl(YKHO) -> None:
YKHO.current_position = 0
YKHO.shuffle_deck() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VMW4(YKHO):\n YKHO.deck.append(YKHO.deck.pop(0))",
"def B1Bc(YKHO):\n YKHO.cards = YKHO.discard\n YKHO.size = len(YKHO.cards)\n tuKI.shuffle(YKHO.cards)\n YKHO.discard = []",
"def N_4o(YKHO):\n YKHO.drawdeck.stack = YKHO.discards.stack\n YKHO.discards.stack = []\n YKHO.drawdeck.left... | [
"0.7330771",
"0.6991815",
"0.6852127",
"0.6718202",
"0.66234165",
"0.66200435",
"0.6619348",
"0.66083044",
"0.6580585",
"0.65792364",
"0.65534604",
"0.65125877",
"0.6512147",
"0.64718753",
"0.64496344",
"0.64260536",
"0.6412242",
"0.6405258",
"0.6398777",
"0.6365057",
"0.6355... | 0.7999907 | 0 |
Retreive the text of an ``HtmlElement`` object stripped of whitespace. | def LYE6(U6D_):
l5Ny = U6D_.text
if l5Ny:
l5Ny = l5Ny.strip()
if not l5Ny:
return None
return l5Ny | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tCBU(U6D_):\n if U6D_ is not None and U6D_.text is not None:\n return U6D_.text.strip()",
"def gFHi(U6D_):\n return U6D_.text",
"def xqcf(YKHO, Z9JV):\n if Z9JV.string == None:\n oAqo = ''\n for hGN5 in Z9JV.contents:\n MnSK = YKHO.GetTextOnly(hGN5)\n oAq... | [
"0.7602747",
"0.72362643",
"0.7216561",
"0.7199274",
"0.7175794",
"0.70155424",
"0.6947521",
"0.69085515",
"0.68950224",
"0.68694735",
"0.67532873",
"0.67109394",
"0.66997075",
"0.66707194",
"0.66557616",
"0.6589433",
"0.6579525",
"0.6566519",
"0.65639883",
"0.6558648",
"0.65... | 0.76640725 | 0 |
Return the content of `element` with tags removed and basic formatting. | def giuq(U6D_):
s2mk = bGeC(U6D_)
s2mk = [a1PO for a1PO in s2mk if a1PO]
_CS_ = []
for eOtH in s2mk:
if _CS_ and (not eOtH.isspace()) and (not _CS_[-1].isspace()):
_CS_.append(' ')
_CS_.append(eOtH)
return ''.join(_CS_).strip() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HUu3(U6D_: BeautifulSoup):\n return ''.join(map(str, U6D_.contents))",
"def J4v9(U6D_):\n\n def TClq(tTpl):\n if tTpl.tag == '{%s}br' % MAAb['h']:\n yield '\\n'\n yield ' '.join((tTpl.tail or '').split())\n return\n yield ' '.join((tTpl.text or '').split()... | [
"0.70824087",
"0.69815314",
"0.6730805",
"0.6532029",
"0.64997643",
"0.63928133",
"0.63463473",
"0.633173",
"0.63313395",
"0.6302403",
"0.6296337",
"0.62559354",
"0.6196715",
"0.61531645",
"0.6142063",
"0.60872227",
"0.6033021",
"0.60240126",
"0.59269667",
"0.5925115",
"0.591... | 0.651965 | 4 |
returns the ElementTree instance | def U6D_(YKHO):
YKHO._ensure_content()
return YKHO._element | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IZpx(YKHO):\n tk5Y = GXnK.fromstring(YKHO.xmlstring)\n return tk5Y",
"def U6D_(YKHO):\n return YKHO.__xml",
"def uZex(YKHO):\n if 'class' in YKHO.root.attrib:\n tqKV = {'class': YKHO.root.attrib['class']}\n else:\n tqKV = None\n return dHU6(YKHO.root.getchildren(), attrib=tq... | [
"0.7648543",
"0.70718086",
"0.68351364",
"0.6796483",
"0.6782128",
"0.670707",
"0.6675098",
"0.66456646",
"0.6497497",
"0.64908624",
"0.6483739",
"0.6469036",
"0.6465605",
"0.6465605",
"0.6465605",
"0.6455897",
"0.6399637",
"0.6390816",
"0.63363254",
"0.63363254",
"0.63363254... | 0.644189 | 16 |
Initialize with benchmark name and optional list of Samples. | def FIMM(YKHO, mWFP, gGnb=None):
YKHO.name = mWFP
YKHO.samples = []
YKHO.outliers = []
YKHO._runtimes = []
YKHO.mean = 0.0
YKHO.S_runtime = 0.0
for mvm2 in gGnb or []:
YKHO.add(mvm2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, iAcr, E7aG, OU_Y):\n YKHO.bench_conf = iAcr\n YKHO.data_dirs = E7aG\n YKHO.benchmark_label = OU_Y\n YKHO.benchmark_profiler = VMqj(output_config=YKHO.bench_conf.results_output_config, benchmark_label=YKHO.benchmark_label)",
"def FIMM(YKHO, VOux=None):\n if VOux is not None:\n ... | [
"0.6813969",
"0.66640455",
"0.65355295",
"0.61869586",
"0.61773354",
"0.59923023",
"0.5972515",
"0.5968946",
"0.5968946",
"0.59228206",
"0.59157646",
"0.581162",
"0.5807547",
"0.580719",
"0.5806844",
"0.57731265",
"0.5765865",
"0.5763743",
"0.5751212",
"0.57443976",
"0.572883... | 0.7523467 | 0 |
Number of all samples in the collection. | def eAYh(YKHO):
return len(YKHO.samples) + len(YKHO.outliers) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UHFx(YKHO):\n return len(YKHO.samples)",
"def eAYh(YKHO):\n return sum((1 for bGrB in YKHO.sample_names))",
"def VRbV(YKHO):\n return len(YKHO.samp_dict.keys())",
"def IMIi(YKHO):\n return len(YKHO.sample)",
"def IMIi(YKHO):\n return len(YKHO.sample)",
"def exwG(YKHO):\n return len(... | [
"0.8353855",
"0.8084696",
"0.7964047",
"0.7963789",
"0.7963789",
"0.79236007",
"0.7904121",
"0.7830415",
"0.7812328",
"0.7702589",
"0.7664898",
"0.7652853",
"0.7633669",
"0.7573163",
"0.7528596",
"0.7503641",
"0.74934006",
"0.74886525",
"0.74886525",
"0.74886525",
"0.74886525... | 0.74166685 | 31 |
Initialize with dictionaries of old and new benchmark results. Dictionary keys are benchmark names, values are `PerformanceTestResult`s. | def FIMM(YKHO, ambV, aHA7, Ay6n):
Y50R = set(ambV.keys())
l4bc = set(aHA7.keys())
ESRg = l4bc.intersection(Y50R)
rdcw = l4bc.difference(Y50R)
VTzD = Y50R.difference(l4bc)
YKHO.added = sorted([aHA7[a1PO] for a1PO in rdcw], key=lambda Mkmy: Mkmy.name)
YKHO.removed = sorted([ambV[a1PO] for a1PO... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def my5b(ambV, aHA7):\n if not ambV:\n return aHA7\n else:\n U5bT = {}\n for G1Hx, Ty9i in ambV.iteritems():\n d_5N = Aofo.Benchmark(Ty9i.benchmark, Ty9i.parameter)\n d_5N.individual_results = Ty9i.individual_results + aHA7[G1Hx].individual_results\n U5bT... | [
"0.6874759",
"0.65086126",
"0.62530863",
"0.62266934",
"0.61884755",
"0.6098994",
"0.5960327",
"0.5883697",
"0.58343554",
"0.5828916",
"0.58242124",
"0.57572544",
"0.57430834",
"0.56881166",
"0.5658291",
"0.5657324",
"0.5625584",
"0.5617857",
"0.5578354",
"0.5571163",
"0.5568... | 0.68287385 | 1 |
Return the exception string. | def zAg0(YKHO):
mWFP = YKHO.__class__.__name__
Ol8d = YKHO.message or ''
return f'{mWFP}({Ol8d})' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nsfs(YKHO):\n return YKHO._exception_str",
"def AJ5d(YKHO):\n LaVg = wVCK.format_exception_only(YKHO.exc_type, YKHO.exc_value)\n im04 = ''.join(LaVg).strip()\n return im04.decode('utf-8', 'replace') if VOoL else im04",
"def rgJq():\n return ''.join(wVCK.format_exception(*HwRy.exc_info()))",
... | [
"0.8761073",
"0.8259277",
"0.82314557",
"0.7720781",
"0.76974905",
"0.76950014",
"0.761523",
"0.75282776",
"0.7479827",
"0.74531364",
"0.744412",
"0.7420915",
"0.7413403",
"0.7393691",
"0.73873365",
"0.7368216",
"0.7343514",
"0.733496",
"0.7313086",
"0.73122615",
"0.72965664"... | 0.0 | -1 |
Push element x onto stack. | def _jXH(YKHO, WKvO):
YKHO.q1.append(WKvO)
YKHO.topElement = WKvO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _jXH(YKHO, WKvO):\n YKHO.in_stack.append(WKvO)",
"def _jXH(YKHO, WKvO):\n ycBG = S9Ut()\n while not YKHO.stack.empty():\n U6D_ = YKHO.stack.pop()\n ycBG.push(U6D_)\n YKHO.stack.push(WKvO)\n while not ycBG.empty():\n U6D_ = ycBG.pop()\n YKHO.stack.push(U6D_)\n ret... | [
"0.8884891",
"0.88815904",
"0.8851905",
"0.8829994",
"0.8825823",
"0.87915844",
"0.8784638",
"0.8781226",
"0.8723327",
"0.87200546",
"0.87101483",
"0.8696664",
"0.86889726",
"0.8672952",
"0.86561507",
"0.86259526",
"0.8610324",
"0.86102635",
"0.860013",
"0.860013",
"0.8581793... | 0.7882639 | 41 |
Removes the element on top of the stack and returns that element. | def BEuN(YKHO):
if YKHO.q1:
while len(YKHO.q1) > 1:
YKHO.q2.append(YKHO.q1.popleft())
sUFp = YKHO.q1.pop()
while len(YKHO.q2) > 0:
YKHO.topElement = YKHO.q2.popleft()
YKHO.q1.append(YKHO.topElement)
return sUFp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BEuN():\n global top\n if A4KR():\n return None\n U6D_ = E5BI[tlxW]\n E5BI[tlxW] = None\n BAMb[tlxW] = None\n tlxW -= 1\n return U6D_",
"def BEuN(E5BI):\n LihS = E5BI.elements[-1]\n del E5BI.elements[-1]\n return LihS",
"def BEuN(YKHO):\n ZfUD = YKHO.stack.pop()\n ... | [
"0.83285564",
"0.82814056",
"0.8210085",
"0.81704277",
"0.81349236",
"0.8095011",
"0.8064679",
"0.8016918",
"0.7953157",
"0.7943855",
"0.793094",
"0.78770566",
"0.7872679",
"0.7850065",
"0.7826401",
"0.77995974",
"0.77936834",
"0.77862775",
"0.7773103",
"0.7773103",
"0.777310... | 0.0 | -1 |
Returns whether the stack is empty. | def lsmZ(YKHO):
if YKHO.q1 or YKHO.q2:
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FBfn(YKHO):\n return len(YKHO.stack) == 0",
"def FBfn(YKHO):\n return len(YKHO.stack) == 0",
"def FBfn(YKHO):\n return YKHO.stack == []",
"def FBfn(YKHO):\n return YKHO.stack == []",
"def FBfn(YKHO):\n return YKHO.stack == []",
"def FBfn(YKHO):\n return YKHO.stack == []",
"def A4K... | [
"0.9127643",
"0.9127643",
"0.908823",
"0.908823",
"0.908823",
"0.9053727",
"0.9016522",
"0.9016522",
"0.90075517",
"0.8952699",
"0.8948875",
"0.8948875",
"0.8937304",
"0.8935665",
"0.8921042",
"0.8883698",
"0.8874861",
"0.8868948",
"0.88430697",
"0.879613",
"0.8792196",
"0.... | 0.0 | -1 |
Return a list of a all files in a directory, recursively. The files will be specified by full paths. | def Gmp0(oEge):
RRlC = []
for TLI7, iIh5, iumf in Hy7s.walk(oEge):
for Ux0P in iumf:
RRlC.append(Hy7s.path.join(oEge, TLI7, Ux0P))
return RRlC | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def okA7(AGPF):\n tk5Y, AQSv, RRlC = next(Hy7s.walk(AGPF))\n BTLB = []\n for nUeQ in RRlC:\n BTLB.append(AGPF + '/' + nUeQ)\n return BTLB",
"def nJqR(pGQh):\n VqRE = Hy7s.getcwd() + pGQh\n for tk5Y, AQSv, RRlC in Hy7s.walk(VqRE):\n MAug = SC2F.glob(Hy7s.path.join(tk5Y, '*'))\n ... | [
"0.8182374",
"0.8117077",
"0.8098767",
"0.8086996",
"0.8045361",
"0.80382085",
"0.8031231",
"0.7975017",
"0.7973515",
"0.79566115",
"0.79368895",
"0.7917541",
"0.7916227",
"0.789933",
"0.7877398",
"0.78290176",
"0.7817064",
"0.78119427",
"0.7800874",
"0.7795815",
"0.7790396",... | 0.78813624 | 14 |
Creates label smoothing loss with kldivergence for the seq2seq model. | def AriZ(CPLx, jXxl, begE, ytZy=0.1):
la9G = 1.0 - ytZy
DF_z = ht2j.full((jXxl,), ytZy / (jXxl - 2))
DF_z = DF_z.to(begE)
DF_z[CPLx] = 0
def Xwal(o4Jx, x6A0):
"""
Computes the kl-divergence between the preds and the
smoothed target distribution.
"""
iW8E = D... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QZvD(YKHO):\n zIzJ = YKHO.calculate_kl_loss\n la1o = YKHO.calculate_md_loss\n YKHO.kl_weight = nMvt.variable(YKHO.hps['kl_weight_start'], name='kl_weight')\n KpIQ = YKHO.kl_weight\n\n def KrH7(Y8eF, aMgO):\n \"\"\" Final loss calculation function to be passed to optimizer\"\"\"\n z... | [
"0.68916553",
"0.6729454",
"0.668626",
"0.668626",
"0.66826475",
"0.6509649",
"0.63396657",
"0.622267",
"0.62042564",
"0.61932164",
"0.6189362",
"0.6177848",
"0.61254793",
"0.61056674",
"0.60953695",
"0.60279226",
"0.6027382",
"0.602619",
"0.6020885",
"0.60197693",
"0.5969565... | 0.56157583 | 64 |
Convenience function for converting int32 ndarray to torch int64. | def TvCm(A07C):
return ht2j.as_tensor(A07C).long().to(begE) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rGct(ezWE):\n U5bT = ezWE.astype(oyIN.int64, casting='safe')\n return U5bT",
"def duv2(vhpA):\n try:\n if hasattr(vhpA, 'ndim') and vhpA.ndim > 0:\n return None\n return oyIN.int64(vhpA)\n except (TypeError, ValueError, RuntimeError):\n return None",
"def gmXi(WK... | [
"0.69608045",
"0.67817247",
"0.6680154",
"0.6611306",
"0.64285904",
"0.63238376",
"0.6263454",
"0.62623745",
"0.62563753",
"0.6238604",
"0.6218405",
"0.6148431",
"0.6086168",
"0.6075731",
"0.6066517",
"0.60394794",
"0.60017955",
"0.5971563",
"0.5937372",
"0.5881152",
"0.58536... | 0.5787192 | 23 |
Returns a state path ending in last_state in reverse order. | def fDwH(YKHO, THkp, o_r0):
Kt_s = len(THkp)
yield o_r0
for YRbF in range(Kt_s - 1, -1, -1):
yield THkp[YRbF, o_r0]
o_r0 = THkp[YRbF, o_r0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pmON(YKHO):\n return reversed(list(YKHO.reverse_path))",
"def j6_k(YKHO):\n iBIi = YKHO._final_board\n pmON = [iBIi]\n while iBIi.previous is not None:\n pmON.append(iBIi.previous)\n iBIi = iBIi.previous\n return pmON[::-1]",
"def reversed(YKHO):\n e35S = [pG0V.reversed() fo... | [
"0.69928813",
"0.67562354",
"0.66892606",
"0.6547536",
"0.65205836",
"0.6285165",
"0.6179145",
"0.60552067",
"0.59875536",
"0.59350675",
"0.59260744",
"0.5909835",
"0.5892249",
"0.58663845",
"0.5842827",
"0.58251315",
"0.58116806",
"0.5799242",
"0.5786689",
"0.5786481",
"0.57... | 0.66620946 | 3 |
Initialize an instance of the Teacher class. | def FIMM(YKHO, sEAN, JnVv, **B2fa):
YKHO.step_size = B2fa.pop('step_size', 0.001)
YKHO.decay_rate = B2fa.pop('decay_rate', 1.0)
YKHO.reg = B2fa.pop('reg', 0.0)
YKHO.batch_size = B2fa.pop('batch_size', 128)
YKHO.num_epochs = B2fa.pop('num_epochs', 10)
YKHO.num_iterations = B2fa.pop('num_iteration... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, LtAY, JRtB, WlEx=None):\n YKHO.questions = WlEx if WlEx else []\n YKHO.teacher = LtAY\n YKHO.classroom = JRtB",
"def hp8h(YKHO, LtAY):\n YKHO.pg_id = None\n YKHO.first_name = LtAY.teacher_first_name\n YKHO.last_name = LtAY.teacher_last_name\n YKHO.email = LtAY.email\n YKHO.... | [
"0.71487474",
"0.6797782",
"0.6369173",
"0.62960094",
"0.6036847",
"0.60157037",
"0.596028",
"0.5896986",
"0.57636344",
"0.5709516",
"0.5693496",
"0.56903285",
"0.56701666",
"0.56324506",
"0.5561403",
"0.5542728",
"0.55426234",
"0.5489028",
"0.54498863",
"0.5441782",
"0.54352... | 0.0 | -1 |
Return the total loss computed for a given batch. | def GT2U(YKHO, NArs, Wc9F):
EcVT, (VUzz, j4l8), yzQ0 = Wc9F
zseD, RUIi = YKHO.apply_fun(NArs, EcVT)
qET2 = oyIN.sum(((zseD - VUzz) ** 2).squeeze() * yzQ0)
return qET2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rBQ4(aX9N):\n return oyIN.sum(oyIN.asarray(aX9N))",
"def L8kW(YKHO, cuiw, Wc9F):\n WJTi = {}\n WJTi[YKHO.context_ids] = Wc9F.context_ids\n WJTi[YKHO.context_mask] = Wc9F.context_mask\n WJTi[YKHO.qn_ids] = Wc9F.qn_ids\n WJTi[YKHO.qn_mask] = Wc9F.qn_mask\n WJTi[YKHO.ans_span] = Wc9F.ans_sp... | [
"0.7913195",
"0.76113653",
"0.7497213",
"0.73383033",
"0.7209767",
"0.72095674",
"0.70823705",
"0.7075452",
"0.7038155",
"0.70327216",
"0.70275563",
"0.70038044",
"0.69903094",
"0.6973792",
"0.6966406",
"0.6961374",
"0.69457984",
"0.6937342",
"0.6934611",
"0.69085276",
"0.690... | 0.6879571 | 24 |
Initializes the EgoVehicle class by creating a standard Vehicle class. | def FIMM(YKHO, QOxj, SCLJ):
super(Cd7S, YKHO).__init__(QOxj, SCLJ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vebf(jMd6, FMwV):\n FMwV.tires.update(stVw(FMwV.tires.size))\n if FMwV.battery.capacity:\n FMwV.el_motor.obj = dALQ()\n FMwV.battery_obj = BqDA(FMwV.battery.capacity, 'li-ion')\n else:\n FMwV.battery_obj = None\n if FMwV.ff_motor:\n FMwV.ff_motor.obj = BT0V()\n return... | [
"0.7068999",
"0.6942299",
"0.6712705",
"0.66746044",
"0.66117984",
"0.657641",
"0.6565797",
"0.63649684",
"0.6355963",
"0.6333406",
"0.6310943",
"0.6283792",
"0.6282368",
"0.62816864",
"0.6272937",
"0.62625337",
"0.62426066",
"0.6210181",
"0.6189251",
"0.61811376",
"0.6148963... | 0.6909662 | 2 |
line equation mx y + b = 0 Ax + By + C = 0 check the y intercept | def AEK1(YKHO, AU8u, iArr):
def nF95(iArr):
[[o4D3, si3g], [ajwV, skBL]] = iArr
return (skBL - si3g, o4D3 - ajwV, ajwV * si3g - o4D3 * skBL)
JIWk, NQkr, _6tM = nF95(iArr)
U5bT = JIWk * AU8u[0] + NQkr * AU8u[1] + _6tM
if U5bT > 0:
return 1
if U5bT < 0:
return -1
r... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BlB8(zFiD):\n return zFiD.y1 - VMex(zFiD) * zFiD.x1",
"def BF4U(AU8u, VMex):\n o4D3 = AU8u[0]\n si3g = AU8u[1]\n if VMex == 0:\n return si3g\n elif VMex == 'inf':\n return o4D3\n else:\n LVAh = VMex * float(o4D3) * -1 + float(si3g)\n return round(LVAh, 8)",
"de... | [
"0.78233963",
"0.7197679",
"0.69533134",
"0.6837794",
"0.67855203",
"0.67553294",
"0.67553294",
"0.67262155",
"0.67105126",
"0.66792434",
"0.66767573",
"0.6655376",
"0.6647981",
"0.6577712",
"0.6567235",
"0.65635246",
"0.6531488",
"0.6530355",
"0.6499403",
"0.6452061",
"0.643... | 0.0 | -1 |
POST /drinks Adds a drink record to the database. | def SIbh(nPrm, pB3N):
Xx5Z = _7Iu()
Xx5Z.add(title=McSg(nPrm.get('title'), QePW.method), recipe=t_vg(nPrm.get('recipe')))
return (pz3A({'drinks': [Xx5Z.long()], 'success': True}), 200) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def u2ys():\n try:\n Xx5Z = _7Iu(title=QePW.json.get('title'))\n Xx5Z.insert()\n for uBMr in QePW.json.get('recipe'):\n uBMr = _baS(name=uBMr.get('name'), parts=uBMr.get('parts'), color=uBMr.get('color'), drink_id=Xx5Z.id)\n uBMr.insert()\n geh0 = pz3A({'success... | [
"0.74254394",
"0.7315291",
"0.7287539",
"0.66350865",
"0.6378082",
"0.6364551",
"0.6223026",
"0.607977",
"0.6020127",
"0.5957901",
"0.5874675",
"0.5843113",
"0.57493144",
"0.5673431",
"0.56555563",
"0.5645116",
"0.56353503",
"0.5623397",
"0.56125873",
"0.554136",
"0.55310285"... | 0.8217535 | 0 |
Compute the softmax of each element along an axis of X. | def N93T(EcVT, q7In=1.0, jDK_=None):
LVAh = oyIN.atleast_2d(EcVT)
if jDK_ is None:
jDK_ = next((r845[0] for r845 in enumerate(LVAh.shape) if r845[1] > 1))
LVAh = LVAh * float(q7In)
LVAh = LVAh - oyIN.expand_dims(oyIN.max(LVAh, axis=jDK_), jDK_)
LVAh = oyIN.exp(LVAh)
GM4D = oyIN.expand_di... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N93T(WKvO):\n WKvO = oyIN.transpose(WKvO)\n return oyIN.transpose(oyIN.exp(WKvO) / oyIN.sum(oyIN.exp(WKvO), axis=0))",
"def N93T(WKvO):\n if WKvO.ndim == 1:\n uw5A = oyIN.exp(WKvO - oyIN.max(WKvO))\n return uw5A / uw5A.sum(axis=0)\n else:\n uw5A = oyIN.exp(WKvO.T - oyIN.max(W... | [
"0.85829306",
"0.85623956",
"0.8485314",
"0.8471719",
"0.8463859",
"0.84578127",
"0.8438464",
"0.84282345",
"0.8422317",
"0.83954877",
"0.8395339",
"0.83913296",
"0.83822906",
"0.83557016",
"0.8347192",
"0.8332008",
"0.83197165",
"0.8319276",
"0.8315076",
"0.8313633",
"0.8312... | 0.0 | -1 |
Transform pandas.DataFrame into markdown text. If number of DataFrame rows is >= ROW_LIMIT, encapsulate the table in a collapsible markdown section | def zHU7(YKHO, jQ3Z):
hlel = []
BI6u = jQ3Z.to_markdown(index=False)
if len(jQ3Z) >= xE6l:
hlel.append('<details markdown="1">')
hlel.append('<summary><b>Click to expand table</b></summary>')
hlel.append('')
hlel.append(f'{BI6u}')
hlel.append('')
hlel.append('... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aFZN(bOBl, MOPg='keys'):\n zdkv = bOBl.pipe(W3a1, headers=MOPg, tablefmt='pipe')\n return zdkv",
"def CCCW(jQ3Z):\n KCHu = '|{}|\\n'.format('|'.join(jQ3Z.columns))\n KCHu += '|{}|\\n'.format(':----'.join(jQ3Z.columns))\n for or8S, rdlD in jQ3Z.iterrows():\n KCHu += '|{}|\\n'.format('|'.... | [
"0.7560154",
"0.73697805",
"0.69733906",
"0.638035",
"0.6324007",
"0.6210596",
"0.61675125",
"0.6162497",
"0.6160131",
"0.6147266",
"0.61389387",
"0.6132937",
"0.6127091",
"0.6095688",
"0.608716",
"0.60046476",
"0.59432656",
"0.59432656",
"0.5931913",
"0.5911793",
"0.59085596... | 0.79627293 | 0 |
Downsample an image using average pooling. | def myXy(MVp_):
GPtr = BJsk.get_config()
aM8h = GPtr.getint('DEFAULT', 'factor')
r8hN = U78l.AvgPool2d(aM8h)
sjHi = r8hN(MVp_)
return sjHi | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ttyj(VXjJ, Oaod):\n xiPz = VXjJ.copy()\n xiPz = xiPz[::Oaod]\n xiPz = xiPz[:, ::Oaod]\n return xiPz",
"def myXy(VXjJ, aM8h):\n oTDq = VXjJ[::aM8h, ::aM8h].copy()\n return oTDq",
"def myXy(VXjJ, aM8h):\n assert VXjJ.shape[0] % aM8h == 0\n assert VXjJ.shape[1] % aM8h == 0\n VXjJ = ... | [
"0.7657529",
"0.7421073",
"0.73727036",
"0.70260894",
"0.70032716",
"0.69897056",
"0.69450223",
"0.67884123",
"0.6621413",
"0.66197604",
"0.66096854",
"0.65779346",
"0.6570176",
"0.6522571",
"0.6350718",
"0.6349765",
"0.63134027",
"0.63082254",
"0.6268567",
"0.62646717",
"0.6... | 0.65652746 | 13 |
Using discriminator and generator models, instantiate a gan model. | def y43r(nfgB, c2Yh):
nfgB.trainable = False
TSdc = X6a0(shape=(100,))
YfIz = nfgB(c2Yh(TSdc))
gwPQ = wOed(inputs=TSdc, outputs=YfIz)
gwPQ.compile(loss='binary_crossentropy', optimizer='adam')
return gwPQ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cJbS(U78Y, hfjP):\n hfjP.trainable = False\n C3ST = ileL()\n C3ST.add(U78Y)\n C3ST.add(GVKG())\n C3ST.add(hfjP)\n C3ST.compile(loss='binary_crossentropy', optimizer='adam')\n return C3ST",
"def lXDR(YKHO):\n YKHO.d_model.trainable = False\n jDM_ = X6a0((YKHO.latent_dim,))\n Hv4j... | [
"0.8062202",
"0.73635274",
"0.7261374",
"0.7218175",
"0.7214984",
"0.7192283",
"0.6982011",
"0.69739115",
"0.6967988",
"0.6937376",
"0.6911308",
"0.6865131",
"0.6804287",
"0.6741384",
"0.67368954",
"0.6718523",
"0.67037576",
"0.6679662",
"0.6663918",
"0.6652522",
"0.66124994"... | 0.7922294 | 1 |
Gets the sign of a number. | def Zihr(WKvO: Union[float, int], rxZe: bool=False) -> int:
if WKvO is None:
raise TypeError("Argument x mustn't be None!")
if not isinstance(WKvO, (float, int)):
raise TypeError(f'Expected argument x to be a float or int, instead it is {type(WKvO)}.')
return -1 if WKvO < 0 else 1 if WKvO > ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zihr(mLGw):\n if mLGw > 0:\n return 1\n elif mLGw < 0:\n return -1\n else:\n return 0",
"def CNOw(BWXx: int) -> int:\n if BWXx < 0:\n return -1\n elif BWXx == 0:\n return 0\n else:\n return 1",
"def Zihr(FGW3):\n if FGW3 != 0:\n return F... | [
"0.7798058",
"0.75123715",
"0.74988323",
"0.7247086",
"0.71715814",
"0.70989287",
"0.70251024",
"0.69468915",
"0.69059086",
"0.6843253",
"0.6840845",
"0.67919815",
"0.6758672",
"0.675136",
"0.6741443",
"0.6738126",
"0.67127365",
"0.6687065",
"0.66853946",
"0.66658145",
"0.664... | 0.6622115 | 21 |
Get the user by their id | def bt8D(uJjO) -> mv1M:
return mv1M.query.filter(mv1M.id == uJjO).first() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TKWP(YKHO, id):\n return YKHO._fetch_json('users/' + id)",
"def g971(id):\n return mv1M.query.get(int(id))",
"def bt8D(id):\n return mv1M.query.get(id)",
"def ggdo(Emd4, id):\n CBIr = Emd4.get_by_id(id)\n return CBIr",
"def ggdo(Emd4, id):\n CBIr = Emd4.get_by_id(id)\n return CBIr"... | [
"0.86305076",
"0.8605932",
"0.8584725",
"0.85408825",
"0.85408825",
"0.8527182",
"0.84989965",
"0.8452431",
"0.8445287",
"0.84214324",
"0.84169286",
"0.8377022",
"0.83746594",
"0.8361754",
"0.8354051",
"0.8332254",
"0.8289185",
"0.82703114",
"0.82590246",
"0.8236807",
"0.8233... | 0.80142325 | 49 |
Get the user by their id | def CYTf(D3lj) -> mv1M:
return mv1M.query.filter(mv1M.email == D3lj).first() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TKWP(YKHO, id):\n return YKHO._fetch_json('users/' + id)",
"def g971(id):\n return mv1M.query.get(int(id))",
"def bt8D(id):\n return mv1M.query.get(id)",
"def ggdo(Emd4, id):\n CBIr = Emd4.get_by_id(id)\n return CBIr",
"def ggdo(Emd4, id):\n CBIr = Emd4.get_by_id(id)\n return CBIr"... | [
"0.86305076",
"0.8605932",
"0.8584725",
"0.85408825",
"0.85408825",
"0.8527182",
"0.84989965",
"0.8452431",
"0.8445287",
"0.84214324",
"0.84169286",
"0.8377022",
"0.83746594",
"0.8361754",
"0.8354051",
"0.8332254",
"0.8289185",
"0.82703114",
"0.82590246",
"0.8236807",
"0.8233... | 0.0 | -1 |
Normalize Key Value Pairs. This method will transform all keys to lowercase and leave values unchanged, as specified in the CSW standard (see for example note C on Table 62 KVP Encoding for DescribeRecord operation request of the CSW standard version 2.0.2) | def BjoD(TI8K):
Aofo = dict()
for mWFP, BWXx in TI8K.items():
Aofo[mWFP.lower()] = BWXx
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aSeI(AIu6: dict) -> dict:\n return {G1Hx.lower(): pyy9(Ty9i) for G1Hx, Ty9i in AIu6.items()}",
"def M_0u(YKHO, nPrm):\n kLcZ = YKHO.encoder.encode\n x8I_ = YKHO.encoder.decode\n return {x8I_(kLcZ(G1Hx)): Ty9i for G1Hx, Ty9i in nPrm.items()}",
"def OedJ(geh0: dict):\n Plm4.debug(f'lowering ke... | [
"0.7293217",
"0.70465356",
"0.67643505",
"0.6662371",
"0.663027",
"0.6540698",
"0.64861554",
"0.6461302",
"0.64089954",
"0.628527",
"0.6261816",
"0.6234499",
"0.62340456",
"0.6189808",
"0.6155605",
"0.59681565",
"0.594692",
"0.5936019",
"0.5931577",
"0.59242886",
"0.5906256",... | 0.72755104 | 1 |
return url for the quiz_taker detail | def nvKb(FeBr):
return gxEw('assessment:quiztaker-detail', args=[FeBr]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hlzF(YKHO):\n return gxEw('question-detail', args=[YKHO.id])",
"def hlzF(YKHO):\n return gxEw('question_detail', args=[str(YKHO.question.id)])",
"def hlzF(YKHO):\n return gxEw('question-detail-view', args=[str(YKHO.id)])",
"def hlzF(YKHO):\n return gxEw('detail', kwargs={'id': YKHO.exerciseId... | [
"0.71920794",
"0.7119759",
"0.7093401",
"0.68570113",
"0.6847208",
"0.6847208",
"0.6823535",
"0.6823535",
"0.6817236",
"0.6720211",
"0.6695284",
"0.6653509",
"0.664175",
"0.6627027",
"0.6619968",
"0.6615105",
"0.6615105",
"0.65810376",
"0.6490497",
"0.6484677",
"0.6431301",
... | 0.851587 | 0 |
test retrieving a list of quiz_takers | def BPGY(YKHO):
iuW8(student=YKHO.user, quiz=YKHO.quiz)
UfkH = FYrf.QuizTaker.objects.all()
ZMzz = IyFz.QuizTakerSerializer(UfkH, many=True, context=m9DW)
Ylbp = YKHO.client.get(byLj)
YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_200_OK)
YKHO.assertEqual(Ylbp.data, ZMzz.data) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yzJb(YKHO):\n YKHO.client.login(username=YKHO.user.username, password=YKHO.user_plaintext_pass)\n geh0 = YKHO.client.get(gxEw('yaksh:manage'), follow=True)\n YKHO.assertEqual(geh0.status_code, 200)\n YKHO.assertTemplateUsed(geh0, 'yaksh/moderator_dashboard.html')\n YKHO.assertEqual(geh0.context[... | [
"0.7045966",
"0.6931731",
"0.68892753",
"0.67951334",
"0.67289865",
"0.6671746",
"0.6661311",
"0.66580683",
"0.6634676",
"0.65198123",
"0.6509286",
"0.64931285",
"0.6488032",
"0.645554",
"0.6436314",
"0.6430975",
"0.6407297",
"0.64052176",
"0.63587844",
"0.63074404",
"0.63053... | 0.73256135 | 0 |
The project property getter. | def bNKA(YKHO):
return YKHO._project | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HQmd():\n return C9U5.VALUES.core.project.Get(required=True)",
"def ITTn(YKHO):\n return YKHO.project",
"def bNKA(YKHO):\n return YKHO._project",
"def bNKA(YKHO):\n return YKHO._project",
"def bNKA(YKHO):\n return YKHO._project",
"def bNKA(YKHO):\n return YKHO._project",
"def TJRy... | [
"0.7618657",
"0.74674344",
"0.72245294",
"0.72245294",
"0.72245294",
"0.72245294",
"0.70513034",
"0.70513034",
"0.6887646",
"0.6844426",
"0.6828651",
"0.68285155",
"0.6825043",
"0.6803812",
"0.6803812",
"0.6803812",
"0.6803812",
"0.6803812",
"0.6803812",
"0.6803812",
"0.68038... | 0.69462407 | 8 |
Ensure category crud working | def hJ0w(YKHO):
bD7m = NKRf + 'location'
nPrm = {'name': 'test'}
geh0 = YKHO.client.post(bD7m, nPrm, format='json')
YKHO.assertEqual(geh0.status_code, 201)
bD7m = NKRf + 'department'
nPrm = {'name': 'test', 'location': geh0.data['id']}
geh0 = YKHO.client.post(bD7m, nPrm, format='json')
Y... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XnPT(YKHO):\n pass",
"def LCTi(YKHO):\n Aofo = YKHO.client.get('/add_category')\n YKHO.assertIn('Add a New Category:', Aofo.data)",
"def QuBU(YKHO):\n YKHO.client.login(username='test_user', password='1234')\n dV7f = 'test category'\n BGqR = {'name': dV7f, 'views': '1', 'likes': '0'}\n ... | [
"0.7663703",
"0.73378175",
"0.72140294",
"0.7188241",
"0.7097153",
"0.70102584",
"0.6999396",
"0.699143",
"0.69822145",
"0.6972772",
"0.6965588",
"0.6925793",
"0.6919901",
"0.6895041",
"0.6887887",
"0.6871006",
"0.6850629",
"0.6813248",
"0.68129617",
"0.6803304",
"0.67995495"... | 0.6828525 | 17 |
Use a minimax algorithm in combination with the value function to generate the next move for the computer. Return this move | def fTLn(YKHO, iBIi, C3ST=None):
def SR1K(iBIi, rb7a, Cwt5, UqYS, TklR, oLdq):
if rb7a == 0 or iBIi.state.is_game_over():
return (YKHO.value_board_ML(iBIi, YKHO.color if not TklR else not YKHO.color, C3ST), oLdq)
if TklR:
jB5X = float('-inf')
DQoW = list(iBIi.sta... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SR1K(iBIi):\n if f9TP(iBIi):\n return None\n oLdq = xASv(iBIi)\n NNU2 = []\n for r8hN in oLdq:\n q9ES = Aofo(iBIi, r8hN)\n if oyg0(q9ES) == EcVT:\n NNU2.append((r8hN, SJkH(q9ES)))\n else:\n NNU2.append((r8hN, mTTB(q9ES)))\n M1xS = NNU2[0]\n if... | [
"0.7754707",
"0.75772667",
"0.75595313",
"0.7544413",
"0.75388837",
"0.7507376",
"0.75002885",
"0.74949133",
"0.7492856",
"0.7434694",
"0.74285036",
"0.740069",
"0.739105",
"0.7381358",
"0.73796093",
"0.7332825",
"0.730758",
"0.7301117",
"0.72893584",
"0.7272421",
"0.7267949"... | 0.7615973 | 1 |
Add a row of data that is conformant with the columns. | def MX8Y(YKHO, rdlD):
assert len(rdlD) == len(YKHO.cols), 'row has wrong number of elements'
for ZfUD, tcLV in zip(rdlD, YKHO.cols):
YKHO.data[tcLV] = oyIN.append(YKHO.data[tcLV], ZfUD)
YKHO.len = YKHO.len + 1
return YKHO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XKHb(YKHO, nPrm: list):\n if len(nPrm) != YKHO.cols_num():\n raise Lmzo(YKHO.name, 'Inserted data dont match column amount of the table')\n gAQa = []\n for YRbF in range(YKHO.cols_num()):\n YKHO.insert_into_cell(YRbF, nPrm[YRbF], gAQa)\n YKHO.rows.append(gAQa)\n RKD7.debug(f'To tab... | [
"0.70769006",
"0.69374824",
"0.6869966",
"0.6729641",
"0.66703486",
"0.65633595",
"0.65628314",
"0.6531864",
"0.64864475",
"0.6452081",
"0.63928914",
"0.63542163",
"0.63016695",
"0.6292593",
"0.6255009",
"0.6253047",
"0.62287474",
"0.61971796",
"0.61896",
"0.6181108",
"0.6172... | 0.66343254 | 5 |
Discriminator that is used to match the posterior distribution with a given prior distribution. | def nfgB(WKvO, CJGY=False):
if CJGY:
ZylS.get_variable_scope().reuse_variables()
with ZylS.name_scope('Discriminator'):
Lnxt = ZylS.nn.relu(A0RF(WKvO, PO4e, xY6E, name='dc_den1'))
ud87 = ZylS.nn.relu(A0RF(Lnxt, xY6E, UGzS, name='dc_den2'))
hlel = A0RF(ud87, UGzS, 1, name='dc_outp... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nfgB(YKHO):\n raise NotImplementedError()",
"def nfgB(YKHO):\n raise NotImplementedError()",
"def rXIR(YKHO):\n pass",
"def nfgB(YKHO) -> MCQa:\n return YKHO._discriminator",
"def nfgB(YKHO, nfgB: str):\n pass",
"def FIMM(YKHO, m_03: int=1, ACM6: str='AvgPool1d', vXCA: Dict[str, Any]={... | [
"0.6284056",
"0.6284056",
"0.6156962",
"0.6138921",
"0.5869192",
"0.585701",
"0.57922274",
"0.5732279",
"0.5716906",
"0.56900656",
"0.56865793",
"0.56804085",
"0.5647399",
"0.5629577",
"0.56205624",
"0.5603997",
"0.55583996",
"0.55488497",
"0.5514938",
"0.5505049",
"0.5495819... | 0.0 | -1 |
Make a DELETE request and return JSON. | def PTpj(YKHO, bD7m, jek0=''):
qg0d = YKHO.get_session(cred_hash=jek0)
if not qg0d['status']:
return qg0d
qg0d = qg0d['data']
try:
geh0 = qg0d.delete(bD7m)
except (C7JY, LBL9, OSError) as e:
return {'status': False, 'data': f'delete error: {tTpl}'}
return YKHO.process_res... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PTpj(YKHO):\n Mkmy = YKHO.request(YKHO.url + '/delete')\n YKHO.response = None\n YKHO.url = None\n return Mkmy",
"def PTpj(YKHO, *qIxc, **B2fa):\n B2fa['method'] = wlcv\n return YKHO.request(*qIxc, **B2fa)",
"def nSSL(KcEq, bIwZ, _ugn, pmON):\n w2B8 = B3z0.HTTPConnection(KcEq + ':' + b... | [
"0.786459",
"0.7854401",
"0.7832397",
"0.7773704",
"0.7770661",
"0.77484524",
"0.77310133",
"0.7676954",
"0.7667421",
"0.7638671",
"0.76170176",
"0.7611728",
"0.7566511",
"0.7546607",
"0.75250036",
"0.7470098",
"0.74136215",
"0.73861897",
"0.73492587",
"0.7345669",
"0.7313891... | 0.0 | -1 |
Normalizes a adjacency matrix. | def XWIE(fLXe):
_IXK = fLXe.sum(axis=1)
fGve = oyIN.divide(1, oyIN.sqrt(_IXK), out=oyIN.zeros_like(_IXK), where=_IXK != 0)
RM6l = oyIN.zeros((fLXe.shape[0], fLXe.shape[1]))
oyIN.fill_diagonal(RM6l, fGve)
fLff = oyIN.matmul(RM6l, oyIN.matmul(fLXe, RM6l))
return fLff | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zdGZ(YKHO):\n for exwG, WKvO in enumerate(YKHO.A):\n r8o1 = sum(WKvO)\n for YRbF in range(len(WKvO)):\n if r8o1 != 0:\n YKHO.A[exwG][YRbF] = float(YKHO.A[exwG][YRbF]) / r8o1",
"def De9t(eQUr: torch.Tensor) -> ht2j.Tensor:\n uy8I = ht2j.triu(eQUr, diagonal=1) + ht... | [
"0.7707558",
"0.7562947",
"0.7552911",
"0.7552535",
"0.75394505",
"0.75394505",
"0.7521571",
"0.75106364",
"0.74681336",
"0.7451273",
"0.7435079",
"0.73605967",
"0.7344726",
"0.7316451",
"0.731071",
"0.7305493",
"0.7292717",
"0.7292717",
"0.7292717",
"0.7292717",
"0.7292717",... | 0.754524 | 4 |
Test that basic auth configures correctly | def JpsA(YKHO):
print('Skipping test of CURL configuration for basic auth because the mocks fail in Py3')
return | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QJ9Z(YKHO):\n bkz0 = 'Foomanchubars'\n YKHO._setup_normal_extension(auth_all=True, realm=bkz0)\n\n @YKHO.app.route('/')\n def bGrB():\n \"\"\"Simple view to prompt for authentication.\"\"\"\n YKHO.fail('This view should not have been called')\n geh0 = YKHO.app.test_client().get('/'... | [
"0.831806",
"0.8274528",
"0.825283",
"0.81565195",
"0.7906419",
"0.7790646",
"0.7663515",
"0.76611906",
"0.7636457",
"0.74891925",
"0.73960775",
"0.7367346",
"0.73313546",
"0.73155415",
"0.73088616",
"0.72640693",
"0.7244054",
"0.722021",
"0.7155643",
"0.7154835",
"0.7103643"... | 0.813424 | 4 |