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 |
|---|---|---|---|---|---|---|
Check if other is of type Sphere | def N8Wl(YKHO, Elif) -> bool:
if not isinstance(Elif, c34g):
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif: 'Sphere') -> bool:\n if not YKHO.validate_sphere(Elif):\n return False\n if YKHO.radius != Elif.radius:\n return False\n return True",
"def vcaS(YKHO):\n return 'sphere'",
"def eDFN(w_Eq, yvp2, D1sU=10 ** (-6)):\n return (yvG3(w_Eq) | yvG3(yvp2))[0] <= -1 + D1s... | [
"0.7425796",
"0.7204358",
"0.67234564",
"0.6692185",
"0.6568694",
"0.65483934",
"0.6490252",
"0.6358719",
"0.6324773",
"0.63071424",
"0.6274808",
"0.6203856",
"0.6201944",
"0.6086846",
"0.60603046",
"0.59778994",
"0.5975917",
"0.5950275",
"0.59248203",
"0.5907191",
"0.5891039... | 0.85186416 | 0 |
The subset of `words` that appear in the dictionary of WORDS. | def d6AQ(YKHO, V22M):
return set((yzQ0 for yzQ0 in V22M if yzQ0 in YKHO.WORDS)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d6AQ(YKHO, V22M):\n return {yzQ0 for yzQ0 in V22M if yzQ0 in YKHO.WORDS}",
"def sU46(YKHO, V22M):\n return set((yzQ0 for yzQ0 in V22M if yzQ0 in YKHO.dictionary))",
"def sU46(YKHO, V22M):\n return set((yzQ0 for yzQ0 in V22M if yzQ0 in YKHO.vocab))",
"def Kx6o(YKHO, V22M):\n return {yzQ0 for y... | [
"0.76364493",
"0.76055515",
"0.7485518",
"0.73199207",
"0.72979337",
"0.7278926",
"0.7278926",
"0.7229733",
"0.71360075",
"0.7053464",
"0.6778095",
"0.6693023",
"0.65750885",
"0.6521456",
"0.6454596",
"0.6410673",
"0.63962376",
"0.6381746",
"0.6377373",
"0.6312465",
"0.629887... | 0.7447693 | 3 |
Calculate loss = reconstruction loss + KL loss for each data in minibatch | def fDxD(Y8eF, aMgO):
V9Qw = nMvt.sum(nMvt.binary_crossentropy(aMgO, Y8eF), axis=1)
bISY = 0.5 * nMvt.sum(nMvt.exp(SgQ6) + nMvt.square(yGTL) - 1.0 - SgQ6, axis=1)
return V9Qw + bISY | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N77f(g4y1, o4Jx):\n zEa3 = nMvt.backend.sum(nMvt.backend.binary_crossentropy(g4y1, o4Jx, from_logits=False), axis=1)\n zIzJ = 1 + bKZA - nMvt.backend.square(y906) - nMvt.backend.exp(bKZA)\n zIzJ = nMvt.backend.sum(zIzJ, axis=-1)\n zIzJ = zIzJ * -0.5\n zIzJ = nMvt.backend.mean(zIzJ)\n dxS6 = z... | [
"0.6807689",
"0.67883253",
"0.67798567",
"0.67775846",
"0.66800565",
"0.66800004",
"0.6539045",
"0.64611495",
"0.64031744",
"0.63947403",
"0.6387983",
"0.6344642",
"0.63314295",
"0.62958366",
"0.62922597",
"0.6285755",
"0.62783515",
"0.6276439",
"0.6265429",
"0.6263686",
"0.6... | 0.0 | -1 |
Outputs type field of this object | def zAg0(YKHO):
return f'{YKHO.type}' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def type(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'type')",
"def type(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'type')",
"def type(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'type')",
"def type(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'type')",
"def type(YK... | [
"0.78787917",
"0.78787917",
"0.78787917",
"0.78787917",
"0.78787917",
"0.78787917",
"0.78787917",
"0.78787917",
"0.78787917",
"0.78787917",
"0.78787917",
"0.78787917",
"0.78787917",
"0.78787917",
"0.78787917",
"0.78787917",
"0.78787917",
"0.78787917",
"0.78787917",
"0.78787917"... | 0.0 | -1 |
Computes the accuracy over the k top predictions for the specified values of k | def vjyh(YKHO, hlel, pan_, hz5a=(1,)):
with ht2j.no_grad():
Gq8e = max(hz5a)
Ep8u = pan_.size(0)
bGrB, nvEb = hlel.topk(Gq8e, 1, True, True)
nvEb = nvEb.t()
gXXc = nvEb.eq(pan_.view(1, -1).expand_as(nvEb))
Ylbp = []
for G1Hx in hz5a:
R2Dg = gXXc[:G... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vjyh(aMgO, ibJh, hz5a=(1,)):\n Gq8e = max(hz5a)\n Ep8u = ibJh.size(0)\n bGrB, nvEb = aMgO.topk(Gq8e, 1, True, True)\n nvEb = nvEb.t()\n gXXc = nvEb.eq(ibJh.view(1, -1).expand_as(nvEb))\n Ylbp = []\n for G1Hx in hz5a:\n R2Dg = gXXc[:G1Hx].view(-1).float().sum(0)\n Ylbp.append(... | [
"0.8317406",
"0.8285652",
"0.82828414",
"0.8281149",
"0.82362676",
"0.82337403",
"0.822514",
"0.82245225",
"0.82118344",
"0.81912935",
"0.81870127",
"0.818126",
"0.8180909",
"0.8179992",
"0.81788236",
"0.81788236",
"0.8178704",
"0.81778836",
"0.8177197",
"0.81756",
"0.8173057... | 0.0 | -1 |
Compute loss given predictions and groundtruth labels | def N77f(YKHO, *E0cB, **B2fa):
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N77f(YKHO, YC2x, hM4J):\n pass",
"def pYqK(rblr, rDFg, Uvgg, epGn):\n Zeq8 = rblr * (rDFg * (Uvgg - 1) + rDFg - 1) + (1 - rblr) * ((1 - rDFg) * (epGn - 1) - rDFg)\n return Zeq8.sum()",
"def Lvgp(YKHO, JV1Q, UYmz, **Suyv):\n raise NotImplementedError()",
"def N77f(YKHO, N6Z1, x6A0):\n pass"... | [
"0.8030479",
"0.7929515",
"0.77929324",
"0.7689515",
"0.75497174",
"0.7514147",
"0.7467326",
"0.7427054",
"0.7391844",
"0.7348761",
"0.73200285",
"0.72596014",
"0.72428286",
"0.7228817",
"0.7225733",
"0.7224176",
"0.7224176",
"0.7224176",
"0.72147393",
"0.71992236",
"0.719722... | 0.0 | -1 |
Return the current estimate of noise variance | def Y6OB(YKHO, *E0cB, **B2fa):
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qvVm(YKHO):\n return YKHO.sigma_n",
"def qvVm(YKHO):\n return YKHO.sigma_n",
"def qvVm(YKHO):\n return super().noise_variance()",
"def I8JS(YKHO):\n yGTL = YKHO.expected()\n return YKHO.moment(2) - yGTL * yGTL",
"def I8JS(YKHO):\n return (epAf.exp(YKHO.sigma ** 2) - 1.0) * epAf.exp(2.... | [
"0.8714261",
"0.8714261",
"0.8313092",
"0.7815406",
"0.76982176",
"0.7687933",
"0.76637095",
"0.76332337",
"0.7522935",
"0.7482278",
"0.74461085",
"0.7439506",
"0.73784685",
"0.737323",
"0.73686975",
"0.7350484",
"0.7312864",
"0.7302835",
"0.7271743",
"0.7251734",
"0.72233224... | 0.0 | -1 |
Returns a compiled convolutional neural network model. | def YrZb():
C3ST = ZylS.keras.Sequential()
C3ST.add(ZylS.keras.layers.Conv2D(32, (3, 3), activation='relu', input_shape=(uGEl, Md1g, 3)))
C3ST.add(ZylS.keras.layers.MaxPooling2D(pool_size=(2, 2)))
C3ST.add(ZylS.keras.layers.Conv2D(64, (3, 3), activation='relu'))
C3ST.add(ZylS.keras.layers.MaxPooling... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m5Rz(YKHO, KUnM=32, KnxT=7, EcAO=5, tspZ=0.0001) -> FYrf.Sequential:\n C3ST = FYrf.Sequential(name='ConvNet')\n C3ST.add(fhcK.Embedding(YKHO.vocab_size, YKHO.ndim, input_length=YKHO.maxlen))\n C3ST.add(fhcK.Conv1D(KUnM, KnxT, activation='relu'))\n C3ST.add(fhcK.MaxPooling1D(EcAO))\n C3ST.add(fhc... | [
"0.74023706",
"0.71236277",
"0.7047647",
"0.69195944",
"0.69142205",
"0.68933034",
"0.6853414",
"0.68325275",
"0.6819606",
"0.67306817",
"0.6668583",
"0.66516995",
"0.66460425",
"0.664341",
"0.664249",
"0.66224813",
"0.6611489",
"0.6602488",
"0.65928",
"0.6590821",
"0.6588132... | 0.6375631 | 42 |
Calculates the average loss of the examples in a minibatch. | def Lvgp(YKHO, JV1Q, UYmz, **Suyv):
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _iSi(YKHO):\n return YKHO.curr_avg_epoch_loss",
"def FfGS(YKHO):\n return oyIN.mean(YKHO._loss_values)",
"def xBoL(N6Z1, x6A0):\n return epAf.sqrt(Wbxz.mean_squared_error(N6Z1, x6A0))",
"def YbcW(Wc9F, aTLP):\n x6A0 = Wc9F['y']\n Ji9D = Wbxz.unreduced_cross_entropy_loss(x6A0, aTLP)\n Ji... | [
"0.7019741",
"0.70111966",
"0.69439524",
"0.6917769",
"0.6915925",
"0.690173",
"0.6877556",
"0.6863737",
"0.6815876",
"0.6787138",
"0.6779728",
"0.6755513",
"0.6596316",
"0.6583103",
"0.65655196",
"0.6563072",
"0.65341294",
"0.6533996",
"0.6529053",
"0.6515625",
"0.65119684",... | 0.0 | -1 |
CloudEndureLicense a model defined in Swagger | def FIMM(YKHO, UHFx=None, lg_o=None, XR14=None, bySB=None, bxEx=None, kQrW=None, type=None, id=None):
YKHO._count = None
YKHO._duration_from_start_of_use = None
YKHO._used = None
YKHO._features = None
YKHO._expiration_date_time = None
YKHO._ce_admin_properties = None
YKHO._type = None
YK... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c21I(YKHO):\n pass",
"def FIMM(YKHO, wMut: List[str]=None, license: List[str]=None):\n YKHO.swagger_types = {'cve': x1iM[str], 'license': x1iM[str]}\n YKHO.attribute_map = {'cve': 'cve', 'license': 'license'}\n YKHO._cve = wMut\n YKHO._license = license",
"def MHHJ(YKHO):\n pass",
"def ... | [
"0.64674616",
"0.6256702",
"0.6149145",
"0.5926191",
"0.58209354",
"0.58124083",
"0.5713623",
"0.57095665",
"0.57095665",
"0.5644834",
"0.5636068",
"0.5613816",
"0.56058383",
"0.55968255",
"0.5591902",
"0.55713165",
"0.55389464",
"0.5531006",
"0.54944986",
"0.54937756",
"0.54... | 0.0 | -1 |
Sets the used of this CloudEndureLicense. | def XR14(YKHO, XR14):
YKHO._used = XR14 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def riqM(YKHO):\n pass",
"def d7Eg(YKHO, FtL7):\n YKHO._license = FtL7",
"def Ckth(YKHO, Ckth):\n YKHO._allowed_licenses = Ckth",
"def license(YKHO, license: List[str]):\n YKHO._license = license",
"def DFkc(YKHO, VO8i):\n YKHO.__uses = VO8i",
"def license(YKHO, license):\n YKHO.spec.de... | [
"0.66453344",
"0.615414",
"0.577483",
"0.5720859",
"0.57050896",
"0.56938964",
"0.5649818",
"0.5649818",
"0.5649818",
"0.56495357",
"0.5502801",
"0.54531807",
"0.5418687",
"0.54116094",
"0.5401755",
"0.5382907",
"0.53349847",
"0.5307804",
"0.5303281",
"0.52937514",
"0.5292893... | 0.6012633 | 2 |
Returns the string representation of the model | def gTzM(YKHO):
return CgYo.pformat(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.83931243",
"0.83552086",
"0.82955265",
"0.8132768",
"0.81150424",
"0.81002593",
"0.80996835",
"0.80982906",
"0.80982906",
"0.80930424",
"0.80930424",
"0.80930424",
"0.80930424",
"0.8085779",
"0.8085779",
"0.8085779",
"0.8085779",
"0.8085779",
"0.8067391",
"0.80594134",
"0.... | 0.0 | -1 |
get job title as string | def Yu9i(hFiK):
jzdc = hFiK.find(name='a', href=True, attrs={'data-tn-element': 'jobTitle'})
return jzdc.get_text() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wXDe(YKHO):\n return YKHO._job_title",
"def Upwb(YKHO):\n return YKHO.get_job()['title']",
"def Yu9i(YKHO):\n dbld = YKHO.getJob_titles()\n return ', '.join(dbld)",
"def wXDe(YKHO, oCfW):\n return f'a₀, Nₘ = {oCfW.sp.a0}, {oCfW.sp.Nm}'",
"def wxIh(YKHO) -> str:\n return qe4Y.get(YKHO,... | [
"0.862329",
"0.8576752",
"0.81692314",
"0.7903135",
"0.7837625",
"0.7639598",
"0.74858963",
"0.7444274",
"0.7425603",
"0.7418468",
"0.72492963",
"0.72243035",
"0.71562064",
"0.7122381",
"0.7079659",
"0.7057351",
"0.7035538",
"0.7035538",
"0.70036566",
"0.699851",
"0.6969511",... | 0.747308 | 7 |
Return a unique ID for this sensor. | def ShR8(YKHO):
return f'{YKHO._stationinfo[aQmS]}-{YKHO._key}' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ShR8(YKHO):\n return YKHO._device.guid + YKHO._sensor_type['name']",
"def ShR8(YKHO):\n return f'{YKHO._device.uuid}-SENSOR'",
"def ShR8(YKHO) -> str:\n return '{}-{}'.format(YKHO.flume.device_id, YKHO.sensor_type)",
"def ShR8(YKHO):\n return f'{YKHO._zehnder.unique_id}-{YKHO._sensor_type}'",... | [
"0.90541726",
"0.875666",
"0.86598784",
"0.8625761",
"0.8584174",
"0.8567619",
"0.8483974",
"0.8397346",
"0.8354022",
"0.8311269",
"0.8288011",
"0.82873076",
"0.82836735",
"0.8220231",
"0.82107544",
"0.8199967",
"0.81689775",
"0.81689775",
"0.81611717",
"0.81611717",
"0.81595... | 0.0 | -1 |
Return device information for this sensor. | def GWuV(YKHO):
return {'station': YKHO._stationinfo[IIGW], 'model': YKHO._stationinfo[i6cV], 'frequency': YKHO._stationinfo[Xld_]} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GWuV(YKHO):\n return YKHO._api.device_info",
"def GWuV(YKHO):\n return YKHO._device.device_info()",
"def GWuV(YKHO):\n return YKHO._device.device_info()",
"def GWuV(YKHO):\n return YKHO._device.device_info",
"def GWuV(YKHO):\n return YKHO._device_info",
"def GWuV(YKHO):\n return YKH... | [
"0.8525772",
"0.84646964",
"0.84646964",
"0.8451555",
"0.8375186",
"0.8375186",
"0.8375186",
"0.8375186",
"0.8375186",
"0.8368565",
"0.8229641",
"0.82044625",
"0.82044625",
"0.82044625",
"0.8155991",
"0.8141448",
"0.8132492",
"0.81311893",
"0.81244475",
"0.8101939",
"0.810085... | 0.83520675 | 10 |
Return whether the state is based on actual reading from device. | def DbRH(YKHO) -> bool:
if YKHO._ws.lastupd + 5 * 60 < ITS7.time():
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PIi0(YKHO):\n return YKHO.read_status == YKHO.READ_STATUS_READ",
"def PIi0(YKHO):\n return YKHO._read",
"def Debg(YKHO):\n return YKHO.device.state",
"def Debg(YKHO):\n return YKHO.device.state",
"def QTBn(YKHO):\n return YKHO._device.dioRead(YKHO._port)",
"def IpUL(YKHO):\n YKHO._l... | [
"0.77710533",
"0.7548797",
"0.7403411",
"0.7403411",
"0.74011755",
"0.7364508",
"0.7347593",
"0.7347593",
"0.7342574",
"0.7327078",
"0.7228184",
"0.7162535",
"0.714998",
"0.7028802",
"0.7016111",
"0.69877446",
"0.6978177",
"0.6943361",
"0.69430804",
"0.68855274",
"0.6876106",... | 0.0 | -1 |
Set random seed to both numpy and torch. | def PVng(yokr: int) -> None:
tuKI.seed(yokr)
oyIN.random.seed(yokr)
idx7.manual_seed(yokr)
idx7.cuda.manual_seed(yokr) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e3of(yokr):\n ht2j.manual_seed(yokr)\n tuKI.seed(yokr)\n oyIN.random.seed(yokr)",
"def igb0():\n oyIN.random.seed(8)\n ht2j.manual_seed(8)\n tuKI.seed(8)",
"def e3of(yokr):\n import random\n import numpy as oyIN\n import torch\n random.seed(yokr)\n torch.manual_seed(yokr)\n... | [
"0.847956",
"0.8407656",
"0.8374467",
"0.83616257",
"0.83451825",
"0.83385247",
"0.8261951",
"0.8231331",
"0.8225069",
"0.82150877",
"0.82150877",
"0.82150877",
"0.82150877",
"0.8202368",
"0.81912756",
"0.81710327",
"0.8151183",
"0.812144",
"0.8120367",
"0.8119914",
"0.810999... | 0.77546495 | 71 |
Return the experiment version. | def DpZH(YKHO) -> int:
return 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kaPv(YKHO):\n return YKHO.version",
"def kaPv(YKHO):\n return YKHO.version",
"def DpZH(YKHO) -> str:\n return qe4Y.get(YKHO, 'version')",
"def DpZH(YKHO) -> str:\n return qe4Y.get(YKHO, 'version')",
"def DpZH(YKHO) -> str:\n return qe4Y.get(YKHO, 'version')",
"def DpZH(YKHO) -> str:\n ... | [
"0.7832271",
"0.7832271",
"0.7801444",
"0.7801444",
"0.7801444",
"0.7801444",
"0.7801444",
"0.7801444",
"0.7801444",
"0.7801444",
"0.7801444",
"0.7801444",
"0.7801444",
"0.7801444",
"0.7801444",
"0.77691334",
"0.77691334",
"0.77691334",
"0.77691334",
"0.7750925",
"0.7750925",... | 0.0 | -1 |
Returns Network object after parsing a .json file. | def c87f(Ux0P, Rivs):
eHNT = open(Ux0P)
GPtr = qQXR.load(eHNT)
eHNT.close()
eVVj = X1CD(Rivs)
for XldB in GPtr['Hosts']:
eVVj.add_host(XldB)
for Mem1 in GPtr['Routers']:
eVVj.add_router(Mem1)
for QZnA in GPtr['Links']:
eVVj.add_link(QZnA['network_id'], QZnA['devices']... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XCN0(Ux0P):\n eHNT = open(Ux0P, 'r')\n nPrm = qQXR.load(eHNT)\n eHNT.close()\n Zxma = X1CD(nPrm['sizes'])\n Zxma.weights = [oyIN.array(yzQ0) for yzQ0 in nPrm['weights']]\n Zxma.biases = [oyIN.array(Fg_i) for Fg_i in nPrm['biases']]\n return Zxma",
"def JtLx(nUeQ):\n nPrm = qQXR.load(n... | [
"0.6665994",
"0.66199464",
"0.66143084",
"0.6509425",
"0.64022267",
"0.6399324",
"0.63254184",
"0.62761086",
"0.62505996",
"0.6242219",
"0.6225673",
"0.62206006",
"0.61963654",
"0.6191919",
"0.61139977",
"0.61113214",
"0.60932034",
"0.6077853",
"0.60501266",
"0.601267",
"0.60... | 0.0 | -1 |
Return if device supports brightness. | def dacS(YKHO) -> bool:
return qC6E.LevelControl.Attributes.CurrentLevel in YKHO.entity_description.subscribe_attributes | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bL1Z(YKHO):\n return YKHO.brightness.initialized",
"def XhMO(YKHO):\n return S08I",
"def XhMO(YKHO):\n if YKHO._is_dimmable:\n return S08I\n return 0",
"def asva(YKHO):\n return YKHO.device['status']['brightness']",
"def asva(YKHO):\n if YKHO.device.supports_brightness:\n ... | [
"0.854114",
"0.7863069",
"0.7641927",
"0.7447524",
"0.72603905",
"0.7257447",
"0.70940965",
"0.705447",
"0.7028086",
"0.6940754",
"0.6939493",
"0.6889996",
"0.6862396",
"0.6828105",
"0.6800183",
"0.6765051",
"0.6745124",
"0.67278963",
"0.6725003",
"0.6716216",
"0.67144",
"0... | 0.7753399 | 2 |
Get color temperature from matter. | def WaTU(YKHO) -> int:
ccCp = YKHO.get_matter_attribute(qC6E.ColorControl.Attributes.ColorTemperatureMireds)
assert ccCp is not None
S0MI.debug('Got color temperature %s for %s', ccCp.value, YKHO._device_type_instance)
return int(ccCp.value) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a20G(YKHO):\n if YKHO._color is not None and YKHO._color[0] == YKHO.COLOR_TYPES['temperature']:\n return YKHO._color[1]\n return None",
"def a20G(YKHO):\n return YKHO._color_temperature",
"def ccCp(YKHO):\n ccCp = int(YKHO._tuya.color_temp())\n if ccCp is None:\n return None\n ... | [
"0.8084693",
"0.8026583",
"0.77927315",
"0.7773825",
"0.77437836",
"0.7628084",
"0.7610039",
"0.7519657",
"0.7392315",
"0.7310573",
"0.7265132",
"0.7223425",
"0.7196456",
"0.7196456",
"0.7196456",
"0.6957825",
"0.6946241",
"0.6844604",
"0.6836839",
"0.6825195",
"0.67672724",
... | 0.8117418 | 0 |
Assert if passed no filename return is None | def CQNu():
assert tyeH(gCuF) is None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tYcn():\n i8WE = NwOM()\n FYKK = i8WE.filename\n assert FYKK is None",
"def zf3N():\n with trZe.raises(Exception) as tTpl:\n Cdnr(None)\n assert str(tTpl.value) == '[ParamValueError]: error_code: 1347686402, error_msg: Invalid parameter value. File path is not allowed None or empty!'",
... | [
"0.7386598",
"0.7260133",
"0.72501874",
"0.7216967",
"0.7056313",
"0.6942821",
"0.6914506",
"0.6851226",
"0.6834758",
"0.6810781",
"0.67905986",
"0.67847425",
"0.67772645",
"0.677643",
"0.6771271",
"0.6770208",
"0.6746101",
"0.6725022",
"0.6680603",
"0.66312253",
"0.66274273"... | 0.7200501 | 4 |
Performs forward propagation through all layers. | def KVH6(YKHO, k0lF, Y9ns=True):
for gEmA in YKHO._layers:
k0lF = gEmA.forward(k0lF, Y9ns)
return k0lF | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pijq(YKHO):\n for gEmA in YKHO.network.neuron_layers_list:\n for HgE9 in gEmA:\n HgE9.calc_sum()\n HgE9.calc_output()\n HgE9.delta = 0",
"def pijq(YKHO):\n for gEmA in YKHO.network.neuron_layers_list:\n for HgE9 in gEmA:\n HgE9.calc_sum()\n ... | [
"0.7786427",
"0.7786427",
"0.76608074",
"0.7617187",
"0.75882316",
"0.7532271",
"0.74851537",
"0.74512255",
"0.7446783",
"0.73982424",
"0.7359577",
"0.7358923",
"0.733449",
"0.7314262",
"0.73006225",
"0.7274575",
"0.7257058",
"0.723288",
"0.7231201",
"0.7217115",
"0.72158253"... | 0.68217987 | 46 |
Performs backward propagation through all layers. | def ZD5u(YKHO, LQ6K, gYZ3=0):
for gEmA in reversed(YKHO._layers):
LQ6K = gEmA.backward(LQ6K, lamb=gYZ3) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZD5u(YKHO, zYcP):\n for gEmA in reversed(YKHO.layers):\n zYcP = gEmA.backward(zYcP)\n return",
"def BrKr(fuBA, fhcK):\n RA_F = fuBA\n for gEmA in fhcK[::-1]:\n RA_F = gEmA.backward(RA_F)",
"def ZD5u(YKHO):\n vtNT = YKHO.loss.backward()\n for YRbF in reversed(YKHO.layers):\n ... | [
"0.8117495",
"0.80744857",
"0.79985714",
"0.793515",
"0.79172015",
"0.7915587",
"0.7714798",
"0.7607311",
"0.76024747",
"0.74778086",
"0.74087036",
"0.7376065",
"0.7364473",
"0.7361143",
"0.7350087",
"0.7326477",
"0.7321209",
"0.7311648",
"0.7292466",
"0.7288603",
"0.72884566... | 0.7791607 | 6 |
split the sequences into batchs of subsequences using the n_steps parameter | def KrHy(jWe2, d3gB):
EcVT = list()
for YRbF in range(len(jWe2)):
_R_l = YRbF + d3gB
if _R_l > len(jWe2):
break
K8bL = jWe2[YRbF:_R_l, :-1]
EcVT.append(K8bL)
return oyIN.array(EcVT) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KrHy(jWe2, d3gB):\n EcVT, LVAh = (list(), list())\n for YRbF in range(len(jWe2)):\n _R_l = YRbF + d3gB\n if _R_l > len(jWe2):\n break\n K8bL, UtVd = (jWe2[YRbF:_R_l, 1:], jWe2[_R_l - 1, 0])\n EcVT.append(K8bL)\n LVAh.append(UtVd)\n return (oyIN.array(EcVT)... | [
"0.77797246",
"0.731581",
"0.72820973",
"0.7117925",
"0.7117925",
"0.7117089",
"0.70978063",
"0.7097165",
"0.69723904",
"0.69277054",
"0.6843208",
"0.6812472",
"0.68043375",
"0.6779036",
"0.67776525",
"0.6710575",
"0.6701895",
"0.6698716",
"0.6698612",
"0.66928047",
"0.668512... | 0.81337893 | 0 |
Plot the metric vs epoch for the train and validation set | def UqpB(FLXQ, AcYW):
QrM1.plot(FLXQ[AcYW])
QrM1.plot(FLXQ['val_' + AcYW])
QrM1.title('model ' + AcYW)
QrM1.ylabel(AcYW)
QrM1.xlabel('nb_epoch')
QrM1.legend(['train', 'validation'], loc='center right') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kj9G(YKHO, AcYW, HasU, rplU, SvjZ):\n QrM1.plot(HasU, rplU)\n QrM1.plot(HasU, SvjZ)\n QrM1.title('Training and Validation ' + AcYW)\n QrM1.xlabel('Epochs')\n QrM1.ylabel(AcYW.capitalize())\n QrM1.legend(['train_' + AcYW.lower(), 'val_' + AcYW.lower()])\n QrM1.savefig(Hy7s.path.join(YKHO.lo... | [
"0.80957156",
"0.8038454",
"0.7772246",
"0.7654602",
"0.76346296",
"0.75982213",
"0.7592929",
"0.75899684",
"0.75895655",
"0.7574812",
"0.7572404",
"0.7559926",
"0.7535322",
"0.75349015",
"0.74783534",
"0.74701554",
"0.74629563",
"0.7449216",
"0.7445877",
"0.7440573",
"0.7436... | 0.0 | -1 |
plot the loss, the accuracy and cosine proximity | def s2cB(FLXQ, QLRJ='acc', BeM3='cosine_proximity', Zi0Q='loss'):
QrM1.figure(figsize=(15, 5))
i912 = Klo7.GridSpec(1, 3)
aNZO = QrM1.subplot(i912[0])
UqpB(FLXQ, QLRJ)
aNZO = QrM1.subplot(i912[1])
UqpB(FLXQ, BeM3)
aNZO = QrM1.subplot(i912[2])
UqpB(FLXQ, Zi0Q) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mBbd(p4HL, Z1le):\n QrM1.plot(p4HL, label='train loss')\n QrM1.annotate('%0.4f' % p4HL[-1], xy=(1, p4HL[-1]), xytext=(20, 0), xycoords=('axes fraction', 'data'), textcoords='offset points', arrowprops=dict(arrowstyle='-'))\n QrM1.plot(Z1le, label='validation loss')\n QrM1.annotate('%0.4f' % Z1le[-1... | [
"0.7205133",
"0.7190767",
"0.7079892",
"0.70746326",
"0.70115215",
"0.7001497",
"0.70006347",
"0.69914603",
"0.6947542",
"0.69349986",
"0.69209194",
"0.6889918",
"0.6888788",
"0.6858291",
"0.6842753",
"0.68409246",
"0.67969775",
"0.67810726",
"0.6767537",
"0.6757536",
"0.6751... | 0.0 | -1 |
ellip notch filter fstops is a list of entries of the form [frequency (Hz), df, df2f] where df is the pass width and df2 is the stop width (narrower than the pass width). Use caution if passing more than one freq at a time, because the filter response might behave in ways you don't expect. | def JiTV(YKHO, lW7M, Vb5F, T4Wy=4):
bq_o = 0.5 * Vb5F
dfjV = oyIN.array([])
rLdf = oyIN.array([])
veDp = 1
for vvvY in lW7M:
AKP9 = vvvY[0]
jQ3Z = vvvY[1]
qaAi = vvvY[2]
gqRb = (AKP9 - jQ3Z) / bq_o
ODP9 = (AKP9 + jQ3Z) / bq_o
yphi = (AKP9 - qaAi) / bq_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lCst(sSyf, Vb5F, bgec, wY0M, MEl2=False, PJWX=False, **B2fa):\n assert len(bgec) == len(wY0M), 'l_freqs and h_freqs must be the same length, {l_f} not equal to {h_f}'.format(l_f=len(bgec), h_f=len(wY0M))\n owz5 = []\n for p4JX, ebUW in zip(bgec, wY0M):\n owz5.append(Uvly(epoch_neural_data=sSyf,... | [
"0.6278195",
"0.6186594",
"0.6142916",
"0.6102371",
"0.6062287",
"0.6016093",
"0.6015445",
"0.59426117",
"0.592823",
"0.59177256",
"0.5769536",
"0.57639396",
"0.57372534",
"0.57357484",
"0.57149225",
"0.571135",
"0.5701181",
"0.5691765",
"0.56813854",
"0.56788146",
"0.5666886... | 0.5927377 | 9 |
Gets the rest of the URL, after stripping the netloc and scheme. This is basically the path, query and fragment. If that would have been empty, ``/`` is returned instead. | def fTtY(DGFA):
print('[DEBUG] _getRestOfURL :: splitURL:', tuple(DGFA))
SQ3m = ('', '') + tuple(DGFA)[2:]
print(SQ3m)
return tuple(KVWQ(SQ3m[2])) or b'/' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def imCQ(bD7m):\n z1Rg = KVWQ(bD7m)\n return z1Rg.scheme + '://' + z1Rg.netloc + z1Rg.path",
"def vBWh(YKHO):\n bD7m = YKHO.scheme + ':' if YKHO.scheme else ''\n bD7m += '//' + YKHO.netloc + YKHO.relative()\n return bD7m",
"def hirS(bD7m):\n XP5J = jKi7.moves.urllib.parse.urlparse(bD7m)\n ... | [
"0.70558274",
"0.6827473",
"0.6787437",
"0.6780936",
"0.6699924",
"0.66847503",
"0.65783924",
"0.65730214",
"0.6515086",
"0.6510453",
"0.6510453",
"0.6491247",
"0.6442515",
"0.6418291",
"0.63968223",
"0.6388457",
"0.6356951",
"0.63329387",
"0.63329387",
"0.6320624",
"0.630296... | 0.6587399 | 6 |
Builds the headers for the outgoing request. This copies the incoming headers and sets the ``Host`` header if it hasn't been set. | def frd1(YKHO, KcEq):
print('[DEBUG] MinitrueRequest(proxy.ProxyRequest) -> _buildheaders :: host:', KcEq)
MOPg = YKHO.getAllHeaders().copy()
if 'host' not in MOPg:
MOPg['host'] = KcEq
return MOPg | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rRTj(YKHO):\n l4uA = YKHO.action.HEADERS_PARAMS\n if p6J2(l4uA):\n return YKHO.filter_raw_kwargs(include=l4uA)",
"def zdUv(YKHO):\n MOPg = None\n gV46 = YKHO.checksum\n if gV46 is not None:\n MOPg = {A6Zy: gV46}\n RKD7.info('Sending headers %s', MOPg)\n return MOPg",
... | [
"0.6728175",
"0.6596183",
"0.6577336",
"0.64930445",
"0.6461813",
"0.6445989",
"0.643093",
"0.64182806",
"0.63891447",
"0.63259727",
"0.6296296",
"0.6289662",
"0.6285392",
"0.62796897",
"0.6274229",
"0.6270875",
"0.6266711",
"0.6265107",
"0.62531096",
"0.62340206",
"0.615759"... | 0.79600686 | 0 |
r"""Name of the GSLB service.Minimum length = 1. | def pGO4(YKHO):
try:
return YKHO._servicename
except Exception as e:
raise tTpl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bSEa(Emd4):\n raise NotImplementedError",
"def mWFP(YKHO):\n return YKHO._service_name",
"def bSEa(YKHO) -> str:\n return qe4Y.get(YKHO, 'service_name')",
"def bSEa(YKHO) -> str:\n return qe4Y.get(YKHO, 'service_name')",
"def bSEa(YKHO) -> str:\n return qe4Y.get(YKHO, 'service_name')",
... | [
"0.7591045",
"0.71084094",
"0.6925159",
"0.6925159",
"0.6925159",
"0.6925159",
"0.6922181",
"0.6922181",
"0.68157226",
"0.678221",
"0.6756265",
"0.6756265",
"0.6756265",
"0.6756265",
"0.66956085",
"0.66953176",
"0.66953176",
"0.66953176",
"0.66953176",
"0.6602589",
"0.6602589... | 0.65672725 | 27 |
r"""Name of the GSLB service.Minimum length = 1 | def pGO4(YKHO, pGO4):
try:
YKHO._servicename = pGO4
except Exception as e:
raise tTpl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bSEa(Emd4):\n raise NotImplementedError",
"def mWFP(YKHO):\n return YKHO._service_name",
"def bSEa(YKHO) -> str:\n return qe4Y.get(YKHO, 'service_name')",
"def bSEa(YKHO) -> str:\n return qe4Y.get(YKHO, 'service_name')",
"def bSEa(YKHO) -> str:\n return qe4Y.get(YKHO, 'service_name')",
... | [
"0.75773185",
"0.7041079",
"0.6875293",
"0.6875293",
"0.6875293",
"0.6875293",
"0.6859237",
"0.6859237",
"0.67688984",
"0.6755411",
"0.6722325",
"0.6722325",
"0.6722325",
"0.6722325",
"0.6706125",
"0.6657872",
"0.6657872",
"0.6657872",
"0.6657872",
"0.6558366",
"0.6558366",
... | 0.0 | -1 |
r"""Total number of failed probes. | def vfNt(YKHO):
try:
return YKHO._monitortotalfailedprobes
except Exception as e:
raise tTpl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o3Xv(YKHO):\n try:\n return YKHO._totalfailedprobes\n except Exception as e:\n raise tTpl",
"def NzpM(YKHO):\n return YKHO._num_failed",
"def SLd0(YKHO) -> int:\n ...",
"def dM0u(YKHO) -> int:\n return qe4Y.get(YKHO, 'successful_probe_count')",
"def f8MS(YKHO):\n return ... | [
"0.85345757",
"0.75955564",
"0.7509235",
"0.7470547",
"0.73536086",
"0.7279693",
"0.72697985",
"0.71935797",
"0.7081987",
"0.7061216",
"0.7056164",
"0.7025919",
"0.7007747",
"0.6983144",
"0.6967992",
"0.69137996",
"0.6898609",
"0.6825352",
"0.68216926",
"0.678068",
"0.677923"... | 0.6410657 | 49 |
r"""Total number of currently failed probes. | def xfFM(YKHO):
try:
return YKHO._monitorcurrentfailedprobes
except Exception as e:
raise tTpl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o3Xv(YKHO):\n try:\n return YKHO._totalfailedprobes\n except Exception as e:\n raise tTpl",
"def NzpM(YKHO):\n return YKHO._num_failed",
"def dM0u(YKHO) -> int:\n return qe4Y.get(YKHO, 'successful_probe_count')",
"def SLd0(YKHO) -> int:\n ...",
"def f8MS(YKHO):\n return ... | [
"0.86073285",
"0.7770839",
"0.75186735",
"0.74421567",
"0.73983735",
"0.73676896",
"0.73571754",
"0.729422",
"0.7271817",
"0.7068422",
"0.70509386",
"0.7039073",
"0.7030981",
"0.6987392",
"0.69640607",
"0.6942102",
"0.69292635",
"0.6922497",
"0.6920972",
"0.6901591",
"0.68959... | 0.0 | -1 |
r"""The total number of failed probs. | def o3Xv(YKHO):
try:
return YKHO._totalfailedprobes
except Exception as e:
raise tTpl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NzpM(YKHO):\n return YKHO._num_failed",
"def _j4m(YKHO):\n return YKHO.total - YKHO.passed",
"def g5Vz(YKHO):\n if YKHO.force_auto_sync:\n YKHO.get('TotalFailed')\n return YKHO._TotalFailed",
"def _j4m(YKHO):\n try:\n return YKHO.results.statistics.total.critical.failed\n ... | [
"0.7865323",
"0.7406901",
"0.73744476",
"0.7328765",
"0.7325337",
"0.7324731",
"0.7283037",
"0.7283037",
"0.72804016",
"0.7216636",
"0.7178965",
"0.7063986",
"0.70626837",
"0.70535177",
"0.70479804",
"0.69460446",
"0.6909457",
"0.6786004",
"0.6703264",
"0.6695021",
"0.6679436... | 0.763966 | 1 |
Move a sequence of tensors to CUDA if the system supports it. | def qsiV(qIxc):
if not xS3U:
return qIxc.cpu()
Fg_i = ht2j.cuda.is_available()
if Fg_i:
return qIxc.cuda()
else:
return qIxc | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x_d3(WKvO):\n if ht2j.cuda.is_available():\n if type(WKvO) == tuple:\n WKvO = tuple([a1PO.cuda() for a1PO in WKvO])\n else:\n WKvO = WKvO.cuda()\n return WKvO",
"def dxFw(M4N3, cRc2):\n for YRbF in range(len(cRc2)):\n if not cRc2[YRbF] is None:\n ... | [
"0.691819",
"0.66894937",
"0.63297015",
"0.63051826",
"0.62574244",
"0.6036728",
"0.5813131",
"0.57970834",
"0.57925105",
"0.5792229",
"0.57239413",
"0.57045186",
"0.56976503",
"0.5661698",
"0.5628142",
"0.5624053",
"0.55867213",
"0.5582054",
"0.5582054",
"0.5551709",
"0.5520... | 0.6737722 | 1 |
Accept a one or more characters that equal the given spec. | def j5zf(YKHO, Cqok):
mXMw = Cqok.data
Aofo = []
for Z9rn in mXMw:
try:
wEf2, XP5J = YKHO.input.head()
except EOFError:
yield pvip
wEf2, XP5J = YKHO.input.head()
Aofo.append(wEf2)
if wEf2 == Z9rn:
YKHO.input = YKHO.input.tail()
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VPAk(YKHO):\n YKHO.assertRaises(iO0w, YKHO.validator.validate_python, '=Gustavo--Narea')\n YKHO.assertRaises(iO0w, YKHO.validator.validate_python, '=Gustavo..Narea')",
"def j82P(YKHO):\n YKHO.assertEqual(SHcl('aaaaaa1'), False)\n YKHO.assertEqual(SHcl('aaaaaabbbbb'), False)",
"def RYgk(mXDZ: st... | [
"0.63140583",
"0.60718954",
"0.60351",
"0.59492093",
"0.58813137",
"0.58806807",
"0.58191377",
"0.58063626",
"0.57237536",
"0.5717346",
"0.57142156",
"0.5713143",
"0.5699027",
"0.5682681",
"0.56805617",
"0.56061727",
"0.5604155",
"0.55949414",
"0.55713284",
"0.55556273",
"0.5... | 0.52269495 | 73 |
Accepts a file path (str), loads file in the path to a Dataframe object and return the object. | def DMrX(pmON):
return rLdf.read_csv(pmON) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Owbc(qaEx):\n mz0Z = ZbWC.compile('[^.]*$')\n yC1s = mz0Z.search(qaEx).group()\n if yC1s == 'pkl':\n xlGG = t2lc.load(open(qaEx, 'rb'))\n if isinstance(xlGG, dict):\n return rLdf.DataFrame(xlGG)\n elif isinstance(xlGG, rLdf.DataFrame):\n return xlGG\n ... | [
"0.81333923",
"0.7882966",
"0.7749312",
"0.77357185",
"0.77065885",
"0.76750594",
"0.757039",
"0.756295",
"0.7282496",
"0.7271569",
"0.7253481",
"0.72515994",
"0.72206295",
"0.72203445",
"0.7196572",
"0.7184596",
"0.7183243",
"0.7157019",
"0.71438843",
"0.7142282",
"0.7140693... | 0.7897371 | 1 |
Sends an embed containing two hyperlinks,\n one for Top.gg and one for discordbotlist.com | async def _vote(YKHO, OaeV):
r50I = tNAa(title='Vote for Groot!', description=f'{FiFP('**top.gg**', 'https://top.gg/bot/812395879146717214/vote')}\n\n{FiFP('**discordbotlist.com**', 'https://discordbotlist.com/bots/groot/upvote')}')
r50I.set_thumbnail(url=YKHO.bot.user.avatar_url)
await OaeV.send(embed=r50I... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def links(YKHO, OaeV):\n A_oh = f'- [Wiki]({GPtr.getLinks()['wiki']})\\n\\n- [Subreddit]({GPtr.getLinks()['subreddit']})\\n\\n- [Constitution]({GPtr.getLinks()['constitution']})\\n\\n- [Legal Code]({GPtr.getLinks()['laws']})\\n\\n- [Political Parties]({GPtr.getLinks()['parties']})\\n\\n- [Election Schedul... | [
"0.7398743",
"0.7267052",
"0.69573784",
"0.69099134",
"0.66843826",
"0.65885067",
"0.6556176",
"0.65446705",
"0.65157795",
"0.6490067",
"0.6432002",
"0.63772595",
"0.63762677",
"0.63476837",
"0.63438886",
"0.63104516",
"0.630115",
"0.6291431",
"0.6231944",
"0.6230848",
"0.620... | 0.0 | -1 |
View function for home page of site. | def d6pt(QePW):
h7yE = XmXW.objects.count()
DnSB = XmXW.objects.filter(statusz='g').count() + XmXW.objects.filter(statusz='h').count() + XmXW.objects.filter(statusz='i').count()
bzOU = XmXW.objects.filter(statusz='j').count()
return _1tc(QePW, 'index.html', context={'hibak_szama_f': h7yE, 'hibak_szama_g... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kZiy(QePW):\n return _1tc(QePW, 'base/home.html')",
"def C_QL():\n return TvZl('home.html')",
"def kZiy(QePW):\n return _1tc(QePW, 'core/home.html')",
"def nspo(QePW):\n return _1tc(QePW, 'generic/home.html')",
"def nspo(QePW):\n return _1tc(QePW, 'generic/home.html')",
"def kZiy():\n ... | [
"0.8521128",
"0.8379754",
"0.8353459",
"0.83415544",
"0.83415544",
"0.83171177",
"0.830583",
"0.8298624",
"0.8296122",
"0.8263442",
"0.8224959",
"0.8217078",
"0.8206788",
"0.81901366",
"0.81901366",
"0.8182092",
"0.8176577",
"0.81756383",
"0.8147583",
"0.81347877",
"0.8134787... | 0.0 | -1 |
Retrieve the current state of a particle. The minimal information of a stellar dynamics particle (mass, radius, position and velocity) is returned. | def ja6o():
m2Zb = SK8V()
m2Zb.can_handle_array = True
m2Zb.addParameter('index_of_the_particle', dtype='int32', direction=m2Zb.IN, description='Index of the particle to get the state from. This index must have been returned by an earlier call to :meth:`new_particle`')
m2Zb.addParameter('mass', dtype='f... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ja6o():\n m2Zb = SK8V()\n m2Zb.can_handle_array = True\n m2Zb.addParameter('index_of_the_particle', dtype='int32', direction=m2Zb.IN, description='Index of the particle to get the state from. This index must have been returned by an earlier call to :meth:`new_particle`')\n m2Zb.addParameter('mass',... | [
"0.7752544",
"0.6532558",
"0.64853156",
"0.6291995",
"0.6260994",
"0.61800253",
"0.6106442",
"0.60714006",
"0.6069024",
"0.5995876",
"0.59417266",
"0.5926049",
"0.59252954",
"0.59094375",
"0.59073436",
"0.59057856",
"0.58903754",
"0.58349806",
"0.5776756",
"0.5774852",
"0.576... | 0.77590775 | 0 |
Retrieve the position vector of a particle. Position is a vector property, this function has 3 OUT arguments. | def Iuzb():
m2Zb = SK8V()
m2Zb.addParameter('index_of_the_particle', dtype='int32', direction=m2Zb.IN, description='Index of the particle to get the state from. This index must have been returned by an earlier call to :meth:`new_particle`')
m2Zb.addParameter('x', dtype='float64', direction=m2Zb.OUT, descrip... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EBBA(YKHO) -> lNLu:\n ...",
"def iArr(YKHO):\n return YKHO._pos3d",
"def En_H(YKHO):\n return Cd5b(YKHO.x, YKHO.y, YKHO.z)",
"def UqpO(YKHO):\n if not YKHO.children:\n oeNL = oyIN.expand_dims(YKHO._pos, axis=0)\n else:\n ezWE = oyIN.fromiter(eNCK.from_iterable((il4J.pos for i... | [
"0.75748026",
"0.7378415",
"0.6948354",
"0.6894549",
"0.6847704",
"0.68259495",
"0.68099576",
"0.67874724",
"0.6705893",
"0.66753817",
"0.6668091",
"0.665894",
"0.6632246",
"0.6618638",
"0.6580594",
"0.6548017",
"0.65330416",
"0.65314525",
"0.6526862",
"0.6494425",
"0.6464925... | 0.741799 | 1 |
Retrieve the model time. This time should be close to the end time specified in the evolve code. Or, when a collision was detected, it will be the model time of the collision. | def m7L9():
m2Zb = SK8V()
m2Zb.addParameter('time', dtype='float64', direction=m2Zb.OUT, description='The current model time')
m2Zb.result_type = 'int32'
m2Zb.result_doc = '\n 0 - OK\n Current value of the time was retrieved\n -1 - ERROR\n The code does not have suppo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m7L9(YKHO):\n FlUN = YKHO.get_bounding_box()\n return FlUN['maxt'] - FlUN['mint']",
"def IQea() -> float:\n pass",
"def ew3z(YKHO):\n if YKHO.begin_event:\n return ITS7.time() - YKHO.begin_event.etime\n return 0.0",
"def CjSJ(YKHO):\n b8dk = qcWV.now()\n if YKHO.__lastTime is ... | [
"0.71098584",
"0.66638106",
"0.66356134",
"0.6611142",
"0.6528935",
"0.65206444",
"0.64911914",
"0.6483398",
"0.64490706",
"0.6447924",
"0.644262",
"0.641921",
"0.641242",
"0.63885057",
"0.63809973",
"0.6372829",
"0.63691634",
"0.6346777",
"0.6314742",
"0.63143635",
"0.631384... | 0.0 | -1 |
Retrieve the model time to start the evolution at. | def uPPs():
m2Zb = SK8V()
m2Zb.addParameter('time', dtype='float64', direction=m2Zb.OUT, description='The begin time', unit=xLlF.time)
m2Zb.result_type = 'int32'
m2Zb.result_doc = '\n 0 - OK\n Current value of the time was retrieved\n -2 - ERROR\n The code does not ha... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VuMR(YKHO):\n TN98 = int(F803('%H'))\n if TN98 in [0, 1]:\n nx5s = 18\n else:\n nx5s = int(fHeP.floor((TN98 - 2) / 6.0) * 6)\n if nx5s == 18 and TN98 in [0, 1, 2]:\n GGFj = TN98 + 24 - 18\n else:\n GGFj = TN98 - nx5s\n jFwo = qcWV.now().replace(minute=0, second=0, ... | [
"0.7306689",
"0.7119295",
"0.70115274",
"0.6987333",
"0.69868904",
"0.6941341",
"0.69383496",
"0.69383496",
"0.691125",
"0.68788046",
"0.68788046",
"0.68788046",
"0.68788046",
"0.68788046",
"0.68788046",
"0.68788046",
"0.68788046",
"0.68788046",
"0.68788046",
"0.68788046",
"0... | 0.0 | -1 |
Return the radius of the sphere, centered on the center of mass that contains all the particles. get_size? | def o4md():
m2Zb = SK8V()
m2Zb.addParameter('radius', dtype='float64', direction=m2Zb.OUT, description='The maximum distance from a star to the center of mass of the model')
m2Zb.result_type = 'int32'
m2Zb.result_doc = '\n 0 - OK\n Current value of the radius was retrieved\n -1 ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xfQ7(YKHO):\n KqHY = YKHO.noOfAtoms\n kONs = o6r4(0.0, 0.0, 0.0)\n for YRbF in Ni9Y(KqHY):\n kONs = kONs + YKHO.atomCoords[YRbF]\n kONs = kONs.scale(1.0 / KqHY)\n r1VO = 0.0\n for YRbF in Ni9Y(KqHY):\n yk4i = YKHO.atomCoords[YRbF] - kONs\n r1VO += yk4i.getNorm()\n r1VO... | [
"0.7965147",
"0.7270166",
"0.7233517",
"0.72185516",
"0.72117853",
"0.71619314",
"0.7160555",
"0.7082273",
"0.6983201",
"0.6949678",
"0.68920785",
"0.686797",
"0.68414396",
"0.6819214",
"0.68171847",
"0.6766055",
"0.6766055",
"0.6766055",
"0.6766055",
"0.6755636",
"0.67470276... | 0.0 | -1 |
Initializes a collection for a given corpus. | def FIMM(YKHO, rrSk, C3ST):
YKHO.corpus = rrSk
YKHO.model = C3ST | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, rrSk):\n YKHO.corpus = rrSk",
"def FIMM(YKHO, rrSk):\n YKHO.corpus = rrSk\n YKHO.tfidf = rrSk.tfidf\n YKHO.dict = rrSk.dict\n YKHO.articles = rrSk.articles\n YKHO.bows = rrSk.get_bows()",
"def FIMM(YKHO, rrSk):\n YKHO.unigramCounts = g760.defaultdict(lambda: 0)\n YKHO.big... | [
"0.75954163",
"0.7468394",
"0.6908747",
"0.69078845",
"0.6871189",
"0.6850407",
"0.68041676",
"0.67879206",
"0.6770635",
"0.67656845",
"0.6759569",
"0.67111325",
"0.66253656",
"0.6625092",
"0.6587759",
"0.6554132",
"0.65467525",
"0.6536068",
"0.6498346",
"0.64709723",
"0.6447... | 0.6632942 | 12 |
Updates estimated cost matrix of the city for given time slice Returns ecm (EstimatedCostMatrix) EstimatedCostMatrix object created for a given time slice | def zi9R(YKHO, w2B8):
xDcj = "select pickup_zone, dropoff_zone, low_estimate, high_estimate from `ride-estimate-crawl` where timestamp between '{0}' and '{1}' and display_name='uberX'; "
xDcj = xDcj.format(YKHO.time_slice[0], YKHO.time_slice[1])
jQ3Z = rLdf.read_sql_query(xDcj, w2B8)
Cskp = e53q(jQ3Z)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sclX(YKHO):\n F1ii = Q_s1(YKHO.sv, YKHO.dm, YKHO.distm)\n return F1ii",
"def kZQO(WLho, IE4p):\n WLho[:, IE4p] = oyIN.inf",
"def UczI(YKHO, w2B8):\n xDcj = \"select pickup_zone, dropoff_zone from `yellow-taxi-trips-october-15` where tpep_pickup_datetime between '{0}' and '{1}' and pickup_zone i... | [
"0.6543731",
"0.56827325",
"0.56213546",
"0.55195296",
"0.54766077",
"0.5359919",
"0.52691746",
"0.5225236",
"0.521697",
"0.5206162",
"0.5163205",
"0.515818",
"0.50966597",
"0.50673115",
"0.50673115",
"0.5054312",
"0.49941304",
"0.49835426",
"0.49829507",
"0.49611336",
"0.495... | 0.7549136 | 0 |
Updates driving cost (gas + maaintenance) matrix of the city for a given time slice Returns dcm (DrivingCostMatrix) DrivingCostMatrix object created for a given time slice | def sCdY(YKHO):
K0T9 = QxO0(YKHO.distm)
return K0T9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zi9R(YKHO, w2B8):\n xDcj = \"select pickup_zone, dropoff_zone, low_estimate, high_estimate from `ride-estimate-crawl` where timestamp between '{0}' and '{1}' and display_name='uberX'; \"\n xDcj = xDcj.format(YKHO.time_slice[0], YKHO.time_slice[1])\n jQ3Z = rLdf.read_sql_query(xDcj, w2B8)\n Cskp = e... | [
"0.68652195",
"0.65709364",
"0.59571165",
"0.5423236",
"0.53996074",
"0.53865755",
"0.52684164",
"0.5128613",
"0.51055634",
"0.5101792",
"0.5048251",
"0.49520895",
"0.49454913",
"0.49204588",
"0.4919967",
"0.4919967",
"0.48969868",
"0.48770007",
"0.48746017",
"0.48610508",
"0... | 0.74253106 | 0 |
Updates the waiting time vector for the passengers for given time slice Returns pwv (PaxWaitingVector) PaxWaitingVector object created for a given time slice | def tklu(YKHO, w2B8):
xDcj = "select pickup_zone, estimate as waiting_estimate from `waiting-estimate-crawl` where timestamp between '{0}' and '{1}' and display_name='uberX'; "
xDcj = xDcj.format(YKHO.time_slice[0], YKHO.time_slice[1])
jQ3Z = rLdf.read_sql_query(xDcj, w2B8)
O5kR = RYYD(jQ3Z)
return ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OUzK(YKHO, w2B8):\n xDcj = \"select pickup_zone, tpep_pickup_datetime from `yellow-taxi-trips-october-15` where tpep_pickup_datetime between '{0}' and '{1}' and pickup_zone is not NULL and dropoff_zone is not NULL; \"\n xDcj = xDcj.format(YKHO.time_slice[0], YKHO.time_slice[1])\n Krip = rLdf.read_sql_... | [
"0.6163648",
"0.53944373",
"0.5200199",
"0.5165921",
"0.51088816",
"0.5096692",
"0.50884706",
"0.50523716",
"0.50298613",
"0.49837717",
"0.49498942",
"0.49454808",
"0.49305117",
"0.49156076",
"0.49112186",
"0.48868585",
"0.48551133",
"0.48211578",
"0.4801404",
"0.47916326",
"... | 0.71482587 | 0 |
Calculate the ious between each bbox of bboxes1 and bboxes2. | def oZg1(Bsc6, IUcw, Tuqy='iou'):
assert Tuqy in ['iou', 'iof']
Bsc6 = Bsc6.astype(oyIN.float32)
IUcw = IUcw.astype(oyIN.float32)
usx6 = Bsc6.shape[0]
WfCS = IUcw.shape[0]
p9iZ = oyIN.zeros((usx6, WfCS), dtype=oyIN.float32)
if usx6 * WfCS == 0:
return p9iZ
dQgO = False
if Bsc... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kB1y(YKHO, wGB6, QFOH):\n k7mX = wGB6.size(0)\n pQ3z = QFOH.size(0)\n ewJg, Khbt = wGB6[:, :2].split(1, 1)\n Q9ku, J4l7 = (wGB6[:, :2] + wGB6[:, 2:4] / 1).split(1, 1)\n vSZT, WHlL = QFOH[:, :2].split(1, 1)\n guU_, QGiE = (QFOH[:, :2] + QFOH[:, 2:4] / 1).split(1, 1)\n Jw7X = (Q9ku.min(guU_.... | [
"0.8016848",
"0.8016848",
"0.79537094",
"0.7721617",
"0.77052945",
"0.76865035",
"0.76324767",
"0.7572122",
"0.75649506",
"0.755166",
"0.75515634",
"0.75400054",
"0.7534925",
"0.7521788",
"0.74775887",
"0.74706864",
"0.7460465",
"0.7369867",
"0.73075956",
"0.7291692",
"0.7291... | 0.7509387 | 14 |
This function plots the training and validation accuracy. | def Orhh(IEpi: list, gUS5: list, leAC: str='Training Accuracy'):
assert len(IEpi) == len(gUS5), f'Number of train accuracy ({len(IEpi)}) is not equal to validation accuracy ({len(gUS5)})'
QrM1.figure()
QrM1.plot(IEpi, label='train')
QrM1.plot(gUS5, lab... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Orhh(YKHO):\n ggYK.plot(YKHO.training_accuracy, label='training')\n if YKHO.validation_accuracy[0] != 0:\n ggYK.plot(YKHO.validation_accuracy, 'r--', linewidth=2, label='validation')\n ggYK.ylabel('Accuracy')\n ggYK.legend()\n ggYK.savefig('training_accuracy.png')\n ggYK.show()",
"de... | [
"0.85755104",
"0.8464811",
"0.8374754",
"0.83620316",
"0.82603824",
"0.81615657",
"0.8144232",
"0.80589473",
"0.8050789",
"0.80396557",
"0.79654735",
"0.7949397",
"0.7910839",
"0.79040617",
"0.7842365",
"0.7815619",
"0.7787271",
"0.7763756",
"0.77262044",
"0.77143973",
"0.771... | 0.7939686 | 12 |
Returns a collection of products that are installed in the system. | def moMJ():
Ldyl = []
for o7aX in SKz2():
Ldyl.append(a6cy(o7aX))
return Ldyl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CnKV(YKHO) -> list:\n qfQ3 = [Lx3t.name for Lx3t in YKHO.shelf.keys() if YKHO.shelf.get(Lx3t) > 0]\n return qfQ3",
"def SKz2():\n Ldyl = []\n for YRbF in UHFx(0):\n QWp7 = e74A(YX49)\n Aofo = uGYL.msi.MsiEnumProductsW(YRbF, QWp7)\n if Aofo == mk5y:\n break\n ... | [
"0.78728485",
"0.75415564",
"0.729517",
"0.72572756",
"0.70463455",
"0.69340414",
"0.6924498",
"0.68811566",
"0.68741876",
"0.6859618",
"0.68532574",
"0.68158346",
"0.67673004",
"0.6756633",
"0.6748965",
"0.6686775",
"0.6635888",
"0.6624166",
"0.66072947",
"0.6603454",
"0.660... | 0.84737766 | 0 |
Display a sign up form to create a new user account. User can add details and submit the form. | def kI0b():
if 'email' in cuiw:
Dwep(f'You are logged in as {cuiw['email']}', 'white-text green')
return vKnz(nKyW('account'))
return TvZl('general/signup.html', Page_name='Sign up', Welcome_image='../static/img/sign/bg.jpg') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jDNF():\n return TvZl('sign-up.html')",
"def kI0b():\n return TvZl('new_user.html')",
"def U1Uh():\n return TvZl('registration_form.html')",
"def byBK():\n return TvZl('create_account.html')",
"def ErPR():\n return TvZl('signup_form.html')",
"def kI0b():\n L03z = tkLq()\n if L03z... | [
"0.8286949",
"0.8277395",
"0.8230751",
"0.81683004",
"0.8090072",
"0.8013748",
"0.79960495",
"0.79539496",
"0.7883667",
"0.78806216",
"0.7874018",
"0.7827328",
"0.7793412",
"0.77907366",
"0.77839637",
"0.77823216",
"0.77731943",
"0.7761943",
"0.7761304",
"0.7733326",
"0.77326... | 0.7176372 | 90 |
Add new recipe after user successfully submitted the form, then redirects to user's own recipes list to display the newly added recipe. | def kKSg():
N8Bo = qm8v.db.user_accounts.find_one({'email': cuiw['email']})['_id']
yo7_ = qcWV.now().strftime('%Y-%m-%d')
Wave = int(QePW.form.get('hours')) * 60 if QePW.form.get('hours') else ''
O66n = int(QePW.form.get('minutes')) if QePW.form.get('minutes') else 0
RpEA = O66n + Wave if Wave else ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sbfB():\n if 'user_id' not in cuiw:\n return vKnz('/login')\n L03z = KYG4()\n if L03z.validate_on_submit():\n leAC = L03z.title.data\n TBsA = L03z.body.data\n YSCM = LC16(user_id=cuiw['user_id'], title=leAC, body=TBsA)\n NCls.session.add(YSCM)\n NCls.session.c... | [
"0.8396045",
"0.83511513",
"0.80600244",
"0.7863559",
"0.7808493",
"0.76703995",
"0.74354273",
"0.7418105",
"0.73462284",
"0.7337046",
"0.7324411",
"0.71870184",
"0.7155547",
"0.7109586",
"0.7068036",
"0.6971631",
"0.6952373",
"0.68732923",
"0.6823979",
"0.6704184",
"0.668625... | 0.6487799 | 30 |
Add recipe to user's favorites and redirect to recipe description page. | def m2sZ(rXcN):
bH0d = qm8v.db.user_accounts
N8Bo = bH0d.find_one({'email': cuiw['email']})['_id']
bH0d.update({'_id': aA6B(N8Bo)}, {'$push': {'favorite_recipes': aA6B(rXcN)}})
Dwep(f'Thanks, this recipe was added to your favorites!', 'white-text green')
return vKnz(QePW.referrer) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NxKw():\n if 'user_id' in cuiw:\n uJjO = cuiw.get('user_id')\n rXcN = QePW.form.get('recipe-id')\n gd0S = QePW.form.get('recipe-title')\n q0A_ = QePW.form.get('recipe-instructions')\n eIIu = QePW.form.get('review-notes')\n if LC16.query.get(rXcN) is None:\n ... | [
"0.8168616",
"0.7878553",
"0.7765535",
"0.7200384",
"0.698529",
"0.6936383",
"0.68919927",
"0.67412543",
"0.6582843",
"0.6470434",
"0.6452484",
"0.63571626",
"0.6341867",
"0.62527853",
"0.61713326",
"0.61504626",
"0.6120225",
"0.61201006",
"0.6101502",
"0.6091349",
"0.6086678... | 0.7735515 | 3 |
Remove recipe from user's favorites and redirect to recipe description page. | def BZgC(rXcN):
bH0d = qm8v.db.user_accounts
N8Bo = bH0d.find_one({'email': cuiw['email']})['_id']
bH0d.update({'_id': aA6B(N8Bo)}, {'$pull': {'favorite_recipes': aA6B(rXcN)}})
Dwep(f'Thanks, this recipe was removed from your favorites!', 'white-text green')
return vKnz(QePW.referrer) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XxzX():\n if not Oa1e.user:\n Dwep('Please log in first!', 'danger')\n return vKnz('/login')\n mjcC = mv1M.query.get_or_404(Oa1e.user.id)\n QRZM = QePW.form['remove-favorite-input']\n jori.query.filter((jori.user_id == mjcC.id) & (jori.recipe_uri == QRZM)).delete()\n NCls.session.c... | [
"0.8086565",
"0.7231477",
"0.7216991",
"0.70400494",
"0.7014225",
"0.69883025",
"0.6984108",
"0.69623965",
"0.6752246",
"0.6673676",
"0.6620665",
"0.6617905",
"0.65906286",
"0.6564728",
"0.6530473",
"0.6468557",
"0.6462786",
"0.6462025",
"0.64530456",
"0.6448416",
"0.6440248"... | 0.7989295 | 1 |
Barplots the summary statistic of choice (default=mean) for a specific grouping, for a specific column. | def njqt(jQ3Z, iVRZ, ZDAZ, QxIo='mean'):
QOe9 = oyIN.ndarray.tolist(jQ3Z[ZDAZ].unique())
for YRbF in QOe9:
try:
if epAf.isnan(float(YRbF)):
QOe9.remove(YRbF)
except:
pass
QrM1.bar(x=sorted(QOe9), height=[YRbF for YRbF in jQ3Z.groupby(ZDAZ)[iVRZ].agg(Qx... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dxAR(fvDH, **B2fa):\n aNZO = QrM1.gca()\n nPrm = B2fa.pop('data')\n H2v2 = nPrm[fvDH].value_counts(normalize=True)\n H2v2.sort_index(inplace=True)\n aNZO.bar(H2v2.index, H2v2)",
"def uGl5(PGNe, jgBB):\n aevO = D5AW(PGNe, jgBB)\n hgl7 = aevO.groupby('scenario').mean()\n hgl7 = hgl7.dro... | [
"0.676462",
"0.6292282",
"0.61993587",
"0.6186465",
"0.6122647",
"0.60956675",
"0.6018654",
"0.59425193",
"0.5933935",
"0.59216",
"0.5913481",
"0.5895085",
"0.58546716",
"0.58474445",
"0.5820865",
"0.5773421",
"0.5749675",
"0.57356983",
"0.57346016",
"0.5716328",
"0.57097083"... | 0.74570465 | 0 |
``iobject_from_raw`` raises ``UnrecognizedVersion`` if it does not recognize the apiVersion in the given data. | def j3Fk(YKHO):
C3ST = ZmN4
YEnM = {u'apiVersion': u'invalid.example.txkube', u'kind': u'Service'}
YKHO.assertThat(lambda: C3ST.iobject_from_raw(YEnM), cR0t(ep3Q(YEnM[u'apiVersion'], YEnM))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GdH7(Emd4, WPdU):\n raise NotImplementedError",
"def XRxF(YKHO):\n C3ST = ZmN4\n YEnM = {u'apiVersion': u'v1', u'kind': u'SomethingFictional'}\n YKHO.assertThat(lambda: C3ST.iobject_from_raw(YEnM), cR0t(iVjD(u'v1', u'SomethingFictional', YEnM)))",
"def qWy_(YKHO, LUcQ):\n raise NotImplemente... | [
"0.60815626",
"0.60000724",
"0.5854513",
"0.5848489",
"0.582957",
"0.58141696",
"0.5735087",
"0.5697288",
"0.5586839",
"0.55694586",
"0.552273",
"0.5517264",
"0.54088587",
"0.5392219",
"0.53435266",
"0.5333686",
"0.5307778",
"0.5288321",
"0.5288321",
"0.5280398",
"0.52475226"... | 0.6623262 | 0 |
If the Kubernetesreported Swagger specification is missing the Status definitions, ``openapi_to_data_model`` returns a data model that defines them anyway. | def P4Wq(YKHO):
wxBM = ZmN4.spec.to_document()
wxBM[u'definitions'].clear()
C3ST = PTAG(wxBM)
C3ST.v1.Status
C3ST.v1.StatusCause
C3ST.v1.StatusDetails
C3ST.v1.ListMeta | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t5Y8(Emd4, *qIxc, **B2fa):\n zUod = B2fa.pop('_path_to_item', ())\n YKHO = super(dgQB, Emd4).__new__(Emd4)\n if 'value' in B2fa:\n BWXx = B2fa.pop('value')\n elif qIxc:\n qIxc = list(qIxc)\n BWXx = qIxc.pop(0)\n else:\n raise dZH6(\"value is required, but not passed i... | [
"0.5521009",
"0.549082",
"0.5462623",
"0.5450535",
"0.5436484",
"0.5368695",
"0.5368695",
"0.5361656",
"0.5249775",
"0.523182",
"0.519287",
"0.5133661",
"0.5110265",
"0.5106811",
"0.5093526",
"0.5087814",
"0.50760055",
"0.5059289",
"0.50505096",
"0.5017314",
"0.5013524",
"0... | 0.663029 | 0 |
Find k nearest neighbors. | def xDcj(YKHO, WKvO, G1Hx, AcYW='l2_square'):
gGCN = docK()
YKHO._search_k(WKvO, G1Hx, hbXx[AcYW], gGCN, YKHO.root)
vC9B = gGCN.items()
return (oyIN.array([WhY1[0] for WhY1 in vC9B]), oyIN.array([WhY1[1] for WhY1 in vC9B])) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def z1UU(nPrm, G1Hx):\n dUr3 = IyN9(nPrm)\n CLQW = oyIN.argpartition(dUr3, G1Hx, axis=1)[:, :G1Hx]\n return CLQW",
"def HZJI(YKHO, G1Hx):\n KCCf = oyIN.argsort(YKHO.distances, axis=1)\n YKHO.k_nearest = KCCf[:, :G1Hx]",
"def boAI(XP5J, LTIa, G1Hx=5):\n TaUL = oyIN.zeros(LTIa.shape[0])\n fo... | [
"0.8446473",
"0.8241776",
"0.82105094",
"0.80346495",
"0.80280834",
"0.8027314",
"0.801638",
"0.7985171",
"0.7985171",
"0.7985171",
"0.79683983",
"0.79157627",
"0.7885897",
"0.7840139",
"0.77978504",
"0.7785703",
"0.77338916",
"0.7730664",
"0.7698639",
"0.76820385",
"0.764581... | 0.0 | -1 |
(x,y) > value h in Hilbert space, r is the resolution of the Hilbert curve | def ha1J(YKHO, WKvO, LVAh, Mkmy):
ZHfW = (1 << Mkmy) - 1
a5mF = WKvO ^ LVAh
L7ld = ~WKvO & ZHfW
SFOf = ~LVAh & ZHfW
ycBG = L7ld ^ LVAh
T8d8, hQHm = (0, 0)
for G1Hx in range(Mkmy - 1):
hQHm = (hQHm & a5mF | (T8d8 ^ SFOf) & ycBG) >> 1
T8d8 = (T8d8 & (hQHm ^ L7ld) | ~T8d8 & (hQH... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CUvW(OnWS=5, B1Wx=1):\n return SquH('L', {'L': '-RF+LFL+FR-', 'R': '+LF-RFR-FL+'}, OnWS, CMyl, B1Wx)",
"def qKPs(WKvO):\n return oyIN.abs(Zxt2.signal.hilbert(WKvO))",
"def dYw6(rVnq, Mkmy, epBp, L749, aio5, kYGz):\n sWDs, l4HG, KMvS, J1b4, lWPh, tjUW, p6tM, dgWh, znmT, mJMt = lOrF(rVnq, Mkmy, epBp... | [
"0.6267875",
"0.62048995",
"0.6019271",
"0.5996153",
"0.58161175",
"0.5815634",
"0.57598215",
"0.57366514",
"0.5733446",
"0.57230777",
"0.57135075",
"0.57087535",
"0.5702273",
"0.5690014",
"0.56718946",
"0.56594586",
"0.56594586",
"0.56286544",
"0.561846",
"0.5615108",
"0.559... | 0.5365844 | 55 |
test whether a node should be a leaf node | def KppH(YKHO, ZbOB):
if ZbOB.n_depth == FD5x.maxHeight or ZbOB.n_budget <= 0 or ZbOB.n_count <= YKHO.param.minPartSize:
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def loae():\n return False",
"def loae() -> bool:\n return True",
"def loae(YKHO):\n return not YKHO.left and (not YKHO.right)",
"def loae(YKHO):\n return not YKHO.children",
"def loae(YKHO):\n return not YKHO.children",
"def loae(YKHO, Q6kx: object) -> bool:\n if Q6kx.left is None and ... | [
"0.8613672",
"0.8503231",
"0.8337639",
"0.8333246",
"0.8333246",
"0.82713497",
"0.824373",
"0.8172189",
"0.8172189",
"0.816953",
"0.8167887",
"0.81641227",
"0.80651236",
"0.80651236",
"0.80651236",
"0.8060202",
"0.8057344",
"0.805696",
"0.80566967",
"0.80468976",
"0.8044764",... | 0.0 | -1 |
Gets the names of the channels for a particular user | def nVHo(YKHO, BaHi):
try:
BdPz = YKHO.__db.smembers('{}{}'.format(BaHi, YKHO.USER_CHANNELS_POSTFIX))
except:
return (jGRS.HTTP_500_INTERNAL_SERVER_ERROR, 'something went wrong')
if BdPz is None:
return (jGRS.HTTP_404_NOT_FOUND, 'no data against this')
BdPz = list(BdPz)
BdPz ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mqBy(YKHO, CVgL):\n xMux = []\n for ODiI in YKHO.channels:\n for mWFP in YKHO.channels[ODiI].names:\n if mWFP == CVgL:\n xMux.append(ODiI)\n return xMux",
"def wf1i(YKHO, uJjO):\n pmON = {}\n nPrm = {}\n NArs = {}\n 'ID'\n pmON['user_id'] = uJjO\n Y... | [
"0.75490934",
"0.72324985",
"0.7122104",
"0.7084253",
"0.7054638",
"0.7025668",
"0.69762725",
"0.69586194",
"0.69553286",
"0.68795073",
"0.6841081",
"0.67730814",
"0.6694615",
"0.6656618",
"0.66439027",
"0.6642024",
"0.6602628",
"0.66015327",
"0.65942454",
"0.6568866",
"0.655... | 0.8173151 | 0 |
Find all experiment series under dirs. Generates a sequence of (name, [Experiment]) pairs for each series where name is some reasonable pathbased identifier and [Experiment] is a list of Experiment's in this series. | def dy_H(*AQSv):
Izpd = {}
T4Wy = []
for tlxW in AQSv:
for pGQh, iIh5, iumf in ZAda(tlxW, followlinks=True):
if 'info' in iumf or 'config' in iumf:
iIh5[:] = []
n_p6 = Hy7s.path.dirname(pGQh) + '/'
if n_p6 not in Izpd:
I... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def evlW(*AQSv):\n for Csk6 in AQSv:\n for pGQh, iIh5, iumf in ZAda(Csk6, followlinks=True):\n if 'info' in iumf or 'config' in iumf:\n iIh5[:] = []\n yield hOpO(pGQh)\n else:\n z7Te(iIh5)",
"def KLEY(mY9q, FYrf):\n\n def AOIg(pmON, ... | [
"0.70018834",
"0.67020124",
"0.65147054",
"0.6289643",
"0.6180877",
"0.599755",
"0.59833556",
"0.59587395",
"0.59564245",
"0.5878369",
"0.5838722",
"0.57183886",
"0.5699396",
"0.56592155",
"0.5656639",
"0.5601554",
"0.55816394",
"0.5563858",
"0.55638176",
"0.5509547",
"0.5487... | 0.7579654 | 0 |
If the given iterator produces just one unique value, return it. Otherwise, raise ValueError. | def VllR(WhY1):
cntZ = True
yvT9 = None
for Ty9i in WhY1:
if cntZ:
yvT9 = Ty9i
cntZ = False
elif yvT9 != Ty9i:
raise ValueError('More than one value')
if cntZ:
raise ValueError('Empty sequence')
return yvT9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xuug(OxJJ):\n oHE7 = iter(OxJJ)\n ZfUD = next(oHE7, RA38)\n if ZfUD is RA38:\n raise ValueError('empty iterator')\n exwG = next(oHE7, RA38)\n if exwG is RA38:\n return ZfUD\n else:\n raise ValueError('more than one element')",
"def B7Bw(WhY1):\n yv6U = _iMd(2, WhY1)\... | [
"0.66466665",
"0.65758073",
"0.6490999",
"0.64521587",
"0.6164239",
"0.60167813",
"0.5988465",
"0.5978836",
"0.59741175",
"0.59236306",
"0.5847729",
"0.58471364",
"0.5813494",
"0.5777338",
"0.5777338",
"0.5773574",
"0.5714643",
"0.56789595",
"0.5641411",
"0.564127",
"0.563253... | 0.6309306 | 4 |
Computes the precision for the specified values of k | def vjyh(hlel, pan_, hz5a=(1,)):
Gq8e = max(hz5a)
Ep8u = pan_.size(0)
bGrB, nvEb = hlel.topk(Gq8e, 1, True, True)
nvEb = nvEb.t()
gXXc = nvEb.eq(pan_.view(1, -1).expand_as(nvEb))
Ylbp = []
for G1Hx in hz5a:
R2Dg = gXXc[:G1Hx].view(-1).float().sum(0)
Ylbp.append(R2Dg.mul_(100.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rhd_(u5Ef, G1Hx):\n return len(u5Ef) / G1Hx",
"def sEak(Mkmy, G1Hx):\n assert G1Hx >= 1\n Mkmy = oyIN.asarray(Mkmy)[:G1Hx]\n return oyIN.mean(Mkmy)",
"def sEak(YKHO, G1Hx):\n fdMZ = YKHO.pred_rankings.rdd.map(lambda SjLr: (SjLr[2], SjLr[1]))\n Wbxz = rRQi(fdMZ)\n return Wbxz.precisionA... | [
"0.8003211",
"0.79748034",
"0.79735845",
"0.7941222",
"0.78642285",
"0.7803938",
"0.7707779",
"0.7621563",
"0.7593218",
"0.75612706",
"0.752028",
"0.7430132",
"0.74122673",
"0.7375894",
"0.7374447",
"0.7321427",
"0.7254542",
"0.7236769",
"0.72279894",
"0.7204469",
"0.7137302"... | 0.0 | -1 |
get_active returns the active value for a customer. This returns true or false based on if the customer is the active customer. Self is needed as an argument to access the customer object. | def D6B2(YKHO):
return YKHO.__active | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D6B2(YKHO):\n return YKHO.is_active",
"def ksfB(YKHO):\n return YKHO._is_active_value",
"def ksfB(YKHO):\n if not YKHO.pk:\n return False\n return YKHO.active",
"def CVrT(YKHO):\n return YKHO.is_customer",
"def ksfB(YKHO):\n WZHJ = False\n wAdl = YKHO.preds[mv1M.actkey]['val... | [
"0.67470974",
"0.6701743",
"0.6616625",
"0.6565927",
"0.6562071",
"0.65540147",
"0.65361774",
"0.65361774",
"0.6517146",
"0.6502302",
"0.64984107",
"0.6482948",
"0.6482948",
"0.6482948",
"0.6482948",
"0.6482948",
"0.64583355",
"0.6432865",
"0.64274794",
"0.6415255",
"0.641400... | 0.64468694 | 17 |
Show all votes for the current user | def NMoC(YKHO):
if _Kb1():
QXoP.abort(403, 'Admin has no votes')
return (ghvY(IxqR(Oa1e.current_user.votes), Wyiq), 200) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ne5b(YKHO, **B2fa):\n return YKHO._get_list('votes', **B2fa)",
"def ne5b(YKHO):\n return lFQG.objects.filter(poll=YKHO)",
"def D5t8(QePW):\n SFIC = QePW.user.voted_videos.order_by('-vote__id')\n return JZ0s(QePW, SFIC, {'hide_gallery_header': True})",
"def o5lT(aBG1):\n return aBG1.users_v... | [
"0.684081",
"0.6652012",
"0.65286833",
"0.6458125",
"0.63851774",
"0.6380461",
"0.6279249",
"0.6211674",
"0.6183885",
"0.61143243",
"0.6112176",
"0.6092978",
"0.6087766",
"0.6077481",
"0.60403645",
"0.603062",
"0.6019676",
"0.6013328",
"0.5956369",
"0.59415495",
"0.59033716",... | 0.68648875 | 0 |
Get the LibraryLocator for this library, as a string. | def QUBJ(YKHO):
return YKHO._library_key | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def B9mB(YKHO) -> str:\n xuBC = YKHO.library\n return xuBC",
"def nra6(YKHO):\n ZESn = IihV.from_string(YKHO._library_key)\n return str(ZESn.make_usage_key('library', 'library'))",
"def B9mB(YKHO) -> str:\n return YKHO.lib_name",
"def xuBC(YKHO) -> str:\n return qe4Y.get(YKHO, 'library')",
... | [
"0.7229991",
"0.69456565",
"0.69128156",
"0.6853657",
"0.6513054",
"0.641385",
"0.62760335",
"0.6177099",
"0.6091541",
"0.60453033",
"0.6017296",
"0.60027134",
"0.5973789",
"0.5930369",
"0.5900684",
"0.5839311",
"0.58064127",
"0.57734406",
"0.5749638",
"0.56971693",
"0.565853... | 0.56774944 | 20 |
Gabor filtering Input a fingerprint image (grayscale) Input an orientation field (from OfDetector) Input a mask image (regionofinterest) Output a filtered image | def filter(YKHO, lLvz, lSki, SpMT):
f8a3 = oyIN.where(SpMT == 1.0, MQWK.findFrequency(lLvz, lSki), -1.0)
Aofo = oyIN.empty(lLvz.shape)
H2v2, TVTK = lLvz.shape
for LVAh in range(0, H2v2 - YKHO.blockSize, YKHO.blockSize):
for WKvO in range(0, TVTK - YKHO.blockSize, YKHO.blockSize):
C3a... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dIK2(f4IJ, CWXo):\n H_5t = XC5k.imread('assets/sun_1.png', -1)\n BvUT = H_5t[:, :, 3]\n Gzwh = XC5k.bitwise_not(BvUT)\n H_5t = H_5t[:, :, 0:3]\n BpUK, aL0F = H_5t.shape[:2]\n ugeP = abs(CWXo.part(16).x - CWXo.part(1).x)\n U5_U = int(ugeP * BpUK / aL0F)\n lCSp = XC5k.resize(H_5t, (ugeP, ... | [
"0.69836116",
"0.6616013",
"0.6592379",
"0.65619403",
"0.651102",
"0.6302779",
"0.6200576",
"0.61958146",
"0.61836535",
"0.6093147",
"0.6089875",
"0.6078673",
"0.6060127",
"0.60498995",
"0.60361505",
"0.60337144",
"0.6025797",
"0.60214615",
"0.60021406",
"0.6000008",
"0.59971... | 0.57756865 | 42 |
returns true if the collection is empty, false if not | def FBfn(YKHO):
return len(YKHO) == 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FBfn(YKHO) -> bool:\n return len(YKHO.collection) == 0",
"def FBfn(YKHO) -> bool:\n return YKHO._collection.count() == 0",
"def FBfn(YKHO):\n try:\n next(YKHO.documents)\n return False\n except StopIteration:\n return True",
"def FBfn(YKHO):\n for bGrB in YKHO:\n ... | [
"0.9051474",
"0.88346773",
"0.81722",
"0.8141236",
"0.8121947",
"0.8121947",
"0.8121947",
"0.8121947",
"0.8116967",
"0.8113399",
"0.8113399",
"0.8113399",
"0.8113399",
"0.81119525",
"0.80976737",
"0.8086081",
"0.8068898",
"0.80677927",
"0.80677927",
"0.80638856",
"0.80572027"... | 0.79973596 | 35 |
Delete a playlist by ID. | def nTP3(YKHO, JqP_: str):
cf3u = YKHO.session.playlist(JqP_)
cf3u.delete() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nTP3(YKHO, hbFX):\n YKHO.client.delete_playlist(hbFX)\n YKHO.refresh()",
"def PTpj(YKHO, id):\n from esify import session\n if session.has_key('logged_in') != True:\n return ('Forbidden accesss', 403)\n if not gOq1(id, session['X-Auth-Token']):\n return ('Forbidden access', 403)\... | [
"0.89737815",
"0.8524026",
"0.8271979",
"0.8160256",
"0.80351675",
"0.78433436",
"0.76876837",
"0.7669385",
"0.7622135",
"0.7622135",
"0.7544886",
"0.7532942",
"0.75066465",
"0.7498455",
"0.7498455",
"0.7481618",
"0.73949075",
"0.73367345",
"0.7327399",
"0.73226064",
"0.73182... | 0.8539011 | 1 |
Remove a track from a playlist. Specify either the ``track_id`` or the ``index``. | def Ld9P(YKHO, JqP_: str, x9qt: Optional[Union[str, int]]=None, d6pt: Optional[int]=None):
assert not (x9qt is None and d6pt is None), 'Please specify either track_id or index'
cf3u = YKHO.session.playlist(JqP_)
if d6pt:
cf3u.remove_by_index(d6pt)
if x9qt:
cf3u.remove_by_id(x9qt) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def remove(YKHO, x9qt: str) -> None:\n await YKHO._playlist.remove(x9qt)",
"def wjnh(YKHO, A6b2, NvAR):\n if NvAR['uri'] == BJsk.SAVED_TRACKS_CONTEXT_URI:\n vexM = {'ids': [A6b2['id']]}\n bD7m = 'me/tracks'\n YKHO.delete_api_v1(bD7m, data=vexM)\n else:\n vexM = {'uris':... | [
"0.7757183",
"0.7487838",
"0.74856836",
"0.72458524",
"0.72307646",
"0.7095741",
"0.69984424",
"0.69634104",
"0.69385666",
"0.6935787",
"0.68454397",
"0.67895013",
"0.678586",
"0.6774875",
"0.6758719",
"0.66666955",
"0.6655055",
"0.6655055",
"0.65157115",
"0.65055114",
"0.647... | 0.90730435 | 0 |
Add an album to the user's collection. | def yWHF(YKHO, l1sc: Union[str, int]):
YKHO.user.favorites.add_album(l1sc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yWHF(YKHO, wphz):\n YKHO.albums.append(wphz)",
"def yWHF(YKHO, wphz):\n YKHO.albums.append(wphz)",
"def yWHF(YKHO, wphz):\n YKHO.albums.append(wphz)",
"def yWHF(YKHO, wphz: Album):\n YKHO.albums.append(wphz)",
"def yWHF(YKHO, wphz):\n NArs = YKHO._get_params()\n NArs['artist'] = wphz.... | [
"0.8082938",
"0.8082938",
"0.79949176",
"0.7897544",
"0.76142037",
"0.7351131",
"0.7212263",
"0.70995563",
"0.69927555",
"0.6574815",
"0.64543486",
"0.6425375",
"0.6337918",
"0.62741935",
"0.6238062",
"0.6223143",
"0.621328",
"0.62063473",
"0.61311007",
"0.60151136",
"0.59842... | 0.7504338 | 5 |
Retrieves the properlycapitalized name and the latest version of a package from NuGet. | def XRyk(mWFP: str) -> AzJI[str, str]:
pu1N = zGKt.http_client()
cDoZ = RuntimeError(f'The NuGet API is not responding')
lH85 = pu1N.get('https://api.nuget.org/v3/index.json', raise_for_status=False)
if not lH85.ok:
raise cDoZ
QkoW = qQXR.loads(lH85.text)
E69j = next((WKvO['@id'] for WKv... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oJou(hxGQ):\n bD7m = 'https://pypi.python.org/pypi/%s/json' % (hxGQ,)\n L6MF = []\n try:\n geh0 = uRlK.request.urlopen(uRlK.request.Request(bD7m), timeout=1)\n nPrm = qQXR.load(geh0)\n L6MF = list(nPrm['releases'].keys())\n L6MF.sort(key=BvuR)\n return '>={}'.format(... | [
"0.71668094",
"0.68613905",
"0.68523866",
"0.68377525",
"0.6758984",
"0.66909736",
"0.66329855",
"0.66175276",
"0.6612517",
"0.6480816",
"0.6447579",
"0.6439962",
"0.6364757",
"0.63152677",
"0.63036454",
"0.63018304",
"0.62974566",
"0.6288689",
"0.62772876",
"0.6259581",
"0.6... | 0.73740923 | 0 |
Retrieves the properlycapitalized name and the latest compatible version of a package from PyPI. If the version is already given, this method checks whether that version is compatible with the Docker images. | def OGXa(mWFP: str, DpZH: Optional[str]) -> AzJI[str, str]:
geh0 = zGKt.http_client().get(f'https://pypi.org/pypi/{mWFP}/json', raise_for_status=False)
if geh0.status_code == 404:
raise RuntimeError(f'PyPI does not have a package named {mWFP}')
if not geh0.ok:
raise RuntimeError(f'The PyPI A... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def He7_(DpZH='latest'):\n import requests\n try:\n bD7m = TDhU(oeFr, 'api/package/{}/'.format(xdMn))\n Mkmy = requests.get(bD7m)\n nPrm = Mkmy.json()\n except (requests.exceptions.Timeout, requests.exceptions.ConnectionError):\n raise k8wH.ClickException(JgfS.Error.update_serv... | [
"0.71090126",
"0.6710685",
"0.66848195",
"0.66183275",
"0.65467834",
"0.65084213",
"0.6489456",
"0.64068043",
"0.6379251",
"0.6364502",
"0.6288276",
"0.62570095",
"0.62028503",
"0.6162688",
"0.6159812",
"0.6159186",
"0.6158286",
"0.61509067",
"0.6132489",
"0.6122167",
"0.6115... | 0.75624585 | 0 |
Constructor of Message Part object | def FIMM(YKHO, TBsA, pKmM, tZ2K=None):
YKHO.body = TBsA
YKHO.mime_type = pKmM
YKHO.encoding = tZ2K | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, Ol8d):\n YKHO.message = Ol8d\n YKHO.i = 0\n YKHO.size = HwRy.getsizeof(Ol8d)\n YKHO.body_partitions = int(YKHO.size / VHC4)\n if YKHO.body_partitions == 0:\n YKHO.body_partitions = 1\n YKHO.partitions = TI0e.wrap(YKHO.message, VHC4)",
"def jfL_(YKHO):\n raise NotImpleme... | [
"0.7125748",
"0.70458555",
"0.68720204",
"0.68593866",
"0.68593866",
"0.68593866",
"0.68593866",
"0.68593866",
"0.68593866",
"0.68593866",
"0.68593866",
"0.68593866",
"0.68593866",
"0.68593866",
"0.68593866",
"0.68336093",
"0.68336093",
"0.6762374",
"0.67526025",
"0.67526025",
... | 0.0 | -1 |
Test that page raises a PageError for a nonexistant page. | def _gih(YKHO):
Milt = lambda: wwDy.page(wiki='harrypotter', title='purpleberry')
YKHO.assertRaises(wwDy.error.PageError, Milt) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eh2f(YKHO, mWFP):\n with YKHO.assertRaises(ValueError):\n StiA.Page(page_path=GkAb(mWFP))",
"def zNCi(YKHO):\n geh0 = YKHO.client.get('/does-not-exist/')\n YKHO.assertEqual(geh0.status_code, 404)",
"def nUow(YKHO):\n A97Q = YKHO.get('/run_view/0/fake_page')\n WBPg = A97Q.cssselect('#m... | [
"0.76775503",
"0.76507413",
"0.7599929",
"0.75865996",
"0.7458167",
"0.7421638",
"0.7392619",
"0.7378685",
"0.7264657",
"0.7234662",
"0.71245813",
"0.71201986",
"0.7006556",
"0.6991751",
"0.69243217",
"0.6880248",
"0.68669546",
"0.6858761",
"0.6833755",
"0.6818058",
"0.681720... | 0.7548083 | 4 |
Split a sparse matrix from its triplets representation into two (Also represented as triplets). | def kAFh(hG2z: Triplets, kPGE: Union[int, List[int]], jDK_: int=0) -> x1iM[FSWM]:
if isinstance(kPGE, int):
kPGE = [kPGE]
elif isinstance(kPGE, list):
kPGE.sort()
else:
raise Exception('split_index must be an integer or a list of integers')
if jDK_ == 0:
oMB_ = oyIN.array... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lpha(SppC, F_cn, fo57, DJAH):\n fVVZ = fo57\n for YRbF in range(len(F_cn)):\n qyqD = DJAH\n for r845 in range(len(F_cn)):\n F_cn[YRbF][r845] = SppC[fVVZ][qyqD]\n qyqD += 1\n fVVZ += 1",
"def wzQw(YKHO):\n YKHO.a[1, 1] = 11\n YKHO.a[2, 2] = 22\n YKHO.a... | [
"0.6025456",
"0.57066095",
"0.57066095",
"0.566465",
"0.5561685",
"0.5527413",
"0.5433137",
"0.5391143",
"0.53718525",
"0.53045523",
"0.52925044",
"0.5279248",
"0.5268139",
"0.52672875",
"0.5262478",
"0.5261349",
"0.52546483",
"0.52433854",
"0.5225371",
"0.522435",
"0.5221628... | 0.0 | -1 |
Reshape a flat list of values into the correct blockshape for the given spec. | def gE6g(Cqok: MatmulSpec, hkxX: List[float]) -> oyIN.ndarray:
uqVt = len(hkxX)
if Cqok.block_size == 1 or len(oyIN.array(hkxX).shape) != 1:
if uqVt > Cqok.max_non_zero_blocks:
raise ValueError(f'Number of values {uqVt} exceeds max {Cqok.max_non_zero_blocks}')
return hkxX
UqER = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kfd2(Cqok: MatmulSpec, ibCp: np.ndarray) -> oyIN.ndarray:\n if Cqok.block_size == 1:\n return ibCp\n if hasattr(ibCp, 'shape'):\n if len(ibCp.shape) != 3 or ibCp.shape[1] != Cqok.block_size:\n raise ValueError(f'Invalid block-shape: {ibCp.shape}')\n return oyIN.transpose(ibCp,... | [
"0.7258782",
"0.6196362",
"0.61843646",
"0.61835927",
"0.6086083",
"0.6043686",
"0.58585155",
"0.58294636",
"0.58239645",
"0.58239645",
"0.58239645",
"0.57973176",
"0.5792381",
"0.57908875",
"0.5745775",
"0.5730855",
"0.57202077",
"0.5678269",
"0.56398267",
"0.5614422",
"0.55... | 0.7365305 | 0 |
Returns the tensor containing the embedded sequence using the variables from an existing sparse fully connected layer. | def Mual(Cqok: MatmulSpec, _0VL: tf.Tensor, _a1M: dict, bDyT: tf.Variable, iJZ0: tf.Variable, nIRt: float) -> ZylS.Tensor:
Cj7G = _0VL.get_shape()[0]
M7eq = ZylS.TensorShape([Cj7G, Cqok.input_size])
o4Jx = {'output_types': [Cqok.data_type], 'output_shapes': [M7eq]}
BHLR = keND(Cqok, _a1M, nIRt)
g4y1... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IP7V(YKHO):\n sbx9 = ZylS.constant(0.0, dtype=ZylS.float32, shape=(1, YKHO.d))\n KCHu = YKHO.seed - 1\n Q1PJ = ZylS.Variable(ZylS.random_normal((YKHO.word_dict.num_words() + 1, YKHO.d), stddev=OYZ_, seed=KCHu))\n YKHO.U = ZylS.concat([sbx9, Q1PJ], axis=0, name='embedding_matrix')\n return YKHO.U... | [
"0.6024891",
"0.5918247",
"0.58890873",
"0.58801854",
"0.58455634",
"0.57107574",
"0.5697051",
"0.56890965",
"0.5688767",
"0.5682688",
"0.56797045",
"0.56658787",
"0.5665261",
"0.56647813",
"0.56621337",
"0.56446636",
"0.563512",
"0.56200564",
"0.5589148",
"0.5589148",
"0.558... | 0.0 | -1 |
Returns the tensor output of the dense sparse matrix multiplication. | def qGYW(Cqok: MatmulSpec, yLHq: tf.Tensor, jec8: Union[bool, tf.Tensor], _a1M: dict, bDyT: tf.Variable, iJZ0: tf.Variable, hxDM: tf.Variable, WjXN: dict={}) -> ZylS.Tensor:
M7eq = ZylS.TensorShape([Cqok.batch_size, Cqok.output_size])
o4Jx = {'output_types': [Cqok.data_type], 'output_shapes': [M7eq]}
BHLR =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tVoJ(EsO2, Fg_i, **B2fa):\n ooTa = P9ZJ(EsO2)[:-2]\n EsO2 = ZylS.sparse.reshape(EsO2, ZylS.concat([[-1], P9ZJ(EsO2)[-2:]], axis=0))\n Fg_i = ZylS.reshape(Fg_i, ZylS.concat([[-1], P9ZJ(Fg_i)[-1:]], axis=0))\n yvT9 = ZylS.sparse.sparse_dense_matmul(pOY7(EsO2), Fg_i, **B2fa)\n return ZylS.reshape(y... | [
"0.6989508",
"0.6797868",
"0.67767286",
"0.67664856",
"0.67335415",
"0.67160714",
"0.66540015",
"0.6554164",
"0.64730096",
"0.64730096",
"0.64730096",
"0.64730096",
"0.64730096",
"0.64730096",
"0.64475375",
"0.64445174",
"0.63919383",
"0.63425595",
"0.6281959",
"0.625679",
"0... | 0.55213195 | 100 |
Returns the corresponding mask for the given sparse triplets. | def jN3p(Cqok: MatmulSpec, Pfcj: List[int], X0Yi: List[int], hkxX: List[float]) -> oyIN.ndarray:
ZHfW = oyIN.zeros(shape=[Cqok.input_size, Cqok.output_size])
if Cqok.block_size == 1:
ZHfW[Pfcj, X0Yi] = 1
return ZHfW
XkN1 = oyIN.ones(shape=[Cqok.block_size, Cqok.block_size])
for YRbF in r... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k22I(Crrw):\n DHuu = ht2j.eye(Crrw.shape[0], dtype=ht2j.bool)\n SQns = ~DHuu\n vvhS = SQns.unsqueeze(2)\n ARrw = SQns.unsqueeze(1)\n qEiM = SQns.unsqueeze(0)\n Lw0B = vvhS & ARrw & qEiM\n YgCz = Crrw.unsqueeze(0) == Crrw.unsqueeze(1)\n NWd7 = YgCz.unsqueeze(2)\n HTSP = ~YgCz.unsqueez... | [
"0.6864351",
"0.68391573",
"0.676612",
"0.6728094",
"0.647973",
"0.64505476",
"0.6450079",
"0.6200011",
"0.6196589",
"0.6172421",
"0.6165823",
"0.6148193",
"0.61305696",
"0.6121956",
"0.6085614",
"0.60077304",
"0.5991357",
"0.5985606",
"0.5960689",
"0.5959074",
"0.58906317",
... | 0.6311697 | 7 |
Remove outliers of a dataframe 'dt' using zscore for specified column 'col' By default, zscore thresholds are +/ 3 for a normal distribution | def HonD(JRYC, fvDH, gwAu=3):
N3qh = eQSh.zscore(JRYC[fvDH])
TGbG = oyIN.abs(N3qh)
hlel = JRYC[TGbG < gwAu]
return hlel | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Cv7H(YKHO, jQ3Z: pd.DataFrame) -> rLdf.DataFrame:\n return jQ3Z[(oyIN.abs(eQSh.zscore(jQ3Z)) < YKHO.nt).any(axis=1)]",
"def poc_(bOBl, fvDH):\n JBMS = oyIN.round(bOBl[fvDH].mean(), 3)\n M1Jx = oyIN.round(bOBl[fvDH].std(), 3)\n AWN4 = bOBl[abs(bOBl[fvDH] - JBMS) > 3 * M1Jx]\n return AWN4",
"d... | [
"0.74056214",
"0.7198695",
"0.71101224",
"0.71089697",
"0.69505036",
"0.69319695",
"0.6671494",
"0.65923214",
"0.65860426",
"0.657731",
"0.65201235",
"0.6471873",
"0.640932",
"0.63707054",
"0.6344508",
"0.6167796",
"0.61579955",
"0.6150919",
"0.61178416",
"0.61008453",
"0.609... | 0.84304196 | 0 |
Remove outliers of a dataframe 'dt' based on IQR specified column 'col' | def I0OJ(JRYC, fvDH):
hbUd = JRYC[fvDH].quantile(0.25)
iv7Q = JRYC[fvDH].quantile(0.75)
AUbx = iv7Q - hbUd
hlel = JRYC[(JRYC[fvDH] > hbUd - 1.5 * AUbx) & (JRYC[fvDH] < iv7Q + 1.5 * AUbx)]
return hlel | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fdu6(lc23, AAHb):\n hbUd = lc23[AAHb].quantile(0.25)\n iv7Q = lc23[AAHb].quantile(0.75)\n AUbx = iv7Q - hbUd\n NdfI = hbUd - 1.5 * AUbx\n xRz4 = iv7Q + 1.5 * AUbx\n return lc23.loc[(lc23[AAHb] > NdfI) & (lc23[AAHb] < xRz4)]",
"def fdu6(lc23, AAHb):\n hbUd = lc23[AAHb].quantile(0.25)\n ... | [
"0.77691627",
"0.7724055",
"0.76863974",
"0.7496079",
"0.7431595",
"0.7323622",
"0.73189837",
"0.73088104",
"0.729553",
"0.72394645",
"0.7113084",
"0.70140237",
"0.69482964",
"0.67812526",
"0.67678916",
"0.66807824",
"0.6641746",
"0.6612877",
"0.64616346",
"0.64582044",
"0.64... | 0.84742844 | 0 |
Remove empty white spaces " ", and "." character, replace "" and "/" with "_" in column names of a dataframe "df" | def fKUY(jQ3Z):
jQ3Z.columns = [WKvO.replace(' ', '').replace('.', '').replace('-', '_').replace('/', '_') for WKvO in jQ3Z.columns] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IJqp(jQ3Z):\n jQ3Z.columns = [ZbWC.sub('[\\\\. \\\\(\\\\)\\\\/]+', '_', LihS) for LihS in jQ3Z.columns]\n jQ3Z.columns = [ZbWC.sub('-', '_', LihS) for LihS in jQ3Z.columns]\n jQ3Z.columns = [ZbWC.sub(\"'\", '', LihS) for LihS in jQ3Z.columns]\n jQ3Z.columns = [ZbWC.sub(',', '_', LihS) for LihS in j... | [
"0.7760538",
"0.7133422",
"0.7119763",
"0.7076963",
"0.70174307",
"0.68669534",
"0.68229353",
"0.6807995",
"0.67986363",
"0.6756994",
"0.67136186",
"0.66418856",
"0.662088",
"0.6544711",
"0.651104",
"0.6377746",
"0.635947",
"0.632286",
"0.62666696",
"0.6263362",
"0.6259424",
... | 0.8048948 | 0 |
Readonly property to indicate if the transport is connected or not. | def gela(YKHO):
return YKHO._nucleus.connected | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gela(YKHO):\n return YKHO._transport is not None",
"def WGC8(YKHO):\n return YKHO._transport_open.is_set()",
"def Z48N(YKHO):\n return YKHO.protocol is not None",
"def jGRS(YKHO):\n return YKHO.is_connected",
"def qY0R(YKHO):\n return YKHO._connected",
"def qY0R(YKHO):\n return YKHO... | [
"0.79120696",
"0.7700706",
"0.7657053",
"0.76246715",
"0.75896513",
"0.75372386",
"0.7518639",
"0.7386627",
"0.73722655",
"0.73722655",
"0.73721373",
"0.7365243",
"0.7365243",
"0.7365243",
"0.7363134",
"0.7363134",
"0.7363134",
"0.73598385",
"0.73598385",
"0.73598385",
"0.735... | 0.0 | -1 |
Returns the age of the worker | def ZJe_(YKHO):
return f'{YKHO.first_name} is {qcWV.datetime.now().year - YKHO.birth_year} years old' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZJe_(YKHO) -> int:\n return (qcWV.now() - YKHO.date()).seconds // 1000",
"def ZJe_(YKHO) -> float:\n return ITS7.time() - YKHO.determination_time",
"def ZJe_(YKHO):\n return ITS7.time() - YKHO.started",
"def ZJe_(YKHO):\n return YKHO.get_relative_age(qcWV.date.today())",
"def ZJe_(YKHO):\n ... | [
"0.7761303",
"0.7536343",
"0.7526765",
"0.7497233",
"0.746483",
"0.74458593",
"0.7444642",
"0.7372231",
"0.73550147",
"0.7340969",
"0.73151433",
"0.73151433",
"0.72845584",
"0.72794",
"0.72782505",
"0.7260026",
"0.7259962",
"0.72572345",
"0.72495145",
"0.72447276",
"0.7240097... | 0.6732882 | 53 |
Converts a dictionary with JSON keys into a normal dict. | def ct7a(bk9O):
bo34 = fZx2()
for H5ew, BWXx in bk9O.items():
if isinstance(BWXx, dict):
if BWXx.get('$oid', None) is not None:
bk9O[H5ew] = aA6B(BWXx['$oid'])
elif BWXx.get('$date', None) is not None:
bk9O[H5ew] = qcWV.fromtimestamp(BWXx['$date'] ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def guY0(Csk6: Dict[str, Any]) -> cuzp[str, ImMB]:\n for G1Hx, Ty9i in Csk6.items():\n if isinstance(Ty9i, dict):\n Csk6[G1Hx] = guY0(dict(Ty9i))\n else:\n Csk6[G1Hx] = WUlk(Ty9i)\n return Csk6",
"def MNRr(iNRS):\n return qQXR.loads(qQXR.dumps(iNRS))",
"def WdMl(YGF... | [
"0.73035276",
"0.69609207",
"0.6800354",
"0.6720863",
"0.67131126",
"0.66268766",
"0.660256",
"0.6599898",
"0.65877414",
"0.65623087",
"0.65448874",
"0.65182716",
"0.64961225",
"0.64918005",
"0.64783776",
"0.64690745",
"0.6459746",
"0.6425429",
"0.64095366",
"0.63926506",
"0.... | 0.6944216 | 2 |
Name of the account where the application volume group belong to. Changing this forces a new Application Volume Group to be created and data will be lost. | def n8Ek(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'account_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W__j(YKHO):\n return YKHO.__accountName__",
"def n8Ek(YKHO) -> str:\n return qe4Y.get(YKHO, 'account_name')",
"def n8Ek(YKHO) -> str:\n return qe4Y.get(YKHO, 'account_name')",
"def IXKo(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_name')",
"def IXKo(YKHO):\n return YKHO._config['group']"... | [
"0.66852903",
"0.66398704",
"0.66398704",
"0.6584501",
"0.6536352",
"0.64344084",
"0.6426733",
"0.6386852",
"0.63859314",
"0.6363909",
"0.63107353",
"0.6310425",
"0.6310425",
"0.6265615",
"0.6265615",
"0.6265615",
"0.6265615",
"0.6263834",
"0.625211",
"0.6197403",
"0.61915916... | 0.59053135 | 55 |
The name of the Resource Group where the Application Volume Group should exist. Changing this forces a new Application Volume Group to be created and data will be lost. | def TRLE(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'resource_group_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TRLE(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group_name')",
"def TRLE(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group_name')",
"def TRLE(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'resource_group_name')",
"def TRLE(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(Y... | [
"0.7213262",
"0.7213262",
"0.7037669",
"0.7037669",
"0.7037669",
"0.7037669",
"0.7037669",
"0.7037669",
"0.7037669",
"0.7037669",
"0.7037669",
"0.7037669",
"0.7037669",
"0.7037669",
"0.7037669",
"0.7037669",
"0.7037669",
"0.7037669",
"0.7037669",
"0.7037669",
"0.7037669",
"... | 0.69030106 | 40 |
The name which should be used for this Application Volume Group. Changing this forces a new Application Volume Group to be created and data will be lost. | def mWFP(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO):\n return YKHO._group.name",
"def mWFP(YKHO):\n return YKHO._inventory_group.get_name()",
"def IXKo(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_name')",
"def mWFP(YKHO, mWFP):\n return YKHO._group._name",
"def AxQu(YKHO):\n return YKHO.groupName",
"def mWFP(YKHO):\n retu... | [
"0.7494237",
"0.74744326",
"0.7473315",
"0.74077857",
"0.72400606",
"0.7189717",
"0.7114022",
"0.71098137",
"0.70917934",
"0.70813435",
"0.6981624",
"0.69626653",
"0.6961419",
"0.6959449",
"0.690745",
"0.6890268",
"0.6879602",
"0.6836083",
"0.68344736",
"0.6821513",
"0.679022... | 0.0 | -1 |
Name of the account where the application volume group belong to. Changing this forces a new Application Volume Group to be created and data will be lost. | def n8Ek(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'account_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W__j(YKHO):\n return YKHO.__accountName__",
"def n8Ek(YKHO) -> str:\n return qe4Y.get(YKHO, 'account_name')",
"def n8Ek(YKHO) -> str:\n return qe4Y.get(YKHO, 'account_name')",
"def IXKo(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_name')",
"def IXKo(YKHO):\n return YKHO._config['group']"... | [
"0.66852903",
"0.66398704",
"0.66398704",
"0.6584501",
"0.6536352",
"0.64344084",
"0.6426733",
"0.6386852",
"0.63859314",
"0.6363909",
"0.63107353",
"0.6310425",
"0.6310425",
"0.6265615",
"0.6265615",
"0.6265615",
"0.6265615",
"0.6263834",
"0.625211",
"0.6197403",
"0.61915916... | 0.59349734 | 44 |
The name which should be used for this Application Volume Group. Changing this forces a new Application Volume Group to be created and data will be lost. | def mWFP(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO):\n return YKHO._group.name",
"def mWFP(YKHO):\n return YKHO._inventory_group.get_name()",
"def IXKo(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_name')",
"def mWFP(YKHO, mWFP):\n return YKHO._group._name",
"def AxQu(YKHO):\n return YKHO.groupName",
"def mWFP(YKHO):\n retu... | [
"0.74934024",
"0.7473858",
"0.7472584",
"0.74070936",
"0.7239487",
"0.7189864",
"0.71145445",
"0.71086824",
"0.70903414",
"0.7081183",
"0.69819367",
"0.6962441",
"0.6960391",
"0.69592184",
"0.6906237",
"0.6889963",
"0.68793225",
"0.6835302",
"0.6833331",
"0.68210036",
"0.6791... | 0.0 | -1 |
The name of the Resource Group where the Application Volume Group should exist. Changing this forces a new Application Volume Group to be created and data will be lost. | def TRLE(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'resource_group_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TRLE(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group_name')",
"def TRLE(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group_name')",
"def TRLE(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'resource_group_name')",
"def TRLE(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'resour... | [
"0.72124076",
"0.72124076",
"0.69015443",
"0.69015443",
"0.69015443",
"0.69015443",
"0.69015443",
"0.69015443",
"0.69015443",
"0.69015443",
"0.69015443",
"0.69015443",
"0.69015443",
"0.69015443",
"0.69015443",
"0.69015443",
"0.69015443",
"0.69015443",
"0.69015443",
"0.69015443"... | 0.70362514 | 4 |
Name of the account where the application volume group belong to. Changing this forces a new Application Volume Group to be created and data will be lost. | def n8Ek(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'account_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W__j(YKHO):\n return YKHO.__accountName__",
"def n8Ek(YKHO) -> str:\n return qe4Y.get(YKHO, 'account_name')",
"def n8Ek(YKHO) -> str:\n return qe4Y.get(YKHO, 'account_name')",
"def IXKo(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_name')",
"def IXKo(YKHO):\n return YKHO._config['group']"... | [
"0.6687585",
"0.66425735",
"0.66425735",
"0.65881634",
"0.6539239",
"0.6436279",
"0.64296275",
"0.6390672",
"0.63898057",
"0.6366573",
"0.6314058",
"0.6314058",
"0.6312121",
"0.626765",
"0.62556016",
"0.6199694",
"0.6195277",
"0.61717033",
"0.615533",
"0.61505514",
"0.6132833... | 0.62689465 | 13 |
The name which should be used for this Application Volume Group. Changing this forces a new Application Volume Group to be created and data will be lost. | def mWFP(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO):\n return YKHO._group.name",
"def mWFP(YKHO):\n return YKHO._inventory_group.get_name()",
"def IXKo(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_name')",
"def mWFP(YKHO, mWFP):\n return YKHO._group._name",
"def AxQu(YKHO):\n return YKHO.groupName",
"def mWFP(YKHO):\n retu... | [
"0.7494237",
"0.74744326",
"0.7473315",
"0.74077857",
"0.72400606",
"0.7189717",
"0.7114022",
"0.71098137",
"0.70917934",
"0.70813435",
"0.6981624",
"0.69626653",
"0.6961419",
"0.6959449",
"0.690745",
"0.6890268",
"0.6879602",
"0.6836083",
"0.68344736",
"0.6821513",
"0.679022... | 0.0 | -1 |
The name of the Resource Group where the Application Volume Group should exist. Changing this forces a new Application Volume Group to be created and data will be lost. | def TRLE(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'resource_group_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TRLE(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group_name')",
"def TRLE(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group_name')",
"def TRLE(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'resource_group_name')",
"def TRLE(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(Y... | [
"0.7213262",
"0.7213262",
"0.7037669",
"0.7037669",
"0.7037669",
"0.7037669",
"0.7037669",
"0.7037669",
"0.7037669",
"0.7037669",
"0.7037669",
"0.7037669",
"0.7037669",
"0.7037669",
"0.7037669",
"0.7037669",
"0.7037669",
"0.7037669",
"0.7037669",
"0.7037669",
"0.7037669",
"... | 0.0 | -1 |
Plot an image representation of voxel intensities across time. This figure is also known as a "grayplot" or "Power plot". | def q1ib(VXjJ, kWt4=None, AzCm=None, TbLj=None, aVqM=True, UXEK=None, JI1i=None, MPlV=None, MynD=None, n4wC=None, leAC=None, iMGt='gray', axEY=QrM1.cm.gist_ncar, hWT_=True):
VXjJ = siXk.check_niimg_4d(VXjJ, dtype='auto')
TbLj = TbLj or VXjJ.header.get_zooms()[-1]
IZnO = VXjJ.shape[-1]
if kWt4 is None:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vynr(eL5z):\n QrM1.imshow(eL5z)\n QrM1.show()",
"def dxoI(LNo8):\n QrM1.imshow(LNo8, cmap='gray')\n QrM1.show()",
"def hOyF(VXjJ):\n QrM1.figure(figsize=(20, 20))\n QrM1.imshow(VXjJ, cmap='gray', vmin=0, vmax=255)\n QrM1.show()",
"def _vmV(Y0SJ, iMGt='gray'):\n Zqta = zgZW(Y0SJ)\n... | [
"0.7272991",
"0.70769393",
"0.6925292",
"0.68867075",
"0.6815195",
"0.6789751",
"0.6743212",
"0.6721673",
"0.6703662",
"0.66787046",
"0.66694015",
"0.66694015",
"0.66694015",
"0.6644593",
"0.6642021",
"0.66355765",
"0.6625752",
"0.6618484",
"0.6612791",
"0.6612186",
"0.656714... | 0.0 | -1 |