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 |
|---|---|---|---|---|---|---|
The license key that will be applied to the host. The license key is expected to be present in vSphere. | def license(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'license') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def license(YKHO) -> str:\n return qe4Y.get(YKHO, 'license')",
"def yXgY(aHkb):\n return TuoA.get_license_key(aHkb)",
"def mexE(YKHO):\n return YKHO.license['ROBOT_KEY']",
"def kaex(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'license_id')",
"def license(YKHO) -> qe4Y.Output[str]:\n r... | [
"0.7159125",
"0.71571594",
"0.71174043",
"0.69258106",
"0.68849075",
"0.68752533",
"0.6800326",
"0.6779676",
"0.67340195",
"0.6717165",
"0.6685561",
"0.6685561",
"0.6585676",
"0.6585676",
"0.6572272",
"0.6530378",
"0.6489817",
"0.6455295",
"0.6438388",
"0.64062434",
"0.637709... | 0.6660633 | 13 |
The license key that will be applied to the host. The license key is expected to be present in vSphere. | def license(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'license') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def license(YKHO) -> str:\n return qe4Y.get(YKHO, 'license')",
"def yXgY(aHkb):\n return TuoA.get_license_key(aHkb)",
"def mexE(YKHO):\n return YKHO.license['ROBOT_KEY']",
"def kaex(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'license_id')",
"def license(YKHO) -> qe4Y.Output[str]:\n r... | [
"0.7159125",
"0.71571594",
"0.71174043",
"0.69258106",
"0.68849075",
"0.68752533",
"0.6800326",
"0.6779676",
"0.67340195",
"0.6717165",
"0.6685561",
"0.6685561",
"0.6585676",
"0.6585676",
"0.6572272",
"0.6530378",
"0.6489817",
"0.6455295",
"0.6438388",
"0.64062434",
"0.637709... | 0.6660633 | 12 |
Password that will be used by vSphere to authenticate to the host. | def jTXt(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'password') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jTXt(YKHO) -> str:\n return qe4Y.get(YKHO, 'password')",
"def jTXt(YKHO) -> str:\n return qe4Y.get(YKHO, 'password')",
"def jTXt(YKHO) -> str:\n return qe4Y.get(YKHO, 'password')",
"def jTXt(YKHO) -> str:\n return qe4Y.get(YKHO, 'password')",
"def jTXt(YKHO):\n return YKHO._get('password... | [
"0.738367",
"0.738367",
"0.738367",
"0.738367",
"0.7292352",
"0.7272804",
"0.72542113",
"0.71259713",
"0.7094046",
"0.7082906",
"0.7082906",
"0.7082906",
"0.7082906",
"0.7082906",
"0.7082906",
"0.7082906",
"0.7082906",
"0.7082906",
"0.7082906",
"0.7082906",
"0.7082906",
"0.... | 0.0 | -1 |
Get an existing Host resource's state with the given name, id, and optional extra properties used to qualify the lookup. | def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None, hKn5: Optional[pulumi.Input[str]]=None, uFrt: Optional[pulumi.Input[bool]]=None, gela: Optional[pulumi.Input[bool]]=None, hXTF: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]=None, nJ8O: Optional[pulumi.Input[str]]=None, DH... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None, ahNR: Optional[pulumi.Input[str]]=None, p7Zo: Optional[pulumi.Input[str]]=None, XldB: Optional[pulumi.Input[str]]=None, o_gm: Optional[pulumi.Input[str]]=None, p6U8: Optional[pulumi.Input[str]]=None, jTXt: Optional[pulumi.Input... | [
"0.61135185",
"0.6040158",
"0.5825955",
"0.577882",
"0.57516044",
"0.5673694",
"0.5658775",
"0.5546889",
"0.5522009",
"0.5506332",
"0.54493743",
"0.5446086",
"0.5418651",
"0.54039323",
"0.53893006",
"0.5374157",
"0.5358462",
"0.53387684",
"0.53282905",
"0.5315546",
"0.5310777... | 0.6620816 | 0 |
The license key that will be applied to the host. The license key is expected to be present in vSphere. | def license(YKHO) -> qe4Y.Output[h8nf[str]]:
return qe4Y.get(YKHO, 'license') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def license(YKHO) -> str:\n return qe4Y.get(YKHO, 'license')",
"def yXgY(aHkb):\n return TuoA.get_license_key(aHkb)",
"def mexE(YKHO):\n return YKHO.license['ROBOT_KEY']",
"def kaex(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'license_id')",
"def license(YKHO) -> qe4Y.Output[str]:\n r... | [
"0.71650046",
"0.71595764",
"0.71152484",
"0.69294846",
"0.689061",
"0.6878732",
"0.6806467",
"0.6740089",
"0.6722901",
"0.66916573",
"0.66916573",
"0.66662776",
"0.66662776",
"0.66662776",
"0.6592718",
"0.6592718",
"0.6576524",
"0.653659",
"0.6495198",
"0.6459967",
"0.643843... | 0.67854726 | 7 |
Password that will be used by vSphere to authenticate to the host. | def jTXt(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'password') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jTXt(YKHO) -> str:\n return qe4Y.get(YKHO, 'password')",
"def jTXt(YKHO) -> str:\n return qe4Y.get(YKHO, 'password')",
"def jTXt(YKHO) -> str:\n return qe4Y.get(YKHO, 'password')",
"def jTXt(YKHO) -> str:\n return qe4Y.get(YKHO, 'password')",
"def jTXt(YKHO):\n return YKHO._get('password... | [
"0.738367",
"0.738367",
"0.738367",
"0.738367",
"0.7292352",
"0.7272804",
"0.72542113",
"0.71259713",
"0.7094046",
"0.7082906",
"0.7082906",
"0.7082906",
"0.7082906",
"0.7082906",
"0.7082906",
"0.7082906",
"0.7082906",
"0.7082906",
"0.7082906",
"0.7082906",
"0.7082906",
"0.... | 0.6790459 | 50 |
Returns the argument type that will be passed to the QMetaObject.invokeMethod call. Most types pass okay, but enums don't so they have to be coerced to ints. An enum is currently detected as a type that is not a bool and inherits from __builtin__.int | def WYix(YKHO, wAVY):
T79R = type(wAVY)
return T79R
if isinstance(wAVY, ONrU.int) and T79R != bool:
T79R = int
return T79R | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def type(YKHO):\n return YKHO.arg_type",
"def Mhdp(YKHO, d7pR):\n if YKHO.argTypes is None:\n return None\n d6pt, mWFP = YKHO.checkArg(d7pR)\n return YKHO.argTypes[d6pt]",
"def Mhdp(YKHO, d7pR):\n if YKHO.argTypes is None:\n return None\n d6pt, mWFP = YKHO.checkArg(d7pR)\n re... | [
"0.7228446",
"0.67173475",
"0.67173475",
"0.66353226",
"0.66129124",
"0.6484806",
"0.6304248",
"0.6182409",
"0.6143965",
"0.6017557",
"0.60086185",
"0.5940564",
"0.59083253",
"0.5899081",
"0.5884451",
"0.58583903",
"0.5834362",
"0.57757443",
"0.5756725",
"0.5749131",
"0.57446... | 0.70788425 | 1 |
Get a handle to the grid object for this layer. | def Cs6h(YKHO):
return BD0M(xtTg, YKHO._getHeldObject().grid) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fhJi(YKHO):\n return YKHO._grid",
"def fhJi(YKHO):\n return YKHO.grid",
"def fhJi(YKHO):\n return YKHO.grid",
"def fhJi(YKHO):\n return YKHO.grid",
"def Cs6h(YKHO) -> rApN:\n return YKHO.__grid",
"def Cs6h(YKHO):\n return YKHO._grid",
"def Cs6h(YKHO):\n return YKHO._grid",
"d... | [
"0.77766687",
"0.7697643",
"0.7697643",
"0.7697643",
"0.7365648",
"0.7278174",
"0.7278174",
"0.7278174",
"0.7278174",
"0.72227025",
"0.7094091",
"0.704406",
"0.7036867",
"0.70228523",
"0.6890144",
"0.68675345",
"0.6664232",
"0.6598566",
"0.653962",
"0.65311414",
"0.6488806",
... | 0.68307906 | 16 |
If the layer contains a spectrogram, get a handle to the spectrogram object. | def kIbI(YKHO):
return BD0M(xtTg, YKHO._getHeldObject().spectrogram) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZApU(DZCO):\n lWPh = gLif.feature.melspectrogram(y=DZCO, sr=16000, n_fft=480, hop_length=160, win_length=480, center=False)\n return lWPh",
"def ZApU(pmON):\n if not Hy7s.path.exists(pmON):\n print(\"Error: Spectrogram for file '\" + pmON + \"' does not exist! Aborting...\")\n return N... | [
"0.5947684",
"0.5867134",
"0.5677499",
"0.56672347",
"0.54834306",
"0.5483344",
"0.54783773",
"0.54505247",
"0.5436321",
"0.5424454",
"0.5398735",
"0.53957176",
"0.5394241",
"0.53741163",
"0.5362887",
"0.53238225",
"0.53163475",
"0.52957344",
"0.5273653",
"0.5260586",
"0.5257... | 0.63174814 | 0 |
3x3 convolution with padding | def Myly(UUZO, sYyA, _0fC=1):
return U78l.Conv2d(UUZO, sYyA, kernel_size=3, stride=_0fC, padding=1, bias=False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sx6c(input, KUnM, FEri, dvgN, wH3T='NHWC', mJgj=1, mWFP=None):\n return o6Bz(**locals())",
"def Myly(UUZO, sYyA, _0fC=1, moMn=1, ivFb=1):\n return U78l.Conv2d(UUZO, sYyA, kernel_size=3, stride=_0fC, padding=0, groups=moMn, bias=False, dilation=ivFb)",
"def DO8L(WKvO, yzQ0, UP6E=[0, 0, 0], FEri=[1, 1,... | [
"0.78404945",
"0.7541354",
"0.753996",
"0.7491138",
"0.7434801",
"0.74207747",
"0.73415834",
"0.7320252",
"0.7299599",
"0.7287539",
"0.72799367",
"0.72799367",
"0.7257735",
"0.7226928",
"0.72204214",
"0.7214909",
"0.7214909",
"0.7210775",
"0.7198222",
"0.71639067",
"0.7161914... | 0.70801866 | 90 |
Constructs a ResNet18 model. | def qUH4(mL4f=False, **B2fa):
C3ST = S1Vm(em1m, [2, 2, 2, 2], **B2fa)
if mL4f:
C3ST.load_state_dict(rA0C.load_url(mDCG['resnet18']))
return C3ST | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def v19q(mL4f=False, **B2fa):\n C3ST = S1Vm(em1m, [2, 2, 2, 2], **B2fa)\n if mL4f:\n C3ST.load_state_dict(rA0C.load_url(mDCG['resnet18']))\n return C3ST",
"def qUH4(mL4f=True, **B2fa):\n C3ST = S1Vm(em1m, [2, 2, 2, 2], **B2fa)\n if mL4f:\n C3ST.load_state_dict(rA0C.load_url(mDCG['res... | [
"0.78036934",
"0.73894507",
"0.7378036",
"0.73664284",
"0.7342958",
"0.73350024",
"0.7325735",
"0.7325735",
"0.729254",
"0.7252331",
"0.7196154",
"0.7196154",
"0.7196154",
"0.7196154",
"0.7122624",
"0.709443",
"0.70910895",
"0.709014",
"0.70882547",
"0.70037913",
"0.69680023"... | 0.7303929 | 9 |
Constructs a ResNet34 model. | def OwNx(mL4f=False, **B2fa):
C3ST = S1Vm(em1m, [3, 4, 6, 3], **B2fa)
if mL4f:
C3ST.load_state_dict(rA0C.load_url(mDCG['resnet34']))
return C3ST | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OwNx(nZt5=10):\n C3ST = S1Vm(em1m, [3, 4, 6, 3], 2 * nZt5)\n return C3ST",
"def OwNx(mL4f=False, **B2fa):\n C3ST = S1Vm(em1m, [3, 4, 6, 3], **B2fa)\n if mL4f:\n C3ST.load_state_dict(rA0C.load_url(mDCG['resnet34']))\n mLGw = C3ST.fc.in_features\n C3ST.fc = ht2j.nn.Linear(mLGw, _Fei.MO... | [
"0.7703386",
"0.74675333",
"0.74524",
"0.7427917",
"0.7424663",
"0.7424663",
"0.7407424",
"0.73827267",
"0.737552",
"0.73492414",
"0.73492414",
"0.73492414",
"0.73341715",
"0.72390974",
"0.7232337",
"0.7209522",
"0.72081745",
"0.7197311",
"0.70888406",
"0.7065439",
"0.7036283... | 0.7428298 | 3 |
Constructs a ResNet50 model. | def uwZX(mL4f=False, **B2fa):
C3ST = S1Vm(MF6R, [3, 4, 6, 3], **B2fa)
if mL4f:
C3ST.load_state_dict(rA0C.load_url(mDCG['resnet50']))
return C3ST | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def abVM():\n global ResNet50_model\n L9vW = uwZX.ResNet50(weights='imagenet')\n L9vW._make_predict_function()",
"def g4bj(YKHO):\n from tensorflow.keras.applications import ResNet50\n rvDU = ResNet50(input_shape=(uwaB.IMAGE_SIZE_EYES, uwaB.IMAGE_SIZE_EYES, 3), include_top=False, weights='imagenet... | [
"0.7942998",
"0.7562238",
"0.7498587",
"0.74903464",
"0.748225",
"0.74686694",
"0.7455879",
"0.7455879",
"0.7453793",
"0.7451919",
"0.74174935",
"0.7413509",
"0.7386383",
"0.7386383",
"0.7381297",
"0.73666435",
"0.73550534",
"0.73514414",
"0.7338738",
"0.73122096",
"0.7305518... | 0.7474884 | 5 |
Constructs a ResNet152 model. | def hVyu(mL4f=False, **B2fa):
C3ST = S1Vm(MF6R, [3, 8, 36, 3], **B2fa)
if mL4f:
C3ST.load_state_dict(rA0C.load_url(mDCG['resnet152']))
return C3ST | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hVyu(mL4f=False, **B2fa):\n C3ST = S1Vm(MF6R, [3, 8, 36, 3], c2s7, **B2fa)\n if mL4f:\n C3ST.load_state_dict(rA0C.load_url(mDCG['resnet152']))\n return C3ST",
"def hVyu(mL4f=False, **B2fa):\n C3ST = S1Vm(MF6R, [3, 8, 36, 3], **B2fa)\n if mL4f:\n C3ST.load_state_dict(rA0C.load_url... | [
"0.7557265",
"0.7420262",
"0.74164534",
"0.73906183",
"0.73906183",
"0.7366163",
"0.73595834",
"0.73568684",
"0.73468107",
"0.7324853",
"0.7317274",
"0.73095554",
"0.73095554",
"0.7244661",
"0.7239449",
"0.71767616",
"0.714074",
"0.71254396",
"0.7119152",
"0.7089005",
"0.7081... | 0.74026406 | 3 |
Set the version attribute to the h5 file. | def fvEA(YKHO):
YKHO.h5.attrs['version'] = BtDU
YKHO.h5.attrs['full_version_record'] = qQXR.dumps(YKHO.full_version_record)
YKHO.h5.attrs['package'] = 'sup3r' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DpZH(YKHO, BWXx: AwesomeVersion) -> None:\n YKHO._data[yr17] = BWXx",
"def dPFR(YKHO, DpZH):\n YKHO.version = DpZH",
"def R2V2(YKHO, DpZH):\n YKHO.version = DpZH",
"def DpZH(YKHO, DpZH):\n YKHO._version.value = DpZH",
"def gSe9(YKHO, DpZH):\n YKHO._config['submodule \".\"']['version'] = ... | [
"0.68813527",
"0.6723047",
"0.6716037",
"0.6708542",
"0.6696965",
"0.6686888",
"0.66351104",
"0.6613582",
"0.66038764",
"0.6582045",
"0.6581409",
"0.65532213",
"0.65532213",
"0.65532213",
"0.6541493",
"0.64704096",
"0.6469452",
"0.646345",
"0.646345",
"0.642161",
"0.6409708",... | 0.85489994 | 0 |
return a friendly formatted number >>> friendly_num(1) '1' >>> friendly_num(102) '102' >>> friendly_num(1000) '1k' >>> friendly_num(10000) '10k' >>> friendly_num(10200) '10.2k' >>> friendly_num(100200) '100.2k' | def DEjN(mLGw):
if mLGw < 1000:
return str(mLGw)
Uufv = mLGw % 1000
SoWM = mLGw / 1000
if Uufv > 100:
return '%0.1fk' % SoWM
else:
return '%dk' % SoWM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zYTm(mLGw):\n YRbF = 0\n while YRbF + 1 < len(ZaQ8) and mLGw >= 2 ** ZaQ8[YRbF + 1][0]:\n YRbF += 1\n zkWH = round(float(mLGw) / 2 ** ZaQ8[YRbF][0], 2)\n return '%s %s' % (zkWH, ZaQ8[YRbF][1])",
"def t1yE(mLGw):\n return str(mLGw) if mLGw < 1000 else '%sk' % (mLGw // 1000)",
"def Cntx... | [
"0.6956216",
"0.6914239",
"0.68589574",
"0.68392676",
"0.6758152",
"0.67439646",
"0.672676",
"0.6642539",
"0.66225773",
"0.6618254",
"0.6579328",
"0.6538239",
"0.65242505",
"0.6518306",
"0.65083987",
"0.6491736",
"0.64719844",
"0.64038783",
"0.6398008",
"0.63927466",
"0.63926... | 0.8346532 | 0 |
Returns a collection of gender to choose from | def EE3v():
return (('Male', 'Male'), ('Female', 'Female'), ('Other', 'Other')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IoKf(YKHO):\n return i9zE.gender_choices",
"def IoKf(YKHO):\n return i9zE.gender_choices",
"def IoKf(YKHO):\n hR7O = pp0i.__iter__()\n uvH_ = []\n xWiE = True\n while xWiE:\n try:\n EE3v = hR7O.next()\n uvH_.append(EE3v.title)\n except StopIteration:\n ... | [
"0.80291283",
"0.80291283",
"0.75944775",
"0.71206397",
"0.70389193",
"0.7026363",
"0.69765484",
"0.6938258",
"0.6811984",
"0.6703864",
"0.6684394",
"0.66665184",
"0.6582131",
"0.6569882",
"0.65580475",
"0.6547589",
"0.6525767",
"0.6503117",
"0.6493168",
"0.6482223",
"0.64557... | 0.7225497 | 3 |
Sign extend val above bit val value to extend bit bit specifying sign | def FlSp(wEf2: long, HkJz: int) -> Swre:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kOBT(wEf2, UOVU=32):\n KeSO = 1 << UOVU - 1\n return (wEf2 & KeSO - 1) - (wEf2 & KeSO)",
"def BacX(wEf2, TVTK):\n IO_W = hE0U(wEf2 & (1 << TVTK) - 1 == 1)\n hVkF = 4294967295 >> TVTK << TVTK & IO_W\n Aofo = wEf2 | hVkF\n return Aofo",
"def kOBT(Jyyj: int, TVTK: int) -> int:\n assert TV... | [
"0.8408059",
"0.7230758",
"0.7116648",
"0.7056405",
"0.70532393",
"0.7002072",
"0.69363767",
"0.69203967",
"0.6663632",
"0.6637914",
"0.65730983",
"0.6473679",
"0.6420953",
"0.6184352",
"0.60645443",
"0.6037526",
"0.59874594",
"0.5972776",
"0.5961451",
"0.5865767",
"0.5862294... | 0.83797675 | 1 |
Create the test databases only when explicitly requested. Also create initial data for some models. We can't use 'initial_data' fixtures for objects whose contents may be edited in production, because they would be overwritten by updates. | def nf0Z(YKHO, **B2fa):
if not YKHO.createdb:
from django.db.backends.creation import BaseDatabaseCreation
BaseDatabaseCreation.create_test_db = c3xO
Aofo = super(jKIe, YKHO).setup_databases(**B2fa)
if YKHO.createdb:
pass
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FCbF(YKHO):\n NCls.create_all()\n YKHO.init_data()",
"def FCbF(YKHO):\n NCls.create_all()\n YKHO.init_data()",
"def cUvJ():\n Rcfu(P4t4)\n FdQG(P4t4)\n udJR(P4t4)",
"def OMLj(QePW):\n if QePW.config.getoption('--disable-refresh-db', False):\n return\n for _M9w in zIvh:\n... | [
"0.78131783",
"0.78131783",
"0.7774495",
"0.7594334",
"0.7520677",
"0.7452793",
"0.7383514",
"0.7328298",
"0.73246175",
"0.7309205",
"0.72935355",
"0.72605824",
"0.7253904",
"0.7234764",
"0.7234764",
"0.72338474",
"0.7200451",
"0.7200451",
"0.71880436",
"0.71880436",
"0.71777... | 0.826011 | 0 |
Scipy softmax with the axis inference and theta included. | def DWeo(EcVT, q7In=1.0, jDK_=None):
LVAh = oyIN.atleast_2d(EcVT)
if jDK_ is None:
jDK_ = next((r845[0] for r845 in enumerate(LVAh.shape) if r845[1] > 1))
return Zxt2.special.softmax(EcVT * q7In, axis=0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N93T(YKHO, LVAh, q7In=1.0, jDK_=None):\n LVAh = oyIN.reshape(LVAh, (-1, YKHO.config.output_num, YKHO.config.dimension))\n if jDK_ is None:\n jDK_ = next((r845[0] for r845 in enumerate(LVAh.shape) if r845[1] > 1))\n LVAh = LVAh * float(q7In)\n LVAh = LVAh - oyIN.expand_dims(oyIN.max(LVAh, axi... | [
"0.763537",
"0.74809325",
"0.74809325",
"0.74809325",
"0.74719435",
"0.74455994",
"0.7431206",
"0.7383194",
"0.7383194",
"0.7383194",
"0.7376616",
"0.73190475",
"0.73075557",
"0.7274385",
"0.726513",
"0.72647274",
"0.72641855",
"0.7232881",
"0.7231791",
"0.7228831",
"0.721724... | 0.7544538 | 1 |
Generate a hash using the bcrypt algorithm | def qzFd(jTXt, NTfD):
return B8ni.hashpw(jTXt, NTfD) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xPb7(jTXt, NTfD):\n lpha = len(NTfD) / 2\n jTXt = NTfD[:lpha] + jTXt + NTfD[lpha:]\n jTXt = fY9n(xORj(jTXt).digest()).strip()\n return jTXt",
"def B8ni(jTXt: str):\n return gLHo.hash(jTXt)",
"def B8ni(jTXt: str):\n return psWq.hash(jTXt)",
"def B8ni(jTXt: str) -> str:\n return psWq.h... | [
"0.78099704",
"0.77341026",
"0.77173954",
"0.7650863",
"0.7505095",
"0.7431331",
"0.7385914",
"0.7334224",
"0.73079175",
"0.7301878",
"0.7290805",
"0.7269329",
"0.7250978",
"0.72144574",
"0.71593684",
"0.7158123",
"0.7150276",
"0.7132407",
"0.71318966",
"0.71295244",
"0.71246... | 0.7010786 | 33 |
Flattens and imputes the values in the input Arrow RecordBatch. Replaces missing values with CATEGORICAL_FEATURE_IMPUTATION_FILL_VALUE for categorical features and 10max(feature_values) for numeric features. We impute missing values with an extreme value that is far from observed values so it does not incorrectly impac... | def EgCt(_73Q: pa.RecordBatch, yFi2: Set[types.FeaturePath]) -> cuzp[SnBA.FeaturePath, oyIN.ndarray]:
NwL4 = _73Q.num_rows
Aofo = {}
for z0q4, JVDK in zip(_73Q.schema.names, _73Q.columns):
R4rN = SnBA.FeaturePath([z0q4])
I93E = ADmi if R4rN in yFi2 else HwRy.maxsize
if Xugt.types.is_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D4Ex(jQ3Z, o2k6, fRn_, HhVR, fys6):\n B0cM = dict([(eHNT, [str(WKvO) for WKvO in o2k6[eHNT].dropna().unique().tolist()]) for eHNT in fRn_])\n ZkZS = Y0rt([('impute', eN2q(fys6, HhVR, fRn_)), ('convert_dtypes', TsKQ(HhVR, fRn_)), ('dummify', pEQM(B0cM))])\n EcVT = ZkZS.fit_transform(jQ3Z)\n return E... | [
"0.55463284",
"0.5528524",
"0.5440465",
"0.5409563",
"0.53813654",
"0.53252333",
"0.5243282",
"0.52339876",
"0.5216172",
"0.51128495",
"0.5108261",
"0.5096714",
"0.5088284",
"0.504941",
"0.50198644",
"0.50198644",
"0.50197816",
"0.5001946",
"0.50000316",
"0.49989206",
"0.4995... | 0.6974261 | 0 |
Encodes all categorical features in input dataframe to numeric values. Categorical features are inferred from the schema. They are transformed using the np.unique function which maps each value in the feature's domain to a numeric id. Encoded categorical features are marked by a boolean mask which is returned and used ... | def Yrvu(YKHO, jQ3Z: pd.DataFrame) -> x1iM[bool]:
hNcu = [False for bGrB in jQ3Z]
AxrZ = []
G2kk = []
for YRbF, iVRZ in enumerate(jQ3Z):
if iVRZ in YKHO._categorical_features:
pNxZ = [WKvO.decode('utf-8', 'replace') if isinstance(WKvO, bytes) else WKvO if WKvO is not None else ADmi f... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QbQu(YKHO, jQ3Z, iSRS=dict()):\n if len(set(jQ3Z.columns) ^ set(YKHO.all_features())) > 0:\n raise YE3y(\"The given Dataframe's features should be the same as the features saved in the DataFrameTypes.\")\n YKHO.__label_encoder = dict()\n SdBD = YKHO.categorical_features() | YKHO.string_features... | [
"0.7252668",
"0.69305825",
"0.6863718",
"0.6791762",
"0.6743915",
"0.6732644",
"0.6704365",
"0.66810787",
"0.66750526",
"0.666022",
"0.6654786",
"0.66234154",
"0.6554602",
"0.6525308",
"0.650806",
"0.64765626",
"0.647198",
"0.6448617",
"0.6442788",
"0.64297134",
"0.63938105",... | 0.7094413 | 1 |
Check if all items in a list are equal. | def MMWO(qnba, srKK=False):
return qnba.count(12) == 16 if srKK else qnba.count(qnba[0]) == len(qnba) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ac8g(yv6U):\n return len(set(yv6U)) == 1",
"def NOdi(list):\n return not list or list == [list[0]] * len(list)",
"def ac8g(yv6U):\n return len(set(yv6U)) == 1",
"def zjfU(ybN4):\n try:\n wEf2 = ybN4[1]\n except IndexError:\n return True\n return all((jzdc == wEf2 for jzdc ... | [
"0.85157377",
"0.8447533",
"0.84225726",
"0.8074703",
"0.80505943",
"0.8040439",
"0.7982396",
"0.7755596",
"0.7749537",
"0.771155",
"0.7709279",
"0.7668791",
"0.7561844",
"0.75248444",
"0.74977225",
"0.7481392",
"0.7377384",
"0.7374127",
"0.73191965",
"0.71918046",
"0.7162998... | 0.70606434 | 26 |
This function creates a choropleth U.S. map, where the shade of colors in each state represents the density of people holding the occupation in each state. | def Rdj6(oCfW):
if oCfW == 'mechaninal engineer':
oCfW = 'mech_eng'
elif oCfW == 'farmer':
oCfW = 'farm'
elif oCfW == 'software developer':
oCfW = 'software'
nPrm = JRYC.get_state_data(oCfW)
__n6 = []
R5I5 = nPrm[0]
UrXw = nPrm[1]
R5I5.pop(R5I5.index('HI'))
Ur... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OjQC(nPrm, Fkp_):\n jQ3Z = nPrm[['price', 'state']].groupby(by='state').count().reset_index()\n LZpg = iEax.Figure(data=iEax.Choropleth(locations=jQ3Z['state'], z=jQ3Z['price'].astype(float), locationmode='USA-states', colorscale='reds', colorbar_title='Number of Cars'))\n LZpg.update_layout(title_tex... | [
"0.6795909",
"0.6570021",
"0.64431536",
"0.6425904",
"0.6316633",
"0.6233936",
"0.61981016",
"0.61907727",
"0.6186528",
"0.61242616",
"0.59841484",
"0.59523153",
"0.5892434",
"0.58316463",
"0.582866",
"0.5812438",
"0.58079964",
"0.5795867",
"0.57557416",
"0.57551855",
"0.5748... | 0.6221769 | 6 |
was_published_recently() return False for questions whose pub_date is in the future. | def GoiU(YKHO):
ITS7 = rIAI.now() + qcWV.timedelta(days=30)
vS5o = Y4Gy(pub_date=ITS7)
YKHO.assertIs(vS5o.was_published_recently(), False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WC1_(YKHO):\n wzkt = rIAI.now()\n return wzkt - qcWV.timedelta(days=1) <= YKHO.pub_date <= wzkt",
"def WC1_(YKHO):\n wzkt = rIAI.now()\n return wzkt - qcWV.timedelta(days=1) <= YKHO.pub_date <= wzkt",
"def WC1_(YKHO):\n wzkt = rIAI.now()\n return wzkt - qcWV.timedelta(days=1) <= YKHO.pub_... | [
"0.8791623",
"0.8791623",
"0.8791623",
"0.8791623",
"0.87413514",
"0.84936297",
"0.8474969",
"0.847087",
"0.84696585",
"0.8451171",
"0.84445816",
"0.8439438",
"0.8436054",
"0.8435116",
"0.8433778",
"0.8433778",
"0.8433778",
"0.8433778",
"0.8433778",
"0.8433778",
"0.8433778",
... | 0.8418572 | 29 |
was_published_recently() return False for questions whose pub_date is in the future. | def QPdK(YKHO):
ITS7 = rIAI.now() - qcWV.timedelta(days=1, seconds=1)
lPNG = Y4Gy(pub_date=ITS7)
YKHO.assertIs(lPNG.was_published_recently(), False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WC1_(YKHO):\n wzkt = rIAI.now()\n return wzkt - qcWV.timedelta(days=1) <= YKHO.pub_date <= wzkt",
"def WC1_(YKHO):\n wzkt = rIAI.now()\n return wzkt - qcWV.timedelta(days=1) <= YKHO.pub_date <= wzkt",
"def WC1_(YKHO):\n wzkt = rIAI.now()\n return wzkt - qcWV.timedelta(days=1) <= YKHO.pub_... | [
"0.8791623",
"0.8791623",
"0.8791623",
"0.8791623",
"0.87413514",
"0.84936297",
"0.8474969",
"0.847087",
"0.84696585",
"0.8451171",
"0.84445816",
"0.8439438",
"0.8436054",
"0.8435116",
"0.8433778",
"0.8433778",
"0.8433778",
"0.8433778",
"0.8433778",
"0.8433778",
"0.8433778",
... | 0.82585645 | 78 |
was_published_recently() returns True for questions whose pub_date is within the last day | def eC1B(YKHO):
ITS7 = rIAI.now() - qcWV.timedelta(hours=23, minutes=59, seconds=59)
m5xt = Y4Gy(pub_date=ITS7)
YKHO.assertIs(m5xt.was_published_recently(), True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WC1_(YKHO):\n wzkt = rIAI.now()\n return wzkt - qcWV.timedelta(days=1) <= YKHO.pub_date <= wzkt",
"def WC1_(YKHO):\n wzkt = rIAI.now()\n return wzkt - qcWV.timedelta(days=1) <= YKHO.pub_date <= wzkt",
"def WC1_(YKHO):\n wzkt = rIAI.now()\n return wzkt - qcWV.timedelta(days=1) <= YKHO.pub_... | [
"0.8546213",
"0.8546213",
"0.8546213",
"0.8546213",
"0.8485699",
"0.83587414",
"0.8338443",
"0.83368045",
"0.83330023",
"0.8327237",
"0.83184797",
"0.83167756",
"0.8310569",
"0.8307255",
"0.8305932",
"0.8289538",
"0.8287313",
"0.8262066",
"0.82445896",
"0.82243687",
"0.822262... | 0.8308904 | 13 |
Remove html tags from a string | def JZhs(l5Ny):
x0SS = ZbWC.compile('<.*?>')
return ZbWC.sub(x0SS, '', l5Ny) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JZhs(KCHu: str) -> str:\n return ZbWC.sub('<[^>]+>', '', KCHu)",
"def Iw0V(vIwR):\n return ZbWC.sub('<[^>]*?>', ' ', vIwR)",
"def gg3k(input):\n p8Nh = ZbWC.compile('<.*?>')\n Bopb = ZbWC.sub(p8Nh, '', input)\n return Bopb",
"def JZhs(l5Ny):\n x0SS = ZbWC.compile('<.*?>')\n return Zb... | [
"0.86815035",
"0.85845494",
"0.8547164",
"0.8528413",
"0.84839606",
"0.84403396",
"0.84221727",
"0.84221727",
"0.84218365",
"0.8354987",
"0.8354987",
"0.8354987",
"0.8354987",
"0.8354987",
"0.8354987",
"0.8295757",
"0.82903194",
"0.8277659",
"0.82659954",
"0.8257645",
"0.8221... | 0.83305824 | 16 |
Generates statevariable statistics to tune the safety constraints. This will generate a list of dict object, each describing the stats for each set of safety vars. | def Sl4R(YKHO):
CgsC = g760.OrderedDict()
for H5ew in YKHO._buffer[0].observation['safety_vars'].keys():
LaVg = oyIN.array([i8WE.observation['safety_vars'][H5ew] for i8WE in YKHO._buffer])
eQSh = dict(mean=oyIN.mean(LaVg, axis=0), std_dev=oyIN.std(LaVg, axis=0), min=oyIN.min(LaVg, axis=0), max=o... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XsFb(YKHO):\n eQSh = {}\n eQSh['confusion'] = YKHO.confusion\n eQSh['precisions'] = [WKvO[1, 1] / (WKvO[1, 1] + WKvO[0, 1]) for WKvO in YKHO.confusion]\n eQSh['recalls'] = [WKvO[1, 1] / (WKvO[1, 1] + WKvO[1, 0]) for WKvO in YKHO.confusion]\n eQSh['dx'] = YKHO.dx_list\n eQSh['dy'] = YKHO.dy_li... | [
"0.6171221",
"0.6134852",
"0.60941297",
"0.59652764",
"0.5935989",
"0.5927217",
"0.5904471",
"0.5873914",
"0.58634716",
"0.58583605",
"0.5846328",
"0.58305347",
"0.5826521",
"0.58236074",
"0.5799554",
"0.5792498",
"0.57394546",
"0.57239974",
"0.57089514",
"0.5708009",
"0.5707... | 0.68848133 | 0 |
Reset the Hessian to the initial value | def SiRx(YKHO):
YKHO.hessian = YKHO.hessian0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SiRx(YKHO):\n if YKHO._hessians:\n YKHO._accum_steps.assign(0)\n for e_VS in YKHO._get_replica_hessians():\n e_VS.assign(ZylS.zeros_like(e_VS))",
"def HSXb(YKHO) -> None:\n YKHO._on_hessian = False",
"def SiRx(YKHO):\n YKHO.target = 0\n YKHO.multicoefs = None\n YKHO.... | [
"0.81734926",
"0.7622632",
"0.6917847",
"0.68777007",
"0.6855827",
"0.68385303",
"0.6808665",
"0.677166",
"0.6706846",
"0.6644375",
"0.6617652",
"0.6595947",
"0.6595947",
"0.6582106",
"0.6571774",
"0.65628546",
"0.65628546",
"0.65628546",
"0.65626544",
"0.654322",
"0.6516324"... | 0.88815 | 0 |
Return the dot product of the approximate hessian and a test vector v | def Ki8z(YKHO, Ty9i):
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ki8z(YKHO, Ty9i):\n Aofo = YKHO.diag0 * Ty9i\n if YKHO.size > 0:\n Aofo += oyIN.dot(YKHO.basis.T, oyIN.dot(YKHO.m, oyIN.dot(YKHO.basis, Ty9i)))\n return Aofo",
"def F0qG(YKHO, iArr):\n pass",
"def q06J(YKHO, iArr):\n pass",
"def r7YD(UxRk, NArs, Ty9i):\n zu_r = ht2j.autograd.grad... | [
"0.72293866",
"0.6967057",
"0.684623",
"0.6592891",
"0.6503852",
"0.64548695",
"0.63786674",
"0.630179",
"0.628392",
"0.6279183",
"0.62528825",
"0.6203114",
"0.6192638",
"0.6105879",
"0.6104146",
"0.6103574",
"0.60629284",
"0.60119027",
"0.5980185",
"0.597335",
"0.5969045",
... | 0.7818294 | 0 |
Return the dot product of the approximate hessian and a test vector v | def Ki8z(YKHO, Ty9i):
Aofo = YKHO.diag0 * Ty9i
if YKHO.size > 0:
Aofo += oyIN.dot(YKHO.basis.T, oyIN.dot(YKHO.m, oyIN.dot(YKHO.basis, Ty9i)))
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ki8z(YKHO, Ty9i):\n raise NotImplementedError",
"def F0qG(YKHO, iArr):\n pass",
"def q06J(YKHO, iArr):\n pass",
"def r7YD(UxRk, NArs, Ty9i):\n zu_r = ht2j.autograd.grad(UxRk, NArs, grad_outputs=Ty9i, only_inputs=True, retain_graph=True)\n return zu_r",
"def wqM6(YKHO):\n JB7U = YKHO.x... | [
"0.78181696",
"0.696584",
"0.68451655",
"0.65937877",
"0.65029305",
"0.6453046",
"0.6377498",
"0.62994015",
"0.62855786",
"0.6278248",
"0.6251739",
"0.6205321",
"0.61917454",
"0.6106505",
"0.61057174",
"0.6101093",
"0.606524",
"0.6010562",
"0.59788597",
"0.59714174",
"0.59690... | 0.7229914 | 1 |
Generate batches of data. Given a list of arraylike objects, generate batches of a given size by yielding a list of arraylike objects corresponding to the same slice of each input. | def wBsT(nPrm, Ep8u, hXNa=True):
if hXNa:
nPrm = iJLJ(nPrm)
a6UK = 0
while True:
if a6UK * Ep8u + Ep8u >= len(nPrm[0]):
a6UK = 0
if hXNa:
nPrm = iJLJ(nPrm)
yKcO = a6UK * Ep8u
Os4s = yKcO + Ep8u
a6UK += 1
yield [Csk6[yKcO... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Iqrb(nPrm, Ep8u):\n for YRbF in range(0, len(nPrm), Ep8u):\n yield nPrm[YRbF:YRbF + Ep8u]",
"def eHxA(oOdw, Ep8u):\n for YRbF in range(0, len(oOdw), Ep8u):\n yield oOdw[YRbF:YRbF + Ep8u]",
"def eHxA(nPrm: typing.Iterable[T], Ep8u=100) -> laHg.Generator[laHg.List[Kt_s], None, None]:\n ... | [
"0.7841876",
"0.780176",
"0.7761849",
"0.7745574",
"0.770483",
"0.770483",
"0.770483",
"0.7668839",
"0.7600967",
"0.7539472",
"0.7539472",
"0.74297184",
"0.74269545",
"0.73967755",
"0.73586255",
"0.7344228",
"0.73439944",
"0.7343083",
"0.7343083",
"0.7315294",
"0.7314841",
... | 0.7228694 | 30 |
Simple function that determines if a value in the form of a string is a float or not. Used in property editing to determine valid input. Works by trying to convert it to an float using a native conversion function through python, and returning true if it works and false if it doesn't | def QpCZ(RC9w):
try:
float(RC9w)
return True
except ValueError:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e5f3(YKHO, vIwR):\n try:\n float(vIwR)\n return True\n except ValueError:\n return False",
"def QpCZ(NPoT):\n try:\n float(NPoT)\n return True\n except ValueError:\n return False",
"def e5f3(vIwR):\n try:\n float(vIwR)\n except ValueError:\... | [
"0.88058627",
"0.87130725",
"0.8703791",
"0.86883676",
"0.8621497",
"0.8621497",
"0.8579687",
"0.85590106",
"0.8524226",
"0.8509313",
"0.85072917",
"0.85072917",
"0.8479074",
"0.844767",
"0.84364253",
"0.84219867",
"0.84219867",
"0.84219867",
"0.84219867",
"0.8414593",
"0.838... | 0.87551904 | 1 |
Configure the grid used to place the frame on the window, and create the frame and the grid on the frame used to place the elements on the frame | def R7mg(YKHO):
YKHO.root.grid_rowconfigure(1, weight=1)
YKHO.root.grid_columnconfigure(1, weight=1)
YKHO.top_frame = on8l.Frame(YKHO.root, pady=1)
YKHO.top_frame.grid(row=0, columnspan=2, sticky=(on8l.N, on8l.W, on8l.E, on8l.S)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rlFO(YKHO):\n YKHO.frame = R08O.Frame()\n YKHO.frame.grid()\n YKHO.frame.grid(sticky='nswe')\n YKHO.frame.rowconfigure(0, weight=1)\n YKHO.frame.columnconfigure(0, weight=1)",
"def eOvK(YKHO):\n Jyyn = {'sticky': 'nswe'}\n YKHO.label_welcome.grid(row=0, column=0)\n YKHO.label_point_no... | [
"0.8170884",
"0.7652018",
"0.752264",
"0.7424716",
"0.74099",
"0.7350919",
"0.73301774",
"0.7291806",
"0.7176859",
"0.71353984",
"0.71045184",
"0.7097015",
"0.7096742",
"0.7093752",
"0.70804965",
"0.70744526",
"0.70735157",
"0.7060362",
"0.70588267",
"0.7052452",
"0.70254415"... | 0.81081885 | 1 |
Returns the location of virtualenvinstalled pip. | def xGso(Ixfi=False):
if Ixfi:
if 'VIRTUAL_ENV' in Hy7s.environ:
return Nygx('pip', location=Hy7s.environ['VIRTUAL_ENV'])
for XP5J in ('pip', 'pip3', 'pip2'):
qJWj = J6t7(XP5J)
if qJWj:
return qJWj
return Nygx('pip') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Hi7S() -> oAb3.Path:\n assert CFu_.INSTALL_DIR\n return CFu_.INSTALL_DIR / 'env' / 'bin' / 'pip'",
"def e81x(lwQm):\n return '{}{}'.format(iOVe, int(lwQm))",
"def qHZg(YKHO) -> GkAb:\n pmON = GkAb(YKHO._bin(YKHO._pip_executable))\n if not pmON.exists():\n return YKHO.pip_embedded\n ... | [
"0.84569716",
"0.73470324",
"0.70892644",
"0.7008845",
"0.66192997",
"0.6588804",
"0.6531969",
"0.6526101",
"0.6303373",
"0.6270955",
"0.6261811",
"0.62036836",
"0.61966985",
"0.6108191",
"0.61051214",
"0.59757805",
"0.59457844",
"0.59331334",
"0.59241617",
"0.590155",
"0.589... | 0.6877907 | 4 |
Normalize data by the sum. | def NkkI(VQ6Z):
return VQ6Z / oyIN.sum(VQ6Z) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XJbi(ezWE):\n KCHu = oyIN.sum(ezWE)\n if KCHu == 0.0:\n KCHu = 1.0\n return ezWE / KCHu",
"def NkkI(YKHO):\n YKHO.scale(1 / YKHO.sum())",
"def Q7gV(YKHO):\n print('Normalizing data ...')\n YKHO.data = oyIN.array(list(map(lambda ZfUD: ZfUD / oyIN.linalg.norm(ZfUD), YKHO.data)))\n ... | [
"0.7349771",
"0.7290768",
"0.7241456",
"0.7179479",
"0.7157587",
"0.71178204",
"0.71139324",
"0.70821065",
"0.708013",
"0.70671517",
"0.7037958",
"0.70013034",
"0.69966346",
"0.6993507",
"0.6988762",
"0.69853824",
"0.6982091",
"0.6980292",
"0.6954271",
"0.69384795",
"0.692912... | 0.7219957 | 3 |
Generates a table identifier in `PROJECT.DATASET.TABLE` format | def lev2(B373: Services, xAU6: BigQueryOptions, GTA_: str) -> str:
GCT4 = at3Q(B373.bigquery, xAU6, GTA_)
return '.'.join([GCT4.project, GCT4.dataset_id, GCT4.table_id]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UT3d(j3aw, d8hi):\n return 'anno__%s__%s' % (j3aw, d8hi)",
"def R4Jh(YKHO, xqoZ):\n ...",
"def lyxM(YKHO, c55i, iK1K):\n return '%s:%s.%s' % (YKHO.project_id, c55i, iK1K)",
"def iK1K(YKHO):\n if YKHO.sharded:\n return f'{YKHO.table_name}{YKHO.snapshot_date.strftime('%Y%m%d')}'\n ret... | [
"0.802425",
"0.7596969",
"0.7383824",
"0.71068156",
"0.6958709",
"0.69390935",
"0.69166523",
"0.68325865",
"0.6804822",
"0.68009406",
"0.68000364",
"0.6754498",
"0.66698277",
"0.6665032",
"0.6567505",
"0.655778",
"0.6542448",
"0.6484288",
"0.64791167",
"0.6478333",
"0.6475659... | 0.7233091 | 3 |
Creates a new Atom object. | def eLpg(Emd4, U6D_, BHsk, **B2fa):
WhQ6 = k3IH()
WhQ6.element_id = U6D_
WhQ6.coord = BHsk
gcep = ['ox', 'occupancy', 'wyckoff', 'charge', 'magmom', 'volume', 'forces']
for H5ew in gcep:
if H5ew in B2fa:
setattr(WhQ6, H5ew, B2fa[H5ew])
return WhQ6 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FcLu(YKHO, mWFP):\n WOKI = ioL8(mWFP)\n YKHO.molecule.add_atom(WOKI)\n WOKI.set_molecule(YKHO.molecule)",
"def TeoN(YKHO):\n jYi8 = k3IH()\n jYi8.type = YKHO.type\n jYi8.numb = YKHO.numb\n jYi8.name = YKHO.name\n jYi8.element = YKHO.element\n jYi8.resName = YKHO.resName\n jYi8.r... | [
"0.7289806",
"0.6762189",
"0.6695508",
"0.66850805",
"0.6552054",
"0.6463427",
"0.62953264",
"0.6245317",
"0.62250113",
"0.6208657",
"0.61827654",
"0.6149747",
"0.6110289",
"0.6058506",
"0.6010552",
"0.5984364",
"0.59186506",
"0.5867053",
"0.5767317",
"0.5734923",
"0.5725626"... | 0.679647 | 1 |
Adds Atom to `Site.atoms`. | def XJUG(YKHO, WhQ6, yJiH=None):
if not YKHO.coord is None:
if not yJiH is None:
if YKHO.structure.get_distance(YKHO, WhQ6, limit=2 * yJiH) > yJiH:
raise oR4A('%s is too far from %s to add' % (WhQ6, YKHO))
elif not WhQ6 in YKHO.atoms:
YKHO._atoms.appen... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ciPH(YKHO):\n bPbm = YKHO.get_table('atom_site')\n Xwl2 = 0\n for eNCK in YKHO.struct.iter_all_chains():\n lgYW = 0\n for jKyr in eNCK.iter_fragments():\n lgYW += 1\n gS6g = YKHO.entity_frag_dict[jKyr]\n for XUbj in jKyr.iter_all_atoms():\n ... | [
"0.69582474",
"0.6940601",
"0.6900235",
"0.6893733",
"0.6830039",
"0.6826919",
"0.6700527",
"0.66575086",
"0.6366874",
"0.6326413",
"0.6276665",
"0.62233007",
"0.6128974",
"0.6105731",
"0.6062014",
"0.6022176",
"0.60177606",
"0.6008083",
"0.59613526",
"0.5952654",
"0.59247994... | 0.6958339 | 0 |
Detaches the disk from a VM. | def p6nx(YKHO):
YKHO.cs.detach_volume(YKHO.volume_id) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def p6nx(YKHO):\n HCmI = gnPz.GcloudCommand(YKHO, 'compute', 'instances', 'detach-disk', YKHO.attached_vm_name)\n HCmI.flags['device-name'] = YKHO.name\n HCmI.IssueRetryable()\n YKHO.attached_vm_name = None",
"def p6nx(YKHO):\n HCmI = gnPz.GcloudCommand(YKHO, 'compute', 'instances', 'detach-disk',... | [
"0.7897445",
"0.76870674",
"0.720985",
"0.6793864",
"0.67602724",
"0.6751441",
"0.6696881",
"0.64853144",
"0.6424092",
"0.6406314",
"0.63710463",
"0.6345132",
"0.6330177",
"0.6320078",
"0.6313671",
"0.63051844",
"0.62768465",
"0.62647194",
"0.6249275",
"0.6243772",
"0.6227743... | 0.6486188 | 7 |
Uses split() instead of os.path.splitext() to cover extensions that include more than one '.', such as '.tar.gz'. | def hbrf(AGPF, CBZq):
for eHNT in Hy7s.listdir(AGPF):
if eHNT.split(Hy7s.extsep, 1)[1] in CBZq:
Hy7s.remove(Hy7s.path.join(AGPF, eHNT)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gLx5(pmON):\n for YBcr in ['.tar.gz', '.tar.bz2']:\n if pmON.endswith(YBcr):\n return (pmON[:-len(YBcr)], pmON[-len(YBcr):])\n return Hy7s.path.splitext(pmON)",
"def gLx5(pmON):\n for YBcr in ['.tar.gz', '.tar.bz', '.tar.bz2', '.tar.xz', '.tar.7z', '.tar.lz', '.tar.z', '.tar.lzma']... | [
"0.8430194",
"0.84197885",
"0.8195644",
"0.80261636",
"0.7979216",
"0.79572904",
"0.7944261",
"0.7781418",
"0.77742213",
"0.7680069",
"0.7653734",
"0.76406515",
"0.76332563",
"0.7589914",
"0.7567676",
"0.7514987",
"0.750382",
"0.74948615",
"0.74814105",
"0.7439775",
"0.741193... | 0.0 | -1 |
Checks if two Name nodes are equal, by only looking at their `name` fields. The `__eq__` method on `Name` nodes generated by Swagger also checks the `id` attribute, which we do not expect to be consistent across CAST generations, since it is a UUID | def BbWg(S1R7: Name, zuPL: Name) -> bool:
if not (isinstance(S1R7, av29) and isinstance(zuPL, av29)):
return False
return S1R7.name == zuPL.name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif: Node) -> bool:\n try:\n return str(YKHO.name) == str(Elif.name)\n except AttributeError:\n return str(YKHO.name) == Elif",
"def Xste(YKHO, Elif):\n return YKHO._name == Elif.toWire()",
"def MpXb(YKHO):\n YKHO._equalityTest(wAWK.Name(b'abc'), wAWK.Name(b'abc'), wAW... | [
"0.77338517",
"0.7621519",
"0.73474914",
"0.7329348",
"0.73118824",
"0.7275776",
"0.7268836",
"0.7268836",
"0.7268836",
"0.7268836",
"0.7265496",
"0.72314256",
"0.7220617",
"0.7203772",
"0.71552986",
"0.7095374",
"0.7055114",
"0.7049324",
"0.6963631",
"0.68900555",
"0.6833679... | 0.77301335 | 1 |
For equality, the two CAST objects must have the same node data. When checking each node, we allow a custom node comparison function. Currently, the only case where we do a custom comparison is for Name nodes. For all other nodes we use their Swagger generated `__eq__` method | def xa14(YKHO, Elif):
if len(YKHO.nodes) != len(Elif.nodes):
return False
for YRbF, Q6kx in enumerate(YKHO.nodes):
FYCJ = Elif.nodes[YRbF]
if isinstance(Q6kx, av29):
GFDZ = BbWg
else:
GFDZ = lambda MxXY, cWFu: MxXY == cWFu
if not GFDZ(Q6kx, FYCJ):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n if isinstance(Elif, str):\n Elif = o7DN(Elif)\n if not isinstance(Elif, o7DN):\n return False\n return Elif.name == YKHO.name",
"def xa14(YKHO, Elif):\n return isinstance(Elif, o7DN) and all((YKHO.__dict__[KCHu] == Elif.__dict__[z1Rg] for KCHu, z1Rg in zip(YKHO._... | [
"0.7308868",
"0.7266692",
"0.7232446",
"0.71487343",
"0.7080123",
"0.7063661",
"0.7061654",
"0.7050361",
"0.70445454",
"0.70287186",
"0.70276296",
"0.70225066",
"0.7009589",
"0.69751877",
"0.6954937",
"0.69498545",
"0.69479626",
"0.69479626",
"0.69479626",
"0.69479626",
"0.69... | 0.7535174 | 0 |
Simple post request function, uses json for input and response. | def OxQo():
nPrm = QePW.data
if not nPrm:
return {'result': "Please provide input in format {'type': 'input'}"}
zgjV = qQXR.loads(nPrm)
if 'prefix' in zgjV:
Aofo = hzm0.prefix_calculator(zgjV['prefix'])
if 'infix' in zgjV:
Aofo = hzm0.infix_calculator(zgjV['infix'])
retur... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eseC():\n nPrm = QePW.get_json()\n if not nPrm:\n return (pz3A({'message': 'JSON not provided in request as param'}), 400)\n try:\n mWFP = nPrm['name']\n ZJe_ = nPrm['age']\n except:\n return (pz3A({'message': 'JSON is incorrect'}), 400)\n D3n2 = mWFP + ' is ' + str(Z... | [
"0.74614775",
"0.7436757",
"0.739477",
"0.73709846",
"0.7338646",
"0.7325362",
"0.72787756",
"0.7138586",
"0.707047",
"0.703922",
"0.7028196",
"0.70111024",
"0.7001939",
"0.69931895",
"0.69870996",
"0.69678557",
"0.6954668",
"0.6910075",
"0.6901646",
"0.686165",
"0.6828824",
... | 0.0 | -1 |
takes in a board and a ratio. returns number of horizontally adjacent pairs with that ratio | def RqEn(YKHO, iBIi, dMYj):
ewCu = 0
for rfpI in range(len(iBIi)):
for VVTb in YKHO.rowRatios(iBIi, rfpI):
try:
if VVTb == dMYj or 1 / VVTb == dMYj:
ewCu += 1
except ZeroDivisionError:
pass
return ewCu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mCkq(nTy_):\n siZ_ = oXGM(nTy_)\n if siZ_ == 0:\n return (0, 1.0)\n HNI1 = 0\n for VmPb in PWgb(nTy_.board):\n if VmPb.cellType == XuVg.wire or VmPb.cellType == XuVg.arrow:\n HNI1 += 1\n return cmp2(siZ_, HNI1)",
"def wbaH(YKHO, iBIi):\n kgDL = 0\n Z453 = [0, 0, ... | [
"0.6711522",
"0.64109415",
"0.6378943",
"0.6349899",
"0.63379866",
"0.63214374",
"0.6269248",
"0.6235203",
"0.6217655",
"0.6201234",
"0.6175524",
"0.61451703",
"0.61397654",
"0.6125125",
"0.6123171",
"0.60641086",
"0.6063562",
"0.6058753",
"0.6054581",
"0.60521144",
"0.603460... | 0.76876926 | 0 |
This function takes a DataFrame as input and returns two columns, total missing values and total missing values percentage | def YSMq(jQ3Z):
import pandas as rLdf
wjRY = jQ3Z.isnull().sum().sort_values(ascending=False)[jQ3Z.isnull().sum().sort_values(ascending=False) > 0]
DuZT = round(jQ3Z.isnull().sum().sort_values(ascending=False) / len(jQ3Z) * 100, 2)[round(jQ3Z.isnull().sum().sort_values(ascending=False) / len(jQ3Z) * 100, 2)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QtVa(jQ3Z: pd.DataFrame) -> rLdf.DataFrame:\n iVRZ = list(jQ3Z)\n KLD1 = jQ3Z.isnull().sum().sum()\n Ch3Q = jQ3Z.isnull().sum()\n Ch3Q.values\n DuZT = list()\n for YRbF in Ch3Q.values:\n DuZT.append(round(YRbF / KLD1 * 100, 2))\n G_PE = rLdf.DataFrame(list(zip(Ch3Q.values, DuZT)), c... | [
"0.81909984",
"0.8134852",
"0.8078526",
"0.79932857",
"0.7953599",
"0.7940845",
"0.79377663",
"0.791788",
"0.7801088",
"0.7752421",
"0.7748645",
"0.7748145",
"0.77123606",
"0.7627412",
"0.75388926",
"0.7457468",
"0.73886544",
"0.7287484",
"0.7262658",
"0.7212127",
"0.71726364... | 0.8610411 | 0 |
This function resets the environment to a new initial state (time = 0). Then it places the agent and exit at new random locations. It is common practice to return the observations, so that the agent can decide on the first action right after the resetting of the environment. | def SiRx(YKHO):
YKHO.time_elapsed = 0
YKHO.assassin_start_locations = YKHO.create_assassins(YKHO.num_assassins)
YKHO.assassin_locations = YKHO.assassin_start_locations
YKHO.car_location = YKHO.get_empty_cells(1)
YKHO.britney_start_location = YKHO.get_empty_cells(1)
YKHO.britney_location = YKHO.b... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def S4Vx(YKHO):\n YKHO._actions = []\n if not YKHO._fixed_init_state:\n YKHO._init_state = YKHO.observation_space.sample()\n YKHO._done = False\n YKHO._reward = 0.0\n YKHO._cum_reward = 0.0\n YKHO._info = {'actions': []}\n YKHO._action = YKHO.simulator.get_first_action()\n YKHO._acti... | [
"0.73221457",
"0.7173234",
"0.7164383",
"0.6964061",
"0.6951959",
"0.6920174",
"0.69060814",
"0.68641526",
"0.6847027",
"0.68138057",
"0.6802226",
"0.68010354",
"0.6776706",
"0.6769669",
"0.6757696",
"0.6755488",
"0.6751378",
"0.6727447",
"0.66478443",
"0.6643633",
"0.6627487... | 0.0 | -1 |
Initializer for the Provisioning Client. | def FIMM(YKHO, T1kr):
super(AzJs, YKHO).__init__(T1kr)
YKHO._polling_machine = Z6jP(T1kr) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Pntg(YKHO):\n YKHO.client = i9zE()",
"def FIMM(YKHO):\n Fv2L = _Fei.CONF.service_credentials\n ehIZ = Fv2L.os_tenant_id or Fv2L.os_tenant_name\n YKHO.nova_client = QL6W.Client(username=Fv2L.os_username, api_key=Fv2L.os_password, project_id=ehIZ, auth_url=Fv2L.os_auth_url, region_name=Fv2L.os_regi... | [
"0.6666941",
"0.64300936",
"0.6409451",
"0.6404043",
"0.63426936",
"0.61795914",
"0.6160751",
"0.61564255",
"0.61161005",
"0.60687196",
"0.6049368",
"0.60384554",
"0.6021111",
"0.601047",
"0.5997004",
"0.5982827",
"0.5980467",
"0.5967055",
"0.5966295",
"0.59599435",
"0.594564... | 0.6484868 | 1 |
Gets the Access Token using the Refresh Token | def nQXU(bzsE):
NArs = {'refresh_token': bzsE}
MOPg = {'Content-Type': 'application/json'}
geh0 = G4JS.post('https://console.cloud.vmware.com/csp/gateway/am/api/auth/api-tokens/authorize', params=NArs, headers=MOPg)
N0K8 = geh0.json()
NT__ = N0K8['access_token']
return NT__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DpaD(YKHO):\n bD7m = YKHO.create_url('api/login/refresh')\n print('URL: %s') % bD7m\n pB3N = {'refresh_token': YKHO.offref_token_userid_primary}\n Mkmy = G4JS.post(bD7m, headers={'Content-Type': 'application/json'}, data=qQXR.dumps(pB3N))\n return YKHO.extract_value('token.access_token', Mkmy)",... | [
"0.82712966",
"0.7973665",
"0.7889425",
"0.7876905",
"0.782803",
"0.7715882",
"0.76642936",
"0.7663636",
"0.76370865",
"0.760314",
"0.7596861",
"0.75575095",
"0.7492668",
"0.74888766",
"0.7445391",
"0.74252343",
"0.74190724",
"0.7408076",
"0.7392839",
"0.7362047",
"0.73602813... | 0.0 | -1 |
Gets the Reverse Proxy URL | def sroB(g9KT, CbyH, t9Ri):
zE4O = {'csp-auth-token': t9Ri}
ltpv = '{}/vmc/api/orgs/{}/sddcs/{}'.format(d0xo, g9KT, CbyH)
geh0 = G4JS.get(ltpv, headers=zE4O)
GtGV = geh0.json()
bqJ5 = GtGV['resource_config']['nsx_api_public_endpoint_url']
return bqJ5 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bqJ5(YKHO):\n return TDhU(YKHO.base_url, YKHO.kwargs.get('url', ''))",
"def jl7K(YKHO):\n Mkmy = YKHO._get(YKHO._url)\n if Mkmy.status_code == 204:\n return None\n try:\n bD7m = Mkmy.json()['proxy-ref']\n bo34.info('Connecting to proxy on {}', bD7m)\n return bD7m\n ... | [
"0.833124",
"0.8144846",
"0.7665089",
"0.7665089",
"0.7665089",
"0.7665089",
"0.7665089",
"0.7665089",
"0.713305",
"0.70923007",
"0.70887583",
"0.7013781",
"0.7003571",
"0.6984837",
"0.6975184",
"0.69682556",
"0.691298",
"0.6912442",
"0.6893643",
"0.68315333",
"0.68315333",
... | 0.0 | -1 |
Gets the configured SitetoSite VPN | def vFFN(bqJ5, t9Ri):
zE4O = {'csp-auth-token': t9Ri}
ltpv = bqJ5 + '/policy/api/v1/infra/tier-0s/vmc/locale-services/default/ipsec-vpn-services/default/sessions'
geh0 = G4JS.get(ltpv, headers=zE4O)
GtGV = geh0.json()
EJXv = geh0.status_code
if EJXv == 200:
g8WV = GtGV['results']
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BkMw(YKHO):\n return YKHO.data.get('ssl_vpn_tunnel')",
"def Nvaz(YKHO):\n return YKHO.data.get('ssl_vpn_portal')",
"def jErp(YKHO):\n return YKHO.data.get('ipsec_vpn')",
"def vWvm(YKHO):\n return h7JV(YKHO.resource.vpn_site, A_PD)",
"def IBBZ(YKHO) -> 'outputs.VpnTunnelInfoResponse':\n r... | [
"0.6820605",
"0.6665288",
"0.6531333",
"0.6471076",
"0.64335513",
"0.6167457",
"0.605297",
"0.6046925",
"0.60300887",
"0.58951396",
"0.58251494",
"0.5750193",
"0.5748513",
"0.5747545",
"0.5720987",
"0.56875694",
"0.5634536",
"0.55378556",
"0.553784",
"0.55329204",
"0.55284077... | 0.50173503 | 69 |
Creates a single SDDC Group based on a list of VM external_id. Use 'cgw' as the parameter | def ZnHV(bqJ5, t9Ri, iPvk, hE03, mUAh):
zE4O = {'csp-auth-token': t9Ri}
hGlT = bqJ5.rstrip('sks-nsxt-manager')
ltpv = hGlT + 'policy/api/v1/infra/domains/' + iPvk + '/groups/' + hE03
zgjV = {'expression': [{'member_type': 'VirtualMachine', 'external_ids': mUAh, 'resource_type': 'ExternalIDExpression'}],... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BHrG(cuiw, mWFP, JBZA=''):\n xzCw.validate_name(mWFP)\n xzCw.validate_description(JBZA)\n qTKi = dict(name=mWFP, description=JBZA)\n TsBq = JZ1r.sendpacket(cuiw, op=JZ1r.ccdlib.OP_NEWWGROUP, pld=qTKi)\n return TsBq[-1]",
"def FFAp(YKHO, czga):\n mWFP = BfDw.convert_uuid_to_es_fmt(czga['id']... | [
"0.65187174",
"0.63783795",
"0.6163267",
"0.61402875",
"0.61351126",
"0.6085843",
"0.604753",
"0.5960511",
"0.5954716",
"0.5905988",
"0.5876921",
"0.5874394",
"0.5849964",
"0.58487946",
"0.5803935",
"0.57825744",
"0.5777277",
"0.5776577",
"0.5770179",
"0.57671255",
"0.576155"... | 0.65699416 | 0 |
Returns a list of available git aliases from "git config" | def bktE(tgM5='git'):
with Hy7s.popen('{} {}'.format(tgM5, _k2_.GET_ALIASES)) as s_vh:
return list(set((str(zFiD.strip()).split('.', 2)[1] for zFiD in s_vh))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dIl_(WY3t=False):\n for H5ew in xsxZ:\n D3YA(H5ew, xsxZ[H5ew], local=WY3t)",
"def ajEs(YKHO):\n LIAQ = oRi_(dict)\n UY7Q = {}\n dZSQ = M3fK()\n for lqQH in dZSQ:\n GPtr = pCTH(lqQH)\n if 'ALIASES' in GPtr:\n for Fm0u, gqeJ in jKi7.iteritems(GPtr['ALIASES']):\n ... | [
"0.7393663",
"0.69979846",
"0.6868684",
"0.67572874",
"0.66933197",
"0.66933197",
"0.66753083",
"0.65771776",
"0.65771776",
"0.6542067",
"0.6542067",
"0.6542067",
"0.65218055",
"0.65142274",
"0.65122056",
"0.6510646",
"0.65001214",
"0.6485938",
"0.64315546",
"0.6277008",
"0.6... | 0.8687828 | 0 |
Return a full name, neatly formatted. | def e1yb(c9ua, zp3f):
eHMM = f'{c9ua} {zp3f}'
return eHMM.title() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eHMM(YKHO):\n return '%s %s' % (YKHO.first_name, YKHO.last_name)",
"def xpqj(YKHO):\n eHMM = '%s %s' % (YKHO.first_name, YKHO.last_name)\n return eHMM.strip()",
"def xpqj(YKHO):\n eHMM = '%s %s' % (YKHO.first_name, YKHO.last_name)\n return eHMM.strip()",
"def eHMM(YKHO):\n return '%s %s... | [
"0.86529046",
"0.8640114",
"0.8640114",
"0.86111355",
"0.8605745",
"0.86024046",
"0.85998344",
"0.8597777",
"0.85873055",
"0.85823303",
"0.8579586",
"0.8579586",
"0.8579586",
"0.8579586",
"0.8579586",
"0.8579586",
"0.8579586",
"0.8579586",
"0.8579586",
"0.8579586",
"0.8579586... | 0.0 | -1 |
Return a full name, neatly formatted. | def mBD8(c9ua, zp3f, w5Au=''):
if w5Au:
eHMM = f'{c9ua} {w5Au} {zp3f}'
else:
eHMM = f'{c9ua} {zp3f}'
return eHMM.title() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eHMM(YKHO):\n return '%s %s' % (YKHO.first_name, YKHO.last_name)",
"def xpqj(YKHO):\n eHMM = '%s %s' % (YKHO.first_name, YKHO.last_name)\n return eHMM.strip()",
"def xpqj(YKHO):\n eHMM = '%s %s' % (YKHO.first_name, YKHO.last_name)\n return eHMM.strip()",
"def eHMM(YKHO):\n return '%s %s... | [
"0.86529046",
"0.8640114",
"0.8640114",
"0.86111355",
"0.8605745",
"0.86024046",
"0.85998344",
"0.8597777",
"0.85873055",
"0.85823303",
"0.8579586",
"0.8579586",
"0.8579586",
"0.8579586",
"0.8579586",
"0.8579586",
"0.8579586",
"0.8579586",
"0.8579586",
"0.8579586",
"0.8579586... | 0.0 | -1 |
Get feature representations of input x for one or more layers in a given model. | def JvTu(WKvO, fKMN, C3ST):
WpYq = []
for Q1bM in fKMN:
LCb9 = C3ST.get_layer(Q1bM)
Ofoy = LCb9.output
wH6b = gKuT.shape(Ofoy).eval(session=FBiP)
hh0O = wH6b[-1]
N7cM = wH6b[1] * wH6b[2]
PE1j = gKuT.reshape(Ofoy, (N7cM, hh0O))
PE1j = gKuT.transpose(PE1j)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def carQ(WKvO, C3ST):\n bySB = []\n mwtX = WKvO\n for YRbF, yR_P in enumerate(C3ST._modules.values()):\n NVSe = yR_P(mwtX)\n bySB.append(NVSe)\n mwtX = NVSe\n return bySB",
"def o1a4(LNo8, C3ST, fhcK=None):\n if fhcK is None:\n fhcK = {'0': 'conv1_1', '5': 'conv2_1', '1... | [
"0.72858185",
"0.72786933",
"0.72717565",
"0.65237486",
"0.6448683",
"0.63641894",
"0.6283119",
"0.62692773",
"0.6258645",
"0.62294835",
"0.61880064",
"0.6156398",
"0.61245406",
"0.61204284",
"0.6096963",
"0.60843784",
"0.6059569",
"0.60376555",
"0.60232234",
"0.60232234",
"0... | 0.6831427 | 3 |
Calculate total loss using K.function | def Lvgp(LBED):
if LBED.shape != (1, K1rM, K1rM, 3):
LBED = LBED.reshape((1, K1rM, QpOD, 3))
CMHB = gKuT.function([cAKw.input], [t_ks(cAKw.input)])
return CMHB([LBED])[0].astype('float64') | {
"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.75796026",
"0.7423326",
"0.7310349",
"0.7044848",
"0.70138395",
"0.6994059",
"0.69752675",
"0.6901777",
"0.68357724",
"0.6819637",
"0.6815263",
"0.6730992",
"0.6721061",
"0.6691614",
"0.6675523",
"0.6673127",
"0.6663264",
"0.6661497",
"0.66347814",
"0.6613306",
"0.6582196"... | 0.0 | -1 |
Check each table name in `table_names` for rows with invalid foreign key references. This method is intended to be used in conjunction with `disable_constraint_checking()` and `enable_constraint_checking()`, to determine if rows with invalid references were entered while constraint checks were off. | def fB78(YKHO, MfgE=None):
with YKHO.cursor() as N1p7:
if MfgE is None:
MfgE = YKHO.introspection.table_names(N1p7)
for GTA_ in MfgE:
fPeD = YKHO.introspection.get_primary_key_column(N1p7, GTA_)
if not fPeD:
continue
jpc5 = YKHO.introsp... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fB78(YKHO, MfgE=None):\n N1p7 = YKHO.cursor()\n if MfgE is None:\n MfgE = YKHO.introspection.table_names(N1p7)\n for GTA_ in MfgE:\n fPeD = YKHO.introspection.get_primary_key_column(N1p7, GTA_)\n if not fPeD:\n continue\n eQfp = YKHO.introspection.get_key_columns... | [
"0.73750395",
"0.64287865",
"0.6294578",
"0.61988044",
"0.6059948",
"0.5913323",
"0.5848447",
"0.5846962",
"0.5770912",
"0.56886804",
"0.56535727",
"0.56199706",
"0.55798817",
"0.5578209",
"0.5573421",
"0.5559298",
"0.555829",
"0.555097",
"0.5550888",
"0.55353653",
"0.5497905... | 0.74893206 | 0 |
Adds quotes to value. Use it for citation | def QJFU(YKHO, Fg_i):
YKHO.label_widget.value = ''
mRuT = YKHO.frompdf_widget.value
Aofo = ''.join(ZbWC.split('[\\r\\n]+', mRuT.strip()))
Aofo = '"{}",\n '.format(Aofo)
YKHO.output_widget.value = Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NCC9(YKHO, BWXx):\n if BWXx is None:\n return 'null'\n return \"'%s'\" % BWXx",
"def NCC9(YKHO, wEf2):\n return \"'%s'\" % wEf2",
"def Vnwn(Emd4, BWXx):\n return \"'{0}'\".format(BWXx.replace(\"'\", \"''\"))",
"def GXXT(YKHO, BWXx):\n XUxL = '\"'\n if '\"' in BWXx:\n if \"... | [
"0.7420176",
"0.73899484",
"0.71770304",
"0.7138648",
"0.7138648",
"0.6972397",
"0.6670368",
"0.6667197",
"0.6663819",
"0.6619975",
"0.64876205",
"0.64316684",
"0.64078385",
"0.6377643",
"0.636824",
"0.63673854",
"0.6366287",
"0.6363979",
"0.63227904",
"0.6316541",
"0.6306380... | 0.0 | -1 |
Close the SSH agent connection. | def DDI8(YKHO):
if YKHO.conn is not None:
YKHO.conn.close()
YKHO.conn = None
YKHO.keys = () | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wZdl():\n ddOd.close",
"def JzLF(p4_k):\n p4_k.close()",
"def DDI8(YKHO):\n YKHO.ssh.close()",
"def HuIG(YKHO):\n YKHO.ssh.close()",
"def DDI8(YKHO):\n YKHO.ssh_client.close()\n YKHO.ssh_client = None",
"def PZgw(YKHO):\n try:\n YKHO.stdout.close()\n YKHO.stdin.clos... | [
"0.79462683",
"0.7762207",
"0.77333504",
"0.7671377",
"0.75451946",
"0.753882",
"0.75332403",
"0.7509213",
"0.75073355",
"0.708617",
"0.7051138",
"0.70140857",
"0.6964509",
"0.69612426",
"0.689246",
"0.68393207",
"0.683422",
"0.68176293",
"0.6816111",
"0.68014574",
"0.6777333... | 0.0 | -1 |
Returns the mean total proxy value across agents | def HCt5(C3ST):
jtQa = [YWSi.proxy for YWSi in C3ST.schedule.agents if YWSi.type == 'individual']
return oyIN.mean(jtQa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QuEc(YKHO, ezWE: np.ndarray) -> float:\n exwG = YKHO.get_n_active_agents()\n TlDD = 0 if exwG == 0 else oyIN.sum(ezWE) / exwG\n return TlDD",
"def S8vG(YKHO, QmN4):\n if len(YKHO.agentList) == 0:\n return 0\n m9Wo = 0\n for YWSi in YKHO.agentList:\n m9Wo += QmN4(YWSi)\n ret... | [
"0.6748592",
"0.6581208",
"0.64315546",
"0.62161297",
"0.6192648",
"0.612446",
"0.6048839",
"0.601878",
"0.5979042",
"0.58855677",
"0.5880876",
"0.5840473",
"0.58277416",
"0.57982916",
"0.5789361",
"0.57889265",
"0.5778771",
"0.5768306",
"0.57487154",
"0.5747379",
"0.57470626... | 0.81714064 | 0 |
Returns the mean goal value across agents | def vojm(C3ST):
Rf0Y = [YWSi.goal for YWSi in C3ST.schedule.agents if YWSi.type == 'individual']
return oyIN.mean(Rf0Y) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QuEc(YKHO, ezWE: np.ndarray) -> float:\n exwG = YKHO.get_n_active_agents()\n TlDD = 0 if exwG == 0 else oyIN.sum(ezWE) / exwG\n return TlDD",
"def Oree(C3ST):\n zzmu = [YWSi.goal_oc for YWSi in C3ST.schedule.agents if YWSi.type == 'individual']\n return oyIN.mean(zzmu)",
"def S8vG(YKHO, QmN4... | [
"0.7483074",
"0.7185754",
"0.7162094",
"0.6827079",
"0.6665317",
"0.66604865",
"0.6571489",
"0.65681434",
"0.65614134",
"0.6530484",
"0.65278316",
"0.64536214",
"0.6420382",
"0.6413813",
"0.6407464",
"0.6365656",
"0.635418",
"0.6340284",
"0.63317883",
"0.6327069",
"0.63177514... | 0.8057914 | 0 |
returns the mean effort across agents | def qUk3(C3ST):
i9rb = [YWSi.effort for YWSi in C3ST.schedule.agents if YWSi.type == 'individual']
return oyIN.mean(i9rb) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y9MK(YKHO):\n return sum([YWSi.agentstats.productivity for YWSi in YKHO.agents]) / len(YKHO.agents)",
"def QuEc(YKHO, ezWE: np.ndarray) -> float:\n exwG = YKHO.get_n_active_agents()\n TlDD = 0 if exwG == 0 else oyIN.sum(ezWE) / exwG\n return TlDD",
"def S8vG(YKHO, QmN4):\n if len(YKHO.agentL... | [
"0.7224849",
"0.71300256",
"0.7127436",
"0.71193707",
"0.68709755",
"0.6798368",
"0.6788025",
"0.664696",
"0.65838546",
"0.64940786",
"0.6289955",
"0.62885886",
"0.6279079",
"0.6227123",
"0.6219983",
"0.6214539",
"0.62044716",
"0.61575586",
"0.61497015",
"0.61497015",
"0.6142... | 0.74444526 | 0 |
Returns the modification state for the operand ``opnum`` belonging to the instruction at the address ``ea``. The returned state is a string that can be "r", "w", or "rw" depending on whether the operand is being read from, written to, or modified (both). | def sjmI(R3gR, Jm61):
eHNT = RDhP(R3gR)
Mkmy, yzQ0 = (eHNT & zGEc.read[Jm61], eHNT & zGEc.write[Jm61])
return (Mkmy and 'r' or '') + (yzQ0 and 'w' or '') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hCWZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'operation_state')",
"def DbVA(YKHO) -> int:\n ...",
"def jnjM(YKHO):\n return 7 & YKHO._read(IwFe.REG_RDO_OPMODE)[0]",
"def aRLP(YKHO):\n return YKHO._operationeleStatus.get_waarde()",
"def jEwG(YKHO) -> str:\n if YKHO._state is None:\n ... | [
"0.523669",
"0.52278405",
"0.5062205",
"0.49914443",
"0.4920961",
"0.4918602",
"0.49156177",
"0.485159",
"0.47865036",
"0.4779414",
"0.4756799",
"0.4740336",
"0.47345883",
"0.47057217",
"0.4700993",
"0.46653408",
"0.46521056",
"0.46477056",
"0.46365714",
"0.46229312",
"0.4620... | 0.7753566 | 0 |
Return the offspring of simulated binary crossover on the candidates. This function performs simulated binary crosssover, following the implementation in NSGAII | def s4Ai(tuKI, UB_b, NM9y, qIxc):
epuW = qIxc.setdefault('sbx_etac', 10)
T8Kn = qIxc['_bounder']
W3vu = jth9.copy(NM9y)
zXrY = jth9.copy(UB_b)
for YRbF, (r8hN, Csk6, Ae2G, oVTz) in enumerate(zip(UB_b, NM9y, T8Kn.lower_bound, T8Kn.upper_bound)):
try:
if r8hN > Csk6:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V4nX(YKHO, BEuN):\n TMKo = list(range(0, len(BEuN)))\n XJ7N = oRi_(list)\n for YRbF in range(YKHO.lambda_):\n Cwt5 = tuKI.random()\n if Cwt5 < YKHO.cxpb:\n oZf4, YBiN = tuKI.sample(TMKo, 2)\n uYDe, D1zF, IKOF, z87Q = YKHO.cx(ind1=list(BEuN[oZf4][0]), ind2=list(BEuN[... | [
"0.6436551",
"0.6191533",
"0.61190635",
"0.6116888",
"0.60274947",
"0.59859604",
"0.59849286",
"0.5742664",
"0.5723038",
"0.56939286",
"0.5682556",
"0.56670135",
"0.5612662",
"0.55957115",
"0.5583757",
"0.5535816",
"0.55116963",
"0.550849",
"0.5486287",
"0.5422911",
"0.541323... | 0.6392256 | 1 |
Function to create and setup multiple loggers. | def WWrj(mWFP, R5Jy, ABDL=G9jH.INFO):
DCgT = G9jH.FileHandler(R5Jy)
DCgT.setFormatter(uaPq)
bo34 = G9jH.getLogger(mWFP)
bo34.setLevel(ABDL)
bo34.addHandler(DCgT)
return bo34 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yb66(YKHO):\n YKHO.root_logger = tqPq(None)",
"def FUyv(bo34, *qIxc, **B2fa):\n try:\n import graypy\n from csh_fantasy_bot.config import GELF_URL\n RKD7.info(f'Gelf url: {GELF_URL}')\n if GELF_URL:\n DCgT = graypy.GELFUDPHandler(GELF_URL, 12201, facility='fantasy... | [
"0.8128069",
"0.76576793",
"0.7652207",
"0.7652207",
"0.7489811",
"0.734818",
"0.7255938",
"0.7098721",
"0.7072757",
"0.68581",
"0.680208",
"0.67765284",
"0.6766302",
"0.6766063",
"0.6758553",
"0.66974974",
"0.668861",
"0.6665033",
"0.6664238",
"0.66265935",
"0.6565382",
"0... | 0.0 | -1 |
Determine the path to the settings file based on the full path of the scene file. N.B. This function is duplicated in render_submit.py | def RJsz(F6jf, ZI14=''):
if Hy7s.path.isfile(F6jf):
G7TP, kYBD = Hy7s.path.split(F6jf)
RJsz = r_xy.sanitize(kYBD, replace='_') + ZI14
return Hy7s.path.join('/var/tmp', RJsz)
else:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kf3C(YKHO):\n return YKHO._settings_filepath",
"def tlR1():\n pmON = Hy7s.path.join(rJ2X.getEnv('TOOLBOSCORE_ROOT'), 'etc', tqMU)\n return pmON",
"def K24y():\n pmON = Hy7s.path.join(Hy7s.getcwd(), tqMU)\n return pmON",
"def RrNC(YKHO):\n return YKHO.SETTINGS_FILE",
"def gyEw():\n ... | [
"0.70382404",
"0.7037462",
"0.6904227",
"0.6774152",
"0.67069155",
"0.6635828",
"0.6623362",
"0.6610955",
"0.65951127",
"0.6568721",
"0.65273345",
"0.65027314",
"0.6469529",
"0.6375138",
"0.63090324",
"0.6306729",
"0.62962407",
"0.6283566",
"0.6256663",
"0.61932904",
"0.61931... | 0.6936356 | 2 |
Test BaseModel getters / setters | def UcIn(YKHO):
C3ST = vDXU()
C3ST.set_data({'one': -1, 'two': -1})
C3ST.set_data({'two': 2})
C3ST.add_data({'one': 1, 'three': 3, 'five': 5})
C3ST.set_data('four', 4)
C3ST.unset_data('five')
YKHO.assertEqual(C3ST.get_data(), {'one': 1, 'two': 2, 'three': 3, 'four': 4})
YKHO.assertEqual(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KW_N(YKHO):\n YKHO.assertTrue(hasattr(KcDH, '__init__'))\n YKHO.assertTrue(hasattr(KcDH, 'save'))\n YKHO.assertTrue(hasattr(KcDH, 'to_dict'))",
"def KW_N(YKHO):\n YKHO.assertTrue(hasattr(KcDH, '__init__'))\n YKHO.assertTrue(hasattr(KcDH, 'save'))\n YKHO.assertTrue(hasattr(KcDH, 'to_dict'))"... | [
"0.77777284",
"0.77777284",
"0.74242145",
"0.73695093",
"0.7297911",
"0.7284195",
"0.7205277",
"0.71720284",
"0.71720284",
"0.71720284",
"0.71177024",
"0.7091511",
"0.70346373",
"0.6985106",
"0.68919957",
"0.68919957",
"0.6867048",
"0.686647",
"0.68399096",
"0.68237364",
"0.6... | 0.6158261 | 90 |
Create Geojson for stations and extract bikes. | def kVAR(Oj45):
nvWN = []
ELec = []
for gnAD in Oj45:
F1vN = {}
F1vN['geometry'] = {'type': 'Point', 'coordinates': [gnAD['lat'], gnAD['lng']]}
F1vN['type'] = 'Feature'
F1vN['properties'] = {'name': gnAD['name'], 'maintenance': gnAD['maintenance'], 'bike_racks': gnAD['bike_ra... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oUGd(ELec, e1c2):\n MiVY = {}\n MiVY['geometry'] = {'type': 'Point', 'coordinates': [ELec['lat'], ELec['lng']]}\n MiVY['type'] = 'Feature'\n MiVY['properties'] = {'address': ELec['address'], 'name': ELec['name'], 'maintenance': ELec['maintenance'], 'state': ELec['bike_list'][0]['state'], 'bike_type... | [
"0.76509506",
"0.6381559",
"0.6263328",
"0.62222415",
"0.62190366",
"0.61449355",
"0.61404085",
"0.6135991",
"0.6135754",
"0.6127215",
"0.60915935",
"0.6084233",
"0.6082153",
"0.6075362",
"0.6054771",
"0.60214937",
"0.6015998",
"0.60004073",
"0.600025",
"0.5992756",
"0.598646... | 0.827819 | 0 |
elem_ind2D = (m, n) elem_ind = i i = mM + n | def bRzq(YKHO, jLgU: int):
assert 0 <= jLgU < YKHO.elem_count
return divmod(jLgU, YKHO.M) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VxqZ(ywwl, YRbF, r845):\n return YRbF + ywwl * r845",
"def VxqZ(ywwl, YRbF, r845):\n return YRbF + ywwl * r845",
"def oEnj(ylpH, vvpC, MUPk):\n r8hN, exwG = ylpH\n return vvpC * (exwG - 1) + MUPk - 1",
"def D3bM(ywwl, pdhd):\n r845 = int(pdhd / ywwl)\n YRbF = pdhd - ywwl * r845\n ret... | [
"0.74982476",
"0.7478788",
"0.71201",
"0.7061878",
"0.70025486",
"0.68671924",
"0.6683225",
"0.6544297",
"0.6531199",
"0.6526163",
"0.65236044",
"0.647758",
"0.64634335",
"0.6416639",
"0.6413579",
"0.63633186",
"0.6340548",
"0.6268151",
"0.62279546",
"0.62127465",
"0.6157242"... | 0.76489115 | 0 |
Compute "confidence" values for predictions when classifier has predict_proba() method | def DP70(AmnI, gGnb, P7rX=1):
JOUx = []
sUde = 1 - P7rX
hkxX = AmnI.predict_proba(gGnb)
for YRbF in range(len(hkxX)):
c85H = hkxX[YRbF][P7rX]
FTOR = hkxX[YRbF][sUde]
if c85H > FTOR:
JOUx.append(c85H)
else:
JOUx.append(-FTOR)
return JOUx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KR85(M_NZ, Z5wO):\n if hasattr(M_NZ, 'predict_proba'):\n JxU2 = M_NZ.predict_proba(Z5wO)[:, 1]\n else:\n JxU2 = M_NZ.decision_function(Z5wO)\n JxU2 = (JxU2 - JxU2.min()) / (JxU2.max() - JxU2.min())\n return JxU2",
"def KR85(EcVT, AmnI):\n JxU2 = oyIN.dot(EcVT, AmnI['coef_'].T... | [
"0.78599864",
"0.76722443",
"0.75479054",
"0.75479054",
"0.74954253",
"0.74941677",
"0.74756587",
"0.7423472",
"0.7420259",
"0.7420259",
"0.7420259",
"0.7420259",
"0.7420259",
"0.74199444",
"0.74164474",
"0.74053234",
"0.7402201",
"0.73783094",
"0.7378167",
"0.73748726",
"0.7... | 0.75504214 | 2 |
Converts quaternion to a 4x4 rotation matrix. \n | def UMLi(vexM):
A3Vt = oyIN.array([[vexM[0] ** 2 + vexM[1] ** 2 - vexM[2] ** 2 - vexM[3] ** 2, 2 * (vexM[1] * vexM[2] - vexM[0] * vexM[3]), 2 * (vexM[0] * vexM[2] + vexM[1] * vexM[3]), 0], [2 * (vexM[1] * vexM[2] + vexM[0] * vexM[3]), vexM[0] ** 2 - vexM[1] ** 2 + vexM[2] ** 2 - vexM[3] ** 2, 2 * (vexM[2] * vexM[3]... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qiM5(vexM):\n WKvO, LVAh, epBp, yzQ0 = vexM\n yjMy = 2 * WKvO * WKvO\n YvNL = 2 * LVAh * LVAh\n CyjD = 2 * epBp * epBp\n n8rh = 2 * WKvO * LVAh\n bxgg = 2 * yzQ0 * epBp\n gxoQ = 2 * epBp * WKvO\n xQlz = 2 * yzQ0 * LVAh\n meEN = 2 * LVAh * epBp\n tQe1 = 2 * yzQ0 * WKvO\n zNiy = ... | [
"0.8008442",
"0.79570365",
"0.7935745",
"0.786393",
"0.78382283",
"0.777238",
"0.77721983",
"0.77713895",
"0.7760976",
"0.7694623",
"0.7682415",
"0.761593",
"0.7590812",
"0.75442874",
"0.75410086",
"0.7527083",
"0.752523",
"0.7497423",
"0.74917567",
"0.7448185",
"0.74189496",... | 0.7496574 | 18 |
Number of antennas in array. | def nK6L(YKHO):
return YKHO.uvdata.get_ants().shape[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qmxa(YKHO):\n return len(YKHO.aisles)",
"def Tecz(YKHO):\n return len(YKHO.neighbor_array)",
"def t892(YKHO) -> int:\n ...",
"def szAg(YKHO):\n return YKHO._n",
"def szAg(YKHO) -> int:\n return len(YKHO.array)",
"def szAg(YKHO) -> int:\n return len(YKHO.array)",
"def W32W(YKHO):\n... | [
"0.70930403",
"0.70867753",
"0.68826985",
"0.67389685",
"0.6718848",
"0.67163527",
"0.6697514",
"0.6680307",
"0.6641919",
"0.65802646",
"0.6553166",
"0.6547862",
"0.65384316",
"0.6524434",
"0.6483178",
"0.64646286",
"0.64617056",
"0.64501685",
"0.64182323",
"0.64180106",
"0.6... | 0.0 | -1 |
Turns the given iterable into chunks of the specified size, which is 100 by default since that's what Telegram uses the most. | def eHxA(OxJJ, zNig=100):
WhY1 = iter(OxJJ)
zNig -= 1
for sdCG in WhY1:
yield Hs6x.chain([sdCG], Hs6x.islice(WhY1, zNig)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eHxA(OxJJ, zNig=100):\n oHE7 = iter(OxJJ)\n yOAJ = list(Hs6x.islice(oHE7, zNig))\n while yOAJ:\n yield yOAJ\n yOAJ = list(Hs6x.islice(oHE7, zNig))",
"def eHxA(OxJJ, zNig=1000):\n WhY1 = iter(OxJJ)\n while True:\n yOAJ = tuple(Hs6x.islice(WhY1, zNig))\n if not yOAJ:\... | [
"0.8645834",
"0.8468951",
"0.83972996",
"0.8316224",
"0.8307323",
"0.8290281",
"0.8274054",
"0.8274054",
"0.82468164",
"0.82306474",
"0.8175783",
"0.81366825",
"0.81296444",
"0.8020038",
"0.7993659",
"0.7962937",
"0.789002",
"0.78770983",
"0.7840913",
"0.7837973",
"0.78368336... | 0.8327635 | 3 |
Returns `True` if the given object looks like a list. Checking ``if hasattr(obj, '__iter__')`` and ignoring ``str/bytes`` is not enough. Things like ``open()`` are also iterable (and probably many other things), so just support the commonly known listlike objects. | def Kuz2(YEnM):
return isinstance(YEnM, (list, tuple, set, dict, YJiN)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Kuz2(YEnM):\n return isinstance(YEnM, iu5r) and (not isinstance(YEnM, jUrF + (iauG,)))",
"def Lm1b(YEnM):\n return isinstance(YEnM, g760.Iterable) and (not isinstance(YEnM, jUrF))",
"def gVDW(YEnM):\n if SytQ(YEnM):\n return isinstance(YEnM, list)\n else:\n return False",
"def L... | [
"0.86264974",
"0.8623177",
"0.8529739",
"0.8395783",
"0.8296981",
"0.82670456",
"0.8230345",
"0.81262213",
"0.7997673",
"0.7786635",
"0.76466584",
"0.75253475",
"0.7519553",
"0.751897",
"0.7510236",
"0.74138093",
"0.73777515",
"0.7359684",
"0.73348224",
"0.7319282",
"0.723322... | 0.8453226 | 3 |
Turns object into tuple for insertion to the database. | def Rjb2(YKHO):
U5bT = []
for AU_5 in YKHO.column_definitions:
U5bT.append(YKHO.pyToSQL[YKHO.column_definitions[AU_5][0]](YKHO.__getattribute__('get' + AU_5)()))
return tuple(U5bT) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XR1G(YEnM):\n if isinstance(YEnM, (str, bytes)):\n return (YEnM,)\n else:\n try:\n return tuple(YEnM)\n except:\n return (YEnM,)",
"def YElZ(YEnM):\n if isinstance(YEnM, type):\n raise ValueError('astuple() should be called on dataclass instances, no... | [
"0.7336043",
"0.70420027",
"0.70420027",
"0.68920344",
"0.66430664",
"0.65245414",
"0.6450202",
"0.64083785",
"0.6389137",
"0.6373767",
"0.6365538",
"0.6350017",
"0.6343506",
"0.624521",
"0.62405443",
"0.61955446",
"0.61396074",
"0.61295193",
"0.60969096",
"0.60848045",
"0.60... | 0.0 | -1 |
Returns the column name of the primary key in this table. | def EZlw(YKHO):
for AU_5 in YKHO.__class__.column_definitions:
if 'PRIMARY KEY' in YKHO.__class__.column_definitions[AU_5][1]:
return AU_5 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qSUW(YKHO):\n return YKHO._primary_key",
"def NHoH(YKHO):\n return YKHO.__primary_key__",
"def axGc(YKHO):\n if YKHO._primarykey:\n return YKHO._get_field_name(YKHO._primarykey)\n return None",
"def xAfl(YKHO) -> str:\n return qe4Y.get(YKHO, 'primary_key')",
"def xAfl(YKHO) -> str... | [
"0.8490346",
"0.830746",
"0.79436415",
"0.7856939",
"0.7856939",
"0.78511137",
"0.7780683",
"0.773422",
"0.7696401",
"0.76099706",
"0.76057035",
"0.75622505",
"0.7557996",
"0.7536841",
"0.75348836",
"0.75316584",
"0.74752295",
"0.74628514",
"0.74398774",
"0.74345183",
"0.7414... | 0.79531866 | 2 |
Returns the value of what's the primary key for this object. | def SJ0u(YKHO):
for AU_5 in YKHO.__class__.column_definitions:
if 'PRIMARY KEY' in YKHO.__class__.column_definitions[AU_5][1]:
return YKHO.__getattribute__('get' + AU_5)() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ikEn(YKHO):\n return YKHO.get(YKHO.__primary_key__)",
"def xAfl(YKHO):\n return YKHO[YKHO._primary_key]",
"def ycai(YKHO):\n return YKHO.primary_key",
"def xAfl(YKHO) -> str:\n return qe4Y.get(YKHO, 'primary_key')",
"def xAfl(YKHO) -> str:\n return qe4Y.get(YKHO, 'primary_key')",
"def ... | [
"0.91233146",
"0.8926805",
"0.8871674",
"0.88522446",
"0.88522446",
"0.8837838",
"0.88067603",
"0.879059",
"0.86811566",
"0.83930725",
"0.83146423",
"0.830408",
"0.82738394",
"0.82582223",
"0.820938",
"0.81881225",
"0.8105174",
"0.80931544",
"0.8090795",
"0.8088844",
"0.80675... | 0.8422924 | 9 |
The ID of the site | def COo8(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'site_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def COo8(YKHO) -> str:\n return qe4Y.get(YKHO, 'site_id')",
"def COo8(YKHO):\n return YKHO._site_id",
"def COo8(YKHO) -> int:\n return YKHO._site_id",
"def COo8(YKHO):\n return YKHO.properties.get('SiteId', None)",
"def COo8(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'site_id')",
"... | [
"0.8387246",
"0.8215419",
"0.8093897",
"0.80022097",
"0.7807816",
"0.7807816",
"0.7605593",
"0.7583011",
"0.74623317",
"0.74623317",
"0.74623317",
"0.74186975",
"0.73834753",
"0.73834753",
"0.73834753",
"0.73770946",
"0.7326963",
"0.7255556",
"0.7253143",
"0.72276515",
"0.719... | 0.7668791 | 6 |
The type of the link. | def type(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'type') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mSc9(YKHO):\n return YKHO.data['link_type']",
"def vbXu(YKHO):\n return YKHO.Type",
"def z9hr(YKHO):\n return YKHO.data['link_type']",
"def type(YKHO):\n if YKHO.link_filter:\n return Z9rn.COMMENT\n return YKHO.kwargs.get('type', YKHO.request.GET.get('type', YKHO.default_type)) or Y... | [
"0.9119603",
"0.8403535",
"0.76738065",
"0.7520035",
"0.7289928",
"0.7192562",
"0.7187559",
"0.71532744",
"0.71532744",
"0.70532805",
"0.70127976",
"0.6999293",
"0.6970425",
"0.6964809",
"0.6963982",
"0.69522864",
"0.6938582",
"0.6938582",
"0.6938582",
"0.6922489",
"0.6922489... | 0.0 | -1 |
Get an existing Link resource's state with the given name, id, and optional extra properties used to qualify the lookup. | def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None) -> 'Link':
VKhi = qe4Y.ResourceOptions.merge(VKhi, qe4Y.ResourceOptions(id=id))
r6DL = tpON.__new__(tpON)
r6DL.__dict__['bandwidth'] = None
r6DL.__dict__['description'] = None
r6DL.__dict__['global_network_id'] =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None, mWFP: Optional[pulumi.Input[str]]=None, yiD6: Optional[pulumi.Input[str]]=None, TRLE: Optional[pulumi.Input[str]]=None, NPt0: Optional[pulumi.Input[str]]=None, Oz_B: Optional[pulumi.Input[str]]=None) -> 'LinkedService':\n VK... | [
"0.6158356",
"0.6032169",
"0.5784275",
"0.5665261",
"0.5551494",
"0.5480554",
"0.5411181",
"0.54001766",
"0.5369248",
"0.53645486",
"0.5350843",
"0.5305326",
"0.5302464",
"0.5296947",
"0.5292926",
"0.5291315",
"0.52906746",
"0.5289723",
"0.527561",
"0.52693725",
"0.52672255",... | 0.54690194 | 6 |
The Amazon Resource Name (ARN) of the link. | def rAnf(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'link_arn') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')",
"def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')",
"def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')",
"def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')",
"def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')",
"def h... | [
"0.7347214",
"0.7347214",
"0.7347214",
"0.7347214",
"0.7347214",
"0.7347214",
"0.7347214",
"0.7347214",
"0.7347214",
"0.7347214",
"0.7347214",
"0.7347214",
"0.7347214",
"0.7347214",
"0.7347214",
"0.7347214",
"0.7347214",
"0.72982347",
"0.72711205",
"0.7135795",
"0.7135795",
... | 0.8264349 | 0 |
The ID of the link. | def fE5u(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'link_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fE5u(YKHO) -> str:\n return qe4Y.get(YKHO, 'link_id')",
"def fE5u(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'link_id')",
"def fE5u(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'link_id')",
"def id(YKHO):\n return YKHO._zone['selfLink']",
"def zsfu(YKHO, QZnA):\n return... | [
"0.89826006",
"0.842408",
"0.82106686",
"0.7690147",
"0.76528895",
"0.75823194",
"0.75429654",
"0.7516603",
"0.7467302",
"0.74486554",
"0.74486554",
"0.74389",
"0.742296",
"0.7417236",
"0.7410301",
"0.7402883",
"0.7369145",
"0.7369145",
"0.7369145",
"0.7369145",
"0.7369145",
... | 0.84540796 | 1 |
The ID of the site | def COo8(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'site_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def COo8(YKHO) -> str:\n return qe4Y.get(YKHO, 'site_id')",
"def COo8(YKHO):\n return YKHO._site_id",
"def COo8(YKHO) -> int:\n return YKHO._site_id",
"def COo8(YKHO):\n return YKHO.properties.get('SiteId', None)",
"def COo8(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'site_id')",
"d... | [
"0.8387246",
"0.8215419",
"0.8093897",
"0.80022097",
"0.7668791",
"0.7668791",
"0.7605593",
"0.7583011",
"0.74623317",
"0.74623317",
"0.74623317",
"0.74186975",
"0.73834753",
"0.73834753",
"0.73834753",
"0.73770946",
"0.7326963",
"0.7255556",
"0.7253143",
"0.72276515",
"0.719... | 0.7807816 | 4 |
The type of the link. | def type(YKHO) -> qe4Y.Output[h8nf[str]]:
return qe4Y.get(YKHO, 'type') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mSc9(YKHO):\n return YKHO.data['link_type']",
"def vbXu(YKHO):\n return YKHO.Type",
"def z9hr(YKHO):\n return YKHO.data['link_type']",
"def type(YKHO):\n if YKHO.link_filter:\n return Z9rn.COMMENT\n return YKHO.kwargs.get('type', YKHO.request.GET.get('type', YKHO.default_type)) or Y... | [
"0.9119603",
"0.8403535",
"0.76738065",
"0.7520035",
"0.7289928",
"0.7192562",
"0.7187559",
"0.71532744",
"0.71532744",
"0.70532805",
"0.70127976",
"0.6999293",
"0.6970425",
"0.6964809",
"0.6963982",
"0.69522864",
"0.6938582",
"0.6938582",
"0.6938582",
"0.6922489",
"0.6922489... | 0.0 | -1 |
String representation of the object for debug purposes | def wHJl(YKHO):
return 'Birthday(day={}, month={})'.format(YKHO.day, YKHO.month) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHJl(YKHO) -> str:\n return YKHO.debug()",
"def zAg0(YKHO):\n return str(YKHO.__class__) + ': ' + str(YKHO.__dict__)",
"def zAg0(YKHO):\n return str(YKHO.__class__) + ': ' + str(YKHO.__dict__)",
"def zAg0(YKHO):\n return str(YKHO.__class__) + ': ' + str(YKHO.__dict__)",
"def zAg0(YKHO):\n ... | [
"0.8246293",
"0.8244232",
"0.8244232",
"0.8244232",
"0.8244232",
"0.8244232",
"0.8244232",
"0.8244232",
"0.8244232",
"0.8244232",
"0.8244232",
"0.8244232",
"0.8244232",
"0.8244232",
"0.8244232",
"0.8244232",
"0.8244232",
"0.8244232",
"0.8244232",
"0.8244232",
"0.8244232",
"... | 0.0 | -1 |
Break lst into nsized chunks | def yOAJ(YKHO, yv6U, exwG):
return [yv6U[YRbF:YRbF + exwG] for YRbF in Ni9Y(0, len(yv6U), exwG)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OBJS(yv6U, exwG):\n return [yv6U[YRbF::exwG] for YRbF in range(exwG)]",
"def OBJS(yv6U, exwG):\n return [yv6U[YRbF::exwG] for YRbF in range(exwG)]",
"def yOAJ(YKHO, yv6U, exwG):\n return [yv6U[YRbF:YRbF + exwG] for YRbF in Ni9Y(0, len(yv6U), exwG)]",
"def eHxA(yv6U, exwG):\n return [yv6U[YRbF... | [
"0.79860985",
"0.7890278",
"0.781917",
"0.7693417",
"0.76829594",
"0.76720446",
"0.765128",
"0.7650973",
"0.7633002",
"0.76225334",
"0.76184946",
"0.76184946",
"0.7613311",
"0.75902617",
"0.7581178",
"0.75767297",
"0.75767124",
"0.75716496",
"0.7562659",
"0.755811",
"0.755274... | 0.779937 | 3 |
Combines atom names and coordinates of two given structure dictionaries. | def gzes(YKHO, tXH2, nrKm=False, LPgX=['C', 'O']):
THjP = LPgX[0]
Pzc0 = LPgX[1]
PT8s = []
mOeG = []
if nrKm:
for q3uz in tXH2.atom_coors:
PT8s.append(Pzc0)
mOeG.append(q3uz)
for q3uz in YKHO.atom_coors:
PT8s.append(THjP)
mOeG.append(q3... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W63P(LFlW, _tIi):\n Csk6 = {}\n for XP5J in LFlW:\n Csk6[XP5J['name']] = XP5J\n for XP5J in _tIi:\n Csk6[XP5J['name']] = XP5J\n Aofo = []\n for bGrB, Ty9i in Csk6.items():\n Aofo.append(Ty9i)\n return Aofo",
"def yQxF(WKvO, LVAh):\n epBp = {**WKvO, **LVAh}\n print... | [
"0.60011405",
"0.5956422",
"0.58072096",
"0.5769915",
"0.57676977",
"0.5755185",
"0.56202334",
"0.5515063",
"0.5442567",
"0.54170626",
"0.5412185",
"0.5407041",
"0.53877604",
"0.5355615",
"0.5341961",
"0.53410107",
"0.533029",
"0.5329516",
"0.5324219",
"0.53234786",
"0.529538... | 0.0 | -1 |
Split first name and last name from fullname. | def BNE5(mWFP):
mWFP = str(mWFP)
mWFP = mWFP.replace(' ', ' ')
if len(mWFP.split()) == 2:
if mWFP.split()[0].endswith('.') and mWFP.split()[1].endswith('.'):
return ''
return mWFP
mWFP = mWFP.split(',')[0]
if mWFP.startswith('Hon.'):
mWFP = mWFP[5:]
if mWFP.s... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a4YX(mWFP):\n d6pt = mWFP.find(' ')\n IznC = mWFP[:d6pt]\n dW_5 = mWFP[d6pt + 1:]\n return (IznC, dW_5)",
"def QWQX(mWFP):\n c9ua = mWFP.split(',')[1].strip()\n zp3f = mWFP.split(',')[0].strip()\n return (c9ua, zp3f)",
"def WjVg(b4PG):\n zp3f, c9ua = [GIN8.strip() for GIN8 in b4PG.s... | [
"0.8013601",
"0.7948287",
"0.7678037",
"0.7192762",
"0.7164464",
"0.71099573",
"0.69859856",
"0.697226",
"0.6826892",
"0.6823915",
"0.68178654",
"0.68163866",
"0.6793819",
"0.67778003",
"0.67720926",
"0.6762364",
"0.67575777",
"0.6736659",
"0.6723094",
"0.6722244",
"0.6716977... | 0.0 | -1 |
Converts 3d image to grayscale | def IeP5(R98c):
Y0mG = oyIN.sum(oyIN.abs(R98c), axis=0)
Grnf = oyIN.percentile(Y0mG, 99)
jN4Q = oyIN.min(Y0mG)
Y0mG = oyIN.clip((Y0mG - jN4Q) / (Grnf - jN4Q), 0, 1)
Y0mG = oyIN.expand_dims(Y0mG, axis=0)
return Y0mG | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qx_8(LNo8: pygame.Surface):\n ezWE = a9eO.surfarray.pixels3d(LNo8)\n ezWE = ezWE.dot([0.298, 0.587, 0.114])[:, :, None].repeat(3, axis=2)\n return a9eO.surfarray.make_surface(ezWE)",
"def zI1D(LNo8):\n return oyIN.dot(LNo8[..., :3], [0.299, 0.587, 0.114])",
"def tmqJ(VXjJ):\n return VXjJ.con... | [
"0.7802385",
"0.7323168",
"0.71231484",
"0.7065223",
"0.7065223",
"0.7039095",
"0.7037012",
"0.7024911",
"0.69849724",
"0.6969157",
"0.6969157",
"0.69574565",
"0.69574565",
"0.69574565",
"0.69574565",
"0.69574565",
"0.693946",
"0.6938995",
"0.69082934",
"0.69082934",
"0.69082... | 0.6313868 | 97 |
Apply heatmap on image | def bONf(IB2U, YDYE, GwBX):
YDzg = jXU_.get_cmap(GwBX)
Lrks = YDzg(YDYE)
Y4Ek = jth9.copy(Lrks)
Y4Ek[:, :, 3] = 0.4
Y4Ek = hnIv.fromarray((Y4Ek * 255).astype(oyIN.uint8))
Lrks = hnIv.fromarray((Lrks * 255).astype(oyIN.uint8))
x65g = hnIv.new('RGBA', IB2U.size)
x65g = hnIv.alpha_composite... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q4Kg(VXjJ, TJdH, Y5YY):\n p6AN = ZhPI(VXjJ, TJdH, Y5YY)\n BQAG = oyIN.zeros_like(VXjJ[:, :, 0]).astype(oyIN.float)\n BQAG = FhkR(BQAG, p6AN)\n return BQAG",
"def Y4Ek(YKHO):\n Ud7_ = oyIN.array(YKHO.__data)\n cf3u.imshow(oyIN.flipud(Ud7_.T), extent=[YKHO.__tstart, YKHO.__tend, YKHO.__xstart... | [
"0.73253995",
"0.7098753",
"0.70961654",
"0.70492476",
"0.6936765",
"0.6936133",
"0.6908206",
"0.6893836",
"0.6890831",
"0.688557",
"0.686824",
"0.6857539",
"0.67646223",
"0.67637014",
"0.67606115",
"0.6737882",
"0.6722658",
"0.67226285",
"0.6639912",
"0.66233903",
"0.6618340... | 0.0 | -1 |
Adds a word to the deque. If the push would make the deque larger than k, then the oldest element is removed. Returns True if the buffer is full | def _jXH(YKHO, GIN8):
if len(YKHO._deque) == YKHO.k:
YKHO._deque.popleft()
YKHO._deque.append(GIN8)
return len(YKHO._deque) == YKHO.k | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _jXH(YKHO, H5ew):\n if YKHO.length > len(YKHO.list):\n YKHO.list.append(H5ew)\n return True\n return False",
"def _jXH(YKHO, G1Hx):\n YKHO.heap.append(G1Hx)\n YKHO.balance_up()",
"def VhQ3(YKHO, BWXx):\n if YKHO.isFull():\n return False\n YKHO.a[YKHO.end] = BWXx\n ... | [
"0.606054",
"0.5908371",
"0.5760979",
"0.56699896",
"0.55504245",
"0.5539821",
"0.55396754",
"0.547074",
"0.5466584",
"0.539217",
"0.5381786",
"0.53773665",
"0.53762317",
"0.5370049",
"0.5352664",
"0.534908",
"0.53480184",
"0.53267914",
"0.5312768",
"0.53012156",
"0.5297852",... | 0.83562505 | 0 |
Returns a ktuple containing the contents of self._deque. | def kGys(YKHO):
return tuple((GIN8 for GIN8 in YKHO._deque)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OP2O(YKHO, H5ew):\n return YKHO.deque[H5ew]",
"def lOYw(YKHO):\n return reversed(tuple(YKHO._queue))",
"def MUE7():\n return Brvh()",
"def lOYw(YKHO):\n return reversed(tuple(YKHO._queue))",
"def BEuN(YKHO):\n return YKHO.q.deque()",
"def T7C_(YKHO):\n assert YKHO._front is not None... | [
"0.60522443",
"0.5989771",
"0.5989123",
"0.5928054",
"0.57716036",
"0.5762169",
"0.5757437",
"0.57536924",
"0.5730952",
"0.5728744",
"0.56917876",
"0.56813204",
"0.56359273",
"0.5631374",
"0.5622934",
"0.55969566",
"0.55931324",
"0.5566098",
"0.55656266",
"0.55646926",
"0.555... | 0.79476786 | 0 |
Adds w1, w2 to the dictionary. w2 follows w1. | def H2v5(YKHO, s1k6, xMw6):
tk5Y = YKHO.d
if not tk5Y.get(s1k6):
tk5Y[s1k6] = oRi_(int)
tk5Y = tk5Y[s1k6]
tk5Y[xMw6] += 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NrOU(s1k6, WbPA):\n if s1k6 in WbPA:\n WbPA[s1k6] += 1\n else:\n WbPA[s1k6] = 1\n return WbPA",
"def hvZI(YKHO, s1k6, xMw6):\n if (s1k6, xMw6) in YKHO.ChunkWordPairs:\n YKHO.ChunkWordPairs[s1k6, xMw6] += 1\n else:\n YKHO.ChunkWordPairs[s1k6, xMw6] = 1",
"def fMCX(... | [
"0.6645389",
"0.66032207",
"0.63652337",
"0.63198376",
"0.5915447",
"0.5821723",
"0.5816546",
"0.5756082",
"0.5725488",
"0.5723328",
"0.572321",
"0.572321",
"0.56514716",
"0.5619318",
"0.5614693",
"0.5613987",
"0.5607581",
"0.5576725",
"0.55391675",
"0.5535296",
"0.5506965",
... | 0.7634903 | 0 |
model26 but without contribution from first conv layer int reconstruction | def GON1(yzQ0=32, MKlR=32, Z9rn=1, pt4o=64, kh3j=5, O7Wv=5, o_OR=True):
i94W = []
def o7sj(vC9B):
exwG = len(i94W)
vC9B = fhcK.NonlinearityLayer(vC9B, Ytfn(0.2), name='wta_lifetime_{}'.format(exwG))
i94W.append(vC9B)
return vC9B
KCHu = kh3j
DVQq = fhcK.InputLayer((None, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HJsz(pt4o=64, yzQ0=32, MKlR=32, Z9rn=1, o_OR=True):\n DVQq = fhcK.InputLayer((None, Z9rn, yzQ0, MKlR), name='input')\n VBca = []\n ysEa = fhcK.Conv2DLayer(DVQq, num_filters=pt4o, filter_size=(5, 5), nonlinearity=xlaR, W=DbxN.GlorotUniform(), name='conv1')\n VBca.append(ysEa)\n ysEa = fhcK.Conv2D... | [
"0.7030811",
"0.6973948",
"0.6967958",
"0.6933148",
"0.6821541",
"0.67777056",
"0.6737966",
"0.6732311",
"0.67093754",
"0.6690789",
"0.66856885",
"0.66760415",
"0.6671428",
"0.6664784",
"0.66581404",
"0.6657856",
"0.66570723",
"0.6645446",
"0.6603431",
"0.6582058",
"0.6544733... | 0.65942365 | 19 |
same than model8 but filters are multiplied by two in each layer | def HJsz(pt4o=64, yzQ0=32, MKlR=32, Z9rn=1, o_OR=True):
DVQq = fhcK.InputLayer((None, Z9rn, yzQ0, MKlR), name='input')
VBca = []
ysEa = fhcK.Conv2DLayer(DVQq, num_filters=pt4o, filter_size=(5, 5), nonlinearity=xlaR, W=DbxN.GlorotUniform(), name='conv1')
VBca.append(ysEa)
ysEa = fhcK.Conv2DLayer(ysEa... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sqZb(pt4o=64, yzQ0=32, MKlR=32, Z9rn=1, o_OR=True):\n DVQq = fhcK.InputLayer((None, Z9rn, yzQ0, MKlR), name='input')\n VBca = []\n ysEa = fhcK.Conv2DLayer(DVQq, num_filters=pt4o, filter_size=(5, 5), nonlinearity=xlaR, W=DbxN.GlorotUniform(), name='conv1')\n VBca.append(ysEa)\n ysEa = fhcK.Conv2D... | [
"0.74071527",
"0.72964245",
"0.72451293",
"0.7200484",
"0.7198604",
"0.7194649",
"0.71756864",
"0.7171631",
"0.71279174",
"0.7125157",
"0.7096506",
"0.7085758",
"0.7071668",
"0.70330864",
"0.70005757",
"0.6973999",
"0.6955101",
"0.69395405",
"0.69167125",
"0.6896916",
"0.6890... | 0.7258343 | 2 |
Initialize a CompressedBand instance. | def FIMM(YKHO, zNig, yDqo, ym_X=(256, 256), ipvE=0):
assert len(zNig) == 2
YKHO.size = zNig
YKHO.dtype = yDqo
YKHO._chunksize = ym_X
YKHO._initval = ipvE
YKHO.nchunkrows = int(lO1m(float(zNig[0]) / float(ym_X[0])))
YKHO.nchunkcols = int(lO1m(float(zNig[1]) / float(ym_X[1])))
kTH3 = YKHO.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, Csk6):\n print('This is JCHInstrument Multiband Instrument')\n venw, SV7T, X_8f, a1kB, uGwy, M_a4 = eumT(Csk6['filter_nu'] / 1000000000.0, Csk6['nf_sub'], Csk6['filter_relative_bandwidth'])\n YKHO.FRBW = Csk6['filter_relative_bandwidth']\n AjzU = Csk6.copy()\n YKHO.nsubbands = len(X_8... | [
"0.60811126",
"0.5982205",
"0.58464086",
"0.5842345",
"0.5779136",
"0.57657623",
"0.57001764",
"0.56822073",
"0.56208754",
"0.56142026",
"0.5606581",
"0.5603989",
"0.55704933",
"0.5557881",
"0.5508539",
"0.548663",
"0.54774356",
"0.54771554",
"0.5463138",
"0.545553",
"0.54526... | 0.0 | -1 |
This function seeks to display the 'index' page of the Home subapplication. | def d6pt(QePW):
return _1tc(QePW, 'home/index.html') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kZiy():\n return TvZl('index.html')",
"def kZiy():\n return TvZl('main.html')",
"def kZiy():\n return TvZl('homepage.html')",
"def d6pt():\n return TvZl('home.html')",
"def d6pt():\n return TvZl('index.html', title='Home')",
"def kZiy():\n return a0J7.index()",
"def kZiy():\n r... | [
"0.797214",
"0.7936657",
"0.7816328",
"0.778058",
"0.77770215",
"0.7750528",
"0.7712707",
"0.7711852",
"0.76899606",
"0.76715523",
"0.76663554",
"0.7644353",
"0.7644353",
"0.7644353",
"0.76324326",
"0.7626704",
"0.7625256",
"0.7619425",
"0.7612893",
"0.7606695",
"0.7606695",
... | 0.0 | -1 |