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 |
|---|---|---|---|---|---|---|
This function is used to calculate the distance between a point and the centroid of a given cluster | def nRQ3(AU8u, hKn5):
return ztBP(AU8u, hKn5.GetCentroid()[0]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HSHx(hKn5):\n AqG2 = len(hKn5)\n zlDh = sum((AU8u[0] for AU8u in hKn5)) / AqG2\n wr0o = sum((AU8u[1] for AU8u in hKn5)) / AqG2\n return [zlDh, wr0o]",
"def Ayfi(LTIa, yHxN):\n return ((LTIa - yHxN) ** 2).sum(axis=1)",
"def __fe(YKHO):\n return oyIN.divide(oyIN.add(YKHO.points[0], YKHO.poi... | [
"0.822643",
"0.7680509",
"0.76323354",
"0.7354222",
"0.7344561",
"0.7314732",
"0.73036075",
"0.72970486",
"0.7290838",
"0.7283668",
"0.72493654",
"0.72446275",
"0.7224734",
"0.71935177",
"0.71622664",
"0.71622664",
"0.7160388",
"0.7119182",
"0.7112118",
"0.71022713",
"0.70941... | 0.79520965 | 1 |
Return this light's color mode. | def neC1(YKHO) -> h8nf[str]:
yjp2 = YKHO.get_str_attr(NDBw)
if yjp2 == qpcO:
return j0y6
if yjp2 == EYgZ:
return KoxU
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def neC1(YKHO) -> zkuE:\n return zkuE(int(YKHO.data['color_mode']))",
"def neC1(YKHO):\n return YKHO.mapper.GetColorMode()",
"def neC1(YKHO) -> str:\n if YKHO.service.has(b8Vy.HUE) or YKHO.service.has(b8Vy.SATURATION):\n return p1Fd.HS\n if YKHO.service.has(b8Vy.COLOR_TEMPERATURE):\n ... | [
"0.87622565",
"0.87443167",
"0.8233881",
"0.819312",
"0.8035778",
"0.7947399",
"0.7876434",
"0.78590953",
"0.7795986",
"0.7795986",
"0.77726525",
"0.77377456",
"0.7704168",
"0.769339",
"0.7691437",
"0.7691437",
"0.7691437",
"0.7691437",
"0.7625758",
"0.7596016",
"0.75414175",... | 0.764545 | 18 |
Return the name of this light's current color. | def WRlh(YKHO) -> h8nf[str]:
return YKHO.get_str_attr(LLsh) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JWJh(YKHO):\n return YKHO.color.value",
"def qfpW(YKHO) -> str:\n return YKHO._color",
"def mWFP(YKHO):\n return YKHO._light.name",
"def mWFP(YKHO):\n return YKHO._light.name",
"def zAg0(YKHO) -> str:\n return PICn(YKHO.name, YKHO.color())",
"def yeCY(YKHO):\n YKHO.get_status()\n ... | [
"0.7800963",
"0.76361954",
"0.76265836",
"0.76265836",
"0.7623096",
"0.75334066",
"0.7510959",
"0.7491008",
"0.7487915",
"0.7391339",
"0.7391339",
"0.7366165",
"0.7358586",
"0.72962207",
"0.72841865",
"0.72334206",
"0.72302705",
"0.7220715",
"0.72188586",
"0.72188586",
"0.721... | 0.7544804 | 5 |
Return a unique ID for this light. | def ShR8(YKHO) -> str:
return f'{super().unique_id}::light' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ShR8(YKHO):\n return YKHO._zlight.id.lower()",
"def ShR8(YKHO):\n return YKHO._device.guid + YKHO._sensor_type['name']",
"def ShR8(YKHO):\n return f'{YKHO.glances_data.host}-{YKHO.name}'",
"def id(Emd4):\n return str(qxeD.uuid1())",
"def ShR8(YKHO) -> str:\n return f'{YKHO.charger.id}_{Y... | [
"0.7961184",
"0.7453226",
"0.741674",
"0.73922",
"0.7361032",
"0.7355537",
"0.7355537",
"0.7292687",
"0.72755075",
"0.72755075",
"0.72749656",
"0.72612625",
"0.72598755",
"0.7250882",
"0.725057",
"0.7237901",
"0.7217041",
"0.7214437",
"0.7207998",
"0.7201817",
"0.719843",
"... | 0.7838777 | 1 |
Return the legacy unique ID for this light. | def FX81(YKHO) -> x1iM[str]:
U6LO = [super().unique_id]
ZKZX = super().old_unique_ids
U6LO.extend(ZKZX)
return U6LO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ShR8(YKHO) -> str:\n return f'{super().unique_id}::light'",
"def ShR8(YKHO):\n return YKHO._zlight.id.lower()",
"def ShR8(YKHO):\n return YKHO._device.guid + YKHO._sensor_type['name']",
"def ShR8(YKHO) -> str:\n return f'{YKHO.charger.id}_{YKHO._sensor_name}'",
"def ShR8(YKHO):\n return ... | [
"0.78577095",
"0.7727677",
"0.75308764",
"0.7518815",
"0.7507113",
"0.74217314",
"0.7383908",
"0.73830885",
"0.73793095",
"0.73633754",
"0.73367137",
"0.73074543",
"0.7307385",
"0.729624",
"0.72739625",
"0.72640944",
"0.7247481",
"0.71927804",
"0.7181858",
"0.7178756",
"0.715... | 0.0 | -1 |
Return the currently set default volume unit. Returns OrderedDict A dictionary with the keys `prefix` and `unit`. | def BCO9(YKHO):
YKHO._call('LCP_GetVolumeUnit', YKHO._handle[0], YKHO._p_volume_prefix, YKHO._p_volume_unit)
if YKHO._p_volume_prefix[0] == YKHO._dll.MICRO:
y0cW = 'micro'
elif YKHO._p_volume_prefix[0] == YKHO._dll.MILLI:
y0cW = 'milli'
elif YKHO._p_volume_prefix[0] == YKHO._dll.CENTI:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Xf6L(JfyU):\n _fHq = c3_8(JfyU)\n return {mWFP: wEf2.units for mWFP, wEf2 in _fHq.viewitems() if isinstance(wEf2, P6bq.Quantity)}",
"def QcrO(YKHO):\n bkQs = Xf6L(YKHO.__init__)\n if bkQs == {}:\n raise AttributeError('No default values with units.')\n else:\n YKHO._default_units... | [
"0.6828409",
"0.642753",
"0.63088554",
"0.63008296",
"0.62154794",
"0.6142516",
"0.6126253",
"0.6082386",
"0.6081137",
"0.5932348",
"0.5839537",
"0.5839537",
"0.5808672",
"0.5788572",
"0.5782584",
"0.5748061",
"0.5703771",
"0.5674695",
"0.56585014",
"0.56573075",
"0.5652253",... | 0.6863112 | 0 |
Return the currently set flow unit. Returns OrderedDict A dictionary with the keys `prefix`, `volume_unit`, and `time_unit`. | def qZDz(YKHO):
YKHO._call('LCP_GetFlowUnit', YKHO._handle[0], YKHO._p_flow_prefix, YKHO._p_flow_volume_unit, YKHO._p_flow_time_unit)
if YKHO._p_flow_prefix[0] == YKHO._dll.MICRO:
y0cW = 'micro'
elif YKHO._p_flow_prefix[0] == YKHO._dll.MILLI:
y0cW = 'milli'
elif YKHO._p_flow_prefix[0] ==... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BCO9(YKHO):\n YKHO._call('LCP_GetVolumeUnit', YKHO._handle[0], YKHO._p_volume_prefix, YKHO._p_volume_unit)\n if YKHO._p_volume_prefix[0] == YKHO._dll.MICRO:\n y0cW = 'micro'\n elif YKHO._p_volume_prefix[0] == YKHO._dll.MILLI:\n y0cW = 'milli'\n elif YKHO._p_volume_prefix[0] == YKHO._d... | [
"0.6558224",
"0.63521856",
"0.61353725",
"0.610738",
"0.6084606",
"0.59623337",
"0.59477085",
"0.5834674",
"0.58048046",
"0.5804688",
"0.5797818",
"0.5717863",
"0.5672281",
"0.5661449",
"0.5648609",
"0.5618179",
"0.5616193",
"0.5593283",
"0.55913603",
"0.5558034",
"0.5558034"... | 0.6846563 | 0 |
The currently set flow unit. Returns OrderedDict A dictionary with the keys `prefix`, `volume_unit`, and `time_unit`. | def nMoS(YKHO):
return YKHO.get_flow_unit() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qZDz(YKHO):\n YKHO._call('LCP_GetFlowUnit', YKHO._handle[0], YKHO._p_flow_prefix, YKHO._p_flow_volume_unit, YKHO._p_flow_time_unit)\n if YKHO._p_flow_prefix[0] == YKHO._dll.MICRO:\n y0cW = 'micro'\n elif YKHO._p_flow_prefix[0] == YKHO._dll.MILLI:\n y0cW = 'milli'\n elif YKHO._p_flow_p... | [
"0.681649",
"0.66009444",
"0.6590463",
"0.6294891",
"0.62482506",
"0.61635643",
"0.6075784",
"0.6009259",
"0.59552556",
"0.5944782",
"0.59143776",
"0.58821046",
"0.58658874",
"0.5846602",
"0.58463836",
"0.5811852",
"0.5796844",
"0.5796844",
"0.5796844",
"0.5796844",
"0.572628... | 0.5297977 | 70 |
The currently set syringe properties. Returns OrderedDict Returns a dictionary with the keys `inner_diameter_mm` and `max_piston_stroke_mm`. | def InNG(YKHO):
return YKHO.get_syringe_params() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bT9k(YKHO):\n YKHO._call('LCP_GetSyringeParam', YKHO._handle[0], YKHO._p_inner_diameter_mm, YKHO._p_max_piston_stroke_mm)\n return U8Lr([('inner_diameter_mm', YKHO._p_inner_diameter_mm[0]), ('max_piston_stroke_mm', YKHO._p_max_piston_stroke_mm[0])])",
"def apeX(YKHO):\n c4LP, eHNT, Z9rn = YKHO.inqui... | [
"0.73363495",
"0.62627554",
"0.61117554",
"0.59417045",
"0.5828078",
"0.5708492",
"0.5698445",
"0.56978244",
"0.5680438",
"0.5658705",
"0.5612592",
"0.5605642",
"0.5592398",
"0.5479943",
"0.54778206",
"0.5459626",
"0.54554397",
"0.54548377",
"0.54507524",
"0.54494375",
"0.544... | 0.6164723 | 2 |
Pumps fluid with the given flow rate until the requested fill level is reached. Depending on the requested fill level given in ``level`` parameter this function may cause aspiration or dispension of fluid. If it aspirates it switches the valve in position 1. 0 if it dispenses. | def nUbZ(YKHO, ABDL, PZox, jUm5=False, Legy=False):
if ABDL < 0:
raise ValueError('Target level must be >= 0.')
if PZox <= 0:
raise ValueError('Flow rate must be positive.')
if Legy:
jUm5 = True
if ABDL < YKHO.get_fill_level():
YKHO.valve.switch_position(YKHO.valve.dispen... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qBb6(YKHO, akib, UtL5):\n if YKHO.verbose:\n print('pumping, {} ul {} ...'.format(akib, UtL5), end=' ')\n AZw5 = YKHO.flow_sens.get_flow_rate() * 1000.0 / 60.0\n qNED = ITS7()\n Aoao = 0\n YKHO.valves.open(UtL5)\n while Aoao < akib:\n ImIN = YKHO.flow_sens.get_flow_rate() * 1000... | [
"0.6222059",
"0.61297995",
"0.6035812",
"0.57779866",
"0.55373716",
"0.5527247",
"0.5462227",
"0.54134715",
"0.53029007",
"0.5241461",
"0.5230141",
"0.5182076",
"0.5176351",
"0.5160884",
"0.512255",
"0.50697696",
"0.5023966",
"0.49980873",
"0.4947592",
"0.49454358",
"0.493105... | 0.7295401 | 0 |
Ensure that posts are not shown unless permitted. | def X3pq(YKHO):
QePW = FM6F()
QePW.user = NqOl()
Gddr = fUf1(restrict_viewing=True)
MgeT = bxyk(forum=Gddr)
with YKHO.assertRaisesMessage(uhgT, ''):
igBq().get_object(QePW, Gddr.slug, MgeT.id)
QePW.user.is_superuser = True
YKHO.assertEqual(igBq().get_object(QePW, Gddr.slug, MgeT.id),... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UAl3(YKHO):\n yvY1(T97t, author=YKHO.user, published=True, updated_at=qcWV.date(2014, 3, 13))\n yvY1(T97t, author=YKHO.user, published=True)\n YKHO.client.force_authenticate(user=YKHO.user)\n m8z6 = yvY1(T97t, author=YKHO.user)\n ZMzz = VoMc(m8z6)\n geh0 = YKHO.client.post(YKHO.url, ZMzz.data... | [
"0.6644436",
"0.6482171",
"0.6423824",
"0.6379379",
"0.6367969",
"0.63435084",
"0.62928975",
"0.62616146",
"0.62328017",
"0.6179803",
"0.6168222",
"0.61589867",
"0.61216134",
"0.6050227",
"0.60254765",
"0.60096216",
"0.6004535",
"0.5989246",
"0.59454787",
"0.5938094",
"0.5902... | 0.61719453 | 10 |
Truncates the given float value to the specified number of decimal places. | def G34s(BWXx, nvWN=6):
BWXx = round(BWXx, nvWN)
if abs(BWXx) <= 1.0 / pow(10, nvWN):
BWXx = 0.0
return BWXx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def G34s(BWXx: float, _Fsb: int):\n return epAf.trunc(BWXx * 10 ** _Fsb) / 10 ** _Fsb",
"def JNU5(nkyf):\n if oyIN.isclose(nkyf, round(nkyf), atol=1e-06):\n qDAG = round(nkyf)\n else:\n qDAG = pBSp(nkyf)\n return qDAG",
"def Hgbu(BWXx: float, VIXL: str):\n _Fsb = dwGX.get(VIXL.uppe... | [
"0.77424216",
"0.72591054",
"0.7111471",
"0.68665385",
"0.68418103",
"0.6798363",
"0.6719373",
"0.6590468",
"0.6561675",
"0.6561675",
"0.6561675",
"0.6552186",
"0.6384065",
"0.6356855",
"0.6343444",
"0.6343444",
"0.6343444",
"0.6343444",
"0.6343444",
"0.6328224",
"0.6270466",... | 0.7088635 | 3 |
Retrieves a Amenity object. | def hbnf(Xl8X):
Iuwn = S8SU.get('Amenity', Xl8X)
if Iuwn is None:
eTsH(404)
return pz3A(Iuwn.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SKGT(Xl8X):\n try:\n pdic = pz3A(S8SU.get(HvY3, Xl8X).to_dict())\n return pdic\n except BaseException:\n eTsH(404)",
"def SKGT(Xl8X=None):\n KrbB = S8SU.get(HvY3, Xl8X)\n if KrbB is None:\n return Yxsy(pz3A({'error': 'Not found'}), 404)\n else:\n return Yxsy(... | [
"0.7357971",
"0.7121046",
"0.70676136",
"0.704905",
"0.70478195",
"0.6875547",
"0.68644994",
"0.6823209",
"0.66259414",
"0.65016943",
"0.64684886",
"0.63831705",
"0.6349013",
"0.6332856",
"0.6287693",
"0.6283455",
"0.6262022",
"0.6213565",
"0.6189504",
"0.6175759",
"0.6127619... | 0.5909161 | 31 |
Loads an existing model and its dataloader. | def Luv1(pmON: str, vauY: str='last.ckpt', HhtY: str=None):
GPtr: fRFd = g3f2.load(pmON + '/.hydra/config.yaml')
if GPtr.get('model'):
C3ST = ZvYj(GPtr.model._target_)
elif GPtr.get('ensemble'):
C3ST = ZvYj(GPtr.ensemble._target_)
dXTc: odhw = NN4v(GPtr.datamodule)
dXTc.setup()
i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uyMl(YKHO):\n pass",
"def uyMl(YKHO):\n pass",
"def uyMl(YKHO):\n pass",
"def uyMl(YKHO):\n pass",
"def uyMl():\n pass",
"def uyMl():\n pass",
"def tyeH(YKHO):\n YKHO._model_handler.load()\n YKHO.model = YKHO._model_handler.model",
"def uyMl():\n return",
"def tyeH(YK... | [
"0.7940721",
"0.7940721",
"0.7940721",
"0.7940721",
"0.79007775",
"0.79007775",
"0.77084434",
"0.7662634",
"0.7635216",
"0.75694656",
"0.754964",
"0.74397606",
"0.7406746",
"0.73438305",
"0.7339461",
"0.73248607",
"0.72999954",
"0.729935",
"0.72952414",
"0.7240807",
"0.722040... | 0.0 | -1 |
Creates a cooccurrence matrix from self.E | def x0Bh(YKHO):
print('Computing Co-occurrence Matrix for Label Clustering...')
for YRbF in F9FX(YKHO.m):
for r845 in range(YKHO.n):
uVM1 = set(oyIN.nonzero(YKHO.E[r845, :])[0])
if YRbF not in uVM1:
continue
else:
for vC9B in uVM1:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x0Bh(YKHO):\n for YRbF in F9FX(YKHO.m):\n for r845 in range(YKHO.n):\n uVM1 = set(oyIN.nonzero(YKHO.E[r845, :])[0])\n if YRbF not in uVM1:\n continue\n else:\n for vC9B in uVM1:\n YKHO.C[YRbF, vC9B] = 1\n t2lc.dump(Y... | [
"0.7261873",
"0.7261873",
"0.6374038",
"0.633765",
"0.628244",
"0.61330026",
"0.6119124",
"0.6098139",
"0.60689855",
"0.6043463",
"0.6001376",
"0.5952083",
"0.59247065",
"0.59188014",
"0.58979726",
"0.5885527",
"0.58833295",
"0.5835856",
"0.5803656",
"0.58021945",
"0.579849",... | 0.7388053 | 0 |
Creates a cooccurrence matrix from self.E | def x0Bh(YKHO):
for YRbF in F9FX(YKHO.m):
for r845 in range(YKHO.n):
uVM1 = set(oyIN.nonzero(YKHO.E[r845, :])[0])
if YRbF not in uVM1:
continue
else:
for vC9B in uVM1:
YKHO.C[YRbF, vC9B] = 1
t2lc.dump(YKHO.C, open(Hy... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x0Bh(YKHO):\n print('Computing Co-occurrence Matrix for Label Clustering...')\n for YRbF in F9FX(YKHO.m):\n for r845 in range(YKHO.n):\n uVM1 = set(oyIN.nonzero(YKHO.E[r845, :])[0])\n if YRbF not in uVM1:\n continue\n else:\n for vC9B ... | [
"0.7388053",
"0.6374038",
"0.633765",
"0.628244",
"0.61330026",
"0.6119124",
"0.6098139",
"0.60689855",
"0.6043463",
"0.6001376",
"0.5952083",
"0.59247065",
"0.59188014",
"0.58979726",
"0.5885527",
"0.58833295",
"0.5835856",
"0.5803656",
"0.58021945",
"0.579849",
"0.57585055"... | 0.7261873 | 2 |
Creates a cooccurrence matrix from self.E | def x0Bh(YKHO):
for YRbF in F9FX(YKHO.m):
for r845 in range(YKHO.n):
uVM1 = set(oyIN.nonzero(YKHO.E[r845, :])[0])
if YRbF not in uVM1:
continue
else:
for vC9B in uVM1:
YKHO.C[YRbF, vC9B] = 1
t2lc.dump(YKHO.C, open(Hy... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x0Bh(YKHO):\n print('Computing Co-occurrence Matrix for Label Clustering...')\n for YRbF in F9FX(YKHO.m):\n for r845 in range(YKHO.n):\n uVM1 = set(oyIN.nonzero(YKHO.E[r845, :])[0])\n if YRbF not in uVM1:\n continue\n else:\n for vC9B ... | [
"0.7388053",
"0.6374038",
"0.633765",
"0.628244",
"0.61330026",
"0.6119124",
"0.6098139",
"0.60689855",
"0.6043463",
"0.6001376",
"0.5952083",
"0.59247065",
"0.59188014",
"0.58979726",
"0.5885527",
"0.58833295",
"0.5835856",
"0.5803656",
"0.58021945",
"0.579849",
"0.57585055"... | 0.7261873 | 1 |
Downsampling an image by a factor of 2 | def myXy(VXjJ, aOex=(5, 5), WTkW=1.4):
k5v1 = hD3N(aOex, WTkW)
VXjJ = b_zE(VXjJ, k5v1)
return VXjJ[::2, ::2] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def myXy(VXjJ, aM8h):\n oTDq = VXjJ[::aM8h, ::aM8h].copy()\n return oTDq",
"def UfYa(Xn71: np.array, A3Vt: int) -> oyIN.array:\n BJd9 = XC5k.resize(Xn71, (int(Xn71.shape[1] / A3Vt), int(Xn71.shape[0] / A3Vt)), interpolation=XC5k.INTER_CUBIC)\n return BJd9",
"def mSbW(VXjJ, myXy=2):\n MKlR, yzQ0 ... | [
"0.76724905",
"0.74597704",
"0.7365577",
"0.7277488",
"0.7095783",
"0.708129",
"0.6947723",
"0.69341266",
"0.6881603",
"0.68647027",
"0.6861787",
"0.6818433",
"0.6801494",
"0.67458266",
"0.6682828",
"0.66659474",
"0.66492724",
"0.65918547",
"0.65905386",
"0.65164596",
"0.6505... | 0.7459214 | 2 |
Loads the pretrained version of VGG with the last layer cut off | def VlA8():
NDs1 = HxRh(weights='imagenet', include_top=True)
C3ST = wOed(inputs=NDs1.input, outputs=NDs1.get_layer('fc2').output)
return C3ST | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OJVN(YKHO):\n xA7f = YKHO.state_dict()\n DTb0 = list(xA7f.keys())\n KFXN = TTda.models.vgg16(pretrained=True).state_dict()\n DDS1 = list(KFXN.keys())\n for YRbF, xqoZ in enumerate(DTb0[:-4]):\n xA7f[xqoZ] = KFXN[DDS1[YRbF]]\n k068 = KFXN['classifier.0.weight'].view(4096, 512, 7, 7)\n ... | [
"0.71240455",
"0.7092925",
"0.6983691",
"0.6919497",
"0.6908953",
"0.6908953",
"0.6893881",
"0.68782735",
"0.68770593",
"0.6847293",
"0.6842275",
"0.68214595",
"0.6754669",
"0.67523456",
"0.6741532",
"0.67262244",
"0.6725038",
"0.67217064",
"0.67217064",
"0.67217064",
"0.6699... | 0.646163 | 47 |
Gets all the categories inside the wordpress application | def LQuW(YKHO):
NArs = {'per_page': '100'}
B2Dn = 1
LeZt = []
xDcj = YKHO.wp_url + 'wp-json/wp/v2/categories/'
if YKHO.lang is not None:
NArs['lang'] = YKHO.lang
try:
geh0 = G4JS.get(xDcj, params=NArs, timeout=30, auth=YKHO.auth)
except (ConnectionError, Grbl):
return... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N3tc(YKHO):\n geh0 = (yield YKHO._api_client.getRequest('site.json'))\n raise rtVo.Return(geh0['categories'])",
"def LU07(Emd4):\n return LeZt",
"def LQuW(YKHO):\n return YKHO.categories.all()",
"def LQuW(YKHO):\n return YKHO.categories.all()",
"def LQuW(YKHO):\n pass",
"def LQuW(YK... | [
"0.79740924",
"0.7961589",
"0.78698665",
"0.78698665",
"0.7859488",
"0.77432775",
"0.7714733",
"0.7668842",
"0.7648599",
"0.7647187",
"0.7582489",
"0.7551481",
"0.748246",
"0.74566513",
"0.7438373",
"0.7437781",
"0.7405077",
"0.7386743",
"0.7367172",
"0.7353767",
"0.7348613",... | 0.80381936 | 0 |
Test saved search creation failure if provided name is alredy taken. | def KfUj(YKHO):
nPrm = YKHO._post_saved_search({'name': 'test_ss_3', 'object_type': 'Assessment', 'search_type': 'AdvancedSearch'})
YKHO.assertEqual(nPrm['message'], u"Advanced Saved search for Assessment with name 'test_ss_3' already exists")
YKHO.assertEqual(nPrm['code'], 400) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Erae(YKHO):\n nPrm = YKHO._post_saved_search({'name': '', 'object_type': 'Assessment', 'search_type': 'AdvancedSearch'})\n YKHO.assertEqual(nPrm['message'], \"Saved search name can't be blank\")\n YKHO.assertEqual(nPrm['code'], 400)",
"def jKma(YKHO):\n StcW = YKHO._post_saved_search({'name': '',... | [
"0.7757758",
"0.71667695",
"0.70293826",
"0.6844002",
"0.67966074",
"0.67462444",
"0.67434555",
"0.6705532",
"0.65936494",
"0.65801466",
"0.6576123",
"0.6567986",
"0.6563793",
"0.6552444",
"0.6533385",
"0.651063",
"0.65009004",
"0.64945745",
"0.64933234",
"0.64837766",
"0.648... | 0.80677927 | 0 |
Test saved search creation failure if provided name is empty. | def Erae(YKHO):
nPrm = YKHO._post_saved_search({'name': '', 'object_type': 'Assessment', 'search_type': 'AdvancedSearch'})
YKHO.assertEqual(nPrm['message'], "Saved search name can't be blank")
YKHO.assertEqual(nPrm['code'], 400) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KfUj(YKHO):\n nPrm = YKHO._post_saved_search({'name': 'test_ss_3', 'object_type': 'Assessment', 'search_type': 'AdvancedSearch'})\n YKHO.assertEqual(nPrm['message'], u\"Advanced Saved search for Assessment with name 'test_ss_3' already exists\")\n YKHO.assertEqual(nPrm['code'], 400)",
"def jKma(YKHO... | [
"0.7863248",
"0.7564061",
"0.70394903",
"0.6913222",
"0.67285335",
"0.6687474",
"0.66544574",
"0.66141695",
"0.65889746",
"0.64554673",
"0.6450465",
"0.6416737",
"0.6414103",
"0.6397324",
"0.6389904",
"0.638916",
"0.63730174",
"0.6368741",
"0.6342566",
"0.6335544",
"0.6299129... | 0.81837213 | 0 |
Test saved search creation failure with invalud search_type. | def B74H(YKHO):
nPrm = YKHO._post_saved_search({'name': 'test_ss_1', 'object_type': 'Assessment', 'search_type': 'Invalid Type'})
YKHO.assertEqual(nPrm['message'], u'Invalid saved search type')
YKHO.assertEqual(nPrm['code'], 400) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def l457(YKHO):\n nPrm = YKHO._post_saved_search({'name': 'test_ss_1', 'object_type': 'Overwatch', 'search_type': 'AdvancedSearch'})\n YKHO.assertEqual(nPrm['message'], u\"Object of type 'Overwatch' does not support search saving\")\n YKHO.assertEqual(nPrm['code'], 400)",
"def Erae(YKHO):\n nPrm = YK... | [
"0.7773991",
"0.72568357",
"0.72560716",
"0.72392577",
"0.6869368",
"0.6791297",
"0.67672807",
"0.66392076",
"0.6614671",
"0.65709543",
"0.6531062",
"0.6511802",
"0.64958507",
"0.64111257",
"0.63872427",
"0.637404",
"0.634287",
"0.63388526",
"0.63340074",
"0.63296586",
"0.632... | 0.8286685 | 0 |
convert a number to a string, padding with spaces upto the maximum number of digits for this context | def K3FP(YKHO, mLGw):
return str(mLGw).rjust(YKHO.num_digits) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tlJD(FGW3):\n if FGW3 < 10:\n return f'0{FGW3}'\n return str(FGW3)",
"def q3Qj(FGW3):\n ycBG = str(FGW3)\n while len(ycBG) < 4:\n ycBG = '0' + ycBG\n return ycBG",
"def YOYe(mLGw):\n hVLt = ' ' if mLGw < 10 else ''\n return '%s%s' % (hVLt, mLGw)",
"def O3te(FGW3, gZgb,... | [
"0.7549127",
"0.75410193",
"0.73933476",
"0.7364157",
"0.7178398",
"0.71521664",
"0.71078956",
"0.70814043",
"0.7078869",
"0.707859",
"0.70358837",
"0.7002976",
"0.69674987",
"0.6899686",
"0.68648255",
"0.683063",
"0.6828089",
"0.67809707",
"0.67378443",
"0.67354745",
"0.6732... | 0.7758303 | 0 |
convert an integer to a one_hot sequence | def lLBC(YKHO, FGW3):
zSJ2 = YKHO.num_string(FGW3)
Y_ny = [YKHO.mapping[KCHu] for KCHu in zSJ2]
return mKke.to_one_hot(Y_ny, len(YKHO.mapping.keys())) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KLLm(WKvO):\n if isinstance(WKvO, str):\n Q6uT = WKvO\n else:\n Q6uT = WKvO.sequence()\n RDhP = []\n for D9cM in Q6uT:\n eHNT = oyIN.zeros(20)\n eHNT[Y_Tc[D9cM]] = 1\n RDhP.append(eHNT)\n return oyIN.array(RDhP).astype(int)",
"def zGX0(WKvO):\n return oyIN... | [
"0.83987963",
"0.8252695",
"0.8119504",
"0.8115335",
"0.80322653",
"0.80145967",
"0.8010486",
"0.79713583",
"0.7940678",
"0.7927721",
"0.7918478",
"0.7905886",
"0.79032797",
"0.7898962",
"0.7884474",
"0.7879714",
"0.78760254",
"0.787407",
"0.78728986",
"0.78727645",
"0.786922... | 0.73910975 | 85 |
Generate OpenEO API compliant error dict to JSONify | def MNRr(YKHO):
Csk6 = {'message': str(YKHO), 'code': YKHO.code, 'id': YKHO.id}
if YKHO.url:
Csk6['url'] = YKHO.url
return Csk6 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AVwn(YKHO, tTpl):\n RKD7.debug('[FoodTrucks] Generating json error')\n XObx = YKHO.create_multidict(['error'], ['text'], [tTpl.code, tTpl.msg])\n return qQXR.dumps(XObx)",
"def didH(tTpl):\n return (pz3A({'message': tTpl.description}), tTpl.code)",
"def oKIV(YKHO):\n return qQXR.dumps(YKHO.o... | [
"0.73581284",
"0.7227017",
"0.71999407",
"0.71614563",
"0.7104018",
"0.6924063",
"0.68931973",
"0.68587977",
"0.68565434",
"0.6856346",
"0.6844724",
"0.673792",
"0.67199576",
"0.6674342",
"0.6665103",
"0.66421247",
"0.6619811",
"0.6608391",
"0.6602282",
"0.66019833",
"0.65813... | 0.0 | -1 |
Returns the first_name plus the last_name, with a space in between. | def xpqj(YKHO):
eHMM = '%s %s' % (YKHO.first_name, YKHO.last_name)
return eHMM.strip() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e1yb(c9ua, zp3f):\n eHMM = c9ua + ' ' + zp3f\n return eHMM",
"def xpqj(YKHO):\n return (YKHO.first_name + ' ' + YKHO.last_name).strip()",
"def zFMy(YKHO):\n return (YKHO.first_name or '') + (YKHO.first_name and ' ' or '') + (YKHO.last_name or '')",
"def e1yb(c9ua, zp3f):\n eHMM = c9ua.titl... | [
"0.82872856",
"0.8179012",
"0.81130326",
"0.80760396",
"0.8034134",
"0.8032392",
"0.8030516",
"0.80072623",
"0.8006718",
"0.8005418",
"0.8000916",
"0.7995176",
"0.79901665",
"0.79793483",
"0.79790914",
"0.79603624",
"0.7952844",
"0.7944558",
"0.7944558",
"0.79419315",
"0.7941... | 0.77470917 | 72 |
Returns the person's full name. | def eHMM(YKHO):
return '%s %s' % (YKHO.first_name, YKHO.last_name) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xpqj(YKHO):\n eHMM = '%s %s' % (YKHO.first_name, YKHO.last_name)\n return eHMM.strip()",
"def xpqj(YKHO):\n eHMM = '%s %s' % (YKHO.first_name, YKHO.last_name)\n return eHMM.strip()",
"def xpqj(YKHO) -> str:\n return YKHO.first_name + YKHO.last_name",
"def xpqj(YKHO):\n eHMM = '%s %s' % ... | [
"0.8697305",
"0.8697305",
"0.8663169",
"0.8652256",
"0.86246026",
"0.86171603",
"0.86171603",
"0.86171603",
"0.86171603",
"0.86171603",
"0.86171603",
"0.86171603",
"0.86171603",
"0.86171603",
"0.86171603",
"0.86171603",
"0.86171603",
"0.86171603",
"0.86171603",
"0.86171603",
... | 0.85409313 | 71 |
ARN of the subscription. | def hMqs(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'arn') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')",
"def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')",
"def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')",
"def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')",
"def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')",
"def h... | [
"0.71839166",
"0.71839166",
"0.71839166",
"0.71839166",
"0.71839166",
"0.71839166",
"0.71839166",
"0.71839166",
"0.71839166",
"0.71839166",
"0.71839166",
"0.71839166",
"0.71839166",
"0.71839166",
"0.71839166",
"0.71839166",
"0.71839166",
"0.7041139",
"0.7023492",
"0.7023492",
... | 0.6168092 | 87 |
Whether the subscription confirmation request was authenticated. | def L6vs(YKHO) -> h8nf[qe4Y.Input[bool]]:
return qe4Y.get(YKHO, 'confirmation_was_authenticated') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def L6vs(YKHO) -> qe4Y.Output[bool]:\n return qe4Y.get(YKHO, 'confirmation_was_authenticated')",
"def ZkLW(YKHO):\n if YKHO._session.status_code == 200:\n return True\n else:\n return False",
"def rts1(YKHO):\n return YKHO.authenticated",
"def rts1(YKHO):\n return YKHO.authentica... | [
"0.8156175",
"0.7167928",
"0.7016081",
"0.7016081",
"0.70069385",
"0.6998637",
"0.6991164",
"0.6991164",
"0.6991164",
"0.6991164",
"0.69812703",
"0.6981148",
"0.6965287",
"0.69469315",
"0.6946655",
"0.69455653",
"0.6936516",
"0.69256216",
"0.69256216",
"0.69256216",
"0.692562... | 0.8088309 | 1 |
ARN of the subscription. | def hMqs(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'arn') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')",
"def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')",
"def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')",
"def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')",
"def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')",
"def h... | [
"0.71839166",
"0.71839166",
"0.71839166",
"0.71839166",
"0.71839166",
"0.71839166",
"0.71839166",
"0.71839166",
"0.71839166",
"0.71839166",
"0.71839166",
"0.71839166",
"0.71839166",
"0.71839166",
"0.71839166",
"0.71839166",
"0.71839166",
"0.7041139",
"0.6699074",
"0.6683119",
... | 0.7023492 | 19 |
Whether the subscription confirmation request was authenticated. | def L6vs(YKHO) -> qe4Y.Output[bool]:
return qe4Y.get(YKHO, 'confirmation_was_authenticated') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def L6vs(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'confirmation_was_authenticated')",
"def ZkLW(YKHO):\n if YKHO._session.status_code == 200:\n return True\n else:\n return False",
"def rts1(YKHO):\n return YKHO.authenticated",
"def rts1(YKHO):\n return YKHO.authe... | [
"0.8088309",
"0.7167928",
"0.7016081",
"0.7016081",
"0.70069385",
"0.6998637",
"0.6991164",
"0.6991164",
"0.6991164",
"0.6991164",
"0.69812703",
"0.6981148",
"0.6965287",
"0.69469315",
"0.6946655",
"0.69455653",
"0.6936516",
"0.69256216",
"0.69256216",
"0.69256216",
"0.692562... | 0.8156175 | 0 |
Convert choice_str (a string) to an integer modulo race_modulus. | def oLdZ(YKHO, vTug):
assert isinstance(vTug, str)
cJuV = vTug.encode()
gTq7 = HJX9.bytes2int(cJuV)
assert 0 <= gTq7 < YKHO.race_modulus
return gTq7 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jZrp(YKHO, YRbF, KCHu):\n return int(YRbF % KCHu)",
"def PI8i(YKHO):\n jDtP = G0yZ.randint(2 ** 201 + 1, 2 ** 202 - 1)\n YKHO._modulus = jDtP",
"def Ss5Z(str):\n str = int(str)\n Ylbp = str % 7\n return Ylbp",
"def Gzv6(amDE):\n cXYN = hash(amDE)\n Aofo = cXYN % 1000\n if Aofo ... | [
"0.6223852",
"0.58267397",
"0.5683191",
"0.5658244",
"0.53947145",
"0.5267538",
"0.52513325",
"0.52457136",
"0.52321756",
"0.52177763",
"0.51775414",
"0.5157134",
"0.5142292",
"0.5120178",
"0.5093778",
"0.5066171",
"0.50456756",
"0.5043425",
"0.502186",
"0.4965773",
"0.495695... | 0.7448058 | 0 |
Inverse of choice_str2int; convert integer to choice string. | def MxSz(YKHO, gTq7):
assert isinstance(gTq7, int) and 0 <= gTq7 < YKHO.race_modulus
cJuV = HJX9.int2bytes(gTq7)
vTug = cJuV.decode()
assert YKHO.is_valid_choice(vTug)
return vTug | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oLdZ(YKHO, vTug):\n assert isinstance(vTug, str)\n cJuV = vTug.encode()\n gTq7 = HJX9.bytes2int(cJuV)\n assert 0 <= gTq7 < YKHO.race_modulus\n return gTq7",
"def jq6G(vIwR):\n try:\n AfBZ = int(vIwR)\n except:\n AfBZ = 999\n return AfBZ",
"def kdg6(Emd4, Acvy):\n if... | [
"0.6779892",
"0.66755944",
"0.6404696",
"0.6311259",
"0.6199714",
"0.61929125",
"0.6181457",
"0.6144587",
"0.6058001",
"0.6026201",
"0.6017113",
"0.5976965",
"0.5971443",
"0.59565216",
"0.5954566",
"0.5922037",
"0.59190255",
"0.5897224",
"0.5895607",
"0.5880817",
"0.58513045"... | 0.75218636 | 0 |
Calculates the moving average of the input value. | def ZCKv(YKHO, BWXx, yMhW=5):
if len(YKHO.moving_average_array) == 0:
YKHO.moving_average_array = oyIN.full(yMhW, BWXx)
YKHO.moving_average_array = oyIN.append(YKHO.moving_average_array, BWXx)
KnxT = oyIN.ones(yMhW) / float(yMhW)
if len(YKHO.moving_average_array) > yMhW:
YKHO.moving_aver... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZCKv(hkxX: List[float]) -> float:\n qqgr = hkxX[0]\n for wEf2 in hkxX:\n qqgr = qqgr * 0.4 + wEf2 * 0.6\n return qqgr",
"def PdzZ(nPrm, exwG=2):\n U5bT = oyIN.cumsum(nPrm, dtype=float)\n U5bT[exwG:] = U5bT[exwG:] - U5bT[:-exwG]\n return U5bT[exwG - 1:] / exwG",
"def ZCKv(jzdc, exwG... | [
"0.7961881",
"0.782817",
"0.7772077",
"0.77647716",
"0.77643824",
"0.7683382",
"0.7651116",
"0.7651116",
"0.7651116",
"0.7651116",
"0.76363724",
"0.7577794",
"0.7571315",
"0.75623715",
"0.75179815",
"0.7499555",
"0.7475318",
"0.7466651",
"0.7455055",
"0.7437463",
"0.74154896"... | 0.72268116 | 26 |
Resets the moving average filter. | def WZbW(YKHO):
YKHO.moving_average_array = oyIN.array([]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ka5c(YKHO):\n JLNi = len(YKHO.data_x) // 10\n if JLNi == 0:\n JLNi = 1\n YKHO.rolling_average.end = JLNi\n YKHO.rolling_average.value = 0\n YKHO.y_scale.value = '1'\n YKHO.x_scale.value = '1'\n YKHO.x_offset.value = '0'\n YKHO.y_offset.value = '0'\n YKHO.rolling_average",
"d... | [
"0.71263653",
"0.67802465",
"0.6596674",
"0.6595028",
"0.6556989",
"0.65563303",
"0.64888644",
"0.64506966",
"0.63797206",
"0.63685846",
"0.6341822",
"0.63342273",
"0.63259196",
"0.6283848",
"0.6283848",
"0.6247956",
"0.62473756",
"0.6244214",
"0.62349665",
"0.6229269",
"0.62... | 0.7898951 | 0 |
Pack list of tensors, provide reorder indexes | def tMMy(cRc2):
maxY = [a1PO.shape[0] for a1PO in cRc2]
N6YX = oyIN.argsort(maxY)[::-1]
sLNZ = [cRc2[YRbF] for YRbF in N6YX]
maxY = sorted(maxY, reverse=True)
HNC5 = BRjU(sLNZ)
E4mu = ht2j.tensor(oyIN.argsort(N6YX), requires_grad=False)
return (HNC5, E4mu) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tMMy(cRc2: List[torch.Tensor]) -> AzJI[ht2j.Tensor, x1iM[ht2j.Size]]:\n NRcB = ht2j.cat([a1PO.view(-1) for a1PO in cRc2])\n N8OZ = [vhpA.shape for vhpA in cRc2]\n return (NRcB, N8OZ)",
"def tMMy(xIDq, _0VL):\n HNC5 = []\n jbXL = 0\n for d6pt in _0VL:\n hObQ = xBlr.reduce(lambda jzdc,... | [
"0.6621339",
"0.65126044",
"0.6444386",
"0.63856477",
"0.62982136",
"0.6235954",
"0.61760646",
"0.61760646",
"0.6152534",
"0.6073636",
"0.59689057",
"0.59281826",
"0.5914236",
"0.588891",
"0.5784342",
"0.5770337",
"0.5770337",
"0.5770337",
"0.5770337",
"0.576502",
"0.5725537"... | 0.75941485 | 0 |
Flatten a list of lists into one list | def PWgb(ybN4):
return [ZfUD for XuXy in ybN4 for ZfUD in XuXy] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MKPt(nwEZ):\n Aofo = []\n for LihS in nwEZ:\n Aofo.extend(LihS)\n return Aofo",
"def PWgb(nwEZ):\n return list(Hs6x.chain.from_iterable(nwEZ))",
"def PWgb(nwEZ):\n return Hs6x.chain.from_iterable(nwEZ)",
"def PWgb(nwEZ):\n return [WKvO for Uqbu in nwEZ for WKvO in Uqbu]",
"def ... | [
"0.8860295",
"0.87669826",
"0.86867255",
"0.8641611",
"0.86199623",
"0.8596511",
"0.8596511",
"0.8596511",
"0.8576996",
"0.84844613",
"0.8480817",
"0.8462812",
"0.84413177",
"0.8423309",
"0.8376005",
"0.8370138",
"0.83175606",
"0.83175606",
"0.83097917",
"0.83097917",
"0.8309... | 0.79386705 | 42 |
Flatten a list of lists into one list | def Rtuj(ybN4, aBML):
tCOl, n5R0, q4lJ, wRAW, QVFE, ErzV, w7M_ = zip(*[(KnxT[0], KnxT[-1], aBML[KnxT[0]][0], aBML[KnxT[-1]][-1], list(range(aBML[KnxT[0]][0], aBML[KnxT[-1]][-1] + 1)), KnxT[-1] - KnxT[0] + 1, aBML[KnxT[-1]][-1] + 1 - aBML[KnxT[0]][0]) for KnxT in ybN4])
return (tCOl, n5R0, q4lJ, wRAW, PWgb(QVFE)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MKPt(nwEZ):\n Aofo = []\n for LihS in nwEZ:\n Aofo.extend(LihS)\n return Aofo",
"def PWgb(nwEZ):\n return list(Hs6x.chain.from_iterable(nwEZ))",
"def PWgb(nwEZ):\n return Hs6x.chain.from_iterable(nwEZ)",
"def PWgb(nwEZ):\n return [WKvO for Uqbu in nwEZ for WKvO in Uqbu]",
"def ... | [
"0.8860295",
"0.87669826",
"0.86867255",
"0.8641611",
"0.86199623",
"0.8596511",
"0.8596511",
"0.8596511",
"0.8576996",
"0.84844613",
"0.8480817",
"0.8462812",
"0.84413177",
"0.8423309",
"0.8376005",
"0.8370138",
"0.83175606",
"0.83175606",
"0.83097917",
"0.83097917",
"0.8309... | 0.0 | -1 |
Creates and loads pretrained deeplab model. | def FIMM(YKHO, VLXu):
YKHO.graph = ZylS.Graph()
r8JX = None
ypwA = VAiu.open(VLXu)
for iM7u in ypwA.getmembers():
if YKHO.FROZEN_GRAPH_NAME in Hy7s.path.basename(iM7u.name):
G6EG = ypwA.extractfile(iM7u)
r8JX = ZylS.GraphDef.FromString(G6EG.read())
break
y... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O5RJ(YKHO) -> None:\n YKHO.model = ADDA(encoder_name='resnet34', activation='sigmoid')\n YKHO.model.load_state_dict(ht2j.load(f'{Odyn}/model/seg_model.pt'))\n YKHO.model.eval()",
"def uyMl():\n NtnT = cvxQ.DeviceOption()\n NtnT.device_type = cvxQ.CPU\n RzlV = 'out/model_init.pb'\n U94V =... | [
"0.7648836",
"0.71454567",
"0.7105731",
"0.70605075",
"0.7048734",
"0.70357805",
"0.70135975",
"0.698738",
"0.6972397",
"0.6947987",
"0.6947987",
"0.69337046",
"0.6923191",
"0.6895573",
"0.688701",
"0.6884813",
"0.6876558",
"0.68761164",
"0.68481755",
"0.68375784",
"0.6836809... | 0.0 | -1 |
Returns the element ID. | def unpH(YKHO):
j8eK = YKHO.raw.get('self')
return YKHO._parse_id(j8eK) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DExC(YKHO) -> int:\n return YKHO._element_dict['id']",
"def id(YKHO):\n return YKHO.etree_element.get('id')",
"def unpH(YKHO, U6D_):\n return str(U6D_.attrib.get('id'))",
"def DExC(YKHO) -> int:\n return YKHO._order_dict['element_id']",
"def id(YKHO):\n return YKHO.tag.attrib['id']",
"... | [
"0.8970243",
"0.87263477",
"0.85497487",
"0.8361094",
"0.81498325",
"0.80935407",
"0.7916185",
"0.7835587",
"0.7769269",
"0.7760597",
"0.7707658",
"0.7699582",
"0.76696134",
"0.7669165",
"0.7652196",
"0.7633259",
"0.7591328",
"0.75808513",
"0.75808513",
"0.7579861",
"0.757889... | 0.0 | -1 |
Returns the ID of the edge's incoming vertex (end node). | def bteR(YKHO):
j8eK = YKHO.raw.get('end')
return YKHO._parse_id(j8eK) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dyIx(YKHO):\n vEq1 = YKHO.eid\n YKHO.eid += 1\n return vEq1",
"def QISa(YKHO):\n return Jx6v(YKHO._graph_edge_index)",
"def wfbg(YKHO):\n return ZYgz.TNGraphEdgeI_GetId(YKHO)",
"def wfbg(YKHO):\n return ZYgz.TUNGraphEdgeI_GetId(YKHO)",
"def wfbg(YKHO):\n return ZYgz.TDirNetEdgeI_Ge... | [
"0.7479079",
"0.7349588",
"0.72337407",
"0.7097634",
"0.69622797",
"0.68733484",
"0.686604",
"0.6817902",
"0.6715713",
"0.66257447",
"0.66146064",
"0.65883225",
"0.65377027",
"0.63867724",
"0.63016474",
"0.6274495",
"0.6265386",
"0.6249649",
"0.62322783",
"0.6217142",
"0.6214... | 0.5846806 | 47 |
Creates a edge and returns the Response. | def bsXo(YKHO, APK5, UXqs, JrNp, nPrm={}):
if YKHO.config.autoindex is True:
V_s1 = YKHO.config.edge_autoindex
return YKHO.create_indexed_edge(APK5, UXqs, JrNp, nPrm, V_s1, keys=None)
Ol8d = YKHO.message.create_edge(APK5, UXqs, JrNp, nPrm)
return YKHO.request.send(Ol8d) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bsXo(D70y: Dict[str, Any]) -> None:\n return mevx(set_obj=D70y)",
"def AkCQ(YKHO, object: Edge):\n try:\n YKHO.create(object)\n return object\n except Exception as err:\n G9jH.error(XObx)",
"def RHqD(YKHO):\n return YKHO.createDocument()",
"def bsXo(YKHO, PWg9, zZcM, V_1d... | [
"0.74526775",
"0.74075794",
"0.730862",
"0.69054276",
"0.68827134",
"0.65816516",
"0.6482248",
"0.64221674",
"0.63916314",
"0.6379501",
"0.6294628",
"0.6223614",
"0.6180013",
"0.6127515",
"0.6121494",
"0.61210686",
"0.6065992",
"0.6063529",
"0.6042071",
"0.6035915",
"0.599141... | 0.73493844 | 2 |
Updates the edge with the _id and returns the Response. | def URuO(YKHO, _eu6, nPrm):
if YKHO.config.autoindex is True:
V_s1 = YKHO.config.edge_autoindex
return YKHO.update_indexed_edge(_eu6, nPrm, V_s1, keys=None)
Ol8d = YKHO.message.update_edge(_eu6, nPrm)
return YKHO.request.send(Ol8d) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ocau(YKHO, mWFP, H5ew, BWXx, _eu6):\n Ol8d = YKHO.message.put_edge(mWFP, H5ew, BWXx, _eu6)\n return YKHO.request.send(Ol8d)",
"def URuO(YKHO, D70y, ntd0=False):\n o8Kj = {'attributes': D70y.attrs}\n o8Kj.update({'from': D70y._sub, 'pred': D70y._pred, 'to': D70y._ob})\n if not ntd0:\n YK... | [
"0.7084684",
"0.6892857",
"0.6478938",
"0.64649975",
"0.63356227",
"0.62634736",
"0.6198969",
"0.6076113",
"0.6037164",
"0.592355",
"0.59025615",
"0.5869995",
"0.58359635",
"0.575383",
"0.57510275",
"0.57181424",
"0.5693241",
"0.5628169",
"0.5622024",
"0.56042165",
"0.5598305... | 0.7708797 | 0 |
Return the outgoing edges of the vertex. | def WIMa(YKHO, _eu6, UXqs=None):
Ol8d = YKHO.message.outE(_eu6, UXqs)
return YKHO.request.send(Ol8d) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QD1e(YKHO):\n lXYU = YKHO.outgoing_edge\n U7KR = []\n uLl_ = set()\n while lXYU and lXYU not in uLl_:\n U7KR.append(lXYU)\n uLl_.add(lXYU)\n hBMt = lXYU.getTwin()\n if hBMt:\n lXYU = hBMt.getNext()\n else:\n raise Exception('Error while compu... | [
"0.8203013",
"0.81779844",
"0.8175922",
"0.8023374",
"0.77241504",
"0.755789",
"0.7525087",
"0.7517725",
"0.7472093",
"0.73298067",
"0.7234788",
"0.7188238",
"0.7132896",
"0.71265554",
"0.7120406",
"0.70299286",
"0.7016297",
"0.7007261",
"0.7001348",
"0.6957996",
"0.6934351",... | 0.0 | -1 |
Return all incoming and outgoing edges of the vertex. | def zff8(YKHO, _eu6, UXqs=None):
Ol8d = YKHO.message.bothE(_eu6, UXqs)
return YKHO.request.send(Ol8d) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aalb(YKHO, SLBp):\n return (D70y for D70y in YKHO.edge_set if D70y.is_outgoing_from_vertex(SLBp))",
"def kSPG(YKHO, SLBp):\n for AAbN in YKHO._outgoing[SLBp]:\n yield ((SLBp, AAbN), AAbN)",
"def mC4V(YKHO):\n for SLBp in YKHO:\n if not YKHO[SLBp]:\n yield (SLBp, SLBp)\n ... | [
"0.78574556",
"0.7849359",
"0.7474195",
"0.7336741",
"0.73322475",
"0.7270324",
"0.7270324",
"0.72492605",
"0.7230029",
"0.71890414",
"0.71734464",
"0.7156734",
"0.7144342",
"0.7142462",
"0.71385276",
"0.71385276",
"0.71280324",
"0.7100118",
"0.70412767",
"0.70291924",
"0.702... | 0.0 | -1 |
Returns a map of all the vertex indices. | def LnKq(YKHO):
Ol8d = YKHO.message.get_vertex_indices()
return YKHO.request.send(Ol8d) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zcCi(YKHO):\n return {H5ew: d6pt for d6pt, H5ew in enumerate(YKHO.vertices())}",
"def EZGq(YKHO):\n return dict(enumerate(YKHO.vertices()))",
"def EBww(YKHO):\n return YKHO.vert_dict.keys()",
"def EBww(YKHO):\n return list(YKHO.vertex_dict.keys())",
"def MQXZ(YKHO):\n return YKHO.vertice... | [
"0.8207992",
"0.7926538",
"0.7554159",
"0.7517119",
"0.737661",
"0.736297",
"0.73268473",
"0.7306344",
"0.7299004",
"0.7286733",
"0.72720706",
"0.7271216",
"0.7245716",
"0.7229411",
"0.72122127",
"0.72122127",
"0.7209945",
"0.7185809",
"0.7183893",
"0.7183893",
"0.71690685",
... | 0.75327593 | 3 |
Returns the vertex index with the index_name. | def JOo7(YKHO, V_s1):
_hkX = YKHO.get_vertex_indices()
_hkX.results = YKHO._get_index_results(V_s1, _hkX)
if _hkX.results:
_hkX.set_index_name(V_s1)
return _hkX | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(YKHO, V_s1):\n _hkX = YKHO.resource.get_vertex_index(V_s1)\n if _hkX.results:\n d6pt = YKHO.index_class(YKHO.resource, _hkX.results)\n YKHO.resource.registry.add_index(V_s1, d6pt)\n return d6pt",
"def NMoC(YKHO, V_s1='vertex'):\n d6pt = YKHO.index_class(YKHO.client, None)\n... | [
"0.8052871",
"0.7896247",
"0.73651034",
"0.718203",
"0.6942672",
"0.6942587",
"0.69237757",
"0.6854566",
"0.6842575",
"0.68075925",
"0.6755354",
"0.67365664",
"0.67335874",
"0.66907024",
"0.66207707",
"0.65039957",
"0.6425888",
"0.6366218",
"0.6326516",
"0.6268042",
"0.625911... | 0.8377737 | 0 |
Returns a map of all the vertex indices. | def C9JL(YKHO):
Ol8d = YKHO.message.get_edge_indices()
return YKHO.request.send(Ol8d) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zcCi(YKHO):\n return {H5ew: d6pt for d6pt, H5ew in enumerate(YKHO.vertices())}",
"def EZGq(YKHO):\n return dict(enumerate(YKHO.vertices()))",
"def EBww(YKHO):\n return YKHO.vert_dict.keys()",
"def LnKq(YKHO):\n Ol8d = YKHO.message.get_vertex_indices()\n return YKHO.request.send(Ol8d)",
"... | [
"0.8207992",
"0.7926538",
"0.7554159",
"0.75327593",
"0.7517119",
"0.737661",
"0.736297",
"0.73268473",
"0.7306344",
"0.7299004",
"0.7286733",
"0.72720706",
"0.7271216",
"0.7245716",
"0.7229411",
"0.72122127",
"0.72122127",
"0.7209945",
"0.7185809",
"0.7183893",
"0.7183893",
... | 0.0 | -1 |
Adds a vertex to the index with the index_name. | def bitc(YKHO, mWFP, H5ew, BWXx, _eu6):
Ol8d = YKHO.message.put_vertex(mWFP, H5ew, BWXx, _eu6)
return YKHO.request.send(Ol8d) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ohmD(YKHO, niHF: n):\n rJkO = Yegm(niHF)\n YKHO._graph[rJkO.name] = rJkO",
"def Qk_e(YKHO, V_s1, *qIxc, **c_sp):\n Ol8d = YKHO.message.create_vertex_index(V_s1, *qIxc, **c_sp)\n _hkX = YKHO.request.send(Ol8d)\n _hkX.set_index_name(V_s1)\n return _hkX",
"def eLpg(YKHO, V_s1):\n EXZJ = Y... | [
"0.8181142",
"0.80515534",
"0.7649375",
"0.7481554",
"0.7454323",
"0.73557",
"0.73557",
"0.73296064",
"0.73292863",
"0.72741556",
"0.72741556",
"0.72741556",
"0.72741556",
"0.72741556",
"0.72323203",
"0.7171479",
"0.7147248",
"0.71372443",
"0.71060956",
"0.70754194",
"0.70268... | 0.6636184 | 63 |
Adds an edge to the index and returns the Response. | def ocau(YKHO, mWFP, H5ew, BWXx, _eu6):
Ol8d = YKHO.message.put_edge(mWFP, H5ew, BWXx, _eu6)
return YKHO.request.send(Ol8d) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def A609(YKHO, *qIxc):\n return PZpo.TNEANet_AddEdge(YKHO, *qIxc)",
"def A609(YKHO, *qIxc):\n return PZpo.PNEANet_AddEdge(YKHO, *qIxc)",
"def A609(YKHO, *qIxc):\n return PZpo.TUNGraph_AddEdge(YKHO, *qIxc)",
"def A609(YKHO, *qIxc):\n return ZYgz.TNEANet_AddEdge(YKHO, *qIxc)",
"def A609(YKHO, *qI... | [
"0.72463876",
"0.71845245",
"0.7145635",
"0.7076887",
"0.7053621",
"0.70431906",
"0.7022211",
"0.6972201",
"0.69713086",
"0.69661856",
"0.6957502",
"0.6938419",
"0.69298863",
"0.6929009",
"0.69137263",
"0.6898865",
"0.68870765",
"0.68782985",
"0.68782985",
"0.687046",
"0.6868... | 0.0 | -1 |
Creates a edge, indexes it, and returns the Response. | def pIpZ(YKHO, APK5, UXqs, JrNp, nPrm, V_s1, sjXb=None):
Ol8d = YKHO.message.create_indexed_edge(APK5, UXqs, JrNp, nPrm, V_s1, sjXb)
return YKHO.request.send(Ol8d) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bsXo(YKHO, APK5, UXqs, JrNp, nPrm={}):\n if YKHO.config.autoindex is True:\n V_s1 = YKHO.config.edge_autoindex\n return YKHO.create_indexed_edge(APK5, UXqs, JrNp, nPrm, V_s1, keys=None)\n Ol8d = YKHO.message.create_edge(APK5, UXqs, JrNp, nPrm)\n return YKHO.request.send(Ol8d)",
"def Zo... | [
"0.75373906",
"0.7015663",
"0.7008114",
"0.6986653",
"0.6612684",
"0.63216484",
"0.62882316",
"0.62698334",
"0.6250732",
"0.6242025",
"0.6189027",
"0.6183935",
"0.6109829",
"0.610483",
"0.6066187",
"0.5988679",
"0.5976678",
"0.5971733",
"0.59567213",
"0.59523815",
"0.5929929"... | 0.6934493 | 4 |
Returns the full file path for the scripts file. | def _cJW(YKHO, gIsw):
Z0kE = Hy7s.path.dirname(xAKo)
qaEx = F28p(Z0kE, gIsw)
return qaEx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VZuY():\n return Hy7s.path.join(Hy7s.path.dirname(xAKo), 'scripts')",
"def VZuY():\n return MLcq",
"def VZuY(YKHO) -> str:\n return qe4Y.get(YKHO, 'script_path')",
"def VZuY(YKHO) -> str:\n return qe4Y.get(YKHO, 'script_path')",
"def rlTN():\n return Hy7s.path.dirname(Hy7s.path.abspath(x... | [
"0.8566048",
"0.8504884",
"0.84845704",
"0.84845704",
"0.84836394",
"0.83637685",
"0.83595705",
"0.82485986",
"0.82396764",
"0.80287796",
"0.78850245",
"0.7863351",
"0.7863351",
"0.7827911",
"0.78101677",
"0.7787217",
"0.77607214",
"0.7733405",
"0.7733405",
"0.7693198",
"0.76... | 0.81977326 | 9 |
Return a random target from a list of target ids. Return 0 if not found. | def lsKI():
global followed_ids
IXLh = len(t7Uj)
if IXLh != 0:
return t7Uj[tuKI.randint(0, IXLh - 1)]
else:
return 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def z0D9(f5Uj):\n BPmf = []\n for YRbF in range(f5Uj):\n BPmf.append(nPrm.DB.getRandomTarget())\n return BPmf",
"def bn4h(pan_: int, kpLf: int, JCoA: int, jPSs: int) -> h8nf[int]:\n if pan_ < kpLf or pan_ > JCoA:\n raise ValueError(f'the target is out range of the {kpLf} to {JCoA}')\n ... | [
"0.7265947",
"0.64392334",
"0.64290744",
"0.6165347",
"0.6094014",
"0.6089427",
"0.60605764",
"0.6060353",
"0.60112464",
"0.598788",
"0.59824914",
"0.5858733",
"0.58415085",
"0.5828972",
"0.5751257",
"0.57508403",
"0.5741173",
"0.5737681",
"0.573067",
"0.57200086",
"0.5698561... | 0.74097574 | 0 |
Reset the model to its initial state. | def SiRx(YKHO):
YKHO._RHS = None
YKHO._LHS = None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SiRx(YKHO):\n YKHO.model.reset()",
"def OWfQ(YKHO):\n if YKHO.model != None:\n YKHO.model = None",
"def OWfQ(YKHO):\n raise NotImplementedError",
"def OWfQ(YKHO):\n raise NotImplementedError",
"def SiRx(YKHO):\n YKHO.model = None\n YKHO.iter_info = {}",
"def SiRx(YKHO):\n ... | [
"0.8758745",
"0.84530526",
"0.84185165",
"0.84185165",
"0.81387454",
"0.8047538",
"0.79832745",
"0.78850704",
"0.7821238",
"0.77932304",
"0.77378297",
"0.773303",
"0.77306503",
"0.76306003",
"0.7630501",
"0.76230115",
"0.76213104",
"0.76213104",
"0.76213104",
"0.76213104",
"0... | 0.0 | -1 |
Yields a ResponseObservation proto for each environment step. If using the opponent's observations, this will yield a list of observations, one for each player. | def pR3T(YKHO, RZ4Y=None):
YKHO._packet_count = 0
lGFN = ITS7.time()
pQ4c = 1000
G9jH.info('Begin iterating over frames...')
while True:
W061 = [Z7L0.observe() for Z7L0 in YKHO._controllers]
if YKHO._packet_count == 0:
G9jH.info('The first packet has been read')
Y... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def K8eB(YKHO):\n W061 = {}\n fAS7 = [YKHO._extract_dict_from_backend(LZbL, YKHO.state.observation(LZbL)) for LZbL in range(YKHO.players)]\n W061['player_observations'] = fAS7\n W061['current_player'] = YKHO.state.cur_player()\n return W061",
"def YPaw(YKHO, pR3T, kgRp=False):\n return [jzdc.st... | [
"0.6053164",
"0.57011354",
"0.57011354",
"0.5671656",
"0.55288005",
"0.55086684",
"0.5478551",
"0.54616594",
"0.54148966",
"0.5404228",
"0.5404228",
"0.5400433",
"0.5389779",
"0.53882074",
"0.538006",
"0.53574705",
"0.53457856",
"0.53184515",
"0.5300053",
"0.5294227",
"0.5279... | 0.5595568 | 4 |
Responds if any aliens have reached the edge | def YSO3(DaH1, SaI9):
for oeTy in SaI9.sprites():
if oeTy.check_edges():
kS1e(DaH1, SaI9)
break | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Feg9(YKHO):\n for oeTy in YKHO.alien_list:\n if oeTy.bottom <= YKHO.ship.top:\n YKHO.gamestats.ship_lives -= 1\n YKHO.gamestats.update_highscore()\n if YKHO.gamestats.ship_lives <= 0:\n YKHO.game_running = False\n YKHO.setup()\n br... | [
"0.7210843",
"0.6994957",
"0.69679666",
"0.69341147",
"0.68698335",
"0.6843792",
"0.68299496",
"0.681947",
"0.6802633",
"0.6802633",
"0.6802633",
"0.6802633",
"0.6802633",
"0.6802633",
"0.6802633",
"0.6802633",
"0.6802633",
"0.6757387",
"0.6707012",
"0.6707012",
"0.6687292",
... | 0.6624708 | 26 |
Checks to see if any aliens are at the bottom of the screen | def Cshs(DaH1, Vjhr, eQSh, y1e_, C7MP, SaI9, WFC2):
VXOZ = Vjhr.get_rect()
for oeTy in SaI9.sprites():
if oeTy.rect.bottom >= VXOZ.bottom:
GR2R(DaH1, Vjhr, eQSh, y1e_, C7MP, SaI9, WFC2)
break | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wMxK(YKHO):\n VXOZ = YKHO.screen.get_rect()\n for oeTy in YKHO.aliens.sprites():\n if oeTy.rect.bottom >= VXOZ.bottom:\n YKHO._ship_hit()\n break",
"def wMxK(YKHO):\n VXOZ = YKHO.screen.get_rect()\n for oeTy in YKHO.aliens.sprites():\n if oeTy.rect.bottom >= VX... | [
"0.8504869",
"0.8490592",
"0.8464207",
"0.8398067",
"0.8240442",
"0.8213594",
"0.79972875",
"0.7988055",
"0.79707026",
"0.7959066",
"0.795407",
"0.7935115",
"0.79312485",
"0.79260963",
"0.7922357",
"0.7916175",
"0.7887258",
"0.7886463",
"0.78732246",
"0.78725594",
"0.78567296... | 0.7938584 | 11 |
Set a password directly, forcing a hash step. | def AYXW(YKHO, BWXx):
YKHO.set_password(BWXx, already_hashed=False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def G3s8(YKHO, jTXt):\n D2Lq(jTXt)",
"def G3s8(YKHO, jTXt):\n D2Lq(jTXt)",
"def G3s8(YKHO, jTXt):\n YKHO.password_hash = vT87(jTXt)",
"def G3s8(YKHO, jTXt):\n YKHO.password_hash = vT87(jTXt)",
"def jTXt(YKHO, BWXx):\n if not BWXx:\n return\n YKHO._password = BWXx",
"def G3s8(YKHO... | [
"0.84718764",
"0.83917433",
"0.82449746",
"0.82449746",
"0.8182093",
"0.8169153",
"0.8160559",
"0.8115826",
"0.81135607",
"0.8112947",
"0.810542",
"0.8096913",
"0.8096913",
"0.8096913",
"0.8096913",
"0.8096913",
"0.8096913",
"0.8096913",
"0.8096913",
"0.8087105",
"0.8087105",... | 0.7885927 | 52 |
Return the password value, regardless of hash. | def eUwD(YKHO):
return YKHO._password | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jTXt(YKHO):\n return YKHO.pass_hash",
"def QVq7(YKHO):\n return YKHO.password",
"def jTXt(YKHO):\n if YKHO._password_present:\n return YKHO._password_value\n else:\n return None",
"def QVq7(YKHO):\n return YKHO._password",
"def QVq7(YKHO):\n return YKHO._password",
"de... | [
"0.8139075",
"0.8067222",
"0.80516446",
"0.8030839",
"0.8030839",
"0.8030839",
"0.80250895",
"0.79650825",
"0.7849914",
"0.7840576",
"0.7836418",
"0.7827355",
"0.7800417",
"0.7794504",
"0.7787874",
"0.7785555",
"0.77683467",
"0.77431214",
"0.7730728",
"0.77299863",
"0.7713241... | 0.77623665 | 17 |
Remove empty items from obj | def P6N5(YEnM: Dict) -> cuzp:
return Y_VH.remove_empty_items(YEnM, hide_protected_keys=True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b3k3(YKHO, ZfUD):\n x0SS = ZfUD.copy()\n for G1Hx, Ty9i in ZfUD.items():\n if type(Ty9i) is str and len(Ty9i) <= 0:\n x0SS.pop(G1Hx)\n return x0SS",
"def P6N5(Ty9i: list) -> list:\n if Ty9i:\n return list(filter(lambda YRbF: bool(YRbF) and (not isinstance(YRbF, dict) or a... | [
"0.71513677",
"0.70869374",
"0.6979365",
"0.6957023",
"0.6945938",
"0.6785342",
"0.67451096",
"0.67351854",
"0.6717994",
"0.6703358",
"0.66290975",
"0.6610057",
"0.6571213",
"0.6564101",
"0.65574056",
"0.653099",
"0.6521222",
"0.6500868",
"0.6497549",
"0.64949036",
"0.6464962... | 0.8329583 | 0 |
Returns a VWave that references the same sm.VWave, has the same color and axis. | def jth9(YKHO):
return UrtQ(YKHO.data, YKHO.color, YKHO.axis) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jth9(YKHO):\n return lcgk(YKHO.data, YKHO.color, YKHO.axis)",
"def jth9(YKHO):\n yvT9 = w4OU(shape=YKHO.shape, cunit=YKHO.unit)\n yvT9.wcs = YKHO.wcs.deepcopy()\n return yvT9",
"def cAlv(YKHO):\n if YKHO.units == 'V':\n return YKHO\n return q3Qn(epAf.sqrt(YKHO._convert_to_W() * 50.... | [
"0.61000097",
"0.5945369",
"0.580283",
"0.57705784",
"0.56574875",
"0.55167925",
"0.5449764",
"0.5381011",
"0.5363523",
"0.5350214",
"0.5341751",
"0.5321284",
"0.5308333",
"0.52849615",
"0.5275507",
"0.523517",
"0.5195548",
"0.518895",
"0.51811",
"0.51715934",
"0.51676637",
... | 0.79271066 | 0 |
Creates a VCollection that is a copy of the given one. | def m8pE(Emd4, FQgQ, PWkm=False):
ZS6E = {}
LTIa = {}
SGPK = {}
for H5ew, ZfUD in FQgQ.waves.items():
jDK_ = ZfUD.axis
if PWkm:
jDK_ = -1
ZS6E[H5ew] = UrtQ(ZfUD.data, ZfUD.color, jDK_)
for H5ew, ZfUD in FQgQ.points.items():
jDK_ = ZfUD.axis
if PWkm... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jth9(YKHO):\n return lNLu(*YKHO)",
"def jth9(YKHO):\n Ty9i = lNLu(*YKHO.data)\n Ty9i.__class__ = YKHO.__class__\n return Ty9i",
"def jth9(YKHO, *qIxc):\n return qG0X.Collection_copy(YKHO, *qIxc)",
"def jth9(YKHO):\n return vIC4(YKHO.data, YKHO.color, YKHO.axis)",
"def RtN5(YKHO) -> 'C... | [
"0.7382401",
"0.7329225",
"0.7224311",
"0.7047578",
"0.69730926",
"0.6970677",
"0.6970677",
"0.6913149",
"0.6819418",
"0.67931473",
"0.6787526",
"0.6785363",
"0.6779309",
"0.67634994",
"0.6758721",
"0.67448765",
"0.673982",
"0.67019475",
"0.6692828",
"0.6689723",
"0.66765165"... | 0.0 | -1 |
Comparing two GeoNames objects and getting the object with the highest lattitude. | def cuNU(X_iD: GeoNames, gLNl: GeoNames) -> ti78:
if X_iD.latitude > gLNl.latitude:
return X_iD
return gLNl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dErY(YKHO, Elif):\n DKxu = None\n for lCHq in YKHO.points:\n for ANJu in Elif.points:\n if DKxu == None or lCHq.distance(ANJu) > DKxu:\n gJUm = lCHq.distance(ANJu)\n return gJUm",
"def UKgE(YKHO, M8do: List, Htoi: List, fQkG: int, NrE5: int) -> AzJI[x1iM, x1iM]:\n ... | [
"0.65875936",
"0.6146948",
"0.58256114",
"0.5813857",
"0.575352",
"0.5726059",
"0.5693976",
"0.5634634",
"0.56078595",
"0.5547126",
"0.55390084",
"0.55045456",
"0.55041254",
"0.54935205",
"0.54923",
"0.5489113",
"0.54429376",
"0.5442224",
"0.5389956",
"0.5338431",
"0.53243065... | 0.716076 | 0 |
Render website's home page. | def kZiy():
return TvZl('home.html') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kZiy():\n return TvZl('homepage.html')",
"def C_QL():\n return TvZl('home.html')",
"def C_QL():\n return TvZl('homepage.html')",
"def kZiy():\n return TvZl('homepage.html')",
"def kZiy():\n return TvZl('homepage.html')",
"def kZiy():\n return TvZl('home.html')",
"def C_QL():\n ... | [
"0.8819581",
"0.87503684",
"0.8623934",
"0.8596466",
"0.8596466",
"0.8571988",
"0.8557671",
"0.8557671",
"0.85497755",
"0.85256004",
"0.8489358",
"0.8483156",
"0.8475702",
"0.8474153",
"0.84737927",
"0.84619766",
"0.8438196",
"0.8428517",
"0.8418825",
"0.8418701",
"0.83995277... | 0.8338782 | 50 |
Render the website's about page. | def vsuQ():
return TvZl('about.html', name='Malz Housing') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vsuQ():\n bo34.info('User visited the about page.')\n return TvZl('about.html')",
"def vsuQ():\n return TvZl('about.html', title='About')",
"def vsuQ():\n bo34.debug('In about()')\n return TvZl('about.html')",
"def vsuQ():\n return TvZl('about.html', title='about')",
"def vsuQ():\n ... | [
"0.8763036",
"0.8677626",
"0.8666991",
"0.8650025",
"0.8638193",
"0.86223155",
"0.8601017",
"0.8498177",
"0.8474175",
"0.8472615",
"0.8452931",
"0.84330356",
"0.8430345",
"0.84241337",
"0.84241337",
"0.84241337",
"0.84241337",
"0.84241337",
"0.84241337",
"0.84241337",
"0.8424... | 0.8278686 | 64 |
Add headers to both force latest IE rendering engine or Chrome Frame, and also tell the browser not to cache the rendered page. If we wanted to we could change maxage to 600 seconds which would be 10 minutes. | def PYz4(geh0):
geh0.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1'
geh0.headers['Cache-Control'] = 'public, max-age=0'
return geh0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PYz4(geh0):\n geh0.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1'\n geh0.headers['Cache-Control'] = 'public, max-age=600'\n return geh0",
"def PYz4(geh0):\n geh0.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1'\n geh0.headers['Cache-Control'] = 'public, max-age=600'\n return geh0",
"def P... | [
"0.81202394",
"0.81202394",
"0.81202394",
"0.81202394",
"0.81202394",
"0.81202394",
"0.81202394",
"0.81202394",
"0.81202394",
"0.81202394",
"0.80936265",
"0.80362105",
"0.80362105",
"0.80362105",
"0.80210304",
"0.7947892",
"0.7918562",
"0.78050905",
"0.7771336",
"0.77305967",
... | 0.7995248 | 21 |
Returns the coordinates, low and high limits for a subarray of the data array in a DataObject. | def nPrm(YKHO, KDwe=None, d6pt=None, xAU6=None):
b4rG = {'Interpolation': 'Linear', 'Change only': False}
AiDB = udHH.config.merge_options(b4rG, xAU6)
if KDwe is None:
raise ValueError('Missing data_shape argument in flap.Coordinate.data()')
if type(KDwe) is not oyIN.ndarray:
buUJ = oyIN... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pmnP(nPrm):\n JRC0 = 0\n IA3S = 0\n LChT = 0\n dCLF = 0\n mr_J = 0\n XYyL = 0\n for YRbF in range(len(nPrm)):\n WKvO = float(nPrm[YRbF, 0])\n LVAh = float(nPrm[YRbF, 1])\n mr_J += WKvO\n XYyL += LVAh\n JRC0 = min(JRC0, mr_J)\n LChT = min(LChT, XYyL... | [
"0.66719437",
"0.6423396",
"0.641351",
"0.63382137",
"0.6314711",
"0.62484586",
"0.61980706",
"0.6182727",
"0.61796355",
"0.61667067",
"0.6123314",
"0.6120073",
"0.61193746",
"0.6096327",
"0.5926087",
"0.5912368",
"0.589541",
"0.5895274",
"0.5890078",
"0.5867986",
"0.58503556... | 0.0 | -1 |
This is a helper function to get a logrotate configuration component for your local machine or an archive. It's for use in interactive sessions. | def IZpx(tk5Y=None):
from insights import run
return run(X6rx, root=tk5Y).get(X6rx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ePvI():\n aInV = RRlC('osa.provenance').joinpath('config/logger.yaml')\n return aInV.read_text()",
"def tgzD():\n return qot6(None, None).root",
"def Nug2():\n return j0Yt",
"def tgzD():\n GPtr = enR0.ConfigParser()\n w2IS = ''\n try:\n GPtr.read('lxdconfig.conf')\n w2I... | [
"0.60626346",
"0.60006905",
"0.5730019",
"0.56975293",
"0.5645308",
"0.5614347",
"0.56107324",
"0.5570439",
"0.5507374",
"0.54915917",
"0.5483978",
"0.5473891",
"0.5464507",
"0.5447001",
"0.5445914",
"0.5417638",
"0.5380982",
"0.53710645",
"0.53704476",
"0.5355103",
"0.533125... | 0.5542119 | 8 |
This method initializes an instance of the ``GraphicsWire`` Class. It initially specifies the starting and ending sockets as being None, sets the Wire to always be drawn underneath other items within the GraphicsScene, and defines the colors with which the wire can be drawn. | def FIMM(YKHO, UsS3):
super().__init__()
YKHO.wire = UsS3
YKHO.wire.wire_coordinates = []
YKHO.wire.horizontal_segments = []
YKHO.wire.vertical_segments = []
YKHO._color = F6MG('#000000')
YKHO._color_selected = F6MG('#FFFFA637')
YKHO._pen = FOK2(YKHO._color)
YKHO._pen_selected = FOK2... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eCGt(YKHO):\n Tmuo()\n a9eO.init()\n a9eO.event.set_allowed([a9eO.MOUSEBUTTONDOWN, a9eO.QUIT])\n YKHO.board.add_connection(YKHO.connection)\n YKHO.connection.sock.connect(YKHO.connection.server_address)\n YKHO.connection.form.run()\n YKHO.connection.connect_to_server()\n YKHO.show_start... | [
"0.5856618",
"0.5830409",
"0.58063126",
"0.5714364",
"0.56994146",
"0.5678559",
"0.56735873",
"0.5649562",
"0.56173927",
"0.5604636",
"0.55794144",
"0.5537367",
"0.5525054",
"0.5520516",
"0.5491114",
"0.54788554",
"0.5475396",
"0.54559743",
"0.5453443",
"0.54465777",
"0.54448... | 0.71417123 | 0 |
Return column from csv file as array, starting at specified row | def g7RY(LtY3, A4bo, fvDH):
with open(LtY3, 'r') as apum:
N5Pj = m6_J.reader(apum)
for YRbF in range(A4bo):
next(N5Pj)
qw7D = []
for rdlD in N5Pj:
qw7D.append(int(rdlD[fvDH]))
return qw7D | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Hyyu(VqRE, iVRZ, Lmdp=False):\n with open(VqRE, 'rb') as nUeQ:\n N5Pj = m6_J.reader(nUeQ, delimiter=';', skipinitialspace=True)\n Aofo = [bTKY[iVRZ] for bTKY in N5Pj]\n if Lmdp:\n Aofo.pop(0)\n return Aofo",
"def HND1(nUeQ, fvDH):\n jQ3Z = rLdf.read_csv(nUeQ)\n ... | [
"0.7317612",
"0.7171122",
"0.69947773",
"0.68749964",
"0.68535024",
"0.68169475",
"0.6813181",
"0.6790826",
"0.66814816",
"0.66532034",
"0.66441846",
"0.6608406",
"0.6606616",
"0.6593993",
"0.65253717",
"0.65111727",
"0.6432341",
"0.641585",
"0.64075834",
"0.6375262",
"0.6370... | 0.78474873 | 0 |
Extract the numbers from a string for numeric sorting | def qqyA(BWXx):
mSrU = ZbWC.compile('(\\d+)')
SQ3m = mSrU.split(BWXx)
SQ3m[1::2] = map(int, SQ3m[1::2])
return SQ3m | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TGDD(vIwR):\n return [int(KCHu) if KCHu.isdigit() else KCHu for KCHu in ZbWC.split('(\\\\d+)', vIwR)]",
"def h2y9(BWXx):\n mSrU = ZbWC.compile('(\\\\d+)')\n SQ3m = mSrU.split(BWXx)\n SQ3m[1::2] = list(map(int, SQ3m[1::2]))\n return SQ3m",
"def qqyA(BWXx):\n SQ3m = mSrU.split(BWXx)\n SQ... | [
"0.75347435",
"0.7525655",
"0.74221915",
"0.741846",
"0.72866964",
"0.7214018",
"0.71091914",
"0.7099579",
"0.7088732",
"0.7031805",
"0.7023696",
"0.7013163",
"0.69359213",
"0.6871669",
"0.68713635",
"0.68713635",
"0.68713635",
"0.68663603",
"0.68635947",
"0.6855805",
"0.6845... | 0.76560146 | 0 |
Check if is one of the norms. | def GGwy(KZ52):
if isinstance(KZ52, (lxnG, _bh1)):
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GGwy(KZ52):\n if isinstance(KZ52, (lxnG, _bh1)):\n return True\n return False",
"def GGwy(KZ52):\n if isinstance(KZ52, (lxnG, _bh1)):\n return True\n return False",
"def VlIo(Emd4):\n return 'Norm' in Emd4.__name__",
"def dPu6(YKHO):\n YKHO.assertEqual(pLcG.norm([0 for YRb... | [
"0.7012284",
"0.7012284",
"0.69423366",
"0.6682114",
"0.6581134",
"0.6396519",
"0.63847077",
"0.63474846",
"0.61689806",
"0.616665",
"0.61491287",
"0.6145652",
"0.608684",
"0.6044161",
"0.6031274",
"0.60274243",
"0.60203975",
"0.59878695",
"0.59831625",
"0.5974968",
"0.596971... | 0.70591986 | 0 |
Set the value of the ClientID input for this Choreo. ((conditional, string) The Client ID provided by Instagram after registering your application. Required unless you provide the AccessToken.) | def vy2F(YKHO, BWXx):
super(nLss, YKHO)._set_input('ClientID', BWXx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def u7Xh(YKHO, zb3C):\n raise NotImplementedError",
"def zb3C(YKHO, zb3C: str):\n YKHO._client_id = zb3C",
"def u7Xh(YKHO, zb3C):\n raise NotImplementedError",
"def zb3C(YKHO, zb3C):\n YKHO._client_id = zb3C",
"def zb3C(YKHO, zb3C):\n YKHO._client_id = zb3C",
"def zb3C(YKHO, zb3C):\n YK... | [
"0.71383744",
"0.7117226",
"0.7103263",
"0.70702827",
"0.6887419",
"0.6887419",
"0.6887419",
"0.6887419",
"0.6887419",
"0.6887419",
"0.6887419",
"0.6887419",
"0.6874674",
"0.66131717",
"0.648972",
"0.63557404",
"0.6322382",
"0.62859195",
"0.62859195",
"0.62859195",
"0.6285919... | 0.65670186 | 14 |
Set the value of the Longitude input for this Choreo. ((conditional, decimal) Longitude of the center search coordinate. If used, Latitude is required.) | def NSYV(YKHO, BWXx):
super(nLss, YKHO)._set_input('Longitude', BWXx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def q4_V(YKHO, q4_V):\n YKHO._longititude = q4_V",
"def fopC(YKHO, fopC: float):\n YKHO._longitude = fopC",
"def fopC(YKHO, fopC: float):\n YKHO._longitude = fopC",
"def fopC(YKHO, fopC: float):\n YKHO._longitude = fopC",
"def fopC(YKHO, fopC: float):\n YKHO._longitude = fopC",
"def NSYV(Y... | [
"0.7221532",
"0.7143168",
"0.7143168",
"0.7143168",
"0.7143168",
"0.7013704",
"0.6968856",
"0.6938389",
"0.6898435",
"0.6898435",
"0.6898435",
"0.6898435",
"0.68456244",
"0.67512894",
"0.6593279",
"0.65694326",
"0.64977777",
"0.6480872",
"0.6400327",
"0.6342184",
"0.63395125"... | 0.7308672 | 0 |
Retrieve the value for the "Response" output from this Choreo execution. ((json) The response from Instagram.) | def _O3m(YKHO):
return YKHO._output.get('Response', None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def geh0(YKHO):\n return YKHO.__res",
"def EbXM(YKHO):\n return YKHO._response",
"def geh0(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'response')",
"def geh0(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'response')",
"def geh0(YKHO) -> GySg[str, str]:\n return qe4Y.get(YKHO, 'response')",
... | [
"0.6941208",
"0.69334555",
"0.68840814",
"0.68840814",
"0.6793032",
"0.67856026",
"0.6765228",
"0.6765228",
"0.6737123",
"0.6692346",
"0.6692346",
"0.666656",
"0.6571698",
"0.6540501",
"0.65073025",
"0.6467665",
"0.64628816",
"0.63691455",
"0.63426614",
"0.6334132",
"0.633413... | 0.7749169 | 3 |
r""" Return the Cartan type of ``self``. | def QNky(YKHO):
return YKHO._cartan_type | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QNky(YKHO):\n return YKHO.parent()._cartan_type",
"def QNky(YKHO):\n return YKHO.parent()._cartan_type",
"def QNky(YKHO):\n if YKHO._cartan_type is None:\n return YKHO\n return YKHO._cartan_type",
"def QNky(YKHO):\n return YKHO._T_Y.cartan_type()",
"def QNky(YKHO):\n if len(YKH... | [
"0.8813374",
"0.8813374",
"0.8759909",
"0.85668045",
"0.7874926",
"0.6775352",
"0.6755199",
"0.6662503",
"0.6609155",
"0.6609155",
"0.6608141",
"0.65990245",
"0.6569205",
"0.65689725",
"0.65498",
"0.65498",
"0.65498",
"0.65371764",
"0.65371764",
"0.652707",
"0.6501294",
"0.... | 0.87339437 | 3 |
r""" The super categories of ``self``. | def o67D(YKHO):
return [xlql(YKHO.base()), YKHO.base()._category] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kAw7(YKHO):\n return [YKHO.base_category()]",
"def o67D(YKHO):\n return [zKCF._BasesCategory(YKHO.base())]",
"def o67D(YKHO):\n k0lF = YKHO.base()\n Ghho = ENVM(k0lF.base_ring())\n return [k0lF.Realizations(), Ghho.Realizations().WithBasis()]",
"def kAw7(YKHO):\n from .magmatic_algebras... | [
"0.85200787",
"0.845745",
"0.82090116",
"0.7730771",
"0.7469743",
"0.73954594",
"0.73781896",
"0.73480827",
"0.72022337",
"0.71463007",
"0.7131471",
"0.70983577",
"0.7055069",
"0.7050982",
"0.7050982",
"0.7050982",
"0.7050982",
"0.7050982",
"0.7005945",
"0.6992471",
"0.691969... | 0.87591463 | 0 |
r""" Return the representation of ``self``. | def aRbh(YKHO):
return 'Category of bases of %s' % YKHO.base() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Napc(YKHO):\n return repr(YKHO)",
"def wHJl(YKHO):\n return Napc(YKHO)",
"def wHJl(YKHO):\n return YKHO.__represent()",
"def wHJl(YKHO):\n return YKHO.__represent()",
"def wHJl(YKHO):\n return YKHO.to_str()",
"def wHJl(YKHO):\n return YKHO.to_str()",
"def wHJl(YKHO):\n return Y... | [
"0.86712503",
"0.86597145",
"0.8506588",
"0.8506588",
"0.84913737",
"0.84913737",
"0.84913737",
"0.84913737",
"0.84913737",
"0.84913737",
"0.84913737",
"0.84913737",
"0.84913737",
"0.84913737",
"0.84913737",
"0.84913737",
"0.84913737",
"0.84913737",
"0.84913737",
"0.84913737",
... | 0.0 | -1 |
Text representation of this basis of IwahoriHecke algebra. | def aRbh(YKHO):
return '%s in the %s-basis' % (YKHO.realization_of(), YKHO._basis_name) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aRbh(YKHO):\n return 'The dual Poincare-Birkhoff-Witt basis of {}'.format(YKHO._alg)",
"def wHJl(YKHO):\n KCHu = super().__repr__()\n KCHu = KCHu[:-1]\n KCHu += ', basis={})'.format(YKHO.basis)\n return KCHu",
"def wHJl(YKHO):\n KCHu = super().__repr__()\n KCHu = KCHu[:-1]\n KCHu +=... | [
"0.73032725",
"0.6949429",
"0.6949429",
"0.67448443",
"0.66731465",
"0.66619176",
"0.6661185",
"0.6631481",
"0.6542806",
"0.6525743",
"0.65231574",
"0.65169615",
"0.6506916",
"0.6474528",
"0.6466435",
"0.64594287",
"0.6455522",
"0.64523244",
"0.64444125",
"0.64228123",
"0.641... | 0.6901961 | 3 |
Return whether this IwahoriHecke algebra is commutative. | def o7Pa(YKHO):
return YKHO.base_ring().is_commutative() and YKHO.realization_of().coxeter_group().is_commutative() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o7Pa(YKHO):\n return True",
"def o7Pa(YKHO):\n return True",
"def o7Pa(YKHO):\n return True",
"def o7Pa(YKHO):\n return True",
"def hH5F(YKHO):\n return YKHO._commutative",
"def hH5F(YKHO):\n return YKHO.grouplikestructure_properties.iscommutative()",
"def jwcM(YKHO):\n return ... | [
"0.85373944",
"0.85373944",
"0.85373944",
"0.84043497",
"0.83202916",
"0.83036745",
"0.7498543",
"0.6458793",
"0.644923",
"0.6384804",
"0.61953187",
"0.6188193",
"0.6140358",
"0.6134203",
"0.6109715",
"0.6063878",
"0.60375535",
"0.60366744",
"0.60070443",
"0.5899516",
"0.5874... | 0.85384643 | 0 |
r""" Return the `i`th generator of ``self``. | def v97Q(YKHO, YRbF):
return YKHO.algebra_generators()[YRbF] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eK5b(YKHO, YRbF):\n Fg_i = YKHO.basis()\n if YRbF < 0 or YRbF >= len(Fg_i):\n raise IndexError('no %sth generator' % YRbF)\n return YKHO.basis()[YRbF]",
"def OP2O(YKHO, YRbF: int):\n return next(Hs6x.islice(YKHO, YRbF, None))",
"def eK5b(YKHO, YRbF):\n return YKHO.algebra_generators()... | [
"0.8058055",
"0.7470858",
"0.71720177",
"0.7138008",
"0.7075695",
"0.6975421",
"0.69305646",
"0.68122816",
"0.68079776",
"0.67979616",
"0.67920333",
"0.67920333",
"0.67462546",
"0.67115986",
"0.6705534",
"0.6681399",
"0.6678446",
"0.66439503",
"0.6618535",
"0.6613886",
"0.657... | 0.6436417 | 31 |
r""" The super categories of ``self``. | def o67D(YKHO):
return [zKCF._BasesCategory(YKHO.base())] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o67D(YKHO):\n return [xlql(YKHO.base()), YKHO.base()._category]",
"def kAw7(YKHO):\n return [YKHO.base_category()]",
"def o67D(YKHO):\n k0lF = YKHO.base()\n Ghho = ENVM(k0lF.base_ring())\n return [k0lF.Realizations(), Ghho.Realizations().WithBasis()]",
"def kAw7(YKHO):\n from .magmatic_... | [
"0.87591463",
"0.85200787",
"0.82090116",
"0.7730771",
"0.7469743",
"0.73954594",
"0.73781896",
"0.73480827",
"0.72022337",
"0.71463007",
"0.7131471",
"0.70983577",
"0.7055069",
"0.7050982",
"0.7050982",
"0.7050982",
"0.7050982",
"0.7050982",
"0.7005945",
"0.6992471",
"0.6919... | 0.845745 | 2 |
Parse atom record into an atom object and append to molecule. Appends mmlib.molecule.Atom object to mmlib.molecule.Molecule object. Contents of atom object include (float) xyz cartesian coordinates [Angstrom], (float) partial charge [e], (float) van der Waals radius [Angstrom], (float) van der Waals epsilon [kcal/mol],... | def sOtF(N9D1, AIu6):
eUtg = AIu6[2]
vEsJ = XTiz.zeros(3)
for r845 in range(3):
vEsJ[r845] = float(AIu6[r845 + 3])
imik, WyyF, tWu1 = (float(AIu6[6]), float(AIu6[7]), float(AIu6[8]))
Z8yw = eUtg[0:2].capitalize() if eUtg[-1].islower() else eUtg[0]
ZMtd = xqoZ.get_at_mass(Z8yw)
WhQ6 =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BS4_(YKHO, zFiD):\n WOKI = ioL8()\n WOKI.set_molecule(YKHO.molecule)\n OIdI, teP4, CxsL, I3VB, e_mn = YKHO._parse_common_line_start(zFiD)\n xryH = qw7D([float(zFiD[30:38]), float(zFiD[38:46]), float(zFiD[46:54])])\n Q_ge = float(zFiD[54:60])\n _B67 = float(zFiD[60:66])\n U6D_ = zFiD[76:78]... | [
"0.69252354",
"0.6740749",
"0.63391966",
"0.6333313",
"0.6223678",
"0.6202969",
"0.6180449",
"0.617804",
"0.60939693",
"0.6084532",
"0.6016226",
"0.5999151",
"0.5947352",
"0.5908482",
"0.58873636",
"0.5810718",
"0.5758449",
"0.5571474",
"0.5548161",
"0.5547553",
"0.55384225",... | 0.71701777 | 0 |
this method displays details about the scooter which related to the id | def TSmh(OpMW):
LeZt = cuiw.query(ahNU).all()
OvF4 = cuiw.query(hVdI).get(OpMW)
return TvZl('scooter_details.html', scooter=OvF4, login_session=zaOq, categories=LeZt) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NSMG(id):\n LeZt = cuiw.query(ahNU).all()\n OvF4 = cuiw.query(hVdI).get(id)\n uJjO = Ad9r()\n gPmJ = Jdgf(hVdI, id)\n print(uJjO, gPmJ)\n if int(uJjO) != int(gPmJ):\n Dwep(\"You don't have permission to do this\", 'danger')\n return vKnz('/')\n if QePW.method == 'POST':\n ... | [
"0.6544258",
"0.64892524",
"0.6196131",
"0.6136524",
"0.5881171",
"0.5759658",
"0.5749173",
"0.5740231",
"0.5668548",
"0.56419826",
"0.56166154",
"0.55933154",
"0.55807716",
"0.55188394",
"0.55042577",
"0.5496464",
"0.5461178",
"0.5459627",
"0.5452765",
"0.5447176",
"0.542747... | 0.8107371 | 0 |
it gives the scooter details which belongs to aparticular category in json format | def Co1y(VMw8):
bb1R = cuiw.query(hVdI).filter_by(scooter_category_id=VMw8).all()
return pz3A(scooters=[OvF4.serialize for OvF4 in bb1R]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def spkq():\n LeZt = cuiw.query(ahNU).all()\n return pz3A(Scooters=[Ghho.serialize for Ghho in LeZt])",
"def zeDz(id):\n LeZt = cuiw.query(ahNU).all()\n print('id:', id)\n bb1R = cuiw.query(hVdI).filter_by(scooter_category_id=id).all()\n if len(bb1R) == 0:\n Dwep('No scooters avialable f... | [
"0.67906505",
"0.6347242",
"0.60482657",
"0.5914261",
"0.5814013",
"0.58135617",
"0.5744379",
"0.5691762",
"0.56702155",
"0.56623256",
"0.56587267",
"0.5655515",
"0.5640815",
"0.5603358",
"0.5595248",
"0.5589607",
"0.558157",
"0.5573457",
"0.55729055",
"0.5512666",
"0.5511022... | 0.7282397 | 0 |
it gives the scooter categories in json format from database | def spkq():
LeZt = cuiw.query(ahNU).all()
return pz3A(Scooters=[Ghho.serialize for Ghho in LeZt]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Co1y(VMw8):\n bb1R = cuiw.query(hVdI).filter_by(scooter_category_id=VMw8).all()\n return pz3A(scooters=[OvF4.serialize for OvF4 in bb1R])",
"def LQuW():\n aEn1 = []\n for Ghho in S8SU.all('Category').values():\n aEn1.append(Ghho.to_dict())\n return pz3A(aEn1)",
"def LQuW():\n p_h6 ... | [
"0.7193753",
"0.70946056",
"0.704945",
"0.69643605",
"0.68847275",
"0.6817074",
"0.6800954",
"0.6755834",
"0.6755581",
"0.6733301",
"0.6733301",
"0.6729657",
"0.67263997",
"0.67210096",
"0.6709696",
"0.6672019",
"0.6671655",
"0.66683686",
"0.6646417",
"0.6642813",
"0.66113263... | 0.7709757 | 0 |
Displays statistics on the most frequent times of travel. | def dWJR(jQ3Z):
try:
print('\nCalculating The Most Frequent Times of Travel...\n')
SWox = ITS7.time()
jQ3Z['month'] = jQ3Z['Start Time'].dt.month
XYie = jQ3Z['month'].mode()[0]
print('\nThe most common month was:\n')
print(XYie)
jQ3Z['day'] = jQ3Z['Start Time'... | {
"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):
try:
print('\nCalculating The Most Popular Stations and Trip...\n')
SWox = ITS7.time()
bBtM = jQ3Z['Start Station'].mode()[0]
print('\nThe most common start station was:\n' + bBtM)
Nj0t = jQ3Z['End Station'].mode()[0]
print('\nThe most common end stati... | {
"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):
try:
print('\nCalculating Trip Duration...\n')
SWox = ITS7.time()
jQ3Z['End Time'] = rLdf.to_datetime(jQ3Z['End Time'])
jQ3Z['time_diff'] = jQ3Z['End Time'] - jQ3Z['Start Time']
jQ3Z['time_diff'] = jQ3Z['time_diff'] / oyIN.timedelta64(1, 's')
bJiw = jQ... | {
"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.8251978",
"0.81471264",
"0.80965656",
"0.80127156",
"0.7987783",
"0.79834235",
"0.7978646",
"0.79705906",
"0.7965226",
"0.79636025",
"0.79616374",
"0.79614663",
"0.79523134",
"0.7948989",
"0.79445267",
"0.7937707",
"0.7923821",
"0.792045",
"0.79198813",
"0.7918623",
"0.791... | 0.0 | -1 |
Creates TF ops to track and increment recent average cumulative reward. | def Saev():
UY2t = ZylS.Variable(0, name='last_reward', trainable=False, dtype=ZylS.float32)
A2Nm = ZylS.placeholder(shape=[], dtype=ZylS.float32, name='new_reward')
dLqk = ZylS.assign(UY2t, A2Nm)
return (UY2t, A2Nm, dLqk) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def U6op(YKHO):\n SsdK = ZylS.stop_gradient(YKHO._build_target_distribution())\n _0VL = ZylS.range(ZylS.shape(YKHO._replay_net_outputs.logits)[0])[:, None]\n m5t7 = ZylS.concat([_0VL, YKHO._replay.actions[:, None]], 1)\n szoA = ZylS.gather_nd(YKHO._replay_net_outputs.logits, m5t7)\n N77f = ZylS.nn.s... | [
"0.6132903",
"0.612714",
"0.6111265",
"0.6099975",
"0.60589445",
"0.6047559",
"0.6021465",
"0.5953841",
"0.593033",
"0.5927877",
"0.5920836",
"0.5881778",
"0.5861762",
"0.58395433",
"0.5832555",
"0.5832156",
"0.5828444",
"0.58147633",
"0.5812848",
"0.5811765",
"0.5797175",
... | 0.6691122 | 0 |
Get a specific parameter from a dictionaryvalued Series element. | def dLCC(BWXx, xqoZ, Lm1b=False):
try:
if Lm1b:
Qj8D = BWXx[0][xqoZ]
else:
Qj8D = BWXx[xqoZ]
except (TypeError, KeyError, ValueError):
Qj8D = oyIN.nan
return Qj8D | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OP2O(YKHO, k78t):\n return YKHO._parameter_info[k78t]['value']",
"def dLCC(chwN, xqoZ):\n if xqoZ in chwN.keys():\n return chwN[xqoZ]",
"def _wzB(J0lp, H5ew):\n try:\n mWFP = J0lp[H5ew]\n return mWFP\n except:\n return None",
"def OP2O(YKHO, H5ew: str) -> ImMB:\n ... | [
"0.669235",
"0.6463954",
"0.6152556",
"0.6027637",
"0.59664756",
"0.5952246",
"0.5950333",
"0.5946981",
"0.5904701",
"0.5899843",
"0.5899292",
"0.58965516",
"0.5894816",
"0.58776015",
"0.5874368",
"0.58664787",
"0.58563244",
"0.5854856",
"0.5853993",
"0.5830441",
"0.58294195"... | 0.6027635 | 4 |
Returns the mean sample time of the array of time instants given | def vlxu(WXkz):
exwG = len(WXkz)
ezF6 = [WXkz[YRbF + 1] - WXkz[YRbF] for YRbF in range(exwG - 1)]
return sum(ezF6) / len(ezF6) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Cn5a(YKHO):\n if len(YKHO.times) == 0:\n return 0\n return round(SfSc(YKHO.times), YKHO.precision)",
"def IvhD(YKHO) -> float:\n return YKHO.total_time / YKHO.valid_count",
"def UBji(AsN7):\n mKeU = AsN7.collapsed('time', Ty8a.analysis.MEAN)\n return mKeU",
"def wwgU(dy_H):\n ret... | [
"0.7591709",
"0.7216079",
"0.7199018",
"0.7139893",
"0.703581",
"0.7024886",
"0.6985552",
"0.6953784",
"0.69136196",
"0.69065833",
"0.6899599",
"0.6899474",
"0.6893459",
"0.68778276",
"0.6809605",
"0.6684474",
"0.66758174",
"0.66318667",
"0.6605484",
"0.6585922",
"0.6581192",... | 0.63523954 | 32 |
Computes the mean amplitude of a periodic signal | def caa_(WXkz, Gaon, pQ4c):
exwG = len(WXkz)
if not len(Gaon) == len(WXkz):
raise ValueError('signal and times must have the same length (a measure for each time)')
LTIa = []
zj6L = 0
HKli = 0
YRbF = 0
UHFx = 0
for YRbF in range(exwG):
if WXkz[YRbF] < (UHFx + 1) * pQ4c:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ypGu(RkFZ):\n TuIw = ohBC(RkFZ)[1]\n f8a3 = ohBC(RkFZ)[0]\n _mSQ = TuIw / sum(TuIw)\n return 1 / oyIN.average(f8a3, weights=_mSQ)",
"def Lnp2(WKvO, QTg7):\n return oyIN.array([vIBu(WKvO[YRbF::QTg7], axis=0) for YRbF in range(QTg7)])",
"def Lnp2(WKvO, QTg7):\n return oyIN.array([vIBu(WKvO[... | [
"0.7234269",
"0.6956243",
"0.6902009",
"0.68940336",
"0.6785468",
"0.6732629",
"0.67118925",
"0.6663024",
"0.6636361",
"0.6627028",
"0.6597381",
"0.65818465",
"0.65718806",
"0.6480784",
"0.6456519",
"0.6441825",
"0.64268225",
"0.63707125",
"0.6357728",
"0.6352819",
"0.6350862... | 0.72298235 | 1 |
Point mass pendulum equations of motion. | def ets5(eeYG, a1PO, Vlb9):
hbUd, IrOQ = eeYG
r8hN, Oa1e, vC9B, Fg_i = Vlb9
j93S = YUNn(hbUd)
Y8oh = IrOQ
YB_K = -Oa1e * j93S / vC9B - Fg_i * IrOQ / (vC9B ** 2 * r8hN)
return [Y8oh, YB_K] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AQ7_(oeNL, y917, a1PO):\n Jiun = oeNL / oyIN.linalg.norm(oeNL)\n Nknu = -bMbF * Oa1e * E_2f\n EIvo = -M6U_ * oyIN.linalg.norm(oeNL) * Jiun\n m1A6 = -WXAk * y917\n h5FP = sozo * oyIN.cos(eo2m * a1PO * JRYC)\n sgTf[:, a1PO] = (Nknu + EIvo + m1A6 + h5FP) / bMbF\n return sgTf[:, a1PO]",
"def... | [
"0.6379409",
"0.63751626",
"0.62752473",
"0.62458086",
"0.6068484",
"0.59983855",
"0.5948826",
"0.59019196",
"0.58957684",
"0.58593655",
"0.58252305",
"0.58231497",
"0.5815785",
"0.5809239",
"0.5784332",
"0.57772994",
"0.5726207",
"0.5720204",
"0.5711758",
"0.56666595",
"0.56... | 0.0 | -1 |
The function returns the node's score | def hckV(YKHO):
return YKHO.__score | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def omnI(YKHO, Q6kx):\n return Q6kx.profile.friendNum + Q6kx.profile.visitorNum / 10",
"def SrUS(p1kx):\n return p1kx",
"def hckV(YKHO):\n return 0",
"def p1kx(YKHO):\n pass",
"def p1kx(YKHO) -> float:\n pass",
"def hckV(YKHO):\n return YKHO.score",
"def hckV(YKHO):\n return YKHO.d... | [
"0.7849627",
"0.767439",
"0.7551991",
"0.75348884",
"0.7447775",
"0.7307806",
"0.7306304",
"0.7305306",
"0.72731274",
"0.7236345",
"0.72152686",
"0.72148263",
"0.72101873",
"0.7201714",
"0.717928",
"0.71542585",
"0.7152216",
"0.7132387",
"0.71315926",
"0.71306086",
"0.7119616... | 0.7224402 | 10 |
Multiply two squared matrices using list comprehesion | def lyZ1(k0lF, tjUW):
return [[sum([WKvO * LVAh for WKvO, LVAh in zip(rdlD, fvDH)]) for fvDH in zip(*tjUW)] for rdlD in k0lF] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eXXy(at2S, CKPS):\n if len(at2S[0]) != len(CKPS):\n return None\n return [[sum((jzdc * Fg_i for jzdc, Fg_i in zip(NLCK, AD8Z))) for AD8Z in zip(*CKPS)] for NLCK in at2S]",
"def TBjD(jzdc, Fg_i):\n return sum(jzdc) * sum(Fg_i)",
"def dqm3(WKvO, *LVAh):\n Aofo = WKvO\n for MOYU in LVAh:... | [
"0.75635374",
"0.7527575",
"0.7476395",
"0.7471966",
"0.7470995",
"0.7374049",
"0.736448",
"0.73556644",
"0.7344715",
"0.7281834",
"0.72674155",
"0.72649795",
"0.726031",
"0.7252165",
"0.7227941",
"0.7187153",
"0.71738285",
"0.71244645",
"0.71205425",
"0.7109253",
"0.7087818"... | 0.7506502 | 2 |
Sets the mode of the drone through set mode service. | def H1N_(YKHO, Tuqy):
Aofo = YKHO.set_mode_service(custom_mode=Tuqy)
if Aofo.mode_sent:
sQC5.logdebug('Setting mode to %s successful', Tuqy)
else:
sQC5.logdebug('Setting mode to %s unsuccessful', Tuqy) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H1N_(YKHO):\n YKHO._client.set_mode(YKHO._device_id, YKHO._mode, YKHO._target_temperature, YKHO._fan_speed)",
"def ZdtX(YKHO, Tuqy: int) -> None:\n ...",
"def QGib(YKHO, Tuqy):\n YKHO._Mode = Tuqy\n return",
"def B2_U(YKHO, Tuqy):\n YKHO._mode = Tuqy",
"def H1N_(YKHO, Tuqy):\n YKHO.dr... | [
"0.82017136",
"0.7996951",
"0.77174795",
"0.76920676",
"0.7659594",
"0.76348823",
"0.7565923",
"0.7532374",
"0.7532374",
"0.75122374",
"0.7497889",
"0.74959224",
"0.7467313",
"0.74636656",
"0.74299896",
"0.7407447",
"0.73749334",
"0.73386025",
"0.73035127",
"0.73033327",
"0.7... | 0.7584143 | 6 |
Row and col are positions in game grid. Returns position in world coordinates. | def l2Tn(YKHO, rdlD, fvDH):
zNig = YKHO.target.size
pA0V = YKHO.board_centre.size
dMYj = zNig.y / (1.375 * pA0V.y * YKHO.board_size)
uf8B = pA0V.x * dMYj
H9KT = (-YKHO.board_size * uf8B + uf8B) / 2
M4zu = (-YKHO.board_size * uf8B + uf8B) / 2
return (H9KT + fvDH * uf8B, M4zu + rdlD * uf8B) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hhcg(YKHO, rdlD, fvDH):\n WKvO = fvDH * YKHO.resolution + 0.5 * YKHO.resolution + YKHO.origin_x\n LVAh = rdlD * YKHO.resolution + 0.5 * YKHO.resolution + YKHO.origin_y\n return (WKvO, LVAh)",
"def N23N(YKHO, qJvq, btha):\n pPjL = YKHO.resolution / 2\n XgFt = qJvq * YKHO.resolution + YKHO.origi... | [
"0.72176504",
"0.70220274",
"0.69894093",
"0.69568515",
"0.6935588",
"0.67968726",
"0.6764049",
"0.6755335",
"0.6739956",
"0.66868764",
"0.6684658",
"0.6684658",
"0.6684658",
"0.667455",
"0.6648466",
"0.6631858",
"0.65677255",
"0.65677255",
"0.651486",
"0.6512902",
"0.6511809... | 0.7264056 | 0 |
Initializes a sprite with texture texture and sets its origin to centre. | def pGZB(YKHO, K_4v):
zNig = K_4v.size
Jqc7 = UH90.Sprite(K_4v)
Jqc7.origin = (zNig.x / 2, zNig.y / 2)
return Jqc7 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uRBx(YKHO, zZcM, TVTK, H2v2):\n K_4v = jIOH.load_texture(zZcM)\n YKHO.textures.append(K_4v)\n YKHO.set_texture(0)\n YKHO.height = H2v2\n YKHO.width = TVTK",
"def FIMM(YKHO):\n super().__init__()\n YKHO.image = a9eO.image.load('resources/w.png')\n YKHO.rect = YKHO.image.get_rect()\n ... | [
"0.72865963",
"0.70860916",
"0.70666283",
"0.7012212",
"0.69950455",
"0.6953826",
"0.6919673",
"0.6867987",
"0.6842204",
"0.6834515",
"0.68056136",
"0.67248136",
"0.66145635",
"0.6599323",
"0.6535803",
"0.6513404",
"0.6450065",
"0.6446726",
"0.6384398",
"0.6364427",
"0.635502... | 0.6841091 | 9 |