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 |
|---|---|---|---|---|---|---|
Get or set the emission status. | def rGIL(YKHO, jvSB=-1, Z_rv=False, jY15=False):
if jvSB > -1:
w6vw = YKHO.comm('EMI ,' + str(jvSB))
CisH = float(w6vw.strip())
else:
w6vw = YKHO.comm('EMI')
CisH = float(w6vw.strip())
if Z_rv ^ jY15:
if Z_rv:
YKHO.comm('FIE ,0')
if jY15:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def w8Lw(YKHO, BWXx):\n YKHO.send(':OUTP{:d} {:d}'.format(YKHO.n, int(BWXx)))",
"def hqCf(YKHO):\n return YKHO.__status",
"def VLTN(YKHO):\n return YKHO._status",
"def VLTN(YKHO):\n return YKHO._status",
"def VLTN(YKHO):\n return YKHO.status",
"def VLTN(YKHO):\n return YKHO.status",
"... | [
"0.60486573",
"0.60379994",
"0.5976735",
"0.5976735",
"0.5957025",
"0.5948603",
"0.5948603",
"0.5948603",
"0.5948603",
"0.58917195",
"0.5891221",
"0.5891221",
"0.5886115",
"0.5886115",
"0.5886115",
"0.58807296",
"0.5880008",
"0.5869453",
"0.58682925",
"0.5841338",
"0.57993066... | 0.6062012 | 0 |
getUserById returns the details of the User with the Id passed as 'userId' | def PeCT(YKHO, QTiD):
bD7m = YKHO._v2BaseURL + '/api/v2/user/' + QTiD
MOPg = {'Content-Type': 'application/json', 'Accept': 'application/json', 'icSessionID': YKHO._v2icSessionID}
xiOe.log.info('getUserById URL - ' + bD7m)
xiOe.log.info('API Headers: ' + str(MOPg))
xiOe.log.info('Body: ' + 'This API... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TKWP(QTiD: str) -> Yuvf:\n em58 = DTsL.request.headers['Authorization']\n return uuUY.users.get.get_user(auth_token=BbzP(em58), user_id=QTiD)",
"def m7Re(QpfX, uJjO):\n return gJE7.user_get(QpfX, uJjO)",
"def NMoC(YKHO, uJjO: str) -> mv1M:\n pass",
"def TKWP(YKHO, n10L):\n return nNXP.user... | [
"0.7844589",
"0.76381904",
"0.7573391",
"0.7520562",
"0.75048876",
"0.74426323",
"0.7427661",
"0.74030036",
"0.7393192",
"0.7384989",
"0.73665434",
"0.7362139",
"0.7333707",
"0.7322727",
"0.7321009",
"0.72995603",
"0.7296228",
"0.729536",
"0.7292345",
"0.7290653",
"0.728929",... | 0.7895363 | 0 |
Return a dictionary with date keys and precipitation values. Dan you helped simplify this concept, much appreciated | def cBYs():
cuiw = DMju(eHpk)
AK9s = cuiw.query(Ny6I.date, JfyU.sum(Ny6I.prcp)).group_by(Ny6I.date).all()
oWz_ = []
for _c1T, OScg in AK9s:
keeN = {}
keeN[_c1T] = OScg
oWz_.append(keeN)
return pz3A(oWz_) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cBYs():\n O99P = cuiw.query(Ny6I.date, Ny6I.prcp).all()\n U6z0 = {}\n for WKvO in O99P:\n U6z0[WKvO[0]] = WKvO[1]\n cuiw.close()\n return pz3A(U6z0)",
"def cBYs():\n w_b8 = JRYC.date(2017, 8, 23) - JRYC.timedelta(days=365)\n CEyq = cuiw.query(D3vS.date, D3vS.prcp).filter(D3vS.date... | [
"0.753481",
"0.72981155",
"0.71755093",
"0.71605057",
"0.71565604",
"0.71369517",
"0.7122533",
"0.71021277",
"0.70943695",
"0.7087469",
"0.70509267",
"0.70231986",
"0.6977459",
"0.69441205",
"0.6927062",
"0.6925734",
"0.689987",
"0.6888557",
"0.6885876",
"0.68654686",
"0.6861... | 0.70551383 | 10 |
Return list of minimum temp, average temp and max temp for a given start date | def _c1T(yKcO):
cuiw = DMju(eHpk)
jbfN = cuiw.query(JfyU.min(Ny6I.tobs), JfyU.avg(Ny6I.tobs), JfyU.max(Ny6I.tobs)).filter(Ny6I.date >= yKcO).all()
cSTY = list(oyIN.ravel(jbfN))
if cSTY[0] is None:
return (pz3A({'error': f'Temperature stats for {yKcO} was not found. Please choose an earlier date.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UD08(kepv):\n M1Jx = kepv.split('-')\n L548 = JRYC.date(int(M1Jx[0]), int(M1Jx[1]), int(M1Jx[2]))\n cuiw = DMju(eHpk)\n dixj = cuiw.query(Ny6I.date, JfyU.min(Ny6I.tobs), JfyU.avg(Ny6I.tobs), JfyU.max(Ny6I.tobs)).filter(Ny6I.date >= L548).group_by(Ny6I.date).all()\n cuiw.close()\n Qp4H = []\n ... | [
"0.7661188",
"0.76503646",
"0.75188166",
"0.73966634",
"0.73966634",
"0.738234",
"0.7379655",
"0.7373113",
"0.7373113",
"0.7353534",
"0.73417664",
"0.73417664",
"0.73417664",
"0.73417664",
"0.73417664",
"0.73417664",
"0.73417664",
"0.73354703",
"0.73354703",
"0.73354703",
"0.... | 0.5998519 | 87 |
The set of arguments for constructing a ServiceCustomIssueTracker resource. | def FIMM(Ro_8, *, vo72: pulumi.Input[str], bNKA: pulumi.Input[str], GhYH: pulumi.Input[str]):
qe4Y.set(Ro_8, 'issues_url', vo72)
qe4Y.set(Ro_8, 'project', bNKA)
qe4Y.set(Ro_8, 'project_url', GhYH) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(Ro_8, kFeU: str, qIxc: ServiceCustomIssueTrackerArgs, VKhi: Optional[pulumi.ResourceOptions]=None):\n ...",
"def FIMM(Ro_8, kFeU: str, VKhi: Optional[pulumi.ResourceOptions]=None, Psqq: Optional[pulumi.Input[str]]=None, DEiX: Optional[pulumi.Input[str]]=None, r6DL=None):\n ...",
"def FIMM(Ro_8, ... | [
"0.804548",
"0.6068649",
"0.5990934",
"0.59856033",
"0.593025",
"0.5908257",
"0.59013605",
"0.58905965",
"0.58905965",
"0.58656317",
"0.5859414",
"0.58450854",
"0.5840623",
"0.58275306",
"0.58183455",
"0.58120275",
"0.5769819",
"0.5764337",
"0.57641876",
"0.57641876",
"0.5759... | 0.0 | -1 |
Whether the integration is active. | def WZHJ(YKHO) -> h8nf[qe4Y.Input[bool]]:
return qe4Y.get(YKHO, 'active') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ksfB(YKHO) -> bool:\n return qe4Y.get(YKHO, 'is_active')",
"def ksfB(YKHO) -> bool:\n return qe4Y.get(YKHO, 'is_active')",
"def IN9u(YKHO):\n return YKHO.isAvailable() and YKHO.is_enabled",
"def ksfB(YKHO):\n return",
"def WZHJ(YKHO) -> bool:\n return qe4Y.get(YKHO, 'active')",
"def ks... | [
"0.8327689",
"0.8327689",
"0.829005",
"0.8270524",
"0.8249885",
"0.8216703",
"0.8199986",
"0.8199986",
"0.8199986",
"0.8199986",
"0.8199986",
"0.8199986",
"0.8199986",
"0.8199986",
"0.8199986",
"0.8199986",
"0.8199986",
"0.8199986",
"0.8199986",
"0.8199986",
"0.8199986",
"0... | 0.0 | -1 |
Get an existing ServiceCustomIssueTracker 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, WZHJ: Optional[pulumi.Input[bool]]=None, aJ2e: Optional[pulumi.Input[str]]=None, vo72: Optional[pulumi.Input[str]]=None, bNKA: Optional[pulumi.Input[str]]=None, GhYH: Optional[pulumi.Input[str]]=None, s5ru: Optional[pulumi.Input[str... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None, DdzD: Optional[pulumi.Input[str]]=None, JBZA: Optional[pulumi.Input[str]]=None, o_gm: Optional[pulumi.Input[str]]=None, jGRS: Optional[pulumi.Input[str]]=None, WN6y: Optional[pulumi.Input[str]]=None) -> 'CustomImage':\n VKhi... | [
"0.543928",
"0.5213667",
"0.5141055",
"0.5072287",
"0.49343902",
"0.49161947",
"0.48627576",
"0.48415723",
"0.48328477",
"0.48326668",
"0.47552717",
"0.4749993",
"0.47445545",
"0.4742984",
"0.47340822",
"0.4729097",
"0.47095913",
"0.47094458",
"0.47065085",
"0.47032207",
"0.4... | 0.74884456 | 0 |
Whether the integration is active. | def WZHJ(YKHO) -> qe4Y.Output[bool]:
return qe4Y.get(YKHO, 'active') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ksfB(YKHO) -> bool:\n return qe4Y.get(YKHO, 'is_active')",
"def ksfB(YKHO) -> bool:\n return qe4Y.get(YKHO, 'is_active')",
"def IN9u(YKHO):\n return YKHO.isAvailable() and YKHO.is_enabled",
"def ksfB(YKHO):\n return",
"def WZHJ(YKHO) -> bool:\n return qe4Y.get(YKHO, 'active')",
"def ks... | [
"0.8327689",
"0.8327689",
"0.829005",
"0.8270524",
"0.8249885",
"0.8216703",
"0.8199986",
"0.8199986",
"0.8199986",
"0.8199986",
"0.8199986",
"0.8199986",
"0.8199986",
"0.8199986",
"0.8199986",
"0.8199986",
"0.8199986",
"0.8199986",
"0.8199986",
"0.8199986",
"0.8199986",
"0... | 0.0 | -1 |
Performs the einsum product between fields. | def jIRx(*V_D6, bS0K=None, dsE5=False):
V_D6 = b1CZ(*V_D6)
if isinstance(bS0K, dict):
bS0K = (bS0K,)
bS0K = tuple(bS0K)
if not len(bS0K) in (len(V_D6), len(V_D6) + 1):
raise ValueError('A set of indexes per field must be given.')
if not all((isinstance(DNs0, dict) for DNs0 in bS0K)):... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jIRx(YKHO, NL3_, *Lw3l):\n raise NotImplementedError()",
"def jIRx(YKHO, *qIxc):\n nvUx(NotImplementedError)",
"def w8Df(k0lF, tjUW):\n return oyIN.einsum('ij,ik->jk', tjUW, k0lF)",
"def yEoA(k0lF, tjUW):\n return k0lF.multiply(tjUW).sum(0).A1 if KN5h(k0lF) else oyIN.einsum('ij, ij -> j', k0l... | [
"0.72432774",
"0.70907754",
"0.67174757",
"0.6407002",
"0.63330686",
"0.63166726",
"0.6316099",
"0.6300183",
"0.6296823",
"0.6287681",
"0.62867653",
"0.6275835",
"0.6167374",
"0.6157716",
"0.61515254",
"0.6145429",
"0.6143759",
"0.61422306",
"0.61239344",
"0.60948277",
"0.608... | 0.6174567 | 12 |
Get the region that this zone belongs to. | def aGvo(YKHO):
A2F6 = YKHO._provider.parse_url(YKHO._zone['region'])
return A2F6.parameters['region'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oMHX(YKHO):\n return YKHO.region",
"def oMHX(YKHO):\n return YKHO.region",
"def mSOp(YKHO):\n return YKHO._region",
"def oMHX():\n PWuA = 'http://metadata.google.internal/computeMetadata/v1/instance/zone'\n MOPg = {'Metadata-Flavor': 'Google'}\n Mkmy = G4JS.get(PWuA, headers=MOPg)\n ... | [
"0.8451257",
"0.842784",
"0.8370318",
"0.82359403",
"0.80730766",
"0.80730766",
"0.80730766",
"0.7906238",
"0.7895425",
"0.7890194",
"0.787504",
"0.787504",
"0.787504",
"0.787504",
"0.787504",
"0.787504",
"0.787504",
"0.787504",
"0.787504",
"0.787504",
"0.787504",
"0.787504... | 0.0 | -1 |
Return the ID of this VM firewall which is determined based on the network and the target tag corresponding to this VM firewall. | def id(YKHO):
return cMnQ.tag_network_id(YKHO._vm_firewall, YKHO._network.name) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def id(YKHO):\n return YKHO._vm_firewall.id",
"def TGZq(YKHO):\n U34r = YKHO.firewall.delegate.get_firewall_info(YKHO._rule)\n if U34r is None or 'src_dest_tag' not in U34r:\n return None\n return cMnQ.tag_network_id(U34r['src_dest_tag'], YKHO.firewall.network.name)",
"def vG87(YKHO) -> str:... | [
"0.7804138",
"0.68877083",
"0.6759846",
"0.6759846",
"0.6759846",
"0.6759846",
"0.67359114",
"0.6674741",
"0.66716677",
"0.66716677",
"0.66092265",
"0.6551086",
"0.65477645",
"0.65477645",
"0.65182114",
"0.6449373",
"0.6441902",
"0.643562",
"0.6398434",
"0.6361701",
"0.636170... | 0.82136697 | 0 |
Return the name of the VM firewall which is the same as the corresponding tag name. | def mWFP(YKHO):
return YKHO._vm_firewall | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO):\n return YKHO._vm_firewall.name",
"def tvqd(YKHO, dV9r):\n if 'network' not in dV9r:\n return p4bK.CB_DEFAULT_NETWORK_LABEL\n bD7m = YKHO._provider.parse_url(dV9r['network'])\n return bD7m.parameters['network']",
"def id(YKHO):\n return cMnQ.tag_network_id(YKHO._vm_firewal... | [
"0.8131634",
"0.68252826",
"0.6531533",
"0.62808937",
"0.624504",
"0.6183692",
"0.61800396",
"0.61551905",
"0.6124793",
"0.6124531",
"0.60901195",
"0.5923209",
"0.5912378",
"0.587424",
"0.5841273",
"0.58378994",
"0.583002",
"0.57663834",
"0.5763658",
"0.57580936",
"0.57181764... | 0.8071292 | 1 |
The description of the VM firewall is even explicitly given when the VM firewall is created or is determined from a VM firewall rule, i.e. a GCP firewall, in the VM firewall. If the GCP firewalls are created using this API, they all have the same description. | def JBZA(YKHO):
if YKHO._description is None:
for dV9r in YKHO._delegate.iter_firewalls(YKHO._vm_firewall, YKHO._network.name):
if 'description' in dV9r:
YKHO._description = dV9r['description']
if YKHO._description is None:
YKHO._description = ''
return YKHO._desc... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JBZA(YKHO):\n return YKHO._vm_firewall.description",
"def dV9r(YKHO) -> 'outputs.FirewallInfoResponse':\n return qe4Y.get(YKHO, 'firewall')",
"def mWFP(YKHO):\n return YKHO._vm_firewall",
"def mWFP(YKHO):\n return YKHO._vm_firewall.name",
"def xpkr(YKHO):\n D0tQ = YKHO._gcp_instance.get(... | [
"0.7520234",
"0.68027854",
"0.61436933",
"0.60086113",
"0.5985856",
"0.5811685",
"0.57324827",
"0.5708965",
"0.55828196",
"0.5565274",
"0.5547498",
"0.5520305",
"0.5515123",
"0.5480629",
"0.54344743",
"0.54058135",
"0.5403746",
"0.5402758",
"0.537017",
"0.5315034",
"0.5261773... | 0.7229552 | 1 |
Return the VM firewall given access by this rule. | def TGZq(YKHO):
U34r = YKHO.firewall.delegate.get_firewall_info(YKHO._rule)
if U34r is None or 'src_dest_tag' not in U34r:
return None
return cMnQ.tag_network_id(U34r['src_dest_tag'], YKHO.firewall.network.name) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dV9r(YKHO) -> 'outputs.FirewallInfoResponse':\n return qe4Y.get(YKHO, 'firewall')",
"def mWFP(YKHO):\n return YKHO._vm_firewall",
"def id(YKHO):\n return YKHO._vm_firewall.id",
"def mWFP(YKHO):\n return YKHO._vm_firewall.name",
"def zM9Q(Ye9C, z39Z=None):\n w2B8 = Hbi_(z39Z)\n return ... | [
"0.7380782",
"0.69768274",
"0.66347706",
"0.6588565",
"0.6346968",
"0.6327469",
"0.62988085",
"0.6194882",
"0.6135742",
"0.61148286",
"0.60958165",
"0.60802644",
"0.5972222",
"0.59150624",
"0.58102995",
"0.5802814",
"0.5779917",
"0.57418287",
"0.5719406",
"0.57187206",
"0.571... | 0.0 | -1 |
Return the VM firewall given access by this rule. | def pTJV(YKHO):
U34r = YKHO.firewall.delegate.get_firewall_info(YKHO._rule)
if U34r is None or 'src_dest_tag' not in U34r:
return None
return yKOX(YKHO.firewall.delegate, U34r['src_dest_tag'], YKHO.firewall.network) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dV9r(YKHO) -> 'outputs.FirewallInfoResponse':\n return qe4Y.get(YKHO, 'firewall')",
"def mWFP(YKHO):\n return YKHO._vm_firewall",
"def id(YKHO):\n return YKHO._vm_firewall.id",
"def mWFP(YKHO):\n return YKHO._vm_firewall.name",
"def zM9Q(Ye9C, z39Z=None):\n w2B8 = Hbi_(z39Z)\n return ... | [
"0.7380782",
"0.69768274",
"0.66347706",
"0.6588565",
"0.6346968",
"0.6327469",
"0.62988085",
"0.6194882",
"0.6135742",
"0.60958165",
"0.60802644",
"0.5972222",
"0.59150624",
"0.58102995",
"0.5802814",
"0.5779917",
"0.57418287",
"0.5719406",
"0.57187206",
"0.5713376",
"0.5634... | 0.61148286 | 9 |
Get the image identifier. | def id(YKHO):
return YKHO._gcp_image.get('selfLink') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def r8m5(YKHO) -> str:\n return qe4Y.get(YKHO, 'image_id')",
"def r8m5(YKHO) -> str:\n return qe4Y.get(YKHO, 'image_id')",
"def r8m5(YKHO) -> str:\n return qe4Y.get(YKHO, 'image_id')",
"def r8m5(YKHO) -> str:\n return qe4Y.get(YKHO, 'image_id')",
"def r8m5(YKHO) -> str:\n return qe4Y.get(YKH... | [
"0.8635475",
"0.8635475",
"0.8635475",
"0.8635475",
"0.8635475",
"0.8635475",
"0.85941064",
"0.84262353",
"0.8357336",
"0.8288835",
"0.8194878",
"0.8194878",
"0.8194878",
"0.81461537",
"0.8015951",
"0.7928854",
"0.7928854",
"0.7928854",
"0.7928854",
"0.7928854",
"0.7928854",
... | 0.0 | -1 |
Get the instance identifier. A GCP instance is uniquely identified by its selfLink, which is used as its id. | def id(YKHO):
return YKHO._gcp_instance.get('selfLink') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o_gm(YKHO) -> str:\n return qe4Y.get(YKHO, 'instance_id')",
"def o_gm(YKHO) -> str:\n return qe4Y.get(YKHO, 'instance_id')",
"def o_gm(YKHO) -> str:\n return qe4Y.get(YKHO, 'instance_id')",
"def o_gm(YKHO) -> str:\n return qe4Y.get(YKHO, 'instance_id')",
"def o_gm(YKHO) -> str:\n return ... | [
"0.8195427",
"0.8195427",
"0.8195427",
"0.8195427",
"0.8195427",
"0.8195427",
"0.8195427",
"0.80511135",
"0.8032674",
"0.7952973",
"0.79364",
"0.79077476",
"0.78689903",
"0.78492826",
"0.78492826",
"0.78492826",
"0.78492826",
"0.78492826",
"0.78492826",
"0.78492826",
"0.78492... | 0.73773295 | 55 |
Get the instance name. | def mWFP(YKHO):
return YKHO._gcp_instance['name'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zeTD(YKHO) -> str:\n return qe4Y.get(YKHO, 'instance_name')",
"def zeTD(YKHO) -> str:\n return qe4Y.get(YKHO, 'instance_name')",
"def zeTD(YKHO) -> str:\n return qe4Y.get(YKHO, 'instance_name')",
"def zeTD(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'instance_name')",
"def zeTD(YKHO)... | [
"0.91426927",
"0.91426927",
"0.91426927",
"0.90021724",
"0.857483",
"0.85360146",
"0.84976953",
"0.8350134",
"0.80763215",
"0.79970264",
"0.7923451",
"0.79000145",
"0.79000145",
"0.78705776",
"0.78705776",
"0.78705776",
"0.78502965",
"0.78502965",
"0.78502965",
"0.78502965",
... | 0.82195187 | 8 |
Get the instance type. | def wPf9(YKHO):
jrDN = YKHO._gcp_instance.get('machineType')
if jrDN is None:
return None
DZCA = YKHO._provider.parse_url(jrDN)
return nw1l(YKHO._provider, DZCA.get_resource()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DEXX(YKHO) -> str:\n return YKHO._instance_type",
"def DEXX(YKHO) -> str:\n return qe4Y.get(YKHO, 'instance_type')",
"def DEXX(YKHO) -> str:\n return qe4Y.get(YKHO, 'instance_type')",
"def DEXX(YKHO) -> str:\n return qe4Y.get(YKHO, 'instance_type')",
"def DEXX(YKHO) -> str:\n return qe4Y... | [
"0.8758559",
"0.87072927",
"0.87072927",
"0.87072927",
"0.87072927",
"0.87072927",
"0.87072927",
"0.85176754",
"0.85176754",
"0.8512866",
"0.83146024",
"0.83146024",
"0.83146024",
"0.83146024",
"0.83146024",
"0.83146024",
"0.83146024",
"0.83146024",
"0.83124304",
"0.83124304",
... | 0.0 | -1 |
Get the zone for this instance. | def pyfM(YKHO):
return YKHO._gcp_instance.get('networkInterfaces', [{}])[0].get('subnetwork') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lhKE(YKHO):\n return YKHO._zone",
"def lhKE(YKHO):\n return YKHO._zone",
"def lhKE(YKHO) -> str:\n return qe4Y.get(YKHO, 'zone')",
"def lhKE(YKHO) -> str:\n return qe4Y.get(YKHO, 'zone')",
"def lhKE(YKHO) -> str:\n return qe4Y.get(YKHO, 'zone')",
"def lhKE(YKHO) -> str:\n return qe4... | [
"0.8542397",
"0.8542397",
"0.82947415",
"0.82947415",
"0.82947415",
"0.82947415",
"0.82947415",
"0.8235812",
"0.8217463",
"0.8217463",
"0.812471",
"0.812471",
"0.8110771",
"0.80015296",
"0.80015296",
"0.79377466",
"0.7845153",
"0.781775",
"0.781775",
"0.781775",
"0.781775",
... | 0.0 | -1 |
Get the image ID for this insance. | def r8m5(YKHO):
if 'disks' not in YKHO._gcp_instance:
return None
for UTqa in YKHO._gcp_instance['disks']:
if 'boot' in UTqa and UTqa['boot']:
XkPj = YKHO._provider.parse_url(UTqa['source'])
return XkPj.get_resource().get('sourceImage')
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def r8m5(YKHO) -> str:\n return qe4Y.get(YKHO, 'image_id')",
"def r8m5(YKHO) -> str:\n return qe4Y.get(YKHO, 'image_id')",
"def r8m5(YKHO) -> str:\n return qe4Y.get(YKHO, 'image_id')",
"def r8m5(YKHO) -> str:\n return qe4Y.get(YKHO, 'image_id')",
"def r8m5(YKHO) -> str:\n return qe4Y.get(YKH... | [
"0.85901755",
"0.85901755",
"0.85901755",
"0.85901755",
"0.85901755",
"0.85901755",
"0.84442407",
"0.83206886",
"0.83206886",
"0.83206886",
"0.82732576",
"0.8132065",
"0.8097961",
"0.804164",
"0.804164",
"0.804164",
"0.804164",
"0.804164",
"0.804164",
"0.7994855",
"0.7901384"... | 0.69915926 | 44 |
Get the placement zone id where this instance is running. | def DVVB(YKHO):
return YKHO._gcp_instance.get('zone') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DVVB(YKHO) -> str:\n return qe4Y.get(YKHO, 'zone_id')",
"def DVVB(YKHO) -> str:\n return qe4Y.get(YKHO, 'zone_id')",
"def DVVB(YKHO) -> str:\n return qe4Y.get(YKHO, 'zone_id')",
"def DVVB(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'zone_id')",
"def DVVB(YKHO) -> h8nf[str]:\n return qe4Y... | [
"0.83787656",
"0.83787656",
"0.83787656",
"0.82252026",
"0.82252026",
"0.81767",
"0.8173767",
"0.8173767",
"0.8173767",
"0.8173767",
"0.8173767",
"0.8173767",
"0.8173767",
"0.817143",
"0.7921277",
"0.7921277",
"0.7921277",
"0.7921277",
"0.7921277",
"0.7921277",
"0.7921277",
... | 0.85428417 | 0 |
Get the VM firewalls associated with this instance. | def xpkr(YKHO):
D0tQ = YKHO._gcp_instance.get('networkInterfaces')[0].get('network')
bD7m = YKHO._provider.parse_url(D0tQ)
tvqd = bD7m.parameters['network']
if 'items' not in YKHO._gcp_instance['tags']:
return []
dJ1p = YKHO._gcp_instance['tags']['items']
Q7ED = YKHO._provider.security.v... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Spn1(YKHO):\n dixj = YKHO.client['Account'].getObject(mask={'networkVlans': {'firewallNetworkComponents': None, 'networkVlanFirewall': None, 'dedicatedFirewallFlag': None, 'firewallGuestNetworkComponents': None, 'firewallInterfaces': {}, 'firewallRules': None, 'highAvailabilityFirewallFlag': None}})['networ... | [
"0.77592945",
"0.70925236",
"0.6869939",
"0.6800618",
"0.67135453",
"0.6694035",
"0.65722555",
"0.65393406",
"0.6456059",
"0.6439163",
"0.63133955",
"0.6260552",
"0.6064429",
"0.6020124",
"0.5771593",
"0.57604617",
"0.57504535",
"0.57288074",
"0.5678606",
"0.5678488",
"0.5594... | 0.81070334 | 0 |
Get the VM firewall IDs associated with this instance. | def M5Ht(YKHO):
M1dv = []
for _sef in YKHO.vm_firewalls:
M1dv.append(_sef.id)
return M1dv | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xpkr(YKHO):\n D0tQ = YKHO._gcp_instance.get('networkInterfaces')[0].get('network')\n bD7m = YKHO._provider.parse_url(D0tQ)\n tvqd = bD7m.parameters['network']\n if 'items' not in YKHO._gcp_instance['tags']:\n return []\n dJ1p = YKHO._gcp_instance['tags']['items']\n Q7ED = YKHO._provide... | [
"0.7016406",
"0.6891393",
"0.6585497",
"0.63263065",
"0.6321564",
"0.6284992",
"0.6077939",
"0.5986233",
"0.5953648",
"0.5857251",
"0.5781254",
"0.5774165",
"0.57179767",
"0.57048166",
"0.57048166",
"0.57003516",
"0.56976044",
"0.56934017",
"0.56934017",
"0.56309265",
"0.5589... | 0.84069204 | 0 |
Return the target instance corresponding to this instance. If there is no target instance for this instance, return None. | def pxm8(YKHO):
try:
for CFkk in XN37.iter_all(YKHO._provider.gcp_compute.targetInstances(), project=YKHO._provider.project_name, zone=YKHO.zone_name):
bD7m = YKHO._provider.parse_url(CFkk['instance'])
if bD7m.parameters['instance'] == YKHO.name:
return CFkk
excep... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def S0Mb(YKHO):\n bT1g = YKHO._get_existing_target_instance()\n if bT1g:\n return bT1g\n TBsA = {'name': 'target-instance-{0}'.format(qxeD.uuid4()), 'instance': YKHO._gcp_instance['selfLink']}\n try:\n geh0 = YKHO._provider.gcp_compute.targetInstances().insert(project=YKHO._provider.proje... | [
"0.8183076",
"0.76186234",
"0.7618051",
"0.7614423",
"0.7596739",
"0.7588152",
"0.74377334",
"0.7426033",
"0.737301",
"0.737301",
"0.737301",
"0.737301",
"0.737301",
"0.73507994",
"0.73495626",
"0.7340321",
"0.72858304",
"0.7179322",
"0.7167289",
"0.71347624",
"0.7133634",
... | 0.7854018 | 1 |
Get this bucket's name. | def mWFP(YKHO):
return YKHO._bucket['name'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def l7rj(YKHO) -> str:\n return qe4Y.get(YKHO, 'bucket_name')",
"def l7rj(YKHO) -> str:\n return qe4Y.get(YKHO, 'bucket_name')",
"def l7rj(YKHO) -> str:\n return qe4Y.get(YKHO, 'bucket_name')",
"def l7rj(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'bucket_name')",
"def l7rj(YKHO):\... | [
"0.8852026",
"0.8852026",
"0.8852026",
"0.85296655",
"0.80781144",
"0.80516994",
"0.80222684",
"0.80102134",
"0.80102134",
"0.80102134",
"0.79837066",
"0.79720795",
"0.79720795",
"0.79720795",
"0.79720795",
"0.79720795",
"0.79720795",
"0.79720795",
"0.79720795",
"0.79720795",
... | 0.8951871 | 0 |
Check that the email of user is unique. | def Bt7w(YKHO, D3lj):
if not D3lj:
raise IyFz.ValidationError('No email provided.')
D3lj = D3lj.lower()
if mv1M.objects.filter(email=D3lj).exists():
raise IyFz.ValidationError('A user with that email already exists.')
return D3lj | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PC4t(D3lj):\n return not mv1M.objects.filter(email=D3lj).exists()",
"def a4p5(L03z, Jyyj):\n OSYx = Nc2H.query(Nc2H.email == Jyyj.data).count()\n if OSYx >= 1:\n raise ffF6.ValidationError('This Email is already in use. Please try another one.')",
"def Bakb(Q6kx: c.SchemaNode, BWXx: str):\n... | [
"0.8363588",
"0.80906516",
"0.8027206",
"0.80171436",
"0.79853624",
"0.7975608",
"0.7959354",
"0.79513973",
"0.7930586",
"0.7895386",
"0.78801405",
"0.7832924",
"0.78172445",
"0.7810088",
"0.7802733",
"0.7785621",
"0.7772533",
"0.7771609",
"0.77542937",
"0.774358",
"0.7741445... | 0.7577226 | 44 |
Diagnalize a basis and return a list of set of indexes to get each bit | def VaAj(SxVy):
mOkE, xp17 = UT1g(SxVy)
for wzu_ in range(len(SxVy)):
for HkJz in range(wzu_ + 1, len(SxVy)):
if mOkE[wzu_] >> HkJz & 1:
mOkE[wzu_] ^= mOkE[HkJz]
xp17[wzu_] = xp17[wzu_].symmetric_difference(xp17[HkJz])
assert all((mOkE[YRbF] == 1 << YRbF f... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f6nQ(exwG):\n fhcK = int(oyIN.log2(exwG))\n _0VL = []\n for exwG, r8hN, gEmA in lr2O(exwG):\n F3OU = oyIN.zeros(exwG, dtype='i4')\n Q6Rv = oyIN.zeros(exwG, dtype='i4')\n for jzdc, Fg_i, yvT9, b3SJ in qgQz(exwG, r8hN, gEmA):\n F3OU[yvT9] = jzdc\n F3OU[yvT9 + e... | [
"0.6418599",
"0.6233317",
"0.6218403",
"0.6215568",
"0.61180675",
"0.5968723",
"0.5967332",
"0.5956885",
"0.589499",
"0.58685625",
"0.5864845",
"0.58314145",
"0.58117366",
"0.57440954",
"0.5717293",
"0.5696879",
"0.5657505",
"0.56384146",
"0.5633331",
"0.5633331",
"0.56136394... | 0.68837285 | 0 |
Flatten lists and convert it into numpy array | def seG8(*qIxc):
PWgb = oyIN.array(list(eNCK(*qIxc)))
return PWgb | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SzeA(XZLe):\n return oyIN.stack(XZLe, axis=0)",
"def YtMx(Cmjf):\n return oyIN.concatenate(Cmjf, axis=0)",
"def PWgb(WKvO):\n if not isinstance(WKvO, g760.Iterable):\n return oyIN.array([WKvO])\n yv6U = []\n [yv6U.extend(tTpl) if isinstance(tTpl, g760.Iterable) else yv6U.append(tTpl) ... | [
"0.7973141",
"0.7793083",
"0.75213814",
"0.74765664",
"0.7386176",
"0.732373",
"0.73040897",
"0.7275425",
"0.72327167",
"0.7188162",
"0.70841634",
"0.7014714",
"0.6946298",
"0.6937832",
"0.6901014",
"0.6886088",
"0.6862194",
"0.68523407",
"0.6840036",
"0.68006986",
"0.6794252... | 0.6969878 | 12 |
returns True if player collders with base or pipes. | def ISsn(oyg0, KGNH, DxE8):
mM0K = oyg0['index']
oyg0['w'] = Rulv['player'][0].get_width()
oyg0['h'] = Rulv['player'][0].get_height()
if oyg0['y'] + oyg0['h'] >= VEzp - 1:
return [True, True]
else:
P183 = a9eO.Rect(oyg0['x'], oyg0['y'], oyg0['w'], oyg0['h'])
M8c9 = Rulv['pipe... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wND7(YKHO, N89E):\n for bCYe in N89E:\n if YKHO.x + YKHO.width >= bCYe.x and YKHO.x <= bCYe.x + bCYe.width:\n if YKHO.y <= bCYe.hole_position - bCYe.hole_size / 2 or YKHO.y + YKHO.height >= bCYe.hole_position + bCYe.hole_size / 2:\n return True\n return False",
"def u8D... | [
"0.7099917",
"0.7078634",
"0.7078634",
"0.68007857",
"0.66788137",
"0.6627509",
"0.65835404",
"0.6393004",
"0.63555765",
"0.6340392",
"0.62573504",
"0.62570024",
"0.6245728",
"0.62234676",
"0.6203791",
"0.6179296",
"0.61356187",
"0.6133257",
"0.6125161",
"0.6084614",
"0.60343... | 0.60909027 | 19 |
3x3 convolution with padding | def Myly(UUZO, sYyA, _0fC=1, moMn=1, ivFb=1):
return U78l.Conv2d(UUZO, sYyA, kernel_size=3, stride=_0fC, padding=ivFb, groups=moMn, bias=False, dilation=ivFb) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sx6c(input, KUnM, FEri, dvgN, wH3T='NHWC', mJgj=1, mWFP=None):\n return o6Bz(**locals())",
"def Myly(UUZO, sYyA, _0fC=1, moMn=1, ivFb=1):\n return U78l.Conv2d(UUZO, sYyA, kernel_size=3, stride=_0fC, padding=0, groups=moMn, bias=False, dilation=ivFb)",
"def DO8L(WKvO, yzQ0, UP6E=[0, 0, 0], FEri=[1, 1,... | [
"0.78404945",
"0.7541354",
"0.753996",
"0.7491138",
"0.7434801",
"0.74207747",
"0.73415834",
"0.7320252",
"0.7299599",
"0.7287539",
"0.72799367",
"0.72799367",
"0.7257735",
"0.7226928",
"0.72204214",
"0.7214909",
"0.7214909",
"0.7210775",
"0.7198222",
"0.71639067",
"0.7161914... | 0.70922214 | 59 |
Create dictionary with argument names as keys and their passed values as values. An empty dictionary is returned if an error is detected, such as more arguments than in the function definition, argument(s) defined by position and keyword, etc. | def wZUi(JfyU, *qIxc, **B2fa):
try:
dKZ5 = aadv(JfyU).bind_partial(*qIxc, **B2fa).arguments
except TypeError:
return dict()
Ltpw = aadv(JfyU).parameters
for WLRG in Ltpw:
if Ltpw[WLRG].default != XDS4.empty and Ltpw[WLRG].name not in dKZ5:
dKZ5[Ltpw[WLRG].name] = Ltpw... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EvYx(JfyU, qIxc):\n crLg = eZmk.spec(JfyU).args\n return dict(DMWo(crLg, qIxc))",
"def LIwu(JfyU, qIxc, B2fa):\n yh3d = {}\n for YRbF, d7pR in enumerate(tq_1.getargspec(JfyU)[0]):\n if d7pR != 'self':\n try:\n yh3d[d7pR] = qIxc[YRbF]\n except IndexError... | [
"0.7285677",
"0.71493345",
"0.71008015",
"0.6961406",
"0.6950484",
"0.6942223",
"0.6934848",
"0.69163024",
"0.69152284",
"0.6880418",
"0.6877877",
"0.68672734",
"0.68625826",
"0.68454736",
"0.67430544",
"0.6715341",
"0.6582045",
"0.65470076",
"0.6534499",
"0.65206957",
"0.651... | 0.7704735 | 0 |
Validate one exception specification contract tuple/list. | def RUPi(d7pR):
if not (q8Sy(d7pR) or isinstance(d7pR, (str, tuple, list))):
raise TypeError('Illegal custom contract exception definition')
if isinstance(d7pR, (tuple, list)) and (not d7pR or len(d7pR) > 2):
raise TypeError('Illegal custom contract exception definition')
if isinstance(d7pR,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yIUJ():\n for UnuI in (12.6, [12.6]):\n with Qg87.assert_raises(TypeError):\n o8aq(UnuI)",
"def RIUO(YKHO):\n try:\n assert len(YKHO) == 3\n assert [type(tTpl) for tTpl in YKHO] == [int, int, int]\n except AssertionError:\n raise FvOQ('Tuple needs to consist of... | [
"0.64770037",
"0.6462947",
"0.639839",
"0.63430864",
"0.6283514",
"0.6263723",
"0.61155665",
"0.5979722",
"0.59796304",
"0.5964848",
"0.59640336",
"0.59207374",
"0.5919204",
"0.5911286",
"0.5901367",
"0.5896524",
"0.58776236",
"0.5869833",
"0.58659315",
"0.5865146",
"0.586026... | 0.0 | -1 |
Generate message for exception. | def sGSP(vGQ7):
bgyR = '[START CONTRACT MSG: '
GNRX = '[STOP CONTRACT MSG]'
if vGQ7.find(bgyR) == -1:
return {'num': 0, 'msg': 'Argument `*[argument_name]*` is not valid', 'type': RuntimeError, 'field': 'argument_name'}
LaUM = vGQ7.find(bgyR) + len(bgyR)
vGQ7 = vGQ7[LaUM:]
lTfs = vGQ7[:v... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R0ZH(BQDi):\n if str(BQDi):\n return '%s: %s' % (BQDi.__class__.__name__, BQDi)\n else:\n return '%s' % BQDi.__class__.__name__",
"def db9D(mdek, if88, AJ5d, tO9_=None):\n return tO9_ or 'Behaviour.shouldRaiseException: Executable (%s) should raise exception (%s), got exception (%s).' ... | [
"0.77437395",
"0.74158436",
"0.73677546",
"0.73677546",
"0.73596275",
"0.733526",
"0.7312979",
"0.73036677",
"0.72773993",
"0.7221084",
"0.71698344",
"0.71300715",
"0.71067923",
"0.70871496",
"0.70118284",
"0.6999799",
"0.69893557",
"0.6980667",
"0.6949378",
"0.6947318",
"0.6... | 0.0 | -1 |
Extract replacement token from exception message. | def hege(tO9_):
return None if not ZbWC.search('\\*\\[[\\w|\\W]+\\]\\*', tO9_) else ZbWC.search('\\*\\[[\\w|\\W]+\\]\\*', tO9_).group()[2:-2] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qx_G(Emd4, eOtH):\n return (eOtH,)",
"def A8XN(nPrm):\n return nPrm.decode().split('=message=')[1].split('\\x00')[0]",
"def j_nX(hGN5):\n if not hGN5:\n return ''\n pyLq = hGN5.find('Traceback')\n if pyLq > 0:\n hGN5 = hGN5[pyLq:]\n return hGN5",
"def sQjL(YKHO, Ol8d):\n ... | [
"0.5884148",
"0.5841494",
"0.5800808",
"0.5687305",
"0.56653017",
"0.56409013",
"0.5631554",
"0.5631554",
"0.5547935",
"0.5470675",
"0.5414721",
"0.54071504",
"0.54022866",
"0.5393198",
"0.5348765",
"0.5348701",
"0.5328859",
"0.5324066",
"0.5316617",
"0.5316617",
"0.52883166"... | 0.7207203 | 0 |
Initializes an Element of TrackNodeHeap storing the node and priority | def FIMM(YKHO, Q6kx, Ey19):
YKHO._node = Q6kx
YKHO._priority = Ey19 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, Ey19=lambda WKvO: WKvO):\n YKHO.heap = []\n YKHO.priority = Ey19",
"def FIMM(YKHO):\n YKHO._values = QdpR()\n YKHO._min_priority = 0",
"def FIMM(YKHO):\n YKHO.heap = [None]",
"def FIMM(YKHO):\n YKHO.heap = [None]",
"def FIMM(YKHO):\n YKHO.heap = ([], [])",
"def FIMM(YK... | [
"0.75299764",
"0.74193996",
"0.73465264",
"0.73049676",
"0.7252862",
"0.7228406",
"0.71890515",
"0.7174388",
"0.7124361",
"0.70967215",
"0.707605",
"0.70473135",
"0.7001558",
"0.69793487",
"0.6965487",
"0.69505465",
"0.69504213",
"0.6931776",
"0.6926116",
"0.69155556",
"0.689... | 0.6825428 | 24 |
Add a node with the respective priority the heap. | def H2v5(YKHO, Q6kx, Ey19):
if Q6kx in YKHO._map.keys():
raise Exception('node is already in the heap')
YKHO._map[Q6kx] = YKHO._size
YKHO._elementList.append(YKHO.Element(Q6kx, Ey19))
YKHO._size += 1
YKHO._bubbleUp(YKHO._size - 1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JPHp(YKHO, Q6kx, Ey19=0):\n if Q6kx in YKHO:\n YKHO.delete(Q6kx)\n bTKY = [Ey19, Q6kx]\n YKHO.entry_finder[Q6kx] = bTKY\n _eVy.heappush(YKHO.heap, bTKY)",
"def JPHp(YKHO, Q6kx, Ey19=0.0):\n if Q6kx in YKHO.entry_finder:\n YKHO.delete(Q6kx)\n bTKY = [Ey19, Q6kx]\n YKHO.entry... | [
"0.7894003",
"0.78304905",
"0.7805288",
"0.7683127",
"0.7640453",
"0.7600741",
"0.75438744",
"0.75196904",
"0.73800755",
"0.7364883",
"0.7316782",
"0.7288492",
"0.72672045",
"0.7234133",
"0.72275895",
"0.7161731",
"0.7133041",
"0.7122394",
"0.7120824",
"0.7119596",
"0.7116238... | 0.84600747 | 0 |
Return node value with lowest priority if heap in min. Return node value with highest priority if heap in max. | def T7C_(YKHO):
if YKHO._size <= 0:
raise Exception('heap is empty')
return YKHO._elementList[0].node | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def w8Dw(gGCN):\n SLBp, Ey19 = gGCN.popitem()\n return SLBp",
"def RCxM(gGCN):\n return gGCN[0] if len(gGCN) > 0 else float('Inf')",
"def kBvZ(YKHO) -> object:\n w82_ = YKHO.get_min()\n if YKHO.heap.length() == 1:\n return YKHO.heap.pop()\n else:\n YKHO.heap.set_at_index(0, YKHO... | [
"0.733977",
"0.71110153",
"0.70862085",
"0.7048213",
"0.7019527",
"0.69804716",
"0.69172925",
"0.6896246",
"0.6869594",
"0.68462217",
"0.6818835",
"0.6817059",
"0.68054307",
"0.680019",
"0.678788",
"0.6770408",
"0.67274606",
"0.6684892",
"0.6681869",
"0.66468614",
"0.6618523"... | 0.0 | -1 |
Return and remove node value with lowest priority if heap in min. Return and remove node value with highest priority if heap in max. | def aBG1(YKHO):
if YKHO._size <= 0:
raise Exception('heap is empty')
Q6kx = YKHO._elementList[0].node
YKHO._swap(0, YKHO._size - 1)
del YKHO._elementList[YKHO._size - 1]
del YKHO._map[Q6kx]
YKHO._size -= 1
YKHO._bubbleDown(0)
return Q6kx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ud4o(YKHO) -> int:\n if len(YKHO.heap) <= 1:\n print(f'No values stored in heap', file=wIbz)\n return -1\n if len(YKHO.heap) == 2:\n return YKHO.heap.pop()\n Aofo = YKHO.heap[1]\n YKHO.heap[1] = YKHO.heap.pop()\n hksT = 1\n while hksT * 2 + 1 < len(YKHO.heap):\n AP... | [
"0.75490206",
"0.7510498",
"0.7501338",
"0.7471521",
"0.7275787",
"0.72720367",
"0.71465296",
"0.7113084",
"0.7049109",
"0.7037634",
"0.70182055",
"0.70005465",
"0.69335186",
"0.6813784",
"0.681217",
"0.6762536",
"0.67494637",
"0.67298573",
"0.6711262",
"0.66644394",
"0.66581... | 0.0 | -1 |
Row index of all observations in this sample. | def d6pt(YKHO) -> rLdf.Index:
return YKHO._observations.index | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wbpY(YKHO):\n return ZYgz.TRowIterator_GetRowIdx(YKHO)",
"def RXWL(YKHO):\n return oyIN.shape(YKHO.data)[0]",
"def wbpY(YKHO):\n return ZYgz.TRowIteratorWithRemove_GetRowIdx(YKHO)",
"def usx6(YKHO):\n return YKHO._row_index.keys()",
"def PNHv(YKHO) -> int:\n ...",
"def rdlD(YKHO):\n ... | [
"0.74539614",
"0.7154234",
"0.7027882",
"0.6962698",
"0.69368297",
"0.68698585",
"0.6864329",
"0.68604785",
"0.68294626",
"0.67425174",
"0.6712634",
"0.6707286",
"0.6693664",
"0.6688449",
"0.6685262",
"0.6671053",
"0.66635394",
"0.66561407",
"0.6655448",
"0.66479385",
"0.6640... | 0.6508834 | 32 |
The column names of all features in this sample. | def OeUg(YKHO) -> x1iM[str]:
return YKHO._feature_names | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gspf(YKHO):\n return list(YKHO._data.columns)",
"def OeUg(YKHO):\n V5XR = YKHO.dataframe.columns.to_list()\n V5XR.remove('_labels_class_')\n return V5XR",
"def Txl5(YKHO):\n return YKHO._data.columns()",
"def NKcn(YKHO):\n return YKHO.data.dtype.names",
"def Txl5(YKHO):\n return YK... | [
"0.83130974",
"0.82210404",
"0.8003575",
"0.78964114",
"0.78868777",
"0.784826",
"0.7813276",
"0.7806528",
"0.7779085",
"0.77012527",
"0.7696587",
"0.768121",
"0.7677601",
"0.7637193",
"0.76306796",
"0.76161957",
"0.75804174",
"0.7559453",
"0.75590783",
"0.7557331",
"0.753778... | 0.7333036 | 38 |
The column name of weights in this sample; ``None`` if no weights are defined. | def g2sk(YKHO) -> h8nf[str]:
return YKHO._weight_name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WvhX(YKHO):\n return YKHO._parms.get('weights_column')",
"def upAO(YKHO) -> h8nf[rLdf.Series]:\n if YKHO._weight_name is not None:\n return YKHO._observations.loc[:, YKHO._weight_name]\n else:\n return None",
"def g2sk(YKHO) -> str:\n return YKHO._weight_name",
"def rOos(YKHO, i... | [
"0.808429",
"0.7462891",
"0.7234541",
"0.6746815",
"0.659786",
"0.647445",
"0.6389555",
"0.6327792",
"0.63257354",
"0.626165",
"0.62134683",
"0.6147745",
"0.61087805",
"0.610593",
"0.61005694",
"0.60868704",
"0.60868704",
"0.60868704",
"0.6058672",
"0.6039829",
"0.6037507",
... | 0.7642749 | 1 |
The target variable(s) for all observations. Represented as a series if there is only a single target, or as a data frame if there are multiple targets. | def pan_(YKHO) -> uLKX[rLdf.Series, rLdf.DataFrame]:
pan_ = YKHO._target_names
if len(pan_) == 1:
return YKHO._observations.loc[:, pan_[0]]
x6A0: rLdf.DataFrame = YKHO._observations.loc[:, pan_]
ZLJ_ = x6A0.columns
if ZLJ_.name is None:
return x6A0.rename_axis(columns=NlXC.IDX_TARGET... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x6A0(YKHO) -> oyIN.ndarray:\n return YKHO.df_targets.values",
"def RH8N(YKHO):\n return ht2j.tensor(YKHO.metadata['target'].tolist())",
"def bitm(YKHO, vEq1):\n x6A0 = YKHO.dataframe.loc[vEq1].values\n return x6A0",
"def x6A0(YKHO) -> x1iM[x1iM[h8nf[float]]]:\n return [YKHO._dataset[d6pt].... | [
"0.76453906",
"0.72228026",
"0.7060953",
"0.6896911",
"0.6896911",
"0.6881463",
"0.682355",
"0.67333156",
"0.6688074",
"0.66787964",
"0.6666426",
"0.65308565",
"0.6496371",
"0.64283216",
"0.6424878",
"0.6381377",
"0.63688564",
"0.63688564",
"0.63688564",
"0.63492346",
"0.6343... | 0.8021545 | 0 |
A series indicating the weight for each observation; ``None`` if no weights are defined. | def upAO(YKHO) -> h8nf[rLdf.Series]:
if YKHO._weight_name is not None:
return YKHO._observations.loc[:, YKHO._weight_name]
else:
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _mSQ(YKHO) -> h8nf[AzJI[oyIN.array, oyIN.array]]:\n return None",
"def wT46(YKHO):\n return None",
"def GE0n(YKHO) -> mV7i | None:\n _mSQ = oyIN.array(YKHO.weights)\n return None if _mSQ.dtype == oyIN.object_ else _mSQ",
"def _mSQ(YKHO) -> uLKX[oyIN.ndarray, float]:\n if YKHO._sites is Non... | [
"0.7186844",
"0.7051315",
"0.69645554",
"0.69053775",
"0.6895498",
"0.6855363",
"0.6848024",
"0.66757345",
"0.66744804",
"0.6656909",
"0.6656909",
"0.6653145",
"0.6642392",
"0.66335154",
"0.6631082",
"0.66018766",
"0.6583227",
"0.6578193",
"0.6578193",
"0.6564965",
"0.6564965... | 0.8077761 | 0 |
Returns 1 if sample is not empty, 0 if it is empty (only zeros). | def nscJ(YKHO, __n6, or8S, yIVm):
if yIVm != 'gt':
AIS0 = __n6[or8S]['input_metadata'][0][yIVm]
if AIS0 not in YKHO.metadata_dict:
YKHO.metadata_dict[AIS0] = YKHO.label_idx
YKHO.label_idx += 1
return YKHO.metadata_dict[AIS0]
else:
B6fl = oyIN.array(__n6[or... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FBfn(YKHO):\n return oyIN.count_nonzero(YKHO) == 0",
"def lsmZ(YKHO):\n if YKHO.frequencies is None:\n return None\n return len(YKHO.frequencies) == 0",
"def FBfn(YKHO) -> bool:\n return YKHO.weight == 0.0",
"def FBfn(YKHO) -> bool:\n return YKHO.weight == 0.0",
"def FBfn(YKHO) ->... | [
"0.65069914",
"0.64237356",
"0.6400008",
"0.6400008",
"0.6400008",
"0.6400008",
"0.63366705",
"0.63320756",
"0.6309351",
"0.6281024",
"0.6281024",
"0.6249646",
"0.6241755",
"0.6233563",
"0.62300336",
"0.6223448",
"0.62120473",
"0.62024933",
"0.6198412",
"0.61849993",
"0.61740... | 0.0 | -1 |
Serializes this instance to a Python dictionary. | def MNRr(YKHO):
hlel = jth9.deepcopy(YKHO.__dict__)
return hlel | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Napc(YKHO) -> dict:\n pass",
"def Napc(YKHO):\n return dict(YKHO.__dict__)",
"def sS6L(YKHO):\n return YKHO.__dict__",
"def MNRr(YKHO) -> dict:\n return YKHO.__data__",
"def _fYl(YKHO) -> cuzp[str, ImMB]:\n return B4us(YKHO)",
"def dict(YKHO):\n return YKHO.to_dict()",
"def dict(Y... | [
"0.8867926",
"0.8861291",
"0.8325109",
"0.8323158",
"0.8313032",
"0.8288802",
"0.8288802",
"0.8282073",
"0.8282073",
"0.8282073",
"0.8282073",
"0.8282073",
"0.8282073",
"0.8282073",
"0.8282073",
"0.8282073",
"0.8282073",
"0.8251281",
"0.8234439",
"0.8234439",
"0.8216978",
"... | 0.0 | -1 |
Run layer normalization on the last dimension of the tensor. | def vUJ3(FRUf, mWFP=None):
return ZylS.contrib.layers.layer_norm(inputs=FRUf, begin_norm_axis=-1, begin_params_axis=-1, scope=mWFP) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FdFb(YKHO, vhpA, H1Ed=0):\n if H1Ed == 0:\n return vhpA\n tjUW, Nq1b, C7Ls, XcU5 = vhpA.size()\n vhpA = vhpA.view(tjUW, -1)\n XXcz = vhpA.min(dim=-1, keepdim=True)[0]\n w3IF = vhpA.max(dim=-1, keepdim=True)[0]\n sK47 = vhpA.mean(dim=-1, keepdim=True)\n clG7 = vhpA.std(dim=-1, keepdi... | [
"0.7320231",
"0.6647763",
"0.6642262",
"0.66327983",
"0.66322124",
"0.6604327",
"0.6579933",
"0.6556399",
"0.65315986",
"0.6506947",
"0.6499509",
"0.64910823",
"0.64910823",
"0.64910823",
"0.64910823",
"0.64910823",
"0.6486356",
"0.6476987",
"0.6470806",
"0.6466142",
"0.64629... | 0.63076586 | 46 |
Creates a `truncated_normal_initializer` with the given range. | def lly1(a4xb=0.02):
return ZylS.truncated_normal_initializer(stddev=a4xb) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lly1(a4xb=0.02):\n return ZylS.truncated_normal_initializer(stddev=a4xb)",
"def lly1(a4xb=0.02):\n return ZylS.truncated_normal_initializer(stddev=a4xb)",
"def lly1(a4xb=0.02):\n return ZylS.truncated_normal_initializer(stddev=a4xb)",
"def lly1(a4xb=0.02):\n return ZylS.truncated_normal_initi... | [
"0.8172833",
"0.8172833",
"0.80750257",
"0.80750257",
"0.78930557",
"0.71482706",
"0.66299963",
"0.6609093",
"0.6530241",
"0.6523175",
"0.65058553",
"0.64981776",
"0.647287",
"0.6436321",
"0.6347534",
"0.6278825",
"0.6277665",
"0.6277665",
"0.6277665",
"0.6259143",
"0.6212241... | 0.8154532 | 2 |
Reshapes a >= rank 2 tensor to a rank 2 tensor (i.e., a matrix). | def _4I8(FRUf):
kvqa = FRUf.shape.ndims
if kvqa < 2:
raise ValueError('Input tensor must have at least rank 2. Shape = %s' % FRUf.shape)
if kvqa == 2:
return FRUf
TVTK = FRUf.shape[-1]
aIXl = ZylS.reshape(FRUf, [-1, TVTK])
return aIXl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b7l5(vhpA):\n with ZylS.compat.v1.name_scope(name='reshape_to_2d'):\n fdMZ = vhpA.shape.rank if vhpA.shape is not None else None\n if fdMZ is not None and fdMZ != 2:\n if fdMZ >= 3:\n vhpA = ZylS.reshape(vhpA, ZylS.shape(input=vhpA)[0:2])\n else:\n ... | [
"0.8340745",
"0.8296307",
"0.8296307",
"0.79948884",
"0.75733864",
"0.7203733",
"0.71059436",
"0.6924177",
"0.67988634",
"0.66718894",
"0.66506",
"0.66506",
"0.66373634",
"0.6631753",
"0.6630677",
"0.6612385",
"0.65741086",
"0.6482228",
"0.64313895",
"0.6422072",
"0.6396135",... | 0.7575657 | 4 |
Reshapes a rank 2 tensor back to its original rank >= 2 tensor. | def H5Vn(aIXl, faTn):
if len(faTn) == 2:
return aIXl
oLRV = tgIT(aIXl)
XsFc = faTn[0:-1]
TVTK = oLRV[-1]
return ZylS.reshape(aIXl, XsFc + [TVTK]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b7l5(vhpA):\n with ZylS.compat.v1.name_scope(name='reshape_to_2d'):\n fdMZ = vhpA.shape.rank if vhpA.shape is not None else None\n if fdMZ is not None and fdMZ != 2:\n if fdMZ >= 3:\n vhpA = ZylS.reshape(vhpA, ZylS.shape(input=vhpA)[0:2])\n else:\n ... | [
"0.80395496",
"0.7969851",
"0.7969851",
"0.7504092",
"0.68853617",
"0.669695",
"0.669695",
"0.66967213",
"0.6640261",
"0.6626236",
"0.6584635",
"0.6562388",
"0.6524513",
"0.64821345",
"0.6480385",
"0.6445419",
"0.6404008",
"0.6398655",
"0.6393298",
"0.6382041",
"0.6380983",
... | 0.6659872 | 8 |
returns the module path without the use of __file__. Requires a function defined | def MJH2(JGkE):
return Hy7s.path.abspath(tq_1.getsourcefile(JGkE)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WJI7(YKHO):\n return '.'.join(YKHO.function.split('.')[:-1])",
"def H5Mn(Ud4m: str) -> str:\n return '.'.join(Ud4m.split('.')[:-1])",
"def co4E(m2Zb):\n VlDb = ooWL.getmodule(m2Zb)\n if VlDb and VlDb != '__main__':\n return EeDH.path.dirname(ooWL.getabsfile(m2Zb))\n else:\n ret... | [
"0.82832474",
"0.81476986",
"0.79422945",
"0.78850466",
"0.7793932",
"0.7793932",
"0.76347536",
"0.7479662",
"0.74717176",
"0.7403643",
"0.73019713",
"0.7288729",
"0.7238574",
"0.7195461",
"0.7149987",
"0.71471",
"0.70637244",
"0.70536834",
"0.70499146",
"0.7026417",
"0.69575... | 0.8176375 | 1 |
Calculates the area of triangle | def huCq(wSw1, DI1H):
ezWE = oyIN.array([wSw1, DI1H, [1, 1, 1]])
return 0.5 * abs(oyIN.linalg.det(ezWE)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cGOR(q1iG):\n return q1iG ** 2 * (epAf.sqrt(3) / 4)",
"def x5JU(P8oC=1, H2v2=1):\n return P8oC * H2v2 / 2",
"def a1HB(YKHO, L03z):\n jzdc, Fg_i, Z9rn = L03z.sides()\n k0lF = 1 / 4 * PZyS(4 * jzdc.l ** 2 * Fg_i.l ** 2 - (jzdc.l ** 2 + Fg_i.l ** 2 - Z9rn.l ** 2) ** 2)",
"def cGOR(u54L, H2v2):\n... | [
"0.8442076",
"0.83577263",
"0.8249765",
"0.81816864",
"0.81582606",
"0.81582606",
"0.8137539",
"0.7974231",
"0.79575473",
"0.79575473",
"0.7895837",
"0.78886163",
"0.78791237",
"0.78619736",
"0.7833448",
"0.78297836",
"0.7821918",
"0.7799553",
"0.7778773",
"0.7763992",
"0.767... | 0.0 | -1 |
Computes the coefficient matrix of u in the weak form of the continuity equation | def P3C7(J2Xk, pWK3, C7Ls):
N15z = J2Xk
Hvcr = pWK3
EKkU = len(J2Xk)
b81w = oyIN.zeros((EKkU, EKkU))
for YRbF in Hvcr:
gujP, r5PE, W5We = (N15z[YRbF[1]][1] - N15z[YRbF[2]][1], N15z[YRbF[2]][1] - N15z[YRbF[0]][1], N15z[YRbF[0]][1] - N15z[YRbF[1]][1])
r8hN = oyIN.matrix([[gujP, gujP, g... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LunR(yGTL, *P6bq):\n LFEP = -oyIN.array([(1 - yGTL) ** (vC9B + 1) for vC9B in range(len(P6bq))]).transpose()\n return LFEP",
"def t9Zn(YKHO, QsbH: np.array):\n Cwt5 = YKHO.alpha\n YKHO.conv = YKHO.build_conv_para(QsbH)\n bMbF = YKHO.mass\n _liH = YKHO.stiff\n yIp6 = YKHO.conv\n YKHO.a... | [
"0.69143164",
"0.68121415",
"0.67066723",
"0.66315883",
"0.6591599",
"0.6579306",
"0.65064204",
"0.65064204",
"0.65064204",
"0.6501534",
"0.6494405",
"0.6410532",
"0.6409029",
"0.6400746",
"0.6387266",
"0.6366885",
"0.63481426",
"0.6329901",
"0.63155085",
"0.6283808",
"0.6275... | 0.0 | -1 |
Computes the coefficient matrix of v in the weak form of the continuity equation | def QjD8(J2Xk, pWK3, C7Ls):
N15z = J2Xk
Hvcr = pWK3
EKkU = len(J2Xk)
b81w = oyIN.zeros((EKkU, EKkU))
for YRbF in Hvcr:
fedi, aUpo, A8_W = (N15z[YRbF[2]][0] - N15z[YRbF[1]][0], N15z[YRbF[0]][0] - N15z[YRbF[2]][0], N15z[YRbF[1]][0] - N15z[YRbF[0]][0])
r8hN = oyIN.matrix([[fedi, fedi, f... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nrOS(YKHO, Ty9i):\n jzdc = YKHO.getCoeffs()\n jzdc.reverse()\n return sum([jzdc[YRbF] * Ty9i ** YRbF for YRbF in range(len(jzdc))])",
"def UOaJ(P6bq, Ty9i):\n return [P6bq[0] * Ty9i[0] - P6bq[1] * Ty9i[1], P6bq[1] * Ty9i[0] + P6bq[0] * Ty9i[1]]",
"def xnBl(YKHO, Ty9i):\n k0lF = YKHO.computeJ... | [
"0.6914193",
"0.6772609",
"0.6645736",
"0.65546113",
"0.64690167",
"0.6442691",
"0.6421919",
"0.63657004",
"0.63065034",
"0.62597567",
"0.62557614",
"0.625125",
"0.6235046",
"0.6222995",
"0.6214261",
"0.61973494",
"0.61970437",
"0.6193968",
"0.61762065",
"0.61715114",
"0.6167... | 0.0 | -1 |
Computes the coefficient matrix of v in the weak form of the ymomentum equation | def Yg8w(J2Xk, pWK3):
Oa1e = 9.8
N15z = J2Xk
Hvcr = pWK3
EKkU = len(J2Xk)
b81w = oyIN.zeros((EKkU, EKkU))
for YRbF in Hvcr:
fedi, aUpo, A8_W = (N15z[YRbF[2]][0] - N15z[YRbF[1]][0], N15z[YRbF[0]][0] - N15z[YRbF[2]][0], N15z[YRbF[1]][0] - N15z[YRbF[0]][0])
r8hN = oyIN.matrix([[fedi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gKxR(a1PO, LVAh, Ty9i):\n return oyIN.array([EhIg * Ty9i[0]])",
"def gKxR(a1PO, LVAh, Ty9i):\n return oyIN.array([EhIg * Ty9i[0]])",
"def nrOS(YKHO, Ty9i):\n jzdc = YKHO.getCoeffs()\n jzdc.reverse()\n return sum([jzdc[YRbF] * Ty9i ** YRbF for YRbF in range(len(jzdc))])",
"def CJZI(Ty9i):\n... | [
"0.71692324",
"0.7056803",
"0.6701807",
"0.6588792",
"0.65657043",
"0.6555962",
"0.6483948",
"0.644783",
"0.64330405",
"0.6291071",
"0.6281193",
"0.62772626",
"0.622875",
"0.61936086",
"0.6167756",
"0.6166121",
"0.61604863",
"0.6126043",
"0.6125022",
"0.61066455",
"0.6100844"... | 0.0 | -1 |
Called after generating gradients; updates network weights. | def YPaw(YKHO):
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MyUA(YKHO):\n for Zxma in Ni9Y(len(YKHO.weights)):\n for YRbF in Ni9Y(len(YKHO.weights[Zxma])):\n for r845 in Ni9Y(len(YKHO.weights[Zxma][YRbF])):\n YKHO.weights[Zxma][YRbF][r845] -= YKHO.learn_rate * YKHO.weight_gradients[Zxma][YRbF][r845]",
"def MyUA(YKHO):\n YKHO.mod... | [
"0.7963263",
"0.7886567",
"0.78716505",
"0.7832215",
"0.76960987",
"0.7351792",
"0.734956",
"0.73387724",
"0.7306537",
"0.72959936",
"0.72458583",
"0.7243527",
"0.7229861",
"0.7207954",
"0.7144215",
"0.71392924",
"0.711356",
"0.7106204",
"0.7044919",
"0.7024821",
"0.70158666"... | 0.0 | -1 |
Close and delete the preview widget. | def QbvN(YKHO):
if YKHO.ui.previewWidget:
YKHO.ui.previewWidget.close()
for YRbF in range(YKHO.ui.previewFrame.layout().count()):
SZOs = YKHO.ui.previewFrame.layout().itemAt(YRbF)
if SZOs:
SZOs = SZOs.widget()
YKHO.ui.previewFrame.layout().removeWidget(SZOs)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DDI8(YKHO):\n YKHO.viewer.show_frame()\n YKHO.destroy()",
"def ABQL(YKHO):\n TEdI = tozT.PreviewWidget(None)\n YKHO.setPreviewWidget(TEdI)",
"def DDI8(YKHO):\n YKHO.vtkWidget = None",
"def qVwQ(YKHO):\n TEdI = YKHO.currentContentsWidget()\n if not TEdI:\n return\n TEdI.clos... | [
"0.7251259",
"0.7146423",
"0.702798",
"0.69880664",
"0.6915676",
"0.6874415",
"0.68457985",
"0.68416065",
"0.67973113",
"0.67554986",
"0.67434967",
"0.6690027",
"0.66814905",
"0.6662423",
"0.6640627",
"0.6626908",
"0.6619395",
"0.6608164",
"0.6581321",
"0.6552832",
"0.652758"... | 0.8561576 | 0 |
Preprocess an image so that it can be fed to a VGG network | def xCrC(VXjJ):
VXjJ[:, :, 0] -= UpiY
VXjJ[:, :, 1] -= vOkL
VXjJ[:, :, 2] -= PDlZ
VXjJ = VXjJ.astype('float32')
VXjJ = oyIN.expand_dims(VXjJ, axis=0)
return VXjJ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Kewf(p4m8):\n WKvO = LNo8.load_img(p4m8, target_size=(224, 224))\n WKvO = LNo8.img_to_array(WKvO)\n WKvO = oyIN.expand_dims(WKvO, axis=0)\n WKvO = Loy9.preprocess_input(WKvO)\n return WKvO",
"def VwsG(YKHO, VXjJ):\n if YKHO.architecture == 'VGG':\n print('Now doing VGG Preprocessing.... | [
"0.8142358",
"0.80540335",
"0.79516786",
"0.7951073",
"0.7883913",
"0.7795916",
"0.77327764",
"0.7712439",
"0.7705548",
"0.76935065",
"0.7653896",
"0.7650546",
"0.76009935",
"0.753718",
"0.74878913",
"0.7475334",
"0.7436061",
"0.74140626",
"0.74095184",
"0.7397416",
"0.739548... | 0.78974265 | 4 |
Convert a tensor to a valid image. Remove preprocessing steps | def vuHe(WKvO):
bGrB, yzQ0, MKlR, bGrB = WKvO.shape
VXjJ = WKvO.reshape((yzQ0, MKlR, 3))
VXjJ[:, :, 0] += UpiY
VXjJ[:, :, 1] += vOkL
VXjJ[:, :, 2] += PDlZ
VXjJ = oyIN.clip(VXjJ, 0, 255).astype('uint8')
return VXjJ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uaVh(YKHO, vhpA, id):\n if YKHO.debugging_messages:\n print('Converting tensor to image...')\n LNo8 = vhpA.cpu().clone().detach().numpy().squeeze()\n LNo8 = LNo8.transpose(1, 2, 0)\n LNo8 = LNo8 * oyIN.array((0.5, 0.5, 0.5)) + oyIN.array((0.5, 0.5, 0.5))\n LNo8 = oyIN.where(LNo8 > 1, 1, L... | [
"0.7048696",
"0.70060617",
"0.7002523",
"0.686832",
"0.67757213",
"0.6727859",
"0.6723752",
"0.67133594",
"0.6702341",
"0.6702341",
"0.667653",
"0.66662717",
"0.66414195",
"0.6555668",
"0.65524733",
"0.6549332",
"0.6512078",
"0.6485674",
"0.6473593",
"0.64694285",
"0.6451206"... | 0.0 | -1 |
Yield directory names not starting with '.' under given path. | def uvLY(pmON):
for bTKY in Hy7s.scandir(pmON):
if not bTKY.name.startswith('.') and (not bTKY.is_dir()):
yield bTKY.name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wCGr(pmON):\n b5F8 = ('_', '.')\n wRHU = ('~', '.swp')\n Ni4D = [Hy7s.path.join(tk5Y, eHNT) for tk5Y, AQSv, RRlC in Hy7s.walk(pmON) for eHNT in RRlC if not eHNT.endswith(wRHU) and (not eHNT.startswith(b5F8))]\n return Ni4D",
"def xdJk(pmON='.', EdbX=[], S7rU=['.~tmp~']):\n for bTKY in z0ez(pmO... | [
"0.74933386",
"0.74534756",
"0.7450694",
"0.7447889",
"0.72097915",
"0.7201068",
"0.7091837",
"0.7061425",
"0.70608944",
"0.70267725",
"0.70178246",
"0.69043547",
"0.68960506",
"0.68484896",
"0.68407345",
"0.6813787",
"0.6806253",
"0.67915225",
"0.6788296",
"0.6776485",
"0.67... | 0.7840103 | 0 |
Sets the User Password. | def m_qJ(YKHO, jTXt):
YKHO._driver.find_element(*YKHO._password_input).clear()
YKHO._driver.find_element(*YKHO._password_input).send_keys(jTXt) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zZft(YKHO, zN5h):\n YKHO.pwd = zN5h",
"def zZft(YKHO, zN5h):\n YKHO.pwd = zN5h",
"def G3s8(YKHO, jTXt):\n YKHO.user.set_password(jTXt)\n YKHO.user.save()",
"def jTXt(YKHO, BWXx):\n if not BWXx:\n return\n YKHO._password = BWXx",
"def jTXt(YKHO, BWXx):\n if not BWXx:\n ... | [
"0.8295698",
"0.82936144",
"0.8269096",
"0.817838",
"0.8164827",
"0.8127836",
"0.8106999",
"0.80941904",
"0.8088892",
"0.7989776",
"0.79341376",
"0.7921508",
"0.7921462",
"0.79187256",
"0.79136664",
"0.79136664",
"0.7911444",
"0.7892652",
"0.7892652",
"0.788197",
"0.7880786",... | 0.0 | -1 |
Retrieve the active configuration. The active configuration is based on the DEPLOYED and DEBUG environment variables. The active config is set once and returned for each subsequent call. | def oRVB():
global _active_config
cI0f = Hy7s.environ.get('DEPLOYED', False)
cH4u = Hy7s.environ.get('DEBUG', False)
if OK5E is None:
if cI0f:
if cH4u:
OK5E = oZpE
else:
OK5E = ponW
elif cH4u:
OK5E = ZK84
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qq6Q():\n return Hy7s.environ.get(GPtr.CLOUDSDK_ACTIVE_CONFIG_NAME, None)",
"def tgzD():\n try:\n sEAN = Cu40('RUN_ENV')\n except Exception:\n sEAN = 'production'\n print('RUN_ENV is not set, using RUN_ENV:', sEAN)\n if sEAN == 'production':\n return rms9()\n elif s... | [
"0.7017544",
"0.7006266",
"0.6945513",
"0.67106754",
"0.6599538",
"0.6586674",
"0.6585053",
"0.6488775",
"0.6435692",
"0.6376959",
"0.6371903",
"0.63687223",
"0.63168806",
"0.62597567",
"0.6256604",
"0.6249226",
"0.623849",
"0.61694294",
"0.61639315",
"0.6142124",
"0.6114437"... | 0.893244 | 0 |
Creates and saves a User with the given email and password. | def xWi2(YKHO, mWFP, D3lj, jTXt, **wdCM):
if not D3lj:
raise ValueError('É necessário um email')
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, **wdCM):\n if not D3lj:\n raise ValueError('The email must be set')\n D3lj = YKHO.normalize_email(D3lj)\n CBIr = YKHO.model(email=D3lj, **wdCM)\n CBIr.set_password(jTXt)\n CBIr.save()",
"def lYUQ(YKHO, D3lj: str, jTXt: str, **wdCM: dict):\n if not D3lj:\n ... | [
"0.87203795",
"0.8471124",
"0.8462932",
"0.84520763",
"0.84274495",
"0.84224284",
"0.84208685",
"0.84165066",
"0.8410754",
"0.8409538",
"0.8409538",
"0.8401648",
"0.84014827",
"0.8391565",
"0.83900344",
"0.83900344",
"0.83900344",
"0.83900344",
"0.83900344",
"0.83900344",
"0.... | 0.0 | -1 |
generate random indices and return data of shape (batch_size, sequence_length) | def JESk(YKHO, Ep8u=None):
lHmx = Ep8u if Ep8u else YKHO.bs
tsWk = YKHO.sequence_length
KCHu = oyIN.random.randint(low=0, high=YKHO.count, size=lHmx)
exwG = oyIN.random.randint(low=0, high=YKHO.horizon - tsWk - 1)
return (YKHO.obs[KCHu, exwG:exwG + tsWk], YKHO.actions[KCHu, exwG:exwG + tsWk], YKHO.r... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mwOQ(YKHO):\n _0VL = ZylS.range(0, YKHO._dataset_info.sequence_size)\n _0VL = ZylS.random_shuffle(_0VL)\n _0VL = ZylS.slice(_0VL, begin=[0], size=[YKHO._example_size])\n return _0VL",
"def XhDB(YKHO, Ep8u: int, xlLU: torch.Generator) -> ht2j.Tensor:\n return ht2j.randint(len(YKHO), (Ep8u,), ge... | [
"0.7202",
"0.696994",
"0.670696",
"0.66821104",
"0.66522944",
"0.66089255",
"0.66026515",
"0.65941125",
"0.65614855",
"0.6553189",
"0.6553189",
"0.6544208",
"0.6507859",
"0.64811164",
"0.645757",
"0.6457136",
"0.6439339",
"0.6429085",
"0.6427658",
"0.64114034",
"0.6402295",
... | 0.0 | -1 |
Returns the error response. | def P1dF(YKHO, P1dF, Ol8d=None):
return YKHO._jsonify({'error': P1dF.status_code, 'message': P1dF.body or Ol8d}, '') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P1dF(YKHO) -> 'outputs.StatusResponse':\n return qe4Y.get(YKHO, 'error')",
"def P1dF(YKHO) -> 'outputs.StatusResponse':\n return qe4Y.get(YKHO, 'error')",
"def P1dF(YKHO) -> 'outputs.StatusResponse':\n return qe4Y.get(YKHO, 'error')",
"def P1dF(YKHO) -> 'outputs.StatusResponse':\n return qe4Y... | [
"0.80343515",
"0.80343515",
"0.80343515",
"0.80343515",
"0.79071444",
"0.79071444",
"0.78287584",
"0.7764939",
"0.7697816",
"0.76220816",
"0.761896",
"0.7594602",
"0.75886476",
"0.7470114",
"0.7437021",
"0.73657376",
"0.73505765",
"0.7315912",
"0.72598016",
"0.7240683",
"0.72... | 0.7281924 | 18 |
Helper for creating a 2d convolution operation. | def b_zE(WKvO, dWUT, ri6P=5, hHqT=5, ozc1=2, ioxB=2, dvgN='SAME', mWFP='conv2d', CJGY=None):
with ZylS.variable_scope(mWFP or 'conv2d', reuse=CJGY):
XcU5 = ZylS.get_variable(name='W', shape=[ri6P, hHqT, WKvO.get_shape()[-1], dWUT], initializer=ZylS.contrib.layers.xavier_initializer_conv2d())
yIp6 = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gZ8A(YKHO, WKvO, XcU5):\n return ZylS.nn.conv2d(WKvO, XcU5, strides=[1, 1, 1, 1], padding='SAME')",
"def gZ8A(WKvO, XcU5):\n return ZylS.nn.conv2d(input=WKvO, filter=XcU5, strides=[1, 1, 1, 1], padding='SAME')",
"def b_zE(input, KUnM, FEri=1, dvgN='VALID', wH3T='NHWC', mJgj=None, mWFP=None):\n ret... | [
"0.7738174",
"0.7691268",
"0.76602256",
"0.7651187",
"0.7625823",
"0.75932896",
"0.75932896",
"0.7551034",
"0.7551034",
"0.7551034",
"0.7551034",
"0.7551034",
"0.7551034",
"0.7548192",
"0.74995434",
"0.74853885",
"0.74853885",
"0.74853885",
"0.74853885",
"0.74853885",
"0.7485... | 0.0 | -1 |
Flatten Tensor to 2dimensions. | def PWgb(WKvO, mWFP=None, CJGY=None):
with ZylS.variable_scope('flatten'):
Htse = WKvO.get_shape().as_list()
if len(Htse) == 4:
qnkS = ZylS.reshape(WKvO, shape=[-1, Htse[1] * Htse[2] * Htse[3]])
elif len(Htse) == 2 or len(Htse) == 1:
qnkS = WKvO
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nPf0(a1PO: Tensor) -> llWB:\n return ZylS.reshape(a1PO, [ZylS.shape(a1PO)[0], -1])",
"def PWgb(WKvO: tf.Tensor) -> ZylS.Tensor:\n return ZylS.reshape(WKvO, (-1,))",
"def dDTT(WKvO):\n return ZylS.reshape(WKvO, shape=[-1])",
"def PWgb(WKvO):\n return ZylS.reshape(WKvO, [-1])",
"def nPf0(WKvO... | [
"0.8207993",
"0.8134786",
"0.8132147",
"0.8118772",
"0.78977096",
"0.78742576",
"0.7813388",
"0.7772715",
"0.7763213",
"0.77526945",
"0.77068484",
"0.7699097",
"0.7632549",
"0.7621241",
"0.7607394",
"0.7607394",
"0.7607394",
"0.7607394",
"0.7553059",
"0.74885833",
"0.7474788"... | 0.69959706 | 34 |
Convert 2 dim Tensor to a 4 dim Tensor ready for convolution. Performs the opposite of flatten(x). If the tensor is already 4D, this returns the same as the input, leaving it unchanged. | def MD8Z(WKvO):
if len(WKvO.get_shape()) == 2:
K2Ug = WKvO.get_shape().as_list()[1]
wVRM = oyIN.sqrt(K2Ug)
if wVRM == int(wVRM):
wVRM = int(wVRM)
k3l6 = ZylS.reshape(WKvO, [-1, wVRM, wVRM, 1], name='reshape')
elif oyIN.sqrt(K2Ug / 3) == int(oyIN.sqrt(K2Ug / 3)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZHsO(WKvO):\n QnUV = ihqc(WKvO)\n Aofo = ZylS.reshape(WKvO, [QnUV[0], QnUV[1] * QnUV[2], QnUV[3]])\n return Aofo",
"def pZ4C(lEw5, W8s7, gv9r=ZylS.float64):\n if lEw5.get_shape() > W8s7.get_shape():\n soy2 = lEw5\n _5JT = W8s7\n else:\n soy2 = ZylS.reshape(W8s7, (1, W8s7.g... | [
"0.69808364",
"0.6557939",
"0.6523767",
"0.64254445",
"0.64142466",
"0.63890636",
"0.6382525",
"0.63601243",
"0.63174725",
"0.6285094",
"0.6279692",
"0.62726384",
"0.6203753",
"0.61987716",
"0.61960465",
"0.6188353",
"0.6185165",
"0.61622983",
"0.61527616",
"0.61450106",
"0.6... | 0.5726447 | 90 |
>>> x, seq_len = 2torch.ones((3,10,4)), [1, 2, 3] >>> x, m, p, n = normalize(x, None, None, [0, 2], 0, 2, seq_len, True, True, 1e3) >>> m tensor([[[2.], [2.], [2.], [2.], [2.], [2.], [2.], [2.], [2.], [2.]]]) >>> p tensor([[[4.], [4.], [4.], [4.], [4.], [4.], [4.], [4.], [4.], [4.]]]) >>> n tensor([[[6.], [6.], [6.], [... | def NkkI(WKvO, KMvS, UqYS, aMvu, Rf7_, YxhP, aiJ_, DkWr, NXpY, SGf8):
return QCgq.apply(WKvO, KMvS, UqYS, aMvu, Rf7_, YxhP, aiJ_, DkWr, NXpY, SGf8) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NkkI(WKvO):\n return WKvO / ht2j.sqrt(ht2j.sum(WKvO ** 2, dim=-1, keepdim=True) + 1e-06)",
"def NkkI(ezWE):\n return ezWE / ht2j.norm(ezWE, p=2, dim=1).unsqueeze(1)",
"def NkkI(WKvO, jDK_=-1):\n WKvO = 1.0 * WKvO / (ht2j.norm(WKvO, 2, jDK_, keepdim=True).expand_as(WKvO) + 1e-12)\n return WKvO",... | [
"0.7160211",
"0.7125791",
"0.69580925",
"0.69580925",
"0.69580925",
"0.69580925",
"0.69580925",
"0.6923002",
"0.6860498",
"0.6687629",
"0.65673864",
"0.64899176",
"0.6478063",
"0.6404832",
"0.6401566",
"0.6401566",
"0.6387551",
"0.6384277",
"0.6372869",
"0.6366958",
"0.636534... | 0.0 | -1 |
Find the K nearest neighbors to a user in "behavior space". | def BTfj(mWFP, mLGw=5):
iArr = Ng6a(mWFP)
if any([Ty9i is None for Ty9i in iArr]):
return []
iArr = QB4z(iArr)
with g5R2.File(ylfj(Pg1n), 'r') as eHNT:
LTIa = eHNT['points'][...]
qzC2 = eHNT['names'][...]
Af4S = I9iN.FLANN()
Af4S.load_index(ylfj(IhGF), LTIa)
noZV, eFr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def z1UU(nPrm, G1Hx):\n dUr3 = IyN9(nPrm)\n CLQW = oyIN.argpartition(dUr3, G1Hx, axis=1)[:, :G1Hx]\n return CLQW",
"def TdJd(pNZh, vexM, nMvt=10):\n return None",
"def TdJd(pNZh, vexM, nMvt=10):\n return None",
"def TdJd(pNZh, vexM, nMvt=10):\n return None",
"def uKjx(input, G1Hx):\n A... | [
"0.7411751",
"0.74062073",
"0.74062073",
"0.74062073",
"0.73573697",
"0.7235246",
"0.7226354",
"0.7196455",
"0.71862614",
"0.7114835",
"0.70720446",
"0.7052198",
"0.70376575",
"0.70367503",
"0.70314354",
"0.69477266",
"0.6939131",
"0.69327176",
"0.6930376",
"0.69232076",
"0.6... | 0.0 | -1 |
Returns a set containing all the categories followed by user | def vmtL(YKHO, uJjO=None):
if uJjO is None:
H5ew = '%s %s %s' % (iPLD, str(YKHO.user), puOy)
return YKHO.RS.smembers(H5ew)
H5ew = '%s %s %s' % (iPLD, str(uJjO), puOy)
return YKHO.RS.smembers(H5ew) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pi1E(uJjO):\n return eorc.query.filter_by(user_id=uJjO)",
"def tOYh(CBIr):\n LeZt = ['all']\n Dn78 = ZbWC.match('.*nouserid.khanacademy.org', CBIr)\n if Dn78 is None:\n LeZt.append('registered')\n else:\n LeZt.append('phantom')\n return LeZt",
"def LQuW(YKHO):\n return li... | [
"0.6543786",
"0.6410454",
"0.63371366",
"0.61828214",
"0.6171154",
"0.61207557",
"0.6107718",
"0.6090608",
"0.60437953",
"0.60437953",
"0.59494877",
"0.5945495",
"0.59256375",
"0.592126",
"0.592126",
"0.5880244",
"0.5822656",
"0.5812428",
"0.58083224",
"0.5777928",
"0.5771742... | 0.57122666 | 24 |
Returns a set of circuits, every of these circuits has category_id as the category they belong to | def gQtX(YKHO, VMw8):
H5ew = '%s %s %s' % (kv9k, str(VMw8), gPO8)
return YKHO.RS.smembers(H5ew) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LQuW(YKHO):\n return YKHO.categories.all()",
"def LQuW(YKHO):\n return YKHO.categories.all()",
"def nGiy() -> x1iM[kL1r]:\n jhXJ = OXsV.science_categories_count()\n M4GI = ['https://www.example.com/category-scheme-1', 'https://www.example.com/category-scheme-2', 'https://www.example.com/categor... | [
"0.6526506",
"0.6526506",
"0.6378063",
"0.6325445",
"0.62679374",
"0.6253625",
"0.6232071",
"0.6219018",
"0.6211445",
"0.6195603",
"0.61806095",
"0.61702",
"0.61443245",
"0.6122054",
"0.61208063",
"0.6090088",
"0.60801405",
"0.60760283",
"0.6036383",
"0.60289854",
"0.5998176"... | 0.71780586 | 0 |
Find if there are nonzero elements per row/column first and then find min/max position of those elements. Only support 2d image (h x w) Return (x1, y1, w, h) if bbox found, otherwise None | def dazv(ZHfW: np.ndarray):
assert len(ZHfW.shape) == 2, f'Invalid shape {ZHfW.shape}'
usx6 = oyIN.any(ZHfW, axis=1)
WfCS = oyIN.any(ZHfW, axis=0)
if bool(oyIN.any(usx6)) is False or bool(oyIN.any(WfCS)) is False:
return None
s_8f, X17R = oyIN.where(usx6)[0][[0, -1]]
Yd35, ZfiU = oyIN.wh... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C1GJ(ZHfW):\n usx6 = oyIN.any(ZHfW, axis=1)\n WfCS = oyIN.any(ZHfW, axis=0)\n KDmU, rwK9 = oyIN.where(usx6)[0][[0, -1]]\n wBZN, re6M = oyIN.where(WfCS)[0][[0, -1]]\n return (KDmU, rwK9, wBZN, re6M)",
"def C1GJ(VXjJ):\n usx6 = oyIN.any(VXjJ, axis=1)\n WfCS = oyIN.any(VXjJ, axis=0)\n s_... | [
"0.73341036",
"0.7275328",
"0.72193646",
"0.71620053",
"0.7063578",
"0.7057663",
"0.7023166",
"0.701947",
"0.69746816",
"0.6757897",
"0.67479414",
"0.6727128",
"0.6725128",
"0.6699165",
"0.66959333",
"0.66303825",
"0.6558246",
"0.6540846",
"0.65387064",
"0.65216124",
"0.64882... | 0.6271298 | 40 |
Sets up the BaseOPC class | def FIMM(YKHO, **B2fa):
YKHO.should_gather_data = B2fa.get('should_gather_data', lambda WKvO: True)
YKHO.port = B2fa.get('port', 'ttyACM0')
YKHO.config = B2fa.get('instrumentConfig', None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n _Fei = mxuv.get_config()\n YKHO.err = XObx = EFMs.OErr()\n YKHO.obitsys = tAd0.OSystem('Pipeline', 1, _Fei['userno'], 0, [' '], 0, [' '], True, False, XObx)\n EFMs.printErrMsg(XObx, 'Error starting Obit System')\n GGYU.userno = _Fei['userno']\n dX9m.SetEnviron(AIPS_ROOT=_Fei['ai... | [
"0.6694676",
"0.66458523",
"0.6630941",
"0.65571725",
"0.65054595",
"0.6450215",
"0.6428978",
"0.6425794",
"0.64236665",
"0.6408971",
"0.6398993",
"0.6397151",
"0.63528436",
"0.63438785",
"0.6342484",
"0.6336711",
"0.6314199",
"0.6298576",
"0.62955296",
"0.62924236",
"0.62878... | 0.0 | -1 |
Displays statistics on the most frequent times of travel. | def dWJR(jQ3Z):
print('\nCalculating The Most Frequent Times of Travel...\n')
SWox = ITS7.time()
sve5 = jQ3Z['month'].mode()[0]
sve5 = GRk0.month_name[sve5]
print('\nThe most common month is: ', sve5)
StUT = jQ3Z['day_of_week'].mode()[0]
print('\nThe most common day is: ', StUT)
jQ3Z['ho... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dWJR(jQ3Z):\n print('\\nCalculating The Most Frequent Times of Travel...\\n')\n SWox = ITS7.time()\n print('The most common month of travel is: {} '.format(jQ3Z.Month.mode()[0]))\n print('The most common day of travel is: {} '.format(jQ3Z.Day.mode()[0]))\n print('The most common hour of travel i... | [
"0.79996175",
"0.7920857",
"0.7891767",
"0.78612196",
"0.785926",
"0.7838814",
"0.779974",
"0.77848285",
"0.7735119",
"0.7723049",
"0.771342",
"0.7708436",
"0.770453",
"0.77017164",
"0.7689714",
"0.7685842",
"0.7680146",
"0.76788265",
"0.76721054",
"0.7661351",
"0.7660023",
... | 0.0 | -1 |
Displays statistics on the most popular stations and trip. | def Huc_(jQ3Z):
print('\nCalculating The Most Popular Stations and Trip...\n')
SWox = ITS7.time()
QQZ6 = jQ3Z['Start Station'].mode()[0]
print('\nThe most common start station is ', QQZ6)
mc2n = jQ3Z['End Station'].mode()[0]
print('\nThe most common start station is ', mc2n)
jQ3Z['start_to_e... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations and Trip...\\n')\n SWox = ITS7.time()\n v6Be(jQ3Z)\n BeYU(jQ3Z)\n O6Ct(jQ3Z)\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)",
"def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations ... | [
"0.7665365",
"0.76264536",
"0.7610902",
"0.75852126",
"0.7576492",
"0.7567089",
"0.75577486",
"0.7538181",
"0.75294757",
"0.7502035",
"0.74997437",
"0.7496321",
"0.74872565",
"0.74840283",
"0.7475714",
"0.7472988",
"0.7437631",
"0.74366206",
"0.7433223",
"0.7428372",
"0.74269... | 0.0 | -1 |
Displays statistics on the total and average trip duration. | def kDMA(jQ3Z):
print('\nCalculating Trip Duration...\n')
SWox = ITS7.time()
RGHr = jQ3Z['Trip Duration'].sum()
print('The total travel time is: ', RGHr)
IvhD = oyIN.mean(jQ3Z['Trip Duration'])
print('The average travel time is: ', IvhD)
print('\nThis took %s seconds.' % (ITS7.time() - SWox)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kDMA(dMlt):\n print('\\nCalculating Trip Duration...\\n')\n SWox = ITS7.time()\n qZ1g = dMlt['Trip Duration'].sum()\n print('The total travel time is ', qZ1g, ' seconds.')\n NPSF = dMlt['Trip Duration'].mean()\n print('The average travel time is ', NPSF, ' seconds.')\n print('\\nThis took ... | [
"0.8251978",
"0.81471264",
"0.80965656",
"0.80127156",
"0.7987783",
"0.79834235",
"0.7978646",
"0.79705906",
"0.7965226",
"0.79636025",
"0.79616374",
"0.79614663",
"0.79523134",
"0.7948989",
"0.79445267",
"0.7937707",
"0.7923821",
"0.792045",
"0.79198813",
"0.7918623",
"0.791... | 0.0 | -1 |
Sets the model's layers to be frozen or unfrozen according to status | def pHsW(YKHO, jGRS, asKc=False):
for gEmA in YKHO.model.layers:
gEmA.trainable = jGRS
if not asKc:
YKHO.model.layers[-1].trainable = not jGRS | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zg7v(C3ST, WFC9=[], VaUU=None):\n for vC9B in C3ST.layers:\n if len(vC9B.trainable_weights):\n XJsN = type(vC9B) in WFC9 or (VaUU is not None and VaUU in vC9B.name)\n ofML(vC9B, XJsN, verbose=True)\n return C3ST",
"def tMEJ(YKHO) -> None:\n if YKHO.frozen_stages >= 0:\n ... | [
"0.6971645",
"0.6971271",
"0.6970209",
"0.6958706",
"0.68892074",
"0.6873378",
"0.6866564",
"0.6690092",
"0.6601648",
"0.6529175",
"0.65217245",
"0.64822793",
"0.64704144",
"0.64280623",
"0.6381188",
"0.6277238",
"0.6270093",
"0.6199142",
"0.61895955",
"0.61793107",
"0.610364... | 0.5972152 | 22 |
Convert time string to epoch, if does not have a time string, return current epoch time | def k9x9(YKHO, jmHs: str) -> int:
if jmHs:
return int(hfK9(jmHs).timestamp()) * 1000000000
else:
return int(ITS7.time()) * 1000000000 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AkTL(KCHu):\n import time\n return time.mktime(time.strptime(KCHu, '%a, %d %b %Y %H:%M:%S'))",
"def gWWB(YCc8, qtWj=qcWV.fromtimestamp(0)):\n ITS7 = qcWV.strptime(YCc8, '%H:%M:%S')\n return ITS7",
"def qtWj(a1PO):\n if not hasattr(a1PO, 'tzinfo'):\n return\n return int(ITS7.mktime(... | [
"0.80518246",
"0.77864736",
"0.7720549",
"0.767174",
"0.7522678",
"0.74828535",
"0.74350506",
"0.74008405",
"0.7400801",
"0.728709",
"0.7262568",
"0.72391045",
"0.7156929",
"0.7099155",
"0.7006979",
"0.69581527",
"0.6868675",
"0.68315417",
"0.68153536",
"0.6793121",
"0.678588... | 0.8054214 | 0 |
Helper to return the rule(s) queryset matching the rule name and scanner for this result. | def bnVr(YKHO):
return YKHO.rule_model.objects.filter(scanner=YKHO.scanner, name__in=YKHO.extract_rule_names()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k66M(YKHO):\n return Iiwd(YKHO.model, using=YKHO._db)",
"def list(YKHO, **B2fa):\n\n def roPg(NArs):\n \"\"\"Paginate rules, even if more than API limit.\"\"\"\n jqY7 = int(NArs.get('limit') or 0)\n bD7m = '/rules?%s' % hfK9.urlencode(NArs, True)\n c_NS, _hkX = YKHO._list(bD... | [
"0.6324589",
"0.62736636",
"0.62363946",
"0.6168034",
"0.59724534",
"0.5853808",
"0.58124685",
"0.5808526",
"0.57743484",
"0.5768156",
"0.57634777",
"0.57634777",
"0.57634777",
"0.57459944",
"0.5745482",
"0.57345843",
"0.57274747",
"0.5724621",
"0.57143986",
"0.57013524",
"0.... | 0.80621195 | 0 |
Returns the mean (average) of a given input list values. | def JBMS(hkxX: list) -> float:
if not hkxX:
raise ValueError("Input list 'values' is empty")
return sum(hkxX) / len(hkxX) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SfSc(ABQD):\n return sum(ABQD) / len(ABQD)",
"def JBMS(yv6U):\n return",
"def JBMS(yv6U):\n return",
"def JBMS(bM03):\n return sum(bM03) / float(len(bM03))",
"def JBMS(yv6U):\n return float(sum(yv6U) / len(yv6U))",
"def JBMS(list):\n return float(sum(list)) / (len(list) or 1)",
"d... | [
"0.85754764",
"0.85216886",
"0.85216886",
"0.8499579",
"0.830409",
"0.8282748",
"0.8263601",
"0.8256042",
"0.8239151",
"0.818942",
"0.81485516",
"0.8119714",
"0.810096",
"0.8073524",
"0.8053425",
"0.8050847",
"0.8039246",
"0.80338293",
"0.80205256",
"0.79972315",
"0.7957095",... | 0.7990916 | 20 |
Returns the DynamoDB table object. | def ja1s():
tyNF = getattr(Oa1e, '_table_items', None)
if tyNF is None:
u3s0 = gP7g.dynamodb2.connect_to_region(SCWY.config['AWS_REGION'])
tyNF = Oa1e._table_items = TQJD(SCWY.config['TABLE_ITEMS'], connection=u3s0)
return tyNF | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GoK6():\n nEDl = iVGz.resource('dynamodb')\n tyNF = nEDl.Table(tp0w)\n return tyNF",
"def ZAkC():\n w2B8 = gP7g.connect_dynamodb()\n return w2B8.get_table(Hy7s.environ['DYNAMODB_TABLE'])",
"def ja1s(YKHO, GTA_):\n tyNF = TQJD(GTA_, connection=YKHO.dynamo_cx)\n tyNF.describe()\n retu... | [
"0.850025",
"0.7960807",
"0.7839672",
"0.77261955",
"0.7556682",
"0.71903765",
"0.71418613",
"0.71149504",
"0.70692796",
"0.69883406",
"0.69883406",
"0.697433",
"0.69591385",
"0.69591385",
"0.67942584",
"0.6794139",
"0.6781735",
"0.6781732",
"0.67589897",
"0.674395",
"0.67439... | 0.8305704 | 1 |
Get Network Vlan Segment | def WQC9(YKHO, OZUW):
Y1r_ = YKHO._neutron.show_network(network=OZUW)
return Y1r_['network']['provider:segmentation_id'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Tl6F(YKHO):\n return (YKHO.in_dcnm_net_dict.get('segmentation_id'), YKHO.in_dcnm_net_dict.get('vlan_id'))",
"def jL8Z(YKHO):\n return YKHO.network['provider:segmentation_id']",
"def GQ3a(YKHO):\n return YKHO._get_attribute('sVlan')",
"def P9xl(YKHO):\n return (YKHO.out_dcnm_net_dict.get('segm... | [
"0.65169126",
"0.64444256",
"0.6422738",
"0.62213093",
"0.6199973",
"0.61720157",
"0.614149",
"0.6038999",
"0.6033489",
"0.6001547",
"0.60011864",
"0.5970204",
"0.59223473",
"0.5904452",
"0.5904452",
"0.5904452",
"0.5885407",
"0.5864816",
"0.5851594",
"0.5803461",
"0.57786816... | 0.64020914 | 3 |
Given a string or NumberClass description desc, returns the dtype object. | def YYzL(HrOk, QoB4):
def QTKE(FWqb):
_h7H = SnBA.DType(FWqb)
wEsz = _h7H(QoB4)
def Y5qA(QpfX, mBtZ, aadv, qIxc):
return QpfX.get_dummy_value()
return (wEsz, Y5qA)
if isinstance(QoB4, SnBA.Literal):
FWqb = C1Il(oyIN.dtype(QoB4.literal_value))
return ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iR6h(QoB4):\n if isinstance(QoB4, (SnBA.Literal, SnBA.functions.NumberClass)):\n\n def PQrP(QoB4):\n return YYzL(QoB4)\n return PQrP\n else:\n raise UAju.NumbaTypeError('unknown dtype descriptor: {}'.format(QoB4))",
"def Ef1q(QoB4):\n yDqo = []\n for Csk6 in QoB4:\... | [
"0.77504414",
"0.7000987",
"0.655711",
"0.6502631",
"0.65014935",
"0.6474283",
"0.6443804",
"0.6249737",
"0.62283844",
"0.6159355",
"0.6084997",
"0.608196",
"0.6071864",
"0.6040825",
"0.60172695",
"0.59503204",
"0.5933475",
"0.5923182",
"0.5879369",
"0.5863871",
"0.58636874",... | 0.767814 | 1 |
Provide an implementation so that numpy.dtype function can be lowered. | def iR6h(QoB4):
if isinstance(QoB4, (SnBA.Literal, SnBA.functions.NumberClass)):
def PQrP(QoB4):
return YYzL(QoB4)
return PQrP
else:
raise UAju.NumbaTypeError('unknown dtype descriptor: {}'.format(QoB4)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qxps(Emd4, **B2fa):\n pass",
"def CVhi(YKHO, yDqo):\n raise NotImplementedError",
"def iCEJ(Emd4, yDqo: Dtype | None) -> oyIN.dtype | None:\n if yDqo is None:\n return Emd4._default_dtype\n yDqo = HkOf(yDqo)\n if not isinstance(yDqo, oyIN.dtype):\n raise TypeError(f'{yDqo} not ... | [
"0.72548413",
"0.698462",
"0.6917255",
"0.6861236",
"0.6768176",
"0.667383",
"0.6633863",
"0.66302174",
"0.6614822",
"0.6592541",
"0.65874004",
"0.65010417",
"0.6498108",
"0.64511913",
"0.64276505",
"0.6398971",
"0.6396988",
"0.6360252",
"0.6345137",
"0.63420594",
"0.63293856... | 0.67709184 | 4 |
Returns the string representation of the model | def gTzM(YKHO):
return CgYo.pformat(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.83920443",
"0.83544874",
"0.8294375",
"0.8131804",
"0.8114275",
"0.8099284",
"0.8098424",
"0.8097017",
"0.8097017",
"0.80916125",
"0.80916125",
"0.80916125",
"0.80916125",
"0.8084362",
"0.8084362",
"0.8084362",
"0.8084362",
"0.8084362",
"0.80659354",
"0.805918",
"0.8056744... | 0.80430144 | 37 |
Creates two bitmaps filled with numbers increasing in X and Y direction. This trick makes it easier to draw filled rectangles usinf tf.less and tf.greater. | def k7Dj(Wc9F, exwG, pA0V):
rdlD = ZylS.cast(ZylS.linspace(0.0, (pA0V - 1) * 1.0, pA0V), dtype=ZylS.int16)
KSES = ZylS.tile([rdlD], [pA0V, 1])
KSES = ZylS.tile([KSES], [exwG, 1, 1])
KSES = ZylS.tile([KSES], [Wc9F, 1, 1, 1])
return KSES | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gKMk(YKHO):\n vgXP = [0, 0]\n Psz5 = [1000000, -1000000]\n _nuU = [1000000, -1000000]\n cf3u = YKHO.position_list\n for d6pt in range(len(cf3u) - 1):\n EtZ_ = vgXP\n if EtZ_[0] < Psz5[0]:\n Psz5[0] = EtZ_[0]\n if EtZ_[0] > Psz5[1]:\n Psz5[1] = EtZ_[0]\n... | [
"0.605024",
"0.5855077",
"0.57509136",
"0.5712101",
"0.568612",
"0.5669429",
"0.56631553",
"0.56631553",
"0.56608534",
"0.56157714",
"0.5597521",
"0.5563377",
"0.5559796",
"0.5558349",
"0.5535275",
"0.552397",
"0.5520723",
"0.5485281",
"0.5477868",
"0.5463932",
"0.5463095",
... | 0.0 | -1 |
Computes the Intersection Over Union (IOU) of a batch of detected boxes against a batch of target boxes. Logs a message if a problem occurs. | def Ig9r(VhQa, FTuR, Da9y, pA0V):
otnY = eJOE.batch_intersection_over_union(FTuR * pA0V, VhQa * pA0V, tile_size=pA0V)
Emne = ZylS.greater(ZylS.reduce_sum(Da9y), 0)
otnY = ZylS.cond(Emne, lambda: ZylS.Print(otnY, [Da9y], summarize=250, message='ROI tensor overflow in IOU computation. The computed IOU is not ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CngR(hzqs, Mzpb, N0ky):\n HpDL = oyIN.zeros((int(N0ky[1]), int(N0ky[0])))\n cii7 = oyIN.zeros((int(N0ky[1]), int(N0ky[0])))\n hzqs = hzqs.reshape(-1, 4, 2).astype(oyIN.int32)\n Mzpb = Mzpb.reshape(-1, 4, 2).astype(oyIN.int32)\n for FlUN in hzqs:\n PvRb(HpDL, [FlUN], 1)\n for FlUN in Mz... | [
"0.74497676",
"0.74302584",
"0.74278075",
"0.7360954",
"0.73545563",
"0.73259395",
"0.7184076",
"0.7181398",
"0.7135611",
"0.71298283",
"0.71150535",
"0.7113028",
"0.7113028",
"0.7113028",
"0.7113028",
"0.7113028",
"0.7113028",
"0.70836765",
"0.7081859",
"0.69875985",
"0.6959... | 0.6866441 | 30 |
Converts a string argument to a byte string. If the argument is already a byte string or None, it is returned unchanged. Otherwise it must be a unicode string and is encoded as utf8. | def jShR(BWXx):
if isinstance(BWXx, RP9d):
return BWXx
assert isinstance(BWXx, QMSQ)
return BWXx.encode('utf-8') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TIvS(KCHu: str | bytes, /, tZ2K: str='cp1252') -> bytes:\n return KCHu.encode(tZ2K) if isinstance(KCHu, str) else KCHu",
"def qSz5(vIwR):\n if isinstance(vIwR, jKi7.text_type):\n return vIwR.encode('utf8')\n return vIwR",
"def rSlX(d7pR):\n if VOoL and isinstance(d7pR, g9qP):\n re... | [
"0.785282",
"0.7837995",
"0.7786407",
"0.76846737",
"0.75650334",
"0.7564611",
"0.7552087",
"0.74988204",
"0.74919623",
"0.7451014",
"0.7382964",
"0.7361062",
"0.73568296",
"0.7306501",
"0.72990495",
"0.7274422",
"0.72728646",
"0.72725344",
"0.72052515",
"0.72007215",
"0.7195... | 0.67920244 | 54 |
Returns zone for station name | def c0po(VXJd):
for Oj45 in O60w:
if VXJd.lower() == Oj45.attrib['id'].lower():
JbJU = Oj45.find('Zone').text
return int(JbJU)
return -1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c0po(YKHO, mWFP):\n _j99 = YKHO.get_zones()\n for lhKE in _j99:\n if mWFP + '.' == lhKE.name:\n return lhKE",
"def lhKE(YKHO) -> str:\n return qe4Y.get(YKHO, 'zone')",
"def lhKE(YKHO) -> str:\n return qe4Y.get(YKHO, 'zone')",
"def lhKE(YKHO) -> str:\n return qe4Y.get(YKHO... | [
"0.7221048",
"0.71783423",
"0.71783423",
"0.71783423",
"0.71783423",
"0.71783423",
"0.705315",
"0.705315",
"0.6951864",
"0.6911348",
"0.6911348",
"0.69080263",
"0.69080263",
"0.68810135",
"0.68810135",
"0.6877584",
"0.68564117",
"0.6824447",
"0.6801009",
"0.6801009",
"0.68010... | 0.69911367 | 8 |
Return the unit of measurement of this entity, if any. | def b82i(YKHO):
return YKHO._unit_of_measurement | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b82i(YKHO):\n if YKHO._unit_of_measurement == None:\n return\n return YKHO._unit_of_measurement",
"def b82i(YKHO):\n return YKHO._unit",
"def b82i(YKHO):\n return YKHO._unit",
"def b82i(YKHO):\n return YKHO._unit",
"def b82i(YKHO):\n return YKHO._unit",
"def b82i(YKHO):\n ... | [
"0.8501415",
"0.848033",
"0.848033",
"0.848033",
"0.848033",
"0.848033",
"0.848033",
"0.848033",
"0.848033",
"0.848033",
"0.848033",
"0.84656703",
"0.8436902",
"0.8436902",
"0.83826196",
"0.8369556",
"0.835892",
"0.8280471",
"0.8280471",
"0.8280471",
"0.8270692",
"0.8269446... | 0.8455879 | 13 |
Return the state attributes. | def R1i3(YKHO):
if YKHO._state is not None:
return {PlJk: eLt7, Na6B: YKHO.data.price_open, LlAA: YKHO.data.prev_close, pM2x: YKHO.data.high, FPkW: YKHO.data.low, r2U0: YKHO.data.name} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def upgy(YKHO):\n return YKHO._state_attrs",
"def upgy(YKHO):\n nPrm = {}\n return nPrm",
"def upgy(YKHO):\n azoT = {}\n for H5ew in YKHO._attributes.keys():\n azoT[H5ew] = YKHO._item[YKHO._attributes[H5ew]]\n return azoT",
"def R1i3(YKHO):\n return YKHO.attr\n 'Return the stat... | [
"0.9143806",
"0.8802095",
"0.8796065",
"0.85617536",
"0.84979665",
"0.84979665",
"0.84034306",
"0.838496",
"0.8384177",
"0.836618",
"0.836618",
"0.836618",
"0.836618",
"0.836618",
"0.8365354",
"0.8365354",
"0.8365354",
"0.83578205",
"0.8335189",
"0.8335189",
"0.8335189",
"0... | 0.79287976 | 73 |
Specifies the description of the Contact Flow. | def JBZA(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'description') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NHNR(YKHO):\n nPrm = {'kind': 'default#acl', 'rules': [{'id': 1, 'protocol': 'tcp', 'description': 'simple flow', 'source': '10.0.0.1/32', 'destination': '10.0.0.2/32'}]}\n vkmJ = wZW4(nPrm)\n _uqo = vkmJ.build()\n vkmJ = _uqo.next()\n EfPL('flow-name', vkmJ['flow'][0])\n SjMt(vkmJ['flow'][0]... | [
"0.584982",
"0.5748217",
"0.57398343",
"0.5729581",
"0.5729581",
"0.5729581",
"0.5729581",
"0.5729581",
"0.5729581",
"0.5729581",
"0.5729581",
"0.5729581",
"0.5729581",
"0.5729192",
"0.5717019",
"0.5710926",
"0.57107973",
"0.56818396",
"0.56818396",
"0.56818396",
"0.56818396"... | 0.0 | -1 |
Specifies the name of the Contact Flow. | def mWFP(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WDza(YKHO, WDza):\n YKHO._communications_flow_name = WDza",
"def smSl(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'flow_name')",
"def bKAt(YKHO, bKAt: str):\n YKHO._contact_name = bKAt",
"def bKAt(YKHO, bKAt):\n YKHO._contact_name = bKAt",
"def bKAt(YKHO, bKAt):\n YKHO._conta... | [
"0.682022",
"0.65996075",
"0.65879434",
"0.6493753",
"0.6493753",
"0.62768525",
"0.6101742",
"0.60700977",
"0.60621434",
"0.60621434",
"0.59980124",
"0.59980124",
"0.58938426",
"0.58803743",
"0.5869837",
"0.5846445",
"0.5846445",
"0.58265543",
"0.58265543",
"0.58265543",
"0.5... | 0.0 | -1 |
The Amazon Resource Name (ARN) of the Contact Flow. | def hMqs(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'arn') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QPMW(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'flow_arn')",
"def oJMC(YKHO) -> h8nf[str]:\n return YKHO.__arn__",
"def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')",
"def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')",
"def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')",
... | [
"0.7265425",
"0.6328968",
"0.62522477",
"0.62522477",
"0.62522477",
"0.62522477",
"0.62522477",
"0.62522477",
"0.62522477",
"0.62522477",
"0.62522477",
"0.62522477",
"0.62522477",
"0.62522477",
"0.62522477",
"0.62522477",
"0.62522477",
"0.62522477",
"0.62522477",
"0.61873955",
... | 0.5906029 | 81 |
Specifies the description of the Contact Flow. | def JBZA(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'description') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NHNR(YKHO):\n nPrm = {'kind': 'default#acl', 'rules': [{'id': 1, 'protocol': 'tcp', 'description': 'simple flow', 'source': '10.0.0.1/32', 'destination': '10.0.0.2/32'}]}\n vkmJ = wZW4(nPrm)\n _uqo = vkmJ.build()\n vkmJ = _uqo.next()\n EfPL('flow-name', vkmJ['flow'][0])\n SjMt(vkmJ['flow'][0]... | [
"0.584982",
"0.5748217",
"0.57398343",
"0.5729581",
"0.5729581",
"0.5729581",
"0.5729581",
"0.5729581",
"0.5729581",
"0.5729581",
"0.5729581",
"0.5729581",
"0.5729581",
"0.5729192",
"0.5717019",
"0.5710926",
"0.57107973",
"0.56818396",
"0.56818396",
"0.56818396",
"0.56818396"... | 0.0 | -1 |
Specifies the name of the Contact Flow. | def mWFP(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WDza(YKHO, WDza):\n YKHO._communications_flow_name = WDza",
"def smSl(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'flow_name')",
"def bKAt(YKHO, bKAt: str):\n YKHO._contact_name = bKAt",
"def bKAt(YKHO, bKAt):\n YKHO._contact_name = bKAt",
"def bKAt(YKHO, bKAt):\n YKHO._conta... | [
"0.682022",
"0.65996075",
"0.65879434",
"0.6493753",
"0.6493753",
"0.62768525",
"0.6101742",
"0.60700977",
"0.60621434",
"0.60621434",
"0.59980124",
"0.59980124",
"0.58938426",
"0.58803743",
"0.5869837",
"0.5846445",
"0.5846445",
"0.58265543",
"0.58265543",
"0.58265543",
"0.5... | 0.0 | -1 |
Provides an Amazon Connect Contact Flow resource. For more information see | def FIMM(Ro_8, kFeU: str, VKhi: Optional[pulumi.ResourceOptions]=None, hGN5: Optional[pulumi.Input[str]]=None, N8rh: Optional[pulumi.Input[str]]=None, JBZA: Optional[pulumi.Input[str]]=None, Ux0P: Optional[pulumi.Input[str]]=None, o_gm: Optional[pulumi.Input[str]]=None, mWFP: Optional[pulumi.Input[str]]=None, dJ1p: Opt... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None, hMqs: Optional[pulumi.Input[str]]=None, OCO9: Optional[pulumi.Input[str]]=None, hGN5: Optional[pulumi.Input[str]]=None, N8rh: Optional[pulumi.Input[str]]=None, JBZA: Optional[pulumi.Input[str]]=None, Ux0P: Optional[pulumi.Input... | [
"0.6804452",
"0.64182174",
"0.63132703",
"0.6108587",
"0.60270226",
"0.584655",
"0.57639474",
"0.56418616",
"0.5637643",
"0.55950874",
"0.5449325",
"0.54114693",
"0.534377",
"0.5300487",
"0.5252543",
"0.52037895",
"0.51815027",
"0.51665574",
"0.511035",
"0.5028786",
"0.500191... | 0.0 | -1 |
Provides an Amazon Connect Contact Flow resource. For more information see | def FIMM(Ro_8, kFeU: str, qIxc: ContactFlowArgs, VKhi: Optional[pulumi.ResourceOptions]=None):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None, hMqs: Optional[pulumi.Input[str]]=None, OCO9: Optional[pulumi.Input[str]]=None, hGN5: Optional[pulumi.Input[str]]=None, N8rh: Optional[pulumi.Input[str]]=None, JBZA: Optional[pulumi.Input[str]]=None, Ux0P: Optional[pulumi.Input... | [
"0.68048155",
"0.6418399",
"0.631387",
"0.6108594",
"0.5843098",
"0.5764943",
"0.564189",
"0.563529",
"0.55915505",
"0.5445521",
"0.54117286",
"0.5344699",
"0.52979916",
"0.5252689",
"0.5205859",
"0.51778036",
"0.51632327",
"0.5111908",
"0.5026482",
"0.49992022",
"0.49713856"... | 0.60263747 | 4 |