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 |
|---|---|---|---|---|---|---|
Follows a property path through an object, bailing at the first None. | def jz8v(pmON: List[str], YEnM: Any) -> h8nf[ImMB]:
jvSB = YEnM
for _tRj in pmON:
if _tRj in jvSB:
jvSB = jvSB[_tRj]
else:
return None
return jvSB | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i0Rj(YEnM, pmON, WmM4):\n for XP5J in pmON:\n if XP5J not in YEnM:\n return WmM4\n YEnM = YEnM[XP5J]\n return YEnM",
"def xWwy(YKHO):\n YKHO.assertIsNone(NMoC(YKHO.data, 'nullvalue.childProp'))\n YKHO.assertIsNone(NMoC(YKHO.data, 'null.value.childProp'))",
"def quTa(YKH... | [
"0.67509055",
"0.63179165",
"0.59630275",
"0.5947213",
"0.5942248",
"0.5901201",
"0.58899313",
"0.5858002",
"0.58275676",
"0.58133",
"0.57806474",
"0.57718056",
"0.5672666",
"0.56130075",
"0.55677587",
"0.5563647",
"0.55636054",
"0.5534155",
"0.5529402",
"0.5463362",
"0.53999... | 0.68310887 | 0 |
True if any leaf is not directly consumed by an aggregation, hence false if all leaves of this expression are directly consumed by an aggregation. This is relevant because when using nonaggregate functions on multiple rows, different evaluation strategies may yield different error messages due to a different row proces... | def YCGv(YKHO) -> bool:
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wwys(YKHO, qXGK=None):\n if qXGK is None:\n return YKHO.allelism() <= 1\n else:\n return (YKHO.allelism() == 1) & (YKHO.values[:, qXGK] > 0)",
"def i1g4(YKHO):\n return YKHO.allelism() > 1",
"def i1g4(YKHO):\n return YKHO.allelism() > 1",
"def wwys(YKHO, qXGK=None):\n if qXGK... | [
"0.6341517",
"0.6337374",
"0.6337374",
"0.63263",
"0.6157011",
"0.61225617",
"0.6054573",
"0.60352963",
"0.59826005",
"0.5960168",
"0.5960168",
"0.59094834",
"0.5908824",
"0.5900418",
"0.58503556",
"0.58498645",
"0.57923716",
"0.5789837",
"0.5787713",
"0.57757837",
"0.576418"... | 0.78466356 | 0 |
Compute covariates that represent the CSF variability in a functional timeserie. | def nmvl(sEFF, OFgm, HMld=50, GNKJ=5, PJWX=0, yNGB=None):
JkbL = Bx70.load(sEFF)
U6ij = JkbL.get_data()
U6ij[oyIN.where(U6ij != 0)] = 1
if len(oyIN.where(U6ij == 1)[0]) > HMld:
while True:
NV37 = ibBc(U6ij, iterations=1)
dGsB = len(oyIN.where(NV37 == 1)[0])
if... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SOA3(YKHO):\n o36Q = []\n FO3P = []\n l08H = []\n for a1PO in range(len(YKHO.te)):\n FO3P.append(mBb2(YKHO.te[a1PO]))\n l08H.append(YKHO.qf[a1PO] / YKHO.ne[a1PO] ** 2)\n jpYU = Vwir(FO3P, YKHO.te)\n jVCh = Vwir(YKHO.qf / YKHO.ne ** 2, YKHO.te)\n o36Q = oyIN.abs(jVCh / jpYU)\n... | [
"0.7023623",
"0.6773792",
"0.6567608",
"0.6532972",
"0.6522446",
"0.65161526",
"0.64921707",
"0.6454414",
"0.64409024",
"0.64339703",
"0.64198726",
"0.64198726",
"0.64198726",
"0.64198726",
"0.6416005",
"0.6416005",
"0.640647",
"0.6380867",
"0.63725764",
"0.6363298",
"0.63632... | 0.637219 | 19 |
Return a function which checks if the passed class is a subclass of class_or_tuple. Examples | def cekD(zB6C: type | Tuple[type, ...], yR_P: str=__name__) -> YrBT[[type], bool]:
try:
issubclass(int, zB6C)
except TypeError as ex:
raise TypeError(f"'class_or_tuple' expected a type or tuple of types; observed type: {zB6C.__class__.__name__!r}") from aTqo
if isinstance(zB6C, type):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Hclj(zB6C: type | Tuple[type, ...], yR_P: str=__name__) -> YrBT[[object], bool]:\n try:\n isinstance('bob', zB6C)\n except TypeError as ex:\n raise TypeError(f\"'class_or_tuple' expected a type or tuple of types; observed type: {zB6C.__class__.__name__!r}\") from aTqo\n if isinstance(zB6... | [
"0.7217122",
"0.716122",
"0.6929289",
"0.68221533",
"0.6762514",
"0.673161",
"0.6660087",
"0.66495186",
"0.66387975",
"0.65730226",
"0.6567051",
"0.6525576",
"0.6502082",
"0.6502082",
"0.6497515",
"0.6497515",
"0.6497515",
"0.6497515",
"0.64801264",
"0.64801264",
"0.64801264"... | 0.7582651 | 0 |
Get boundary of gdal tif. | def zXil(zZcM):
wPEY, ekCB, bGrB, dhe4, bGrB, C5Rv = zZcM.transform.to_gdal()
Fa37 = wPEY + zZcM.width * ekCB
YLtW = dhe4 + zZcM.height * C5Rv
cviu = [wPEY, YLtW, Fa37, dhe4]
return cviu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zXil(YKHO):\n return LBWB.boundary(YKHO)",
"def knNY(YKHO):\n iNXf = AmSr()\n iNXf.readFile(YKHO.filename)\n K_96 = [iNXf.src_geotransform[0], iNXf.src_geotransform[3] + iNXf.src_geotransform[5] * iNXf.src_ysize, iNXf.src_geotransform[0] + iNXf.src_geotransform[1] * iNXf.src_xsize, iNXf.src_geotr... | [
"0.7258817",
"0.7149014",
"0.6922816",
"0.6824255",
"0.6793342",
"0.67704815",
"0.6729652",
"0.6729652",
"0.67072237",
"0.66414917",
"0.6499978",
"0.6468945",
"0.64385384",
"0.64246446",
"0.64180356",
"0.6399902",
"0.63874614",
"0.63614017",
"0.636078",
"0.6351728",
"0.635034... | 0.71784353 | 1 |
Getter method for outer_vlan, mapped from YANG variable /bridge_domain_state/bridge_domain_list/outer_vlan_list/outer_vlan (uint32) | def OKjB(YKHO):
return YKHO.__outer_vlan | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def INOb(YKHO, Ty9i, tyeH=False):\n _AKB = getattr(YKHO, '_parent', None)\n if _AKB is not None and tyeH is False:\n raise AttributeError('Cannot set keys directly when' + ' within an instantiated list')\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(... | [
"0.801105",
"0.7534084",
"0.6600866",
"0.6246699",
"0.5288291",
"0.5287546",
"0.5229947",
"0.5159879",
"0.515064",
"0.49781272",
"0.49711853",
"0.49711853",
"0.49569613",
"0.49045643",
"0.488813",
"0.4846662",
"0.48191497",
"0.4765966",
"0.4734194",
"0.47232813",
"0.470916",
... | 0.658733 | 3 |
Setter method for outer_vlan, mapped from YANG variable /bridge_domain_state/bridge_domain_list/outer_vlan_list/outer_vlan (uint32) | def INOb(YKHO, Ty9i, tyeH=False):
_AKB = getattr(YKHO, '_parent', None)
if _AKB is not None and tyeH is False:
raise AttributeError('Cannot set keys directly when' + ' within an instantiated list')
if hasattr(Ty9i, '_utype'):
Ty9i = Ty9i._utype(Ty9i)
try:
a1PO = ltgX(Ty9i, base=u... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def l6dH(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=QuAi('outer_vlan', grKP.outer_vlan_list, yang_name='outer-vlan-list', rest_name='outer-vlan-list', parent=YKHO, is_container='list', user_ordered=False, path_helper=YKHO._p... | [
"0.77311844",
"0.67008746",
"0.6367603",
"0.62410027",
"0.5341374",
"0.5307264",
"0.5261025",
"0.5250061",
"0.50709975",
"0.5041514",
"0.5041514",
"0.5014233",
"0.49890202",
"0.4925953",
"0.4920613",
"0.4798769",
"0.4777761",
"0.47650677",
"0.47157946",
"0.47157946",
"0.47078... | 0.85854346 | 0 |
Setter method for no_of_up_untagged_ports, mapped from YANG variable /bridge_domain_state/bridge_domain_list/outer_vlan_list/no_of_up_untagged_ports (uint32) | def MIzt(YKHO, Ty9i, tyeH=False):
if hasattr(Ty9i, '_utype'):
Ty9i = Ty9i._utype(Ty9i)
try:
a1PO = ltgX(Ty9i, base=ukQ0(base_type=Swre, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name='no-of-up-untagged-ports', rest_name='no-of-up-untagged-ports', parent=YKHO... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b117(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=ukQ0(base_type=Swre, restriction_dict={'range': ['0..4294967295']}, int_size=32), is_leaf=True, yang_name='no-of-up-tagged-ports', rest_name='no-of-up-tagged-ports', parent... | [
"0.77956885",
"0.74654865",
"0.67659885",
"0.626571",
"0.5794373",
"0.5736429",
"0.5580249",
"0.5361051",
"0.53506994",
"0.534527",
"0.5109295",
"0.5098848",
"0.5062592",
"0.50478864",
"0.50139093",
"0.5011525",
"0.49828425",
"0.48765036",
"0.48704156",
"0.48416257",
"0.48416... | 0.8655177 | 0 |
Applies an image mask. Only keeps the region of the image defined by the polygon formed from `vertices`. The rest of the image is set to black. | def mWKt(VXjJ, iXlf):
ZHfW = oyIN.zeros_like(VXjJ)
if len(VXjJ.shape) > 2:
M9nc = VXjJ.shape[2]
K43N = (255,) * M9nc
else:
K43N = 255
XC5k.fillPoly(ZHfW, iXlf, K43N)
lVtf = XC5k.bitwise_and(VXjJ, ZHfW)
return lVtf | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWKt(YKHO, VXjJ, iXlf):\n ZHfW = oyIN.zeros_like(VXjJ)\n if len(VXjJ.shape) > 2:\n M9nc = VXjJ.shape[2]\n K43N = (255,) * M9nc\n else:\n K43N = 255\n XC5k.fillPoly(ZHfW, iXlf, K43N)\n lVtf = XC5k.bitwise_and(VXjJ, ZHfW)\n return lVtf",
"def mWKt(YKHO, VXjJ, iXlf):\n ... | [
"0.7599286",
"0.7599286",
"0.7599286",
"0.7599286",
"0.7563296",
"0.7526157",
"0.75106335",
"0.7508256",
"0.75024915",
"0.7500556",
"0.74973565",
"0.74462736",
"0.74367046",
"0.7421616",
"0.7404978",
"0.7404978",
"0.7393925",
"0.7393925",
"0.7393925",
"0.7393925",
"0.7393925"... | 0.73188156 | 48 |
Applies an image mask. Only keeps the region of the image defined by the polygon formed from `vertices`. The rest of the image is set to black. | def DCOY(VXjJ, iXlf):
ZHfW = oyIN.zeros_like(VXjJ)
if len(VXjJ.shape) > 2:
M9nc = VXjJ.shape[2]
K43N = (255,) * M9nc
else:
K43N = 255
XC5k.fillPoly(ZHfW, iXlf, K43N)
ZHfW = Up2j(ZHfW)
lVtf = XC5k.bitwise_and(VXjJ, ZHfW)
return lVtf | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWKt(YKHO, VXjJ, iXlf):\n ZHfW = oyIN.zeros_like(VXjJ)\n if len(VXjJ.shape) > 2:\n M9nc = VXjJ.shape[2]\n K43N = (255,) * M9nc\n else:\n K43N = 255\n XC5k.fillPoly(ZHfW, iXlf, K43N)\n lVtf = XC5k.bitwise_and(VXjJ, ZHfW)\n return lVtf",
"def mWKt(YKHO, VXjJ, iXlf):\n ... | [
"0.759783",
"0.759783",
"0.759783",
"0.759783",
"0.756208",
"0.75242776",
"0.7508719",
"0.750708",
"0.75005496",
"0.74989",
"0.7496213",
"0.74441934",
"0.7435402",
"0.74204147",
"0.7403511",
"0.7403511",
"0.7392698",
"0.7392698",
"0.7392698",
"0.7392698",
"0.7392698",
"0.73... | 0.71303916 | 73 |
this func returns a user object according an ID, if the user isn't exists returned None. | def XMSA(YKHO, uJjO):
for CBIr in YKHO.users:
if CBIr.user_id == uJjO:
return CBIr
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ggdo(Emd4, id):\n CBIr = Emd4.get_by_id(id)\n return CBIr",
"def ggdo(Emd4, id):\n CBIr = Emd4.get_by_id(id)\n return CBIr",
"def bt8D(id):\n NCls = GGod()\n N1p7 = NCls.cursor()\n WNtM = 'SELECT id, name, email, password, role, created, idcreated FROM user WHERE id = ?'\n N1p7.exec... | [
"0.82912856",
"0.82912856",
"0.81764585",
"0.8122792",
"0.8089646",
"0.8079632",
"0.8060578",
"0.80141115",
"0.8011779",
"0.8006937",
"0.7986763",
"0.792236",
"0.7910439",
"0.78944165",
"0.78872573",
"0.7878382",
"0.786446",
"0.7851169",
"0.7839448",
"0.7835792",
"0.78333557"... | 0.8029845 | 7 |
The model instance being tracked. This will be ``None`` if the instance has been destroyed. | def _yCA(YKHO):
return YKHO() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iSDi(YKHO):\n return YKHO.instance",
"def KAOR(YKHO):\n return YKHO._instance",
"def KAOR(YKHO):\n return YKHO._instance",
"def NMoC(YKHO):\n return YKHO.instance",
"def iSDi(YKHO):\n return None",
"def C3ST(YKHO) -> h8nf[ImMB]:\n return YKHO._model",
"def C3ST(YKHO):\n return ... | [
"0.7244997",
"0.71688354",
"0.709114",
"0.70849824",
"0.696078",
"0.6916634",
"0.68702066",
"0.6842895",
"0.6810413",
"0.6794775",
"0.6794775",
"0.6794775",
"0.6794775",
"0.6794775",
"0.6794775",
"0.6794775",
"0.6794775",
"0.6794775",
"0.6794775",
"0.6794775",
"0.6794775",
... | 0.63767946 | 59 |
Return a string representation of the instance state. | def wHJl(YKHO):
_yCA = YKHO.model_instance
if _yCA is not None:
return '<InstanceState for %s.pk=%s>' % (_yCA.__class__.__name__, _yCA.pk)
else:
return '<InstanceState for %r (destroyed)>' % YKHO.model_cls | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHJl(YKHO):\n return str(YKHO.state)",
"def zAg0(YKHO):\n return 'State{\\n %s \\n}' % '\\n'.join(['\\t{}: {}'.format(G1Hx, str(YRbF)) for G1Hx, YRbF in YKHO.__dict__.items() if not G1Hx.startswith('_')])",
"def wHJl(YKHO):\n return YKHO.mdp.state_string(YKHO.state)",
"def zAg0(YKHO):\n retur... | [
"0.87000823",
"0.8399378",
"0.82902086",
"0.8118876",
"0.8114911",
"0.8108333",
"0.8000035",
"0.79855615",
"0.79132736",
"0.79132736",
"0.78987855",
"0.7853129",
"0.7822153",
"0.7808915",
"0.7740421",
"0.77111286",
"0.76318926",
"0.76055205",
"0.7528053",
"0.75129706",
"0.750... | 0.7361711 | 37 |
Return InstanceStates for the other end of a ForeignKey. This is used when listening to changes on models that establish a ForeignKey to this counter field's parent model. Given the instance on that end, we can get the state for this end. | def Mh5y(YKHO, KAOR):
return OTB3._get_saved_states(model_cls=YKHO._rel_field.model, instance_pk=getattr(KAOR, YKHO._rel_field.field.attname), rel_field_name=YKHO._rel_field_name) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dpQD(Emd4, M24A, zsrP, rC1H):\n H5ew = (M24A, zsrP, rC1H)\n with Emd4._state_lock:\n wspz = Emd4._saved_instance_states.get(H5ew)\n if wspz is not None:\n return [QTBn for QTBn in wspz.values() if QTBn.model_instance is not None]\n return None",
"def aJY_(YKHO):\n return ... | [
"0.5842535",
"0.5740998",
"0.5740998",
"0.53759795",
"0.53499895",
"0.52839404",
"0.52049965",
"0.5190386",
"0.5190223",
"0.51696014",
"0.51321256",
"0.51064813",
"0.50864136",
"0.50800276",
"0.5078673",
"0.5069313",
"0.50139004",
"0.49591696",
"0.49591696",
"0.4952874",
"0.4... | 0.77549183 | 0 |
Return whether there are currently any states being tracked. This will begin by cleaning up any expired states whose instances have been destroyed, if there are any. Then it will check if there are any remaining states still being tracked and return a result. | def d7Bj(Emd4):
Emd4._cleanup_state()
return bool(Emd4._saved_instance_states) or bool(Emd4._unsaved_instance_states) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xm2v(YKHO):\n DghZ = YKHO.observe_state()['state']\n yk4i = set(YKHO.planner.goal_state) - set(DghZ)\n return len(yk4i) == 0",
"def _fdx(YKHO):\n return len(YKHO.in_states) == 0",
"def UXFe(YKHO) -> bool:\n return YKHO.all_status(SYSq.JobStatus.HELD)",
"def MoKO(YKHO) -> bool:\n return ... | [
"0.6885439",
"0.6687075",
"0.64902115",
"0.6477845",
"0.646184",
"0.64138305",
"0.6395305",
"0.6381671",
"0.6362094",
"0.63146853",
"0.6303536",
"0.6297751",
"0.62920594",
"0.62584317",
"0.6253932",
"0.621904",
"0.6213119",
"0.6195144",
"0.6185263",
"0.6169248",
"0.61606455",... | 0.7936169 | 0 |
This method adds node of linked list to end | def SStx(YKHO, Qj8D):
Esd_ = _sfu.Node(Qj8D)
if YKHO.head is None:
YKHO.head = Esd_
YKHO.tail = Esd_
else:
YKHO.tail.next_value = Esd_
YKHO.tail = Esd_ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e68I(YKHO, Cc00):\n Q6kx = YKHO.first\n while Q6kx.getNext():\n Q6kx = Q6kx.getNext()\n Esd_ = o7DN(Cc00)\n Q6kx.setNext(Esd_)",
"def mnZL(YKHO, BQJU):\n if YKHO.head is None:\n YKHO.head = BQJU\n else:\n h7mk = YKHO.head\n while True:\n if h7mk.next i... | [
"0.82349896",
"0.7890199",
"0.7870251",
"0.7843291",
"0.779013",
"0.77602273",
"0.77469605",
"0.7626191",
"0.7584163",
"0.75835526",
"0.7569765",
"0.75562394",
"0.75562394",
"0.75562394",
"0.7545611",
"0.75030917",
"0.7502738",
"0.74720603",
"0.7463647",
"0.74185324",
"0.7413... | 0.69589156 | 94 |
Compute logpdf of a multivariate Gaussian distribution with diagonal covariance at a given point x. A multivariate Gaussian distribution with a diagonal covariance is equivalent to a collection of independent Gaussian random variables. x should be a sparse matrix. The logpdf will be computed for each row of x. mean and... | def yogC(WKvO, JBMS, PFC2):
exwG = WKvO.shape[0]
tpio = WKvO.shape[1]
assert tpio == len(JBMS) and tpio == len(PFC2)
RLly = 2 * oyIN.sqrt(PFC2)
YAyR = WKvO.dot(A2lD(1.0 / RLly))
pjCd = JBMS / RLly
return -oyIN.sum(oyIN.log(oyIN.sqrt(2.0 * oyIN.pi * PFC2))) - lAMv(YAyR, [pjCd], 'euclidean').f... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QF3p(WKvO, JBMS, PFC2, xfO4=True):\n sfI4 = oyIN.asarray(JBMS).flatten()\n hFXF = oyIN.asarray(WKvO).flatten()\n if H3y4:\n return nSzW.logpdf(hFXF, sfI4, PFC2, xfO4)\n else:\n return nSzW.logpdf(hFXF, sfI4, PFC2)",
"def QF3p(WKvO, JBMS, PFC2, xfO4=True):\n sfI4 = oyIN.asarray(JB... | [
"0.7691407",
"0.7691407",
"0.7581962",
"0.74642044",
"0.7242729",
"0.7242729",
"0.7190694",
"0.7180957",
"0.7169494",
"0.71416974",
"0.71354765",
"0.7075326",
"0.7060887",
"0.7056264",
"0.70230615",
"0.70094174",
"0.70007044",
"0.6993578",
"0.69822055",
"0.69499975",
"0.69476... | 0.8001721 | 0 |
Returns path of the given module | def WJI7(yR_P):
return Er1K.get_module_path(yR_P) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WJI7(yR_P):\n return oAb3.Path(Hy7s.path.dirname(Hy7s.path.abspath(tq_1.getfile(yR_P))))",
"def MJH2(yR_P):\n Aofo = Hy7s.path.dirname(kR1h.import_module(yR_P).__file__)\n return Aofo",
"def OyQC(yR_P, *mWFP):\n return Hy7s.path.join(Hy7s.path.dirname(yR_P.__file__), *mWFP)",
"def PNOv():\n ... | [
"0.89318126",
"0.8726233",
"0.8688972",
"0.83063185",
"0.83063185",
"0.81961894",
"0.8080796",
"0.80688375",
"0.801482",
"0.79788005",
"0.79518324",
"0.7879799",
"0.78197145",
"0.7769256",
"0.7764928",
"0.77133",
"0.77110577",
"0.77019566",
"0.7602879",
"0.7536794",
"0.748140... | 0.8451237 | 3 |
Video streaming home page. | def d6pt():
wzkt = qcWV.datetime.now()
print(wzkt.strftime('%Y-%m-%d %H:%M:%S'))
return TvZl('index.html', value=qfpW(qukk(2)))
T6FA.Timer(0.1, d6pt).start() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ecsS():\n return TvZl('/video-page.html')",
"def wOb_():\n return TvZl('video-feed.html')",
"def hkZA():\n return TvZl('video-page.html', title='video page', year=qcWV.now().year)",
"def kZiy(geh0):\n SFIC = YM9Z.objects.all()\n QpfX = {'videos': SFIC}\n return _1tc(geh0, 'InktoberSite/... | [
"0.76268315",
"0.76119703",
"0.7530637",
"0.73411614",
"0.7005877",
"0.66250384",
"0.6583905",
"0.6468895",
"0.6439333",
"0.64381635",
"0.6421515",
"0.6415742",
"0.6393503",
"0.6384064",
"0.637601",
"0.63417023",
"0.6321272",
"0.6291959",
"0.62908256",
"0.62908256",
"0.629082... | 0.0 | -1 |
The compensated pressure in hectoPascals. | def CJ2p(YKHO):
YKHO._read_temperature()
Yh3e = YKHO._read24(S7ov) / 16
CIn9 = float(YKHO._t_fine) / 2.0 - 64000.0
AhCl = CIn9 * CIn9 * YKHO._pressure_calib[5] / 32768.0
AhCl = AhCl + CIn9 * YKHO._pressure_calib[4] * 2.0
AhCl = AhCl / 4.0 + YKHO._pressure_calib[3] * 65536.0
ExCh = YKHO._pres... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"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 = AhCl + (Z9rn.P4 << 35)\n CIn9 = (CIn9 * CIn9 * Z9rn.P3 >> 8) + ... | [
"0.78194404",
"0.7739512",
"0.7585648",
"0.74901766",
"0.74528897",
"0.7420846",
"0.7402676",
"0.7402676",
"0.7402676",
"0.7402676",
"0.7397005",
"0.73600507",
"0.7348754",
"0.7344284",
"0.7309133",
"0.7268141",
"0.7165569",
"0.7152127",
"0.71026057",
"0.7080977",
"0.7030239"... | 0.73738104 | 11 |
The relative humidity in RH % | def dU0H(YKHO):
YKHO._read_temperature()
KWoa = YKHO._read_register(uBbY, 2)
Yh3e = float(KWoa[0] << 8 | KWoa[1])
CIn9 = float(YKHO._t_fine) - 76800.0
AhCl = YKHO._humidity_calib[3] * 64.0 + YKHO._humidity_calib[4] / 16384.0 * CIn9
ExCh = Yh3e - AhCl
e6F1 = YKHO._humidity_calib[1] / 65536.0
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def phmJ(YKHO) -> float:\n YKHO.measurement(I0Hj)\n YKHO._measurement = 0\n ITS7.sleep(0.016)\n return YKHO._data() * 125.0 / 65536.0 - 6.0",
"def dU0H(YKHO) -> float:\n YKHO._perform_reading()\n BmBh = (YKHO._t_fine * 5 + 128) / 256\n CIn9 = YKHO._adc_hum - YKHO._humidity_calibration[0] * 1... | [
"0.8016593",
"0.78867495",
"0.7830377",
"0.77477866",
"0.77477866",
"0.7707808",
"0.7560585",
"0.7548734",
"0.75461113",
"0.7447087",
"0.73971224",
"0.7353018",
"0.7352058",
"0.733473",
"0.7312074",
"0.72919977",
"0.7285007",
"0.7281822",
"0.7244575",
"0.72441804",
"0.7241428... | 0.7146102 | 25 |
The altitude based on current ``pressure`` versus the sea level pressure (``sea_level_pressure``) which you must enter ahead of time) | def n_Ej(YKHO):
CJ2p = YKHO.pressure
return 44330 * (1.0 - epAf.pow(CJ2p / YKHO.sea_level_pressure, 0.1903)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n_Ej(YKHO):\n n_Ej = 44330.0 * (1.0 - pow(YKHO.pressure / YKHO.sea_level_pressure, 0.1903))\n return round(n_Ej, 1)",
"def RC8o(YKHO, wH47=101325):\n n_Ej = 0.0\n CJ2p = float(YKHO.__readPressure())\n n_Ej = 44330.0 * (1.0 - pow(CJ2p / wH47, 0.1903))\n return n_Ej",
"def zmb1(YKHO, Wj85=1... | [
"0.8463424",
"0.8297794",
"0.7952503",
"0.79163665",
"0.782057",
"0.77346677",
"0.7723921",
"0.75270575",
"0.7509179",
"0.7443505",
"0.7430494",
"0.7415262",
"0.74138033",
"0.734746",
"0.734178",
"0.72797024",
"0.7279497",
"0.71817523",
"0.71442115",
"0.71343637",
"0.7086213"... | 0.8633545 | 0 |
Tests the _ReadDataTypeDefinitionWithMembers function. | def JiwY(YKHO):
C5tV = {'aliases': ['POINT'], 'attributes': {'byte_order': 'big-endian'}, 'description': 'Point in 3 dimensional space.', 'members': [{'name': 'x', 'data_type': 'int32'}, {'name': 'y', 'data_type': 'int32'}, {'name': 'z', 'data_type': 'int32'}]}
jeMA = YKHO._GetTestFilePath(['definitions', 'inte... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def J6xa(YKHO):\n C5tV = {'name': 'x', 'data_type': 'int32'}\n TRf_ = eh_L.StructureDefinition('point3d')\n jeMA = YKHO._GetTestFilePath(['definitions', 'integers.yaml'])\n ltCL = YKHO._CreateDefinitionRegistryFromFile(jeMA)\n im1J = N5Pj.DataTypeDefinitionsReader()\n im1J._ReadMemberDataTypeDefi... | [
"0.7363817",
"0.68779814",
"0.66838706",
"0.6645435",
"0.653594",
"0.6411669",
"0.62829745",
"0.621729",
"0.6165781",
"0.60954565",
"0.6084802",
"0.6062852",
"0.60552454",
"0.5959233",
"0.5889619",
"0.58823574",
"0.5876908",
"0.5856941",
"0.5780681",
"0.5734238",
"0.5720948",... | 0.8079824 | 0 |
Tests the _ReadUnionDataTypeDefinition function. | def Tdlu(YKHO):
C5tV = {'members': [{'name': 'long', 'data_type': 'int32'}, {'name': 'short', 'data_type': 'int16'}]}
jeMA = YKHO._GetTestFilePath(['definitions', 'integers.yaml'])
ltCL = YKHO._CreateDefinitionRegistryFromFile(jeMA)
im1J = N5Pj.DataTypeDefinitionsReader()
nnxS = im1J._ReadStructureD... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Feqh(YKHO):\n ltCL = nqEK.DataTypeDefinitionsRegistry()\n im1J = N5Pj.YAMLDataTypeDefinitionsFileReader()\n jeMA = YKHO._GetTestFilePath(['union.yaml'])\n YKHO._SkipIfPathNotExists(jeMA)\n with open(jeMA, 'rb') as rVmU:\n im1J.ReadFileObject(ltCL, rVmU)\n YKHO.assertEqual(len(ltCL._def... | [
"0.79532874",
"0.7730415",
"0.6828128",
"0.673158",
"0.669414",
"0.65079635",
"0.6487287",
"0.6424134",
"0.6420704",
"0.6348192",
"0.6252787",
"0.6245199",
"0.62310505",
"0.6211717",
"0.619669",
"0.60341924",
"0.60198146",
"0.6007235",
"0.59824026",
"0.5979342",
"0.59596676",... | 0.84223366 | 0 |
Chop off beginning of a string to size. Add 3 optional dots at the beginning if trimming is required. | def lAty(JZXy, zNig, N06i=True):
if JZXy is None:
return None
elif len(JZXy) <= zNig:
return JZXy
elif N06i:
return '...' + JZXy[-zNig + 3:]
else:
return JZXy[-zNig:] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O358(KCHu):\n return KCHu if len(KCHu) <= 80 else KCHu[:77] + '...'",
"def O358(KCHu, vC9B):\n if len(KCHu) < vC9B + 3:\n return KCHu\n else:\n return KCHu[:vC9B] + '...'",
"def O358(KCHu):\n return KCHu if len(KCHu) <= 80 else KCHu[:77] + '...'",
"def O358(KCHu):\n return KC... | [
"0.7205691",
"0.71649027",
"0.71633875",
"0.71633875",
"0.71633875",
"0.7148919",
"0.7148919",
"0.7148919",
"0.7148919",
"0.7148919",
"0.7148919",
"0.7148919",
"0.7148919",
"0.7133049",
"0.7133049",
"0.6812046",
"0.6802681",
"0.67744726",
"0.6741861",
"0.6605638",
"0.6574738"... | 0.7816204 | 0 |
Creates an instance from a dictionary with the same structure as ``.as_dict()`` returns. | def jG8h(Emd4, fK8P):
if fK8P['tb_next']:
V9od = Emd4.from_dict(fK8P['tb_next'])
else:
V9od = None
Wxnj = Bjh_(co_filename=fK8P['tb_frame']['f_code']['co_filename'], co_name=fK8P['tb_frame']['f_code']['co_name'])
f4IJ = Bjh_(f_globals=fK8P['tb_frame']['f_globals'], f_code=Wxnj, f_lineno=... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CCiu(Emd4, tbx9):\n qIxc = {}\n return Emd4(**qIxc)",
"def jG8h(Emd4, Csk6):\n return Emd4(**Csk6)",
"def jG8h(Emd4, Csk6):\n return Emd4(**Csk6)",
"def jG8h(Emd4, Csk6):\n return Emd4(**Csk6)",
"def jG8h(Emd4, nPrm):\n bDYe = jth9.copy(nPrm)\n return Emd4(**bDYe)",
"def MJdd(Emd... | [
"0.8181857",
"0.8012296",
"0.8012296",
"0.8012296",
"0.79858845",
"0.7979733",
"0.79793096",
"0.7940458",
"0.7940458",
"0.7940458",
"0.7940458",
"0.7940458",
"0.7940458",
"0.7940458",
"0.7940458",
"0.7940458",
"0.7940458",
"0.7940458",
"0.7940458",
"0.7940458",
"0.7940458",
... | 0.0 | -1 |
Returns the token that is used for correlating ingested telemetry with the resources in the subscription. | def bfwu(ML9X: Optional[str]=None, VKhi: Optional[pulumi.InvokeOptions]=None) -> XMUb:
rYZf = dict()
rYZf['ingestionSettingName'] = ML9X
VKhi = qe4Y.InvokeOptions.merge(i5mz.get_invoke_opts_defaults(), VKhi)
p5j3 = qe4Y.runtime.invoke('azure-native:security:listIngestionSettingTokens', rYZf, opts=VKhi, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eOtH(YKHO):\n return YKHO._generate_jwt_token()",
"def eOtH(YKHO):\n return YKHO._generate_jwt_token()",
"def eOtH(YKHO):\n return YKHO._generate_jwt_token()",
"def eOtH(YKHO):\n return YKHO._generate_jwt_token()",
"def eOtH(YKHO):\n return YKHO._generate_jwt_token()",
"def Yexg(YKHO) ... | [
"0.72864306",
"0.7174303",
"0.7174303",
"0.7174303",
"0.7174303",
"0.7063709",
"0.70468765",
"0.69343096",
"0.69295466",
"0.69295466",
"0.69295466",
"0.6896391",
"0.6866372",
"0.6866372",
"0.67058146",
"0.67058146",
"0.67058146",
"0.67058146",
"0.6700697",
"0.6686113",
"0.668... | 0.0 | -1 |
Returns the token that is used for correlating ingested telemetry with the resources in the subscription. | def jihs(ML9X: Optional[pulumi.Input[str]]=None, VKhi: Optional[pulumi.InvokeOptions]=None) -> qe4Y.Output[_KS_]:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eOtH(YKHO):\n return YKHO._generate_jwt_token()",
"def eOtH(YKHO):\n return YKHO._generate_jwt_token()",
"def eOtH(YKHO):\n return YKHO._generate_jwt_token()",
"def eOtH(YKHO):\n return YKHO._generate_jwt_token()",
"def eOtH(YKHO):\n return YKHO._generate_jwt_token()",
"def Yexg(YKHO) ... | [
"0.7286065",
"0.7173809",
"0.7173809",
"0.7173809",
"0.7173809",
"0.70627344",
"0.7046574",
"0.69333196",
"0.69289124",
"0.69289124",
"0.69289124",
"0.6895465",
"0.68661016",
"0.68661016",
"0.6705222",
"0.6705222",
"0.6705222",
"0.6705222",
"0.6699985",
"0.66855246",
"0.66820... | 0.0 | -1 |
Check that the given file path exists. If not, raise RuntimeError. | def oJ4n(WJHQ):
if not Hy7s.path.exists(WJHQ):
raise RuntimeError('Cannot find file: ' + WJHQ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QcvR(pmON):\n if not Hy7s.path.isfile(pmON):\n raise RuntimeError('Not a file path: {}'.format(pmON))",
"def CNBL(nUeQ):\n qaEx = oAb3.Path(nUeQ)\n if not qaEx.is_file():\n raise FileNotFoundError('It was not possible find the file: ' + nUeQ)",
"def H4si(pmON):\n if not Hy7s.path.... | [
"0.8338594",
"0.80599326",
"0.8032579",
"0.79100794",
"0.78783226",
"0.77840316",
"0.7756423",
"0.77425325",
"0.7727075",
"0.7660884",
"0.76589113",
"0.7649303",
"0.7623595",
"0.761571",
"0.7594373",
"0.75632346",
"0.75457245",
"0.7501539",
"0.74730736",
"0.7446127",
"0.74356... | 0.8782596 | 0 |
Return the default license. | def voYm():
KeQe = {}
KeQe['name'] = 'cc-by-4.0'
KeQe['url'] = 'https://creativecommons.org/licenses/by/4.0/'
KeQe['description'] = 'The content can be shared and adapted but you must give appropriate credit and cannot restrict access to others.'
return KeQe | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def license(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'license')",
"def license(YKHO) -> laHg.Optional[str]:\n return YKHO._values.get('license')",
"def license(YKHO) -> str:\n return qe4Y.get(YKHO, 'license')",
"def license(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, '... | [
"0.7828298",
"0.7733965",
"0.76704156",
"0.76656824",
"0.76656824",
"0.76656824",
"0.7653739",
"0.7579689",
"0.7508402",
"0.7341296",
"0.73356515",
"0.7304986",
"0.72454715",
"0.72454715",
"0.7223419",
"0.71674186",
"0.71135956",
"0.71135956",
"0.7042921",
"0.70182616",
"0.70... | 0.6977921 | 24 |
Extract lists of X and Y values from a TGraph. | def _ilb(YKHO, lWkO):
pNZh = YKHO.retrieve_object(lWkO)
return rGFo(pNZh) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JI1i(YKHO):\n WKvO = YKHO.coords_x\n LVAh = YKHO.coords_y\n list = []\n for q2Xo in zip(WKvO, LVAh):\n for wEf2 in q2Xo:\n list.append(wEf2)\n return list",
"def HLqH(yvY1):\n Ziit = yvY1.nodes()\n TEPG = []\n BniY = []\n for YRbF in Ziit:\n TEPG.append(yvY... | [
"0.64384425",
"0.6399597",
"0.6399596",
"0.6337253",
"0.6278728",
"0.6247575",
"0.6203121",
"0.61266506",
"0.6035386",
"0.6007849",
"0.6001944",
"0.5979148",
"0.59664416",
"0.5962882",
"0.5937035",
"0.5929838",
"0.5888746",
"0.5879908",
"0.5873773",
"0.58737254",
"0.58701086"... | 0.0 | -1 |
Extract lists of X and Y values from a TGraph. | def rGFo(pNZh):
if not isinstance(pNZh, (Mkmy.TGraph, Mkmy.TGraphErrors, Mkmy.TGraphAsymmErrors)):
raise TypeError("Expected to input to be TGraph or similar, instead got '{0}'".format(type(pNZh)))
LTIa = oRi_(list)
for YRbF in range(pNZh.GetN()):
rfpI = Mkmy.Double()
A3RF = Mkmy.Dou... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JI1i(YKHO):\n WKvO = YKHO.coords_x\n LVAh = YKHO.coords_y\n list = []\n for q2Xo in zip(WKvO, LVAh):\n for wEf2 in q2Xo:\n list.append(wEf2)\n return list",
"def HLqH(yvY1):\n Ziit = yvY1.nodes()\n TEPG = []\n BniY = []\n for YRbF in Ziit:\n TEPG.append(yvY... | [
"0.64384425",
"0.6399597",
"0.6399596",
"0.6337253",
"0.6278728",
"0.6247575",
"0.61266506",
"0.6035386",
"0.6007849",
"0.6001944",
"0.5979148",
"0.59664416",
"0.5962882",
"0.5937035",
"0.5929838",
"0.5888746",
"0.5879908",
"0.5873773",
"0.58737254",
"0.58701086",
"0.5867866"... | 0.6203121 | 6 |
Test a temperature that is above freezing. | def HGyv(YKHO):
aEqx = True
n5sN = ovGo.above_freezing(5.2)
YKHO.assertEqual(aEqx, n5sN, 'The temperature is above freezing.') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YVTn(YKHO):\n YKHO._setup_switch(False)\n BJsk.set_temperature(YKHO.hass, 30)\n YKHO.hass.block_till_done()\n YKHO._setup_sensor(29)\n YKHO.hass.block_till_done()\n assert 0 == len(YKHO.calls)",
"def b57K(YKHO):\n YKHO._setup_switch(False)\n BJsk.set_temperature(YKHO.hass, 25)\n YK... | [
"0.7399517",
"0.733255",
"0.72877717",
"0.728396",
"0.7182332",
"0.71592253",
"0.7074106",
"0.70012903",
"0.6854832",
"0.6843346",
"0.6842713",
"0.67978173",
"0.67932",
"0.679138",
"0.67722154",
"0.67341495",
"0.6696181",
"0.66731155",
"0.66511524",
"0.6646801",
"0.6631597",
... | 0.73873866 | 1 |
Test a temperature that is below freezing. | def PmGi(YKHO):
aEqx = False
n5sN = ovGo.above_freezing(-2)
YKHO.assertEqual(aEqx, n5sN, 'The temperature is below freezing.') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Cqqw(YKHO):\n YKHO._setup_switch(True)\n BJsk.set_temperature(YKHO.hass, 30)\n YKHO.hass.block_till_done()\n YKHO._setup_sensor(33)\n YKHO.hass.block_till_done()\n assert 0 == len(YKHO.calls)",
"def YVTn(YKHO):\n YKHO._setup_switch(False)\n BJsk.set_temperature(YKHO.hass, 30)\n YKH... | [
"0.73106235",
"0.730753",
"0.724494",
"0.71628904",
"0.70408744",
"0.69058615",
"0.6886786",
"0.68816066",
"0.6841582",
"0.67869306",
"0.675653",
"0.6744768",
"0.66690254",
"0.66612786",
"0.66488785",
"0.6615495",
"0.6603151",
"0.6567321",
"0.65629816",
"0.6538865",
"0.648609... | 0.6803268 | 9 |
Transform `logits` into probabilities by applying softmax function. | def anMS(YKHO, kdJa):
if 'softmax' in YKHO._cache_data:
return YKHO._cache_data['softmax']
qBpz = YKHO.logits.eval(kdJa)
tkSp = oyIN.exp(qBpz)
YKHO._cache_data['softmax'] = tkSp / tkSp.sum(axis=1, keepdims=True)
return YKHO._cache_data['softmax'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NNvW(KeL5):\n return vuvg.softmax(KeL5, dim=1)",
"def N93T(KeL5):\n nwEM = oyIN.exp(KeL5)\n return nwEM / oyIN.sum(nwEM, axis=1, keepdims=True)",
"def N93T(KeL5):\n if not isinstance(KeL5, oyIN.ndarray):\n KeL5 = oyIN.array(KeL5)\n KeL5 = KeL5 - oyIN.max(KeL5)\n lM0O = oyIN.exp(KeL... | [
"0.8679441",
"0.8428792",
"0.83920795",
"0.81041276",
"0.81030005",
"0.806513",
"0.7889665",
"0.7821696",
"0.7624244",
"0.7622772",
"0.7560851",
"0.755414",
"0.7515601",
"0.7502485",
"0.7481054",
"0.7449176",
"0.74049497",
"0.7404421",
"0.74004656",
"0.7378659",
"0.7368881",
... | 0.7167455 | 33 |
Get the area of a WKT in 4326 | def oIaV(wmRf):
BLg0 = LBWB.wkt.loads(wmRf)
IuD8 = Nlxo(wmRf)
vSa_ = PkKV.Proj(init='epsg:4326')
bNKA = YLnl(PkKV.transform, vSa_, IuD8)
PNnM = SZFh(bNKA, BLg0)
KZU3 = PNnM.area / 1000000.0
return KZU3 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sAdl(YKHO):\n from mapping.geotools.coordtrans import WGS84, GGL_MERCATOR\n SZFh = BYPk.CoordinateTransformation(WGS84, GGL_MERCATOR)\n nQVa = YKHO.to_ogr_geom()\n nQVa.Transform(SZFh)\n return nQVa.GetArea()",
"def sAdl(AU8u, H2v2, TVTK, QSee='WGS 1984'):\n QnmL = AU8u.Y\n FDPT = AU8u.X... | [
"0.79100066",
"0.7512776",
"0.743982",
"0.69960314",
"0.69802237",
"0.6895736",
"0.68884814",
"0.6883915",
"0.6870432",
"0.6857941",
"0.68032587",
"0.66584146",
"0.66419876",
"0.66414255",
"0.66126066",
"0.66075104",
"0.65830165",
"0.6582485",
"0.65750647",
"0.65581137",
"0.6... | 0.63804144 | 36 |
Define the model name for all RandomForest based classifiers | def qaOG(YKHO):
mWFP = f'randomforest_S_{YKHO.seed}_CLF_{YKHO.nb_classes}'
mWFP += f'_R_{YKHO.redshift}'
mWFP += f'_{YKHO.source_data}_DF_{YKHO.data_fraction}_N_{YKHO.norm}'
YKHO.randomforest_model_name = mWFP
YKHO.rf_dir = f'{YKHO.models_dir}/{YKHO.randomforest_model_name}'
if YKHO.train_rf:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Es_9(YKHO):\n pass",
"def DMw4(YKHO) -> str:\n return IaDD",
"def YrZb(mWFP):\n mWFP = mWFP.lower()\n if mWFP == 'randomforestclassifier':\n return v9Rb\n if mWFP == 'quadraticdiscriminantanalysis':\n return Ba6Q\n if mWFP == 'multinomialnb':\n return mc7B\n if mWF... | [
"0.6608224",
"0.6607966",
"0.6595428",
"0.64864963",
"0.6479768",
"0.64743555",
"0.6432727",
"0.6426464",
"0.6416216",
"0.6315066",
"0.6314305",
"0.62568694",
"0.6238918",
"0.61837924",
"0.618161",
"0.6170859",
"0.61684763",
"0.616024",
"0.6143999",
"0.6120801",
"0.6113804",
... | 0.75628585 | 0 |
Find the maximum and minimum voltage values for the filtered ECG signal | def pHF_(fShT):
o2o5 = max(fShT)
KzxV = min(fShT)
Mgfw = (KzxV, o2o5)
print(Mgfw)
return Mgfw | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f4cC(m8jn):\n G9jH.info('Determining the voltage extremes')\n un9A = max(m8jn)\n zwCB = min(m8jn)\n lmk2 = (zwCB, un9A)\n return lmk2",
"def Nla5(YKHO):\n import numpy as oyIN\n YKHO.voltage_extremes = (oyIN.nanmin(YKHO.volt), oyIN.nanmax(YKHO.volt))\n ESjr.info(' | SUCCESS: Voltage e... | [
"0.69507575",
"0.6778385",
"0.65278274",
"0.6488991",
"0.6473001",
"0.62736434",
"0.62035507",
"0.61787426",
"0.6139536",
"0.61242276",
"0.6121768",
"0.60652405",
"0.6059238",
"0.60463774",
"0.6020283",
"0.59912336",
"0.59748834",
"0.5947425",
"0.59415704",
"0.5899504",
"0.58... | 0.67745745 | 2 |
Convert a str to bool | def sisc(str):
return True if str.lower() == 'true' else False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M0mR(YKHO, str):\n if str.lower() == 'true':\n return True\n elif str.lower() == 'false':\n return False\n else:\n raise ValueError",
"def M0mR(YKHO, str):\n try:\n if str.lower() == 'true':\n return True\n elif str.lower() == 'false':\n re... | [
"0.91030437",
"0.90753275",
"0.88880557",
"0.88432777",
"0.8767435",
"0.86915267",
"0.866543",
"0.86432815",
"0.864121",
"0.86087036",
"0.8602742",
"0.8537728",
"0.849224",
"0.84816855",
"0.847868",
"0.84691787",
"0.8457085",
"0.844094",
"0.8438025",
"0.8435769",
"0.8418298",... | 0.8797087 | 4 |
Get and verify the index.json file. | def aqIr(YKHO, d6pt):
ILHV = TDhU(GPtr.https_base, d6pt)
kUkW = ILHV + '.asc'
RcGC = Hy7s.path.join(GPtr.tempdir, 'index.json')
RWny = RcGC + '.asc'
with aXgV() as E5BI:
YKHO.downloader.get_files([(ILHV, RcGC), (kUkW, RWny)])
E5BI.callback(Hy7s.remove, RcGC)
E5BI.callback(Hy7... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WPsv(YKHO, RcGC):\n JBbe = GkAb(RcGC)\n if JBbe.exists() and JBbe.is_file():\n with open(JBbe, 'r') as I5v1:\n try:\n OheF = WlK7(I5v1)\n if 'files' in OheF:\n for BYks in OheF['files']:\n if BYks not in YKHO.index[... | [
"0.66452825",
"0.6635063",
"0.66222864",
"0.65928257",
"0.65372276",
"0.6430289",
"0.6364777",
"0.63116014",
"0.6294117",
"0.60401934",
"0.60357726",
"0.6018789",
"0.5940853",
"0.5930862",
"0.5917372",
"0.59095395",
"0.59064734",
"0.59052587",
"0.58988285",
"0.58952945",
"0.5... | 0.700163 | 0 |
Get md5 hash of a file. | def xORj(qaEx):
pFtS = HBct.md5()
with open(qaEx, 'rb') as PzCc:
for yOAJ in iter(lambda: PzCc.read(4096), b''):
pFtS.update(yOAJ)
return pFtS.hexdigest() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pQm7(gIsw):\n with open(gIsw, 'rb') as eHNT:\n OZKa = eHNT.read()\n dQiW = HBct.md5(OZKa).hexdigest()\n return dQiW",
"def vXG9(nUeQ):\n bNaV = HBct.md5()\n for bytes in Q4R3(nUeQ):\n bNaV.update(bytes)\n return bNaV.hexdigest()",
"def sKcI(qaEx):\n razo = HBct.md5()\... | [
"0.8847774",
"0.884309",
"0.8757101",
"0.8721587",
"0.8718135",
"0.8667928",
"0.86547315",
"0.8633722",
"0.8633088",
"0.8603421",
"0.8582843",
"0.85478145",
"0.85424066",
"0.8507927",
"0.85029",
"0.84668654",
"0.8454612",
"0.8446918",
"0.84282523",
"0.8422315",
"0.8416644",
... | 0.8275188 | 33 |
Sets the learning rate to the initial LR decayed by 10 every 30 epochs | def e_63(K0do, qtWj):
for Lwm5 in K0do.param_groups:
Lwm5['lr'] = Lwm5['lr'] / (1 + qtWj * oyIN.sqrt(2)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e_63(K0do, qtWj):\n nIX4 = nIX4 * 0.1 ** ((qtWj - 117) // 30)",
"def e_63(K0do, qtWj, qIxc):\n tspZ = qIxc.lr * 0.1 ** (qtWj // 30)\n K0do.state_dict()['param_groups'][-1]['lr'] = tspZ",
"def e_63(ma4o, K0do, qtWj, ctbl):\n tspZ = ma4o * 0.1 ** (qtWj // int(epAf.ceil(30.0 / ctbl)))\n for Lwm... | [
"0.7991837",
"0.7940576",
"0.78895533",
"0.78278863",
"0.7822731",
"0.78170556",
"0.7810941",
"0.78027624",
"0.77914375",
"0.7788607",
"0.7782131",
"0.7765793",
"0.77645",
"0.77609223",
"0.7749379",
"0.7739108",
"0.7731853",
"0.77242327",
"0.77121335",
"0.7708826",
"0.7704794... | 0.0 | -1 |
Builds the output layers of the unet. Flattens the input to one frame volume. | def y5Cm(input, zi3C, C8_j=True):
VIPT, H2v2, TVTK, bGrB = zi3C
yIp6 = yCyA(input, 2, kernel=(1, 1, 1))
if C8_j:
yIp6 = fhcK.Conv3D(2, (VIPT, 1, 1), padding='valid', kernel_initializer='he_normal', name='last_linear')(yIp6)
else:
yIp6 = fhcK.Conv3D(1, (VIPT, 1, 1), padding='valid', kerne... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def anjt(zi3C, er1f=32, E5GZ=False, C8_j=True):\n\n def AWd4(rb7a):\n \"\"\"Calcualtes number of conv layers depending on the depth level in the unet.\n\n Args:\n depth (int): Layer depth level.\n\n Returns:\n int: number of convolutional layers at that level\n ... | [
"0.6465984",
"0.64512914",
"0.6431172",
"0.63827705",
"0.63606346",
"0.63606346",
"0.63606346",
"0.63606346",
"0.62600857",
"0.6223599",
"0.6208445",
"0.62055445",
"0.6182885",
"0.6068963",
"0.60348713",
"0.6018402",
"0.59532964",
"0.59437627",
"0.59294796",
"0.59270656",
"0.... | 0.5469223 | 77 |
Constructs the 3D UNet architecture and compiles the keras model. | def eEZg(zi3C, er1f=32, C8_j=True, Wbxz=None, E5GZ=False):
g4y1, o4Jx = anjt(zi3C, start_filters_no=er1f, cat_ce=C8_j, double_second=E5GZ)
C3ST = bdPE.Model(inputs=g4y1, outputs=o4Jx)
y7GR = bdPE.optimizers.Adam(lr=0.0001)
if C8_j:
if Wbxz is None:
Wbxz = ['accuracy']
C3ST.co... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZWG6(NArs):\n if NArs['nn_type'] == 'c3d_test':\n C3ST = FYrf.c3d_test()\n else:\n C3ST = FYrf.c3d(summary=False, learn_visual_features=NArs['learn_visual_features'])\n C3ST = FYrf.c3d_int_model(model=C3ST, layer='fc8', batch_normalization=NArs['batch_normalization'], learn_visual_fe... | [
"0.74180126",
"0.73002505",
"0.7192858",
"0.71426755",
"0.7023265",
"0.70093155",
"0.69633853",
"0.6928864",
"0.6896464",
"0.6893044",
"0.6887616",
"0.6863689",
"0.6833561",
"0.68313956",
"0.68096524",
"0.6803047",
"0.6797406",
"0.6793947",
"0.6789749",
"0.67825884",
"0.67774... | 0.0 | -1 |
Remove all duplicates in list. Using loop method. | def iNYw(IqQl):
S06t = []
S06t.extend((YRbF for YRbF in IqQl if YRbF not in S06t))
return S06t | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sHC1(YKHO, list):\n return set((ZfUD for ZfUD in list))",
"def c9nX(BDwY):\n return list(set(BDwY))",
"def uY6T(list):\n return set((ZfUD for ZfUD in list))",
"def dDv2(list):\n S06t = []\n for ZfUD in list:\n if not ZfUD in S06t:\n S06t.append(ZfUD)\n return S06t",
... | [
"0.7965417",
"0.7801338",
"0.7693979",
"0.76107305",
"0.75313467",
"0.7514577",
"0.7500767",
"0.749699",
"0.74947053",
"0.7472574",
"0.74666184",
"0.73798484",
"0.7373795",
"0.7370454",
"0.736468",
"0.7281732",
"0.72709584",
"0.72403675",
"0.72186553",
"0.72176623",
"0.721170... | 0.8041492 | 0 |
Remove all duplicates in list. Using set method. | def LKC1(IqQl):
return list(set(IqQl)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sHC1(YKHO, list):\n return set((ZfUD for ZfUD in list))",
"def uY6T(list):\n return set((ZfUD for ZfUD in list))",
"def uY6T(yv6U):\n return list(set([YRbF for YRbF in yv6U]))",
"def dDv2(yv6U):\n tgCD = set()\n return [vC9B for vC9B in yv6U if vC9B not in tgCD and (not tgCD.add(vC9B))]",
... | [
"0.8826754",
"0.85395014",
"0.8139953",
"0.80957085",
"0.8094705",
"0.80925703",
"0.80918145",
"0.80390304",
"0.7839941",
"0.7781538",
"0.7747507",
"0.77419436",
"0.7672936",
"0.76068646",
"0.75964516",
"0.7568739",
"0.754147",
"0.75192314",
"0.74937767",
"0.74350536",
"0.741... | 0.84656125 | 2 |
Generates the Basic Auth header content for the headers on an HTTPS connection to the JIRA server. | def Krrb():
rL6W, Z1ZA = gYG5()
GoZD = WR89.b64encode(rL6W + ':' + Z1ZA)
return 'Basic ' + GoZD | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N9a7(YKHO):\n return {'Content-type': 'text/plain'}",
"def UEUp(NtEF, jTXt):\n return 'Basic ' + WR89.encodestring('%s:%s' % (NtEF, jTXt))[:-1]",
"def N9a7(NtEF, jTXt=''):\n of0_ = (NtEF + ':' + jTXt).encode('utf-8')\n RSvc = WR89.b64encode(of0_)\n return 'Basic ' + RSvc.decode('ascii')",
... | [
"0.7767043",
"0.74899703",
"0.7367964",
"0.7346344",
"0.72971684",
"0.71791464",
"0.71382886",
"0.70322984",
"0.6982003",
"0.69595265",
"0.6951997",
"0.69183046",
"0.6908429",
"0.6772171",
"0.67486775",
"0.65901107",
"0.65832824",
"0.65577555",
"0.6553271",
"0.6528559",
"0.64... | 0.756058 | 1 |
Gets the JIRA server DNS name. | def qG4H():
return 'globus.atlassian.net' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IfkU(YKHO) -> str:\n return qe4Y.get(YKHO, 'dns_nameserver')",
"def IfkU(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'dns_nameserver')",
"def s7xM(YKHO) -> str:\n return qe4Y.get(YKHO, 'dns_name')",
"def IfkU(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'dns_nameserver... | [
"0.85387486",
"0.7959128",
"0.7705968",
"0.7658266",
"0.7658266",
"0.7510892",
"0.7510892",
"0.73634624",
"0.72857887",
"0.71967083",
"0.71967083",
"0.71864",
"0.71025544",
"0.7088169",
"0.7076588",
"0.705029",
"0.7047553",
"0.69822323",
"0.6964056",
"0.6954657",
"0.6954657",... | 0.6836064 | 35 |
Turns a nonexistent attribute into a function. Returns the resulting function. | def JgjC(YKHO, mWFP):
try:
return getattr(YKHO.__module__, mWFP)
except AttributeError:
pass
if mWFP.lower() in YKHO.__module__.MSG_TYPES:
return YKHO.__module__.__function__(type=mWFP)
else:
return YKHO.__module__.__function__(type='command', message=mWFP) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QBmj(hkS8):\n if callable(hkS8):\n return hkS8\n\n def Oa1e(YEnM):\n return getattr(YEnM, hkS8)\n return Oa1e",
"def Q8cC(xC3W: str):\n\n def vU9r(MCGS):\n\n @zaGL(MCGS)\n def _gRY(YKHO, *qIxc, **B2fa):\n if getattr(YKHO, xC3W) is None:\n retu... | [
"0.7292149",
"0.7058497",
"0.698856",
"0.67002296",
"0.63076127",
"0.6302555",
"0.6173748",
"0.6164137",
"0.6132336",
"0.61289454",
"0.601186",
"0.6009888",
"0.59994143",
"0.5958117",
"0.59323865",
"0.59323865",
"0.5932335",
"0.590685",
"0.5871344",
"0.585862",
"0.58573693",
... | 0.0 | -1 |
Get parsed stored targets. | def YPht(oEge, EgSD=None):
assert EgSD
if '{job.state}' in EgSD:
EgSD = EgSD.replace('{job.state}', '{job.state:w}')
if '{job.number}' in EgSD:
EgSD = EgSD.replace('{job.number}', '{job.number:f}')
wvEv = hfK9.compile(EgSD)
if oEge[-1] != '/':
oEge = oEge + '/'
iumf = zjv... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RH8N(YKHO):\n tO9_ = YKHO.c.execute('info', 'targets')\n Ylbp = jZ4I.literal_eval(tO9_)\n return Ylbp",
"def x6A0(YKHO):\n return YKHO._data.get('targets', [])",
"def wCwx():\n return pp82",
"def RH8N(YKHO):\n nNXP = '/api/targets'\n return YKHO.get(nNXP)",
"def RH8N(YKHO):\n if... | [
"0.7506687",
"0.7142533",
"0.70069695",
"0.6963049",
"0.6943714",
"0.6815579",
"0.6785818",
"0.6726023",
"0.6718801",
"0.663189",
"0.66295147",
"0.6621912",
"0.66113794",
"0.66113794",
"0.66113794",
"0.6533818",
"0.65298563",
"0.65019864",
"0.65019864",
"0.64750564",
"0.64738... | 0.6367779 | 22 |
Return the number of items in the linked list. >>> s = Link(1, Link(2, Link(3))) >>> len(s) 3 >>> s = Link.empty >>> len(s) 0 | def szAg(YKHO):
return 1 + len(YKHO.rest) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def u54L(YKHO):\n if m94n.is_empty(YKHO):\n return 0\n DpUl = YKHO._head\n UHFx = 1\n while DpUl.next != YKHO._head:\n DpUl = DpUl.next\n UHFx += 1\n return UHFx",
"def AQWC(YKHO):\n Q6kx = YKHO.head\n UHFx = 0\n while Q6kx:\n UHFx += 1\n Q6kx = Q6kx.nex... | [
"0.853594",
"0.8214967",
"0.8204188",
"0.81553954",
"0.80685025",
"0.8045901",
"0.8031175",
"0.802763",
"0.7995713",
"0.79810387",
"0.79661554",
"0.7957606",
"0.7932567",
"0.7919816",
"0.79187715",
"0.78979236",
"0.78923595",
"0.7885819",
"0.7881127",
"0.7870978",
"0.7868362"... | 0.0 | -1 |
Write jsonObj to JSON file. jsonObj parsed JSON fileName the name of the output file | def RWSq(ytVK, uRP3):
with open(uRP3, 'w') as tyeL:
qQXR.dump(ytVK, tyeL) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QN9E(gIsw, TLbt):\n with open(gIsw, 'w') as nUeQ:\n qQXR.dump(TLbt, nUeQ)",
"def uP8n(nUeQ, YEnM):\n q9mE = qQXR.dumps(YEnM)\n e35S = GkAb('srcdata')\n nUeQ = e35S / nUeQ\n if not nUeQ.exists():\n nUeQ.write_text(q9mE)",
"def uP8n(wM3v, TLbt):\n with open(wM3v, 'w') as eHNT:... | [
"0.8299753",
"0.81967807",
"0.80315566",
"0.7989841",
"0.79739696",
"0.79122233",
"0.789948",
"0.7872971",
"0.7853371",
"0.78526825",
"0.7851288",
"0.78095657",
"0.7792236",
"0.77792704",
"0.77716756",
"0.7771149",
"0.77691966",
"0.77691966",
"0.7760143",
"0.7749475",
"0.7741... | 0.8189103 | 2 |
Read and parse JSON from file. fileName a file to read a parsed JSON object. | def vepp(uRP3):
with open(uRP3, 'r') as dx20:
return qQXR.loads(dx20.read()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PSj2(Ux0P):\n with open(Ux0P) as eHNT:\n return _PkU(eHNT)",
"def J2u4(Ux0P):\n with open(Ux0P, 'rt') as eHNT:\n return qQXR.load(eHNT)",
"def XFkv(Ux0P):\n hObn = T_Uj.open(Ux0P, encoding='utf-8').read()\n return qQXR.loads(hObn)",
"def W5P5(gIsw):\n with open(gIsw) as hOYR:... | [
"0.8108389",
"0.80496484",
"0.79986554",
"0.79722404",
"0.79464024",
"0.7943926",
"0.7916969",
"0.7896527",
"0.7862992",
"0.7836435",
"0.78178394",
"0.7816468",
"0.7815533",
"0.7813716",
"0.78090453",
"0.78050137",
"0.77864784",
"0.77827626",
"0.77804154",
"0.7771444",
"0.776... | 0.8476319 | 0 |
Creates a new record and saves to database. | def eLpg(Emd4, jSYO=True, **B2fa):
KAOR = Emd4(**B2fa)
return KAOR.save(commit=jSYO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xEm8(YKHO):\n rdlD = YKHO.get_inputs()\n if rdlD == False:\n AI9e.showwarning('Chyba', 'Niektoré polia sú prázdne!\\nProsím skontrolujte, či ste vyplnili všetky polia.')\n return\n elif rdlD[:-1]:\n rdlD = rdlD[:-1]\n w2B8 = HagN(QKV0)\n ejCy(w2B8, rdlD)\n w2B8.close()\n ... | [
"0.7608612",
"0.7542585",
"0.7456181",
"0.7456181",
"0.7456181",
"0.74154794",
"0.73330504",
"0.7301724",
"0.72866744",
"0.7279622",
"0.72660077",
"0.72195274",
"0.72110975",
"0.72110975",
"0.72075486",
"0.72072756",
"0.7205956",
"0.7189378",
"0.7153352",
"0.7148445",
"0.7148... | 0.0 | -1 |
Update existing record and saves to database. | def QdZT(YKHO, jSYO=True, **B2fa):
for hkS8, BWXx in B2fa.iteritems():
setattr(YKHO, hkS8, BWXx)
return jSYO and YKHO.save() or YKHO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NB_Y(YKHO, AIu6):\n w2B8 = HagN(QKV0)\n NB_Y(w2B8, AIu6)\n w2B8.close()",
"def QdZT(YKHO):\n NCls.session.commit()",
"def QdZT(YKHO):\n NCls.session.commit()",
"def QdZT(YKHO):\n NCls.session.commit()",
"def QdZT(YKHO):\n cuiw.commit()",
"def QdZT():\n NCls.session.commit()",
... | [
"0.7786558",
"0.76905817",
"0.76905817",
"0.76905817",
"0.7675947",
"0.7561504",
"0.7561504",
"0.7512445",
"0.74888295",
"0.7423228",
"0.73705196",
"0.7303139",
"0.7090186",
"0.69786143",
"0.69737065",
"0.6949241",
"0.6883622",
"0.6874328",
"0.68482834",
"0.67891014",
"0.6786... | 0.0 | -1 |
Returns a string representation of the current model. | def W0tD(YKHO):
return 'Learned DDPG Agent (Reinforcement Learning)' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def wHJl(YKHO):\n return '<{}>'.format(YKHO.model_type)",
"def wHJl(YKHO):\n return '<{module}.{name} model at 0x{id:x}>'.format(module=YKHO.__class__.__module__, name=YKHO.__class__.__qualname__, id=id(YKHO... | [
"0.86434823",
"0.8551355",
"0.7776003",
"0.7659076",
"0.7652344",
"0.76474404",
"0.76350665",
"0.7606003",
"0.7602242",
"0.754194",
"0.7495287",
"0.745404",
"0.7439581",
"0.7439328",
"0.7439328",
"0.7439328",
"0.74276143",
"0.7401273",
"0.738196",
"0.7340027",
"0.73332846",
... | 0.0 | -1 |
A tiny function for splitting filename from a long path, always the last layer, folder or not | def T8mP(pmON):
sdCG, J3uN = Om__.split(pmON)
return J3uN or Om__.basename(sdCG) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vx2i(Zg0d):\n VWe_ = Zg0d.rfind('/')\n xtX7 = ''\n if VWe_ > -1:\n xtX7 = Zg0d[0:VWe_]\n nUeQ = Zg0d[VWe_ + 1:]\n return (xtX7, nUeQ)",
"def Tf3x(qaEx):\n sL3H, Fst3 = Hy7s.path.splitext(qaEx)\n ITPC = Hy7s.path.split(sL3H)\n SxML = ''\n gIsw = sL3H\n if len(ITPC) > 1:\n ... | [
"0.7204878",
"0.70353794",
"0.70141685",
"0.69832647",
"0.69503206",
"0.6864744",
"0.68238515",
"0.6819538",
"0.6818759",
"0.68096966",
"0.68044937",
"0.68044937",
"0.67800474",
"0.67787546",
"0.6737343",
"0.6729609",
"0.66854334",
"0.6683026",
"0.66730624",
"0.6650093",
"0.6... | 0.63152736 | 53 |
Block until a value t is available for input then return f(t) | def V0nS(YKHO, JfyU: Callable[[TI], O]) -> LTX_:
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sJDd(YKHO, a1PO, JfyU):\n if a1PO == float('inf'):\n YKHO.last_infinity = True\n else:\n YKHO.last_infinity = False\n YKHO.func = JfyU\n YKHO.queue.append((int(a1PO * 1000), YKHO.unlock))",
"def dfHy(eHNT, nJ9F, yJiH):\n while abs((o4D3 := eHNT(nJ9F)) - nJ9F) > yJiH:\n ... | [
"0.61661905",
"0.6043957",
"0.5989324",
"0.59672534",
"0.59621584",
"0.587313",
"0.58205175",
"0.5767804",
"0.57390505",
"0.5664379",
"0.56553644",
"0.56498486",
"0.5642175",
"0.5626176",
"0.5616478",
"0.5601091",
"0.5566962",
"0.5550425",
"0.55375224",
"0.553207",
"0.5528135... | 0.0 | -1 |
Create a base class with a metaclass. | def rSS7(e5kH, P8oC=object):
return e5kH('NewBase', (P8oC,), {}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rSS7(e5kH, P8oC=object):\n return e5kH('NewBase', (P8oC,), {})",
"def rSS7(e5kH, P8oC=object):\n return e5kH('NewBase', (P8oC,), {})",
"def rSS7(e5kH, P8oC=object):\n return e5kH('NewBase', (P8oC,), {})",
"def rSS7(e5kH, P8oC=object):\n return e5kH('NewBase', (P8oC,), {})",
"def pjJO(y4vQ=t... | [
"0.82321227",
"0.82321227",
"0.82321227",
"0.82321227",
"0.8203042",
"0.80391204",
"0.80391204",
"0.80391204",
"0.8017039",
"0.8017039",
"0.78227603",
"0.77492",
"0.7551718",
"0.7547112",
"0.74752706",
"0.74461424",
"0.74461424",
"0.7396246",
"0.73674446",
"0.7348712",
"0.733... | 0.82980454 | 2 |
Returns context_lines before and after lineno from file. Returns (pre_context_lineno, pre_context, context_line, post_context). | def O_nQ(Ux0P, QP4x, PYeM, DWkG=None, LCet=None):
JZXy = None
if DWkG is not None and hasattr(DWkG, 'get_source'):
try:
JZXy = DWkG.get_source(LCet)
except ImportError:
JZXy = None
if JZXy is not None:
JZXy = JZXy.splitlines()
if JZXy is None:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def trZt(Ux0P, QP4x, PYeM):\n try:\n JZXy = open(Ux0P).readlines()\n IDsK = max(0, QP4x - PYeM)\n A2Fp = QP4x + PYeM\n zOI3 = [zFiD.strip('\\n') for zFiD in JZXy[IDsK:QP4x]]\n QI18 = JZXy[QP4x].strip('\\n')\n _Min = [zFiD.strip('\\n') for zFiD in JZXy[QP4x + 1:A2Fp]]\n ... | [
"0.7605683",
"0.635409",
"0.61405903",
"0.60043406",
"0.5788271",
"0.5773958",
"0.5746984",
"0.5722235",
"0.566906",
"0.56443596",
"0.563084",
"0.5623501",
"0.56114423",
"0.56093985",
"0.5584567",
"0.55695486",
"0.55632657",
"0.553221",
"0.55195624",
"0.5517838",
"0.55088884"... | 0.57851154 | 5 |
Overrides the != operator | def Vdqg(YKHO, Elif):
if not isinstance(YKHO, Elif.__class__):
return True
return YKHO.id != Elif.id or YKHO.title != Elif.title or YKHO.author != Elif.author or (YKHO.read != Elif.read) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(YKHO, RKYb):\n return not YKHO == RKYb",
"def Vdqg(YKHO, Elif):\n return n... | [
"0.8752415",
"0.8682124",
"0.85657454",
"0.85568434",
"0.8535807",
"0.8511963",
"0.8510096",
"0.84939456",
"0.84863806",
"0.8483105",
"0.84780943",
"0.84539276",
"0.84539276",
"0.84539276",
"0.84539276",
"0.84539276",
"0.84533423",
"0.8450887",
"0.84425706",
"0.84425706",
"0.... | 0.0 | -1 |
Return a logger with a default ColoredFormatter. | def WWrj(pgwk):
if not pgwk:
pgwk = 'ITSMApp'
else:
pgwk = 'ITSMApp' + '.' + '%s' % pgwk
uaPq = S4sv('%(bold_cyan)s%(asctime)-s%(reset)s%(log_color)s::%(name)-14s::%(levelname)-10s%(reset)s%(blue)s%(message)-s', datefmt=None, reset=True, log_colors={'DEBUG': 'bold_cyan', 'INFO': 'bold_green'... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WWrj():\n uaPq = S4sv('(%(threadName)-9s) %(log_color)s%(levelname)-8s%(reset)s %(message_log_color)s%(message)s', datefmt=None, reset=True, log_colors={'DEBUG': 'cyan', 'INFO': 'green', 'WARNING': 'yellow', 'ERROR': 'red', 'CRITICAL': 'red'}, secondary_log_colors={'message': {'ERROR': 'red', 'CRITICAL': 'r... | [
"0.71257764",
"0.7118928",
"0.70173484",
"0.6995875",
"0.68297493",
"0.68022174",
"0.67740786",
"0.65785146",
"0.65627164",
"0.6545143",
"0.6431967",
"0.6422719",
"0.63594943",
"0.6330037",
"0.63105524",
"0.63051957",
"0.62986565",
"0.62965494",
"0.62896717",
"0.6240055",
"0.... | 0.57648164 | 95 |
Test main page of tapwater. | def JCHN(YKHO):
geh0 = YKHO.client.get(gxEw('index'))
YKHO.assertEqual(geh0.status_code, 200) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rKWs(YKHO):\n YKHO.browser.get('http://localhost:8000/index.html')",
"def UOW_(YKHO):\n geh0 = YKHO.client.get(YKHO.url)\n YKHO.assertEqual(geh0.status_code, 200)",
"def r6eW(YKHO):\n with YKHO.client as x0hE:\n geh0 = x0hE.get('/')\n _R2e = geh0.get_data(as_text=True)\n YK... | [
"0.71890557",
"0.71669865",
"0.7128408",
"0.7125536",
"0.7124513",
"0.70922655",
"0.70894635",
"0.7084232",
"0.70812327",
"0.70752597",
"0.7053621",
"0.69070005",
"0.69019204",
"0.6898412",
"0.6865169",
"0.685563",
"0.68036366",
"0.68031746",
"0.6794433",
"0.6784264",
"0.6772... | 0.80535513 | 0 |
Creates an instance of this model from a dictionary | def rQfz(Emd4, cmPJ):
if cmPJ is None:
return None
x5wS = qRGs.models.restore_file_copy_stats.RestoreFileCopyStats.from_dictionary(cmPJ.get('copyStats')) if cmPJ.get('copyStats') else None
Yz2A = cmPJ.get('destinationDir')
P1dF = qRGs.models.error_proto.ErrorProto.from_dictionary(cmPJ.get('error... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rQfz(Emd4, cmPJ):\n if cmPJ == None:\n return None\n else:\n mWFP = cmPJ.get('name')\n l8cJ = cmPJ.get('generic_id')\n Gsi3 = cmPJ.get('therauptic_uses')\n PALZ = cmPJ.get('search_score')\n return Emd4(mWFP, l8cJ, Gsi3, PALZ)",
"def rQfz(Emd4, cmPJ):\n if cm... | [
"0.83722425",
"0.8335738",
"0.8215464",
"0.8167521",
"0.8167521",
"0.81483614",
"0.8051766",
"0.80300796",
"0.8013641",
"0.79792094",
"0.79221934",
"0.7919166",
"0.79183745",
"0.79125935",
"0.7906434",
"0.79004663",
"0.78967476",
"0.7886129",
"0.78760797",
"0.78543913",
"0.78... | 0.0 | -1 |
helper function to convert string to int and check whether the string has the correct length | def ZoUz(j0Ve, u54L=1):
if len(j0Ve) != u54L:
int(j0Ve) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tp4T(str):\n try:\n mLGw = int(str)\n return 1\n except ValueError:\n try:\n mLGw = vIwR.atoi(str, 16)\n return 1\n except ValueError:\n return 0\n return 0",
"def iUPF(zCsx):\n return True",
"def tp4T(oWz5):\n try:\n in... | [
"0.7905538",
"0.78969103",
"0.7612611",
"0.7587081",
"0.7519666",
"0.7503163",
"0.7503163",
"0.746164",
"0.7453384",
"0.74317515",
"0.7411194",
"0.74111426",
"0.7385502",
"0.7370176",
"0.73636526",
"0.73523974",
"0.73267657",
"0.73258245",
"0.7304649",
"0.7304649",
"0.7304649... | 0.81351316 | 0 |
Splits a list a into n chunks | def lpha(jzdc, exwG):
G1Hx, r8hN = divmod(len(jzdc), exwG)
return (jzdc[YRbF * G1Hx + min(YRbF, r8hN):(YRbF + 1) * G1Hx + min(YRbF + 1, r8hN)] for YRbF in range(exwG)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kzv7(ybN4, exwG):\n return list(eHxA(ybN4, exwG))",
"def AyNP(vC9B, exwG):\n return [vC9B[YRbF:YRbF + exwG] for YRbF in range(0, len(vC9B), exwG)]",
"def jpnb(HOpV: list, exwG: int):\n return [HOpV[YRbF:YRbF + exwG] for YRbF in range(0, len(HOpV), exwG)]",
"def eHxA(vC9B, exwG):\n exwG = max(... | [
"0.91594607",
"0.8862817",
"0.8712889",
"0.8665328",
"0.8658177",
"0.86295205",
"0.86208737",
"0.86172986",
"0.8612102",
"0.86103654",
"0.8597378",
"0.8597378",
"0.8597112",
"0.8597041",
"0.8594058",
"0.85881054",
"0.85510033",
"0.8545058",
"0.85386693",
"0.8536117",
"0.85261... | 0.0 | -1 |
Filling iso contours with contours[i][j], where i is inner order, j is contour index. | def JWhm(YKHO):
G9jH.info('test1: test_fill_isocontours_in_onelayer-----')
vgXP = 0.4
cf3u = Y0rt()
cf3u.load(YKHO.mesh_file)
cf3u.load_config()
cf3u.slice()
Wmjn = Wiwq.pathEngine()
kEC0 = cf3u.get_plane(0)
apnk = Wmjn.convert_plane_to_PyPolyTree(kEC0)
Ets7 = Wmjn.get_contours_f... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OeUv(ttJE, Iowl):\n eXeU = oyIN.zeros(ttJE, dtype='uint8')\n Nq1b = XC5k.drawContours(eXeU, [Iowl], -1, 255, -1)\n return Nq1b",
"def zArG(YKHO, ZomG, vgXP):\n YKHO.offset = vgXP\n Hrwk = []\n Iowl = ZomG\n Hrwk.append(ZomG)\n while len(Iowl) != 0:\n REDE = vi2Y.PyclipperOffset... | [
"0.6973642",
"0.6735769",
"0.64123493",
"0.6361577",
"0.6145268",
"0.61298794",
"0.60278004",
"0.6011037",
"0.5948276",
"0.59062177",
"0.58651984",
"0.5860323",
"0.5833147",
"0.5823811",
"0.5812695",
"0.57784927",
"0.57276946",
"0.569055",
"0.5668599",
"0.56578386",
"0.564633... | 0.60522395 | 6 |
Split a word in character sequences (ngrams) of userdefined length. | def PYu8(GIN8, ercu):
s2mk = list()
GIN8 = ' ' + GIN8 + ' '
for YRbF in range(0, len(GIN8) - ercu + 1):
if GIN8[YRbF:YRbF + ercu].strip():
s2mk.append(GIN8[YRbF:YRbF + ercu])
return s2mk | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tJEI(GIN8, bGTU):\n return [GIN8[YRbF:YRbF + bGTU] for YRbF in range(len(GIN8) - bGTU + 1)]",
"def TbKM(YKHO, GIN8: str, qlki: int):\n pCSA = []\n BXNu = f'<{GIN8}>'\n for Dvh2 in range(len(BXNu) - qlki + 1):\n u8Mh = BXNu[Dvh2:Dvh2 + qlki]\n pCSA.append(u8Mh)\n pCSA.append(BXNu)... | [
"0.7311404",
"0.7061646",
"0.68293375",
"0.6826827",
"0.67816323",
"0.67241937",
"0.6707907",
"0.6650883",
"0.65338606",
"0.6505344",
"0.6494425",
"0.64930993",
"0.6493035",
"0.64583236",
"0.6453411",
"0.63929987",
"0.6369146",
"0.63664794",
"0.63611877",
"0.63281226",
"0.632... | 0.65182 | 9 |
Deserialize a Keras Model from buffers or filelike objects. | def GpJS(If_q, K_Y1=None, iAwW=False):
if isinstance(If_q, (jKi7.string_types, bytes)):
If_q = qQXR.loads(ZylS.compat.as_text(If_q))
elif not isinstance(If_q, dict):
If_q = qQXR.load(If_q)
lzga(If_q)
txKA = If_q['modelTopology']
xTXB = None
if K_Y1:
YfUu = GwL2(If_q)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Evid(vRJ_, NCSH=False):\n bdPE = pMKq('tensorflow.keras')\n if bdPE is not None:\n with gbPf.NamedTemporaryFile() as t0je:\n t0je.write(vRJ_)\n t0je.seek(0)\n try:\n return bdPE.models.load_model(t0je.name)\n except AttributeError as e:\n ... | [
"0.72662276",
"0.70666605",
"0.6795274",
"0.66768545",
"0.6675855",
"0.6645109",
"0.6611476",
"0.66087145",
"0.65975845",
"0.65206516",
"0.65204304",
"0.6518961",
"0.65127206",
"0.6509423",
"0.64557457",
"0.6437741",
"0.6436074",
"0.6389687",
"0.6388108",
"0.633557",
"0.63289... | 0.68739176 | 2 |
Load a Keras Model from TensorFlow.jsformat artifacts from file system | def SP5P(IC8N, ltan=None, bc22=None, SUd8=True, iAwW=False):
if bc22 and ltan:
raise ValueError('The arguments weights_data_buffers and weights_path_prefix are mutually exclusive and should not be both specified.')
with open(IC8N, 'rt') as eHNT:
If_q = qQXR.load(eHNT)
lzga(If_q)
xTXB... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UHDC(pmON):\n return rocC.converters.load_keras_model(pmON, use_unique_name_scope=True)",
"def i1FH(qaEx):\n YBcr, gIsw, eHKs = Tf3x(qaEx)\n if not WO5h(YBcr):\n raise SWMn('Keras Models can only be loaded from a .json file')\n if not Hy7s.path.isdir(eHKs):\n raise SWMn('Directory :... | [
"0.7689334",
"0.7160155",
"0.71013594",
"0.6961614",
"0.6951549",
"0.6923078",
"0.6887136",
"0.6850284",
"0.6791465",
"0.6784103",
"0.6776187",
"0.6746252",
"0.6738346",
"0.67217",
"0.6700448",
"0.66855025",
"0.66606146",
"0.6651357",
"0.6621848",
"0.6613329",
"0.6608404",
... | 0.61973023 | 70 |
Load a Keras Model from TensorFlow.jsformat artifacts from file system | def MVPG(IC8N, ltan=None, bc22=None, SUd8=True, iAwW=False):
if bc22 and ltan:
raise ValueError('The arguments weights_data_buffers and weights_path_prefix are mutually exclusive and should not be both specified.')
with open(IC8N, 'rt') as eHNT:
If_q = qQXR.load(eHNT)
lzga(If_q)
xTXB... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UHDC(pmON):\n return rocC.converters.load_keras_model(pmON, use_unique_name_scope=True)",
"def i1FH(qaEx):\n YBcr, gIsw, eHKs = Tf3x(qaEx)\n if not WO5h(YBcr):\n raise SWMn('Keras Models can only be loaded from a .json file')\n if not Hy7s.path.isdir(eHKs):\n raise SWMn('Directory :... | [
"0.7689334",
"0.7160155",
"0.71013594",
"0.6961614",
"0.6951549",
"0.6923078",
"0.6887136",
"0.6850284",
"0.6791465",
"0.6784103",
"0.6776187",
"0.6746252",
"0.6738346",
"0.67217",
"0.6700448",
"0.66855025",
"0.66606146",
"0.6651357",
"0.6621848",
"0.6613329",
"0.6608404",
... | 0.61828196 | 75 |
Return the block that is currently selected by the player. If no block is selected by the player, return None. | def fCso(YKHO, iBIi: Block) -> h8nf[n3Kt]:
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fCso(YKHO, iBIi: Block) -> h8nf[n3Kt]:\n CKpD = a9eO.mouse.get_pos()\n XkN1 = AAa3(iBIi, CKpD, YKHO._level)\n return XkN1",
"def fCso(YKHO, iBIi: Block) -> h8nf[n3Kt]:\n CKpD = a9eO.mouse.get_pos()\n XkN1 = AAa3(iBIi, CKpD, YKHO._level)\n return XkN1",
"def zf3O(YKHO):\n return YKHO.la... | [
"0.79041314",
"0.79041314",
"0.71496594",
"0.6913208",
"0.66823316",
"0.6677284",
"0.6557616",
"0.64725137",
"0.64476174",
"0.63877827",
"0.6383344",
"0.63602525",
"0.63462067",
"0.6324976",
"0.632464",
"0.6306067",
"0.63059086",
"0.62604725",
"0.62556934",
"0.6194969",
"0.61... | 0.77739376 | 2 |
Attach summaries to a Tensor. | def g4Yp(SRYB, h7Vl, mWFP):
xkZK = []
with ZylS.name_scope(h7Vl):
JBMS = ZylS.reduce_mean(SRYB)
xkZK.append(ZylS.scalar_summary(h7Vl + '/mean', JBMS))
with ZylS.name_scope('stddev'):
z2bo = ZylS.sqrt(ZylS.reduce_sum(ZylS.square(SRYB - JBMS)))
xkZK.append(ZylS.scalar_s... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oxpy(YKHO):\n with ZylS.name_scope('summaries'):\n ZylS.summary.scalar('loss', YKHO.loss)\n ZylS.summary.scalar('accuracy', YKHO.accuracy)\n ZylS.summary.histogram('W', YKHO.W)\n ZylS.summary.histogram('B', YKHO.B)\n YKHO.summary = ZylS.summary.merge_all()",
"def oxpy(YK... | [
"0.72169536",
"0.7100389",
"0.6587558",
"0.6558301",
"0.6396563",
"0.6364976",
"0.62947005",
"0.6290029",
"0.62051344",
"0.6189226",
"0.6169884",
"0.6064894",
"0.60258484",
"0.59698606",
"0.5961292",
"0.58806604",
"0.58632195",
"0.5781349",
"0.5777893",
"0.57565933",
"0.56940... | 0.0 | -1 |
makeGrid generates a grid of x resolution mapped on a boundig box described by , , , | def wwKj(bmxU, Ualx, Wge4, NADd, x2e8, cdeJ):
Cs6h = []
W9n9 = abs(Wge4) + abs(bmxU)
RzJU = abs(NADd) + abs(Ualx)
oDRH = W9n9 / x2e8
Ac11 = RzJU / cdeJ
for YRbF in range(cdeJ):
for r845 in range(x2e8):
o4D3 = Wge4 + oDRH * r845
ajwV = Wge4 + oDRH * (r845 + 1)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wwKj(aG9R, Fu7l):\n format = ZNZZ.getV3()\n spln = vAz3('grid', format, MtJB.UHStatic)\n SLBp = KRFA(spln, 'vertex')\n Cs6h = MtJB(spln)\n for WKvO in Ni9Y(aG9R):\n for LVAh in Ni9Y(Fu7l):\n SLBp.addData3f(WKvO, LVAh, 0)\n nXnc = zViX(MtJB.UHStatic)\n\n def d6pt(GN0K, Rjb... | [
"0.7540815",
"0.7528211",
"0.75239426",
"0.750898",
"0.7494861",
"0.7452188",
"0.74093944",
"0.7406004",
"0.7406004",
"0.73967475",
"0.73783904",
"0.73783904",
"0.73783904",
"0.7351953",
"0.73373014",
"0.7315815",
"0.7315815",
"0.7311126",
"0.7289413",
"0.7257361",
"0.7227309... | 0.0 | -1 |
Prepares a Gaussian RBF kernel using the provided sigma. | def RCes(WTkW=0.5):
KMvS = -1 / (2 * WTkW ** 2)
AQRV = lambda EcVT, LVAh: oyIN.exp(KMvS * oyIN.square(EcVT[:, oyIN.newaxis] - LVAh).sum(axis=2))
return AQRV | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RVOP(o4D3, ajwV, WTkW):\n assert o4D3.shape == ajwV.shape\n return oyIN.exp(-oyIN.linalg.norm(o4D3 - ajwV) ** 2.0 / 2.0 / WTkW ** 2.0)",
"def spf2(WTkW: float) -> oyIN.ndarray:\n zNig = int(8.0 * WTkW + 1.0)\n if zNig % 2 == 0:\n zNig += 1\n XgF5 = 2 * WTkW * WTkW\n WZcn = oyIN.ndarr... | [
"0.7052054",
"0.70151263",
"0.69139516",
"0.68941444",
"0.6739387",
"0.67369664",
"0.67162895",
"0.6539886",
"0.65304536",
"0.6513378",
"0.6410215",
"0.6410215",
"0.63934004",
"0.63880473",
"0.63396347",
"0.6329753",
"0.63085926",
"0.62976855",
"0.6246435",
"0.6235815",
"0.62... | 0.73219824 | 0 |
Propagate orbital state vectors by delta t via universal variablebased f and g | def vkFH(TRVV: npt.NDArray[np.float_], T8d8: npt.NDArray[np.float_], yGTL: floatORarray, JRYC: floatORarray, YWRC: int=100, xvT8: bool=False, JNWC: bool=True) -> AzJI[eQHC.NDArray[oyIN.float_], ...]:
TRVV, T8d8, yGTL = hK2I(TRVV, T8d8, yGTL)
JRYC = qU5C(JRYC)
assert JRYC.size == 1 or JRYC.size == len(TRVV),... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eHNT(YKHO, WKvO=oyIN.zeros(6), P6bq=oyIN.zeros(3), a1PO=0):\n Jw7X = oyIN.zeros(YKHO.n)\n KC62, TiX8 = YKHO.piecewise_tiremodel(WKvO, P6bq)\n Jw7X[0] = (P6bq[1] * oyIN.cos(P6bq[0]) - KC62 * oyIN.sin(P6bq[0]) + P6bq[2]) / YKHO.mass - WKvO[1] * WKvO[2]\n Jw7X[1] = (KC62 * oyIN.cos(P6bq[0]) + P6bq[1] ... | [
"0.66742563",
"0.6672678",
"0.666127",
"0.6636189",
"0.6622804",
"0.6492747",
"0.6446513",
"0.6391355",
"0.629675",
"0.62615955",
"0.62594587",
"0.62516147",
"0.62504226",
"0.6247425",
"0.6232042",
"0.62244844",
"0.62101",
"0.62004966",
"0.6188603",
"0.6158553",
"0.61468",
... | 0.589657 | 53 |
Overwrite existing definitions w.r.t 'atom' with a dummy definition instance. A dummy definition will not be removed during simplification. | def S6OP(YKHO, WhQ6: Atom) -> None:
if isinstance(WhQ6, dQSj):
YKHO.register_definitions.erase(WhQ6.reg_offset, size=WhQ6.size)
elif isinstance(WhQ6, fVmS):
if isinstance(WhQ6.addr, nt2J):
if WhQ6.addr.offset is not None:
E0Zl = YKHO.stack_offset_to_stack_addr(WhQ6.ad... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CDYI(YKHO):\n rWTq = {'some_module': {'pants': {'args': None}}}\n aEqx = jth9.deepcopy(YKHO.definition)\n aEqx['some_module'].update(rWTq['some_module'])\n YKHO.local_rpcserver.RPCServer.register_definition(rWTq, YKHO.module_map)\n assert YKHO.local_rpcserver.RPCServer.definitions == aEqx",
"d... | [
"0.60827696",
"0.59364563",
"0.5429102",
"0.5408051",
"0.5319458",
"0.5216226",
"0.5201604",
"0.51858383",
"0.5134936",
"0.5133063",
"0.5073963",
"0.50419486",
"0.5037511",
"0.50291365",
"0.5025464",
"0.50085735",
"0.5008394",
"0.50037336",
"0.49912515",
"0.49828377",
"0.4971... | 0.594709 | 1 |
Test that parsing a blank config produces defaults. | def IFSe() -> None:
assert fjk5.parse_kv1(wazA('Signage', []), 1).signs == sTV1
assert fjk5.parse_kv1(wazA('Signage', [wazA('5', '')]), 1).signs == dict.fromkeys(yw4i, '') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def maI_() -> None:\n GPtr = LgIG()\n muwo = {'constants': {'c': 5e-08, 'porosity_min': 0.0, 'porosity_max': 0.5, 'rho_grain': 2650.0, 'rho_void': 1000.0}}\n assert GPtr == muwo\n GPtr = LgIG(kJm3(''))\n assert GPtr == muwo\n GPtr = LgIG(kJm3('[another_group]'))\n assert GPtr == muwo\n GPtr... | [
"0.783824",
"0.76568925",
"0.7562333",
"0.7529271",
"0.74954045",
"0.72752607",
"0.7263047",
"0.71921325",
"0.7172914",
"0.7052295",
"0.70516664",
"0.69486463",
"0.694129",
"0.693637",
"0.69145733",
"0.689384",
"0.6887444",
"0.6885096",
"0.6874531",
"0.6854935",
"0.6846483",
... | 0.0 | -1 |
Parse and preprocess a single example from a tfrecord. | def E94y(YKHO, BWXx):
bySB = ZylS.io.parse_single_example(BWXx, features={'image/encoded': ZylS.io.FixedLenFeature([], ZylS.string), 'image/width': ZylS.io.FixedLenFeature([], ZylS.int64), 'image/height': ZylS.io.FixedLenFeature([], ZylS.int64), 'label/ids': ZylS.io.VarLenFeature(ZylS.int64), 'label/x_mins': ZylS.i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UU8X(xKOQ):\n return ZylS.io.parse_single_example(xKOQ, wFVV)",
"def wvEv(AIu6):\n jrdP = {'inputs': ZylS.VarLenFeature(ZylS.int64), 'type_id': ZylS.FixedLenFeature([1], ZylS.int64)}\n if DWGe:\n jrdP['pos_seq'] = ZylS.VarLenFeature(ZylS.int64)\n PU1l = ZylS.parse_single_example(serialized... | [
"0.82258606",
"0.80771434",
"0.77229977",
"0.76041585",
"0.7416621",
"0.7406057",
"0.7402151",
"0.7383647",
"0.7294309",
"0.72474384",
"0.72389054",
"0.72051686",
"0.71906984",
"0.71906984",
"0.71906984",
"0.7180393",
"0.7166755",
"0.7153049",
"0.7152014",
"0.7152014",
"0.712... | 0.0 | -1 |
Pad or Clip given tensor to the output shape. | def UzKL(YKHO, vhpA, oLRV):
qiip = ZylS.shape(vhpA)
KT0c = [ZylS.where(qiip[YRbF] - ROpF > 0, ROpF, -1) if ROpF is not None else -1 for YRbF, ROpF in enumerate(oLRV)]
OyJK = ZylS.slice(vhpA, begin=ZylS.zeros(len(KT0c), dtype=ZylS.int32), size=KT0c)
DE5w = ZylS.shape(OyJK)
DGNn = [ROpF - DE5w[YRbF] i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MnUI(vhpA, efIk):\n C7Ls, XcU5 = vhpA.shape[2:]\n MKlR, yzQ0 = efIk\n if MKlR < C7Ls or yzQ0 < XcU5:\n vhpA = vhpA[:, :, :MKlR, :yzQ0].copy()\n return vhpA",
"def MnUI(vhpA, efIk):\n C7Ls, XcU5 = vhpA.shape[2:]\n MKlR, yzQ0 = efIk\n if MKlR < C7Ls or yzQ0 < XcU5:\n vhpA = v... | [
"0.7552452",
"0.7543912",
"0.7520823",
"0.7467238",
"0.68706656",
"0.6407648",
"0.63520974",
"0.6330058",
"0.63295233",
"0.63003737",
"0.6232467",
"0.6185417",
"0.61694735",
"0.61176807",
"0.6087407",
"0.6017213",
"0.59800214",
"0.597449",
"0.5959472",
"0.5922385",
"0.5915761... | 0.8502856 | 0 |
This method is deprecated. Please switch to AddSkillCost. | def LtnS(mBtZ, gfPL):
return QqMI(mBtZ, gfPL) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def khCP(mBtZ, gJVx):\n return yt_g(mBtZ, gJVx)",
"def slSM(YKHO, QePW, QpfX):\n QpfX.set_code(IYqO.StatusCode.UNIMPLEMENTED)\n QpfX.set_details('Method not implemented!')\n raise NotImplementedError('Method not implemented!')",
"def XKK3(YKHO, ttSf, Ad_h, NMgh):\n YiU0 = 1 if NMgh == 1 else YKH... | [
"0.6953064",
"0.6347288",
"0.6115092",
"0.59184235",
"0.5888494",
"0.58787847",
"0.5824997",
"0.5709893",
"0.5687466",
"0.5677243",
"0.56198746",
"0.56198746",
"0.56198746",
"0.56198746",
"0.56198746",
"0.56107557",
"0.55793786",
"0.55705875",
"0.5556262",
"0.55443305",
"0.55... | 0.75293756 | 0 |
This method is deprecated. Please switch to AddEnemySkillCost. | def khCP(mBtZ, gJVx):
return yt_g(mBtZ, gJVx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LtnS(mBtZ, gfPL):\n return QqMI(mBtZ, gfPL)",
"def slSM(YKHO, QePW, QpfX):\n QpfX.set_code(IYqO.StatusCode.UNIMPLEMENTED)\n QpfX.set_details('Method not implemented!')\n raise NotImplementedError('Method not implemented!')",
"def h6Ky(mBtZ, OURt):\n return Tc9F(mBtZ, OURt)",
"def OtEW(YKHO... | [
"0.6673117",
"0.6104357",
"0.5885596",
"0.56824315",
"0.5605705",
"0.5591308",
"0.5582003",
"0.54859537",
"0.5482248",
"0.54741794",
"0.53836817",
"0.537209",
"0.53394157",
"0.53272724",
"0.5314632",
"0.5293373",
"0.5291397",
"0.5289472",
"0.5289285",
"0.52753776",
"0.5267782... | 0.7851005 | 0 |
Initialize the parameters for the multilayer perceptron | def FIMM(YKHO, xlLU, input, Ya2q, V06R, _LFN, SbDe=None, NvWx=Kt_s.tanh, lmDE=None, JMRV=None, NJ1R=None, MHyt=None):
YKHO.hiddenLayer = GFEb(rng=xlLU, input=input, n_in=Ya2q, n_out=V06R, activation=NvWx, W=lmDE, b=JMRV)
YKHO.logRegressionLayer = T8WO(input=YKHO.hiddenLayer.output, n_in=V06R, n_out=_LFN, W=NJ1R... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def K55i(YKHO):\n YKHO.params = {}\n aPd6 = len(YKHO.layer_dims)\n x4xj = 0.1\n for vC9B in range(1, aPd6):\n MY1T = YKHO.layer_dims[vC9B - 1]\n Fmaf = YKHO.layer_dims[vC9B]\n YKHO.params['W%d' % vC9B] = oyIN.random.randn(MY1T, Fmaf) * x4xj\n assert YKHO.params['W%d' % vC9B]... | [
"0.7563101",
"0.74202055",
"0.7398131",
"0.72895753",
"0.7242624",
"0.7229054",
"0.7199435",
"0.7182269",
"0.7100938",
"0.7088025",
"0.70841914",
"0.7071097",
"0.7049927",
"0.70496297",
"0.7013583",
"0.7010965",
"0.6990473",
"0.69857866",
"0.6983007",
"0.6979044",
"0.6926819"... | 0.0 | -1 |
Solicitud invalida por no tener el username. | def hH7F(YKHO):
nPrm = YKHO.valid_payload
del nPrm['username']
YKHO.client.credentials(HTTP_AUTHORIZATION='Bearer EGsnU4Cz3Mx50UCuLrc20mup10s0Gz')
geh0 = YKHO.client.post(gxEw('sellers'), data=qQXR.dumps(nPrm), content_type='application/json')
YKHO.assertEqual(geh0.status_code, jGRS.HTTP_400_BAD_REQ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z3WL(YKHO, NtEF):\n if NtEF.data != bi8s.current_user.username:\n CBIr = XXG2.User.query.filter_by(username=NtEF.data).first()\n if CBIr:\n raise opdM.validators.ValidationError('That username is taken. Please choose a different one')",
"def lKfQ(YKHO):\n NtEF = YKHO.cleaned_da... | [
"0.80982584",
"0.7997498",
"0.79752886",
"0.7951522",
"0.79421103",
"0.79162914",
"0.7895415",
"0.78744185",
"0.78429335",
"0.78345007",
"0.7816761",
"0.78053594",
"0.7776643",
"0.7745866",
"0.7709794",
"0.7704373",
"0.7685638",
"0.7656986",
"0.7618026",
"0.7613549",
"0.76086... | 0.0 | -1 |
Solicitud invalida por no tener el nombre. | def S6or(YKHO):
nPrm = YKHO.valid_payload
nPrm['first_name'] = ''
YKHO.client.credentials(HTTP_AUTHORIZATION='Bearer EGsnU4Cz3Mx50UCuLrc20mup10s0Gz')
Ow0d = YKHO.client.post(gxEw('sellers'), data=qQXR.dumps(nPrm), content_type='application/json')
del nPrm['first_name']
geh0 = YKHO.client.post(gx... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def olSX(YKHO):\n KAOR = qcrw(name='this is an invalid field name')\n try:\n KAOR.full_clean()\n except sUXu as err:\n YKHO.assertIn('The name may only contain alphanumeric characters and underscores.', XObx.error_dict['name'][0].messages)\n else:\n YKHO.fail('Validation error not ... | [
"0.7464183",
"0.7349501",
"0.7310038",
"0.73049206",
"0.7050356",
"0.70456374",
"0.69754034",
"0.69681144",
"0.6854158",
"0.6822632",
"0.68025565",
"0.679711",
"0.6797042",
"0.67147034",
"0.66426885",
"0.6638376",
"0.66305655",
"0.6630114",
"0.6623978",
"0.66228366",
"0.66113... | 0.0 | -1 |
Convert the output from the other kats cusum algorithm into CUSUMChangePoint type. | def biSL(YKHO, I12Q: Dict[str, Dict[str, Any]], zhGQ: bool) -> x1iM[bbJ0]:
DwRD = []
sHLn = I12Q
for XSoh in sHLn:
J2Hc = sHLn[XSoh]
if J2Hc['regression_detected'] or zhGQ:
GQx0 = bbJ0(start_time=J2Hc['changetime'], end_time=J2Hc['changetime'], confidence=1 - J2Hc['p_value'], dir... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mPL8(YKHO):\n if YKHO.datatype == list:\n YKHO.data = oyIN.asarray(YKHO.data, dtype=float)\n elif YKHO.datatype == str:\n print('ERROR: data type is a string. This is not supported')\n if YKHO.unit == 'F':\n YKHO.data = (YKHO.data - 32) * (5 / 9.0)\n elif YKHO.unit == 'K':\n ... | [
"0.5941454",
"0.58300847",
"0.5759929",
"0.57295185",
"0.5710474",
"0.56935596",
"0.5691091",
"0.5647569",
"0.56380236",
"0.55984735",
"0.5546334",
"0.54331464",
"0.5382294",
"0.53770643",
"0.5361106",
"0.5332077",
"0.5325767",
"0.5295175",
"0.52571046",
"0.5248793",
"0.52162... | 0.71118665 | 0 |
Log Errors caused by Updates. | def P1dF(QdZT, QpfX):
bo34 = G9jH.getLogger(__name__)
bo34.warning('Update "%s" caused error "%s"', QdZT, QpfX.error) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P1dF(JyK9, QdZT, P1dF):\n bo34.warning('Error: \"%s\" caused error \"%s\"', QdZT, P1dF)\n bo34.setLevel(G9jH.DEBUG)",
"def rP1w(QdZT, QpfX):\n bo34.warning(f'Update \"{QdZT}\" caused error {QpfX.error}\"')",
"def P1dF(QdZT, QpfX):\n G9jH.error('Update \"%s\" caused error \"%s\"', QdZT, QpfX.err... | [
"0.7895395",
"0.788395",
"0.78750193",
"0.7873498",
"0.78300834",
"0.7790406",
"0.7785151",
"0.77837753",
"0.77837753",
"0.77837753",
"0.77837753",
"0.77837753",
"0.77660847",
"0.7746185",
"0.7746185",
"0.7746185",
"0.7746185",
"0.7746185",
"0.7746185",
"0.7746185",
"0.774618... | 0.7781314 | 12 |
Return the value of the attribute tradeId. | def ntE2(YKHO):
return YKHO.__tradeId__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E9XT(YKHO) -> str:\n return YKHO.__marketid",
"def BJ2A(YKHO):\n return YKHO._quote_id",
"def E0C9(YKHO) -> str:\n return YKHO._attribute_id",
"def id(YKHO):\n return YKHO.attrs.get(YKHO.id_attribute)",
"def sVlw(YKHO):\n return YKHO._price_id",
"def sVlw(YKHO):\n return YKHO._price... | [
"0.65871555",
"0.64709705",
"0.6226971",
"0.61307037",
"0.6129374",
"0.6129374",
"0.6129374",
"0.6129003",
"0.6127188",
"0.60339606",
"0.5996014",
"0.59739506",
"0.5966105",
"0.5946267",
"0.59112287",
"0.5889348",
"0.5879564",
"0.5862841",
"0.5856303",
"0.58306164",
"0.582883... | 0.7991301 | 0 |
Return the value of the attribute valueDate. | def HuRk(YKHO):
return YKHO.__valueDate__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hDVX(YKHO):\n raise wkwL.TGTypeCoercionNotSupported(YKHO.descriptor.type, O8dS.Date)",
"def slWZ(YKHO):\n return YKHO.widget().GetValue()",
"def iKxx(YKHO):\n return YKHO.__getAttribute('date')",
"def IpOM(Vu7S):\n if Vu7S.IsKindOf(CmGq.FSettlement):\n return Vu7S.ValueDay()\n retur... | [
"0.7658221",
"0.7416431",
"0.73982567",
"0.707375",
"0.70109314",
"0.6829603",
"0.6829603",
"0.6782909",
"0.676293",
"0.6752068",
"0.6745582",
"0.67428553",
"0.67149925",
"0.67149925",
"0.67149925",
"0.6661503",
"0.665441",
"0.6631489",
"0.66104484",
"0.6605623",
"0.6585759",... | 0.87407947 | 0 |
Return the value of the attribute stop. | def cutj(YKHO):
return YKHO.__stop__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cutj(YKHO):\n return YKHO.__stop",
"def D3Lb(YKHO):\n return YKHO._stop_d",
"def aM4b(YKHO):\n return YKHO.__stopPrice",
"def Sum1(YKHO):\n return YKHO._t_stop * YKHO.units",
"def uSPV(YKHO):\n return YKHO.__stopPrice",
"def uSPV(YKHO):\n return YKHO.__stopPrice",
"def uSPV(YKHO):... | [
"0.7712534",
"0.7199505",
"0.71315056",
"0.7089895",
"0.7003012",
"0.7003012",
"0.7003012",
"0.7003012",
"0.6998598",
"0.6992469",
"0.69566256",
"0.6927833",
"0.6863042",
"0.68333745",
"0.68150055",
"0.6812297",
"0.6787012",
"0.67831373",
"0.67638105",
"0.67212",
"0.67010415"... | 0.7418413 | 1 |
Return the value of the attribute stopMove. | def RKXM(YKHO):
return YKHO.__stopMove__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cutj(YKHO):\n return YKHO.__stop",
"def D3Lb(YKHO):\n return YKHO._stop_d",
"def Yknd(YKHO):\n return YKHO._stop_px",
"def JCyR(YKHO) -> int:\n return YKHO._stop",
"def oKOS(YKHO):\n return YKHO._stop_p",
"def cutj(YKHO):\n return YKHO.__stop__",
"def C5x9(YKHO):\n return YKHO.... | [
"0.69922197",
"0.68717873",
"0.68179816",
"0.678974",
"0.6676459",
"0.66533",
"0.6534734",
"0.6517058",
"0.6477578",
"0.6421331",
"0.6414587",
"0.6383264",
"0.6374174",
"0.6352149",
"0.6326934",
"0.6318852",
"0.631678",
"0.631678",
"0.6313352",
"0.6304649",
"0.62744784",
"0... | 0.8579555 | 0 |
Return the value of the attribute limit. | def K3hO(YKHO):
return YKHO.__limit__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def K3hO(YKHO):\n if not YKHO.is_limit():\n raise AttributeError(\"tag 'limit' not set\")\n return YKHO._value",
"def qoqK(YKHO):\n if YKHO._limit_present:\n return YKHO._limit_value\n else:\n return 10",
"def qoqK(YKHO):\n if YKHO._limit_present:\n return YKHO._limit... | [
"0.8414332",
"0.78204733",
"0.77508986",
"0.77508986",
"0.77508986",
"0.77508986",
"0.77508986",
"0.77508986",
"0.7626302",
"0.7626302",
"0.7626302",
"0.75521994",
"0.75521994",
"0.75521994",
"0.7500858",
"0.7500858",
"0.7487581",
"0.74286246",
"0.74286246",
"0.7388513",
"0.7... | 0.75765926 | 11 |
Normalize the token wise attributions after taking a norm. | def eelY(YKHO, CuGI, xtn1):
s2mk = YKHO.tokenizer.convert_ids_to_tokens(CuGI)
HTz3 = ht2j.linalg.norm(xtn1, dim=1)
oEJ9 = HTz3 / ht2j.sum(HTz3, dim=0).reshape(-1, 1)
return (s2mk, oEJ9.squeeze(0).detach().cpu().numpy()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NkkI(YKHO, CkYf='l1'):\n nPrm = YKHO.data.astype(oyIN.float64)\n YKHO.data = N3vq.preprocessing.normalize(nPrm, axis=1, norm=CkYf)",
"def NkkI(eTiE):\n wjRY = oyIN.abs(eTiE).sum(axis=1, keepdims=True)\n return oyIN.abs(eTiE) / wjRY",
"def CkYf(YKHO):\n i9Rn = 0.0\n for GIN8 in YKHO.model:... | [
"0.71581507",
"0.71283466",
"0.7084704",
"0.6770177",
"0.6735276",
"0.6666059",
"0.6612632",
"0.66020983",
"0.65925956",
"0.6580944",
"0.6580944",
"0.6580014",
"0.65696216",
"0.6545213",
"0.6509165",
"0.6491244",
"0.6477841",
"0.64740217",
"0.6462242",
"0.64443",
"0.6442101",... | 0.0 | -1 |
Get importances for the examples across all layers. | def A8Hf(YKHO, N6Z1):
HQ1f = []
IMvQ = []
for I7JW in PRqg(range(0, len(N6Z1), YKHO.config.internal_batch_size)):
Wc9F = N6Z1[I7JW:I7JW + YKHO.config.internal_batch_size]
ZLJ_ = ['input_ids', 'token_type_ids', 'attention_mask', 'start_index', 'end_index']
for H5ew in ZLJ_:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lW1x(YKHO):\n gGnb = YKHO.dataset.map(YKHO.process_examples, batched=True)\n qmLv = YKHO.get_importances_across_all_layers(gGnb)\n IM7Z = YKHO.rearrange_importances(qmLv['word_importances'])\n XDLA = YKHO.rearrange_importances(qmLv['token_importances'])\n return (gGnb, IM7Z, XDLA)",
"def Kuac(... | [
"0.73873097",
"0.69770515",
"0.686736",
"0.686736",
"0.67677534",
"0.6644944",
"0.6595924",
"0.6595924",
"0.6595924",
"0.65887433",
"0.6506494",
"0.6371059",
"0.63494855",
"0.63477534",
"0.62042373",
"0.6191168",
"0.6117007",
"0.6067343",
"0.60540265",
"0.6031518",
"0.5987336... | 0.64679444 | 11 |
Get importance values for all samples across all layers. | def lW1x(YKHO):
gGnb = YKHO.dataset.map(YKHO.process_examples, batched=True)
qmLv = YKHO.get_importances_across_all_layers(gGnb)
IM7Z = YKHO.rearrange_importances(qmLv['word_importances'])
XDLA = YKHO.rearrange_importances(qmLv['token_importances'])
return (gGnb, IM7Z, XDLA) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nPrl(YKHO):\n qVhM = oyIN.zeros((len(YKHO.trees[0]), len(YKHO.trees[0][0])))\n for rdlD, J_Es in enumerate(YKHO.trees[0]):\n qVhM[rdlD] = J_Es.feature_importances_\n return qVhM.mean(axis=0)",
"def lh66(YKHO):\n YKHO._ensure_is_fitted()\n lh66 = oyIN.zeros(YKHO.n_dim_)\n YKHO._update... | [
"0.7045975",
"0.6966255",
"0.6831242",
"0.6759915",
"0.6737731",
"0.6689846",
"0.6644368",
"0.6644368",
"0.6640321",
"0.65708774",
"0.64471054",
"0.6437576",
"0.640902",
"0.6389754",
"0.63595855",
"0.6298661",
"0.62774456",
"0.6245665",
"0.6232056",
"0.61583334",
"0.61457425"... | 0.70115805 | 1 |
Returns only the active items in this queryset | def WZHJ(YKHO):
return YKHO.filter(active=True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yD4a(Emd4):\n return Emd4.objects.filter(FYrf.Q(is_active=True))",
"def WZHJ(YKHO):\n return YKHO.filter(is_active=True)",
"def WZHJ(YKHO):\n return YKHO.filter(is_active=True)",
"def WZHJ(Emd4):\n return Emd4.objects.filter(is_active=True)",
"def WZHJ(YKHO):\n return YKHO.filter(hidden=... | [
"0.8319306",
"0.82676256",
"0.82676256",
"0.82512575",
"0.8166786",
"0.81128323",
"0.79586464",
"0.79381645",
"0.76946104",
"0.7474725",
"0.7474504",
"0.74582523",
"0.74333626",
"0.724195",
"0.724195",
"0.7232153",
"0.71603334",
"0.7158059",
"0.7137975",
"0.7072871",
"0.70604... | 0.8330381 | 0 |
Return the custom QuerySet | def k66M(YKHO):
return YKHO.queryset_class(YKHO.model) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wc3e(YKHO):\n return YKHO.get_queryset()",
"def wc3e(YKHO):\n return YKHO.get_queryset()",
"def wc3e(YKHO):\n return ctuC(YKHO.model)",
"def k66M(YKHO):\n return YKHO.queryset.all()",
"def k66M(YKHO):\n return YKHO.queryset.all()",
"def k66M(YKHO):\n return p6xu(YKHO.model, using=YK... | [
"0.8580287",
"0.845939",
"0.80469733",
"0.7996974",
"0.7996974",
"0.7985339",
"0.7984203",
"0.7890021",
"0.784524",
"0.7828983",
"0.7816142",
"0.7736467",
"0.7698165",
"0.7647444",
"0.75977117",
"0.7594463",
"0.75356966",
"0.75356966",
"0.75254047",
"0.7471178",
"0.74511987",... | 0.8019246 | 3 |
Plot accuracy loss data from history | def nvHM(FLXQ, xYGm='', AeVV=False):
if xYGm != '':
xYGm = xYGm + '_'
if not AeVV:
try:
AcYW = 'acc'
rzaM(FLXQ, xYGm + AcYW, AcYW)
except KeyError:
AcYW = 'accuracy'
rzaM(FLXQ, xYGm + AcYW, AcYW)
AcYW = 'loss'
rzaM(FLXQ, xYGm + AcYW... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DMfW(FLXQ):\n QrM1.plot(FLXQ['loss'])\n QrM1.plot(FLXQ['val_loss'], linestyle='--')\n QrM1.title('Binary cross-entropy')\n QrM1.ylabel('Binary cross-entropy')\n QrM1.xlabel('Epoch')\n QrM1.grid()\n QrM1.legend(['Training', 'Val'], loc='upper right', fontsize='large')\n QrM1.tight_layout... | [
"0.81909734",
"0.8154765",
"0.8062425",
"0.80367315",
"0.8025082",
"0.79878956",
"0.7964095",
"0.7921073",
"0.791976",
"0.7851243",
"0.7823113",
"0.7819057",
"0.77964383",
"0.77877176",
"0.7729035",
"0.77286637",
"0.771682",
"0.77050966",
"0.7677109",
"0.7645885",
"0.75983405... | 0.0 | -1 |
Plot all metrics from training history | def I74p(FLXQ):
if len(FLXQ.keys()) <= 2:
nvHM(FLXQ)
else:
for H5ew in FLXQ:
if H5ew == 'loss':
nvHM(FLXQ, only_loss=True)
elif H5ew[:4] != 'val_' and H5ew[-5:] == '_loss':
xYGm = H5ew[:-5]
nvHM(FLXQ, output_name=xYGm) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qSo0(FLXQ):\n QrM1.plot(FLXQ.history['accuracy'])\n QrM1.plot(FLXQ.history['val_accuracy'])\n QrM1.title('Model Accuracy')\n QrM1.ylabel('Accuracy')\n QrM1.xlabel('Epoch')\n QrM1.legend(['Train', 'Validation'], loc='upper left')\n QrM1.show()",
"def Qo64(FLXQ):\n QrM1.plot(FLXQ['loss'... | [
"0.7937348",
"0.7895954",
"0.7879369",
"0.7847494",
"0.7832898",
"0.77991444",
"0.7775415",
"0.77559346",
"0.7751157",
"0.77491313",
"0.7742264",
"0.7691728",
"0.76688004",
"0.766091",
"0.7639465",
"0.75858396",
"0.7572559",
"0.7533041",
"0.7488886",
"0.7480158",
"0.74663836"... | 0.716302 | 52 |
Return base total amount | def zBR7(YKHO, KBgZ, PObu, A07C, mWFP, qIxc, QpfX=None):
Ylbp = {}
for QToG in YKHO.browse(KBgZ, PObu, A07C, QpfX):
Ylbp[QToG.id] = 0.0
for zFiD in QToG.xml_ids:
Ylbp[QToG.id] += zFiD.base
return Ylbp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fg4d(YKHO):\n return YKHO._base_grand_total",
"def Pn9G(YKHO):\n return YKHO._base_subtotal",
"def h4aS(YKHO, NR94=5.0):\n wjRY = (1 + YKHO.tax) * YKHO.qty * NR94\n if YKHO.species == 'Chrismas Melons':\n wjRY = NR94 * 1.5\n if YKHO.order_type == 'international' and YKHO.qty < 10:\n ... | [
"0.7889302",
"0.7876564",
"0.76622516",
"0.7604938",
"0.7542419",
"0.7514867",
"0.7487408",
"0.74840623",
"0.74790734",
"0.74643594",
"0.74444985",
"0.7396755",
"0.72355396",
"0.723092",
"0.7205612",
"0.71954775",
"0.71863675",
"0.7176341",
"0.71671796",
"0.716163",
"0.714624... | 0.73864996 | 12 |