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 |
|---|---|---|---|---|---|---|
A get method for temperatures measured for the constituent clusters of this sample. An error will be thrown if temperatures haven't been measured for the given region (the default is R_500) and model (default is the constanttbabsapec model which single_temp_apec fits to cluster spectra). Any clusters for which temperat... | def L2Qu(YKHO, xUO6: Union[str, Quantity]='r500', C3ST: str='constant*tbabs*apec', _Wcg: Union[str, Quantity]=f9X8(0, 'arcsec'), xyKX: bool=True, sgxw: int=5, argL: float=None, ztPV: float=None, tbHK: bool=True):
from ..sas.spec import region_setup
if xUO6 != 'region':
LJXh, dmw5 = region_setup(YKHO, xU... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jk3O(YKHO):\n b0Aj = YKHO._getMedianBlock()\n return qaC1(b0Aj, YKHO.allNuclidesInProblem)",
"def GXZ_(YKHO):\n try:\n vPCm = dict()\n SdxH = YKHO._get_entity_indices(ent_physical_class=u'sensor', ent_strings=[u'temp', u'Temp'])\n for d6pt in SdxH:\n d6pt = d6pt.split... | [
"0.64632004",
"0.6116114",
"0.59149057",
"0.58586437",
"0.58377373",
"0.5821281",
"0.5778839",
"0.57556754",
"0.5752772",
"0.57018256",
"0.5613849",
"0.56097335",
"0.55620515",
"0.5541175",
"0.55402154",
"0.553917",
"0.5538331",
"0.5514303",
"0.55098164",
"0.5495099",
"0.5493... | 0.58517146 | 4 |
A convenience function to generate a hydrostatic masstemperature relation for this sample of galaxy clusters. | def xsuO(YKHO, xUO6: str='r500', WzsH: Quantity=f9X8(4, 'keV'), CERb: Quantity=f9X8(500000000000000.0, 'Msun'), NqpV: str='odr', y3Sk: list=None, C3ST: str='constant*tbabs*apec', ggLF: Union[str, Quantity]=f9X8(0, 'arcsec'), xyKX: bool=True, sgxw: int=5, argL: float=None, ztPV: float=None, ORQE: str=None, j9Ba: str=Non... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BPZs():\n WKvO = 0\n print('time, sic ube, sic uc, sic ub, sic temp, si ube, si ub, si uc, si temp')\n BkGi = 2\n uKwF = 0.7\n while WKvO != 82:\n qcWV.timedelta(hours=1 * WKvO)\n nbkO = dM2g(1654) + 301\n iIAk = dM2g(1654) + 301\n c_zj = oyIN.exp((2000 - nbkO) / 1000... | [
"0.5886309",
"0.5798213",
"0.5593721",
"0.5588989",
"0.556246",
"0.55472744",
"0.5515096",
"0.55058986",
"0.54983824",
"0.5470255",
"0.54651964",
"0.5459363",
"0.5456408",
"0.5455518",
"0.5453588",
"0.54506934",
"0.5439311",
"0.5434599",
"0.5431841",
"0.54111844",
"0.5409552"... | 0.0 | -1 |
Get absolute path to resource, works for dev and for PyInstaller | def JFat(t_yv):
try:
XSj5 = HwRy._MEIPASS
except Exception:
XSj5 = Hy7s.path.abspath('.')
if 'backend' not in XSj5:
XSj5 = XSj5 + '/backend'
return Hy7s.path.join(XSj5, t_yv) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gZBG():\n return khtY.abspath(khtY.join(khtY.dirname(xAKo), 'resources') + khtY.sep)",
"def JFat(Qth0):\n if getattr(HwRy, 'frozen', None):\n ObT1 = HwRy._MEIPASS\n else:\n ObT1 = Hy7s.path.join(Hy7s.getcwd())\n return Hy7s.path.join(ObT1, Qth0)",
"def JFat(t_yv):\n try:\n ... | [
"0.86663294",
"0.8192372",
"0.8176555",
"0.81645846",
"0.8088248",
"0.8088248",
"0.8088248",
"0.8088248",
"0.80879176",
"0.80802363",
"0.80790424",
"0.8075671",
"0.8067025",
"0.8064307",
"0.8064307",
"0.8064307",
"0.8064307",
"0.8064307",
"0.8064307",
"0.8064307",
"0.8058821"... | 0.80602527 | 20 |
Returns the first matching line in a list of lines. See match() | def IyFl(Nqlg, peBr):
for zFiD in Nqlg:
K_C7 = kUBT(zFiD, peBr)
if K_C7 != None:
return K_C7
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ERyS(mXDZ='', list=[]):\n dkO2 = ZbWC.compile(mXDZ, ZbWC.IGNORECASE)\n for zFiD in list:\n zFiD.strip()\n UfXD = dkO2.search(zFiD)\n if UfXD is not None:\n return zFiD\n return None",
"def IyFl(Nqlg, peBr):\n for zFiD in Nqlg:\n K_C7 = kUBT(zFiD, peBr)\n ... | [
"0.7681703",
"0.74309796",
"0.7365884",
"0.73587465",
"0.7143773",
"0.7075618",
"0.69545585",
"0.68623996",
"0.6821674",
"0.6730548",
"0.66935915",
"0.6634548",
"0.66299224",
"0.65084714",
"0.6487715",
"0.64602613",
"0.6374595",
"0.63284826",
"0.627325",
"0.6263974",
"0.62481... | 0.73537207 | 4 |
Create a connection to communicate with the API. | def Lz6g(YKHO, vYBr=5):
wOb_ = GGmw.socket(GGmw.AF_INET, GGmw.SOCK_STREAM)
bo34.info('Connecting to {}:{}'.format(YKHO.host, YKHO.port))
try:
wOb_.connect((YKHO.host, YKHO.port))
except GGmw.error as e:
tO9_ = getattr(tTpl, 'strerror', None) or tTpl.message
raise dGsP(tO9_)
w... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HagN(YKHO):\n bo34 = G9jH.getLogger(__name__)\n bo34.info('Create connection.')\n YKHO.api.connect()\n bo34.info('Successfully connected.')",
"def F_jW(YKHO):\n x0hE = iJSR(YKHO.__url)\n x0hE.user = YKHO.__user\n x0hE.password = YKHO.__password\n return x0hE",
"def GBgR(YKHO, NKcE, ... | [
"0.8154399",
"0.7745154",
"0.73941964",
"0.72177243",
"0.7069412",
"0.704291",
"0.69822913",
"0.6924314",
"0.69179565",
"0.69179565",
"0.69179565",
"0.68986386",
"0.687973",
"0.6862265",
"0.68565494",
"0.68206185",
"0.68151397",
"0.67859006",
"0.67859006",
"0.6778528",
"0.675... | 0.0 | -1 |
Send a SQL query to be executed on the server, returning a ``DictReader`` containing the rows returned as a list of dictionaries. | def Vn3y(YKHO, xDcj):
geh0 = YKHO.send_request('ExecuteQueryRq', {'Query': xDcj}, response_node_name='ExecuteQueryRs')
LtY3 = jKi7.StringIO()
for rdlD in geh0.iter('Row'):
if HwRy.version_info < (3,):
l5Ny = rdlD.text.encode('utf-8') + b'\n'
else:
l5Ny = rdlD.text + u... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xDcj(YKHO, Pe9W):\n YKHO.session.row_factory = YKHO.dict_factory\n DpUl = YKHO.session.cursor()\n DpUl.execute(Pe9W)\n usx6 = DpUl.fetchall()\n for rdlD in usx6:\n print(rdlD)",
"def Vn3y(YKHO, xDcj):\n xDcj += ';'\n YKHO.c.execute(xDcj)\n geh0 = YKHO.c.fetchall()\n return g... | [
"0.723471",
"0.7080844",
"0.70369846",
"0.7035661",
"0.7012752",
"0.68955654",
"0.6871005",
"0.68565804",
"0.6850905",
"0.6835387",
"0.6821827",
"0.67921007",
"0.6788056",
"0.67818165",
"0.676503",
"0.6761339",
"0.6692468",
"0.6663835",
"0.6656307",
"0.6643934",
"0.662557",
... | 0.6149268 | 89 |
Task instances that are in their retry period should fail this dep | def yVZF(YKHO):
xTkX = YKHO._get_task_instance(wHLO.UP_FOR_RETRY, end_date=qcWV(2016, 1, 1, 15, 30))
assert xTkX.is_premature
assert not oxPY().is_met(ti=xTkX) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gjOz(YKHO, D5gV):\n pass",
"def aSlR(YKHO):\n YKHO.container.SubmitCommandEvent(YKHO.task, 'ExecuteFailed')\n YKHO.container.WaitForState(YKHO.test_run_id, 'QUEUED')\n ZFzw = YKHO.container.LeaseTask(Tvwr.DeviceInfo(YKHO.device_serial))\n YKHO.assertIsNotNone(ZFzw)\n YKHO.assertNotEqual(YKH... | [
"0.7336007",
"0.7093941",
"0.7051354",
"0.6924535",
"0.669804",
"0.6683898",
"0.66552085",
"0.6590428",
"0.6557591",
"0.6547837",
"0.6546507",
"0.6530491",
"0.6444767",
"0.64291126",
"0.64197856",
"0.63484734",
"0.63324636",
"0.63318485",
"0.63157326",
"0.62977725",
"0.629394... | 0.67910826 | 4 |
Ensures correct output from target_var_to_neuron_indices. In this case, neuralnet type is Unet. | def VQyj(YKHO):
fafq = len(HLeO)
for YRbF in range(fafq):
WwtF = CQvA.target_var_to_neuron_indices(example_dict=jth9.deepcopy(S87g), net_type_string=CQvA.U_NET_TYPE_STRING, target_name=ecVu[YRbF], height_m_agl=SYp_[YRbF])
YKHO.assertTrue(XTiz.array_equal(WwtF, HLeO[YRbF])) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hBwN(YKHO):\n fafq = len(HLeO)\n for YRbF in range(fafq):\n _7cT, xAEj = CQvA.neuron_indices_to_target_var(neuron_indices=HLeO[YRbF], example_dict=jth9.deepcopy(S87g), net_type_string=CQvA.U_NET_TYPE_STRING)\n YKHO.assertTrue(_7cT == ecVu[YRbF])\n YKHO.assertTrue(xAEj == SYp_[YRbF])"... | [
"0.8212164",
"0.7628682",
"0.7383711",
"0.7352977",
"0.71155494",
"0.5882183",
"0.5744697",
"0.565405",
"0.5631463",
"0.56139725",
"0.5546807",
"0.55105174",
"0.5482189",
"0.54735726",
"0.54313815",
"0.5426254",
"0.54066736",
"0.53990734",
"0.53990734",
"0.53776586",
"0.53496... | 0.83916867 | 0 |
Check if this element contains no bytes. This plugin checks that we can get a file model return from girder and that the size of the file queried is nonzero. | def FBfn(YKHO):
r8hN = YKHO.get_file_model()
return r8hN is None or r8hN['size'] == 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lsmZ(YKHO):\n return Hy7s.path.getsize(YKHO.filename) == 0",
"def wco3(YKHO):\n mfF2 = YKHO.file_22000.stat().st_size\n if mfF2 == 0:\n raise iOkc('No hashes found')",
"def eJ6i():\n if Hy7s.stat(gIsw)[QmN4.ST_SIZE] == 0:\n return False\n return True",
"def FBfn(YKHO):\n r... | [
"0.73621523",
"0.7123725",
"0.6863228",
"0.68132097",
"0.68002164",
"0.6791483",
"0.6766551",
"0.6761484",
"0.6752018",
"0.6752018",
"0.6740638",
"0.67356586",
"0.67237055",
"0.6716899",
"0.66590315",
"0.66466814",
"0.6639755",
"0.6639755",
"0.6639755",
"0.6639755",
"0.663975... | 0.727371 | 1 |
Test that returned ingredients for authenticated user | def PMwr(YKHO):
k5uE = egNl().objects.create_user('another_tester@example.com', 'TestPassword')
_baS.objects.create(user=k5uE, name='Vinegar')
geh0 = YKHO.client.get(ZrLe)
YKHO.assertEqual(geh0.status_code, jGRS.HTTP_200_OK)
YKHO.assertEqual(len(geh0.data), 2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _Jlt(YKHO):\n I3Vl = egNl().objects.create_user('dummy2@blainesmith.me', 'testingpassword')\n _baS.objects.create(user=I3Vl, name='Flour')\n uBMr = _baS.objects.create(user=YKHO.user, name='Paprika')\n Ylbp = YKHO.client.get(ZrLe)\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_200_OK)\n YKHO.... | [
"0.83376974",
"0.7874274",
"0.7844538",
"0.78188443",
"0.78072375",
"0.78007543",
"0.7800721",
"0.7792742",
"0.778301",
"0.77590394",
"0.76931304",
"0.7690915",
"0.767625",
"0.76480794",
"0.764298",
"0.76329094",
"0.7628258",
"0.76100695",
"0.74703306",
"0.7466045",
"0.744731... | 0.8162701 | 1 |
Test that creating a new ingredient will fail if name field is empty | def vtDA(YKHO):
p9iC = {'name': ''}
geh0 = YKHO.client.post(ZrLe, p9iC)
YKHO.assertEqual(geh0.status_code, jGRS.HTTP_400_BAD_REQUEST) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KoKs(YKHO):\n pB3N = {'name': ''}\n Ylbp = YKHO.client.post(ZrLe, pB3N)\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_400_BAD_REQUEST)",
"def WkHL(YKHO):\n nPrm = {'name': ''}\n geh0 = YKHO.client.post(path=zAZy, data=nPrm)\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_400_BAD_REQUEST)",
... | [
"0.82722485",
"0.82493466",
"0.8240718",
"0.8203808",
"0.8172812",
"0.8172563",
"0.8148176",
"0.81285733",
"0.8113948",
"0.81055284",
"0.8102716",
"0.8014502",
"0.7991605",
"0.7953542",
"0.7929369",
"0.7654876",
"0.7616938",
"0.75725096",
"0.75339276",
"0.75337857",
"0.752204... | 0.88293797 | 0 |
Get send type for a given message | def Vi4x(LE0X):
try:
return iBoM[LE0X]['GenMsgSendType']
except KeyError:
try:
return tbKN['GenMsgSendType']
except KeyError:
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZdTa(YKHO):\n if 'GenMsgSendType' in YKHO.dbc.attributes:\n BWXx = YKHO.dbc.attributes['GenMsgSendType'].value\n return YKHO.dbc.attributes['GenMsgSendType'].definition.choices[BWXx]",
"def Logs(YKHO) -> str:\n return qe4Y.get(YKHO, 'message_type')",
"def FxTh(Dfxc):\n return y86K()[... | [
"0.7668502",
"0.7459033",
"0.7439942",
"0.7244554",
"0.7202049",
"0.7155505",
"0.7155505",
"0.7155505",
"0.7155505",
"0.7155505",
"0.7155505",
"0.7155505",
"0.7155505",
"0.7155505",
"0.7155505",
"0.7155505",
"0.7155505",
"0.7155505",
"0.7155505",
"0.7155505",
"0.7155505",
"... | 0.6963494 | 33 |
Get is_float for given signal. | def pfN7(LE0X, Gaon):
try:
return EbR5[LE0X][Gaon] == 1
except KeyError:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QpCZ(Es0b):\n return type(Es0b) == float",
"def NLLz(YKHO, BWXx):\n try:\n float(BWXx)\n except ValueError:\n return False\n return True",
"def SH_w(WKvO):\n try:\n float(WKvO)\n return True\n except ValueError:\n return False",
"def QpCZ(wbrg):\n t... | [
"0.75477976",
"0.75468683",
"0.7538787",
"0.75151044",
"0.7503874",
"0.748763",
"0.74833214",
"0.74680805",
"0.7463537",
"0.7435461",
"0.7429495",
"0.7393156",
"0.7367752",
"0.73599094",
"0.7353844",
"0.7324239",
"0.7316637",
"0.72745144",
"0.72745144",
"0.72745144",
"0.72745... | 0.8600812 | 0 |
leaky_relu operator alpha(0.1) float | def KzM8(CtJu, Cwt5=0.1):
return uH7T(CtJu, Cwt5) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KzM8(WKvO, Cwt5=0.01):\n if Cwt5 != -1.0:\n G1Hx = (1.0 + Cwt5) / 2\n Fg_i = (1.0 - Cwt5) / (1.0 + Cwt5)\n return G1Hx * (WKvO + Fg_i * abs(WKvO))\n else:\n return WKvO",
"def KzM8(YKHO, WKvO, Cwt5=0.01):\n return oyIN.where(WKvO > 0, WKvO, WKvO * Cwt5)",
"def KzM8(WKvO... | [
"0.84778553",
"0.8265833",
"0.8161105",
"0.8160729",
"0.7995714",
"0.79176563",
"0.7913558",
"0.7843336",
"0.773097",
"0.77087086",
"0.76018655",
"0.7579385",
"0.75086707",
"0.7503098",
"0.7495824",
"0.7493032",
"0.74636936",
"0.74636936",
"0.74139714",
"0.7403316",
"0.737536... | 0.792795 | 5 |
get a job config | def NMoC(YKHO, mWFP):
ghSA, mWFP = YKHO._parse_name(mWFP)
with YKHO._lock:
QTBn = YKHO._get_state(ghSA, mWFP)
return QTBn.config | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wcN2(YKHO, u0gG):\n return YKHO.proxy.getJobConfig(u0gG)",
"def UIzg(YKHO, mWFP):\n U5bT, yvT9, XObx = YKHO._run_command('get-job', [mWFP])\n if U5bT != 0:\n raise Exception('Cannot get job config (%d): %s' % (U5bT, XObx))\n else:\n return yvT9",
"def pSxt(oCfW):\n return {WKvO... | [
"0.8175088",
"0.8033622",
"0.7397576",
"0.7228283",
"0.69734025",
"0.6889309",
"0.67757994",
"0.6686126",
"0.6682557",
"0.6682557",
"0.66235787",
"0.66199327",
"0.6593232",
"0.6589834",
"0.6589834",
"0.6589834",
"0.6589834",
"0.65792453",
"0.6576795",
"0.6530053",
"0.6529424"... | 0.0 | -1 |
Compute Receiver operating characteristic (ROC) by attribute. | def H12f(Y8eF, OU5i, YpCW, uxJJ=None, xF06=None, c2JP=False):
qDyV = YP2C(Y8eF, OU5i, YpCW)
RTnf = {ykB9: v5W1(uOe2['y_true'], uOe2['y_score'], uxJJ, xF06, c2JP) for ykB9, uOe2 in qDyV}
if not BhqZ((Nhxk for bGrB, bGrB, Nhxk in RTnf.values())):
raise NotImplementedError('All the scores values should... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def No_o(YKHO):\n if oyIN.sum(YKHO.y_true) != len(YKHO.y_true) / 2.0:\n qmLP.warn('AUROC is not recommended in the case of class imbalance. ', Warning)\n return Qq_d(YKHO.y_true, YKHO.y_pred)",
"def No_o(YKHO):\n if oyIN.sum(YKHO.y_true) != len(YKHO.y_true) / 2.0:\n qmLP.warn('AUROC is not... | [
"0.6218415",
"0.6218415",
"0.6105651",
"0.6087405",
"0.6073124",
"0.60541975",
"0.60299796",
"0.6020897",
"0.59354264",
"0.58825177",
"0.57498306",
"0.5748572",
"0.569296",
"0.56813467",
"0.56716824",
"0.56699646",
"0.56293607",
"0.5620224",
"0.5617559",
"0.55968124",
"0.5596... | 0.5119817 | 64 |
given a dictionary of terms and their frequency in document and returns rep vec and glove score. | def GXJU(YKHO, C3jp, TOk6):
zuO3 = oyIN.zeros(24)
HAP_ = 0
for GIN8 in C3jp.keys():
VRiR = YKHO.dic_words.get(GIN8.lower(), None)
if VRiR is not None:
ZylS = C3jp[GIN8]
HAP_ += ZylS
zuO3 += VRiR * ZylS
if HAP_ == 0:
return (zuO3, 0)
zWZW = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Bm_4(YKHO, fgcx):\n NHn2 = jth9.deepcopy(fgcx)\n for A97Q in NHn2:\n FpjG = max(A97Q['words'].values())\n for GIN8 in A97Q['words']:\n A97Q['words'][GIN8] = A97Q['words'][GIN8] / FpjG\n return NHn2",
"def Yc87(cmPJ, EFn0) -> dict:\n UFY3 = oRi_(dict)\n for jI4j, BWz1 i... | [
"0.6945625",
"0.67179316",
"0.6662384",
"0.6653614",
"0.6620255",
"0.6581445",
"0.6542931",
"0.65300757",
"0.65028095",
"0.6433989",
"0.642053",
"0.6419449",
"0.6400213",
"0.6382132",
"0.6302011",
"0.6291946",
"0.62813526",
"0.6276576",
"0.6244387",
"0.6242913",
"0.6240966",
... | 0.76676357 | 0 |
Calculate mu delta. alpha_mu epsilons x {(r_plus r_minus) / (2m r_plus r_minus)} | def eaJH(YKHO, ET_e: np.array, dksV: np.array, hdcs: np.array) -> oyIN.array:
Mkmy = (dksV - hdcs) / (2 * YKHO.__maximum_reward - dksV - hdcs)
return YKHO.__learning_rate['mu'] * ET_e @ Mkmy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R_A9(L749):\n return oyIN.sqrt(1.0 - L749 ** 2.0)",
"def Axts(YKHO, RA_F):\n if RA_F is None or RA_F > YKHO.t_window:\n return 0\n _hZ2 = YKHO.calculate_epsilon(RA_F)\n yGTL = -YKHO.alpha * YKHO.theta * _hZ2\n return yGTL",
"def sL3H(yGTL):\n return oyIN.sqrt(1.0 - yGTL ** 2.0)",
... | [
"0.7482736",
"0.74182624",
"0.70745623",
"0.65681577",
"0.65004826",
"0.6304389",
"0.62285715",
"0.6173931",
"0.61511546",
"0.6092431",
"0.60872674",
"0.6041022",
"0.60126543",
"0.5993681",
"0.5974063",
"0.5962167",
"0.5941626",
"0.5909119",
"0.5888553",
"0.58817625",
"0.5872... | 0.8467782 | 0 |
Calculate sigma delta. alpha_sigma/(mb) {(epsilons^2 sigmas^2) / sigmas} x {(r_plus + r_minus)/2 b} | def tRVc(YKHO, ET_e: np.array, dksV: np.array, hdcs: np.array) -> oyIN.array:
o4sw = (oyIN.square(ET_e) - oyIN.square(YKHO.__sigma[:, oyIN.newaxis])) / oyIN.maximum(YKHO.__sigma[:, oyIN.newaxis], BVxk)
Mkmy = (dksV + hdcs) / 2.0 - YKHO.__baseline.get_value()
if YKHO.__maximum_reward - YKHO.__baseline.get_va... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WTkW(DUmh):\n return (-2 * DUmh) ** 0.5",
"def WTkW(WKvO, jzdc, Cwt5):\n return 1.0 / (1.0 + oyIN.exp(-4.0 / Cwt5 * (WKvO - jzdc)))",
"def WTkW(Cwt5, WKvO, LVAh=None):\n if LVAh is None:\n LVAh = oyIN.zeros(WKvO.shape)\n assert WKvO.shape == LVAh.shape\n vC9B = WKvO - LVAh\n pDev =... | [
"0.70451593",
"0.69209397",
"0.6771478",
"0.67338413",
"0.6716021",
"0.66831696",
"0.6652203",
"0.6611806",
"0.6565917",
"0.6530516",
"0.6492527",
"0.6462686",
"0.6452441",
"0.6418707",
"0.6416995",
"0.6406033",
"0.63976806",
"0.6371086",
"0.63645184",
"0.6361979",
"0.6359944... | 0.72539556 | 0 |
Return neighbors grouped by their RC with node. It is assumed that node has edges to all of neighbors. | def _q3w(YKHO, Q6kx, A_IW):
kRuA = {'IS': [], 'LO': []}
for exwG in A_IW:
if YKHO[Q6kx][exwG]['RC'] in ('I', 'S'):
kRuA['IS'].append(exwG)
else:
kRuA['LO'].append(exwG)
return kRuA | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QwJh(YKHO, Q6kx):\n return (pmON.to_node for pmON in YKHO.neighbors[Q6kx])",
"def VW36(YKHO, Q6kx):\n A_IW = [Q6kx + UzPC for UzPC in YKHO.connections]\n A_IW = filter(YKHO.in_bounds, A_IW)\n A_IW = filter(YKHO.passable, A_IW)\n return A_IW",
"def A_IW(YKHO, Q6kx):\n return ((Q6kx[0] + J8... | [
"0.67293054",
"0.6675274",
"0.6631143",
"0.6618007",
"0.6407687",
"0.63979155",
"0.62570447",
"0.6214755",
"0.61802465",
"0.6177672",
"0.61644936",
"0.6150356",
"0.6143924",
"0.6143924",
"0.6143924",
"0.6140858",
"0.6128988",
"0.6088951",
"0.60875696",
"0.6064917",
"0.605629"... | 0.7501163 | 0 |
Add edges from source to target and from target to source. | def dJ1n(YKHO, JZXy, pan_, RBVb, bBoX, HRJ_):
jHsn.DiGraph.add_edge.im_func(YKHO, JZXy, pan_, RC=RBVb, PDC=bBoX, TP=HRJ_)
IImS = {'I': 'I', 'S': 'L', 'L': 'S', 'O': 'O'}
TJhF = jth9.deepcopy(HRJ_)
TJhF.reverse()
jHsn.DiGraph.add_edge.im_func(YKHO, pan_, JZXy, RC=IImS[RBVb], PDC=bBoX, TP=TJhF) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rz7z(YKHO, JZXy, pan_):\n if JZXy not in YKHO.nodes:\n raise ValueError('source {} not a node'.format(JZXy))\n if pan_ not in YKHO.nodes:\n raise ValueError('target {} not a node'.format(pan_))\n YKHO.edges[JZXy].add(pan_)\n YKHO.rev_edges[pan_].add(JZXy)\n YKHO.unseen_sources.disc... | [
"0.7692093",
"0.74981254",
"0.7314114",
"0.73003954",
"0.7008296",
"0.69381005",
"0.6891759",
"0.68847495",
"0.686309",
"0.67327785",
"0.673161",
"0.6724119",
"0.67045534",
"0.668923",
"0.6670846",
"0.6638147",
"0.66158366",
"0.66124034",
"0.65696377",
"0.6559581",
"0.6546796... | 0.0 | -1 |
Remove edges from the graph, using self.remove_edge. | def mdk0(YKHO, mC4V):
for JZXy, pan_ in mC4V:
YKHO.remove_edge(JZXy, pan_) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MEl2(YKHO, pNZh, mC4V):\n pNZh.remove_edges_from(mC4V)\n return pNZh",
"def MEl2(YKHO, GdvP):\n YKHO._edges = YKHO._edges.loc[~YKHO._edges.index.isin(GdvP)]",
"def kSdD(YKHO):\n YKHO.remove_in_edges()\n YKHO.remove_out_edges()",
"def iyca(YKHO, D70y):\n JYV8, mheE = D70y.nodes\n if J... | [
"0.797907",
"0.7642268",
"0.7593946",
"0.7574014",
"0.7556075",
"0.75359595",
"0.73983854",
"0.72516555",
"0.72476894",
"0.72313565",
"0.7209104",
"0.7144958",
"0.7139751",
"0.70740694",
"0.707069",
"0.7022357",
"0.70094246",
"0.700658",
"0.6997614",
"0.69975525",
"0.6996173"... | 0.7593381 | 3 |
Add edges to the graph. Each edge must be specified as a (source, target, attributes) tuple, with source and target being BrainSites in CoCoMac format and attributes being a dictionary of valid edge attributes. A valid edge attribute dictionary contains either an RC and a PDC or a TP. If a TP is found, any RC and PDC p... | def j9M2(YKHO, mC4V):
for JZXy, pan_, azoT in mC4V:
if azoT.has_key('TP'):
YKHO.add_edge(JZXy, pan_, tp=azoT['TP'])
else:
YKHO.add_edge(JZXy, pan_, rc=azoT['RC'], pdc=azoT['PDC']) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def j9M2(YKHO, mC4V, honC=None, **hkS8):\n if isinstance(mC4V, ywwl.ndarray):\n mC4V = YKHO._adjmat_to_edges(mC4V)\n for D70y in mC4V:\n YKHO.add_edge(D70y[0], D70y[1], attr_dict=honC, **hkS8)",
"def Vt3M(YKHO, mC4V):\n c7pe = [tTpl[0] for tTpl in mC4V]\n x6A0 = [tTpl[1] for tTpl in mC4... | [
"0.73003083",
"0.72592115",
"0.7153111",
"0.7141694",
"0.70884866",
"0.6933092",
"0.6875895",
"0.68589026",
"0.68185776",
"0.68127877",
"0.68065524",
"0.68055785",
"0.67051065",
"0.66730964",
"0.6644971",
"0.65952706",
"0.6588471",
"0.6588471",
"0.65517896",
"0.650683",
"0.64... | 0.71874964 | 2 |
Add a node to the graph. This method is the same as that for the NetworkX DiGraph, with two | def g5gD(YKHO, Q6kx):
YKHO._check_nodes([Q6kx])
jHsn.DiGraph.add_node.im_func(YKHO, Q6kx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g5gD(YKHO, Q6kx):\n YKHO.graph[Q6kx]",
"def H2v5(YKHO, i4Va, rUTj):\n YKHO.__graph[i4Va].add(rUTj)\n YKHO.__graph[rUTj].add(i4Va)",
"def H2v5(YKHO, i4Va, rUTj):\n YKHO._graph[i4Va].add(rUTj)\n if not YKHO._directed:\n YKHO._graph[rUTj].add(i4Va)\n YKHO._nodes[rUTj].add(i4Va)",
"d... | [
"0.8374279",
"0.8267749",
"0.8163455",
"0.8063626",
"0.7807293",
"0.7776274",
"0.7677711",
"0.7676817",
"0.76122284",
"0.7604986",
"0.7598123",
"0.75933623",
"0.7584785",
"0.7563288",
"0.7562366",
"0.7559195",
"0.7549029",
"0.7549029",
"0.75315356",
"0.752927",
"0.752927",
... | 0.7928146 | 4 |
Get list of all available csyses | def kBwl(YKHO):
YKHO.csysList = {'Session': [], 'ODB': []}
for G1Hx, Ty9i in cuiw.scratchOdbs.items():
for J0mg, XUo2 in Ty9i.rootAssembly.datumCsyses.items():
if XUo2.type == siAR:
YKHO.csysList['Session'].append(J0mg)
if YKHO.odb != None:
for J0mg, XUo2 in YKHO.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ajt6():\n NRWD = Yn3K.Popen(['python', Hy7s.path.expanduser('crap/src/compgen.py')], stdout=Yn3K.PIPE)\n wQcs = list()\n while True:\n zFiD = NRWD.stdout.readline()\n if zFiD != '':\n wQcs.append(zFiD.rstrip())\n else:\n break\n return wQcs",
"def pi1E()... | [
"0.62130666",
"0.6153755",
"0.61421615",
"0.60697037",
"0.6061855",
"0.60571074",
"0.60392386",
"0.6010349",
"0.5929147",
"0.5928846",
"0.59285647",
"0.5905394",
"0.5870217",
"0.58378303",
"0.58229434",
"0.58220327",
"0.5814594",
"0.58131003",
"0.58025205",
"0.5789312",
"0.57... | 0.7343859 | 0 |
Test that resulting resource has the right prop and attrib schema. Note that this test requires the Wordpress_Single_Instance.yaml template in the templates directory since we want to test using a nontrivial template. | def NIdA(YKHO):
dzbn = 'WordPress_Single_Instance.yaml'
pmON = Hy7s.path.join(Hy7s.path.dirname(Hy7s.path.realpath(xAKo)), 'templates', dzbn)
YKHO.assertIn(dzbn, Hy7s.listdir(Hy7s.path.dirname(pmON)))
with open(pmON) as wILA:
LPiT = wILA.read()
YKHO.assertTrue(LPiT, 'Empty test template')
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tccr(YKHO):\n O5OR = {'prop1': 'abc', 'Prop1': 100042}\n KUlX = {YKHO.uri_prop: YKHO.uri, 'prop1': 'abc', 'Prop1': 100042}\n Ylbp = vyWj(YKHO.mgr, YKHO.uri, None, O5OR)\n assert Ylbp.manager is YKHO.mgr\n assert Ylbp.uri == YKHO.uri\n YKHO.assert_properties(Ylbp, KUlX)\n assert int(ITS7.ti... | [
"0.64346534",
"0.6425023",
"0.62065417",
"0.62065417",
"0.62063146",
"0.61276317",
"0.6107484",
"0.60846126",
"0.6020307",
"0.60001624",
"0.59809613",
"0.59633756",
"0.59476495",
"0.5946975",
"0.5930465",
"0.59138244",
"0.59138244",
"0.5913585",
"0.5870041",
"0.5836908",
"0.5... | 0.6668959 | 0 |
Test that templates are registered correctly. Test that templates persisted in the database prior to | def ZH62(YKHO):
sEAN = {'resource_registry': {'http://example.com/test.template': None, 'resources': {}}}
GikI.Environment(env=sEAN) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eO85(YKHO):\n pass",
"def dShU(YKHO):\n pass",
"def EuGT(YKHO):\n pass",
"def Ft45(YKHO):\n pass",
"def JeWp(YKHO):\n pass",
"def HTvx(YKHO):\n YKHO.assertTemplateUsed(YKHO.response, 'account/register.html')",
"def GCWA(YKHO):\n pass",
"def VIfU(YKHO):\n geh0 = YKHO.client... | [
"0.82507634",
"0.77530813",
"0.75708663",
"0.7389697",
"0.7317185",
"0.73126286",
"0.7250179",
"0.72417325",
"0.7155217",
"0.7087446",
"0.7075534",
"0.7004149",
"0.69705343",
"0.68998414",
"0.6891113",
"0.68839955",
"0.6834336",
"0.6820191",
"0.6811499",
"0.6780136",
"0.67791... | 0.67645603 | 22 |
Perform an estimation of the Lipschitz constant. This function performs an estimation of the Lipschitz constant, which is | def P9Lv(BQIx, hkxX, lGE9, FsXZ, c9qW, WTkW=None):
J1EY = 1
yKke = 1
if WTkW is None:
DNs0 = dHzO(BQIx, lGE9, 4 * FsXZ - 2)
jzdc = pq8R(hkxX, DNs0, 2 * FsXZ - 1)
Fg_i = pq8R(hkxX, DNs0, FsXZ)
Z9rn = wxcS(BQIx, DNs0, 2 * FsXZ - 1, c9qW)
Csk6 = wxcS(BQIx, DNs0, FsXZ, c9... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i6uH(YKHO):\n VKhi = {'maxiter': 200, 'maxfun': 200, 'disp': False}\n X7zS = oyIN.asarray([[0.01, 1]])\n zD_7 = oyIN.random.uniform(X7zS[:, 0], X7zS[:, 1], size=(20, 1))\n VXB2 = [0] * zD_7.shape[0]\n for P2GO, wEf2 in enumerate(zD_7):\n VXB2[P2GO] = YKHO.log_llk(YKHO.X, YKHO.Y, lengthsca... | [
"0.6220045",
"0.6178065",
"0.61778593",
"0.6157478",
"0.6063026",
"0.6060893",
"0.6024854",
"0.5973518",
"0.59102005",
"0.588286",
"0.5879916",
"0.5876189",
"0.58746374",
"0.5853004",
"0.5842986",
"0.5840796",
"0.5839794",
"0.5795128",
"0.5783232",
"0.578274",
"0.57368946",
... | 0.0 | -1 |
Perform an estimation of the Lipschitz constant. | def RoA7(YKHO, BQIx, hkxX, c9qW, WTkW=None):
if isinstance(YKHO.points, list):
return eytI(BQIx, hkxX, YKHO.points, YKHO.neighborhood, c9qW, WTkW)
else:
return P9Lv(BQIx, hkxX, YKHO.points, YKHO.neighborhood, c9qW, WTkW) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LIl6(YKHO) -> float:\n return YKHO.gamma.max_lipschitz",
"def BDfc(YKHO) -> float:\n pass",
"def qq3N(YKHO) -> float:\n pass",
"def FQu0(YKHO, WKvO, sqQC='gp', SGf8=None, WLwM='box', vJPk=True, RsUj=100, bmJ5=-1, PJWX=False):\n if SGf8 is None:\n E00W = YKHO.x_stats['min'].flatten() - ... | [
"0.6242492",
"0.6168151",
"0.6152995",
"0.6037005",
"0.5999828",
"0.59312546",
"0.59286857",
"0.5916686",
"0.5899064",
"0.5896768",
"0.5890286",
"0.5890286",
"0.58865726",
"0.5871377",
"0.58430415",
"0.58360183",
"0.58263487",
"0.5824312",
"0.5823434",
"0.58232415",
"0.582324... | 0.0 | -1 |
calculate sigma_dc with a noninteracting A(w)given, independant of k. A(k,w) = A(w)(2pi)2.0delta(k) | def VDEb(YKHO, DpPP) -> float:
BhTw: float = 0.0
xJhu = DpPP[:, 1] * DpPP[:, 1]
nCcr = DpPP[:, 0]
m5Wd = oyIN.zeros(nCcr.shape)
for YRbF, Rs4w in enumerate(nCcr):
m5Wd[YRbF] = YKHO.dfd_dw(Rs4w)
BhTw = -1.0 / (2.0 * oyIN.pi) * YKHO.prefactor * lJab.simps(xJhu * m5Wd, nCcr)
return BhTw | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VvzA(W061, wjfI, RaBR=True, **YSA3):\n oy3e = I3nw(W061, wjfI, **YSA3)\n oy3e.go()\n return oy3e",
"def QFmy(TaUL, G1Hx, KjSY=64, lUK_=1.0):\n pan_ = oyIN.log2(G1Hx) * lUK_\n Aofo = oyIN.zeros(TaUL.shape[0], dtype=oyIN.float32)\n for YRbF in range(TaUL.shape[0]):\n nEeK = 0.0\n ... | [
"0.6458886",
"0.64253145",
"0.6219008",
"0.6213931",
"0.6189456",
"0.6172514",
"0.6162958",
"0.6146369",
"0.61343455",
"0.6114314",
"0.6109089",
"0.606188",
"0.59988636",
"0.59465873",
"0.59465873",
"0.59031063",
"0.5873114",
"0.58412784",
"0.58242506",
"0.58075917",
"0.57890... | 0.67192924 | 0 |
Reads an image from a file and preprocesses it and returns. | def OP2O(YKHO, d6pt):
QMAG = YKHO.image_paths[d6pt]
Ux0P = QMAG.split('/images/')[-1][:-len('.jpg')]
n6uN = Ux0P + '.png'
YxIR = Hy7s.path.join(YKHO.root_dir, 'masks', n6uN)
LNo8 = hnIv.open(QMAG)
ZHfW = hnIv.open(YxIR)
knl1 = 100
FYKK = lambda WKvO: 255 if WKvO < knl1 else 0
ZHfW = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uaKW(pD6d):\n return Zbfz(fPcm([pD6d]))[0]",
"def Na_a(nUeQ):\n B_lJ(nUeQ)",
"def DZ0a(Ux0P):\n return j9DC(svqz(Ux0P))",
"def tsdv(Ux0P):\n return hnIv.open(Ux0P)",
"def Hmm2(qaEx):\n VXjJ = hnIv.open(qaEx, mode='r')\n if VXjJ.mode == 'RGBA':\n VXjJ = tQEA(VXjJ)\n VXjJ = VX... | [
"0.8144029",
"0.8118296",
"0.7597884",
"0.725531",
"0.7147116",
"0.6967128",
"0.69448525",
"0.69363135",
"0.6931923",
"0.6927958",
"0.69031364",
"0.6834982",
"0.6802558",
"0.6798264",
"0.6784705",
"0.6782314",
"0.6762442",
"0.6722558",
"0.67224723",
"0.67177206",
"0.6709043",... | 0.0 | -1 |
Generate a pseudo random CNOTDihedral circuit. | def m_ub(sogq, wUqH, IXCZ='all', yokr=None):
if IXCZ == 'all':
IXCZ = ['i', 'x', 'y', 'z', 't', 'tdg', 's', 'sdg']
if sogq >= 2:
IXCZ += ['cx', 'cz', 'cs', 'csdg', 'swap']
if sogq >= 3:
IXCZ += ['ccz']
e8uw = {'i': (M5Iw(), 1), 'x': (fU2R(), 1), 'y': (o12y(), 1), ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OtTB(YKHO):\n for OXAZ in YKHO.H:\n YKHO.compute_to_Z_basis(OXAZ)\n if YKHO.barriers:\n YKHO.circ.barrier()\n YKHO.apply_phase_shift(1)\n if YKHO.barriers:\n YKHO.circ.barrier()\n YKHO.uncompute_to_Z_basis(OXAZ)\n if YKHO.barriers:\n ... | [
"0.6758595",
"0.6691066",
"0.65552014",
"0.6368399",
"0.6346358",
"0.62678784",
"0.6231057",
"0.61640126",
"0.61592025",
"0.60033613",
"0.59826106",
"0.5943678",
"0.5937363",
"0.5894047",
"0.58284646",
"0.58195096",
"0.5807324",
"0.58068264",
"0.57930285",
"0.5731722",
"0.570... | 0.74217325 | 0 |
Test that random elements are CNOTDihedral and to_circuit, to_instruction, _from_circuit, _is_valid methods | def FHku(YKHO):
xlLU = oyIN.random.default_rng(1234)
gGnb = 10
for sogq in range(1, 9):
for bGrB in range(gGnb):
LihS = ElIu(sogq, seed=xlLU)
YKHO.assertIsInstance(LihS, Acbe, 'Error: random element is not CNOTDihedral')
YKHO.assertTrue(LihS._is_valid(), 'Error: r... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _VWg(YKHO):\n xlLU = oyIN.random.default_rng(1234)\n gGnb = 10\n for sogq in range(1, 9):\n for bGrB in range(gGnb):\n Jdbc = m_ub(sogq, 5 * sogq, seed=xlLU)\n LihS = Acbe(Jdbc)\n QrNo = LihS.to_circuit()\n RvlE = Acbe(QrNo)\n YKHO.assertEq... | [
"0.69704676",
"0.6947461",
"0.67586416",
"0.64647925",
"0.63866436",
"0.6369258",
"0.6261357",
"0.6131556",
"0.6110251",
"0.6074135",
"0.6071561",
"0.60524386",
"0.6047362",
"0.59733176",
"0.594339",
"0.5932448",
"0.5931051",
"0.5930932",
"0.59268445",
"0.59217125",
"0.590614... | 0.7330923 | 0 |
Test initialization from circuit and to_circuit, to_instruction methods | def _VWg(YKHO):
xlLU = oyIN.random.default_rng(1234)
gGnb = 10
for sogq in range(1, 9):
for bGrB in range(gGnb):
Jdbc = m_ub(sogq, 5 * sogq, seed=xlLU)
LihS = Acbe(Jdbc)
QrNo = LihS.to_circuit()
RvlE = Acbe(QrNo)
YKHO.assertEqual(LihS, RvlE... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def susm(YKHO, NArs):\n DPNn, LlXp = NArs\n DDLl = RU4f(experiment_helper=dJ_P(gate_name='measure', freq_offset=1000000.0, iq_cluster_centers=[((0.0, 0.0), (-1.0, 0.0))], iq_cluster_width=[0.2]))\n pw0K = LrWE([0], DDLl)\n try:\n pw0K.set_experiment_options(initial_circuit=DPNn)\n except eP6a... | [
"0.70078707",
"0.69036573",
"0.68802816",
"0.6828123",
"0.68011826",
"0.6794314",
"0.6662247",
"0.6615219",
"0.6598142",
"0.65373015",
"0.6520607",
"0.6478528",
"0.64623535",
"0.64541703",
"0.6409169",
"0.64028174",
"0.639715",
"0.6395387",
"0.6374376",
"0.6341926",
"0.630073... | 0.6521373 | 10 |
Constructor to create a JonesVector | def FIMM(YKHO, WKvO=1.0, LVAh=0.0, __d3=g1tg()):
if isinstance(WKvO, tHCk):
YKHO.__init__(WKvO.x, WKvO.y, WKvO.wavelength)
else:
m1mO.__init__(YKHO, __d3)
YKHO.x = complex(WKvO)
YKHO.y = complex(LVAh) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, _hYw=1.0, __d3=g1tg()):\n Os_7 = epAf.sqrt(_hYw / 2.0)\n tHCk.__init__(YKHO, Os_7, complex(0.0, -Os_7), __d3)",
"def FIMM(YKHO, _hYw=1.0, __d3=g1tg()):\n Os_7 = epAf.sqrt(_hYw / 2.0)\n tHCk.__init__(YKHO, Os_7, complex(0.0, Os_7), __d3)",
"def FIMM(YKHO, Ty9i=None, yzQ0=1.0):\n if... | [
"0.7093333",
"0.7056726",
"0.6904275",
"0.68005466",
"0.666511",
"0.6652571",
"0.6639721",
"0.6556539",
"0.65343064",
"0.64327246",
"0.6337859",
"0.63371813",
"0.63371545",
"0.63259935",
"0.63251716",
"0.63247234",
"0.6298824",
"0.6277297",
"0.6275943",
"0.62737554",
"0.62539... | 0.63283354 | 13 |
Implment the str() method to print out x/y components and wavelength. | def zAg0(YKHO):
return '({0:s} , {1:s} , {2:7.5f} )'.format(str(YKHO.x), str(YKHO.y), YKHO.wavelength) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return '%10s : (%8.2f,%8.2f) | %12.2f | %5.2f %5.2f' % (YKHO.name, YKHO.x, YKHO.y, YKHO.flux, YKHO.fwhm, YKHO.elon)",
"def zAg0(YKHO):\n return '({0}, {1}, {2}, {3})'.format(YKHO.x(), YKHO.y(), YKHO.z(), YKHO.w())",
"def zAg0(YKHO):\n return 'x = ' + str(YKHO._x) + ', y = ' + str(YKH... | [
"0.73066723",
"0.72869116",
"0.6927915",
"0.6917982",
"0.6841016",
"0.6809108",
"0.68065065",
"0.67998385",
"0.678703",
"0.6785087",
"0.677636",
"0.6732738",
"0.672539",
"0.6723375",
"0.66944826",
"0.6677011",
"0.6672472",
"0.6658003",
"0.66487485",
"0.6645347",
"0.6645241",
... | 0.7624575 | 0 |
implment self += b, if b is JonesVector then the components add, otherwise b is assumed constant and complex(b) is added to each component. | def CaoY(YKHO, Fg_i):
if isinstance(Fg_i, tHCk):
YKHO.x += Fg_i.x
YKHO.y += Fg_i.y
else:
YKHO.x += complex(Fg_i)
YKHO.y += complex(Fg_i)
return YKHO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FOdN(YKHO, Fg_i):\n Z9rn = YKHO.copy()\n Z9rn += Fg_i\n return Z9rn",
"def H2v5(YKHO, Fg_i):\n return YKHO + Fg_i",
"def K7GD(YKHO, Fg_i):\n Z9rn = YKHO.copy()\n Z9rn += Fg_i\n return Z9rn",
"def FOdN(YKHO, *qIxc):\n return gQS9.complex___add__(YKHO, *qIxc)",
"def FOdN(YKHO, Eli... | [
"0.71340275",
"0.70534956",
"0.69593704",
"0.67121565",
"0.6667597",
"0.6604411",
"0.65909237",
"0.65613884",
"0.65125245",
"0.649316",
"0.6422659",
"0.64097303",
"0.63978434",
"0.6375115",
"0.6372091",
"0.63542974",
"0.63446844",
"0.63292795",
"0.6303851",
"0.6303236",
"0.63... | 0.8474064 | 0 |
Implement the c = self + b where b is JonesVector then componenst add, else complex(b) added to both componnets | def FOdN(YKHO, Fg_i):
Z9rn = YKHO.copy()
Z9rn += Fg_i
return Z9rn | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CaoY(YKHO, Fg_i):\n if isinstance(Fg_i, tHCk):\n YKHO.x += Fg_i.x\n YKHO.y += Fg_i.y\n else:\n YKHO.x += complex(Fg_i)\n YKHO.y += complex(Fg_i)\n return YKHO",
"def FOdN(YKHO, Elif):\n return mHH_(YKHO.r + Elif.r, YKHO.i + Elif.i)",
"def FOdN(YKHO, Elif):\n try:\... | [
"0.8353089",
"0.73646843",
"0.73570216",
"0.7222827",
"0.7018545",
"0.6967958",
"0.68724203",
"0.679219",
"0.6713442",
"0.66423225",
"0.6640936",
"0.6581481",
"0.6572909",
"0.65564954",
"0.65546006",
"0.65104693",
"0.64982915",
"0.64853317",
"0.6479993",
"0.6468673",
"0.64684... | 0.66565025 | 9 |
Implement the c = b + self where b is JonesVector then componnets add, else complex(b) is added to both components. | def K7GD(YKHO, Fg_i):
Z9rn = YKHO.copy()
Z9rn += Fg_i
return Z9rn | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CaoY(YKHO, Fg_i):\n if isinstance(Fg_i, tHCk):\n YKHO.x += Fg_i.x\n YKHO.y += Fg_i.y\n else:\n YKHO.x += complex(Fg_i)\n YKHO.y += complex(Fg_i)\n return YKHO",
"def FOdN(YKHO, Elif):\n return mHH_(YKHO.r + Elif.r, YKHO.i + Elif.i)",
"def FOdN(YKHO, Elif):\n try:\... | [
"0.8487883",
"0.74975824",
"0.740769",
"0.72713244",
"0.71144176",
"0.7106034",
"0.7083893",
"0.70152545",
"0.69381",
"0.67682457",
"0.67330027",
"0.67201436",
"0.6714825",
"0.6711091",
"0.67000145",
"0.66960776",
"0.6693786",
"0.66866213",
"0.6683862",
"0.66768754",
"0.66670... | 0.66671866 | 20 |
Implment a = m to premultiply JonesSystemMatrix a single JoneMatrix, othwise each component multiplied by complex(m) | def aksi(YKHO, r8hN):
if isinstance(r8hN, R1tQ):
r8hN = r8hN.getMatrix()
if isinstance(r8hN, pfhk):
XP5J = YKHO.x * r8hN.A + YKHO.y * r8hN.B
vexM = YKHO.x * r8hN.C + YKHO.y * r8hN.D
YKHO.x = XP5J
YKHO.y = vexM
else:
Z9rn = complex(r8hN)
YKHO.x *= Z9rn
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aksi(YKHO, r8hN):\n if isinstance(r8hN, pfhk):\n jzdc = r8hN.A * YKHO.A + r8hN.B * YKHO.C\n Fg_i = r8hN.A * YKHO.B + r8hN.B * YKHO.D\n Z9rn = r8hN.C * YKHO.A + r8hN.D * YKHO.C\n Csk6 = r8hN.C * YKHO.B + r8hN.D * YKHO.D\n YKHO.set(jzdc, Fg_i, Z9rn, Csk6)\n else:\n ... | [
"0.7248257",
"0.6561875",
"0.63720256",
"0.62986356",
"0.62717044",
"0.62462854",
"0.6242221",
"0.6236737",
"0.62286913",
"0.62191224",
"0.61996156",
"0.6196199",
"0.61885136",
"0.61801195",
"0.6174664",
"0.61693686",
"0.6142973",
"0.6122431",
"0.6116327",
"0.6114624",
"0.610... | 0.7112402 | 1 |
Implment the c = self m tio premultiply by a single JoneMatrix, or complex(m) | def E_tF(YKHO, r8hN):
Z9rn = YKHO.copy()
Z9rn *= r8hN
return Z9rn | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aksi(YKHO, r8hN):\n if isinstance(r8hN, pfhk):\n jzdc = r8hN.A * YKHO.A + r8hN.B * YKHO.C\n Fg_i = r8hN.A * YKHO.B + r8hN.B * YKHO.D\n Z9rn = r8hN.C * YKHO.A + r8hN.D * YKHO.C\n Csk6 = r8hN.C * YKHO.B + r8hN.D * YKHO.D\n YKHO.set(jzdc, Fg_i, Z9rn, Csk6)\n else:\n ... | [
"0.74963665",
"0.71642303",
"0.7076472",
"0.69444853",
"0.6822377",
"0.68191034",
"0.6687915",
"0.66666293",
"0.6638261",
"0.66381776",
"0.6628609",
"0.6609915",
"0.6594004",
"0.65734965",
"0.6527541",
"0.6527541",
"0.6522331",
"0.6493067",
"0.64844686",
"0.6481307",
"0.64719... | 0.67493415 | 6 |
Return the value represented by this constant. | def WOxh(YKHO, QpfX):
return YKHO.constant_value | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def si3H(YKHO):\n return YKHO._constant",
"def BWXx(YKHO):\n if YKHO.constant:\n return YKHO._value\n else:\n return YKHO.layer_state.slot.value()",
"def wHJl(YKHO):\n return 'Constant({0})'.format(YKHO._value)",
"def BWXx(YKHO):\n return YKHO.__value",
"def BWXx(YKHO):\n re... | [
"0.78476715",
"0.77672285",
"0.7739072",
"0.77155286",
"0.77155286",
"0.7694687",
"0.76446205",
"0.76446205",
"0.7631784",
"0.7599519",
"0.75805783",
"0.75805783",
"0.75805783",
"0.75644016",
"0.75644016",
"0.75644016",
"0.75644016",
"0.75644016",
"0.7560782",
"0.75599325",
"... | 0.7553871 | 25 |
Make sure constant ``node`` and this constant are equivalent. | def Yr93(YKHO, Q6kx):
super(RIrr, YKHO).check_equivalence(Q6kx)
assert Q6kx.constant_value == YKHO.constant_value, u'Constants %s and %s represent different values' % (YKHO, Q6kx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fu6b(YKHO):\n MxXY = o7DN(oyIN.random.randn(10, 10))\n cWFu = MxXY.copy()\n YKHO.assertTrue(MxXY != cWFu)\n YKHO.assertTrue(oyIN.linalg.norm((MxXY - cWFu).node_attr_tensor) == 0.0)",
"def jCKE(YKHO):\n\n class MyNode(o7DN):\n pass\n\n class S2(o7DN):\n pass\n uTwm.s = yvp2\... | [
"0.66444683",
"0.65744185",
"0.6470502",
"0.6361401",
"0.63469785",
"0.628108",
"0.62267315",
"0.62023306",
"0.6110647",
"0.60698825",
"0.6053045",
"0.6040204",
"0.60257334",
"0.59763676",
"0.59572023",
"0.59333247",
"0.5909172",
"0.5886908",
"0.58771753",
"0.5861894",
"0.585... | 0.73477274 | 0 |
Turn ``value`` into a string if it isn't a string yet | def aPi6(YKHO, BWXx, QpfX):
BWXx = QMSQ(BWXx)
return super(FgBH, YKHO).equals(BWXx, QpfX) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Nc2D(BWXx):\n YKHO.verbose('trying to convert value to string : %s', BWXx)\n return str(BWXx)",
"def whrw(BWXx) -> str:\n return str(BWXx) if BWXx else str()",
"def mWgz(YKHO, BWXx):\n return \"'{}'\".format(BWXx) if isinstance(BWXx, str) else str(BWXx)",
"def WOxh(YKHO, BWXx: str) -> h8nf[st... | [
"0.82573",
"0.81947875",
"0.8109052",
"0.7871279",
"0.7765057",
"0.76773566",
"0.76052517",
"0.7540698",
"0.75182784",
"0.74789596",
"0.74558353",
"0.7449796",
"0.7449564",
"0.7430158",
"0.74044365",
"0.7384829",
"0.73800427",
"0.7366338",
"0.7341878",
"0.7296129",
"0.7287285... | 0.0 | -1 |
Convert ``value`` to a Python float and return the new value. | def HTxh(YKHO, BWXx):
try:
return float(BWXx)
except ValueError:
raise DDUq('"%s" is not a number' % BWXx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RCGI(BWXx):\n U5bT = float(BWXx)\n return U5bT",
"def H5O6(BWXx):\n YKHO.verbose('trying to convert value to float : %s', BWXx)\n return float(str(BWXx))",
"def QTwm(YKHO, BWXx):\n if BWXx is None:\n return BWXx\n else:\n return float(BWXx)",
"def gBe3(BWXx):\n if BWXx ... | [
"0.8628591",
"0.8140015",
"0.8025416",
"0.79734814",
"0.7672106",
"0.7530535",
"0.7440842",
"0.74190176",
"0.73045135",
"0.72693485",
"0.7265032",
"0.72505045",
"0.713205",
"0.71294093",
"0.71255064",
"0.7054365",
"0.70470244",
"0.6975855",
"0.6960737",
"0.6927022",
"0.692152... | 0.68409127 | 23 |
Return the Unicode representation of this constant number. | def Ku9n(YKHO):
return QMSQ(YKHO.constant_value) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ku9n(YKHO):\n return u'\"%s\"' % YKHO.constant_value",
"def wHJl(YKHO):\n return '<String \"%s\">' % YKHO.constant_value.encode('utf-8')",
"def uZ7Y(YKHO):\n return QMSQ(YKHO.get_utf8(), 'utf8')",
"def mWFP(YKHO) -> kvN6:\n return YKHO._cf.constants[YKHO._name_index]",
"def _MNB(YKHO):\n ... | [
"0.70056576",
"0.6867744",
"0.67995274",
"0.6717716",
"0.668299",
"0.66725683",
"0.6661396",
"0.6653437",
"0.6604766",
"0.6569088",
"0.6566743",
"0.6552929",
"0.6538485",
"0.6526117",
"0.6448924",
"0.6417248",
"0.6360832",
"0.63143003",
"0.63143003",
"0.62960196",
"0.6288088"... | 0.7471977 | 0 |
Return the representation for this constant number. | def wHJl(YKHO):
return '<Number %s>' % YKHO.constant_value | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHJl(YKHO):\n return 'Constant({0})'.format(YKHO._value)",
"def wHJl(YKHO):\n return '<String \"%s\">' % YKHO.constant_value.encode('utf-8')",
"def zAg0(YKHO) -> str:\n vIwR = str(YKHO.const)\n ja3b = YKHO.var_names\n if not YKHO.is_trivial():\n for w520, XhXT in YKHO.get_mapping_mono... | [
"0.7860852",
"0.739367",
"0.7135912",
"0.7107177",
"0.70701456",
"0.7050019",
"0.7050019",
"0.7047059",
"0.7047059",
"0.7047059",
"0.7047059",
"0.7047059",
"0.7047059",
"0.7047059",
"0.7047059",
"0.70466197",
"0.70466197",
"0.7002058",
"0.6955638",
"0.6954571",
"0.69494504",
... | 0.8267384 | 0 |
Check if all the items in ``value`` are the same of this set. | def aPi6(YKHO, BWXx, QpfX):
BWXx = set(BWXx)
return BWXx == YKHO.to_python(QpfX) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M0dZ(hkxX: Iterator[Any]) -> bool:\n C4gk = wk71(hkxX)\n return bool(next(C4gk, True) and (not next(C4gk, False)))",
"def GMDX(cyvW, BWXx):\n return len(cyvW) == 1 and cyvW[0] == BWXx",
"def qqkn(zGKt):\n return len(set(zGKt)) <= 1",
"def qqkn(DumB):\n return all((WKvO == DumB[0] for WKvO ... | [
"0.73112756",
"0.6806004",
"0.6767211",
"0.67588824",
"0.6723367",
"0.6702722",
"0.66389406",
"0.66361535",
"0.6609189",
"0.65929407",
"0.65927017",
"0.65927017",
"0.6592486",
"0.65585595",
"0.65538675",
"0.65460795",
"0.6505032",
"0.65015405",
"0.6498731",
"0.64889836",
"0.6... | 0.7004705 | 1 |
Check that the ``value`` set is a subset of this constant set. | def sASB(YKHO, BWXx, QpfX):
for ZfUD in BWXx:
if not YKHO.belongs_to(ZfUD, QpfX):
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nlAg(YKHO):\n j93S = fHNa(['I', 'V', 'A'], 20)\n assert j93S.max_size == 20\n Nqp_ = fHNa([])\n assert Nqp_.max_size == 10\n Nqp_.add('I')\n Nqp_.add('V')\n assert j93S.is_subset(Nqp_) == True\n Nqp_.add('B')\n assert j93S.is_subset(Nqp_) == False",
"def NXBu(YKHO, *FtYM):\n if ... | [
"0.7132833",
"0.65957487",
"0.6541384",
"0.6520435",
"0.6282573",
"0.62639874",
"0.62279963",
"0.62065035",
"0.6145879",
"0.61366844",
"0.61293995",
"0.6116707",
"0.6093497",
"0.6089405",
"0.60760325",
"0.6060695",
"0.6050117",
"0.6050117",
"0.6043447",
"0.60345536",
"0.60300... | 0.73839885 | 0 |
Return the representation for this constant set. | def wHJl(YKHO):
UqER = [repr(U6D_) for U6D_ in YKHO.constant_value]
UqER = ', '.join(UqER)
if UqER:
UqER = ' ' + UqER
return '<Set%s>' % UqER | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHJl(YKHO) -> str:\n hkxX = str(set(YKHO)) if YKHO else ''\n return f'{YKHO.__class__.__name__}({hkxX})'",
"def wHJl(YKHO) -> str:\n lNWu = {H5ew: wEf2 for H5ew, wEf2 in YKHO}\n return f'{YKHO.__class__.__name__}({lNWu})'",
"def wHJl(YKHO):\n return 'Constant({0})'.format(YKHO._value)",
"d... | [
"0.72720575",
"0.7209529",
"0.71262175",
"0.7069005",
"0.7058459",
"0.70468354",
"0.7023513",
"0.70005864",
"0.69691133",
"0.69630927",
"0.6936008",
"0.6936008",
"0.6906104",
"0.69052327",
"0.687593",
"0.687593",
"0.6875361",
"0.6871085",
"0.6829536",
"0.6829536",
"0.68218476... | 0.81615585 | 0 |
Test for whether user becomes owner of their created channel. | def enlW(sLQ1, QceP):
PgWd = YwkQ.channel_details(sLQ1['token'], QceP['channel_id'])
Pcn2 = False
for mS46 in PgWd['owner_members']:
if mS46['u_id'] == sLQ1['u_id']:
Pcn2 = True
assert Pcn2
Y7Bk() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def enlW(FpnT):\n Elif.clear()\n sLQ1 = FpnT[0]\n q8Zk = FpnT[1]\n assert sLQ1['u_id'] in [mAB6['u_id'] for mAB6 in q8Zk['owner_members']]",
"def I6_b(YKHO, CBIr):\n return YKHO.user == CBIr",
"def _BPJ():\n\n async def predicate(OaeV):\n if type(OaeV.channel) is ZOrr.DMChannel:\n ... | [
"0.7137855",
"0.71172637",
"0.71091753",
"0.70104843",
"0.70068896",
"0.6944143",
"0.6936448",
"0.6935965",
"0.693093",
"0.6927714",
"0.69001466",
"0.69001466",
"0.68899214",
"0.6858006",
"0.68546975",
"0.6847891",
"0.6810491",
"0.6806933",
"0.67733866",
"0.67215204",
"0.6660... | 0.75564384 | 0 |
Test for empty channels. | def ti_x(sLQ1):
TWVF = xMux.channels_list(sLQ1['token'])
assert len(TWVF['channels']) == 0
Y7Bk() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a8UN(YKHO, xMux):\n if len(xMux) == 0:\n raise ValueError('Your list of channels is empty')\n else:\n return xMux",
"def U_zo(sLQ1):\n TWVF = xMux.channels_listall(sLQ1['token'])\n assert len(TWVF['channels']) == 0\n Y7Bk()",
"def P1Kd(YKHO):\n return all((hlel.channel_exist... | [
"0.77717566",
"0.75104165",
"0.6577239",
"0.6436552",
"0.6405357",
"0.63576424",
"0.6336874",
"0.63241214",
"0.6322987",
"0.63210046",
"0.6316703",
"0.63046235",
"0.6285826",
"0.62714976",
"0.6265802",
"0.6265802",
"0.6263264",
"0.6263264",
"0.6263264",
"0.62631834",
"0.62595... | 0.7560577 | 1 |
Test for empty channels. | def U_zo(sLQ1):
TWVF = xMux.channels_listall(sLQ1['token'])
assert len(TWVF['channels']) == 0
Y7Bk() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a8UN(YKHO, xMux):\n if len(xMux) == 0:\n raise ValueError('Your list of channels is empty')\n else:\n return xMux",
"def ti_x(sLQ1):\n TWVF = xMux.channels_list(sLQ1['token'])\n assert len(TWVF['channels']) == 0\n Y7Bk()",
"def P1Kd(YKHO):\n return all((hlel.channel_exists()... | [
"0.77717566",
"0.7560577",
"0.6577239",
"0.6436552",
"0.6405357",
"0.63576424",
"0.6336874",
"0.63241214",
"0.6322987",
"0.63210046",
"0.6316703",
"0.63046235",
"0.6285826",
"0.62714976",
"0.6265802",
"0.6265802",
"0.6263264",
"0.6263264",
"0.6263264",
"0.62631834",
"0.625953... | 0.75104165 | 2 |
Set a dimension's information to None | def I6fp(YKHO, tpio):
if tpio in (0, 1, 2):
pass
elif tpio in ('5th', '6th', '7th'):
if tpio == '5th':
tpio = 0
elif tpio == '6th':
tpio = 1
elif tpio == '7th':
tpio = 2
else:
raise ValueError('dim must be 0,1,2 or "5th","6th","7th"... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SWRx(YKHO):\n if YKHO.indmag is not None:\n YKHO.indmag._set_None()\n if YKHO.fluxlink is not None:\n YKHO.fluxlink._set_None()\n YKHO.parameters = None\n YKHO.freq0 = None\n if YKHO.drive is not None:\n YKHO.drive._set_None()\n super(fGaM, YKHO)._set_None()",
"def _B6V... | [
"0.68287927",
"0.66463834",
"0.6617113",
"0.65076345",
"0.6377087",
"0.6373983",
"0.6370676",
"0.63461643",
"0.6317213",
"0.6296313",
"0.6205114",
"0.61093056",
"0.60803485",
"0.6042265",
"0.60143846",
"0.6012839",
"0.5975898",
"0.59417856",
"0.5935779",
"0.59348494",
"0.5931... | 0.642142 | 4 |
Video streaming home page. | def wOb_():
ANoW = {'image': 'gaye.jpg'}
return TvZl('stream.html', contexte=ANoW) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ecsS():\n return TvZl('/video-page.html')",
"def wOb_():\n return TvZl('video-feed.html')",
"def hkZA():\n return TvZl('video-page.html', title='video page', year=qcWV.now().year)",
"def kZiy(geh0):\n SFIC = YM9Z.objects.all()\n QpfX = {'videos': SFIC}\n return _1tc(geh0, 'InktoberSite/... | [
"0.76268315",
"0.76119703",
"0.7530637",
"0.73411614",
"0.7005877",
"0.66250384",
"0.6583905",
"0.6468895",
"0.6439333",
"0.64381635",
"0.6421515",
"0.6415742",
"0.6393503",
"0.6384064",
"0.637601",
"0.63417023",
"0.6321272",
"0.6291959",
"0.62908256",
"0.62908256",
"0.629082... | 0.0 | -1 |
Check to see if all elements in a list are the same | def qqkn(vC9B: list) -> bool:
if len(vC9B) > 1:
for YRbF in vC9B:
if YRbF == vC9B[0]:
pass
else:
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ac8g(yv6U):\n return len(set(yv6U)) == 1",
"def ac8g(yv6U):\n return len(set(yv6U)) == 1",
"def YzKd(tJQ4):\n return len(set(tJQ4)) == 1",
"def NOdi(list):\n return not list or list == [list[0]] * len(list)",
"def qqkn(DumB):\n return all((WKvO == DumB[0] for WKvO in DumB))",
"def W5zf... | [
"0.8713248",
"0.86343044",
"0.85532206",
"0.8418867",
"0.8216047",
"0.79665846",
"0.79231954",
"0.7882295",
"0.76605254",
"0.765883",
"0.76373154",
"0.7633068",
"0.76328284",
"0.76299775",
"0.7606053",
"0.7526185",
"0.751581",
"0.74850875",
"0.74741673",
"0.74473876",
"0.7426... | 0.8340805 | 4 |
Calculate for a given radius the circumference of a circle | def ckGw(r1VO: float):
if r1VO < 0.0:
raise ValueError('The radius must be >=0')
GiOJ = 2 * oyIN.pi * r1VO
print('the circumference is C = %fcm' % GiOJ)
return GiOJ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Stx3(r1VO):\n return 2 * XTiz.pi * r1VO",
"def Stx3(Mkmy):\n return 2 * mM0K * Mkmy",
"def ZALC(YKHO, r1VO):\n return 2 * epAf.pi * r1VO",
"def GiOJ(YKHO):\n return 2.0 * epAf.pi * YKHO.__radius",
"def GiOJ(YKHO):\n YKHO.circumference = 2 * YKHO.radius * mM0K",
"def IjaT(r1VO):\n re... | [
"0.89599067",
"0.8709631",
"0.8708664",
"0.8108037",
"0.80456513",
"0.791091",
"0.78471047",
"0.7816484",
"0.78038174",
"0.7800933",
"0.7785997",
"0.77676976",
"0.77530944",
"0.77420837",
"0.7675526",
"0.76661915",
"0.7638923",
"0.7592417",
"0.75526845",
"0.75121844",
"0.7502... | 0.8820364 | 1 |
Determine whether the offset ranges of a protein in a genome span the end of the genome (indicating that the genome may be circular). | def ggXm(YKHO, lXK0):
if YKHO._nRanges == 1:
return False
for d6pt, (yKcO, JCyR, bGrB) in enumerate(YKHO.ranges):
if JCyR == lXK0:
return YKHO.ranges[(d6pt + 1) % YKHO._nRanges][0] == 0
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _ylc(JvFM, Sgmo, y5BA, wq3o):\n return JvFM - y5BA <= wq3o and JvFM >= Sgmo - wq3o",
"def _ylc(JvFM, Sgmo, y5BA, wq3o):\n return JvFM - y5BA <= wq3o and JvFM >= Sgmo - wq3o",
"def EVUe(TPao, fVVZ):\n return TPao.reference_name == fVVZ.reference_name and TPao.end > fVVZ.start and (TPao.start < fVVZ... | [
"0.65262175",
"0.65262175",
"0.637907",
"0.63510513",
"0.6329271",
"0.62965345",
"0.6261007",
"0.62396526",
"0.6209586",
"0.6203142",
"0.6203142",
"0.62001246",
"0.62001246",
"0.61544096",
"0.6128577",
"0.61172605",
"0.6113095",
"0.6108361",
"0.60898596",
"0.60746515",
"0.607... | 0.6501812 | 2 |
Reply to the sender with help commands | def dD0h(Ol8d):
EKu7 = 'Thank you for using the Banano Tip Bot! Below is a list of commands, and a description of what they do:\n\n' + lkvc + ' !help: The tip bot will respond to your DM with a list of commands and their functions. If you forget something, use this to get a hint of how to do it!\n\n' + lkvc + ' !r... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def h7na(YKHO, vC92: CommandSender):\n pass",
"def foDF():\n BFGp(hqD_.message.user.user_id, \"🔹 Bot's help.\\n\\n/start - Print welcome message.\\n/help - Show this message.\\n\\n/keyboard - Shows keyboard.\\n/keyboard_location - Shows keyboard with location button.\\n/keyboard_contact - Shows keyboard w... | [
"0.8405012",
"0.82032496",
"0.79908305",
"0.79908305",
"0.7979684",
"0.79684997",
"0.79684997",
"0.79225034",
"0.79225034",
"0.79225034",
"0.79225034",
"0.79225034",
"0.79225034",
"0.79225034",
"0.79225034",
"0.7907856",
"0.79074454",
"0.78511506",
"0.78376335",
"0.7819357",
... | 0.0 | -1 |
Validate the tweet includes an amount to tip, and if that tip amount is greater than the minimum tip amount. | def bVPS(Ol8d):
G9jH.info('{}: in validateTipAmount'.format(qcWV.now()))
try:
Ol8d['tip_amount'] = ZjSO(Ol8d['text'][Ol8d['starting_point']])
except Exception:
G9jH.info('{}: Tip amount was not a number: {}'.format(qcWV.now(), Ol8d['text'][Ol8d['starting_point']]))
Le_l = 'Looks like... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f6_h(Ol8d):\n G9jH.info('{}: validating total tip amount'.format(qcWV.now()))\n if Ol8d['sender_balance_raw']['balance'] < Ol8d['total_tip_amount'] * 1000000000000000000000000000000:\n zIOJ = 'You do not have enough NANO to cover this {} NANO tip. Please check your balance by sending a DM to me w... | [
"0.7459169",
"0.7335422",
"0.725663",
"0.6052375",
"0.60056454",
"0.5888629",
"0.5863695",
"0.5669021",
"0.5625203",
"0.54814875",
"0.5469151",
"0.5448484",
"0.5444782",
"0.5444377",
"0.5431672",
"0.5381139",
"0.5366859",
"0.5361761",
"0.5358519",
"0.53568673",
"0.53523934",
... | 0.6950841 | 3 |
Returns `model_fn` closure for TPUEstimator. | def VPYM(AgTV, svPB, phrK, b0Ix, H0j9, USzt, ND3i, as3x, W0Tg):
def JnVv(bySB, Crrw, Tuqy, NArs):
"""The `model_fn` for TPUEstimator."""
ZylS.logging.info('*** Features ***')
for mWFP in sorted(bySB.keys()):
ZylS.logging.info(' name = %s, shape = %s' % (mWFP, bySB[mWFP].shape))... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rNzv(QjBU):\n\n def Csmj(bySB, Crrw, Tuqy, NArs):\n \"\"\"Model function.\"\"\"\n del Crrw, NArs\n qqWV = C3ST.BaseModel(QjBU, mode=Tuqy, features=bySB)\n if Tuqy == QUnY.ModeKeys.INFER:\n xnXT = qqWV.predicted_ids\n xnXT = ZylS.transpose(xnXT, [2, 1, 0])\n ... | [
"0.678448",
"0.6721075",
"0.6705737",
"0.6705737",
"0.670195",
"0.66422534",
"0.66160125",
"0.66039884",
"0.6495884",
"0.6483516",
"0.64821845",
"0.64639515",
"0.64467806",
"0.6384253",
"0.6344066",
"0.63391644",
"0.63211507",
"0.6285674",
"0.6256976",
"0.6227414",
"0.6221187... | 0.0 | -1 |
The `model_fn` for TPUEstimator. | def JnVv(bySB, Crrw, Tuqy, NArs):
ZylS.logging.info('*** Features ***')
for mWFP in sorted(bySB.keys()):
ZylS.logging.info(' name = %s, shape = %s' % (mWFP, bySB[mWFP].shape))
Pha6 = bySB['input_ids']
qV0r = bySB['input_mask']
Uszf = bySB['segment_ids']
VNiV = bySB['label_ids']
Jl48... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZPn8(YKHO, bySB, Crrw, ND3i):\n oYbx = gnPz.fn_args(YKHO._model_fn)\n B2fa = {}\n GPtr = jth9.deepcopy(YKHO._config)\n NArs = jth9.deepcopy(YKHO._params)\n if 'labels' in oYbx:\n B2fa['labels'] = Crrw\n elif Crrw is not None:\n raise ValueError('model_fn does not take labels, bu... | [
"0.72362834",
"0.7198053",
"0.71058893",
"0.70971304",
"0.7038464",
"0.7038464",
"0.697475",
"0.69312525",
"0.6887504",
"0.67796916",
"0.66569746",
"0.6626366",
"0.66256857",
"0.6591902",
"0.65852433",
"0.65476555",
"0.6534668",
"0.6486356",
"0.6484161",
"0.64805233",
"0.6425... | 0.0 | -1 |
Return device specific attributes. | def TzCU(YKHO):
return YKHO._account.gps_attrs(YKHO._device) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UC7j(YKHO, **B2fa):\n wN9s = B2fa.get('device', None)\n laNn = './/device[@name=' + wN9s + ']'\n oaD6 = lAws.XmlGetElementsByTag(YKHO.LOGICAL_TOPOLOGY, laNn, allElements=True)\n Scip = oaD6.findall('attribute')\n ssxV = dict()\n for i_OE in Scip:\n EOK0 = i_OE.get('name')\n iZom... | [
"0.74106926",
"0.7394256",
"0.7343818",
"0.7298191",
"0.7252295",
"0.7238756",
"0.71793777",
"0.7172032",
"0.7164443",
"0.7148823",
"0.7148713",
"0.714538",
"0.7129106",
"0.709534",
"0.70936406",
"0.7073589",
"0.70714945",
"0.7055427",
"0.7055313",
"0.70371765",
"0.70325017",... | 0.0 | -1 |
Return latitude value of the device. | def _UuI(YKHO):
return YKHO._device.position['x'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _UuI(YKHO) -> float:\n return float(YKHO._mp_dict['lat'])",
"def _UuI(YKHO):\n return YKHO._gps.latitude",
"def _UuI(YKHO):\n return YKHO._vehicle.location.get('latitude')",
"def _UuI(YKHO):\n QnmL = YKHO._lat_lon[0]\n return QnmL",
"def TujQ(YKHO):\n return YKHO.latitude",
"def sV1... | [
"0.8280237",
"0.8276124",
"0.82405204",
"0.82343274",
"0.8184037",
"0.8183589",
"0.8171833",
"0.8096438",
"0.8073491",
"0.80702454",
"0.80673325",
"0.8048899",
"0.8045055",
"0.8042021",
"0.8042021",
"0.8042021",
"0.8042021",
"0.80388033",
"0.80256957",
"0.80256957",
"0.802453... | 0.84948385 | 0 |
Return longitude value of the device. | def fopC(YKHO):
return YKHO._device.position['y'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fopC(YKHO):\n return YKHO._gps.longitude",
"def fopC(YKHO):\n return YKHO['lon']",
"def fopC(YKHO):\n return YKHO._vehicle.location.get('longitude')",
"def fopC(YKHO) -> float:\n return float(YKHO._mp_dict['lon'])",
"def fopC(YKHO):\n return YKHO._location[1]",
"def fopC(YKHO) -> str:\... | [
"0.86225194",
"0.85961634",
"0.8595835",
"0.8593382",
"0.8564958",
"0.8549394",
"0.8498284",
"0.84899974",
"0.8462357",
"0.8425351",
"0.8421351",
"0.8421351",
"0.8421351",
"0.8421351",
"0.8421351",
"0.84195507",
"0.8419155",
"0.8419155",
"0.8419155",
"0.8416904",
"0.8382951",... | 0.8808105 | 0 |
Return the source type, eg gps or router, of the device. | def zEt5(YKHO) -> n_JI:
return n_JI.GPS | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zEt5(YKHO):\n return YKHO._data.get('source_type', MqPP)",
"def zEt5(YKHO):\n return YKHO.entity.attributes.get(i6p8, Z4Pi)",
"def zEt5(YKHO):\n return MqPP",
"def zEt5(YKHO):\n return MqPP",
"def zEt5(YKHO):\n return MqPP",
"def zEt5(YKHO) -> str:\n return Z4Pi",
"def zEt5(YKHO) ... | [
"0.84455025",
"0.82527125",
"0.79860157",
"0.79860157",
"0.79860157",
"0.79516566",
"0.79516566",
"0.7566773",
"0.7566773",
"0.7566773",
"0.7349769",
"0.7278647",
"0.7264269",
"0.72256124",
"0.72256124",
"0.72256124",
"0.7214051",
"0.7214051",
"0.7214051",
"0.7214051",
"0.721... | 0.8094676 | 3 |
Determines which line the character byte bytes from the start of the file occurs on using a binary search. | def vCr3(YB8B, rcYn):
return NCdT(YB8B, rcYn, 0, len(rcYn)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZZN1(IznC, ZOfo):\n assert ZOfo > 0, 'Error: Invalid line number!'\n hOYR = open(IznC, 'r', errors='replace')\n LFlW = 0\n _tIi = Hy7s.path.getsize(IznC)\n x1fj = 0\n rlnY = None\n while LFlW <= _tIi:\n x1fj = LFlW + (_tIi - LFlW) // 2\n hOYR.seek(x1fj)\n hOYR.readline... | [
"0.7498512",
"0.7013038",
"0.7006665",
"0.6809345",
"0.66934955",
"0.6665554",
"0.66251075",
"0.6550247",
"0.652974",
"0.6496342",
"0.64579594",
"0.639418",
"0.63814116",
"0.63741446",
"0.6365517",
"0.6338917",
"0.63362604",
"0.6326188",
"0.62947726",
"0.62751096",
"0.6219867... | 0.61666787 | 24 |
Get the soundex code for the string | def IN54(eOtH):
eOtH = eOtH.upper()
P7Yw = ''
P7Yw += eOtH[0]
cmPJ = {'BFPV': '1', 'CGJKQSXZ': '2', 'DT': '3', 'L': '4', 'MN': '5', 'R': '6', 'AEIOUHWY': '.'}
for hcXw in eOtH[1:]:
for H5ew in cmPJ.keys():
if hcXw in H5ew:
Wxnj = cmPJ[H5ew]
if Wxnj... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P7Yw(KCHu):\n fgGo = ''\n MgaV = {'A': '1', 'E': '2', 'H': '3', 'I': '4', 'O': '5', 'U': '6', 'W': '7', 'Y': '8'}\n if len(KCHu) == 2:\n if KCHu[0] == KCHu[1]:\n for n4sh in MgaV:\n if n4sh == str(KCHu[1].upper()):\n fgGo = MgaV[n4sh]\n ... | [
"0.7671787",
"0.76272583",
"0.7451464",
"0.72748977",
"0.71535945",
"0.69003326",
"0.6708946",
"0.66626513",
"0.6526611",
"0.62983614",
"0.6287856",
"0.62685144",
"0.61291844",
"0.6091911",
"0.5909206",
"0.5904101",
"0.57924443",
"0.5775424",
"0.56912446",
"0.5673299",
"0.564... | 0.7770923 | 0 |
Builds a dense block using Keras | def ggRs(EcVT, pt4o, bV3u, fhcK):
DbxN = nMvt.initializers.he_normal()
YDYE = nMvt.activations.relu
for gEmA in range(fhcK):
pfOl = nMvt.layers.BatchNormalization(axis=3)(EcVT)
tA7D = nMvt.layers.Activation(YDYE)(pfOl)
lz9e = nMvt.layers.Conv2D(filters=4 * bV3u, kernel_size=(1, 1), p... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ggRs(input, fhcK=5, G1Hx=4, KnxT=(3, 3), YDYE='relu'):\n XkN1 = input\n for gEmA in range(fhcK):\n VZhH = yHwh(G1Hx, KnxT, padding='same', activation='relu')(XkN1)\n XkN1 = MPiJ([XkN1, VZhH], axis=-1)\n return XkN1",
"def sFmO(YKHO, CLda, wjbX, a6Jb, Gzv5):\n assert CLda >= 2\n g... | [
"0.7402853",
"0.6938015",
"0.68478787",
"0.68173534",
"0.67751217",
"0.673364",
"0.66852236",
"0.66653883",
"0.6662458",
"0.6655604",
"0.6606803",
"0.65831554",
"0.65632975",
"0.65176046",
"0.6511722",
"0.6507616",
"0.6505585",
"0.6502509",
"0.64816785",
"0.6460303",
"0.64599... | 0.64829814 | 18 |
Get list of sample labels. | def kvSj(YKHO):
assert YKHO.has_sample_names(), 'Error - sample names are not labels.'
if isinstance(YKHO.header['class names'], str):
YKHO.header['class names'] = YKHO.header['class names'].split(',')
return YKHO.header['class names'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kvSj(YKHO, A07C):\n pass",
"def Te1x(YKHO) -> list:\n return []",
"def Te1x(YKHO):\n return []",
"def Te1x(YKHO):\n return []",
"def Crrw():\n return list(uzmd)",
"def Te1x(YKHO):\n return YKHO.label_list",
"def Te1x(YKHO):\n Crrw = []\n for UXqs in YKHO.instance.labels:\n ... | [
"0.78623676",
"0.7841957",
"0.77687",
"0.77687",
"0.7742949",
"0.7727051",
"0.76932794",
"0.7671169",
"0.7612976",
"0.7586041",
"0.75368685",
"0.747359",
"0.7466244",
"0.7433009",
"0.7431796",
"0.73923075",
"0.73923075",
"0.73548913",
"0.7350999",
"0.73473114",
"0.73158574",
... | 0.77968955 | 2 |
Get the reflectance spectra of the specified sample. | def O1MB(YKHO, mvm2):
or8S = YKHO.get_sample_index(mvm2)
return YKHO.data[or8S, :] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CIPG(_nn5, kCXb=None):\n if kCXb is None:\n kCXb = gGw6('spectral_reflectivity_hh')\n dBKw = oyIN.ma.power(10.0, 0.1 * _nn5.fields[kCXb]['data'])\n YJRW = 10.0 * oyIN.ma.log10(oyIN.ma.sum(dBKw, axis=-1))\n bZcn = 'reflectivity'\n if 'vv' in kCXb:\n bZcn += '_vv'\n if 'unfiltered... | [
"0.57715154",
"0.57526016",
"0.5691693",
"0.56643915",
"0.5659828",
"0.56040514",
"0.53945917",
"0.5348266",
"0.5329537",
"0.5326483",
"0.53071064",
"0.5288468",
"0.52779925",
"0.5265981",
"0.52519524",
"0.524929",
"0.52429616",
"0.5221254",
"0.52119076",
"0.5210894",
"0.5210... | 0.7504549 | 0 |
Get the list of nodes. | def NMoC(YKHO, QePW):
DumB = Qje4.node_list(QePW)
return {'items': [YRbF.to_dict() for YRbF in DumB]} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ziit(YKHO) -> x1iM[str]:\n return YKHO.get_node_list()",
"def vTxU(YKHO):\n return YKHO.node_list",
"def aAQH(YKHO):\n return YKHO._list_request('nodes')",
"def Ziit(YKHO):\n return YKHO.nodes_list",
"def TDch(YKHO):\n return YKHO.nodes",
"def AyQV(YKHO):\n return YKHO.nodes",
"de... | [
"0.8816559",
"0.8704647",
"0.8604918",
"0.84517676",
"0.8372282",
"0.83682734",
"0.83682734",
"0.83682734",
"0.8368231",
"0.8307925",
"0.8261252",
"0.8237285",
"0.8230942",
"0.8230184",
"0.8230184",
"0.82268596",
"0.82006985",
"0.8199779",
"0.81603193",
"0.8128089",
"0.810838... | 0.0 | -1 |
Determines whether a number is even or odd | def EfG5(exwG):
return exwG % 2 == 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sTzf(kAne):\n return kAne % 2 == 0",
"def ubP8(FGW3):\n return FGW3 % 2 == 0",
"def ubP8(mLGw):\n return mLGw % 2 == 0",
"def ubP8(mLGw):\n return mLGw % 2 == 0",
"def ubP8(FGW3):\n return FGW3 % 2 == 0",
"def kYZq(FGW3):\n return FGW3 % 2 != 0",
"def ubP8(FGW3):\n return FGW3 ... | [
"0.8791714",
"0.87084687",
"0.86959356",
"0.86959356",
"0.86747164",
"0.8653546",
"0.8639201",
"0.8639201",
"0.8639201",
"0.8639201",
"0.858967",
"0.85353506",
"0.8502213",
"0.84870285",
"0.84654313",
"0.84604317",
"0.84432113",
"0.84330595",
"0.8428673",
"0.8428673",
"0.8428... | 0.0 | -1 |
Initializes the slope and yintercept of the regression line with either default values or the values that have been passed as arguments. | def FIMM(YKHO, r8hN=None, Fg_i=None):
YKHO.m = r8hN or tuKI.random()
YKHO.b = Fg_i or tuKI.random()
YKHO.history = [] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, VMex, BlB8):\n YKHO.slope = VMex\n YKHO.intercept = BlB8",
"def FIMM(YKHO, SLsv, CjQX):\n YKHO.x_data = SLsv\n YKHO.y_data = CjQX\n YKHO.prep_data()\n YKHO.slope, YKHO.intercept, YKHO.r_value, YKHO.p_value, YKHO.std_error = eQSh.linregress(YKHO.x_data, YKHO.y_data)\n if YKHO.s... | [
"0.71357214",
"0.7025557",
"0.6785678",
"0.6721418",
"0.6519271",
"0.6483951",
"0.64725804",
"0.6469587",
"0.6465351",
"0.6450842",
"0.64328337",
"0.64289516",
"0.6305582",
"0.6220486",
"0.6186002",
"0.6141461",
"0.6104465",
"0.6041306",
"0.602587",
"0.6018576",
"0.6018508",
... | 0.0 | -1 |
Returns the error of the observation (x,y) passed, computed as self. | def P1dF(YKHO, WKvO=None, LVAh=None):
return YKHO.predict(WKvO) - LVAh | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P1dF(YKHO):\n return (YKHO.eta * YKHO.N, 1 - YKHO.delta)",
"def Gv3L(YKHO):\n Ty9i = (YKHO.u - YKHO.old_u).flat\n return oyIN.sqrt(oyIN.dot(Ty9i, Ty9i))",
"def P1dF(LVAh, ijL8):\n return (LVAh - ijL8) ** 2",
"def EkHl(YKHO):\n Ylbp = YKHO.Y - YKHO.fitted_values()\n return Ylbp",
"def ... | [
"0.72976726",
"0.7219799",
"0.7191955",
"0.71706504",
"0.70987976",
"0.6971813",
"0.68865305",
"0.6882444",
"0.686658",
"0.6834348",
"0.67969024",
"0.67923236",
"0.6768062",
"0.67609245",
"0.6735627",
"0.6720986",
"0.6716326",
"0.66302735",
"0.6627982",
"0.66133136",
"0.66106... | 0.74944806 | 0 |
Renders the home page. | def kZiy():
return TvZl('index.html', title='YouLibry eLearning Facility | Library Of Libraries', year=qcWV.now().year) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kZiy():\n return TvZl('home.html')",
"def C_QL():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('homepage.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('pages/home.html')",
"def kZiy():\n leAC =... | [
"0.86085397",
"0.85661966",
"0.8562984",
"0.84564984",
"0.8353822",
"0.8353445",
"0.832796",
"0.83265287",
"0.83265287",
"0.8311966",
"0.83088946",
"0.83046836",
"0.8296962",
"0.82942903",
"0.82942903",
"0.82872546",
"0.8279762",
"0.8279762",
"0.8279762",
"0.8279762",
"0.8279... | 0.0 | -1 |
Renders the contact page. | def AwJp():
return TvZl('upload.html', title='upload', year=qcWV.now().year) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mxk0():\n bo34.info('User visited the contact page.')\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n ... | [
"0.85942996",
"0.856412",
"0.856412",
"0.8553042",
"0.84771496",
"0.84180754",
"0.84098697",
"0.8347894",
"0.8342256",
"0.8328687",
"0.82468224",
"0.82289207",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.8... | 0.0 | -1 |
Renders the contact page. | def ZrNc():
return TvZl('account.html', title='account', year=qcWV.now().year) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mxk0():\n bo34.info('User visited the contact page.')\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n ... | [
"0.85942996",
"0.856412",
"0.856412",
"0.8553042",
"0.84771496",
"0.84180754",
"0.84098697",
"0.8347894",
"0.8342256",
"0.8328687",
"0.82468224",
"0.82289207",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.8... | 0.0 | -1 |
Renders the contact page. | def eSe8():
return TvZl('subscriptions.html', title='subscriptions', year=qcWV.now().year) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mxk0():\n bo34.info('User visited the contact page.')\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n ... | [
"0.8593905",
"0.8563351",
"0.8563351",
"0.85521996",
"0.84764516",
"0.8417729",
"0.8408923",
"0.8347157",
"0.8341605",
"0.8328294",
"0.82463855",
"0.8228507",
"0.81825143",
"0.81825143",
"0.81825143",
"0.81825143",
"0.81825143",
"0.81825143",
"0.81825143",
"0.81825143",
"0.81... | 0.0 | -1 |
Renders the contact page. | def gCuF():
return TvZl('settings.html', title='settings', year=qcWV.now().year) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mxk0():\n bo34.info('User visited the contact page.')\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n ... | [
"0.85942996",
"0.856412",
"0.856412",
"0.8553042",
"0.84771496",
"0.84180754",
"0.84098697",
"0.8347894",
"0.8342256",
"0.8328687",
"0.82468224",
"0.82289207",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.8... | 0.0 | -1 |
Renders the contact page. | def PFgR():
return TvZl('trending.html', title='trending', year=qcWV.now().year) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mxk0():\n bo34.info('User visited the contact page.')\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n ... | [
"0.85942996",
"0.856412",
"0.856412",
"0.8553042",
"0.84771496",
"0.84180754",
"0.84098697",
"0.8347894",
"0.8342256",
"0.8328687",
"0.82468224",
"0.82289207",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.8... | 0.0 | -1 |
Renders the contact page. | def hkZA():
return TvZl('video-page.html', title='video page', year=qcWV.now().year) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mxk0():\n bo34.info('User visited the contact page.')\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n ... | [
"0.85942996",
"0.856412",
"0.856412",
"0.8553042",
"0.84771496",
"0.84180754",
"0.84098697",
"0.8347894",
"0.8342256",
"0.8328687",
"0.82468224",
"0.82289207",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.8... | 0.0 | -1 |
Renders the contact page. | def qQ8Z():
return TvZl('upload-video.html', title='upload video', year=qcWV.now().year) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mxk0():\n bo34.info('User visited the contact page.')\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n ... | [
"0.8593905",
"0.8563351",
"0.8563351",
"0.85521996",
"0.84764516",
"0.8417729",
"0.8408923",
"0.8347157",
"0.8341605",
"0.8328294",
"0.82463855",
"0.8228507",
"0.81825143",
"0.81825143",
"0.81825143",
"0.81825143",
"0.81825143",
"0.81825143",
"0.81825143",
"0.81825143",
"0.81... | 0.0 | -1 |
Renders the contact page. | def LVz3():
return TvZl('libraries.html', title='libraries', year=qcWV.now().year) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mxk0():\n bo34.info('User visited the contact page.')\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n ... | [
"0.85942996",
"0.856412",
"0.856412",
"0.8553042",
"0.84771496",
"0.84180754",
"0.84098697",
"0.8347894",
"0.8342256",
"0.8328687",
"0.82468224",
"0.82289207",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.8... | 0.0 | -1 |
Renders the contact page. | def xuBC():
return TvZl('library.html', title='libraries', year=qcWV.now().year) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mxk0():\n bo34.info('User visited the contact page.')\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n ... | [
"0.85942996",
"0.856412",
"0.856412",
"0.8553042",
"0.84771496",
"0.84180754",
"0.84098697",
"0.8347894",
"0.8342256",
"0.8328687",
"0.82468224",
"0.82289207",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.8... | 0.0 | -1 |
Renders the contact page. | def LeZt():
return TvZl('categories.html', title='categories', year=qcWV.now().year) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mxk0():\n bo34.info('User visited the contact page.')\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n ... | [
"0.85942996",
"0.856412",
"0.856412",
"0.8553042",
"0.84771496",
"0.84180754",
"0.84098697",
"0.8347894",
"0.8342256",
"0.8328687",
"0.82468224",
"0.82289207",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.8... | 0.0 | -1 |
Renders the contact page. | def p7oj():
return TvZl('live.html', title='live', year=qcWV.now().year) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mxk0():\n bo34.info('User visited the contact page.')\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n ... | [
"0.8593905",
"0.8563351",
"0.8563351",
"0.85521996",
"0.84764516",
"0.8417729",
"0.8408923",
"0.8347157",
"0.8341605",
"0.8328294",
"0.82463855",
"0.8228507",
"0.81825143",
"0.81825143",
"0.81825143",
"0.81825143",
"0.81825143",
"0.81825143",
"0.81825143",
"0.81825143",
"0.81... | 0.0 | -1 |
Renders the contact page. | def zUol():
return TvZl('historypage.html', title='history page', year=qcWV.now().year) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mxk0():\n bo34.info('User visited the contact page.')\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n ... | [
"0.85942996",
"0.856412",
"0.856412",
"0.8553042",
"0.84771496",
"0.84180754",
"0.84098697",
"0.8347894",
"0.8342256",
"0.8328687",
"0.82468224",
"0.82289207",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.8... | 0.0 | -1 |
Renders the contact page. | def yjL3():
return TvZl('library-account.html', title='library account', year=qcWV.now().year) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mxk0():\n bo34.info('User visited the contact page.')\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n ... | [
"0.85942996",
"0.856412",
"0.856412",
"0.8553042",
"0.84771496",
"0.84180754",
"0.84098697",
"0.8347894",
"0.8342256",
"0.8328687",
"0.82468224",
"0.82289207",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.8... | 0.0 | -1 |
Renders the contact page. | def Qx5M():
return TvZl('course-category.html', title='library account', year=qcWV.now().year) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mxk0():\n bo34.info('User visited the contact page.')\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n ... | [
"0.85942996",
"0.856412",
"0.856412",
"0.8553042",
"0.84771496",
"0.84180754",
"0.84098697",
"0.8347894",
"0.8342256",
"0.8328687",
"0.82468224",
"0.82289207",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.8... | 0.0 | -1 |
Renders the contact page. | def sDlr():
return TvZl('courses.html', title='library account', year=qcWV.now().year) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mxk0():\n bo34.info('User visited the contact page.')\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n ... | [
"0.8593905",
"0.8563351",
"0.8563351",
"0.85521996",
"0.84764516",
"0.8417729",
"0.8408923",
"0.8347157",
"0.8341605",
"0.8328294",
"0.82463855",
"0.8228507",
"0.81825143",
"0.81825143",
"0.81825143",
"0.81825143",
"0.81825143",
"0.81825143",
"0.81825143",
"0.81825143",
"0.81... | 0.0 | -1 |
Renders the contact page. | def MC83():
return TvZl('login.html', title='library account', year=qcWV.now().year) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mxk0():\n bo34.info('User visited the contact page.')\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n return TvZl('contact.html')",
"def Mxk0():\n ... | [
"0.85942996",
"0.856412",
"0.856412",
"0.8553042",
"0.84771496",
"0.84180754",
"0.84098697",
"0.8347894",
"0.8342256",
"0.8328687",
"0.82468224",
"0.82289207",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.81830716",
"0.8... | 0.0 | -1 |
Create a new user profile | def lYUQ(YKHO, D3lj, mWFP, jTXt=None, r_Xw=False):
if not D3lj:
raise ValueError('User must have email address')
D3lj = YKHO.normalize_email(D3lj)
CBIr = YKHO.model(email=D3lj, name=mWFP)
CBIr.is_organisation = r_Xw
CBIr.set_password(jTXt)
CBIr.save(using=YKHO._db)
return CBIr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def euOS():\n if Oa1e.user is not None or 'openid' not in cuiw:\n return vKnz(nKyW('index'))\n if QePW.method == 'POST':\n mWFP = QePW.form['name']\n D3lj = QePW.form['email']\n uOe2 = QePW.form['group']\n if not mWFP:\n Dwep(u'Error: you have to provide a name',... | [
"0.83632046",
"0.8336419",
"0.8310781",
"0.8298088",
"0.82628995",
"0.80846065",
"0.80804753",
"0.8045341",
"0.8045341",
"0.8045341",
"0.8045341",
"0.804433",
"0.80315614",
"0.7975703",
"0.79606515",
"0.7958447",
"0.7942754",
"0.7923338",
"0.791081",
"0.7910708",
"0.7910661",... | 0.0 | -1 |
Take two Boolean values bool1 and bool2 and return the specified Boolean values | def gphD(DRTW, ty3E):
if DRTW:
if ty3E:
return False
else:
return True
else:
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gphD(DRTW, ty3E):\n if DRTW:\n if ty3E:\n return False\n else:\n return True\n else:\n return True",
"def XL1R(YKHO):\n Wxnj = ['def mix_true_values(a, b):', '', ' if a and not b or not a and b:', ' return 1', '', ' return False']\n Q3Ge = K... | [
"0.71607447",
"0.6491577",
"0.6464064",
"0.64599323",
"0.64537245",
"0.63866425",
"0.63562214",
"0.6354176",
"0.63410175",
"0.63281643",
"0.62945986",
"0.62894255",
"0.6277106",
"0.62665945",
"0.62406194",
"0.62395835",
"0.62053543",
"0.6200042",
"0.61968637",
"0.61956733",
"... | 0.6670711 | 1 |
Infer module name from package. | def _iry(B5hb: str):
from pkg_resources import get_distribution
sKYw = get_distribution(B5hb)
if sKYw.has_metadata('top_level.txt'):
LCet = sKYw.get_metadata('top_level.txt').split('\n')[0]
return LCet
else:
raise ValueError(f'can not infer the module name of {B5hb}') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rPj_(YKHO):\n yR_P = HwRy.modules[YKHO.__module__]\n hxGQ = yR_P.__package__\n return hxGQ",
"def ivvY(mWFP):\n return mWFP.split('.')[0]",
"def BQIW(Q6kx):\n mWFP = None\n for zFiD in Q6kx.read().splitlines():\n r8hN = A_en(zFiD)\n if r8hN:\n if eete(zFiD):\n ... | [
"0.7607319",
"0.72503924",
"0.7231297",
"0.71340233",
"0.70814204",
"0.7080956",
"0.70030934",
"0.6946231",
"0.69068897",
"0.69068897",
"0.69068897",
"0.69068897",
"0.69068897",
"0.68566823",
"0.6847474",
"0.68368363",
"0.68257564",
"0.67978835",
"0.6792451",
"0.6785892",
"0.... | 0.7973409 | 0 |
Recursive generator of all class' subclasses. | def tBqQ(Emd4):
for dm7U in Emd4.__subclasses__():
yield dm7U
for dm7U in dm7U._get_all_subclasses():
yield dm7U | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vCuQ(Emd4):\n for dm7U in Emd4.__subclasses__():\n yield from dm7U.__recursive_subclasses__()\n yield dm7U",
"def K2nW(Emd4):\n yield Emd4\n for qWQn in Emd4.__subclasses__():\n yield from K2nW(qWQn)",
"def vCuQ(Emd4: T) -> bDy6[Kt_s]:\n for dm7U in Emd4.__subclasses__():\n... | [
"0.8519803",
"0.83992064",
"0.8155382",
"0.79970753",
"0.7987281",
"0.78396225",
"0.78343886",
"0.7806353",
"0.7744309",
"0.7727875",
"0.7416931",
"0.73944306",
"0.73553365",
"0.7339604",
"0.7337272",
"0.73117554",
"0.72935736",
"0.7268369",
"0.7262298",
"0.72553635",
"0.7208... | 0.7972165 | 5 |
Create instance of appropriate subclass. | def fwuD(Emd4, pmON):
Jk_C = Emd4._get_prefix(pmON)
dm7U = WBcx._registry.get(Jk_C)
if dm7U:
return object.__new__(dm7U)
else:
raise R5Bl.Unknown(f'path "{pmON}" has no known file system prefix') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eLpg(YKHO, vOsx):\n raise NotImplementedError()",
"def l4AV(YKHO, *qIxc, **B2fa):\n return YKHO.get_type()(*qIxc, **B2fa)",
"def P37j(mWFP, PObu, yIhv):\n\n def FIMM(YKHO):\n yIhv.__init__(YKHO)\n KjNF = type(mWFP, (yIhv,), {'__init__': FIMM})\n KjNF.UID = PObu\n return KjNF",
"d... | [
"0.730973",
"0.7234864",
"0.7070319",
"0.7063571",
"0.69179857",
"0.6882394",
"0.6882394",
"0.68635035",
"0.6861566",
"0.6848671",
"0.68153745",
"0.6812767",
"0.67667115",
"0.67637354",
"0.67637354",
"0.67408085",
"0.67404723",
"0.6703201",
"0.6702711",
"0.6674908",
"0.667132... | 0.0 | -1 |
Start the long polling loop. | def yKcO(YKHO) -> None:
if len(YKHO._cache) == 0:
YKHO._long_poll()
a1PO = T6FA.Thread(target=YKHO._listener)
a1PO.setDaemon(True)
a1PO.start() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MuY5(YKHO):\n YKHO.poller = T6FA.Thread(target=YKHO.poll)\n YKHO.poller.daemon = True\n YKHO.poller.start()",
"def MuY5(YKHO):\n YKHO._polling_task = YKHO._hass.async_add_job(YKHO._start_poll_command())",
"def MuY5(YKHO, tvqc=None):\n vzeF.debug('Starting polling')\n YKHO.updater.start_po... | [
"0.76214623",
"0.7254223",
"0.70909333",
"0.70069915",
"0.6994214",
"0.69843614",
"0.69664484",
"0.68957967",
"0.683443",
"0.6804873",
"0.67809653",
"0.6776293",
"0.6759027",
"0.67578644",
"0.6748749",
"0.6721344",
"0.67087215",
"0.6707235",
"0.66757166",
"0.6665164",
"0.6656... | 0.6258056 | 66 |
Get all the likes on a post | def YGU3(Fi3q):
BM07 = {'status': 'fail', 'message': 'Like does not exist'}
try:
nfUB = _l4v.query.filter_by(post_id=int(Fi3q))
BM07 = {'status': 'success', 'data': {'likes': [qRCH.to_json() for qRCH in nfUB]}}
return (pz3A(BM07), 200)
except ValueError:
return (pz3A(BM07), 4... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WUWr(YKHO):\n r845 = YKHO.facebook_get_user_json('likes')\n for WKvO in r845['data']:\n try:\n jVTX = _PAn.objects.get(facebook_id=int(WKvO['id']), name=WKvO['name'])\n YKHO.likes.add(jVTX)\n except _PAn.DoesNotExist:\n pass\n YKHO.save()",
"def WUWr(CB... | [
"0.7315034",
"0.72075516",
"0.71815675",
"0.7178609",
"0.7113604",
"0.70969564",
"0.70929205",
"0.7002961",
"0.698622",
"0.6980513",
"0.698006",
"0.68892366",
"0.68880004",
"0.6823365",
"0.6738846",
"0.67313534",
"0.6721576",
"0.67093253",
"0.66487557",
"0.6643172",
"0.660952... | 0.77110153 | 0 |
Return the total Manhattan distance from goal position of all tiles. | def RR6Y(QTBn: EightPuzzleState, yP_o: EightPuzzleState):
V0oM = yP_o.board
CJnH = 0
for mLGw in range(9):
DPH9 = False
Cxyo = False
for YRbF in range(len(V0oM)):
for r845 in range(len(V0oM[0])):
if not Cxyo and V0oM[YRbF][r845] == mLGw:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EP01(YKHO):\n Ayfi = 0\n rdlD = 0\n fvDH = 0\n for eL5z, YRbF in zip(YKHO.state, range(R_iB + 1)):\n if YRbF % YAeK == 0:\n rdlD += 1\n fvDH = 1\n if YRbF in (1, 2, 4, 5, 7, 8):\n fvDH += 1\n Ayfi += Hp7Q(eL5z, rdlD, fvDH)\n return Ayfi",
"... | [
"0.829453",
"0.8228035",
"0.82125777",
"0.7817695",
"0.7613338",
"0.7478561",
"0.74360293",
"0.74226093",
"0.7418497",
"0.7371144",
"0.73702514",
"0.73569924",
"0.73425853",
"0.72241145",
"0.72138375",
"0.7190064",
"0.71893287",
"0.7146674",
"0.71454155",
"0.71299505",
"0.712... | 0.0 | -1 |