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 |
|---|---|---|---|---|---|---|
The ID of the resource group. | def vFpg(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'resource_group_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vFpg(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group_id')",
"def hE03(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_id')",
"def hE03(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_id')",
"def hE03(YKHO):\n return YKHO._group_id",
"def hE03(YKHO):\n return YKHO._group_id",
"def hE03(... | [
"0.8664712",
"0.85919976",
"0.85919976",
"0.82755524",
"0.82755524",
"0.82755524",
"0.82755524",
"0.82755524",
"0.82755524",
"0.82062095",
"0.81637913",
"0.8071228",
"0.8071228",
"0.80592835",
"0.80592835",
"0.79490334",
"0.79490334",
"0.79490334",
"0.79490334",
"0.79490334",
... | 0.8202333 | 13 |
The ID of the security group. This parameter is required, if you set `cluster_type` to `ecs` or `aliyuncs`(ASK instance). | def fEOc(YKHO) -> qe4Y.Output[h8nf[str]]:
return qe4Y.get(YKHO, 'security_group_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n_IK(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'cluster_security_group_id')",
"def fEOc(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'security_group_id')",
"def fEOc(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'security_group_id')",
"def n_IK(YKHO) -> h8nf[st... | [
"0.8441198",
"0.84120464",
"0.84120464",
"0.8367409",
"0.7980001",
"0.78802705",
"0.7864415",
"0.78624165",
"0.78325534",
"0.78049654",
"0.75796366",
"0.75796366",
"0.7515364",
"0.73968726",
"0.73968726",
"0.7267532",
"0.72044724",
"0.7171314",
"0.7171314",
"0.71597534",
"0.7... | 0.8278893 | 4 |
The child instance json string of the globalView instance. | def sy3p(YKHO) -> qe4Y.Output[h8nf[str]]:
return qe4Y.get(YKHO, 'sub_clusters_json') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHJl(YKHO):\n return qQXR.dumps(YKHO.__dict__)",
"def wHJl(YKHO):\n return qQXR.dumps(YKHO.__dict__)",
"def wHJl(YKHO):\n return qQXR.dumps(YKHO.as_dict())",
"def wHJl(YKHO):\n return qQXR.dumps(YKHO.to_dict())",
"def wHJl(YKHO):\n return qQXR.dumps(YKHO.to_dict())",
"def wHJl(YKHO):\n... | [
"0.69039446",
"0.69039446",
"0.668522",
"0.6644427",
"0.6644427",
"0.6644427",
"0.6644427",
"0.6591589",
"0.658741",
"0.658741",
"0.658741",
"0.658741",
"0.658741",
"0.658741",
"0.65640575",
"0.65511364",
"0.636223",
"0.63563156",
"0.63448143",
"0.6341053",
"0.6327013",
"0.... | 0.0 | -1 |
The ID of the VPC. This parameter is required, if you set `cluster_type` to `ecs` or `aliyuncs`(ASK instance). | def xOeT(YKHO) -> qe4Y.Output[h8nf[str]]:
return qe4Y.get(YKHO, 'vpc_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xOeT(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'vpc_id')",
"def xOeT(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'vpc_id')",
"def xOeT(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'vpc_id')",
"def xOeT(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'vpc_id')",
"def xOe... | [
"0.81017894",
"0.81017894",
"0.81017894",
"0.81017894",
"0.81017894",
"0.81017894",
"0.81017894",
"0.81017894",
"0.81017894",
"0.81017894",
"0.81017894",
"0.81017894",
"0.81017894",
"0.79972273",
"0.79972273",
"0.79972273",
"0.79972273",
"0.79972273",
"0.79972273",
"0.7986968",... | 0.77885556 | 52 |
(dict) > dict/list/str/int/float Searches for the given key in data and returns it's value. | def GfdN(nPrm, H5ew):
if H5ew in nPrm.keys():
return nPrm[H5ew] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zmkp(nPrm, _DrS, H5ew='k', BWXx='v'):\n for mAB6 in nPrm:\n try:\n if mAB6.get(H5ew, '').lower() == _DrS.lower():\n return mAB6[BWXx]\n except AttributeError:\n pass\n return None",
"def Yt4w(YKHO, H5ew, nPrm):\n if H5ew.isdigit():\n return n... | [
"0.76638436",
"0.754538",
"0.7507718",
"0.74634093",
"0.70395786",
"0.67626715",
"0.6705065",
"0.66907614",
"0.66907525",
"0.6674241",
"0.6634581",
"0.6604954",
"0.6583539",
"0.6559314",
"0.6548802",
"0.6496952",
"0.6492379",
"0.64881617",
"0.6468241",
"0.6467073",
"0.6421255... | 0.70035976 | 5 |
Testing the landing page | def gOia(YKHO):
Aofo = YKHO.client.get('/')
YKHO.assertEqual(Aofo.status_code, 200)
YKHO.assertIn(b'Grow together with your partner...', Aofo.data) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hDnz(YKHO):\n geh0 = YKHO.client.get(nKyW('landing_page.landing'))\n YKHO.assert200(geh0)",
"def sjbM(YKHO):\n geh0 = YKHO.c.get('/')\n YKHO.assertTemplateUsed(geh0, 'landing.html')",
"def rKWs(YKHO):\n geh0 = YKHO.client.get('/index')\n YKHO.assertTrue(b'Redirecting...' in geh0.data)",
... | [
"0.8705797",
"0.83469045",
"0.8163441",
"0.81612056",
"0.81381404",
"0.8103373",
"0.806142",
"0.8056589",
"0.80556655",
"0.80402184",
"0.80093825",
"0.7997682",
"0.7973787",
"0.79709584",
"0.793381",
"0.7894327",
"0.7887071",
"0.7874675",
"0.7853301",
"0.78430015",
"0.7834077... | 0.805531 | 9 |
Test registration of user | def OPFs(YKHO):
Aofo = YKHO.client.post('/', data={'email': 'user5@gmail.com', 'password': 'user5', 'name': 'Cinco', 'nickname': 'Five', 'anniversary': '12/5/2017'}, follow_redirects=True)
YKHO.assertIn(b'Email is associated with an account.', Aofo.data) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IUpI(YKHO):\n pass",
"def OPFs(YKHO):\n Aofo = YKHO.app.post('/', data=dict(username='test', email='test@test.com', password='12345'))\n YKHO.assertEqual('200 OK', Aofo.status)",
"def bt2G(YKHO):\n geh0 = YKHO.register_user()\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_201_CREATED)\n Y... | [
"0.85646975",
"0.8493235",
"0.8458233",
"0.8444431",
"0.8438754",
"0.8435794",
"0.84156144",
"0.83758986",
"0.83518094",
"0.83360004",
"0.83323735",
"0.8320177",
"0.831633",
"0.82912576",
"0.82828885",
"0.8277845",
"0.82705355",
"0.82703966",
"0.82689923",
"0.8265866",
"0.823... | 0.84354794 | 6 |
This is an admin only page where the user is actually approved | def DBiK():
if c5ow.is_admin:
if QePW.method == 'GET':
Quqy = mv1M.approve(QePW.args.get('uid'))
r4nk = mv1M.get_corps_phone(Quqy.corps_id)
geh0 = rXk7(Quqy.id, Quqy.name, f'+1{Quqy.phone}', r4nk)
uKQp.add_message(*geh0)
if len(mv1M.get_unapproved(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WQp_():\n if c5ow.is_admin:\n return TvZl('approve.html', users=mv1M.get_unapproved())\n else:\n return vKnz(nKyW('send_msg'))",
"def eJz6():\n CBIr = TKWP()\n if not CBIr['isAdmin']:\n Dwep('You are not allowed here!')\n return CBIr['isAdmin']",
"def MgXm():\n return... | [
"0.78906536",
"0.73011285",
"0.68202937",
"0.68164235",
"0.6811605",
"0.6772134",
"0.67468554",
"0.67413336",
"0.67260873",
"0.6721743",
"0.67179275",
"0.67179275",
"0.67179275",
"0.67024785",
"0.6680578",
"0.6676159",
"0.6654788",
"0.66287315",
"0.6614028",
"0.6612143",
"0.6... | 0.7217961 | 2 |
Retrieves the list of all Review objects. | def ULRW(SsWt) -> qQXR:
C6id = S8SU.get(pRgP, SsWt)
if C6id is None:
raise oEgM
kSgn = C6id.reviews
list = []
for Slbv in kSgn:
list.append(Slbv.to_dict())
return Yxsy(pz3A(list), 200) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g6Dz(YKHO) -> x1iM[E1cg]:\n raise NotImplementedError",
"def q04w(YKHO):\n UzPC = YKHO.create_connection()\n N1p7 = UzPC.cursor()\n N1p7.execute('SELECT * FROM reviews')\n return N1p7.fetchall()",
"def kSgn(YKHO):\n HzE9 = []\n for YEnM in FYrf.storage.all(E1cg).values():\n if Y... | [
"0.7929431",
"0.77376944",
"0.75607413",
"0.7518028",
"0.7486936",
"0.7463656",
"0.7398872",
"0.738598",
"0.7330467",
"0.73198956",
"0.7275411",
"0.7243462",
"0.7173535",
"0.7065236",
"0.7032465",
"0.70243055",
"0.696318",
"0.6829663",
"0.6807274",
"0.67737466",
"0.67338836",... | 0.5939607 | 49 |
Test exception on missing recommendation `id`. | def IaO9(YKHO) -> None:
with trZe.raises(oEgM):
aW0v.from_id(-1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IAyd(YKHO) -> None:\n with trZe.raises(yXsM):\n aW0v.add({'id': 1, 'group_id': 1, 'tag_id': 1, 'priority': 1, 'object_id': 1, 'facility_id': 1, 'user_id': 2})",
"def IaO9(YKHO) -> None:\n with trZe.raises(oEgM):\n mgWk.from_id(-1)",
"def KJia(YKHO):\n YKHO.assertIsNone(_adG(4))",
"... | [
"0.7439015",
"0.69239795",
"0.67193174",
"0.6700859",
"0.66547453",
"0.6590205",
"0.6503009",
"0.64630544",
"0.6412673",
"0.63732845",
"0.6350735",
"0.6341181",
"0.63322526",
"0.63014185",
"0.6283573",
"0.62366986",
"0.6235806",
"0.6221229",
"0.62195945",
"0.6216588",
"0.6206... | 0.8672171 | 0 |
Test query for latest recommendation. | def _HG_(YKHO) -> None:
uJjO = mv1M.from_alias('tomb_raider').id
geh0 = aW0v.next(user_id=uJjO)
assert len(geh0) == 0
OKOk = aW0v.for_user(uJjO)[0].id
aW0v.update(OKOk, accepted=False)
geh0 = aW0v.next(user_id=uJjO)
assert len(geh0) == 1
aW0v.update(OKOk, accepted=True)
geh0 = aW0v.n... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cuY4(YKHO):\n pass",
"def MQSX(YKHO):\n pass",
"def ZkyS(YKHO):\n pass",
"def y23q(YKHO):\n _hkX = YKHO.app.get(zDeW)\n YKHO.assertEqual(_hkX.status_code, jGRS.HTTP_200_OK)\n FNQi = YKHO._create_one_recommendation(by_id=1, by_rel_id=2, by_type=1)[0]\n _hkX = YKHO.app.get(zDeW)\n Y... | [
"0.6334786",
"0.6314359",
"0.6204191",
"0.6183846",
"0.61466986",
"0.6042728",
"0.58336616",
"0.5820549",
"0.5780574",
"0.5775032",
"0.5710265",
"0.5702292",
"0.56837827",
"0.5681518",
"0.5681518",
"0.5641016",
"0.5637385",
"0.5615906",
"0.5599304",
"0.5591152",
"0.5570598",
... | 0.57186556 | 10 |
Check whether the start_date is correct. | def TY75(kepv):
yo7_ = qcWV.date.today()
if isinstance(kepv, str):
lO87, M9oE, CjKC = kepv.split('-')
tu_G = int(lO87)
y3jB = int(M9oE)
vttK = int(CjKC)
elif isinstance(kepv, _c1T):
tu_G = kepv.year
y3jB = kepv.month
vttK = kepv.day
else:
r... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iW3S(kepv):\n bo34 = Z4AO.get_logger()\n try:\n qcWV.datetime.strptime(f'{kepv}', GGme)\n except ValueError:\n rhwM = f' given date of {kepv} is not in the valid format'\n bo34.error(f'[about/validate_inputted_new_officers.py validate_start_date()]{rhwM}')\n return (False, ... | [
"0.7786242",
"0.77549857",
"0.7578015",
"0.73250526",
"0.73057085",
"0.7303547",
"0.7226466",
"0.719478",
"0.7167565",
"0.716",
"0.7087651",
"0.69834596",
"0.69734824",
"0.69353426",
"0.69201547",
"0.6909589",
"0.69092995",
"0.6900742",
"0.689234",
"0.6889802",
"0.6873813",
... | 0.77803963 | 1 |
Extracts the version number from the version.py file. | def kaPv():
R2BB = 'manager_utils/version.py'
ohcp = ZbWC.search('^__version__ = [\\\'"]([^\\\'"]*)[\\\'"]', open(R2BB, 'rt').read(), ZbWC.M)
if ohcp:
return ohcp.group(1)
else:
raise RuntimeError('Unable to find version string in {0}.'.format(R2BB)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k5zc() -> str:\n nUeQ = GkAb(xAKo).parent.parent / '_version.py'\n if nUeQ.exists():\n KCHu = nUeQ.read_text()\n kUBT = BIPD.search(KCHu)\n if kUBT:\n return kUBT.group('version')\n return ''",
"def kaPv():\n with open(R2BB, encoding='utf-8') as nVrR:\n Nqlg... | [
"0.8205123",
"0.79023725",
"0.79021806",
"0.78861535",
"0.78091174",
"0.7772612",
"0.7738785",
"0.7692224",
"0.7673914",
"0.76552093",
"0.7649543",
"0.7633322",
"0.7626875",
"0.76229507",
"0.7620362",
"0.75973576",
"0.7572001",
"0.75688607",
"0.7565065",
"0.7562143",
"0.75605... | 0.7502451 | 24 |
Given two dicts, merge them into a new dict as a shallow copy. | def yQxF(WKvO, LVAh):
epBp = WKvO.copy()
epBp.update(LVAh)
return epBp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IYhE(jzdc, Fg_i):\n Aofo = jzdc.copy()\n Aofo.update(Fg_i)\n return Aofo",
"def ywpZ(WKvO, LVAh):\n epBp = WKvO.copy()\n epBp.update(LVAh)\n return epBp",
"def yQxF(WKvO, LVAh):\n epBp = WKvO.copy()\n epBp.update(LVAh)\n return epBp",
"def yQxF(WbPA, S69B):\n lXgg = WbPA.cop... | [
"0.86373323",
"0.8522353",
"0.8480119",
"0.8461926",
"0.84596014",
"0.84394103",
"0.83482695",
"0.82588917",
"0.8238454",
"0.818875",
"0.81687456",
"0.8150417",
"0.8141936",
"0.8067988",
"0.8055447",
"0.8014138",
"0.7995745",
"0.7988674",
"0.7987371",
"0.79846054",
"0.7983249... | 0.8382824 | 11 |
Initialize a default score. | def HFLD(YKHO):
YKHO.score = fCHB.Score(simultaneous=False)
YKHO.key = fCHB.KeySignature('c', 'major')
YKHO.clef = fCHB.Clef('treble')
YKHO.time = fCHB.TimeSignature((4, 4))
YKHO.position = 0
YKHO.current_file_path = None
YKHO.changed_since_saving = False
YKHO.previous_repeatable_command... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JM4K(YKHO):\n if YKHO.score_type == 'high':\n YKHO.best_score = -10000000000.0\n YKHO._temp_score = -10000000000.0\n YKHO._score_mult = 1\n YKHO._greater_is_better = True\n elif YKHO.score_type == 'low':\n YKHO.best_score = 10000000000.0\n YKHO._temp_score = 1000... | [
"0.77962977",
"0.77439547",
"0.7566481",
"0.71042514",
"0.7080184",
"0.69968516",
"0.68151313",
"0.68151313",
"0.6804864",
"0.66903067",
"0.6610839",
"0.66099054",
"0.66072696",
"0.6565536",
"0.6565116",
"0.65623623",
"0.6509142",
"0.6468644",
"0.64516985",
"0.6444778",
"0.64... | 0.69746757 | 6 |
Gets all the python requirements available (with information about each requirement). | def Y4Hr(YKHO, mWFP: str=None, oezZ: bool=None, YvGL: bool=None) -> x1iM[T7tf.data.PyRequirementInfo]:
fA3L: x1iM[T7tf.data.PyRequirementInfo] = []
fA3L = YKHO._redis.execute_command('RG.PYDUMPREQS')
if mWFP or oezZ is not None or YvGL is not None:
FnRy = []
for qv1X in fA3L:
if ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fA3L(YKHO):\n return YKHO._get_libnames('REQUIREMENTS')",
"def O1OY():\n return [zFiD.split()[0] for zFiD in open('requirements.txt', 'r').readlines() if not zFiD.startswith('#')]",
"def IGNq() -> x1iM[str]:\n eHKs = Hy7s.path.dirname(Hy7s.path.realpath(xAKo))\n VGiD = Hy7s.path.join(eHKs, 'req... | [
"0.766194",
"0.75953436",
"0.7582993",
"0.7503297",
"0.7494698",
"0.7430996",
"0.74201894",
"0.73845094",
"0.7348659",
"0.7341518",
"0.7310156",
"0.7280769",
"0.7270754",
"0.7250373",
"0.7237114",
"0.7228198",
"0.72057134",
"0.7194564",
"0.71752834",
"0.711485",
"0.70643306",... | 0.6384122 | 74 |
Convert internal representation of MCMC draws to an array. | def QYPb(YKHO, qRpc=None, TLbF=True, PW8X=False):
if type(qRpc) is int:
qRpc = [qRpc]
if qRpc is not None:
lLCD = oyIN.array([YKHO.mcmc.draws[P2GO] for P2GO in qRpc])
else:
lLCD = oyIN.array(YKHO.mcmc.draws)
if PW8X:
lLCD = YKHO.untransform_theta(lLCD)
if TLbF:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iwLm(YKHO):\n return oyIN.array(YKHO.to_image())",
"def G86Z(YKHO):\n Nqlg = []\n for BDwY in YKHO.dlines:\n zFiD = YKHO.make_line(BDwY[0], BDwY[1])\n Nqlg.append(zFiD)\n YKHO.lines = [ZfUD for XuXy in Nqlg for ZfUD in XuXy]\n for WKvO, LVAh in YKHO.lines:\n YKHO.array[WKv... | [
"0.7240584",
"0.69287807",
"0.6853089",
"0.6803385",
"0.67523277",
"0.67503315",
"0.67399204",
"0.6601394",
"0.6583641",
"0.6538196",
"0.65318143",
"0.64921176",
"0.64621586",
"0.6437204",
"0.6437",
"0.64177245",
"0.64146394",
"0.63834465",
"0.6368371",
"0.635963",
"0.6355275... | 0.6350267 | 21 |
Calculate whether each draw was rejected or accepted. | def VYJz(YKHO):
lLCD = oyIN.array(YKHO.mcmc.draws)
YAq3 = oyIN.ones((1, lLCD.shape[1], lLCD.shape[2]))
yk4i = oyIN.diff(lLCD, axis=0)
Jga7 = oyIN.isclose(yk4i, 0)
llHi = oyIN.logical_not(Jga7).astype(float)
YAq3 = oyIN.concatenate([YAq3, llHi], axis=0)
return YAq3 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fkWC(YKHO):\n if YKHO.ds_ratio >= 200 or YKHO.business_age >= 4 or YKHO.length_rel >= 6 or (YKHO.positive_rel == True) or (YKHO.complete_app == True):\n print('Reject')\n else:\n p1kx = YKHO.calculate_score()\n if p1kx < 222:\n print('Accept')\n elif p1kx >= 222:\n ... | [
"0.66987073",
"0.63912606",
"0.6351668",
"0.6144251",
"0.59604293",
"0.59119064",
"0.5899768",
"0.58656853",
"0.58656853",
"0.58424294",
"0.584059",
"0.57570595",
"0.57133424",
"0.57102895",
"0.5707746",
"0.5706926",
"0.56849205",
"0.56607884",
"0.56572527",
"0.56550884",
"0.... | 0.6088696 | 4 |
Untransforms an array of theta values using stored t_min and t_max. | def PW8X(YKHO, orkU):
if YKHO.orig_range is not None:
XXcz = YKHO.orig_range[0]
w3IF = YKHO.orig_range[1]
orkU = orkU * (w3IF - XXcz) + XXcz
return orkU | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I0AF(a1PO: np.ndarray) -> oyIN.ndarray:\n return a1PO",
"def ScwE(YKHO, qw7D, C3ST):\n w3IF = C3ST.trans_max\n XXcz = C3ST.trans_min\n uPnQ = qw7D[-3:]\n uPnQ = (uPnQ - XXcz) / (w3IF - XXcz)\n uPnQ = oyIN.nan_to_num(uPnQ)\n qw7D[-3:] = uPnQ\n return qw7D",
"def zNgI(YKHO, WKvO):\n ... | [
"0.6584874",
"0.5668214",
"0.5622911",
"0.5474139",
"0.54447263",
"0.54403895",
"0.53559214",
"0.5319347",
"0.52879494",
"0.527924",
"0.5276035",
"0.5255069",
"0.5187522",
"0.51391846",
"0.5131744",
"0.51092035",
"0.5102627",
"0.50926423",
"0.50851196",
"0.50471264",
"0.50397... | 0.74550694 | 0 |
Plots the mean and stard deviation of the VOP over time from the VOPhistory list. | def tRZ4(YKHO):
exwG = len(YKHO.VOPhistory)
QrM1.figure()
QrM1.plot(oyIN.arange(exwG), YKHO.VOPhistory, label='the Vicsek order parameter')
QrM1.plot([0, exwG], [1, 1], '--')
QrM1.ylim(0, 1.1)
QrM1.xlabel('time steps')
QrM1.ylabel('the Vicsek order parameter')
QrM1.title('a measure of th... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vPTh(YKHO):\n I8kJ.pyplot.plot(YKHO.voltageHistory)\n I8kJ.pyplot.xlabel('time')\n I8kJ.pyplot.ylabel('Voltage')\n I8kJ.pyplot.title('Voltage/time graph of Neuron ' + YKHO.name)\n I8kJ.pyplot.show()",
"def qSo0(FLXQ):\n print(FLXQ)\n QrM1.plot(FLXQ['loss'])\n QrM1.plot(FLXQ['val_loss'... | [
"0.6943495",
"0.6654402",
"0.6567033",
"0.6456502",
"0.6449862",
"0.6369596",
"0.63676536",
"0.62289137",
"0.6215374",
"0.6193004",
"0.61865115",
"0.6171636",
"0.6163535",
"0.6158931",
"0.61423934",
"0.61356896",
"0.6130625",
"0.6129327",
"0.6120584",
"0.610147",
"0.6090683",... | 0.7631665 | 0 |
Routine to apply a shift to the telluric model. Note that the shift can be subpixel, i.e this routine interpolates. | def PwAe(DOH4, qd8A, yKp5, DkWr, rHUV):
L1NG = qd8A[0] + oyIN.arange(len(qd8A)) * yKp5 * rHUV + DkWr * yKp5
f65B = oyIN.interp(L1NG, qd8A, DOH4)
return f65B | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b_CH(aupC, DkWr):\n _Yp6 = geIL(oyIN.fft.fftn(aupC), DkWr)\n _Yp6 = oyIN.fft.ifftn(_Yp6).real\n return _Yp6",
"def DkWr(YKHO, JfyU, Xlvp, nfKA):\n YKHO.r[:, :] = M5_u(JfyU)\n YKHO.fft_forward.update_arrays(YKHO.r, YKHO.f)\n YKHO.fft_forward.execute()\n YKHO.f = YKHO.f * kLQb(-2 * mM0K * ... | [
"0.7162626",
"0.6450506",
"0.64384514",
"0.63802564",
"0.635721",
"0.6333039",
"0.6330098",
"0.6327275",
"0.6267138",
"0.62658983",
"0.62639105",
"0.62614644",
"0.62376565",
"0.6202983",
"0.6123837",
"0.6107818",
"0.6101586",
"0.6094847",
"0.60865194",
"0.6073917",
"0.6060667... | 0.70125973 | 1 |
Metodo getter para el atributo 'nombreSemaforoLink'. | def wfx4(YKHO):
return YKHO.nombreSemaforoLink | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YPM_(YKHO):\n return YKHO.nombre",
"def YPM_(YKHO):\n return YKHO.nombre",
"def lUSn(YKHO) -> str:\n return YKHO._nome_ref",
"def fkJh(YKHO):\n return YKHO.nombre",
"def fkJh(YKHO):\n return YKHO.nombre",
"def aNnT(YKHO) -> str:\n return qe4Y.get(YKHO, 'link_name')",
"def qonf(YKH... | [
"0.66837347",
"0.66837347",
"0.6470503",
"0.6398243",
"0.6398243",
"0.639207",
"0.6374245",
"0.63625854",
"0.6341411",
"0.6341411",
"0.6338511",
"0.6205188",
"0.60985595",
"0.60985595",
"0.6084244",
"0.6076966",
"0.603731",
"0.60030127",
"0.594338",
"0.5908965",
"0.5868125",
... | 0.87165153 | 0 |
Metodo setter para el atributo 'transicionesSalidaLink'. | def _XuT(YKHO, LFOF):
YKHO.transicionesSalidaLink = LFOF | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WLtJ(YKHO, QZnA):\n YKHO.__link = QZnA",
"def Sy0N(YKHO, Sy0N):\n YKHO._senha = Sy0N",
"def h7vd(YKHO, id: int, QZnA: C4DAtom) -> None:\n ...",
"def xxIR(YKHO, xxIR):\n YKHO._seniunija = xxIR",
"def wfx4(YKHO):\n return YKHO.nombreSemaforoLink",
"def QWXh(YKHO, H5ew: str, BWXx: str):\n... | [
"0.5191225",
"0.5086773",
"0.50622076",
"0.490607",
"0.4890794",
"0.48862848",
"0.486583",
"0.48576143",
"0.48251516",
"0.48128727",
"0.48041776",
"0.47635067",
"0.47502518",
"0.47272837",
"0.47272837",
"0.47272837",
"0.47272837",
"0.47272837",
"0.47272837",
"0.47272837",
"0.... | 0.8727001 | 0 |
Return string 'X' or 'O' based on input. | def sA5I():
huu4 = input('Play as X or O? [X/O]:').upper().strip()
while huu4 not in ['X', 'O']:
print('invalid input. Please enter X or O')
huu4 = input('Play as X or O?:').upper().strip()
return huu4 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pUSa(YKHO):\n if YKHO.char == 'X':\n return 'O'\n elif YKHO.char == 'O':\n return 'X'",
"def XHA1(n3f8):\n if n3f8 == 'X':\n return 'O'\n else:\n return 'X'",
"def vY1N(mLGw):\n if mLGw == 1:\n return 'O'\n elif mLGw == 2:\n return 'X'\n else:\... | [
"0.7288701",
"0.66011095",
"0.6594462",
"0.6548779",
"0.6491268",
"0.64188343",
"0.6413175",
"0.6361769",
"0.62641346",
"0.6262182",
"0.62447435",
"0.60972387",
"0.6083969",
"0.60148233",
"0.60106176",
"0.5997005",
"0.5964197",
"0.5959934",
"0.59571046",
"0.58829933",
"0.5852... | 0.60930324 | 12 |
Display a list of images in a single figure with matplotlib. | def cPsg(Yw_3, WfCS=1, k1TJ=None):
assert k1TJ is None or len(Yw_3) == len(k1TJ)
wK7l = len(Yw_3)
if k1TJ is None:
k1TJ = ['Image (%d)' % YRbF for YRbF in range(1, wK7l + 1)]
LZpg = QrM1.figure()
for exwG, (LNo8, leAC) in enumerate(zip(Yw_3, k1TJ)):
jzdc = LZpg.add_subplot(WfCS, oyIN... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def U0xK(Khnv, mWFP):\n wK7l = 9\n LZpg, MPlV = QrM1.subplots(wK7l, wK7l)\n LZpg.subplots_adjust(hspace=0.5, wspace=0.5)\n for YRbF, aNZO in enumerate(MPlV.flat):\n if YRbF >= len(Khnv):\n break\n aNZO.imshow(Khnv[YRbF])\n aNZO.set_xticks([])\n aNZO.set_yticks([])... | [
"0.8151808",
"0.79883105",
"0.7962056",
"0.7954504",
"0.7927201",
"0.789279",
"0.78883946",
"0.7888133",
"0.7881656",
"0.7865079",
"0.7848119",
"0.7848119",
"0.7848119",
"0.7848119",
"0.7846703",
"0.7835047",
"0.7811897",
"0.77983415",
"0.776424",
"0.7761967",
"0.7735033",
... | 0.0 | -1 |
Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource. | def bSEa(YKHO) -> str:
return qe4Y.get(YKHO, 'service_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bSEa(YKHO, BWXx: str):\n YKHO._properties['serviceName'] = BWXx",
"def bSEa(YKHO, BWXx: str):\n YKHO._properties['serviceName'] = BWXx",
"def zVa7(YKHO, mWFP, **B2fa):\n YKHO.add(ISu2('service', mWFP, **B2fa))",
"def bSEa(Emd4):\n raise NotImplementedError",
"def bSEa(YKHO) -> str:\n ret... | [
"0.7725456",
"0.7725456",
"0.7648689",
"0.73133236",
"0.7060382",
"0.7060382",
"0.6942006",
"0.6904749",
"0.6904749",
"0.675979",
"0.6733837",
"0.6732109",
"0.67263484",
"0.67263484",
"0.67263484",
"0.67263484",
"0.66703284",
"0.65155524",
"0.65155524",
"0.65047264",
"0.65047... | 0.6708326 | 18 |
Creates an instance of this model from a dictionary | def rQfz(Emd4, cmPJ):
if cmPJ is None:
return None
gpQv = cmPJ.get('allowCrashConsistentSnapshot')
fbDx = cmPJ.get('allowNbdsslTransportFallback')
FatF = cmPJ.get('allowVmsWithPhysicalRdmDisks')
YW0Z = cmPJ.get('enableCbtAllowed')
yLA9 = None
if cmPJ.get('vappsToVmsList') != None:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rQfz(Emd4, cmPJ):\n if cmPJ == None:\n return None\n else:\n mWFP = cmPJ.get('name')\n l8cJ = cmPJ.get('generic_id')\n Gsi3 = cmPJ.get('therauptic_uses')\n PALZ = cmPJ.get('search_score')\n return Emd4(mWFP, l8cJ, Gsi3, PALZ)",
"def rQfz(Emd4, cmPJ):\n if cm... | [
"0.83722425",
"0.8335738",
"0.8215464",
"0.8167521",
"0.8167521",
"0.81483614",
"0.8051766",
"0.80300796",
"0.8013641",
"0.79792094",
"0.79221934",
"0.7919166",
"0.79183745",
"0.79125935",
"0.7906434",
"0.79004663",
"0.78967476",
"0.7886129",
"0.78760797",
"0.78543913",
"0.78... | 0.0 | -1 |
returns a list of fields in the results of dasquery (must be in cache) | def PrRx(YKHO, julh):
fuTU = julh.mongo_query.copy()
fuTU['filters'] = {}
julh = E6Wr(fuTU)
tc9K = []
if julh.mongo_query:
for rdlD in YKHO.dasmgr.get_from_cache(julh, idx=0, limit=10):
tc9K += YKHO.cms_rep.get_result_fieldlist(rdlD)
return list(set(tc9K)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def acO1(YKHO, mWFP):\n xDcj = 'SELECT * FROM {name}'.format(name=mWFP)\n N1p7 = YKHO.connection.execute(xDcj)\n return list(map(lambda WKvO: WKvO[0], N1p7.description))",
"def cjKo(YKHO) -> x1iM[dict]:\n return YKHO.s.get(endpoint='get_result_fields')",
"def QckB(YKHO):\n return YKHO._data.keys... | [
"0.70671684",
"0.6657098",
"0.6624331",
"0.6599941",
"0.65882885",
"0.6504154",
"0.6475712",
"0.6376505",
"0.6359392",
"0.63512814",
"0.63512814",
"0.6312205",
"0.6279366",
"0.6276385",
"0.62728435",
"0.6270535",
"0.6259246",
"0.6238998",
"0.6227236",
"0.622302",
"0.620561",
... | 0.84546614 | 0 |
Parses the given identifier and returns the corresponding DatasetIdentifier. | def hfK9(Emd4, Ilxn: Union[str, 'DatasetIdentifier']) -> 'DatasetIdentifier':
if isinstance(Ilxn, HXla):
return Ilxn
U6dZ, qcz6, DpZH = Gs92(Ilxn)
return Emd4(dataset_slug=qcz6, team_slug=U6dZ, version=DpZH) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ksje(YKHO, da7w: _Element, bAfW: str):\n YKHO.dataset_id = 'undefined'\n Wxnj = I7hk.try_get_text_from_xml_element(elem='//gmd:MD_Metadata/gmd:identificationInfo/{}/gmd:citation/gmd:CI_Citation/gmd:identifier/gmd:MD_Identifier/gmd:code/gco:CharacterString'.format(bAfW), xml_elem=da7w)\n if Wxnj is not... | [
"0.6705479",
"0.6232948",
"0.6206398",
"0.6187447",
"0.6181127",
"0.612961",
"0.60646266",
"0.59628296",
"0.5865545",
"0.5795425",
"0.577319",
"0.5757131",
"0.5739857",
"0.5735554",
"0.56763154",
"0.5651877",
"0.5645013",
"0.56415796",
"0.5630241",
"0.5629966",
"0.5613195",
... | 0.78857714 | 0 |
Adds cards to dealing pile | def E2_E(YKHO):
for YRbF in range(5):
for vC9B in YKHO.cards:
YKHO.dealingPile.push(vC9B)
YKHO.dealingPile.shuffle() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BXQV(YKHO):\n Mb6v = YKHO.deck * 5\n for mLGw in Mb6v:\n YKHO.dealingPile.push(mLGw)\n YKHO.shuffle_dealingPile()",
"def H2v5(YKHO, dxhl):\n YKHO.cards.append(dxhl)\n YKHO.savePile()",
"def NGNE(YKHO):\n for oyg0 in YKHO.game.players:\n YKHO.discard_pile += oyg0.hand\n ... | [
"0.7551626",
"0.743151",
"0.7302279",
"0.72191423",
"0.7201217",
"0.71947473",
"0.71501",
"0.71317154",
"0.7116203",
"0.7087478",
"0.7048488",
"0.7025525",
"0.70185894",
"0.70144325",
"0.6967844",
"0.6955369",
"0.69541353",
"0.6950775",
"0.69434804",
"0.69426143",
"0.6934078"... | 0.7841553 | 0 |
Normalize image values to [0,1] | def Ekx3(VXjJ):
T8H5, Np5D = (float(oyIN.min(VXjJ)), float(oyIN.max(VXjJ)))
return (VXjJ - T8H5) / (Np5D - T8H5) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NkkI(LNo8):\n riv7 = -1000.0\n Vbtr = 400.0\n LNo8 = (LNo8 - riv7) / (Vbtr - riv7)\n LNo8[LNo8 > 1] = 1.0\n LNo8[LNo8 < 0] = 0.0\n LNo8 -= 0.5\n return LNo8",
"def NkkI(VXjJ):\n return VXjJ.astype(float) / 255.0",
"def NkkI(VXjJ):\n return VXjJ.astype(float) / 255.0",
"def NkkI... | [
"0.83774424",
"0.8340996",
"0.8340996",
"0.8317602",
"0.8307006",
"0.8301295",
"0.82762223",
"0.82687783",
"0.8234892",
"0.8222723",
"0.8212266",
"0.81866205",
"0.8168828",
"0.8147826",
"0.81388515",
"0.8129669",
"0.81225306",
"0.8118405",
"0.81159556",
"0.8112389",
"0.809772... | 0.78774303 | 35 |
Sets the failed of this WebhookAttributes. | def _j4m(YKHO, _j4m):
YKHO._failed = _j4m | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pf3D(YKHO):\n if not YKHO.is_failed():\n raise AttributeError(\"tag 'failed' not set\")\n return YKHO._value",
"def pf3D(YKHO):\n if not YKHO.is_failed():\n raise AttributeError(\"tag 'failed' not set\")\n return YKHO._value",
"def pf3D(YKHO):\n if not YKHO.is_failed():\n ... | [
"0.6907317",
"0.6907317",
"0.6907317",
"0.6907317",
"0.6907317",
"0.6728635",
"0.6652556",
"0.6652556",
"0.6491366",
"0.6446462",
"0.64090544",
"0.6358415",
"0.6340063",
"0.6334485",
"0.6334485",
"0.6331898",
"0.6287249",
"0.6287249",
"0.62552387",
"0.62552387",
"0.62552387",... | 0.7410132 | 0 |
Sets the verification_token of this WebhookAttributes. | def UETc(YKHO, UETc):
YKHO._verification_token = UETc | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def l5vl(YKHO, eOtH, aevO=None):\n YKHO._verification_token = eOtH\n YKHO._st = aevO",
"def rK2o(YKHO, rK2o):\n YKHO._verification_status = rK2o",
"def N8xH(YKHO, N8xH):\n YKHO._verification_message = N8xH",
"def wIQQ(YKHO, wIQQ):\n YKHO._verification_result = wIQQ",
"def qtpl(YKHO, qtpl):\n... | [
"0.67009383",
"0.6497102",
"0.59375423",
"0.58252573",
"0.5641647",
"0.55967283",
"0.55967283",
"0.55718243",
"0.5570724",
"0.5556592",
"0.5552944",
"0.54959524",
"0.54554886",
"0.54456097",
"0.5428988",
"0.5421056",
"0.5413763",
"0.53371626",
"0.5329964",
"0.5329964",
"0.528... | 0.81396884 | 0 |
Sets the response_version of this WebhookAttributes. | def oM2b(YKHO, oM2b):
BbPm = ['v1', 'v2']
if oM2b not in BbPm:
raise ValueError('Invalid value for `response_version` ({0}), must be one of {1}'.format(oM2b, BbPm))
YKHO._response_version = oM2b | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Hdpl(YKHO, geh0):\n RQ6U = geh0['ResponseMetadata'].get('RequestId')\n if RQ6U:\n YKHO.event_id = RQ6U\n YKHO.resource['metadata']['Retry Attempts'] = geh0['ResponseMetadata']['RetryAttempts']\n YKHO.resource['metadata']['Status Code'] = geh0['ResponseMetadata']['HTTPStatusCode']",
"def aJ... | [
"0.57831955",
"0.56880033",
"0.56104606",
"0.5601652",
"0.5600326",
"0.5567322",
"0.5529766",
"0.5485542",
"0.5485542",
"0.5476982",
"0.5464184",
"0.5458092",
"0.5450288",
"0.5422995",
"0.54132754",
"0.54132754",
"0.54132754",
"0.5375231",
"0.5375231",
"0.53679705",
"0.536628... | 0.7425013 | 0 |
Returns the string representation of the model | def gTzM(YKHO):
return CgYo.pformat(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.0 | -1 |
Generates upload path for FileField | def D260(KAOR, Ux0P):
return u'uploads/temp/%s' % Ux0P | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aSzP(YKHO, Ux0P):\n raise NotImplementedError",
"def CpYb(KAOR, Ux0P):\n import posixpath\n return 'img/portfolio/%s/%s' % (KAOR.slug, Ux0P)",
"def Us_T(KAOR, Ux0P):\n L42E = getattr(KAOR, 'design', KAOR)\n jNha = 'plans' if gCuF.LEGACY_URLS else 'design'\n return '{0}/{1}/{2}/{3}'.format... | [
"0.75413895",
"0.74345106",
"0.7327897",
"0.72481275",
"0.7223958",
"0.7209213",
"0.7155578",
"0.71281874",
"0.71125114",
"0.7074032",
"0.70693845",
"0.70581985",
"0.7052851",
"0.7034898",
"0.6971846",
"0.69610846",
"0.6870292",
"0.68167603",
"0.677504",
"0.6765912",
"0.67560... | 0.7674878 | 0 |
Cleans up a slug by removing slug separator characters that occur at the beginning or end of a slug. | def FTmO(BWXx):
Rgkd = {'_': ' ', '-': ' : '}
for haVx, JDph in Rgkd.iteritems():
BWXx = ZbWC.sub(haVx, JDph, BWXx)
return BWXx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nuSZ(YKHO, BWXx):\n lKuz = '(?:-|%s)' % ZbWC.escape(YKHO.separator)\n BWXx = ZbWC.sub('%s+' % lKuz, YKHO.separator, BWXx)\n return ZbWC.sub('^%s+|%s+$' % (lKuz, lKuz), '', BWXx)",
"def nuSZ(BWXx, g8rx=None):\n if g8rx == '-' or not g8rx:\n lKuz = '-'\n else:\n lKuz = '(?:-|%s)' %... | [
"0.80457056",
"0.77792794",
"0.77792794",
"0.7708269",
"0.7708269",
"0.72662956",
"0.7193142",
"0.7151806",
"0.7099119",
"0.7073012",
"0.70379144",
"0.7026115",
"0.6986569",
"0.69865227",
"0.6985979",
"0.69845057",
"0.69620496",
"0.6949263",
"0.69123346",
"0.6900445",
"0.6894... | 0.0 | -1 |
returns the coresponding zipcode from the goJSON data, else 'unknown' | def Bs33(FDPT, QnmL):
AU8u = PvyL(FDPT, QnmL)
for XP5J in boCQ:
if XP5J[0].contains(AU8u):
return XP5J[1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nzyc():\n nPrm = G4JS.get('http://ip-api.com/json').json()\n return nPrm['zip']",
"def LFQU(Op6c):\n if not Op6c['Post Code'] is None:\n hlel = Op6c['Post Code']\n elif not Op6c['Zip Code'] is None:\n hlel = Op6c['Zip Code']\n else:\n hlel = None\n return hlel",
"def ... | [
"0.77587414",
"0.7123468",
"0.6800364",
"0.6748852",
"0.6494433",
"0.64387584",
"0.64008725",
"0.6347923",
"0.6299009",
"0.6283757",
"0.62749684",
"0.626722",
"0.6264924",
"0.6241547",
"0.6198092",
"0.61942077",
"0.61942077",
"0.61942077",
"0.6067755",
"0.6045401",
"0.6022023... | 0.63480204 | 7 |
Draws grid divided with blue lines into 3 x 3 squares | def QMDT(YKHO):
for YRbF in range(10):
qfpW = 'blue' if YRbF % 3 == 0 else 'light gray'
TVTK = 3 if YRbF % 3 == 0 else 1
nJ9F = NjiM + YRbF * qSsV
nxyw = NjiM
o4D3 = NjiM + YRbF * qSsV
si3g = CrFC - NjiM
YKHO.canvas.create_line(nJ9F, nxyw, o4D3, si3g, fill=qfp... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tlUU():\n yzQ0 = 3\n for r845 in range(y4m8):\n LVAh = r845 * vM6o\n for YRbF in range(int(y4m8 * 1.5)):\n WKvO = YRbF * vM6o\n if r845 != 0:\n a9eO.draw.rect(Vjhr, JH9Z, [WKvO + 10, LVAh - yzQ0 // 2, vM6o - 20, yzQ0])\n if YRbF != 0:\n ... | [
"0.8352738",
"0.8207783",
"0.8197545",
"0.8169966",
"0.81121004",
"0.8108412",
"0.8045587",
"0.7935559",
"0.78647095",
"0.7851542",
"0.7850163",
"0.784044",
"0.7785191",
"0.77328485",
"0.771436",
"0.77063614",
"0.7656765",
"0.76436883",
"0.7583841",
"0.75800884",
"0.75568205"... | 0.8053536 | 6 |
Draws grid divided with blue lines into 3 x 3 squares | def QMDT(YKHO, Cs6h):
for YRbF in range(10):
qfpW = 'blue' if YRbF % 3 == 0 else 'light gray'
TVTK = 3 if YRbF % 3 == 0 else 1
nJ9F = NjiM + YRbF * qSsV
nxyw = NjiM
o4D3 = NjiM + YRbF * qSsV
si3g = CrFC - NjiM
Cs6h.create_line(nJ9F, nxyw, o4D3, si3g, fill=qfpW... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tlUU():\n yzQ0 = 3\n for r845 in range(y4m8):\n LVAh = r845 * vM6o\n for YRbF in range(int(y4m8 * 1.5)):\n WKvO = YRbF * vM6o\n if r845 != 0:\n a9eO.draw.rect(Vjhr, JH9Z, [WKvO + 10, LVAh - yzQ0 // 2, vM6o - 20, yzQ0])\n if YRbF != 0:\n ... | [
"0.8352738",
"0.8207783",
"0.8197545",
"0.8169966",
"0.81121004",
"0.8108412",
"0.8053536",
"0.8045587",
"0.7935559",
"0.78647095",
"0.7850163",
"0.784044",
"0.7785191",
"0.77328485",
"0.771436",
"0.77063614",
"0.7656765",
"0.76436883",
"0.7583841",
"0.75800884",
"0.75568205"... | 0.7851542 | 10 |
Gets the access control policy for a resource. Returns an empty policy if the resource exists but does not have a policy set. | def zJtK(YKHO, QePW, QpfX):
QpfX.set_code(IYqO.StatusCode.UNIMPLEMENTED)
QpfX.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aEAQ(YKHO, ZGE9, Eorv):\n S0MI.debug('Retrieving IAM policy, model_name = %s, resource = %s', ZGE9, Eorv)\n rUYY = YKHO.config.model_manager\n oCsa, x6hi = rUYY.get(ZGE9)\n with oCsa as cuiw:\n return x6hi.get_iam_policy(cuiw, Eorv)",
"def aEAQ(YKHO, Eorv, xAU6=None):\n QePW = N1Ai.GetI... | [
"0.68544084",
"0.6529663",
"0.65167356",
"0.6456203",
"0.64557654",
"0.6446032",
"0.63697064",
"0.6367704",
"0.63345635",
"0.63122994",
"0.6308466",
"0.6271053",
"0.62682843",
"0.6240955",
"0.61948776",
"0.6180524",
"0.6180524",
"0.6141597",
"0.612859",
"0.61174005",
"0.61174... | 0.0 | -1 |
Creates a protos.PhysicalState view into all internal data. Expensive. Consider one of the other accessors, which are faster. For example, if you want to iterate over all | def zoLw(YKHO) -> oFZE.PhysicalState:
for e44p, LEXu in zip(YKHO._y_entities(), YKHO._proto_state.entities):
LEXu.x, LEXu.y, LEXu.vx, LEXu.vy, LEXu.heading, LEXu.spin, LEXu.fuel, LEXu.throttle, PLcI, HmgC = e44p
LEXu.attached_to = YKHO._index_to_name(PLcI)
LEXu.broken = bool(HmgC)
return... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zoLw(YKHO) -> oFZE.PhysicalState:\n DyJs = oFZE.PhysicalState()\n DyJs.CopyFrom(YKHO._proto_state)\n for e44p, LEXu in zip(YKHO, DyJs.entities):\n LEXu.x, LEXu.y, LEXu.vx, LEXu.vy, LEXu.heading, LEXu.spin, LEXu.fuel, LEXu.throttle, LEXu.landed_on, LEXu.broken = (e44p.x, e44p.y, e44p.vx, e44p.vy... | [
"0.6426996",
"0.62616104",
"0.62436515",
"0.6216138",
"0.60735273",
"0.601293",
"0.5968429",
"0.5968036",
"0.59383035",
"0.59073395",
"0.5885419",
"0.5866428",
"0.5841028",
"0.58319926",
"0.58065295",
"0.5803107",
"0.5791769",
"0.57563967",
"0.57539475",
"0.5748793",
"0.57446... | 0.64319617 | 0 |
This function creates an empty hash table and points to null | def IP5w():
from hashtable import HashTable
E1Cd = HashTable()
return E1Cd | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def A5VI():\n return H8Ru()",
"def APoJ():\n return H8Ru",
"def ERgW(YKHO):\n YKHO.hashtable = []\n for YRbF in range(YKHO.m):\n YKHO.hashtable.append([])",
"def Y7Bk(YKHO):\n for YRbF in range(len(YKHO.hash_table)):\n YKHO.hash_table[YRbF] = None\n YKHO.table_size = 0",
"de... | [
"0.86497635",
"0.84327567",
"0.73239386",
"0.7282118",
"0.7243388",
"0.7200216",
"0.7192415",
"0.709394",
"0.7037965",
"0.6824545",
"0.68216777",
"0.6687343",
"0.66395324",
"0.6635853",
"0.6633313",
"0.66186213",
"0.6599775",
"0.65319693",
"0.6479158",
"0.64734966",
"0.640778... | 0.67597556 | 11 |
Verify internal state variables have been set. False means not used, None means error | def pi2y(YKHO):
assert YKHO.x is not None, 'self.x not set'
assert YKHO.y is not None, 'self.y not set'
assert YKHO.z is not None, 'self.z not set' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _RYw(YKHO):\n YKHO.pre_state_data",
"def yD75(YKHO):\n assert YKHO.num_locations != None\n assert YKHO.num_edges != None\n assert YKHO.distances != None\n assert YKHO.num_people != None\n assert YKHO.locations != None\n for hksT in YKHO.locations:\n assert hksT != None\n assert... | [
"0.74815917",
"0.7003917",
"0.68206716",
"0.66594964",
"0.66594964",
"0.66594964",
"0.66594964",
"0.66594964",
"0.66594964",
"0.66594964",
"0.66594964",
"0.66594964",
"0.66594964",
"0.66594964",
"0.66594964",
"0.66594964",
"0.66594964",
"0.66594964",
"0.66594964",
"0.66594964",... | 0.706465 | 2 |
Set up the basic layout of the PyQT GUI. | def _CrY(YKHO):
vQ4U = uSmV()
for H5ew in ['x_offset', 'y_offset', 'fix_window']:
KCHu = YKHO.sliders[H5ew]
_aa8 = C3c5()
_aa8.addWidget(KCHu.label)
_aa8.addWidget(KCHu.slider)
_aa8.setAlignment(KCHu.slider, uaAZ.AlignVCenter)
vQ4U.addLayout(_aa8)
_aa8 = C3c5(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def woCU(YKHO):\n YKHO.setWindowTitle('Music Downloader')\n YKHO.setGeometry(0, 0, 800, 494)\n YKHO.mbox = C3c5()\n YKHO.hbox = uSmV()\n YKHO.hbtnbox = uSmV()",
"def UGmZ(YKHO):\n YKHO.top_level_layout = x5x0.QVBoxLayout()\n YKHO.setLayout(YKHO.top_level_layout)\n YKHO.main_layout = x5x0.... | [
"0.8003812",
"0.7919017",
"0.7687621",
"0.76428777",
"0.76154387",
"0.7604423",
"0.7583222",
"0.7536543",
"0.75303286",
"0.7488612",
"0.74763393",
"0.7473656",
"0.7443676",
"0.74400413",
"0.7435465",
"0.7422708",
"0.741632",
"0.73859155",
"0.73590887",
"0.73273045",
"0.729152... | 0.69340026 | 54 |
Redraw the figure to show current gaze and what's on the screen. | def udoe(YKHO, NcI_):
AIoa = oyIN.array(NcI_['gaze'])
gQVb = oyIN.array([YKHO.local_eyeopt['x_offset'], YKHO.local_eyeopt['y_offset']])
AIoa += gQVb
YKHO.plot_objects.gaze.center = AIoa
YKHO.plot_objects.fix.window.radius = YKHO.local_eyeopt['fix_window']
YKHO.fig.canvas.restore_region(YKHO.axes... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xoyg(YKHO):\n YKHO._draw_graph()\n YKHO._draw_dot_plots()\n qjJM.draw()",
"def gCKv(YKHO):\n YKHO.cur_surf = None",
"def gCKv(YKHO):\n pass",
"def gCKv(YKHO):\n pass",
"def gCKv(YKHO):\n raise NotImplementedError('This function is not written yet. Please put in an issue on the gith... | [
"0.75822484",
"0.74444866",
"0.7418197",
"0.7365494",
"0.7362591",
"0.7352853",
"0.7352238",
"0.7324596",
"0.7173051",
"0.7173051",
"0.7131179",
"0.7098939",
"0.70831496",
"0.7047019",
"0.70394146",
"0.702045",
"0.69868374",
"0.6967163",
"0.69486785",
"0.6939252",
"0.6939252"... | 0.658879 | 52 |
Initialize an empty board. | def FIMM(YKHO):
YKHO.rows = [[' ', ' ', ' '], [' ', ' ', ' '], [' ', ' ', ' ']] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yqe1(YKHO):\n YKHO.board = [[None] * YKHO.board_size for bGrB in range(YKHO.board_size)]",
"def A6EF(YKHO):\n YKHO.board = oyIN.full(pow(YKHO.size + 2, 2), pqZk, dtype='U')\n for rdlD in range(1, YKHO.size + 1):\n yKcO = YKHO.row_start(rdlD)\n YKHO.board[yKcO:yKcO + YKHO.size] = KAvf\n... | [
"0.83806026",
"0.81487995",
"0.81341654",
"0.8086628",
"0.8073725",
"0.8048824",
"0.7950202",
"0.7873972",
"0.78344584",
"0.7814845",
"0.7810945",
"0.7766831",
"0.7761826",
"0.7639887",
"0.76316875",
"0.7623897",
"0.76231694",
"0.76118517",
"0.7589975",
"0.75880975",
"0.75880... | 0.0 | -1 |
Return which token type won ('X' or 'O') or None if no one has won yet. | def RGM7(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aUCC(YKHO, QePW):\n GMPf = sorted(((a1PO.estimate_type(QePW), exwG) for exwG, a1PO in YKHO.tokens.items()))\n return GMPf[0][1] if len(GMPf) else None",
"def sOU6(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'token_type')",
"def sOU6(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'token_type')",
... | [
"0.65829825",
"0.63987464",
"0.63987464",
"0.6327959",
"0.63270706",
"0.6191044",
"0.61517185",
"0.6123099",
"0.6043309",
"0.5992534",
"0.5992534",
"0.59508294",
"0.5872596",
"0.5784223",
"0.5777864",
"0.5752607",
"0.5745611",
"0.5745611",
"0.5745611",
"0.5745611",
"0.5745611... | 0.0 | -1 |
Return a string representation of the board. Should be three rows with each cell separated by a '|'. X| | |X|O | | | def zAg0(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lMxb(YKHO):\n vIwR = ''\n for WKvO in range(3):\n for LVAh in range(3):\n if YKHO.board[WKvO][LVAh] == 0:\n vIwR += ' '\n elif YKHO.board[WKvO][LVAh] == 1:\n vIwR += 'X'\n else:\n vIwR += 'O'\n if LVAh < 2:\n ... | [
"0.86657846",
"0.8439246",
"0.83838683",
"0.8379922",
"0.8368736",
"0.8305897",
"0.8302664",
"0.8283517",
"0.8247426",
"0.8188273",
"0.8170653",
"0.81678665",
"0.8144453",
"0.81277317",
"0.8125876",
"0.81031334",
"0.8103095",
"0.8100681",
"0.8075588",
"0.8066255",
"0.8062645"... | 0.0 | -1 |
yield the field values in the order given by __slots__ | def Vs4Q(YKHO):
for mWFP in YKHO.__slots__:
yield getattr(YKHO, mWFP) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TnMw(YKHO):\n for Jyyj in YKHO.FIELDS:\n yield (Jyyj, getattr(YKHO, Jyyj))",
"def rr5x(YKHO):\n for rdlD in YKHO._lvl:\n for Jyyj in rdlD:\n yield Jyyj",
"def Vs4Q(YKHO):\n LaVg = dict.copy({WKvO: getattr(YKHO, WKvO) for WKvO in YKHO._fields})\n LaVg['mem_a'] = dict.cop... | [
"0.73711246",
"0.6829583",
"0.6815349",
"0.67849076",
"0.67739874",
"0.67544895",
"0.6699421",
"0.66790533",
"0.6658346",
"0.6618337",
"0.6615665",
"0.6605074",
"0.6596293",
"0.6589332",
"0.65875447",
"0.658322",
"0.65809315",
"0.65735376",
"0.65674883",
"0.6553385",
"0.65504... | 0.64206433 | 27 |
Helper method which checks if user have proper right to access url. User can't edit/delete other user record except if user is admin. | def wZAH(FYKK):
@zaGL(FYKK)
def h3Xc(*qIxc, **B2fa):
DUh2()
QCKE = B2fa['user_id']
RZVq = _Zgp()
if RZVq['user_id'] != QCKE and RZVq['role'] != 'admin':
return GtGV({'error': "You don't have permission for this action!"}, 403)
else:
return FYKK(*q... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def l4un(CBIr):\n if not CBIr.is_admin:\n eTsH(403)",
"def JL1u(YKHO, uJjO=None):\n return YKHO.id == int(uJjO) or YKHO.is_admin",
"def hO62(YKHO, CBIr):\n if getattr(CBIr, 'is_admin', False):\n return True\n elif YKHO.is_managed:\n return False\n else:\n return YKHO.... | [
"0.7294139",
"0.7230504",
"0.7202726",
"0.7121958",
"0.7105906",
"0.7105906",
"0.7105906",
"0.7096122",
"0.7096122",
"0.7096122",
"0.7096122",
"0.7072936",
"0.6997596",
"0.6992264",
"0.6976083",
"0.69715273",
"0.69645196",
"0.6947228",
"0.6940183",
"0.69386077",
"0.69249266",... | 0.0 | -1 |
Makes a Flask response with a JSON encoded body | def GtGV(nPrm, Wxnj, MOPg=None):
_hkX = Yxsy(pz3A(nPrm), Wxnj)
_hkX.headers.extend(MOPg or {})
return _hkX | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pz3A(YEnM):\n return WsL5.Response(qQXR.dumps(YEnM), mimetype='application/json')",
"def VmfM(hGN5):\n return oGir(qQXR.dumps(hGN5), content_type='application/json')",
"def FnVX():\n geh0.content_type = 'application/json'",
"def pz3A(d7pR):\n if d7pR is None:\n d7pR = {}\n JBvl = 20... | [
"0.77479804",
"0.7446942",
"0.7404773",
"0.73445016",
"0.73317873",
"0.72641826",
"0.72294855",
"0.72164625",
"0.72161657",
"0.71853954",
"0.70946145",
"0.7030662",
"0.6979248",
"0.69721335",
"0.69580597",
"0.6952866",
"0.6936205",
"0.692417",
"0.692035",
"0.6918515",
"0.6893... | 0.66182506 | 40 |
Return the result from adding one Vector2 to another Vector2. This also supports adding a float to a Vector2. | def FOdN(YKHO, Elif):
if isinstance(Elif, DpX9):
return DpX9(YKHO.x + Elif.x, YKHO.y + Elif.y)
else:
return DpX9(YKHO.x + Elif, YKHO.y + Elif) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FOdN(YKHO, jlSq):\n bUZ8 = lNLu(YKHO.x + jlSq.x, YKHO.y + jlSq.y, YKHO.z + jlSq.z)\n return bUZ8",
"def FOdN(YKHO, ZoT5):\n PImZ = YKHO._x + ZoT5._x\n xukM = YKHO._y + ZoT5._y\n return lNLu((PImZ, xukM))",
"def FOdN(YKHO, Elif):\n if isinstance(Elif, DpX9):\n if YKHO.__class__ is E... | [
"0.78299075",
"0.78042495",
"0.7782016",
"0.7669363",
"0.7639288",
"0.76128864",
"0.7576853",
"0.75509775",
"0.75381553",
"0.7524149",
"0.7522745",
"0.74778426",
"0.74519277",
"0.74338996",
"0.7424176",
"0.74232817",
"0.7392854",
"0.73669934",
"0.73669934",
"0.73669934",
"0.7... | 0.8094075 | 0 |
Return the result from multiplying a Vector2 by a scalar. | def E_tF(YKHO, Elif):
return DpX9(YKHO.x * float(Elif), YKHO.y * float(Elif)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E_tF(YKHO, hAEw):\n return lNLu((YKHO._x * hAEw, YKHO._y * hAEw))",
"def E_tF(YKHO, hAEw: Number) -> lNLu:\n return lNLu(YKHO._x * hAEw, YKHO._y * hAEw)",
"def E_tF(YKHO, hAEw: float) -> 'Vector':\n return lNLu(YKHO._x * hAEw, YKHO._y * hAEw)",
"def wTxu(Ty9i, hAEw):\n return (Ty9i[0] * hAEw,... | [
"0.7796557",
"0.7783408",
"0.76448804",
"0.75799215",
"0.7499613",
"0.74218416",
"0.73290473",
"0.73111576",
"0.7289181",
"0.7286672",
"0.72830474",
"0.7271402",
"0.72284573",
"0.72257566",
"0.7202152",
"0.71947926",
"0.7159931",
"0.715317",
"0.71160644",
"0.7094431",
"0.7084... | 0.7170201 | 16 |
Return the result from multiplying a Vector2 by a scalar. | def OQEa(YKHO, Elif):
return DpX9(YKHO.x * float(Elif), YKHO.y * float(Elif)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E_tF(YKHO, hAEw):\n return lNLu((YKHO._x * hAEw, YKHO._y * hAEw))",
"def E_tF(YKHO, hAEw: Number) -> lNLu:\n return lNLu(YKHO._x * hAEw, YKHO._y * hAEw)",
"def E_tF(YKHO, hAEw: float) -> 'Vector':\n return lNLu(YKHO._x * hAEw, YKHO._y * hAEw)",
"def wTxu(Ty9i, hAEw):\n return (Ty9i[0] * hAEw,... | [
"0.7796557",
"0.7783408",
"0.76448804",
"0.75799215",
"0.7499613",
"0.74218416",
"0.73290473",
"0.73111576",
"0.7289181",
"0.7286672",
"0.72830474",
"0.7271402",
"0.72284573",
"0.72257566",
"0.7202152",
"0.71947926",
"0.7170201",
"0.7159931",
"0.715317",
"0.71160644",
"0.7094... | 0.0 | -1 |
Return the result from dividing a Vector2 by a scalar. | def HVh8(YKHO, Elif):
return DpX9(YKHO.x / float(Elif), YKHO.y / float(Elif)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M9fH(YKHO, hAEw):\n return YKHO.division_from_scalar(hAEw)",
"def f3NA(YKHO, hAEw: int) -> lNLu:\n return lNLu(YKHO._x // hAEw, YKHO._y // hAEw)",
"def IoCG(YKHO):\n hFiK = YKHO.vec1.divide(2)\n YKHO.assertEqual(getattr(hFiK, 'x0'), 6 / 2)\n hFiK = YKHO.vec1.divide(0)\n YKHO.assertEqual(g... | [
"0.7200979",
"0.71987474",
"0.7076359",
"0.70577663",
"0.7035868",
"0.7029022",
"0.69281775",
"0.6864254",
"0.686369",
"0.68630767",
"0.6820883",
"0.6739394",
"0.6721145",
"0.6686476",
"0.66355634",
"0.6617802",
"0.6578645",
"0.6564474",
"0.6561903",
"0.653978",
"0.6524489",
... | 0.6293756 | 36 |
Return the result of the unary + operator. | def En_H(YKHO):
return DpX9(YKHO.x, YKHO.y) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AhyO(YKHO, Q6kx):\n return '(+%s)' % YKHO.handle_node(Q6kx.expr)",
"def FOdN(YKHO, Elif):\n return YKHO._two_var_op(Elif, '+')",
"def jWLi(YKHO):\n return YKHO.star(True)",
"def eKvm(YKHO, Q6kx, d1jk=False):\n if d1jk:\n return None\n return Q6kx.expr.accept(YKHO)",
"def jWLi(YKHO... | [
"0.7495727",
"0.71942246",
"0.7188591",
"0.7146956",
"0.71110463",
"0.7056586",
"0.70456487",
"0.6943128",
"0.68835765",
"0.68831575",
"0.68611634",
"0.68550205",
"0.6850245",
"0.6830815",
"0.67890936",
"0.67890936",
"0.67890936",
"0.67890936",
"0.67890936",
"0.67890936",
"0.... | 0.0 | -1 |
Return the length of the Vector2. | def u54L(YKHO):
return epAf.sqrt(YKHO.x * YKHO.x + YKHO.y * YKHO.y) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Nx_Y(YKHO):\n return GYhQ.b2Vec2___Length(YKHO)",
"def yall(YKHO):\n iArr = YKHO.n2.get_position() - YKHO.n1.get_position()\n return PZyS(BJ1H(iArr, iArr))",
"def yall(YKHO):\n iArr = YKHO.n2.get_position() - YKHO.n1.get_position()\n return PZyS(BJ1H(iArr, iArr))",
"def fMD5(YKHO):\n re... | [
"0.85876894",
"0.81179154",
"0.81179154",
"0.7825781",
"0.7736963",
"0.7720064",
"0.7705524",
"0.7646586",
"0.763697",
"0.7587237",
"0.7541802",
"0.74563944",
"0.7429327",
"0.7423378",
"0.7416166",
"0.7408425",
"0.7403909",
"0.73839694",
"0.7373419",
"0.73722696",
"0.7338228"... | 0.7334094 | 21 |
Return the square of the length of the Vector2. | def MZ4M(YKHO):
return YKHO.x * YKHO.x + YKHO.y * YKHO.y | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oJ0P(YKHO):\n return GYhQ.b2Vec2___LengthSquared(YKHO)",
"def Nx_Y(YKHO):\n return GYhQ.b2Vec2___Length(YKHO)",
"def u54L(YKHO):\n WKvO, LVAh = YKHO._v\n return PZyS(WKvO * WKvO + LVAh * LVAh)",
"def mKk0(YKHO) -> float:\n ...",
"def u54L(YKHO):\n return PZyS(YKHO.x * YKHO.x + YKHO.y ... | [
"0.81685245",
"0.7800467",
"0.7694872",
"0.75318456",
"0.7517255",
"0.7513721",
"0.749198",
"0.749198",
"0.74801576",
"0.73869157",
"0.73304564",
"0.7322353",
"0.73190284",
"0.72863877",
"0.72748667",
"0.722178",
"0.72081214",
"0.71445674",
"0.7100638",
"0.7047733",
"0.704610... | 0.8051214 | 1 |
Return the square of the distance between two vectors. | def Dq5G(YKHO, Elif):
return (Elif - YKHO).squaredLength() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ayfi(jzdc: Vector, Fg_i: Vector) -> float:\n return epAf.sqrt((jzdc._x - Fg_i._x) ** 2 + (jzdc._y - Fg_i._y) ** 2)",
"def Re27(jzdc, Fg_i):\n jzdc = oyIN.array(jzdc)\n Fg_i = oyIN.array(Fg_i)\n return oyIN.linalg.norm(jzdc - Fg_i)",
"def Ayfi(YKHO, hQHm, jlSq):\n return epAf.sqrt(oyIN.sum(oy... | [
"0.82339704",
"0.8008941",
"0.7983546",
"0.7939609",
"0.78381306",
"0.78374827",
"0.78242093",
"0.78153235",
"0.7764362",
"0.7726243",
"0.7708412",
"0.7677105",
"0.76602256",
"0.765052",
"0.765052",
"0.76475805",
"0.7625488",
"0.7620359",
"0.7607488",
"0.7606709",
"0.75891906... | 0.0 | -1 |
Return the cross product of two vectors. | def XHzM(YKHO, Elif):
return YKHO.x * Elif.y - YKHO.y * Elif.x | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dcUW(WKvO, LVAh):\n assert WKvO.shape[0] == 3\n assert LVAh.shape[0] == 3\n return oyIN.expand_dims(oyIN.cross(WKvO[:, 0], LVAh[:, 0]), axis=-1)",
"def WHx2(lSjb, v8Fa):\n Aofo = VNqG(3)\n return hmBT(lSjb, v8Fa, Aofo)",
"def WHx2(hQHm, jlSq):\n return hQHm[0] * jlSq[1] - hQHm[1] * jlSq[0... | [
"0.8368665",
"0.83375907",
"0.83080226",
"0.8273145",
"0.82209355",
"0.8157431",
"0.81455404",
"0.81010556",
"0.8012054",
"0.79996794",
"0.7987026",
"0.79799694",
"0.7971634",
"0.7915366",
"0.7908339",
"0.7880649",
"0.7878868",
"0.7874334",
"0.78740704",
"0.7851403",
"0.78316... | 0.7032889 | 61 |
Return True if the Vector2 is zero length. | def xcLM(YKHO):
return YKHO.squaredLength() < 0.001 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lsmZ(YKHO) -> 'bool':\n return FZrS.vectorvectorSL_empty(YKHO)",
"def zdho(YKHO):\n if abs(YKHO.length()) < 1e-14:\n return False\n else:\n return True",
"def lsmZ(YKHO) -> 'bool':\n return FZrS.vectorvectorSS_empty(YKHO)",
"def lsmZ(YKHO) -> 'bool':\n return FZrS.vectorSL_em... | [
"0.73495895",
"0.73450124",
"0.73192436",
"0.73096013",
"0.72789717",
"0.7225511",
"0.7214251",
"0.71860147",
"0.7183375",
"0.7153561",
"0.7150608",
"0.7137432",
"0.713616",
"0.7127123",
"0.71101993",
"0.7097298",
"0.7096824",
"0.7083727",
"0.70692337",
"0.70493275",
"0.70395... | 0.743016 | 0 |
Generate a random vector within a box region. This uses the python random module as the random generator. | def Opv1(min, max):
return DpX9(tuKI.random() * (max.x - min.x) + min.x, tuKI.random() * (max.y - min.y) + min.y) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tuKI():\n return DpX9(tuKI.random(), tuKI.random())",
"def EzTm():\n return xaxq().unit_vector()",
"def xBQI(P7oA, w7rb, zNig=1.0):\n FlUN = oyIN.array([[-1, 1], [1, 1], [1, -1], [-1, -1]])\n q7In = tuKI.uniform(0, epAf.pi * 2)\n vgXP = oyIN.array([tuKI.uniform(P7oA[0], P7oA[1]), tuKI.unifor... | [
"0.7449794",
"0.74235255",
"0.7319771",
"0.72294515",
"0.72131425",
"0.72116846",
"0.7201971",
"0.7150285",
"0.71093893",
"0.70513916",
"0.7036144",
"0.7034808",
"0.700431",
"0.698367",
"0.6941729",
"0.6931543",
"0.69282115",
"0.6866515",
"0.6866515",
"0.685735",
"0.6824557",... | 0.7772019 | 0 |
Generate a random unit vector with within a box region. This uses the python random module as the random generator. | def cSJ0():
YylR = 2 * epAf.pi * tuKI.random()
return DpX9(epAf.cos(YylR), epAf.sin(YylR)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EzTm():\n return xaxq().unit_vector()",
"def EzTm():\n WKvO, LVAh, epBp = [tuKI.gauss(0.0, 1.0) for YRbF in range(3)]\n Mkmy = (WKvO * WKvO + LVAh * LVAh + epBp * epBp) ** 0.5\n return kOAW.Vector([WKvO / Mkmy, LVAh / Mkmy, epBp / Mkmy])",
"def EzTm(Emd4):\n Ty9i = Emd4(1, 0)\n jzdc = tuK... | [
"0.82585615",
"0.79622686",
"0.77403134",
"0.7630027",
"0.7463532",
"0.7292359",
"0.72563726",
"0.70725816",
"0.7068995",
"0.7008024",
"0.7002931",
"0.69844466",
"0.69265187",
"0.6875953",
"0.687197",
"0.6870394",
"0.6866627",
"0.6860942",
"0.67860395",
"0.67739284",
"0.67582... | 0.7847418 | 2 |
Load C structure definitions from a JSON file. | def ffSL(Ux0P):
with open(Ux0P, 'r') as mEZq:
return lASG(mEZq) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lc9H():\n pass",
"def refC(Emd4, wM3v):\n with open(wM3v, 'r', encoding='utf-8') as N5Pj:\n l5Ny = N5Pj.read()\n V_D6 = qQXR.loads(l5Ny)\n return Emd4.from_dict(V_D6)",
"def Y45A(mmls):\n assert qQXR\n raise NotImplementedError(f'TODO parse {mmls}')",
"def lc9H(qaEx):\n with o... | [
"0.64894164",
"0.6329679",
"0.63120216",
"0.6280643",
"0.62612677",
"0.6249248",
"0.624628",
"0.6213675",
"0.616928",
"0.61547464",
"0.6116668",
"0.6085956",
"0.60748166",
"0.6059302",
"0.604965",
"0.60471535",
"0.6040672",
"0.6028504",
"0.6017968",
"0.6012475",
"0.6012475",
... | 0.5779152 | 63 |
Return a generator that allows you to iterate through steps of a given size. | def paSp(YKHO, *, RA_F=None, DKYA=0, Sm0u=0, Wave=0, O66n=0, C6wh=0, HVCe=0, fa_w=0, RZnk=True, Zijj=True):
if RA_F and (not isinstance(RA_F, fCoM)):
raise TypeError("argument 'delta' must be an instance of datetime.timedelta, not %s" % type(RA_F).__name__)
YzV0 = RA_F or fCoM(weeks=DKYA, days=Sm0u, hou... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yq6u(Q6uT, ztRo):\n for YRbF in Ni9Y(0, len(Q6uT), ztRo):\n yield Q6uT[YRbF:YRbF + ztRo]",
"def yq6u(OxJJ: List, ztRo: int) -> jd6F[x1iM, None, None]:\n for YRbF in range(0, len(OxJJ), ztRo):\n yield OxJJ[YRbF:YRbF + ztRo]",
"def Utj8():\n YRbF = 1\n while True:\n yield YRb... | [
"0.7096009",
"0.70701206",
"0.7021451",
"0.6995813",
"0.6985103",
"0.6983929",
"0.6953334",
"0.6953334",
"0.6942962",
"0.69011545",
"0.68420523",
"0.6835711",
"0.6763715",
"0.6754557",
"0.6750388",
"0.6687901",
"0.6670171",
"0.66670847",
"0.66558814",
"0.66376287",
"0.6621631... | 0.0 | -1 |
Return the start ``datetime`` of this ``TimeRange``. | def yKcO(YKHO):
return YKHO._start | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EKFi(YKHO):\n return YKHO._start_datetime",
"def SWox(YKHO) -> qcWV:\n return YKHO._start_time",
"def SWox(YKHO) -> qcWV:\n return YKHO._start_time",
"def SWox(YKHO) -> qcWV.datetime:\n return YKHO._start_time",
"def yKcO(YKHO) -> qcWV:\n return YKHO._start",
"def NpMh(YKHO):\n retu... | [
"0.83676183",
"0.8316812",
"0.8316812",
"0.8311564",
"0.8159773",
"0.804718",
"0.80168736",
"0.79750794",
"0.79750794",
"0.79487884",
"0.78768206",
"0.78507334",
"0.7845006",
"0.7845006",
"0.7828459",
"0.7800518",
"0.7763306",
"0.7763268",
"0.7759243",
"0.773358",
"0.7722205"... | 0.0 | -1 |
Return the end ``datetime`` of this ``TimeRange``. | def Os4s(YKHO):
return YKHO._end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yA1z(YKHO):\n return YKHO._end_datetime",
"def C7pn(YKHO) -> qcWV:\n return YKHO._end_time",
"def C7pn(YKHO) -> qcWV:\n return YKHO._end_time",
"def A_2I(YKHO):\n return qcWV.datetime.combine(YKHO.end_date, YKHO.end_time)",
"def Os4s(YKHO) -> qcWV:\n return YKHO._end",
"def M4HV(YKHO):... | [
"0.8575285",
"0.84603065",
"0.84603065",
"0.8430507",
"0.82740545",
"0.8071074",
"0.79601705",
"0.7917932",
"0.79089737",
"0.79054016",
"0.7900114",
"0.78641343",
"0.7854204",
"0.7854204",
"0.7853242",
"0.7843755",
"0.7753794",
"0.77313566",
"0.77154946",
"0.77086544",
"0.770... | 0.0 | -1 |
Return a ``timedelta`` instance that represents the difference between ``start`` and ``end`` of this ``TimeRange``. If ``end`` is ``None``, then ``None`` is returned. | def RA_F(YKHO):
return YKHO.end - YKHO.start if YKHO.end else None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PtEJ(yKcO, Os4s):\n try:\n RA_F = (Os4s - yKcO).total_seconds()\n except:\n RA_F = 0\n return RA_F",
"def fCoM(YKHO):\n return YKHO.end - YKHO.start",
"def fCoM(YKHO, yKcO, Os4s, pjcV=min, zxqz=max):\n if not isinstance(yKcO, qcWV):\n yKcO = pjcV(yKcO)\n if not isinst... | [
"0.74567246",
"0.7124568",
"0.6917797",
"0.68310237",
"0.6747486",
"0.67035025",
"0.6691106",
"0.66356134",
"0.65462244",
"0.65173686",
"0.64875925",
"0.63921094",
"0.63917774",
"0.6368214",
"0.6348146",
"0.63016003",
"0.6281146",
"0.6270496",
"0.6266489",
"0.6247301",
"0.614... | 0.65188766 | 9 |
Return a unique hashcode for this instance. | def rjHV(YKHO):
if not YKHO._hash:
_AR6 = '%Y%m%d%H%M%S%f'
lDTh = YKHO.start.strftime(_AR6)
eOKE = YKHO.end.strftime(_AR6) if YKHO.end else 20 * '0'
YKHO._hash = int('%s%s%s' % (hash(YKHO.__class__), lDTh, eOKE))
return YKHO._hash | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H1gE(YKHO):\n pass",
"def uq1P(YKHO):\n return YKHO._hash_code",
"def rjHV(YKHO) -> int:\n return hash(YKHO.__str__())",
"def cyHB(YKHO):\n hash = 5\n hash = 97 * hash + (YKHO.getUniqueId().hashCode() if YKHO.getUniqueId() != None else 0)\n return hash",
"def rjHV(YKHO):\n return i... | [
"0.8455934",
"0.844665",
"0.8302018",
"0.8275635",
"0.8207878",
"0.81763667",
"0.81763667",
"0.81600505",
"0.8143022",
"0.81140965",
"0.81121147",
"0.81121147",
"0.81121147",
"0.81121147",
"0.81121147",
"0.8104673",
"0.80967426",
"0.80812544",
"0.80812544",
"0.80812544",
"0.8... | 0.0 | -1 |
Return whether ``self == other``, which is the case if both ``start`` and ``end`` are equal and if the direction of ``self`` and ``other`` are equal. | def xa14(YKHO, Elif):
return hash(YKHO) == hash(Elif) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n if YKHO.start == Elif.start and YKHO.end == Elif.end:\n return True\n return False",
"def xa14(YKHO, Elif):\n if YKHO.start == Elif.start and YKHO.end == Elif.end:\n I1mm = True\n else:\n I1mm = False\n return I1mm",
"def xa14(YKHO, Elif):\n if Eli... | [
"0.86711615",
"0.8269123",
"0.8009829",
"0.77949",
"0.7613465",
"0.7451453",
"0.74201435",
"0.7391152",
"0.73629886",
"0.72377515",
"0.723462",
"0.7214948",
"0.72056913",
"0.7203465",
"0.7177294",
"0.71529317",
"0.713645",
"0.71319133",
"0.7130607",
"0.7077801",
"0.7054664",
... | 0.0 | -1 |
Return a textual representation of this instance. | def wHJl(YKHO):
return '%s(%s, %s)' % (YKHO.__class__.__name__, repr(YKHO.start), repr(YKHO.end)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return YKHO.text_repr()",
"def zAg0(YKHO):\n return YKHO.to_string(plain=True)",
"def wHJl(YKHO):\n return YKHO.text_repr",
"def sh4I(YKHO):\n return YKHO.__repr__()",
"def sh4I(YKHO):\n return YKHO.__repr__()",
"def sh4I(YKHO):\n return YKHO.__repr__()",
"def sh4I(Y... | [
"0.85180753",
"0.8274145",
"0.8249324",
"0.8203052",
"0.8203052",
"0.8203052",
"0.8203052",
"0.8203052",
"0.81601363",
"0.81464803",
"0.8121083",
"0.8117411",
"0.81085616",
"0.81085616",
"0.81085616",
"0.81085616",
"0.81085616",
"0.81085616",
"0.81085616",
"0.81085616",
"0.81... | 0.0 | -1 |
Return this instance as string. | def zAg0(YKHO):
if YKHO.end:
return '[%s, ..., %s>' % (YKHO.start, YKHO.end)
return '[%s, ...>' % YKHO.start | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yLCI(YKHO) -> str:\n return str(YKHO)",
"def rIkN(YKHO) -> str:\n return str(YKHO)",
"def yLCI(YKHO) -> str:\n return YKHO.__str__()",
"def SnfU(YKHO):\n return str(YKHO)",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def MFu_(YKHO):\n ... | [
"0.90179926",
"0.90155655",
"0.9009973",
"0.8995831",
"0.8973438",
"0.8923915",
"0.88950086",
"0.8892831",
"0.8845816",
"0.8845816",
"0.87828124",
"0.8607828",
"0.8607521",
"0.8597305",
"0.8597305",
"0.8597305",
"0.8572831",
"0.8572831",
"0.8549911",
"0.8494505",
"0.8474048",... | 0.0 | -1 |
Return this instance as string. | def zAg0(YKHO):
if YKHO.end:
return '<%s, ..., %s]' % (YKHO.end, YKHO.start)
return '<..., %s]' % YKHO.start | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yLCI(YKHO) -> str:\n return str(YKHO)",
"def rIkN(YKHO) -> str:\n return str(YKHO)",
"def yLCI(YKHO) -> str:\n return YKHO.__str__()",
"def SnfU(YKHO):\n return str(YKHO)",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def MFu_(YKHO):\n ... | [
"0.90179926",
"0.90155655",
"0.9009973",
"0.8995831",
"0.8973438",
"0.8923915",
"0.88950086",
"0.8892831",
"0.8845816",
"0.8845816",
"0.87828124",
"0.8607828",
"0.8607521",
"0.8597305",
"0.8597305",
"0.8597305",
"0.8572831",
"0.8572831",
"0.8549911",
"0.8494505",
"0.8474048",... | 0.0 | -1 |
Return the mean of a list of numbers. | def nC2r(mSrU):
if not mSrU:
return 0
wjRY = 0
for FGW3 in mSrU:
wjRY += FGW3
return wjRY / len(mSrU) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JBMS(aO51):\n VCDx = sum(aO51) / len(aO51)\n return VCDx",
"def JBMS(yv6U):\n return",
"def JBMS(yv6U):\n return",
"def JBMS(aO51):\n VCDx = sum(aO51) / len(aO51)\n return VCDx",
"def JBMS(yv6U):\n return float(sum(yv6U) / len(yv6U))",
"def JBMS(list):\n return float(sum(list)... | [
"0.8845218",
"0.87931865",
"0.87931865",
"0.8771519",
"0.8628035",
"0.8615209",
"0.86048007",
"0.8479998",
"0.847778",
"0.8459379",
"0.84539396",
"0.8440336",
"0.8410854",
"0.8402382",
"0.8376302",
"0.83654",
"0.83470243",
"0.8342805",
"0.8337505",
"0.832845",
"0.8316849",
... | 0.80521584 | 34 |
Return the mean of a list of numbers. | def C9VW(mSrU):
return sum(mSrU) / len(mSrU) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JBMS(aO51):\n VCDx = sum(aO51) / len(aO51)\n return VCDx",
"def JBMS(yv6U):\n return",
"def JBMS(yv6U):\n return",
"def JBMS(aO51):\n VCDx = sum(aO51) / len(aO51)\n return VCDx",
"def JBMS(yv6U):\n return float(sum(yv6U) / len(yv6U))",
"def JBMS(list):\n return float(sum(list)... | [
"0.8845218",
"0.87931865",
"0.87931865",
"0.8771519",
"0.8628035",
"0.8615209",
"0.86048007",
"0.8479998",
"0.847778",
"0.8459379",
"0.84539396",
"0.8440336",
"0.8410854",
"0.8402382",
"0.8376302",
"0.83654",
"0.83470243",
"0.8342805",
"0.8337505",
"0.832845",
"0.8316849",
... | 0.75808775 | 74 |
Get the parent index, if element in parent index is greater, swap | def K54n(YKHO, d6pt):
_AKB = YKHO.get_parent_index(d6pt)
if YKHO._array[d6pt] < YKHO._array[_AKB] and _AKB >= 0:
YKHO._array[d6pt], YKHO._array[_AKB] = (YKHO._array[_AKB], YKHO._array[d6pt])
YKHO.heapify_up(_AKB) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HvfA(nPrm, ICDs):\n bKPk = len(nPrm) - 1\n ZDVv = (ICDs + 1) * 2 - 1\n tJGs = (ICDs + 1) * 2\n if ZDVv and tJGs <= bKPk:\n bB85, vgz2 = (nPrm[ZDVv], nPrm[tJGs])\n if bB85 > vgz2:\n N9Ly = ZDVv\n else:\n N9Ly = tJGs\n elif ZDVv <= bKPk and tJGs > bKPk:\n... | [
"0.7675934",
"0.7454702",
"0.7429198",
"0.7394732",
"0.71472675",
"0.7121977",
"0.71008724",
"0.7091016",
"0.70044625",
"0.698357",
"0.69088936",
"0.6905597",
"0.6893576",
"0.6880073",
"0.6875484",
"0.6861685",
"0.6857973",
"0.68434036",
"0.68012273",
"0.6788862",
"0.6755792"... | 0.66630447 | 27 |
Convert a variable to the specified type | def kmUU(type, wEf2):
if wEf2 == 'None':
return None
elif type == 'bool':
wEf2 = True if wEf2.lower() == 'true' or wEf2 == '1' else False
elif type == 'str':
wEf2 = str(wEf2)
elif type == 'int':
wEf2 = int(wEf2)
return wEf2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D19F(Es0b, nMnB):\n if nMnB == 'str':\n return str(Es0b)\n elif nMnB == 'int':\n return int(Es0b)\n elif nMnB == 'bool':\n return Es0b == 'True'\n elif nMnB == 'float':\n return float(Es0b)",
"def w008(SRYB: Any, mWFP: str, ZRB_: Any) -> ImMB:\n if not isinstance(SR... | [
"0.8181798",
"0.7240141",
"0.7229888",
"0.7116042",
"0.6965277",
"0.6880833",
"0.6822249",
"0.6816698",
"0.67875236",
"0.6726244",
"0.6725546",
"0.6724402",
"0.6719872",
"0.6669334",
"0.66647506",
"0.6662752",
"0.66160893",
"0.66004056",
"0.65954846",
"0.65750617",
"0.6521573... | 0.60314935 | 59 |
Custom ViT small hybrid w/ ResNet26D stride 32. No pretrained weights. | def KPL6(mL4f=False, **B2fa):
PqMZ = S801(pretrained=mL4f, in_chans=B2fa.get('in_chans', 3), features_only=True, out_indices=[4])
J4Uw = dict(embed_dim=768, depth=8, num_heads=8, mlp_ratio=3, hybrid_backbone=PqMZ, **B2fa)
C3ST = dRH3('vit_small_resnet26d_224', pretrained=mL4f, **J4Uw)
return C3ST | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TPf5(mL4f=False, **B2fa):\n J4Uw = dict(patch_size=16, embed_dim=384, depth=12, num_heads=6, **B2fa)\n C3ST = X1kY(img_size=224, in_chans=3, num_classes=1000, mlp_ratio=4.0, qkv_bias=True, embed_layer=KuCx, pos_embed='cosine', norm_layer=U78l.LayerNorm, act_layer=U78l.GELU, pool='mean', **J4Uw)\n retu... | [
"0.6613973",
"0.6481465",
"0.6444869",
"0.63482636",
"0.63466203",
"0.63175493",
"0.6308398",
"0.6305956",
"0.60612243",
"0.6024128",
"0.6023884",
"0.6005573",
"0.5983369",
"0.59706134",
"0.596527",
"0.5943855",
"0.59263474",
"0.5866251",
"0.5825676",
"0.58250844",
"0.5821748... | 0.6376281 | 3 |
Custom ViT small hybrid w/ ResNet50D 3stages, stride 16. No pretrained weights. | def ye5T(mL4f=False, **B2fa):
PqMZ = HN9u(pretrained=mL4f, in_chans=B2fa.get('in_chans', 3), features_only=True, out_indices=[3])
J4Uw = dict(embed_dim=768, depth=8, num_heads=8, mlp_ratio=3, hybrid_backbone=PqMZ, **B2fa)
C3ST = dRH3('vit_small_resnet50d_s3_224', pretrained=mL4f, **J4Uw)
return C3ST | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def h3yJ(mL4f=False, Eb4t=True, **B2fa):\n return aB7U('vovnet27_slim', [64, 80, 96, 112], [128, 256, 384, 512], [1, 1, 1, 1], 5, mL4f, Eb4t, **B2fa)",
"def TPf5(mL4f=False, **B2fa):\n J4Uw = dict(patch_size=16, embed_dim=384, depth=12, num_heads=6, **B2fa)\n C3ST = X1kY(img_size=224, in_chans=3, num_cl... | [
"0.6857534",
"0.6226925",
"0.6204959",
"0.61943096",
"0.60850066",
"0.60662204",
"0.6060313",
"0.6047085",
"0.60360765",
"0.602994",
"0.5961603",
"0.5937936",
"0.5919254",
"0.590086",
"0.58828825",
"0.58692694",
"0.5867851",
"0.58644104",
"0.5857617",
"0.58546776",
"0.5834644... | 0.5717958 | 29 |
Custom ViT base hybrid w/ ResNet26D stride 32. No pretrained weights. | def bXUi(mL4f=False, **B2fa):
PqMZ = S801(pretrained=mL4f, in_chans=B2fa.get('in_chans', 3), features_only=True, out_indices=[4])
J4Uw = dict(embed_dim=768, depth=12, num_heads=12, hybrid_backbone=PqMZ, **B2fa)
C3ST = dRH3('vit_base_resnet26d_224', pretrained=mL4f, **J4Uw)
return C3ST | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Gg0k(mL4f=False, **B2fa):\n J4Uw = dict(patch_size=16, embed_dim=768, depth=12, num_heads=12, qkv_bias=False, init_values=1e-05, class_token=False, block_fn=UfXB, global_pool=B2fa.pop('global_pool', 'avg'), **B2fa)\n C3ST = dRH3('vit_base_patch16_rpn_224', pretrained=mL4f, **J4Uw)\n return C3ST",
"d... | [
"0.6307671",
"0.6240233",
"0.61932033",
"0.6136644",
"0.60781056",
"0.6064314",
"0.60091805",
"0.6007195",
"0.60049665",
"0.59642076",
"0.59586656",
"0.59462065",
"0.5825097",
"0.5745467",
"0.5740128",
"0.57196456",
"0.5708142",
"0.5706119",
"0.5698303",
"0.5691804",
"0.56854... | 0.64264673 | 0 |
Custom ViT base hybrid w/ ResNet50D stride 32. No pretrained weights. | def UDS4(mL4f=False, **B2fa):
PqMZ = HN9u(pretrained=mL4f, in_chans=B2fa.get('in_chans', 3), features_only=True, out_indices=[4])
J4Uw = dict(embed_dim=768, depth=12, num_heads=12, hybrid_backbone=PqMZ, **B2fa)
C3ST = dRH3('vit_base_resnet50d_224', pretrained=mL4f, **J4Uw)
return C3ST | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P8oC(YKHO, njNk):\n return yPNv(njNk)",
"def h3yJ(mL4f=False, Eb4t=True, **B2fa):\n return aB7U('vovnet27_slim', [64, 80, 96, 112], [128, 256, 384, 512], [1, 1, 1, 1], 5, mL4f, Eb4t, **B2fa)",
"def P_vY(g4y1: tf.Tensor, GPtr: MobileNetConfig) -> ZylS.Tensor:\n GhuM = g4y1.get_shape().as_list()\n ... | [
"0.61139876",
"0.5984722",
"0.59613955",
"0.59581834",
"0.5946982",
"0.5924722",
"0.58953875",
"0.5856349",
"0.5820106",
"0.5800574",
"0.57515925",
"0.57469994",
"0.57443756",
"0.5735483",
"0.5715118",
"0.56574893",
"0.5657263",
"0.56542075",
"0.5631331",
"0.56187147",
"0.561... | 0.63119537 | 0 |
Test that the Keplarian orbit elements returned by BJOrbit matches the expected values | def NUKb(YKHO):
YKHO.assertAlmostEqual(YKHO.orbit.a.to(rYO3.AU).value, 39.3419, 3)
YKHO.assertAlmostEqual(YKHO.orbit.e.value, 0.2778, 3)
YKHO.assertAlmostEqual(YKHO.orbit.inc.to(rYO3.degree).value, 8.05, 2)
YKHO.assertAlmostEqual(YKHO.orbit.Node.to(rYO3.degree).value, 113.85, 2)
YKHO.assertAlmostEqu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cnO3(YKHO):\n BlNT = glaH.ground_state('He')\n YKHO.assertEqual(BlNT['1s'], BlNT[Yd01.one_s])",
"def La4T():\n zUbX = aOZa(*o2lg(cEvt()))\n assert zUbX.passes_per_cycle() == 28",
"def BMnC(YKHO):\n YKHO.assertTrue((YKHO.KnownValuesJ_z == Mruc.mat(0.5, Mruc.J_z)).all())",
"def An2K(YKHO):\n... | [
"0.7383164",
"0.68797356",
"0.67311835",
"0.65597",
"0.64129555",
"0.63833725",
"0.63139606",
"0.63034153",
"0.6268729",
"0.626664",
"0.6255125",
"0.6234283",
"0.6206867",
"0.6121159",
"0.61158174",
"0.61081165",
"0.61078274",
"0.60976654",
"0.60976654",
"0.60976654",
"0.6097... | 0.7355265 | 1 |
Returns a Google Cloud Dataproc service object. | def OQI9(YKHO):
rpgP = YKHO._authorize()
return Cc7Y('dataproc', YKHO.api_version, http=rpgP) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rVwF(YKHO):\n if m1bP.credentials is None:\n YKHO.login()\n return Cc7Y(YKHO.api_name, YKHO.api_version, http=m1bP.credentials.authorize(OBHh.Http()))",
"def PG5p():\n return EhpD.discovery.build('storage', 'v1')",
"def DHUg():\n from oauth2client.client import GoogleCredentials\n Vt8... | [
"0.68958074",
"0.67193353",
"0.6708221",
"0.662197",
"0.6569402",
"0.6230074",
"0.6157478",
"0.6145913",
"0.6133971",
"0.60919213",
"0.60616285",
"0.6042107",
"0.603576",
"0.60242575",
"0.6017776",
"0.6016306",
"0.60161835",
"0.59358275",
"0.5921938",
"0.5878373",
"0.586831",... | 0.58452624 | 24 |
Returns first name of building | def W0tD(YKHO) -> str:
return YKHO.__name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fcCO(YKHO):\n return YKHO.name.split()[0]",
"def fz1W(YKHO):\n if YKHO.first_name == '':\n YKHO.get_lead_traveller()\n return YKHO.first_name",
"def dsRp(YKHO):\n return YKHO.first_name.strip()",
"def c9ua(YKHO) -> str:\n return YKHO.name.title()",
"def dsRp(YKHO):\n return str... | [
"0.73505604",
"0.7326324",
"0.73110104",
"0.72331613",
"0.7162416",
"0.712937",
"0.712937",
"0.712937",
"0.712937",
"0.712937",
"0.712937",
"0.712937",
"0.712937",
"0.712937",
"0.712937",
"0.712937",
"0.712937",
"0.712937",
"0.712937",
"0.712937",
"0.712937",
"0.712937",
... | 0.0 | -1 |
Get the reward for the given action with the current observation parameters. | def xyVK(YKHO, XeOP):
FSjs = {}
for IBgp in YKHO.zones:
GRF5 = YKHO.DataManager.comfortband[IBgp].iloc[YKHO.curr_timestep]
nyAY = YKHO.DataManager.occupancy[IBgp].iloc[YKHO.curr_timestep]
MyBE = (YKHO.DigitalTwin.temperatures[IBgp] + YKHO.DigitalTwin.last_temperatures[IBgp]) / 2.0
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vOGg(YKHO, XeOP):\n return YKHO.bandits[XeOP].reward()",
"def nFcm(YKHO, QTBn, XeOP):\n raise NotImplementedError()",
"def vOGg(YKHO, rNYq, XeOP, vOGg):\n pass",
"def vOGg(YKHO, rNYq, XeOP, vOGg):\n pass",
"def vOGg(YKHO, rNYq, XeOP, vOGg):\n pass",
"def qKJx(YKHO, QTBn, XeOP, rxHc):\n... | [
"0.82485086",
"0.796688",
"0.77373743",
"0.77373743",
"0.77373743",
"0.7707698",
"0.75718224",
"0.75614417",
"0.7538872",
"0.74770164",
"0.74691427",
"0.74544895",
"0.74496895",
"0.74098164",
"0.7390622",
"0.73771167",
"0.73330474",
"0.73254967",
"0.7292106",
"0.7289282",
"0.... | 0.6836963 | 43 |
Set a destination where the result of the query should be stored. When destination is set, no rows is returned. | def SNQw(YKHO, tyNF: Table, Qrt_: str=None) -> 'BQQueryTemplate':
Ey8A = _qLf(YKHO)
lLIo = tyNF.fqdn()
D42Z = '$' + Qrt_ if Qrt_ else ''
pan_ = lLIo + D42Z
Ey8A.job_config.destination = pan_
return Ey8A | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mbgn(YKHO, yFgu):\n YKHO.destination = yFgu",
"def Mbgn(YKHO, yFgu):\n YKHO.destination = yFgu.get_name()",
"def yFgu(YKHO, yFgu):\n YKHO._destination = yFgu",
"def Mbgn(YKHO, e1vZ):\n YKHO.dest = e1vZ",
"def mOv4(YKHO, *qIxc):\n return SKjC.itkGeometricalQuadEdgeULULBBT_SetDestination(Y... | [
"0.5895477",
"0.56594825",
"0.5623708",
"0.55361986",
"0.54935825",
"0.5463638",
"0.5403788",
"0.53762347",
"0.5310839",
"0.5294497",
"0.5242915",
"0.52220196",
"0.5215039",
"0.51500404",
"0.5148254",
"0.5145713",
"0.51393056",
"0.5110872",
"0.50316936",
"0.50307167",
"0.4997... | 0.47597206 | 55 |
Converts a list of dictionaries to a dictionary of lists. Useful to transform the outcomes of a simulation | def Rhce(GBaN):
return {H5ew: [Csk6[H5ew] for Csk6 in GBaN] for H5ew in GBaN[0]} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Eh0Z(g4y1):\n Csk6 = {H5ew: [] for H5ew in g4y1[0]}\n for pKvt in g4y1:\n for G1Hx, Ty9i in pKvt.items():\n Csk6[G1Hx].append(Ty9i)\n for G1Hx, Ty9i in Csk6.items():\n Csk6[G1Hx] = ht2j.stack(Ty9i)\n return Csk6",
"def w8ot(GBaN):\n Ylbp = {}\n for Csk6 in GBaN:\n ... | [
"0.6789096",
"0.67016995",
"0.6491848",
"0.6398795",
"0.63616836",
"0.62857556",
"0.6282718",
"0.62599903",
"0.62592393",
"0.62161344",
"0.61979854",
"0.6147508",
"0.6126376",
"0.61199665",
"0.6100445",
"0.60941875",
"0.60801184",
"0.60770917",
"0.6052927",
"0.6050666",
"0.60... | 0.59745455 | 23 |
This function plots accuracy and loss using the History object returned by fitting the model. | def HBb2(FLXQ):
QrM1.plot(FLXQ.history['acc'])
QrM1.plot(FLXQ.history['val_acc'])
QrM1.title('Model Accuracy')
QrM1.ylabel('Accuracy')
QrM1.xlabel('Epoch')
QrM1.legend(['Train', 'Test'], loc='upper left')
QrM1.show()
QrM1.plot(FLXQ.history['loss'])
QrM1.plot(FLXQ.history['val_loss'])... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FltV(YKHO, FLXQ):\n if FLXQ is None:\n return\n QrM1.plot(FLXQ.history['accuracy'])\n QrM1.title('Accuracy')\n QrM1.xlabel('epoch')\n QrM1.ylabel('accuracy')\n QrM1.legend(['train', 'test'])\n QrM1.show()",
"def qSo0(FLXQ):\n QrM1.plot(FLXQ.history['accuracy'])\n QrM1.plot(F... | [
"0.8684364",
"0.8659878",
"0.8539122",
"0.84828955",
"0.8469757",
"0.8448552",
"0.8433901",
"0.8408583",
"0.8360573",
"0.835005",
"0.8343472",
"0.83376175",
"0.8329091",
"0.83269954",
"0.8240927",
"0.8185485",
"0.81851184",
"0.8179945",
"0.8171051",
"0.8167281",
"0.8155399",
... | 0.8173049 | 18 |
Convert the image to gray channel of the input image. | def uipa(eZ_W, UXEK):
VXjJ = XC5k.imread(eZ_W, XC5k.IMREAD_COLOR)
Fg_i, Oa1e, Mkmy = (VXjJ[:, :, 0], VXjJ[:, :, 1], VXjJ[:, :, 2])
xV4z = 0.2989 * Mkmy + 0.587 * Oa1e + 0.114 * Fg_i
XC5k.imwrite(UXEK, xV4z) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zdc2(YKHO):\n YKHO.image_gray = Y4jz.grayscale(YKHO.image)",
"def Pl9M(YKHO, VXjJ=None):\n if VXjJ is None:\n VXjJ = YKHO.base_image\n return XC5k.cvtColor(VXjJ, XC5k.COLOR_RGB2GRAY)",
"def NNnM(YKHO, LNo8):\n lbPj = XC5k.cvtColor(LNo8, XC5k.COLOR_BGR2GRAY)\n return lbPj",
"def IeP5... | [
"0.8410625",
"0.7897955",
"0.7704349",
"0.76371574",
"0.7630723",
"0.7611479",
"0.7611479",
"0.7554573",
"0.7530929",
"0.7490141",
"0.74835455",
"0.74580544",
"0.7456058",
"0.7425174",
"0.7423899",
"0.7413062",
"0.73368275",
"0.7311779",
"0.72905594",
"0.7288196",
"0.725288",... | 0.68602663 | 64 |
Displays statistics on the most frequent times of travel. | def dWJR(jQ3Z):
print('\nCalculating The Most Frequent Times of Travel...\n')
SWox = ITS7.time()
x0eS = 'month'
y0Xp = 'day_of_week'
ROt1 = 'hour'
e5iA, VeKE = bRJ4(jQ3Z, x0eS)
FU_V = X_bn[e5iA - 1]
print(hPow + x0eS + ':', FU_V.title() + ',', xfTm, VeKE[0])
DSEJ, ce26 = bRJ4(jQ3Z, y... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dWJR(jQ3Z):\n print('\\nCalculating The Most Frequent Times of Travel...\\n')\n SWox = ITS7.time()\n print('The most common month of travel is: {} '.format(jQ3Z.Month.mode()[0]))\n print('The most common day of travel is: {} '.format(jQ3Z.Day.mode()[0]))\n print('The most common hour of travel i... | [
"0.79996175",
"0.7920857",
"0.7891767",
"0.78612196",
"0.785926",
"0.7838814",
"0.779974",
"0.77848285",
"0.7735119",
"0.7723049",
"0.771342",
"0.7708436",
"0.770453",
"0.77017164",
"0.7689714",
"0.7685842",
"0.7680146",
"0.76788265",
"0.76721054",
"0.7661351",
"0.7660023",
... | 0.0 | -1 |
Displays statistics on the most popular stations and trip. | def Huc_(jQ3Z):
print('\nCalculating The Most Popular Stations and Trip...\n')
SWox = ITS7.time()
CuPk = 'Start Station'
nG3J = 'End Station'
WpOk = 'trip'
Ri0C, uYVY = bRJ4(jQ3Z, CuPk)
print(hPow + CuPk + ':', Ri0C + ',', xfTm, uYVY[0])
k7bv, yZAq = bRJ4(jQ3Z, nG3J)
print(hPow + nG3... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations and Trip...\\n')\n SWox = ITS7.time()\n v6Be(jQ3Z)\n BeYU(jQ3Z)\n O6Ct(jQ3Z)\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)",
"def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations ... | [
"0.7665365",
"0.76264536",
"0.7610902",
"0.75852126",
"0.7576492",
"0.7567089",
"0.75577486",
"0.7538181",
"0.75294757",
"0.7502035",
"0.74997437",
"0.7496321",
"0.74872565",
"0.74840283",
"0.7475714",
"0.7472988",
"0.7437631",
"0.74366206",
"0.7433223",
"0.7428372",
"0.74269... | 0.0 | -1 |
Displays statistics on the total and average trip duration. | def kDMA(jQ3Z):
print('\nCalculating Trip Duration...\n')
SWox = ITS7.time()
bJiw = ITS7.strftime('%H:%M:%S', ITS7.gmtime(jQ3Z['Trip Duration'].sum()))
print('Total travel time in hours, minutes and seconds:', bJiw)
RB_u = ITS7.strftime('%H:%M:%S', ITS7.gmtime(jQ3Z['Trip Duration'].mean()))
prin... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kDMA(dMlt):\n print('\\nCalculating Trip Duration...\\n')\n SWox = ITS7.time()\n qZ1g = dMlt['Trip Duration'].sum()\n print('The total travel time is ', qZ1g, ' seconds.')\n NPSF = dMlt['Trip Duration'].mean()\n print('The average travel time is ', NPSF, ' seconds.')\n print('\\nThis took ... | [
"0.82516754",
"0.8146482",
"0.8095984",
"0.80120844",
"0.79869586",
"0.7983244",
"0.7978337",
"0.7969659",
"0.7964662",
"0.7963039",
"0.79611284",
"0.7960862",
"0.79516",
"0.7948492",
"0.79436684",
"0.793671",
"0.79231024",
"0.79199594",
"0.7919324",
"0.7918097",
"0.7917122",... | 0.0 | -1 |
Patch a resource of specific kind. Unlike the object listing, the namespaced call is always used for the namespaced resources, even if the operator serves the whole cluster (i.e. is not namespacerestricted). Returns the patched body. The patched body can be partial (statusonly, nostatus, or empty) depending on whether ... | async def patch_obj(*, gCuF: configuration.OperatorSettings, Eorv: references.Resource, _63S: references.Namespace, mWFP: Optional[str], Po4F: patches.Patch, bo34: typedefs.Logger) -> h8nf[dcLO.RawBody]:
MIiV = 'status' in Eorv.subresources
iHii = dict(Po4F)
cYxv = iHii.pop('status', None) if MIiV else None... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P1Ro(YKHO, _63S: typing.Optional['str']=None):\n ZWCE = ['patch_namespaced_resource_class', 'patch_resource_class']\n AJfP.execute(action='patch', resource=YKHO, names=ZWCE, namespace=_63S, api_client=None, api_args={'body': YKHO.to_dict(), 'name': YKHO.metadata.name})",
"def P1Ro(YKHO, dB_K: str, mWFP... | [
"0.70926356",
"0.7028358",
"0.6936525",
"0.662068",
"0.6587827",
"0.6549693",
"0.6536586",
"0.6528187",
"0.6520143",
"0.6513505",
"0.6509569",
"0.65049297",
"0.6465565",
"0.64556396",
"0.6424102",
"0.63647234",
"0.6345563",
"0.63259697",
"0.6312692",
"0.6312692",
"0.6311997",... | 0.77011794 | 0 |
read the configuration from the given file and return it as a dictionary. The file name extension is used to determine its format (with YAML as the default). | def J2u4(mmls):
with open(mmls) as Gcbu:
if mmls.endswith('.json'):
return qQXR.load(Gcbu)
else:
return eJb6.load(Gcbu) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def l_93(YKHO, Ux0P: str) -> cuzp[str, ImMB]:\n with open(Ux0P) as eHNT:\n try:\n return dict(kRlw.load(eHNT))\n except kRlw.TomlDecodeError as e:\n raise BybI(f\"failed to load config file '{Ux0P}': {tTpl}\")",
"def LgIG(Ux0P: str) -> cuzp[str, ImMB]:\n CAYp = eJb6.full... | [
"0.8052458",
"0.7849862",
"0.77948666",
"0.77828854",
"0.77796614",
"0.77439106",
"0.7720844",
"0.76835823",
"0.7666648",
"0.76407665",
"0.7616756",
"0.75936383",
"0.75739676",
"0.75716037",
"0.7569262",
"0.75627774",
"0.7547671",
"0.7547663",
"0.75471467",
"0.74993074",
"0.7... | 0.0 | -1 |
return the proper URL for access the configuration for a given component. | def nKyW(YKHO, UksD, Gw21=None):
if not Gw21:
Gw21 = YKHO._prof
if Gw21:
UksD = '/'.join([UksD, Gw21])
return YKHO._base + UksD | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jaUo(YKHO):\n bD7m = YKHO.config['url']\n return bD7m",
"def hKhs():\n Aj3q = gz8S()\n b9EZ = Aj3q + 'view/config.ini'\n GPtr = enR0.ConfigParser()\n GPtr.read(b9EZ)\n GttB = GPtr.get('General Configuration', 'controller_url')\n return GttB",
"def RdEz(QpfX):\n return '{endpoint}... | [
"0.7417336",
"0.71906185",
"0.7023848",
"0.69867796",
"0.69323677",
"0.6861091",
"0.6836235",
"0.6794317",
"0.6576432",
"0.6543204",
"0.65416616",
"0.652341",
"0.6503348",
"0.64684993",
"0.6440378",
"0.6438948",
"0.64344114",
"0.6421947",
"0.64127755",
"0.64116824",
"0.639564... | 0.66987085 | 8 |
Saves model and training parameters at '{checkpoint_dir}/last_checkpoint.pytorch'. If is_best==True saves '{checkpoint_dir}/best_checkpoint.pytorch' as well. | def IRyE(QTBn, xWf0, bPTx, bo34=None):
def xgtA(Ol8d):
if bo34 is not None:
bo34.info(Ol8d)
if not Hy7s.path.exists(bPTx):
xgtA(f'Checkpoint directory does not exists. Creating {bPTx}')
Hy7s.mkdir(bPTx)
zoqO = Hy7s.path.join(bPTx, 'last_checkpoint.pytorch')
xgtA(f"Sa... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IRyE(YKHO, Ux0P='checkpoint.pth.tar', xWf0=0):\n QTBn = {'epoch': YKHO.current_epoch, 'state_dict': YKHO.model.state_dict(), 'optimizer': YKHO.optimizer.state_dict(), 'valid_loss': YKHO.valid_loss, 'train_loss': YKHO.train_loss, 'train_loss_parz': YKHO.train_loss_parz}\n ht2j.save(QTBn, YKHO.checkpoints_... | [
"0.8566551",
"0.85577154",
"0.84941846",
"0.84709215",
"0.84659827",
"0.8391144",
"0.83622956",
"0.835854",
"0.8347679",
"0.8333584",
"0.83298916",
"0.8326967",
"0.82821727",
"0.8258789",
"0.8258352",
"0.825713",
"0.8237277",
"0.82367516",
"0.8221907",
"0.8221907",
"0.8221907... | 0.8129069 | 35 |
Compute Adapted Rand error as defined by the SNEMI3D contest [1] Formula is given as 1 the maximal Fscore of the Rand index (excluding the zero component of the original labels). Adapted from the SNEMI3D MATLAB script, hence the strange style. | def tUkZ(pG0V, _ger, qcLm=False):
_hZ2 = 1e-06
spvR = oyIN.ravel(_ger)
EuH8 = oyIN.ravel(pG0V)
exwG = spvR.size
tsoK = oyIN.amax(spvR) + 1
iuvb = oyIN.amax(EuH8) + 1
Do6H = oyIN.ones(exwG)
XUsB = o7sj.csr_matrix((Do6H, (spvR[:], EuH8[:])), shape=(tsoK, iuvb))
jzdc = XUsB[1:tsoK, :]
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PBRQ(YKHO):\n HHb7 = YKHO.estimate_sigma_delta()\n return rLdf.Series(oyIN.random.laplace(0, HHb7 / oyIN.sqrt(2)), index=HHb7.index)",
"def aeY3(YKHO):\n Mkmy = YKHO.r\n exwG = YKHO.n\n Csk6 = YKHO.d\n if Csk6 <= 1:\n D4AW = 0.0\n else:\n Rv0k = VEDo.dot(exwG * Mkmy[0:Csk6]... | [
"0.5657856",
"0.56568915",
"0.5528231",
"0.54810715",
"0.54531264",
"0.5434451",
"0.54318094",
"0.54089665",
"0.53947634",
"0.53646505",
"0.5313328",
"0.530325",
"0.5296489",
"0.52664363",
"0.52517194",
"0.52402836",
"0.52370673",
"0.5189358",
"0.5189358",
"0.5177094",
"0.517... | 0.0 | -1 |
Transform a batch to a series of tuples of the form (tag, img), where `tag` corresponds to the image tag and `img` is the image itself. | def nrOS(YKHO, mWFP, Wc9F):
def WZP8(GRTM):
TZ9E, VXjJ = GRTM
assert VXjJ.ndim == 2 or VXjJ.ndim == 3, 'Only 2D (HW) and 3D (CHW) images are accepted for display'
if VXjJ.ndim == 2:
VXjJ = oyIN.expand_dims(VXjJ, axis=0)
else:
Nq1b = VXjJ.shape[0]
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o0jc(Yw_3):\n return BtC3(Yw_3)",
"def RN67(Wc9F):\n xkjI = []\n x6A0 = []\n iumf = []\n for mvm2 in Wc9F:\n xkjI.append(mvm2[0])\n x6A0.append(mvm2[1])\n iumf.append(mvm2[2])\n return (xkjI, x6A0, iumf)",
"def phJo(Wc9F):\n if not all([isinstance(ZfUD, tuple) for ... | [
"0.7283031",
"0.7241404",
"0.7093452",
"0.6989534",
"0.6951469",
"0.6946579",
"0.68509394",
"0.68065464",
"0.67530906",
"0.67220104",
"0.67220104",
"0.67008454",
"0.67008454",
"0.66648054",
"0.66648054",
"0.66648054",
"0.6596464",
"0.65155",
"0.6438542",
"0.64066935",
"0.6318... | 0.66560787 | 16 |