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 |
|---|---|---|---|---|---|---|
Parse the given XML and use the document element to create a Python instance. xml_text An XML document. This should be data (Python 2 str or Python 3 bytes), or a text (Python 2 unicode or Python 3 str) in the L{pyxb._InputEncoding} encoding. default_namespace The L{pyxb.Namespace} instance to use as the default namesp... | def KA8b(k1P2, UyKZ=None, ePoz=None):
if Aw3s.XMLStyle_saxer != Aw3s._XMLStyle:
Mf7r = Aw3s.utils.domutils.StringToDOM(k1P2)
return E91p(Mf7r.documentElement, default_namespace=UyKZ)
if UyKZ is None:
UyKZ = jFQi.fallbackNamespace()
IjKD = Aw3s.binding.saxer.make_parser(fallback_names... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KA8b(k1P2, UyKZ=None, ePoz=None):\n if Aw3s.XMLStyle_saxer != Aw3s._XMLStyle:\n Mf7r = Aw3s.utils.domutils.StringToDOM(k1P2)\n return E91p(Mf7r.documentElement, default_namespace=UyKZ)\n if UyKZ is None:\n UyKZ = jFQi.fallbackNamespace()\n IjKD = Aw3s.binding.saxer.make_parser(fal... | [
"0.74054533",
"0.737934",
"0.737934",
"0.737934",
"0.737934",
"0.737934",
"0.7371441",
"0.7371441",
"0.7371441",
"0.7371441",
"0.7371441",
"0.7371441",
"0.7371441",
"0.7371441",
"0.7371441",
"0.7371441",
"0.7371441",
"0.73320246",
"0.6958276",
"0.6372375",
"0.62067413",
"0.... | 0.7318597 | 28 |
iteratively apply function to dataframe accross expanding window return dataframe of func results by date (func results should be single dim vector) | def udmm(CuxP, kepv, JfyU):
ybuI = CuxP[kepv:].index
XP5J = dict(bCYe(ybuI, map(lambda WKvO: (WKvO, JfyU(CuxP[:WKvO])))))
try:
return rLdf.DataFrame(XP5J).T
except:
return rLdf.Panel(XP5J).transpose(0, 2, 1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FD89(jQ3Z):\n for _c1T in jQ3Z.D_Date.unique():\n OrJR(_c1T, jQ3Z.loc[jQ3Z['D_Date'] == _c1T])",
"def pOt9(jQ3Z, dRO0, PS4r=None, pzdF=False, DeLa=None, SIYn=True, fwsq=None, Pw3N=None):\n if DeLa is None:\n OiQZ = jQ3Z\n else:\n OiQZ = jQ3Z.sort_values(DeLa, ascending=SIYn)\n ... | [
"0.6762044",
"0.65564287",
"0.6385332",
"0.6380682",
"0.6171829",
"0.61210746",
"0.60619754",
"0.6040405",
"0.5976747",
"0.5935168",
"0.5909757",
"0.58898574",
"0.58877915",
"0.58870447",
"0.5857603",
"0.5796739",
"0.5765521",
"0.57611793",
"0.5743471",
"0.57408273",
"0.57358... | 0.61195743 | 6 |
Returns the contrast value for a particular coordinate throughout the whole experiment, padded with zeros in the beginning to fit the rolling_window function. The coordinates are rounded to be used as indices. Padding is needed because rolling window reduces the size of the temporal axis by it's "window" parameter. The... | def KKRz(YKHO, BHsk, KnxT=0, SXLe=0):
if isinstance(BHsk, int) or len(BHsk) != 2:
raise ValueError('coord is expected to have two elements.')
BHsk = oyIN.array(BHsk)
K_4v = YKHO.texture_flipped
dlZb = YKHO.bgtraj_clipped.copy()
dlZb[1, :] *= -1
dlZb = oyIN.flipud(dlZb)
kzqU = oyIN.ze... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def enso(YKHO, BHsk, KnxT=0, SXLe=0):\n BHsk = oyIN.array(BHsk)\n BHsk = oyIN.flipud(BHsk)\n GBSi = oyIN.array([YKHO.pars.squareheight, YKHO.pars.squarewidth])\n dlZb = oyIN.fmod(YKHO.bgtraj * YKHO.pars.bgstixel, GBSi[:, None])\n kzqU = oyIN.zeros((KnxT, KnxT, YKHO.ntotal + SXLe))\n if SXLe != 0:... | [
"0.55001456",
"0.5335176",
"0.49782938",
"0.49319324",
"0.48405778",
"0.48078042",
"0.47913608",
"0.47831768",
"0.47650543",
"0.4753457",
"0.47433394",
"0.47430375",
"0.47397947",
"0.47316754",
"0.4729642",
"0.47235835",
"0.47116458",
"0.4704232",
"0.4674052",
"0.4668864",
"0... | 0.55413485 | 0 |
Separation or minimum distance between clusters. It is actually minimum distance between two nodes in calculated clusters. Then, we find the most minimum one for all clusters. | def xxPH(qC6E, Tuqy, pNZh=None, gKk5=None):
iIih = set(qC6E.keys())
Re5A = {}
s2Ni = 1.0
for JvOq, hKn5 in qC6E.iteritems():
if len(hKn5) == 1:
if s2Ni <= 1.0:
pass
else:
DTjs = iIih - {JvOq}
HJVS = {}
for AAbN in DTjs:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i9J5(YKHO, qC6E):\n YRbF, r845 = XTiz.unravel_index(XTiz.argmin(qC6E), qC6E.shape)\n return (qC6E[YRbF, r845], YRbF, r845)",
"def q0S6(YKHO):\n min = YKHO.cluster_distance(YKHO.clusters[0], YKHO.clusters[1])\n dg7v = YKHO.clusters[0]\n iYf1 = YKHO.clusters[1]\n for YRbF in range(len(YKHO.cl... | [
"0.74145687",
"0.7373406",
"0.7287407",
"0.722091",
"0.67721677",
"0.6762329",
"0.67240834",
"0.66849816",
"0.6682467",
"0.6682336",
"0.66280466",
"0.66183466",
"0.65639424",
"0.6550783",
"0.65471464",
"0.65423757",
"0.65381783",
"0.6527737",
"0.65229875",
"0.64928085",
"0.64... | 0.6514348 | 19 |
The model descriptor name is an alias name for the term 'model', which is specified for each descendent class. Returns the model descriptor name. | def wNeY(YKHO):
return YKHO.get_model_descriptor()['name'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rrWI(YKHO):\n return VuMl.getModelName(YKHO)",
"def ZGE9(YKHO) -> str:\n return YKHO._model_name",
"def ZGE9(YKHO) -> str:\n return YKHO._model_name",
"def J0X3(YKHO):\n return YKHO.models['model_descriptor']",
"def ZuBV(Emd4):\n return '{0}.{1}'.format(Emd4._meta.app_label, Emd4._meta.m... | [
"0.75539833",
"0.7465913",
"0.7465913",
"0.74311095",
"0.7393853",
"0.7380713",
"0.73789436",
"0.73789436",
"0.73243254",
"0.73147744",
"0.73147744",
"0.7245753",
"0.7202474",
"0.718405",
"0.7147988",
"0.7110952",
"0.70965505",
"0.7086576",
"0.70657724",
"0.69954187",
"0.6981... | 0.83980787 | 0 |
Returns the name of the current model | def dgan(YKHO):
return getattr(YKHO, YKHO.get_model_descriptor_name()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZGE9(YKHO):\n return YKHO._model_name",
"def ZGE9(YKHO):\n return YKHO._model_name",
"def mWFP(YKHO):\n return YKHO.model.name",
"def ZGE9(YKHO) -> str:\n return YKHO._model_name",
"def ZGE9(YKHO) -> str:\n return YKHO._model_name",
"def txlv(YKHO):\n return YKHO.wink.model_name()",... | [
"0.8772644",
"0.8772644",
"0.8734962",
"0.87108785",
"0.87108785",
"0.8657851",
"0.86272216",
"0.8621289",
"0.84532905",
"0.8451154",
"0.84315115",
"0.83402574",
"0.81982034",
"0.81982034",
"0.819791",
"0.81742525",
"0.81742525",
"0.80759853",
"0.8033955",
"0.7957758",
"0.790... | 0.9133535 | 0 |
Returns the number of parameters for model. | def v6DW(YKHO):
return YKHO.get_model_descriptor()['num_parms'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ca6I(YKHO):\n return eQ5t(YKHO.model)",
"def VgCS(C3ST):\n return sum((XP5J.numel() for XP5J in C3ST.parameters()))",
"def UqPz(C3ST):\n return oyIN.sum([XP5J.numel() for XP5J in C3ST.parameters()]).item()",
"def UqPz():\n C3ST = hxc2(num_classes=2)\n return oyIN.sum([XP5J.numel() for XP5J... | [
"0.90196645",
"0.89408726",
"0.8918449",
"0.87087446",
"0.8689404",
"0.8595135",
"0.8595135",
"0.8561474",
"0.8526454",
"0.8460087",
"0.8434804",
"0.8434804",
"0.84017867",
"0.83828616",
"0.83484817",
"0.83068544",
"0.8300269",
"0.8300269",
"0.8258378",
"0.8258378",
"0.822720... | 0.90201926 | 0 |
Check to see whether there is an alternate icool_model_name from the common name. If so return that. Otherwise, just return the common name. | def rER8(YKHO):
if 'icool_model_name' not in YKHO.models[str(YKHO.get_current_model_name())]:
return YKHO.get_current_model_name()
else:
return YKHO.models[str(YKHO.get_current_model_name())]['icool_model_name'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Hotb(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'common_name')",
"def Hotb(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'common_name')",
"def Hotb(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'common_name')",
"def Hotb(YKHO) -> h8nf[qe4Y.Input[str]]:\n retur... | [
"0.6765847",
"0.6765847",
"0.6765847",
"0.6765847",
"0.64628583",
"0.64628583",
"0.6388253",
"0.63337755",
"0.628179",
"0.6213212",
"0.61794204",
"0.61794204",
"0.6151306",
"0.6081443",
"0.5950777",
"0.5907622",
"0.5858964",
"0.5797894",
"0.5779328",
"0.5739273",
"0.56899923"... | 0.73261803 | 0 |
Returns the model name in a provided dictionary if it exists. Otherwise returns None | def LwQZ(YKHO, dict):
if YKHO.get_model_descriptor_name() not in dict:
return None
else:
return dict[YKHO.get_model_descriptor_name()] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TbE8(U34r: dict[str, Any]) -> str:\n if WXHe(U34r) == 2:\n return YWvJ(str, gJ7i.get(U34r['model'], U34r['model']))\n return YWvJ(str, gJ7i.get(U34r['type'], U34r['type']))",
"def TbE8(SYSq):\n return ZbWC.search(\"modelname='(.*?)'\", next(iter(SYSq.values()))).group(1)",
"def _8gI(YKHO, Z... | [
"0.69099253",
"0.6716237",
"0.6664635",
"0.6589082",
"0.656374",
"0.6444817",
"0.63988525",
"0.6343911",
"0.6304851",
"0.6304278",
"0.62994224",
"0.6233921",
"0.6212806",
"0.6177422",
"0.61426955",
"0.612412",
"0.60585654",
"0.60494584",
"0.6041684",
"0.6022927",
"0.59751874"... | 0.8410386 | 0 |
A pytest fixture that installs a Kerberized HDFS service. On teardown, the service is uninstalled. | def j4Fg(p7Np):
dCLE = {'service': {'name': GPtr.SERVICE_NAME, 'security': {'kerberos': {'enabled': True, 'kdc': {'hostname': p7Np.get_host(), 'port': int(p7Np.get_port())}, 'realm': p7Np.get_realm(), 'keytab_secret': p7Np.get_keytab_path()}}}, 'hdfs': {'security_auth_to_local': Jpbe.get_principal_to_user_mapping()... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ytDs(KcEq):\n if KcEq.system_info.distribution not in ('debian', 'ubuntu'):\n trZe.skip('Test defined for another distribution')\n assert KcEq.service('sysfsutils').is_enabled",
"def FCbF(YKHO):\n YKHO._fs_name = 'fs'\n YKHO._service = M87a()\n YKHO._service.setUp()\n ITS7.sleep(1)\n... | [
"0.64921236",
"0.6273463",
"0.616429",
"0.60819024",
"0.60028493",
"0.59297293",
"0.58138466",
"0.5813694",
"0.5804312",
"0.5775675",
"0.5735948",
"0.5720632",
"0.5710596",
"0.56963587",
"0.56963587",
"0.5646531",
"0.5634701",
"0.5629945",
"0.56170404",
"0.5605964",
"0.560370... | 0.54473495 | 48 |
Serializes this instance to a Python dictionary. | def MNRr(YKHO):
hlel = jth9.deepcopy(YKHO.__dict__)
return hlel | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Napc(YKHO) -> dict:\n pass",
"def Napc(YKHO):\n return dict(YKHO.__dict__)",
"def sS6L(YKHO):\n return YKHO.__dict__",
"def MNRr(YKHO) -> dict:\n return YKHO.__data__",
"def _fYl(YKHO) -> cuzp[str, ImMB]:\n return B4us(YKHO)",
"def dict(YKHO):\n return YKHO.to_dict()",
"def dict(Y... | [
"0.8867926",
"0.8861291",
"0.8325109",
"0.8323158",
"0.8313032",
"0.8288802",
"0.8288802",
"0.8282073",
"0.8282073",
"0.8282073",
"0.8282073",
"0.8282073",
"0.8282073",
"0.8282073",
"0.8282073",
"0.8282073",
"0.8282073",
"0.8251281",
"0.8234439",
"0.8234439",
"0.8216978",
"... | 0.0 | -1 |
The maximum wind speed in knots. Null if not available. | def gP5V(YKHO) -> float:
return YKHO.wind['maxKTS'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TYz5(YKHO):\n return None",
"def TYz5(YKHO) -> h8nf[float]:\n return YKHO._wind_speed.value",
"def JYT9(YKHO) -> float:\n return YKHO.wind['maxKPH']",
"def HWhh(YKHO):\n return 2 * epAf.pi * gTaq * (18730 * (1 / 60) / n6nx)",
"def JsHp(YKHO) -> float:\n return YKHO.wind['maxMPH']",
"de... | [
"0.7688964",
"0.75948733",
"0.7421892",
"0.72760457",
"0.7258813",
"0.7253093",
"0.7192308",
"0.71105856",
"0.7074101",
"0.7072816",
"0.70548385",
"0.7038033",
"0.69957435",
"0.695493",
"0.6951104",
"0.69347656",
"0.69296724",
"0.6861641",
"0.68154836",
"0.6801323",
"0.672505... | 0.7738554 | 0 |
The maximum wind speed in kilometers per hour. Null if not available. | def JYT9(YKHO) -> float:
return YKHO.wind['maxKPH'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c5bE(YKHO):\n if YKHO.windspeed is not None:\n return YKHO.windspeed * 2.237",
"def TYz5(YKHO):\n return None",
"def JsHp(YKHO) -> float:\n return YKHO.wind['maxMPH']",
"def TYz5(YKHO) -> h8nf[float]:\n return YKHO._wind_speed.value",
"def TYz5(YKHO):\n return float(YKHO.raw_weath... | [
"0.79349726",
"0.77610475",
"0.7695405",
"0.7681967",
"0.75292856",
"0.73614275",
"0.73262155",
"0.7314278",
"0.7304605",
"0.7292904",
"0.72170186",
"0.7195876",
"0.718105",
"0.71754926",
"0.70673287",
"0.70564306",
"0.6920121",
"0.68968654",
"0.6859007",
"0.6764816",
"0.6753... | 0.71747565 | 14 |
The maximum wind speed in miles per hour. Null if not available. | def JsHp(YKHO) -> float:
return YKHO.wind['maxMPH'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c5bE(YKHO):\n if YKHO.windspeed is not None:\n return YKHO.windspeed * 2.237",
"def TYz5(YKHO):\n return None",
"def TYz5(YKHO) -> h8nf[float]:\n return YKHO._wind_speed.value",
"def HWhh(YKHO):\n return 2 * epAf.pi * gTaq * (18730 * (1 / 60) / n6nx)",
"def TYz5(YKHO):\n return fl... | [
"0.80445397",
"0.74338555",
"0.73085135",
"0.7228029",
"0.718077",
"0.70259243",
"0.7008473",
"0.69956166",
"0.69926405",
"0.69210565",
"0.6902855",
"0.68954986",
"0.6890708",
"0.6887588",
"0.6878247",
"0.6825125",
"0.67524844",
"0.67262477",
"0.6722084",
"0.6697525",
"0.6668... | 0.7764837 | 1 |
The minimum wind speed in knots. Null if not available. | def biTH(YKHO) -> float:
return YKHO.wind['minKTS'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UNKB(YKHO) -> float:\n return YKHO.wind['minKPH']",
"def TYz5(YKHO):\n return None",
"def TYz5(YKHO) -> h8nf[float]:\n return YKHO._wind_speed.value",
"def IAAc(YKHO):\n return YKHO._gps.speed_knots",
"def IuTq(YKHO) -> float:\n return YKHO.wind['minMPH']",
"def Htwv(YKHO) -> float | N... | [
"0.7346624",
"0.7288122",
"0.7246087",
"0.7113068",
"0.70915633",
"0.6975869",
"0.6961139",
"0.6823634",
"0.67353725",
"0.67344975",
"0.6717831",
"0.67120355",
"0.66943526",
"0.669131",
"0.66323483",
"0.6617334",
"0.66074127",
"0.65832347",
"0.6574431",
"0.6569855",
"0.652250... | 0.7851463 | 0 |
The minimum wind speed in kilometers per hour. Null if not available. | def UNKB(YKHO) -> float:
return YKHO.wind['minKPH'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IuTq(YKHO) -> float:\n return YKHO.wind['minMPH']",
"def biTH(YKHO) -> float:\n return YKHO.wind['minKTS']",
"def c5bE(YKHO):\n if YKHO.windspeed is not None:\n return YKHO.windspeed * 2.237",
"def TYz5(YKHO):\n return None",
"def TYz5(YKHO) -> h8nf[float]:\n return YKHO._wind_spe... | [
"0.77800566",
"0.7540731",
"0.7406596",
"0.7361887",
"0.73534346",
"0.7223343",
"0.7086197",
"0.69511735",
"0.68713045",
"0.6856257",
"0.68186784",
"0.68165016",
"0.6797583",
"0.6788154",
"0.67863715",
"0.67827994",
"0.6739249",
"0.67372394",
"0.67095655",
"0.67001194",
"0.66... | 0.73807085 | 3 |
The minimum wind speed in miles per hour. Null if not available. | def IuTq(YKHO) -> float:
return YKHO.wind['minMPH'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c5bE(YKHO):\n if YKHO.windspeed is not None:\n return YKHO.windspeed * 2.237",
"def TYz5(YKHO):\n return None",
"def UNKB(YKHO) -> float:\n return YKHO.wind['minKPH']",
"def biTH(YKHO) -> float:\n return YKHO.wind['minKTS']",
"def TYz5(YKHO) -> h8nf[float]:\n return YKHO._wind_spe... | [
"0.75484395",
"0.7140775",
"0.7117038",
"0.7114248",
"0.7090118",
"0.68953836",
"0.68218404",
"0.68196815",
"0.68075323",
"0.6697607",
"0.6641639",
"0.6611413",
"0.65972966",
"0.65874386",
"0.6571003",
"0.65601385",
"0.6556824",
"0.6547534",
"0.6536328",
"0.6525811",
"0.64607... | 0.77971005 | 0 |
The minimum temperature in Knots. Null if unavailable. | def DlW3(YKHO) -> float:
return YKHO.wind['gustKTS'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Xzrk(YKHO):\n return YKHO.__min_temperature",
"def eCok(YKHO):\n return YKHO._temperature_min",
"def eCok(YKHO) -> float:\n return XEaZ[YKHO._model]['temperature_range'][0]",
"def eCok(YKHO) -> float:\n return Qna4(YKHO._min_temp, hMVl, YKHO.temperature_unit)",
"def eCok(YKHO) -> float:\n ... | [
"0.819923",
"0.81903017",
"0.80531424",
"0.7950844",
"0.7919601",
"0.788303",
"0.7855228",
"0.7830921",
"0.78027964",
"0.78027964",
"0.78002584",
"0.7778757",
"0.76845384",
"0.76845384",
"0.76845384",
"0.76845384",
"0.76845384",
"0.76845384",
"0.76817185",
"0.76713794",
"0.76... | 0.0 | -1 |
The maximum wind gust in kilometers per hour. Null if not available. | def HiyF(YKHO) -> float:
return YKHO.wind['gustKPH'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JsHp(YKHO) -> float:\n return YKHO.wind['maxMPH']",
"def JYT9(YKHO) -> float:\n return YKHO.wind['maxKPH']",
"def gP5V(YKHO) -> float:\n return YKHO.wind['maxKTS']",
"def c5bE(YKHO):\n if YKHO.windspeed is not None:\n return YKHO.windspeed * 2.237",
"def izsa(YKHO) -> float:\n ret... | [
"0.7794218",
"0.7630079",
"0.7500184",
"0.7308187",
"0.72166616",
"0.7100949",
"0.7034117",
"0.70246524",
"0.6994131",
"0.6964295",
"0.69462657",
"0.69218683",
"0.691919",
"0.6863105",
"0.6856376",
"0.68540317",
"0.6843651",
"0.684181",
"0.6742061",
"0.6742061",
"0.66924876",... | 0.6780122 | 18 |
The maximum wind gust in miles per hour. Null if not available. | def izsa(YKHO) -> float:
return YKHO.wind['gustMPH'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JsHp(YKHO) -> float:\n return YKHO.wind['maxMPH']",
"def c5bE(YKHO):\n if YKHO.windspeed is not None:\n return YKHO.windspeed * 2.237",
"def JYT9(YKHO) -> float:\n return YKHO.wind['maxKPH']",
"def qfB5(YKHO):\n return YKHO.max_temp",
"def gP5V(YKHO) -> float:\n return YKHO.wind['... | [
"0.7700415",
"0.7245676",
"0.7164577",
"0.690245",
"0.6772958",
"0.674546",
"0.6730551",
"0.6713107",
"0.67099047",
"0.67090416",
"0.6685039",
"0.66257036",
"0.66195035",
"0.660624",
"0.65881944",
"0.6584372",
"0.6573168",
"0.6569273",
"0.6561617",
"0.6554395",
"0.6519832",
... | 0.697209 | 3 |
The total number of observations that included wind information. | def UHFx(YKHO) -> int:
return YKHO.wind['count'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PUHI(Emd4):\n return Emd4.planned_observations.count()",
"def UHFx(YKHO) -> int:\n return YKHO.pressure['count']",
"def LoDS(YKHO):\n return sum(YKHO.__stations.values())",
"def NaFW(YKHO):\n UHFx = 0\n if YKHO.north == 0:\n UHFx += 1\n if YKHO.south == 0:\n UHFx += 1\n ... | [
"0.71856874",
"0.7161811",
"0.71509266",
"0.71467704",
"0.7034201",
"0.70113146",
"0.7003019",
"0.689775",
"0.68767565",
"0.6875978",
"0.68663234",
"0.6842956",
"0.68293726",
"0.6823037",
"0.6810635",
"0.67996866",
"0.67315525",
"0.67259306",
"0.66637695",
"0.6653969",
"0.664... | 0.798564 | 0 |
Converts the matplotlib plot specified by 'figure' to a PNG image and returns it. The supplied figure is closed and inaccessible after this call. | def lsxx(JI1i):
LaVg = xDSY.BytesIO()
QrM1.savefig(LaVg, format='png')
QrM1.close(JI1i)
LaVg.seek(0)
LNo8 = ZylS.image.decode_png(LaVg.getvalue(), channels=4)
LNo8 = ZylS.expand_dims(LNo8, 0)
return LNo8 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lsxx(JI1i):\n LaVg = xDSY.BytesIO()\n QrM1.savefig(LaVg, format='png', dpi=200)\n QrM1.close(JI1i)\n LaVg.seek(0)\n LNo8 = ZylS.image.decode_png(LaVg.getvalue(), channels=4)\n LNo8 = ZylS.expand_dims(LNo8, 0)\n return LNo8",
"def lsxx(JI1i):\n LaVg = xDSY.BytesIO()\n QrM1.savefig(L... | [
"0.78160137",
"0.7814612",
"0.77940977",
"0.7749342",
"0.77017164",
"0.7672697",
"0.76554775",
"0.7645993",
"0.7639141",
"0.76132804",
"0.7586241",
"0.7586241",
"0.7586241",
"0.7568041",
"0.75680405",
"0.7551187",
"0.7540491",
"0.7474353",
"0.7454923",
"0.7421762",
"0.7411163... | 0.761453 | 12 |
Return unique ID for the sensor. | def ShR8(YKHO) -> str:
return YKHO._unique_id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ShR8(YKHO):\n return YKHO._device.guid + YKHO._sensor_type['name']",
"def ShR8(YKHO):\n return f'{YKHO._device.uuid}-SENSOR'",
"def ShR8(YKHO) -> str:\n return '{}-{}'.format(YKHO.flume.device_id, YKHO.sensor_type)",
"def ShR8(YKHO):\n return f'{YKHO.location_name}_{YKHO.sensor_name}'",
"de... | [
"0.8951885",
"0.87691426",
"0.8615624",
"0.84973097",
"0.8494796",
"0.847926",
"0.8460301",
"0.83499527",
"0.8254217",
"0.8252504",
"0.81881315",
"0.8161518",
"0.8055198",
"0.8039672",
"0.8019078",
"0.79703766",
"0.79577696",
"0.79577696",
"0.7954837",
"0.7953974",
"0.7948361... | 0.7501441 | 43 |
Return the class of this device. | def rM2U(YKHO) -> str:
return YKHO._device_class | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rM2U(YKHO):\n return YKHO._class",
"def rM2U(YKHO):\n return YKHO._handle('device_class')",
"def rM2U(YKHO):\n return YKHO._device_class",
"def rM2U(YKHO):\n return YKHO._device_class",
"def rM2U(YKHO):\n return YKHO._device_class",
"def rM2U(YKHO):\n return YKHO._device_class",
"... | [
"0.90902424",
"0.8930935",
"0.8928157",
"0.8928157",
"0.8928157",
"0.8928157",
"0.8928157",
"0.8928157",
"0.8928157",
"0.8928157",
"0.8928157",
"0.8928157",
"0.8928157",
"0.8928157",
"0.8928157",
"0.8928157",
"0.8928157",
"0.8928157",
"0.8915375",
"0.8846071",
"0.88394916",
... | 0.88079506 | 23 |
Return device information about this Lyric instance. | def GWuV(YKHO) -> cuzp[str, ImMB]:
HXjy = YKHO.device.macID
return {'identifiers': {(Sugg, HXjy)}, 'name': YKHO.device.name, 'model': YKHO.device.id, 'manufacturer': 'Honeywell'} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GWuV(YKHO):\n return YKHO._api.device_info",
"def GWuV(YKHO):\n return YKHO._device.device_info()",
"def GWuV(YKHO):\n return YKHO._device.device_info()",
"def GWuV(YKHO):\n return YKHO._device.device_info",
"def GWuV(YKHO):\n return {'identifiers': {(Sugg, YKHO.serial)}, 'name': YKHO.na... | [
"0.84667873",
"0.8337228",
"0.8337228",
"0.83129007",
"0.8270229",
"0.82617193",
"0.82617193",
"0.82617193",
"0.82617193",
"0.82617193",
"0.82581604",
"0.82112134",
"0.81180537",
"0.8097375",
"0.8069842",
"0.8011399",
"0.80010515",
"0.79936486",
"0.79708874",
"0.7951258",
"0.... | 0.7556139 | 62 |
Load mission from a JSON file. | def y9eg(FYKK):
with open(FYKK) as eHNT:
nPrm = qQXR.load(eHNT)
return _SkL(nPrm) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ETLz(wO5G):\n wM3v = open(wO5G, 'r')\n Bg8V = qQXR.loads(wM3v.read())\n wM3v.close()\n return Bg8V",
"def tyeH(YKHO, RsFk: str) -> None:\n with open(RsFk, 'r') as niOJ:\n sjtL = qQXR.load(niOJ)\n YKHO.load_from_dict(sjtL)",
"def KrsJ(YKHO):\n with open(YKHO.file) as zgjV:\n ... | [
"0.71061826",
"0.6789917",
"0.6756569",
"0.67088056",
"0.66863996",
"0.6650666",
"0.6620487",
"0.66088915",
"0.6582968",
"0.6557039",
"0.6541816",
"0.65373224",
"0.65128887",
"0.6485519",
"0.6483913",
"0.6462311",
"0.6451232",
"0.6425772",
"0.6422928",
"0.64174014",
"0.641484... | 0.8282157 | 0 |
Test this record for compatibility with another record. Operations combining data from multiple records must know that the records are mutually compatible. This routine checks the 'compat' property of each attribute (if set) to enforce compatibility. 'compat' is a dictionary where the keys are values or callables and t... | def TjCq(YKHO, RKYb):
pTc2 = lambda WKvO: WKvO if isinstance(WKvO, tuple) else (WKvO,)
for hkS8, lhy8 in YKHO.attributes.items():
try:
Gv0t = lhy8['compat']
except KeyError:
continue
try:
XigM = YKHO[hkS8]
except KeyError:
continue
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eeWE(*qIxc, **B2fa):\n pass",
"def zx6r(YKHO, Elif: Dataset, XDhl: str) -> bool:\n\n def Gv0t(WKvO: Variable, LVAh: Variable) -> bool:\n return getattr(WKvO, XDhl)(LVAh)\n return YKHO._coord_names == Elif._coord_names and BfDw.dict_equiv(YKHO._variables, Elif._variables, compat=Gv0t)",
"def... | [
"0.64108896",
"0.62708306",
"0.57524425",
"0.56974286",
"0.56895393",
"0.5629755",
"0.56023777",
"0.5588962",
"0.55448836",
"0.54896826",
"0.5463522",
"0.5436109",
"0.5365769",
"0.53630805",
"0.53516376",
"0.53358066",
"0.5333775",
"0.5270117",
"0.52629423",
"0.5242045",
"0.5... | 0.69229794 | 0 |
A list of ``cybox.core.Observable`` instances. This can be set to a single object instance or a list of objects. | def fPW4(YKHO):
if not YKHO.observable:
return []
elif YKHO.observable.observable_composition:
return YKHO.observable.observable_composition.observables
return [YKHO.observable] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fPW4(YKHO, BWXx):\n if not BWXx:\n return\n if isinstance(BWXx, cBwQ):\n YKHO.observable = BWXx\n elif BfDw.is_sequence(BWXx):\n if len(BWXx) == 1:\n YKHO.add_observable(BWXx[0])\n return\n fimZ = H3wx()\n fimZ.operator = YKHO.observable_composi... | [
"0.7304017",
"0.6942031",
"0.67120343",
"0.67120343",
"0.64371336",
"0.60785323",
"0.60300857",
"0.6011032",
"0.5984823",
"0.5883705",
"0.57764584",
"0.56725025",
"0.564629",
"0.55860764",
"0.5577667",
"0.5572877",
"0.5549226",
"0.5524963",
"0.5521289",
"0.5498795",
"0.549879... | 0.6632542 | 4 |
Adds an alternative id to the ``alternative_id`` list property. | def V14h(YKHO, BWXx):
if not BWXx:
return
YKHO.alternative_id.append(BWXx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N07m(YKHO, Vig9):\n YKHO.alternative = Vig9",
"def b8hj(YKHO, **B2fa):\n qrTf = B2fa['element'].attrib['ID']\n if not qrTf in YKHO.IDs:\n YKHO.IDs.add(qrTf)\n if len(YKHO.IDs) % 10000 == 0:\n Few0.info('%s IDs' % len(YKHO.IDs))",
"def Iyvp(Q6kx):\n if not hasattr(Q6kx, ... | [
"0.5840234",
"0.58279365",
"0.5737666",
"0.5606671",
"0.55418366",
"0.5540494",
"0.5538142",
"0.53798383",
"0.5374086",
"0.52939475",
"0.52933866",
"0.52798367",
"0.518487",
"0.51552916",
"0.512462",
"0.51082885",
"0.51047105",
"0.50369734",
"0.5012707",
"0.5012707",
"0.50127... | 0.8360176 | 0 |
Adds an valid time position to the ``valid_time_positions`` property list. If `value` is ``None``, no item is added to the ``value_time_positions`` list. | def UzfU(YKHO, BWXx):
YKHO.valid_time_positions.append(BWXx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H2v5(YKHO, BWXx):\n a1PO = ITS7.time()\n YKHO.values.insert(0, BWXx)\n YKHO.times.insert(0, a1PO)\n if len(YKHO.values) > YKHO.depth:\n YKHO.values.pop()\n YKHO.times.pop()",
"def E4Ij(Emd4, BWXx):\n if not isinstance(BWXx, ITS7) or BWXx is None:\n return False\n return... | [
"0.55345255",
"0.543224",
"0.5227162",
"0.5177134",
"0.50871474",
"0.5055503",
"0.5017175",
"0.49438372",
"0.49062502",
"0.48756808",
"0.48495078",
"0.47698626",
"0.47393095",
"0.4733864",
"0.47279373",
"0.46983418",
"0.46969804",
"0.4683357",
"0.46730685",
"0.4654737",
"0.46... | 0.8765246 | 0 |
Add a new Kill Chain Phase reference to this Indicator. | def txgT(YKHO, BWXx):
YKHO.kill_chain_phases.append(BWXx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(Ro_8, *, q1pH: Optional[pulumi.Input[str]]=None, Kubw: Optional[pulumi.Input[str]]=None):\n if q1pH is not None:\n qe4Y.set(Ro_8, 'kill_chain_name', q1pH)\n if Kubw is not None:\n qe4Y.set(Ro_8, 'phase_name', Kubw)",
"def FIMM(Ro_8, *, q1pH: Optional[pulumi.Input[str]]=None, Kubw: Op... | [
"0.59279084",
"0.59279084",
"0.4917769",
"0.49134803",
"0.47666383",
"0.4741123",
"0.4735961",
"0.4731326",
"0.46846628",
"0.46545237",
"0.46383235",
"0.45722058",
"0.45152143",
"0.45149922",
"0.4498337",
"0.44739908",
"0.44695422",
"0.44481722",
"0.44426608",
"0.44275475",
"... | 0.7412885 | 0 |
`router.get_teams(sorts=['id'])` is returning a list of reviews with missing 'name' and 'website' fields. Update the endpoint so that it correctly includes the 'name' and 'website' fields. | def jKJy(YKHO):
YKHO.assertEqual(oimG.get_teams(sorts=['id']), [{'id': 1, 'name': 'IGN', 'website': 'https://www.ign.com/', 'num_reviews': 6, 'num_reviewers': 3}, {'id': 2, 'name': 'metacritic', 'website': 'http://www.metacritic.com', 'num_reviews': 6, 'num_reviewers': 4}, {'id': 3, 'name': 'PCGamer', 'website': 'h... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oNYL(YKHO):\n YKHO.assertEqual(oimG.get_reviews(sorts=['reviewer__team__name', 'id']), [{'reviewer': 1, 'id': 1, 'created_on': '2017-10-29 21:15:16.529267', 'normalized_score': 100, 'game': 1, 'title': \"John Wall's Review of Assassins Creed Origins\"}, {'reviewer': 2, 'id': 4, 'created_on': '2017-10-29 21:... | [
"0.71372426",
"0.63564765",
"0.6245811",
"0.60995597",
"0.59567076",
"0.58984345",
"0.5878346",
"0.5826717",
"0.5792314",
"0.5777545",
"0.5749997",
"0.5732164",
"0.5697353",
"0.56753105",
"0.56420416",
"0.56358373",
"0.56188583",
"0.5599726",
"0.55916333",
"0.55853313",
"0.55... | 0.76113844 | 0 |
Initialises a new asteroid. | def FIMM(YKHO, oeNL, zNig=_rMO, iBLD=m_OX):
YKHO._size = zNig
if iBLD == m_OX:
iBLD = XN37.random_speed()
YKHO._speed = iBLD
YKHO._pos = oeNL
r1VO = zNig * _40k.SIZE_MODIFIER - _40k.SIZE_NORMALIZER
YKHO._radius = r1VO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, tJm0, Vjhr):\n super(_40k, YKHO).__init__()\n YKHO.screen = Vjhr\n YKHO.image = a9eO.image.load('./assets/asteroid.bmp')\n YKHO.rect = YKHO.image.get_rect()\n YKHO.rect.x = YKHO._get_random_x_pos()\n YKHO.rect.y = 0\n YKHO.y = float(YKHO.rect.y)\n YKHO.speed_factor = tJm0.ast... | [
"0.731049",
"0.71765715",
"0.70594037",
"0.6759217",
"0.66703105",
"0.6637707",
"0.6621597",
"0.65814257",
"0.6567711",
"0.6304765",
"0.6191578",
"0.61636794",
"0.6087415",
"0.606997",
"0.5970416",
"0.59192455",
"0.58763176",
"0.58051467",
"0.5801714",
"0.579302",
"0.5715707"... | 0.59556776 | 15 |
Calculates normalization constants for matrix | def kY2P(EcVT):
return (EcVT.mean(axis=0), EcVT.std(axis=0)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LgOz(YKHO):\n for H5ew in YKHO._matrix.keys():\n BWXx = YKHO._matrix[H5ew]\n if BWXx[0] > 0.0 and BWXx[1] != 0.0 and (BWXx[0] != 1.0):\n BWXx[1] = BWXx[1] / BWXx[0]",
"def kwsU(vb7U):\n return vb7U / oyIN.sum(vb7U ** 2, axis=1, keepdims=True)",
"def kY2P(EcVT):\n return (o... | [
"0.7489",
"0.74705034",
"0.7256996",
"0.7173628",
"0.71417457",
"0.7140871",
"0.7102672",
"0.70912534",
"0.7057313",
"0.7048188",
"0.7031504",
"0.7013765",
"0.7010489",
"0.7009442",
"0.6986467",
"0.6951511",
"0.6940729",
"0.6921214",
"0.6888122",
"0.6888071",
"0.6881209",
"... | 0.7185604 | 3 |
A random string not unique, but has around 1 in a million chance of collision (with the default 8 character length). e.g. 'fubui5e6' | def tuKI(u54L=8, gLiZ=BHGE + JSRc):
while True:
yield ''.join([Acvy(gLiZ) for bGrB in range(u54L)]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Gi98(u54L=8):\n return ''.join(tuKI.sample(sA85, u54L))",
"def YzjY(u54L=12):\n tO9_ = HBct.sha256()\n GIN8 = ''\n for bGrB in range(u54L):\n GIN8 += FXSn.choice(vIwR.ascii_letters)\n tO9_.update(GIN8.encode('ascii'))\n return tO9_.hexdigest()[:u54L]",
"def BWvy():\n gLiZ = vIwR... | [
"0.7679463",
"0.7463087",
"0.7392747",
"0.7387094",
"0.7240017",
"0.71798915",
"0.7178012",
"0.71684057",
"0.7030102",
"0.70199615",
"0.70101976",
"0.69903004",
"0.6985733",
"0.6969517",
"0.69580853",
"0.69563794",
"0.6946201",
"0.6938253",
"0.6934836",
"0.6928328",
"0.692829... | 0.0 | -1 |
Get mask for `nan` joints | def PbUT(YKHO) -> ht2j.Tensor:
return ~ht2j.isnan(YKHO._get_tensor()[:, 0]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xMnu(YKHO) -> oyIN.array:\n return YKHO.nulls_mask",
"def L_aS(YKHO):\n return oyIN.isnan(YKHO.x) | oyIN.isnan(YKHO.y) | oyIN.isnan(YKHO.e)",
"def RSme(WKvO):\n return oLG2.where(oLG2.isnan(WKvO), 0.0, WKvO)",
"def MCsi(YKHO):\n return ~oyIN.isfinite(YKHO.time)",
"def ONmC(tyNF):\n for A... | [
"0.70764655",
"0.6775695",
"0.67628306",
"0.6720601",
"0.65509784",
"0.65479034",
"0.6505845",
"0.6478717",
"0.6442141",
"0.6428374",
"0.6401448",
"0.63984966",
"0.6374149",
"0.6342137",
"0.6342137",
"0.62679154",
"0.6259133",
"0.6253657",
"0.6242882",
"0.62304187",
"0.622441... | 0.7276164 | 0 |
Loads the uncorrupted training (or validation) data (i.e. the groundtruth) from disk, rotates the images and divides them into patches with a stride of half the patch_size | def MkRP(cLxn, i6rU, FTrt):
TmkW = []
for YRbF in i6rU:
Ehxs = 'satImage_%.3d' % YRbF
s9Nk = cLxn + Ehxs + '.png'
if Hy7s.path.isfile(s9Nk):
x9o_ = SnjK.imread(s9Nk)
NnY2 = Einh(x9o_, (Fv2L.train_image_resize, Fv2L.train_image_resize))
dnxM = ZzpZ(NnY2... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BHLr(j3aw, FTrt=(32, 32)):\n IEEd = Hy7s.path.join('datasets', 'sources')\n nH5H = Hy7s.path.join(IEEd, j3aw)\n ZiYd = nH5H + '.zip'\n KwnL = ['.jpg', '.tif', '.tiff', '.png', '.bmp', '.pgm']\n Tmv3 = Hy7s.path.join('datasets', 'network', 'train_patches_48')\n TnTT(ZiYd, IEEd, file_ext=KwnL)\... | [
"0.6572559",
"0.6534054",
"0.65192974",
"0.6380646",
"0.62304467",
"0.6203166",
"0.61087364",
"0.60990226",
"0.6086474",
"0.60506034",
"0.5950421",
"0.5944463",
"0.59378517",
"0.5867243",
"0.58667505",
"0.58544666",
"0.5841748",
"0.5839325",
"0.5829199",
"0.579944",
"0.579917... | 0.64933425 | 3 |
Adds a subtree to a node | def kRgV(YKHO, W7EH, LOks):
if YKHO.root is not None:
vMYE = YKHO._find_node(W7EH)
if vMYE is not None:
_9K6 = jth9.deepcopy(LOks.root)
vMYE.children.append(_9K6)
else:
raise Exception('Unable to add subtree') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H2v5(YKHO, wEf2, LOks):\n YKHO.branches[wEf2] = LOks",
"def g5gD(_9jN, Q6kx):\n _9jN['children'].append(Q6kx)",
"def g5gD(YKHO, Q6kx):\n YKHO.sub_nodes.append(Q6kx)",
"def kRgV(YKHO, LOks: GameTree) -> None:\n YKHO._subtrees.append(LOks)\n YKHO._update_white_win_probability()",
"def _oky... | [
"0.7453257",
"0.73903733",
"0.72883713",
"0.7205257",
"0.716209",
"0.714892",
"0.7116293",
"0.7110803",
"0.706302",
"0.70376706",
"0.6993145",
"0.6975285",
"0.68677205",
"0.6806823",
"0.67397517",
"0.6709276",
"0.670266",
"0.6669876",
"0.6669876",
"0.6663651",
"0.66602474",
... | 0.7453378 | 0 |
Testing the GET / API with local sites | def oCwZ(YKHO):
YKHO._login_user(local_site=True)
uDyx = YKHO.api_get(KelX('local-site-1'), expected_mimetype=VXaY)
YKHO.assertEqual(uDyx['stat'], 'ok')
YKHO.assertIn('uri_templates', uDyx)
YKHO.assertIn('repository', uDyx['uri_templates'])
YKHO.assertEqual(uDyx['uri_templates']['repository'], '... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DPBd(YKHO):\n geh0 = YKHO.client.get(YKHO.url)\n YKHO.assertEqual(geh0.status_code, 200)",
"def DPBd(YKHO):\n geh0 = YKHO.client.get(YKHO.url)\n YKHO.assertEqual(geh0.status_code, 200)",
"def DPBd(YKHO):\n geh0 = YKHO.client.get(YKHO.url)\n YKHO.assertEqual(geh0.status_code, 200)",
"def... | [
"0.7522358",
"0.7522358",
"0.7522358",
"0.7522358",
"0.7522358",
"0.73879063",
"0.7385465",
"0.7379746",
"0.73065746",
"0.72844094",
"0.7173572",
"0.7124871",
"0.7075239",
"0.7057344",
"0.703781",
"0.70291406",
"0.7023174",
"0.69885856",
"0.69825536",
"0.69762164",
"0.6972039... | 0.7235856 | 10 |
Testing the GET / API for capabilities with the DVCS feature disabled | def ze8_(YKHO):
with KT5P(P2xn.feature_id, False):
YKHO.assertFalse(P2xn.is_enabled())
uDyx = YKHO.api_get(KelX(), expected_mimetype=VXaY)
YKHO.assertEqual(uDyx['stat'], 'ok')
YKHO.assertIn('capabilities', uDyx)
glYd = uDyx['capabilities']
YKHO.assertIn('review_requests', glYd)
Y... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ihZa(YKHO):\n with KT5P(P2xn.feature_id, True):\n uDyx = YKHO.api_get(KelX(), expected_mimetype=VXaY)\n YKHO.assertEqual(uDyx['stat'], 'ok')\n YKHO.assertIn('capabilities', uDyx)\n glYd = uDyx['capabilities']\n YKHO.assertIn('review_requests', glYd)\n Dl3D = glYd['review_requests']\n ... | [
"0.7572637",
"0.61729836",
"0.61444354",
"0.5990291",
"0.5919774",
"0.58819234",
"0.5869608",
"0.58602375",
"0.58434665",
"0.5840674",
"0.5840674",
"0.5840674",
"0.5840674",
"0.5840674",
"0.5840674",
"0.5840674",
"0.5840674",
"0.5840674",
"0.5840674",
"0.5840674",
"0.5840674"... | 0.7841846 | 0 |
Passes test if `KeyValueStorage` initialization is successful and `instance.key == value` and `instance[key] == value` behaviour is correct. | def U1Q6(Ue8x):
KAOR = TqB3(Ue8x)
assert KAOR['name'] == 'kek'
assert KAOR.name == 'kek'
assert KAOR['power'] == 9001
assert KAOR.power == 9001 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aRTm(YKHO):\n YKHO.assertTrue(L66n.ContainsKeyValue('key', 1) == {'key': 1})",
"def oUCe(Ue8x):\n KAOR = TqB3(Ue8x)\n with trZe.raises(TypeError, match=\"'KeyValueStorage' object does not support item assignment\"):\n KAOR['new_name'] = 'new kek'",
"def v7FK(Ue8x):\n KAOR = TqB3(Ue8x)\n ... | [
"0.66022456",
"0.6581942",
"0.6508448",
"0.6329098",
"0.6318062",
"0.6305961",
"0.62660795",
"0.62287515",
"0.60716516",
"0.5984566",
"0.5948126",
"0.5890137",
"0.58878225",
"0.5804033",
"0.5795121",
"0.5769665",
"0.57454234",
"0.5736296",
"0.57257473",
"0.5724399",
"0.571709... | 0.64545685 | 3 |
Add new parameter vectors and residuals to the history. | def mJov(YKHO, fUYa, ed_d):
fUYa = oyIN.atleast_2d(fUYa)
ed_d = oyIN.atleast_2d(ed_d)
PLkp = oyIN.atleast_1d((ed_d ** 2).sum(axis=-1))
V8X0 = PLkp.argmin()
SfHB = PLkp[V8X0]
if SfHB < YKHO.best_critval:
YKHO.best_index = V8X0 + YKHO.n_fun
YKHO.best_x = fUYa[V8X0]
YKHO.bes... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VZKw(YKHO, **B2fa):\n YKHO.history.append(B2fa)",
"def aqqI(YKHO, epBp, WKvO, LVAh):\n YKHO.z_history.append(epBp)\n YKHO.x_history.append(WKvO)\n YKHO.y_history.append(LVAh)",
"def Od61(YKHO):\n YKHO._history.append(YKHO._students[:])",
"def PAwi(YKHO):\n return",
"def P_rC(YKHO, **B... | [
"0.6827907",
"0.67057604",
"0.6528598",
"0.6356566",
"0.63537127",
"0.6322179",
"0.62497693",
"0.6168264",
"0.61338043",
"0.61043984",
"0.60037774",
"0.5951761",
"0.59307116",
"0.59307116",
"0.5906835",
"0.5892187",
"0.585872",
"0.5856533",
"0.5841646",
"0.5827996",
"0.582110... | 0.0 | -1 |
Add new parameter vectors and residuals to the history. | def zat5(YKHO, fUYa, ed_d, _Epy):
fUYa = oyIN.atleast_2d(fUYa)
ed_d = oyIN.atleast_2d(ed_d)
pwAP = fUYa * _Epy['radius'] + _Epy['x']
R7eh = ed_d + _Epy['residuals']
YKHO.add_entries(pwAP, R7eh) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VZKw(YKHO, **B2fa):\n YKHO.history.append(B2fa)",
"def aqqI(YKHO, epBp, WKvO, LVAh):\n YKHO.z_history.append(epBp)\n YKHO.x_history.append(WKvO)\n YKHO.y_history.append(LVAh)",
"def Od61(YKHO):\n YKHO._history.append(YKHO._students[:])",
"def PAwi(YKHO):\n return",
"def P_rC(YKHO, **B... | [
"0.6827907",
"0.67057604",
"0.6528598",
"0.6356566",
"0.63537127",
"0.6322179",
"0.62497693",
"0.6168264",
"0.61338043",
"0.61043984",
"0.60037774",
"0.5951761",
"0.59307116",
"0.59307116",
"0.5906835",
"0.5892187",
"0.585872",
"0.5856533",
"0.5841646",
"0.5827996",
"0.582110... | 0.0 | -1 |
Apply a function to the elements of an iterable, without returning. | def BL2I(m2Zb, OxJJ):
for WKvO in OxJJ:
m2Zb(WKvO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mjGq(JfyU):\n\n @zaGL(JfyU)\n def h3Xc(WhY1, **B2fa):\n if hasattr(WhY1, '__iter__') & (type(WhY1) not in exCv):\n ECmi = YLnl(JfyU, **B2fa)\n return map(ECmi, WhY1)\n else:\n return JfyU(WhY1, **B2fa)\n return h3Xc",
"def saog(JfyU, OxJJ):\n return ... | [
"0.7665899",
"0.7611083",
"0.75026244",
"0.746018",
"0.74410397",
"0.7403956",
"0.7382677",
"0.7368679",
"0.7368679",
"0.73600423",
"0.732562",
"0.72585595",
"0.72348815",
"0.7100112",
"0.7089125",
"0.70881027",
"0.7019428",
"0.6990883",
"0.6989725",
"0.6986323",
"0.6944756",... | 0.72868717 | 11 |
Defining setUp() method that runs prior to each test. | def FCbF(YKHO):
YKHO.shoppings = EmTK()
YKHO.shoppings.Shoppinglists = {} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FCbF(YKHO):\n pass",
"def FCbF(YKHO):\n pass",
"def FCbF(YKHO) -> None:\n pass",
"def FCbF(YKHO) -> None:\n pass",
"def FCbF(YKHO) -> None:\n pass",
"def FCbF(YKHO):\n return",
"def FCbF(YKHO):\n pass",
"def FCbF(YKHO):\n pass",
"def FCbF(YKHO):\n pass",
"def FCbF(Y... | [
"0.88780135",
"0.8870516",
"0.87626696",
"0.87626696",
"0.87626696",
"0.8762523",
"0.87095284",
"0.87095284",
"0.87095284",
"0.87095284",
"0.87095284",
"0.87095284",
"0.87095284",
"0.87095284",
"0.87095284",
"0.87095284",
"0.87095284",
"0.87095284",
"0.87095284",
"0.87095284",
... | 0.0 | -1 |
defining method to test for adding a shopping list with an empty title | def c_Cp(YKHO):
hlel = YKHO.shoppings.create('', 'owner')
YKHO.assertEqual(4, hlel, 'please fill all fields') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o4vZ(YKHO):\n YKHO.shoppings.ShoppingItems = []\n hlel = YKHO.shoppings.createitem('', 'mate', 'muthomi@gmail.com')\n YKHO.assertEqual(3, hlel, 'Cannot add an empty item ')",
"def ooXv(YKHO):\n YKHO.flavia.shopping_lists.append('monday')\n YKHO.flavia.shopping_lists.append('tuesday')\n YKHO... | [
"0.75536656",
"0.73979753",
"0.7256845",
"0.71155864",
"0.699125",
"0.6981524",
"0.6963785",
"0.68544346",
"0.6841871",
"0.68218243",
"0.67952436",
"0.6754611",
"0.67451376",
"0.67421913",
"0.6719165",
"0.6675583",
"0.6652233",
"0.664075",
"0.66283417",
"0.66102046",
"0.65941... | 0.63857377 | 34 |
defining method to test adding an empty item in a shoppinglist | def o4vZ(YKHO):
YKHO.shoppings.ShoppingItems = []
hlel = YKHO.shoppings.createitem('', 'mate', 'muthomi@gmail.com')
YKHO.assertEqual(3, hlel, 'Cannot add an empty item ') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rIAI(YKHO):\n YKHO.shoppings.Shoppingitems = []\n YKHO.shoppings.createitem('mate', 'mate', 'muthomi@gmail.com')\n hlel = YKHO.shoppings.itemedit('', 'mate')\n YKHO.assertEqual(3, hlel, 'The item can not be empty')",
"def AWQt(YKHO):\n CS5l = {'gold coin': 42, 'rope': 1}\n Aofo = s59z(CS5l,... | [
"0.8042224",
"0.78388476",
"0.7785723",
"0.75801015",
"0.75682914",
"0.7455309",
"0.7422086",
"0.7404664",
"0.7368164",
"0.73049843",
"0.72939813",
"0.717169",
"0.71243346",
"0.7097935",
"0.70685494",
"0.7014302",
"0.70083153",
"0.6945273",
"0.6943191",
"0.69231176",
"0.68961... | 0.88122827 | 0 |
Semiautomatic effective epsilon threshold calculation. | def aKca(oZuG, _hZ2, d2kN, hDQp, iFdF):
CaIQ = hDQp.mean()
EnSH = _hZ2 * oyIN.log(1 + d2kN) / oyIN.log(1 + CaIQ)
Tw0O = oyIN.max(1 / (d2kN * hDQp))
OUjI = oyIN.min(1 / (d2kN * hDQp))
if EnSH > Tw0O:
EnSH = Tw0O
elif EnSH < OUjI:
EnSH = (OUjI + EnSH) / 2
return EnSH | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _hZ2(YKHO) -> float:\n pass",
"def _hZ2():\n return ntp8",
"def _hZ2():\n return ntp8",
"def _hZ2(YKHO):\n return YKHO._epsilon",
"def _hZ2(YKHO) -> float:\n AjzU = YKHO.get_d1()\n if YKHO.option_type == 'put':\n return YKHO.So * YKHO.T * oyIN.exp(-YKHO.q * YKHO.T) * aevO.norm.... | [
"0.7819043",
"0.75500256",
"0.74459016",
"0.7188054",
"0.71817696",
"0.7070345",
"0.7064168",
"0.7062855",
"0.7056065",
"0.7054208",
"0.7021907",
"0.6994847",
"0.6989077",
"0.69733465",
"0.6964736",
"0.6923952",
"0.6897569",
"0.6888619",
"0.6853353",
"0.68518925",
"0.68506694... | 0.62860024 | 68 |
Tokenization/string cleaning for all datasets except for SST. Every dataset is lower cased except for TREC | def LNLQ(vIwR, sG8V=False):
vIwR = ZbWC.sub("[^A-Za-z0-9(),!?\\'\\`]", ' ', vIwR)
vIwR = ZbWC.sub("\\'s", " 's", vIwR)
vIwR = ZbWC.sub("\\'ve", " 've", vIwR)
vIwR = ZbWC.sub("n\\'t", " n't", vIwR)
vIwR = ZbWC.sub("\\'re", " 're", vIwR)
vIwR = ZbWC.sub("\\'d", " 'd", vIwR)
vIwR = ZbWC.sub("\\... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KElI(__n6):\n if isinstance(__n6, list):\n return [str.lower(YRbF.replace(' ', '')) for YRbF in __n6]\n elif isinstance(__n6, str):\n return str.lower(__n6.replace(' ', ''))\n else:\n return ' '",
"def TfmK(__n6, xhP4):\n b0j5 = Dhdw.tokenize.RegexpTokenizer('[a-zA-Z]+')\n ... | [
"0.7232728",
"0.71133167",
"0.6478193",
"0.6459825",
"0.6423742",
"0.6388917",
"0.63091993",
"0.6302099",
"0.6284882",
"0.62493134",
"0.62384623",
"0.6198727",
"0.6182902",
"0.6179399",
"0.61645365",
"0.6151299",
"0.61468154",
"0.61398226",
"0.6132533",
"0.6131448",
"0.610127... | 0.0 | -1 |
Returns a list of nodes in the order of a breadth first traversal. | def EUZe(tk5Y):
fSCU = []
gGq6 = MUE7()
gGq6.append(tk5Y)
while len(gGq6) is not 0:
Q6kx = gGq6.popleft()
for aUGN in Q6kx:
if isinstance(aUGN, vDQM):
gGq6.append(aUGN)
fSCU.append(Q6kx)
return fSCU | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fP5l(YKHO):\n tk5Y = YKHO.get_root()\n if tk5Y:\n return list(tk5Y.gen_subtree_breadth_first())",
"def E5m8(YKHO, oPhP):\n hlel = []\n gGq6 = MUE7()\n gGq6.append(oPhP)\n try:\n while True:\n Q6kx = gGq6.popleft()\n hlel.append(Q6kx)\n if isins... | [
"0.8017171",
"0.78780293",
"0.76055765",
"0.74218667",
"0.723668",
"0.721662",
"0.71879953",
"0.7177095",
"0.7147198",
"0.7103045",
"0.708081",
"0.70563763",
"0.70485663",
"0.69875157",
"0.6984286",
"0.69750553",
"0.6961512",
"0.6934146",
"0.6918034",
"0.69094396",
"0.6899175... | 0.6716539 | 35 |
Checks if a list of nodes representing a path can be found in a tree given a node. | def uYCU(Q6kx, list):
if len(list) == 0:
return True
else:
for aUGN in Q6kx:
if aUGN == list[-1]:
return uYCU(aUGN, list[:-1])
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MlBJ(Q6kx, x7hD):\n for rUTj in x7hD:\n if Q6kx is rUTj:\n return True\n return False",
"def RIUO(YKHO, pmON=None, tk5Y=None):\n sjXb = pmON.split('/')\n sjXb = list(filter(lambda WKvO: WKvO != '', sjXb))\n Q6kx = tk5Y\n for H5ew in sjXb:\n try:\n if H5ew... | [
"0.7043879",
"0.6922629",
"0.6763539",
"0.6730147",
"0.6711057",
"0.6688411",
"0.6543067",
"0.6527047",
"0.6517692",
"0.65142876",
"0.6446056",
"0.6429699",
"0.64285624",
"0.6373603",
"0.6373421",
"0.6342608",
"0.6307398",
"0.628912",
"0.6242001",
"0.622228",
"0.61768645",
... | 0.6386585 | 13 |
Pop and return next request ready to be checked in cache. Request is queued in caching queue. | def lbA4(YKHO) -> h8nf[AzJI[str, str]]:
with YKHO.lock:
yORD, qv1X = YKHO._first(YKHO.new, True)
if yORD is not None and qv1X is not None:
qv1X.start_timer()
YKHO.caching[yORD] = qv1X
return yORD
else:
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BEuN(YKHO):\n if YKHO.cache:\n return YKHO.cache.pop(0)\n else:\n return YKHO.queue.pop(0)",
"def zwJI(YKHO):\n bD7m = YKHO.server.lpop(YKHO.redis_key)\n if bD7m:\n return YKHO.make_requests_from_url(bD7m)",
"def zwJI(YKHO, tPnp):\n try:\n return YKHO.pending_requ... | [
"0.738608",
"0.7189451",
"0.71455663",
"0.7057643",
"0.668013",
"0.64971906",
"0.64545226",
"0.64394975",
"0.6399659",
"0.6367999",
"0.634282",
"0.6323148",
"0.6323148",
"0.6316504",
"0.63007",
"0.62910146",
"0.62819713",
"0.62819713",
"0.6270456",
"0.6216296",
"0.61829257",
... | 0.586972 | 54 |
Draw everything on the game screen | def JmFt(YKHO):
YKHO.win.blit(YKHO.backgrounds[YKHO.curr_bg], (0, 0))
for bCYe in YKHO.pipes:
bCYe.draw(YKHO.win)
YKHO.base.draw(YKHO.win)
if YKHO.is_over:
YKHO.win.blit(YKHO.game_over_img, ((YKHO.win.get_width() - YKHO.game_over_img.get_width()) // 2, 40))
YKHO.score.draw(YKHO.w... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _1tc(YKHO):\n YKHO.window.fill((0, 0, 0))\n YKHO.__draw_grid__()\n YKHO.snake.draw(YKHO.window)\n YKHO.food.draw(YKHO.window)\n YKHO.__draw_text__()\n a9eO.display.update()",
"def JmFt(YKHO):\n YKHO.screen.fill(a9eO.Color(255, 255, 255))\n for httR in YKHO.model.myWalls:\n YKHO... | [
"0.84137183",
"0.8402302",
"0.8388669",
"0.8372103",
"0.83678335",
"0.8338143",
"0.8338116",
"0.83029556",
"0.82621706",
"0.8240321",
"0.8233549",
"0.82217336",
"0.82217336",
"0.8193246",
"0.81651986",
"0.815334",
"0.81531",
"0.81528777",
"0.81429315",
"0.81247926",
"0.812473... | 0.789634 | 51 |
Euclidean distance between the two poses | def xvHe(hQHm, jlSq):
return oyIN.hypot(hQHm[0] - jlSq[0], hQHm[1] - jlSq[1]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def usGr(gwqK: np.array, yCTS: np.array) -> oyIN.float:\n return oyIN.sqrt(oyIN.sum(oyIN.square(gwqK - yCTS)))",
"def usGr(gwqK, yCTS):\n return epAf.sqrt((gwqK.x - yCTS.x) ** 2 + (gwqK.y - yCTS.y) ** 2)",
"def pImw(X3qZ: np.ndarray, ZYCo: np.ndarray) -> oyIN.float64:\n return oyIN.sqrt(oyIN.sum((ZYCo... | [
"0.7646533",
"0.76103854",
"0.7591275",
"0.75863963",
"0.7559769",
"0.7540846",
"0.75325",
"0.7526758",
"0.7520789",
"0.7516442",
"0.7509767",
"0.7498356",
"0.7482563",
"0.7477038",
"0.7473463",
"0.745401",
"0.7449759",
"0.74416214",
"0.7418625",
"0.74152887",
"0.7407214",
... | 0.0 | -1 |
Get a subgraph starting from this node and going further k step. A child node is only considered when it has different type from its parent. All types will be considered. All branches will be considered. Input | def next(YKHO, YPaw, FRul):
if YKHO._next:
return YKHO._next
RcgH = [([FRul(hbQT)], YKHO) for hbQT in YKHO.type]
pwQs = []
for MgeT in RcgH:
fHgE, MkEV = (MgeT[1], MgeT[0][-1])
if len(MgeT[0]) > YPaw or len(fHgE.children) == 0:
pwQs.append(MgeT[0])
continu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def od4e(pNZh, G1Hx):\n vQUN = [FLjt(YRbF, [], []) for YRbF in range(G1Hx)]\n jz_W = tuKI.sample(pNZh.nodeList, G1Hx)\n for d6pt, Q6kx in enumerate(jz_W):\n vQUN[d6pt].addNode(Q6kx)\n rxA2 = jth9.deepcopy(pNZh.nodeList)\n for Q6kx in jz_W:\n rxA2.remove(Q6kx)\n while rxA2:\n ... | [
"0.6401383",
"0.59639543",
"0.593427",
"0.5703204",
"0.5583686",
"0.55419624",
"0.5516334",
"0.549509",
"0.54661494",
"0.5456723",
"0.53900576",
"0.5380444",
"0.5342376",
"0.53121555",
"0.531049",
"0.5289234",
"0.52772075",
"0.5270548",
"0.5251339",
"0.5222333",
"0.52185726",... | 0.0 | -1 |
Handle pygame events by forwarding them to the display and environment vehicle. | def rZJN(YKHO):
for tvqc in a9eO.event.get():
if tvqc.type == a9eO.QUIT:
YKHO.env.close()
YKHO.sim_surface.handle_event(tvqc)
if YKHO.env.vehicle:
zrdr.handle_event(YKHO.env.vehicle, tvqc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rZJN(YKHO):\n for tvqc in a9eO.event.get():\n if tvqc.type == a9eO.QUIT:\n YKHO.handle_quit()\n YKHO.handle_inputs(tvqc)",
"def rZJN(YKHO):\n for tvqc in a9eO.event.get():\n if tvqc.type == a9eO.QUIT:\n YKHO.running = False\n break\n elif tvq... | [
"0.74052",
"0.72850025",
"0.72591734",
"0.72401524",
"0.7171716",
"0.71305084",
"0.7026648",
"0.70053816",
"0.69567835",
"0.67809504",
"0.6759312",
"0.67455107",
"0.672275",
"0.6700628",
"0.6696703",
"0.6696038",
"0.66847485",
"0.66831285",
"0.6677426",
"0.6676845",
"0.666714... | 0.85030764 | 0 |
This endpoint is read only, no posts, results in 403 | def yf9F(YKHO):
geh0 = YKHO.client.post(YKHO.user_profile_url, {'username': 'dummy_username'})
YKHO.assertEqual(geh0.status_code, 403) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e_b4(YKHO):\n raise untr()",
"def NMoC(YKHO, QePW):\n raise wPvU",
"def DPBd(YKHO):\n geh0 = YKHO.client.post(YKHO.url)\n YKHO.assertEqual(geh0.status_code, 403)",
"def wC_R(YKHO):\n geh0 = YKHO.client.post(YKHO.url)\n YKHO.assertEqual(geh0.status_code, 403)",
"def wC_R(YKHO):\n ge... | [
"0.7231709",
"0.71745586",
"0.7082134",
"0.7051019",
"0.7051019",
"0.7051019",
"0.7051019",
"0.7051019",
"0.7051019",
"0.7051019",
"0.7051019",
"0.7046638",
"0.70265305",
"0.6967413",
"0.68939745",
"0.68939745",
"0.68939745",
"0.68939745",
"0.68939745",
"0.68939745",
"0.68939... | 0.0 | -1 |
The type of the parameter. Setting the dtype value is equivalent to casting the value of the parameter | def yDqo(YKHO):
return YKHO._dtype | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yDqo(YKHO):\n return YKHO._type_params[0]",
"def yDqo(YKHO):\n return YKHO.value.dtype",
"def jKzz(yDqo):\n global _DTYPE\n BjF0 = yDqo",
"def CVhi(YKHO, yDqo):\n raise NotImplementedError",
"def yDqo(YKHO):\n return oyIN.dtype(YKHO.ai_['typestr'])",
"def qxps(d7pR):\n if d7pR ==... | [
"0.76220655",
"0.74367064",
"0.72262317",
"0.71932846",
"0.71855146",
"0.71494883",
"0.71437716",
"0.7112314",
"0.7080552",
"0.7073665",
"0.7048428",
"0.7042051",
"0.6989948",
"0.6981403",
"0.69764405",
"0.69764405",
"0.69764405",
"0.69764405",
"0.69764405",
"0.6950939",
"0.6... | 0.6819504 | 33 |
Returns copies of this parameter on all contexts, in the same order | def OtVm(YKHO):
if YKHO._stype != 'default':
raise RuntimeError("Cannot return copies of Parameter '%s' on all contexts via list_data() because its storage type is %s. Please use row_sparse_data() instead." % (YKHO.name, YKHO._stype))
return YKHO._check_and_get(YKHO._data, list) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SGPK(YKHO):\n return jth9.copy(YKHO._parameters)",
"def cVlt(YKHO):\n gwhp = YKHO.get_encryption_params_bfv()\n QpfX = YKHO.get_context(gwhp)\n mm8P = jth9.deepcopy(QpfX)\n return mm8P",
"def YdHK(YKHO):\n return YKHO.context.parameters_set()",
"def GNS8(YKHO):\n return jth9.deepcopy... | [
"0.65956414",
"0.624218",
"0.61985135",
"0.6173458",
"0.61635923",
"0.6131259",
"0.60936487",
"0.60753787",
"0.6031269",
"0.6022204",
"0.5960251",
"0.59600693",
"0.59590036",
"0.5957022",
"0.5956955",
"0.59481597",
"0.59368074",
"0.59351355",
"0.5920982",
"0.59065133",
"0.588... | 0.0 | -1 |
Sets gradient buffer on all contexts to 0. No action is taken if parameter is uninitialized or doesn't require gradient. | def frhb(YKHO):
if YKHO._grad is None:
return
for YRbF in YKHO._grad:
YRbF[:] = 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RP8F(YKHO):\n assert YKHO._grad_buffers is not None, 'buffers are not initialized.'\n for bGrB, GsOy in YKHO._grad_buffers.items():\n GsOy.zero()",
"def frhb(YKHO):\n for xqoZ in YKHO.params:\n xqoZ.grad = None",
"def MXDI(YKHO):\n pass",
"def vaxF(YKHO):\n YKHO.dw.zero_()\n ... | [
"0.7798676",
"0.7259026",
"0.7244409",
"0.7239315",
"0.7226102",
"0.71949923",
"0.7194767",
"0.7166962",
"0.7115815",
"0.7115815",
"0.70981777",
"0.7083306",
"0.7083306",
"0.7064193",
"0.7064193",
"0.70538485",
"0.704739",
"0.6949522",
"0.694433",
"0.6925643",
"0.6913162",
... | 0.7080355 | 13 |
r"""Applies ``fn`` recursively to every child block as well as self. | def dRO0(YKHO, FYKK):
for c13y in YKHO._children.values():
c13y.apply(FYKK)
FYKK(YKHO)
return YKHO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GQk7(YKHO, FYKK):\n FYKK(YKHO)\n if YKHO.children is not None:\n YKHO.children[0].recurse(FYKK)\n YKHO.children[1].recurse(FYKK)",
"def dRO0(YKHO, FYKK):\n for yR_P in YKHO.children():\n yR_P.apply(FYKK)\n FYKK(YKHO)\n return YKHO",
"def dRO0(YKHO, FYKK):\n for yR_P i... | [
"0.7205092",
"0.71800107",
"0.71800107",
"0.64665276",
"0.64593166",
"0.6438092",
"0.6416077",
"0.6266704",
"0.5861815",
"0.5822774",
"0.57641053",
"0.5666838",
"0.56651235",
"0.54891986",
"0.5458454",
"0.5458454",
"0.53633535",
"0.53202516",
"0.53166324",
"0.53150815",
"0.52... | 0.7783558 | 0 |
KullbackLeibler divergence D(P || Q) for discrete distributions | def bISY(XP5J, vexM):
XP5J = oyIN.asarray(XP5J, dtype=oyIN.float)
vexM = oyIN.asarray(vexM, dtype=oyIN.float)
return oyIN.sum(oyIN.where(XP5J != 0, XP5J * oyIN.log(XP5J / vexM), 0)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dzAH(XP5J: np.ndarray, vexM: np.ndarray, SGf8: float=0.0) -> oyIN.ndarray:\n xFCy = oyIN.sum(XP5J * (oyIN.log(XP5J + SGf8) - oyIN.log(vexM + SGf8)), axis=1)\n return xFCy",
"def dzAH(XP5J, vexM):\n return XP5J * RKD7(XP5J / vexM) + (1.0 - XP5J) * RKD7((1.0 - XP5J) / (1.0 - vexM))",
"def PlVk(V6IE,... | [
"0.6974649",
"0.6965577",
"0.6862965",
"0.67789036",
"0.67278045",
"0.6712727",
"0.6703811",
"0.6701677",
"0.6701591",
"0.66968185",
"0.6649156",
"0.663611",
"0.6627308",
"0.6611933",
"0.6594801",
"0.65688115",
"0.6564932",
"0.6483693",
"0.6456402",
"0.6388821",
"0.6309784",
... | 0.57468694 | 80 |
Squared loss for given w, X, Y | def N77f(yzQ0, EcVT, fuBA):
uuHL = fuBA - EcVT.dot(yzQ0)
return oyIN.dot(uuHL, uuHL) / EcVT.shape[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t2U8(yzQ0, EcVT, fuBA):\n return oyIN.dot(fuBA, fuBA) / EcVT.shape[0] - N77f(yzQ0, EcVT, fuBA)",
"def jUA1(EcVT, fuBA, XcU5):\n dUdo = fuBA.shape\n if len(dUdo) == 1 or (len(dUdo) == 2 and fuBA.shape[1] == 1):\n T4Wy = 2\n else:\n T4Wy = 'fro'\n CkYf = oyIN.linalg.norm(oyIN.dot(E... | [
"0.8230428",
"0.7829368",
"0.76325744",
"0.7523252",
"0.7382239",
"0.7348854",
"0.7348854",
"0.7317029",
"0.729206",
"0.72336936",
"0.72336936",
"0.72038496",
"0.7193081",
"0.71757746",
"0.71662724",
"0.714652",
"0.71315676",
"0.7124823",
"0.7107209",
"0.7089361",
"0.7086301"... | 0.7902795 | 1 |
rsquared value for given w, b, C | def ZHJW(yzQ0, Fg_i, Nq1b):
return 2 * Fg_i.dot(yzQ0) - yzQ0.T.dot(Nq1b).dot(yzQ0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IUi4(yzQ0, Fg_i, Nq1b, Q8DU=0.0, E62I=0.0, **B2fa):\n return 2 * Fg_i.dot(yzQ0) - yzQ0.T.dot(Nq1b).dot(yzQ0) - Q8DU * oyIN.sum(oyIN.abs(yzQ0)) - E62I * oyIN.dot(yzQ0, yzQ0)",
"def k54V(yzQ0, Fg_i, Nq1b):\n return 2 * Fg_i.dot(yzQ0) - yzQ0.T.dot(Nq1b).dot(yzQ0) - EhIg * oyIN.dot(yzQ0, yzQ0)",
"def t2U... | [
"0.75094813",
"0.7395025",
"0.7074477",
"0.68493736",
"0.68119985",
"0.6769333",
"0.67399615",
"0.6738821",
"0.66539145",
"0.66520965",
"0.6578056",
"0.648856",
"0.64744985",
"0.64317864",
"0.64100504",
"0.63868546",
"0.6345861",
"0.6341232",
"0.6327559",
"0.6266304",
"0.6253... | 0.844145 | 0 |
rsquared value for given w, b, C | def k54V(yzQ0, Fg_i, Nq1b):
return 2 * Fg_i.dot(yzQ0) - yzQ0.T.dot(Nq1b).dot(yzQ0) - EhIg * oyIN.dot(yzQ0, yzQ0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZHJW(yzQ0, Fg_i, Nq1b):\n return 2 * Fg_i.dot(yzQ0) - yzQ0.T.dot(Nq1b).dot(yzQ0)",
"def IUi4(yzQ0, Fg_i, Nq1b, Q8DU=0.0, E62I=0.0, **B2fa):\n return 2 * Fg_i.dot(yzQ0) - yzQ0.T.dot(Nq1b).dot(yzQ0) - Q8DU * oyIN.sum(oyIN.abs(yzQ0)) - E62I * oyIN.dot(yzQ0, yzQ0)",
"def t2U8(yzQ0, EcVT, fuBA):\n retu... | [
"0.844145",
"0.75094813",
"0.7074477",
"0.68493736",
"0.68119985",
"0.6769333",
"0.67399615",
"0.6738821",
"0.66539145",
"0.66520965",
"0.6578056",
"0.648856",
"0.64744985",
"0.64317864",
"0.64100504",
"0.63868546",
"0.6345861",
"0.6341232",
"0.6327559",
"0.6266304",
"0.62535... | 0.7395025 | 2 |
Returns the entity disambiguation loss on prediction heads. | def Szw3(PX7i, fuBA, WZHJ):
Y9ns = PX7i[wL4A]['training'][0].item()
assert type(Y9ns) is bool
MYYV = PX7i[wL4A]['final_scores'][J18p]
ZHfW = PX7i['_input_']['entity_cand_eid_mask'][WZHJ]
Crrw = fuBA[WZHJ]
RY7T = Crrw
if not Y9ns:
fNn3 = Crrw == -2
RY7T = ht2j.where(~fNn3, Crr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NFom(YKHO):\n return YKHO.network.loss_ph",
"def NFom(YKHO):\n return YKHO.network.loss_ph",
"def N77f(YKHO, aTLP, pan_):\n N77f = None\n if YKHO._is_rl:\n pass\n else:\n OPAs = U78l.CrossEntropyLoss()\n N77f = OPAs(aTLP, pan_)\n return N77f",
"def fCcq(YKHO, BFeB):... | [
"0.70236325",
"0.70236325",
"0.6532141",
"0.62631315",
"0.62210244",
"0.6209408",
"0.61908746",
"0.6185895",
"0.61837626",
"0.61566913",
"0.61540496",
"0.61255896",
"0.6119535",
"0.6105289",
"0.60968393",
"0.60905325",
"0.60905325",
"0.60905325",
"0.60905325",
"0.6072243",
"0... | 0.5856154 | 44 |
returns the set of all parent directories for a list of paths. | def ESqp(ckRy: List[Path]) -> x1iM[GkAb]:
uRGD = set()
for pmON in ckRy:
uRGD.update(pmON.parents)
return ybLY(uRGD) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NJNV(YKHO, ckRy):\n if len(ckRy) == 0:\n return set()\n iIh5 = {YKHO._parent(pmON) for pmON in ckRy} - {YKHO.root_marker}\n return iIh5 | YKHO._all_dirnames(iIh5)",
"def w5AD(ckRy: List[Path]) -> fHNa[GkAb]:\n I0xH = set()\n for SkC9 in ckRy:\n if set(SkC9.parents) & I0xH:\n ... | [
"0.76571953",
"0.7233068",
"0.6784038",
"0.670639",
"0.6594997",
"0.6493531",
"0.6367606",
"0.634736",
"0.63122195",
"0.6304546",
"0.63013935",
"0.6145072",
"0.61243063",
"0.6103929",
"0.6097793",
"0.6086151",
"0.6045726",
"0.5980348",
"0.59788066",
"0.59497297",
"0.593735",
... | 0.788979 | 0 |
modify an existing PurchaseOrder object updating key, value pairs from form data assume validation of optional args occurs downstream to ease future code maintenance | def QdZT(jVqR, **B2fa):
bD7m = 'http://{}:{}/v{}/po/{}/update'.format(KcEq, bIwZ, clva, jVqR)
return o2Vr.forward(bD7m, 'PUT') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QdZT(BCdN, nPrm, YvUd):\n assert isinstance(BCdN, yhNG), u'{0} should be a PurchaseOrder instance'.format(BCdN)\n assert isinstance(CBIr, mv1M), u'{0} should be a User instance'.format(CBIr)\n try:\n YvUd = YKHO.context['request'].user\n except KeyError as e:\n YvUd = YKHO.context['em... | [
"0.6361454",
"0.6007112",
"0.5880904",
"0.5857438",
"0.5788505",
"0.5783983",
"0.57194716",
"0.56926036",
"0.5675307",
"0.56707245",
"0.5650154",
"0.5643123",
"0.56138235",
"0.55913407",
"0.55909926",
"0.5570246",
"0.55677164",
"0.5530641",
"0.5505336",
"0.54971",
"0.5483663"... | 0.0 | -1 |
Gets the relative offset of the endeffector center from the endeffector link. | def FbV3(YKHO, mjcu: int=0) -> hgl7.Vector3:
if mjcu >= len(YKHO.params.ee_offset):
raise ValueError('The current manipulator does not have enough end effectors')
return YKHO.params.ee_offset[mjcu] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vgXP(YKHO):\n return YKHO._offset if YKHO._offset else YKHO.POS_ORIGIN",
"def KGUr(YKHO):\n return YKHO.getPosition(1, 1)",
"def vgXP(YKHO):\n return float(YKHO._offset)",
"def KGUr(YKHO):\n return YKHO.__centerPos",
"def a2Or(YKHO):\n Jw7X = YKHO.displacement[0]\n eUWA = YKHO.displac... | [
"0.6473902",
"0.645941",
"0.6405535",
"0.6394208",
"0.6387775",
"0.63436586",
"0.63427514",
"0.63402796",
"0.6329122",
"0.6316415",
"0.63105696",
"0.62828755",
"0.6279429",
"0.62764937",
"0.6263765",
"0.62589234",
"0.623411",
"0.6229215",
"0.6225468",
"0.621535",
"0.617714",
... | 0.0 | -1 |
True if all gripper joints are within eps of the open state. | def Kgv8(YKHO) -> bool:
return oyIN.amax(oyIN.abs(YKHO.gripper_joint_pos - oyIN.array(YKHO.params.gripper_open_state))) < YKHO.params.gripper_state_eps | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yHeW(YKHO) -> bool:\n return oyIN.amax(oyIN.abs(YKHO.gripper_joint_pos - oyIN.array(YKHO.params.gripper_closed_state))) < YKHO.params.gripper_state_eps",
"def EiUo(YKHO):\n if YKHO.positions - len(YKHO.partners) > 0:\n return True\n else:\n return False",
"def GJs5(YKHO):\n YKHO.g... | [
"0.6508338",
"0.64950496",
"0.64073706",
"0.6326793",
"0.6280845",
"0.6277754",
"0.6274582",
"0.61765355",
"0.61704504",
"0.6143945",
"0.6130131",
"0.6105302",
"0.6086003",
"0.6082913",
"0.6075076",
"0.6053347",
"0.6048259",
"0.6045984",
"0.6035632",
"0.6034122",
"0.6031444",... | 0.68152547 | 0 |
True if all gripper joints are within eps of the closed state. | def yHeW(YKHO) -> bool:
return oyIN.amax(oyIN.abs(YKHO.gripper_joint_pos - oyIN.array(YKHO.params.gripper_closed_state))) < YKHO.params.gripper_state_eps | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Kgv8(YKHO) -> bool:\n return oyIN.amax(oyIN.abs(YKHO.gripper_joint_pos - oyIN.array(YKHO.params.gripper_open_state))) < YKHO.params.gripper_state_eps",
"def iAmF(YKHO, SGf8=1e-06):\n return 1.0 - YKHO.convergence() < SGf8",
"def GJs5(YKHO):\n YKHO.gnrng = YKHO.calc_gnrng()\n if YKHO.gnrng < YKH... | [
"0.6350926",
"0.634361",
"0.6335145",
"0.62699735",
"0.62546897",
"0.6235331",
"0.62069046",
"0.6193733",
"0.6182425",
"0.6181218",
"0.6159844",
"0.61276007",
"0.6104464",
"0.60738987",
"0.605768",
"0.60540164",
"0.6051922",
"0.6043427",
"0.60244095",
"0.60226065",
"0.6022606... | 0.6601671 | 0 |
Get the current target of the arm joints motors. | def mmP0(YKHO):
dfJF = oyIN.zeros(len(YKHO.params.arm_init_params))
for YRbF, nbIq in enumerate(YKHO.params.arm_joints):
dfJF[YRbF] = YKHO._get_motor_pos(nbIq)
return dfJF | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BK83(YKHO):\n tvZ2 = YKHO.simulation.data.get_body_xpos('target')\n Unu1 = YKHO.simulation.data.get_body_xquat('target')\n X1qI = yrsR(Unu1)\n return oyIN.hstack([oyIN.copy(tvZ2), oyIN.copy(X1qI)])",
"def BK83(YKHO):\n tvZ2 = YKHO.simulation.data.get_body_xpos('target')\n Unu1 = YKHO.simula... | [
"0.6832291",
"0.681525",
"0.67641747",
"0.67446333",
"0.6733419",
"0.6727517",
"0.6700057",
"0.6598421",
"0.65844196",
"0.65844196",
"0.65844196",
"0.65844196",
"0.65844196",
"0.65844196",
"0.6570935",
"0.6563188",
"0.65434676",
"0.6530602",
"0.6530602",
"0.6530602",
"0.65306... | 0.6565691 | 15 |
Because pk is unique we can to use filter. It will return the user or None if user not exists. | def lyxB(id):
P6bq = FYrf.User.objects.filter(pk=id).first()
return P6bq | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TKWP(Emd4, _sei):\n rdlD = Emd4.db()(jvSB.plugin_social_auth.auth.table_user().username == _sei).select().first()\n if rdlD:\n return mv1M(rdlD)",
"def ysh1(_sei=0, NtEF=''):\n if mv1M.objects.filter(pk=_sei).exists():\n return mv1M.objects.get(pk=_sei)\n elif mv1M.objects.filter(us... | [
"0.7835372",
"0.728371",
"0.7103397",
"0.7089363",
"0.7045556",
"0.7044275",
"0.69844294",
"0.68841094",
"0.68841094",
"0.68841094",
"0.68841094",
"0.68699914",
"0.68442154",
"0.68343383",
"0.6821889",
"0.68102866",
"0.6799413",
"0.6753508",
"0.67368704",
"0.6682972",
"0.6669... | 0.0 | -1 |
Persists the JSON from request in database | def hh6M():
if not QePW.json:
eTsH(400)
zgjV = QePW.get_json()
rfQU = FYrf.Issue()
rfQU.title = zgjV['title']
rfQU.body = zgjV['body']
rfQU.register = zgjV['register']
rfQU.ugat = zgjV['ugat']
rfQU.ugser = zgjV['ugser']
_mCf = rfQU.save()
return (pz3A({'issue': _mCf}), 20... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _bNg():\n _hkX = QePW.json\n eGRE = qQXR.dumps(_hkX['saveData'])\n uJjO = _hkX['user']\n CBIr = mv1M.query.get_or_404(uJjO)\n CBIr.save_list = eGRE\n NCls.session.commit()\n return {'save_data': eGRE}",
"def m8z6(YKHO):\n nPrm = QePW.json\n return K3h8(data=nPrm)",
"def xkzz(YKHO... | [
"0.681167",
"0.68048084",
"0.66218483",
"0.6575274",
"0.65635735",
"0.6561827",
"0.65487087",
"0.6485672",
"0.6460786",
"0.6456093",
"0.644598",
"0.6439516",
"0.6438507",
"0.64169514",
"0.6384699",
"0.6328902",
"0.63003016",
"0.62900907",
"0.6262448",
"0.62619287",
"0.6240194... | 0.0 | -1 |
Creates a comment in database | def Jslr():
if not QePW.json:
eTsH(400)
zgjV = QePW.get_json()
gr_i = zgjV.get('register', None)
TBsA = zgjV.get('body')
taDc = zgjV.get('author')
miOn = zgjV.get('stars', 0)
hLRM = zgjV.get('origin')
if str(c5ow.pk) != str(taDc):
eTsH(401)
if gr_i:
rfQU = FYr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tmWG(aM_I: 'Comment'):\n IVkI = e64k.get_connection()\n N1p7 = IVkI.cursor()\n Pe9W = 'INSERT INTO `comment` (`id`, `user`, `event`, `content`, `time`) VALUES (%s, %s, %s, %s, %s);'\n pQGt = str(round(ITS7.time() * 1000)) + str(tuKI.randint(0, 1000))\n R6ot = (pQGt, aM_I.user, aM_I.event, aM_I.c... | [
"0.7933843",
"0.7853237",
"0.784297",
"0.76649535",
"0.75710374",
"0.75710374",
"0.7539214",
"0.75117534",
"0.7485586",
"0.7430931",
"0.7356735",
"0.73400253",
"0.7202521",
"0.71704656",
"0.71585983",
"0.7124223",
"0.7066361",
"0.70037884",
"0.6984904",
"0.69602305",
"0.69339... | 0.0 | -1 |
Returns true if the message is a note on or off. | def VT9c(YKHO):
return cpvk.kNoteOff <= YKHO.status() <= cpvk.kNoteOn | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SxJF(YKHO):\n return YKHO.status() == cpvk.kNoteOn",
"def wdgp(YKHO):\n return YKHO.status() == cpvk.kNoteOff",
"def Debg(YKHO):\n return YKHO._client.data[YKHO._key] == 'on'",
"def Debg(YKHO):\n return YKHO._client.data[YKHO._key] == 'true'",
"def Debg(YKHO) -> bool:\n return YKHO._get_... | [
"0.8349939",
"0.77169305",
"0.6772887",
"0.6664332",
"0.6482649",
"0.6345892",
"0.6336165",
"0.63228565",
"0.63228565",
"0.63228565",
"0.6314491",
"0.630108",
"0.6292057",
"0.6292057",
"0.6281578",
"0.62754637",
"0.626986",
"0.6263458",
"0.6263458",
"0.6263458",
"0.6263458",
... | 0.8297505 | 1 |
Returns a pressure value 0 127, or 1 if the event is not a channel pressure. | def CJ2p(YKHO):
if YKHO.is_channel_pressure():
return cpvk.pressure(YKHO.message)
return -1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def marh(YKHO):\n return YKHO.status() == cpvk.kChanPress",
"def CJ2p(YKHO):\n Yh3e = YKHO.data.adc_p\n Z9rn = YKHO.calibration\n if YKHO.t_fine is None:\n YKHO.temperature\n CIn9 = YKHO.t_fine - 128000\n AhCl = CIn9 * CIn9 * Z9rn.P6\n AhCl = AhCl + (CIn9 * Z9rn.P5 << 17)\n AhCl = ... | [
"0.7035183",
"0.6538827",
"0.6442945",
"0.6385478",
"0.63496554",
"0.6331064",
"0.6309809",
"0.62847114",
"0.62443286",
"0.62443286",
"0.62443286",
"0.62443286",
"0.62383807",
"0.6231258",
"0.62264365",
"0.6225944",
"0.61410326",
"0.61381716",
"0.6103262",
"0.60932535",
"0.60... | 0.7319682 | 0 |
Returns the tempo from a meta tempo event or 0 if the event is not a tempo event. | def YLyM(YKHO, rYO3='usec'):
if YKHO.is_meta(cpvk.kTempo):
if rYO3 == 'usec':
return cpvk.tempo(YKHO.message)
elif rYO3 == 'bpm':
return int(60 * (1000000 / cpvk.tempo(YKHO.message)))
return 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Pm3_(A6b2) -> int:\n for Ol8d in A6b2:\n if Ol8d.type == 'set_tempo':\n return Ol8d.tempo\n return 500000",
"def YLyM(YKHO) -> float:\n return float(YKHO._json_dict['tempo'])",
"def YLyM(YKHO) -> float:\n return float(YKHO._json_dict['tempo'])",
"def Pm3_(yK6n, LdpK=0):\n ... | [
"0.7087539",
"0.68526936",
"0.68526936",
"0.6659778",
"0.6530443",
"0.6389649",
"0.6008848",
"0.5623149",
"0.554706",
"0.55323344",
"0.53039134",
"0.52002054",
"0.51666147",
"0.50654346",
"0.5057444",
"0.5032975",
"0.5012627",
"0.49679834",
"0.49371585",
"0.49370205",
"0.4915... | 0.7059528 | 1 |
Returns true if the event is a midi start event. | def T0BG(YKHO):
return YKHO.status() == cpvk.kStart | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def S7iO(YKHO):\n return YKHO.node_type is CvW4.START",
"def hg2N(YKHO):\n return YKHO.start",
"def Sb2S(tvqc, Q6kx, tP7Q):\n return tvqc == iPcU.START_ELEMENT and Q6kx.tagName == tP7Q",
"def PA2A(YKHO):\n return YKHO._start_time is not None",
"def ISC8(YKHO, zFiD):\n return YKHO._start_patt... | [
"0.68117285",
"0.6718485",
"0.6694068",
"0.61862147",
"0.6078208",
"0.6058513",
"0.5967885",
"0.5965298",
"0.5949502",
"0.5914067",
"0.5908088",
"0.59072495",
"0.58697945",
"0.58325523",
"0.58113635",
"0.58013797",
"0.5792771",
"0.57803124",
"0.57803124",
"0.57803124",
"0.576... | 0.8378202 | 0 |
Returns true if the event is a midi active sensing event. | def wAeA(YKHO):
return YKHO.status() == cpvk.kActiveSens | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def T0BG(YKHO):\n return YKHO.status() == cpvk.kStart",
"def aOyO(YKHO):\n for tvqc in YKHO.events:\n if tvqc.is_current():\n return True\n return False",
"def Y4bd(YKHO):\n return YKHO.midi_in_port is not None and YKHO.midi_out_port is not None",
"def Debg(YKHO):\n try:\n ... | [
"0.6379446",
"0.6209176",
"0.61948186",
"0.6012228",
"0.5994412",
"0.5960346",
"0.5901663",
"0.58870685",
"0.5851275",
"0.58367103",
"0.5815911",
"0.5810273",
"0.5762223",
"0.5752043",
"0.57437766",
"0.57377094",
"0.5717394",
"0.57138884",
"0.5701019",
"0.56938523",
"0.569222... | 0.71524084 | 0 |
Add a node of value val before the first element of the linked list. After the insertion, the new node will be the first node of the linked list. | def PgMl(YKHO, wEf2):
YKHO.linkedlist.insert(0, wEf2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yMiq(YKHO, wEf2, Z6gX):\n if YKHO.includes(wEf2):\n if YKHO.head.value == wEf2:\n YKHO.insert(Z6gX)\n else:\n Q6kx = o7DN(Z6gX)\n jvSB = YKHO.head\n while jvSB.nxt.value != wEf2:\n jvSB = jvSB.nxt\n Q6kx.nxt = jvSB.nxt\n ... | [
"0.8459715",
"0.83956784",
"0.83877355",
"0.8136791",
"0.8074398",
"0.80354744",
"0.7995478",
"0.7960994",
"0.7943126",
"0.792114",
"0.78947574",
"0.7869824",
"0.7839322",
"0.77839494",
"0.77625144",
"0.77007",
"0.7674602",
"0.7673067",
"0.76701504",
"0.76637495",
"0.76181215... | 0.78326434 | 13 |
Parse the argument into an expected tuple. The argument can be None (i.e., using the default), a single element (i.e., a length1 tuple), or a tuple | def VLbP(d7pR, WmM4=tuple()):
try:
bGrB = iter(d7pR)
except TypeError:
TPwt = tuple(WmM4) if d7pR is None else (d7pR,)
else:
TPwt = tuple(d7pR)
return TPwt | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vai0(d7pR):\n if isinstance(d7pR, tuple) or isinstance(d7pR, list):\n return d7pR\n return tuple((KCHu.strip() for KCHu in d7pR.replace(',', ' ').split()))",
"def hfK9(qIxc: Tuple[str, str, str, str, str]) -> AzJI[str, str, str]:\n return (qIxc[2], qIxc[3], qIxc[4])",
"def A3TG(d7pR):\n ... | [
"0.73775727",
"0.72984815",
"0.7176124",
"0.70821047",
"0.7019459",
"0.69815177",
"0.69293225",
"0.66717607",
"0.6625678",
"0.66171414",
"0.6588479",
"0.6587317",
"0.65771574",
"0.65494746",
"0.6547786",
"0.6513872",
"0.6503447",
"0.6472315",
"0.6431729",
"0.64089394",
"0.640... | 0.77554405 | 0 |
Normalize data on the given axis | def NkkI(nPrm, jDK_=None, d6pt=None):
oMKS = oyIN.asarray(nPrm)
qC1Y = oMKS.ndim
ROpF = oMKS.shape
MPlV = VLbP(jDK_, default=range(qC1Y))
_0VL = VLbP(d6pt)
_0VL += (0,) * (len(MPlV) - len(_0VL))
Ywfc = [slice(None) for bGrB in range(qC1Y)]
S0iV = list(ROpF)
for Csk6, YRbF in zip(MPlV... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NkkI(WKvO, jDK_=1):\n return WKvO / rxEN.sum(WKvO, axis=jDK_, keepdims=True)",
"def jnV4(ezWE: np.array, jDK_: int=-1) -> oyIN.array:\n return ezWE / ezWE.sum(jDK_, keepdims=True)",
"def NkkI(WKvO, jDK_=-1):\n WKvO = nMvt.l2_normalize(WKvO, axis=jDK_) + nMvt.epsilon()\n return WKvO",
"def Nkk... | [
"0.7764022",
"0.7738455",
"0.75833994",
"0.73688054",
"0.73641795",
"0.73379266",
"0.7329856",
"0.7329856",
"0.7329856",
"0.7329856",
"0.7329856",
"0.73202133",
"0.7315465",
"0.72775155",
"0.7264995",
"0.72362983",
"0.713612",
"0.71114373",
"0.71006215",
"0.7093935",
"0.70506... | 0.6992901 | 25 |
Get the geometric mean along the given axis. | def VZI2(nPrm, jDK_=None):
oMKS = oyIN.asarray(nPrm)
QRFO = oyIN.prod(oMKS, axis=jDK_)
mLGw = oMKS.size // QRFO.size
return QRFO ** (1.0 / mLGw) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R_RW(YKHO, jDK_=None, PoRy=True):\n return YKHO.__reduce(R_RW, axis=jDK_, check_for_greater_than_zero=PoRy)",
"def JBMS(YKHO, jDK_=None):\n return YKHO.__reduce(tF9S.nanmean, axis=jDK_)",
"def JBMS(YKHO, jDK_=None):\n return YKHO._stats_return_type(jDK_)._from_apply('mean', YKHO, jDK_)",
"def R_... | [
"0.82638663",
"0.7788675",
"0.7778031",
"0.7424072",
"0.71442854",
"0.71047807",
"0.7100877",
"0.7025125",
"0.7012249",
"0.6974344",
"0.6914234",
"0.6825583",
"0.68141496",
"0.67992806",
"0.67992187",
"0.6794415",
"0.6709916",
"0.6694148",
"0.6681608",
"0.6672667",
"0.6586873... | 0.6066654 | 63 |
Gets the id of this InlineResponse20014. | def id(YKHO) -> str:
return YKHO._id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def unpH(YKHO):\n return YKHO.response_xml.attrib['id']",
"def id(YKHO):\n return YKHO.response.id",
"def dVGB(YKHO) -> str:\n return YKHO._response_id",
"def unpH(YKHO):\n YKHO.logger.debug('%s::get ID', YKHO.__class__.__name__)\n return YKHO.check_response(YKHO.jtagice3_command_response(byte... | [
"0.74596536",
"0.7317084",
"0.7146644",
"0.65259135",
"0.6427769",
"0.63784915",
"0.6355672",
"0.62975365",
"0.62878805",
"0.62658226",
"0.62657964",
"0.6230544",
"0.62274647",
"0.6202877",
"0.61986583",
"0.61986583",
"0.61986583",
"0.61950284",
"0.61950284",
"0.61950284",
"0... | 0.0 | -1 |
Gets the s of this InlineResponse20014. | def KCHu(YKHO) -> float:
return YKHO._s | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KCHu(YKHO):\n return YKHO._s",
"def KCHu(YKHO):\n return YKHO._s",
"def t7ib(YKHO):\n return YKHO['response_bytes']['response'].parsed",
"def o4sw(YKHO):\n return YKHO._S",
"def KCHu(YKHO):\n return YKHO.call('s')",
"def RBHZ(YKHO):\n if not YKHO._cached_response_spectra:\n Y... | [
"0.6846049",
"0.67927396",
"0.6453458",
"0.63899356",
"0.63293153",
"0.610369",
"0.5948152",
"0.5933774",
"0.5907153",
"0.58228654",
"0.57936966",
"0.5758758",
"0.5731459",
"0.5727652",
"0.5705895",
"0.5705895",
"0.5667414",
"0.5643793",
"0.5626255",
"0.5626255",
"0.5626255",... | 0.585396 | 9 |
Gets the o of this InlineResponse20014. | def z1Rg(YKHO) -> float:
return YKHO._o | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t7ib(YKHO):\n return YKHO['response_bytes']['response'].parsed",
"def ntQl(YKHO):\n return YKHO.o",
"def wuCN(YKHO):\n return YKHO.__response",
"def T_2m(YKHO):\n return YKHO.response",
"def oROA(YKHO):\n raise NotImplementedError",
"def Kd_i(YKHO):\n return YKHO._h_o",
"def geh0(... | [
"0.6633772",
"0.65275395",
"0.6115128",
"0.6055263",
"0.5996825",
"0.59867615",
"0.5972663",
"0.5972663",
"0.59623504",
"0.59623504",
"0.5950886",
"0.589846",
"0.57734394",
"0.5741166",
"0.5706085",
"0.56843567",
"0.56805754",
"0.565185",
"0.5636906",
"0.56326646",
"0.5588675... | 0.49787387 | 95 |
Gets the v of this InlineResponse20014. | def Ty9i(YKHO) -> float:
return YKHO._v | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ty9i(YKHO):\n return YKHO.veto",
"def Ty9i(YKHO):\n return YKHO.veto",
"def RBHZ(YKHO):\n if not YKHO._cached_response_spectra:\n YKHO.generate_response_spectrum()\n return YKHO._s_v",
"def cAlv(YKHO):\n return YKHO._V",
"def cAlv(YKHO):\n return YKHO._V",
"def sb_L(YKHO) -> ... | [
"0.6227223",
"0.6227223",
"0.6192783",
"0.6136713",
"0.6136713",
"0.61109114",
"0.6096343",
"0.607119",
"0.59867454",
"0.59867454",
"0.59867454",
"0.5974543",
"0.5974543",
"0.5974543",
"0.5974543",
"0.5946481",
"0.5937287",
"0.5919184",
"0.59027326",
"0.58844364",
"0.58412033... | 0.56966794 | 30 |
Sum the ASCII values of the given text `text`. | def GgrA(l5Ny: str) -> int:
return sum((ord(bseI) for bseI in l5Ny)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BQ6y(l5Ny: str) -> int:\n return sum([ord(WKvO) for WKvO in l5Ny])",
"def BQ6y(l5Ny: str) -> int:\n return sum([ord(BWXx) for BWXx in l5Ny])",
"def BQ6y(l5Ny: str) -> int:\n return sum([ord(GIN8) for GIN8 in l5Ny])",
"def BQ6y(l5Ny: str) -> int:\n return sum([ord(WKvO) for WKvO in l5Ny])",
... | [
"0.7869537",
"0.7763566",
"0.77213025",
"0.76839477",
"0.7669954",
"0.75687945",
"0.6353853",
"0.61729026",
"0.6167774",
"0.60844225",
"0.5970744",
"0.5869482",
"0.5744335",
"0.57407457",
"0.5690302",
"0.5687426",
"0.567781",
"0.5675345",
"0.5658442",
"0.5639902",
"0.5636442"... | 0.8664061 | 0 |
Get a light identified by name. Function will do discovery, see ``get_lights`` documentation. | def IZrP(mWFP):
GqOt = sF7h.get_light(mWFP)
if GqOt is not None:
return GqOt
RcSA = KPzd.get_light(mWFP)
if RcSA is not None:
return RcSA
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IZrP(mWFP):\n agxD = sY6z.get_light(mWFP)\n if agxD is None:\n raise ojJs(\"Could not find light '{}'\".format(mWFP))\n Zjhd = agxD.json()\n geh0 = Yxsy(pz3A(Zjhd), 200)\n geh0.headers['Content-Type'] = 'application/se.novafaen.prism.light.v1+json'\n return geh0",
"def EL8l(mWFP):\n ... | [
"0.75284326",
"0.7285347",
"0.72307277",
"0.7046528",
"0.70157635",
"0.6778142",
"0.67510223",
"0.6727678",
"0.64686",
"0.6422387",
"0.627431",
"0.6077195",
"0.60225976",
"0.59925854",
"0.5980297",
"0.5854743",
"0.5830451",
"0.58252466",
"0.58112645",
"0.5797591",
"0.5788728"... | 0.82977545 | 0 |
Extract ``indices`` from ``sequence``. | def JDhM(aWuw: Sequence, _0VL: Iterable):
return [aWuw[YRbF] for YRbF in _0VL] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WoaC(YKHO):\n EQjW = oyIN.arange(len(YKHO.height))\n if not BfDw.isscalar(YKHO.folding_velocity):\n T5C3 = YKHO.getvar('chirp_start_indices')\n return oyIN.split(EQjW, T5C3[1:])\n return [EQjW]",
"def R6Rx(aWuw: Sequence, _0VL: Iterable[int]) -> bDy6:\n for d6pt in _0VL:\n yi... | [
"0.68180317",
"0.679541",
"0.67497706",
"0.6658932",
"0.649501",
"0.64754575",
"0.63863933",
"0.62830544",
"0.62830544",
"0.62545145",
"0.6250103",
"0.62050265",
"0.6192849",
"0.61913484",
"0.61759216",
"0.61746854",
"0.6146507",
"0.6143959",
"0.61409605",
"0.61236626",
"0.60... | 0.7296009 | 0 |
True, as all users are active. | def ksfB(YKHO):
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ksfB(YKHO):\n return True",
"def ksfB(YKHO):\n return YKHO.user.is_active",
"def ksfB(YKHO):\n return YKHO.user.is_active",
"def ksfB(YKHO):\n return YKHO.user.is_active",
"def ksfB(YKHO):\n return YKHO.user.is_active",
"def ksfB(YKHO, NCls: Session, *, CBIr: User) -> bool:\n if CBI... | [
"0.75308377",
"0.7392309",
"0.7392309",
"0.7392309",
"0.7392309",
"0.73852575",
"0.73056287",
"0.7290842",
"0.7230901",
"0.72114825",
"0.71813864",
"0.714781",
"0.714781",
"0.7117796",
"0.7107901",
"0.71019155",
"0.71019155",
"0.71019155",
"0.71019155",
"0.71019155",
"0.71019... | 0.70101184 | 64 |
False, as anonymous users aren't supported. | def wDqn(YKHO):
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wDqn(YKHO):\n return False",
"def wDqn(YKHO):\n return False",
"def wDqn(YKHO):\n return False",
"def wDqn(YKHO):\n return False",
"def wDqn(YKHO):\n return False",
"def wDqn(YKHO):\n return False",
"def wDqn(YKHO):\n return False",
"def wDqn(YKHO):\n return False",
"def... | [
"0.84041584",
"0.84041584",
"0.8377405",
"0.8359979",
"0.8359979",
"0.8359979",
"0.8359979",
"0.8359979",
"0.8359979",
"0.8359979",
"0.8359979",
"0.8359979",
"0.8359979",
"0.8359979",
"0.8359979",
"0.8359979",
"0.8359979",
"0.8359979",
"0.8359979",
"0.8359979",
"0.8359979",
... | 0.8380213 | 3 |
Return the parsed command line arguments. | def dCXb():
wvEv = j1Jz.ArgumentParser()
wvEv.add_argument('result_dir', help='path to save the ID lists')
wvEv.add_argument('src', help='path to the labels')
wvEv.add_argument('subset_ids_path', help='path to the ID list of the target subset')
qIxc = wvEv.parse_args()
return (qIxc.result_dir, q... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dCXb(YKHO):\n return YKHO.main_parser.parse_args()",
"def gGZX(YKHO):\n return YKHO._parser.parse_args()",
"def rwTO():\n wvEv = WDqQ(prog=cwNE, description=xmSp)\n wvEv.add_argument('-V', '--version', action='version', version=UKZg)\n return wvEv.parse_args()",
"def dCXb():\n return wv... | [
"0.8104056",
"0.8090334",
"0.79198",
"0.7910428",
"0.7834093",
"0.78271246",
"0.77785707",
"0.7740845",
"0.7712405",
"0.77088004",
"0.7664784",
"0.76374555",
"0.76344067",
"0.7627068",
"0.7621571",
"0.76183385",
"0.760494",
"0.7588373",
"0.7579029",
"0.75480795",
"0.75480795"... | 0.0 | -1 |
Get dict with Incorporations full of their packages. | def Kx_D(F3jJ: str, nu3W: str, Gl87: str, j6J9: str=None):
Ep8q: cuzp[str, ZUwf] = {}
L6MF = {}
if j6J9:
Fyc6 = a9EH.processor()
with open(j6J9, 'r') as zZcM:
for zFiD in zZcM:
zFiD = zFiD.partition('#')[0]
zFiD = zFiD.rstrip()
try:... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vwZ4(cEzT):\n return {AIu6.name: AIu6 for AIu6 in cEzT}",
"def NL2l():\n nPrm = {'PkgA': ['vers1', 'vers2', 'vers3'], 'PkgB': ['versionA', 'VersionB', '0.0.3']}\n return nPrm",
"def cEzT(YKHO):\n return list(YKHO._collapse().values())",
"def cEzT(YKHO):\n QbBE = YKHO._get_site_pckg_path(YK... | [
"0.6806296",
"0.66934633",
"0.65595835",
"0.6503203",
"0.6499004",
"0.6425385",
"0.6416062",
"0.63931984",
"0.6371587",
"0.6339494",
"0.6324566",
"0.6223224",
"0.61331207",
"0.61315835",
"0.61229384",
"0.6071756",
"0.60488987",
"0.6041463",
"0.60276663",
"0.6019901",
"0.60174... | 0.6024871 | 19 |
Compute the energy dependant terms of the collisional energy loss rate for energetic electrons. | def E6Xl(fJUh):
gxyl = PtXs.get_constant('mc2')
KMvS = fJUh / gxyl + 1.0
UqYS = oyIN.sqrt(1.0 - 1.0 / KMvS ** 2)
s8I9 = oyIN.log(6944700000.0 * fJUh) / UqYS
return s8I9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HWuM(YKHO):\n YKHO.compute_beliefs()\n YKHO.compute_pairwise_beliefs()\n return YKHO.compute_energy() + YKHO.compute_bethe_entropy()",
"def VYvU(YKHO):\n _e0y = 0.0\n for r845 in Ni9Y(0, SMR4):\n _e0y += YKHO.field[r845] ** 2\n return 0.5 * VTtU * _e0y",
"def RUOA(YKHO):\n retur... | [
"0.73139256",
"0.7307453",
"0.7239284",
"0.72287303",
"0.7207211",
"0.71738446",
"0.7163424",
"0.7097206",
"0.7067457",
"0.6997248",
"0.69967246",
"0.6894739",
"0.6882151",
"0.6876631",
"0.6875512",
"0.6857445",
"0.68486613",
"0.6821437",
"0.68089837",
"0.68040144",
"0.679520... | 0.7493559 | 0 |
This function allows the user to interactively change the values of sigma in the gaussian filter portion of the Canny edge detection algorithm. The Canny filtered binary image is returned. | def MvYZ(LNo8):
xqKS = pqKg(LNo8, sigma=4)
QrM1.imshow(xqKS)
QrM1.show()
Y4Gy = int(input('Input 1 if the filter is good, 0 if it is bad: '))
if Y4Gy != 0:
etle = float(input('Enter the original value of sigma: '))
else:
etle = float(input('Enter the new value of sigma: '))
x... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pqKg(VXjJ, Ot1W=5, WTkW=1.4, ODP9=20, gqRb=15):\n WZcn = VU7a(Ot1W, WTkW)\n DF_z = yIp6(VXjJ, WZcn)\n yvY1, q7In = ICX2(DF_z)\n lIj3 = FcuV(yvY1, q7In)\n jRTh, Ic3D = HEUv(lIj3, ODP9, gqRb)\n D70y = O8HJ(jRTh, Ic3D)\n return D70y",
"def pqKg(VXjJ, Ot1W=5, WTkW=1.4, ODP9=20, gqRb=15):\n ... | [
"0.7197086",
"0.71969163",
"0.7050467",
"0.6924474",
"0.6913734",
"0.69011235",
"0.6895914",
"0.6864916",
"0.67966473",
"0.6713157",
"0.66819274",
"0.66406995",
"0.65404457",
"0.65042424",
"0.63628566",
"0.63436294",
"0.62557787",
"0.625231",
"0.6205816",
"0.61870146",
"0.618... | 0.8112036 | 0 |
Get the AB magnitude from a flux | def dPSJ(shSu, L4Xy=None):
Z8Da = shSu.to('Jy').value
H6TO = -2.5 * oyIN.log10(Z8Da) + 8.9
if L4Xy is not None:
vJAY = L4Xy.to('Jy').value
oFAW = (-2.5 / oyIN.log(10.0) / Z8Da) ** 2 * vJAY ** 2
WUmQ = oyIN.sqrt(oFAW)
else:
WUmQ = None
return (H6TO, WUmQ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bzaD(YKHO, shSu):\n return vlPw(shSu) + YKHO.zeropoint",
"def wayq(YXbZ, B_ud):\n return 10.0 ** ((B_ud - YXbZ) / 2.5)",
"def ROL0(YKHO, shSu, Ebru):\n return -2.5 * epAf.log10(shSu / YKHO.zpbandflux(Ebru))",
"def KA9l(shSu):\n return -2.5 * oyIN.log10(shSu) - 48.6",
"def PM_i(shSu, k3AV, d... | [
"0.8032345",
"0.78996265",
"0.76532155",
"0.73525023",
"0.7285268",
"0.72602373",
"0.72506773",
"0.71566063",
"0.713503",
"0.7118567",
"0.7085673",
"0.7065482",
"0.704721",
"0.70185095",
"0.69775635",
"0.69774127",
"0.6950322",
"0.6922727",
"0.69091105",
"0.6881247",
"0.68699... | 0.69565 | 16 |
Solves Ax = b without computing the inverse of A but uses forward/backward substitution and the specified substitution | def vFMv(k0lF: np.ndarray, Fg_i: np.ndarray) -> oyIN.ndarray:
aPd6 = DbZS(k0lF)
LVAh = KVH6(aPd6, Fg_i)
GERS = ZD5u(aPd6.T, LVAh)
return GERS | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eGi5(jzdc, Fg_i):\n vC9B, P6bq = Wo2m(jzdc)\n LVAh = BBUS(vC9B, Fg_i)\n WKvO = NZVn(P6bq, LVAh)\n return WKvO",
"def eGi5(YKHO, Fg_i):\n YKHO.b = Fg_i\n YKHO.decompose(ret=False)\n if not YKHO.crout:\n YKHO.L = YKHO.R.T\n YKHO._forward()\n YKHO._backward()\n return YKHO.x... | [
"0.7871948",
"0.73839945",
"0.7187012",
"0.7111085",
"0.70745254",
"0.70503974",
"0.7046748",
"0.6996637",
"0.69853055",
"0.6844695",
"0.6701161",
"0.6645256",
"0.65879905",
"0.6573306",
"0.65079576",
"0.6502176",
"0.64786327",
"0.6442666",
"0.64196134",
"0.64181477",
"0.6398... | 0.6573615 | 13 |
Compute the shortest distance between point and box. | def ZIUo(AU8u, NK98, zNig):
iP3j = Ah8r(NK98, AU8u)
vNTb = 0.5 * zNig
M53G = oyIN.clip(iP3j, -vNTb, vNTb)
zm6_ = NK98[:3, 3] + NK98[:3, :3].dot(M53G)
return (oyIN.linalg.norm(AU8u - zm6_), zm6_) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zG70(YKHO, AU8u):\n if not isinstance(AU8u, PvyL):\n AU8u = PvyL(*AU8u)\n TaUL = [(AU8u.distance_to_point(XP5J), XP5J) for XP5J in YKHO.points]\n ARYi = sorted(TaUL, key=lambda WKvO: WKvO[0])\n mp07 = ARYi[0][1]\n dIT4 = lNLu(*mp07)\n AjzU = dIT4.dot(dIT4)\n QCiR = ARYi[1][1]\n c... | [
"0.6727449",
"0.66464347",
"0.66224486",
"0.6388112",
"0.63556117",
"0.6328491",
"0.63098115",
"0.63006026",
"0.62890124",
"0.62869656",
"0.6256272",
"0.6249722",
"0.61959416",
"0.6191087",
"0.6184331",
"0.6170085",
"0.6168466",
"0.61307794",
"0.612262",
"0.6119581",
"0.61033... | 0.58636814 | 67 |