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 |
|---|---|---|---|---|---|---|
Adds the specified vertex if it is not ``None`` | def wfin(YKHO, Ty9i: Vertex):
if Ty9i is not None:
YKHO._vertices.add(Ty9i)
YKHO.invalidateCaches() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ohmD(YKHO, SLBp):\n if SLBp.id not in YKHO.vertices.keys():\n YKHO.vertices[SLBp.id] = SLBp",
"def ohmD(YKHO, SLBp):\n raise NotImplementedError",
"def ohmD(YKHO, SLBp):\n if SLBp not in YKHO.graph_dict:\n YKHO.graph_dict[SLBp] = []\n return SLBp",
"def ohmD(YKHO, SLBp):\n ... | [
"0.836529",
"0.82328236",
"0.7982915",
"0.79771245",
"0.79250056",
"0.79250056",
"0.79165614",
"0.7909053",
"0.7903544",
"0.77899086",
"0.77662134",
"0.77595437",
"0.7747159",
"0.7673777",
"0.76590025",
"0.7594604",
"0.7508336",
"0.743557",
"0.7393343",
"0.7391065",
"0.737499... | 0.79037625 | 8 |
Return a printable representation. | def wHJl(YKHO):
return f'<{YKHO.__class__.__name__} {YKHO.id}>' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return YKHO.printable()",
"def wHJl(YKHO):\n return YKHO.pretty_print(YKHO.__dict__)",
"def zAg0(YKHO):\n return repr(YKHO)",
"def zAg0(YKHO):\n return repr(YKHO)",
"def CgYo(YKHO):\n return EyO9(repr(YKHO))",
"def zAg0(YKHO):\n U5bT = kJm3()\n (print >> U5bT, 'tree... | [
"0.8299752",
"0.792861",
"0.7829399",
"0.77532995",
"0.77172667",
"0.7689122",
"0.76785725",
"0.76337665",
"0.7627389",
"0.7627389",
"0.7627389",
"0.7623664",
"0.76234496",
"0.7608004",
"0.76075625",
"0.75946933",
"0.7589612",
"0.7574469",
"0.7574469",
"0.7574469",
"0.7574469... | 0.0 | -1 |
Convert the data held in this object to a structure (eg, struct) that represents all the data elements. This method is used to recursively convert the object into a selfdocumenting form that can easily be used for various purposes, including diffs and queries. These structures may be primitive Python types (string, int... | def UyVR(YKHO):
return {'_class': YKHO.__class__.__name__, 'value': YKHO.__value, 'string': r4Ld(YKHO)} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UyVR(YKHO):\n return gpan.to_struct(YKHO)",
"def vm03(sB1G, YEnM, JFfP, U3Fm, aCdt, i8HE):\n if YEnM is None and sB1G.has_default():\n return sB1G.get_default()\n elif not isinstance(YEnM, dict):\n raise ETK8.ValidationError('expected object, got %s' % ETK8.generic_type_name(YEnM))\n ... | [
"0.6316124",
"0.6295645",
"0.6070868",
"0.6023593",
"0.595269",
"0.59037656",
"0.5879309",
"0.5826357",
"0.58136225",
"0.5736496",
"0.5640573",
"0.5639013",
"0.5636972",
"0.5634899",
"0.56296766",
"0.5616727",
"0.56041676",
"0.5597931",
"0.5595699",
"0.5590274",
"0.5579969",
... | 0.5717914 | 10 |
Return the Dataset instances that this Dataset depends on. | def ACnF(YKHO, rb7a=-1):
ZXQb = {}
for __n6 in YKHO._parents:
if __n6 not in ZXQb:
ZXQb[__n6] = True
yield __n6
if rb7a != 0:
for o3Yl in __n6.parents(depth=rb7a - 1):
if o3Yl not in ZXQb:
ZXQb[o3Yl] = True
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _Pkd(YKHO):\n return vars(YKHO)",
"def iujc(YKHO):\n return YKHO._flat_data._datasets",
"def _Pkd(YKHO):\n return (YKHO.ds_primary, YKHO.ds_secondary)",
"def cPdt(YKHO):\n raise NotImplementedError()",
"def SMAd(YKHO) -> laHg.Optional[laHg.List[lTJ4.core.IDependable]]:\n return YKHO._val... | [
"0.66451526",
"0.6607363",
"0.6549898",
"0.62919945",
"0.6280101",
"0.6258917",
"0.6251489",
"0.62448144",
"0.6211976",
"0.62008494",
"0.61079437",
"0.603137",
"0.6009475",
"0.59593016",
"0.59317666",
"0.5931611",
"0.58490014",
"0.5810299",
"0.57987446",
"0.57651484",
"0.5759... | 0.0 | -1 |
Return the Dataset instances that depend on this Dataset. | def afYC(YKHO, rb7a=-1):
ZXQb = {}
for __n6 in YKHO._children:
if __n6 not in ZXQb:
ZXQb[__n6] = True
yield __n6
if rb7a != 0:
for Kx7R in __n6.children(depth=rb7a - 1):
if Kx7R not in ZXQb:
ZXQb[Kx7R] = True
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _Pkd(YKHO):\n return vars(YKHO)",
"def iujc(YKHO):\n return YKHO._flat_data._datasets",
"def _Pkd(YKHO):\n return (YKHO.ds_primary, YKHO.ds_secondary)",
"def yDEX(YKHO):\n iKiR = YKHO.get_previous_version()\n GTHl = XLL2.get_model('trait_browser', 'SourceDataset')\n if iKiR is not None:... | [
"0.6615585",
"0.66012573",
"0.64325094",
"0.61781037",
"0.6044363",
"0.6018583",
"0.59772867",
"0.59532636",
"0.5942534",
"0.5904082",
"0.58985287",
"0.5873762",
"0.58558875",
"0.58546627",
"0.56940323",
"0.56778985",
"0.56582385",
"0.5632789",
"0.56263715",
"0.5619078",
"0.5... | 0.5388536 | 42 |
Generator for the roots (dependencyless parents) of this Dataset. Yields Dataset | def YPJ1(YKHO):
ZXQb = {}
for __n6 in YKHO._parents:
if len(__n6._parents) == 0:
if __n6 not in ZXQb:
yield __n6
ZXQb[__n6] = True
else:
for U_NH in __n6.roots():
if U_NH not in ZXQb:
yield U_NH
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ACnF(YKHO, rb7a=-1):\n ZXQb = {}\n for __n6 in YKHO._parents:\n if __n6 not in ZXQb:\n ZXQb[__n6] = True\n yield __n6\n if rb7a != 0:\n for o3Yl in __n6.parents(depth=rb7a - 1):\n if o3Yl not in ZXQb:\n ZXQb[o3Yl] = True\n ... | [
"0.7118727",
"0.68018234",
"0.64309734",
"0.6305572",
"0.6155723",
"0.61164576",
"0.59659606",
"0.5961221",
"0.59406525",
"0.59017646",
"0.58955353",
"0.57990605",
"0.5796816",
"0.5771724",
"0.5757655",
"0.5731422",
"0.56899214",
"0.5680379",
"0.5668676",
"0.56474674",
"0.562... | 0.84444505 | 0 |
An optimizer that wraps another keras.optimizers.Optimizer, using an push_pull to average gradient values before applying gradients to model weights. | def u7wE(K0do, mWFP=None, JAPF='', pbbs='', Rrsh=n0K8.none, D81S=False):
return Psj8.create_distributed_optimizer(bdPE, K0do, mWFP, JAPF, pbbs, Rrsh, D81S) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def K0do(YKHO):\n sfqc = YKHO.model.input\n RshI = nMvt.placeholder(shape=(None, 1))\n eeSD = YKHO.model.output\n K5WD = YKHO.model.trainable_weights\n fntS = ZylS.gradients(eeSD, K5WD, -RshI)\n y7GR = qhl4(YKHO.lr)\n N77f = fntS\n Vhxs = y7GR.get_updates(loss=N77f, params=K5WD, grads=fntS)... | [
"0.67919976",
"0.6599956",
"0.65984094",
"0.62916636",
"0.61856055",
"0.618376",
"0.6074868",
"0.59989005",
"0.5941164",
"0.5798076",
"0.5756586",
"0.5742523",
"0.57375485",
"0.5727795",
"0.567738",
"0.5671659",
"0.56697285",
"0.56460565",
"0.5615429",
"0.56062436",
"0.559403... | 0.0 | -1 |
Loads a saved Keras model with a BytePS DistributedOptimizer. The DistributedOptimizer will wrap the underlying optimizer used to train the saved model, so that the optimizer state (params and weights) will be picked up for retraining. By default, all optimizers in the module `keras.optimizers` will be loaded and wrapp... | def uyMl(VqRE, QK16=None, UeD_=None, Rrsh=n0K8.none):
def fQzR(Emd4):
return lambda **B2fa: u7wE(Emd4(**B2fa), compression=Rrsh)
eIaY = {bdPE.optimizers.Optimizer.__module__}
return Psj8.load_model(bdPE, fQzR, eIaY, VqRE, QK16, UeD_) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uyMl(pETf, pNZh, TLI7):\n assert pNZh is not None and TLI7 is not None\n pNZh = NnIy(pNZh) if isinstance(pNZh, CbyH.static.Program) else pNZh\n tNV8 = Hy7s.path.join(TLI7, thYL)\n with open(tNV8, 'r') as eHNT:\n N8OZ = qQXR.load(eHNT)\n for _N6A, ROpF in N8OZ.items():\n xqo... | [
"0.5723864",
"0.5671362",
"0.5574641",
"0.5541199",
"0.55379105",
"0.54520553",
"0.5443638",
"0.541206",
"0.541044",
"0.5323913",
"0.52553",
"0.5233193",
"0.5231263",
"0.52120584",
"0.5198209",
"0.51612073",
"0.51596934",
"0.5147301",
"0.51394343",
"0.5139103",
"0.513555",
... | 0.68604606 | 0 |
Whether the endpoint should report traffic logs in addition to threat logs. | def rEVp(YKHO) -> h8nf[qe4Y.Input[bool]]:
return qe4Y.get(YKHO, 'traffic_logs') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rEVp(YKHO) -> qe4Y.Output[bool]:\n return qe4Y.get(YKHO, 'traffic_logs')",
"def ZkMm(YKHO, QePW, QpfX):\n QpfX.set_code(IYqO.StatusCode.UNIMPLEMENTED)\n QpfX.set_details('Method not implemented!')\n raise NotImplementedError('Method not implemented!')",
"def _9Z2(YKHO) -> h8nf[qe4Y.Input[bool]]... | [
"0.71521205",
"0.65786237",
"0.616391",
"0.616391",
"0.6147348",
"0.6114273",
"0.6079082",
"0.589873",
"0.5874118",
"0.5823015",
"0.5797718",
"0.5797718",
"0.5797718",
"0.5797718",
"0.5797718",
"0.5797718",
"0.57815355",
"0.5704543",
"0.56919664",
"0.56847113",
"0.56828105",
... | 0.7054317 | 1 |
Get an existing Endpoint 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) -> 'Endpoint':
VKhi = qe4Y.ResourceOptions.merge(VKhi, qe4Y.ResourceOptions(id=id))
r6DL = SayD.__new__(SayD)
r6DL.__dict__['create_time'] = None
r6DL.__dict__['description'] = None
r6DL.__dict__['endpoint_forwar... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def up9T(YKHO, _R4q):\n raise AJ5d.NotImplemented()",
"def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None, hMqs: Optional[pulumi.Input[str]]=None, CQv0: Optional[pulumi.Input[str]]=None, VFls: Optional[pulumi.Input[str]]=None, w2IS: Optional[pulumi.Input[str]]=None, eoCS: O... | [
"0.6171609",
"0.6150179",
"0.6147156",
"0.5954066",
"0.59240264",
"0.5653437",
"0.55634934",
"0.5530102",
"0.54628325",
"0.54451877",
"0.54035693",
"0.537047",
"0.53500986",
"0.53246385",
"0.5321765",
"0.53151363",
"0.53012663",
"0.5289554",
"0.52794325",
"0.52762103",
"0.524... | 0.6816635 | 0 |
Whether the endpoint should report traffic logs in addition to threat logs. | def rEVp(YKHO) -> qe4Y.Output[bool]:
return qe4Y.get(YKHO, 'traffic_logs') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rEVp(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'traffic_logs')",
"def ZkMm(YKHO, QePW, QpfX):\n QpfX.set_code(IYqO.StatusCode.UNIMPLEMENTED)\n QpfX.set_details('Method not implemented!')\n raise NotImplementedError('Method not implemented!')",
"def _9Z2(YKHO) -> h8nf[qe4Y.Input[b... | [
"0.7054317",
"0.65786237",
"0.616391",
"0.616391",
"0.6147348",
"0.6114273",
"0.6079082",
"0.589873",
"0.5874118",
"0.5823015",
"0.5797718",
"0.5797718",
"0.5797718",
"0.5797718",
"0.5797718",
"0.5797718",
"0.57815355",
"0.5704543",
"0.56919664",
"0.56847113",
"0.56828105",
... | 0.71521205 | 0 |
The update time timestamp. | def nP7s(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'update_time') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nP7s(YKHO) -> str:\n return qe4Y.get(YKHO, 'update_time')",
"def nP7s(YKHO) -> str:\n return qe4Y.get(YKHO, 'update_time')",
"def nP7s(YKHO) -> str:\n return qe4Y.get(YKHO, 'update_time')",
"def nP7s(YKHO) -> str:\n return qe4Y.get(YKHO, 'update_time')",
"def nP7s(YKHO) -> str:\n return ... | [
"0.8717642",
"0.8717642",
"0.8717642",
"0.8717642",
"0.8717642",
"0.8717642",
"0.8717642",
"0.8717642",
"0.8406034",
"0.82329196",
"0.81739056",
"0.7998141",
"0.78888774",
"0.7874642",
"0.7874642",
"0.78073496",
"0.7801909",
"0.77354795",
"0.7700679",
"0.76856",
"0.76700926",... | 0.82378316 | 15 |
Outputs a representation of this value. | def wHJl(YKHO) -> str:
return f'{YKHO.group}({YKHO._value})' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHJl(YKHO):\n return str(YKHO.value)",
"def wHJl(YKHO):\n return str(YKHO.value)",
"def wHJl(YKHO) -> str:\n return YKHO.value",
"def wHJl(YKHO):\n return '{}(value={})'.format(YKHO.__class__.__name__, YKHO.value)",
"def wHJl(YKHO):\n return '{}(value={})'.format(YKHO.__class__.__name__,... | [
"0.8352003",
"0.8352003",
"0.81735635",
"0.80719054",
"0.80719054",
"0.8045232",
"0.8017444",
"0.8005573",
"0.8005573",
"0.76491857",
"0.76491857",
"0.76491857",
"0.76491857",
"0.76491857",
"0.76491857",
"0.76453763",
"0.7533158",
"0.7533158",
"0.7533158",
"0.75090635",
"0.75... | 0.0 | -1 |
Return the string representation of the object. | def zAg0(YKHO):
return YKHO.identifier | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yLCI(YKHO):\n return YKHO.__str__()",
"def zAg0(YKHO):\n return str(YKHO.__dict__['_obj'])",
"def CZBi(YKHO):\n return YKHO.__repr__()",
"def zAg0(YKHO):\n return str(YKHO.serialize())",
"def zAg0(YKHO):\n return str(YKHO.obj)",
"def Sa1R(YKHO) -> str:\n raise NotImplementedError",
... | [
"0.84336644",
"0.8287483",
"0.8280721",
"0.82743007",
"0.82623005",
"0.81171477",
"0.8111347",
"0.80979353",
"0.80945426",
"0.8077431",
"0.8077431",
"0.80765086",
"0.8052609",
"0.8022008",
"0.8022008",
"0.8022008",
"0.8022008",
"0.8022008",
"0.80111617",
"0.80111617",
"0.8011... | 0.0 | -1 |
Checks if an item is of a URL pattern | def Suy4(jL5E, jeGQ):
return jL5E is None or KVWQ(jL5E) is not None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xCpB(bD7m):\n return all(map(lambda WKvO: str.isdigit(WKvO), str(bD7m.strip('/').split('/')[-1])))",
"def ue_N(Emd4, bD7m, **B2fa):\n return bD7m.scheme.startswith('http')",
"def rI68(YKHO, bD7m):\n return YKHO.url_re.match(bD7m)",
"def jr1t(bD7m):\n return 'products.json' in bD7m",
"def yt... | [
"0.72703564",
"0.7224235",
"0.71769077",
"0.7128691",
"0.69422466",
"0.68614286",
"0.68524176",
"0.6848075",
"0.6781484",
"0.6778138",
"0.67689973",
"0.67457193",
"0.67119414",
"0.6690711",
"0.66857314",
"0.6674339",
"0.6668768",
"0.6634857",
"0.662948",
"0.6539451",
"0.64792... | 0.6114729 | 55 |
Checks if an item is of a email pattern | def xxWx(jL5E, jeGQ):
return jL5E is None or Psfc(jL5E) != ('', '') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Tzn1(D3lj):\n njyT = '^\\\\w+([\\\\.-]?\\\\w+)*@\\\\w+([\\\\.-]?\\\\w+)*(\\\\.\\\\w{2,3})+$'\n if ZbWC.search(njyT, D3lj):\n return True\n else:\n return False",
"def kI9H(YKHO, cpYK):\n if ZbWC.match('[\\\\w\\\\W]*@+[\\\\w\\\\W]*[.]+[\\\\w]{2,4}', cpYK):\n return True\n r... | [
"0.7003532",
"0.6799028",
"0.6725833",
"0.6705001",
"0.6698547",
"0.6641337",
"0.6623422",
"0.66196865",
"0.66003686",
"0.65643835",
"0.6482806",
"0.6476055",
"0.6445038",
"0.6432777",
"0.64314324",
"0.6416553",
"0.6391146",
"0.62866163",
"0.6249066",
"0.6248497",
"0.6225798"... | 0.61982274 | 21 |
Returns if the word is in the trie. Not a prefix. | def TgwQ(YKHO, GIN8):
HHsV = YKHO.__find_node(GIN8)
if HHsV and HHsV.is_word:
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DUe0(YKHO, ZOCz, GIN8):\n TXkI = ZOCz\n for sZqf in GIN8:\n if sZqf in TXkI:\n TXkI = TXkI[sZqf]\n else:\n return False\n else:\n if '_end_' in TXkI:\n return TXkI['_end_']\n else:\n return False\n return False",
"def Gtm1(ZO... | [
"0.8245628",
"0.78835136",
"0.7835158",
"0.7665125",
"0.7613036",
"0.75825727",
"0.7550113",
"0.75352794",
"0.7513791",
"0.7497823",
"0.74941593",
"0.748067",
"0.7478101",
"0.7468905",
"0.7437586",
"0.7403348",
"0.74025714",
"0.7381358",
"0.73787767",
"0.73591596",
"0.7351345... | 0.7197423 | 36 |
converts the dict into a list. | def LpmY(YKHO, UqER, eJTR=None):
if UqER is None:
return None
Csk6 = []
for U6D_ in UqER:
if 'cm' not in U6D_.keys():
U6D_['cm'] = {}
U6D_['cm'].update({'kind': 'volume', 'cloud': YKHO.cloud, 'name': U6D_['name']})
Csk6.append(U6D_)
return Csk6 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def huxi(YKHO, Op6c):\n return [(WKvO, Op6c[WKvO]) for WKvO in Op6c]",
"def huxi(YKHO, Op6c):\n return map(lambda WKvO: [WKvO, Op6c[WKvO]], Op6c)",
"def G87u(dict):\n JCoA = 1\n for G1Hx, Ty9i in dict.items():\n if type(Ty9i) is list:\n if len(Ty9i) > 1 and (JCoA > 1 and len(Ty9i)... | [
"0.7982222",
"0.7903365",
"0.7803277",
"0.76532584",
"0.75887024",
"0.7552022",
"0.7457285",
"0.73670685",
"0.7323957",
"0.72219306",
"0.71905947",
"0.71905947",
"0.71449333",
"0.7118657",
"0.7111443",
"0.7042377",
"0.70315665",
"0.7000643",
"0.69964725",
"0.69919425",
"0.691... | 0.0 | -1 |
A view to render the shop page using the Buns select menu | def fDuq(QePW):
Ldyl = msfn.objects.all()
maxY = DEza.objects.all()
Uzsw = SZhV.objects.all()
LeZt = None
if QePW.GET:
ipek = QePW.GET['buns']
Ldyl = Ldyl.filter(category__name=ipek)
LeZt = qZuN.objects.filter(name=ipek)
QpfX = {'products': Ldyl, 'forsixs': Uzsw, 'sizes':... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H__F(QePW):\n return _1tc(QePW, 'shop/shop.html')",
"def XfwO(QePW):\n return _1tc(QePW, 'shoppingbag/shoppingbag.html')",
"def lxkz(QePW):\n xryH = lYpP(QePW)\n woFC = xryH['cart_items']\n Ldyl = sFIV.objects.all()\n QpfX = {'products': Ldyl, 'cart_items': woFC}\n return _1tc(QePW, 's... | [
"0.7366048",
"0.6977805",
"0.68674845",
"0.67445904",
"0.67124236",
"0.6709254",
"0.6532081",
"0.6377797",
"0.63430905",
"0.6276193",
"0.6251603",
"0.6215274",
"0.61420447",
"0.6125816",
"0.6113203",
"0.61082643",
"0.60942197",
"0.6087505",
"0.60735357",
"0.6072815",
"0.60519... | 0.74456507 | 0 |
A view to render the shop page using the buns select menu | def F_GC(QePW):
Ldyl = msfn.objects.all()
maxY = DEza.objects.all()
Uzsw = SZhV.objects.all()
LeZt = None
if QePW.GET:
ipek = QePW.GET['box']
Ldyl = Ldyl.filter(category__name=ipek)
LeZt = qZuN.objects.filter(name=ipek)
QpfX = {'products': Ldyl, 'forsixs': Uzsw, 'sizes': ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fDuq(QePW):\n Ldyl = msfn.objects.all()\n maxY = DEza.objects.all()\n Uzsw = SZhV.objects.all()\n LeZt = None\n if QePW.GET:\n ipek = QePW.GET['buns']\n Ldyl = Ldyl.filter(category__name=ipek)\n LeZt = qZuN.objects.filter(name=ipek)\n QpfX = {'products': Ldyl, 'forsixs': ... | [
"0.746372",
"0.7273777",
"0.69495416",
"0.68074644",
"0.66905785",
"0.66501516",
"0.65257674",
"0.6348702",
"0.6248838",
"0.6244905",
"0.62288827",
"0.61571884",
"0.6130023",
"0.6108955",
"0.60966384",
"0.60507846",
"0.60360247",
"0.6033353",
"0.6033353",
"0.6029103",
"0.6022... | 0.6688951 | 5 |
Not all combinations of rotation and column are valid for each tetrimino. Given a tetrimino and the width of the grid (columns), this returns a vector that can be used to mask the output of a NN such that only valid moves are considered. | def jaaK(Mh_j, ZLJ_):
J93I = oyIN.zeros((4, ZLJ_), dtype=bool)
for YRbF, a1PO in enumerate(pxXN[Mh_j]):
vC9B = ZLJ_ - a1PO.shape[1] + 1
J93I[YRbF, :vC9B] = 1
return J93I.flatten() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qazr(iBIi, rdlD, fvDH, exwG):\n \"\"\" veriying the row on left side \"\"\"\n for YRbF in range(fvDH):\n if iBIi[rdlD][YRbF] == 1:\n return False\n ' veriying upper diagonal on left side '\n for YRbF, r845 in zip(range(rdlD, -1, -1), range(fvDH, -1, -1)):\n if iBIi[YRbF][r8... | [
"0.58331674",
"0.5668231",
"0.5661335",
"0.55861026",
"0.554334",
"0.55406004",
"0.54272735",
"0.5415442",
"0.5407801",
"0.5407499",
"0.54062366",
"0.5316515",
"0.52825624",
"0.52780026",
"0.5275149",
"0.5272418",
"0.5265284",
"0.5263374",
"0.5260766",
"0.52507895",
"0.524062... | 0.7234302 | 0 |
A view that displays the contact us page and sends email | def RyYT(QePW):
if QePW.method == 'POST':
UYKr = JmDL(QePW.POST)
if UYKr.is_valid():
yH5S = UYKr.cleaned_data['name']
QKDd = UYKr.cleaned_data['email']
Ol8d = '{0} has sent you a new message:\n\n{1} \n\nTheir contact email is: {2}'.format(yH5S, UYKr.cleaned_data['... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mxk0(QePW):\n gshH = QePW.POST.get('contact_email')\n if QePW.method == 'POST':\n UYKr = {'name': QePW.POST.get('name'), 'email': QePW.POST.get('contact_email'), 'contact_as': QePW.POST.get('contact_as'), 'message': QePW.POST.get('message')}\n U4ZT = eoaG('contact/contact_emails/contact_ema... | [
"0.81325704",
"0.8113396",
"0.80105615",
"0.7994356",
"0.7943383",
"0.7929567",
"0.79093057",
"0.7904322",
"0.7877474",
"0.7844723",
"0.7825651",
"0.78107107",
"0.7796091",
"0.7788868",
"0.77810305",
"0.7755936",
"0.7752209",
"0.77249813",
"0.77235824",
"0.77231896",
"0.77172... | 0.7459223 | 53 |
A view that displays the thank you message after using contact form | def GkOu(QePW):
if 'contacted' in QePW.session:
return _1tc(QePW, 'thanks.html')
else:
return vKnz('contact_us') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W1Or(QePW):\n return _1tc(QePW, 'core/thank_you.html')",
"def Mxk0(QePW):\n if QePW.method == 'POST':\n UYKr = H6V6.Contact(QePW.POST)\n if UYKr.is_valid():\n TKMu = UYKr.cleaned_data\n Ol8d = f'\\n Name: {TKMu['first_name']} {TKMu['last_name']}\\n\\n ... | [
"0.7994076",
"0.7957406",
"0.7854757",
"0.7748189",
"0.7733841",
"0.7729646",
"0.771613",
"0.7700156",
"0.76966786",
"0.76301986",
"0.7530754",
"0.75300217",
"0.7523765",
"0.7522629",
"0.75100625",
"0.75034255",
"0.7449005",
"0.7408476",
"0.7400147",
"0.7393822",
"0.73772794"... | 0.70745695 | 32 |
Retur True is other is equal to self | def xa14(YKHO, Elif):
return YKHO.doc_type == Elif.doc_type and YKHO.src == Elif.src and (YKHO.name == Elif.name) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return YKHO is Elif",
"def xa14(YKHO, Elif):\n return YKHO is Elif",
"def xa14(YKHO, Elif):\n return YKHO is Elif",
"def aPi6(YKHO, Elif):\n ...",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YK... | [
"0.8724709",
"0.8724709",
"0.8688308",
"0.8569744",
"0.8497247",
"0.8497247",
"0.8491433",
"0.84432137",
"0.84432137",
"0.8430151",
"0.84112626",
"0.8382956",
"0.8367396",
"0.8359224",
"0.8359224",
"0.83473694",
"0.83440596",
"0.8342379",
"0.833597",
"0.8334725",
"0.8285105",... | 0.0 | -1 |
Retur True is other is not equal to self | def Vdqg(YKHO, Elif):
return not YKHO.__eq__(Elif) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"def xa14(YKHO, Elif):\n return super().__ne__(Elif)",
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n ... | [
"0.88231885",
"0.87205994",
"0.87205994",
"0.87111944",
"0.8698622",
"0.8698622",
"0.86944157",
"0.8684612",
"0.8677197",
"0.86663985",
"0.86663985",
"0.86663985",
"0.86663985",
"0.86663985",
"0.86663985",
"0.86663985",
"0.86663985",
"0.86663985",
"0.86663985",
"0.86663985",
... | 0.0 | -1 |
The subset of `words` that appear in the dictionary of WORDS. | def d6AQ(V22M):
return set((yzQ0 for yzQ0 in V22M if yzQ0 in hRXf)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d6AQ(YKHO, V22M):\n return set((yzQ0 for yzQ0 in V22M if yzQ0 in YKHO.word_dict))",
"def Umud(KoG3):\n return {yzQ0 for yzQ0 in MJy5 if A83O(yzQ0, KoG3)}",
"def d6AQ(V22M: list[str]) -> list[str]:\n return [epBp for epBp in list(set(V22M)) if epBp in YKHO.words]",
"def BCSD(YKHO, V22M):\n eC8... | [
"0.7781254",
"0.72921777",
"0.71594346",
"0.6985968",
"0.69435126",
"0.6784432",
"0.6631742",
"0.6473062",
"0.6459619",
"0.63382703",
"0.62951654",
"0.62555754",
"0.62326527",
"0.6213972",
"0.6202675",
"0.6200097",
"0.61439216",
"0.61179656",
"0.6079707",
"0.6078409",
"0.6056... | 0.7302534 | 1 |
Transform an image to a birdview perspective using a rectangular ROI Function to make use of M = cv2.getPerspectiveTransform(rect, dst) (source, destination) final = cv2.warpPerspective(image, M, (maxWidth, maxHeight)) | def ZNn4(LNo8, y5bX):
uO2B = iwOW(y5bX) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fBFq(LNo8, mawX, Dyca=30, JpwZ=30):\n zr3f = oyIN.array([[0, 0], [Dyca - 1, 0], [Dyca - 1, JpwZ - 1], [0, JpwZ - 1]], dtype=oyIN.float32)\n E3D9 = XC5k.getPerspectiveTransform(mawX, zr3f)\n JI61 = oyIN.abs(E3D9[0, 0] + E3D9[1, 1])\n CEoW = oyIN.abs(E3D9[0, 1] + E3D9[1, 0])\n x3zx = 1\n if JI6... | [
"0.7538627",
"0.7044298",
"0.7015752",
"0.7003489",
"0.6980967",
"0.69087595",
"0.69062126",
"0.6898659",
"0.6868961",
"0.67537177",
"0.664304",
"0.65182924",
"0.6507057",
"0.6441343",
"0.6407082",
"0.640562",
"0.63990974",
"0.6375832",
"0.6361028",
"0.6316719",
"0.6299971",
... | 0.0 | -1 |
The mesh that rays collide with. | def gwhq(YKHO):
return YKHO.mesh | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rR8k(YKHO):\n return YKHO._mesh",
"def rR8k(YKHO):\n return YKHO._mesh",
"def rR8k(YKHO):\n return YKHO._mesh",
"def rR8k(YKHO):\n return YKHO._mesh",
"def rR8k(YKHO):\n YKHO._ensure_mesh()\n return YKHO._mesh",
"def fMTm(YKHO):\n return YKHO.mesh",
"def Whv8(YKHO):\n JZXy =... | [
"0.7389274",
"0.7389274",
"0.7389274",
"0.7389274",
"0.7128935",
"0.70633936",
"0.66623974",
"0.64884496",
"0.6442965",
"0.6442965",
"0.6442965",
"0.6440817",
"0.63556474",
"0.62677044",
"0.6246868",
"0.62004685",
"0.6172353",
"0.6152075",
"0.6146",
"0.6140421",
"0.61213046",... | 0.71433216 | 4 |
Generate a uniform sample on the surface of the unit sphere in polar coordinates | def _avo(exwG):
Kwzd = oyIN.random.normal(size=(exwG, 3))
l2ln = oyIN.linalg.norm(Kwzd, axis=1, keepdims=True)
xwlB = Kwzd / l2ln
y0yP = ua7K(xwlB)
return oyIN.reshape(y0yP[:, 1:3], -1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VuRC():\n vjVv = [0, 0, 0]\n vjVv[2] = tuKI.uniform(-1.0, 1.0)\n mPai = epAf.sqrt(1.0 - vjVv[2] * vjVv[2])\n rVnq = 2.0 * epAf.pi * tuKI.random()\n vjVv[0] = mPai * epAf.cos(rVnq)\n vjVv[1] = mPai * epAf.sin(rVnq)\n return vjVv",
"def A3b2(Mkmy: float) -> float:\n return 4.0 * oyIN.pi... | [
"0.69074756",
"0.6746758",
"0.67251945",
"0.6630447",
"0.6629558",
"0.6537914",
"0.6527516",
"0.65077084",
"0.6502065",
"0.6475573",
"0.647456",
"0.6465042",
"0.6443864",
"0.6403859",
"0.6253421",
"0.6246497",
"0.623466",
"0.6230411",
"0.62253004",
"0.6216367",
"0.6215206",
... | 0.62345326 | 17 |
Extracts the build name of this slave (e.g., 'chromerelease') from the leaf subdir of its build directory. | def tdzy(u_3m):
return Hy7s.path.basename(zLGg(u_3m)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gXBS(bTKY):\n mWFP = bTKY.get('slavename') or bTKY.get('hostname')\n if 'subdir' in bTKY:\n return '%s#%s' % (mWFP, bTKY['subdir'])\n return mWFP",
"def v1Bf():\n AeXe = Hy7s.getenv('INFRA_BUILDBOT_SLAVE_ACTIVE_SUBDIR')\n if AeXe is not None:\n return AeXe or None\n ObT1 = Hy7... | [
"0.6759791",
"0.62392694",
"0.62284255",
"0.6199802",
"0.6037837",
"0.5969347",
"0.5933282",
"0.5900234",
"0.5867603",
"0.5814157",
"0.5781156",
"0.5739644",
"0.5728978",
"0.5700332",
"0.56736434",
"0.5657998",
"0.5657352",
"0.56165874",
"0.5609601",
"0.5560912",
"0.55552495"... | 0.780525 | 0 |
Construct the employee's full name | def mWFP(YKHO):
return '{0.first} {0.last}'.format(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eHMM(YKHO) -> str:\n mWFP = f'{YKHO.last_name} {YKHO.first_name}'\n if YKHO.middle_name:\n mWFP += ' ' + YKHO.middle_name\n return mWFP",
"def eHMM(YKHO):\n if YKHO.first_name and YKHO.last_name:\n return '{} {}'.format(YKHO.first_name, YKHO.last_name)",
"def flGP(YKHO):\n if Y... | [
"0.8012696",
"0.79403114",
"0.7886619",
"0.7871668",
"0.78449345",
"0.78375196",
"0.7833813",
"0.78321594",
"0.7812387",
"0.7812387",
"0.7812387",
"0.77768403",
"0.77695745",
"0.77671725",
"0.77671504",
"0.77671504",
"0.7763907",
"0.7760536",
"0.7756357",
"0.7752324",
"0.7752... | 0.0 | -1 |
Given a UTF8 string, replace all instances of gaiji hexadecimal tags to appropriate UTF8 gaiji. Returns a new string with all gaiji hex tags replace with gaiji | def NPfc(YKHO, DT5T):
return ZbWC.sub('{0x([0-9a-f]+)}', YKHO.replace_gaiji_hex_sub_helper, DT5T) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nuVp(YKHO, kUBT):\n return kUBT.group(1).decode('hex')",
"def J4zx(l5Ny, yKcO, Os4s, qx_G='�'):\n if not isinstance(l5Ny, str) or not isinstance(qx_G, str):\n raise Exception('Inputs must be UTF-8')\n yvT9 = []\n YRbF = yKcO\n while YRbF < Os4s:\n exwG = MHAK(l5Ny, YRbF, Os4s)\... | [
"0.635464",
"0.599756",
"0.5969599",
"0.58418024",
"0.58262277",
"0.5696553",
"0.5635843",
"0.56328005",
"0.5593065",
"0.5570036",
"0.5560401",
"0.55585647",
"0.5551232",
"0.551091",
"0.5508557",
"0.54927015",
"0.54805964",
"0.5475126",
"0.5442678",
"0.5435451",
"0.54306805",... | 0.8352785 | 0 |
Get project directory in environment | def ZW29(YKHO, sWmO):
return sWmO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TdjZ():\n return GkAb(gCuF.PROJECT_DIR)",
"def TdjZ():\n pmON = GkAb(xAKo).parent.parent\n I7OS = pmON.parent\n return I7OS",
"def qHA8():\n return NW1j(sQK_)",
"def phdL():\n return GkAb(xAKo).parent.parent",
"def GOQM(YKHO):\n return Hy7s.path.expanduser(YKHO.sqlfluff_config.get_... | [
"0.8305408",
"0.8245427",
"0.78320664",
"0.7809946",
"0.77648133",
"0.77645797",
"0.7760874",
"0.77461755",
"0.7732836",
"0.7732836",
"0.76016104",
"0.757342",
"0.7555465",
"0.7555465",
"0.7555465",
"0.7555465",
"0.75547266",
"0.74905473",
"0.74588615",
"0.74344873",
"0.73723... | 0.6794185 | 63 |
Return boxes with a confidence >= `min_score` | def Urop(YKHO, AjsF, SVFM):
ZHfW = SVFM['detection_scores'] >= AjsF
rKkw = (SVFM['detection_boxes'][ZHfW], SVFM['detection_scores'][ZHfW], SVFM['detection_classes'][ZHfW])
return rKkw | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Urop(YKHO, AjsF, oUSw, cCrA, KndY):\n exwG = len(KndY)\n DNs0 = []\n for YRbF in range(exwG):\n if cCrA[YRbF] >= AjsF:\n DNs0.append(YRbF)\n F29b = oUSw[DNs0, ...]\n ox7g = cCrA[DNs0, ...]\n ADUU = KndY[DNs0, ...]\n return (F29b, ox7g, ADUU)",
"def Urop(AjsF, oUSw, cCrA... | [
"0.731818",
"0.7289786",
"0.7286461",
"0.7249656",
"0.6648593",
"0.6314265",
"0.63126284",
"0.61920637",
"0.61658907",
"0.6157282",
"0.6156879",
"0.6114503",
"0.6062773",
"0.5996901",
"0.59632754",
"0.596031",
"0.5952106",
"0.5949764",
"0.5941988",
"0.5941988",
"0.59374654",
... | 0.72280055 | 4 |
Field name for user email | def D3lj(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'email') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y6CV(YKHO):\n return YKHO.email",
"def D3lj(YKHO, KAOR):\n return KAOR.user.email",
"def RC0X(YEnM):\n return YEnM.user.email",
"def W0tD(YKHO):\n return YKHO.user.username if YKHO.user.username else YKHO.user.email",
"def dsRp(YKHO):\n return YKHO.email",
"def D3lj(YKHO):\n return ... | [
"0.75084734",
"0.72425836",
"0.7196023",
"0.7194118",
"0.71543443",
"0.7150408",
"0.711164",
"0.70954895",
"0.70849544",
"0.7081209",
"0.7081209",
"0.7081209",
"0.70411533",
"0.7015164",
"0.69794583",
"0.6974799",
"0.6960668",
"0.6943114",
"0.6943114",
"0.6943114",
"0.6943114... | 0.6824959 | 50 |
Field name for user's first name | def c9ua(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'first_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c9ua(YKHO, KAOR):\n return KAOR.user.first_name",
"def dsRp(YKHO):\n return f'{YKHO.first_name} {YKHO.last_name[:1]}' if YKHO.first_name else YKHO.username",
"def fz1W(YKHO) -> str:\n return YKHO.first_name",
"def c9ua(YKHO) -> str:\n return YKHO._first_name",
"def dsRp(YKHO):\n return Y... | [
"0.8454545",
"0.7980859",
"0.7959569",
"0.7840849",
"0.78063464",
"0.7752555",
"0.7743792",
"0.77372175",
"0.77372175",
"0.77372175",
"0.77010024",
"0.76229495",
"0.76229495",
"0.7615402",
"0.7606572",
"0.7606572",
"0.7606572",
"0.7606572",
"0.7606572",
"0.7606572",
"0.760657... | 0.7539554 | 33 |
Field name for user's last name | def zp3f(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'last_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zp3f(YKHO, KAOR):\n return KAOR.user.last_name",
"def CCKR(YKHO) -> str:\n return YKHO.last_name",
"def zp3f(YKHO) -> str:\n return YKHO._last_name",
"def CCKR(YKHO):\n return YKHO._last_name",
"def zp3f(YKHO):\n return YKHO._last_name",
"def zp3f(YKHO):\n return YKHO._last_name",
... | [
"0.844729",
"0.79426146",
"0.77676004",
"0.7766133",
"0.77118003",
"0.77118003",
"0.77118003",
"0.77118003",
"0.7695878",
"0.7658109",
"0.7647213",
"0.76449347",
"0.76246995",
"0.76176775",
"0.7593351",
"0.7579495",
"0.75707805",
"0.7558285",
"0.7513461",
"0.75054723",
"0.748... | 0.7667844 | 9 |
Field name for user's full name. If specified, firstname and lastname mappings are ignored | def mGeF(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'real_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eHMM(YKHO):\n return '{} {}'.format(YKHO.user.first_name, YKHO.user.last_name)",
"def dsRp(YKHO):\n return f'{YKHO.first_name} {YKHO.last_name[:1]}' if YKHO.first_name else YKHO.username",
"def xpqj(YKHO):\n eHMM = f'{YKHO.first_name} {YKHO.last_name}' if YKHO.first_name and YKHO.last_name else YK... | [
"0.78443134",
"0.781787",
"0.7770195",
"0.7629923",
"0.7571844",
"0.75702196",
"0.75702196",
"0.75702196",
"0.7549806",
"0.7529274",
"0.7522749",
"0.7443381",
"0.7438501",
"0.7438501",
"0.74336886",
"0.74011165",
"0.7391139",
"0.73873895",
"0.73783374",
"0.73755383",
"0.73589... | 0.0 | -1 |
The hour of day (in UTC) when backup for the service is started. New backup is only started if previous backup has already completed. | def VZyX(YKHO) -> h8nf[qe4Y.Input[int]]:
return qe4Y.get(YKHO, 'backup_hour') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def L1NV(YKHO) -> int:\n return qe4Y.get(YKHO, 'start_hour_utc')",
"def L1NV(YKHO) -> h8nf[int]:\n return qe4Y.get(YKHO, 'start_hour_utc')",
"def chB3(YKHO) -> int:\n return YKHO.timestamp.hour",
"def AQ5N(YKHO):\n return _VfD.Date_getHour(YKHO)",
"def ROt1(YKHO) -> int:\n return YKHO._hour"... | [
"0.7206209",
"0.69283855",
"0.6888936",
"0.66941863",
"0.6621172",
"0.6621172",
"0.661682",
"0.65878016",
"0.6570941",
"0.655514",
"0.6421451",
"0.63937783",
"0.6392776",
"0.63300127",
"0.6313436",
"0.625133",
"0.62079",
"0.6182158",
"0.6150579",
"0.5978054",
"0.5978054",
"... | 0.7388842 | 0 |
The minute of an hour when backup for the service is started. New backup is only started if previous backup has already completed. | def JWwR(YKHO) -> h8nf[qe4Y.Input[int]]:
return qe4Y.get(YKHO, 'backup_minute') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pwhv(YKHO):\n return YKHO.get_log_business_hours().min",
"def i0DU(YKHO):\n return YKHO.get_db_business_hours().min",
"def VZyX(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'backup_hour')",
"def VZyX(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'backup_hour')",
"def IZ... | [
"0.72332335",
"0.70085806",
"0.68306875",
"0.68306875",
"0.68228877",
"0.6483668",
"0.63843936",
"0.6373773",
"0.6362652",
"0.6322491",
"0.63223374",
"0.63142586",
"0.6309337",
"0.6289204",
"0.62727165",
"0.62463856",
"0.619893",
"0.619893",
"0.6151295",
"0.6146106",
"0.61403... | 0.7622852 | 0 |
Type of the service integration. The only supported value at the moment is `read_replica` | def FHnN(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'integration_type') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D6uV(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'replication_type')",
"def D6uV(YKHO) -> str:\n qmLP.warn('The type of replication this instance uses. This can be either `ASYNCHRONOUS` or `SYNCHRONOUS`. (Deprecated) This property was only applicable to First Generation instances.', Depreca... | [
"0.64702743",
"0.63806015",
"0.5908651",
"0.58883727",
"0.57594246",
"0.57590574",
"0.572472",
"0.5704973",
"0.5651332",
"0.56502944",
"0.56321305",
"0.5600003",
"0.5600003",
"0.5600003",
"0.5600003",
"0.5600003",
"0.5577126",
"0.5577126",
"0.5577126",
"0.5577126",
"0.5577126... | 0.6258992 | 2 |
The database that the grant refers to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource. | def p9bx(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'database') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def p9bx(YKHO):\n return YKHO._database",
"def p9bx(YKHO):\n return YKHO._database",
"def p9bx(YKHO):\n return YKHO._database",
"def p9bx(YKHO):\n return YKHO._database",
"def u_OD(YKHO):\n return YKHO.database",
"def p9bx(YKHO):\n try:\n return YKHO._database\n except:\n ... | [
"0.68673784",
"0.68673784",
"0.68673784",
"0.68673784",
"0.6856496",
"0.67138535",
"0.66375196",
"0.66375196",
"0.65626246",
"0.6540633",
"0.649863",
"0.64821696",
"0.6450298",
"0.64318967",
"0.64318967",
"0.64167845",
"0.6409969",
"0.6363296",
"0.6330234",
"0.6264368",
"0.62... | 0.64009106 | 17 |
The column that the grant refers to. This property cannot be changed, doing so forces recreation of the resource. | def iVRZ(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'column') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iVRZ(YKHO):\n return YKHO['column']",
"def iVRZ(YKHO):\n return YKHO._column",
"def fvDH(YKHO):\n return YKHO.__col",
"def unpH(YKHO):\n return YKHO._column_id",
"def iYZ_(YKHO):\n return YKHO._column_number",
"def GClg(YKHO):\n return YKHO.__column",
"def iVRZ(YKHO) -> int:\n ... | [
"0.67110234",
"0.6633147",
"0.6447064",
"0.63537884",
"0.6322696",
"0.63110584",
"0.63064647",
"0.62142694",
"0.6191528",
"0.61658597",
"0.61629367",
"0.61116916",
"0.5942712",
"0.59065974",
"0.5830167",
"0.5820019",
"0.5774288",
"0.5698432",
"0.56848747",
"0.56618863",
"0.56... | 0.5578427 | 23 |
Type of the service integration. The only supported value at the moment is `read_replica` | def FHnN(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'integration_type') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D6uV(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'replication_type')",
"def D6uV(YKHO) -> str:\n qmLP.warn('The type of replication this instance uses. This can be either `ASYNCHRONOUS` or `SYNCHRONOUS`. (Deprecated) This property was only applicable to First Generation instances.', Depreca... | [
"0.64702743",
"0.63806015",
"0.5908651",
"0.58883727",
"0.57594246",
"0.57590574",
"0.572472",
"0.5704973",
"0.5651332",
"0.56502944",
"0.56321305",
"0.5600003",
"0.5600003",
"0.5600003",
"0.5600003",
"0.5600003",
"0.5577126",
"0.5577126",
"0.5577126",
"0.5577126",
"0.5577126... | 0.6258992 | 4 |
Type of the service integration. The only supported value at the moment is `read_replica` | def FHnN(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'integration_type') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D6uV(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'replication_type')",
"def D6uV(YKHO) -> str:\n qmLP.warn('The type of replication this instance uses. This can be either `ASYNCHRONOUS` or `SYNCHRONOUS`. (Deprecated) This property was only applicable to First Generation instances.', Depreca... | [
"0.64677894",
"0.63785374",
"0.5907311",
"0.58883977",
"0.57582",
"0.5757238",
"0.5724441",
"0.5703512",
"0.5648987",
"0.56488955",
"0.5630416",
"0.559941",
"0.559941",
"0.559941",
"0.559941",
"0.559941",
"0.5575713",
"0.5575713",
"0.5575713",
"0.5575713",
"0.5575713",
"0.5... | 0.62595415 | 8 |
Type of the service integration. The only supported value at the moment is `read_replica` | def FHnN(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'integration_type') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D6uV(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'replication_type')",
"def D6uV(YKHO) -> str:\n qmLP.warn('The type of replication this instance uses. This can be either `ASYNCHRONOUS` or `SYNCHRONOUS`. (Deprecated) This property was only applicable to First Generation instances.', Depreca... | [
"0.6468302",
"0.63794017",
"0.5908132",
"0.5888363",
"0.5758826",
"0.5758444",
"0.57253873",
"0.57051533",
"0.5650357",
"0.56494",
"0.56307817",
"0.56007856",
"0.56007856",
"0.56007856",
"0.56007856",
"0.56007856",
"0.55765855",
"0.55765855",
"0.55765855",
"0.55765855",
"0.55... | 0.6260938 | 7 |
Type of the service integration. The only supported value at the moment is `read_replica` | def FHnN(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'integration_type') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D6uV(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'replication_type')",
"def D6uV(YKHO) -> str:\n qmLP.warn('The type of replication this instance uses. This can be either `ASYNCHRONOUS` or `SYNCHRONOUS`. (Deprecated) This property was only applicable to First Generation instances.', Depreca... | [
"0.64702743",
"0.63806015",
"0.5908651",
"0.58883727",
"0.57594246",
"0.57590574",
"0.572472",
"0.5704973",
"0.5651332",
"0.56502944",
"0.56321305",
"0.5600003",
"0.5600003",
"0.5600003",
"0.5600003",
"0.5600003",
"0.5577126",
"0.5577126",
"0.5577126",
"0.5577126",
"0.5577126... | 0.6258992 | 6 |
PostgreSQL sslmode setting (currently always "require") | def FCqZ(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'sslmode') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ykhp(YKHO):\n if YKHO.dbapi.__name__ == 'psycopg2':\n YKHO.connection['sslmode'] = 'require'\n elif YKHO.dbapi.__name__ == 'pg8000':\n YKHO.connection['ssl_context'] = True\n super(twmq, YKHO).connect()",
"def id6w(YKHO):\n with TMAJ.patch.dict('os.environ', Dd0I, clear=True):\n ... | [
"0.7157088",
"0.65368557",
"0.6163457",
"0.6148198",
"0.61021876",
"0.6024983",
"0.59921986",
"0.5959396",
"0.58934605",
"0.5866516",
"0.58544946",
"0.5825476",
"0.5821656",
"0.5797531",
"0.578593",
"0.5728554",
"0.5635818",
"0.5634508",
"0.56090206",
"0.5608604",
"0.56057906... | 0.6639339 | 1 |
The hour of day (in UTC) when backup for the service is started. New backup is only started if previous backup has already completed. | def VZyX(YKHO) -> h8nf[qe4Y.Input[int]]:
return qe4Y.get(YKHO, 'backup_hour') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def L1NV(YKHO) -> int:\n return qe4Y.get(YKHO, 'start_hour_utc')",
"def L1NV(YKHO) -> h8nf[int]:\n return qe4Y.get(YKHO, 'start_hour_utc')",
"def chB3(YKHO) -> int:\n return YKHO.timestamp.hour",
"def AQ5N(YKHO):\n return _VfD.Date_getHour(YKHO)",
"def ROt1(YKHO) -> int:\n return YKHO._hour"... | [
"0.7206209",
"0.69283855",
"0.6888936",
"0.66941863",
"0.6621172",
"0.6621172",
"0.661682",
"0.65878016",
"0.6570941",
"0.655514",
"0.6421451",
"0.63937783",
"0.6392776",
"0.63300127",
"0.6313436",
"0.625133",
"0.62079",
"0.6182158",
"0.6150579",
"0.5978054",
"0.5978054",
"... | 0.7388842 | 1 |
The minute of an hour when backup for the service is started. New backup is only started if previous backup has already completed. | def JWwR(YKHO) -> h8nf[qe4Y.Input[int]]:
return qe4Y.get(YKHO, 'backup_minute') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pwhv(YKHO):\n return YKHO.get_log_business_hours().min",
"def i0DU(YKHO):\n return YKHO.get_db_business_hours().min",
"def VZyX(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'backup_hour')",
"def VZyX(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'backup_hour')",
"def IZ... | [
"0.72332335",
"0.70085806",
"0.68306875",
"0.68306875",
"0.68228877",
"0.6483668",
"0.63843936",
"0.6373773",
"0.6362652",
"0.6322491",
"0.63223374",
"0.63142586",
"0.6309337",
"0.6289204",
"0.62727165",
"0.62463856",
"0.619893",
"0.619893",
"0.6151295",
"0.6146106",
"0.61403... | 0.7622852 | 1 |
Name of the PG Service from which to fork (deprecated, use servicetofork_from). This has effect only when a new service is being created. | def Mv2q(YKHO) -> h8nf[qe4Y.Input[str]]:
qmLP.warn('Usage of this field is discouraged.', DeprecationWarning)
qe4Y.log.warn('pg_service_to_fork_from is deprecated: Usage of this field is discouraged.')
return qe4Y.get(YKHO, 'pg_service_to_fork_from') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kvIc(YKHO):\n return '{}-ssh-service'.format(YKHO.app.name)",
"def X9Sx(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'service_to_fork_from')",
"def X9Sx(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'service_to_fork_from')",
"def X9Sx(YKHO) -> h8nf[qe4Y.Input[str]]:\n ret... | [
"0.7364162",
"0.7273612",
"0.7273612",
"0.7273612",
"0.7273612",
"0.7273612",
"0.71314293",
"0.71314293",
"0.70166796",
"0.70166796",
"0.70166796",
"0.6992828",
"0.6992828",
"0.6992828",
"0.6922246",
"0.67568326",
"0.67568326",
"0.67568326",
"0.6530975",
"0.6404311",
"0.64043... | 0.7593743 | 0 |
Type of the service integration. The only supported value at the moment is `read_replica` | def FHnN(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'integration_type') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D6uV(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'replication_type')",
"def D6uV(YKHO) -> str:\n qmLP.warn('The type of replication this instance uses. This can be either `ASYNCHRONOUS` or `SYNCHRONOUS`. (Deprecated) This property was only applicable to First Generation instances.', Depreca... | [
"0.6468302",
"0.63794017",
"0.5908132",
"0.5888363",
"0.5758826",
"0.5758444",
"0.57253873",
"0.57051533",
"0.5650357",
"0.56494",
"0.56307817",
"0.56007856",
"0.56007856",
"0.56007856",
"0.56007856",
"0.56007856",
"0.55765855",
"0.55765855",
"0.55765855",
"0.55765855",
"0.55... | 0.6260938 | 3 |
AWS CloudWatch log group name. | def DWvF(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'log_group_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DWvF(YKHO) -> str:\n ...",
"def DWvF(YKHO) -> str:\n return HEOD.get(YKHO, 'logGroupName')",
"def DWvF(YKHO) -> str:\n return HEOD.get(YKHO, 'logGroupName')",
"def DWvF(YKHO):\n return YKHO._get_param(F_q5)",
"def DWvF(YKHO) -> laHg.Optional[str]:\n return YKHO._values.get('log_group_nam... | [
"0.89839166",
"0.8669",
"0.8669",
"0.83098954",
"0.7954681",
"0.7641559",
"0.74817365",
"0.7299937",
"0.7299937",
"0.71896946",
"0.71417683",
"0.71349907",
"0.7079716",
"0.7056398",
"0.7046116",
"0.7035467",
"0.7015961",
"0.7007445",
"0.7007445",
"0.7007445",
"0.69300073",
... | 0.8024796 | 4 |
Maximum number of days of logs to keep. The default value is `3`. | def xgep(YKHO) -> h8nf[qe4Y.Input[int]]:
return qe4Y.get(YKHO, 'index_days_max') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zA8O(YKHO) -> int:\n return qe4Y.get(YKHO, 'max_retention_days')",
"def xWGq(YKHO) -> int:\n return qe4Y.get(YKHO, 'transaction_log_retention_days')",
"def WYn8(YKHO) -> int:\n return qe4Y.get(YKHO, 'snapshot_retention_limit')",
"def WYn8(YKHO) -> h8nf[int]:\n return qe4Y.get(YKHO, 'snapshot_... | [
"0.7292624",
"0.654909",
"0.6350981",
"0.60379857",
"0.6024227",
"0.6024227",
"0.5998351",
"0.59863716",
"0.5984954",
"0.5961038",
"0.5914266",
"0.5900102",
"0.5889109",
"0.5853611",
"0.58322835",
"0.58316404",
"0.5812332",
"0.58107394",
"0.5810271",
"0.57706296",
"0.57016367... | 0.5710047 | 21 |
Maximum number of days of logs to keep. The default value is `3`. | def xgep(YKHO) -> h8nf[qe4Y.Input[int]]:
return qe4Y.get(YKHO, 'index_days_max') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zA8O(YKHO) -> int:\n return qe4Y.get(YKHO, 'max_retention_days')",
"def xWGq(YKHO) -> int:\n return qe4Y.get(YKHO, 'transaction_log_retention_days')",
"def WYn8(YKHO) -> int:\n return qe4Y.get(YKHO, 'snapshot_retention_limit')",
"def WYn8(YKHO) -> h8nf[int]:\n return qe4Y.get(YKHO, 'snapshot_... | [
"0.7292624",
"0.654909",
"0.6350981",
"0.60379857",
"0.6024227",
"0.6024227",
"0.5998351",
"0.59863716",
"0.5984954",
"0.5961038",
"0.5914266",
"0.5900102",
"0.5889109",
"0.5853611",
"0.58322835",
"0.58316404",
"0.5812332",
"0.58107394",
"0.5810271",
"0.57706296",
"0.57016367... | 0.5710047 | 20 |
Require TLS. The default value is `true`. | def mizK(YKHO) -> qe4Y.Input[bool]:
return qe4Y.get(YKHO, 'tls') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rfcf(YKHO):\n return 'STARTTLS' in YKHO.__capabilities",
"def YZMh(YKHO):\n vjey = getattr(YKHO.args, 'ssl_certfile', None) is not None\n ygzH = getattr(YKHO.args, 'ssl_keyfile', None) is not None\n mizK = getattr(YKHO.args, 'tls', False)\n return mizK or YKHO.is_sandbox or (vjey and ygzH)",
... | [
"0.7455166",
"0.7403972",
"0.73617345",
"0.7337556",
"0.7337556",
"0.7270407",
"0.7270407",
"0.7140498",
"0.71231717",
"0.7052118",
"0.7049299",
"0.7049299",
"0.70163184",
"0.69408035",
"0.6821545",
"0.68008715",
"0.6768219",
"0.6748609",
"0.67423123",
"0.6697535",
"0.6630823... | 0.74143785 | 1 |
Elasticsearch index retention limit. The default value is `3`. | def sf17(YKHO) -> h8nf[qe4Y.Input[int]]:
return qe4Y.get(YKHO, 'elasticsearch_index_days_max') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zA8O(YKHO) -> int:\n return qe4Y.get(YKHO, 'max_retention_days')",
"def WYn8(YKHO) -> int:\n return qe4Y.get(YKHO, 'snapshot_retention_limit')",
"def WYn8(YKHO) -> h8nf[int]:\n return qe4Y.get(YKHO, 'snapshot_retention_limit')",
"def WYn8(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO... | [
"0.663615",
"0.6524215",
"0.6083939",
"0.60606384",
"0.60606384",
"0.6058406",
"0.59182477",
"0.5682335",
"0.5650161",
"0.5581162",
"0.55739814",
"0.5552783",
"0.54543114",
"0.5434188",
"0.5414515",
"0.53621775",
"0.53492886",
"0.53337675",
"0.5268392",
"0.52624655",
"0.52065... | 0.5351211 | 16 |
Name of the database where to store metric datapoints. Only affects PostgreSQL destinations. Defaults to 'metrics'. Note that this must be the same for all metrics integrations that write data to the same PostgreSQL service. | def p9bx(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'database') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N5CR(YKHO) -> str:\n return qe4Y.get(YKHO, 'database_name')",
"def N5CR(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'database_name')",
"def s0ar(YKHO):\n raise NotImplementedError",
"def N5CR(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'database_name')",
"def zndY(YKHO):\n r... | [
"0.70100254",
"0.6808898",
"0.6779124",
"0.6774804",
"0.6650719",
"0.6612788",
"0.6586565",
"0.6487585",
"0.6463842",
"0.6419014",
"0.6363164",
"0.6280065",
"0.62561363",
"0.62415075",
"0.61819",
"0.6142592",
"0.61255825",
"0.60446775",
"0.6041112",
"0.603986",
"0.60290223",
... | 0.61329454 | 17 |
Name of a user that can be used to read metrics. This will be used for Grafana integration (if enabled) to prevent Grafana users from making undesired changes. Only affects PostgreSQL destinations. Defaults to 'metrics_reader'. Note that this must be the same for all metrics integrations that write data to the same Pos... | def m_V9(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'ro_username') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BaHi(YKHO) -> str:\n return qe4Y.get(YKHO, 'user_name')",
"def BaHi(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'user_name')",
"def BaHi(YKHO):\n return YKHO._user_name",
"def BaHi(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'user_name')",
"def BaHi(YKHO) -> qe4Y.Input[str]:\n ... | [
"0.6581949",
"0.6419348",
"0.64181745",
"0.6384636",
"0.6384636",
"0.6384636",
"0.6338431",
"0.62750214",
"0.62684417",
"0.6228879",
"0.6199499",
"0.6180801",
"0.6179826",
"0.6158505",
"0.6153295",
"0.6105086",
"0.6076584",
"0.60374653",
"0.60374653",
"0.60374653",
"0.6014945... | 0.0 | -1 |
Returns two dicts of env variables that applies to package 'name', the first for simple values A=1, and the second for multiple A=1;2;3 | def EJht(YKHO, hxGQ):
U5bT = {}
oKv6 = {}
for B5hb, kgDL in YKHO._sorted_data:
for mWFP, BWXx in kgDL.items():
if B5hb is None:
if isinstance(BWXx, list):
oKv6[mWFP] = BWXx
else:
U5bT[mWFP] = BWXx
for B5hb, kgDL ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hfK9(sEAN, UeG4=None):\n UeG4 = UeG4 or lQ1Q\n Aofo = {}\n for Es0b, BWXx in sEAN.items():\n if isinstance(BWXx, dict):\n BWXx = BWXx.get(UeG4, '')\n if not BWXx:\n continue\n if isinstance(BWXx, (list, tuple)):\n BWXx = ';'.join(BWXx)\n Aof... | [
"0.61539966",
"0.6116622",
"0.61106765",
"0.59940517",
"0.5935743",
"0.5788616",
"0.57723445",
"0.5764228",
"0.5694254",
"0.56842226",
"0.5677046",
"0.56711894",
"0.5641415",
"0.5630167",
"0.5625758",
"0.5582608",
"0.5563945",
"0.5543857",
"0.5516821",
"0.55124146",
"0.551050... | 0.71128786 | 0 |
Computation of euclidean distance matrix via quadratic expansion (sum of squared differences or L2norm of differences). While this is significantly faster than the "direct expansion" or "broadcast" approach, it only works for euclidean (p=2) distances. Additionally, it has issues with numerical stability (the diagonal ... | def mWPn(WKvO: Tensor, LVAh: Tensor) -> llWB:
SGf8 = ht2j.tensor(ht2j.finfo(WKvO.dtype).eps, device=WKvO.device, dtype=WKvO.dtype)
ltnu = ht2j.einsum('...ij,...ij->...i', WKvO, WKvO)
zhZG = ht2j.einsum('...ij,...ij->...i', LVAh, LVAh)
exwG = ltnu.unsqueeze(-1) + zhZG.unsqueeze(-2)
QRFO = ht2j.einsum... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ScbS(WKvO, LVAh):\n r8hN, exwG = (WKvO.size(0), LVAh.size(0))\n dqIl = ht2j.pow(WKvO, 2).sum(1, keepdim=True).expand(r8hN, exwG) + ht2j.pow(LVAh, 2).sum(1, keepdim=True).expand(exwG, r8hN).t() - 2 * ht2j.matmul(WKvO, LVAh.t())\n dqIl = dqIl.clamp(min=1e-12).sqrt()\n return dqIl",
"def AifU(EcVT, ... | [
"0.6734962",
"0.67068505",
"0.6651598",
"0.6637598",
"0.6620903",
"0.65539765",
"0.6445796",
"0.64165425",
"0.63905823",
"0.6367536",
"0.6307174",
"0.630199",
"0.63001907",
"0.62683684",
"0.6242229",
"0.62277246",
"0.62157",
"0.6211826",
"0.62038094",
"0.6200381",
"0.6174164"... | 0.78579414 | 0 |
Wrapper for cartesian distance computation. This currently replaces the use of ``torch.cdist``, which does not handle zeros well and produces nan's in the backward pass. Additionally, ``torch.cdist`` does not return zero for distances between same vectors (see `here | def iNVJ(WKvO: Tensor, LVAh: Optional[Tensor]=None, XP5J: int=2) -> llWB:
if LVAh is None:
LVAh = WKvO
if XP5J == 2:
return mWPn(WKvO, LVAh)
return Gf6Z(WKvO, LVAh, p=XP5J) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FjDf(YKHO, nhBs, kGOI):\n return epAf.sqrt(nhBs * nhBs + kGOI * kGOI)",
"def _DLG(WKvO, LVAh, epBp):\n return epAf.sqrt(WKvO ** 2 + LVAh ** 2 + epBp ** 2)",
"def Dm2A(YKHO):\n ZBpW, TDPn = YKHO.to_cat(YKHO.origdst, YKHO.synthdst)\n v71H = YKHO.get_demographics(ZBpW)\n Msrc = YKHO.get_demogra... | [
"0.67604107",
"0.6411776",
"0.63337934",
"0.6186039",
"0.61502445",
"0.61215097",
"0.610459",
"0.6088969",
"0.60447985",
"0.6030009",
"0.601335",
"0.59262496",
"0.5915078",
"0.5900085",
"0.5862955",
"0.58498514",
"0.58390343",
"0.5834959",
"0.58141124",
"0.58141124",
"0.58129... | 0.64900315 | 1 |
Test exception is thrown when the jar file is missing. | def wNKS(YKHO):
jzdc = YKHO.make_target('a/b', qyGl)
Wlo8 = y0kx(YKHO.pants_workdir)
zSRn = 'ivy/jars/org.x/lib/x-1.0.jar'
DNB3 = kCPj(qzsA(org='org', name='x', rev='1.0'), cache_path='somewhere', pants_path=Hy7s.path.join(YKHO.pants_workdir, zSRn))
Wlo8.add_jars_for_targets([jzdc], 'default', [DNB3... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XVOU(YKHO, eDY2):\n JkyN = '/no/jar/here/' + spYX.JUNIT_JAR\n qIxc = IAK_(junit_path=JkyN, hamcrest_path=oQ9a)\n with trZe.raises(cG7t.PlugError) as _n4O:\n eDY2.parse_args(qIxc)\n assert '{} is not a file'.format(JkyN) in str(_n4O.value)",
"def rElM(YKHO, eDY2):\n JkyN = '/no/jar/here/... | [
"0.7110956",
"0.673989",
"0.6660955",
"0.66515625",
"0.65470475",
"0.6524355",
"0.65017956",
"0.64401406",
"0.639584",
"0.63760686",
"0.6353104",
"0.6333339",
"0.6288438",
"0.62816596",
"0.6264847",
"0.6260693",
"0.6259397",
"0.6221644",
"0.61755407",
"0.61616945",
"0.6154064... | 0.0 | -1 |
Draw instancelevel prediction results on an image. | def eFgP(YKHO, N6Z1):
oUSw = None
cCrA = None
Crrw = None
KndY = N6Z1.pred_classes if N6Z1.has('pred_classes') else None
BR8K = N6Z1.pred_keypoints if N6Z1.has('pred_keypoints') else None
if N6Z1.has('pred_masks'):
oGem = oyIN.asarray(N6Z1.pred_masks)
oGem = [L1fk(WKvO, YKHO.outp... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eFgP(YKHO, N6Z1):\n oUSw = N6Z1.pred_boxes if N6Z1.has('pred_boxes') else None\n cCrA = N6Z1.scores if N6Z1.has('scores') else None\n KndY = N6Z1.pred_classes.tolist() if N6Z1.has('pred_classes') else None\n Crrw = OSNe(KndY, cCrA, YKHO.metadata.get('thing_classes', None))\n BR8K = N6Z1.pred_key... | [
"0.76512647",
"0.7182308",
"0.714739",
"0.69223505",
"0.6772046",
"0.67289597",
"0.6712855",
"0.66942817",
"0.6643197",
"0.6624603",
"0.6527798",
"0.6514211",
"0.64832693",
"0.6480422",
"0.64442396",
"0.64331186",
"0.6387082",
"0.63819295",
"0.63559633",
"0.6338012",
"0.63163... | 0.76018286 | 1 |
Create and save a user with the given email, username and password. | def xWi2(YKHO, NtEF, D3lj, jTXt, **wdCM):
if not D3lj:
raise ValueError('The email must be set')
D3lj = YKHO.normalize_email(D3lj)
CBIr = YKHO.model(email=D3lj, **wdCM)
CBIr.set_password(jTXt)
CBIr.save(using=YKHO._db)
return CBIr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xWi2(YKHO, D3lj, jTXt, NtEF, **wdCM):\n if not D3lj:\n raise ValueError('The given email must be set')\n if not NtEF:\n raise ValueError('The given username must be set')\n D3lj = YKHO.normalize_email(D3lj)\n CBIr = YKHO.model(email=D3lj, username=str.strip(NtEF), **wdCM)\n CBIr.se... | [
"0.8634042",
"0.8466383",
"0.8425921",
"0.8409726",
"0.8400576",
"0.8382646",
"0.8366708",
"0.8317512",
"0.83133936",
"0.83037",
"0.8280722",
"0.8280173",
"0.82728404",
"0.82455003",
"0.82204694",
"0.8212281",
"0.8211569",
"0.8206184",
"0.819836",
"0.8179897",
"0.81796026",
... | 0.8425718 | 3 |
This function will create the addons dataset | def vXrk(ujem, _c1T, WUm6, KhE4, YTVa, FjJz, **B2fa):
h_KW = N3UY(WUm6)
wcBD = h_KW.filter("submission_date_s3 = '{}'".format(_c1T)).cache()
rR_o = WUm6.filter("submission_date_s3 = '{}'".format(_c1T)).cache()
g_b2 = OQz4(wcBD)
d1Kv = jdfs(wcBD)
ECxu = yf27(wcBD, rR_o)
mAIG = k3Yt(wcBD)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LvbP(YKHO):\n YKHO._build_datasets_sis3302()\n YKHO._build_datasets_sis3305()",
"def oUGu():\n with open('/root/config.json', 'r') as eHNT:\n GPtr = qQXR.load(eHNT)\n for H5ew, BWXx in GPtr.items():\n Hy7s.environ[H5ew] = str(BWXx)\n oUZx = '/usr/lib/blender/blender {} --python {... | [
"0.65095776",
"0.6119689",
"0.6096211",
"0.60573953",
"0.6015784",
"0.60155815",
"0.60144776",
"0.60139006",
"0.6010787",
"0.6002185",
"0.5996023",
"0.59653234",
"0.59580064",
"0.59429955",
"0.5925098",
"0.59072405",
"0.589095",
"0.5877079",
"0.58733773",
"0.58470416",
"0.584... | 0.0 | -1 |
Generate an initialized Variable with weight decay | def xSbR(mWFP, ROpF, z2bo, TI1B):
yDqo = ZylS.float16 if vPBo.use_fp16 else ZylS.float32
SRYB = js1U(mWFP, ROpF, ZylS.truncated_normal_initializer(stddev=z2bo, dtype=yDqo))
if TI1B is not None:
oNEO = ZylS.multiply(ZylS.nn.l2_loss(SRYB), TI1B, name='weight_loss')
ZylS.add_to_collection('loss... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xSbR(mWFP, ROpF, z2bo, TI1B, _4Ap=True, jupk=0, PJWX=False):\n if PJWX:\n print('The name of the variable: {}'.format(mWFP))\n yDqo = ZylS.float16 if vPBo.use_fp16 else ZylS.float32\n if _4Ap:\n SRYB = js1U(mWFP, ROpF, ZylS.truncated_normal_initializer(stddev=z2bo, dtype=yDqo))\n else... | [
"0.72052807",
"0.71501046",
"0.71052176",
"0.7084515",
"0.7079666",
"0.70069546",
"0.69495916",
"0.6915206",
"0.69098544",
"0.6902198",
"0.6902198",
"0.6892419",
"0.68817425",
"0.68815815",
"0.6753364",
"0.6737027",
"0.6721758",
"0.66171545",
"0.6602427",
"0.6597197",
"0.6552... | 0.68993944 | 11 |
Serves the home page | def d6pt():
return oGir("Welcome to basic-http-server, you're ready to add some methods!\n" + str(QePW) + '\n', mimetype='text/plain') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kZiy(QePW):\n return SGJU('index.html')",
"def kZiy():\n return TvZl('index.html', title='Home Page', year=qcWV.now().year)",
"def kZiy():\n return TvZl('home_page.html')",
"def kZiy():\n return TvZl('index.html')",
"def kZiy(QePW):\n return _1tc(QePW, 'compta/home.html')",
"def d6pt()... | [
"0.7946739",
"0.79428905",
"0.7941149",
"0.7919156",
"0.78961223",
"0.7886436",
"0.7886244",
"0.7860804",
"0.78601664",
"0.78595334",
"0.78579766",
"0.785683",
"0.7849007",
"0.78447515",
"0.78363615",
"0.782883",
"0.78268045",
"0.7819352",
"0.7819352",
"0.7819352",
"0.7819352... | 0.0 | -1 |
Update the contents of this periodically sent message. | def JMUL(YKHO, Ol8d):
assert Ol8d.arbitration_id == YKHO.can_id, 'You cannot modify the can identifier'
YKHO.message = Ol8d
YKHO._tx_setup() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QdZT(YKHO, tO9_):\n pass",
"def nVaV(YKHO, Ol8d: str):\n YKHO.message = Ol8d\n YKHO.updated_time = qcWV.now()",
"def QdZT(YKHO, tD8b, tO9_):\n raise NotImplementedError",
"def QdZT(YKHO):\n pmON = Hy7s.path.expanduser('~') + '/.homeassistant'\n pmON += '/msg.txt'\n QSAs = open(pmON, ... | [
"0.6921687",
"0.63176596",
"0.6310663",
"0.62900877",
"0.62198925",
"0.61806464",
"0.61729556",
"0.61615855",
"0.61316526",
"0.61316526",
"0.61196345",
"0.60961586",
"0.6095437",
"0.6081098",
"0.60548925",
"0.6049502",
"0.60454667",
"0.6023616",
"0.59892535",
"0.5979834",
"0.... | 0.0 | -1 |
Creates an instance of this model from a dictionary | def rQfz(Emd4, cmPJ):
if cmPJ is None:
return None
pfzK = cmPJ.get('forceDelete')
id = cmPJ.get('id')
HpGk = cmPJ.get('includeMarkedForRemoval')
ZFzw = cmPJ.get('retry')
return Emd4(pfzK, id, HpGk, ZFzw) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rQfz(Emd4, cmPJ):\n if cmPJ is None:\n return None\n id = cmPJ.get('id')\n mWFP = cmPJ.get('name')\n tDvy = cmPJ.get('type')\n fFb7 = cmPJ.get('usageBytes')\n return Emd4(id, mWFP, tDvy, fFb7)",
"def eLpg(Emd4, cmPJ):\n return Emd4(**cmPJ)",
"def eLpg(Emd4, cmPJ):\n return Em... | [
"0.83181584",
"0.8168118",
"0.8168118",
"0.8118749",
"0.8089047",
"0.79787344",
"0.7949278",
"0.79231393",
"0.7898951",
"0.78923255",
"0.788838",
"0.7882321",
"0.7882212",
"0.7876749",
"0.78585315",
"0.7836853",
"0.7801407",
"0.7801407",
"0.7801407",
"0.7801407",
"0.7801407",... | 0.77341646 | 65 |
r"""Return location for the pretrained on local file system. This function will download from online asset zoo when asset cannot be found or has mismatch. The root directory will be created if it doesn't exist. | def hnDV(mWFP, TZ9E=None, tk5Y=Hy7s.path.join('~', '.daisykit', 'assets')):
if 'DAISYKIT_HOME' in Hy7s.environ:
tk5Y = Hy7s.path.join(Hy7s.environ['DAISYKIT_HOME'], 'assets')
ZfQB = isinstance(TZ9E, str)
if ZfQB:
gIsw = '{name}-{short_hash}'.format(name=mWFP, short_hash=TZ9E)
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AnU4(bD7m):\n Ux0P = '{}.epub'.format(HBct.sha224(bD7m).hexdigest())\n return Hy7s.path.join(lgkm.LOCAL_BOOKS_PATH, Ux0P)",
"def rAod(YKHO):\n if YKHO.repo_path:\n return YKHO.repo_path\n TBXe = PKXz(gbPf.gettempdir())\n return str(TBXe.joinpath('harvest', YKHO.org, YKHO.repo))",
"def... | [
"0.63259226",
"0.6142473",
"0.60702413",
"0.60234725",
"0.598918",
"0.59554297",
"0.5949218",
"0.5946863",
"0.59147054",
"0.5910308",
"0.5904152",
"0.5896678",
"0.5896034",
"0.58891404",
"0.5884838",
"0.5880265",
"0.58517367",
"0.5845208",
"0.5800728",
"0.5773265",
"0.5767656... | 0.0 | -1 |
Makes links out of absolute URLs. Callback for sub() within filter_url(). The first parenthesis in the regexp contains the URL, the second trailing punctuation. | def j4Dv(kUBT):
bD7m = _R2e.unescape(kUBT.group(1))
bD7m = _R2e.escape(bD7m)
pC3l = kUBT.group(2)
KzVY = OJly(bD7m, Vn6Z)
return '<a href="' + bD7m + '">' + KzVY + '</a>' + pC3l | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ksuU(l5Ny, Vn6Z='200'):\n Vn6Z = int(Vn6Z)\n\n def j4Dv(kUBT):\n \"\"\"Makes links out of absolute URLs. Callback for sub()\n within filter_url(). The first parenthesis in the\n regexp contains the URL, the second trailing\n punctuation.\n \"\"\"\n bD7... | [
"0.7446799",
"0.6848276",
"0.6664104",
"0.6533735",
"0.63987166",
"0.6387145",
"0.63196844",
"0.62601316",
"0.6252126",
"0.61349005",
"0.6115865",
"0.61158",
"0.6112209",
"0.6099315",
"0.60650915",
"0.6051467",
"0.6025388",
"0.60227066",
"0.60118175",
"0.601181",
"0.6011441",... | 0.7524732 | 0 |
Return evaluation configuration dict for each round. Perform five local evaluation steps on each client (i.e., use five batches) during rounds one to three, then increase to ten local evaluation steps. | def OEBU(fTff: int):
pVPF = 5 if fTff < 4 else 10
return {'val_steps': pVPF} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rxXK(YKHO, HasU, Y4bG, CqCz, Ep8u, **B2fa):\n assert type(YKHO.n_obs) is int, 'Round-based training currently only works with fixed n_obs. Use online learning for varibale n_obs'\n N8L0 = dict()\n for Mkmy in range(1, Y4bG + 1):\n if Mkmy == 1:\n print('Simulating initial {} data set... | [
"0.597388",
"0.59645087",
"0.59636366",
"0.5826034",
"0.5757812",
"0.5710854",
"0.55632067",
"0.5559973",
"0.5521339",
"0.5472419",
"0.5470596",
"0.5445607",
"0.5434621",
"0.5428688",
"0.5394572",
"0.53918904",
"0.5375522",
"0.53668666",
"0.53502595",
"0.53441715",
"0.5329183... | 0.6539965 | 0 |
A simple DAG with a BranchPythonOperator that does not follow op2. NotPreviouslySkippedDep is not met. | def C6J7():
with gte4() as cuiw:
cuiw.query(dxsl).delete()
cuiw.query(TKAG).delete()
kepv = t_XE.datetime(2020, 1, 1)
aUfT = wb8W('test_parent_skip_branch_dag', schedule_interval=None, start_date=kepv)
aUfT.create_dagrun(run_type=FbDI.MANUAL, state=wHLO.RUNNING, execution_dat... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KV7K():\n kepv = t_XE.datetime(2020, 1, 1)\n aUfT = wb8W('test_parent_not_executed_dag', schedule_interval=None, start_date=kepv)\n j9Y_ = cB4c(task_id='op1', python_callable=lambda: 'op3', dag=aUfT)\n EkqX = pcJR(task_id='op2', dag=aUfT)\n IQUL = pcJR(task_id='op3', dag=aUfT)\n j9Y_ >> [EkqX... | [
"0.7683023",
"0.7139145",
"0.7025163",
"0.6787235",
"0.67309743",
"0.618663",
"0.6161201",
"0.57828534",
"0.5749039",
"0.5690064",
"0.5562018",
"0.5558461",
"0.5430684",
"0.5427649",
"0.52849185",
"0.52342314",
"0.5204404",
"0.51838094",
"0.51600677",
"0.51589143",
"0.5112917... | 0.7779219 | 0 |
Get Docker enviromental variables. | def ZnEa(YKHO, i8WE: str, sEAN: NoneStr=None) -> cuzp[str, str]:
rqnv = Eg6F(i8WE)
YKHO.set_date_valid(rqnv.strftime('%Y-%m-%d'))
YKHO.set_time_valid(rqnv.strftime('%H%M%S'))
YKHO.set_env(sEAN)
C4pr = {'ENV': YKHO.get_env(), 'TASK_TYPE': YKHO.get_task_type(), 'NAME': YKHO.get_name(), 'SOURCE_SYSTEM'... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jQN1():\n sEAN = NIYy()\n sEAN.update(dict(((H5ew, Hy7s.environ[H5ew]) for H5ew in Hy7s.environ if H5ew.startswith('DOCKER_') or H5ew.startswith('CONTAINER_'))))\n return sEAN",
"def W4Gt():\n return {sEAN: Hy7s.environ[sEAN] for sEAN in NArs.ENV_DIRS if sEAN in Hy7s.environ}",
"def E6J6(YKHO):... | [
"0.8336494",
"0.74375355",
"0.73682207",
"0.7299637",
"0.71315664",
"0.7110329",
"0.70580786",
"0.7006348",
"0.6901801",
"0.6901801",
"0.6901801",
"0.6901801",
"0.68417066",
"0.6830308",
"0.68244445",
"0.68130064",
"0.67592776",
"0.6753048",
"0.66530895",
"0.6595406",
"0.6582... | 0.0 | -1 |
Get uppercased environment name. Default is DEV. | def wJxA(YKHO) -> str:
return YKHO.env or arSR | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kLRF():\n _63S = wk5E.config.get('POD_NAMESPACE').lower()\n if _63S.endswith('dev'):\n return 'DEV'\n if _63S.endswith('test'):\n return 'TEST'\n if _63S.endswith('tools'):\n return 'SANDBOX'\n return ''",
"def nbhT(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKH... | [
"0.76004255",
"0.75767934",
"0.7517799",
"0.74239796",
"0.7400016",
"0.73375064",
"0.72519416",
"0.7070893",
"0.70257646",
"0.69964087",
"0.68453616",
"0.67605054",
"0.6568267",
"0.649134",
"0.64628005",
"0.6397688",
"0.63903356",
"0.63800913",
"0.63749933",
"0.63639766",
"0.... | 0.7201549 | 7 |
Remove none and blank items from dictionary. | def DG0k(C4pr: Dict[str, str]):
return {G1Hx: Ty9i for G1Hx, Ty9i in C4pr.items() if Ty9i is not None and len(Ty9i) > 0} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xnx3(tbx9):\n return {G1Hx: Ty9i for G1Hx, Ty9i in list(tbx9.items()) if Ty9i is not None}",
"def Rqfp(Op6c):\n for G1Hx, Ty9i in Op6c.items():\n if len(Ty9i) == 0:\n Op6c[G1Hx] = 'NULL'\n if isinstance(Ty9i, str):\n Ty9i = Ty9i.strip().replace('\\t', '').replace('\\... | [
"0.775304",
"0.7535502",
"0.75089943",
"0.74499065",
"0.73003364",
"0.72732013",
"0.7239844",
"0.7203849",
"0.6999833",
"0.6971191",
"0.68826467",
"0.6835471",
"0.6786636",
"0.67761534",
"0.6773472",
"0.6772135",
"0.6748969",
"0.6745138",
"0.6743113",
"0.67258835",
"0.6695545... | 0.6624823 | 27 |
Emulation of off api manager products attribute. It consist of valid products that have been filtered out from api response to ensure it suits db requirements | def q44B(Emd4):
Emd4.products = zDj_ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OV8s(YKHO):\n YKHO.importable = False\n NowN = vIwR.ascii_uppercase[:5]\n EoGy = YKHO.retrieve_product_infos()\n if EoGy['product_code'] is not None:\n try:\n c0_m.objects.get(code=EoGy['product_code'])\n except c0_m.DoesNotExist:\n if EoGy['product_name'] is not... | [
"0.67831415",
"0.66021895",
"0.6602137",
"0.652025",
"0.6358876",
"0.6332686",
"0.6321527",
"0.6318648",
"0.63178074",
"0.6240892",
"0.61958265",
"0.61652434",
"0.6125787",
"0.6124357",
"0.6124357",
"0.6120592",
"0.60905015",
"0.607166",
"0.60704786",
"0.6048454",
"0.60441875... | 0.73937684 | 0 |
Get the position of X in the matrix | def YEbh(iBIi):
for YRbF in range(len(iBIi.matrix)):
for r845 in range(len(iBIi.matrix[YRbF])):
if iBIi.matrix[YRbF][r845] == 'X':
return (YRbF, r845) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GWoV(YKHO):\n return YKHO.x",
"def Iuzb(YKHO):\n return YKHO._find_gnx_node(YKHO.gnx)",
"def yvSL(YKHO, U6D_):\n for rdlD in range(YKHO.rows):\n for fvDH in range(YKHO.cols):\n if YKHO.data[rdlD][fvDH] == U6D_:\n return (rdlD, fvDH)\n return (None, None)",
"de... | [
"0.7002737",
"0.6997586",
"0.69242674",
"0.69242674",
"0.68373466",
"0.68309766",
"0.68294305",
"0.6758082",
"0.66949236",
"0.6660032",
"0.6630614",
"0.65938634",
"0.6574828",
"0.65066135",
"0.6482705",
"0.64803374",
"0.64783335",
"0.6432948",
"0.6416851",
"0.64150304",
"0.63... | 0.81424296 | 0 |
Returns the probability of infection from the homogeneous model. | def lbLQ(i9E9, XP5J, SGf8):
return (1 - oyIN.exp(-i9E9 * XP5J)) * (1 - SGf8) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DxT_(YKHO):\n return 0",
"def _Ntk(YKHO, lqcW: Virus, DR3L: int, e3am: int) -> TNEG:\n return LEoN.binom.pmf(DR3L, e3am, YKHO.probability_random_individual(lqcW))",
"def VZxN(YKHO, WKvO):\n with ht2j.no_grad():\n tTpl = YKHO.predict_evidence(WKvO)\n jzdc = tTpl + YKHO.prior\n return Y... | [
"0.637902",
"0.6228094",
"0.6171466",
"0.6047489",
"0.6028248",
"0.601556",
"0.58980584",
"0.5856737",
"0.584454",
"0.5840832",
"0.5834162",
"0.58281595",
"0.5820537",
"0.5819039",
"0.57901496",
"0.57727236",
"0.5760897",
"0.5734076",
"0.569462",
"0.56778795",
"0.56750757",
... | 0.53055346 | 71 |
Returns the probability of infection from the homogeneous model. | def c7hI(i9E9, XP5J, jzdc, Fg_i, SGf8):
wuLw = 0.001
return (1 - (gmTb(tLQh, 0, 0 + wuLw, args=(i9E9, XP5J, jzdc, Fg_i), full_output=1)[0] + gmTb(tLQh, 0 + wuLw, 1 - wuLw, args=(i9E9, XP5J, jzdc, Fg_i), full_output=1)[0] + gmTb(tLQh, 1 - wuLw, 1, args=(i9E9, XP5J, jzdc, Fg_i), full_output=1)[0])) * (1 - SGf8) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DxT_(YKHO):\n return 0",
"def _Ntk(YKHO, lqcW: Virus, DR3L: int, e3am: int) -> TNEG:\n return LEoN.binom.pmf(DR3L, e3am, YKHO.probability_random_individual(lqcW))",
"def VZxN(YKHO, WKvO):\n with ht2j.no_grad():\n tTpl = YKHO.predict_evidence(WKvO)\n jzdc = tTpl + YKHO.prior\n return Y... | [
"0.63793814",
"0.622858",
"0.6172715",
"0.60472095",
"0.6026994",
"0.6016497",
"0.58966345",
"0.58579034",
"0.58454156",
"0.58399844",
"0.58341223",
"0.5828931",
"0.58223045",
"0.5820874",
"0.5790977",
"0.57738096",
"0.5761911",
"0.5735048",
"0.5695193",
"0.5679459",
"0.56742... | 0.0 | -1 |
Cumulative Density Function (cdf) of a Uniform distribution between 0 and tmax). | def MukJ(a1PO, RfSx):
return a1PO / RfSx if a1PO < RfSx else 1.0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YzER(YKHO, BWXx):\n YzER = ht2j.where(BWXx < 1.0, YKHO.base.cdf(BWXx), ht2j.ones_like(BWXx))\n YzER = ht2j.where(BWXx < 0.0, ht2j.zeros_like(YzER), YzER)\n return YzER",
"def YzER(YKHO, BWXx):\n return YKHO._normal.cdf(BWXx)",
"def kz4l(WKvO: float) -> float:\n if WKvO < 0:\n return 0... | [
"0.73129076",
"0.7255101",
"0.7186487",
"0.7174935",
"0.7167722",
"0.70780605",
"0.70579857",
"0.7046187",
"0.70306903",
"0.70285314",
"0.7005609",
"0.6893192",
"0.68187696",
"0.67317396",
"0.6726005",
"0.6726005",
"0.66952777",
"0.669111",
"0.6620818",
"0.6595278",
"0.658365... | 0.8345838 | 0 |
Probability Density Function (cdf) of a Uniform distribution between 0 and tmax). | def gcCh(a1PO, RfSx):
return 1.0 / RfSx if a1PO < RfSx else 0.0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MukJ(a1PO, RfSx):\n return a1PO / RfSx if a1PO < RfSx else 1.0",
"def kz4l(WKvO):\n if WKvO < 0:\n return 0\n elif WKvO < 1:\n return WKvO\n else:\n return 1",
"def Y7fw(WKvO, z2bo):\n return 0.5 * (1.0 + ZylS.erf(WKvO / (epAf.sqrt(2) * z2bo + 1e-20)))",
"def kz4l(WKvO... | [
"0.8390286",
"0.7352716",
"0.72865623",
"0.72498304",
"0.7218356",
"0.7189219",
"0.7145334",
"0.70600545",
"0.69173145",
"0.6876992",
"0.6859961",
"0.6730696",
"0.6725306",
"0.66429776",
"0.6621934",
"0.6588559",
"0.6552947",
"0.6549228",
"0.6497151",
"0.6440601",
"0.6352819"... | 0.5914779 | 37 |
Probability Density Function (cdf) of a mixture of a timeindependent Uniform distribution [0,1/k] and a Gamma distribution (c,tau). | def pybq(a1PO, Z9rn, jmzt, G1Hx):
return G1Hx * (1 - aevO.gamma.cdf(a1PO, Z9rn, loc=0, scale=jmzt)) + (1 - G1Hx * a1PO) * aevO.gamma.pdf(a1PO, Z9rn, loc=0, scale=jmzt) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V_yk(n2Q1, SpII, Z9rn, jmzt):\n return aevO.gamma.cdf(SpII, Z9rn, loc=0, scale=jmzt) - aevO.gamma.cdf(n2Q1, Z9rn, loc=0, scale=jmzt)",
"def Mg7h(Bc4p, Nq1b):\n p6tM = H4yH.zeros((3, 3))\n p6tM[0, 0] = Bc4p[0] ** 2 * Nq1b[0, 0] + Bc4p[1] ** 2 * Nq1b[5, 5] + Bc4p[2] ** 2 * Nq1b[4, 4]\n p6tM[0, 0] +... | [
"0.7141099",
"0.6488965",
"0.64289594",
"0.6293411",
"0.62221956",
"0.6175399",
"0.6161322",
"0.6111622",
"0.60960954",
"0.60786474",
"0.6075022",
"0.6068992",
"0.6050025",
"0.6026712",
"0.6023302",
"0.6009027",
"0.59919477",
"0.59845954",
"0.5981555",
"0.5962784",
"0.5936938... | 0.7653793 | 0 |
The Highest Posterior Density (credible) interval of data at level level. | def K64j(nPrm, ABDL=0.95):
Csk6 = list(nPrm)
Csk6.sort()
ASOQ = len(nPrm)
qoju = int(round(ABDL * ASOQ))
YRbF = 0
Mkmy = Csk6[YRbF + qoju - 1] - Csk6[YRbF]
for G1Hx in range(len(Csk6) - (qoju - 1)):
y_A8 = Csk6[G1Hx + qoju - 1] - Csk6[G1Hx]
if y_A8 < Mkmy:
Mkmy = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BWxS(YKHO):\n oRRe = str(YKHO.density.index(min(YKHO.density)) + 1)\n print(oRRe)\n return oRRe",
"def Wiyw(jzdc):\n return eQSh.pareto.cdf((10000, 1000000), jzdc)",
"def isMb(YKHO):\n return YKHO.data.last('1D').high.iat[0]",
"def gOwe(LVAh):\n s9bC, AOfu = oyIN.percentile(LVAh, [75, 2... | [
"0.6219594",
"0.6156212",
"0.6064257",
"0.6039184",
"0.58526087",
"0.58424616",
"0.57718205",
"0.5731661",
"0.567162",
"0.5660792",
"0.56583244",
"0.564584",
"0.554909",
"0.5534542",
"0.5532671",
"0.55323666",
"0.5527317",
"0.5527317",
"0.5527317",
"0.5527317",
"0.5527317",
... | 0.5489129 | 25 |
Returns the median in between the 95% HPD interval of the array. | def vQkz(ezWE):
Ylbp = [[], [], []]
Mkmy = (nfBR(ezWE, 2.5), nfBR(ezWE, 97.5))
Ylbp[0] = Mkmy[0]
Ylbp[1] = ezWE.mean(0)
Ylbp[2] = Mkmy[1]
return oyIN.array(Ylbp) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BjRM(qw7D):\n sorted = [WKvO for WKvO in qw7D]\n sorted.sort()\n Hpmo = len(sorted) / 2\n if len(sorted) % 2 == 0:\n return float(sorted[Hpmo] + sorted[Hpmo - 1]) / 2\n else:\n return sorted[Hpmo]",
"def BjRM(YKHO):\n YKHO.data.sort()\n if len(YKHO.data) % 2 == 1:\n ... | [
"0.75379425",
"0.7272167",
"0.7263493",
"0.7255109",
"0.72529024",
"0.72291523",
"0.72034836",
"0.7193159",
"0.71600926",
"0.7090051",
"0.704163",
"0.70387167",
"0.702505",
"0.70006466",
"0.7000414",
"0.6960538",
"0.6947567",
"0.6912141",
"0.68521166",
"0.6850747",
"0.6807697... | 0.0 | -1 |
The Highest Posterior Density (credible) interval of data at level level. | def K64j(nPrm, ABDL=0.95):
Csk6 = list(nPrm)
Csk6.sort()
ASOQ = len(nPrm)
qoju = int(round(ABDL * ASOQ))
YRbF = 0
Mkmy = Csk6[YRbF + qoju - 1] - Csk6[YRbF]
for G1Hx in range(len(Csk6) - (qoju - 1)):
y_A8 = Csk6[G1Hx + qoju - 1] - Csk6[G1Hx]
if y_A8 < Mkmy:
Mkmy = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BWxS(YKHO):\n oRRe = str(YKHO.density.index(min(YKHO.density)) + 1)\n print(oRRe)\n return oRRe",
"def Wiyw(jzdc):\n return eQSh.pareto.cdf((10000, 1000000), jzdc)",
"def isMb(YKHO):\n return YKHO.data.last('1D').high.iat[0]",
"def gOwe(LVAh):\n s9bC, AOfu = oyIN.percentile(LVAh, [75, 2... | [
"0.6217027",
"0.61550206",
"0.6062507",
"0.60367423",
"0.5850257",
"0.58413607",
"0.57725",
"0.5730007",
"0.5671265",
"0.5660404",
"0.56565076",
"0.56444967",
"0.55484474",
"0.55328065",
"0.55326474",
"0.5530003",
"0.5525697",
"0.5525697",
"0.5525697",
"0.5525697",
"0.5525697... | 0.5473721 | 26 |
Return True if both URL's belong to same domain | def K5iE(zH0S, Z6vV):
return KVWQ.urlparse(zH0S).netloc == KVWQ.urlparse(Z6vV).netloc | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vwhK(zH0S, Z6vV):\n zH0S = KVWQ(zH0S)\n Z6vV = KVWQ(Z6vV)\n return zH0S.netloc == Z6vV.netloc",
"def vwhK(zH0S, Z6vV):\n return OPd_.extract(zH0S).domain == OPd_.extract(Z6vV).domain",
"def vwhK(zH0S, Z6vV):\n zH0S = KVWQ(zH0S)\n Z6vV = KVWQ(Z6vV)\n return zH0S.netloc == Z6vV.netloc",
... | [
"0.8386386",
"0.83714986",
"0.8348104",
"0.80530375",
"0.7595328",
"0.7548599",
"0.7303652",
"0.7283177",
"0.72320485",
"0.69416344",
"0.68359864",
"0.68300515",
"0.6584193",
"0.6579227",
"0.6539408",
"0.6538929",
"0.6506473",
"0.6500966",
"0.6486522",
"0.6437221",
"0.641506"... | 0.8476882 | 0 |
There are len(parent) vertices. The root is always at vertex 0. parent[j] is the parent of vertex j. parent[0] is ignored. | def FIMM(YKHO, _AKB):
YKHO.parent = _AKB[:]
YKHO.size = len(YKHO.parent)
YKHO.children = {}
YKHO.data = {}
for YRbF in Ni9Y(YKHO.size):
YKHO.children[YRbF] = []
YKHO.nchildren = [1] * YKHO.size
for YRbF in Ni9Y(1, YKHO.size):
YKHO.children[YKHO.parent[YRbF]].append(YRbF)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vi3q(YKHO):\n YKHO.find_parents()\n d6pt = 0\n while len(YKHO.vertices[d6pt].parents) > 0:\n d6pt = YKHO.vertices[d6pt].parents[0]\n return d6pt",
"def ZM4e(YKHO):\n xGoe = YKHO.node + '_ZERO'\n xGoe = FQNo.ls(xGoe)\n if not xGoe:\n xGoe = BfDw.get_parent(YKHO.const_node)\n... | [
"0.6713574",
"0.645158",
"0.6429755",
"0.61721885",
"0.6114134",
"0.6093453",
"0.6071002",
"0.6069297",
"0.60667944",
"0.60667944",
"0.59958315",
"0.5977648",
"0.5972592",
"0.59379023",
"0.5936338",
"0.59175384",
"0.59118533",
"0.5908496",
"0.5878821",
"0.58667713",
"0.584714... | 0.58085936 | 22 |
Gets a value at an index. Vectorized. | def NMoC(YKHO, d6pt: Union[int, np.ndarray]) -> uLKX[float, oyIN.ndarray]:
Atep = YKHO.capacity + d6pt
return YKHO._tree[Atep] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OP2O(YKHO, d6pt):\n return YKHO._value_at(d6pt)",
"def OP2O(YKHO, d6pt):\n return YKHO._value_at(d6pt)",
"def JdFv(YKHO, d6pt):\n return YKHO['value'][d6pt]",
"def NMoC(YKHO, d6pt):\n return YKHO.values[d6pt]",
"def OP2O(YKHO, d6pt):\n return YKHO.values[d6pt]",
"def NMoC(YKHO, d6pt):\... | [
"0.7764518",
"0.7764518",
"0.77337456",
"0.75785655",
"0.750067",
"0.73143625",
"0.72458494",
"0.7205571",
"0.7179878",
"0.71663296",
"0.71062034",
"0.7057174",
"0.70210207",
"0.697269",
"0.6964194",
"0.68947935",
"0.68947935",
"0.6890369",
"0.68804115",
"0.6877181",
"0.68563... | 0.6525849 | 67 |
generate random string to avoid name conflicts for the modified images | def BWvy(len=5):
return ''.join((tuKI.choice(vIwR.digits) for YRbF in range(len))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hdmV():\n\n def qRoT():\n u54L = tuKI.randint(10, 15)\n gLiZ = vIwR.ascii_letters + vIwR.digits + '-_'\n return f'{''.join((tuKI.choice(gLiZ) for bGrB in range(u54L)))}.jpg'\n return qRoT",
"def mpyu(t1Eh, zNig=12, gLiZ=vIwR.ascii_uppercase + vIwR.ascii_lowercase + vIwR.digits):\n ... | [
"0.7829612",
"0.742512",
"0.7353707",
"0.7203188",
"0.7194872",
"0.7192667",
"0.7149722",
"0.7145379",
"0.713603",
"0.71064025",
"0.70761114",
"0.70745766",
"0.7069032",
"0.7055481",
"0.7054837",
"0.7034252",
"0.70227236",
"0.6965159",
"0.69060934",
"0.6899044",
"0.6879605",
... | 0.0 | -1 |
returns wrapped version of array, with the first element in each rwo appended to the end of the same rows. For polar plotting or angles/orientations | def GDMi(qw7D):
assert qw7D.ndim == 2, 'works on 2D arrays only; expecting self.cond_tuning, which should be 2D'
return oyIN.column_stack((qw7D, qw7D[..., 0])) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VT19(Ggaq):\n ZbOB = Ggaq\n if ZbOB.ndim == 0:\n if isinstance(ZbOB[...], oyIN.ndarray):\n return VT19(ZbOB[...])\n return ZbOB\n while isinstance(ZbOB[0], oyIN.ndarray):\n if ZbOB.shape[0] == 1:\n ZbOB = ZbOB[0]\n else:\n ZbOB = oyIN.array(... | [
"0.6279273",
"0.5694872",
"0.56498224",
"0.56361955",
"0.56182384",
"0.5536571",
"0.5480168",
"0.5469622",
"0.54538834",
"0.5438826",
"0.5423384",
"0.5353946",
"0.53471434",
"0.533088",
"0.52868545",
"0.5267953",
"0.526645",
"0.52563536",
"0.5234905",
"0.52171737",
"0.5216397... | 0.64518386 | 0 |
Sets the seed for this env's random number generator(s). | def yokr(YKHO, yokr=None):
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e3of(Emd4, yokr: Any) -> None:\n Emd4.rand = RHmZ(yokr)",
"def e3of(YKHO, yokr: int):\n YKHO.__sim.seed(yokr)",
"def e3of(YKHO, yokr):\n YKHO.seed = yokr",
"def yokr(YKHO, yokr=None):\n if yokr is not None:\n YKHO._rng.seed(yokr)",
"def PVng(YKHO, yokr):\n oyIN.random.seed(yokr)\n... | [
"0.837315",
"0.8116574",
"0.80862194",
"0.8081547",
"0.80698186",
"0.80698186",
"0.8035685",
"0.79711807",
"0.7949761",
"0.79067385",
"0.79045385",
"0.78622633",
"0.7830874",
"0.78281605",
"0.78175986",
"0.77908194",
"0.7770842",
"0.7770138",
"0.77453065",
"0.7741128",
"0.772... | 0.6942953 | 92 |
Uniformly randomly sample a random element of this space. | def mvm2(YKHO, yokr=None):
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mvm2(YKHO):\n P6bq = oyIN.asarray(oyIN.random.uniform())\n return YKHO.invert(P6bq)",
"def mvm2(YKHO):\n return gigf.rand_state.uniform(low=YKHO.bounds[0], high=YKHO.bounds[1])",
"def wL7C(WKvO):\n return oyIN.random.choice(WKvO)",
"def dfyx(YKHO):\n WKvO = YKHO.dist.sample(1)\n return ... | [
"0.7637743",
"0.7470502",
"0.7417337",
"0.73104256",
"0.7027301",
"0.69600207",
"0.6903716",
"0.6827143",
"0.6809805",
"0.68025815",
"0.6765496",
"0.6691489",
"0.66317177",
"0.66290855",
"0.65781707",
"0.65712464",
"0.6545701",
"0.6541364",
"0.652493",
"0.6494487",
"0.6455562... | 0.6171192 | 50 |
Return the colors as a dict, pass False to return the colors as empty strings. | def fRt4(YKHO, fpBc=True):
Jw9H = {'BLACK': '\x1b[0;30m', 'DARK_GRAY': '\x1b[1;30m', 'RED': '\x1b[0;31m', 'LIGHT_RED': '\x1b[1;31m', 'GREEN': '\x1b[0;32m', 'LIGHT_GREEN': '\x1b[1;32m', 'BLUE': '\x1b[0;34m', 'LIGHT_BLUE': '\x1b[1;34m', 'MAGENTA': '\x1b[0;35m', 'LIGHT_MAGENTA': '\x1b[1;35m', 'CYAN': '\x1b[0;36m', 'LI... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WUH5():\n Ajy4.statusMessage('Reading existing colors...')\n Ftic = Ajy4.getColorNames()\n Ajy4.progressTotal(len(Ftic))\n YRbF = 0\n u2Wg = {}\n for mWFP in Ftic:\n u2Wg[mWFP] = None\n YRbF = YRbF + 1\n Ajy4.progressSet(YRbF)\n return u2Wg",
"def Jw9H(YKHO) -> dict:... | [
"0.7529635",
"0.7514521",
"0.72039735",
"0.72039735",
"0.70634633",
"0.7024431",
"0.6813183",
"0.6764268",
"0.6710563",
"0.66823304",
"0.6561415",
"0.6544837",
"0.651633",
"0.6508912",
"0.64820737",
"0.64574164",
"0.643868",
"0.64377534",
"0.64280605",
"0.6386101",
"0.636466"... | 0.6754095 | 8 |
returns the z for which P(Z >= z) = probability | def vRHY(Q7Be, yGTL=0, WTkW=1):
return K0SZ(1 - Q7Be, yGTL, WTkW) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def guBC(epBp):\n RdgZ = 6.0\n if epBp == 0.0:\n WKvO = 0.0\n else:\n LVAh = 0.5 * epAf.fabs(epBp)\n if LVAh >= RdgZ * 0.5:\n WKvO = 1.0\n elif LVAh < 1.0:\n yzQ0 = LVAh * LVAh\n WKvO = ((((((((0.000124818987 * yzQ0 - 0.001075204047) * yzQ0 + 0.... | [
"0.79242647",
"0.7624886",
"0.7550281",
"0.7404978",
"0.6840768",
"0.6698161",
"0.6459714",
"0.64431596",
"0.6393817",
"0.63831145",
"0.6313411",
"0.6313405",
"0.6290237",
"0.6254836",
"0.62211996",
"0.6180083",
"0.61527425",
"0.6145629",
"0.60834765",
"0.6082641",
"0.6079866... | 0.0 | -1 |
Calc the point 'b' where line crosses the Y axis | def xb18(XP5J, r8hN):
return XP5J[1] - r8hN * XP5J[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aZVB(YKHO, AU8u):\n Fg_i = ((YKHO.x - AU8u.x) * AU8u.y - (YKHO.y - AU8u.y) * AU8u.x) / (YKHO.x - AU8u.x)\n jzdc = (YKHO.y - AU8u.y) / (YKHO.x - AU8u.x)\n return (jzdc, Fg_i)",
"def aZVB(YKHO, s2OG):\n \"\"\"Calculate slope\"\"\"\n jzdc = (s2OG.y - YKHO.y) / (s2OG.x - YKHO.x)\n 'Calculate b'... | [
"0.6913221",
"0.67790705",
"0.6602316",
"0.6504766",
"0.6361854",
"0.63299304",
"0.6321518",
"0.6268088",
"0.623139",
"0.6223527",
"0.6216309",
"0.62125814",
"0.6212377",
"0.6155648",
"0.6145618",
"0.6125405",
"0.6099838",
"0.6055512",
"0.6041457",
"0.5979832",
"0.59728837",
... | 0.0 | -1 |
Converts normalization params from nested dicts to pandas DataFrame. | def nvPj(XESH, XLXO=None, fJj1=None, J0nS=None):
kLN5 = {}
for fF3r in XESH:
t4fw = XESH[fF3r]
Oegn = XXBh(t4fw)
kLN5[fF3r] = [t4fw[oxYQ], Oegn]
if XLXO is not None:
t4fw = XLXO[fF3r]
jpYI = K08C(frequency_dict=t4fw, percentile_level=fJj1)
pLm_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vy2X(N6Z1: Dict[str, Dict[str, Union[List[Any], torch.Tensor, np.array]]]) -> rLdf.DataFrame:\n hlel = {}\n for _BgK, aTj1 in N6Z1.items():\n for H5ew, BWXx in aTj1.items():\n e8fK = f'{_BgK}_{H5ew}'\n if not isinstance(BWXx, list):\n BWXx = BWXx.tolist()\n ... | [
"0.6753304",
"0.67307097",
"0.6469942",
"0.63721955",
"0.63175637",
"0.6263311",
"0.62449974",
"0.61602986",
"0.6148902",
"0.6083451",
"0.6022574",
"0.6021604",
"0.5947283",
"0.59276456",
"0.59066916",
"0.58417785",
"0.58347446",
"0.58317554",
"0.57965523",
"0.5763218",
"0.57... | 0.6549517 | 2 |
Huber regression loss Variant of the SquaredLoss that is robust to outliers (quadratic near zero, linear in for large errors). | def fXJ9(Y8eF, aMgO, _hZ2=0.1):
DHd1 = Kt_s.abs_(aMgO - Y8eF)
N77f = 0.5 * DHd1 ** 2
or8S = DHd1 <= _hZ2
N77f[or8S] = _hZ2 * DHd1[or8S] - 0.5 * _hZ2 ** 2
return N77f | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kxPL(LVAh, U89Q):\n P1dF = nMvt.abs(LVAh - U89Q)\n pWQu = nMvt.clip(P1dF, 0.0, 1.0)\n oNxe = P1dF - pWQu\n N77f = nMvt.mean(0.5 * nMvt.square(pWQu) + oNxe)\n return N77f",
"def L8kW(YKHO, EcVT, fuBA):\n return u2Ve.huber_loss(1.0, EcVT - fuBA)",
"def kxPL(LVAh, uN02, RA_F):\n QFIp = 0.... | [
"0.7226849",
"0.6722067",
"0.6629518",
"0.6532827",
"0.62723136",
"0.6252489",
"0.6161152",
"0.6161141",
"0.61475646",
"0.60539234",
"0.6047933",
"0.59826535",
"0.5982444",
"0.59808606",
"0.5974761",
"0.59656566",
"0.5952505",
"0.59520704",
"0.59117746",
"0.5897803",
"0.58967... | 0.5904634 | 19 |
Fully connected autoencoder model, symmetric. | def C0yj(Htse, u_ln='relu', DbxN='glorot_uniform'):
E7KG = len(Htse) - 1
YpkZ = X6a0(shape=(Htse[0],), name='input')
WKvO = YpkZ
for YRbF in range(E7KG - 1):
WKvO = l6ZH(Htse[YRbF + 1], activation=u_ln, kernel_initializer=DbxN, name='encoder_%d' % YRbF)(WKvO)
ERVO = l6ZH(Htse[-1], kernel_ini... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZXim():\n YpkZ = X6a0(shape=(84, 84, 3))\n WKvO = Ofph(48, 8, 8, activation='relu', border_mode='same', name='c1')(YpkZ)\n WKvO = BzBX((2, 2), border_mode='same')(WKvO)\n WKvO = Ofph(32, 4, 4, activation='relu', border_mode='same', name='c2')(WKvO)\n WKvO = BzBX((2, 2), border_mode='same')(WKvO)... | [
"0.7196832",
"0.6893117",
"0.67456645",
"0.66887695",
"0.66514546",
"0.6596896",
"0.657406",
"0.65313935",
"0.6445991",
"0.6428346",
"0.61691767",
"0.6158236",
"0.6151338",
"0.6143695",
"0.6066768",
"0.6066054",
"0.60190195",
"0.6018256",
"0.59953135",
"0.5976885",
"0.5951744... | 0.64928 | 8 |